199,114 Archived Topics
Remove Filter ![]() | |
I am trying (first python attempt) to pull information from a web page and store is for further use. Here is the code that opens the page and gets the information. [CODE] # -*- coding: utf-8 -*- #python from urllib import urlopen myfile = urlopen('http://192.168.0.1/stlui/user/allowance_request.html%20target=%22allowance%22').read() print myfile [/CODE] The following … | |
Say i have a 256 byte file. How many additions or multiplications can a modern computer perform on them using c++ ? I've been working on this c++ compression project that does a lot of calculations. I use Dev-cpp,and am a amateur programmer,i've not used pointers,vectors or anything fancy yet,anyway … | |
Hi, New to PHP, wondered if anyone could point me to a script that would do the following: get email address from a website. Basically there is a site that is open for public viewing with addresses and phone numbers and email addresses that my client would like to target. … | |
Hey i am also facing the same problem. I have tried this but this is not working. please help me. [code] Protected Sub cmbParty_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmbParty.SelectedIndexChanged myConnection.Open() Adpt = New SqlDataAdapter("SELECT * FROM PartyMaster where Id = '" & cmbParty.SelectedIndex & "'", myConnection) … | |
Hi, I'm actually drafting a MySQL query to be fed into Jasper Reports, and since I can no longer manipulate the resulting data in PHP as it will automatically be translated into a chart by jasper, I need my mysql statement to be able to generate what I need on … | |
i need Given a set of numbers on the command line (partition an array) It should check whether a solution exists and if so print the two sets upto now the code i have seems to parttion each integer, what i need is for it to partition the array as a whole, for example lets take the array[1,2,3] this can be divided as [1,2] and [3], we can see that … | |
How can I manage to lock or unlock access db query table. e.g. I have a game which displays few questions and then answers which are taken fromt the access db records. What I want is during the game play, it should remain lock till it is accesed, so that … | |
Hello folks, I've written an application to send SMS through GSM mobile using AT commands. It's not working at all. Heres the code below. Can any one tell me what I have done wrong. Private Sub SendSMS() Try SMSPort.WriteLine("AT") SMSPort.WriteLine("AT+CMGF=1" & vbCrLf) SMSPort.WriteLine("AT+CSCA=""+9779851028801""" & vbCrLf) SMSPort.WriteLine("AT+CMGS= ""+9779841892897"" " & vbCrLf) … | |
Hi all. I've been working on a small program, and I need to get the Process ID by the name. This is what I have: [code=vb] Dim Processes() As System.Diagnostics.Process = System.Diagnostics.Process.GetProcessesByName(ProcessName) Dim Process As System.Diagnostics.Process = Processes(0) Dim id = Process.Id [/code] But I always get this error: [icode]Index … | |
Can any one give me code for finding size of my log file using [COLOR="Red"][B]VB.NET????[/B][/COLOR] Also I want the code to make my log file of 1KB only and not more than that. :'( | |
Hi guys How do I search a file ".txt" which contains three lists side by side for a word , then print the line that the word I searched for is in? NOTE: -The lists are lists of names . it would be beter if you show how to do … | |
Hi, I'm trying to make a frontend for the compile module in python. Everything works just right, except when the file has mistakes in the code that lead to a syntax error. It does raise the invalid syntax error in the terminal, but instead of executing the block inside the … | |
Hi, I have a file test.txt, this file has many pathnames such as, C:\xx\yy\zzz\bd\hello C:\xx\yy\zzz\bd\bye C:\xx\yy\zzz\bd\cd\de\name C:\xx\yy\zzz\bug C:\xx\yy\zzz\dfdfd\gt I want to use basename or any other method to get the the last filename. At the moment in my batch script im unable to loop through the file and use basename … | |
Hi Guys , can any one tell me how to insert array in database using insert statement. thanks | |
So I'm trying to make a fun and simple little game of Blackjack using C#. I've got a lot of it working how I want it to, except my shuffle routine doesn't seem to be doing anything. What do I need to change in my shuffle routine so that it'll … | |
Hi there, Someone using symfony? help me, please.. I have form class that I embed to another one.. In the embedded form, I have multiple checkboxes. But when I try to save it and I check some value of checkboxes, the error said "SQLSTATE[HY093]: Invalid parameter number: number of bound … | |
Hi Folks, I got some problems and need your help. In school, my codes are writeen under UNIX system (Solaris10/SUN), now I need to transfer those codes to Linux (Redhat5). But after I directly copy to Linux, it shows many errors and warnings. Does anyone know which codes I need … | |
Hi Guys, So I have the functiom find_index_of_max and I need to use main as a driver to print the index of the the max value in the array. However, mine isn't functioning correctly. So, I was wondering if anyone can tell me what I need to do. Thanks! [code]#include … | |
HI to all, I am in need of escaping the regular expression special characters like '/', '.', '*', '+', '?', '|','(', ')', '[', ']', '{', '}', '\'. I have try with this by the following javascript but i can not achieve that. [code]RegExp.escape=function(str) { if (!arguments.callee.sRE) { var specials = … | |
Guys I am seeking help on the following two dimensional arrays, using matrices. (a) Enter elements of two matrices A and B. (b) Add the matrices and store the result in matrix C. (c) Subtract matrix A from matrix B, and store the result in matrix R. | |
Hi, I'm struggling with writng an AJAX query function. It seemed to work in IE and Opera, but not in Firefox - but now won't seem to fire at all. The page can be seen at: [url]http://localhost/CRITS/index.php[/url]. Waht should happen is that as you click on the top left image, … | |
Alright. So here's what I've currently got. Basically, I've got an array of numbers - any amount. My current code counts up the frequency of each number, then prints out the one that is the largest, and it works perfectly. But the problem is, I need to make it be … | |
Hey All! I'm working on a project at the moment, where there are a variety of sections. Each section has its own window and WPF controls. Each window has a tab control, with tabs to 'View', 'Add', 'Edit' and 'Delete' records. The 'View' tab has a ListView which is populated … | |
Hi all, I'm trying to display the total extraction progress of a zip file as below. This gives me the total file size of all uncompressed files in the zip: [CODE] For Each backup In zip TotalSize = backup.UncompressedSize + TotalSize Next[/CODE] I'm then using this to get the current … | |
I'm in a computer programming class and having trouble. The assignment is: [I]Write a program that uses a structure named MovieData to store the following information about a movie: Title Director Year Released Running Time (in minutes) The program should create two MovieData variables, store values in their members, and … | |
OK, so I think its a simple question but since I am extremely new to ajax and really trying to figure it out I'm not sure how/where to really start with this. What I want is a piece of code that reads a table and inserts new entries into a … | |
Hi everyone, I'm new to c-programming. I'm currently trying to write a program using function call but end up in a mess. Can anyone help me please? I've been trying this for a few days. I wanted to write a program with "factorial" and "power" I'm refering to this example. … | |
[code]#include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/ipc.h> #include <sys/msg.h> #include <string.h> typedef struct msgbuf { long mtype; FILE *mtext; } message_buf; main(){ int msqid; int msgflg = IPC_CREAT | 0666; key_t key; message_buf sbuf; size_t buf_length; key = 1234; if ((msqid = msgget(key, msgflg )) < 0){ perror("msgget"); exit(1); … | |
I want to create a structure comprising of an integer and a pointer to it. However it doesnt seem to work and devC++ gives the following error [CODE]struct loha { int i; int *p = &i; ...7 } *pp; ...8[/CODE] Error : 7 I:\G\My CPP\structures.c [Warning] no semicolon at end … | |
Hi im starting to learn c++ and im having a little issue that im not capable of correct yet... the program ask the user to imput the size of an array then the program create it at that size, fill it with random integers and output the array into the … | |
Hi , i have used some gui tools to generate my php code from database and i need some help with the search form. basically the tools only created the search of dates in US format so someone had to write a cusotm function for it to display as UK … | |
I am currently writing code to populate a select tag with all the hours of the day. I recently rewrote a function that will populate a temporary select tag based off a time passed in as an argument and then return the temporary select at the end. When I attempt … | |
Hello, could some please help me with a current project that I'm working on for school? I have the following code, but the output shows unknown address. The following is the description of my assignment, and the code I have so far. Thank you. Write a program that creates a … | |
ASP code snippet to detect visitors and monitor their current activity. Monitor and display which visitors are currently visiting which web page, IP number, user-agent, language preference, page referrer and more. In the settings file you can specify for how long to retain the display, for example show visitors activity … | |
I followed a tutorial on [url]http://www.phpeasystep.com/workshopview.php?id=6[/url] and I think it's not working properly for me. When I try to start the session in my sidebar thing it won't actually start somehow :S [code]<div id="sidebar"> <h2>[<a href="?page=home">Samppa's page</a>]</h2> <h3> Main menu</h3> <ul class="menu"> <li><a href="?page=about"> >> About</a></li> <li><a href="?page=projects"> >> Projects</a></li> <li><a … | |
Hi all, in a python script file, I am having a open statement and then i write a "50000" to that file. And then within the script i am writing a scp command that transfers the file to a remote machine. In the local machine if i check the file … | |
What is windows.h. I've googled it and never found any tutorials or anything. Please help. | |
I think maybe this is the right thread for it since i found out Google map control can be created using AJAX. so the question is simple, How to create Google Maps Control ? preferably in an ASP.Net environment. Found a source code here (GNU licensed) but it's too complex … | |
![]() | hello everybody! I have a main app, which imports another python file and uses its functions. my problem is now, that the external file itself needs some functions defined in the main app... if i copy the external files code and paste it into the main application, everything works fine, … |
I HAVE A QUICK QUESTION. I AM NOT SURE IF I AM LOOKING AT OR SOLVING THIS QUESTION RIGHT. IF YOU HAVE for(i=1, i<=n, i++) for(int j=1, j<=i, j++) for(int k=1, k<=5, k++) TASK T 1: for the k loop i take the summation of i=1 to 5 of Tsubi … | |
I'm studying for an exam and need to see if my answers for the following question is correct. Give the bigO estimate for each code fragment in terms on n. method L has method signature void L(int n) & has execution time complexity of O(n). method C has method signature … | |
Hey everyone :) So I'm doing my homework when I get this massive brainfart. It's all done, and everything works, except I need a way to make [B]j[/B] [in the function AddStudents()] get bigger without resetting to 0 everytime the function is called (so it moves to the next cell … | |
I have an Excel macro in which a user can input their name via an input box. I then want to take the name they enter and use it as part of the file path to which the workbook is saved. For example. If user enters their name as John, … | |
Hello to everybody. Lately I have been working into a forum and I have been offering free e-mail accounts with my domain to all the people that register to my forum. However few of them will bother to use outlook for that, so I thought to make a login/registration page … ![]() | |
How would I extract proxies from a website and then display them on a listbox. I was thinking about doing webRequest. Can anyone help me out with the coding? | |
Hi guys: I got a program from a developer. My main problem is that the code is in C and I been trying to compile it, but it keeps me giving errors, well mainly warning, but some of them I am not sure what they mean and/or how to fix … | |
hii how can we send messages periodically to client from server... in C i am running a client server program in C on linux.... in which my server has to ask some parameters (like system Up Time, no of processes ) from client.... i want this function to work periodically … | |
Ok, I need to know some methods(links, articles, etc.) regarding how to parse & comprehend 32-bit grayscale bitmaps on the basis of their data. Suppose I have a black background & a white primitive of medium resolution is there any way I can identify the primitive as a Circle, Box, … | |
Ok, I'm trying to pass some variables from inside Form1, to a new form: LoginDetails. Essentially, what this code does is check if a file exists. If it does, it loads the values from within the file. If the file loads correctly, (it should contail login details to a server) … | |
Here's a code I use (ignored error checking) to read two registry values, combine them and write them to a third one. [CODE=c]unsigned long type=REG_SZ, size=1024; char iLike[1024]=""; char Apples[1024]=""; char iLikeApples[1024]=""; LONG rV; HKEY hKey = NULL; // reading the first value rV = RegOpenKeyEx(HKEY_CURRENT_USER, "SOFTWARE\\FARM\\ValueName1", 0, KEY_ALL_ACCESS, hKey); … |
The End.