64,152 Solved Topics
Remove Filter ![]() | |
Hello Friends... I have one urgent query... Please help me solving it. I am trying to use PreparedStatementCreator interface. By making an anonymous inner class,i have implemented it's createPreparedStatement(Connection) method. When this method is implemented, it will automatically called every time. But, I want to know which is that connection … | |
Hello ,I want to find between what numbers of a list exist a specific number: For example if i enter 15,i should be between 13 and 21. [code] list = [1,5,9,11,13,21,27,29,32] for index in range(len(list)): if num > list[index] and num < list[index + 1]: ............................................... [/code] But with this … | |
Construct a C program that will accept up to 3 digit integer number and display the hundredth's digit, tenth's digit, and one's digit. Example: Enter integer number (maximum of 3) : 143 Hundredth's place : 1 Tenth's place : 4 One's place : 3 | |
Hi everyone! Is there a way to set a MySQL server to not automatically start execution until prompted by the user? I recently installed a MySQL server on Windows and I'm having a little bit of problem at start up. Everytime I go to the command prompt to type the … | |
hey guys ive made a project in vs2010 that has a hardcoded (int val; val=800000; in main) amount set at start , the amount is 800000 (800k) i gave it an int type , and it works all well but when i try to run it in the anicent turboc … | |
hello guys)) Advice please - how to set the stream encoding? (to read a text file) I use this code - [CODE] StreamReader stream1 = new StreamReader(fs); System.Text.Encoding code = stream1.CurrentEncoding; StreamReader stream2 = new StreamReader(fs,code); while ((i = stream2.ReadLine()) != null) { label1.Text = label1.Text + i; } stream2.Close();[/CODE] … | |
I am filling a dataset from a database. When there are no rows to return it still tells me that the count is 1. I can't figure out what is going wrong. if I look at a visual of the dataset, the row is blank, but the count is 1. … | |
[B]hi all.... i m writting a script using telnet session in linux............ first i want to read 1)read free message 2)process memory usage 3)%cpu usage then using snmpwalk i want to repeat 1,2,3 after doing this i want to calculate difference before snmp walk and after snmp walk....... i m … | |
Hello. Can someone tell me why this doesn't work? [CODE] Public Sub LoadFile() Dim file As StreamReader Dim temp As String Try file = New StreamReader("C:\file.txt) temp = file.ReadLine() While Not temp Is Nothing Dim ListaTemp() As String = temp.Split(CChar(",")) ListBindingSource.Add(New Mod(CInt(ListTemp(0)), ListTemp(1), ListTemp(2))) temp = file.ReadLine() End While file.Close() … | |
Hi all, I'm new on this site and was hoping some of you more experienced coders could give me some advice. I'm a long time IT guy, always loved programming but never got too deep into it. I know the basics of programming in .Net and C# but I would … | |
[B]The Idea[/B] The idea is that my PHP page will execute specific SQL statements on a database depending on which form elements are filled in. Instead of having to write continuously lengthy IF statements to determine which statement to use, I would like to have the necessary statement "looked up". … | |
Hello all, I am new to MYSQL programming, although i have been working with MSSQL for a while now. I am using delphi on a project and the query below does not return any results, just cant find what is wrong with it Select Airwaybill, SDate, BLAccount, RCountry, PackageCodeDesc, TotalWeight, … | |
Hi I am a PERL novice. Currently dealing with a problem and wondering whether it can be solved using PERL? I got a folder containing a number of text files. Every time a file is created a timestamp is added at the end followed by an "_". for example "apple_20101210091255.txt". … | |
Hey Guys :) I want to be able to rewrite my URL's like so: [B]site/profiles/(username)[/B] but this would really only be site/profile.php?username=* I have this so far: <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^profiles/$ profile.php </IfModule> How would I do the [B]bold[/B] located above? | |
Hi All, Can anybody help me here. The code below is picking up the first pages records but it wont move to the next page. [code] <?php // Connects to your Database include "myFunctions.php"; getConnection(); //This checks to see if there is a page number. If not, it will set … | |
[CODE]<?php $host="xxxxx.xxxxxx.com"; // Host name $username="xxxxxx"; // Mysql username $password="xxxxx"; // Mysql password $db_name="xxxxxxxx"; // Database name $tbl_name="xxxxxx"; // Table name // Connect to server and select database. mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); // get value of id that sent from address bar $id=$_GET['id']; // Retrieve … | |
i dont understand why i have that exceptions. All i try to do is to write a file . Kill an object and load the file :( it says: "Unable to read beyond the end of the stream." [CODE]using System; using System.Collections.Generic; using System.Text; using System.IO; namespace Project1 { class … | |
Hi. I've got a JSlider in my applet which I want to change the position of. [CODE] int initValue = 10; int minimum = 10; int maximum = 20; JSlider slider = new JSlider(JSlider.HORIZONTAL, minimum, maximum, initValue); [/CODE] I've got this in the applets init() method. [CODE]add(slider); //add the slider … | |
Hi, I have a problem with my code. I am checking for the application instance. When i run application A , application B also must run. Below is my code to check the Application B if it is not running i have to make sure the code below execute it. … | |
Hi, I have a form with gridview data with database data. With query I run INSERT INTO from one table into another, with button. I would like when I run procedure, also reset/update/refresh gridview with new import data??!! For info, I have try with some methods, such as me. gridview.refresh() … | |
Hi! I have created a modal dialog. When I close it the page refreshes automatically but in my scenario the page should not do so. The code I am using is: [CODE]$(document).ready(function () { $("#addaccount").dialog({ height: 'auto', width: 'auto', modal: true, autoOpen: false }); $("#addaccountlink").click(function (e) { $('#addaccount').dialog('open'); });[/CODE] Here … | |
hi, i was just wondering if there is some special technique to understand the code which is not yours.i may sound peculiar so letme make it a bit clear.i hav just recently done some c++ programming and being able to make some programs.not too complex but i can do some … | |
I have a text file contain a coordinate 100,20 240,100 23,45 I manage to read row and split it into and integer. and get it to point x=100 ,y=20. the problem is in the end i got a null when i print in console show a null like this 100 … | |
I am having the hardest time trying to figure out what I am doing wrong with this section of code. Basically, I am using the GET method to pull a variable from the URL which I then want to search the database for. This "ticket" is unique and I only … | |
how can we draw arc using turtle graphics. any guidance would be great regards | |
Hello, I'm trying to skip a line every 'x' queries that gets displayed. I can get the records to show but I can not skip a line every 'x' query shown. I've tried using javascript and php but can not get it to work. Can someone plz help or give … | |
I'm trying to write a small app and I want it to show the OS Install key. How can I pull this? I'm using Visual Basic 2008. | |
I've been scanning all over Google for code or articles explaining this but nothing seems to tell me what I need to know. Most have said to use InPtr = 4 for 32 or 8 for 64. I just need to be able to determine whether the OS the program … ![]() | |
Hello... I want to change the TextBox border color if certain event is true. For example, in a GroupBox, there is a TextBox and a Button. If the TextBox is empty, and I click the button, I want the TextBox border color to change to red. If the TextBox is … | |
I am getting external link errors with the static consts below. Couldn't figure out what to do, would appreciate help :) [CODE]// Declartion of Order class class Order { private: // all of the different combo #s int a, b, c, d; int e, f, g, h; int i, j … | |
forgive me buddies if it is childish question, I cannot find good tutorial explaining it. So bear with me. My questions are, how does forward declaration differ from normal include which I'm used to? Also, where do we use it and what are limitation of the two? Lastly is there … | |
Hi there, I got this annoying problem... I have to create dynamically an image control that has got to be accesses later through javascript. In other words, I got an image that was created in the page code, and using javascript I got to be able to work with it … | |
I'm not really sure what's going on. I've looked all over the internet and have been stuck on this issue for days. It seems as though few have run into this problem and those that have - have no suggestions or even any replies. CKEditor's help forum has nothing on … | |
Hello guys, I hope you are all well! I am creating a game in Visual Studio using picture box's, but I cannot for the life of me figure out how I can have a nice picture in the background, as when I do put one in there it is constantly … | |
I started learning AJAX recently and I must say that it is very interesting. But I have a little problem understanding why [B]nodeValue[/B] is not returning any value. But when I change the [B]nodeValu[/B]e to [B]nodeName[/B] I get the right result. I am currently accessing the individual elements manually because … | |
![]() | Please i need to write a paper on the introduction to the analysis of algorithm can some one help me that i am having trouble finding resources |
I have cretaed a login page in php got the database and connection how ever when i register i get an error Error: User not added to database. this code is in my register.php file can anyone help thanks [CODE] // Make sure query inserted user successfully if ( !mysql_insert_id() … | |
Hello, I was wondering if anyone could help me with something. I am not a programmer yet I am able to modify scripts to a certain extent. I recently downloaded a script to read an existing CSV file and output via an SSI call. What I would like to do … | |
I use visual basic 2008 I use Groupbox1 In the Groupbox1 in have two labels: label1 and label2. I have change the font of[COLOR="Red"] label1 [/COLOR]with properties to size [COLOR="red"]12[/COLOR] No i change the font size of [COLOR="red"]Groupbox1 [/COLOR]with properties to size [COLOR="Green"]8[/COLOR] Only [COLOR="Green"]label2[/COLOR] inherit font ([COLOR="green"]8[/COLOR]) format from … ![]() | |
I have searched on the internet before, but cannot get a suitable tool. I found tools to profile jdbc performance, gc statistics, but no some obvious tool to measure the time spent in each statement. I would like found which statements are spending the most of the time of my … | |
Hi all, I want to transform an xml file to another xml file based on the length of innertext in an element. Here is an example of the file to be transformed: [CODE] <?xml version="1.0" encoding="utf-8"?> <recipe xmnls=""> <recipeList> <recipeType description="Breakfast"> <recipeInfo> <name>Omelet</name> <summary>An English Breakfast</summary> <ingredients>Eggs,Butter</ingredients> <instructions>(1) You will … | |
[code] text = "Some text here 09:00 - Movies 10:00 - Cartoons 11:00 SPorts .... 20:00 - News Another text here" [/code] I am trying to get only the parts with the time in front.Here is my code: [code] match = findall('\d\d:\d\d\s-\s\D+', text) [/code] My problem is that at the … | |
Hi, Is there anyway to insert/add a new column between two column in a table without deleting any other column??? | |
Hello guys, i got a problem here.. I would like to change the url: [url]http://mysite.com/edit_files.php?deleteid=26[/url] to something randomized so people can change the numbers in "deleteid=26" I know i need a htaccess code for this, and i've searched allot to try bring this bitch down, so asking some pro fellas … | |
[B]hi, my problem is as such... I am establishing a telnet session to an IP using telnetlib module. I read the free memory on the board using telnet.write("free\n"). after this i call a system command 'snmpwalk' to walk the MIBs of the IP above. I again need to establish the … | |
Hi guys, I can't figure it out where I am doing wrong. I keep getting FileNotFoundException saying that "Could not find file 'C:\delete\band3_tao.img'." but this file was writen to a file in previous step. I have attached the code I have written. I need your help. Thanks. Here is the … | |
hi All I hace created job site i writed to my own CSS. but it displays in IE fine like i want. but in Mozilla it displays all borders. how can i do that in displays table like in IE. Thank you very much. this is my site [URL="http://www.karyeram.com"]http://www.karyeram.com[/URL] my … | |
I am generating crystal reports using sql statements but now i am looking 4 code to allow me to refresh the crystal report. in other words remove the datra on the report and wait for another query | |
Does anyone know where can I download free controls for my vb 2008? I need other controls that are more fancy or cool. My new proposed system is a multimedia file player and I think the common controls found in my IDE are not sufficient. | |
Hi Guys, Is this right to say Heap is RAM and Stack is Pagefile(HardDrive)? Sorry for silly question. :?: |
The End.