199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for mpike

ok so theres 2 things i need help with. in my code i have a random dynamic array with sides a minimum of 9 and max of 20. in this array i need to spawn characters randomly (here's where i need help) how can i randomly spawn characters in a …

Member Avatar for Dingbats
0
411
Member Avatar for muralibobby2015

hello, i have to display google images in my website. i would like to add google images in my wishlist simply drag the image into dropbox. it will add into my wishlist. for this i am using this code. this code is from [URL="http://demos.hacks.mozilla.org/openweb/DnD/"]mozilla[/URL] but it is not working in …

Member Avatar for madCoder
0
134
Member Avatar for ddggttff3

Well im currently coding up a paypal payment system to go with a user system for a site, and when someone goes through paypal, paypal pushes info to this script. Problem is, the script does not log anything to MySQL, and I can't figure out why. Anyone here want to …

Member Avatar for ddggttff3
0
251
Member Avatar for prettyrein

Now, I have another problem about duplication validation of my data in db.. the message "...already exist" if function validate was through. now if I add a new data, same message pop up...and i can't add new data. I try to reverse my return value and I can add but …

Member Avatar for prettyrein
0
131
Member Avatar for Mi-Dia

Thanks to a little guidance here I have written a function for getting part of a string returned. [CODE]function getcontent($tag,$string) { $pos1 = stripos($string, '<'.$tag.'>'); $pos2 = stripos($string, '<'.$tag.'>'); $content = substr($string, $pos1, $pos2); return $content; }[/CODE] [CODE]print $content('row','Hello world <row> bladh </row>');[/CODE] output would be "bladh"

Member Avatar for blocblue
0
335
Member Avatar for Chaos3737

Please help! I'm trying to install Visual Basic Express edition 2010 on my windows Vista computer. The .net framework 4.0 is installed (or so the control panel says), but the visual basic installation fails every time it gets to "Microsoft Visual Basic 2010 Express," which is the first item to …

Member Avatar for gracelyn
0
165
Member Avatar for LianaN

Hi! There is JPanel with multiple JLabel components. I would like to change the border color of JLabel component that is clicked on. I tried [ICODE]this.getComponentAt(e.getX(), e.getY()).setBorder(solidBorder)[/ICODE], but it did not work... How could I solve this task?

Member Avatar for LianaN
0
93
Member Avatar for Iamthecheese

Hello, I'm getting quite flustered with this program and the errors are starting to get harder to debug. This is my tree.java file: [CODE]package TreePkg; import java.io.FileNotFoundException; import java.lang.SecurityException; import java.util.Scanner; import java.util.NoSuchElementException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.Serializable; import java.io.EOFException; class TreeNode<T extends Comparable <T>> …

Member Avatar for JamesCherrill
0
230
Member Avatar for shafeequeom
Member Avatar for Xeros606

Why do they release their own version? Also why don't they allow Java on their portable devices? I'm looking for their specific reason, something besides "Apple are Nazis".

Member Avatar for masijade
0
106
Member Avatar for CrazyPixel

Hello. First of all, I'd like to say that this is my first post. I have indeed searched this forum for code snippets and help, but never thought I'd have to post anything, since I could easily search for someone who's had the same problem and fix my own code. …

Member Avatar for jonsca
0
171
Member Avatar for LianaN

Hi! I'm trying to add dragging and dropping behaviour to JLabel. It works only when I press the mouse for the first time. If I continue pressing the mouse, the error message shown below is generated. Please, help me to find an error. [CODE] JLabel bkg = new JLabel(icon); jLayeredPane.add(bkg, …

Member Avatar for LianaN
0
427
Member Avatar for Akill10

Hey, I've never really used packages before so I was wondering if what I am doing is possible. i have a package called spacewars with all my classes. I then created another package from that called spacewars.resources. I am not sure what the best way to access those resources is. …

Member Avatar for ~s.o.s~
0
100
Member Avatar for quibbie

Ok, here is the problem. I have an article directory and there are over 200 categories. When you go to a category it shows like 15 articles and at the top right and lower left it has like: Page: 1 2 3 4 5 6 7 When you are on …

Member Avatar for diafol
0
165
Member Avatar for prettyrein

Hi, I have this error Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\Program Files\xampp\htdocs\nsubackend\lib\model\classLabType.php on line 9 & same in line 52. here's my code: [CODE]function __construct($id=0){ $con = new connection(); $query = "SELECT * FROM tbllabtype WHERE labtypeID='".$id."'"; $res = mysql_query($query); if(mysql_num_rows($res)>0){ $row = mysql_fetch_array($res); …

Member Avatar for diafol
0
222
Member Avatar for MarounMaroun

Hello folks, How can I fill a 2D-array (of size [1260][4]) with all variations of 1-10 (which is 5040 variations)? 1 2 3 4 1 2 3 5 1 2 3 6 .. .. 1 7 4 9 .. and so on.. Thanks!

Member Avatar for frogboy77
0
96
Member Avatar for terrymold

Hi again I have an HTML form with three groups of inputs. These inputs are all text. Group 1 has 1 input, group 2 has one input, and group 3 has 3 inputs. What I would like to do is this... If a user inputs any data into a particular …

Member Avatar for terrymold
0
83
Member Avatar for localp

I need to code a C++ program to execute the tab control of the keyboard through the code. I am expecting when the tab control of the code gets executed, we should be able to navigate throught the web page through it. for example, take a web page, and we …

Member Avatar for localp
0
326
Member Avatar for amit_kuetcse2k5

Hello, I cannot create upload progress bar with php.I am a new php programmer.Have any idea?Please help me. Thanks Amit

Member Avatar for blocblue
0
153
Member Avatar for chicagoan

Seems simple enough right? I have put many hours into a solution...and nothing. I have tried multiple scripts and codes. Finally, I decided to ask for help. Here is the background... - PHP web site - Homepage shows images from database - Images are pulled randomly and displayed on homepage …

Member Avatar for branding4you
0
294
Member Avatar for cardinalxp

hello I have installed the fax service in windows. I want to write a code in vb.net program that start receiving from a fax call. please instruct me.

Member Avatar for cardinalxp
0
82
Member Avatar for edmundoswald
Member Avatar for bookmark

Hi I have this code with a function that outputs a square filled with the given char but for the [CODE] square(4);[/CODE] I want it to just output a square like this [CODE] **** **** **** **** [/CODE] How would I do this without changing the function definition or using …

Member Avatar for MasterGberry
0
127
Member Avatar for prettyrein

Hi, i have this error : Strict Standards: Non-static method department::showAllDepartment() should not be called statically, assuming $this from incompatible context in /opt/lampp/htdocs/nsubackend/lib/controller/mainController.php on line 577.. and heres my code: [CODE]574 function showDepartment(){ 575 require_once('lib/model/classDepartment.php'); 576 new department(); 577 $departmentID = department::showAllDepartment(); 578 579 if(isset($_POST['addDepartment'])) $this->addDepartment(); 580 if(isset($_POST['updateDepartment'])) $this->updateDepartment(); 581 …

Member Avatar for prettyrein
0
185
Member Avatar for lochnessmonster

How would i read a files bytes into a buffer in my program to compare them with another string a bytes? what methods are possible that i have available using c++ standard and/or the windows api -thx

Member Avatar for jonsca
0
84
Member Avatar for bookmark

Hi. This program has a function that divides an unsigned arg by another unsigned arg. I want it to only keep outputting "I'm really upset" after the first time it outputs "I'm really upset". Right now it outputs as [CODE] 5 0 I'm really upset 6 Press any key to …

Member Avatar for jonsca
0
127
Member Avatar for x2fair

hi, i'm christopher. and sorry because my english is not good.i am creating a new program whch is Document Tracking System Integrated with Barcode which one of my project..my problem is I am new in vb 2008. I create a random numbers and I want it to be converted and …

Member Avatar for x2fair
0
109
Member Avatar for edmundoswald

how do i create php page with the following attributes(emp_id,emp_password,emp_address,emp_fname and emp_lname)tha will be posted to the data base?

Member Avatar for lyrico
0
329
Member Avatar for prezblog

Hi all! I'm putting together a WordPress blog, and I'm trying to make it work with a standard template called "Tribune." It uses custom tags on posts to apply thumbnails and featured images. I can't quite figure out where to place the code in the index file to get it …

Member Avatar for Kraai
0
186
Member Avatar for sciprog1

Hello Members, I have a Class_A which extends a JPanel. This JPanel is inside of a JFrame. In Class_A, I have a series of images (stored in an ImageIcon array) and another image, let's call it Image_A, which is also a ImageIcon type. How do I make Image_A a background …

Member Avatar for sciprog1
0
183
Member Avatar for bookmark

Hi I'm trying to make a program that returns the number of letters in a string but it seems that the function I have is not working as it returns 0 every time. Can someone check what I'm doing wrong? Thanks in advanced. [CODE]#include<iostream> #include<string> using namespace std; unsigned letters(const …

Member Avatar for bookmark
0
260
Member Avatar for dcarrawa

I have a question about embedding Perl scripts in C. I wrote most of the program in C and a portion of it in Perl. As of right now, to call the Perl script I'm using pipe(), fork() and dup2() to create another process and have the Perl application write …

Member Avatar for dcarrawa
0
254
Member Avatar for bookmark

Hi, I have this program that outputs a triangle when given the size. Right now the triangle outputs like this [CODE] 5 * ** *** **** ***** [/CODE] Does anyone know how I would make it look like this? [CODE] 5 1 12 123 1234 12345 [/CODE] Thanks in advanced …

Member Avatar for bookmark
0
215
Member Avatar for murtazamzk

#include "Stdio.h" [CODE]main() { int a,b,c; int count = 1; for (b=c=10;a="- FIGURE?, UMKC,XYZHello Folks,\ TFy!QJu ROo TNn(ROo)SLq SLq ULo+\ UHs UJq TNn*RPn/QPbEWS_JSWQAIJO^\ NBELPeHBFHT}TnALVlBLOFAkHFOuFETp\ HCStHAUFAgcEAelclcn^r^r\\tZvYxXy\ T|S~Pn SPm SOn TNn ULo0ULo#ULo-W\ Hq!WFs XDt!" [b+++21]; ) for(; a-- > 64 ; ) putchar ( ++c=='Z' ? c = c/ 9:33^b&1); return 0; …

Member Avatar for Shankye
0
192
Member Avatar for steve_Student

Hi i have created a program for my college assignment which asks to create a program for a telephone company that requires the program to calculate call charges for their customers, and also give discount calls depending on the time of day and day of the week. The assignment also …

Member Avatar for sakijr
0
202
Member Avatar for seanbp

These days, it's usually unnecessary to consider how much memory to allocate for a string input. This was mostly for fun. This code allocates memory as the user inputs each key stroke, then allocates and returns a string pointer when the user presses enter. Tell me what you think! [B]USAGE:[/B] …

0
332
Member Avatar for Slyvr

I have a buying system set up in one class (the Right Panel class) and it's working great, but my text field for displaying money available is in the Left Panel class. When I click the buy button, it should subtract from the money amount and re-display the new money …

Member Avatar for seanbp
0
116
Member Avatar for Chillin2

Please help me..I need to fix my array. This is from my instructor..Your program compiled and ran well. It implemented all of the requirements for the assignment. You have a separate class that stores your Product, and your products are stored in arrays. You also implemented methods to sort the …

Member Avatar for Chillin2
0
106
Member Avatar for dylank

Hey guys; I've been working on a little concept webpage, and it works great in any browser !IE. But, any IE browser will not render the middleAlign DIV's as centered in the web page (like all the other browsers do). Apart from that, and a few other little quirks, it …

Member Avatar for dylank
0
87
Member Avatar for AndersSilva

Hi guys, I'm new to this forum and I have been studying Python for about 2 weeks. I know most of the beginners can solve all their doubts just by looking at the documentation, but even reading about these modules: time, datetime and threading, I wasn't able to solve one …

Member Avatar for richieking
0
155
Member Avatar for youlichika

I tried to make a easy google news search api. I know google news api search can show max 8 items per page, and 8 pages(total 64 items). 1.How to add `image{}`(I want to show the news image), I read the document in google official website, but not understand. 2.Can …

Member Avatar for youlichika
0
210
Member Avatar for by_stander

Hey everyone, I have a Matlab code that parses data from a csv file, performs some calculations on the data, and spits it back out into a new csv file. the new csv file contains all the data from the original file, with the new calculations appended on at the …

Member Avatar for jonsca
0
237
Member Avatar for LianaN

Hi! I would like to zoom in & zoom out an image in JLayeredPane. Now I have a snippet for loading a background image into JLayeredPane. How could I now access ALL content images of JLayeredPane (it could contain multiple images) and zoom them in/out? Perhaps, somebody could send me …

Member Avatar for LianaN
0
217
Member Avatar for sanjuanair

Frndz, I want to now how to start learning C/C++ programming in my pc. means there is a problem with installation of normal turbo c in my computer. it is not working. [COLOR="Green"]So what software i have to install? From where i can download it? Is there any C++ software …

Member Avatar for seanbp
0
116
Member Avatar for showman13

Hi All, Hopefully someone will have a quick answer for this question, because I'm in the middle of a time critical project and this is a stumbling block. Here is what it is... I have a temp_transaction table (mysql) that has various fields, one of which is a trans_date (datetime) …

Member Avatar for showman13
0
312
Member Avatar for johngalt10

I'm new to scripting. I'm trying to find out how to target my cout to a field in a gui. Any direction will be greatly appreciated.

Member Avatar for jonsca
0
100
Member Avatar for christos312

Ok this is very strange and i cannot see where is the problem and i guess is really easy but i cannot see it so i will need your help :-O My Declarations [CODE]int myGraph[4][4]; int vertices[4]; char path[4];[/CODE] My initialize code [CODE]for(int i=0; i<=4;i++) { for(int z=0; z<=4; z++) …

Member Avatar for christos312
0
154
Member Avatar for mangopearapples

Why won't this work? I'm trying to make a ball appear and move along my screen but it's failing :'( . I'm :( and also trying to make it so when you press any key it restores the full screen but that's also failing. :'( Can anyone help? [CODE]import javax.swing.*; …

Member Avatar for mangopearapples
0
468
Member Avatar for cthoes

when i execute the below progam i am getting this errror [ICODE]type or namespace definition, or end-of-file expected in c#[/ICODE] [CODE] using System; class Program { public static void Main(string [ ] args){ string[] colorList =new string[10]; colorList[0] = "sunday"; colorList[1] = "monday"; colorList[2] = "tuesday"; colorList[3] = "wednesday"; colorList[4] …

Member Avatar for james6754
0
3K
Member Avatar for phpDave

Still stuck on images with php. I want users who are logged in to see the images they uploaded. I got scripts working but the get image file is not bringing image according to specific user. The problem seem to be in the query. I always get the first image …

Member Avatar for phpDave
0
80

The End.