Go to advanced search

by D.E.L.B.
Tue Sep 11, 2012 12:24 am
Forum: C/C++
Topic: stdio.h: No such file or directory.
Replies: 10
Views: 12449

Re: stdio.h: No such file or directory.

Not quite sure what I've done by there, ah well. Yes removing the space by the full stop in the <stdio.h> tag fixed it.

Thanks.
by D.E.L.B.
Sun Sep 09, 2012 10:26 pm
Forum: C/C++
Topic: stdio.h: No such file or directory.
Replies: 10
Views: 12449

Re: stdio.h: No such file or directory.

Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/4.6/lto-wrapper Target: arm-linux-gnueabihf Configured with: ../src/configure -v --with-pkgversion='Debian 4.6.3-8+rpi1' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortra...
by D.E.L.B.
Sat Sep 08, 2012 10:14 pm
Forum: C/C++
Topic: stdio.h: No such file or directory.
Replies: 10
Views: 12449

Re: stdio.h: No such file or directory.

Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/4.6/lto-wrapper Target: arm-linux-gnueabihf Configured with: ../src/configure -v --with-pkgversion='Debian 4.6.3-8+rpi1' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortra...
by D.E.L.B.
Sat Sep 08, 2012 7:45 pm
Forum: C/C++
Topic: stdio.h: No such file or directory.
Replies: 10
Views: 12449

Re: stdio.h: No such file or directory.

I used this command in the LX Terminal: gcc -o arrays_one.c arrays_one.c Then I used this program: #include <stdio.h> int main() { /* Create an array with four element and assign values. */ float fourVector[4]={1.0, 2.0, 0.5, 2.292}; /* Print the number of elements in the array. */ printf("There are...
by D.E.L.B.
Sat Sep 08, 2012 6:02 pm
Forum: C/C++
Topic: stdio.h: No such file or directory.
Replies: 10
Views: 12449

stdio.h: No such file or directory.

I tried compiling a program with gcc, and this error came up, what's wrong? I am using the Raspbian OS, does Raspbian not have GCC?
by D.E.L.B.
Sat Sep 08, 2012 3:46 am
Forum: User groups and events
Topic: Raspberry Pi Steam Group
Replies: 2
Views: 1429

Raspberry Pi Steam Group

Hey,

I made a Steam page for anyone who is interested in joining:
http://steamcommunity.com/groups/raspberrypi

It's for people who have the Raspberry Pi, or interested in it!
by D.E.L.B.
Sat Sep 08, 2012 1:23 am
Forum: Troubleshooting
Topic: MagPi Help - lxde-applications.menu file
Replies: 6
Views: 1095

Re: MagPi Help - lxde-applications.menu file

Anyone, no? I want to succeed with this before I move onto other things.
by D.E.L.B.
Fri Sep 07, 2012 4:17 pm
Forum: Troubleshooting
Topic: Can't launch SH files
Replies: 4
Views: 2666

Re: Can't launch SH files

I'm using Debian Squeeze. I tried doing sudo apt-get install php5 but the version remains the same.
by D.E.L.B.
Fri Sep 07, 2012 3:28 pm
Forum: Troubleshooting
Topic: Can't launch SH files
Replies: 4
Views: 2666

Re: Can't launch SH files

php -v: PHP 5.3.3-7+squeeze8 with Suhosin-Patch (cli) (built: Feb 10 2012 17:00:00) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins GmbH php5 -v: PHP 5.3.3-7+squeeze8 with Suhosin-Patc...
by D.E.L.B.
Fri Sep 07, 2012 2:16 pm
Forum: Troubleshooting
Topic: Can't launch SH files
Replies: 4
Views: 2666

Can't launch SH files

Hey, I was wondering if anyone would be able to help me. My problem is that when I try to do the command: ./start.sh or whatever, it keeps bringing me up with this: Usage: php [options] [-f] <file> [--] [args...] php [options] -r <code> [--] [args...] php [options] [-B <begin_code>] -R <code> [-E <e...
by D.E.L.B.
Wed Sep 05, 2012 9:53 pm
Forum: Troubleshooting
Topic: MagPi Help - lxde-applications.menu file
Replies: 6
Views: 1095

Re: MagPi Help - lxde-applications.menu file

Bump. :). I tried potching about with it but no luck.
by D.E.L.B.
Wed Sep 05, 2012 3:30 pm
Forum: Python
Topic: The Mag Pi Help - Fish Game
Replies: 2
Views: 743

Re: The Mag Pi Help - Fish Game

Same, I haven't seen any type of source code that does that ever.

So what about the first part, what does that do?
by D.E.L.B.
Tue Sep 04, 2012 11:23 pm
Forum: Python
Topic: The Mag Pi Help - Fish Game
Replies: 2
Views: 743

The Mag Pi Help - Fish Game

