64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for SuperMetroid

Here is the code I have so far: [code]import re from urllib.request import urlopen pg = urlopen('http://www.url.com') pg_r = pg.read() pg.close() print(pg_r) print(re.search('(?<=http://user.url.com/)\w+', pg_r))[/code] What I *want* to do with re.search is find the word between the strings '[color=#0080FF]http://user.url.com/[/color]' and '[color=#0080FF]"[/color]' but I'm not sure how to do that.. Can …

Member Avatar for Ene Uran
0
138
Member Avatar for IAmLegend21

I am having a problem in displaying image to the web browser using html. I can only make it when the image and the html file is in the same folder. Is there a way to display an image getting it from the different folder of my hard drive?

Member Avatar for IAmLegend21
0
83
Member Avatar for armyguydave69

Okay, this is probably a lame question. I have a search page which which needs to be sorted by distance when the results come back from mysql. What's the easiest way to do this since mysql orders the results? heres the code i wanna try to use: [code] function CalculateDistance($lat1, …

Member Avatar for edwinhermann
0
119
Member Avatar for Felicidas

Hi everyone, hope someone can help me or guide me since python really something new for me. I use argv to read some input from user. My problem is i don't know how to read the input as a list. Assume that user should give --n and --file as input …

Member Avatar for Felicidas
0
2K
Member Avatar for blerina12

Hello guys. I am having a problem with the following code. When I try to run the program the instruction int 21 causes an access violation. Can someone tell me how to fix this problem? [CODE].386 .model flat .stack 100h .data message db 'Hello World', 13, 10, '$' .code _start: …

Member Avatar for blerina12
-1
510
Member Avatar for gibson.nathan

alright, i have been working on this code for two days. it is an assignment for my ap comp science class. i have tried several experiments that have all not worked. im supposed to make a proram that simulates an 11 sided dice being rolled, and it has to use …

Member Avatar for cgeier
0
204
Member Avatar for flebber

Hi I want to prompt the user to enter the date dd/mm/year and use this later as part of filename and later as object in file(if this helps searching). Does using datetime ensure that user input will be a valid input? I would like the output to be year-mm-dd My …

Member Avatar for flebber
0
28K
Member Avatar for armyguydave69

Hi, I'm having a slight problem on my home page. Depending on if the user is logged in or not depends on what navbar they see. However, even if the user is logged in - it will sometimes tell the user he is logged out. If you refresh the page …

Member Avatar for armyguydave69
0
185
Member Avatar for akie2741

my code is: [CODE] import urllib import urllib2 import re #get URL urla='http://www.sc.iitb.ac.in/~bijnan/personal-details.htm' #connect to this website request=urllib.urlopen(urla) #get html file from this website html=request.read() #get the address from above html file print html [/CODE] How can i find all his addresses in this html,can use the re.complie() method to …

Member Avatar for djidjadji
0
99
Member Avatar for imclumsy

Hi I am trying to find out a way to swap two nodes in an unordered linked list. I want to find out a way where i can change the links of the two nodes so they are swapped. I know I am supposed to use the previous and next …

Member Avatar for masijade
0
1K
Member Avatar for sonygamer

[CODE]#include <iostream> #include <cmath> using namespace std; int n; void main(){ cout<<"input the number of students: "; cin>>n; double *scores= new double[n]; cout<<"enter the scores of the students: "; for( int i=0; i<n; i++){ cin>>scores[i]; } double sigma,sigma2, mean, strDev; int ii; for (sigma=ii=0;ii<n;ii++){ sigma+=*scores; *scores++; mean= sigma / n; …

Member Avatar for sonygamer
0
136
Member Avatar for JustAnotherJoe

For weeks I've been using the same code without any problems. I call SIGNAL within a thread and it's working like a charm. Then I bring the same module home to the same environment (Ubuntu Jaunty, Python 2.6) and now I'm getting this error: ValueError: signal only works in main …

Member Avatar for JustAnotherJoe
0
7K
Member Avatar for bigtreeworld

