Install PHP from source (tar.gz) in Centos 6

Hello there, welcome back :)

Here my tutorial, hope help you for web application like Yii, CodeIgniter, Etc:
  1. Download libvpx https://codeload.github.com/webmproject/libvpx/zip/master -O libvpx.zip
  2. unzip libvpx.zip
  3. cd libvpx-master
  4. ./configure --enable-shared --prefix=/usr/local/
    make
    make install
  5. Download Gd Lib https://github.com/libgd/libgd/archive/GD_2_0_33.tar.gz
  6. tar zxf GD_2_0_33.tar.gz 
  7. cd lib_GD_2_0_33/src
  8.  ./configure --enable-shared --prefix=/usr/local/
    make
    make install
  9. Download libJpeg http://www.ijg.org/ (.tar.gz)
  10. tar -zxf jpegsrc.v9a.tar.gz
  11. cd jpeg-9a
  12. ./configure --enable-shared --prefix=/usr/local/
    make
    make install
  13. Download libPNG http://www.libpng.org/pub/png/libpng.html (.tar.gz)
  14.  tar -zxf libpng-1.6.17.tar.gz
  15. cd libpng-1.6.17
  16. ./configure --prefix=/usr/local/
    make
    make install
  17. Download php source (.tar.gz)
  18. tar -zxf phpxxx.tar.gz
  19. cd phpxxx.tar.gz
  20. ./configure \
      --libexecdir=/usr/libexec \
      --libdir=/usr/local \
      --includedir=/usr/include \
      --sbindir=/usr/sbin \
      --bindir=/usr/bin \
      --with-config-file-path=/etc/httpd/conf \
      --with-zlib-dir=/usr/local \
      --with-jpeg-dir=/usr/local \
      --with-png-dir=/usr/local \
      --with-vpx-dir=/usr/local \
      --with-xpm-dir=/usr \
      --with-freetype-dir \
      --with-mysql-sock=/var/lib/mysql \
      --with-kerberos \
      --with-gd \
      --with-apxs2=/usr/sbin/apxs \
      --with-bz2 \
      --with-curl \
      --with-gettext \
      --with-mcrypt \
      --with-openssl \
      --with-pdo-mysql \
      --with-xmlrpc \
      --with-zlib \
      --with-pdo-sqlite \
      --with-pdo-pgsql \
      --with-pgsql \
      --with-iconv \
      --with-pear \
      --with-pic \
      --with-config-file-path=/etc \
      --with-config-file-scan-dir=/etc/php.d \
      --with-libdir=lib \
      --with-mysql=mysqlnd \
      --enable-bcmath \
      --enable-calendar \
      --enable-dba \
      --enable-exif \
      --enable-ftp \
      --enable-mbstring \
      --enable-shmop \
      --enable-sigchild \
      --enable-soap \
      --enable-sockets \
      --enable-sysvmsg \
      --enable-sysvshm \
      --enable-sysvsem \
      --enable-zip \
      --enable-gd-native-ttf  \
      --enable-gd-jis-conv \
      --enable-json \
      --enable-pdo \
      --enable-dom \
      --enable-xml \
      --enable-phar \
      --enable-mysqlnd \
      --enable-embedded-mysqli
  21. make clean
  22. make
  23. make install
  24. service httpd restart
  25. smile :)

Return Array Data Nu Soap

Hello every buddy,

Here i'am :)....In this tutorial i will share about NuSoap WSDL..First i user NuSoap-0.9.5, so follow my step:
  1. Commenting out nusoap.php line 6132:
    //$this->debug("serializing array element: $k, $v of type: $typeDef[arrayType]");
  2. And then copy paste this code: (below)
  3. Create your client nusoap
  4. FINISH
