Sunday, April 8, 2012

Newbie Guide Howto Use PPA Purge

Have you ever upgraded an application via PPA that makes trouble? For example, upgrading Firefox that causes add-ons incompatibility and you want to have your "old" version back? If so, you are in the right place. Today, I'd like to write a post intended for newbie in Linux on how to use PPA Purge. What is PPA Purge? It's an application which lets you to downgrade your installed application to its "original" version from Ubuntu repository. It is like a first-aid-kit when you are going mad encountering many problems after upgrading application from PPA Launchpad.



Installing on Ubuntu
PPA Purge is available in official Ubuntu repository, so you can install it by typing the following command:
  • sudo apt-get install ppa-purge
How To Use PPA Purge
For example, you've upgraded Mozilla Thunderbird from PPA with this command:
  • sudo add-apt-repository ppa:mozillateam/thunderbird-next
To downgrade Mozilla Thunderbird from the above PPA, you should run this command:
  • sudo ppa-purge ppa:mozillateam/thunderbird-next
PPA Purge will automatically remove Mozilla Thunderbird which is installed from PPA and then install the "original" version of Mozilla Thunderbird from Ubuntu repository.

"Unfortunately, I forget what PPA I've used to install the app?" Well, you should make use of "history" command on Terminal combined with "grep" function. Here's the example:
  • history | grep add-apt-repository
The output of the above command is shown below


Now you have a comprehensive list of  "add-apt-repository" commands you've typed on Terminal. They can help you to remember what PPA you've used to install certain application.

Regards :)

Intinya : meng-uninstall repository atau ppa yang kita pasang

source : http://www.ubuntubuzz.com/2012/02/newbie-guide-how-to-use-ppa-purge.html

 

Blocking a Website or domain name on Ubuntu Linux

 

There are lot of softwares available in the market – just to make some websites inaccessible from a computer, possibly for productivity reasons e.g blocking facebook, (facebook is killing productivity ? but I don’t think it’s good way, as I promote free speech, free information and of course,freedom!) or to filter out the sites having contents, which may not be suitable for some users (e.g if you want to block porn sites, to make it inaccessible for kids) or simply to block useless spam sites. Anyway, in this post, you will learn – how to block websites or domains in just a couple of click, without any third party softwares – in an efficient way.

Blocking a website or domain name on Ubuntu

Although, I’m using Ubuntu 11.10, but it should work fine with older (11.04/10.10/10.04..) or newer versions(12.04/12.10..) of Ubuntu, not only on Ubuntu but also on other Linux distributions such as Linux Mint, Fedora, OpenSuse, PCLinuxOS, etc. Just follow the simple steps -

Editing Hosts file using Nano

step #1 : Open a terminal (Ctrl+Alt+t) and execute the following command -

sudo gedit /etc/hosts

OR

sudo nano /etc/hosts

if you prefer command line text editor and it’s more convenient to use in this case.

step #2 : Then add the following line to the file and click on Save (or Ctrl+s) orCtrl+x, followed by ‘y‘ if you’re using nano text editor (one of the most popular command line text editor, like vim)

127.0.0.1               domaintoblock.com

where domaintoblock.com is a sample domain name which you want to block.

step #3 : That’s all, you’re done! Now open a browser and type the domain name (website address) you specified in above step -

domaintoblock.com => Then you will get an error page such as the it couldn’t be connected to the server or the default server page of your local server (if you’ve installed apache2).

If the domain name is still not blocked then try to flush DNS cache using the nscd (Name Service Cache Daemon).

sudo apt-get install nscd
sudo /etc/init.d/nscd restart

That’s All :)

NOTE : The file system directories shouldn’t be writable for the users for which you have blocked the sites, because in that case they can easily revert the changes, so they shouldn’t be in sudoers or super user groups (add those users in somewhat less powerful group).

source : http://blog.sudobits.com/2012/01/13/how-to-block-a-website-domain-in-ubuntu/

 

Referensi command Line FFmpeg ubuntu linux

 

Berikut ini adalah contoh penggunaan dari FFmpeg yang dapat dijadikan refferensi untuk di implementasikan, believe me.. asyik :

Getting Information of video/audio file (mendapatkan informasi dari sebuah file video)

  • ffmpeg -i video.avi
Encoding a video for iPod/iPhone (avi to mp4)
  • ffmpeg -i input_video.avi input -acodec aac -ab 128kb -vcodec mpeg4 -b 1200kb -mbd 2 -flags +4mv+trell -aic 2 -cmp 2 -subcmp 2 -s 320x180 -title X output_video.mp4
Encoding  video for the PSP (avi to mp4)
  • ffmpeg -i input_video.avi -b 300 -s 320x240 -vcodec xvid -ab 32 -ar 24000 -acodec aac output_video.mp4
