64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for knan

I have a file named test.txt I get the file [CODE]file=open("test.txt","r") obj=file.read() file.close() print obj a=a b=b c=c d=e e=d e=f f=e f=g g=h[/CODE] All I want to do with this obj is that, I've to create a regular expression such that, 1.If the left number matches the right number, …

Member Avatar for TrustyTony
0
203
Member Avatar for ceyesuma

Hello. I have an app (JDesktop) and it has the JMenu and some JMenuItems. One will build an JTabbedPane with a dozen or so tabs. I start that one and it works good. Another MenuItem builds another Internal Frame with JtabbedPanels it works too. When I go back to the …

Member Avatar for ceyesuma
0
143
Member Avatar for fuston05

I have a link from one of my pages to another, been working fine even this morning, then i clicked it again (did not change anything on the page that contains the link.) then suddenly it says "page isn't redirecting properly. server is redirecting in a way that will never …

Member Avatar for fuston05
0
344
Member Avatar for aint

is it possible to use the variable list from a function? here is an example? is it possible to call alist with its last used content? [CODE] def example(a): alist=[] alist.append(a) print alist example(1) print alist [/CODE] thanks

Member Avatar for Gribouillis
0
99
Member Avatar for george61

I need javascript to trigger the combination of ctrl + minus. Is it possible. I need this because the design of the webpage I'm working on is looking much better at 83 % zoom which couldn't be achieved by CSS zoom property in mozzila firefox.

Member Avatar for Taywin
0
232
Member Avatar for dbirely

Using Visual basic 2008 is the following possible if so how? Min Pts..............Max Points...........Grade 0.....................299..................F 300...................349..................D 350...................399..................C 400...................449..................B 450...................500..................A using two one dimensional arrays (min pts as int and Grade as string) in parallel, can the range of 0 to 299 return F, 300 to 349 return D ...etc?

Member Avatar for dbirely
0
140
Member Avatar for pdk123

Hi, Trying to learn STL. I tried implementing the dynamic array with the STL. I wrote the following code and tried with int array works fine, but when i try with string array input, i get the error..can you please help me, [CODE]#include <iostream> #include <vector> using namespace std; template …

Member Avatar for pdk123
0
188
Member Avatar for stonest123

Hi, I'm trying to query a database to pull out all results from the database where the location and server responsible are selected from a form on a previous page which are then posted over. I can manage to post the selections from the form, but when it attempts to …

Member Avatar for stonest123
0
2K
Member Avatar for koduruabhinav

hi,i was a beginner in java i have a doubt. we use import to use the predefined classes. we can also use package for importing classes. import java.lang.*; package java.lang.*; [B] what is the difference between imports and package at what time we have to use differently.[/B] plese try to …

Member Avatar for koduruabhinav
0
132
Member Avatar for samp4ever

Hi everybody, I'm doing a simple client server communication system. The client have to send in a TCP socket a couple of strings and the server receive them, then have to search in a buffer if a category is similar to even just one of the strings sent by the …

Member Avatar for samp4ever
0
700
Member Avatar for claudiordgz

Hi guys, I'm new at C++ and I'm learning the basics on binary files This is what I've done: 1.- I created a class Criminal with basic data (age, crime type, criminal name) [CODE] class Criminal { private: int vnSerie; char vNombre[ 36 ]; char vtCrimen[ 20 ]; int vEdad; …

Member Avatar for Ketsuekiame
0
191
Member Avatar for manaila

Hi I'm new to Java and I was dealing with the creation of packages. Suppose I have the following two source files which I want to put in one package called [B]mypackage[/B]. The two source files are in the (Linux) directory: [B][I]/home/user/workspace/mypackage[/I][/B]. [CODE] package mypackage; public class HelloWorld { public …

Member Avatar for Shanki87
0
139
Member Avatar for joss23

Create an array of Strings, each containing one of the top 10 reasons that users like in programming with Java as listed below. Prompt a user to enter a number from 1 to 10, convert the number to an integer, and then use the integer to display one of the …

Member Avatar for joss23
0
109
Member Avatar for ftl25

Hi, Can anyone advise a good ER modelling tutorial/book or program? It is very time consuming to do ER diagrams in word. Also, has anyone else has come across the 'Pet Practice' database modelling problem? Thanks.

0
58
Member Avatar for chris evans

Hi guys! Could someone please show me how to declare scope for variables outside their class? Here's what i have in a class known Create_User: [CODE]Public Class Create_User Public conn As New SqlConnection(My.Settings.HotelConnectionString) Public usercmd As SqlCommand Public userstring As String Public userdat As SqlDataAdapter ............ End Sub [/CODE] How …

Member Avatar for chris evans
0
142
Member Avatar for LianaN

Hi! My purpose is to fill the JComboBox from the database. The code shown below is working - it fills the JComboBox. However, the problem is that when I click on JComboBox to select some item, the error occurs. As I understand, String is casted to Object, and this is …

Member Avatar for LianaN
0
245
Member Avatar for aizel

how to check date expiration? check expire date in mysql database date------->status 10/27/2010->approve 10/28/2010->approve 10/26/2010->approve date now is 10/26/2010 so it will search from the table where date=datenow then update the status to finish

