Go to advanced search

by Gibble
Tue Jul 23, 2013 9:02 pm
Forum: Other programming languages
Topic: Installing CPAN modules
Replies: 4
Views: 6612

Re: Installing CPAN modules

Have you tried cpanm ?
by Gibble
Tue Jun 25, 2013 9:07 am
Forum: Graphics, sound and multimedia
Topic: Possible to stream from VLC to Pi ?
Replies: 1
Views: 1383

Possible to stream from VLC to Pi ?

Hi, I have a Pi mainly running RaspMC atm. I was wondering, is there any way to get the Pi to somehow receive a stream of output from VLC (or other) from another PC and display it ? (So somehow you would just select an option on the Pi and it would display whatever VLC is playing on the other machin...
by Gibble
Fri May 17, 2013 7:14 pm
Forum: General programming discussion
Topic: DBD::MYSQL Does anyone use this to write to mysql on a RPI?
Replies: 6
Views: 3442

Re: DBD::MYSQL Does anyone use this to write to mysql on a R

Not sure if you're overcomplicating things..

sudo apt-get install libdbd-mysql-perl

Shout if you get any errors.
by Gibble
Thu Jan 03, 2013 9:43 pm
Forum: Python
Topic: Python Curve Generator
Replies: 4
Views: 1057

Re: Python Curve Generator

Looks nice, will have a play at some point!
by Gibble
Tue Jan 01, 2013 4:34 pm
Forum: Python
Topic: python game shooting not working
Replies: 10
Views: 1979

Re: python game shooting not working

Couldn't resist while I was at it ;)....If you wanted to then make the bullets kill the baddies... def bulletHits( bulletRect, baddies): for b in baddies: if bulletRect.colliderect(b['rect']): baddies.remove(b) and in main loop... if pygame.key.get_pressed()[K_SPACE]: bulletAddCounter += 1 newBullet...
by Gibble
Tue Jan 01, 2013 4:21 pm
Forum: Python
Topic: python game shooting not working
Replies: 10
Views: 1979

Re: python game shooting not working

Just testing it, you may want to change it also so that the bullet comes out of the top, rather than center...so... newBullet = {'rect': bulletImage.get_rect(), 'speed': 2, 'surface': bulletImage, } newBullet['rect'].midbottom = playerRect.midtop I think I changed the bullet image file from the play...
by Gibble
Tue Jan 01, 2013 4:12 pm
Forum: Python
Topic: python game shooting not working
Replies: 10
Views: 1979

Re: python game shooting not working

I think its the 'scale' thats putting it off. There needs to be a handle on what the object actual is compared to how its displayed (and then what points are being used for stuff like collision detection etc). If you scale, where its its left/right/center etc ? Losing track a bit of the changes, but...
by Gibble
Sat Dec 29, 2012 6:50 pm
Forum: Python
Topic: python game shooting not working
Replies: 10
Views: 1979

Re: python game shooting not working

Hiya, Not a Python man, so someone will probably correct me. I've had a play with your code...I think you are just referencing the same bullet each time in creation, so you won't get multiple bullets (I think!). So if you try something like... if pygame.key.get_pressed()[K_SPACE]: bulletAddCounter +...
by Gibble
Tue Dec 25, 2012 7:43 pm
Forum: Python
Topic: terminal screen not scrolling correct after running app...
Replies: 3
Views: 1267

Re: terminal screen not scrolling correct after running app.

Just in case anyone else gets this, typing 'reset' into the bash prompt will reset everything correct!
by Gibble
Mon Dec 24, 2012 4:44 pm
Forum: Python
Topic: terminal screen not scrolling correct after running app...
Replies: 3
Views: 1267

terminal screen not scrolling correct after running app...

Hi all, I'm messing about with some Python stuff (pi3d), and ssh'ing (no idea if this makes any difference, maybe be the same from a direct terminal). After I've run my code, and returned to my normal terminal session, output doesn't appear scrolled correct on the screen..carriage returns seem to mo...
by Gibble
Sun Dec 23, 2012 11:20 am
Forum: Python
Topic: pi3d egl assertion error
Replies: 2
Views: 1033

Re: pi3d egl assertion error

Actually I think its the first line of the example...

scnx=800
scny=600
display = pi3d.display(100,100,scnx,scny,0)

Works, but this doesn't.

display = pi3d.display()

Not sure if thats something to do with my Pi, or maybe display needs some parameters or default causes the error ? Will dig later.
by Gibble
Sun Dec 23, 2012 11:15 am
Forum: Python
Topic: pi3d egl assertion error
Replies: 2
Views: 1033

pi3d egl assertion error

Hi, I'm trying to get the pi3d starting example going, https://github.com/tipam/pi3d/wiki/Pi3D-Getting-Started When I run that code I get an error... Pi3D module - version 0.07 Copyright (c) Tim Skillman, 2012 Updates available from www.github.com/tipam/pi3d Screen size 1680 1050 Traceback (most rec...
by Gibble
Wed Dec 19, 2012 4:32 pm
Forum: Python
Topic: Pi3D ES 2.0
Replies: 97
Views: 16576

Re: Pi3D ES 2.0

Just wondering, how feasible would it be to use Pi3D ES 2.0 on a Linux desktop to develop (don't have a separate screen for the Pi, so it hinders me a bit). I'm guessing its mainly the 3D initialisation of display and egl types etc or something which are unique to the Pi, or is there a lot more ? (h...
by Gibble
Thu Aug 09, 2012 7:54 pm
Forum: Python
Topic: Pi3D
Replies: 244
Views: 41747

Re: Pi3D

Should this run under windows with python installed or am I being silly? If egg files are recommended which software is recommended for the modelling and which exporter (versions) Do I need to do UV maps etc... Cheers This won't run under Windows. I think egg files are create in Panda3D. There are ...
by Gibble
Thu Aug 09, 2012 7:50 pm
Forum: Python
Topic: Pi3D
Replies: 244
Views: 41747

Re: Pi3D

This might be a stupid question, but is there any way of practicing and learning to use Pi3D in a Windows machine? The reason I ask is that I spent most of my time in a Windows machine, so I would like to be able to write the python scripts in the Windows Desktop and then copying the python files t...
by Gibble
Mon Jul 23, 2012 1:32 pm
Forum: OpenGLES
Topic: Need a volunteer to peer review some code
Replies: 4
Views: 1438

Re: Need a volunteer to peer review some code

I'm learning OpenGLES as well, so feel free to give me a shout sometime. May not know it so well, but sometimes its good to hear from people who are probably making the same mistakes!
by Gibble
Sat Jul 21, 2012 9:55 pm
Forum: Other programming languages
Topic: ejre-7u4 and Raspbian
Replies: 6
Views: 2246

Re: ejre-7u4 and Raspbian

I know nothing of Java, but I think the Rasp based images are compiled differently (due to hard vs soft float ?), so my guess would be that .so files downloaded may not work, and may need to be compiled for Raspbian. I may be wrong, but in the absence of a differently reply, it may be worth looking ...
by Gibble
Sat Jul 21, 2012 9:30 am
Forum: Python
Topic: Pi3D
Replies: 244
Views: 41747

Re: Pi3D

Yep, indeed, thanks for all the work. I'm keeping an eye out for 2.0 as well, I'd been fiddling with 2.0 a bit, as it feels like its the way to go for learning, so will definitely be playing with this is as well :)
by Gibble
Fri Jul 20, 2012 4:57 pm
Forum: Python
Topic: Don't get this part of the code...
Replies: 4
Views: 1473

Re: Don't get this part of the code...

Hi, not a Python chap, but try this, to see if it helps break it down and makes sense... #!/usr/bin/env python class Direction: right = 1 left = 2 up = 3 down = 4 class Snake: def __init__(self): self.direction = Direction.right mysnake = Snake() print mysnake.direction
by Gibble
Wed Jul 18, 2012 11:58 am
Forum: Other programming languages
Topic: Perl: Use of uninitialized value $path
Replies: 8
Views: 5461

Re: Perl: Use of uninitialized value $path

make sure you have the expat headers... sudo apt-get install libexpat1-dev If it still doesn't work, assuming you have the above, you can wget http://search.cpan.org/CPAN/authors/id/M/MS/MSERGEANT/XML-Parser-2.36.tar.gz tar zxvf XML-Parser-2.36.tar.gz cd XML-Parser-2.36 perl Makefile.PL make make in...
by Gibble
Tue Jul 17, 2012 7:46 pm
Forum: Other programming languages
Topic: Perl: Use of uninitialized value $path
Replies: 8
Views: 5461

Re: Perl: Use of uninitialized value $path

I had problems with cpan, too many to persist with, some relating to memory and it locking up. I ended up using cpanminus which seemed to work a lot better anyway than normal for me...I'm not at a Pi atm, but this is what I did on my lappy to get it going, and I think commands will be similar... sud...
by Gibble
Thu Jul 12, 2012 8:39 am
Forum: Other programming languages
Topic: Perl
Replies: 47
Views: 17593

Re: Perl

Is there any code out there to play with, or is it just something you're doing yourself atm? Wouldn't mind a play, but not problem if not!
by Gibble
Wed Jul 04, 2012 4:04 pm
Forum: Other programming languages
Topic: Perl
Replies: 47
Views: 17593

Re: Perl

Congrats, will be very interested to see some bits of it.
by Gibble
Tue Jul 03, 2012 2:44 pm
Forum: OpenGLES
Topic: Pi, OpenGLES & Perl
Replies: 7
Views: 3616

Re: Pi, OpenGLES & Perl

How were you thinking of dealing with things like array types for OpenGLES out of interest ? Speedwise, with Python I think I've found one of the slowdowns is any type of array type conversion. POGL seemed to get around this, but my eyes glaze over when I look at some of that code :).
by Gibble
Mon Jul 02, 2012 4:19 pm
Forum: OpenGLES
Topic: Pi, OpenGLES & Perl
Replies: 7
Views: 3616

Re: Pi, OpenGLES & Perl

Actually using Raspbian makes no difference at all to me, so I'm probably misunderstanding something :).

Go to advanced search