In VB.net (2008 or 2005), how can I ping a website (like for example [url]www.bigtreeworld.com[/url]) and store the website's IP address to a string?

Member Avatar for bigtreeworld
0
96
Member Avatar for armyguydave69

Okay, I'm a little confused - this code works perfectly fine in mysql; however, in php it keeps repeating the first person for about 15 rows. Can someone point me to what I'm missing here. [code] $queryUsers = "SELECT user_id, zipcode, gender, housing_status, active, username FROM users WHERE user_id != …

Member Avatar for flashyflashy
0
153
Member Avatar for Ineedhelpplz

This is the error I have been receiving when trying to compile my code: [QUOTE]blade71(45)% gcc -o trim trim.c Undefined first referenced symbol in file getline /var/tmp//ccYdyoM3.o ld: fatal: Symbol referencing errors. No output written to a.out collect2: ld returned 1 exit status [/QUOTE] My source is only a rough …

Member Avatar for Ineedhelpplz
0
988
Member Avatar for NirmalPatel

I am In senior year. I want to become something related to computer engineering! Can anyone please tell me which college course to choose? I want a course that covers programming,software engineering, hardware engineering etc. I know it is too much, but i want a course that teaches almost everything …

Member Avatar for NirmalPatel
-1
128
Member Avatar for ankit894u

in want to edit the code in such a way tht the user can enter upto 10 values maximum..need help pls ... [CODE] #include <iostream> #include <iomanip> using namespace std; struct node { int info; struct node* next; }*front,*rear; void enqueue(int elt); int dequeue(); void display(); void main() { int …

Member Avatar for shaynerossum
0
102
Member Avatar for veledrom

This is content of in.header.php [code] if(!isset($session_id) || empty($session_id)) { session_start(); $_SESSION["Inputs"]=array(); } [/code] This is index.php which also has form objects that POSTs other values to step1.php [code] require_once 'inc.header.php' $_SESSION["Inputs"]["name"]="MyName"; $_SESSION["Inputs"]["surname"]="MySurname"; [/code] This is step1.php [code] require_once 'inc.header.php' $_SESSION["Inputs"]["age"]=$_POST["textboxAge"]; print_r($_SESSION["Inputs"]); [/code] Problem is print_r prints only [inlinecode]Array ()[/inlinecode]. …

Member Avatar for veledrom
0
177
Member Avatar for dre-logics

I use MYSQL 5.0 I have a table with a field named ArticlePrice. The content of the ArticlePrice field looks like this [COLOR="red"]10.50[/COLOR] My question is: is there an environment variable or system variable MYSQL who can change the locale currency in to Europe setting . So that the content …

Member Avatar for TomW
0
104
Member Avatar for yoksu

Hi. I am using a webbrowser control in my form program and i am displaying an html page. There is 1 textbox in html page and id is "textbox". When someone write something in textbox, i want to use this text and save it to db. It will be work …

Member Avatar for serkan sendur
0
3K
Member Avatar for axeeffect2002

