## Search found 406 matches

Fri Oct 26, 2012 3:02 pm
Forum: Scratch
Topic: Fractals (Julia set)
Replies: 6
Views: 2458

### Re: Fractals (Julia set)

Ok, here is the code. The one I posted took all day! Here are some pairs of numbers to give the program. Julia Set Real:-0.4 Im:0.6 Real:-0.8 Im:0.156 Real:-0.74543 Im:0.11301 Real:-0.1 Im:0.651 I'd recommend with setting the max iterations to about 20. Try zoom = 1 and dot size 4. If you are really...
Thu Oct 25, 2012 2:35 pm
Forum: Scratch
Topic: Fractals (Julia set)
Replies: 6
Views: 2458

### Fractals (Julia set)

I have been playing around with generating fractals in Scratch.
This is a Julia set image I have made. I can post the code if anyone is interested.
Wed Oct 10, 2012 12:07 pm
Forum: Python
Topic: displaying long need help with floating point numbers
Replies: 6
Views: 1433

### Re: displaying long need help with floating point numbers

Thanks BlackJack - I think it was the pow bit that was the main stumbling block Yeah - I changed it to 50, just because I was trying out a few changes and wanted each run to be a bit quicker. Thanks for your patience with me! :oops: EDIT: Yep that worked. I am v. happy with this as I am hoping to do...
Tue Oct 09, 2012 4:52 pm
Forum: Python
Topic: displaying long need help with floating point numbers
Replies: 6
Views: 1433

### Re: displaying long need help with floating point numbers

Thanks BlackJack, I have had another go at doing this using Decimal. I must have missed something important, because it doesn't make any difference. This is what I came up with: # pi.py - arctan(1) * 4 = pi from math import * from decimal import * getcontext().prec = 50 def arctan(n): """Uses Gregor...
Thu Oct 04, 2012 7:47 pm
Forum: Scratch
Topic: Deep Scratch # 1
Replies: 19
Views: 5106

### Re: Deep Scratch # 1

Great to see this thread. I will read it properly when I have a little more time!
Scratch On!
Thu Oct 04, 2012 7:36 pm
Forum: Python
Topic: displaying long need help with floating point numbers
Replies: 6
Views: 1433

### displaying long need help with floating point numbers

Hi, I have written a little program that works out Pi using atan. I can get it to give me about 50 decimal places, but I really don't understand the "Decimal" module. If anyone can give me some tips on how to get a more precise result, I'd appreciate it. Here's my code: # pi.py - arctan(1) * 4 = pi ...
Mon Sep 17, 2012 5:28 pm
Forum: Arch
Topic: pacman -Syu : error glibc : /lib is already there...
Replies: 32
Views: 5499

### Re: pacman -Syu : error glibc : /lib is already there...

Thanks pepedog. I've set up my filesystem using the rootfs you supplied and it's fine.
I hadn't realised a new Arch sd card image was available!
mark
Sun Sep 16, 2012 5:50 pm
Forum: Arch
Topic: pacman -Syu : error glibc : /lib is already there...
Replies: 32
Views: 5499

### Re: pacman -Syu : error glibc : /lib is already there...

Thanks pepedog.
I'll try that.
mark
Sun Sep 16, 2012 4:34 pm
Forum: Arch
Topic: pacman -Syu : error glibc : /lib is already there...
Replies: 32
Views: 5499

### Re: pacman -Syu : error glibc : /lib is already there...

