PHP Mcrypt on Mac OS X 10.10.3

I have PHP 5.5.20 on my local machine running Mac OSX 10.10.3 and it's located at /usr/bin/php. I decided to use Laravel and saw that it depends upon a lot of things. The biggest issue was install Mcrypt for PHP. This was solved by…

AVR LED patterns (asm)

So, I made a couple of code samples with assembly. Basically I have 8 leds connected to PORTB and I need them to perform different patterns. Here're are some of the code samples I created to implement them. /* * ATmega2560_ledsamples.asm * * Created: 6/1/2015 4:33:25 PM * Author…

AVR LED Blink (asm)

LEDs connected to PORTB on ATMega2560 (or any other chip for that matter). Sink the LED instead of source. What does that mean? Have the positive of LED connected to VCC instead of connnecting it to the pins of the microcontroller. You don't want the LEDs pulling current from the…

AVR Revisited (Assembly)

AVR asm is going to come in handy pretty soon. I might need it to create a bootloader in the upcoming months. Here's a quick review. AVR Registers are 8bit registers and are 32 in number. They go from R0 to R31. Out of which only registers from R16 to…

Lessons through Car

I have a 2000 Honda Accord EX 3.0L V6 and I am in love with it. At the moment I am not working so money is tight but I do anything I can in order to make sure the car is in good condition. It's a Honda and so…

Server Hardening using UFW & other mods

UFW or UncomplicatedFirewall is a very simple and as the name suggests a firewall manager. It's great in restricting and allowing traffice. I used this to block certain ports and open other. It's straightforward. You just use the syntax allow and deny like so pronoyc@machine:~$ sudo ufw default deny…

AVR revisited (The basics)

I am revisiting AVR C for various reasons and I have decided to write it down in my notebook (my blog) everything worth remembering. First things first, I don't like working on Windows when I code and I am generally working on my Mac when I am in the zone…

New Look

I got bored with Mutiny and I decided to look for something more. I found KISS and I decided that it was a good look. It has a proper 2 column set which I like. It uses Prism by default which is great. Here's a small test import csv # write…

Django multiple settings files

I remember while working at my previous job as python developer, the question on how to organize Django Settings for multiple users used to come up often. The thing about using a good IDE (yaay pycharm) is that it helps you circumnavigate such trivial issues. But it's good to do…

Experiments with Avahi and Python-Zeroconf

I finally got it working today. So I used Avahi to announce the services I had running on the Beaglebone Black. I had a flask server running just to test it out. Here's the code: from flask import Flask app = Flask(__name__) @app.route('/') def home(): return "Hello…

Spaceship update.

I am not going to be using Unity2D for the project. It's very very ambitious and I don't know enough C# to actually do something about it. So I am going back to the basics and going to attempt it in JS. Phaser.io to be precise. I hope this…

Build me a spaceship

I was planning on making a top down game after my Pong adventure, on Unity2D but then I decided to combine this adventure with my love for spaceships. What I think I'll do is, create a FTL like game with multiple levels, one on top of the other. I can't…

Game Development on Unity2D

I've always held the opinion that a good game can make your career. I also feel it's the true test of a programmer's ability. There are so many aspects that you need to take care of, so it truly requires a lot of thought. I have been trying to create…

[Dev Log] Python Kivy: Part 1

I am trying to get a hang of Kivy, the cross platform Python UI kit. It looks stable and there are some really good examples out there. The good thing about this particular project is that when they say crossplatform, they mean cross platform. That's got me real excited. I…

[Dev Log] Knock : Part 5

Serial on an 8 bit controller is hard to grasp. Especially if you're working in C. I mean you've got to take care of memory etc. So yeah, it's a bit annoying. No wonder Arduino was born. But hey, after much tinkering I finally did crack the code, so to…

[Dev Log] Knock : Part 4

AVR USART So I've been working with AVR USART today and I talked to some of the guys on #avr on freenode. Turns out _BV() is not a good way to do things. It was a hack apparently that was used by people before GCC was fixed. I didn't get…

[Dev Log] Knock : Part 3

So I am lazy and I like working on a linux environment. Don't get me wrong I love the Atmel Studio, it's got a lot of stuff, it's easy to use and it's got a great programming/debugging tool. But command line has its own charm. So here I explore…

[Dev Log] Knock : Part 2

So today I did two things. I set up the local server and I also soldered an ATTiny2313 onto a protoboard. The amazing part is that I got the board working the first time around. I was concerned for a while, how I did that. If it works the first…