Hi, I am trying to log a portion of the log file depending upon the "WorkOrderNumber" and "level". The shell script i've written is as follows:- [CODE]cat input.log | awk '/\[WorkOrderNumber/' | awk /120600012/ | awk /INFO/ | tee log.vw[/CODE] For a particular WorkOrderNumber, the record is very long (4253 …

Member Avatar for axeeffect2002
-1
414
Member Avatar for sandeep_1987

Currently I have two textboxes & one button, Suppose In One textbox1 i write sandeep gupta after clicking on button in textbox2 Sandeep Gupta is dere using the foll. code- [code] protected void Button1_Click(object sender, EventArgs e) { string capitalized = CultureInfo.CurrentCulture.TextInfo.ToTitleCase(TextBox1 .Text); TextInfo UsaTextInfo = new CultureInfo("en-US", false).TextInfo; TextBox2 …

Member Avatar for sandeep_1987
0
197
Member Avatar for kranny

I want to write a script where in i can kill the top processes and run this script for every 5 minutes.How to extract parameters from top command

Member Avatar for kranny
-1
173
Member Avatar for scru

Is there an open source (lgpl, bsd, mit) math parser/lexer library available out there? Has anybody ever written one by themselves (with support for variables, exponents, grouping) and have some tips/hints?

Member Avatar for scru
0
196
Member Avatar for ShailaMohite

Hi All, In my application, i have a datagridview with 5 colums, at the form load the datagridview contains one row, I am showing a combobox in each of the 4 columns to select the values (i doesnot type any thing in that 4 columns), when i press tab the …

Member Avatar for sknake
0
1K
Member Avatar for crackerjacker

I have search everywhere for about 5 hours and have either found a load of crap or a bit of code that wont do what i want it to. basicly i need something the i can connect to an ftp server (drivehq) enter my login info and then download a …

Member Avatar for crackerjacker
0
83
Member Avatar for ShailaMohite

DatagridView Contain 5 Column Focus On Last Column Then Add New Row At A Time

0
387
Member Avatar for puk

I have a text box in a form that is validated to accept a value called ds01 but i also want the textbox to be allowed to accept empty spaces that is if nothing is entered in the textbox. The problem is that it does not accept anything other than …

Member Avatar for Troy III
-1
115
Member Avatar for ddanbe

Hi all, The following does work, but not as I expected. If I use an enum I normally don't have to prefix it with a class name. Here it seems the only option. Can anyone tell me why? [CODE=c#]namespace ConsoleApplication1 { class Program { static void Main(string[] args) { MyEnums …

Member Avatar for ddanbe
0
93
Member Avatar for MikeGore

Hi, I know the format is right, but what is my user ID and password. I get this error when I try to open the webpage on localhost: HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is …

Member Avatar for MikeGore
0
102
Member Avatar for cheapterp

I am using MS-SQL 2005 DB. One of the tables in the DB, that I inherited, has gotten upto 37000 records. And it will go up by another 50k records soon. Does that make too much data for one table? The table has about 25 columns, most of which contain …

Member Avatar for sknake
0
156
Member Avatar for ShailaMohite

Hi All, In my application, i have a datagridview with 5 colums, at the form load the datagridview contains one row, I am showing a combobox in each of the 4 columns to select the values (i doesnot type any thing in that 4 columns), when i press tab the …

-1
329
Member Avatar for DeOiD

Hi I want to fetch results from a given table (in this case using MySql) and put them in a array or arrayList or List<> (whatever works better). The thing is that this must be made dynamically. The idea is something like this: [CODE] aResult = functionsMysql.getArray(query); class functionsMysql { …

Member Avatar for DeOiD
0
287
Member Avatar for redreed

when i use random my settextstyle starts malfunctioning eg if i choose Gothic style i gives plain text if i make randomize a comment it works without bugs can anyone help me and also i heard void main is wrong and int main is correct why??

Member Avatar for redreed
0
106
Member Avatar for josh_keren

Please Help me, I have 2 Table, A dan B. Table A : Sandar | jmlMuat --------------------------- Mirah | 20 Berlian | 10 Table B : Sandar | jmlBongkar ------------------------------- Mirah | 30 Nilam | 15 I want to join that table to get result like this : Sandar | …

Member Avatar for sknake
0
101
Member Avatar for jrosh

Application failed to initialize 0xc0000135 I got above problem while trying to run a .exe of a vb.net program I wrote.(in a different machine). How can I solve it?

Member Avatar for Ramesh S
0
154
Member Avatar for A.Najafi

Hi All, Can I have a Listvew in which Groups have ability to expand or shrink? Now I Generate a Listviw in which groups are expand always, in Vb.Net. [CODE][/CODE]for i as integer=0 to Number 'Add Items ListView1.Items.Add(i) 'Add tow SubItems ListView1.Items(i).SubItems.Add(1) ListView1.Items(i).SubItems.Add(2) next 'Generat a Group ListView1.Groups.Add(New ListViewGroup("BaSalam", HorizontalAlignment.Left)) …

Member Avatar for A.Najafi
0
145
Member Avatar for Zaffron

Ok so I am attempting to make a program that downloads files from a site that are similarly named. For example, there is a site with files that are named blarg-0001, blarg-0002, blarg-0003, etc, until blarg-0020. Well the purpose of my code is to download those and everything inbetween but …

Member Avatar for Zaffron
0
107
Member Avatar for DdoubleD

See attached project. This is a very small test project so I can learn. Here are my questions: 1) I've overridden the Install and Uninstall in my Installer component based class, but they don't seem to get called...why? I am setting a breakpoint in the Install override and running in …

Member Avatar for DdoubleD
0
581
Member Avatar for shaynerossum

Hi, first of all I would like to thank you for taking the time to look at my problem. I'm trying to input to a multidimensional character array. The error occurs on the second array. I tried to understand the problem by varying my input, but it always occurs on …

Member Avatar for shaynerossum
0
338
Member Avatar for artorius

This is my problem...hopefully somebody can help me out with this. This is what I am supposed to be doing: Recursive Binary Search of 2-dimensional array: Load a 30x20 two-dimensional array of ints with values from the file “values.txt”. The file contains 900 numbers in order. Once the array is …

Member Avatar for artorius
0
2K
Member Avatar for armyguydave69

Hi, I've been looking around for a hosting company and haven't been able to decide on one. I was basically wanting to see what some people would recommend. My requirements: 1.Windows based 2.PHP & ASP.NET 3.Unlimitied disk space 4.Unlimited bandwidth 5.Allow to host unlimited domains under one account 6. The …

Member Avatar for diafol
0
127
Member Avatar for dougbarrett

Hello everyone! I searched the site already to see if this question has been addressed already and found no results, but if it has then I appologize and if you can link me to that thread I'll refer to that to solve my problem. I am trying to save a …

Member Avatar for dougbarrett
0
732
Member Avatar for stoymigo

Hi , i use Visual Studio 2008 . I know hot to set up a simple install program (.msi) I would like to know how can I integrate more steps(forms) into the installer. I want to include steps in the installer where you can install a program , or update …

Member Avatar for serkan sendur
0
145
Member Avatar for sfrider0

I'm pretty new to opengl but been using c++ for a while now. How can I display variables using this? I can display single characters by using [code] glutStrokeCharacter(GLUT_STROKE_MONO_ROMAN,'0'); [/code] Why can I not use [code] int x = 0; glutStrokeCharacter(GLUT_STROKE_MONO_ROMAN,x); [/code] Compiles but won't display anything.

Member Avatar for sfrider0
0
161
Member Avatar for Kadjii

Hello, I'm having a strange problem. I'm trying to make a link to a page called stats.php for a series of first names that I have stored in a database. However, when I use the code below the hyperlink ends up being a link to the current page I'm on …

Member Avatar for Kadjii
0
219
Member Avatar for NathanOliver

hi all. I'm not sure if its possible but can you call a different constructor inside a constructor of a object? ie can i have different constructors call a single constructor to set up the object [code=c++] class foo { public: foo(int) foo(double) //... }; foo::foo(int number) { this = …

Member Avatar for mrnutty
0
120
Member Avatar for elidotnet

I have some web page im using ajax accordion script. my question: is there any code (or maybe code in different language or script) that will make the window not to close copletly? i mean, there is the title line after you click the arrow the window open after you …

Member Avatar for serkan sendur
0
318
Member Avatar for scrace89

I am new to python and programming this is my first time using the code (first assignment). I need help with writing a program to convert the code message entered by the user into ascii numbers, then find which number occurs 12% of the time, and have it represent the …

Member Avatar for willygstyle
0
278
Member Avatar for Alex_

Hey guys. I want to read from a file created by me from a specific position. But i don't know how to move the file cursor. [code=ptasm] TITLE ep1 .MODEL SMALL .STACK 10h .DATA text DB '1234567Start:7890.end',13,10 text_length equ $-text dir db 'D:\myfile.dat',00h buff db 17 dup('$') f_handle dw 1 …

Member Avatar for NotNull
-1
1K

The End.