- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
74 Posted Topics
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 … | |
Re: 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 … | |
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 … | |
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", … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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? | |
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 … | |
is it possible, for example, to make the text that appears as output on the command line appear in a certain colour using python? | |
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 … | |
How do I copy folders using python? Shutil.copy doesn't work. it raises a permission denied error in windows | |
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 … | |
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. | |
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? | |
Re: If you show us your program, we might be able to tell you where you went wrong. | |
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 … | |
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 … | |
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? | |
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? | |
Re: [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 … | |
[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 … | |
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 … | |
What does BIOS do on modern PCs after the operating system is loaded and running? | |
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 … | |
Is there a way to get the date a file or folder was last modified into python? | |
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. | |
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. | |
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 … | |
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. | |
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? | |
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, … | |
Which one is 'closer' to the actual hardware? is it the driver or the kernel? | |
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. | |
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 … | |
How do I send arguments to a function by using windows command prompt? | |
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 ) … | |
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 … | |
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 … | |
Re: 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 … | |
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?) | |
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? | |
What is a static method and when should I use one? | |
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 … | |
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] | |
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 … | |
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 … | |
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 … |
The End.