199,124 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Simzz

Dear all, I have a problem with binding a server socket on a mac os x 10.5.8. The problem is that every time i try to bind the socket to the address it gives the following error "Address already in use". I know that it means there is another process …

Member Avatar for gerard4143
0
439
Member Avatar for techhelpforme

This works: -----------PrintInfo.php <?php phpinfo(); ?> -------------------------- But this doesn't: -------------PrintInfo.html <html> <head> <title> Hello World </title> </head> <body> <?php echo 'This is my first PHP web page.'; ?> </body> </html> ------------------------- I'm using Apache 2.0 on WinXP Home with php 5. Thanks!

Member Avatar for diafol
0
3K
Member Avatar for selimhanov

Hi, It must be a simple issue, but couldn't find any answer googling. Here is the problem: I have a simple test application with a TextCtrl, Button and StaticText. When I press the Button, it must query PostgreSQL with ...[code]SELECT name FROM contacts WHERE name LIKE '%"+TextCtrl.Value+"%'[/code] and return the …

Member Avatar for Pupo
0
158
Member Avatar for Flufferman

Hi, Is it possible to put 2 where closes in your mysql select query. I need it because some people appear to be available twice, so I need to add from which team I want the information, so I need a where for the name and a where for team. …

Member Avatar for daryll1
0
114
Member Avatar for rigidboss

Hello All, I have a requirement as follows. I am writing a software to compute invoice . The program will get the user details and it will autogenerate a INVOICE NUMBER. So in order to auto generate the INVOICE NUMBER, i tried to use file concept. I save a integer …

Member Avatar for justice igwe
0
114
Member Avatar for spivey

I have a little tabbed content window that uses jquery and I have an annoying little problem: whenever I click on one of the tabs, the page resets to the top, so if you click on the last tab, you have to scroll down to see it again. Here's a …

Member Avatar for spivey
0
159
Member Avatar for ewall

I've been working on a simple little PyGTK app that shows an icon in the system tray. When you right-click, the pop-up menu appears as expected. However, first the menu appears with just some up and down scroll arrows, and I have to scroll down before it fills in and …

Member Avatar for ewall
0
220
Member Avatar for ishaybas

