199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for fka

Hello, I have a list of strings. It contains strings with NAMES of my objects. This mean: [CODE]First f1 = new First(); Sec f2 = new Sec(); Third f3 = new Third();[/CODE] And my list contain: [CODE] List<string> smth = new List<string>(); First, Sec, Third[/CODE] How can I create object …

Member Avatar for Momerath
0
100
Member Avatar for student.09

Hi Everyone, So I just finished writing a program from my Java class,except I can't figure out how to validate the bookID. "In the Book class, you need to provide a validate method that validate weather the book id is correct. The book id should be a [B]string[/B], which contains …

Member Avatar for benqus
0
4K
Member Avatar for Spyzker

i have echo error. code; [CODE] echo '<li>'; echo '<div>'; echo '<div class="author-image">'; echo '<img alt="gravatar" src="http://0.gravatar.com/avatar/8a567031a8d520b2f97089e715b64e00?s=50&amp;d=%3Cpath_to_url%3E&amp;r=G" class="avatar avatar-50 photo" height="50" width="50" />'; echo '</div>'; echo '<div class="comment-wrapper">'; echo '<div class="comment-inner">'; echo '<div class="comment-top">'; echo '<div class="comment-author">'; echo '<a href="http://www.outerspiceweb.com" rel="external nofollow" class="url" target="_blank" />'.$yorumlari_cek_yeni['yazan'].'</a>'; echo '</div>'; echo '<div class="comment-text">'; …

Member Avatar for diafol
0
179
Member Avatar for mahela007

