132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ddwyer50

Helo All, I need to write a python script that will automatically log into a website and retrieve a URL once it has logged in. I already know how to fetch the html of a page, but how do I make the script log into the page first? On the …

Software Development image python
Member Avatar for EAnder
0
219
Member Avatar for redrum237

hey, i have made a game called zombie island. this is what needs to be included in the game: This is a simple turn based game. Set up a 2d grid. Onto the grid randomly position holes, zombies and a man (each represented by a simple character e.g. O Z …

Software Development c++ visual-basic
Member Avatar for redrum237
0
147
Member Avatar for ChrisP_Buffalo

I'm trying to write my first web scraper with Python using simple regular expressions to match the info I want to extract (I realize BeautifulSoup is available, but I'm not ready to use that yet, so I want to figure out how to use reg ex first) . I want …

Software Development python
Member Avatar for jlm699
0
64
Member Avatar for obsolucity

I am having some trouble wrapping my head around this project. I am needed to code a relational database in C++ making use of the sql selection and projection operators. I can use a 2d array to create the 'database'. Please, if anyone could just point me in the right …

Software Development c++
Member Avatar for mcriscolo
0
1K
Member Avatar for peyman_k

Is there any built-in/ 3rd party libraries in C++ or any windows API that I can use to capture audio in windows? Thanks, Peyman

Software Development api audio c++ windows-api
Member Avatar for peyman_k
0
97
Member Avatar for krammer

I'm trying to add colors to this bash script, can anyone help? [CODE]#!/bin/bash # Script to connect to the sprint network # Colors # ESC_SEQ=“\x1b[“ COL_RESET=$ESC_SEQ“39;49;00m“ COL_RED=$ESC_SEQ“31;01m“ COL_GREEN=$ESC_SEQ“32;01m“ COL_YELLOW=$ESC_SEQ“33;01m“ COL_BLUE=$ESC_SEQ“34;01m“ COL_MAGENTA=$ESC_SEQ“35;01m“ COL_CYAN=$ESC_SEQ“36;01m“ case "$1" in connect) pppd call sprint updetach echo -e $COL_GREEN"**You are now connected to the sprint network!"$COL_RESET …

Software Development shell-scripting
Member Avatar for krammer
0
182
Member Avatar for army88m2

I need some help here I guess I am suppossed to put this code inside a while loop. Don't have a clue this is my first scripting class. [code]if (x <=20 and >=25 ) then print x Else If (x <=40 and >=45 ) Print x endif[/code]

Software Development vb.net
Member Avatar for Jx_Man
0
109
Member Avatar for itzkanaga

hi, Is there any tool in vb.net like windows rising. thanku

Software Development vb.net
Member Avatar for Jx_Man
0
92
Member Avatar for flagrl

i m new to programming where do i start? i have python on my computer and have played around with it. but dont know where to start or what to do. any advice would help me so much.

Software Development python
Member Avatar for jlm699
0
96
Member Avatar for kux

first model: [CODE] class MyException { string message; public: MyException( string msg ): message( msg ) {}; void printmsg() { cout<< message <<endl<<endl; } }; void willthrow() { throw MyException("mk"); } int main(int argc, char * argv[]) { try { willthrow(); } catch( MyException &ex) { ex.printmsg(); } } [/CODE] …

Software Development c++
Member Avatar for ArkM
0
110
Member Avatar for StarryEyedSoy

I have a list of the stock prices over 14 years and am required to calculate the daily returns as Returns = log(today_s price/yesterday_s price) Here's what my data looks like: 7/18/2008 19.57 7/17/2008 18.08 7/16/2008 14.27 How do I calculate this while reading the data from excel? I have …

Software Development python
Member Avatar for StarryEyedSoy
0
112
Member Avatar for karang

