Go to advanced search

by scruss
Mon Jan 15, 2018 10:42 pm
Forum: General discussion
Topic: Pocket Projector
Replies: 12
Views: 18049

Re: Pocket Projector

somebody was playing with a DLP lightcrafter 2000, but we never heard if it worked
by scruss
Mon Jan 15, 2018 8:34 pm
Forum: Python
Topic: (SOLVED)How to add concatenation
Replies: 12
Views: 201

Re: How to add concatenation

I'd use replace instead, since it's only one item in a list that you'd need to change: join = ':supra!~supra@192.168.200.100 JOIN #python-unregistered' join=join.replace("JOIN", "/JOIN") join = join.split(' ') [1].split('0') print(str(join)) Your code returns a list, btw; to get just the string you ...
by scruss
Mon Jan 15, 2018 8:20 pm
Forum: Troubleshooting
Topic: Raspbian + FFMPEG compile. ERROR: Too many open files. stop
Replies: 6
Views: 91

Re: Raspbian + FFMPEG compile. ERROR: Too many open files. stop

I cannot find ffmpeg! How can I fix this? /etc/apt/sources.list deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi You're running an old version of the Raspberry Pi OS. Current is Stretch. You can upgrade by changing all mentions of 'jessie' to 'stretch' in /etc/apt/s...
by scruss
Mon Jan 15, 2018 6:42 pm
Forum: Other projects
Topic: PI DCF77 simulator
Replies: 7
Views: 140

Re: PI DCF77 simulator

It's WWV and not DCF77, and it uses the SBC that dare not speak its name here instead of a Raspberry Pi, but NTP to time signal has been done: n8vi/pru-dds
by scruss
Mon Jan 15, 2018 6:34 pm
Forum: Troubleshooting
Topic: Raspbian + FFMPEG compile. ERROR: Too many open files. stop
Replies: 6
Views: 91

Re: Raspbian + FFMPEG compile. ERROR: Too many open files. stop

It does not find anything in the repos. Something wrong with your repo setup or connection. This is me: $ sudo apt install ffmpeg Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: libavdevice57 libsdl2-2.0-0...
by scruss
Mon Jan 15, 2018 5:18 pm
Forum: Gaming
Topic: C64 for Raspberry Pi 3 download link
Replies: 10
Views: 641

Re: C64 for Raspberry Pi 3 download link

Perhaps best to ping them on their blog — fluxlizard hasn't been active here since November.

It's based on RetroPie, and it has different versions for Raspberry Pi 3 and other Raspberry Pi boards. It may not work on a Zero.
by scruss
Mon Jan 15, 2018 5:11 pm
Forum: Python
Topic: (SOLVED)How to add concatenation
Replies: 12
Views: 201

Re: How to add concatenation

Python's str.join is a bit weird. You call it as a method of the separator string, and it takes an interable (so, extra brackets required):

Code: Select all

>>> "/".join(("this", "that"))
'this/that'
>>> "".join(("foo", "bar"))
'foobar'
The second one is equivalent to saying "foo" + "bar", which also works.
by scruss
Mon Jan 15, 2018 4:59 pm
Forum: Troubleshooting
Topic: Raspbian + FFMPEG compile. ERROR: Too many open files. stop
Replies: 6
Views: 91

Re: Raspbian + FFMPEG compile. ERROR: Too many open files. stop

ffmpeg 3.2.9-1 is in the repos:

Code: Select all

sudo apt install ffmpeg
Personally, I wouldn't attempt a large build like ffmpeg on a Raspberry Pi.
by scruss
Sun Jan 14, 2018 7:00 pm
Forum: Other languages
Topic: Installing newer version of NodeJS on Pi 3
Replies: 43
Views: 36168

Re: Installing newer version of NodeJS on Pi 3

The best way I have found to install node.js is to use the Node Version Manager, nvm, as mentioned above. Seems kind of a long way around compared to the official method, Debian and Ubuntu based Linux distributions — curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - sudo apt-get instal...
by scruss
Sun Jan 14, 2018 6:51 pm
Forum: Troubleshooting
Topic: Problems connecting Macbook directly to pi
Replies: 2
Views: 56

Re: Problems connecting Macbook directly to pi

If they're both on the same wireless network, disconnect the ethernet cable from your Mac and try:

Code: Select all

ssh pi@raspberrypi.local
by scruss
Sun Jan 14, 2018 5:56 pm
Forum: Raspbian
Topic: pcmanfm changed ??
Replies: 3
Views: 116

Re: pcmanfm changed ??

Yep, that changed in December. Blog post about it (and how to change back) is here:
Stretch for PCs and Macs, and a Raspbian update - Raspberry Pi
Your old config files will likely be in ~/oldconffiles/.config — it's kind of a pain the way those files get moved without asking.
by scruss
Sat Jan 13, 2018 6:51 pm
Forum: Troubleshooting
Topic: [SOLVED] BMP085 - how to set altitude?
Replies: 45
Views: 8066

Re: [SOLVED] BMP085 - how to set altitude?

That library really should have some better setup code, though. Barometric pressure sensors are typically used in either fixed station mode (where you want to measure variable air pressure for a known elevation) or mobile mode (where you want to measure elevation based on known weather conditions). ...
by scruss
Fri Jan 12, 2018 4:23 am
Forum: General discussion
Topic: Converting
Replies: 6
Views: 271

Re: Converting

