Wednesday, July 8, 2015

Upgrading your BBM to version 7 or above complete with your contacts (old)

You have to follow these steps to make sure you won't miss any contact after upgrading your BBM or upgrading your mobile phone:
  1. You need to create BB ID. To create an ID, you need a valid email for indentificate abour your self.
  2. Before updating your BBM you need to backup your contats localy to Micro SD Card.
  3. Update/upgrade your Blackberry ID application (required reboot).
  4. Update/upgrade your Blackberry Application World (required reboot).
  5. You may update/upgrade your BBM to version 7 (required reboot).
  6. After a new BBM version 7, it will restore your contacts and make your contacts backup into Blackberry cloud. 
 Note:
BBM version 7 does not have backup function, your backup stored in Blackberry cloud using Blackberry ID.
After replacing your Blackberry Device with a new one, you just need to configure your Blackberry ID using your Blackberry ID i.e your email address. 
Note:
You need to upgrade your BBM to version 7 to avoid lossing contacts, or (if your device does not support version 7) make a backup to Micro SD Card, then try to restore your contacts before updating BBM to version 7.

Joomla 3.1.x: ini_set() has been disabled for security reasons (old)

When I open my web using Joomla version 3.1x, I found annoying messages "ini_set() has been disabled for security reasons". Unfortunately, this warning prevent me to login into Joomla administration.
There are 2 way to fix it. You can choose one of these way:
1. You can edit [your root Joomla]/configuration..php
and add
error_reporting(0);
@ini_set(‘display_errors’, 0);
between <?php and class JConfig
it's become like this
<?php
error_reporting(0);
@ini_set(‘display_errors’, 0);

class JConfig {
2. or you can edit file [your root Joomla]/libraries/joomla/session/session.php and add @ in every ini_set command.
For Example in line 120 (line number may deferent for each Joomla version) it becomes like this.
@ini_set('session.use_trans_sid', '0');
done.... :)

Debian 8 Jessie Repository

Here are repository for Indonsia mirror:
# Indonesia
deb http://kambing.ui.ac.id/debian/ jessie main
deb-src http://kambing.ui.ac.id/debian/ jessie main
# Security
deb http://security.debian.org/ jessie/updates main
deb-src http://security.debian.org/ jessie/updates main

# NON FREE
deb http://ftp.de.debian.org/debian jessie main non-free

# BACKPORT
# deb http://httpredir.debian.org/debian jessie-backports main contrib non-free
deb http://httpredir.debian.org/debian jessie-backports main

Installing JDK 8 on Debian Wheezy

By default, Debian Wheezy repository does not provide JDK-8 and JRE-8. You can download it from http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html. If you install JDK-8 using remove SSH, you can follow these steps:
  1. Download JDK-8 from URL above
    # wget --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u45-b14/jdk-8u45-linux-x64.tar.gz
  2. Extract it
    # tar xvzf jdk-8u45-linux-x64.tar.gz
  3. Create directory /usr/lib/JVM, if it does not exist. By default JDK will install on these folder
    # mkdir /usr/lib/jvm/
  4. Move JDK-8 folder to /usr/lib/JVM
    # mv jdk1.8.0_45 /usr/lib/jvm/
  5. Update alternative Java
    # update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.8.0_45/bin/java 100
    update-alternatives: using /usr/lib/jvm/jdk1.8.0_45/bin/java to provide /usr/bin/java (java) in auto mode
    # update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.8.0_45/bin/javac 100
    update-alternatives: using /usr/lib/jvm/jdk1.8.0_45/bin/javac to provide /usr/bin/javac (javac) in auto mode

Installing LAMP on Debian 8.0 (Jessie)

Here are steps to install LAMP on Debian 7.1 Wheezy:
1. Open your terminal as a root (Super User)
2. Installing MySQL
# apt-get install mysql-server mysql-client
set password for root (super user)
3. Installing Apache
# apt-get install apache2
4. Install PHP
# apt-get install php5 libapache2-mod-php5
5. Restart your apache2
# /etc/init.d/apache2 restart
6. Search module
# apt-cache search php5
7. Install other modules
# apt-get install php5-mysql php5-curl php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-pspell php5-recode php5-snmp php5-tidy php5-sqlite php5-xmlrpc
8. Restart your apache2 using step 5, and test your installation using browser with URL http://localhost