64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Jackk123

I know there are a lot of topcs. I was searching for what i needed.But as i sow there wasn't anything that i can specifically use. I need a short code that generates 10 random numbers. Anyone help?

Member Avatar for mrnutty
0
108
Member Avatar for W1ND0W5

Me and a friend are making an app which we need to play a sound when Form1 is started. How do we do this? I don't mind code.

Member Avatar for W1ND0W5
0
252
Member Avatar for D33wakar
Member Avatar for gerard4143
0
110
Member Avatar for ehrendreich

I am working on validating a combo box. This does have a list of possible values but also allows for editing. So for example if the user does not select one of the available cities in the list they can type it in. I have tried using the validation event …

Member Avatar for ehrendreich
0
166
Member Avatar for samarudge

So I'm trying to get 3 DIVs to line up as columns horizontally. I've got it to work in some browsers but not all. It's supposed to look like [IMG]http://www.cake-spoon.com/wp-content/uploads/2010/08/Screen-shot-2010-08-25-at-11.46.10.png[/IMG] However in some browsers it looks like [IMG]http://www.cake-spoon.com/wp-content/uploads/2010/08/Screen-shot-2010-08-25-at-11.46.30.png[/IMG] The code I'm using (Stripped of all the crap) is [code=html] <div …

Member Avatar for hielo
0
125
Member Avatar for BonaDrag

I want to display all e-mail addresses from my database in a TextBox. The reason I want to use a TextBox is that I want them in a single row, separated by "; " and that's not possible in a ListBox (right?) which I was using from the beginning. So …

Member Avatar for cgcgames
0
151
Member Avatar for jemz

hello, hi can you help me what method to use to count how many words in a sentence... hoping for your positive responds thank you in advance...

Member Avatar for jon.kiparsky
0
126
Member Avatar for 0xCMD

Greetings There are many topics on this issue over the internet but None of them addresses this issue properly, so I couldn't find a solution to the problem. I installed: *Oracle Database 10g Express Edition* After the installation was done, I opened SQL Command Line and I used the command …

Member Avatar for tesuji
0
321
Member Avatar for visualmonk

Hello, I am trying to use the mysql_real_escape_string() function, but I can't seem to use it without losing the content of the variable. When I use [code] $act="It's now or never" $act=mysql_real_escape_string($act);{ [/code] then attempt to insert the value of $act--it comes out null. I have established the database connection, …

Member Avatar for liamfriel
0
143
Member Avatar for hindu times

Hi there, I've been working over the past few weeks on these pages... - [url]http://www.rjt-online.com/photos.php[/url] - [url]http://www.rjt-online.com/video.php[/url] The issue I'm facing is with the Video page. As you can see, the iFrame that hold the videos themselves is working fine in IE, but when you look at it on other …

Member Avatar for hindu times
0
106
Member Avatar for snehalata86

Hello, I am trying to make a report which provides drill down facility for each slice inside the pie chart.If the slice refers to USA then another report should be opened which will provide detailed information about orders placed in USA.But it is not working. I have created two reports.In …

Member Avatar for satheeshsv
0
368
Member Avatar for acejhon

hi to everyone, im having trouble with python programming... i have these 3 problems.... 1. remove a duplicates in a sorted integer 2. a python program that will detect if a number is divisible by 3 if you have solutions for my problems, can you help me pls...

Member Avatar for TrustyTony
-2
285
Member Avatar for Krs13

Hi, I have a login screen where user enters their name and password. The username and password are stored in access. Then when the user opens forms i need their username to appear in the form. Can somebody give me code for that please. Thanks Krs

Member Avatar for Krs13
0
181
Member Avatar for mns_2010

Here is a client code for socket programming: #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <string.h> #include <netdb.h> #include <sys/types.h> #include <netinet/in.h> #include <sys/socket.h> #include <arpa/inet.h> #define PORT "3490" // the port client will be connecting to #define MAXDATASIZE 100 // max number of bytes we can get …

