199,113 Archived Topics
Remove Filter ![]() | |
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 … | |
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 … | |
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&d=%3Cpath_to_url%3E&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">'; … ![]() | |
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 … | |
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) … | |
[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) | |
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 … | |
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 … | |
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 … | |
[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 … | |
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. | |
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 … | |
Would you help me about "How to Increase file upload size from default 1mb on host server using php." Thanks | |
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 … | |
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 … | |
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! | |
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> … | |
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 … | |
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] … | |
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 … | |
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? | |
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. … | |
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 ? | |
[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. | |
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 , … | |
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 … | |
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 … ![]() | |
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 | |
int const & refToConst = i; // OK int & const constRef = i; // Error the "const" is redundant what is the difference between the two ..? | |
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)) > … | |
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 … | |
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 … | |
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, … | |
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 … | |
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 … | |
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. … | |
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 … | |
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? | |
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 … | |
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 | |
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: … | |
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 … | |
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. … | |
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 … | |
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 :'( | |
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 ![]() | |
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 … | |
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 … | |
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 … | |
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 … |
The End.