Go to advanced search

by antiloquax
Wed Mar 27, 2013 4:30 pm
Forum: Arch
Topic: Midori & uzbl both crash Xorg randomly
Replies: 29
Views: 8192

Re: Midori & uzbl both crash Xorg randomly

I'm having this problem too. :(

I've been trying uzbl and other wms (evilwm and dwm).
At least I know they are not to blame.
by antiloquax
Tue Mar 26, 2013 2:02 pm
Forum: General programming discussion
Topic: LOVE2D on Raspberry Pi?
Replies: 3
Views: 3212

Re: LOVE2D on Raspberry Pi?

I can't answer the part about usb ports and robots, but LOVE definitely does work on the Pi.
In arch, you just type

Code: Select all

pacman -S love
by antiloquax
Fri Mar 22, 2013 6:51 pm
Forum: Python
Topic: game of life
Replies: 0
Views: 422

game of life

I wrote a little game of life program using tkinter.
Here's a vid of it doing a glider gun.
https://vimeo.com/62447239
Here's the code:
https://www.dropbox.com/s/eek2n35kiv0p2rn/golpi.zip
by antiloquax
Fri Mar 22, 2013 6:40 pm
Forum: General discussion
Topic: overlook fing
Replies: 2
Views: 1364

overlook fing

This is the best thing I have found for finding out the address of your RPi when you want to connect via ssh.
http://www.overlooksoft.com/download
by antiloquax
Thu Mar 21, 2013 6:28 pm
Forum: Beginners
Topic: pi not working
Replies: 8
Views: 1162

Re: pi not working

Look in /boot/config.txt and adjust the "overscan" settings.
by antiloquax
Sun Mar 10, 2013 9:20 pm
Forum: Python
Topic: python embedded in desktop
Replies: 2
Views: 973

Re: python embedded in desktop

No, you can do in any distro. Having said that, I don't know how to do it in lxde. With openbox, I added this to my autostart: urxvt -e python3 & Then I played with the .Xdefaults file to make urxvt transparent. urxvt.font: xft:DejaVu Sans Mono urxvt.geometry: 55x15 urxvt.scrollBar: false urxvt.scro...
by antiloquax
Sun Mar 10, 2013 8:06 pm
Forum: Python
Topic: python embedded in desktop
Replies: 2
Views: 973

python embedded in desktop

This is just a little tweak I have been playing around with.
I adapted the instructions on having a transparent terminal on the desktop so that my Pi boots up with Python embedded. :mrgreen:
by antiloquax
Sun Mar 10, 2013 7:53 pm
Forum: General discussion
Topic: date is wrong
Replies: 5
Views: 1235

Re: date is wrong

If you are online on your pi, try

Code: Select all

ntpd -s -d
Or to set it manually something like this:

Code: Select all

date  --s="2013-03-10 19:40:00"
by antiloquax
Fri Mar 01, 2013 6:00 pm
Forum: Python
Topic: need help with imports
Replies: 4
Views: 654

Re: need help with imports

Ah, I should have tried exec().
I just got stuck with "str() object is not callable" :O
by antiloquax
Fri Mar 01, 2013 4:33 pm
Forum: Python
Topic: need help with imports
Replies: 4
Views: 654

Re: need help with imports

Thanks rst, I'd thought of something like that, but then you can't use the list of strings to call the functions within the modules. I've sorted it now. I've made it so that each of my programs has a function called "do_sort()", and then I've got this: ALGORITHMS = ["merge_sort", "quicksort_f", "qui...
by antiloquax
Fri Mar 01, 2013 12:07 pm
Forum: Python
Topic: need help with imports
Replies: 4
Views: 654

need help with imports

I have written a program that tests several sorting algorithms. I've used a list of the function names to call each function from a loop. However, I can't work out how I could import all the functions from a list. Ideally, I'd like to only have to change one line of code when adding a new algorithm ...
by antiloquax
Sat Feb 23, 2013 10:16 am
Forum: Beginners
Topic: Have you tried arch?
Replies: 0
Views: 468

Have you tried arch?

Latest release of my arch-remix available to download. Download .zip archive md5sum: c0c3df7b7300fd9fba814790bb7a0bd9 arch_remix_3.img This is the latest release of my remix of Arch Linux for the Raspberry Pi. I have not set up a separate user, so you log on as root, with the password “root”. The fo...
by antiloquax
Sat Feb 23, 2013 10:14 am
Forum: General discussion
Topic: Ready set-up arch image
Replies: 0
Views: 389