Member Avatar for mns_2010
0
163
Member Avatar for rmsagar

Hi, I have a file which contains lines in a unformatted way, from that file I would like to take the value of ID=xxxx which can be in the beginning of the line or at the end or in the middle sometimes inside the brackets and repeated multiple times in …

Member Avatar for rmsagar
0
99
Member Avatar for yapkm01

I am newbie to C++ and pretty confused about initialization of local variables for built-in and class types. Here's a snippet of the code: 1 #include <iostream> 2 using namespace std; 3 4 class A { 5 6 public : 7 A() : x(9) {}; 8 int x; 9 10 …

Member Avatar for arkoenig
0
1K
Member Avatar for bibiki

Can someone please explain why is the following code outputting some Chinese instead of breaking down the string passed in the function into an array. [CODE]<?php // define URL $url = "http://www.somewebsite.com:80/community/columns/trog/article.php?id=79&page=2"; // parse URL into associative array $data = parse_url($url); // print URL components foreach ($data as $k => …

Member Avatar for FlashCreations
0
106
Member Avatar for ceeandcee

I know how to limit the number of rows returned in a query: [code] $result = mysql_query("SELECT * FROM playerdb where CFHL_A = 'XMEN' OR CFHL_B = 'XMEN' order by field(pos,'LW','C','RW','D','G'), PTS0910 DESC LIMIT 0, 11") or die(mysql_error()); [/code] However, now I am looking to fix a table to 25 …

Member Avatar for MooGeek
0
149
Member Avatar for baudday

Hi, So I'm working on a shirt printing quoter for a client. Basically you fill out a few fields and it tells you how much it would cost to print your design on 24+ shirts. After you see your total, you can place your order by filling in contact info …

Member Avatar for ﻼim
0
174
Member Avatar for jkaye

I'm trying to write this query, but I don't know how to go about it. Say you have a table with a bunch of listings, with multiple listings per company. You have a status field in the table that is either complete or active. What I want to do is …

Member Avatar for ﻼim
0
172
Member Avatar for lewashby

I'M new to SQL and I'M reading the book "Simply SQL". I'M running Ubuntu Linux and I downloaded MySQL Workbench. I also downloaded the source .sql files for the book. I need some help getting started. How do I get the files into Workbench so I can follow along with …

Member Avatar for tesuji
0
306
Member Avatar for marvolo1300

Hi i encountered a problem while compiler this [CODE] if (operation != '+' || '-' || '*' || '/' ) { cout << " Incorrect operation" <<endl ; system ("calculator.exe") ; } [/CODE] I am trying to use system() to launch calculator.exe. I have used this method before, here's the …

Member Avatar for Ancient Dragon
0
106
Member Avatar for agent154

I'm writing a tool that will manipulate files via the command line, and what I would like to do is be able to supply a path to a file that is not necessarily in the current working directory. For example, if I run my software with the command line paremeter …

Member Avatar for Matt Gudmundson
0
301
Member Avatar for ceeandcee

What I am trying to do is to run a query in my database and output a table to a php file. If the query yields 10 resuts or rows, I would like the far left column to read 1,2,3,4,5,6,7,8,9,10. What happens now is it outputs all 1's in the …

Member Avatar for ﻼim
0
90
Member Avatar for heshanm

Hi all, I have created several validations to my forms in the web site.If a particular field is empty then a message box displayed [B]"Please enter name/address/contact number etc[/B].At the same time if I added data successfully to the database there is a message box displaying and saying [B]" Data …

Member Avatar for vhss
0
73
Member Avatar for phpDave

HI! I just wanted to ask a question. All the code looks good and works exept for this line [CODE]<input name="btn1" type="image" onMouseOut="turnYellow()" onMouseOver = "turnGreen()"/> <img name="signin" src="images/images/images/sign-in.gif" border="0">;[/CODE] What I am trying to do is use an image instead of the standard submit button. Anyone know why this …

