Over 1 million tech questions and answers.

Python: Good Examples?

Q: Python: Good Examples?

Ok i am starting to learn python. I have come to make these questions.

a. Ok, give me some example programs written in python to show off the language.

b. I want to see a good program natively for python, and one that is a windows executable.

c. How do i go about compiling my python programs to an executable or windows executable.

Read other answers
RELEVANCY SCORE 200
Preferred Solution: Python: Good Examples?

I recommend downloading and running Reimage. It's a computer repair tool that has been proven to identify and fix many Windows problems with a high level of success.

I've used it in the past to identify and fix everything from blue screens (BSOD's), ActiveX errors, corrupt files and processes, dll/exe/sys errors, recover lost memory, Windows update problems, defragging, malware removal etc.

You can download it direct from this link http://downloadreimage.com/download.php. (This link will automatically start a download of Reimage that you can save to your computer.)

RELEVANCY SCORE 61.6

hi guys,

i know a lot of you will say avoid an ide as a beginner as it fills in too much and you wont learn as much...i agree with this
the only function i require now is that it least reports an error in my code (would be nice if it could run it in a small window)
then show the line with the error..as the idle doesnt...it just closes the console...took me a while to work out what was going on...so i want a python ide with very basic fucntions...is wing ok for this purpose? i would think pycharm is too elaborate...
any suggestions please...
 

A:Good basic python IDE

What are you doing with IDLE?
If you're using the GUI copy which looks a bit more like notepad than a command line, it doesn't do that.
 

Read other 1 answers
RELEVANCY SCORE 59.6

I am getting a TypeError: 'float' object is not iterable error in my Python coding.

I am trying to collect data from gas receipts but I want all of it under 1 function as I do not want it to keep asking "how many receipts do you have?" - I want it to ask that one time and then ask you all the data for each receipt. The problem is that I am establishing multiple variables under one function and something is off.
Code:
#the main function
def main():
milesObtained = getMiles() #call to get the miles obtained
totalPrice, totalGallons = getInput() #calls to collect total prices paid
# totalGallons = getGallons() #calls to collect total gallons filled
printReport(milesObtained, totalPrice, totalGallons) #call to print the full report out

#collects miles obtained during the month
def getMiles():
milesStarted = input('Enter the starting miles: ')
milesEnded = input('Enter the ending miles: ')
milesObtained = milesEnded - milesStarted
return milesObtained
#collects receipt data
def getInput():
totalPrice = 0
totalGallons = 0
number = input('How many receipts do you have to enter? ')
for counter in range (0, number):
price = input('Enter the price: ')
gallons = input('Enter the gallon amount: ')
totalGallons = totalGallons + gallons
totalPrice = totalPrice + price
return totalPrice
return totalGallons

