199,114 Archived Topics
Remove Filter ![]() | |
Hello! I have this simple funcion [CODE]def newUser(): print 'Choose a username?' Username = raw_input('> ')[/CODE] The variable 'Username' has to be used by other functions. How can I do it? Cheers! Dani | |
b=c/d++; In this, first d is incremented (because ++ has a higher priority than / or =), but c is divided by the unincremented value of d. Thus, the order of evaluation in this case is well-defined. But if we had written the above as: b=(c)/(d++) then which operand ( … | |
Hi, I typed in word document that is [B]=rand(200,99)[/B]. When i entered by this font. I got some story. I was just wonder about this. Actually, it got increase the font or change the text font. But y it is coming? Any help? | |
Im looking to Delete a row of information in my datagrid, but also from my database. im not even really sure where to start. I want to use a button to do this. so that when i highlight a row, then click the button it brings up a message box … | |
Hello, I have created a datagridview with first column is checkbox like below: [CODE] dgv.Columns[0].Visible = false; dgv.Columns[1].HeaderText = "Name"; if (dgv.Name.Equals("dataGridView1")) dgv.Columns[1].Width = 100; if (dgv.Name.Equals("dataGridView2")) dgv.Columns[1].Width = 145; dgv.Columns[2].HeaderText = "Mobile Number"; dgv.Columns[2].Width = 115; dgv.Columns[3].HeaderText = "Date Added"; dgv.Columns[3].Width = 95; dgv.Columns[4].Visible = false; dgv.Columns[5].HeaderText = "Group"; … | |
Hi All! I have been working on a site containing a single Paypal 'Buy Now' button, but testing has shown that it takes anywhere from 8-20 seconds to load the Paypal page once the button is clicked. Since there is no indication that the button was successfully clicked, or that … | |
Hello, I want to set the background image of form as per user selection. for that i have take openFileDialog but it only show the wallpapers when i click on open button it not applied to form. it show an error message that [B]"path not found"[/B] [B]this code is on … | |
Hello, everyone. I have generated a treeview loading from database, learned from a book. But I have no idea how can I save the view state of my treeview, I have tried the following code to do, through it, I can only keep expanding the first layer of treeview, but … | |
Hello, I have created a query as follow in ms access: [CODE]SELECT cont.id, cont.name, cont.mobile_num, cont.date_created, memb.group_id, grp.name FROM (contact AS cont LEFT JOIN contact_group_member AS memb ON memb.contact_id=cont.id) LEFT JOIN contact_group AS grp ON grp.id=memb.group_id WHERE cont.removed=False ORDER BY cont.id DESC;[/CODE] and I created a 2nd query to query … | |
i have made a Session which has as the EmailId as the session name....now i want to retrieve data in the user profile page ....which means the particular logged user will get to know their personal information....how do i do it???plz help n.b:the database has 1 table only where EmailId … | |
Hello buddies, I have two datagrid views on my form. The first datagridview is bound to a table named contacts. And the second one is bound to a different tables say Group_members. Now My problem is that I want to add the selected row in DataGridView1 to datagridview2. And later … | |
How can I use 'like' keyword with wildcard characters(*) in RecordSelectionFormula of crystal report? [CODE] rptdoc = new ReportDocument(); rptdoc.RecordSelectionFormula = " {View1.RefNo}= '" + textbox1.Text + "'"; [/CODE] I need to use 'like' instead of '=' ..... | |
Hello! I have written a program where you have to give the path to directories and files as input. Is it possible to enable any kind of auto-completion when running the program? Cheers! Dani | |
I am trying to run my program to test it. Actually I am trying to run second form to see it that its working properly or not. But it shows me error. First time I got this error message "Exception of type 'System.OutOfMemoryException' was thrown" & second time I got … | |
Palindrome is a popular title for programming training. You may compare a pair of chars in a string, or a pair of words in a String array. Many homeworks are made in this way. Further more, in Java we may play with all the speaking languages in the world, such … | |
Hello, I've copied a multiarray into another multiarray and can't figure out how to convert an int of 1 into an asterik which is ascii 42 I believe. I need help to replace all 1's to an asterik. I've tried static cast which my instructor suggested but I must be … | |
Hello friends, I am working on downloading script. its working fine in all browsers. but in IE when i click on download button its showing the size of every file zero bytes. I have done lots of googling but didnot find anything. Please help its very urgent. I am using … | |
Hi, my assignment asked me to make a 3 row, 7 column array that asked the user to input amount of food for 3 monkeys. 7 represents the number of days. It should tell the user the average, highest and lowest amount for this.. Here is what I've got so … | |
Hi guys, I'm looking for any help in converting image files to video files by reading a full image folder using C# .Net 2.0 onwards. thanks, Vishnu Shayan | |
Hi, I am using updatepanel in aspx with master page content, required validation control. IN that updatepanel I have one datagrid through that I am trying to insert a row. When I click that linkbutton then is shows error like "sys.webforms.pagerequestmanagerparsererrorexception. Error code: 405" . I tried with another project … | |
Hi I am having a requirement in my project where User press '.' in his num pad and he wants the character ',' to be displayed (dats bcoz he is French User). I tried changing the e.KeyCode but it is a readonly property. Is there any other way to change … | |
[code] if (infile != null) { infile.Close(); } if (reader != null) { reader.Close(); } //Creating a File Stream object to Open a file called FILENAME for writing outfile = new FileStream(FILENAME, FileMode.Append, FileAccess.Write); //Creating a Stream Writer with the outFile File Stream object writer = new StreamWriter(outfile); writer.Write("Income : … | |
Can you help me to start with them I cant find any information about them the exactly thing i need its Array of pointers where the pointers are pointing a menu like this idea below. Pls just help me with the syntax ... | |
I've got a program that has three different classes, all of which have their own pointer to an class called ObsFileName, who's main functionality is to store the name of an output file individual to the class, and return it with a function value(). All throughout the program, when a … | |
I have downloaded the new version of FullCalendar but it doesnt work on IE whereas it works smoothly in other browsers. Can anyone help me with this problem ??? | |
Hi All, I am Working in C#.Net Technology (Window Based Application).My Problem is that ,I Want to display a Image in DataGridView cell.Iam able to display different Images In different cell of particular Column,But my problem is that Iam getting the image of a Exact Size.What I wan is to … | |
I want to have a strip down the middle of the screen with my websites content as common on many web pages. I don't want to use background images to achieve the look, rather I was thing of having a div tag that would fill the entire height of the … | |
[CODE]import java.io.*; public class inout{ public static void main (String[] args){ int a; BufferedReader num= new BufferedReader(new InputStreamReader(System.in)); try {System.out.println("Enter a number: "); a = integer.parseInt(num.readLine()); System.out.println("THE NUMBER IS" + a); } catch(IOException e) {System.out.println("ERROR"); {}}[/CODE] [CODE]import javax.swing.*; public class jopt{ public static void main(String[]args){ int x; x = Integer.parseInt(JOptionPane.showInputDialog("enter … | |
hello can you help me what method to be use in searching integers in string for example if the user will input this string having integers. "jemz 123" how can i add the existing integers and what method to be use...please help me...hoping for your positive responds... | |
Hi.. im new to web development and we have to do a web development project as part of curriculum.. we are doing Airline ticket Reservation System.. one of the requirement in the project is user should be able to select a seat of choice,if available. I was wondering how to … | |
[code=mysql] SELECT * FROM fb.order LEFT JOIN item on order.item_name = item.item_name WHERE fb.order.order_status = 'Served' and tab_name='A' [/code] I have two different tables "order" and "item" which i joined using left join. In order table there is a column name called quantity and in item table, there is a … | |
As I know that .c is the extension format for c coding while cpp is the extension for c++. But I noticed that there are some c++ project use .c extension instead of cpp, is it both extension is supported in c++ compiler? | |
Bear with me, I'm new here and new to PHP...at first I thought it was just me, so I started trying to copy and paste example code I found online...but even that seemed not to work. I've tried this: [code] $to = "my@email.com"; $subject = "BUSINESS"; $message = "blah"; $headers … | |
How to do this structures, any Idea? Given a program segment as follows: #include <stdio.h> struct book { char title[80]; int bar_code; float price; } ; struct book BOOK; void INPUT (struct book *B); float DISCOUNT (struct book *B); You are required to write a complete program that includes the … | |
I just wondered if anyone had tried the new software yet or if anyone was planning to try the new certifications? Visual Studio 2010 is available and some of the exams are now available for programmers who wish to keep their certifications up to date. It is likely that other … | |
how can i make vScrollBar that will scroll panel?? cus i made a program and its realy important there ScrollBar without ScrollBar its won't be the same thanks | |
i need help in controlling mouse click in python. Example would be 'clicking File menu --> Save Us--> Save' on its own. I have this code for launching an app, for example a textfile. but i dont know how to control its mouse click. Advice please. [CODE]import os class LaunchApp: … | |
![]() | Hi, I am trying to find this string "QuickSearchResultsCOnfig" in a text file. The text file will contain this in several places. I need the following var QuickSearchResultsConfig = ['a','b','v','d','e 'f','f']; I need to replace the above with var QuickSearchResultsConfig = [['a',{hidden:true}],['b', {hidden:true}],'v','d','e 'f','g ']; My original approach: Store a,b,c,d,e,f,g … |
Hi, I was recently asked in an interview the number of processes that are created when I enter in a command that contains a pipe. For eg. If I enter the command: $who | tee /dev/tty | wc -l Could anyone tell me how many(which) processes are created and in … | |
Hello! I'm fairly new to Python. Hopefully you can understand what I'm trying to accomplish here. I'm making a GUI that prints Parking Garage Tickets. I want to be able to post an expiration date on the ticket. I found out about timedelta, and it works if I put in, … | |
I'm creating a linked list,adding the data I've read from file in each node but as I'm trying to print what I hold in nodes my output is some symbols.And even when I cout what I hold in my nodes in ADD function it's ok but as it goes to … | |
Hey- First time posting here so hopefully I explain everything correctly. [CODE] class sendbackcurricula(app.page): def GET(self): query = models.Curricula.query.all() map = dict() for x in query: x = x.to_dict() map[x['owner_id']] = x['title'] return json.dumps(map); [/CODE] The above code will return the last element held in the database at 'owner_id' and … | |
[CODE=java] public int decrypt(int num) { int number = num; // Encrypted: 4523 Original: 5678 int d0,d1,d2,d3; d0 = number%10; // 3 d1 = number%100/10; // 2 d2 = number%1000/100; // 5 d3 = number%10000/1000; // 4 d0 = (d0 < 3) ? d0 % 10 - 7 : d0 … | |
Pretty interesting problem about linked list. This program is about autobuses. Each autobus is given by brand, registration number, number of seats, kilometres and year when the bus was made. The program is organised as menu and when you hit number it calls some function. Problematic function: it should NOT … | |
Hi, I have one client applicaiton writtn html, java script and AJAX and a remote server where I have a php script. Browser and remote server are deployed on two different machines. I want to execute php script uing ajax call with below code but it is loading php page … | |
Hi , How do I write a code that will print the first 10 even numbers in PERL Thank you | |
Hi, I´m new in forum. Im trying to change one project made in Oracle Forms/Rerports to CFML. I did somethings in CFML in 2003 and now I will return to it because I need time and dont want type lines of code. I have installed Railo and Eclipse and now … | |
Hey, I have been working on a class to use for pagination and I ran into a problem. I have a function that sets the variables that I will need, then I access them in the other funtions. For some reason one of my functions can't access any of the … | |
Hello, This might be an easy solution for you guys, but I'm learning php on my own and I'm having problems with this code. Its giving me an output of what I want but I'm also getting this error "Notice: Undefined variable: construct in C:\wamp\www\search_exp\data.php on line 27" the line … | |
My page contains a date picker. so when i select a date, a table with list of images uploaded on that date wil be displayed.so for that i used ajax. so here is my problem wen i select a date, table appears and in that table a dropdown of users … ![]() |
The End.