a thoughtful web.
Good ideas and conversation. No ads, no tracking.   Login or Take a Tour!
comment by harryjames
harryjames  ·  4136 days ago  ·  link  ·    ·  parent  ·  post: Why everybody wants a slice of Raspberry Pi

Can anybody here tell me from experience if the Rasperry Pi is right to learn a little about programming? I have all the resources to learn but I just need a clean slate, are these for me? As the link shows they are very popular but I dont know...





user92  ·  4136 days ago  ·  link  ·  

If you're trying to learn beginner programming I would not recommend starting with embedded devices. Even though the Raspberry Pi is much more than just an embedded device, it still presents some of the same challenges. If you have access to a PC then start there. Personally, I recommend Python but that's just my preference.

harryjames  ·  4136 days ago  ·  link  ·  

The point is, it doesnt really matter if I break a Pi I suppose. Which I probably will...

user92  ·  4136 days ago  ·  link  ·  

You won't break anything with beginner programming. In fact, you usually won't actually break anything with any programming.

speeding_snail  ·  4135 days ago  ·  link  ·  

Depends on which programming language you are using. I started out with C/C+ + and I have had to restart my PC many a time because of memory leaks. I don't think that messing some stuff up is hard in C. However, as long as one keeps away from vital parts of the OS, nothing will go wrong with the basic stuff.

harryjames, you can also set up a virtual machine on your PC. That way you can break all you want in the OS and learn a bit about the underlying OS. If you want to start out with programming and later move on to a pi (which is great fun btw), I recommend creating a virtual machine with something like Linux Mint or Debian since these linux distros are similar to Raspbian (the default RPi OS).

harryjames  ·  4135 days ago  ·  link  ·  

Thanks for the advice! Unfortunatlely my pc isn't usable, and hasn't been turned on in a few years. Will maybe give it a chance to redeem itself.

speeding_snail  ·  4135 days ago  ·  link  ·  

Maybe just run linux directly on the PC then? Just for the heck of it :P

harryjames  ·  4136 days ago  ·  link  ·  

I ruined an Xbox original trying to connect it to my phone, then dropped my new one. I can break... anything.

kleinbl00  ·  4136 days ago  ·  link  ·  

I suspect that so long as you steer clear of the GPI header for a while you're likely to be fine. It's only once you get into control voltages that smoke can be let out in programming.

dublinben  ·  4136 days ago  ·  link  ·  

You can run your python in a virtual machine or live instance of Linux.

user92  ·  4136 days ago  ·  link  ·  

If you're at the point where you're using Python to interface your X-Box and phone, you're past the beginner stage and all bets are off.

kleinbl00  ·  4136 days ago  ·  link  ·  

I've been watching them for about four months now; one of them did NOT end up under the tree probably because demand is so insanely high.

Look at it this way: the cost of entry is stupid low. If you try it out and it isn't for you, sell it to me - I need to build an XBMC client and the rPi looks perfect.

speeding_snail  ·  4135 days ago  ·  link  ·  

The only thing I have against XBMC on a rpi is that it turns out to be really slow and you need to buy additional codecs if you want it to work the way you intended it. Then again, I have a first generation RPi with 256mb RAM. The second generation has 512mb of ram. That might work better.

kleinbl00  ·  4135 days ago  ·  link  ·  

That's good to know. I've wondered what my best solution is.

My back-up plan is to turn it into a photoframe for some of the left over LCDs I've got sitting around... how does it work as a photo server?

speeding_snail  ·  4135 days ago  ·  link  ·  

I think that it could work. The problem isn't in response times when doing light tasks like showing pictures. You could even remove Xorg and just use framebuffers if I am not mistaken. Photo server could work if you can find the right software. I don't know if samba is too heavy for a RPi to be honest.

kleinbl00  ·  4135 days ago  ·  link  ·  

This is the part where I mention that the programming languages I know are BASIC, Fortran and TPascal.

None of them well.

speeding_snail  ·  4135 days ago  ·  link  ·  

All really needed to create a picture frame is a little hacking on the LCD and use of software which has already been written, like feh combined with X11 as a display server. There will not be too much programming involved. Mostly bash scripting to get the components to behave correctly and some tweaking on the OS itself. Do you have experience with linux?

