Go to advanced search

by andyl
Thu Jul 05, 2012 9:19 am
Forum: Beginners
Topic: Is the Raspberry Pi good for someone with no experience?
Replies: 7
Views: 1820

Re: Is the Raspberry Pi good for someone with no experience?

Certainly from a learning about computers, Linux and learning to program the Pi is great. As for regular everyday things. Maybe, maybe not. It depends on what you want. There are some websites that won't work (they require flash), or won't work very well (performance issues). Generally performance i...
by andyl
Mon Jul 02, 2012 3:16 pm
Forum: Other programming languages
Topic: jQuery performance
Replies: 6
Views: 5325

Re: jQuery performance

Narishma wrote:
ghans wrote:The problem is that FF is mainly x86 software
What do you mean by that? FireFox is open source and written in C++, so it should be possible to compile it for any architecture.
Quite a bit of javscript too. I think there is a little bit of asm but only a very little bit.
by andyl
Sun Jul 01, 2012 11:49 pm
Forum: Beginners
Topic: Give pi account sudo access to www?
Replies: 9
Views: 22109

Re: Give pi account sudo access to www?

The only way I have found round this is to make a root password and login as root. I'm still hoping someone else knowledgable in linux knows of another way. (There MUST be one). Would chown /var/www pi work? That would probably mess something else up though. :cry: T'other way round. chown pi /var/w...
by andyl
Sun Jul 01, 2012 7:27 pm
Forum: Beginners
Topic: Seriously .. where to find power supply?
Replies: 76
Views: 25701

Re: Seriously .. where to find power supply?

That's the power supply I have but when I try to connect my WiFi adapter it just won't power up with it. I will try to find a dongle to connect to the internet but if that doesn't work then the Pi will be back in it's box. Well it isn't beefy enough to power all of the Raspi, WiFi, and maybe keyboa...
by andyl
Sun Jul 01, 2012 3:44 pm
Forum: General discussion
Topic: FTP for Web Server
Replies: 3
Views: 2671

Re: FTP for Web Server

Alligator wrote:Don't I need to set it up as an FTP server first?
If you want to do sftp (and you probably should) then you don't need to do anything extra if you have ssh enabled.

If you do want a full ftp server there are plenty you can choose to install.
by andyl
Sun Jul 01, 2012 3:39 pm
Forum: Beginners
Topic: very new user to linux
Replies: 5
Views: 1399

Re: very new user to linux

thanks Andyl. Now got it running but no mouse working, not sure if mouse still works? been using the lap top for so long now I loose track what stopped working on the old PC. You may be right, my mouse works OK. Sudo nano /boot/config.txt to create a config file with the following to set comp video...
by andyl
Sun Jul 01, 2012 9:12 am
Forum: Beginners
Topic: Seriously .. where to find power supply?
Replies: 76
Views: 25701

Re: Seriously .. where to find power supply?

Doh. Lysdexia strikes again. TP1 is +5V, TP2 is GND (I stated above and enacted the opposite). So in fact, I just smoked my R-Pi. Al this for the lack of a commonly available power connector. Far out. :shock: Stuffed if I know how the target "3rd world" folks are going to get on. I for one give up....
by andyl
Sun Jul 01, 2012 9:02 am
Forum: Beginners
Topic: Seriously .. where to find power supply?
Replies: 76
Views: 25701

Re: Seriously .. where to find power supply?

