Wednesday, August 8, 2012

Browser console as a shell (or how to test code in a browser)

Recently I was asked by a friend to write a batch file that generates one thousand dummy email addresses of this format: nX@some.com (where X is a number from 1 to 1000). I could've of course write a batch file, or open a Linux shell in a virtual machine (I work on a Windows box). But being a web developer, the closet place where I can execute code is of course the browser console.

Thursday, November 17, 2011

I'm an Engineer!

Haven't posted for a very very long time, but this one deserves at least a tiny post. This blog's subtitles changes from A software engineering student's blog to A software engineer's blog. Yepee!

Friday, December 11, 2009

C# rocks or how I made the Shmorgif Animator

The other day I was looking for a free tool to make .gif animations. I haven't found anything free worthy of using, so I figured I might as well write my own with the features _I_ would like to see in a simple gif animator.

Monday, November 30, 2009

ADXL345 accelerometer breakout board + Arduino and Processing

Some time ago I've purchased an ADXL345 accelerometer breakout board from SparkFun.com. After some searching and datasheeting (that's an awful term, I know :D), I've finally came up with code, which will allow me to talk to the accelerometer using my Arduino and even pass the data on, to Processing (it's a fun language, covered in my previous post)



In this post I will cover the setup for the communication procedure between the ADXL345 and the Arduino and then, between the Arduino and Processing (ie your PC). All the sources are at the bottom of the post, as usual. (Code is now updated for Arduino 1.0.4)

Tuesday, November 24, 2009

Programmer and Artist? (Processing and pixlr.com discovery)

Very long time passed since my last post. Since then I have discovered more than a few interesting things but some of them will have to wait as I'm not yet proficient enough to elaborate on those. I'm going to devote this post to something that is close to my heart as an ex-animator and as a programmer - computer generated art (and relevant tools)!

Thursday, July 23, 2009

Simple PHP socket-based terminal chat

Some time ago I decided it would be interesting to write an extremely simple PHP terminal chat to try out PHP's sockets and the socket_select() function usage. If you're not in to reading, feel free to skip to the samples and/or the sources ;)

What is a socket_select() (or *_select() for that matter) you ask?

Friday, May 15, 2009

Copying programming homework

Before I start telling you the story which led me to write on this topic, I feel I'm obligated to reveal the main idea of this post:
In order to copy programming homework, you mustn't be a dumb fuck. (And a few ways to avoid being one)

And now the story. I have a colleague (let's call him John) at work who also checks programming courses homework at my college. Our college is really harsh about students copying programming homework (you can xerox algorithms homework, but programming is a big no-no).