64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for pi_lord12

Hey guys, I'm working on a project to use Huffman trees to compress a text file into binary. For instance, based on the frequency of the characters in a string like "aardvark", a - 3 r - 2 d - 1 v - 1 k - 1, compression using a …

Member Avatar for pi_lord12
0
221
Member Avatar for raghujosh

I have a dropdown box which should display an appropriate text box only when a particualar option is selected. Currently, the textboxes are displayed all the time. I do have a Javascript function that works for 2 options(hides always and displays only when the correct option is selected). But I …

Member Avatar for twiss
0
193
Member Avatar for visom

Hi everyone. My code is used to calculate fractions and display them as "3/4 + 3/4 = 3/2" and such. I having some trouble with the the code segment [CODE] calculate.setadd(); calculate.setsub(); calculate.setmult(); calculate.setdiv();[/CODE] There's a red line under the close parenthesis saying "too few arguments in function to call". …

Member Avatar for visom
0
294
Member Avatar for virusisfound

I am working in sql server2005 and c# I have five database in my project and I want to display one table from each database in one datagridview. How can i do it.

Member Avatar for virusisfound
0
173
Member Avatar for eman 22
Member Avatar for mrnutty
0
103
Member Avatar for brynFlew

I have made a very simple dice game, How can i output the results of the dice using this format. Thanks for your time. [CODE] ========== | 0 | | | | 0 | ========== ========== | 0 0 | | 0 0 | | 0 0 | ========== [/CODE] …

Member Avatar for Schol-R-LEA
0
323
Member Avatar for BLUEC0RE

