Go to advanced search

by wrhii
Sun Oct 14, 2012 5:51 pm
Forum: Python
Topic: Accurate timing in Python under LXDE?
Replies: 10
Views: 4947

Re: Accurate timing in Python under LXDE?

There are various "time" libraries available with Python. However, using a "while true" loop, is going to be rather bad form, since it will be an infinite loop. No timing is "perfect" within Python, however, it all depends on how accurately you require. If all you need is reasonably accurate second ...
by wrhii
Thu Jul 05, 2012 10:43 am
Forum: Python
Topic: Help - non-GUI python media player...
Replies: 18
Views: 8350

Re: Help - non-GUI python media player...

Should try using os.walk to build a listing of files, instead of running the LS command. http://docs.python.org/library/os.html Do you mean the playback is slow, or that the execution of the script is slow? Also, you can use the OS.Path to get just filename info, etc... so you can clean-up the scrip...
by wrhii
Mon Jul 02, 2012 9:37 pm
Forum: Python
Topic: Keyboard input
Replies: 8
Views: 11391

Re: Keyboard input

str = raw_input() if str == 'Hello': print 'ok' Might want to consider something similar, yet importantly different, like: str=raw_input() if str.lower()=='hello': print 'ok' or you can use .upper()=='HELLO' instead... That way you are protected from "HELLO" or hello or HeLlo or any other odd combi...
by wrhii
Mon Jul 02, 2012 6:31 pm
Forum: Python
Topic: Help - non-GUI python media player...
Replies: 18
Views: 8350

Re: Help - non-GUI python media player...

... How would I make a python/pygame program that played pie.mp3 from the same folder and could send a pause signal (I'll try to work out the rest when I know the rough scripting)? Since you said you'd try to work out the rest, I'll give some ideas, but should disclaim having not used Pygame myself...
by wrhii
Mon Jul 02, 2012 5:38 pm
Forum: Python
Topic: Slave process communication...
Replies: 3
Views: 2527

Re: Slave process communication...

Looks like the following could be useful: http://docs.python.org/library/subprocess.html Specifically they show: Popen.terminate() Might also want to look at: http://www.doughellmann.com/PyMOTW/subprocess/index.html since I find his examples tend to be more practical than just what's on the python.o...
by wrhii
Thu Jun 28, 2012 8:12 pm
Forum: Python
Topic: Python Monitoring Program
Replies: 7
Views: 2870

Re: Python Monitoring Program

Here comes the tricky bit that I am really struggling with. I would like to also get the following from the connected devices where applicable: manufacturer operating system current logged on user Manufacturer and Operating System I believe are part of the SNMP information by default, but not certa...
by wrhii
Sun Jun 17, 2012 7:28 pm
Forum: Python
Topic: working with times and dates
Replies: 7
Views: 7168

Re: working with times and dates

Any easy method of working with Date/Time is to use: from datetime import date, timedelta def elapse_time(starttime): result=[] curr_time=datetime.datetime.now() # capture current time of execution. result=curr_time-starttime return result starttime is set using the following: stime=datetime.datetim...
by wrhii
Sun Jun 17, 2012 7:18 pm
Forum: Python
Topic: Keyboard Input
Replies: 6
Views: 14061

Re: Keyboard Input

You could always add a capture for "q" or somesuch to get you out of the loop. :)
by wrhii
Tue Jun 05, 2012 11:38 pm
Forum: Networking and servers
Topic: Identifying the Pi over the network
Replies: 48
Views: 78308

Re: Identifying the Pi over the network

Any indication of whether this is a feature, or a bug?

My vote is for bug, but what do I know?
by wrhii
Tue Jun 05, 2012 11:36 pm
Forum: Networking and servers
Topic: Vmware View Open Client
Replies: 21
Views: 28147

Re: Vmware View Open Client

Is it safe to assume this would also work as a Thin Client for a VMware ESXi server?
by wrhii
Mon Jun 04, 2012 10:17 pm
Forum: Python
Topic: This is an excellent book on Python
Replies: 10
Views: 4356

Re: This is an excellent book on Python

Another good book is this one: The Python Standard Library by Example. ISBN-10: 0321767349 | ISBN-13: 978-0321767349
by wrhii
Mon Mar 19, 2012 7:34 pm
Forum: Other projects
Topic: Wireless data aquisition
Replies: 11
Views: 2970

Re: Wireless data aquisition

<t>Yes, this should be possible.<br/> <br/> From the sound of things, you want the following (roughly):<br/> <br/> Take periodic readings, and store.<br/> <br/> At longer intervals, you want this stored data to be passed to some other system.<br/> <br/> Options could include:<br/> <br/> 1. Having th...
by wrhii
Wed Mar 14, 2012 8:34 pm
Forum: Other projects
Topic: Tips for preparing an sd card for the raspberry pi on windows
Replies: 22
Views: 6054

Re: Tips for preparing an sd card for the raspberry pi on windows

