64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for poeticinsanity

I'm running a portion of code in a loop. It accesses a global variable only to print it, and that variable is never changed after it is set in the __init__. However, the first print statement occasionally will fail, but the second one does not. Any ideas as to why …

Member Avatar for vegaseat
0
106
Member Avatar for hughesadam_87

Hey guys, When using the glob import, I want it to scan all of the files in a directory, but not scan other directories in that directory. For example, say I am in a directory with the following files: [CODE]file, file1, file2, DIRECTORY1, DIRECTORY2[/CODE] When I use the glob command: …

Member Avatar for vegaseat
0
154
Member Avatar for C++ Obliviator

I just started with the class vector, but it didn't go so well. :( I tried this: [CODE]void Initialize() { int amount_of_char = 62; vector<char> char_table; for (int i = 97; i < 122+1; i++) // 97 -> 'a', 122 -> 'z' char_table[i] = char(i); for (int i = 65; …

Member Avatar for C++ Obliviator
0
82
Member Avatar for serkan sendur

i have two cab files to install on pocket pc. after installing the second one, second one's shortcut appears twice in the programs. do you have any idea to fix this problem? thanks.

Member Avatar for serkan sendur
0
87
Member Avatar for sravan953

I have made a Java prog which will accept a word and a sentence, and then prints the number of times the word occurs in the sentence... Here is my code: [CODE]class check_number_word { void check(String w, String s) { int l=s.length(),n=0,d=0; String s1=""; for(int j=1;j<l;j++) { s1=s.substring(d,j); if(s1.equalsIgnoreCase(w)) { …

Member Avatar for BestJewSinceJC
0
165
Member Avatar for BestJewSinceJC

What would be the best way to implement dynamic search? So, for example, given the words: the, then, behemoth, abchemto Typing in 'he' would return all of the above words since they all have he in them. Is the best way to do this using a Trie?

Member Avatar for BestJewSinceJC
0
375
Member Avatar for culebrin

Hello folks, I need to create a html table dynamically, so I used HtmlTable and HtmlTableCell ... but I need to put inside a HtmlTableCell another HtmlTable object, so the structure will be: HtmlTable | ---HtmlTableRow | ---HtmlTableCell | ---HtmlTable I hope someone could help me Thanks Omar

Member Avatar for IdanS
0
732
Member Avatar for mypicturefaded

I have an add-in program that has several forms. When the program is done with one form, it automatically goes to the next method it needs. (Word add-in). My problem is this...When I hit cancel, I want it to stop all actions with-in my add-in. Right now, if I hit …

Member Avatar for mypicturefaded
0
1K
Member Avatar for diafol

I recently came across an example where binary data was stored in a column which related to the sum of all foreign key id integers. This was the scenario: id [int] from [int] message_title [varchar,100] message [text] to [int] I assumed the 'to' field was a foreign key on the …

0
59
Member Avatar for phillipdaw

I don't know how to describe this error so I just took a picture. The problem involves the rich text box and numericUpDowns displaying what is behind them when the form loads. Pic on Left is wrong pic on right is right. I was drawing my oscilloscope output directly onto …

Member Avatar for phillipdaw
0
127
Member Avatar for IntegrityWebDev

Hello all. I wasn't sure if I should post this here or under DB? I'm a PHP user that is new to C#/ASP.NET/MS SQL. I have a table with rows of string values (not sure why they were made strings as they are numbers but thats what they are). I …

Member Avatar for IntegrityWebDev
0
348
Member Avatar for BigFormat

I'd like to redirect the user to another page, i.e. after a login check. I'm used to doing this via header location directive, it's all ok, but, if I'd like to print a message and redirect the user in 2/3 seconds, like on this forum when you login? Is it …

Member Avatar for BigFormat
0
5K
Member Avatar for daveofgv

Hello all, I have seen a couple threads on this site in ref to enabling and disabling buttons on different forms, however, I still can't get it right. I have went into the designer.cs and changed the button from private to public modifyer and placed [code] mainpage.adminpanelbtn.enabled == true; [/code] …

Member Avatar for sknake
0
1K
Member Avatar for lanepds

I have defined a variable in bash [code]$ MYDATESTAMP="2009-06-25 21:57:18"[/code] I would like to pass this to perl to perform a simple date conversion. If I enter the date manually it works. [code]$ perl -MDate::Parse -le'print str2time("2009-06-25 21:57:18");' $ 1245992238[/code] My attempts to pass the variable MYDATESTAMP into this command …

Member Avatar for lanepds
0
937
Member Avatar for whiteyoh

Hi All, im trying to get an example to work on a main class passing variables to a class to then return the value. This is the method for variables to be passed too [code] import java.lang.Math; class CalcTest { private int area; public int getArea(int height, int width) { …

Member Avatar for PopeJareth
0
111
Member Avatar for serkan sendur
Member Avatar for serkan sendur
0
258
Member Avatar for wasif005

i have problem with strings is that i read a string from file and save it into another string and then compare with the another string which user enter ....basically i am going to design a login system in which first administrator make your user name and u set a …

Member Avatar for wasif005
0
120
Member Avatar for yun

Is there any better way to define PreviousDay Function??? plz let me know.. [code=cpp] enum weekdayT { Monday,Tuesday,Wednesday,Thrusday,Friday,Saturday,Sunday }; weekdayT NextDay(weekdayT day){ return weekdayT((day+1)%7); } weekdayT PreviousDay(weekdayT day){ if(day==0) return weekdayT(day+6); else return weekdayT((day-1)%7); } [/code]

Member Avatar for csurfer
0
286
Member Avatar for Hiroshe

Warning, this post contains code for Euler problem 5. Try to solve it youself without looking at anyones code. Its alot more satisfying if you do it yourself. Hello, just found an interesting website called project euler. I managed to get to problem 5 without a too many problems. Anyways …

Member Avatar for iamthwee
0
116
Member Avatar for suretd

Hi All, I have to compile a servlet WebStocks.java. It does not compile in TextPad as it cannot locate the javax.servlet packages. I have done my homework, so I know, that the servlet package I am looking for is loaded in Tomcat in my directory: C:\Program Files\Apache Group\Tomcat 4.1\common\lib\servlet.jar I …

Member Avatar for suretd
0
174
Member Avatar for mOoEyThEcOw

So I was coding along working on another dll, I recompiled a dll containing the following code and suddenly my program was crashing, when i clicked the show info link on the 'send this report to Microsoft' dialog box, it said the dll which was throwing the error was msvcp90d.dll, …

Member Avatar for mOoEyThEcOw
1
106
Member Avatar for daveofgv

Hello all, I have a small problem that I would like to ask for help on. I appreciate anyone's reply. I have to convert a program of mine over to C#, however, I am new at C#. I know a good amount of VB.NET, but the C# language is a …

Member Avatar for IdanS
0
141
Member Avatar for hjdaniel.sun

Hi, I want to use VB.NET to connect to sql server remotely and input and receive data from the server. Can anyone help me to do it? I really appreciate code example. Thank you very much!!

Member Avatar for kvprajapati
0
307
Member Avatar for soyabeanmilk

hi all, i have a php generated image that i want users to download as png, but as it is generated on the fly, the default save as option is <php_name>.php so i just want to ask if there is any way to change this default file name to a …

Member Avatar for soyabeanmilk
0
664
Member Avatar for yun

i want to add a line at run time in title, but i m unable to do so.. in main() getline(-,-) is working fine but not in the below code, it simply skip it when i put values for Course Name and press enter it go to the next line …

Member Avatar for pspwxp fan
0
231
Member Avatar for fernando82

Hi everyone! I'm desingning a database app... and need to fill a datagrid on runtime. I've checked some other post and the solution they propose are using: Set datagrid1.DataSource = rs But when i start the program the datagrid doesn't fill... i have put some textbox with references to the …

Member Avatar for fernando82
0
314
Member Avatar for Debby0424

Why the functionality of a java based app with file access and file processing methods valuable for this type of business....? I believe that it is valuable because it allows the business to handle mutliple files from all over the wolrd and process them in a timely fashion. Say for …

Member Avatar for sillyboy
0
122
Member Avatar for iambinary

where does the print() subroutine, subprogram, or function exist? sure, you "call" it so it can return a value or result, but from where? from where do you "call" it? where does it exist? i don't understand!!

Member Avatar for vegaseat
0
116
Member Avatar for gislik

Hi, I'm new to both python and Wxpython so I was wondering if someone could help me with a problem I have. I made a button that runs the UpdateNebula function. the function takes a string called path but I haven't been able to find a way to have the …

Member Avatar for vegaseat
0
136
Member Avatar for ganesh_bala

I need to use huge data (10^100) in a Variable in C? How can i implement it? Double,float ranges are low.. Suggest me in this.. Thanks in advance!!

Member Avatar for Hiroshe
0
142
Member Avatar for hughesadam_87

Hey guys, A while ago, with your help, I was able to create a code which scans a data file for names, and when a new name is found, it appends it to a list. For each entry is the list, the code then opens a new file for each …

Member Avatar for jlm699
0
1K
Member Avatar for puk

Hi, it have written a notepad application in C# 2008 which i am using to open documents with a lot of lines for example 5000+ lines. the problem that i have is that i have created a button that i want to use to select a specific number of lines. …

Member Avatar for Diamonddrake
0
111
Member Avatar for IntegrityWebDev

Hello all...my first official post (after the introduction) I'm relatively new in the area of C# (some PHP experience) and I'm hoping someone can help me. I have 2 arrays of variable lengths, with int data in them. Something like this: FreeNumbers = 1,2,3,4,5 UsedNumbers = 1,2 I want to …

Member Avatar for IntegrityWebDev
0
116
Member Avatar for brianzet

Hi Is it possible to insert nl2br to these two? [icode]<?php print $laes_artikel ["artikel"]; ?>[/icode] and [icode]<?php print substr($row["beskrivelse"], 0, 250); ?>[/icode] .. If so, can someone tell me how? Thanks for now.

Member Avatar for brianzet
0
235
Member Avatar for emarshah

Hi to All, Please tell me briefly that in PHP, what type of errors occured to the developer. Thanks in Advance

Member Avatar for ShawnCplus
0
100
Member Avatar for ayesha789

Hi, How I can show summary of thread like Daniweb. I have attached picture so please guide me. its really cool without opening the thread we can read whats inside . idf interesting we can go inside. Thanks Ayesha Developer

Member Avatar for peter_budo
0
264
Member Avatar for Manak

i am working on a project and i need to show a error message if the user enters string in a text box whose datatype is int?? it throws exception that input string is not in correct format...:(

Member Avatar for ddanbe
0
212
Member Avatar for sravan953

Hey, I have a simple progam at hand....what I need now is a WYSIWYG(What You See Is What You Get) GUI Editor with which I can create good user interfaces without(or with very less) coding! Any ideas for such a program? Thanks

Member Avatar for sneekula
0
2K
Member Avatar for sarganaa

i m new to c# i was designing a calculator i need to accept a string of integers from textbox save it in a variable clear the textbox and then accept a new string of integers plz kindly help

Member Avatar for sarganaa
0
2K
Member Avatar for athlon32

Just few quick question: How often are pointers to functions used? Should i implement them in my programs?

Member Avatar for athlon32
0
122
Member Avatar for JackDurden

How would I find a row with a column value? Say Im looking for people with the name "Lance" then once ive found Lance display the row of info for lance. Ive tried using select but cant seem to get it to work. Here is my code. [CODE] using System; …

Member Avatar for flavioweb1
0
279
Member Avatar for MarcusMaximus

i have an access report with two sub reports. A text box in the main report adds 2 values in both sub reports together. One value is 10.22 and the other is 13.08 which should amount to 23.30 but the value is coming out at 23.29 which is off by …

Member Avatar for MarcusMaximus
0
109
Member Avatar for gudivada213

[code] #!/usr/bin/env python import MySQLdb file=open("capgps.txt",'r') #Open database connection db = MySQLdb.connect("localhost","root","8868","myproject") # prepare a cursor object using cursor() method cursor = db.cursor() #line is like below #$GPRMC,111503,A,0833.6323,N,07652.7685,E,0.1866,256.540,220609,,*2A for line in file: data=line.split(",") if data[0]=="$GPRMC" and data[2]=="A": if data[4]=="N": latitude=str((data[3])/100.0) else: latitude=str((-data[3])/100.0) if data[5]=="E": longitude=str(data[5]/100.0) else: longitude=str((-data[5])/100.0) linedata = {'time':data[1], …

Member Avatar for gudivada213
0
5K
Member Avatar for DaveD3

I have an interesting problem I hope you can help me with. The situtation is this, my appliction uses a datagridview bound to an access database. There is an edit button which puts the dgv into editable mode for the user. When the user had made the updates they want …

Member Avatar for DaveD3
0
111
Member Avatar for rockinsteve

Hi. I am new to the site and not too clever at Pascal (beginner). I need to be able to get an IP address, then compare it with one I want to use then if the address is the same run a program if not quit. This is to get …

Member Avatar for rockinsteve
0
301
Member Avatar for anarki2k3

Ok so I created an instance of the mysqli class: [code=php]$siteconn = new mysqli($dbhost, $dbuser, $dbpass, $dbname);[/code] But when I try to run a query using this I get the error that's in the title... code as follows: [code=php]$result = $siteconn->query("SELECT * FROM categories ORDER BY id LIMIT $limit");[/code] Any …

Member Avatar for anarki2k3
0
358
Member Avatar for mathmath

Hi everyone, I am working on a project where i have encounter such problems: Data samples: LA-1-2, LA-1-2-33, LA-1-22-333-4444, LA-2-3, LA-12-34, LA-123-45-67 .. with upto 8 dashes Objective: I need to find the values behind each dashes into multiple columns in orders. [e.g LA-1-2-33 will have columnA = 1,columnB = …

Member Avatar for jbisono
0
164
Member Avatar for Zay

hello; can we say this when defining an enumeration : enum letter{A=4,B=3,C,D,E}; i mean give letter B value smaller than the value of the letter A , is it possible ? and what is the real benifet of the enumeartion in general ? sometimes when making "cout" statement , the …

Member Avatar for Zay
0
125
Member Avatar for zuve_fox

hi.. plz help me i have application to read mifare card(smart card) which use vb.net to build application my mifare/smart card read display UID "F4 76 4A 3C" but i use that application and smart reader to read my mifare/smart card, that display in decimal "1011513076". How display that value.should …

1
72
Member Avatar for krokodajl

Hi Everyone! I have a wired problem with print preview in Delphi. When I am invoking a PreviewModal procedure on QuickReport object Preview page appears. But sometimes [B]printer setup[/B] and [B]Print[/B] icons are inactive. Colud someone explain me this situation? Best regards

Member Avatar for krokodajl
0
87

The End.