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

74 Posted Topics

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
298
Member Avatar for vegaseat

Crete a simple folder synchronization tool. It's not that difficult. I am still a beginner and I did it for my first project. Hints {the os module is very useful for stuff like this} {use a list to compare all the objects in the folder. Use the os.listdir(pathname) method for …

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
742
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
242
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
762
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
204
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
171
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
128
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
125
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
359
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
57
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
113
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
376
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
113
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
284
Member Avatar for htrantk

If you show us your program, we might be able to tell you where you went wrong.

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
83
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
195
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
95
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
12K
Member Avatar for rag84dec

[QUOTE=rag84dec;1071225]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...[/QUOTE] Check this out …

Member Avatar for mahela007
0
113
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
133
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
81
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
138
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
122
Member Avatar for mahela007

I've been trying to read up about how tkinter (or more accurately Tk) works on windows AND linux. Here's what I've understood so far. Tk is a predefined set of widgets. That is stuff like text boxes, check boxes, drop down lists etc. Tkinter is just a way of translating …

Member Avatar for vegaseat
0
1K
Member Avatar for mahela007

What is an abstraction layer in computer science? I've already read (or tried to read) the wikipedia article and I couldn't understand anything.

Member Avatar for mahela007
0
83
Member Avatar for mahela007

How do kernels work on different systems when hardware can be so different? For example, how would the kernel work when the graphics card of a PC is changed?

Member Avatar for mahela007
0
84
Member Avatar for mahela007

I was just reading about the different types of cables used to connect components of computers. When it comes to serial ports and parallel ports, parallel ports are faster because they send several bits of data simultaneously. Therefore, it should follow that parallel ATA is faster than Serial ATA. However, …

Member Avatar for jbennet
0
481
Member Avatar for mahela007

Which one is 'closer' to the actual hardware? is it the driver or the kernel?

0
41
Member Avatar for mahela007

I have some pretty basic questions about the different types of numbers in python (and other languages). What is the difference between an integer and a floating point number? I'd appreciate a detailed answer explaining some of the fundamentals.

Member Avatar for Gribouillis
0
158
Member Avatar for mahela007

I've just started learning tkinter for python. I'm a little curious as to how tk runs on different platforms. From another thread on these forums, l leaned that tk talks to the kernel. The kernel talks to the device driver which talks to the hardware. (Please correct me if I'm …

Member Avatar for mahela007
0
100
Member Avatar for mahela007
Member Avatar for mahela007

The tkinter tutorial at tkdocs ([url]http://www.tkdocs.com/tutorial/firstexample.html[/url]) shows these two lines at the beginning of every example. [CODE]from tkinter import * from tkinter import ttk[/CODE] Doesn't the first line import everything in the tkinter module? if so, why bother writing the second line? EDIT: Just found an answer (kind of ) …

Member Avatar for bumsfeld
0
144
Member Avatar for mahela007

Say I've written a function that will take an unlimited number of arguments and store them under different variables. Since the use is able to input any number of strings, it's not possible to give names to all the variables that might be created. So, how would I create variables …

Member Avatar for mahela007
0
111
Member Avatar for mahela007

Are drivers used by the kernel or the OS? I think it would be best if someone explained how the OS and kernel work together to accomplish a certain task. I posted a thread which touched on this subject and was told the computer fundamentals forum would be a better …

0
43
Member Avatar for A_Dubbs

This is my first time actually providing an answer on these forums so here goes.. A class is something like a template. There are a few special method associated with classes and the __init__ method is one of those. (more on that later). Imagine a class representing a person. This …

Member Avatar for bumsfeld
1
230
Member Avatar for mahela007

What would it take to make graphics show on the monitor without using stuff like tkinter and Qt? (tkinter and Qt are called toolkits right?)

Member Avatar for mahela007
0
261
Member Avatar for mahela007

Is it OK to charge a few (2) mp3 players via USB on the same computer at the same time? Will be put too much of a load on the circuitry of the computer?

Member Avatar for Bob_180_Bob
0
146
Member Avatar for mahela007
Member Avatar for mahela007

If I do this [CODE]mylist = [1,2,3,4] a = mylist a[0] = 'hello' >>>mylist output : 'hello',2,3,4 [/CODE] I find that the value of mylist has changed to 'hello',2,3,4 So my question is.. If I assign one variable as a value of another (like saying a is mylist), then is …

Member Avatar for jice
0
332
Member Avatar for mahela007

Why does this raise an error? I'm trying to add a value to the [0] index for the list [CODE]mylist=[] mylist[0]='hello'[/CODE]

Member Avatar for mahela007
0
77
Member Avatar for mahela007

I'm a bit confused as to how variables (or fields) of classes are handled in python. I'll give a small example of what I mean. [CODE] class Cow: # the first class that popped into my head legs = 4 moo = cow() [/CODE] now, moo.legs will return 4 and …

Member Avatar for djidjadji
0
174
Member Avatar for mahela007

I'm trying to develop a simple script that will keep the scores of a cricket match. In my script I want the __init__ method on one class to create an object of another class. here's an example. [code=python] class Person: def __init__(self,name): self.name = name class clubMember: def __init__(self,name): New_clubmember …

Member Avatar for vegaseat
0
199
Member Avatar for mahela007

hi.. I have an acer 23" LCD monitor. When the computer switches to UPS power, (for eg if I turn of the power from the wall socket) i hear a moderately soft buzzing noise comming from the monitor. What could the cause of this noise be? The noise is there …

Member Avatar for mahela007
0
244

The End.