64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for sumeetdesaeee

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 …

Member Avatar for sumeetdesaeee
0
610
Member Avatar for vbx_wx

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 …

Member Avatar for -ordi-
0
117
Member Avatar for nhes2x

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

Member Avatar for danholding
-1
156
Member Avatar for shinsengumi

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 …

Member Avatar for shinsengumi
0
3K
Member Avatar for TomaCukor

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 …

Member Avatar for Narue
0
137
Member Avatar for vedro-compota

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] …

Member Avatar for vedro-compota
0
154
Member Avatar for readbanana

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. …

Member Avatar for kvprajapati
0
130
Member Avatar for rssk

[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 …

0
63
Member Avatar for Viperino

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() …

Member Avatar for kvprajapati
0
126
Member Avatar for noamo48

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 …

Member Avatar for kvprajapati
0
160
Member Avatar for MysticalNomad

[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". …

Member Avatar for pritaeas
0
110
Member Avatar for KE50

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, …

Member Avatar for KE50
0
140
Member Avatar for boshu

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". …

Member Avatar for k_manimuthu
0
205
Member Avatar for public-image

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?

Member Avatar for public-image
0
76
Member Avatar for whiteyoh

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 …

Member Avatar for vivekdizzal
0
219
Member Avatar for Sorcher

[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 …

Member Avatar for Sorcher
0
154
Member Avatar for NewOrder

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 …

Member Avatar for NewOrder
0
950
Member Avatar for shakssage

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 …

Member Avatar for shakssage
0
845
Member Avatar for swathys

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. …

Member Avatar for swathys
0
135
Member Avatar for dejanc

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() …

Member Avatar for dejanc
0
416
Member Avatar for soft_coder

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 …

Member Avatar for soft_coder
0
7K
Member Avatar for sahil1991

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 …

Member Avatar for sahil1991
0
216
Member Avatar for pigmario

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 …

Member Avatar for JKP()
0
100
Member Avatar for TheIdiot

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 …

Member Avatar for TheIdiot
0
80
Member Avatar for Harris00
Member Avatar for loveerl
0
728
Member Avatar for Mars1936

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 …

Member Avatar for Mars1936
0
150
Member Avatar for MaddTechwf

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.

Member Avatar for MaddTechwf
0
217
Member Avatar for MaddTechwf

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 …

Member Avatar for Unhnd_Exception
0
146
Member Avatar for ak24

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 …

Member Avatar for ak24
0
5K
Member Avatar for MasterGberry

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 …

Member Avatar for MasterGberry
0
142
Member Avatar for Stefano Mtangoo

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 …

Member Avatar for Narue
0
107
Member Avatar for cavpollo

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 …

Member Avatar for cavpollo
0
673
Member Avatar for sleign

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 …

Member Avatar for sleign
0
335
Member Avatar for deucalion0

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 …

Member Avatar for deucalion0
0
1K
Member Avatar for cossay

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 …

Member Avatar for cossay
0
191
Member Avatar for Ralphael

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

Member Avatar for soutrik
0
51
Member Avatar for danny5514

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() …

Member Avatar for danny5514
0
156
Member Avatar for fredfletcher

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 …

Member Avatar for fredfletcher
0
183
Member Avatar for dre-logics

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 …

Member Avatar for Unhnd_Exception
0
183
Member Avatar for gunbuster363

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 …

Member Avatar for gunbuster363
0
92
Member Avatar for ibdatx

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 …

Member Avatar for iceandrews
0
214
Member Avatar for vbx_wx

[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 …

Member Avatar for TrustyTony
0
87
Member Avatar for Perry31

Hi, Is there anyway to insert/add a new column between two column in a table without deleting any other column???

Member Avatar for Aqua_annie
0
91
Member Avatar for Sorcher

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 …

Member Avatar for Sorcher
0
89
Member Avatar for novice20

[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 …

Member Avatar for novice20
0
113
Member Avatar for cs_tx_usa

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 …

Member Avatar for cs_tx_usa
0
106
Member Avatar for azegurb

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 …

Member Avatar for azegurb
0
136
Member Avatar for tendaimare

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

Member Avatar for kvprajapati
0
111
Member Avatar for markdean.expres

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.

Member Avatar for kvprajapati
0
151
Member Avatar for ashishchoure

Hi Guys, Is this right to say Heap is RAM and Stack is Pagefile(HardDrive)? Sorry for silly question. :?:

Member Avatar for ashishchoure
0
169

The End.