<r>haitek said: <br/> <br/> <br/> hopefully, by the time my RPi arrives, there will be an easier way<br/> <br/> to do this <br/> <br/> <br/> Well, if you use the Fedora image, you can always look at the original post (<URL url="http://www.raspberrypi.org/archives/805">http://www.raspberrypi.org/arch...
by wrhii
Fri Mar 09, 2012 10:03 pm
Forum: Other projects
Topic: Digital Geology
Replies: 54
Views: 15019

Re: Digital Geology

Don't most (hand held) GPS units have some sort of accelerometer included?  i.e. they know direction + speed + altitude +?...

Point being, maybe you will get the compass / accelerometer info from the GPS dongle?  Or is it only able to supply a coordinate?
by wrhii
Wed Mar 07, 2012 12:59 pm
Forum: Other projects
Topic: FishPi - automated surface vessel.
Replies: 39
Views: 10016

Re: FishPi - automated surface vessel.

viciouspenguin said:


i think the best solution to capsizing is to stay away from expected storms, bad times of year and sea monsters.


Is there a database of the seasonal migration patterns for sea monsters, possibly that includes known breeding grounds?
by wrhii
Tue Mar 06, 2012 9:55 pm
Forum: Other projects
Topic: FishPi - automated surface vessel.
Replies: 39
Views: 10016

Re: FishPi - automated surface vessel.

<t>I seem to recall (though no idea where, and can't look it up at the moment) that some "research vessels" in the deep sea were designed to "self propel" via a dive/rise method.  Obviously, this removes any concern about capsizing if you know it will be diving periodically.  But, does present other...
by wrhii
Thu Feb 16, 2012 1:05 pm
Forum: Other projects
Topic: Weather Station
Replies: 25
Views: 13790

Re: Weather Station

<t>First, I'm not certain your drive would generate a voltage.  Then, the voltage may be too small to measure without spending money on a sensor.<br/> <br/> You might be able to use a "contact", which would generate an electrical pulse (similar to pjt's disk suggestion).  Not sure of the logistics o...
by wrhii
Thu Feb 16, 2012 11:49 am
Forum: Other projects
Topic: Weather Station
Replies: 25
Views: 13790

Re: Weather Station

<r>You might want to research what Toradex has available.  For starters, how will you get the "speed" of the wind, out of your motor?  The motor is (generally) going to be designed as an output...<br/> <br/> Here are some USB sensors: <URL url="http://www.toradex.com/En/Prod.....SB_Sensors">http://w...
by wrhii
Tue Feb 14, 2012 3:51 pm
Forum: General discussion
Topic: Raspberry Pi Packaging?
Replies: 30
Views: 7592

Re: Raspberry Pi Packaging?

They will, of course, ship in a Pi Tin...  how else do you package a Pi?
by wrhii
Fri Jan 06, 2012 5:15 pm
Forum: Other projects
Topic: PC in a mouse
Replies: 32
Views: 8714

Re: PC in a mouse

<t>You'd need USB, obviously, for the Pi to connect to a mouse.<br/> <br/> You'd need Power connection, for the Pi to turn on.<br/> <br/> You'd need HDMI connection, for the monitor to work.<br/> <br/> You'd need ethernet connection, for the thing to be available on a network.<br/> <br/> That's a fa...
by wrhii
Tue Dec 20, 2011 5:40 pm
Forum: General discussion
Topic: Raspberry Pi and Tor Project
Replies: 10
Views: 5951

Re: Raspberry Pi and Tor Project

<t>It\'s all a matter of whether it is worth the effort.<br/> 1. Is it worth your effort to go encryption, etc... (to a degree, yes... but what degree?)<br/> 2. Is it worth your network admin\'s effort to track you down? ( Hint: large amounts of encrypted data from a (semi) static address = easy to ...
by wrhii
Tue Dec 20, 2011 1:25 pm
Forum: General discussion
Topic: USB Hub
Replies: 8
Views: 2289

Re: USB Hub

<r>Biggest challenge for using any sort of KVM is that it will have to be a DVI connection most likely, and those can get somewhat pricey. Not impossible, just runs several bucks.<br/> <URL url="http://goo.gl/C8LjO"><s>[url=http://goo.gl/C8LjO]</s>Amazon<e>[/url]</e></URL> has some for !$125... Whic...
by wrhii
Tue Dec 20, 2011 2:47 am
Forum: Other projects
Topic: Convert an old ATX PSU to a power supply (for your r-pi)
Replies: 26
Views: 10148

Re: Convert an old ATX PSU to a power supply (for your r-pi)

Guys, this is not the best way to power a Pi. A simple cell phone charger will do the trick with less load, and less risk of injury.

It also has lower risk of melting that nice new Pi-toy into a pile of Pi-tin...
by wrhii
Fri Dec 16, 2011 2:01 am
Forum: Other projects
Topic: Use as wireless bridge
Replies: 7
Views: 7514

Re: Use as wireless bridge

Hrm, did not know that. That would be somewhat annoying...

Go to advanced search