#prints out the report
def printReport(milesObtained, totalPrice, totalGal... Read more

Read other answers
RELEVANCY SCORE 52.4

Porting Perl To Python.

Summary: Porting legacy Perl to Python can be a daunting task. In this article, learn some of the theory behind dealing with legacy code, including what not to do.Click to expand...

-- Tom
 

Read other answers
RELEVANCY SCORE 46

Hi,
These are working for me, feel free to use them at your own risk

class MSSoapClient extends SoapClient {
private $namespace;
function __doRequest($request, $location, $action, $version) {
$request = preg_replace('/<ns1\w+)/', '<$1 xmlns="'.$this->namespace.'"', $request, 1);
$request = preg_replace('/<ns1\w+)/', '<$1', $request);
$request = str_replace(array('/ns1:', 'xmlns:ns1="'.$this->namespace.'"'), array('/', ''), $request);

// parent call
return parent::__doRequest($request, $location, $action, $version);
}
function setNamespace($sNamespace)
{
$this->namespace=$sNamespace;
}

}

To make a new customer - I'm only you can extend the function to add other details to the record.

function newKashflowCustomer($soapClient,$idAccount,$name,$address,$town,$postcode,$country,$email)
{
//returns customer id if ok else 0

$today = date("Y-m-d",mktime());

$customerArray = array(
"CustomerID"=>"",
"Code"=>"",
"Name"=>"$name",
"Contact"=>"",
"Telephone"=>"",
"Mobile"=>"",
"Fax"=>"",
"Email"=>"$email",
"Address1"=>"$address",
"Address2"=>"",
"Address3"=>"$town",
"Addre... Read more

Read other answers
RELEVANCY SCORE 45.6

The first thing to note about this comparison is that the footage I'm using is from a high quality source. Video captured from VHS or other low quality sources may not exhibit as much detail loss since there isn't much to lose. Aslo note that this clip was hand picked for this experiment. The lights are moving and flashing so the examples do a good job of illustrating the differences. Other things to note are that I'm using JPG's which themselves are a lossy format and you're not going to use a bitrate of 3000 for a 720x480 video. I've only done so here to more fully illustrate the differences between using AVI or MPEG as a source. The purpose of DV-AVI or any uncompressed AVI is not as a final product but as medium for archiving or a source for use in editing and authoring discs.

Currently no standalone DVD players will play DV-AVI and as far as I know even a 16x DVD drive won't play them directly from the disc. At some point you have to convert to MPEG. This should be done once and only once to maintain the highest quality.

Probably the most important of these screenshots is pic 3 and 4.

Test 1
My source video is a DV-AVI from a Canon GL2. I encoded the AVI to two seperate files,8000CBR and 3000CBR. I also reencoded the 8000 CBR to 3000CBR.

Here'a a screenshot of the raw AVI:
The 8000CBR MPEG, notice the edges of the center light produce a little macroblocking. Very little and would be imperceptible to most when it's play... Read more

A:MPEG or AVI which is better? Some examples...

Read other 6 answers
RELEVANCY SCORE 45.2

I'm at the point now where I've read as much text about active directory as i can take. I seem to find that when the reference books provide samples of iddy biddy networks, with small diagrams, its hard to hammer home the main ideas and concepts. I used to work for a very large fortune 500 company, and would do anything to see a diagram, or organziational chart about how the domains, computes, users are set up.

Does anyone have any ideas or links that might help me find a real large organizational chart, that would bring all the AD reading to life. Or maybe someone that has set up a good size network, and maybe has a file with the information.
Thanks
 

A:Active Directory examples

Network Computing usually features a Network Centerfold in most of it' issues. It is really cool. I think I found one on Active Directory for you.

http://www.networkcomputing.com/1303/1303centerfoldtext.html

You will see a link to a PDF document which is a graphic of what their network looks like.
http://img.cmpnet.com/nc/1303/graphics/1303centerfold.pdf?ls=NCJS_1303rt

Here is the index of centerfolds.
http://www.networkcomputing.com/departments/ctr_arch.html
 

Read other 1 answers
RELEVANCY SCORE 45.2

I'm starting a new project where we are trying to talk to about 80 BlueTooth devices using a laptop. Obviously, we won't talk to them all at once, we'll go round-robin to check their status.

I know next to nothing about BlueTooth, so I'm looking for some Windows code examples to get me started. I'll probably be using Visual Studio 2003 (or 2005) for the development in C/C++.

Anyone have any links to some sample code and other useful information for programming BlueTooth applications?
 

Read other answers
RELEVANCY SCORE 44.4

Hi guys...this is my first post, but have been using this site since my most recent bsod's, and would firstly like to say nice one to all you guys like jgriffiths, brink, and all you jedi's who lend ur expertise for free...I've learnt alot from you all and would be stuck without you.
x86 (32-bit) or x64 ? - Windows 7 home premium 64 bit (upon purchase)
- PC is custom built, OS was included in the price I payed, pre-installed by manufacturer but I have disc in my possession.
- system was purchased end of November 2010
- 6/7months old approx
- OS has been re-installed as result of initial bluescreen (was unable to system restore at that time).

Since re-installing windows, I have tried various things to fix my bsods.
- Realised Frame work 4 was missing so installed that.
- did system disk integrity check (which reduced the frequency of bsod occurance, but still something is not right because I am unable to play games without screen flickering, jerkyness, and eventual crashing).
-updated to most recent ATI driver for video hardware, as I thought this would be problem, but still no change.
- ran driver verifier which reported no problems.
- have been using Windebug to translate dumps; many errors were bad memory pool messages.
-ran driverview to see out of date drivers...only massive discrepancy i can see, is the ASUS ATK0110 is dated 2005, but literally cant find an update anywhere for my OS, only a vista 64 bit driver which then is to be run in compatibility mode, but I dont... Read more

A:BSOD...after looking at other examples on here, have failed to resolve

Quote:
ASUS ATK0110 is dated 2005, but literally cant find an update anywhere for my OS, only a vista 64 bit driver which then is to be run in compatibility mode, but I dont like the sound of that. Tried uninstalling the current version of ATK0110, but windows instantly re-installed upon startup next time.




   Information
The 2005 version of this driver is a known BSOD cause.
Please visit this link: ASUSTeK Computer Inc. -Support- Drivers and Download P7P55D LE
Scroll down to the Utilities category, then scroll down to the "ATK0110 driver for WindowsXP/Vista/Windows 7 32&64-bit" (it's about the 12th item down).
Download and install it.
Go to C:\Windows\System32\drivers to check and make sure that the ASACPI.sys file is date stamped from 2009 or 2010 (NOT 2005)

Read other 9 answers
RELEVANCY SCORE 44

Hi, i am doing a college assignment on mobile computing and was after a few ideas of mobile computing in everyday life that we use.
 

A:Examples of Mobile Computing in Everyday life?

If you are talking about mobile computing as in embedded devices:
Mobile phones
GPS/Sat nav
MP3 Players
You mean that sort of thing?
 

Read other 2 answers
RELEVANCY SCORE 44

Now I have done really simple stuff like hide and unhide the recycle bin. I would really like a site that has a few ready made scripts as well as a site that discusses the creation of scripts.

Thanks
Cleve372

A:Writing Registry scripts websites and examples

Please go back to this thread and continue it and not starting new topic in different forums with the same question:

http://www.techsupportforum.com/f128...ml#post2531411

BG

Read other 1 answers
RELEVANCY SCORE 44

On the Field Chooser, under the "Global Properties" I right-click "UsbDevicePortPath" and select "Add As Grouping". Predictably, this groups my messages so that the Analysis Grid shows
entries like:
|>UsbDevicePortPath(299): 2
|>UsbDevicePortPath(44): 7
etc. (|> represents expanding glyph on the left)
Yet when I add this as a filter: "*UsbDevicePortPath==2" the Analysis Grid shows 0 entries. Why is this happening? What am I doing wrong?

Thank you,

Eugene

Read other answers
RELEVANCY SCORE 44

I am trying to find some Flash and Fireworks examples or tutorials. I haven't had much luck on Google. I'm trying to find a script or file(or whatever it is called) that has like a mailbox opening up or a little guy moving so that I can put something like that on my website. Any help you could give me would be greatly appriciated!!

Thanks,
Senna
 

A:Lookinf for Flash and Fireworks examples or tutorials

I did a Google search for "animated mailbox" and found links to at least a dozen that might work for you. For example, here and here
 

Read other 3 answers
RELEVANCY SCORE 44

Hi I am making an interactive java tutor and would like to know if any one can suggust similar (free) tutors I can look at online to get ideas from. I have spent a lot of time looking for interactive tutors but so far have not come up with much.

Points to who ever comes up with the best interactive tutor, it doesn't have to be for java though that would help any programming example would be good, especially if it was teaching arrays.

Thanks for your time.
 

Read other answers
RELEVANCY SCORE 44

I need a Windows freeware spreadsheet to handle some very simple tasks. I don't want anything complicated because I don't want to spend much time learning how to use it. I only need to use a very few functions.

I found an ideal freeware app called "EasyCalc". I downloaded it from the following site. It looks just about perfect for me. I have used much bigger and more complex spreadsheets in the past so I have a good general idea how they work.

EasyCalc - http://www.softpedia.com/get/Office-tools/Other-Office-Tools/EasyCalc.shtml

"A straightforward and intuitive application designed to be a spreadsheet program enabling users to store their data in XML formats. Author: Jan Verhoeven"

But there is only really one function I need to use now. It is the "Sum" function to add up one or more rows or columns of numbers. In the past, I would enter a formula that looked like this:

@SUM(R2C6,R4C8)

This formula adds together all the numbers in the rectangle bounded by the two points (R2C6 and R4C8).
(Row 2 Column 6 and Row 4 Column 8).

Unfortunately, the documentation accompanying EasyCalc is so simplistic, there is no example to be found anywhere how to do this simple function or any other functions.

I'm hoping that someone here may know of this simple app or maybe able to take a look at the help file that describes how to use it. It is a complete mystery to me how the author describes all the functions but nowhere is there any descr... Read more

Read other answers
RELEVANCY SCORE 43.6

I am looking for some input from people that actually work in Information Technology in a Security type of position. 
 
 
I am looking for their input and real work examples on the below defintions.. 
 
 
Again, I am looking to have people that actually work in IT/IS Security answer these...
 
 
Definitons and Real World Examples PLEASE:
 
 
example:
 
  VPN = virtual private network, think of a tunnel within in a tunnel type of secure connection..
At my job we use a Juniper client and I support it by.........??????
 
 
Load Bearing -
 
 
SIEM -  
 
 
Endpoint Protection -
 
 
 
VPN -  
 
 
Firewalls -
 
 
 
IDS/IPS - 
 
 
 
SSL - 
 
 
Vulnerability Scanning Tools -
 
 
 
 
Have it gentz!!
 
 
Knowing this information in and out could change my life!!
 
i.e. a huge lifetime opp is around the corner that hinges soley on mastery of the above and REAL WORLD examples of it...
 
 
 
oNe

A:Looking To Get Some Info And Real World Corporate Examples On Security...

I'm a junior system analyst and working on security side for my company. My main mission is to catch anomalies in logs using SIEM application and other management solutions. These times I use SIEM a lot.
 
You may google it but I'm going to answer by my opinions.
- What is a siem?
- SIEM is a solution for logs. SIEM collects all the logs from your sources (e.g. WMI, Syslog, SNMP, SMB etc.). And simply you can "google" them with your siem search ability. Also you can set alerts for specific rules or build reports for your
bosses. This siem solutions can email or sms you for your alerts. This function is very useful since you cannot always examine the dasboards. Your boss wants you to catch anomalies and report to him. That's the main role for siem. 
 
I'm not going deep on details since I'm on work right now. I just wanted to inform people since there is not enough people working on information security and there is not enough documents about siem and other security solutions.
I can also explain other terms in another time. 
 
Hope this helps for now.

Read other 4 answers
RELEVANCY SCORE 43.6

Hello again ... I think that I could learn C++ if I could see practical examples.

I mean: Well-annotated source codes of many different programs, at a beginner level, each one illustrating a key C++ theme.

Any suggestions for finding something like this on the Web?

Thanks ... RB
 

A:Seeking C++ Examples (well-annotated Source Code) for Beginners

u can mail title on [email protected] and you get a code within a day.
 

Read other 1 answers
RELEVANCY SCORE 43.6

Trying to parse "complex" json to csv for eventual import to Access database. Just found Powershell. Have searched forums and youtube but examples have no arrays.  I would like to find some examples to help with the learning/experience.
I do not have any Powershell experience currently.
I have found posts by jrv that help some, but a push to an example would be helpful.
Thanks in advance.
jdraw   Win 10 desktop  Powershell 5

Read other answers
RELEVANCY SCORE 43.6

I currently have BitDefender TS 2018 running on Win8.1. I have it set to "paranoid mode" which throws outbound firewall alerts, which I like (something I learned from the forums here, thanks to @cruelsister in particular)

This question is more for entertainment/edification purposes, but are there any programs that summarize network activity in an alert/application format that might be interesting to experiment with?

I have tried Fiddler, but I found it a bit too complicated. I've been considering looking at ZoneAlarm Firewall (I'm aware these are totally distinct programs that do different things), but I'm just interested in observing network activity and program/process accesses to learn more about it empirically, so looking for any names of software to look into!
 

Read other answers
RELEVANCY SCORE 43.6

I am looking for some input from people that actually work in Information Technology in a Security type of position. 
 
 
I am looking for their input and real work examples on the below defintions.. 
 
 
Again, I am looking to have people that actually work in IT/IS Security answer these...
 
 
Definitons and Real World Examples PLEASE:
 
 
example:
 
  VPN = virtual private network, think of a tunnel within in a tunnel type of secure connection..
At my job we use a Juniper client and I support it by.........??????
 
 
Load Bearing -
 
 
SIEM -  
 
 
Endpoint Protection -
 
 
 
VPN -  
 
 
Firewalls -
 
 
 
IDS/IPS - 
 
 
 
SSL - 
 
 
Vulnerability Scanning Tools -
 
 
 
 
Have it gentz!!
 
 
Knowing this information in and out could change my life!!
 
i.e. a huge lifetime opp is around the corner that hinges soley on mastery of the above and REAL WORLD examples of it...
 
 
 
oNe

A:Looking To Get Some Info And Real World Corporate Examples On Security...

I'm a junior system analyst and working on security side for my company. My main mission is to catch anomalies in logs using SIEM application and other management solutions. These times I use SIEM a lot.
 
You may google it but I'm going to answer by my opinions.
- What is a siem?
- SIEM is a solution for logs. SIEM collects all the logs from your sources (e.g. WMI, Syslog, SNMP, SMB etc.). And simply you can "google" them with your siem search ability. Also you can set alerts for specific rules or build reports for your
bosses. This siem solutions can email or sms you for your alerts. This function is very useful since you cannot always examine the dasboards. Your boss wants you to catch anomalies and report to him. That's the main role for siem. 
 
I'm not going deep on details since I'm on work right now. I just wanted to inform people since there is not enough people working on information security and there is not enough documents about siem and other security solutions.
I can also explain other terms in another time. 
 
Hope this helps for now.

Read other 3 answers
RELEVANCY SCORE 43.6

Hello all,
 
I am not sure why but having a heck of a time finding any info on this, google she fails and not finding any real help on the security related forums...
 
Anyways all I'm looking for is some REAL WORLD examples of people working with Load Balancers and Firewalls..
 
i.e.  what you did exactly and what was the name of the software or hardware used? 
 
 
PLEASE advise
 
 
Regards,
 
Phabeon

A:Looking For Real World Examples of Load Balancing and Firewalls, Anyone??

Greetings Phabeon,
 
What are you trying to accomplish? I administer load balancers and firewalls but they do different things. What is the problem that you want to solve and what are the specifications for how you need to achieve it?
 
There are many companies that make firewalls (hardware and software) and there are many companies that make load balancers (hardware and software).
 
Give me some more information and I will try to answer your question.
 
Thanks,
 
packetanalyzer

Read other 4 answers
RELEVANCY SCORE 43.6

This is more of an FYI than anything else. There's a book called Pro VB 2005. It has examples by chapter. Got this from 1.46 (July 21) Malewarebytes:

C:\Users\Duane\Documents\Visual Studio 2008\Book Examples\Pro VB 2005 Source Code\Code\Ch_17 Code\VB6_DotNetClient\Project1.exe (Trojan.LVBP) -

So... Either Malewarebytes has a false positive signature that needs fixing or the source code provided by this book is bugged. Anyone know which it is?
Thanks, AnInkling

A:Malwarebytes Trojan.LVBP in Visual Studio Examples?

This is possibly a False positive. We should double check it before we take action.Lets' upload this file for a second opinion on what it actually is..Please make sure that you can view all hidden files. Instructions on how to do this can be found here:How to see hidden files in WindowsPlease click this link-->JottiWhen the jotti page has finished loading, click the Browse button and navigate to the following file and click Submit. <filepath>suspect.file Please post back the results of the scan in your next post.If Jotti is busy, try the same at Virustotal: http://www.virustotal.com/NOTE:For submission to a specific anti-virus vendor see Submitting Virus Samples: How to Submit a Virus.

Read other 1 answers
RELEVANCY SCORE 43.2

Hi!X1 Carbon 6th Gen, connected to two seperate (home/work) 40AH docks running different 4k monitors @ 60hz via DP has recently started to blank / lose sync to the connected external monitors after the recent firmware upgrade available via Lenovo Companion and matched here: https://download.lenovo.com/consumer/options/n20pf03w.exe Prior to this firmware upgrade, both docks and their respective monitors were functioning entirely normally. The firmware has been pinpointed as the ugprade occured at work first (which started exhibiting the fault) whilst home was OK, then when the firmware was applied to home the fault began to occur. There seems to be no reason as to why the screen blanking occurs, the monitors exhibit symptoms of a cable being disconnected for a short period and then reconnected. I can only assume there is an issue with the firmware on the DP component on the docks. The OS does not seem to record any connected hardware change in logs (as if the dock was disconnected via power/data) rather it seems only the output of the dock to the monitors is faulting. All other system upgrades have been applied via Lenovo Companion and/or via the website drivers list. The fault seems to be exhibited during fast video / screen switching within the OS (Windows 10). Although most frequently during large excel documents (lots of horiztonal and vertical scrolling) Seeking assistance and/or the ability to downgrade the DP firmware on the docks to return... Read more

Read other answers
RELEVANCY SCORE 39.6
Q: Python?

Is anyone here versed in Python? My son is into programming and already is very knowledgeable in several programming languages but is just learning, on his own, Python. I'm sure he would like to become acquainted with anyone who is already fairly fluent in this new language. TIA.
 

Read other answers
RELEVANCY SCORE 39.6

I am having trouble running pip. It is supposed to come installed with python, but my computer doesn't recognize it. I try installing it, but get an error message. Could it have something to do with running 32 bit python on a 64 bit computer? I have version 3.6 python.
 

Read other answers
RELEVANCY SCORE 39.6
Q: python

Hi
can any one please tell me how to compile a python source code into a standart .exe file
 

A:python

http://www.py2exe.org/
 

Read other 2 answers
RELEVANCY SCORE 39.6

i am trying to learn python not sure if its loaded properly on my pc any one as any detail instruction for win7 installation
 

A:python and win 7

If you're using ActivePython, the installer should have everything configured for you. You will, of course, want to read the accompanying documentation for how to run your python scripts.
 

Read other 1 answers
RELEVANCY SCORE 39.6

What are the uses of Python in Software Development?
 

Read other answers
RELEVANCY SCORE 39.6

And is it something I need or just another security and privacy risk HP put on my computer>
 

A:What is Python>

Read other 8 answers
RELEVANCY SCORE 39.6

How does PHP compare with Python and witch one is better to learn for future use?
 

A:PHP vs Python

Read other 6 answers
RELEVANCY SCORE 39.6
Q: python

Does anyone know what python 2.2 combined win32 extensions is?
Do I need it on my pc?
I just noticed it about a week ago.
Thanks

A:python

Hello dee1-2-3 and welcome to BC.What is Python?Python is an interpreted, interactive, object-oriented programming language. It is often compared to Tcl, Perl, Scheme or Java.Python combines remarkable power with very clear syntax. It has modules, classes, exceptions, very high level dynamic data types, and dynamic typing. There are interfaces to many system calls and libraries, as well as to various windowing systems (X11, Motif, Tk, Mac, MFC). New built-in modules are easily written in C or C++. Python is also usable as an extension language for applications that need a programmable interface.Unless you are doing some programming..............

Read other 1 answers
RELEVANCY SCORE 39.6

Does anybody know what that is? (Python 22)

It is a sizable prog. and is in the start up line.
when I do a search for it , I can not find anything ??
I tried google for info , no luck there.
accept one site that said "send me $$ and I will tell you"

Well I have a few words for them.
thanks to anybody who can help.
 

A:Python 22 ??

See if this helps: http://www.python.org/doc/faq/installed/
 

Read other 2 answers
RELEVANCY SCORE 39.6

Is this a necessary software for windows XP?...Trying to clean up my HD..Don't even know how it got on my system..
 

A:Python 2.2.3?

Python is a programming language and not absolutely necessary unless you have programs installed that need Python in order to run.
 

Read other 1 answers
RELEVANCY SCORE 39.6

Am writing a program which simulates the action of an atm machine and I need it to end when option "c" is chosen. How exactly cn I do this, the only ways i can think of are...rubbish...
 

A:Python atm

Hi eventide,

Perhaps this link will help which is the result of searching for case statement here.

I assume you can structure your input options in a case statement - one of which would be 'c' to switch to in the proper Python syntax, of course.

-- Tom
 

Read other 1 answers
RELEVANCY SCORE 39.2

I need to get Python for one of my classes and I was about to download it, when I came across Python source... What is it? I realize Python is open source, but can't figure out what is a Python source. I have Win7 64-bit and the warning notice next to the 64-bit download said that "it doesn't include source"...
I also need IDLE, so would that be a problem? Or should I just download the first, normal Windows installer?
Thanks
 

A:What is Python source?

Hi wicked.ludicrous,

Since Python is a programming language, Python source is text containing Python statements in the programming language Python. See: Python (programming language).

For example: to execute a python source, one might issue the following command (in a Terminal command line window where $ is the command prompt) assuming that a Python interpreter executable is available on your computer:
$ sudo python check-my-hardware.py

The file check-my-hardware.py is the file containing python source statements interpreted by the python interpreter executable in root mode (via use the sudo) on a Linux platform. The python source code in check-my-hardware.py determines compatibility of a computer's BIOS with PAE and NX bit available memory.

-- Tom
 

Read other 2 answers
RELEVANCY SCORE 39.2

I am trying to use some Python functions from C, using Dev C++ compiler. However, everything I try does not work, as it gives me a compiler and linker error, every time I try to compile the C code. Any input or help would be much appreciated. Thanks -Fabez-
 

A:C \ Python Interface

Read other 7 answers
RELEVANCY SCORE 39.2

Hi all,

I've got Python v.2.4 that supposedly has an editor and I'm unable to find it.
Can anyone tell me how I would open the editor.

Thanks.
 

A:Python editor

Read other 9 answers
RELEVANCY SCORE 39.2

I am having trouble creating a program that allow customers to enter the insurance company name, annual premium and monthly (6% more) for insurance companies. The insurance company name, annual premium, monthly premium and how much more to pay if paid on monthly basis should be shown.
 

A:Programming Python

You have not provided us any code to help you with. Which part are you having problems with?
 

Read other 2 answers
RELEVANCY SCORE 39.2

I ran a Secunia check to see if any of my applications needed updating, and it said that Python did. Since I'd never heard of it, I've been trying to research it. I know it was not deliberately installed, but don't know how it may have gotten installed (whether part of new HP system, or a particular application), and whether I should keep it. It doesn't show up in the list of Installed Programs.

Does anyone have more insight on this software?

A:How can I find out why I have Python?

Itunes, Realtek software, games?

Read other 3 answers
RELEVANCY SCORE 39.2

I am not able to install python on my windows 8.1 64x bit. Check the image for the system error message shown please help fast.... Thanks in advance....
 

Read other answers
RELEVANCY SCORE 39.2

I need to know what some of Pythons server/net commands are, since I can't find any good lists of commands anywhere.
So if anyone knows any, or if someone would like to write me a simple server engine, I would be very happy.
 

Read other answers
RELEVANCY SCORE 39.2

Does anybody know a good Python starting book. I know a little C, but a beginners book would be good.

Thanks
 

A:Python Book

Read other 8 answers
RELEVANCY SCORE 39.2

I downloaded Python for the first time today and went to start compiling a code but when I did, it said there was a Syntax error. it highlighted the "2" in "3.2" at the top of IDLE. I tried deleting the 2 but it did the same thing and highlighted the "." after the "3" instead. Same thing when I tried Python 2.7. Both versions were the Windows x86 MSI Installer. Any ideas?
 

A:Can't get Python to work

Read other 10 answers
RELEVANCY SCORE 39.2

Hi
i was wondering if any one can tell me what the difference is between c++ and python and wich one you would recogmend to a complete newbie to programming also how does one compile a python source code i tried to look at pythons site but cant make sense of the code i am utterly confused
 

A:nick the python

Read other 12 answers
RELEVANCY SCORE 39.2

I have a file which is created using C++ code. I'm parsing that file with python and I need to know the size of a struct that is the header of the file. Is there any way I can import the C or C++ code into my python code and call the C function sizeof()? Or is there a better way to do this?

More specifically, line 336 of this file
http://lxr.mozilla.org/mozilla1.8/source/netwerk/cache/src/nsDiskCacheMap.h
is the structure that I need the size of, but I honestly can't even fathom a way to get it from python. I can just assume little_endian is true (I think most platforms that run netscape & firefox are little endian??), which is not ideal, but I still wouldn't know how big that structure is...what's the sizeof() a function anyway--the same as the data type of the function plus all the sizes of the variables in it?

If anyone could help me out with this, I would really appreciate it. Thanks!
 

A:Python getting sizeof from C

Read other 6 answers
RELEVANCY SCORE 39.2

Hi, i just started my csc 102 course in college and it was supposed to be C++. Instead of that, we're going to be learning python which was never done before according to the professor. His explanation was that we could learn more of python in one introductory semester course than c++. I agree with his reasoning, but i'm still somewhat saddened since i always saw c++ as a kind of king in programming and was hoping for the course to give me a better push into the language that i could achieve by learning myself, since every time i start to learn alone, after a while i start playing games and don't come back to it. I was wondering if python could be used to make high quality game engines that don't lack in performance to c++ game engines from which( as far as i know) all the great engines come from such as the Unreal Tournament Engine and the Crysis Engine.
 

Read other answers