Penggunaannya  :
source file dan hasil silahkan disesuaikan formatnya (mpeg, flv, others),
    Source : input_video.avi
    Audio codec : aac
    Audio bitrate : 128kb/s
    Video codec : mpeg4
    Video bitrate : 1200kb/s
    Video size : 320px par 180px
    Generated video : output_video.mp4

Extracting Video to Mp3
  • ffmpeg -i input.avi -vn -ar 44100 -ac 2 -ab 192 -f mp3 output.mp3
Convert avi  to mpg
  • ffmpeg -i input_video.avi output_video.mpg
Convert avi to gif (a moving picture)
  • ffmpeg -i input_video.avi output_gif.gif
Menambahkan  sound to a video (dubbing)
  • ffmpeg -i sound.wav -i input_video.avi output_video.mpg
Convert avi to flv 
  • ffmpeg -i input_video.avi -ab 56 -ar 44100 -b 200 -r 15 -s 320x240 -f flv output_video.flv
  • ffmpeg -i input_video.flv output_video.avi
Convert/Compress avi to divx
  • ffmpeg -i video_origine.avi -s 320x240 -vcodec msmpeg4v2 video_finale.avi
Convert avi to mpeg for dvd players
  • ffmpeg -i input_video.avi -target pal-dvd -ps 2000000000 -aspect 16:9 output_video.mpeg

instalasi dan contoh penggunaan dan penjelasan lainnya 

FFMPEG Ubuntu Linux

ffmpeg

 

Instalasi

sudo apt-get install ffmpeg



Fitur dari ffmpeg

  • menggunakan command line ffmpeg (terminal) sebagai tool untuk mengkonversi video. Dapat digunakan sebagai pendukung grabbing dan encoding pada TV card
  • dengan command line ffserver (kebetulan RTSP sedang di kembangkan) dijadikan multimedia streaming server untuk live broadcasts
  • dengan menggunakan ffplay dapat dijadi media player yang sederhana yang didukung library dari FFmpeg
  • menggunakan libavcodec dan libavformat yang mempunyai dukungan yang lengkap.



contoh penggunaan

ffmpeg -i contoh.flv -ab 56 -ar 22050 -b 500 -s 320×240 contoh.mpg
dapat digunakan dengan sebaliknya

  • b bitrate : set video bitrate (default = 200 kb/s)
  • ab bitrate : setting audio bitrate (default=64)
  • ar sample rate : setting untuk samplerate dalam Hz (default44100 Hz)
  • s size : setting untuk gedenya format (Wide x Height) (default 160x128)

 

Sunday, April 1, 2012

This is a guest post by Ramkarthik. You can read more of his tips on blogging and making money online onBlogging Tune.

1. Close Every Other Application

2. Do Research Before Writting

3. Prepare in Schedule

4. Proof Read at Least Once

5. Do Editing till You Satisfied

Do you sit in front of computer for a long time to create a single blog post or article? Does it take too much thinking for you to come up with an effective article? If your answer was ‘yes’ to any of these questions, you should continue to read the post. Whether you are a blogger or a freelance writer or an article marketer, you need to write effective articles quickly. If you are doing one of those as a full time job, you must really use your time properly and try to write more articles in less time. Here are few things you should do when you sit to write an article or blog post.

1. Close Every Other Application

Ever installed any software? Few of them ask you to close other applications when installing it. The same should be followed when you sit to write an article. Close the chat client first. This is probably the one which eats up most of your time. Next, close your email client. Don’t have any other application open, other than your writing software. You should not open any of the applications when you are writing the article. You can open your browser when you want to look for some reference, but close it again as soon as you are done. Don’t check your blog traffic stats, AdSense earnings or anything else as well.

2. Do Research Before Writing

It is always better to do a little research before writing the article. This will help you to write an effective article. The quality of the article will show clearly that you have researched. Almost every blog post that hits the front page of social bookmarking sites is well researched and structured. By doing research, you also make your article longer and in depth.

3. Prepare a Schedule

Preparing a schedule will help you in saving time. Set a time for each and everything you do for the article. You can allocate 30 minutes or whatever you are comfortable with, for writing the article itself. Set 5 minutes for selecting an image. Also have 10-15 minutes for collecting references and coming up with a catchy headline. Within an hour, you should be able to create some top notch content.

4. Proof Read At Least Once

This is very important and most people skip this due to lack of time (or patience). This will prove to be costly when you are writing for some other person or for a client. Once you finish writing the post, read it once. If you have written many articles and don’t have time to proof read all of them, hire a person to do the work for you.

5. Do the Editing Till You Are Satisfied

