Skip to main content

Posts

How to Use SVN Command Line Tools in Ubuntu

Prerequisites You have SVN (Subversion) server where your project files will be stored. It also can be installed on same computer where you make your project. You have installed Subversion on local computer where your project is saved. These are some steps you can do. Checkout .  You must set a directory (your project directory) in local computer which files will be stored in SVN repository. $ svn checkout http://yoursvnserver.com/svn/path/to/repo/myproject /home/user/myproject It will create a ".svn" directory inside "/home/user/myproject/" and make "/home/user/myproject" as working copy. Import . This step will copy files from your local project directory to SVN repository. $ svn import /home/user/myproject http://yoursvnserver.com/svn/path/to/repo/myproject   Update or Commit . Update will download changes from SVN repository. Commit will upload files to SVN repository. Update will sync updated files to working copy. For more advance use, yo...

Transfer File Among Linux Servers Using Terminal (Command Line)

When you operate some servers, sometime you need to transfer or copy some files from one server to another. There is command line tool that you can use like SCP. $ scp <file> <username>@<IP address or hostname>:<Destination> for example: $ scp "file.txt" user1@itb.ac.id:/home/user1/files If you want to copy file from remote server to local server just change the command. $ scp <username>@<IP address or hostname>:<Source> <LocalDestination> "LocalDestination" can be set to ' . ' to assign the file to current working directory. ' -r ' parameter can be set to copy directory recursively. Another tool you can use is SFTP. It maintain session so you can move files interactively between servers. $ sftp luki@myserver.com

Bulletproof Font Face

I'm not a UI developer but sometimes I work on it because of lack of human resources in my team. Latest I tried to use custom font to be included in LESS. I'd done it before in CSS. When I tried to complied LESS file using grunt , the console notified me that compilation was error because I don't use bulletproof font face . What is bulletproof font face? When you declare a font-face you must include more than one type of fonts so your style will be run well in every types of browser. Maybe you just use this code to declare custom font-face: @font-face { font-family : ' MyFont ' ; src : url ( ' myfont.ttf ' ) } But that isn't bulletproof. That declaration can cause unwanted output, for example in Internet Explorer or other old browsers. You should use this one: @font-face { font-family : ' MyFont ' ; src : url ( ' myfont.eot?#iefix ' ) format ( ' embedded-opentype ' ), url ( ' myfon.woff ...

It's Your Broken Idea of Fairness

You studied hard, but you failed the exam. You love her, but she won't return your calls. The problem isn't that life is unfair; it's your BROKEN IDEA of FAIRNESS. Take a proper look at that person. A person with years of experience being someone completely different to you. A real person who interacts with hundreds of other people every year. You feel something for them? That might matter to you, but their decision is not about you. Similarly we love to hate our bosses or politicians. It's true there are some truly awful and stupid figures. But they're not all evil. Most are just trying to do their best, under different circumstances to your own. from BusinessInsider

My Review for Free Project Management Tools

For about a year I had used Trello  as my team project management tool. It helps my team to maintain our "to-do" lists. But after increasing project numbers, as operation manager, I feel hard to maintain each of the team jobs on some projects. Some tasks become untouched. After a meeting, our team realizes that what the team need is clear detail about "What should I do today?" or "What should my teammates do today?". We need to find another project management tool. Trello uses the Kanban scheme which is very adaptive. I feel it's not suitable for my team, which consists of some people with different levels of expertise and who work on multiple projects. We need a tool that is better for a more prescriptive process to maintain our projects. Other features of the project management tool that we need are free, simple, secure, fast, and has mobile support. First, I search on Google for "Best Free Project Management Tool". After that, I decided...

Install Latest MySql Server in Ubuntu from APT Repository

When you want to install latest version of MySql server in Linux (Ubuntu), like other applications, the easiest way is installing it from APT repository. But, default APT repository sources in Ubuntu still doesn't include latest version of MySql. I just finished installation of Ubuntu 14.04, but when I wanted to install MySql, it still installed MySql 5.5. Latest stable version of Mysql server is 5.6 (in 2014). So, this is how you can install MySql server from APT repository. 1. go to http://dev.mysql.com/downloads/repo/apt/ 2. download latest MySql repository configuration installer via browser or get the installer link then download it using wget   command download MySql APT configuration installer 3. go to where you save the .deb file 4. run: $ sudo dpkg -i mysql-apt-config-xxx-xxx-xxx.deb install latest MySql APT configuration 5. choose latest MySql version you want to install. choose MySql version you want 6. run: $ sudo apt-get update 7...

Create Application Desktop Shortcut in Ubuntu (Gnome Classic)

I use Ubuntu with Gnome Classic theme because it has more simple looks than latest default Unity theme. I love simple. It also can reduce graphical load in my computer. When I use this theme, some modern features are removed such us feature to create desktop shortcut. I can't drag and drop or make a link an application icon from application menu to desktop directly. Here is the way how I create desktop shortcut in Ubuntu with Gnome Classic. 1. Open Ubuntu directory explorer and go to /usr/share/applications 2. Find your application that you want to be displayed on desktop 3. Copy your application file to /home/<your_username>/Desktop copy Ubuntu application shortcut /usr/share/applications paste Ubuntu application shortcut to /home/<user>/Desktop

Update Date and Time from Internet in Ubuntu

You can use ntpdate command to update date and time from Internet in Ubuntu. You can synchronize with global server such as pool.ntp.org . The pool.ntp.org project is a big virtual cluster of timeservers providing reliable easy to use NTP service for millions of clients. This is the command. $ sudo ntpdate id.pool.ntp.org You can change id.pool.ntp.org to your appropriate location such as jp.pool.ntp.org (Japan), de.pool.ntp.org (Germany), etc.

Create Desktop Shortcut in Ubuntu

It's different with Windows, we should install additional tools to create desktop shortcut in Ubuntu. First, you must install the tools by this command. $ sudo apt-get install --no-install-recommends gnome-panel Then, run the tools to create desktop shortcut. $ gnome-desktop-item-edit /home/<user>/Desktop/ --create-new After that, a pop up window will show up. You should fill information about the shortcut.

Install Oracle JDK in Ubuntu

In development environment I prefer to use Oracle JDK rather than OpenJDK. The easiest way to install any applications in Ubuntu is from repository. To install Oracle JDK you must add its repository. These are the commands. $ sudo add-apt-repository ppa:webupd8team/java $ sudo apt-get update $ sudo apt-get install oracle-java7-installer If you have installed other version, e.g Java 6 or Java 8, you can update your system environment by this command. $ sudo update-java-alternatives -s java- <version> -oracle You can setup Java environment variables by this command. $ sudo apt-get install oracle-java7-set-default reference:  http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html

Eclipse SVN through Proxy

If you are working with Eclipse and using SVN connector to checkout SVN projects through proxy, you may got error messages like " RA layer request failed svn: OPTIONS... " It happens because SVN connector doesn't use Eclipse proxy setting. If you have configured proxy setting on Eclipse Preferences, it doesn't make SVN connector to work. Eclipse subversion plugin use some configuration files which are located in " C:/Users/<username>/AppData/Roaming/Subversion " (Windows 8) or other similar locations on other Windows versions. You need to changes servers file. AppData folder could be in hidden state, so you should make it showed. show hidden folder Open servers file using text editor like Notepad. open servers file Find [global] tag, and change proxy setting below it. configure proxy setting Hope it can be useful for you.