Go to advanced search

by rpdom
Thu Jun 27, 2013 2:02 am
Forum: Teaching and learning resources
Topic: Where Can I Learn how to Fork a Project for Raspberry Pi?
Replies: 4
Views: 2405

Re: Where Can I Learn how to Fork a Project for Raspberry Pi

On the other hand, programs that I do not have access to source code but to compiled binaries will not run on the RPi (unless they were compiled on the RPi). Minor correction there: Unless they were compiled for the RPi. It is quite easy to compile programs on another computer, with the right softw...
by rpdom
Thu Jun 27, 2013 1:48 am
Forum: General discussion
Topic: booting a pi without an SD card
Replies: 17
Views: 3532

Re: booting a pi wihtout an SD card

AFAIK, although is is claimed to be possible in theory, I have never read about anybody who actually demonstrated booting via USB! Also, as the PI has only a single USB port, so you can either boot the PI through USB, OR use the USB port for something else, but not both! As the moment you try to ad...
by rpdom
Wed Jun 26, 2013 6:23 pm
Forum: Debian
Topic: Debian for PC vs Pi
Replies: 4
Views: 1823

Re: Debian for PC vs Pi

Yes. I run Debian 7.1 on my laptop, although I use the xfce4 desktop on it and no desktop on my Pi. Many of the programs I write for my laptop and other computers using Debian will work without any change on my Pi. Some do need to be compiled for the Pi, but the source code is still the same for man...
by rpdom
Wed Jun 26, 2013 4:26 pm
Forum: General discussion
Topic: Powered hub and micro USB both powering the pi is it safe?
Replies: 11
Views: 1560

Re: Powered hub and micro USB both powering the pi is it saf

So how do I stop the back feeding though? Either cut open the cable and chop the (usually) red wire and tape it back safely, or open the hub and cut the circuit where the power comes in from the USB from the Pi. The first option is easier and safer and you can always replace the cable if you get it...
by rpdom
Wed Jun 26, 2013 4:22 pm
Forum: Networking and servers
Topic: Bridging
Replies: 22
Views: 4233

Re: Bridging

