First Interview

After doing a fun technical test for DCDM Consulting, I got qualified for an interview with the HR department. One of the interesting question that was

A bear moves 1 km south, 1km east and 1km north. It returns to the place it started. What is the color of the bear?

Back to the interview, she asked me whether to do the talking in English or French. Without hesitation said English. But I stumble not because I was tensed I need to start watching English serials again. Big Bang Theory anyone?
The questions that put me in the key:

If one day you miss your deadline, everyone is very angry at you. How would react?

I was like WTH!?  o.O 
I don’t know the way they work. The atmosphere there. The reason of it. I said I’d apologies. I feel so stupid. lol.

What are your strength and weaknesses?

 
It’s such an embarrassing question. The whole time it’s me flattering myself. Now they tell me to say something against me. Hahaha.
Anyways, I’ll not be going to have an internship or part-time job (at least for now) with them because they are recruiting people to work with them from 8:30 to 17:00 for 6 months. Plus OVERTIME! 
The schedule doesn’t fit me especially i have to do my final year project/dissertation.
And BTW, the coffee they offered was awesome 😀

Making a “Responsive” Blog

It turned out to be a quick and fairly easy job considering the fact that it’s the first time I’m paying with @media screen stuffs.

Changing the main divs’ “width” to “max-width” did magic. The blog was like 75% responsive already.

- width: 1000px;
+ max-width: 1000px;

Then comes the most tedious part: fine tuning the interface.

response3

After wards, trimming margins, paddings was necessary to maximise the precious pixels on mobile devices.

@media screen and (max-width: 430px){
#container {
   padding: 3px:
}

.article {
   margin: 0px;
}
}

response2

I still need to work on the side boxes. Still undecided what info would mobile uses want to see. I guess time posted should go above the article and the tags/categories below. It might be a challenge to do this one.

The New My.T set-top box (Orange Mauritius)

liveboxwrapping

Got the new My.T tv set top box. The wrapping looks cool. But the real box is like this.

liveboxtrue

The image quality is same as before. Yep. No HD. The maximum setting supported is 1080I, not 1080p.

The channels are unwatchable on high definition. The sound becomes choppy.

Navigation from the remote control has considerable lag.

liveboxremote

It is not now that Orange will be providing good service. The device is a really low end one. Don’t get excited about it. Switch to bees if you want to try something else.

Automatic Server Deployment with Git/SSH

Uploading your files to servers is a pain. I was using git-ftp previously. But i wanted to use a pure git protocol coupled with ssh.

Copy your existing working directory to your server in lets say /var/www to be served as web; make sure it contains a .git folder.

on your local machine:
git remote add myserver nayar@example.com:/var/www/.git

on your server:
cd /var/www
git config receive.denyCurrentBranch ignore
mv ./.git/hooks/post-update.sample ./.git/hooks/post-update
chmod a+x post-update

modify the contents of ./git/hooks/post-update as follows

#!/bin/sh
GIT_WORK_TREE=/var/www/ git reset –hard

The setting up is over. Lets test if it’s working:-

on your local machine:
Make some changes to your local files
git commit -a -m 'changing file x'
git push origin master

The files on your server should have been updated accordingly 😉