199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Dmiller071

Hi all, For my java class I need to make the game of life. So far I have 2 main classes that drive the program (ignoring GUI class for now.) My main classes: Cell(x, y) - where x = the x coordinate and y = the y coordinate of the …

Member Avatar for Dmiller071
0
113
Member Avatar for alliswim2010

Hello I'm having major issues, please help me with this code; (Generating random characters) Use the methods in RandomCharacter to print one hundred uppercase letters and then one hundred single digits, and print ten per line. Use these methods: public static char getRandomUppercaseLetter(){ return getRandomCharacter('A', 'Z'); } public static char …

Member Avatar for alliswim2010
0
695
Member Avatar for nyemba

I'm having trouble sorting names in alphabetical order using counting sort, forinstance Gregory John, Alex Smith, Adam Richard, Alex Ryan Output hould be in this order Adam Richard Alex Ryan Alex Smith Gregory John My code so far [code] import java.util.ArrayList; import java.util.Scanner; public class Names { //private static int[] …

Member Avatar for Taywin
0
377
Member Avatar for dangari

I have had a working jsp web applicationg for the last 2 months. All of a sudden, the application was not allowing users to log into it. After monitoring the logs upon a manual restart of glassfish, I saw the log output below: [CODE][#|2011-06-25T15:58:55.376+0300|WARNING|glassfish3.0.1||_ThreadID=26;_ThreadName=Thread-1;|Error sending syslog packet java.net.SocketException: Too many …

Member Avatar for masijade
0
628
Member Avatar for buzz-lightyear

Hi, I'm a bit of a noob with PHP. I am trying to retrieve information from multiple tables with the following code [CODE] <?php function check_input($id) { // Stripslashes if (get_magic_quotes_gpc()) { $id = stripslashes($id); } // Quote if not a number if (!is_numeric($id)) { $id = "'" . mysql_real_escape_string($id) …

Member Avatar for buzz-lightyear
0
191
Member Avatar for IT_Student_604

, hello there.. can anyone teach me how to display picture using the Application.startup path?.. i don't have any idea about it. i want to locate the picture in my bin folder inside my debug folder as i selected the name of the candidate in the combo box.

Member Avatar for NetJunkie
0
174
Member Avatar for Frederick2

This is my first post! I can’t figure out how to modify/cast the return address obtained from the Windows Api function GetProcAddress() without using a typedef. I’m aware that using a typedef is the standard way to do this, but one should be able to do it without a typedef, …

Member Avatar for bitluni
0
5K
Member Avatar for cent91

i have a code that uploads a file to ftp. i want it to add an exception in firewall when it executes so that the firewall doesnot request the user for permissions. i know how to add a registry entry but i dont know how to add a firewall exception …

Member Avatar for Satyrn
0
468
Member Avatar for SakuraPink

Hi all, I want to run a cpp code a couple of times using a shell. Cpp code needs a text file as an input. I have been trying to pass the file to the cpp code no success. The following is what I have done so far: [CODE]#! /bin/bash …

Member Avatar for SakuraPink
0
240
Member Avatar for Panathinaikos22

Hello, I create a delayer for something but it dont work right, that i want is 1, Load Form 2, Draw a text in TabPage 3, Show a text in tabpage for 5 seconds 4, when delay end then add WebBrowser Control to TabPage PS: I forgot notice, when use …

Member Avatar for Mitja Bonca
0
176
Member Avatar for sumi1234

the aim of this program is to create a record of 20 members inputted by the user st the phone number is stored in 3 different parts e.g. 011-234-7891 where 011 is area code 234 is exchange and 7891 is numbr...every record must have a member id and member name …

Member Avatar for sumi1234
0
271
Member Avatar for anand01

hi all, I am accessing the database by MVC model now i need to create list box , list options already in database .What should I do should i connect database with jsp directly or any option available. Thanks

Member Avatar for anand01
0
94
Member Avatar for davy_yg

[CODE] <td>Event</td> <td> <input type="text" name="event" value="<?php echo $event; ?>"/> <input type="hidden" name="id" value="<?php echo $id; ?>"/> </td> </tr> <tr> <td>Tempat</td> <td><input type="text" name="tempat" value="<?php echo $tempat; ?>"/></td> </tr> <tr> <td>Mulai</td> <td> <input type="text" name="mulai" id="mulai" value="<?php echo readDateJs($mulai); ?>" size="8"/> <script type="text/jsdemo" charset="utf-8" class="demojs"> $('#mulai').datepicker({showOn: 'both', showOtherMonths: true, showWeeks: …

Member Avatar for pritaeas
0
87
Member Avatar for GSLENK

I dont know how i did it before, but i dont quite remember how to get started on a win 32 console program for Microsoft Visual 2010 ultimate edition. could someone give a basic idea of where to start for a blank template? I did: New project, Win 32 console …

Member Avatar for dospy
0
178
Member Avatar for dospy

i've never knew how to use command line arguments since the first source code i used to edit(and from i learned basics of c++) was using a config file to 'read' user input data on program startup and not command line arguments. now my question, what's the difference between using …

Member Avatar for dospy
0
2K
Member Avatar for davy_yg

[CODE] // connect to database $con = mysql_connect('localhost', 'root', ''); if (!$con) { die('Could not connect: ' . mysql_error()); } echo 'Connected successfully'; $db_selected = mysql_select_db("template", $con); if (!$db_selected) { die ("Can't use template : " . mysql_error()); } // cek login session_start(); //undefined index: login if (isset($_SESSION['login'])){ echo "Anda …

Member Avatar for raj2719
0
99
Member Avatar for manisakthi

hi all, i generated some random numbers using functions , i have to check that the generated numbers are 32bit numbers, how can i check ? is any formula to check?please help me!

Member Avatar for harinath_2007
0
107
Member Avatar for sammry

I am having a bit of difficulty in getting the right value. What I want to query is, the users who expire in 7 days, for example on 4th Oct 2011, the query should display the result of that particular day only. Right now I am querying as below: select …

Member Avatar for sammry
0
296
Member Avatar for woopi

How do I deal with quotes here? What i want is /[^a-zA-Z0-9-_.,!()'\/"]/ but how do i deal the quotes? [CODE] $pattern = '/[^a-zA-Z0-9-_.,!()'"\/' . $whatever . ']/'; return preg_replace($pattern, '', $value); [/CODE] Cheers!

Member Avatar for woopi
0
1K
Member Avatar for blivori

I have an html page that gets data from 'hs_hr_employee' table and lays the info in a table on a web page. Then I have another table 'rights' which gets info from 4 columns from the 'hs_hr_employee' table and stores them in columns. In addition to those 4, the 'rights' …

Member Avatar for mathieu89
0
184
Member Avatar for Dumb Fish

Hey, I new in MS SQL I got one question don,t know how to solve..? Display code, name, place , total contract quantity for top 10 buyers how to write in MS SQL/...?

Member Avatar for Netcode
0
109
Member Avatar for rinoa0424

Hello friends!! I made a simple RPG game for my project. I used windows form application.. I set the background image of my form1 to a picture that is already a map.. I used picture box for the MainCharacter and set it to transparent and I also put transparent background …

Member Avatar for rinoa0424
0
180
Member Avatar for Merex

Hi everyone, I'm new here and I have been reading some books for a while on C++ software Development. I have a good idea of what I wan't to program at the present point in time, so I thought I would post a road map of what I'm going to …

Member Avatar for Merex
0
268
Member Avatar for lynn21

Give a converse of the following expression: [(p Λ q) V ¬r] --> ¬[(q V ¬r) --> (¬p Λ r)] This is my answer : ¬[(q V ¬r) --> (¬p Λ r)] --> [(p Λ q) V ¬r] Is this right? Please help.

Member Avatar for lynn21
0
90
Member Avatar for Panathinaikos22

Holla, is possible to store log message in datagridview? or store log in file and after read text from file... i like tohave DataGridView somehtink like [CODE][Header] [B]User Date ErrorType Text[/B] Admin 22/9/2011 15:31 PM LoginFail Failed Login john 26/9/2011 05:33 PM LoginSuccess Login OK john 29/9/2011 22:20 PM LoginSuccess …

Member Avatar for nick.crane
0
547
Member Avatar for priyasubh

Hi.. I have downloaded a code to add JRadioBuotton to JTable, modified it.Please see the code..What i wanted was to have blank cell...i was getting a NullPointerException for this so i tried adding a JTextBox for instead. When I click on only radiobuttons the code works fine.. if i click …

Member Avatar for mKorbel
0
1K
Member Avatar for vinoth.raj2k

For eg : i am having textbox , in tat v need 2 enter rollno , aft clicking the go button , result of tat individual person hv 2 display in Gridview . itz like Result system , jst i am new to this tech . I need some one …

Member Avatar for ChrisHunter
0
117
Member Avatar for Hendo

I'm putting in an admin form that will provide variable information, into my application. How can I Password Protect that child form? Thanks, Hendo

Member Avatar for nick.crane
0
156
Member Avatar for Donnovan

hi guys, i'm trying to write an character converter using php and ajax. i'm getting a really anoing error(uncaught TypeError). can someone help me with this.?:?: , i've added screenshot of the error. and this is the xml i'm trying to read generated with php [CODE]<?php $key = $_GET['key']; header('Content-type:text/ …

Member Avatar for Donnovan
0
174
Member Avatar for manish250

Hi All, I am new to web services.I want to know when i am writing the web services client how can i decide whether i have to write it using axis or axis2.I mean how to decide whether to use axis or axis2. Thanks to all in advance........

Member Avatar for pritaeas
0
153
Member Avatar for shandoosheri

Hi i have a lot of ANSI encoded files in the same folder with different extensions and i want to convert all this files into utf-8 encoded files so how can i do this in c# [I][B]Thank you [/B][/I]

Member Avatar for Alexpap
0
508
Member Avatar for nickmi

[CODE]public GuiPrototypeScreen1() { GuiPrototypeScreen1Layout customLayout = new GuiPrototypeScreen1Layout(); Object[] possibleValues = { "Search", "Contribute" }; Object selectedValue = JOptionPane.showInputDialog(null, "Do you want to ", "Welcome", JOptionPane.INFORMATION_MESSAGE, null, possibleValues, possibleValues[0]);[/CODE] Hey guys i need help because i am completly stuck. All i want is when a string is selected to redirect …

Member Avatar for mKorbel
0
153
Member Avatar for arjunpk

Hi, I have a program which has to do a lot of lookup. there are multiple threads running in parallel and all of these threads have to do a lookup on the same list of words. Currently i'm storing the list of words in a dictionary in each of the …

Member Avatar for Momerath
0
244
Member Avatar for raul8

Hello, I'm not able to access jar files from servlet. Although I have imported all the class file and made the jar file available in build path. [CODE] protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { PrintWriter out = response.getWriter(); cmd = request.getParameter("cmd"); System.out.println(cmd); String output = runCommand(cmd); …

Member Avatar for peter_budo
0
361
Member Avatar for CodeAerial

The output is obtained from a JPasswordField and placed into a text. But whenever I enter a new input on the field, it just shows the recent one I've entered... Ex: I enter "test1" as a password. When I enter a new one, say "test2", it only shows "test2" in …

Member Avatar for CodeAerial
0
146
Member Avatar for bipies

Hi! I'm simply need to convert a string like: /blablabla/123123 to 123123 it should be easy I'm sure, but I can't get it :(

Member Avatar for diafol
0
107
Member Avatar for Midnite007

I am using this gallery script on a site I am working with and for some reason can not seem to get the Back to Menu ( link ) at the bottom of the code to be at the bottom of the page or at least under the images that …

Member Avatar for diafol
0
143
Member Avatar for Fortinbra

My web application has the ability to process data from word docs and PDF files. We recently had a client who attempted to run files that are of a significantly larger size than anything we tested with. 50MB-500MB PDFs compared to our test files of 1MB-30MB files. If they don't …

Member Avatar for riteshbest
0
119
Member Avatar for karthik_ppts

Hi Frendz, I have two text fields 'from time' and 'to time'. The time format of the two text fields are 11:30 am 01:30 pm. I want to give alert message in javascript when the users enter the to time less than the from time.

Member Avatar for karthik_ppts
0
218
Member Avatar for Ruchi224

Hello !! I am trying to implement datagridview using b.net and ms access. While I import the data from database, the connection is established and test connection succeeds. But, during the last phase, i get an error saying : Could not load type 'Microsoft.VisualStudio.DataDesign.SyncDesigner.syncFacade.SyncManager' from assembly 'Microsoft.VisualStudio.DataDesign.SyncDesigner.DslPackage, version 9.0.0, Culture=neutral,PblicKey …

Member Avatar for Ruchi224
0
109
Member Avatar for theonebit

Hi, I have a problem. I have been programming an activation type of security protection for my software but i ran into problems when i try to generate an alphanumeric key with conditions. i cant seem to be able to make the keys to be valid with the condition. Basically …

Member Avatar for theonebit
0
206
Member Avatar for lightdshadows

[CODE]#include <fstream> #include <iomanip> #include <string> using namespace std; const double PI = 3.1416; int main() { ifstream inFile; string fname, lname; int age, beginningBalance; double length, width, radius, interestRate; char ch1; inFile.open("inData.txt"); inFile >> length >> width >> radius >> fname >> lname >> age >> beginningBalance >> interestRate …

Member Avatar for lightdshadows
0
211
Member Avatar for Bamboozled

I have the following VB6 code [CODE] Dim objdir As Scripting.FileSystemObject cfile="c:\workingdir\france\include" If DirExists(cfile) = False Then objdir.CreateFolder(cfile) End If Public Function DirExists(OrigFile As String) As Boolean Dim fs Set fs = CreateObject("Scripting.FileSystemObject") DirExists = fs.FolderExists(OrigFile) End Function[/CODE] The folder C:\workingdir\france already exists and there should not be any permissions …

Member Avatar for Bamboozled
0
364
Member Avatar for jacksantho

Hi, can anybody, please help me out. [CODE][B]select * from log where id <='%07%' [/B][/CODE] Am facing the syntax error, what is the actual query? my id look like this: 1.mtg10kl 2.mtg07kl 3.mtg06kl 4.mtg09kl I need the output this: 1.mtg07kl 2.mtg06kl please help me out .thanks in advance

Member Avatar for jacksantho
0
106
Member Avatar for khushhappy

Problem:- I have entered/input in database the date in its default format(Y-m-d). My requirement is to show the date in date-month-year format rather than year-month-date format. well i cannot enter the date again in database as it contains hundreds of record. Picture as attachment.

Member Avatar for urtrivedi
0
86
Member Avatar for carlpike

Hello everyone. I am having an issue with flash style connection So I start off by connecting to port 843 and requesting a <policy-file-request/> The server sends me this: <cross-domain-policy> <site-control permitted-cross-domain-policies="master-… /> <allow-access-from domain="*website.com" secure="false" /> <allow-access-from domain="*website.com" to-ports="443-49151"/> </cross-domain-policy> Since it is non secure, I try to connect …

Member Avatar for cherrymae.calma
0
455
Member Avatar for cheiL

hi there Below is my code for a webmethod which checks if data is existent in a table and then amends if bool is true or adds new if bool is false For some reason my amend works fine but it seems to jump the else condition altogether. Only passes …

Member Avatar for cheiL
0
93
Member Avatar for mukororokudo

hello guys .. here i go again .. i'm having a problem with my registration form .. my reg. form has 'password' field and 'confirm password' password field .. now i want to compare if the 2 passwords are entered the same but it doesn't seem to work .. its …

Member Avatar for rajesh205
0
111
Member Avatar for ChrisPadgham

Does anyone have any experience using curl from MS Access. I would appreciate some pointers,

0
176
Member Avatar for Macilath

Hello all, As part of a homework assignment, we're to take [URL="http://stroustrup.com/Programming/calculator08buggy.cpp"]a given buggy calculator[/URL] and correct the errors. Once that's done, the assignment is to add the sqrt() and pow() functions to said calculator. This is from Stroustrup's Programming, Principles and Practices using C++. I've been working on the …

Member Avatar for Zekorov
0
2K

The End.