I have been looking for a way to enabling network inside virtualbox so that I can access it from anywhere thus being able to run various services inside virtual environment, trying out anything without any worries.
Here’s a simple how-to borrowed from archlinux wiki
Install bridge utils for creating bridge and uml_utilities for creating a tun device
pacman -S bridge-utils uml_utilities
Open the file /etc/udev/rules.d/60-vboxdrv.rules and add the following line to it
KERNEL==”tun”, OWNER=”root”, GROUP=”vboxusers”, MODE=”0660″
Then type the following command to load the tun module
Now, let’s setup a bridge device to bridge network from your physical network interface to the virtual one
- Create a bridge interface
brctl addbr br0
- Set your interface in promiscous mode so it can accept packets from any interface
ifconfig <interface name> 0.0.0.0 promisc
- Now, bridge the bridge interface with the real network interface
brctl addif br0 <interface name>
- Now set the bridge interface to acquire IP address as your physical network interface would. eg if eth0 is your network interface and it acquires IP via DHCP then
- And finally add virtualbox host interface
VBoxAddIF vbox0 <VirtualBox user> br0
Now start VirtualBox and go to network settings. Select network interface as ‘host networking’ and interface device as ‘vbox0′.
Now you need to give an unused IP address in your IP range of the internet gateway. If you cannot provide that due to some reason then what you can do is create a virtual interface say eth0:0 then bind bridge network to that interface and setup NATing to pass packets between virtualbox and external network.
The countdown to CAT 2008 has begun, just 2 weeks to go. This being my 3 rd attempt at CAT, have been some of the things that I have learnt along the way. There is no silver bullet or a magic potion that works for all. It's a journey of self discovery. Some things that follow may work for you, some may not and some may not work but still help you find what works for you. The important thing is to realise what ticks for ourselves and what doesn't.
So, here's my take on CAT preparation during the final 2 weeks
1) Solve CAT level papers regularly. Previous years CAT papers make a good choice for practising but anything that matches the level of CAT can be considered worthy.
2) Review the paper that you solve. This is a very important step that people seem to miss out. It's important to solve papers but it's even more important to review it after solving the paper. It helps you not only to solve questions better but also to gain overview on how to prepare strategy to solve the paper, understand your strengths and weaknesses and also time yourself.
3) Understand your strengths and weaknesses. By this point in time you should be familiar with what you are good at and what you are not. It is more important to spend time understanding your strength and weaknesses then trying to learn new things at this stage. Learning new things may not help much if you are not familiar with your strength and weaknesses as you may not be able to formulate the right strategy.
4) Study in moderation. People tend to step up their study schedule to cram in as much as possible during the last one month. But, what has worked better for me is gradually stepping it down a couple of gears in the final 2 weeks.
5) Relax on the day before the exam. For last 2 years have never studied for more than 2 hours on the final day. I prefer to relax and refresh my mind to be all prepared for the exam pressure next day. I plan on doing the same this year too. But, be careful. Don't over exert yourself to get to the point of tiring yourself mentally or physically. That may keep your from having peak concentration levels. Also, avoid caffeine and alcohol or any substance that gives sends you into a low after small period of high, as the high may not sustain throughout till you finish the CAT paper.
6) Practise relaxation techniques. Practise whatever relaxation technique you like – meditation, imagery, breathing, etc. I tend to prefer imagery personally but other things may work for you. It's not about which technique you use but the result you achieve. It's important to come fully relaxed for CAT and channel your nervous energy in a positive direction.
7) Eat properly. Yeah most of us find it difficult to maintain a good diet and avoid unhealthy food. But, it is important to eat right food. It helps you keep in proper frame of mind and feel active to last through the paper. And eating right reduces your chances of falling sick. That would be a disaster, won't it?
Get ready. I prefer to start preparing all your material to carry for the paper, atleast a 3 before CAT so as to avoid any last minute running around. Also, I pay a visit to the exam center atleast a week before examination to get myself familiar with the place and it's surrounding and note down any special/unusual things that I may have to go through.
9) Study with friends I like to prepare while sitting with friends for the last couple of weeks since it creates healthy competition among us and try to achieve higher. Also, sitting together helps us analyse each other to find points which we would have otherwise missed. Also, some nice fun together during breaks gets you ready to take on further preparations.
10) Believe in yourself. Rest of the things all amount to nothing if you fail to believe in yourself. If you believe in yourself, rest should surely be much easier and should fall into place.
If you have your own ideas, points of views, suggestions please share it with us. I'd be happy with valid criticisms in my methods too.
Let me narrate 3 nice experiences with pdf on Linux while at work
1) Merging multiple PDF files
gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOUTPUTFILE=filename.pdf file1.pdf file2.pdf……..fileN.pdf
2) Convert ps to pdf
ps2pdf file.ps file.pdf
3) Compressing PDF files.
4) Convert images to PDF
convert image1.jpg image2.gif image3.tiff…….imageN.xyz filename.pdf
Seeing a friend giving directions to another friend on how to reach the given location, over twitter made me realise all over again as to how much we can achieve using such simple and relatively cheap technologies available to us today. A GPRS enabled mobile phone and a twitter account is all that was needed in this case to make it possible.
This is just the tip of the iceberg. With more websites and applications coming up with various interactive contents and cell phone with never before heard of features & ultra portable laptops coupled with internet on the move, we are all set for a big change in ease and style of communication. It can now happen in absolute real time, at lower cost. But, unlike previously it need not be one to one anymore. The cost still remains the same if it is for a group or for one on one interaction. At the same time service providers stand to gain as they have more subscribers subscribing to such services.
To top it all, India is already getting ready for high speed Internet connectivity on the move with technologies like wimax, evdo and 3G. Once those technologies perpetrate to the masses we will be able to have world wide video conferencing while travelling in a local bus or train.
What we really need is technologies like wimax to reach the remote parts of our country to realise the true potential of these technologies. We have all been dreaming and speaking of the day when the technology will be advanced enough to make any kinds of communication – audio, video, real time, delayed, private, group, one-to-one, open to public and so on. The technology to change these dreams to reality is here. But, there are 4 areas that need to be worked upon:
1) Reaching critical mass
2) Right implementation for the right people through proper segmenting and need-based product/service customisation
3) Ease of use and good interface
4) Adequate security
As always this development will have both positive and negative impacts but technology has to evolve and people will adapt to it.
It is going to be great to see this unfold in front of us. The dynamics of communication are changing – the cost of communication is going down and the user has choice to make on appropriate mode of communication to select.
I had to urgently view a MS Word file but I didn’t have a word processor on my system to view it in, KWord2 beta wasn’t able to support MS Word files. And I couldn’t find any small word processor or the one that wouldn’t being a gnome and a half in with itself. So, I decided to explore the CLI way.
I came across this nice article on how to view MS Word files on CLI. One of those softwares which I tried out is antiword, as it seemed most suitable to my purpose. A nifty utility to download and use while Oo.org takes it’s sweet couple of hours.
Another nice thing is that it can be used when you don’t have X running or if you’re connecting via SSH.
Viewing the file in antiword is as simple as typing
Though it has a few options to format stuff via parameters, I don’t need them. But, they can be quite useful for some purposes.
Pipe the document through a pager and nicely sit and enjoy reading your MS Word document over Command Line Interface.
My thoughts on the software – simple, easy to use and makes life easy when all you want is to view simple text from a MS Word document. What I miss the most in the software is the ability to open odt files
Here's a nice catchy line from a certain article in Economics Times
in the time that it took Bangalore to build its Indira Nagar flyover, Beijing got ready for the entire Olympics
So, quite explains the pathetic attitude of some of the government organisations in India.
Read the article "The way to double-digit growth" on Economic Times Website.
Mumbai felt the tremors again on 17th September 2008 at around 3:15 a.m.
This is the second earthquake to rock Mumbai within last four months. The earthquake which shook the region today was much higher than the previous one, somewhere in June. It was not felt by many people as it occured in the middle of the night and there's been no extensive damage around my area.
Checking around the locality and with my friends, those awake definitely felt the tremble.
As per my guesses the earthquake should be higher than 5 on richter scale. Eerily it has already been predicted to occur today. Though the scale seems to be magnified, the accuracy of the timing and location, as well as the prediction of high intensity of the quake makes one wonder if it's just a co-incidence or is there some real sense behind the theory.
Keep a lookout for the newspaper in the morning for the intensity of the quake, the epicenter as well as the damage caused. Should get some bytes from a few people on their experiences of the quake in the media, today.
Will update the post with the details as and when they are revealed.
Magnitude of the quake was 4.7
Time when it occurred at the epicenter was 3:17 a.m. IST
The location of epicenter was 205 kms SSE of Mumbai.
Heh! Please don’t mistake me for one of those LHC guys. No, I am not talking about planets as in heavenly bodies which reflect lights from the stars but have give out no light on their own. I am talking about planet as in a feed aggregator.
So, let’s get started up.
Then untar the file if you downloaded the tarball.
tar -xpvf planet-xx.tar.bz2
Now untar the planet tarball and install the planet files eg.
tar -xpvf ~/planet-2.0.tar.bz2
Now we need to configure the config.ini file in fancy directory to get started quickly. If you wanto take your time
Look at the file, it’s nicely commented you should have no problem at all in configuring it to your tastes, believe me. It’s too easy.
I set my output directory as
output_dir = /var/www/localhost/htdocs/planet
cp -R examples/output/* /var/www/localhost/htdocs/planet
This will place all the output files in the planet and the second command will copy the images folder and css file to the DocumentRoot so your page renders well.
Now to generate the output
Now you can install the planey.py and planet-cache.py to /usr/bin using setup.py so that you can run it via cron
./setup.py config && ./setup.py install
0 * * * * /usr/bin/planet.py /home/user/planet-2.0/examples/fancy/config.ini
Now open up your web browser and point to localhost/planet. Of course you need a web server running on localhost to try this out.
To show your image, put it in /var/www/localhost/htdocs/planet/images
Happy journey. Enjoy the feeds on your own planet!
BarCampMumbai is back again. The same venue, different format.
BCM4 is happening on 4th-5th October 2008 at IIT Powai. Yeah, you read it right it's a 2 day event this time around. There are some other changes too, for better and for worse – as you see it. This time around only way to get to the barcamp is to get involved. You can either volunteer for helping manage the event or you can register as a speaker. A good thing for me as I already wanted to give a shot to volunteering but was a bit late last time around.
You can register for volunteer at Volunteer's Page or register your session in Registration Document.
There's also a logo competition running at BCM this time around for all you creative people.
Venue:- SJMSOM, IIT, Powai, Mumbai
Date:- 4th to 5th October 2008
To get news and updates about all the happenings till the countdown clock ticks you can