64,152 Solved Topics
Remove Filter ![]() | |
Hello everyone, I'm a frequent reader of a lot of software dev forums on the interent when I go searching for solutions for problems. But it seems like I always keep coming back to this one because it's correct. But to start off, I made a little app that has … | |
I want to make a program that outputs something like: Enter integer: 117 117 is lucky! Enter integer: 1003 1003 is not lucky! So, if the integer entered contains at least one 7 in it, it will output is lucky! And if it doesn't it will output the is not … | |
I made a game for my project. it contains two levels and a welcome screen. The problem is I cant go to the other panels. I tried using cardlayout. but since my panels are in different classes, I don't know how to do it. Please help. here's part of the … | |
Hello, I've spent hours but can't seem to figure out how. This is the question: modify the program so that the prompts that ask the user to enter a transaction include the number of the transaction that should be entered next. Here's what the prompts should look like: Enter quiz … | |
HI I am developing a part of asp.net web site as a training project. My part is creating authentication structure and authorization. Can any body please tell me are there any way to do this except using sql membership provider. Because we have to implement according to the class definitions … | |
[QUOTE]hi friends i have facing a problem [CODE=php]<? define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'lang/'); define('DEFAULT_LANGUAGE',''english); ?>[/CODE] these are code use in configure.php it is use in index.php with following code[CODE=php]<? include_once(DIR_WS_LANGUAGES.DEFAULT_LANGUAGE.'.php') ;?>[/CODE] now i want to use this with select language i select language [CODE=php] <? if(isset($_GET['flag'])){ if ($_GET['flag']==po){ echo … | |
Hi. I have this codeline: [CODE=c]fprintf(file, "The\necake\nis\na\nlie");[/CODE] When I compile and run in Linux it outputs nicely like so: The cake is a lie but when I compile and run in Windows (Vista), using cygwin, the newline doesn't work and output is like this: Thecakeisalie Anybody have an idea why? | |
Hi guys. im new in this forum, getting used to python+turbogears and already have a doubt. i have a sql statement to do , that uses "like" . for example: sql = db.text("select name from users where name like '%Fernando%' and dt_birthday='%s'" %(dt_birthday)) and the server gives me the following … | |
I created a program using Visual Basic 2008 . I want to use "Setup and Deployment Project" for deploying my [COLOR="Red"]Windows Application [/COLOR] for Stand alone pc. I want to install my [COLOR="red"]windows application [/COLOR]on stand alone pc in this directory: c:\program\ My images in this directory: c:\program\images I have … | |
Hi all, The following code should link 2 tables, showing: student id, surname, firstname, study type, start year. However, its not :-). its just a white screen. ive got php5.ini with ERROR_REPORTING (E_ALL); in it but im still getting nothing at all. The tables definitly exist! have i missed something … | |
Can any help, please? Can anyone provide me with the basics of passing (interprocess) a bitmap? Send & Receive in C# CreateFileMapping, I belive, is still the only way to do this. I'm not sure how you deconstruct/reconstruct the bitmap. Many thanks in advance. | |
Hi all! I'll keep this post a little shorter then I normally do, lack of time to post and all of that. I am making a widget-type program. You know, no borderstyle, no taskbar, opacitycontrol, stuff like that. It's going to be an RSS-aggregator by the way. Now for my … | |
Hie guys, Iam developing a java web application which uses mysql as its database engine. Now I would like to use the hibernate and spring frameworks together. The problem I nam facing is in configuring the various beans and establishing a clear relationship btwn the two frame works. If any … | |
Hi.. How do I check the data type in an input file ? Suppose my text file looks like this. Tab separated :- [CODE] 123 456 ABCD 789 890 EFGH 298 764 IUHJ [/CODE] Now I read the file like char or string in my while loop using getline. So … | |
In my application an error massage comes when the required data fields are not filled. I did it as, [CODE] if(component.getSelectedItem().equals("")|description.getText().toString().equals("")){ JOptionPane.showMessageDialog(null,"Please insert required details \n ","Error",JOptionPane.ERROR_MESSAGE); } [/CODE] the problem: When I click "OK" when this massage pops up, it closes the entire window. How can I avoid it. … | |
Hi guys, i created database backup, but now i want it to backup every time when the time is 00:00. Any help will be highly appreciated. | |
I am creating a diamond but I am having problem. Right now, my output prints out 2 triangles underneath each other (is not displaying in the post correctly). I want to flip the 2nd triangle around to create a diamond shape. However, when I try to mess up with counters … | |
Every time I try to save data to my contacts database I get an error. The script runs fine, but when it come to clicking save I get this error. Traceback (most recent call last): File "C:\Users\Panic\Desktop\EminentGeekTechnology\Looking For Who\addnew.py", line 71, in OnSave self.database.execute('INSERT INTO contacts (fname) VALUES (null,?),' [fname]) … | |
Thanks ahead of time for reading, and any help you give. Basically I have a integer "numExs" that is initialized by user input. Then, I use a [B]for[/B] loop to output the appropriate number of X's, as dictated by the "numExs" integer. However, I get a C4700 warning that "numExs" … | |
So, I have a rather simple question today. I'll try to explain it by using an example. Let's say there is a line of HTML in the page "www.mywebsite.com/py" that says "<tr colData0='Friday'>". However, this line of code can change to be "Sunday", "Tuesday", etc. What would be the easiest … | |
I'm having an issue with a program that prompts a user for a date and then validates it. It requires a switch statement to validate the day and at least 2 Boolean variables. My problem is with either of those or possibly both. I'm honestly guessing both since I'm still … | |
Standard telephone keypads contain the digits 0 through 9. The numbers 2 through 9 each have three letters associated with them, as indicated by the following table: Digit Letter 2 A B C 3 D E F 4 G H I 5 J K L 6 M N O 7 … | |
I want a file uploader,that doesnt cause post back in asp.net 2.0. With some googleing i found that if i set traget of the form to an iframe on the same page,i can avoid post back.But when i try this the page is getting opened in new window.(ie7 is the … | |
I am trying to find out if the Auxiliary carry flag only turns on when the 4th bit carries out from the 3rd bit or if it will turn on for the 7th to 8th bit aswell. This is what I did already: mov ax, 0Fh ; this is the … | |
What could make a query run fine from the command line and return the expected results, but not return results when run through the page? I get no syntax errors, just a warning for the fetch_array. It all looks good to me, I'm stumped. I echoed all the variables immediately … | |
iam trying to extract a individual character. for example, during run time the user enters 110111 as input. can any 1 help me with the code to extract these input and store them in an array as individual elements. | |
First my skill levels: I was over the moon when a friend donated his Trash80 to me, complete with manuals, oh so many years ago.. I got a glimpse into the PC world and later embraced DOS programming..:) As windows came into the picture I left behind my 'boyhood' knowledge … | |
Hi, There is a lot of code - so I have attached the entire thing as a zip file. This is for a function plotter. Basically, I need to track the changes in the root window size so I can resize the canvas and redraw all the plots. I'm very … | |
Hello I am new to DaniWeb and this is my first Thread. I am currently trying to develop a bot for the Game DarkOrbit. I used WPE Pro and I found out that I could controll the Spaceship by sending specific Packets (I have some Packet codes already). Well heres … | |
Hello! I was wondering if it were possible for me to have a PHP script which would send a line of charactors to my C++ program. The C++ program needs to run all the time to recieve the inputs from PHP. Both the C++ program and my webserver is on … | |
Hi All, i am trying to write an application that will take an XML file that has been saved from an XLS spreadsheet and display the data. I will be ok with how to display the data i just dont know how to get the data from the XML. I … | |
I'm having a small problem. I've created a binary tree that represents an n-ary tree using the left-child and right sibling syntax. I know that preorder on the binary tree gives you the same result as if the tree weren't binary. But, how do you change postorder and levelorder so … | |
How to limit access on my page to unregistered visitors? Like that they can't open forum or users profiles? | |
Hello everyone, I am having a slight problem in my function "startGame". My code works on Bloodshed and the code does compile. I am trying to refine the part on making sure that only a number gets input and not a letter or any other key gets input. I have … | |
[code] import java.util.Scanner; public class LazyDays { public static void main (String[] args) { Scanner scan = new Scanner(); int temp; System.out.println ("What is the current temperature?"); temp = scan.nextInt(); if (temp < 20) { if (temp > 95) { System.out.println("Go visit our shops!"); } } if (temp >= 80) … | |
hi all im trying to find out where the hack php5 is installed on my computer.. its not on /usr/bin/php5 im trying to run a php script with the ./ command. i searched php5 on my computer and enter this code at the begining: [code] #!/etc/php5/apache2 [/code] etc... allways get … | |
I've googled this and it looks to me like what I am trying to do is impossible. I'm trying to write a [ICODE]Display[/ICODE]function that can take different parameters and call the appropriate function based on those parameters (i.e. function overloading). I've read that C doesn't allow this, but I figured … | |
Hi ive been experimenting with basic calculations and using scanf to be able to enter an integer, if i give numb_1 a value it will divide and calculate the remainder fine but i cant get it to work by being able to enter a number, it just sits on the … | |
Hi All, I'd like to declare a static array in a header file. Is this possible? I assume there is a fairly simple solution to this, but I have not been able to find documentation on the correct syntax for this. Just to be abundantly clear, I'd like to do … | |
i am trying to learn servlets so i downloaded tomcat server.I learned that i have to do this...set path=c:\tomcat\lib\servlet.jar or click the exe file tomcat6 in the bin folder. I tried to connect with localhost8080 it is not working.I am not getting Tomcat home page. Any help will be great. | |
i got this javasciptcode: [CODE]<script type="text/javascript"> window.onload = function(){ var now = new Date(); var hour = now.getHours(); var vwimg = ""; if(hour < 19 & hour >= 6){ //Daytime(6h - 19h) vwimg = "http://www.whatever.com/link1"; }else if(hour <= 24 & hour >= 19){ //Night (19h - 6h) vwimg = "http://www.whatever.com/link2"; … | |
dear experts, I just want to wave the last digit of each cell's value like 20001 should like 2000 using ms excel 2007. please consider this table: 20001 2000 20011 2001 20021 2002 20041 2004 20042 ???? 20043 20044 20045 20046 20051 20052 20053 20061 20062 20063 20071 any help … | |
Hi, I have a problem. I basically have this python code, that generates a file. I'm trying to get it to output a html file with a chosen name (chosencategory) but the problem is the chosencategory variables are already defined so it attempts to name the html file the contents … | |
Hello, I would like to be able to add 'n' columns programmatically and SET THEIR TITLE as I add them. I have 2 questions: 1. How can I change the title? (not by seting a model to my table but just 'changing a property' - if possible)? 2. Is there … | |
Hi everyone, I'm trying to compare list iterators: [code=c++] list<int> l; list<int>::iterator lb = l.begin(); list<int>::iterator le = l.end(); if (lb < le) //here I'm getting error - no operator match these operands: { //do something } [/code] And when I change this that instead of list I have vector … | |
hello to everyone, I have this code as a Grading System, but whenever I press a key on my keyboard, it shows Not a Number or NaN! Please help! I need this by two days! Please! :( [code=html]<html> <title>Grading System</title> <head> <script type="text/Javascript"> function totalM() { QM1 = parseInt(document.average.QM1.value); QM2 … | |
hello all, I hope someone is there to help me out this. I am spliting a text file. and after splitting I want to concate the string 1 and string2 and string three and thereafter the normal string 4 ,5,6,7,8,9,10 etc. But when I debug the total string I got … | |
Hi, We can code this way to print something if Exit button is clicked. [code] <form action="process.php" method="POST"> <input type="hidden" name="hiddenName" value="Jolly" /> <input type="submit" name="submit" value="Exit" /> </form> if($_POST["submit"] == "Exit") { echo $_POST["hiddenName"]; } [/code] What about if we use this way. How do i check if Exit … | |
Hi, I am doing network programming in C. I want to send Hexadecimal data between client and server. But stuck how C handles Hexadecimal values? I would like to put and example. I am having a variable ACK_CODE 0*81. Now want to send it. Since the send call can only … | |
just trying to create a person(or two) using name, age and nationality but its giving me illegal start of expression error // **************************************************************** // Person.java // // Person class with two constructors // *************************************************************** public class Person { private String name; private int age; private String nationality; // ------------------------------------------------------------ // … |
The End.