Hi. I want to try and control a Servo motor directly from a USB port. (without using an intermediate microcontroller). To do this, I need to send pulse width modulation signals on one (or more) wires of the USB cable. Is it possible to do this with python? (I found …

Member Avatar for mahela007
0
763
Member Avatar for Warl30ck

OK so I'm trying to parse simple URL's from a whole char chunk using strtok but always keeps giving me an unhandled exception error . SO here is all the code in C++ : [CODE] char* str = "(%/\%)google.com(%/\%)hotmail.com(%/\%)nananna.org(%/\%)" char *url[]; while(str != NULL){ url[0] = strtok(str, "(%/\%)"); if (DownloadFile_1(url[0],szPath) …

Member Avatar for Narue
0
317
Member Avatar for literal

[CODE]int i, j; for(i=2;i<1000;i++){ for(j=2;i/j;j++){ if(!(i%j)) break; if(j>(i/j)) cout<<i<<" is prime\n"; } }[/CODE] Can somebody experienced clear me how this program actually finds prime numbers... The line with the last if condition confuses me most -> j > (i/j)

Member Avatar for Distantearth
0
164
Member Avatar for quinnifir

I have been recently working on a java project to just practice java and work on making programs for fun, but i came up upon this bug: When i use Thread.sleep on my java program, it doesent execute the line above the try-catch block where i have my Thread.sleep. heres …

Member Avatar for JamesCherrill
0
137
Member Avatar for rajeesh_rsn

Hi, In one of my project there is a textarea for inserting data for users. In that Italics, Bold, Link options are added just like every forum text area. But when user clicks in italics or bold .. and leaves it with out closing then on render view full of …

Member Avatar for almostbob
0
114
Member Avatar for WildBamaBoy

Right now I only need to be able to send a 100kb JPEG photo. I tried Google and found a couple of things but their code only threw exceptions so maybe what they've done is not appropriate in my situation. This is an attempt at a remote screen viewer. If …

Member Avatar for oredigger
0
186
Member Avatar for ztdep

[CODE]// // CoordMatrix.h define the matrix stored in a coordinate format // #ifndef COORDMATRIX_H #define COORDMATRIX_H #include<vector> #include <assert.h> using namespace std; class CoordMatrix { private: // val strore the values in matrix; vector<double> val; // row is row index of value; vector<int> row; // col is colume index of …

Member Avatar for vijayan121
0
189
Member Avatar for 9Nimo4

How would I get a box to appear when I hover over a JLabel? The box is to explain what the label is. This is just a minor detail for the user-interface functionality of a game. So when a user hovers over a label, a box appears explaining it.

Member Avatar for JamesCherrill
0
542
Member Avatar for dyingatmidnight

hey there, what I want to do is transform search results into hyperlinks. This part isn't really the hard part I don't think. But what I would like it have a generic details.php page which would bring up everything associated with the url you clicked. For example, my database is …

Member Avatar for pbcomput
0
161
Member Avatar for geoamins2
Member Avatar for ko ko
0
214
Member Avatar for collizz

Hi Can someone please let me know which classes, objects, etc I should use into to convert an image file (.png, probably) to a printable string in Java? The image will be around 100px square and I presume I could scan 1px lines into arrays, etc? I'm hoping Java has …

Member Avatar for NormR1
0
243
Member Avatar for Thyvo

Hello, I looking for a piece of code to chop a string into a array with 2 or more delimiters example: this is the text and I want to chop [!FIRST!] here and a bit later [!LAST!] here and if its posible (its not required) [!OPTIONAL!] chop it here and …

Member Avatar for Thyvo
0
208
Member Avatar for RobotFX

So, here's the picture: page1 has, at the bottom of it, a frame loading page2. The question is: can use a javascript (how?) in page2, so when the page1 loads, it will focus to the frame loading page2? Thanks!

Member Avatar for twiss
0
869
Member Avatar for rohittripathi

how to search in php by using alphabetic charecter in php i have code which show alphabetic like A to Z but how to search data by using thi alphabetic code is below:- <?php for ($i = 65 ; $i < 91 ; $i++) { printf ('<a href = "%s?result.php?$i=%s">%s</a> …

Member Avatar for twiss
0
462
Member Avatar for branding4you

this has got me stumped, i have a simple few text boxes that users type in the hotel name. Some names have special char in them like: L 'Ermitage I have two tables, the Top3 table has data that i display to users The details are where the main data …

Member Avatar for twiss
0
362
Member Avatar for reza.adinata

Hi, I am new in C, trying to create a simple C file, that assign a value for a struct member with the type of string. I can't figure out why it said error : string.c:20: error: expected expression before ‘{’ token, but I don't find any syntax error.. [CODE] …

Member Avatar for reza.adinata
0
220
Member Avatar for minitauros

Hello. I'm not so good at Javascript, but I tried to write some code to obtain some form values and write those to a query string to use in AJAX. It seems to be working partially, but I don't understand what is going wrong. What happens is that in the …

Member Avatar for minitauros
0
778
Member Avatar for rtr18

Hi! I'm trying to restrict my exe to only one at any time. I've used the following code: [CODE] var Mutex : THandle; Mutex := CreateMutex(nil,False,'MyMutexName'); [/CODE] I got the following error in CreateMutex: 'Invalid Number of Parameters". How to create a Mutex in Delphi?

Member Avatar for TrustyTony
0
197
Member Avatar for mdeokute

I am gettig "could not find installable isam" while connecting to access 2007 databse the code that i wrote is: Public Sub MyConnection() constr = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Contact_management\Contact_DB.accdb;Jet oledb:database password=abcd" con = New OleDbConnection(constr) If con.State = ConnectionState.Open Then con.Close() End If con.Open() End Sub i installed office 2007 via network. …

Member Avatar for pocohontus
0
121
Member Avatar for shimooli

I''ve got a struct like this: struct Node { int n; Node *left; Node *right; } I build up a binary tree from this struct. Now, how can i save the binary tree onto the hard disk, and how can i rebuild it from the hard disk ?

Member Avatar for Narue
0
173
Member Avatar for illuminatus89

[CODE]#include<stdio.h> #include<conio.h> #include<stdlib.h> struct a{ char *c; int b; }t; int main() { scanf("%s %d",t.c,&t.b); printf("%s",t.c); getch(); return 0 ; }[/CODE] I guess there is some problem in receiving input (more precisely in t.c part). Further assistance will be appreciated.

Member Avatar for illuminatus89
0
137
Member Avatar for Fresco Vivir

Greetings everyone i'm new to php and this is what i want to do if you can help me , i have a DB on my web server and there are two column one for the name of the product and the other for the id of the product , …

Member Avatar for Jiaxin
0
104
Member Avatar for indianbaski

Dear All, Hi.. I need help… Multicolumn text flowing through multipage sliding, should calculate total column, gap, text size, image size for different browser. To be control with Previous Page & Next Page. At the ending of story the next Page sliding should stop. Please give me suggestions how to …

Member Avatar for indianbaski
0
116
Member Avatar for OSM101

I am using jQuery Dialog to show dialogs when preforming insert, delete and update operations in a GridView inside an UpdatePanel. The problem is that there is a repetition when preforming more than one operation. For example, when updating a record on the page for the first time, it only …

Member Avatar for stbuchok
0
130
Member Avatar for Arjun_Sarankulu

I have varchar value 4890 And i am casting it to decimal and dividing by 100000 Its output is 0.0489000 But when i calculated the same on calculator it gives 0.04890 And i think it should be 0.04890 Please help me out Thanking in Advance

Member Avatar for Arjun_Sarankulu
0
85
Member Avatar for arun srinivaas

int const & refToConst = i; // OK int & const constRef = i; // Error the "const" is redundant what is the difference between the two ..?

Member Avatar for pseudorandom21
0
66
Member Avatar for vedro-compota

hi programmers!) Please help me understand this - as I understand from practice - the getting SIGALRM by process is ends the process - but I can't find the explanation of this guess. for exp. - I have code - [CODE]int main(void) { /* Установить будильник */ sleep(1); if((alarm(5)) > …

Member Avatar for vedro-compota
0
114
Member Avatar for Sadun89

Dear Friend..... I want to make web site that it want to plugging with facebook..... In other words, If i type & submit something,I want to publish in Facebook wall (if i can publish in selected person's walls its very worth) it like what the youtube done after some video …

Member Avatar for Sadun89
0
282
Member Avatar for dyingatmidnight

So I have this table checkout([U]cardNumber[/U],[U]libraryID[/U], checkoutDate, checkinDate, dueDate) that holds the checkin and checkout information for books in a library database. The trouble is I only now realized that with this set up a cardholder can't checkout the same book at a later date. I've been wracking my brain …

Member Avatar for dyingatmidnight
0
99
Member Avatar for Schol-R-LEA

I [url=http://www.daniweb.com/software-development/python/threads/364777]recently discussed[/url] some problems I had had in getting PyODBC working with Django and Django-pyodbc, but at the time it was decided to switch to an ASP.NET solution instead. For various reasons, we are trying once again to set up Django and PyODBC, and while we've had some success, …

Member Avatar for Schol-R-LEA
0
697
Member Avatar for FrazMan

Evening, ive sucessfully managed to connect to a local copy of sqlserver via c# and input data into an existing database. Unfortunately im not too sure how to connect to the server and then create a database. Im assuming its possible?? If someone could point me in the right direct …

Member Avatar for FrazMan
0
159
Member Avatar for danholding

hi i have a drop down list where i select an employee id, once i click the button i want it to populate the Rate text box with the rate which matches the id from the table in sql. i have this so far but not sure if i have …

Member Avatar for danholding
0
220
Member Avatar for denmarkstan

Most times I read book online, where downloads has been restricted. You as a reader can only be able to navigate through the pages of the book. As a beginner programmer I have been trying to do application”Online Library” where the reader can only navigate as well; and not download. …

Member Avatar for jfarrugia
0
150
Member Avatar for prathu1

help me to understand the below highlighted: [B][COLOR="Red"]When the login program executes a shell, that [U]shell is uninitialized[/U]. When a shell is uninitialized, important parameters required by the shell to function correctly are not defined.[/COLOR][/B]The shell undergoes a phase called initialization to set up these parameters. This is usually a …

Member Avatar for thekashyap
0
256
Member Avatar for Stefan_Lam88

Guys, I have a problem here recently. I open my aspx and run.. for firefox it performs ok, no problem at all. But when I use internet explorer and process, it show an exception. ....is a physical path, virtual path is expected. any1 know what is the problem?

Member Avatar for Stefan_Lam88
0
93
Member Avatar for PinoyDev

Ive created a fancy box driven login.. Now i wonder if can I directly compare the login username and password to mysql using php tags.? Here's the initial coding but it doesn't work..please correct me.. [code=javascript] <script type="text/javascript"> $("#login_form").bind("submit", function() { if ($("#login_name") != <?php $row_rec_mem_accnt['user_name']; ?> || $("#login_pass")!= <?php …

Member Avatar for PinoyDev
0
173
Member Avatar for rssk

hi all.... i hav three scripts like 1)memory.py 2)channelmap.py 3)upload.py [B]i need to run only one script depending upon a selection(i.e,1)memory.py, 2)channelmap.py , 3)upload.py ) is there way to do this [/B] plzzzz help me

Member Avatar for rssk
0
79
Member Avatar for nocloud

I've been scratching my head for quite some time with the following compilation error and I was hoping somebody could shed some light... I have the following in my header (.h) file: [CODE] //the mem_data class======================================// class mem_data : public reader, public date { //multiple inheritance public: mem_data(int,int,std::string); ~mem_data(); private: …

Member Avatar for caut_baia
0
385
Member Avatar for suley04

Hi Everyone, I have a BIG problem right now. I am currently learning ASP.NET to fulfil my job role, as an IT Manager. Although I have programming experience in other languages, I have never done ASP.NET before. I am currently working on a website called [url]www.packagepets.com[/url] . I recently uploaded …

Member Avatar for jfarrugia
0
314
Member Avatar for chetanbasuray

I was planning to start with a java speech program and went on with some research across the internet. I found that for any such program I need an API called the java Speech API. However when I wrote down import java.speech it showed no existence of any such API. …

Member Avatar for techstu123
0
207
Member Avatar for jatpatel1

Hi there, I am currently facing some problems with return carriages. I have an address already in a table in the database which has return carriages. Now when you echo the address out it will loose the return carriages and instead will put it all on one line. I have …

Member Avatar for urtrivedi
0
92
Member Avatar for ibakir

guys chk out that link its really hard to solve :O [url]http://businessadmingroup.com/molham/edary.php[/url] i have windows 7 and calling my database from online SQL :'(

Member Avatar for urtrivedi
0
94
Member Avatar for kalambe

Hi everybody , i'm newbie in this forum :) i wanna ask about how to make link in notification email like facebook's notification email? thanks

Member Avatar for diafol
0
173
Member Avatar for matthewkeating

Hello all, I have just converted from Windows to Mac and have been a longtime user and fan of NotePad++. I had heard of a way to run it on a Mac but am having the hardest time finding it. Is this possible? And if not, what are some FREE …

Member Avatar for dekarvn
0
219
Member Avatar for divineelite

I am currently working on a program where there is a requuirement that if the user removes a wifi modem & puts in another one, then the internet should get connected by detecting the new modem. Also the WPA key should be needed to be entered everytime. I am thinking …

Member Avatar for divineelite
0
208
Member Avatar for danielgr

Hi, When I view images on my development PC they look fine, but when I view them on other PC's, the images are sized differently and often get cut off. I've tested this on multiple PC's and the images always get cut off. I've attached the images from my PC …

Member Avatar for danielgr
0
209
Member Avatar for begin1

hi , i have a table which have values like this : S11 S2 S9 S20 S11 0 0 2 0 S2 0 0 0 2 S9 2 0 0 2 S20 0 2 2 0 i want to compare columns and rows and assign color to S11,S2 , S9 …

Member Avatar for twiss
0
338

The End.