64,152 Solved Topics

Remove Filter
Member Avatar for
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 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 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 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 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 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 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 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 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 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 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 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 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 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
Member Avatar for shanker31

Hello every1, I want to take two integer value from the user and display the result(sum) as output.. I am using the following JS code : [CODE]function message_comm() { var num1=prompt("Enter the 1st number"); var num2=prompt("Enter the 2nd number"); alert('The sum :'+num1+num2); }[/CODE] The output I am currently obtaining is …

Member Avatar for Taywin
0
180
Member Avatar for 918_Nix

I wrote a bit of code at school using a copy of Net Beans that they have installed on the computers in the lab at my school. I saved my file to my thumb drive as Lab2.Java. When I got home I opened my copy of Net Beans 7.0.1 and …

Member Avatar for 918_Nix
0
274
Member Avatar for sifuhall

I have not done development work for many years now but I decided to download the new (and free!) Visual Studio 2010 Express C#. I'm enjoying this, but for the life of me I cannot figure out how to data bind controls. Here is my setup: I have a SQL …

Member Avatar for sifuhall
0
111
Member Avatar for gowans07

I currently user logon information stored in one file, i wish to be able to delete users from this file currently i am selecting the users from a lstbox which retrieves all the user names from the txtfile. [CODE]Public Sub CmdRetrieveUsers_Click() LstUsr.Clear CmdEditUsr.Enabled = True Open App.Path & "\Logon.Password Info.txt" …

Member Avatar for gowans07
0
117
Member Avatar for ericko10kip

Please assist in Formatting the input text to upper and lower cases e.g Start with a capital. Thanks.

Member Avatar for ericko10kip
0
126
Member Avatar for FinaL111

I'm having trouble wrapping my brain around this concept. I have taken two java classes before so this is my first C class. My question is about a portion of my assignment. Basically the assignment is it reads in data about a word search in the format like so: [url]http://pastie.org/2582599[/url] …

Member Avatar for FinaL111
0
280
Member Avatar for darelet

Hi all, I need a setup involving a client or front-end program that sends some tasks to a back-end process for processing and collects results for output. I know this involves socket programming, but one issue here is that the front-end is a windows program and the back-end is a …

Member Avatar for darelet
0
205
Member Avatar for minimi

My program compiles and runs, but does not print any output. It is supposed to read the text file and output lines that contain the pattern (which this in case is Bob - so it should print Bobby, Bobbie, etc if those names are in the text file).. This is …

Member Avatar for minimi
0
247
Member Avatar for aadi_capri

Public Class Form1 Inherits System.Windows.Forms.Form Dim con As New OleDb.OleDbConnection Dim dbprovider As String Dim dbsource As String Dim ds As New DataSet Dim da As OleDb.OleDbDataAdapter Dim run = New OleDb.OleDbCommand Dim sql As String Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load dbprovider = …

Member Avatar for aadi_capri
0
194
Member Avatar for Epicurus

I'm trying to create my own linked list for handling bullets in my game. When the bullet has gone too far I want it to be removed but as soon as this is happening (when the bullet has travelled 11 steps) the game crashes. These are the functions used when …

Member Avatar for Epicurus
0
491
Member Avatar for javaNooblet

Hi all, I am having trouble with class communication to reset some textfields through event handling. Any help would be appreciated. Here is a portion of my code. [B]The class that contains the textfields that I wish to use a reset button for:[/B] [CODE]import java.awt.*; import javax.swing.*; import javax.swing.border.*; public …

Member Avatar for mKorbel
0
216
Member Avatar for functionalCode

Hey everyone: Can someone tell me why when I called printf in main I get a blank character. I ran this code in a C interpreter and it works fine, but when I compile with gcc and run it, it doesn't print out the new string. I get a empty …

Member Avatar for NP-complete
0
103
Member Avatar for G_S

Hello. I recently started studying Java and OOP. I am currently creating a class that writes text to a file in a particular format. I have 'finished' it, and it works, but I am unsure as to the quality of the implementation. This is how it works: * First of …

Member Avatar for ~s.o.s~
0
212
Member Avatar for cdudefire

For a class in C programming I have been asked to create a dice game. Here are the requirements. A player rolls two dice. Each die has six faces. These faces contain 1,2,3,4,5, and 6 spots. After the dice have come to rest, the sum of the spots on the …

Member Avatar for cdudefire
0
2K
Member Avatar for DeOiD

hi i'm making a little application in vb.net and i need to use a data base. so i used some of my aspx functions and the same data base. the problem is that every time i run the application and do something that needs to get values from that db …

Member Avatar for aadi_capri
0
393
Member Avatar for samsnov

I am building a static website, and I have images in my index page each image has a title name, how do I make an image clicked to open in a different window if clicked, I have a template page designed to be used for opening an image in a …

Member Avatar for samsnov
0
165
Member Avatar for SyncMaster170

So this is my problem my fellow programmers: In my C# app, I have one button and a datagrid that is showing info from a sql table. Everytime I add a person into my datagrid, the data replicates instead of updating certain columns for that member. I need to somehow …

Member Avatar for Mitja Bonca
0
137
Member Avatar for vedro-compota

hi , guys/ I again have problem with C understanding. Please help . there's code = [CODE]/* */ #include <stdio.h> #include <stdlib.h> #include <limits.h> main() { char* inputstr; inputstr = simple_readline( "Please specify the input string (one more notification))" , 0); printf("\n You've specified string = %s\n", inputstr); getchar(); getchar(); …

Member Avatar for vedro-compota
0
244
Member Avatar for chiiqui

I am having an error with my constructor, why is that? :| [CODE]public class Name{ private String firstName; private String middleName; private String lastName; public Name(){ this( "null" , "null" , "null"); } public Name(String first){ this(first," "," "); } public Name(String middle){ this(" ",middle," "); } public Name(String fName …

Member Avatar for chiiqui
0
233
Member Avatar for TSaunders84

ok i having a little trouble adding a string to the new vector that i created i was wondering if i need this line [CODE]vector<string>* row = new vector<string>;[/CODE] and if i do i need to keep calling or is there a much better what to create a new row …

Member Avatar for Fbody
0
139
Member Avatar for LittleMissChoco

Im having problems with my code. :( the code should. the submenu for my menu should be on a radio button type. here's my first code: [CODE] public ... { //for background JMenuItem image = new JMenuItem("Images"); JMenuItem music = new JMenuItem("Music"); //submenu of music JRadioButtonMenuItem play = new JRadioButtonMenuItem("Play"); …

Member Avatar for LittleMissChoco
0
149
Member Avatar for austenx

Good evening all, This is the first time I have needed to start a new topic, I can usually find the answers via the Google Gods, but not this time – I would very much appreciate your help. I have written a number of small apps in the past, have …

Member Avatar for austenx
0
591

The End.