Hi Gurus, I am attempting to install KB970892 on SQL Express 2005SP3, and I am unable to do so, due to a SQL suspended installation. When I try to continue the installation (which I have no idea what is it trying to install - I have inherited this server the …

Member Avatar for ishaybas
0
89
Member Avatar for josh48

im trying to draw a box using gotoxy and fucntions. this is what i have at the moment, but dont know what to do next to complete it: [CODE]Program box; uses Crt; procedure draw(x1,y1,x2,y2:integer); begin gotoxy(x1,y1); write('.'); gotoxy(x2,y2); write('.'); gotoxy(x1,y2); write('.'); gotoxy(x2,y1); write('.'); end; begin draw(10,10,15,15); end. [/CODE]

Member Avatar for FlamingClaw
0
2K
Member Avatar for werm

Hello, I'm building an intranet site for work with an autocomplete feature. I have it working to where when the user clicks on the name in the autocomplete list, it will fill that value to the text input box. What I need it to do is after it fills in …

Member Avatar for werm
0
166
Member Avatar for gangster88

how could i print the length of a parameter?.. like def length(word) gives the output "word 4"?.. I have no clue of what to do? def length(): len=length()

Member Avatar for vegaseat
0
122
Member Avatar for punter999

[CODE]import wx class McaMenu(wx.Frame): def __init__(self, parent, id, title): wx.Frame.__init__(self, parent, id, title, size=(640, 432)) menubar = wx.MenuBar() file = wx.Menu() new = wx.MenuItem(file, 1, '&New\tCtrl+N', 'Creates a new document') file.AppendItem(new) file.AppendSeparator() open = wx.MenuItem(file, 2, '&Open\tCtrl+O', 'Open New document') file.AppendItem(open) save = wx.MenuItem(file, 3, '&Save\tCtrl+S', 'Save') file.AppendItem(save) save = …

Member Avatar for Namibnat
0
181
Member Avatar for mmonclair

Hi all, I am having a bit of an issue with a table I added (we'll call it 'new_table', with primary key 'key_id') to a PostgreSQL database I am working on. I recently created a table whose primary key is a serial int4. I have a standard query I run …

Member Avatar for pty
0
212
Member Avatar for suberi

hey there, i've been messing around with applying graphics to windows of other applications, using their window handles.. (if that's even possible..). here's my code so far: [code] [DllImport("user32.dll")] public static extern IntPtr GetForegroundWindow(); [DllImport("user32")] public static extern IntPtr GetWindow(IntPtr hWnd, uint uCmd); [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)] …

Member Avatar for suberi
0
113
Member Avatar for vignesh31

hi how can i translate these amino acids sequence into its triplet codes. this line is not working. [CODE]$aa =~ tr/arndceqghilkmfpstwyv/ala, arg, asn, asp, cys, glu, gln, gly, his, ile, leu, lys, met, phe, pro, ser, the, trp, tyr, val/;[/CODE] is there any delimiter to separate that three letter codes.

Member Avatar for d5e5
0
226
Member Avatar for tinkeydo

[CODE]#include <iostream> #include <windows.h> #include <fstream> #include <string> #include <ctime> #include <vector> using namespace std; bool fileCheck(const char *filename) { ifstream ifile("item.txt"); return ifile; } int show(int p) { srand( time(NULL) ); int random_integer; random_integer = ( rand ( ) % p ) + 1; return random_integer; } int main …

Member Avatar for tinkeydo
0
397
Member Avatar for gangster88

How could i index the program to output e.g. displayDate(10, 2, 2009) gives "10 Feb 2009" as the output. [code] def displayDate(day, month, year): Months = ['Jan', 'Feb', 'March', 'April', 'May', 'June', 'July', 'August', 'Sept', 'October', 'December'] [/code]

Member Avatar for vegaseat
0
105
Member Avatar for learn_vb.net

hello..i am new to VB.net i know VB i created a button on the form [code] private void button1_Click(object sender, EventArgs e) { MessageBox.Show("neha"); } [/code] i am not getting display .I just get a blank form when i choose start debugging

Member Avatar for learn_vb.net
0
96
Member Avatar for flying_bird

Hi guys, I am looking for an STL solution for the following problem. The desired behaviour is the following: - It should act as a priority queue - When an item is added, the item with the *lowest* priority should be dropped. I thought of doing that by making a …

Member Avatar for flying_bird
0
173
Member Avatar for jbisono

Hello everyone. The problem: I am developing a form that i have to validate some fields against the database. For this particular scenario lets say the Part ID field, I do not want to create a dropdownlist with all part id because is too big. maybe i can let people …

0
83
Member Avatar for imso

I started to program on C++ on converting 8bit binary to its decimal requested for my school project. But i have problem to proceed further as i am lost on what to add on next. Can someone help me to add on to my program to allow it to work.. …

Member Avatar for Dave Sinkula
0
214
Member Avatar for kbalamuk

I have a string as such: str = 'C:\Process new\RF\test.dat' I need to replace all the backslashes with '/': res = 'C:/Process new/RF/test.dat' It is NOT a straight forward search and replace as I need to replace escape sequence (\). Any ideas?

Member Avatar for slate
0
10K
Member Avatar for ireimaima

Hi....can anyone help me to explain what is the use of isPrime=true; in the last line of this coding..?? I found that it is very important because if i delete it, the answer of the prime number will always constantly 2 and 3.. Even if i put 7 as the …

Member Avatar for ireimaima
0
123
Member Avatar for goody11

I was working on a game where I have a bunch of enemies. I wanted the game to randomly select which enemy to use but it always picks the same one. Here is the file were I make the enemies: [CODE]using System; using System.Collections.Generic; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.Graphics; …

Member Avatar for ddanbe
0
125
Member Avatar for SORelena

Hello guys, I wrote a program VB 6 At the opening show me this window Please help quickly....:)

