199,114 Archived Topics
Remove Filter ![]() | |
Hi guys, I would like to add a char to the end of a char* So imagine the following: char* test = "ABC" I want to add D to the end of it to get test == "ABCD" for the sake of argument, I can not use strcat as I … | |
Hi, I have been ask to do this: Write a function wallOfEyes that takes three parameters (radius, width and height) and displays, in a window of exactly the right size, a “wall” of brown eyes of the given radius and dimensions. E.g., the function call wallOfEyes(50, 4, 2) should give … | |
I need a jqeury animate effection. when I click img1.jpg, img2.jpg will animate right 200px, but I have too many divs and other html elements, I tried many times, it also failed. How to write correctly? Thanks. PS: h1, the font is on the top of image, and b class="effect" … | |
Hi. I am writing a program to read user input numbers until '0' is entered. I then figure out if each number is even or odd and find the average of all the evens and all the odds (even average is one number, odd average is another.) I have it … | |
Hi all, I am a long time creeper on the forms and first time poster. Is there a way in C# to take data from a text box, and send the data out to a serial port? I want to use this method to bypass a bar code reader, which … | |
Hello, I am trying to debug a simple hello world program [CODE]namespace TestProject { public partial class frmMain : Form { public frmMain() { InitializeComponent(); } /// <summary> /// Function to create Message Box with /// with text "Hello World" /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void … ![]() | |
This is my second day with Java. So far, I'm enjoying it quite a bit. It has the structure of C++ that I like, and with so much more utility (lots of type conversion built in)! I've written a console program that allows a user to input text. That text … | |
I would very much prefer one that works with IE. My current code only allows for an element to become visible, but I would much prefer if it faded in. Thanks in advance, kids! [CODE]<html> <head> <title>title</title> <script language="JavaScript"> function fncShow() { document.getElementById('box1').style.visibility = 'visible'; } function fncHide() { document.getElementById('box').style.visibility … | |
I wish you all the correct code)) Hi) There was a problem reading the file. Actually, I want to read from file command for MySQL (originally, this team is destined for Orcle, but I think it will be right for MySQL). I think the problem in the encoding (I do … | |
hello: I'm working on this code that receives a variable via url and performs a mysql search for records using the value of the variable as the key word. I'm using the following code --which I'm currently using successfully on another section of my project, but experiencing problems in a … | |
I need an code to go this page: [url]http://steamcommunity.com/groups/KiFFERSTUEBCHEN/members[/url] And grab the data beetwen: [url]http://steamcommunity.com/id/[/url] and " [CODE]href="http://steamcommunity.com/id/otti">threeD</a><br />[/CODE] so it will grab in this case the word "otti" Theres a lot of lines like that, so i need a code that grab all the specified words of the page … | |
Hello, I've got a simple program where i'm trying to a Char array with a string, but even though the program in debug mode shows that the string Phone = Phone, it is not adding a new line when the string starts with Phone. Can anyone tell me why the … | |
Hi, Im trying to have a section that shows the Total and Quantity at the top after customers are logged in and if they dont have anything in their baskets/cart then show Total = 0.00 and Quantity = 0. The Codes work fine when the customer already has something in … | |
Hi! How could I create/delete a directory on the remote machine using FTPClient of org.apache.commons.net.ftp.*; ? The code used to save a file on the remote machine is shown below. But I would like to update it for creating/deleting directories. Thanks! [CODE] private void saveAttachedFileToRemoteMachine(String pathToFile, DefaultMutableTreeNode selectedNode) { FTPClient … | |
I have recently made a guessing game code and I am now trying to make it so when you enter a number above 3, it will give a print command that i will write. I don't need help on the print command, I just need to know what the string … | |
Hello I have a > b(for example) I need to generate random number x that belongs from a to b for example a = 9, b = 16 x has to be x > 9 and x < 16 I use cstdlib.. but can't guess how to do it (using … | |
Hi! I would like to get an advise about the following question. There is a set of text fields. The task is to generate a new JFrame and align text fields based on the information given, i.e. a row and column of each text field. Let's say there is a … | |
hello, i'm vasant...recently visited an online tutorial for creating java desktop database application here is the URL [url]http://www.netbeans.org/kb/docs/java/gui-db.html#running-outside-IDE[/url] ... everything works fine...when building and executing the application from within the NetBeans IDE..6.7 but as instructed in that tutorial...when I tried to run the .jar file after exiting the netbeans IDE, … | |
Hi, Im trying to make a caesar cipher, but a windows error comes up when running. Where have I gone wrong?? Sam [CODE]///////////////////////////////////////////////// /// /// /// NAME: SAM BERWICK /// /// DATE: 18/11/2010 /// /// PROJECT: CAESAR CIPHER /// /// /// //////////////////////////////////////////////// #include <stdio.h> /// Stand In/Output #include <string.h> /// … | |
Hi all, I am adding code to a SharePoint 2007 list where I want a calculated field to be a colored square based on a status column. I have all the code I need to create a colored round bullet, but I would like the bullet to be square or … | |
Hello, I am having some trouble with getting my menu to respond to a mouse click.I have 2 items on my menu, "New" and "Exit", and they are using the actionlistner like so [CODE] newFromMenu = new JMenuItem("New Screen"); newFromMenu.addActionListener(this); [/CODE] and then my action event [CODE] public void actionPerformed(ActionEvent … | |
So im putting together a program that decompositions numbers on prefactors. Example: 252=2^2 3^2 7^1 and 1944=2^3 3^5 Put this into tuples: (wont use split, just for example) >>> split(252) [(2, 2), (3, 2), (7, 1)] >>> split(1944) [(2, 3), (3, 5)] This is the code that determines whether a … | |
Hi Ive written my own MVC framework, which uses the mod_rewrite apache tool... first part of the url is the controller and second part is the 'action'... some of my controllers have functionality which is publicly available, and other functionality which i want to restrict to logged in users... i … | |
hai, friends i have problem in inserting image into mysql database using a small java program.... here is my code for inserting image into database............ [CODE] import java.io.*; import java.sql.*; class ImageUpload { public static void connection() { Connection con=null; Statement st=null; PreparedStatement pst=null; try { Class.forName("com.mysql.jdbc.Driver"); System.out.println("driver is loaded"); … | |
[B]<html> <head> <title>New Page 11</title> <meta name="GENERATOR" content="Microsoft FrontPage 3.0"> <script language="JavaScript1.2"> if (document.layers) document.captureEvents(Event.KEYPRESS) function backhome(e){ var targeturl="index.htm" if (document.layers){ if (e.which==104||e.which==72) window.location=targeturl } else if (document.all){ if (event.keyCode==104||event.keyCode==72) window.location=targeturl } } document.onkeypress=backhome </script> </head> <body> <p align="center">Hit The(H) key on your keyboard to send you to a home … | |
Hi All, I have a problem with a datagridview (7 columns) of which last 2 columns are combo boxes. The datagrid view was set in design view with column names same as a table called OccRecStaff but without a datasource. Although the datagrid view works perfectly for the first 5 … | |
I am doing a inventory assignment, I think I have completed the code, but when I try to run it I get <no main classes found> I am using NetBean IDE 6.9.1 It also tells me: Created dir: C:\Users\marilyn\Documents\NetBeansProjects\ClassPublicPayroll\InventoryPart1\dist Not copying the libraries. Building jar: C:\Users\marilyn\Documents\NetBeansProjects\ClassPublicPayroll\InventoryPart1\dist\InventoryPart1.jar To run this application … | |
I am calling the callAjax function in the HTML body as below : <center> <h3>Request Tracking System</h3> <table width="70%" border=0> <tr> <td width=100% valign=top> <table width=100% cellpadding=8 cellspacing=0 class=bord border=0> <th colspan=2> <button type="button" onclick="javascript:callAjax('m');return false;">Requests for me</button> </th> <th colspan=2> <button type="button" onclick="javascript:callAjax('o');return false;">All Requests</button> </th> </table> <br/><br/> <div … | |
Can someone please tell me why this code isn't working? I'm fiddling around with designing a site and trying to get my JS bearings down. I'm wondering why the second option isn't making the drop down list disappear. Thanks in advance! [CODE]<html> <head> </head> <script language="JavaScript"> function fncShow() { document.getElementById('box').style.visibility … | |
I want to make a button in a root window.My question is should i draw it or shoud i make a new window in my root window? | |
So basically it involves sodding scanf(). [CODE]int NumericalAnswer; int score = 0; main() { printf("Question 1: What's 4 x 3?\n"); scanf("%d\n", &NumericalAnswer); if (NumericalAnswer == 12){ printf("You got it right!"); score += 1; } }[/CODE] Output [ICODE]Question 1: What's 4 x 3? 12 9 You got it right![/ICODE] As you … | |
program is working fine on YES option but on NO option it does not return ? any one give me hint ?? this.addWindowListener(new WinAdapter(){ public void windowClosing(WindowEvent e){ String cnic1 = (String)cnic.getValue(); String name1 = name.getText(); String fname1 = fname.getText(); String age1 = (String)age.getValue(); String add1 = add.getText(); String pro1 … | |
Hey guys, I'm trying to code a testing app which will display questions on a JForm for a period of time. I need a way of keeping track of time so I know when the user's time is up. What should I use? So far, I've found these: [B]javax.swing.Timer[/B] [B]java.util.Timer … | |
i need to move[CODE]if(fright <= 45 && fright >= 35) System.out.println("Pressure is in range"); else System.out.println("Warning: Front right tire pressure is out of range"); [/CODE] to TirePressure but have it still print out right after i imput the tires pressure not after i imput them all and i cant figure … | |
For a homework assignment I need to make a stoplight cycle from red to green to yellow back to red. I tried using a thread.sleep method when I press a button to cycle through but it only goes to the last sleep & setColor statement. I know this is probably … | |
Hi! Does anybody know how to group JLabel and JTextField in order to get a single component? Thanks! | |
Hi All, My parent window is dash.html. From this i call a pat.jsp file which is a child window to dash.html. I wrote a function in dash.html function feed_refresh(){ getGlaceCompleteDashBoardResult(1); } this function `getGlaceCompleteDashBoardResult(1);` is included in a .js file in dash.html file. Now from the pat.jsp i call the … | |
Okay so in class my professor was going over this code: [CODE]class BinaryTreeNode<T> { protected T element; protected BinaryTreeNode <T> left, right; BinaryTreeNode (T obj) { element = obj; left = null; right = null; } // constructor BinaryTreeNode public int numChildren() { int children = 0; if (left != … | |
Hi all, I want to built tristate checkbox using Javascript. There is lot of examples for this problem.. All have processed with Images. But I want to use this with out image. Can anybody help me out of this problem? Thanks, Eagerly waiting Myl | |
Hey guys. Well I'm getting that irritating warning on my site when loading up a specific page. [CODE]Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/d6ayr7/public_html/webdevelopment.php:1) in /home/d6ayr7/public_html/masterpage.php on line 2[/CODE] I've encountered and solved this problem before by moving session_start() to the … | |
Hi, I have a C# pdf library called PdfSharp which I use to create PDFs. I have a page (print.aspx) which instantiats the class which creates the pdf in the Page_Load() event handler. for some reason when I am running this through IIS, the process for the app pool (w3wp.exe) … | |
Howdy Folks, I'm working on a program that does a bit of color-coding in a datagridview. My problem is that when a row is selected, the color-coding goes away since the normal behavior for the datagridview is to change the back-color to blue and fore-color to white. What I want … | |
Hi, I am using VB 2008 Express to connect to an Access 2007 database. I have a combo box named cboYEARMONTH that is populated by the database. I have this part working great. When the user selects a YEARMONTH with the combo box I want the SelectedIndexChanged event to initiate … | |
Hi everyone, I hope you can help me. I am using vb.net and trying to delete a row in an access database. Firstly, I find the row and confirm there's record. If there's a record I ask for deletion. I am using the values submitted via a text box. Here … | |
![]() | Hi all, i decided to try and make a php shopping cart with sessions and manged to do so with the help of online turorials and references. However, i decided to try and pass over multiple items form a table, but i must have gone wrong somewhere, as some of … ![]() |
Hi friends, any body just give how to call store procedure from php with mysql function not using mysqli function... | |
I have a compilation error using bluej java. Here is the code: [CODE]while input.equals(!"q")[/CODE] This is the error I get: '(' Could you please help me thanks :) If i add to a semicolon to the end like this: [CODE] while input.equals(!"q");[/CODE] I still get the same error. | |
Need a simple way to play a wav file on my form...HELP! | |
Hi, In a login.jsp page, I logged in by a user. Now by pressing the back button we can move to the login page also. If I log in this time by different user then old session getting reflected. How can I invalidate a session when we move to the … | |
hi.. i had developed ' [url]http://www.wooadvertising.in/[/url] ' this site using Jquery. when i use the another Jquery it doesn't work.. i am trying to solve this problem but i cant. can anyone solve this problem |
The End.