199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
![]() | 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 … ![]() |
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[] … | |
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 … | |
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) … | |
, 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. | |
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, … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
[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: … | |
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 … | |
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 … | |
[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 … | |
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! | |
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 … | |
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! | |
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' … | |
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/...? | |
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 … | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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 | |
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/ … | |
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........ | |
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] | |
[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 … | |
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 … | |
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); … | |
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 … | |
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 :( ![]() | |
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 … ![]() | |
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 … | |
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. | |
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 … | |
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 … | |
[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 … | |
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 … | |
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 | |
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. | |
![]() | 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 … |
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 … | |
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 … | |
Does anyone have any experience using curl from MS Access. I would appreciate some pointers, | |
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 … |
The End.