How to install deb file in Ubuntu

Linux, Ubuntu, Utilities, 2015-08-14 22:47:33 UTC
There are two actions, they are dpkg-query and dpkg-deb.Install a package# sudo dpkg -i {package_name}    # sudo dpkg -i skype-ubuntu-precise_4.2.0.11-1_i386.debRemove a package# sudo dpkg -r {package_name}# sudo dpkg -r vlcRemove a package and its configuration files# sudo dpkg -P {pa
Share:     

Enable and Disable Tiny MCE

Utilities, 2015-06-29 22:43:26 UTC
// to disable: tinyMCE.remove('#article_body'); // to enable: var ed = new tinyMCE.Editor('article_body', { menubar: false, plugins: [ "autolink link image code table template" ], selector:"#article_body", toolbar
Share:     

Enabling PHP short tag

PHP, 2015-06-21 06:47:26 UTC
Today I am dealing with bad code. PHP short tag <? that does not run with the current standards. And the other bad thing is the HTML format is very bad. So many wrong close tags, bad HTML formatted, bad CSS and spaghetti code. The code wrote by a senior PHP programmer. But he must reali
Share:     

Rails Debug via Console

Ruby, Ruby on Rails, 2015-06-17 08:18:56 UTC
One thing that is important when we make an application is how we keep tracing the error. Rails framework package by default using Webrick webserver. In the development process, we can see what is happening behind the scenes through a console. We can make the console gives a message that the applic
Share:     

Converting ODT into Epub using Calibre Commandline

Linux, Ubuntu, 2015-06-17 00:17:19 UTC
First thing todo is to make sure that calibre installed on your system. If it is not, you can install using by using below command; $ sudo apt-get install calibre Converting ODT into Epub; $ ebook-convert file.odt file.epub If there is something wrong, we can try like this $ ebook-convert fi
Share:     

Enabling remote connection of MySQL on Ubuntu

Linux, MySQL, Ubuntu, 2015-06-17 00:16:48 UTC
1. open mysql configuration $ sudo nano /etc/mysql/my.cnf 2. We need to comment out the bind-address and skip-external-locking lines: #bind-address = 127.0.0.1 # skip-external-locking 3. Restart MySQL to make changes; sudo service mysql restart 4. Grant permission to root fro
Share:     

How to add a user and grant database on MySQL

MySQL, 2015-06-17 00:16:13 UTC
1. Create user $ mysql -u root -p Enter password: mysql> create user name@localhost identified by 'write password'; 2. Grant specific database to a user mysql> GRANT ALL PRIVILEGES ON database_name.* TO name@localhost WITH GRANT OPTION ; mysql> FLUSH PRIVILEGES;  
Share:     

Apache2 Ubuntu Default Page

Linux, Ubuntu, 2015-06-17 00:12:38 UTC
This article is weird huh... Yeah, I change a lot to my Ubuntu server. And this post is just a reminder for my Ubuntu 14.04 and Apache default setting.   It works! This is the default welcome page used to test the correct operation of the Apache2 server after installation on Ubuntu s
Share: