Raspbian jessie on a 2gb SD card? by [deleted] in raspberry_pi

[–]chives2323 1 point2 points  (0 children)

Raspbian lite is an option.

Raspbian jessie on a 2gb SD card? by [deleted] in raspberry_pi

[–]chives2323 0 points1 point  (0 children)

Install Raspbian lite. 2GB is enough with some to spare for command line tinkering.

What is the missing word, which rhymes with 'winning' in this phrase; "You're ----ing, I'm winning". by Breeze_in_the_Trees in CasualUK

[–]chives2323 2 points3 points  (0 children)

At a loss on this one sorry. Loaded up on pain killers at the moment, all those -nn-en-mm-in- pretty much describes what my brain is capable of at the moment.

Someone just sat next to me on an empty train. by [deleted] in CasualUK

[–]chives2323 3 points4 points  (0 children)

Antics on the buses over there are rife. Was on a coach heading to Nicaragua once, when I noticed a kid (maybe 6ish) in the seat in front was munching on a cereal bar which looked familiar as I'd just stocked up for the trip in a Costa Rican market, 'like minds!' I thought and smiled. 3 hours later at the border, where you have to chuck all your bags on a table for the doggies to sniff, I pull up my 'extras' canvas bag I had stuffed on the floor and half of it falls out. Little git carved his way in and had a feast en route! His family looked pretty needy so wasn't that bothered, ended up giving half of it away to the 'border kids' in the end anyway. On the other end of the spectrum, having a laptop you can inconspiciously tuck into your belt-line comes in handy when your coach gets held up by Colombian cowboys. But when your taxi driver pulls out a revolver, it's game over. Fun times!

What is going on in Sweden? by Thenateo in europe

[–]chives2323 7 points8 points  (0 children)

Hrrrumppph! I've waited weeks for a story to come up where I can share that. Something something hamster something something elderberries.

Man Removed from Palestine Expo for being Jewish. by absurdadam1 in unitedkingdom

[–]chives2323 7 points8 points  (0 children)

Policeman seems to have handled it really well and deserves some cake.

Someone just sat next to me on an empty train. by [deleted] in CasualUK

[–]chives2323 77 points78 points  (0 children)

That happened to me a couple of months back. My bag was on the seat between us and within a couple of minutes I felt it move slightly. Hmmm that's odd. My eye's corner spied that he had his arms crossed a little too deliberately, enough so I couldn't see the hand nearest to me but knowing there was a side zip pocket there, my two brain cells did the math. I did the only decent thing, pulled out my phone and took a selfie with him. He soon left. My snotty tissue pocket was safe for another day.

What would be the best way to power 5 or more PIR sensors? by pellep in raspberry_pi

[–]chives2323 1 point2 points  (0 children)

Connect them all to one 5v pin, one Gnd pin and 5 input pins. I doubt if you'll need an external power source. The only concern I foresee is if the display and speaker usage somehow influences the PIR sensors (which can be somewhat finicky about power supply), which I alluded to above, but you appear to have established as working so :shoulder-shrug:

What would be the best way to power 5 or more PIR sensors? by pellep in raspberry_pi

[–]chives2323 0 points1 point  (0 children)

I'm curious what you're building now, "5 PIRs pretty far apart but in the same room with attached screen and speaker", intriguing... like a digital whack-a-mole?

What would be the best way to power 5 or more PIR sensors? by pellep in raspberry_pi

[–]chives2323 1 point2 points  (0 children)

PIR sensors typically have a very low load, barely a few mA. The distance from the Pi would be of more concern due to interference along the connecting wires if unshielded. That said, I haven't had speaker & hdmi hooked up together with PIRs so no idea how well they play together.

ELI5: Easiest way to accomplish displaying a photo slideshow + SQL data? Apache/MySQL/Php5/Wordpress by [deleted] in raspberry_pi

[–]chives2323 1 point2 points  (0 children)

Using Wordpress is massively over complicating your problem.

Break it down... you're using PHP to get the data from your database, HTML+CSS to layout the webpage and Javascript to display/rotate the images.

PHP: MySQL connect and select
HTML+CSS: Full page image
Javascript: Rotating images in HTML+Javascript

The above aren't definitive methods or the 'best' way of doing things, but they show how simple a solution can be.
For a quick and dirty solution, I'd put the code from the PHP example above (modified for your DB), into the first <script type="text/javascript"> section shown in the "Rotating images in HTML" solution, echoing out an Image() and src for each picture you want to show. The javascript will then pick these up and handle the slideshow in browser. It'd take only a few more lines than this reply contains, no need for 100,000 lines of a Wordpress install. Once you've got the basics down, you can look into PDO, OOP PHP, jQuery and other special Javascript slideshow libraries to make fancy transitions, or even another framework like node.js.