64,152 Solved Topics
Remove Filter ![]() | |
So far I've got this iframe to refresh every minute. What I would like to do is have the scr of the iframe be a variable. When the iframe loads to the main site if it find that the page cannot be dislayed then switch to the second site. I … | |
The title in and of itself is fairly descriptive, however, I am looking for some help. I am writing a program which reads the output of a command-line based program and puts that output to a GUI. Due to my need of asynchronous i/o, I have had suggestions to use … | |
Hello, I'm having a little trouble learning some python and I'd appreciate a little direction. One of the exercises in my books says to create a string list [CODE]list = ["a","b","c","d"][/CODE] Convert each character in the list to it's ascii equivalent and then populate that information into a new list. … | |
Hi All, I wrote a web service that I'm using to more or less move some files around. The client is written in python (uses the HTTP POST interface). If I put the client on the server, and do a test run everything is fine, but then from a remote … | |
I am inserting an int value using numericupdownvalue from a form to database, using the following code [CODE]SqlCommand cmd = new SqlCommand("insert into student where student_no='"+numericupdown1.value+"'",con)[/CODE] Now I have another form that is when loaded, will read the inserted value made by the numericupdown.value, using the following code [CODE]numericUpDown1.Value = … | |
In the following code how to fix problem that the batch file won't get created. When I run in debug mode exception I get is "could not find part of path" Thanks [CODE] StreamWriter sw = null; try { if (AgilentNVisaDriver.Checked == false && RequiredDlls.Checked == false) { MessageBox.Show("Please select … | |
I am having a problem spitting out text saved into a MySQL database and displaying it in an HTML form input field. The text will spit out fine unless there is a single or double quote, then the text is spit out until the quote. The text is all in … | |
Hello I am very new to Java and I really don't know exactly what I am doing. I know a little bit of other programming languages so I'm trying my best to figure it out for myself but I am supposed to: [B]Write a Java Application which will read a … | |
I was given a font finder program, but I need to resize the applet... any suggestions on where and what code is needed to fit the applet to a specific size? If not, is there a setting in eclipse that will work? [CODE] public Dimension getPreferredSize() { return new Dimension(800,800);// … | |
hi everyone i have image rollover code. and i want to add functionality, for ex-this scripts roll overs images (slides them) . i would like let it stops when onmouseover event here is script [CODE] <html> <head> <title>HTML ders | 09.07.2010</title> <script> var sekil1=new Image(); sekil1.src="bir.jpg"; var sekil2=new Image(); sekil2.src="iki.jpg"; … | |
I am trying to call a function from a link or button like the example below, however I would like to call the function whilst passing a variable along (not a string). I was wondering if this was even possible, if not what is another solution? This isn't my code, … | |
Could anyone please explain what is Idempotent method in Java? After google, what I found about this is [B]Idempotent methods are methods, which are written in such a way that repeated calls to the same method with the same arguments yield same results[/B]. And am not getting any example to … | |
Hello guys, im stuck working on a simulation program. I am working on a program which mimics a door's security key panel. In case if you have been wondering what a door's security key panel is.. its a keypad on the door which unlocks the door upon entering a proper … | |
[code] public partial class Form1 : Form { int row, col; int num = 0; public Form1() { InitializeComponent(); } private void generatebutton_Click(object sender, EventArgs e) { int rows = Convert.ToInt32(rowBox.Text); int cols = Convert.ToInt32(colBox.Text); for (int i = 2; i <= rows+1; i++) { for (int j = 4; … | |
Hi. I've got to write some code to get data from an XML document and turn it into C# objects. Problem is that the XML document will not always have the same nodes, since it is produced from a web form that people have filled in varying amounts of (which … | |
Hello! I am very new with Python, so it may be a stupid question. How can I get the height and the width of an image in pixels? Cheers! Dani | |
Hi all, I am having a problem when trying to compile this. from compiler: error: name lookup of 'pixel_number' changed for new ISO 'for' scoping error: obsolete binding at 'pixel_number' I understand that I cannot use the pixel_number variable outside of the for loop, have read so in other posts. … | |
Can somoene please help me I want to Know how to Drag and Drop to cut files/folders and it opens a folderdialog for the destination:( | |
I am doing servlet program. It is working when I run it as a GUI appliction. But when I run it as a web application it arises java.lang.NoClassDefFoundError: java/lang/StringBuilder at SDBApp.service(SDBApp.java:14)please help me. Here is my code. SDBApp.java [code]/*servlet which takes care of inserting rows in Data Base*/ import javax.servlet.*; … | |
hi there, i have asked this question several times but i coudn't solve this problem. i have two datetime picker one as the start date and the othere as the end date. when the user clicks a date in the start date he should not select a date that has … | |
[CODE]<html> <head> <title>Eastern Mediterranean University-Student's ID</title> </head> <body> <h3>Edit Student</h3> <?php include("sonuc.php"); if(!isset($_POST['edit'])) { $num = $_GET['num']; $sql = "select * from students where num='$num'"; $result = mysql_query($sql) or die('\"'.$sql.'\" Query failed:'.mysql_error()); $row = mysql_fetch_array($result, MYSQL_BOTH); $id = $row['id']; $name = $row['name']; $surname = $row['surname']; $department = $row['department']; $cpa = … | |
Hi, Iam new to java as iam working for dotnet C#. Can any body tell me the software to convert java code to C#. Please, iam in very much need for it. Thanks in advance, Anjali ... | |
when i enter '1' .. the cout is connected,i cant even input the 1st line,which is the 'name = '.. help me pls. [CODE]#include<iostream> #include<string> using namespace std; void main() { int input; int choose; string name; string icNum; string parentName; string address; string TelNum, parentTelNum; cout << "\n\t\t\t STUDENT … | |
any one know how to search a string array for a particular value a then remove it from there without keeping a null element to find the element where the value exists and then to remove the element Please if any one know how to do it give me an … | |
[CODE] a = textBox3.Text; if (listBox1.Items.Contains(a) == true) { textBox4.Text = b; }[/CODE] i haven't manage to step into the if statement. am i doing something wrong? | |
Hi all, why do I get an error with this line of code? [CODE]string test("a" + "b" + "c");[/CODE] error C2110: '+' : cannot add two pointers I have included the string class. thanks. | |
hi all, i have simple image slideshow script does anyone know how to do it with a help of for loop not if here is code thanks beforehands [CODE]<html><head> <script type="text/javascript"> <!-- var image1=new Image() image1.src="bir.jpg" var image2=new Image() image2.src="iki.jpg" var image3=new Image() image3.src="uc.jpg" //--> </script> </head> <body> <img src="bir.jpg" … | |
Hi, Need Urgent help..!!! I have a xsl to display all the xml elements in a html page. It works fine but i m not able to generate a proper indentation or format. Even a new line character doesnt work. I have pasted below the xsl ,Please help me out … | |
I just learned about dictionaries in Python and tried to implement them into a program I developed. The folders in the dictionary absolutely MUST be created in the listed order. But if for whatever reason they cannot be created, I want the name I specify to be printed instead of … | |
[CODE]protected void Button1_Click1(object sender, EventArgs e) { String path = Server.MapPath("App_Data\\dnis2010.mdb"); String sqlQuery = "UPDATE tableRegister SET (SerialNo,StaffName,StaffID,[Hostname],[Department],[Section],[Extension],Type,IpAddType,IpAdd,MacAdd,CpuBrand,CpuModel,Processor,HardDisk,HDType,RAM,RAMType,MonBrand,MonModel,MonSerialNo,MouBrand,MouModel,MouSerialNo,KeybBrand,KeybModel,KeybSerialNo,CdPlay,CdPlayBrand,CdPlayModel,CdPlayType,Windows,Other,WProdKey,MS,MSProdKey,SoftwareName,LicenceNo,Remarks) VALUES (@TextBox42,@TextBox1,@TextBox2,@TextBox3,@TextBox4,@TextBox5,@TextBox6,@TextBox40,@TextBox8,@TextBox9,@TextBox10,@TextBox11,@TextBox12,@TextBox13,@TextBox14,@TextBox15,@TextBox16,@TextBox17,@TextBox18,@TextBox19,@TextBox20,@TextBox21,@TextBox22,@TextBox23,@TextBox24,@TextBox25,@TextBox26,@TextBox27,@TextBox28,@TextBox29,@TextBox31,@TextBox32,@TextBox33,@TextBox34,@TextBox35,@TextBox36,@TextBox37,@TextBox38,@TextBox39) WHERE SerialNo=@TextBox41"; OleDbConnection aConnection = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source =" + path); OleDbCommand aCommand = new OleDbCommand(sqlQuery, aConnection); aCommand.Parameters.AddWithValue("TextBox42", TextBox42.Text); aCommand.Parameters.AddWithValue("TextBox1", TextBox1.Text); aCommand.Parameters.AddWithValue("TextBox2", TextBox2.Text); aCommand.Parameters.AddWithValue("TextBox3", TextBox3.Text); aCommand.Parameters.AddWithValue("TextBox4", TextBox4.Text); aCommand.Parameters.AddWithValue("TextBox5", TextBox5.Text); aCommand.Parameters.AddWithValue("TextBox6", … | |
Hey! I have a program that searches for a word in a .txt file. When it finds the word I want to print the following 5 lines under that word. So for example: I search for "juice", and my label grabs this out of the textfile: juice apple grape orange … | |
Hi, I want to know what you think is best for me to do. I got a functions file that is included on every webpage on my website as it is in the top.inc.php file althou not all pages will use the functions file. So my question is, should i … | |
hello guys , how can i send my html email through php code , i mean i enter my html codes and then the php code sends it but in form of message not codes ,or any way ,my question is how to send an html email through php code … | |
hello guys , i want to earn c++ but i dont have it's compiler but i have c compiler so can i use it or i need c++ compiler and where can i get it | |
Hey guys. I coded the following program below: but I have a problem... I think its perhaps the logic I have used is not too good... here it goes... The program below should: ask the user to enter a letter ('a' to 'z' or 'A' to 'Z') and outputs VOWEL … | |
Hello!.. I am a VB6 programmer and I want to learn basic of C# Programming. So can anyone help me out?.. I just want to learn on "How will I do this in Visual C#".. this is a sample code from VB6, now, how will I do this in C#? … | |
Hi folks, Im basically a php programmer. So im very new to asp and vbscript. I had a project to create something in php and asp. I was able to get it done in php but im struggling with asp. I need to create a array to send to an … | |
Hi all, the init.xml file has among its lines, one line as `<guid>5934</guid>` init.xml ------------------- ------------------- <guid>5934</guid> ------------------- ------------------ I need to increment the guid every time I modify the file. Could any one please tell me how to do that. Regards, Prashanth | |
I have a little project im working on, and the fundamentals are fine, i just have two specific queries. I have learned the code shown here from scratch the past week from samples and tutorials plus a little outside the box thinking. My only problem now is that my two … | |
Hi everyone, I have a program that displays Chinese and Japanese characters. I've written the program inside Netbeans and it works fine. But when I use the program as an executable jar file, as built in the dist folder by Netbeans, the Chinese and Japanese characters are displayed as nonsense. … | |
Sorry for the new questions... I've created this program to display a table . How could I write this code using while statements instead of for? [code]#include <iostream> using namespace std; int main() { for (int x = 1; x < 4; x++ ) { cout << x << " … | |
Is there a way to have an SMS authentication? Meaning a user puts there phone number it, they get sent an SMS message with a number, put the number in the website to verify the account. Any tutorials? | |
When I made my form to IsMdiConainer, i turned the back color of my form to a gray color. Is there any way I can change the color. Also im using DotNetBar. | |
I have this program, when it starts, i am unable to press numbers. By pressing F this turns the numbers on. However, the result is, i have to hold down F to use the numbers. I thought declaring ignition as true would stick after i had released F. And pressing … | |
Hey Guys, I know this is a known issue but I have had no luck with finding a fix for the issue I am getting with IE8. I get a nasty black border around my png that I am using the Jquery fade function. Does anyone have any useful hacks/tricks … | |
hello guys , i need your help i dont know c# and i want to learn it but before that i want to know what i can do with c# so please guys tell me exactly what i can do with c# and can i create a full website with … | |
Hi all, I'm having a compilation problem relating to some Chinese and Japanese characters that I have hardcoded into a hash table. When I compile this code inside an IDE like Eclipse or Netbeans I get no warnings, but when I do it outside of the IDE I get the … | |
When I finally got the input to work in this code it stopped displaying the txt on the screen. Any suggestions on how to fix this. [code]import pygame, sys from pygame.locals import * import time mo = 0 # set up pygame pygame.init() # set up the window windowSurface = … | |
Hi everyone, I'm having some trouble creating an executable jar file that accesses data txt files when running. I've written a program using Netbeans that reads in both images and data and uses this data while the program is running. But when I try to run the program using the … | |
Hi, I have basically created two functions in a filed called functions.php . They are as follows: [CODE] # Form Token Hash Generator (must be declared after if statement) function GenerateFormTokenHash(){ $token = $_SESSION['token'] = md5(uniqid(mt_rand(), true)) ; return $token; } # Form Token Hash Validator function IsValidFormTokenHash(){ return $_POST['token'] … |
The End.