Physics and Programming. Welcome to my blog :)

Physics! :)

Subscribe (RSS)

It is your choice to help the NSA


Written by Shuhao on 2013-07-23 03:01

Recent revelations about the NSA spying on everyone has caused many people from the tech community reconsider the state of the information security. I have spent time over the past months discussing and thinking about this with many people and I want to offer my thoughts on the subject.

There are already many reports about the NSA's actions and about the implications of PRISM. Therefore I will refrain from doing the same here. Instead, I want to focus on the people who are involved (which happens to be everyone).

>> Continue Reading

Ohai Mozilla!


Written by Shuhao on 2013-05-18 12:17

Ohai Mozilla! As of about March this year, Mozilla decided that I was cool enough to join their awesome team in Mountain View, California as a summer intern. I still can't really believe that this is happening, even as I sit in an airport waiting for my flight to Chicago (and then San Jose).

I never actually seriously thought about working in the tech industry this summer until some of my friends suggested that I should apply for the hell of it. A special shout out to @ryanseys as he gave me the idea of applying to Mozilla (who knew they hired, right?) (disclaimer: he is a Mozillian too!).

I will be interning with the web development team and I look forward to the next 15 weeks! If anyone is in the Bay Area, feel free to give me a shout.

Here's a random shot of the view at the Ottawa Airport

>> Continue Reading

Riak, Leveldb, and the birth of Levelupdb


Written by Shuhao on 2013-04-23 16:00

Time for another exam, so that means another blog post, right? Yeah, I thought so too.

For those of you that may follow me on github (ha! yeah right), you probably know me as a long time Riak user. Personally, I have yet to find a use for something like PgSQL and MongoDB for a lot of the simple projects I've been working on. So far, most of what I have to deal with involves just some sort of KV store with a very simple way to index (Riak calls this secondary index) the data. Furthermore, I host my own apps and they are usually hosted on low end boxes with minimal amount of RAM and CPU, so I want everything to be as lightweight as possible.

>> Continue Reading

Playing with Go (as a Python developer)


Written by Shuhao on 2013-04-05 02:00

It seems like I have gotten into the bad habit of coding and blogging before exams. My first exam is in 12 days and I have barely started studying (actually, I barely know the content).

That aside, I've taken the last few days to learn Go. I've heard a lot of good things from HN and I actually had a reason to use something more efficient than Python.

So I thought I'd try to make a simple 2D video game in Go as a training exercise first before I jump into doing actual projects. Something like Pong or Tank would work well to introduce me to most of the major concepts of a language.

>> Continue Reading

Reinventing the wheel: building funnel


Written by Shuhao on 2013-03-17 21:20

Hackers nowadays are all moving to static pages for their blogs/portfolios. There are several advantages for this approach:

  1. Ease of use: No need to edit in a crappy WYSIWYG editor that generates HTML. Edit directly in a text editor.
  2. Ease of deployment: no need to deploy to a special stack, run a monitoring service, a reverse proxy, LAMP, and all that nonsense. Just get anything that can serve html pages and you're set. Hell, Github even provides you with free hosting!
  3. Ease of scaling: it is probably the case that no one reads your blog during regular hours. However, when you write that one brilliant article and HN decides that they're going to knock on your doors, your server will probably fall on its knees if you didn't scale properly. With a static html site, scaling becomes much easier, especially if you let Github do it for you.

(There are probably other reasons, but this is not the point of this post.)

>> Continue Reading

Hello World!


Written by Shuhao on 2013-03-10 12:50

What is this? A blog? :O

Instead of studying (4 hours before an exam that I'm gonna fail), I got this site to work with the new funnel and got the blog working...

>> Continue Reading

Newer Entries | Page 2 of 2