Member Avatar for SORelena
0
291
Member Avatar for hitro456

What is the best way to parse the string in C# In java u have a class like Scanner. Is there any equivalent class in c#.

Member Avatar for hitro456
0
540
Member Avatar for Shillz

how can we use a printf statement without a semicolon??? this was a question asked during an interview of a computer engineering student.

Member Avatar for Shillz
0
153
Member Avatar for personx121232

hi there,i have installed win32all package for python 2.5 , but now the python IDLE does not load any more...whats the problem,thanks.

Member Avatar for Stefano Mtangoo
0
91
Member Avatar for spogs

When I do the following: [code] s= serial.Serial('/dev/',9600) # or set a function and pass via command line s= serial.Serial(arg1,9600) [/code] The code executes without any error. [b]But[/b], when I use AJAX and POST the parameters to the script [code] def index(req): info = req.form sys.stderr = sys.stdout s= serial.Serial(info['device'],9600) …

Member Avatar for spogs
0
115
Member Avatar for theighost

Hello there, I am trying to make a CMS using wamp. I made an uploading photos section, and when I try to delete the folder of the photos I get: Warning: rmdir(C:/wamp/www/site/images/4b4731fda156e) [function.rmdir]: Directory not empty in C:\wamp\www\site\admin\process\delete.php on line 23 Although the directory is empty and I have checked …

Member Avatar for vaultdweller123
0
183
Member Avatar for Joehype

Hi guyz, could anyone please assist me with a code to load an image bmp, pln etc in C++. I'm using OpenGL Library. Please assist, in dire need. Joel

Member Avatar for mrnutty
0
176
Member Avatar for Chris147

Can someone please help me with this - it's driving me mad. I have a very simple app (at the moment) that stores file names/paths and folder names/paths in an SQL database and displays them in a ListView and TreeView respectively. All fine and dandy. I have an option to …

Member Avatar for Chris147
0
124
Member Avatar for Stefano Mtangoo

Hi, I want to prevent submitting a form if any of the field is empty. also if possible I would like to validate some basic things. All I want to use JQuery: How do I do that? I have no way and google points me to plugins. The things I …

Member Avatar for Stefano Mtangoo
0
2K
Member Avatar for neotek

Hope someone here is more experienced than our current database programmer (no offense to him). We have a business search and directory website that just launched. It was developed using flex with msSQL as the database. Here is the problem... We want the keyword field to be searched so that …

Member Avatar for neotek
0
211
Member Avatar for ireimaima

Hi...there,,can anyone debugging my code.. this program intend to find the average and count how many numbers is positif and negatif from 10 numbers entered by user. My problem is when i run the program the result of average is correct but somehow on the result of negatif and positif …

Member Avatar for ireimaima
0
154
Member Avatar for sfrider0

What is the best way to create a banner ad using information stored in a database? I have the information I was to use and already pulled from the database using PHP. How can I put this into a 460x80 banner in .gif or .png? I want to banner to …

Member Avatar for vaultdweller123
0
165
Member Avatar for JuicedBrain

I'm using Eclipse and even though I've done more challenging things than this I keep getting stuck no matter how hard I hammer away at it. This is a package, so the end of the first part (Driver Class?) is really what I'm having trouble with. Comments are included in …

Member Avatar for javaAddict
0
133
Member Avatar for ppetree

No... honestly... I mean this is REALLY dumb! I have a form with a select that looks like this: [code]<select name='toasters'> <option value='1'>Toaster 1</option> <option value='2'>Toaster 2</option> <option value='3'>Toaster 3</option> <option value='4'>Toaster 4</option> </select>[/code] In my php I read (or try to read) the value with: [code]$toaster = $_POST['toasters'];[/code] No …

Member Avatar for vaultdweller123
0
101
Member Avatar for tones1986

