Monday, October 31, 2011

Network On Ubuntu disabled (Solved)


Suddenly network on my ubuntu laptop got disabled due to poweroff on battery discharge. 
I searched at various places in menu but didnt get how to work it out.
Thanks to following link from google, Network recovered.
 from Ubuntu Geek

If your network manager is not working, and says unmanaged, or Networking disabled in ubuntu 10.04 try this fix
Open the terminal from Applications menu -> Accessories -> Terminal run the following commands
service network-manager stop
rm /var/lib/NetworkManager/NetworkManager.state
service network-manager start

Only thing here is I didnt need to reboot to make it work. it just workd.

Thursday, October 27, 2011

Ubuntu : Splitting big files in smaller parts using Rar and Joining back(solved)

I wanted to send a big ~40MB doc file via email to a friend. but as we know, there is limit on size of attachment which is 2MB-20MB, varies across different email providers.

I tried to compress file using zip, targz, but size changed minutely. So I remembered some of downloads I get in form of multiple rar files and which get into single file on uncompressing.

I was on ubuntu, I knew thing work smoothly on windows with WinRAR but never uses such thing on linux. I always used zip, tar.gz.

After quick search on google,  I got the thing.

Installed rar on ubuntu using;

sudo apt-get install rar

sudo apt-get install unrar ( though unrar is not needed)


To compress file(s) to split rar archive know which directory you want to compress, I used /home as an example

rar a -m5 -v5M -R myarchive /home/

Let me break the above command down

rar - starts the program
a - tells program to add files to the archive
-m5 - determine the compression level (0-store (fast)...3-default...5-maximum(slow))
-v5M - determine the size of each file in split archive, in this example you get files with size 5MB (if you wanted files of 512kB size you would write -v512k)
myarchive - name of the archive you are creating
/home/ - is folder of the files you wish to add to the archive 



This worked pretty well for me. but now reverse part was tricky. I tried unrar x *.rar. it didnt work.


someone suggested on forum to use "e" option, so I did

rar e part1.rar


and this single command, picked up remaining 3 parts. and formed original file in a moment.

same works with

unrar x part1.rar

while



  • unrar x *.rar doesnt  work.  I think first part itself has meta information about other rar parts.




















Saturday, October 22, 2011

Online Bike Insurance renewal for lapsed policy


The is piece of information I would like to share is, in quick:

If your bike insurance is lapsed and you want to renew it, you can do it online using ICICI Lombard.  - 


I am proud owner of Honda unicorn, which I bought in 2004, first big purchase from my own hard-earned money. I lost my insurance papers somehow and was got caught by police twice and got fined.

so I was desperately looking to renew it, when I enquired with friends and with bajaj, they said I have to go to local insurance office to get it renewed as policy is lost or expired. However after long search, I couldnt find insurance office nearby.

But luckily I had information about my last policy, like  date at which it expires and policy number.

ICICI lombard & bajaj offers online renewal.

I tried to do it thru bajaj first but I got stuck somewhere it between and asked to approach local office.

Then I decided to try ICICI lombard, It has very painful user interface, compare to Bajaj allianz, but it did
serve my purpose, I just keep giving information on each page, finally It shown me my premium amount.

https://www.icicilombard.com/motor-insurance/two-wheeler.cms

and was asked to pay. Online payment flow also has trick, they dont have Axis bank listed (I think due to competition)  which forced me to use my credit card to pay amount.

and after few moment I got my policy in pdf format, they said , they will send hardcopy to my address but they didnt sent it , still waiting for it.
As of Now, I am using print out of soft copy of insurance.


One of my friend it was costly. but for me, Getting Insurance is biggest thing, Now I can drive freely anywhere in city.

I did third-party insurance for Rs. 730, my bike is 7 years old.

Yahoo!!!

Saturday, October 15, 2011

Random Thoughts



 Sandip More 

Really how many of 40M users who subscribed of G+, actually using it?
 Sandip More 

Google killing buzz, jaiku, code search...What will happen to the Curious case of Google +? - Netizens asking!
 Sandip More 

Are all facebook users can now be called as socialites?
 Sandip More 

New Social Networking thing has redefined, original meaning of Social!
 Sandip More 

Can you call a person working for any social service like Facebook - Social Worker? :)

Wednesday, October 12, 2011

Mac - MySQL - CodeIgniter - Issue (Solved)

My CodeIgnited just stopped working with New MySQL server installed on Macbook, Osx 10.5.


following blog post+some my own tricks, saved my lots of effort to make it work.


Mysql & php configs were missing from system, earlier my system used to work with MAMP.


I copied my-huge.cnf (as my m/c has more than 1G ram) to /etc/my.cnf from /usr/local/mysql/support-files/


I copied existing /etc/php.ini.default to /etc/php.ini and did following changes.




http://drupal.org/node/46300


The version of PHP that Apple included with Mac OS X 10.4.4 has mysql.default_socket set to "/var/mysql/mysql.sock", before it was "/tmp/mysql.sock". They change it for some security reasons I believe.
The binary version of MySQL from mysql.com use "/tmp/mysql.sock" so one has to change.
I choose to make PHP look for "/tmp/mysql.sock" by setting this in /etc/php.ini.
; Default socket name for local MySQL connects.  If empty, uses the built-in
; MySQL defaults.
mysql.default_socket = /tmp/mysql.sock
I also tried to go the other way by setting this in /etc/my.cnf.
#Name of the socket file to use.
socket=/var/mysql/mysql.sock



Wednesday, October 05, 2011

Linux Mint 10 - Sound problem (Solved)

We have installed Linux Mint 10 on one of our machines, I chose Linux Mint because its based on Ubuntu and had impressive UI.

but after sometime, got complaint that sound is not working on it. then I rememberd my year long struggle during my college days to make sound working on Redhat-Athlon machine of mine, which didnt work.

Today no one was using m/c, so I just gave a try to make it work. and it worked.

Here is how.
I searched on google..after frantic search for 10-15 minutes. I got following link
Linux Mint Forum - Sound problem

I followed advice from someone called  "mads"

1. Run
$ cat /proc/asound/modules'
The output shows the modules.
0 snd_intel8x0
1 snd_hda_intel


2. Add the following lines at the end of your alsa-base.conf file:
# The next two lines prevent my sound modules from switching
options snd_intel8x0 index=0
options snd_hda_intel index=1
Save and exit. Reboot to make changes take effect





Use AlsaMixer to adjust volume.







for me
$ cat /proc/asound/modules gave
  1 snd_hda_intel


2nd step i followed as it is.
alsa-base.conf is resides in /etc/mod-probe.d/ 


I rebooted  m/c and login welcomed me with Sweet Startup Sound!
lekin picture abhi baki hai mere dost.. I played a song in mplayer and it didnt work. 


I thought I might need to do something extra. but just pulling headphone jack out and putting in solved the problem.


Music is now enabled on Linux Mint 10.




















Super Cool - Dynamic Templates from Blogger

Classic
Super Cool
Super fast Search
I am super awed by kind of superb innovation produced by Blogger.

It just neat and clean!

It just gives Wow Feeling!