Go to advanced search

by -rst-
Sat Jan 26, 2013 5:59 pm
Forum: Python
Topic: piface twitter chicken
Replies: 14
Views: 2491

Re: piface twitter chicken

Seeing the full error message might help...?
by -rst-
Sat Jan 26, 2013 5:58 pm
Forum: Python
Topic: turning gpio buttons into keys
Replies: 31
Views: 15888

Re: turning gpio buttons into keys

Unfortunately I don't know XBMC, but I would be somewhat surprised if it required all the python libs in that special folder - I'd assume that's the place for 'XBMC extension libs', so your script should most likely go there, but the script should be able to access standard libs from standard place ...
by -rst-
Fri Jan 25, 2013 4:46 pm
Forum: Beginners
Topic: Complete and utter numpty guide to video, please
Replies: 16
Views: 2766

Re: Complete and utter numpty guide to video, please

Suggesting an XBMC distribution/operating-system for the OP's requirements seems not the best option: as SimonSmall pointed out, this would either mean getting rid of the Raspbian or switching back and forth between the two SD cards (I doubt that Scratch runs on any of the XBMC distros). Watching in...
by -rst-
Fri Jan 25, 2013 4:29 pm
Forum: Advanced users
Topic: Terminal
Replies: 23
Views: 4091

Re: Terminal

Regarding the too big windows title bars out of view: Somewhere in the LXDE settings I saw something along 'center opened windows' that was on (ticked) by default - maybe setting this off would make the windows appear in a different position on the screen and allow dragging/resizing? There is of cou...
by -rst-
Fri Jan 25, 2013 4:20 pm
Forum: Advanced users
Topic: HDMI/ TV out and framebuffer size. Text is not crystal clear
Replies: 7
Views: 13422

Re: HDMI/ TV out and framebuffer size. Text is not crystal c

Seems that sometimes RPi does not recognise the correct monitor resolution and the monitor then stretches the image to another resolution -> resizing artifacts = blurry. Does your monitor have a 'on screen menu/display' that would tell you what the monitor resolution is? Can you verify the monitor n...
by -rst-
Fri Jan 25, 2013 4:03 pm
Forum: Advanced users
Topic: screenshot without XWindow running?
Replies: 11
Views: 8484

Re: screenshot without XWindow running?