Member Avatar for phpDave
0
89
Member Avatar for Lolecule

Hey, I'm currently writing a SUVAT calculator in Java, my program needs to know when the user enters a dash as an argument, my problem is essentially this code fragment: [code=java]if(args[x] != "-") { valuesYouHave[x] = true; values[x] = Double.parseDouble(args[x]); }[/code] From my own testing I have deduced that the …

Member Avatar for wildplace
0
161
Member Avatar for ivatanako

I am trying to make a website that uses fopen to open up text file. Something like this [url]http://somesite.com/readarticle.php?name=sample.txt[/url] [code]<?php $file = 'sample.txt'; $f = fopen($file, r); while ( $line = fgets($f, 1000) ) { print $line; } ?>[/code] The sample.txt is located on the web server, I was able …

Member Avatar for ndunks
0
171
Member Avatar for andrewliu

Hello, I got my search engine working and it does show the number of results including the number of pages it should have. But I'm having trouble outputting the results when I click next. When I click the next page it doesn't show any results. [code]<?PHP global $search_term; global $location_term; …

Member Avatar for andrewliu
0
294
Member Avatar for DaveTran

I have a 1D array and I wish to access it like a 3D array. If I know the values of the 3 dimensions Width (x) Height (y) Depth (z) then I can create the 1D array using array[width * height * depth]. How can I now access the indices …

Member Avatar for DaveTran
0
395
Member Avatar for laughnan

I send out multiple types of variables (i.e. 2 char arrays, 1 int, 1 double, and two more char arrays). But when I read then back at the beginning of the program (building a LLL) I get multiple declarations of the same variables and then when I display the LLL …

Member Avatar for Kanoisa
0
4K
Member Avatar for dsul

I'd like to have a windows forms application execute a command line instruction similar in structure to the following: ProcessText file1 file2 where ProcessText is a working console tool for automated text processing, file1 is the text I need processed, and file2 is the created text output. From the command …

Member Avatar for PsychoCoder
0
206
Member Avatar for DeIntegro

I understand that y = n ^ 4 will be pow(n,4)...but what about drawing the curve y = 1 - x ^ 4 y = (1 - x) ^ 4 y = 1-(1 - x) ^ 4 I appreciate your help. Thanks.

Member Avatar for DeIntegro
0
178
Member Avatar for SMG_

Right, so for a project at my work experience placement, I have to make in vb.net a game in the style of the classic "Lights Out" ([url]www.ebaumsworld.com/games/play/1111[/url]). I'm still getting used to vb.net, and I've come across a very basic problem that I need a bit of help with, I'm …

Member Avatar for codeorder
0
366
Member Avatar for xylude

I have been trying to get a loaded element to fade in on Safari for about 2 hours now to no avail. Anyone aware of a fix for this? Here is my code: [CODE] $('#badgeHolder').fadeTo('slow',0); $('#badgeHolder').load('somePage',function(){ $('#badgeHolder').fadeTo('slow',1); }); [/CODE] I have also tried: [CODE] $('#badgeHolder').load('somePage').hide().fadeIn('slow'); [/CODE] Either one of the …

Member Avatar for xylude
0
486
Member Avatar for glenak

Hi, I want to code a client/server app such that there will be one server and multiple clients interacting with the server. The clients will send messages, like "Hello, server," and the server will send messages back. I know how to write a simple client/server app, however im confused as …

Member Avatar for glenak
0
236
Member Avatar for BonaDrag

I have a string that looks like this: [ID] [LastName], [FirstName] I want to fetch the ID, it consists of one or more digits. I'm guessing I have to find the first space of the string and then fetch the digit(s) before that space. If I understand things correctly I …

Member Avatar for BonaDrag
0
217
Member Avatar for hinfeyg2

Hi all, So I would like a else statement that would go like this: <?php if ($image=="none") echo "no image"; else <img src="../images/<?php echo $image; ?>"> ; ?> Obviously this does not work. Any suggestions on how to get it to work? So if $image's value is 'none' then it …