It's an open collector output, so that's the maximum voltage/current it can sink. It's not the voltage you see across it. So you don't need any level conversion. If you connect it to a GPIO pin with the internal pull-up resistor enabled, the port will read normally HIGH, dropping to LOW when a coin ...
by scruss
Wed Jan 10, 2018 5:06 pm
Forum: General discussion
Topic: pi zero w in quantities of 10...50
Replies: 62
Views: 1906

Re: pi zero w in quantities of 10...50

W. H. Heydt wrote:
Mon Jan 08, 2018 4:47 pm
Interesting that they are selling the Pi0W for essentially the same price as the A+.
Don't forget that those are priced in CAD. An A+ goes for about $30 here.
by scruss
Wed Jan 10, 2018 4:58 pm
Forum: User groups and events
Topic: Monthly Toronto Meetup
Replies: 0
Views: 73

Monthly Toronto Meetup

Hey, the Toronto Raspberry Pi meetup is this Thursday, hosted by Seneca@York Centre for Development of Open Technology — Hack, Learn, and Share on Raspberry Pi

Now that there's direct subway service to York University, getting there and back will be a lot quicker and cheaper.
by scruss
Mon Jan 08, 2018 3:15 pm
Forum: AIY Projects
Topic: AIY VOICE KIT ENCLOSURE
Replies: 4
Views: 240

Re: AIY VOICE KIT ENCLOSURE

There's this one, in laser-cut: https://www.thingiverse.com/thing:2432776
by scruss
Mon Jan 08, 2018 3:14 pm
Forum: AIY Projects
Topic: laser cut case
Replies: 10
Views: 2122

Re: laser cut case

Hey Sean, is this your finished design? https://www.thingiverse.com/thing:2432776
If so, nice work!
by scruss
Mon Jan 08, 2018 3:07 pm
Forum: Other projects
Topic: Making a Polaroid style camera
Replies: 1
Views: 85

Re: Making a Polaroid style camera

I don't recommend receipt printers for photos. They are very low resolution and black and white. They also fade. You might want to look at a Fujifilm Instax printer, or something that uses Zink technology like the HP Sprocket . A slightly larger option would be one of the Canon Selphy units. Instax ...
by scruss
Mon Jan 08, 2018 12:51 am
Forum: Troubleshooting
Topic: problems with CIFS and Synology NAS
Replies: 6
Views: 208

Re: problems with CIFS and Synology NAS

CIFS are no more difficult to use than NFS, Dougie. I don't have a lot of users (maybe me, plus one other) and CIFS just works with Linux, Mac and Windows. CIFS, while a bit slower and not nearly so good about file permissions as NFS, handles disconnections quite well. Under certain circumstances an...
by scruss
Sun Jan 07, 2018 2:33 am
Forum: Troubleshooting
Topic: problems with CIFS and Synology NAS
Replies: 6
Views: 208

Re: problems with CIFS and Synology NAS

I find that I can't mount CIFS shares from my Synology NAS on Raspberry Pi unless I add the vers=3.0 option
by scruss
Sat Jan 06, 2018 10:16 pm
Forum: General discussion
Topic: Can't pair HC06 with my Raspberry pi 3.
Replies: 6
Views: 200

Re: Can't pair HC06 with my Raspberry pi 3.

You don't need sudo with bluetoothctl.

Try the show command. If it shows

Code: Select all

	Powered: no
then you need to issue the power on command.

This thread should help with setting up rfcomm - viewtopic.php?f=28&t=163712
by scruss
Sat Jan 06, 2018 9:59 pm
Forum: Beginners
Topic: Print raw data to label printer from python2 not working as expected.
Replies: 6
Views: 165

Re: Print raw data to label printer from python2 not working as expected.

… I see that it only prints when I exit python. If I get it to print 6 different labels, they ALL come out together when I exit the script. That's because exiting the script closes the lpr spool job, and everything sent to it is then printed. If you want to print individual labels, you'll need to m...
by scruss
Sat Jan 06, 2018 5:31 pm
Forum: Beginners
Topic: Print raw data to label printer from python2 not working as expected.
Replies: 6
Views: 165

Re: Print raw data to label printer from python2 not working as expected.

Yeah, came here to suggest something similar:

Code: Select all

lpr = subprocess.Popen(["/usr/bin/lpr", "-l" ], stdin=subprocess.PIPE)
-l is the same as -o raw

and hey, thanks for the intro to ZPL, yet another page description language!
by scruss
Fri Jan 05, 2018 3:50 pm
Forum: Beginners
Topic: Newbie, cannot get a Hellow World to run. please help
Replies: 13
Views: 426

Re: Newbie, cannot get a Hellow World to run. please help

Please give us the results of this command: ls -l /home/pi/Public/C_Programs Geany's warning about Invalid Working Directory “/home/pi/Public/C_Programs” makes me think that folder doesn't exist. You can fix that with: mkdir -p /home/pi/Public/C_Programs Have you tried Geany's File → New from templa...
by scruss
Thu Jan 04, 2018 3:08 am
Forum: Beginners
Topic: Newbie, cannot get a Hellow World to run. please help
Replies: 13
Views: 426

Re: Newbie, cannot get a Hellow World to run. please help

rhubarbdog wrote:
Wed Jan 03, 2018 12:15 pm
Geany is buggy.
‘citation needed’, as the kids today might say. While I don't like it as an IDE, it works for the small projects I throw at it.

Go to advanced search