17 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Start4me

I'm trying to show a user JOptionPane where they enter x and y coordinates each in their own textfield, but I don't know how to store user input as ints. So I need to do something like: int xCorFromUser = xCor; int yCorFromUser = yCor; I have this code so …

Member Avatar for mKorbel
0
1K
Member Avatar for faizlo

I have this script which can calculate the total of numbers given in a string total = 0 for c in '0123456789': total += int(c) print total How should I modify this script to find the total of if the numbers given in the string form have decimal places? That …

Member Avatar for Gribouillis
0
267
Member Avatar for deadsolo

Hello Everyone, As the title implies I need help extracting a name out of a string, my knolwedge of regular expressions is pretty limited. The strings I will be working with will look like this: 12345 Aragon Denvil L. 123-1234 A123456 AragonD AragonAD@fake.mail.us 1000001234 ABC-ABC 123ABCD123 ABCD 1234 A1234 ABC12345A1 …

Member Avatar for deadsolo
0
611
Member Avatar for arishy

The string is about 3k long. It contains a substring several times with the following specification: 1. First part is FIXED number of characters. The same for all the substrings. 2. Second part is the one to be extracted and stored in an array.It is of variable length 3. Third …

Member Avatar for arishy
0
318
Member Avatar for arishy

Here is part of the html <body> <table> <tr> <td id="ctl00_ContentPlaceHolder1_TD_Unlimited_Usage_PerDay" class="form_label" colspan="2"> <table width='100%' cellspacing='2' cellpadding='0' border='0'> <tbody> <tr> <td align='center' bgcolor='#E1E1E1'>Date</td> <td align='center' bgcolor='#E1E1E1'>Download Usage</td> <td align='center' bgcolor='#E1E1E1'>Upload Usage</td> <td align='center' bgcolor='#E1E1E1'>Total Usage</td> </tr> <tr> <td class='table_item' align='center' bgcolor='#EBEBEB'>2012-11-02</td> <td class='table_item' align='center' bgcolor='#EBEBEB'>1.269 GB</td> <td class='table_item' align='center' bgcolor='#EBEBEB'>0.286 …

Member Avatar for 2teez
0
2K
Member Avatar for arishy

To start, it is NOT a hacking job. I want to access my USAGE report from my ISP. At the home page I have to select Account Management then login with my user name and pw from newly created prompt. One clicking login I get yet another prompt so I …

Member Avatar for arishy
0
255
Member Avatar for umesh314

Hi, I am trying to write a code in which i want to read the command line arguement ( which i can get by using $(0,1,...) ) and want to give the arguement to some filename. Eg. ./myprogram filename.cpp I want to remove ".cpp" from the filename and want to …

Member Avatar for Watael
0
200
Member Avatar for branding4you

Ok so now I am stuck, I looked at the http://www.daniweb.com/web-development/php/threads/326436/php-read-text-file-and-save-into-databse page and understand some of it, Yet it is not what i require, substring does not count like I thought it would, like the left, right mid commands in excel. I want to count to the data I want …

Member Avatar for branding4you
0
779
Member Avatar for shujat132

i wanna extract many ziped folders, but i am not successfull. i have find out problem but not the solution of that. whenever i pass an array or associative array in a for loop to code given below to extract all ziped folders to unzip it stop working. $zip = …

Member Avatar for shujat132
1
220
Member Avatar for chrisname

[COLOR="Green"][b]I reworked my code into a way that was simpler.[/b][/COLOR] [COLOR="Red"]I have a URL in the following format: "http://sub.domain.tld/path/to/page" I need to extract 'path' and 'page' and discard the rest of the URL. I know about the [ICODE]System.Uri[/ICODE] class and with [ICODE]Uri.AbsolutePath[/ICODE] I can get "/path/to/page/". I need a way …

0
151
Member Avatar for tcl76

hi, attached is my sample file. i want to extract all lines starting from -- num until before -- Advanced. appreciate if anyone can show me. thanks johnny

Member Avatar for tcl76
0
593
Member Avatar for kurogumo

Trying to import a flat file into SQL Server using SSIS. The file format is like this: [CODE] Image: C:\folder1\1234\5678.jpg ColHead1 ColHead2 ColHead3 Data1 Data2 Data3 [/CODE] I need a result that looks like this: [CODE] ColHead1|ColHead2|ColHead3|ColHead4 ----------------------------------- 5678 |Data1 |Data2 |Data3 [/CODE] So the idea is that we extract …

Member Avatar for kurogumo
0
595
Member Avatar for axman1000

I have a task. I will be receiving anywhere between 1 and 4 files daily from one single email id. I would like to extract these attachments, save it to my local drive, and then, extract the data from there into a database. I do not/will not be using Outlook …

0
101
Member Avatar for Huiliam

Hi everyone! My boss is using a Java program called Animal Shelter Manager, which stores all images as BLOBs (Binary Large OBjects) in the database. She needs me to put all of those pictures she has stored on the shelter's website. I look at them in the database, and they …

Member Avatar for Huiliam
0
167
Member Avatar for keavon

Hi, I'm making a 404 page, and I want it to display the current URL, but I don't want it to be server side. I don't know much about any variables are anything, so it would be nice if a nice person could give me all of the needed code …

Member Avatar for keavon
0
167
Member Avatar for Sunshineserene

I have a text file in this format: AUGC U[B]1212[/B] A[B]2121[/B] G[B]3434[/B] C[B]4343[/B] I need to extract the number that I need depending on which variables (letters) I'm comparing. For example, I need the value for A and U, so the value I need to look up for or extract …

Member Avatar for NormR1
0
229
Member Avatar for josephe

Ok, so I'm learning PHP (and quite enjoying myself so far). I'm making a web page that will have a list of text boxes for the user to type info in. The boxes will be created dynamically via JavaScript (later on in development), and the id/name of the box will …

Member Avatar for josephe
0
224

The End.