I get everything apart from these two bits: # Make the ball chase Tux if bx>=tx: bx=bx1 else: bx=bx+1 if by>=ty: by=by1 else: by=by+1 fx=fx4 if fx<=10: fx=600; fy=random.randint(0,370) # Collision Detection (Tux & Fish, Tux & Ball) if fx<=tx+50 and fx>=tx and fy>=ty30 and fy<=ty+70: toy.play(); fx=6...
by D.E.L.B.
Tue Sep 04, 2012 10:21 pm
Forum: Troubleshooting
Topic: MagPi Help - lxde-applications.menu file
Replies: 6
Views: 1095

Re: MagPi Help - lxde-applications.menu file

I tried that, but it didn't seem to budge:

Code: Select all

<! -- MagPi submenu -->
<Menu>
<Name>The MagPi</Name>
<Directory>lxde-magpi.directory</Directory>
<Include>
<Filename>gpicview.desktop</Filename>
</Include>
</Menu>
<! -- End The MagPi -->
by D.E.L.B.
Tue Sep 04, 2012 2:40 pm
Forum: Troubleshooting
Topic: MagPi Help - lxde-applications.menu file
Replies: 6
Views: 1095

MagPi Help - lxde-applications.menu file

What's wrong with my lxde-applications.menu file? Here it is, in the Mag Pi book on page 20 of Issue 4, there is a tutorial that tells you how to add an item to the menu on LXDE, however I have tried to do this, but the menu disappears and I am not sure how to fix it. Here is my lxde-applications.me...
by D.E.L.B.
Mon Sep 03, 2012 10:18 pm
Forum: Troubleshooting
Topic: I messed up my lxde-applications.menu file
Replies: 2
Views: 557

Re: I messed up my lxde-applications.menu file

I was messing around with adding some menu items but I messed it up :P.

Thanks Markus!
by D.E.L.B.
Mon Sep 03, 2012 4:58 pm
Forum: Troubleshooting
Topic: I messed up my lxde-applications.menu file
Replies: 2
Views: 557

I messed up my lxde-applications.menu file

I was wondering if anyone could upload theirs and pass it along to me :).
by D.E.L.B.
Sun Jul 29, 2012 8:59 pm
Forum: Python
Topic: Could someone run through this code with me?
Replies: 23
Views: 2809

Re: Could someone run through this code with me?

I get it now, thanks a bunch!

Might I also suggest that it might be worth having a seperate edition of The Mag Pi for programming, that way it's easier to get everything in without missing important things that people need to understand the codes.
by D.E.L.B.
Sun Jul 29, 2012 5:01 am
Forum: Python
Topic: Could someone run through this code with me?
Replies: 23
Views: 2809

Re: Could someone run through this code with me?

Ah I see, I think I get it now.

So that window[0], refers back to these?:
82
82
262
262

Then window[1] refers to:
125
215
125
215

Right?
by D.E.L.B.
Sat Jul 28, 2012 9:58 pm
Forum: Python
Topic: Could someone run through this code with me?
Replies: 23
Views: 2809

Re: Could someone run through this code with me?

But where are the coordinates for the black window? Because there is only 4 coordinates in the variable "windows".

I find it hard to see where the window with the square bracket coordinates are defined because there are only 4, and there is 5 in the Windows for-loop.
by D.E.L.B.
Sat Jul 28, 2012 6:08 am
Forum: Python
Topic: Could someone run through this code with me?
Replies: 23
Views: 2809

Re: Could someone run through this code with me?

Thanks.

So what about this one?

Code: Select all

   d.rect(screen, black, (window[0], window[1], 76, 76) )
by D.E.L.B.
Sat Jul 28, 2012 1:03 am
Forum: Python
Topic: Could someone run through this code with me?
Replies: 23
Views: 2809

Re: Could someone run through this code with me?

Thanks guys! Oh and yes your blog post is much easier to understand. There is also another piece of code which is called: "The House" and that basically draws shapes and RGB values to the screen to create a house. But... I don't get these in the codes: # THE HOUSE # By 0the0judge0 - 29th May 2012 im...
by D.E.L.B.
Fri Jul 27, 2012 3:49 pm
Forum: Python
Topic: Could someone run through this code with me?
Replies: 23
Views: 2809

Re: Could someone run through this code with me?

So you know that [0], what's that for? As well as the [1].

I get the second code that you originally wrote, but not the one that is in the magazine.
by D.E.L.B.
Fri Jul 27, 2012 6:06 am
Forum: Python
Topic: Could someone run through this code with me?
Replies: 23
Views: 2809

Re: Could someone run through this code with me?

Hi D.E.L.B., size = [400, 400] makes a "size" a list with 2 elements. This way you can pass "size" to the command that creates the Pygame graphics window. This is the way Liam did it in his tutorial videos, and I think it's neater. You can just pass the actual numbers to "pygame.display.set_mode". ...
by D.E.L.B.
Fri Jul 27, 2012 6:06 am
Forum: Python
Topic: Could someone run through this code with me?
Replies: 23
Views: 2809

Re: Could someone run through this code with me?

Oops, double post by accident! Look at post below.

Go to advanced search