199,114 Archived Topics
Remove Filter ![]() | |
Hi there,, I am trying to get my hea around this simple line of code and trying also to make it work. The ball doesn't move to any direction.. thanks for the help.. <script type="text/javascript"> function moveRight(){ document.images['ball'].style.left = parseInt(document.images['ball'].style.left)+5 +"px"; } </script> </head> <body> <img id="ball" src="ball.jpg" alt="ball bouncing" … | |
Dear All ! Please Correct my SQL String. sqlcmd = New SqlCommand("Select top 10 Distinct[Batch No], [Item Name],Decentralization, UOM, Balance from Decentralization order by Serial desc", conn) When I run this Command I get Following error : incorrect syntax near the keyword 'Distinct' | |
So I want to make a web based text game. But know nothing about coding :D I'm pretty sure php would be the best to do it in but not sure, either way were should I start? | |
Hey guys, I had a quick question. Let me try to explain what I'm trying to do here. I'm a bit new to numpy and I'm writing a parallelized code. It is working fine without the use of NumPy, but I'm trying to learn by getting it to work both … | |
//:How do I convert to string? C++? pragma once #include <iostream> #include <fstream> #include <istream> #include <string> namespace testrun1 { using namespace System; using namespace System::ComponentModel; using namespace System::Collections; using namespace System::Windows::Forms; using namespace System::Data; using namespace System::Drawing; using namespace System::IO; using namespace std; private: int total; #pragma endregion private: … | |
I want to add squares onto a jpanel one at a time after a delay . My program works fine until I tried to change the background color with setBackgound(). It didn't change. I worked out I have to call super.paintComponent(gr) in my paintComponent method. But when I do this … | |
1. I have some question regarding inserting two panels from a class to a JFrame from another class, both having same package of GUI. How to do this? 2.And how to make JFrame to display different panels during application run? Example, I have a JButton in class A which after … | |
Im brand new at python and am trying to teach myself through a book. Im trying to run a very simple command but I keep on getting a syntax error. If someone could take a look at it and tell me what im doing wrong I would greatly appreciate it. … | |
Hello everyone I have been learning about Web system design and I'm in a kind of interest,attached is my 1st web page so far with some little css and javascript.But I cant make my Scroll Down Navigationbar work properly it just stuck without annimating on mouse over effect can any … | |
Hi, I'd like to create a perl script that takes two input files, one being a master list of users/attributes, the other being a newly uploaded list. I'd like two output files, one being a file with new users (not in the master list) as well as updated users (changed … | |
I need help with this code: <?php $a = json_decode(file_get_contents('http://www.ace-spades.com/serverlist.json'),true); $n = count($a); for($i=0; $i < $n; $i++) { echo 'identifier: ' . $a[$i]['identifier'] .' count: '. $a[$i]['count'] . "\n"; } ?> I need it so that it doesn't display this: http://www.aosserverhome.hostoi.com/servers/servertest1.php I want to use that data and only … | |
Quad Tree is a tree with four pointers like North East, North West, South East and South West. Its used a lot in region query. Is there a way where I can find the min and max nodes a quad tree using some trick or is there some standard formula … | |
I'm doing a program, and trying to find the @, going back to the beginning to search for valid characters, and when I find an invalid one I move it forward to valid one. Same goes for the end, except just leaving it at the invalid character. My program compiles, … | |
Hi. I am trying to search for text on a page. This is the page i am searching: http://www.ace-spades.com/serverlist.json. This is the code I have: <?php $link = "http://www.ace-spades.com/serverlist.json"; $linkcontents = file_get_contents($link); $needle = "ServerIP"; $numofplayers = //I need help here if (strpos($linkcontents, $needle) == false) { echo "<center>0/12 Players … | |
Hello I have a quick question. I can launch javascript code like this through arrays: arrayLinks[13]="javascript:LaunchKeyboard()"; ** but how do I launch jQuery code through an array?** arrayLinks[8]="??????????????";` My jquery code is $(function() { var ele = $('#div1'); var speed = 25, scroll = 5, scrolling; $('#scroll-down').mousedown(function() { etc } … | |
i have a function in a module that requries integer values. these values are set by the user typing in two textboxes on the form. the texboxes contain Hexadecimal data in string form. function: Friend Function addNewCode(ByVal Location As Integer, ByVal Opcode As Integer) As Boolean If (Not LocStack.Count < … | |
Hi there, In my program i have given the user the possibillity to add new buttons to the form I then serialize the form to a xml file so it is saved. Any data that is edited while the program is running will be saved (for example user edits the … | |
I am trying to setup what would be a tabbed order form witch would also contain a jquery image upload and preview function. However what is happeing is if I just have the jquery code for the tabbed content function the file works but when I add the jquery code … | |
i going to make socket application in c# i dont know more about socket but i have tried but fail . now i want know some more information plz share with me. 1)my server is located in other city . 2)what type of socket i need TCP or UDP ? … | |
hello! i am developing a simple application which will get data from different database like mssql , access , foxpro , and after getting data it will create 4 text files tows.txt , customer.txt , product.text , trasection.txt , prob is this that i am very new to foxpro , … | |
My assignmnet is to read a csv into a structure. A few sample lines of the csv look like this: 21, John Henry Blue, 6598 Wish Street, Elves, CA, 54862 9, Chad Vile, 32 Bundle St. , Carver, IN, 28105 I can't use pointers, except to point to the file … | |
I'm really not into obj-c, it's not a very intuitive language, and c++ is what I know and it's much cleaner. However, I do want to get started in making iphone apps. Is there anyway I can do this in c++? | |
hi all, i had a image upload option where i can upload images.Now how do i select multiple files and upload them... [CODE]<form name="upload" enctype="multipart/form-data" action="fileupload.php" method="post"> <table> <tr> <td> Upload Images: <input type="file" name="imageupload"> </td> <td><input type="submit" name="submit" value="Submit"></td> </tr> </table> </form>[/CODE] when i click browse button i can … | |
#include <stdio.h> #include <stdlib.h> #include<string.h> void main() { char a[200],n,c,b; int i; printf("enter the new string: "); scanf("%20s",a); printf("enter the character to be replaced: "); scanf("%20s",b); printf("enter the new character: "); scanf("%20s",c); for(i=0;a[i]!='\0';i++) { if(b==a[i]) { a[i]=c; } } printf("%s",a); } i have 0 errors when compiler starts to work.it … | |
Hi peeps, I wonder if you can help me at all undertanding this code. Unfortunately I don't have it live anywhere, it is something I have seen somebody working on Here's the code and I will explain breifly what it does and what's not clear (which needless to say is … | |
#include <stdio.h> #include <stdlib.h> void main() { char a[100]; int i,c=0; printf("enter the text: "); scanf("%20s",a); for(i=0;a[i]!='\0';i++) { if(a[i]==32) { c++; } } printf("number of spaces in text is %d",c); } ascii value of space is 32 but it shows o spaces in output | |
Hello im new in python and have a small project to do . my project is cms detector in python at first its in consol and does not has gui . because of im a newbie in programing i dont know how to begin the project . is there any … | |
![]() | hi... typdef char * hello; const hello ptr1,ptr2; So, in this snippet, my question is that what is constant ? is ptr1 constant or the value to which ptr1 will "point to" will be constant ? and will u please give reason also? my thinking: const hello means (const char … |
![]() | hi, #include<stdio.h> int main() { const int i=10; int *ptr= (int*)&i; printf("%d",*ptr); *ptr=11; printf("%d",*ptr); printf("%d",i); getch(); return 0; } in this, we trickly changed the value of a constant variable. how is it changing the value of i ? in the o/p it is giving o/p , value of i … ![]() |
![]() | hi, int common(node *temp,int c,int d) { int a=0; if(temp==NULL) return 0; else if(temp->a==c || temp->a==d) return 1; a=common(temp->left,c,d)+common(temp->right,c,d); if(a==2) { printf("%d\n",temp->a); // break; return 0; } else return a; } this is my recusrion code. Actually, I want to end this recusrion process by adding some statement where i … ![]() |
Hi all I've been asked to write a C++ program that the user enters a five digit integer. The program then needs to return how many zeros in the number, how many odd numbers and how many even numbers. I've set it up to %2=0 and %2!=0 to determine if … | |
![]() | hi, int arr[2][2][2]={1,2,3,4,5,6,7,8}: int *p,*q; q=(int*)arr; printf("%d",*q); my question is that how is it giving output as "1"(ofcourse, without quotes). what will change if i don't typecast arr in 3rd line of code? will anyone please explain.Is it giving o/p "1" ,just because of that typecast ? my thinking: as … ![]() |
hello ! i am now working on office management system. i have a code to disable the usbport , i want to use it in win7 , before this i already used it in other project on windows xp , it works fine , but now in windows 7 it … | |
I am new to c++ language, and i am stucked with this que. my teacher told me to write a prog. that will calculate (1)square-(3)square+(5)square-(7)square+(9)square.............so on using for loop can you help me. | |
This is a very simple statistics script that provides for services on/offline, memory info, server load averages and uptime and lastly drive info. Its easily customised and i have usef <font> alot where you could have set come css and have it all done easily and look a bit more … | |
I installed Drupal 6 in my web root folder...now for my facebook app (in PHP), I have kept that App folder (non-drupal-folder) under the root....but when I try to access that app either it shows index page for drupal site or sometimes error "Page not found"...I tried to edit .htaccess … ![]() | |
hi everybody, i wish everything is okey? my question is how i can the value of textbox show on colums in datagridview , my textbox read data from DB ?? thx before... | |
Hi, I am displaying the values in Datagrid using VB.Net , SQL, i places add button below the grid , i want to add a new row when i click that button, i tried but didnt work can you assist? | |
Hi all. Please help. How is it possible to transfer a variable from PHP to JavaScript. I have the following code. <?php $id = 5; ?> <script>window.location.href = 'view_topic.php?id=**VAR**'</script> Instead of VAR should come the value of $id from PHP. Thanks in advance. | |
Hello to everyone, Im a beginner in vb.net and currently Im developing a "reminder" program, the user inserts a task that he as to do, the date and the time to be remimbered! Im saving the task in a txt file like this, "Make dinner,Reminder,24-07-2012 18:31:00", but line by line, … | |
I wonder why whether I fill in the recaptcha or left it empty, I still receive the e-mail message. We've received your contact information <div id="form"> <form action="kontak_action.php" method="get"> <table border="0"> <tr align="left"> <th>Nama :</th> <th><input type="text" name="nama" size="25"/></th> </tr> <tr align="left"> <th>Email :</th> <th><input type="text" name="email" size="25" /></th> </tr> <tr align="left"> … | |
Hi, I am writing a Silverlight Bing Maps based application and I am trying to merge two (and more) polygons. The approach I am using at the moment is the following: The geometry for the polygons is stored in a database, and Im writing and reading from it through a … | |
I am having trouble getting this example to work. I posted exactly like it is put on the google documentation but it just won't work for some reason. Some please help me, am I doing something wrong. The link to the documentation is https://developers.google.com/youtube/iframe_api_reference#Getting_Started The code I am using is … | |
Below is part of my code for a simple java game. I am trying to keep the most recent 10 scores and names of the game in the prevScore and prevScoreName arrays. Both return statements in the method come up as errors, saying it requires int[] and what is found … | |
hello.... 1. how does one link a 2 radiobuttons in c# 2010 to the same column in ms sql 2005 2. what could be the problem when one tries to enter data from texboxes in c# 2010 to ms sql 2005 but its not reflecting? 3. what is the syntax … | |
While lunching the application in TOMCAT 5.5 and JDK 1.5 I am getting below exception could some help me in resolving the issue Jul 25, 2012 4:12:50 AM org.apache.catalina.core.ApplicationDispatcher invoke SEVERE: Servlet.service() for servlet jsp threw exception java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Ljava/lang/String;ZLjava/lang/String;ZZ)V at org.apache.jasper.compiler.TagLibraryInfoImpl.createAttribute(TagLibraryInfoImpl.java:572) at org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:401) at org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:248) at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:162) at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418) at … | |
HOW DO I DEBUG THE FOLLOWING An explicit value for the identity column in table 'tblApplicant' can only be specified when a column list is used and IDENTITY_INSERT is ON. | |
Hi, Can any one provide me small code or way how can I read the below XML file in PHP. <Countries> <Country> <Page1_col1>Country1</Page1_col1> <Page1_col2>89,921</Page1_col2> <Page1_col2>61</Page1_col2> <Country_sub_details> <Page2_col1>A1</Page2_col1> <Page2_col2>1,187</Page2_col2> <Page2_col3>45</Page2_col3> <Country_sub_sub_details> <Page3_col1>AA1</Page3_col1> <Page3_col2>375</Page3_col2> <Page3_col3>45</Page3_col3> </Country_sub_sub_details> </Country_sub_details> </Country> </Countries> I am not aware about the XML libraries in PHP. | |
I am using VB2008 fr my project , I am having an error while inserting data in the sales form The error is;:__ "Number of query values and destination fields are not the same". Here is my code-: Dim sql As String sql = "insert into sales (SalesId ,PropertyNo, SellerNo, … | |
I have a Query string > { "id": "105201322211272730088", "name": "Rayidi Radha Krishna", "given_name": "Rayidi", "family_name": "Radha Krishna", "link": "https://plus.google.com/105201322211272730088", "picture": "https://lh3.googleusercontent.com/-UTEdowBnUUE/AAAAAAAAAAI/AAAAAAAABd0/FrCv9VX1Pp4/photo.jpg", "gender": "male", "birthday": "0000-09-23", "locale": "en" } I want to convert this Query string to an array. thanks in advance. |
The End.