I've bricked my system after encountering this problem. I updated pacman, then the -Syu failed, but I couldn't do anything with the system at this point (it wouldn't even do things like "ls"). When I tried to reboot, I got a kernel panic and some messages about not finding the "init". Any help would...
Mon Sep 03, 2012 9:39 pm
Forum: Python
Topic: Run my python prog without terminal
Replies: 1
Views: 812

### Re: Run my python prog without terminal

The way I do it is to add a line like this to the start of the python code:

Code: Select all

``#!/usr/bin/python3.1``
Then you will need to make the file executable:

Code: Select all

``chmod +x my_file.py``
After this, clicking on the file should run it without a console appearing.
mark
Sat Sep 01, 2012 6:47 am
Forum: Other projects
Topic: The MagPi Magazine www.themagpi.com
Replies: 253
Views: 54129

### Re: The MagPi Magazine www.themagpi.com

Issue 5 from my Dropbox.
Issue 5 from my Ubuntu One.
Tue Aug 28, 2012 8:34 pm
Forum: Python
Topic: Monkey Studio
Replies: 5
Views: 1160

### Re: Monkey Studio

I have not managed to get this working yet. Monkey Studio.requires qt 4.7 and (on the Puppy release) I only have 4.6.something. I will look into.this.more.when I get back from my hols (unless someone.else.beats me to it.
Tue Aug 28, 2012 7:56 am
Forum: Python
Topic: Monkey Studio
Replies: 5
Views: 1160

### Re: Monkey Studio

I havent had a go yet. I'm on holiday in a caravan atm. I'll need to set up qt on my pi first. Will def have a go today.
Sat Aug 25, 2012 8:54 am
Forum: Python
Topic: Monkey Studio
Replies: 5
Views: 1160

### Re: Monkey Studio

Looks interesting. I will have a go at compiling it later.
Fri Aug 24, 2012 7:25 pm
Forum: Other programming languages
Topic: lisp and scheme
Replies: 14
Views: 8179

### Re: lisp and scheme

Just learning some bits of Scheme at the moment. Here's a little program that I wrote from scratch. You give it an integer and it hands you back a list of random numbers between 1 and 12. ; get_nums. Takes an integer and returns a list of that length, ; populated with random numbers (1 - 12) (define...
Fri Aug 24, 2012 7:11 pm
Forum: Other programming languages
Topic: Scheme implementations
Replies: 4
Views: 2238

### Re: Scheme implementations

Since I've started this thread, I thought I'd post up the link to the MIT Scheme binaries.
This took over 24 hours to build on the Pi, so if you want to try it out this could save you some time.
MIT Scheme ARM tar.gz.

Fri Aug 17, 2012 4:14 pm
Forum: Python
Topic: Syntax Error
Replies: 4
Views: 1202

### Re: Syntax Error

That looks like it's a python 2.x script (no parentheses after print).
Did you run it with Python 2 or 3?
Try

Code: Select all

``python2.7 install.py``
(assuming it is 2.7 that you have ...)
mark
Fri Aug 17, 2012 4:11 pm
Forum: Python
Topic: The MagPi problems
Replies: 12
Views: 2419

### Re: The MagPi problems

Sorry to hear you are having problems with Bat and Ball. I wrote that code (although not quite in the form in which it was printed). You might find it useful to look at two video tutorials I have put together. This link points at Video 7, in which I talk about Pygame "basics" and then in Video 8 I g...
Fri Aug 17, 2012 4:02 pm
Forum: Other programming languages
Topic: Scheme implementations
Replies: 4
Views: 2238

### Scheme implementations

Chicken and Bigloo are available in the repos, but I also fancied having a look at Gambit (which does nice things like flashing parentheses as you close them) and Scheme48.
I've compiled both and here are the binaries if anyone wants to try / test them.

Gambit
Scheme48
Fri Aug 17, 2012 2:37 pm
Forum: Python
Topic: Running .py file from Python3
Replies: 6
Views: 1640

### Re: Running .py file from Python3

[quote="vinntec"]It seems to be connected with those which use an external file, such as image, for which I am using relative addresses? This is the simplest example - remember this works fine in IDLE3: I've just tried this and when I changed the image file-name bit to "cat.png", (ie deleted "making...
Fri Aug 17, 2012 2:24 pm
Forum: Scratch
Topic: Scratch Update!?
Replies: 2
Views: 2193

### Re: Scratch Update!?

Can't wait for Scratch 2.0!
Fri Aug 17, 2012 2:22 pm
Forum: Scratch
Topic: Is Scratch really viable on Raspberry Pi?
Replies: 128
Views: 41002

### Re: Is Scratch really viable on Raspberry Pi?

I am glad to see the message from jamesh.

I totally agree with Clifford (and other posters!) Scratch is a great way to get younger children into programming.

I'm looking forward to an update!
Thu Aug 16, 2012 7:52 am
Forum: Python
Topic: Running .py file from Python3
Replies: 6
Views: 1640

### Re: Running .py file from Python3

It might help if you can share your code.
Depending on what the program does, it might help to add:

Code: Select all

``input()``
To the end of your program - then the window should wait for you to press enter before quitting.
Mon Aug 13, 2012 6:49 am
Forum: Other programming languages
Topic: mit scheme on Pi
Replies: 0
Views: 1067

### mit scheme on Pi

Well, since I like the MIT Scheme, I decided to build it on my Pi.
I ran into some problems and received a patch from the devs.
Here are the binaries. The build took a long time (>24 hours!). I haven't tested it much yet, but

Code: Select all

``(+ 1 2 3)``
worked.
Sat Aug 11, 2012 6:18 pm
Forum: Python
Topic: Could someone who knows about OOP look at my code?
Replies: 2
Views: 839

### Re: Could someone who knows about OOP look at my code?

Many thanks BlackJack, for the detailed reply. I will have a closer read through later and rewrite my code.