Once you have completed writing the article, do the formatting works. Place the image at the right place. Give credit to the image author if needed. Preview the article. If it is what you wanted, publish the article. If not, continue with your editing and formatting. Add quotes to the post to make it more effective. Tie any loose ends.

Writing quality articles in short time is not an easy task, but if you prepare yourself and use a structured process soon you will be cranking paragraphs like there is no tomorrow!

4 Steps to Increase Your Blog Traffic

 

 

One of the most common complaints that I hear from bloggers is the fact that no matter how hard they try, they can’t grow their blogs past 100 or so daily page vies. Those early days are indeed the hardest, because you need to put hard work in without the certainty of achieving results.

If you are in that same situation, here is a simple strategy that will certainly increase your blog traffic and make you break the 1,000 daily page views mark. In fact, the strategy could be used even if your are already over that number but have reached a traffic plateau lately.

Just make sure to execute the 4 steps as planned and to spend the two hours and a half every day (obviously if you have more time available you can expand the time spent on each of the four steps proportionally).

First Step: Killer Articles (1 hour per day)

Spend one hour brainstorming, researching and writing killer articles (also called linkbaits, pillar articles and so on).

Notice that your goal is to release one killer article every week. If that is not possible aim for one every 15 days. So the one hour that you will spend every day will be dedicated to the same piece. In other words, expect killers articles to take from 5 up to 10 hours of work.

If you are not familiar with the term, a killer article is nothing more than a long and structured article that has the goal of delivering a huge amount of value to potential visitors. If you have a web design blog, for example, you could write an article with “100 Free Resources for Designers”. Here are some ideas for killer articles:

  • create a giant list of resources,
  • write a detailed tutorial teaching people how to do something,
  • find a solution for a common problem in your niche and write about it, or
  • write a deep analysis on a topic where people have only talked superficially

When visitors come across your killer article, you want them to have the following reaction: “Holy crap! This is awesome. I better bookmark it. Heck, I better even mention this on my site and on my Twitter account, to let my readers and friends know about it.”

Second Step: Networking (30 minutes per day)

Networking is essential, especially when you are just getting started. The 30 minutes that you will dedicate to it every day could be split among:

  • commenting on other blogs in your niche,
  • linking to the posts of bloggers in your niche, and
  • interacting with the bloggers in your niche via email, IM or Twitter.

Remember that your goal is to build genuine relationships, so don’t approach people just because you think they can help to promote your blog. Approach them because you respect their work and because you think the two of you could grow together.

Third Step: Promotion (30 minutes per day)

The first activity here is the promotion of your killer articles. Whenever you publish one of them, you should push it in any way you can. Examples include:

  • letting the people in your network know about it (don’t beg for a link though),
  • letting bloggers and webmasters in relevant niches know about it,
  • getting some friends to submit the article to social bookmarking sites,
  • getting some friends to Twitter the article, and
  • posting about the article in online forums and/or newsgroups.

If there is time left, spend it with search engine optimization, social media marketing and activities to promote your blog as whole. Those can range from keyword research to promoting your blog on Facebook and guest blogging.

Fourth Step: Normal Posts (30 minutes per day)

Just like a man does not live by bread alone, a blog does not live by killer articles alone. Normal posts are the ones that you will publish routinely in your blog, between the killer articles. For example, you could publish a killer article every Monday and normal posts from Tuesday through Friday. Here are some ideas for normal posts:

  • a post linking to an article on another blog and containing your opinion about it
  • a post informing your readers about a news in your niche
  • a post asking a question to your readers and aiming to initiate a discussion
  • a post highlighting a new resource or trick that you discovered and that would be useful to your readers

While killers articles are essential to promote your blog and bring new readers aboard, normal posts are the ones that will create diversity in your content and keep your readers engaged.

 

Install Notepad++ di Linux (cq. Ubuntu)

Notepad++ merupakan text editor yang menurut saya sangat berguna dan luarbiasa, hal penting lainnya dia "Free" alias gratis (jadi gak ada acara crack meng crack segala).

Versi yang diperuntukkan untuk linux tidak tersedia untuk itu terima kasih buat wine (program untuk menjalankan program atau software windows di lingkungan linux) .

Berikut cara untuk menginstall :

Pertama  :  Download versi terbaru dari Notepad++ di sini  notepad-plus-plus.org/download/ silahkan pilih sesuai selera bentuk file yang diinginkan (suggest : exe biar gak ribet)

Kedua     : Copy file tersebut ( Mau Cut juga gak apa2) ke folder tempat wine di spesifik folder system32 berada. Misalnya Kalau punya saya di .wine/drive_c/windows/system32 (hal ini memudahkan untuk instalasi melalui proses selanjutnya)

Ketiga  : jalankan di terminal (command)

wine npp.5.8.5.Installer.exe