I am surprised that people seem to have trouble getting micro USB charging capability. A powered hub with a micro USB cable (possibly the Y variant in some cases) should do ... The Rasp-Pi Getting Started guide explicitly states that a powered hub will NOT suffice. (500mA current limit beignet he r...
by andyl
Sun Jul 01, 2012 8:52 am
Forum: Beginners
Topic: very new user to linux
Replies: 5
Views: 1399

Re: very new user to linux

This is a very common question.

You need to run startx
by andyl
Sun Jul 01, 2012 8:47 am
Forum: C/C++
Topic: Recommeded C++ dev environment ?
Replies: 108
Views: 79173

Re: Recommeded C++ dev environment ?

The ternary operator is almost never easier to understand. In this case I would separate it out onto its own line. I'd also add a few line separators. :-) I love the C if-then-else operator. Such a nice concise way to write a conditional expression. But then, I was exposed to LISP at an impressiona...
by andyl
Sun Jul 01, 2012 8:32 am
Forum: General programming discussion
Topic: Import Error: No module named pygtk
Replies: 7
Views: 13508

Re: Import Error: No module named pygtk

You need to install pygtk.

Not every Python module in the world is installed by default.

Code: Select all

sudo apt-get install python-gtk2
You may want to install the doc package too.
by andyl
Sat Jun 30, 2012 8:08 pm
Forum: C/C++
Topic: Recommeded C++ dev environment ?
Replies: 108
Views: 79173

Re: Recommeded C++ dev environment ?

Here you go, complete with a very procedural C++ and a Python example to start off. I don't do Java, but new examples can be added easily. commentdisc.wikidot.com Some comments on the C example. There is at least one case of the comment not being correct (looks like a copy/paste issue). sprintobjec...
by andyl
Sat Jun 30, 2012 9:33 am
Forum: Beginners
Topic: trouble installing ucb logo
Replies: 6
Views: 3026

Re: trouble installing ucb logo

Thanks everyone, I tried the changes ukscone suggested (delete .lbsd from makefile); seems to help but I now get the following error: pi@raspberrypi ~/ucblogo/ucblogo-6.0 $ make gcc -g -O -O0 -DUSE_OLD_TTY -c -o graphics.o graphics.c In file included from graphics.c:41:0: xgraphics.h:4:22: fatal er...
by andyl
Fri Jun 29, 2012 1:11 pm
Forum: C/C++
Topic: Recommeded C++ dev environment ?
Replies: 108
Views: 79173

Re: Recommeded C++ dev environment ?

Instead of sitting here trading comments - how about a test. Someone suggest a smallish (but non-trivial) piece of code - I would prefer C or Java it has been ages since I have touched C++, which they think is a good exemplar of commenting (or just some code without comments). I will try and refact...
by andyl
Fri Jun 29, 2012 8:12 am
Forum: Beginners
Topic: trouble installing ucb logo
Replies: 6
Views: 3026

Re: trouble installing ucb logo

Are you compiling from source? BTW you can capture all the output from the build process by using redirection make > ~/make.txt 2>&1 will put the output in make.txt in your home directory - you can then open that with an editor and copy the error line into your post here. If you want to capture a pr...
by andyl
Thu Jun 28, 2012 10:51 pm
Forum: Staffroom, classroom and projects
Topic: Hardware
Replies: 17
Views: 7426

Re: Hardware

My company throws away a lot of working USB keyboards and mice - every time a new system comes in the old bits get scrapped. I've asked if I can have them. Depending on the answer, I'll be giving them away once I've cleaned them up a bit (if necessary). I'm hoping I get enough to be able to fill an...
by andyl
Thu Jun 28, 2012 10:40 pm
Forum: C/C++
Topic: Recommeded C++ dev environment ?
Replies: 108
Views: 79173

Re: Recommeded C++ dev environment ?

Similarly comments aren't a panacea. There is plenty of great code without comments. Quite a number of luminaries see them as a bad smell. Tim Ottinger says "A comment is an apology for not choosing a more clear name, or a more reasonable set of parameters, or for the failure to use explanatory var...
by andyl
Thu Jun 28, 2012 10:21 pm
Forum: Advanced users
Topic: setting udev rules for the GPIO?
Replies: 10
Views: 27493

Re: setting udev rules for the GPIO?

Have you tried udevcontrol reload_rules and/or udevtrigger. or reboot?
by andyl
Thu Jun 28, 2012 1:36 pm
Forum: Python
Topic: Python Monitoring Program
Replies: 7
Views: 2973

Re: Python Monitoring Program

It is difficult to do OS detection.

nmap does it - see http://nmap.org/book/man-os-detection.html
You will not be able to use their code - it is in C and is non-trivial.
by andyl
Thu Jun 28, 2012 8:31 am
Forum: Beginners
Topic: Running basic executables?
Replies: 7
Views: 1558

Re: Running basic executables?

sorry about that, obviously missed that one. Generally it depends on where the output is going. If your program uses stdout (and stderr) - for example the Hello World example - you can't just start them using the GUI - what is stdout in a GUI? You have to run a terminal then run the program from th...
by andyl
Thu Jun 28, 2012 8:23 am
Forum: Other programming languages
Topic: Ruby 1.9.1 on Debian
Replies: 6
Views: 4448

Re: Ruby 1.9.1 on Debian

I have used this link http://elinux.org/RPi_Ruby_on_Rails to install Ruby successfully on Squeeze and Wheezy. You also get RVM but it does take a bit of time to compile the latest version of Ruby. I'd rather not use RVM, rbenv is far superior IMHO, and I've used it in a few production sites. Also, ...
by andyl
Wed Jun 27, 2012 7:41 pm
Forum: Python
Topic: A little advice please !
Replies: 2
Views: 1308

Re: A little advice please !

Well I have written my first programm in python and when I try to run it on the raspberry in "Geany"I get an error message. Could not find terminal "xterm" (check path for terminal toolsetting in preferences) I did and it say "/bin/bash" Am I missing something here ? Any advice would be helpful. Th...
by andyl
Wed Jun 27, 2012 2:30 pm
Forum: Beginners
Topic: Running basic executables?
Replies: 7
Views: 1558

Re: Running basic executables?

Why did you try doubleclicking on it? The web page you linked to states quite clearly how to run it. Put the game ROM file that you want to play in the same directory (e.g. tetris.gb) Run the emulator (./gameboy tetris.gb). They won't work under X Windows yet So you run it from a terminal. It also s...
by andyl
Wed Jun 27, 2012 2:20 pm
Forum: C/C++
Topic: Recommeded C++ dev environment ?
Replies: 108
Views: 79173

Re: Recommeded C++ dev environment ?

Using an IDE doesn't make you a bad programmer. Using an IDE incorrectly makes a bad programmer. So does writing un-commented, untidy code without an IDE. If we teach people how to use an IDE correctly, then I don't see an issue. Similarly comments aren't a panacea. There is plenty of great code wi...
by andyl
Wed Jun 27, 2012 8:19 am
Forum: Other programming languages
Topic: Batch program in Xwindows
Replies: 4
Views: 1924

Re: Batch program in Xwindows

I'll give it some thought. The more I consider it, I'm not sure if running such a loop would tax the processor as much as you'd like. Just having the gui up at all seems to tax it a fair deal... you might be better off writing a script to refresh a simple webpage every x seconds and tax it a lot mo...

Go to advanced search