199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Eddiebauer
Member Avatar for Eddiebauer
0
194
Member Avatar for tim8w

I have a RichTextBox. I process all the formatting and everything works fine. There is an exception. When I have selected text that have two states of formatting in it, the SelectionFont member is set to Nothing. I notice that WordPad recognizes this condition and kindof greys out the affected …

Member Avatar for ShahanDev
0
163
Member Avatar for bob24bob

this is the therapist code- [CODE]import string import regex import whrandom #---------------------------------------------------------------------- # translate: take a string, replace any words found in dict.keys() # with the corresponding dict.values() #---------------------------------------------------------------------- def translate(str,dict): words = string.split(string.lower(str)) keys = dict.keys(); for i in range(0,len(words)): if words[i] in keys: words[i] = dict[words[i]] return string.join(words) …

Member Avatar for TrustyTony
0
187
Member Avatar for adams161

Hi, I have a frame and it contains some different JInternal frames. I have a request that some people want some of these frames to be free floating, and not confined within a desktop. Is there any way to do this with JInternal frames? Or is there any way to …

Member Avatar for adams161
0
230
Member Avatar for Newbi1984

Hi Daniweb members, I have two files that are not of equal dimensions and I need to match them on a unique key much like an SQL natural join. The files are space delimited and contain no headings. File 1 rs121 10001 A G rs125 10002 C T rs126 10003 …

Member Avatar for nezachem
0
928
Member Avatar for ibdatx

Hi All, I have a small problem that I am trying to solve...It regards storing string values in an array and outputting them to a .csv file. As you know the .csv file accepts inputs delimeted by commas ",", however the arrayed values are also delimeted by commas therefore $arr[$i]="1,2,3"; …

Member Avatar for fredfletcher
0
818
Member Avatar for benjaminFowl87

Hi I have my initialise constructor, why won't my function to_hash work ? [CODE]def initialize(msg) @original_msg = msg.strip.delete(' ') s = ["|","^"] @chunked_msg = @original_msg.split(s[0]) @msg_hash.self.to_hash end def to_hash @chunked_msg.each do |x| s = x.split("=") @msg_hash[s[0]] = s[1] end return @msg_hash end[/CODE]

Member Avatar for benjaminFowl87
0
98
Member Avatar for TheSassyDragon

Im trying to make a blackjack game that uses a graphical interface, it executes just fine and my IDE isn't giving any error reports which is making it really difficult to finish it. I posted some of my worries about why it won't operate. Any help, general comments, or wise …

Member Avatar for Gribouillis
0
115
Member Avatar for petmol

Hi everyone, I can't get this program to compile. It has something to do with brackets in the wrong place(s), but I just can't find what's wrong. Help, anyone? [CODE]#include <iostream> #include <string> #include <sstream> #include <conio.h> #include <ctime> #include <iomanip> #include "iodos.h" using namespace std; // Funktionsprototyper -------------------------------------------------------------------------- void …

Member Avatar for VernonDozier
0
209
Member Avatar for kkjay

Hi everyone, I am new to PHP and need help in making my script be able upload multiple images simultaneously. I need a large image and a thumb for each. I got this script from the web and made a few changes. I would really appreciate any help. The forms …

Member Avatar for kkjay
0
1K
Member Avatar for h20

Hi all, I need help in the alert function. I'm using count in php in which if the item is less than or equal to 10,the alert function would pop up. However my code does not work.Below is my code. Part of the php code: [CODE]echo "<td>".$row['COUNT(item)']."</td>";[/CODE] Javascript code: [CODE]<script …

Member Avatar for Airshow
0
196
Member Avatar for bjeffries

I don't know if this is more efficient or if it is just as quick to just code out a new page. But what I was wondering is how you create an index page and call on a new page, but the url usually says something like: index.php?page=contact instead of …

Member Avatar for bjeffries
0
148
Member Avatar for morteza_ipo

Hello. I want to create this address with php! [CODE] <?php $a = new dbclass(); $a->tablename->fieldname1('fieldvalue1')->fieldname2('fieldvalue2'); $a->delete(); //<<-- example! $a->insert(); //<<-- example! $a->update(); //<<-- example! ?>[/CODE] Please help me how to create class with this feature. thanks a lot.

Member Avatar for morteza_ipo
0
121
Member Avatar for ninikobb

Hello everybody! Im a new to this site. I wonder how can I get the row dimension of a matrix. For example i have a matrix double[n,m] and i want to get n provided m is unknown. So what property of method should i use??? Thank you

Member Avatar for ddanbe
0
121
Member Avatar for G_Waddell

Hi All, I have an application written in VB.net for batch print jobs. As part of the application, the user selects two printer trays to use to print the batch to (one plain paper the other coloured for coversheets and batch seperators) I had this working until we upgraded our …

Member Avatar for G_Waddell
0
231
Member Avatar for murderotica

Hello there, I've been having a hard time lately with implementing the drag and drop functionality outside the windows forms. I have no problem doing drag and drop within and between windows forms and from the desktop to the windows form. I have created an application where you can drag …

Member Avatar for dbirdz
0
3K
Member Avatar for Acute

Hi everyone, can anyone explain me why following code [U]alerts[/U] me nothing: [CODE=javascript] var text = $.ajax({ type: "POST", url: "registration.php", data: "email=" + elementValue }).responseText; alert(text); [/CODE] but when I add option "async: false": [CODE=javascript] var text = $.ajax({ type: "POST", async: false, url: "registration.php", data: "email=" + elementValue …

Member Avatar for Acute
0
261
Member Avatar for moroccanplaya

i get a undefined reference to get_menu_choice error message but i dont know why ? [CODE] int get_menu_choice( void); int main() { //code// while (choice != QUIT) { choice = get_menu_choice(); if (choice == 1) //code// } else if (choice == 2) //code// } if (choice == 3){ puts("you chose …

Member Avatar for gerard4143
0
165
Member Avatar for nesrine18

hi everyone, i'm a new member of this forum..i'm trying to retrieve the video stream from my Axis camera..i don't know what's exactly the problem:when i run the project there's no errors but i get no video on my jFrame.. this is my code,can you please help me to know …

Member Avatar for kashif_pucitian
0
429
Member Avatar for jay200032

Hello guys, I'm quite new to C++, I'm trying to achieve a task whereby i could read from a csv file and write to that same file and vice versa depending on the user's selection. This is what i did: [B]Here's the data already on file[/B] 1,Mickey,23,090,Girne,TRNC,465 2,Charles,23,090,Girne,TRNC,465 3,Species,23,090,Girne,TRNC,465 4,Moody,23,090,Girne,TRNC,465 …

Member Avatar for Ancient Dragon
0
307
Member Avatar for SDH1

I revised a code i found on the net. It doesn't print/output "0 1 2 3" when running it?. any potential bad errors?. [CODE]#include <iostream> #include <windows.h> class Thread { public: Thread(); static void * EntryPoint(void*); int Start(); int Run(int arg); void Execute(int); int Arg() const {return Arg_;} void Arg(int …

Member Avatar for Narue
0
104
Member Avatar for deb081900

Hi all I have 4 jRadioButton in a buttonGroup1 now I want to know how to determine which radio button is selected within these 4 radio button on Button Click event.. I tried to but failed.. here is my code [CODE] private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { str1=buttonGroup1.getSelection().getActionCommand(); System.out.println(str1); } [/CODE] …

Member Avatar for JamesCherrill
0
647
Member Avatar for Alex_

Hello. I'm trying to serialize a class that implements Serializable and a Runnable. My class has a transient Thread object as a field that is created and started after the restoration of my class(object). This is proven possibile by a tutorial from Oracle, [URL="http://java.sun.com/developer/technicalArticles/Programming/serialization/"]here[/URL]. But i fail to compile my …

Member Avatar for Alex_
0
2K
Member Avatar for WHchaz1027

Hi geeks, I really need your help. I want to query in a table in MS SQL using a data in another table. This might give you an idea on what I am talking about. This is the query I've constructed : "SELECT TABLE1.FIELD1,TABLE1.FIELD2 FROM TABLE1, TABLE2 WHERE TABLE1.FIELD3 = …

Member Avatar for jbisono
0
124
Member Avatar for RenanLazarotto

hey guys! how can I read strings from a file? Like... They will compose part of the interface... something like, read a string from a file, then this string points to a image that will be used in a picture box, as same as a label that will be shown …

Member Avatar for RenanLazarotto
0
132
Member Avatar for daviddoria

I have a drop down box like this: [code] <select name="DateDropDown"> <option value="2010 selected">2010</option> <option value="2009">2009</option> <option value="2008">2008</option> </select> [/code] I use the value that the user selects to refresh the page and perform a query on a database. Is there a better way than the following to keep the …

Member Avatar for daviddoria
0
7K
Member Avatar for draven07

[COLOR="Green"]..im just wondering...If I have entered a sentence in a InputDialog box, using JOptionPane, how can I get the middle character per word and put it at the beginning of each word then add a "java" word at the end of each word..?..[/COLOR] [B]for example:[/B] [I]The girl jumped[/I] [B]The result …

Member Avatar for draven07
0
96
Member Avatar for luke1705

I'm working on a program to score a bowling game. Right now, my terminal says that my program has a seg fault, but I can't tell where. Any other insight on how to help my program do what it's supposed to do would be helpful. I'm still not sure how …

Member Avatar for mfaisalm
0
96
Member Avatar for mcgeepj2

Greetings All, You helped be greatly last time I was here, hoping for a repeat. I have a page at [URL="http://www.vfw10216.com/download_file.php"]http://www.vfw10216.com/download_file.php[/URL] that displays contents of my database that stores PDF files. The contents field is type 'mediumblob' and attributes is 'binary'. The field does contain data in every record, as …

Member Avatar for mcgeepj2
0
723
Member Avatar for raja289

hi same week and am here again with another problem lol and yeah its my homework and am stuck somewhere as 95 % has been finished. Windows Form Application--- using C sharp and SQL server 2008 i made database in SQL server 2008 and using visual basic 2008 C sharp …

Member Avatar for tom_289
0
213
Member Avatar for rahulephp

[b]How to speed up the Group By Clause for a large 3GB database.[/b] I am using Group by clause for a large database having 148 columns and 5 million rows with approx 3GB of size. We need to apply the Group by clause on approx 1,00,000 rows at a time …

Member Avatar for smantscheff
0
710
Member Avatar for ampo

Hi. Strange thing: When I change the clock of the PC (XP SP2), something link current time is 12:03:34 to 12:05:34, my application crash. nothing in application log, though every method has try-catch. nothing in event log... Can anyone help? Thanks.

Member Avatar for ampo
0
126
Member Avatar for jingo1126

[I]Not sure if this is the right place to post this.[/I] I'm currently working on my personal site, and was wondering how would I connect a desktop application to my site without entering my site on a browser. I'm not here to get any codes worked by someone but I …

Member Avatar for bakir
0
146
Member Avatar for ayan2587

Hi all, I am trying to understand as to how this InputStream.read(byte[] b) function actually works. I have a doubt regarding the InputStream.read(byte[] b) function. The code is as follows:- [CODE] import java.io.*; public class SpeedReading { public static int count(String filename) throws IOException { InputStream is = new BufferedInputStream(new …

Member Avatar for ayan2587
0
104
Member Avatar for ivanwafoo

i used this code for email [CODE]$to = "somebody@example.com"; $subject = "My subject"; $txt = "Hello world!"; $headers = "From: webmaster@example.com" . "\r\n" . "CC: somebodyelse@example.com"; mail($to,$subject,$txt,$headers);[/CODE] however this error shows up Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or …

Member Avatar for bakir
0
2K
Member Avatar for abelingaw

Ok, my code for my Backup module works well via Copyfile. Here's what it can do (current): [COLOR="Red"]Backup my Database but using the date function as its filename Restore my backup file only if the filename is Database.mdb[/COLOR] Here's a screenshot of the prog: [URL="http://img262.imageshack.us/i/restore.png/"]http://img262.imageshack.us/i/restore.png/[/URL] and the backup files: [URL="http://img152.imageshack.us/i/backups.png/"]http://img152.imageshack.us/i/backups.png/[/URL] …

Member Avatar for AndreRet
0
270
Member Avatar for abelingaw

Having trouble with my code. You can see the values of the list in the code. Here's my code: [CODE] If cboGender.Text <> "Male" Or "Female" Then MsgBox "Please select from the list provided.", vbExclamation, "Error": cboGender.SetFocus: cboGender.Text = "Male": Exit Sub If cboGender.Text = vbNullString Then MsgBox "Please select …

Member Avatar for AndreRet
0
674
Member Avatar for MARKAND911

I want to find out days gap between two dates excluding sunday. How can i do this in oracle. Please help me.

Member Avatar for MARKAND911
0
89
Member Avatar for groedius

Ok so does anybody know of any good books or websites that can help me out. I mostly know C++ pretty well know and I am trying to build a game using MSVC 2008 with C++ and directx9. Is there any books or resources that would help me with further …

Member Avatar for ubibravo
0
110
Member Avatar for exception
Member Avatar for 4ukh

Dear Experts please help and support: Scenario: 1. 4 excel sheet (same structure) stored on 4 different computers attached to a network… 2. 1 master sheet (same structure) as other 4 sheets stored in my PC... Objectives: 1. Want to consolidate into one master sheet that is stored in my …

Member Avatar for AndreRet
0
162
Member Avatar for BhuviRajen
Member Avatar for a1a4a

Hello all I am on a windows application form where people can log in and add status ... and it's all online via sql database. What i am looking for is a sql query that Insert into the table the current time. Not the user time because he might be …

Member Avatar for AndreRet
0
193
Member Avatar for undersurvival

Hi, cancan someone help me with my problem? I am using vb 6.0 and MS Access 2003. I have a form where all the data in the database should display. The problem is, I don't know why my code is not working. here it is: [ICODE] Private Sub Form_Load() Dim …

Member Avatar for AndreRet
0
1K
Member Avatar for undersurvival

hi can someone tell me how can I search the database using dtpicker. I am usinf vb6 and ms 2003 and I need to display the date of birth of a on 3 textboxes,namely the firstname, lastname and middlename and also in a listview. please help me. this is my …

Member Avatar for AndreRet
0
302
Member Avatar for serolfaceh

Please help me, am new to VB6.0 im doing database wherein in my ms access i have 12 tables, and i have to connect it to vb6.0 and display its contents... is it possible to connect 2 to more than two tables in vb6.0? please show me how to do …

Member Avatar for AndreRet
0
101
Member Avatar for sahil1991

I was implementing this algorithm of parsing a mathematical expression....but dint meet the required result........i have restricted the string to take one digit numeral only i think i am suffering because of this type conversions between int and char...but don't know what to do... here's the code.. //parsing.cpp #include<iostream> #include<conio.h> …

Member Avatar for vinayakgarg
0
108
Member Avatar for GROUP1STI

Can you help us for our project in creating a daily record transaction? Do you have any codes out there or samples, and help us in connecting it to the database thru Microsoft Access. Your feedbacks are highly appreciated ASAP.

Member Avatar for AndreRet
0
104
Member Avatar for rpjanaka

hi im janaka priyadarshana, I want to write a program to access a given URL. dont need to show it on a browser. only want to get the html tags and write it on a text file. serch on internet for this purpos, but unable to find any idea. please …

Member Avatar for Jacob Majana
0
368
Member Avatar for gangaloves7

i want to generate crystal report using vb6.0 using invoice table which have rate column and total should round up like 63.7 to 64.00 invoice table is in sqlserver 2005

Member Avatar for AndreRet
0
155

The End.