<?php
date_default_timezone_set('Asia/Jakarta);
require_once 'inc/nusoap-0.9.5/nusoap.php';

$ns = "http://webservice.sim.pnj.ac.id/mahasiswa.php";
// Create SOAP Server
$server = new soap_server();
$server->configureWSDL('Mahasiswa', $ns);

function Nilai()
    {
        $result = array();
        $result[] = array('matakuliah' => 'Bahasa Indonesia', 'nilai' => 88);
        $result[] = array('matakuliah' => 'Fisika', 'nilai' => 85);
        return $result;    
    }

$server->wsdl->addComplexType(
    'MahasiswaNilai',
    'complexType',
    'struct',
    'all',
    '',
    array(
        'matakuliah' => array('name'=>'matakuliah','type'=>'xsd:string'),
        'nilai' => array('name'=>'nilai','type'=>'xsd:int')
    )
);

$server->wsdl->addComplexType(
    'NilaiArray',
    'complexType',
    'array',
    '',
    'SOAP-ENC:Array',
    array(),
    array(
        array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'tns:MahasiswaNilai[]')
    ),
    'tns:MahasiswaNilai'
);
$server->register(
    'Nilai',
    array(),
    array('return'=>'tns:NilaiArray'),
    $ns,false,'rpc','encoded','Menampilkan Nilai Mahasiswa PNJ');



$server->service(isset($GLOBALS['HTTP_RAW_POST_DATA']) ? $GLOBALS['HTTP_RAW_POST_DATA'] : '');
exit();

?>

Java Programming

Java is one of OOP (Object Oriented Programming) use in many device such as computer, laptop, tv, hand phone, etc. James Gosling, Mike Sheridan, and Patrick Naughton initiated the Java language project in June 1991. The language was initially called Oak after an oak tree that stood outside Gosling's officeIt went by the name Green later, and was later renamed Java, from a list of random words. Gosling aimed to implement a virtual machine and a language that had a familiar C/C++ style of notation. Sun Microsystems released the first public implementation as Java 1.0 in 1995. On May 8, 2007, Sun finished the process, making all of Java's core code available under free software/open-source distribution terms (GNU Public License).

Java have many version such as Java Standard Edition (Java SE) using For desktop, client/server application, Java Enterprise Edition(Java EE) using For e-business, e-commerce web based application, and Java Micro Edition(Java ME) using For small devices, like palm, handphone, etc

Java have certification that you can see in picture below:
And how using java? because Java is Simple and familiar object oriented programming, Architecture neutral (platform independent), Open Source, First rank in TIOBE Index, Defacto standard programming language in education ^_^

Backup Restore PostgreSQL in Windows

Backup database is saving your current database for archive that data to hard disk or storage.

For backup your data you can type this command in CMD (terminal for windows):

D:\Postgre8.3\bin\pg_dump.exe -h localhost -p 5432 -U postgres -F c -b -v -f "C:\Users\user\Desktop\CurrentDatabase.backup" poltek

Wait until finish.


Restore database is important step if you move database from old database to new database.

One of easy and fast step is using terminal and pg_restore tool for restore database. For restore your data you can type this command in CMD (terminal for windows):

D:\Postgre8.3\bin\pg_restore.exe -h localhost -p 5432 -U postgres -d poltek -v "C:\Users\user\Desktop\CurrentDatabase.backup"

and wait until process finish.

Avoid Lock Outs and Protect Yourself from WordPress Hackers

If you haven’t already experienced a lockout or hacker intrusion, you are one of the lucky ones. The effects of hacking are not minor, they can bring down your entire operation, cause you to lose all of your work. Don’t put securing up your website at the bottom of your to do list or it might be too late. Let’s look at some things you can do to make sure your site is secure.

#1 Start by Creating Solid Passwords
One of the easiest ways to get through a site’s security is with their password.  Many people put off creating solid passwords because they claim they take too much time, but think about the time it will take to try to rebuild all your hard work.
* Every password on every site should be different
* Every password should be at least 15 characters
* A password is strongest if it is not a real word
* Use a mix of capital letters, lowercase letters, special characters and numbers.

Your password is your first line of defense against hackers, so make sure it’s strong. Never write your passwords down, they should always be kept in your head or you can use password manager software.

