199,124 Archived Topics
Remove Filter ![]() | |
Many people would probably think this question is stupid, but how can i insert a value that starts with 0 in a Bigint/Numeric/Int field? This would normally not be a problem, just using a varchar field instead, but because of the index speed (this is a very large table with … | |
Hi, I want to learn sql injection.I searched in google but the information is not sufficient to me.Will u provide some links to learn sql injection. thank u | |
I have a postgresql view on which I'm running the following query : [CODE]select count(*) AS "Assigned Calls" ,to_timestamp(createdon)::date from vw_issues where to_timestamp(createdon)::date>='11/10/2009' and to_timestamp(createdon)::date<'11/11/2009' group by to_timestamp(createdon)::date order by to_timestamp(createdon)::date[/CODE] when run in phppgadmin the result is displayed as Assigned Calls to_timestamp 20 2009-10-12 13 2009-10-13 etc... I need … | |
Can someone please explain the meaning of these return 1 vs return 0 vs break. I know 1 generally means true and 0 generally means false but how would they effect a return statement? Also when would you wanna use a return statement instead of a break statement and vice … | |
Hello, I'm trying to do the following program in JAVA. I find JAVA very confusing. Liked C++ much better. Anyway, here's what I'm trying to do: [quote] Develop a program for a small auto dealership. This program will keep track of the auto inventory using an object of the class … | |
hello I need C code to build a finite automata and NON deterministic automata translate to equal DFA. This is for my project please help! | |
Hello. I am having a problem with this certain code. Every call with this method (listI()) will return a node. After the list reaches null, it will go back to the start. On the first call on the tester, there is no problem. But when the method is called for … | |
I am trying to write a program that will work like a hangman game. I have a loop that assigns the characters to their spot in the string and is supposed to end if the newly assigned string equals the original word. If the letter guessed is correct, nothing should … | |
Hi, I'm having trouble getting my sendmessage function right. I want to send a click on a specific coordinate to the window. I know this is the api: [CODE][DllImport("user32.dll")] public static extern int SendMessage( int hWnd, // handle to destination window uint Msg, // message long wParam, // first message … | |
Hello Guys, I m Building A Chat Application..in which i have 2 different user types like Admin & Merchant...I Have Taken User type A for Admin & M for Merchant...First I have Created Only Single LogIn Form for both user types & given DropDown So that If He Selects Merchant … | |
Ok I'm trying use scrapy (python module) to get stats off [URL="http://www.nfl.com/stats/categorystats?archive=false&seasonType=REG&statisticPositionCategory=RUNNING_BACK&d-447263-o=2&conference=null&d-447263-s=RUSHING_40PLUS_YARDS_EACH&experience=null&d-447263-n=1&season=2009&qualified=true&Submit=Go&tabSeq=1&d-447263-p=1"]Here[/URL] and I got the Xpath using Xpather plugin. [CODE]/html/body[@id='com-nfl']/div[@id='doc']/div[@id='doc-wrap']/div[@id='main-content']/div[1]/div[2]/div[1]/form/table[@id='result']/tbody[2]/tr[1]/td[2][/CODE] The prob is that the TRs contains all the players and TD inside TR contain all the stats. What Xpath do I use or how do I loop through … | |
hai to all, i am new to php , can u tel how to calculate a no of posts for a particular title . i have a table post project in database it has a 8 fields id , name ,title ,category,date ,description,cat id(category id),no of posts. and how to … | |
I'm trying to create a program in C# that allows for arithmetic of Complex Numbers. Just adding, subtracting, multiplying and dividing. Anyone got any suggestions? | |
Hi. Im working on a text-based "game" that uses strings to generate maps. So I need to split these strings into bits that i can work with, but somehow the .split method kills the white space in my string. How can I get around this? Of course I can force … | |
I have made a window application using Visual Studio2008,C#,MS Access database. In my application there are three tables "country","state","person" .On the form,there are 2 comboboxes one for "country" and other is for selecting "state" , also a textbox for entering the name of a person for each country-state pair. Now … | |
is there any place i can find some Open Source cell phone code written in Java, where i can use a IDE and check it out and maybe even test it on my phone? | |
Hello all, When I try to compile a small program I am getting an error that I do not quite understand. I get this error: media_tracker1.c: In function 'add': media_tracker1.c:152: error: expected expression before ';' token when I try to compile this code: [CODE= "c"] #include <stdio.h> #include <stdlib.h> #define … | |
Hey all, Im new to php but i have made a registration page, only thing is i need to make a login. The hard part is I want to show the login box to un-logged in users and say "Welcome USERNAME, Logout" to logged in users. I know there will … | |
I have to write a program that accepts a pointer to a c-string as its argument. The function should return the charater that appears most frequently in the string along with the number of times it appears. for example, if i input "hello dolly" the output would be: "l sppears … ![]() | |
hi, I have a problem with BST. For example after the insertions of below numbers, 23 1 45 2 3 5 52 234 31 The output should be like this way: [B]23[/B] [B][/B][B]1,45[/B] [B][/B][B]-,2 | 31,52[/B] [B][/B][B]-,- | -,3 | -,- | -,234[/B] [B][/B][B]-,- | -,- | -,- | -,5 … | |
hello please help me on this...i have txt1.text that can input only pcs and ream ..my problem that if the user will use the uppercase PCS it will not accept because my trapping is.. if Trim(txt1.text) <> "pcs" and Trim(txt1.text) <> "ream" then msgbox "please input pcs and ream" exit … | |
Hey guys i have the following code and i need to be able to look through a section of html and pick out all the elements that have the classname cmsedit. The code below does that however if the element has new lines or tabs in it ect the the … | |
Hi everyone, I have a query as - [COLOR="Red"]select DateName(Month,Date), avg(NetAmount) as AverageCustomerBill from salesmaster group by DateName(Month,Date)[/COLOR] which gives result as follow - [COLOR="Green"]April 451.5664 August 432.6227 July 441.1437 June 429.9915 May 423.7198 November 407.4123 October 425.1684 September 416.3678[/COLOR] As u can see here Months are not in proper … | |
HI, I am new to mysql i want to know why mysql have autoincrement with keys.. Is their possible to declare only auto increment to a column. | |
Hai, In one of my project I found a serious bug with session. In IE and Firefox It works fine but in Opera and Safari ... it doesn't working. I will give the testing code which I wrote Page 1 ( index.php ) [ICODE]session_start(); $_SESSION['uname']="I_am_Rajeesh"; header('Location: two.php');[/ICODE] Page 2 (two.php … | |
[CODE]if(num/100>=1) { x=num/100; switch(x) { case 1: cout<<"one hundred "; break; case 2: cout<<"two hundred "; break; case 3: cout<<"three hundred "; break; case 4: cout<<"four hundred "; break; case 5: cout<<"five hundred "; break; case 6: cout<<"six hundred "; break; case 7: cout<<"seven hundred "; break; case 8: cout<<"eight … | |
Hi Friends, I have no clue how to solve following C++ question.I am a learner.Thank you in advance. Question -- Simulation and use of random/io libraries A recent New York Times article featured a report on the usability, stability, and effectiveness (or lack thereof) of current electronic voting systems. By … | |
here's another one that i've been struggling with. I need to create a phone number that can not have an 8 or a 9 in the area code. I thought it would be smart to simply generate the area code one number at a time .............. num1 = generator.nextInt(7)+ 1; … | |
hi all, have no idea.... if possible.... how to use dll file or other AjaxControlToolkit.dll file with php? | |
Hi frens, I couldn't compile this solution code given by my university on visual studio.Visual studio works fine with other C++ files. Here are the question and solution code pasted below.I wonder if anybody could try to compile the solution code on thier machine and see if they can run … | |
Hi all. Please edit/add/help me make this blackjack program work. Thank you. class Card: def __init__(self, suit, rank): self.rank = rank self.suit = suit if self.rank == 1: self.rank = "Ace" self.value = 11 elif self.rank == 11: self.rank = "Jack" self.value = 10 elif self.rank == 12: self.rank = … | |
I have to create a program that handles random birthdays between 2 and 50 students (depending on what the user inputs), and calculates the random birthday (1 to 365) and then determines whether or not students share the sam birthday, and how many students share it. I'm stuck on how … | |
I scrapped the other code about the student because it didn't make any sense. I was actually modeling it after another program I did last semester that was a Plasma gun program. Anyway I started over with the same requirements but new program. I am having similar issues with this … | |
Hi everyone, I have a form page where the customer enters their email address to see if they have forms available to download. Once they submit that I use the following code to see if they do indeed have stuff available: [CODE]<?php $email = $_POST['email'] ; $directory = "http://nycityliving.com/forms/" . … | |
i have some problems with mysql database query and its as below : Tables : i) departments id department description ii) farmers id name sex address age category remarks iii) scientists id departmentid name remarks iv) scientistvisits id scientistid farmerid datevisited purpose remarks Here, i want the query of number … | |
Hi, I'm new to PHP and I'm having trouble getting a prepared statement to work properly using a "dynamic" sort clause. I'm trying to create a generic function that accepts sortOrder and sortDirection as parameters. It works fine if I only use a single parameter (order by ?) but when … | |
I have opened an image using the PhotoImage method of ImageTk How do I close the image. This is the scenario is I am using it in. I have 2 buttons, one each to open an image from disk & image from url. When I open either of them the … | |
Hi guys I'm new to c++/openGL (used java a lot more) and have run into an issue while trying to write a program using an array. I have declared the array as GLfloat in the header file and then initialized it with a bunch of values in the constructor of … | |
I've read the documentation, but I still can't creat my own packages. How should the __init__.py look like? Cause i've tried to let it blank and some stuff like [CODE] my_package/ __init.py__ sub_pack/ __init.py__ test.py [/CODE] but it pointed syntax error If I don't write anything on it, no error … | |
![]() | Hi guys, I have a txt file in which each line contains information in following format: VELOCITY<100.0> LAT_1<N 00 00.0000> LON_1<E 000 00.0000> SIMULATE<false> I would like to write a C or C++ programm to select only the values of the words I need. I need those values to do … ![]() |
Hello guys. I am working on the code below. I am trying to create my own shell. The code compiles without errors, but when I execute it though it doesn't output anything. I have tried it with /bin/ls as input and it doesn't work. Any suggestions? [code=c]#include <stdio.h> #include <stdlib.h> … | |
I am writing a game program for a dice game. You want to get 100 points. You roll until you decide to hold, and the sum of your rolls is added to your total score. If you roll a 1 though, your turn is over and you get 0 points … | |
I couldn't see a more appropriate place to make this thread, and I can only think of ambiguous terms to google, like "Output Error Windows Visual Studio". The issue is, when I build my project (I'm using Visual Studio 2010, but I always had the same issue with VS2008), the … | |
import random class Card: def __init__(self, suit, rank): self.rank = rank self.suit = suit if self.rank == 1: self.rank = "Ace" self.value = 11 elif self.rank == 11: self.rank = "Jack" self.value = 10 elif self.rank == 12: self.rank = "Queen" self.value = 10 elif self.rank == 13: self.rank = … | |
How would I execute a command and have it's output returned as a list or string? For example (in Linux): [CODE]os.system("iwconfig")[/CODE] prints a list of wireless devices to stdout. How can I make Python see those results as a list or string so I can search for certain devices (like … | |
I want to run my programs in a traditional Dos based screen as opposed to the new text page that it's running in now. Does anyone know how I can do that? Thanks. | |
Appretiate some coursework help related to classes. All im trying to do is compare the elements of two objects [code] if(asteroid1.getxx == asteroid2.getxx && asteroid1.getyy == asteroid2.getyy) { cout<<endl; cout<<"Collision"<<endl; } [/code] All i want to be able to do, is to compare the x and y co-ordinates of my … | |
Hi, can anyone look at this and see why it doesn't work? When I test and enter a numeric value in the text box it still gives the error I have placed in the code, same if I put in a letter etc. Thanks!! :) [CODE]Private Sub valueDouble(ByVal sender As … | |
Hi, I have used a lot of makefiles to compile programs. The issue is, I don't know how to produce make file. Is it another "language" I have to learn or some automatic issue? Also what is short yet clea tutorial on that? Thanks | |
Hello everybody, I'm trying to get the user name using GetUserName() API function, it was sucessful in the console project however in the Visual C++ project it gives me this error: [CODE] 1>MyProgram.obj : error LNK2028: unresolved token (0A00000F) "extern "C" int __stdcall GetUserNameA(char *,unsigned long *)" (?GetUserNameA@@$$J18YGHPADPAK@Z) referenced in … |
The End.