Hi I am using a function InitDocStruct() to initialize the document I want to print through my program. Definition of the function is [code=c++] void InitDocStruct( DOCINFO* di, char* docname) { // Always zero it before using it. memset( di, 0, sizeof( DOCINFO ) ); // Fill in the required …

Software Development c++
Member Avatar for mitrmkar
0
129
Member Avatar for splitfinity

Hi guys. Im trying to get a wav file to play on a mouse over event. I want a wavefile to play when the mouse pointer moves over a label and stop wen it is moved off the label. I believe this can be done using the sndPlaySound, i have …

Software Development visual-basic
Member Avatar for splitfinity
0
167
Member Avatar for ambarisha.kn

I am reading 4 bytes in binary file and stored in some variable named as *tmpbuf. i am printing this variable in decimal value like this. printf("%d",*tmpbuf); But now what to do is i want to split 4 bytes into two and want to read those separately and saved in …

Software Development c++
Member Avatar for mcriscolo
0
157
Member Avatar for datta08

I am trying to execute the code (append '(a b) '(c d)) in drscheme using lazyscheme and i am getting the following output: (a . #<promise:...cts/lazy/lazy.ss:453:38>). What is the problem? Thanks.

Software Development
Member Avatar for elibarzilay
0
114
Member Avatar for phouse512

Hello, I've been wanting to learn C++ but I don't know the difference between Visual C++ and C++, is there really even a difference? Also, what would be the best compiler for me to start off with if I wanted to learn C++? Thanks

Software Development c++
Member Avatar for phouse512
0
248
Member Avatar for siberian1991

For my new job I need to learn a bit of Python to parse and extract data from .txt files. Essentially, I have a table that looks like this: Pair NO. Sense Antisense Coding/Noncoding Cis/Trans Overlap ATH00001 At1g02170 At1g02180 coding-coding cis 3 As you can see, the top are simply …

Software Development data-structure python
Member Avatar for jlm699
0
224
Member Avatar for thatoneguyx

[code] # #hangman.py # import random import sys wlist = ['apple', 'blue', 'house', 'frog'] guessed = [] gright = [] choice = None word = random.choice(wlist) guesses = 0 # add dictionary for category def menu(): while True: print 'Welcome to hangman!' print 'To start a new game type "n"\n' …

Software Development apple python
Member Avatar for jlm699
0
150
Member Avatar for kunalcrazycoder

:sad: Will AnyOne Please give me some basics of Assembly Language And its compiler as well as ide:(

Software Development assembly ide
Member Avatar for SamY
0
121
Member Avatar for robertmacedonia

Hi , can anyone tell me what does this error mean? s\visual studio 2005\projects\igrabobi\igrabobi\Form1.h(124) : error C2451: conditional expression of type 'void' is illegal ? I got it when I tried to build my game. Thanks a lot

Software Development c++ visual-studio
Member Avatar for robertmacedonia
0
143
Member Avatar for soroush68

I modified it by visual studio 2005 and it works with it correctly but i has errors by my old compiler(borland C++ 5.02). errors in the last code was caused by using clrscr(),gotoxy() & ... ,that functions was for just borland and was not standard. Does new code of this …

Software Development c++ ios visual-studio
Member Avatar for soroush68
0
186
Member Avatar for Brent.tc

Hi, I was wondering how to program a device driver for Windows XP in c++. For example, say I wanted to make a device driver for a mouse (I say mouse because that seems like one of the most simple everyday 'tools', and would seem as though it were the …

Software Development assembly c++
Member Avatar for Nick Evan
0
243
Member Avatar for karang

Hi I am using Dev C++ for my development purpose. I have few queries 1. Can I use it for making professional applications. 2. Is Dev C++ is same as Visual C++. Kindly advice Regards Karan

Software Development c++
Member Avatar for Alex Edwards
0
110
Member Avatar for d4n0wnz

heres my code: [code=java] import java.util.Scanner; import java.lang.Integer; public class hmwrk4 { public static void main(String [] args) {Scanner kbInput = new Scanner(System.in); System.out.print("number of the element to delete: "); int numEle = kbInput.nextInt(); Node n8 = new Node(new Integer(8), null); Node n7 = new Node(new Integer(7), n8); Node n6 …

Software Development java linked-list
Member Avatar for Alex Edwards
0
155
Member Avatar for ricss_madara

how to write application that calculate squares and cube of the number from 0 to 10 and output in table. the program does not require any input from user?

Software Development java
Member Avatar for bloody_ninja
0
999
Member Avatar for klactose

Hello, I am wondering how do we initialize a vector (or even an array) of pointers when the objects that will eventually be pointed to don't exist yet? I've been searching the internet for a while, but most examples assume that the objects already exist. I hope this won't be …

Software Development c++
Member Avatar for klactose
0
6K
Member Avatar for dinilkarun

Hi All, Through Shell I am opening winxip32.exe in my vb 6.0 application. I want the application to wait until the shelled process has completed and then proceed with execution of the next line of code. How should I go about it. Please help. Regards, Dinil

Software Development visual-basic
Member Avatar for dinilkarun
0
76
Member Avatar for sara29

HI all, can some one tell me how to extract data from images and mime messages. Exact code not necessary but do guide me as how to go about it. Thanks in advance. Regards, sara

Software Development
Member Avatar for sara29
0
98
Member Avatar for adewale1

You are required to design a control system for a car park. You should produce your own design, ensuring that you have enough features to allow you to demonstrate that you can programme multiple tasks with inputs, outputs, decisions, communication and sequencing. The system features may feature space control, entry …

Software Development c
Member Avatar for Salem
0
97
Member Avatar for 11silversurfer1

this really weird thing is happening when i try to find my mouse position of my window. If i put it to the top left of the window it is fine but as it goes further down and across it goes weird. It is really hard to explain, but is …

Software Development c++
Member Avatar for 11silversurfer1
0
328
Member Avatar for franziss

What does this error message mean? Thank you for your help Heap corruption detected at 0072FB10 HEAP[algo.exe]: HEAP: Free Heap block 72fb08 modified at 72fb1c after it was freed Windows has triggered a breakpoint in algo.exe. This may be due to a corruption of the heap, and indicates a bug …

Software Development c++
Member Avatar for franziss
0
1K
Member Avatar for C#Novice

[I have an application where , i have a radiobuttonlist having 2 radio buttons radiobuttons RB1 & RB2 and there are 6 checkBoxes CB1 thru CB6 If RB1 is selected then CB6 shld be disable /invisible and if RB2 is selected then all the CBs shld be enabled. How do …

Software Development
Member Avatar for C#Novice
0
107
Member Avatar for linux

I want to add a list box onto a form, and have it (once the form loads), it'll list all of the files in [icode]C:\WINDOWS\[/icode]. Is there any easy way to accomplish this?

Software Development vb.net
Member Avatar for linux
0
647
Member Avatar for Slade

Hi guys, Basically what I want to do is run a series of commands in my batch file, and display stdout to screen as well as saving it in a file. So to set the context.. [code] ::To output to helloworld.txt Echo hello world! > helloworld.txt ::To output to console …

Software Development file-system shell-scripting
Member Avatar for eggi
0
204
Member Avatar for omrsafetyo

Hey, I'm trying to unpack certain files from a tar archive - I don't want to unpack all of the 1.2GB file, just a particular bunch of it. I tried an obvious command: tar xvf /u8/sp_archive/2005.tar *1274* All files I want to extract have "1274" in the name; I want …

Software Development shell-scripting
Member Avatar for eggi
0
164
Member Avatar for gangsta gama

Hello. I have c++ down pretty good. I am wondering If I should do windows programming first or directx first. And where should I go to get free or cheap, and good ebooks for windows programming and directx. I cant seem to find any good ebooks. Thank you.

Software Development c++
Member Avatar for gangsta gama
0
130
Member Avatar for Wiki_Tiki

Hi, I've been trying this for months now, and I still can't figure out how to get MFC installed as part of Visual C++ 2008. Is there any service pack you can download? How do you get MFC (Microsoft Foundation Classes) installed?!? Thanks.

Software Development c++
Member Avatar for Wiki_Tiki
0
134
Member Avatar for iSoftware

I need to make my application look like it's doing a lot of work- it is a prank application I'm making as a joke for my friends. Any idea how to do this?

Software Development vb.net
Member Avatar for dmf1978
0
103
Member Avatar for raja289

[url]http://s3.supload.com/free/lastscan-...3716.jpg/view/[/url] up there is description of code and here;'s code [CODE=c] #include<stdio.h> #include<string.h> float avg(float); main() { FILE *p[2]; int k,students=10,subjects=4,i,j,id_number,date_of_birth,fail=0; float marks[100],total=0,avg; char name[30],course_enrolled[30],filename[10]; for(i=1;i<=2;i++) { printf("filename"); scanf("%s",&filename); p[i]=fopen(filename,"w"); printf("Enter Name of Student\n",p[i]); fscanf(stdin,"%s",&name,p[i]); printf("Enter Course In Which Student Is Enrolled\n",p[i]); fscanf(stdin,"%s",&course_enrolled,p[i]); printf("Enter ID Number Of %s Enrolled in …

Software Development c
Member Avatar for raja289
0
411
Member Avatar for deftones

Hey people, I have quite a big code and want it to be repeated until the conditions are met. The problem is that every time I try to use Do...Loop statement, my program becomes "hung". Or even when I try to replace that statement with other methods, the program still …

Software Development visual-basic
Member Avatar for deftones
0
96
Member Avatar for supriyav

Hi, I have to create *.xls (or *.csv) with multiple tabs. The program is in the loop and every time the loop runs it should create a new tab. Can any one help me with this. (I want to code it with out using PYExcelerator - I tried using that …

Software Development python
Member Avatar for jlm699
0
381
Member Avatar for gangsta gama

I am practicing my arrays, and I am trying to make a number/letter tic-tac-toe game. Here is my code: [CODE=c++]#include<iostream> using namespace std; char board[3][3]; char letterNum; void displayBoard(); void move(); void displayBoard() { for (int i = 0; i < 3; i++) { for (int j = 0; j …

Software Development c++
Member Avatar for gangsta gama
0
263
Member Avatar for Nemoticchigga

I am trying to put the contents of a char buffer[512] into a word* (type def as data type short). How do I do this? I have tried memcpy but am either getting an exception or it will run but the word* is undefined value after the copy. Any advice …

Software Development c++
Member Avatar for Ancient Dragon
0
101
Member Avatar for besktrap

I'm writing a gravity simulation in python and pygame, and had a quick question. Say I have an object that I can move. Lets call it "square". Then I created a line like so... [CODE] pygame.draw.line(screen, (0, 0, 0), (84, 368), (510, 368)) [/CODE] How would I tell python not …

Software Development python
Member Avatar for besktrap
0
114
Member Avatar for thatoneguyx

the question is within this example: (using *'s) [code] #!/usr/bin/python # Filename: inherit.py class SchoolMember: '''Represents any school member.''' def __init__(self, name, age): self.name = name self.age = age print '(Initialized SchoolMember: %s)' % self.name def tell(self): '''Tell my details.''' print 'Name:"%s" Age:"%s"' % (self.name, self.age), class Teacher(SchoolMember): '''Represents a …

Software Development python
Member Avatar for thatoneguyx
0
105
Member Avatar for dinilkarun

we are able to query successfully from a Column called "ParentUUD" (without space) using query in python for MS ACCESS DB. "SELECT Name FROM PartVersion WHERE ParentUUID='"+ str(lstUUID[0]) +"'" we have a column whose name is "Parent UUID" (with space) We are trying to query the column from PYTHON. we …

Software Development python
Member Avatar for woooee
0
1K
Member Avatar for ninjaneer

I have a C++ dll that I am trying to call in another section of code (happens to be C#) currently I am getting the following error: [COLOR="Red"]Additional information: Unable to load DLL 'MATLABThreadLibrary.dll': The specified module could not be found. [/COLOR] even though I believe I've got all the …

Software Development c c# c++ gui
Member Avatar for ninjaneer
0
236
Member Avatar for plike922

I am wonder how do you make it that you have to letters = to one number with only typing it once? Here is my program. My problem is that the result printf("%d reversed is: %d\n",num , res); is 0 reversed is: (The number backwords). [ICODE]#include <iostream> #include <stdio.h> #include …

Software Development c
Member Avatar for dwks
0
358
Member Avatar for MLT1988

Last semester I took CSII and we built an unsorted list (C++). This summer I went thru the textbook and built an sorted list, and now I'm trying to template the sorted list, but i keep getting compiler errors like this... : undefined reference to `SortedType<float>::SortedType()' /tmp/cc0C4kB6.o(.text+0x448): In function `main': …

Software Development c++
Member Avatar for MLT1988
0
151
Member Avatar for SwiftDeath

Pls Help me, i am nearing the deadline July 30 of this case study and the code is almost finshed it does sort the input elements the way my algo logic does however i am not able to display the correct number of passes to show the law of the …

Software Development c
Member Avatar for dwks
0
150

The End.