All in vain

Some rants about technology, PHP, people, tools, web etc from a developers perspective. Feel free to copy ideas, code or anything from here.

Showing posts with label linux. Show all posts

Thursday, October 09, 2014

running grunt cli shows nothing on ubuntu 14

If you are running ubuntu and you followed some tutorial which lists first step in the installation of nodeJS you might have run

sudo apt-get install node

and when you tried to do your basic hello world this would have failed with the console reporting missing NodejS binary. The reason being on ubuntu NodeJS is called nodejs and there is another legacy program called node. You must run the following commands to ensure GruntJS works fine:

sudo apt-get --purge remove node

ln -s /usr/bin/nodejs /usr/bin/node

grunt -v

Now you should be able to run Grunt without any issue!

Friday, November 17, 2006

Using GNU Netcat to access your POP3 mail account

This summary is not available. Please click here to view the post.

Tuesday, November 07, 2006

Converting Youtube flash videos to MPEG and extracting audio

Recently i was asked (rather commanded ;) ) by my friend to search for her favorite song. Well this song is by Jennifer Paige ("beautiful" OST Autumn in New York). I searched realy hard but could not find it. Then Finally i found a video on Youtube. Apparently this song was used as the background score of that video. So my mission was to get the audio-track from this video.

First of all you need to grab the video from youtube. Make sure you save it with .FLV extension. Now you are ready to go.
  1. Convert this flash video to mpeg format.
    ffmpeg -i video.flv -ab 56 -ar 22050 -b 500 -s 320x240 test.mpg (check out google for more options)
  2. Extract Audio from this MPEG video
    ffmpeg -i test.mpg -vn test.wav
  3. Convert this WAV(PCM audio) to MP3 format
    toolame test.wav test.mp3

A few notes about the above command. I have Xubuntu and i have ffmpeg and toolame encoders installed. You should use appropriate package managers to install them for you. Also i haven't had the time to play around with quality settings, i think it could have been done even better. So if you know a better process please do let me know.

Wednesday, November 01, 2006

Ubuntu 6.10 Edgy Eft released

It seems i am late on this, but wtf. I have been on ubuntu for almost 6 months now. Well not actually ubuntu but xubuntu. Since my PC is an old one, i am not able to use the latest KDE. So i installed XFCE as my desktop manager, its light and it works(TM) . The latest version of ubuntu promises to be much more polished and efficient.

From the site i can see that it has a lot of new features, like the newer init system. It seems upgrading it is not advised but some people have reported that it went ok for them. I think i would do a full install instead of the upgradation because i have experimented heavily with my current version and i just need to take a backup of my home dir and htdocs directory and i am good to go.

Now some caveats, from what i have read it seems the newer ubuntu has replaced bash with dash as their default shell. Some people are complaining about this issue and we have to just wait and watch for the repercussions.

Friday, October 20, 2006

I love Wine

Before you jump to any conclusion, let me clarify things a bit. The wine i am talking about is the wine program (Wine is not emulator) and it does leaves a good taste in your mouth. I was reading up on running wine on linux and i thought maybe it is a good idea afterall. While the installation was a no-brainer (I am on ubuntu and synaptic rocks!) and to install some app you need to find the setup file and open it with wine program.


In ubuntu, a new context menu item is added and i can right click on a "set.exe" file and select "run with wine". Anyways i could see it was emulating "c:\\program files\" and maybe there is some hidden registry file too. Well all in all it was intelligent enough to place a link to that app on my desktop. The first app i installed was 'gtalk' but it didnt work out that good. It was missing the buttons and i could only see the text boxes. Maybe i would look into them when i get more time. Then i tried Ultraedit editor and it did install good. Heres a screenshot to that!


Ok so it did go smooth, now i am on my way to install winamp and some other apps i liked on Windoze. Now you would be tempted to ask why did i install ultraedit instead of using linux editors like kate or bluefish. The thing is i like kate but it is not as refined as ultraedit. And even if this sounds lame i like it so you who cares if its a windoze app.

Cheers