VNC, X forwarding etc. only work if X started - there is no way to get to low-level graphics through Putty etc. There are however loads of tools to capture the Linux framebuffer: fbcat, scrot, ... and there is always the quick-and-dirty way using 'cat /dev/fb0 >mycapture.raw' (if you don't have the ...
by -rst-
Fri Jan 25, 2013 3:01 pm
Forum: Python
Topic: Jerky Webcam capture
Replies: 4
Views: 1292

Re: Jerky Webcam capture

gordon77 wrote:is the RPI doing other things ?
Sorry, no solution, but that one I can answer with pretty high confidence: yes (system logs, networking (using the same USB bus afaik), ...)
by -rst-
Fri Jan 25, 2013 2:05 pm
Forum: Python
Topic: Jerky Webcam capture
Replies: 4
Views: 1292

Re: Jerky Webcam capture

I thought 'everyone' was having problems with webcam + RPi performance issues, so not necessarily Python or pygame...
by -rst-
Fri Jan 25, 2013 2:04 pm
Forum: Python
Topic: turning gpio buttons into keys
Replies: 31
Views: 15888

Re: turning gpio buttons into keys

Ah, I didn't realise you were on Raspbmc - so no wonder no IDLE ;) Doesn't the Python interpreter output the version info when started in interactive mode? If not, maybe try 'python --version'? There is a way to see what packages are installed, but can't remember from the top of my head, sorry. Rasp...
by -rst-
Fri Jan 25, 2013 12:09 pm
Forum: Linux Kernel
Topic: Page flipping / Double buffering
Replies: 3
Views: 3920

Re: Page flipping / Double buffering

I took a stab at this a while ago - unfortunately I have no previous experience in kernel/driver development and did not get really anywhere with setting up the build environment - not enough time or not enough drive to take the time... :oops: It definitely looks like doable using the mailbox iface ...
by -rst-
Fri Jan 25, 2013 11:33 am
Forum: OpenGLES
Topic: Python Kivy graphics library for OpenGLES 2 working
Replies: 15
Views: 18755

Re: Python Kivy graphics library for OpenGLES 2 working

Had a bit more in depth look at Kivy - just in case someone else is interested... It seems Kivy relies on Pygame for windowing and Pygame in turn relies on SDL, so it looks like it is down to SDL to play nice with the RPi graphics 'sub-systems'. http://kivy.org/docs/guide/architecture.html The insta...
by -rst-
Fri Jan 25, 2013 10:55 am
Forum: Scratch
Topic: Is Scratch really viable on Raspberry Pi?
Replies: 128
Views: 47276

Re: Is Scratch really viable on Raspberry Pi?

It may be a good thing I had been reading this thread before even trying Scratch in RPi (on Raspbian)... I tried Scratch (just a bit basic scripting to get the cat spin and move in loops) yesterday and to me it seemed to work faster than many other things on LXDE - especially the xscreensaver settin...
by -rst-
Fri Jan 25, 2013 10:50 am
Forum: Scratch
Topic: Scratch Screen Saver Project
Replies: 9
Views: 5410

Re: Scratch Screen Saver Project

Hmm, I wonder if this 'screensaver module' can be any executable ... Yes, it seems so ...in Linux that is. I tested this yesterday ...with varying results and issues depending on the executable... (not a good idea to run a 'plain frame buffer' app that changes display resolution :oops: ) - prepare ...
by -rst-
Fri Jan 25, 2013 10:38 am
Forum: Python
Topic: Ruan a Script with arguments
Replies: 9
Views: 1581

Re: Ruan a Script with arguments

It might actually be running, but the output going somewhere not visible (no idea about how IDLE handles the os.system() call)... Maybe try to make it (mailme.py) write to file - something along (cannot test this right now ...maybe I should not post untested code...): #!/usr/bin/env python import sy...
by -rst-
Fri Jan 25, 2013 10:28 am
Forum: Python
Topic: turning gpio buttons into keys
Replies: 31
Views: 15888

Re: turning gpio buttons into keys

Are you sure you use the same Python version 'in command line' as with IDLE (I assume the other option use are using is)?

Some Python libraries seem to be only installed for 'python' (2.x, 'IDLE') and not for 'python3' (3.x, 'IDLE3') - maybe some the other way around...
by -rst-
Thu Jan 24, 2013 5:46 pm
Forum: Advanced users
Topic: Terminal
Replies: 23
Views: 4091

Re: Terminal

Looks like (as I suspected) the terminal window is too big to fit on the desktop and a bit is covered behind the 'taskbar' - there is the vertical scrollbar in the terminal window... Maybe you could change the terminal window settings: to use a slightly smaller font (provided the readability ok)? De...
by -rst-
Thu Jan 24, 2013 5:14 pm
Forum: General programming discussion
Topic: Unable to change adafruit. WebIDE HTTP port
Replies: 3
Views: 974

Re: Unable to change adafruit. WebIDE HTTP port

How does it 'not work'? Errors returned for those commands or not able to connect from browser? Can you connect from a browser the same RPi running the server (port possibly blocked)?
by -rst-
Thu Jan 24, 2013 4:54 pm
Forum: Staffroom, classroom and projects
Topic: BASIC - more harmful than useful?
Replies: 899
Views: 168180

Re: BASIC - more harmful than useful?

Prolog seemed to be a perfect choice for a bus time-table planning system back in the day ...at least for the logic parts of it. Having learned some basics of Prolog in the uni, in my first real job (student intern) I was put to debug such a system. The 'character based windowing system' on top of M...
by -rst-
Thu Jan 24, 2013 3:07 pm
Forum: Graphics, sound and multimedia
Topic: Remove CMD Prompt Decoration
Replies: 11
Views: 3783

Re: Remove CMD Prompt Decoration

That is surely not 'normal' behaviour - most likely an artifact from that 'small script that would display an image during boot'?
by -rst-
Thu Jan 24, 2013 1:41 pm
Forum: Python
Topic: Ruan a Script with arguments
Replies: 9
Views: 1581

Re: Ruan a Script with arguments

Works fine on my Windows/x86 laptop and Python 2.7.3.

And it 'runs' for you as well, only that does not work quite as expected...

Is there perhaps an issue with the single quotes in Linux (try without)?
by -rst-
Thu Jan 24, 2013 1:03 pm
Forum: C/C++
Topic: C Program at boot?
Replies: 3
Views: 1786

Re: C Program at boot?

Quick and dirty way to stop it would be to use the commands 'ps' and 'kill' ...best to read the manuals and be sure to kill the correct process ;)
by -rst-
Thu Jan 24, 2013 12:55 pm
Forum: General programming discussion
Topic: Return python output to html
Replies: 10
Views: 21380

Re: Return python output to html

Well done!

If you are using jQuery already anyway (for the ajax calls), why not use it for finding and setting the element text (instead of document.getElementById and element.innerHTML)...
by -rst-
Thu Jan 24, 2013 12:51 pm
Forum: Python
Topic: turning gpio buttons into keys
Replies: 31
Views: 15888

Re: turning gpio buttons into keys

Hmm, that GPIO code should most likely run in a loop, so it does not exit before you push the button... If you break that up to it's parts ('read GPIO', 'command XBMC'), do either of them work alone? Something along: import xbmc xbmc.ExecuteBuiltin(right) ...could try first from the interactive Pyth...
by -rst-
Thu Jan 24, 2013 12:44 pm
Forum: General discussion
Topic: GPS + Google Maps
Replies: 18
Views: 69624

Re: GPS + Google Maps

Yep, porting a map app to RPi would be interesting - especially if could use the hw accelerated graphics. In most cases however, the location of the RPi is required to be monitored somewhere else... Looks like gpsd provides a sort of web-service: 'presents reports in a well-documented JSON applicati...

Go to advanced search