Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
67% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
1 Commented Post
Member Avatar for mahela007

Hello everyone! and Seasons greetings! I'm thinking of putting together a new PC and I don't know what type of specs would suit me best. Here's what I usually do with my PC: 1 : To be honest, it's web browsing. But I want to be able to play 4k …

Member Avatar for rproffitt
0
294
Member Avatar for vegaseat

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 …

Member Avatar for vegaseat
20
18K
Member Avatar for mahela007

Is it possible to keep writing the output of a program on the same line instead of moving to a new line every time? The output should be written over the preceding output. An example would be a kind of counter... say a number that counts from 1 to 10 …

Member Avatar for Lucaci Andrew
0
11K
Member Avatar for mahela007

Hello everyone I'm using python 3.1 and am trying to use the pyserial library. However, when I try something like ser.write('hello'), I get a type error. [CODE]>>> import serial >>> ser = serial.Serial('COM13') >>> ser.write('a') Traceback (most recent call last): File "<pyshell#2>", line 1, in <module> ser.write('a') File "C:\Program Files\Python31\lib\site-packages\serial\serialwin32.py", …

Member Avatar for mahela007
0
716
Member Avatar for mahela007

hi guys. can anyone tell me why this code doesn't work? It doesn't raise any error but neither does it provide the expected results. [CODE] my_list= ['a','b'] class my_class: def __init__ (self): self.name = ' my name is hi' for a in my_list; a = my_class() [/CODE] a.name() gives and …

Member Avatar for JoshuaBurleson
0
237
Member Avatar for mahela007

