- Strength to Increase Rep
- +5
- Strength to Decrease Rep
- -1
- Upvotes Received
- 15
- Posts with Upvotes
- 12
- Upvoting Members
- 7
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
Play Guitar and Bass, love programming
- PC Specs
- Ubuntu 10.04/Windows 7 Dual Boot
Re:
After you got the basics of Python under your belt, the best way to get a good knowledge of the language and improve your coding skills is to start on a project you are interested in. Maybe an image viewer, a slide show, computer generated random or fractal art, a … |
|
Okay, so I am creating a battleship game, I posted a thread here earlier to figure out how to place the ships, but know I'm back, because I am curious as to how I should program the AI for it. Here's my base code now, and I'll explain how the … |
|
Essentially, I'm learning how emulators work. I've got the core down, but I wanted to know if I'm actually doing this the right way, or if I should be doing it differently. [CODE]#include <stdio.h> // Opcode + Argument Retriever #define GetOpCodeControl1(x) (x>>14) #define GetOpCodeControl2(x) ((x>>12)&0x3) #define GetOpCode0Arg(x) (x&0x0FFF) #define GetOpCode1Arg(x) … |
|
Re:
hi i want to design a new web browser but i have no idea that which programming language is best for it so please suggest me from which language i should start.... i have a knowlege of c/c++ and java and in web area HTML/css/Xhtml/flash programming/java scripts(learning) -PC(INDIA) |
|
Alright , so I spent _forever_ trying to figure this out. So, if any newbies here need to know how to write and read ANY object (with the exclusion of pointers, but I'll get to that), this is something that can help. First and foremost, you have to take endianness … |
|
I posted a while back ago on making directx work in classes. I'm having more issues now. On line 125 (system.cpp), when in debugging, it tells me that it has an access violation. I googled the issue, and someone had said something about initializing the pointer, but that is taken … |
|
I am at my wit's end with this thing. I just can't figure out, why I cannot set the WNDCLASSEX.lpfnWndProc equal to my class's function. Can someone help? Here's my code: system.h [code] #ifndef SYSTEM_H #define SYSTEM_H #include "stdinc.h" class System { private: void initD3D (void); void cleanD3D (void); LRESULT … |
|
Hey there. I've been programming in Python for about a month now. I've created simple programs for myself, such as games and e-mail applications. Still getting GUI down, I'll post if I need help there. Anyways, here's my problem: Running: Windows XP Python: Python 2.6 I installed the newest version … |
|
Re:
[code]def cDownload(): print("Enter package name ") sName=input print("Enter download location ") sLocation=input command = "wget http://aur.archlinux.org/packages/" + sName + "/" + sName + ".tar.gz -O" + sLocation + "/" + sName + ".tar.gz" os.system(command) [/code] I get TypeError: Can't convert 'builtin_function_or_method' object to str implicitly |
|
Re:
ok someone please explain popen to me it runs subproccesses does this mean it can run programs from within my program? any help would be appreciated , there is not an easily spottable place that explains this. Thanks |
|
Re:
The problem is that I want login to a remote pc using ssh through a python script. I don't want to use any ssh-keys (rsa keys,dsa keys etc.) nor do I want to use some extra module not incorporated in python standard libraries (telnet etc I guessed it is used … |
|
Re:
in one of my course my teacher and i do not agree on how 100100000 should be divided by 1101 using binary division , after solution the quotient i get is 010110 with remainder 010. my teacher gets another, can someone please confirm a correct solution for it. regards, nemo |
|
Hello, I'm trying to take a C array of char's and trying to take all of the spaces out of it. Yet I keep running into a segmentation fault. Can anyone help me here? [code] #include <stdio.h> #include <stdlib.h> int strlen(char* Str) { int toret=0; int i=0; char tmp = … |
|
Re:
This is a first post, and I hope that it is in the right place. My Toshiba XP Laptop no longer lights up. Info is there and is working, but almost impossible to see. Got it working a few times by quickly opening and shutting the lid, but no longer … |
|
Re:
Hi all the gurus and experts out there, I need your opinion on this: [url]http://www.simcountry.com[/url] What do you guys think is needed for programming/developing such game at this scale? Any advice for the platform to use and which server should I tap in for a good start? |
|
Well, since there was no option for "tutorial" in the type of post, it has been created as a simple thread... Obfuscation - confusion resulting from failure to understand obfuscated code - Code that is hard to read In this tutorial, I will show you how to convert something readable, … |
|
Re:
••••i am trying to build a clock using python where the clock is about 1/2 an earth second, it would have 11 seconds in a minute, it would have 5 minutes in an hour, and it would have 3 hours in a day. it would also have 3 months per … |
|
I have the following function (from windows.h) which I am trying to use the Python C API to allow python to call it. This is the function: [code syntax=C] BOOL ReadConsoleOutputCharacter( HANDLE hConsoleOutput, (Type Handle to Change (use STD_OUTPUT)) LPTSTR lpCharacter, (char pointer to store Characters read) DWORD nLength, (length … |
|
Okay, so I'm sitting here bashing my head against the desk. I've been googling this for what seems the past hour. I cannot find any relative good links for making Python work with WAMP server. Yes, I understand how CGI scripts work. Unfortunately, I have no idea how to configure … |
|
Here is my issue: I have a program, that downloads roms off the internet. Everything works fine, but I would like to show an indefinite progress bar while it is downloading. I have that with the following code: [code] # -*- coding: utf-8 -*- # Form implementation generated from reading … |
|
I have created a program, and wanted some critique on it. There is a website that I go to in order to download roms, and I do not like clicking a ton of links and waiting 15 seconds to download it, so I created a program to fetch it for … |
|
Re:
I have this program that i have been working on which plays rock paper scissors game with the user. [code=syntax] '''play a game of Rock, Paper, Scissors''' from random import randint def firstChooserWins( chooserChoice, otherChoice ): #print chooserChoice, otherChoice if (chooserChoice == "Rock" and otherChoice == "Scissors") or \ (chooserChoice … |
|
Re:
Hello, If say I have 5 variables: v1=3 v2=1 v3=7 v4=6 v5=5 and two lists made from these L1=[v1, v2, v3, v4, v5] , L2= [3, 1, 7, 6, 5] and I sort on L2, so that I have, L2=L2.sort()=[1, 3, 5, 6, 7] Is there a way to sort … |
|
Re:
Hello friends, I am writing an Application in pygtk ,there i got stuck up with this problem I want to open a text file using any editor using python Can any give some solution to this please ... Thanks in Advance ... |
|
Re:
hey gues i search 'replace' matrix? 123 456 789 i need in output 147 258 369 |
|
Re:
Hi everyone, I know this is a very beginner inquiry, but I can't seem to figure out exactly what it is that I'm doing wrong. I'm using this tutorial: [url]http://www.sthurlow.com/python/lesson05/[/url] to build a simple calculator program. My version of Python is 3.1.2 here is my code: [code] loop = 1 … |
|
Re:
I personally prefer the 3 syntax over 2, but I notice most of the code snippets in this forum are for Python 2. Is it because we are still in a steady transition from 2 to 3, or is it something else? |
|
Re:
The methods is so complicated. I want to check the execution time of each statement so that I can modify that part in order to increase speed. Thanks in advance, Raymond |
|
Re:
Can we make a software using Php As php is web development softawre I am confused :( Plz help |
|
Re:
i found this code [URL="http://www.daniweb.com/forums/thread233959.html"]here[/URL] and i tested the code and it isn't working for me this is what my code looks like: [CODE] # PURPOSE: to count the number of words, lines, and characters in a file # # INPUT(S): a file name to be used # # OUTPUT(S): … |