Ready set-up arch image

Latest release of my arch-remix available to download. Download .zip archive md5sum: c0c3df7b7300fd9fba814790bb7a0bd9 arch_remix_3.img This is the latest release of my remix of Arch Linux for the Raspberry Pi. I have not set up a separate user, so you log on as root, with the password “root”. The fo...
by antiloquax
Tue Feb 05, 2013 7:47 pm
Forum: Other programming languages
Topic: Scala
Replies: 2
Views: 1839

Scala

I have been reading about, and trying to learn, Scala. I hadn't realised that Java was working on the Arch Hard Float release (D'uh), but I have now got Scala set up (using openjdk6). For those who don't know much about Scala, it's based on Java but includes many features from functional languages a...
by antiloquax
Sun Feb 03, 2013 6:58 am
Forum: Python
Topic: Python game
Replies: 2
Views: 677

Re: Python game

I wrote a little space invaders thing after following Liam Fraser's Tutorials (they are on YouTube - search for Raspberry Pi Tutorials).

Anyway, it does work on my Pi, so see if it is any help ....

invader.zip
by antiloquax
Sun Feb 03, 2013 6:38 am
Forum: Python
Topic: Python snake game debug
Replies: 6
Views: 2788

Re: Python snake game debug

Hi, I've had a play with your code and I think this is working correctly now. I've changed the way the game exits, but other than that, I think the problems were just a few typos. The pygame thing is a different issue. Could it be to do with which version of Python you are running the game in? I thi...
by antiloquax
Sun Feb 03, 2013 5:06 am
Forum: General discussion
Topic: Basic programing
Replies: 5
Views: 701

Re: Basic programing

by antiloquax
Fri Feb 01, 2013 6:27 pm
Forum: General programming discussion
Topic: Begginer
Replies: 8
Views: 1801

Re: Begginer

by antiloquax
Wed Jan 23, 2013 2:28 pm
Forum: Arch
Topic: New archlinuxarm rootfs Jan 2013
Replies: 9
Views: 1725

Re: New archlinuxarm rootfs Jan 2013

Thanks pepedog :)
by antiloquax
Mon Jan 21, 2013 2:26 pm
Forum: Teaching and learning resources
Topic: Algorithms worksheets
Replies: 4
Views: 2411

Re: Algorithms worksheets

I've made a few more examples in this series of maths / algorithmic worksheets: Algorithms - Series Two 1. Newton's method for nth roots. 2. Primes revisited a) faster Miller-Rabin b) Lucas-Lehmer number 3. A Little Number Theory a) Ramanujan's Highly Composite Numbers b) Ramanujann and Hardy - roun...
by antiloquax
Mon Jan 21, 2013 2:15 pm
Forum: Python
Topic: random number generator
Replies: 3
Views: 1256

Re: random number generator

Thanks, rst. I take your point about power() and coprime(). I appreciate you reading this.
by antiloquax
Sun Jan 20, 2013 7:54 pm
Forum: Python
Topic: random number generator
Replies: 3
Views: 1256

random number generator

I am not very experienced in using OOP. I used it here so that I would not have to keep passing the seed around the program. I would be grateful if anyone can tell me if I have made any silly errors here. It seems to work as I expected it to. # oop_rng.py # Using the linear convergence method of D. ...
by antiloquax
Sun Jan 20, 2013 6:06 pm
Forum: Arch
Topic: ready set-up Arch
Replies: 5
Views: 1235

Re: ready set-up Arch

Well this is an up-to-date image. It has all the wireless things you need. Have a look at this page on the wiki. Basically these commands got it working for me (my network has WPA2 security, so I use wpa_supplicant. Click here for the wiki page. ip link set wlan0 up wpa_passphrase "mywireless_ssid" ...
by antiloquax
Sun Jan 20, 2013 10:14 am
Forum: Arch
Topic: ready set-up Arch
Replies: 5
Views: 1235

Re: ready set-up Arch

It has iw, wireless_tools and wpa supplicant. The wiki tells you how to set it up, or you could use a tool like wicd. :mrgreen: :mrgreen:

Go to advanced search