Member Avatar for aizel
0
144
Member Avatar for Craig2231

Having a problem with my login script, earlier, it was working fine, but now its just letting anybody log in, even if the records arent in the database :s i cant seem to think where it is going wrong [code=php] session_start(); mysql_connect("localhost","razorsh1","********"); mysql_select_db("razorsh1_page"); if(isset($_SESSION['loggedin'])) { echo("<center>Dude, youve already logged in, …

Member Avatar for vibhaJ
0
111
Member Avatar for fobos

Good day all, well i have been searching the web and i cannot find an answer to my question. First off i dont know if i should post this here or in the Javascript section because i am a coldfusion user and didnt know if javascript does this. Second my …

Member Avatar for levine
0
114
Member Avatar for ekailan

Hello, I am working on aprogram to convert string to hex ..... its working 100% it takes file name as input read it line by line , convert each line to hex character by character, and write it to file. the problem is when the string look like this : …

Member Avatar for Momerath
0
194
Member Avatar for sariberri

So my assignment is to create a function in Java that takes out duplicate characters from the string. The catch is that it need to be done [B]recursively[/B] (no loops) and it must start like this with one parameter where the string is passed in. Please help guys I've been …

Member Avatar for SasseMan
0
731
Member Avatar for jae5086

I am just trying to end this program when the user chooses x or X but without the default "Enter a valid operator." The rest of the program works great (thanks to previous help). Sorry this isn't pasting perfectly. [CODE] do { cout << "Enter an operation: + - * …

Member Avatar for jae5086
0
182
Member Avatar for eikal

is it possible to make a picturebox the acceptbutton? i tried this in form load [code] Dim picturebox1 As New Button Me.AcceptButton = picturebox1 [/code] is there a way i could do this?

Member Avatar for eikal
0
538
Member Avatar for insanely_sane

Ok... So I have the following program: [CODE]public int seq2 (int n) { if (n <= 0) return 1; else return seq2 (n - 1) + 2 * n - 1; }[/CODE] It gives the following output: 1 2 5 10 17 26 37 50 65 82 So that means …

Member Avatar for insanely_sane
0
186
Member Avatar for kafro

I'm importing a .txt list of words into a dictionary and print, "The word seen most was XXXX and it was seen X times." I can import the .txt list into a dictionary and sorted my dictionary by value so my most seen word is at the end of the …

Member Avatar for kafro
0
128
Member Avatar for muppet

I have a table that a new line gets added to when the machine stops with reason for stopping, when the machine gets going again I want to add the time lost. So when the machine stops the table will look like this: [CODE]ID | reason | time_lost 1 | …

Member Avatar for Ezzaral
0
9K
Member Avatar for dnmoore

I created a java program to calculate a persons BMI, but we have to convert the weight from pounds to kilos and height from inches to meters using the numbers in my program, but it just doesnt worl the way its suppose to can some PLEASE help me figure it …

Member Avatar for princeandzoe
0
448
Member Avatar for lasl0w

I have a case where I am not allowed to use the string class so I am using a char array. Does anyone have any idea why I am getting all the junk characters after my char array when i print? The input file is a 2 line file containing …

Member Avatar for lasl0w
0
9K
Member Avatar for techie1991

The last time I was making a program, I wanted to input from user a boolean answer (to save space ;)) An input of 0/1 works good (0-false) and (1-true), but if the user inputs the boolean values as "true" and "false", it comes out to be an error. So, …

Member Avatar for techie1991
0
229
Member Avatar for Kerrai

Good Evening I have been stuck for a while now while trying to figure out how i can keep my ArrayList sorted when it receives new input. I tried the collections.sort(scores) but i get a error saying "Bound mismatch: The generic method sort(List<T>) of type Collections is not applicable for …

Member Avatar for JamesCherrill
0
3K
Member Avatar for crazy_perl

Hi, I am new to the perl scripting and need your help regarding one issue. I have a piece in my perl script which looks something like below - if ($rec{user} =~ /Major |Minor |Low |High /oxi ) { print "Reject" . $_ . "\n"; next; } Now the list …

Member Avatar for crazy_perl
0
172
Member Avatar for myk45

Hello. i had seen in some places, the following piece of code: [CODE](void *)2[/CODE] Can anyone please tell me what exactly this means? What does casting a void pointer onto a constant as in the above case, signify? Thanks.

Member Avatar for myk45
0
97
Member Avatar for gis-brad

Hi, I am a beginner-novice programmer using Python to build custom tools in ESRI's ArcGIS. I have what seems like a simple problem, but I am afraid I'm missing a core concept. Here goes... In this simple example I assign string values to some variables and then change the text …

Member Avatar for gis-brad
0
298
Member Avatar for mattyd

Hello. I have been following a great tutorial that I found regarding searching a database: Tutorial: [url]http://www.phpfreaks.com/tutorial/simple-sql-search[/url] When I used this and ran it from my server (doing a search of the database), I bookmarked the page; my question relates to the next step: When I return to the page …

Member Avatar for mattyd
0
121
Member Avatar for Jsplinter

I am trying to read in user input which is a file path (riddled with escape characters) into a CString. How can I do this without asking the user to replace '' with '\'? For instance: [code] CString myString; myString = _T("c:\test\file\j\mypath\path\user.bin"); wcout << myString.GetBuffer(myString.GetLength()) << endl;[/code] outputs: c: estQilejmypathpathuser …

Member Avatar for Jsplinter
0
280
Member Avatar for doolali

Like it says in the title im having problems with putting a 2D array into a function. Im not sure on the syntax of putting an array into a function and using it, any help is much appreciated! Thanks in advance! [CODE]#include <cstdlib> #include <iostream> #include <string> using namespace std; …

Member Avatar for doolali
0
127
Member Avatar for kangkan_14

can anyone please tell me what is wrong with dis code.....i am getting a segmentation fault even though it has been compiled successfully(in a unix system): [CODE]#include<stdio.h> int low,high,mid; void msort(int a[],int low,int high); void merge(int a[],int low,int high,int mid); int main() { int a[10]; int count; for(count=0;count<10;count++) { printf("Enter …

Member Avatar for N1GHTS
0
177
Member Avatar for ptemedia

Hi. I am making an asp website to sell items. On the details for individual products page I have an image and 3 smaller ones beneath. Clicking on one of them will bring up a larger image on the screen. However, at the moment, I have to have 4 images …

Member Avatar for Airshow
0
211
Member Avatar for pacers10

I have to write a table called tempconv.txt, the table should have temps from -300-212 fah and the cel equivalents with steps of 10 or 20, presented in 2 columns.I keep getting a syntax error. I think i am having trouble with the opening and closing of the file. Thanks …

Member Avatar for TrustyTony
0
165
Member Avatar for cherryduck

Hey guys and guyettes, I'm trying to make a game, when you click on a card, a certain set of things happen to that particular card. As the set of actions that occur are the same for each and every card, putting everything in the MouseClicked event for each and …

Member Avatar for cherryduck
0
133
Member Avatar for Iron-Man1138

This is program for figuring out cost of carpet at X length Y Width and Z cost/sqft (turned to yard). I am not very strong in looping yet, but I am pretty sure that is what has to be done here. Ideally at the end I want to ask the …

Member Avatar for TrustyTony
0
320
Member Avatar for koduruabhinav

Hi, I have one problem in perl script development. I have big logic executing in script and finally should save in directory structure specified. directory structure is created at runtime dependind on user runtime arguments by argv my MAKEPATH.the script works if i gave destination directory as /home/abhinav/direc1/ (/home/abhinav/) is …

Member Avatar for koduruabhinav
0
172
Member Avatar for Jamesbch

Hello, I'm kinda weird I know but I'm trying to encode my mp3 to a lower quality (for my mobile phone) with one line of shell (with bash). I'm wasting some more time as I would do by hand but I'm very interested. Here is my not-working line : [CODE]find …

Member Avatar for ole.tange
0
347
Member Avatar for ktsangop

Hi everyone! My function UsbID uses the libusb library ([url]http://www.libusb.org/[/url]) to get a flash disk's serial number. Libusb needs for some reason a Window created or else it doesn't work properly for me. So i created a CWnd inside my UsbID function which is invisible. My problem is that if …

Member Avatar for ktsangop
0
140
Member Avatar for exception

I used VB a long time.. i never manipulate a Class.. I just want to know what is the concept in using a class.. because i already graduated in an IT course, and then im eventually working with VB with a back-end SQL Server 2000. when i look at their …

Member Avatar for sajan666
0
87
Member Avatar for Prachu

Hi all.. I am new to Python and badly need help...I am trying to run a DOS batch file from Python..I have given the inputs also..It runs half and then exits at the point of time when I need to give answer to whether I need to replace two files …

Member Avatar for changtraidoc
0
2K
Member Avatar for uptheirons1

Hi, I don't usually turn to forums, but I have run out of options. I am not asking any of you to complete this homework project for me, but what I am asking is if you could just give me a gameplan on how to tackle it. I am basically …

Member Avatar for uptheirons1
0
294
Member Avatar for blessedboy123

Hey i have 1000 replicate files with a file name looks like below a.out1 a.out2 a.out3 ..... a.out1000 each file contains 12 rows and 12 columns including the header. a.out1 looks like this n col1 col2 col3 col4 ...........col12 1 0.3 0.1 0.1 0.11............0.5 2 .................................... 3 4 5 6 …

Member Avatar for mitrmkar
0
102
Member Avatar for novice20

hi... how can this be done using python 1.prompting user for a file location from within a script 2.reading the file location entered by the user 3.storing it in a file like object

Member Avatar for novice20
0
85
Member Avatar for Tiny_trixer

I'm just playing around with C++ as a preperation for coming assignments and well, exams. And I'm a little stuck with the switch statements. I've done this simple switch just to test the functions: [CODE] #include <iostream> using namespace std; int main(void) { char input; cout << "\nChoose function.\n1. Test …

Member Avatar for Tiny_trixer
0
117

The End.