kleinbl00  ·  4135 days ago  ·  link  ·  

My experience with linux is in command line hacks on OS X and installing knoppix on a dead PC in order to rebuild a ZFS RAID5 array in man-down formation in order to rescue my data. Which is not to say I wouldn't like more because Apple is swirling the bowl. I've got a Macbook with a near-dead hinge that I intended to Ubuntu up but I've been busy.

Kinda seems like my best move would be to buy one and fuck around. Yes?

speeding_snail  ·  4135 days ago  ·  link  ·  

Seems that way. The cost of entry is quite low and it is great fun.

ZFS on linux? That is a new one for me.

kleinbl00  ·  4135 days ago  ·  link  ·  

It was a thin client that ran embedded linux on a board. Plugged directly into the IDE port. BIOS would boot, hit the thin client on the first IDE port, and the embedded linux would take over. Cheapest, easiest way to build a herkin' NAS back before anyone was building NAS. I had 5 250GB drives back when 250GB drives were $200 per.

And it provided ZFS, which everyone thought was badass, so I built the NAS ZFS. Because, after all, the thin client wasn't going to take a shit so why worry?

Then the BIOS on the mobo took a shit and took the thin client with it.

I had to build a fucking PC just to get my data out of it. Last time I ran RAID5 lemme tell ya.

speeding_snail  ·  4135 days ago  ·  link  ·  

Guess I'll be going for 2 separate disks then when setting up my next server (when I finally get to that).

kleinbl00  ·  4135 days ago  ·  link  ·  

RAID1. It's all about RAID1. Or RAID10 if you're nasty.

ButterflyEffect  ·  4136 days ago  ·  link  ·  

XBMC is a wonderful thing. Actually, I believe a rPi was used in our apartment to set that up.

kleinbl00  ·  4136 days ago  ·  link  ·  

I've got Plex running on a Mac Mini. Problem is, when you're running both the head and the server on one device you lose efficiencies.

...and when your Mac Mini was new in 2007 you start tripping over your 1080P.

an rPi XBMC head seems like a delightfully tinkerish method of resolving the problem.

cle  ·  4135 days ago  ·  link  ·  

Maybe you should consider upgrading your mac Mini to a later ~2010 model then!

Performance is no issue on these machines because Plex' GPU hardware decoding implementation of the 320m is really, really good.

You can play back a full bitrate 1080p Bluray rip with < 10% CPU usage and get plenty of headroom for other stuff in the background (multiple other PMS transcoding sessions, unpacking, etc). Add a small SSD and that HTPC/Homeserver-machine should last until 4k gains traction.

The rPi is just too slow for high quality playback. OpenELEC comes pretty close and out-of-the-box HDMI-CEC is amazing, but the bad performance ultimately ruins the whole user experience for me.

kleinbl00  ·  4135 days ago  ·  link  ·  

Yeah, I've been thinking of that, too. But when your choices are "$35" or "$699" "$35" looks pretty appealing.

harryjames  ·  4136 days ago  ·  link  ·  

If I can get one that is! Just try and get your hands on a Original and chip it, they like wheat thins online.

kleinbl00  ·  4136 days ago  ·  link  ·  

Newark has them:

http://www.newark.com/jsp/search/productdetail.jsp?SKU=43W53...

MCM has them:

http://www.mcmelectronics.com/product/83-14421&scode=GS4...

I know the tweakers like to pretend that you can't buy them anywhere and they're rare as hen's teeth but when you can buy an f'ing BUD box for them they're mainstream:

https://www.google.com/shopping/product/2077489186435993825?...

EDITED to reflect that I'm so sleep deprived at the moment that I didn't even notice I contradicted myself in 10 minutes. What can I say - I'd been following /r/raspberrypi but it wasn't until I typed "raspberry pi" into Google that I discovered that really - the things ARE NOT RARE.

harryjames  ·  4136 days ago  ·  link  ·  

Thankyou so much! Will be putting in an order soon.

Jodjuya  ·  4136 days ago  ·  link  ·  

Carl H's programming lessons are a very good place to learn. Start with the basics before you move onto embedded systems.

kleinbl00  ·  4136 days ago  ·  link  ·  
This comment has been deleted.