#2 Make Sure Your Site is Up to Date
WordPress has a lot of updates, too many people don’t bother getting all of these updates, and many of them fix security breaches and bugs, as well as providing the latest features. Sure, it’s hard to stay ahead of the hackers, but taking every step possible makes good sense.

#3 Change Your WordPress User Name
When you set up your WordPress account, you will get a default login username of admin. You need a good username with a strong password.

#4 Protect Yourself from Brute Force Attacks
You may not be aware, but almost every website receives more than a couple hundred unauthorized login attempts every single day and that includes your website. To guard against a brute force attack make sure you have put into place all of the suggestions. You can also install “limit login attempts,’ a plugin for WordPress users that will lock out the hacker after a certain number of failed logins.

#5 Monitor for Malware
You must be constantly monitoring your site for malware. WordFence is a good solution for your WordPress site and it’s even free. Sucuri is another solution, but it’s a paid program, and it has additional features.

Discover Just How Hackers Will Determine Your Password

We hear a lot about creating strong passwords. So while we are talking about passwords relating to your WordPress blog, the reality is that this applies to any site that you would be logging in to. Sadly, even with all the talk about passwords, many are still creating passwords that the hackers have no trouble breaking. So, let’s look at just how a hacker determines your password, because this could help you understand just what you need to do to create a strong password.

Sometimes, it’s as easy as a user creating a password like 12345 or 54321 and thinking they are secure that gets them in trouble, but some people actually do try to create a good password and still find they have been hacked. That’s because hackers have gotten very smart at cracking passwords.

* Variations - The programs these hackers use allow them to try many variations. So simply placing a number or character at the end of your password will not make it any securer.
* Tricks - Hackers know most of the same tricks you do for coming up with a password. They know that a person replaces certain letters with numbers or symbols. They know that a person replaces  phrases, words or quotes. If you read about a trick to make your password stronger, remember the hackers likely also read about it and so will implement it in their hacking schemes.
* Predictable - You may think your password is random, but it likely isn’t. People are much more predictable than you might think, and the hackers will take advantage of that. If you think choosing a phrase from the Bible, is safe think again. If you think a phrase from a literature piece is safe, you’d be wrong.  Hackers use dictionaries to find words that can be used as passwords, but they also use tools like YouTube, or Wikipedia, to name just a couple, to discover the most common quotes and phrases, to learn what slang is currently popular, and even to find words that have been made up online.
* Password Breaches - Whenever hackers explore a volume of password data, they are able to get a better understanding of just how people arrive at their passwords that goes far beyond common words and phrases.
* Brute Force – There is no question that often hackers will rely on what are called brute force technique, which will run through millions of password combinations in short periods of time. Hackers can use these tools offline so using login limiters is of no benefit in these situations.

Now that you have a better understanding of how hackers figure out your password, you’ll be able to create a stronger password.

About Windows Server

Windows Server is one of operating server that use for server usage. Windows server is brand of Microsoft that release since April, 2003. The last version of windows server is Windows Server 2012 R2.

The another version of Windows Server but are not part of Windows Server Family and build for server computer are:
#1 Windows MultiPoint Server: that having many simultan local users

#2 Windows Home Server: use for home example for backup automatically, video streaming, and file sharing for many user

Windows Server 2012 R2 offer flexibility and fast performance, using for cloud services with new feature in management hardware and software, manage storage, virtualization or virtual desktop infrastructure. Many new feature presented in this version:
#1 Hyper V
Hyper V is virtualization software that support many operating system. In hyper V you can setting your network and setting may input or output devices

#2 User Interface
In start menu offer fast access to all apps and files, is very fast

#3 Powershell
Windows improve that tool is easy to select text, copy, cut, and paste, line break, and tabs. And now you can paste special character

#4 Windows Defender
That software using for fix an healing virus or malware in many version of windows like windows 7, windows 8, server 2008, and windows 2012

Maybe many improvement but that's all that i know