Akoz li pa ti pe fouti tousse sali mama!
Category: Uncategorized
First Interview
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?
If one day you miss your deadline, everyone is very angry at you. How would react?
What are your strength and weaknesses?
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.
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;
}
}
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)
Got the new My.T tv set top box. The wrapping looks cool. But the real box is like this.
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.
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 😉