Member Avatar for hinfeyg2
0
70
Member Avatar for Hafsa0110

hello! just started out here... i need help with this program i need to generate a 3*3 matrix having unique numbers in the range 1-9. I did this program using srand but i'm unable to get the correct output...i couldn't figure out the error...could someone plz help me?? here the …

Member Avatar for ananda2007
0
180
Member Avatar for eefh01

Hi, I have been breaking my head to solve this. May be this is very simple. I am trying to convert date value to string and to merge with another string. [CODE] $dt=$_POST['formdate']; //$dt is in format of Y-m-d $msg = "The date entered is ".$dt; echo $msg; [/CODE] But …

Member Avatar for eefh01
0
106
Member Avatar for Jazerix

Hey there, so basicly I'm writing a little application that will kill some processes and some junk programs running in the background. Yea i know this can be done in task manager aswell, but I want to learn ^^. So, I want a button called "Get all running proccesses", when …

Member Avatar for Jazerix
0
150
Member Avatar for Katana24

Hi - what im trying to do is to create a way of centering an image on a frame no matter what the size of the frame. I have two classes: one called "Picture_Frame.java"; the other "MyImage.java" In the latter I get the image and paint it then call on …

Member Avatar for Katana24
0
2K
Member Avatar for PoisonedHeart

Hi everyone, is there a possible way in moving the position of a picturebox anywhere inside an MDI form? [ATTACH]16691[/ATTACH] I tried to use the picturebox's left and top property through code but when the mdi form is loaded, the picture box is still aligned at the top, or at …

Member Avatar for Aslam Mansoor
0
683
Member Avatar for cac186

Hi there. I'm a newbie and am having what I'm sure is an easily corrected issue. I am using JFileChooser in one class to select a file that I would like to to have passed onto another class for file reading. [CODE] private String selectFileOpen(String title) { JFileChooser fileopen = …

Member Avatar for cac186
0
147
Member Avatar for shaqtus

I'm creating a website which has a login function. Once the user logs in, they are shown a button that allows them to log out. When the user logs in, a boolean variable on the server is changed to "true", because the user has logged in. When the user clicks …

Member Avatar for dnanetwork
0
131
Member Avatar for acrocephalus

Hello! I have been playing around with python and mysql, and I have started thinking about creating a database to record my bird sights. For connection purposes, I have programmed this class [CODE]class LoginDlg(wx.Dialog): def __init__(self): wx.Dialog.__init__(self, None, -1, 'Login to Ornithobase 1.0b', size=(250,150)) def comboLogin(): import MySQLdb db= MySQLdb.connect(host='localhost', …

Member Avatar for acrocephalus
0
193
Member Avatar for blaisemcrowly

I have a problem that i have tried my best to solve.. but its not working well in my program i take both integer and character inputs. [B]when typing fast i noticed that, when a user accidentally enters a character instead of integer or integer instead of character the program …

Member Avatar for MooGeek
0
2K
Member Avatar for morganJohnson

I've got a slight problem with a function I'm writing. I'm trying to pass a 2d array to a function whose sole purpose is to display the contents of said array. Now, what I'm about to give you all compiles, but my compiler (bloodshed's dev-c++ v4.9.9.2) is giving me "warnings". …

Member Avatar for morganJohnson
0
183
Member Avatar for insanely_sane

Ok.. so I just started python (just = 3 hours ago). I have basic input and output set. Hell I even understand slicing and stuff (OMG SUBSTRINGS SO MUCH EASIER ON PYTHON :O ) but Im finding it not so easy to understand how to use for loops (silly me. …

Member Avatar for insanely_sane
0
210
Member Avatar for willgr

I have developed a C++ CGI which runs fine on Apache on Win32. I would like to deploy the program onto linux. My plan is to install Wubi (i.e. Ubuntu) and compile the CGI there so that it will work on the linux server. But before I do, I need …

Member Avatar for willgr
0
239

The End.