Hey guys, I hate asking this but unfortunetly, Google does not know how to interpret "|" and probably assumes its an OR command or something :P . The line goes as follows (source found [URL="http://pysnippet.blogspot.com/2009/11/fuse-filesystem-in-userspace-part-1.html"]http://pysnippet.blogspot.com/2009/11/fuse-filesystem-in-userspace-part-1.html[/URL] here): [CODE]st.st_mode = stat.S_IFDIR | 0755[/CODE] I know it's doing something about the mode being …

Member Avatar for BLUEC0RE
0
153
Member Avatar for kgizo

Hi everyone I'm currently working on a survey project,now my problem is that my while loop isn't giving the correct results. i have a mysql table that looks like this. sectionID SurveyID sectionTitle sectionInstructions 1 2 section1 answer the following questions 2 2 section2 answer the following questions Ive already …

Member Avatar for kgizo
0
149
Member Avatar for rayden150

I get this python error: unindent does not match any outer indentation level, and a red bar appears where "RIGHT HERE RED" is.., keep in mind that this is just a fraction of the entire program but i dont know where the spacing error occurs... pleeeaaase i beg you and …

Member Avatar for vegaseat
0
167
Member Avatar for s.w.a

hello, please i make a code that i want it to work as follows: the user input 3 value and after an inspection(that i am not put it now, i want to try it now so i make the condition, if k%2==0)the input is be either spoof or valed,at the …

Member Avatar for s.w.a
0
199
Member Avatar for Sturdy

Hi masters, I try to write and read file into txt file but i dont know how to do it. Anyone know how to achieve this? Please help me. any help will appreciated much. Best Regards

Member Avatar for Jx_Man
0
292
Member Avatar for xanawa

i want a regex pattern that accepts from 3 to 6 digits.. and only A,M or G at the end eg: 1234G

Member Avatar for samueal
0
109
Member Avatar for xanawa

I have a combobox filled with usernames from teh database. And i have a gridview that display's the comments from database depending what username was choosed from combobox

Member Avatar for chwong
0
139
Member Avatar for adarshcu

[CODE]import java.util.regex.Matcher; import java.util.regex.Pattern; public class RegexTest { public static void main(String[] args) { String regex = "([a-zA-Z'-]*[ ]*)*"; Pattern p = Pattern.compile(regex); String input = "Adarsh has been testing this issue for a very long time now!#!"; Matcher m = p.matcher(input); System.out.println("Called"); if(m.matches()) System.out.println("Matched"); else System.out.println("Not Matched"); if(input.matches(regex)) System.out.println("Matched"); …

Member Avatar for thekashyap
0
185
Member Avatar for raghujosh

I have a string [CODE]$var1 = colors<select><option value = 'blue'></option></select>[/CODE] I can get the value colors as a string with this statement [CODE]$needle1 = "<select>"; $result_string1 = substr("$var1",0,strpos($var1,$needle1));[/CODE] [CODE]echo "$result_string1";[/CODE] will give me [CODE]colors. [/CODE] Then I want to get everything between <select> and </select> so I use the following …

Member Avatar for twiss
0
436
Member Avatar for jenny666

hello...im new to visual studio 2008 How do i compile C in visual studio 2008? i have read this thread "[URL="http://www.daniweb.com/software-development/cpp/threads/16256"]Compiling C[/URL]" and its says to do this... ------------- Go to View Menu select Solution Explorer or CTRL+ ALT +L Then Select The project that your are developing and right …

Member Avatar for jenny666
0
382
Member Avatar for lianpiau

I want make the installer for free try 30 days. after 30days disable the function of program. so I'm want to get user install date + 30days to get expire day. When user key in license key, then can use program. As a result, how can I get the install …

Member Avatar for lianpiau
0
273
Member Avatar for virendra_sharma

HI , i need code for to insert , update and for to delete record in excel in asp.net using c#. i am able to add data in excel but having problem while deleting . :( can anyone plz help me. your help will appriciated.:)

Member Avatar for abelLazm
0
103
Member Avatar for Jazerix

Hey So i got a Webbrowse (wb_MainBrowser) and a button. for the webbrowser i got a code that looks like this: [CODE] private void wb_MainBrowser_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e) { if (wb_MainBrowser.Url.ToString() == "http://www.google.dk/") { MessageBox.Show("HEY"); } } [/CODE] and i got a button that goes [CODE] private void btn_Start_Click(object sender, …

Member Avatar for Jazerix
0
220
Member Avatar for novice20

Hi all, Here is a part of my code: [CODE]#-- if the ports are mapped properly if(map_dict1[int(MIO_outports1[i])] == int(Exp_map_inport[i]) ): flag = 1 elif(map_dict2[int(MIO_outports1[i])] == int(Exp_map_inport[i])): flag = 1 else: flag = 0 [/CODE] But I am not able to navigate to the 'elif' part. I am getting : [CODE] …

Member Avatar for TrustyTony
0
277
Member Avatar for niths

hi all, I am having a string. Now i need to get the last word in that string. suppose string text = "Hello.. how are you"; Now i need to get 'you' from that string. can anyone help me.. Thank you.

Member Avatar for niths
0
140
Member Avatar for bahed121

Hey all, Can any when tell me how to loop and put if-conditions in sql query? as I am new in SQL i am a bit confused about this please help me i have very short time. Thanks in Advance

Member Avatar for bahed121
0
146
Member Avatar for gulbano

Hey all, I have an assignment which has a part in which i have to reverse a given string. Can any one tell me any code snippets which will reverse the string automatically or refer any built-in function. Thanks in advance

Member Avatar for abelLazm
0
112
Member Avatar for raghujosh

I have a string "<select><option value = 'LB1'></option></select>" What I want to do is replace only the <select> with <select name = "somename">. Currently, i have a preg_replace statement that replaces the </select> statement also. How can I prevent this. My current code is $string = "<select><option value = 'LB1'></option></select>" …

Member Avatar for diafol
0
213
Member Avatar for bhagvad301

hi, I made one dll and use it in my project, when i debug my project it show the dll code and its class and method. I dont want show that dll code. Please tell me the solution.

Member Avatar for abelLazm
0
80
Member Avatar for vincezed

Hi all the treeview i am creating here works very well but i tried so many ways to add tag to the child nodes but i could not... can any one tell me how to add tag to the nodes... that are created from the database... I could add tag …

Member Avatar for vincezed
0
2K
Member Avatar for kiracho

write a python program , which takes one argument ,which is a word( as a string), and returns "true" if the word contains alternating vowels and consonants(i.e a consonant , followed by a vowel , followed by a consonant ....). Then write a short piece of code to read the …

Member Avatar for vegaseat
0
315
Member Avatar for predator78

Hi from what I have seen this should be correct but compiler is complaining. [CODE] #include <iostream> #include <string> using namespace std; // player class class Player{ int *position; string name; public: Player(); ~Player(); void set_name(){ cout << "enter name: "; getline(cin,name); cout << "name is now: " << name …

Member Avatar for predator78
0
99
Member Avatar for triple_A

Hello all. I am making my first hello world program in C, and I have already run into issues. [CODE]#include <stdio.h> int main() { printf( "Hello World\n" ); getchar(); return 0; } [/CODE] I am getting two errors when I try to run this. C:\Users\Wiseguy\Documents\CodeBlocks\firstproject\firstproject.c|4|multiple definition of `main'| and obj\Debug\main.o:C:\Users\Wiseguy\Documents\CodeBlocks\firstproject\main.c|5|first …

Member Avatar for sergent
0
106
Member Avatar for jrotunda85

I want to add something to the script below that, prior to insert, check to see if the $CigarID already exists for the $UserID. If so, I want it to do an update and increase the $Quantity by whatever the user inputs. If the value doesn't exist, then insert the …

Member Avatar for jrotunda85
0
124
Member Avatar for WolfShield

I have a lot more code than I'm going to post here, but I am posting the relevant parts. What I have is a Calculator program. Here's the code: [CODE=Python] num1 = None num2 = None oper = None def calculate(num1, num2, oper): print("calculate() called") if(oper=="+"): answ = Decimal(num1) + …

Member Avatar for woooee
0
261
Member Avatar for sergent

I made a simple assembly program about a year ago and I lost the source, but I still have the .exe file. I wanted to see the assembly code, so I disassembled the program with ollydbg and there was MUCH MORE code. There was about 3000-4000 lines of code, but …

Member Avatar for GunnerInc
0
184
Member Avatar for jowana

Hello, how can I pause the terminal after running the program? I am using a program that outputs a table of error rates.. but can't see the result. I used few suggestions on the web but still not working , char d; cin>>d; not working , what else can I …

Member Avatar for sergent
-1
213
Member Avatar for skiabox

I get the following error : Parse error: syntax error, unexpected T_STRING in /Library/WebServer/Documents/MyProject5/menus.php on line 48 This is the code [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Date Menus</title> </head> <body> <?php //Script 10.1 - menus.php //This script defines and …

Member Avatar for Stefano Mtangoo
0
329
Member Avatar for Ertzel

I am trying to use the Net User command from the cmd in my C++ program. I have this... [CODE]char acUserName[100]; DWORD nUserName = sizeof(acUserName); if (GetUserName(acUserName, &nUserName)){ cout << "User Name: " << acUserName << endl; system("Net User"); }[/CODE] This displays the User Name on the screen and then …

Member Avatar for Ertzel
0
148
Member Avatar for VIPER5646

[QUOTE]Hi all I am using Vb2008 Express and an Access DB. I would like to Display a note from a column in the Notes_tbl to a text box this from an Access database. Here is the code that I used but it does not do the job. [/QUOTE] [ICODE] Dim …

Member Avatar for viki123
0
544
Member Avatar for VulcanDesign

Hi all, I'm trying to use Python's urllib to get a Facebook profile page. I get the following error: [CODE]IOError: [Errno socket error] [Errno 10035] A non-blocking socket operation could not be completed immediately[/CODE] Here's my code: [CODE] import urllib member_profile_text = urllib.urlopen('http://www.facebook.com/profile.php?id=1073109649').read() [/CODE] I need to get this working …

Member Avatar for VulcanDesign
0
542
Member Avatar for jacksantho

Hi, Please help me out. 1. Getting HYPERLINK value from page1 and saving in page2 using GET method.($re=$_GET[variable];) 2. Passing this value in -> select query 3. Displaying my output - correctly(in each and every value, there is an SUBMIT button.) 4. My Form Action is page2 itself. 5. Due …

Member Avatar for C#Jaap
0
285
Member Avatar for winecoding

In servlet side, I am trying to receive an vector sent from the applet. The code is like [CODE]InputStream in = request.getInputStream(); ObjectInputStream inputFromApplet = new ObjectInputStream(in); Vector v = (Vector)inputFromApplet.readObject(); [/CODE] But the compiler specifies that the following one is wrong. [CODE]Vector v = (Vector)inputFromApplet.readObject(); [/CODE] The error message …

Member Avatar for JamesCherrill
0
145
Member Avatar for Muhammad Anas

A part of one of the programs in my assignment requires to declare three arrays of same size which will be used in parallel to store gpa's, registration numbers and names of the students respectively. When I use a single loop to take input in all these three arrays then …

Member Avatar for Muhammad Anas
0
2K
Member Avatar for tboz203

I've had an idea for a class that, instead of storing a number as a single floating-point value, stores the exact value as two or more integers (in cases such as division, fractional exponents, or irrational numbers such as pi or e). The class would have it's own mathematical functions …

Member Avatar for JamesCherrill
0
192
Member Avatar for xanawa

Hi, I need a validation using regex just the pattern i have. The user has to enter digits and after the digits one letter. User can have up to six digits or less eg: 1234(G) 123456(K) 12(O)

Member Avatar for xanawa
0
801
Member Avatar for raghujosh

I need a string appended to a variable. [CODE]$name = "app200.php"; $string = <form name = "$name" method = "post"> echo "$string";[/CODE] The result I need is [CODE]<form name = [B]"app200.php"[/B] method = "post">[/CODE] But I am not able to echo the string this way. Any help. Thanks

Member Avatar for raghujosh
0
151
Member Avatar for TrustyTony

[I]This is one idea for thread of some lessons learned with experience about asking wrong question and answers 'thinking out of box'. If there is need to have sticky, I suggest that this thread become sticky development thread and moderator can move the upvoted suggestions for next part in new …

Member Avatar for TrustyTony
0
223
Member Avatar for rolandrogers

Hi, I have a MySQL DB and I am trying to set up a report page. To do so I need to be able to add the data in 6 or 7 fields into a single field for use in a summary report. How can I do that? SUM() seems …

Member Avatar for rolandrogers
0
175
Member Avatar for bulger2503

Is there a way to add data into a RandomAccessFile using seek(long) without writing over the data at that position and beyond? For example: [code] public static void main(String[] args) throws Exception { RandomAccessFile raf = new RandomAccessFile("test.txt", "rw"); raf.writeBytes("Hello, World!"); seek(2); raf.writeBytes("Goodbye, World!"); raf.close(); } [/code] Using that the …

Member Avatar for JamesCherrill
0
108
Member Avatar for kadriirdak

Hi There, I have a usage problem with CURL output. I have a web services and I use CURL to get the data, However this web services set up as XML output and I want to convert it to array to use the result in the web form. My CURL …

Member Avatar for kadriirdak
0
6K
Member Avatar for Red Dragon

the aim of this programme is to create a .txt file (of which the name is specified by the user) of all the items in a certain directory (also specified by the user) the problem is about half way down, the 'mydir' bit [CODE] #include <iostream> #include <fstream> #include <string> …

Member Avatar for Red Dragon
0
360
Member Avatar for towerrounder

Hi all, I'd appreciate some advice concerning the following issue. I have a situation with two very different ways to implement. Both are easy, but Im not sure of the pros and cons of each. Basically I am allowing users to message each other on a website, and so I …

Member Avatar for nick.crane
0
214
Member Avatar for ninjatalon

[CODE] If count < max Then If Br.Checked = True Or AM.Checked = True Or LU.Checked = True Or PM.Checked = True Or SU.Checked = True Or EV.Checked = True Then 'Code End If End If [/CODE] is there a way i can put both if statements together like if …

Member Avatar for Jx_Man
0
118

The End.