Go to advanced search

by antiloquax
Sat Nov 03, 2012 6:10 pm
Forum: Staffroom, classroom and projects
Topic: Video Tutorials
Replies: 76
Views: 19900

Re: Video Tutorials

I have really enjoyed Liam's videos. I have done some of my own.
here
by antiloquax
Sat Nov 03, 2012 11:33 am
Forum: Staffroom, classroom and projects
Topic: Forth
Replies: 21
Views: 6374

Re: Forth

You could try compiling GNU Forth. It doesn't seem to be in the Arch Arm repository.
gforth
by antiloquax
Fri Nov 02, 2012 8:06 pm
Forum: Python
Topic: Quitting Pygame
Replies: 2
Views: 2011

Re: Quitting Pygame

This is how I tend to do it (although there is surely more than one solution).

Code: Select all

while done==False:

    for event in pygame.event.get(): 
        if event.type == pygame.QUIT:
            done=True
   
# stop pygame
pygame.quit()
by antiloquax
Fri Nov 02, 2012 8:03 pm
Forum: General programming discussion
Topic: Bat and ball game
Replies: 12
Views: 5363

Re: Bat and ball game

Yes, it's a pain that Pygame doesn't work fully with Python 3.2 (not sure what the situation is with Python 3.3). Actually I like to use 3.14, which works properly with Pygame. I compiled it myself and then installed Pygame. Also I use Arch day-to-day, although I also use the Raspbian and Puppy imag...
by antiloquax
Fri Nov 02, 2012 6:13 pm
Forum: General programming discussion
Topic: Bat and ball game
Replies: 12
Views: 5363

Re: Bat and ball game

I think that particular Python code listing in the MagPi was only tested on Windows. Hi, I'm sorry to hear that people have been having problems with this code. I wrote the original version, which was edited a fair bit in the published version. I can confirm, however, that it was tested on the Rasp...
by antiloquax
Fri Nov 02, 2012 5:24 pm
Forum: Python
Topic: Looking for a good Samaritan
Replies: 6
Views: 1337

Re: Looking for a good Samaritan

I've put together a list of some useful tutorials here.
A good place to start would also be Liam Fraser's YouTube Tutorials.
I have also made some video tutorials of my own. They are here.
mark
by antiloquax
Fri Nov 02, 2012 3:21 pm
Forum: Python
Topic: a bases converter
Replies: 6
Views: 1491

Re: a bases converter

Thanks Joan. I mainly started working on this as a result of trying to explain bases to my GCSE computing group and describing to them how to do the conversions.
by antiloquax
Fri Nov 02, 2012 2:07 pm
Forum: Python
Topic: a bases converter
Replies: 6
Views: 1491

Re: a bases converter

Thanks BlackJack, I'll take another look and do some re-writing!
by antiloquax
Fri Nov 02, 2012 1:56 pm
Forum: Scratch
Topic: jpg bug
Replies: 12
Views: 3634

Re: jpg bug

It is a little harder to get started with Arch on the Pi. For anyone trying it out, here are some notes I put together on getting a graphical environement set up. It refers to QEMU, but it's the same on the Pi itself. Notes To get Scratch, type: pacman -S scratch then run scratch by typing scratch T...
by antiloquax
Thu Nov 01, 2012 8:28 am
Forum: Python
Topic: a bases converter
Replies: 6
Views: 1491

Re: a bases converter

I've realised that my enumerate would be nicer like this;

Code: Select all

def to_denary(n, b, D):
    """Converts to denary."""
    denary = 0
    for (i, digit)  in enumerate(reversed(n)):
        temp = D.index(digit)
        denary += temp * math.pow(b, i)
    return denary
:geek:
by antiloquax
Thu Nov 01, 2012 8:26 am
Forum: Python
Topic: OCR High Scores Task
Replies: 5
Views: 1516

Re: OCR High Scores Task

Right, thanks Blackjack.
Your help is much appreciated!
I have got the high-scores thing behaving much more sensibly now.
In the school where I work, we are actually using SmallBasic, - but I wanted to work through these examples in Python bso that I can keep learning...
mark
by antiloquax
Wed Oct 31, 2012 10:23 pm
Forum: Python
Topic: a bases converter
Replies: 6
Views: 1491

a bases converter

I have re-written my python program to convert numbers from one base to another. I was very pleased to learn the "enumerate()" function - thanks Blackjack for this! I have now used this in my "to-denary" function and I think it is a lot better that my previous version. I know this program could real...
by antiloquax
Wed Oct 31, 2012 10:08 pm
Forum: Scratch
Topic: jpg bug
Replies: 12
Views: 3634

