News for hackers. Stuff that matters.
Re:Show HN: Weekend project - Powerful Webserver on Tiny Har... by lgeek on Saturday July 27, 2013 @11:44AM (#6113303)
I was expecting the 'tiny hardware' to be some microcontroller. A dual core Cortex A7 @ 1 GHz with 1 GB of RAM is comparable in performance with lower spec VPSes that many people use to host personal websites/blogs. I guess the author was refering to the physical size.

[strike]I'm interested where to get a cubieboard2 for $50 since it is sold for $59 by the manufacturer.[/strike] No source of cheap cubieboards. :(

Re:Show HN: Weekend project - Powerful Webserver on Tiny Har... by VierScar on Saturday July 27, 2013 @11:49AM (#6113320)
I have used micro-controllers, but hosting a webserver on one of them would be a mission! I'm not sure, but I would've thought majority of shared hosting providers have much higher CPU, RAM and ethernet speeds?

When I said "about $50" I did mean about $50 - I'm from Aus and my friend got it for me (+shipping) for over $70AUD - I don't keep track of money that exactly.

Re:Show HN: Weekend project - Powerful Webserver on Tiny Har... by adduc on Saturday July 27, 2013 @12:09PM (#6113395)
There's a whole community built around making the most out of restricted server resources over at http://www.lowendtalk.com/ . People very regularly utilize virtual servers with 64MB of RAM, 10mbit or less network, and very minimal disk space. Nginx will run with just about anything you throw at it.
Re:Show HN: Weekend project - Powerful Webserver on Tiny Har... by lgeek on Saturday July 27, 2013 @12:20PM (#6113438)
> I would've thought majority of shared hosting providers have much higher CPU, RAM and ethernet speeds

They do, but when you rent a VPS you're essentially getting to use that hardware in timeslices (and you only get a part of the RAM). Depending on provider, the percentage of time your VM is active (and so it gets to use these resources) is either enforced by the hypervisor, is a result of fair scheduling between clients sharing the hardware, or a combination of both.

I don't have Cortex-A7 hardware to benchmark and compare the CPU speed with VPSes, but I think it should be close to lower end offerings. 1 GB of RAM is usually not even the lowest offering, e.g. DigitalOcean[0], prgmr[1].

[0] https://www.digitalocean.com/pricing [1] http://prgmr.com/xen/

Re:Show HN: Weekend project - Powerful Webserver on Tiny Har... by Spittie on Saturday July 27, 2013 @02:52PM (#6113972)
>but I would've thought majority of shared hosting providers have much higher CPU, RAM and ethernet speeds?

Not always - for example I have one VPS with 64mb of ram, on a shared 1gbit line, and one with 128mb of ram on a shared 100mbit line.

I use them for TT-RSS (nginx + php-apc + php-fpm + postgresql), a self-hosted image uploader (nginx + php-fpm), ZNC and an Irc Bot.

You'd be surprised by how few resources nginx (and similiar, like lighttpd) uses.

Re:Show HN: Weekend project - Powerful Webserver on Tiny Har... by anujanpan on Saturday July 27, 2013 @12:10PM (#6113400)
Re:Show HN: Weekend project - Powerful Webserver on Tiny Har... by lgeek on Saturday July 27, 2013 @12:23PM (#6113453)
The author is describing a cubieboard2, which is $59: https://cubieboard.myshopify.com/collections/home-slide/prod...
Re:Show HN: Weekend project - Powerful Webserver on Tiny Har... by VierScar on Saturday July 27, 2013 @02:06PM (#6113800)
No - Only cubieboard1 with the A20 - I believe the cubieboard2 has gigabit ethernet and wireless.
Re:Show HN: Weekend project - Powerful Webserver on Tiny Har... by lgeek on Saturday July 27, 2013 @02:17PM (#6113829)
No, cubieboard and cubieboard2 are identical apart from the SoC. Both use RTL8201CP as an Ethernet PHY, which only supports 10/100 mbps. Neither has WiFI.
Re:Show HN: Weekend project - Powerful Webserver on Tiny Har... by cabirum on Saturday July 27, 2013 @01:35PM (#6113687)
This is how the body font looks on Windows/Chrome: http://i.imgur.com/98RCkzv.png
Re:Show HN: Weekend project - Powerful Webserver on Tiny Har... by VierScar on Saturday July 27, 2013 @09:20PM (#6115159)
That looks horrible! Sorry - I trusted it because it's from Google's Web Fonts... :/ I'll work on finding a few better fonts that work across platforms better. Thanks for letting me know.
Re:Show HN: Weekend project - Powerful Webserver on Tiny Har... by michaelwww on Saturday July 27, 2013 @03:07PM (#6114016)
I turned ClearType off and it looks like that too. All text looks better with ClearType on. I don't know why it's not the default setting.
Re:Show HN: Weekend project - Powerful Webserver on Tiny Har... by Spittie on Saturday July 27, 2013 @02:46PM (#6113936)
Where are you hosting it? From your home connection?

For anyone interested, there are several[1] provider that provide free or cheap raspberry pi colocation. I'm almost sure that they wouldn't have a problem colocating a cubieboard (or similiar) if you shot them an email.

Regarding performance, I'm sure a raspberry (which is less powerful thana cubieboard) is more than enough to serve static pages, and even dynamic pages if your site doesn't get a lot of hits.

[1] http://raspberrycolocation.com/, http://www.micron21.com/raspberrypi-colocation.php, http://www.edis.at/en/server/colocation/austria/raspberrypi/, https://www.google.com/search?q=raspberry+pi+colocating

Re:Show HN: Weekend project - Powerful Webserver on Tiny Har... by VierScar on Saturday July 27, 2013 @09:16PM (#6115140)
Wow I had no idea about colocation - seems pretty cool!

Yeah I'm hosting it from a home connection, and it's hosting dynamic content - even though it could just be made static I wanted to test it - using php and hitting redis - looks like it works pretty well!

Re:Show HN: Weekend project - Powerful Webserver on Tiny Har... by AYBABTME on Saturday July 27, 2013 @12:22PM (#6113446)
If you want Go without Perl, compile it from source. It's a 2 min story. You checkout the latest stable branch and :

   cd src/
   ./all.bash   # takes maybe 2 min on my laptop, dunno on a small board
Then set your $GOPATH and add `bin/` to your path. Then scrap PHP. Then scrap nginx. Then just use Go.
Re:Show HN: Weekend project - Powerful Webserver on Tiny Har... by illicium on Saturday July 27, 2013 @11:48AM (#6113316)
This is nothing out of the ordinary, but the Cubieboard platform caught my eye. I like that it has SATA, making it especially suited for server/NAS type applications.
Re:Show HN: Weekend project - Powerful Webserver on Tiny Har... by arb99 on Saturday July 27, 2013 @11:32AM (#6113248)
Re:Show HN: Weekend project - Powerful Webserver on Tiny Har... by VierScar on Saturday July 27, 2013 @11:35AM (#6113267)
Cool - I need a tool like this. Is there one which doesn't require me to sign up though? It's annoying registering so many accounts :/