Hi. I want to try and control a Servo motor directly from a USB port. (without using an intermediate microcontroller). To do this, I need to send pulse width modulation signals on one (or more) wires of the USB cable. Is it possible to do this with python? (I found …

Member Avatar for mahela007
0
740
Member Avatar for mahela007

I seem to have a problem with my acer LCD screen. I didn't notice this before, but when the contrast settings of the monitor are increased, the left vertical edges of letters seem to have a purple tinge. This is especially noticeable where there are double L's or double I …

Member Avatar for mahela007
0
189
Member Avatar for mahela007

I have a new PC which I've been using for about 9 months with windows XP. However, since of late, the time it takes to load all the startup programs has become quite long.. i.e the time between when I click the login icon and when the system actually becomes …

Member Avatar for abu taher
0
167
Member Avatar for mahela007

I bought a graphics card a few years ago and recently my monitor developed a habit of not showing the display. Remobing and reconnecting the monitor cable a few times solves the problem. So yesterday, this happened again and I decided to temporarily switch to the on-board display adapter. After …

Member Avatar for mahela007
0
127
Member Avatar for mahela007

What are these standard streams and how do they work? Are they just like normal files where one program writes to the file and another reads from it? If so, how can two programs access the same file at once?

Member Avatar for Rashakil Fol
0
121
Member Avatar for mahela007

I"m trying to make a [URL="en.wikipedia.org/wiki/Sudoku"]sudoku[/URL] puzzle generator (or at least the basics of one) for my project. I'm approaching this by dividing the sudoku grid into 9 rows. Each of the rows will be represented by a list and each list will have 9 elements to represent the nine …

Member Avatar for mahela007
0
358
Member Avatar for mahela007

is it possible, for example, to make the text that appears as output on the command line appear in a certain colour using python?

Member Avatar for Tech B
0
1K
Member Avatar for mahela007

Hi.. I have posted another thread about my broken PC. I'm having trouble identifying the BIOS version that was installed on it. The BIOS chip on the mother board says it is a phoenix BIOS(there is a holographic label which says phoenix.). Does this mean that the BIOS software is …

Member Avatar for caperjack
0
55
Member Avatar for mahela007

How do I copy folders using python? Shutil.copy doesn't work. it raises a permission denied error in windows

Member Avatar for svn799
0
112
Member Avatar for mahela007

Hi.. recently my old PC went bust. I don't know if it's relevant but just before I switched off the PC for the last time, I remembered there was a CD inside and opened the drive. However, before I could close the drive, the PC shut down. The next time …

Member Avatar for eliolum
0
370
Member Avatar for mahela007

What is a process in computer science? I've tried googling but there were no useful results. I seem to recall that an application may consist of multiple "processes" but that's all I know.

Member Avatar for kizmarbie
0
110
Member Avatar for mahela007

How can I make a program wait for a few seconds before proceeding? An example of where this would come in handy is when the program allows the user 5 seconds before it proceeds with some default option... can I do this using python?

Member Avatar for mahela007
0
277
Member Avatar for htrantk

I am learning Python now. It is too complicated. I started the file that i did but it crashed. Can you show me how to do it? Write a Python program to convert a given weight from kg to pound and to gal and to liter. 1kg=0.2642gal=2.205lb 1gal = 3.785liter …

Member Avatar for htrantk
0
3K
Member Avatar for mahela007

I got this from the python docuemtation. date2 = date1 + timedelta --->date2 is timedelta.days days removed from date1. (1) date2 = date1 - timedelta---> Computes date2 such that date2 + timedelta == date1. (2) timedelta is an object representing a time [I]difference[/I] and a date object represent a certain …

Member Avatar for mahela007
0
80
Member Avatar for mahela007

how can I check the difference between two dates using the datetime modules? (or any other module that would do the same thing). I want to read a date from a file (which was written in the same format as the datetime module uses) and then calculate the difference in …

Member Avatar for Stefano Mtangoo
0
190
Member Avatar for mahela007

Is there someway I can parse badly written HTML code in python? I want to get some info from a web page which uses HTML tables for it's formatting and I found numerous flaws in the code using w3cs validator. can I parse this code in python?

Member Avatar for mahela007
0
93
Member Avatar for mahela007

How can I make windows execute a python script when a flash drive is plugged into the computer? Is there a way to do this with python or do I have to use windows?

Member Avatar for mahela007
0
11K
Member Avatar for rag84dec

HElp needed to create a windows service , to launch a simple thread created by the user. I got an article here... [url]http://www.devx.com/cplus/Article/9857/1954[/url] But how to create a thread at apropriate places , like STOP , RESUME , SHUTDOWN?.PLease give me some pointers , thanks in advance...

Member Avatar for mahela007
0
112
Member Avatar for mahela007

[I]Occasionally[/I], when I boot up windows, it doesn't detect my USB mouse. All I have to do is unplug and then replug the mouse and it works again but it's pretty annoying and I want to find out what exactly the problem is. Its not like mouse [I]input[/I] is not …

Member Avatar for hotmatrixx
0
127
Member Avatar for mahela007

I was using the datetime module for the first time today. When I typed [CODE]now = datetime.date.today() now [/CODE] I got the output [CODE] datetime.date(2009, 12, 27) [/CODE] Now, I found out that [CODE]datetime.date[/CODE] is a class and that[CODE] datetime.date.today[/CODE] is a method. But I can't figure out what the …

Member Avatar for snippsat
0
1K
Member Avatar for mahela007
Member Avatar for mahela007
0
79
Member Avatar for mahela007

Would it be of interest to learn C or C++ if one already know python? I'm a linux and programming enthusiast (i.e hobbyist ;-) ) and C is pretty common on linux and many other applications. But is it worthwhile learning C if I already know python? What are the …

Member Avatar for Narue
0
121
Member Avatar for mahela007
Member Avatar for mahela007

What is compiling? (I'm trying to install a tarball on my linux machine). For programming, I use python so I haven't really come across compiling a program.

Member Avatar for BestJewSinceJC
-1
58
Member Avatar for mahela007

I'm having trouble understanding the concept of an API. Could someone please explain what exactly and API does? A simple code example (if that's possible with this subject) would be really useful and much appreciated.

Member Avatar for mackone
0
121