Sublime text 2 current path (plugin development)

Just a quick tip to find your sublime text 2 current path. If you ever find yourself writing a sublime plugin and want to get the current path, DO NOT use os.getcwd , it just doesn’t work, and returns your system32 windows path. Instead, you should use the following method supplied by the sublime api to get the path to the packages folder, and then append to it the name of your package, and you’re good to go:   hope this spares some hours of frustration.

Posted in Uncategorized | Leave a comment

7 reasons to join mashroo3i contest next year

We were first place winners in mashroo3i this year (2012). It was the contest’s first year version. As previous winners, here are some motivational points for you to encourage you to participate next year. It’s totally worth it 1. It’s more than just a contest If you’re gonna join mashroo3i because you want to win the contest, don’t participate. Mashroo3i is more than just a contest. It’s a whole new experience. It’s something that you don’t get exposed to everyday. We usually see successful companies Around us and wonder how they did it all. Well now you get to try “starting” … [Read More]

Posted in Uncategorized | Leave a comment

My experience with job interviews

Over the past few months I’ve had the chance to go to a handful of job interviews. Some of those were really good, others not so good. Overall I’ve been trying to analyze the questions and techniques used to interrogate test the applicants. Note that I’m talking about programmer/software developer job interviews, so it might slightly differ from any other job role. So there are many books and articles discussing Job interviews, why am I doing this again? Well somebody needs to act like a smartass and re-invent the wheel, right? Also, none of the analysed information in this article is guaranteed … [Read More]

Posted in Not code, Uncategorized | Leave a comment

Why I quit my job

update we won first place in the contest!!!!!! We bought the trophies home with us! I quit my job last week. You’re probably wondering: did I even get a job in the first place? Actually yes. I had a job as a JavaScript programmer for a telecom company, but they also had me do some PHP later on. Work was fun!!!!!! And you probably wonder again : why did I quit after a month? Why did I quit my job! Well several reasons. And that’s exactly what this post is about 1- working for somebody Working under someone might have its … [Read More]

Posted in Uncategorized | 3 Comments

sql injection tutorial for beginners

DISCLAIMER : Breaking into websites and doing damage is a bad thing, do not use the information in this article for destructive purposes. I am not accountable for any damage that may occur due to the information supplied in this article. You can do SQL injection for fun Okay so the other day I was just derping on this website, when suddenly, I noticed the Url was something like: http://www.vulnerablesite.com/promotion.php?id=1 And so I’m like, let me check and see if it’s vulnerable to SQL injection. So I modified the URL to something like: http://www.vulnerablesite.com/promotion.php?id=1′ or ’1′=’0 And what do you know, it … [Read More]

Posted in Security, Tutorial | Tagged , , , , , | 4 Comments

Ubuntu: Transfering files using openSSH

For some reason, I wanted to transfer files from a remote machine using SSH. I wanted to use the default SSH client that comes with Ubuntu , which is openSSH. Actually, to transfer files between two machines, BOTH machines should have an SSH server program (I think), and ofcourse, at least one should have an SSH client. A part of the file transfer command got me confused, so i’m sharing this with you. 1 – Connecting to remote host The first step is of course, connecting to the remote host. Go ahead and type the following command: and ofcourse, enter the … [Read More]

Posted in Uncategorized | Leave a comment

Jquery: Text spanned checkbox

I’m not sure what they call this, but it’s best shown with a demo. See here. The upper one is what I want to achieve, the lower one is a bad bad pampered child. I’m not sure if there’s an easier way of doing this, but I achieved this effect using a small JQuery script. The markup The markup is just a form with a checkbox. But we added a <span> around the checkbox to be used by the script. Any checkbox with this span element will have the same effect. Put this between your <body> tags The CSS You don’t … [Read More]

Posted in JQuery, Tutorial | 2 Comments

Vista Web browser connectivity problem

A couple of days ago, my dad’s laptop ran into a browser connectivity problem. Well it turned out being a rather common problem in windows vista — as I later came to know. The problem simply stated is: although the machine is connected to the Internet, browsers and some other applications are unable to display pages and content. I know it’s connected because when I try to ping websites, the ping succeeds! Rather frustrating! And it’s funny because the application is already added as an exception in windows firewall. The solution that worked – Removing Norton So we have a blocked … [Read More]

Posted in Troubleshooting | 10 Comments

OOP in Javascript using MooTools

Why? I’m not an expert JS coder/frontend engineer, but I’d love to be one someday. Maybe for some smaller programs, modular programs with split apart functions might work. But alas, this may not be the case in larger scale programs. I noticed this while working on my senior project. Things may be nice and good on the small scale, but as they get larger, it gets less nice. It doesn’t get nice at all. The problem is that sometimes one writes functions that have nothing to do with the overall program, but act like “helper” functions to other functions … or … [Read More]

Posted in Uncategorized | 7 Comments

Discovering hidden talents

The views expressed in this article are not based on any scientific research or facts, but are rather random ramblings and rants expressing my inner thoughts, the same thoughts that have been disturbing me for the past 19 years. Everybody has a talent of their own, but the real challenge lies in discovering this talent. One would think that education systems should help students in discovering those talents and deciding on what they’d rather be doing for the rest of their natural lives. On the contrary, I’ve seen colleagues of mine (computer science majors) who would rather be accountants, some better … [Read More]

Posted in Not code, Uncategorized | 3 Comments