Hey guys - i am working off three files that contain information on associates and their sales. The files are: products: (product ID, name, price item) % cat products 103:sway bar:49.99 101ropeller:104.99 104:fishing line:0.99 ... 108:wheel:49.99 111:lock:31.00 102:trailer hitch:97.95 sales: (product ID,num. sold, date sale, associate ID) % cat sales …

Member Avatar for bobydavid71
0
210
Member Avatar for jakesee

Hi, This is a very convoluted problem I spent hours debugging to find that when I call std::vector<object>::push_back(Object()) destructor of previous Object is called. Is this the behaviour of std::vectors or is something wrong with my code? [CODE]#include <iostream> #include <vector> class Manager; class Entity { friend class Manager; private: …

Member Avatar for jakesee
0
471
Member Avatar for Seldar

Hello everyone. I am University of Bath Computer Information Systems student and i have to submit a java calculator. As far as i am quite new to java i would like to kindly ask you for some help with it. Here is my task: Write a program that takes as …

Member Avatar for AndreiDMS
0
195
Member Avatar for ashishchoure

hi, I want to know how to get name of connected peer. I am creating a simple client server application using winsock2. When I use getpeername() function it gives me IP of client machine. After connecting i did following step [CODE] sockaddr_in peeraddr; int size = sizeof(peeraddr); getpeername(New_Socket, (struct sockaddr …

Member Avatar for Excizted
0
1K
Member Avatar for sam1

hi, I am trying to validate a textbox that has a value of 1 and up so i am saying : [CODE] if (mytextbox.Text > 0) { //do something }[/CODE] but it is not working any suggestions please bare in mind that the text has 0 as default value so …

Member Avatar for MrSpigot
0
2K
Member Avatar for TheManual

I have written a working calculator program but it will not work out negative inputs. For example, 3+2 = 5.0, but, -2+5 = Wrong type of expression (error message). The user inputs the calculation which is called "expression". I have two stacks, one for operators and one for operands and …

Member Avatar for TheManual
0
133
Member Avatar for gunbuster363

Hi, I am new to here. I am doing with my honours project in University, it is about data mining. Before I can do data mining, first I need data. I want to extract data from a site : [url]www.tripadvisor.com[/url] Should I write my web crawler with python? I don't …

Member Avatar for gunbuster363
0
447
Member Avatar for tqmd1

Dear Sir, How to write these codes correctly. It displays following tooltip Too many arguments to 'public function iif(expression as bolean, truepart as object, falsepart as object) as object'. [CODE]Dim cmd As New SqlClient.SqlCommand("Insert Into master (code) Values (@code)", con) cmd.Parameters.AddWithValue(IIf(Val(Me.TxtCod) = 0, "Null", "@code", Val(Me.TxtCod)))[/CODE]

Member Avatar for jireh
0
116
Member Avatar for cwarn23
Member Avatar for cwarn23
0
218
Member Avatar for xairylle

Help... I've been asked to do a VB6.0 program. I'm required to enter values in a database that will be queried later on. Unfortunately, I can't seem to get the code right. This is what this part of the program should do: 1. Get the name to be searched 2. …

Member Avatar for jireh
0
173
Member Avatar for JohnPhilipps

Hello, I have two data comboboxes on a VB6 form "DataComboMasterPolicy" and "DataComboPurchasingGroup" after selecting the first appropriate choice with "DataComboMasterPolicy" I would like for the 2nd datacombox "DataComboPurchasingGroup" to only display the data associated with the user's selection. The data is in an Access 2003 db. My code for …

Member Avatar for jireh
0
123
Member Avatar for foxmulder

Hi! I have this simple movie-list that I wont work, I get compile errors on this simple program. Could someone please help me to get this to work, should be very simple for you guys =) Thanks in advance! Here's the code: [CODE]#include <iostream> #include <cstdlib> #include <fstream> using namespace …

Member Avatar for foxmulder
0
187

The End.