Re: jpg bug

Sorry I haven't got back to you on this yet, I will have a go at the things you mentioned as soon as poss.
But I strongly recommend you try Arch for yourself - it's a lot quicker than Raspbian, in my opinion.
by antiloquax
Sun Oct 28, 2012 1:17 pm
Forum: Scratch
Topic: jpg bug
Replies: 12
Views: 3634

Re: jpg bug

Scratchers may want to switch to Arch Linux. I haven't noticed any problems with .jpg.

scatch "trampoline" on Arch.
by antiloquax
Sat Oct 27, 2012 9:21 pm
Forum: Python
Topic: OCR High Scores Task
Replies: 5
Views: 1516

Re: OCR High Scores Task

The `add()` function should not belong to the public API and `update()` should create an entry for a non-existing user instead of just printing an error message. I'm not sure I see what you mean about add() and the "public API". I am rewriting this and have got the add() function to check for a pre...
by antiloquax
Sat Oct 27, 2012 8:30 pm
Forum: Python
Topic: WJEC Programming GCSE task.
Replies: 2
Views: 658

Re: WJEC Programming GCSE task.

Hi BlackJack,
Thanks for your help.
I've re-done the program with more sensible variable-names. And without setting up a class.
I think it is better now.
mark
by antiloquax
Sat Oct 27, 2012 8:09 pm
Forum: Python
Topic: OCR Set Password task.
Replies: 2
Views: 670

Re: OCR Set Password task.

Hi BlackJack,

Many thanks for your input. I have re-written this following your advice.
I am much happier with it now.
However, I have used a series of nested "while" loops instead of the recursive approach. I'm not sure if this is good style either ...
mark
by antiloquax
Sat Oct 27, 2012 5:18 pm
Forum: Scratch
Topic: Fractals (Julia set)
Replies: 6
Views: 2460

Re: Fractals (Julia set)

scratch_top.png
scratch_top.png (57.82 KiB) Viewed 2348 times
Just for the record, this is my Pi running this program. As you can see, Scratch is using about 60% of the CPU.
by antiloquax
Sat Oct 27, 2012 4:26 pm
Forum: Python
Topic: displaying long need help with floating point numbers
Replies: 6
Views: 1434

Re: displaying long need help with floating point numbers

Hi blackjack, sorry I have not replied before now. Thanks for these improvements. :D
by antiloquax
Sat Oct 27, 2012 4:14 pm
Forum: Python
Topic: OCR High Scores Task
Replies: 5
Views: 1516

Re: OCR High Scores Task

Thanks blackjack. I'll rewrite based on your comments.
:mrgreen:
by antiloquax
Sat Oct 27, 2012 12:15 pm
Forum: Python
Topic: OCR Set Password task.
Replies: 2
Views: 670

OCR Set Password task.

This is a possible response to the OCR GCSE Specimen task to make a program that sets a password. May be of use to beginners.

http://prezi.com/gtgnqvlhliyy/python-password-program/
by antiloquax
Sat Oct 27, 2012 12:13 pm
Forum: Python
Topic: WJEC Programming GCSE task.
Replies: 2
Views: 658

WJEC Programming GCSE task.

This Prezi is a possible response to a specimen task from the WJEC - a bingo program.
I've done it as a GUI program. Simple stuff, but possibly of use to some ...
http://prezi.com/fo3v2dd9uqxs/python-bi ... imen-task/
by antiloquax
Sat Oct 27, 2012 12:10 pm
Forum: Python
Topic: OCR High Scores Task
Replies: 5
Views: 1516

OCR High Scores Task

This prezi has a worked example of one of the specimen programming tasks from the OCR Computing GCSE. Making a High Scores table.

http://prezi.com/0xx4lbikwkk4/ocr-speci ... ssessment/
by antiloquax
Sat Oct 27, 2012 11:52 am
Forum: Scratch
Topic: Scratch a short prezi on maths
Replies: 0
Views: 1141

Scratch a short prezi on maths

This is a link to a little Prezi I have put together with some Maths scripts in Scratch (square root, prime numbers etc.) It may be of interest to some Scratchers out there.

http://prezi.com/4x4vqi4bjdnj/scratch-maths/
by antiloquax
Fri Oct 26, 2012 3:38 pm
Forum: Scratch
Topic: Fractals (Julia set)
Replies: 6
Views: 2460

Re: Fractals (Julia set)

julia3.gif
julia3.gif (22.58 KiB) Viewed 2393 times
This is the sort of image I get when running at dot size 4. It is slow!

Go to advanced search