No problem :) The loopback interface is an internal fake network connection that allows you to connect to services on the local machine without it using any network interfaces. It has the IP address 127.0.0.1 - even Windows has this (although I have heard that it also responds to other addresses on ...
by rpdom
Wed Jun 26, 2013 3:41 pm
Forum: Python
Topic: Download a file in python
Replies: 6
Views: 2390

Re: Download a file in python

I just tried that link with wget on the command line. I had to escape the "`"s as "\`", otherwise it tries to run a command called swdata and put that in the url.

I think you are right that something like urlencode should prevent anything like that happening.
by rpdom
Wed Jun 26, 2013 3:36 pm
Forum: General discussion
Topic: Powered hub and micro USB both powering the pi is it safe?
Replies: 11
Views: 1560

Re: Powered hub and micro USB both powering the pi is it saf

I thought v2 didn't have fuses, is there a way to stop this the backfeeding, and another question how much power for raspbian's GUI? The Rev 2 (and late Rev 1s) didn't have the polyfuses F1 and F2 on the USB power outputs, but all Pis have F3 on the microUSB power input. Feeding power in anywhere e...
by rpdom
Wed Jun 26, 2013 11:18 am
Forum: Networking and servers
Topic: Bridging
Replies: 22
Views: 4233

Re: Bridging

That sounds like what I said? The bridge just joins wlan1 and eth0 together with the same IP adddress and calls them both br0 instead. Your script that currently routes internet traffic from AP or modem to wlan1 would need to route to virtual port br0 instead and the traffic would go to both wlan1 a...
by rpdom
Wed Jun 26, 2013 8:03 am
Forum: General programming discussion
Topic: LED on boot
Replies: 8
Views: 1868

Re: LED on boot

Ah, didn't realise you wanted it to go off again.

Do as SteveSpencer just said, but put a "sleep 2" between the two bits of code to make it stay on for 2 seconds (or longer if you wish), otherwise it will blink so quickly that you won't see it ;)
by rpdom
Wed Jun 26, 2013 7:33 am
Forum: General programming discussion
Topic: LED on boot
Replies: 8
Views: 1868

Re: LED on boot

Connect it with a resistor to one of the GPIO lines and ground. Then put the following in /etc/rc.local (just before the "exit 0" line) # I'm using GPIO 4 (pin 7 of connector P1) as an example echo "4" >/sys/class/gpio/export echo "out" >/sys/class/gpio/gpio4/direction echo "1" >/sys/class/gpio/gpio...
by rpdom
Wed Jun 26, 2013 6:57 am
Forum: Networking and servers
Topic: Bridging
Replies: 22
Views: 4233

Re: Bridging

Let me get this straight then. wlan0 is your your internet access. wlan1 and eth0 will be your local LAN. You want to bridge wlan1 and eth0 together and route external traffic from them to wlan0. Is that right? Based on that, I reckon your 'etc/network/interfaces should look like this: auto lo iface...
by rpdom
Wed Jun 26, 2013 6:07 am
Forum: Beginners
Topic: Boot into PuTTY automatically
Replies: 10
Views: 3358

Re: Boot into PuTTY automatically

I use "screen" as a simple serial terminal. That isn't its primary function, but can be used as one quite easily and as I have it installed anyway I don't need to install something else as well.
by rpdom
Tue Jun 25, 2013 6:41 pm
Forum: Networking and servers
Topic: Bridging
Replies: 22
Views: 4233

Re: Bridging

You seem to have a confused mix of routing and bridging. Do you want to set your Pi up as a router or a bridge? A router connects two different networks with different ranges of IP addresses together and often uses masquerading to make it appear that all computers on one network seem to be using the...
by rpdom
Tue Jun 25, 2013 3:11 pm
Forum: Python
Topic: Python date and Sql Query
Replies: 9
Views: 1107

Re: Python date and Sql Query

Oh, I see. You really wanted to only get times that are now or later, not as you said "remove any rows with a date that is in the past". Sorry, misunderstood you :(
by rpdom
Tue Jun 25, 2013 2:50 pm
Forum: General discussion
Topic: I found the DATASHEET!!!
Replies: 11
Views: 1408

Re: I found the DATASHEET!!!

klricks wrote:
mrpi64 wrote:and what if we dont have an account on element14??
Google is my friend and your friend.......

http://www.raspberrypi.org/wp-content/u ... herals.pdf
So is reading the earlier replies. That link has already been mentioned twice in this thread :)
by rpdom
Tue Jun 25, 2013 12:50 pm
Forum: Networking and servers
Topic: Bridging
Replies: 22
Views: 4233

Re: Bridging

To use ifup and ifdown, you need to configure the bridge in /etc/networks/interfaces. I tried this on a Debian PC once (worked perfectly). If I remember, the interfaces file was something like auto lo iface lo inet loopback iface eth0 inet manual iface wlan0 inet manual auto br0 iface br0 inet dhcp ...
by rpdom
Tue Jun 25, 2013 12:41 pm
Forum: Media centres
Topic: Convert Mpeg2 to Mpeg4/h.264 [SOLVED]
Replies: 7
Views: 3304

Re: Convert Mpeg2 to Mpeg4/h.264

As far as I'm aware there isn't a video encoder that makes use of hardware accelerated h.264 encoding so if anything you'll be in for a long wait, however if you insist on using the Pi then you can install ffmpeg via apt-get. Personally I would just download a copy of WinFF (ffmpeg front-end) on yo...
by rpdom
Tue Jun 25, 2013 11:56 am
Forum: Troubleshooting
Topic: TTYUSB0 - directory not found
Replies: 8
Views: 13115

Re: TTYUSB0 - directory not found

pluggy wrote:You can't use ls on /dev/ttyUSB0 even if it is there, because it isn't a directory - its a device which masquerades as a file.
Of course you can. It'll just display the name of the file.

Code: Select all

pi@raspi:~$ ls /dev/ttyUSB0 
/dev/ttyUSB0
pi@raspi:~$
by rpdom
Tue Jun 25, 2013 11:41 am
Forum: Beginners
Topic: Safe Removal / Detach / Eject of external HDD
Replies: 3
Views: 3056

Re: Safe Removal / Detach / Eject of external HDD

Its the same error I got when running the eject on its own: pi@RaspberryPi ~ $ sudo umount /dev/sda1 && sudo eject /dev/sda eject: unable to eject, last error: Invalid argument Strange... However the umount seems to have worked (wait a few seconds, then check with df or mount), so it should be safe...
by rpdom
Tue Jun 25, 2013 11:29 am
Forum: Python
Topic: Python date and Sql Query
Replies: 9
Views: 1107

Re: Python date and Sql Query

Something like

Code: Select all

DELETE FROM trains WHERE traintime < NOW();
Assuming 'traintime' is stored as a datetime or timestamp field.
by rpdom
Tue Jun 25, 2013 11:12 am
Forum: Beginners
Topic: Safe Removal / Detach / Eject of external HDD
Replies: 3
Views: 3056

Re: Safe Removal / Detach / Eject of external HDD

Have you tried

Code: Select all

sudo umount /dev/sda1 && sudo eject /dev/sda
Note the "1" on the first command, but just the disk name on the second.
by rpdom
Tue Jun 25, 2013 10:44 am
Forum: Media centres
Topic: Convert Mpeg2 to Mpeg4/h.264 [SOLVED]
Replies: 7
Views: 3304

Re: Convert Mpeg2 to Mpeg4/h.264

omxtx is what you want. It is usable , but still rough at the edges. Thank you ghans, that was exactly what I was looking for. I didn't realise it was fully functional yet. I grabbed the source, compiled it without any problems and converted a file to test it. A 45 minute video took 26 minutes to c...
by rpdom
Tue Jun 25, 2013 7:38 am
Forum: Raspbian
Topic: Latest Iceweasel
Replies: 28
Views: 8355

Re: Latest Iceweasel

We won't need to wait that long. It will be in the repo as soon as plugwash is happy that it hasn't got any serious problems. There doesn't seem to be any point in documenting a process that will be done by 2 or 3 people only once, and once you get to know how to find files in a Debian repo layout i...
by rpdom
Tue Jun 25, 2013 6:00 am
Forum: Raspbian
Topic: Latest Iceweasel
Replies: 28
Views: 8355

Re: Latest Iceweasel

There should be no need for a How-To once the file is in the Raspbian repository. It should be a simple case of apt-get update followed by apt-get install iceweasel, or just apt-get upgrade if it is already installed. I doubt later versions will be included for some time, unless the Debian Devs add ...

Go to advanced search