Skip to main content

Posts

Take Ace Away

Recent posts

Notes of Raspberry Pi

Currently, there are several models of Raspberry Pi i.e. A/B, A+/B+, 2, 3 and zero. The differences are on their provided interfaces, RAM size, processor model, processing power, AV jack, etc. Pi 3 uses Broadcom BCM2837 SoC with 64-bit support. Unlike earlier models, Pi 3 has built in wireless support, including 2.4GHz Wi-Fi and bluetooth. There is a Display Serial Interface (DSI) port near GPIO port. There is also Camera Serial Interface (CSI) near HDMI port which provides a high-speed connection to the Raspberry Pi Camera Module. The Pi 3 can draw up up to 1.2A so we need power adapter that can provide 2A of current.

Warning: When handling the Pi, always avoid touching GPIO pins, and never connect anything to them while Pi is switched on. GPIO port is powerful but fragile.


Software Raspberry Pi Fondation supplies a software tool known as NOOBS (New Out-Of Box Software) which helps user to install standard operating system for Raspberry Pi like Raspbian and others. We can download i…

The Tale of Jiraiya

Jiraiya is one of most favorite character in Naruto.

Kakashi Killed Rin

Kakashi is a scumbag. He killed Rin, let Obito died for saving his life, let Sasuke left from Konoha, but finally he became Hokage. Rubbish is not extraordinary thing.

Trailer
Kakashi Killed Rin

Important Records for Mail Domain Name

When you have a domain, for example yourdomain.com, you can create your email address at that domain name like yourname@yourdomain.com. Several domain name records which I consider to be important for mail domain are:

1. MX Record
Of course, it assigns a domain where the mail exchange server is located. For example:

NamePriorityTypeDatayourdomain.com10MXmx.yourdomain.com
2. SPF Record
SPF is a spam and phishing scam fighting method which uses DNS SPF-records to define which hosts are permitted to send e-mails for a domain. See http://www.openspf.org. For example:

NameTypeDatayourdomain.comTXT"v=spf1 mx mx:yourdomain.com -all"
This configuration means emails sent from all servers defined in MX record of yourdomain.com are permitted by sender organization

3. DKIM Record
DKIM allows an organization to take responsibility for a message in a way that can be verified by a recipient. DKIM defines a domain-level digital signature authentication framework for email through the use of pu…

Installing APCu in PHP 7

APCu is one of caching application for PHP. In this case, I use PHP 7.0 on Ubuntu 16.04. In PHP 7.0, this application is provided via PEAR.

First, install PEAR.

$ sudo apt-get install php-pear
Install APCu. If an error occured state that there's no phpize, you need to install PHP 7.0-dev which provide phpize support.

$ sudo apt-get install php7.0-dev $ sudo pecl install apcu
Create APCu module configuration in PHP modules directory.

$ sudo echo "extension = apcu.so" >> /etc/php/7.0/mods-available/apcu.ini
Add that configuration to PHP FPM and CLI.

$ sudo ln -s /etc/php/7.0/mods-available/apcu.ini /etc/php/7.0/fpm/conf.d/30-apcu.ini $ sudo ln -s /etc/php/7.0/mods-available/apcu.ini /etc/php/7.0/cli/conf.d/30-apcu.ini
Restart PHP FPM.


Uchiha Madara

End of Madara

ESP-01 Flashing Circuit

ESP-01 board is different with NodeMCU DevKit (ESP-12E) board. It doesn't have USB support. You need a USB to TTL serial converter and certain circuit to switch the board between normal boot and flashing mode. You can buy a USB to TTL converter as cheap as $1 or you can utilize your current Arduino board.

First, I want to show my simple circuit using USB to TTL converter to flash ESP-01. I use Prolific USB to TTL. It's cheapest device you can get in the market. If you use this device on Windows operating system, you must check Device Manager and validate that the device isn't in error state. If it's error, you can use solution from HERE.

This following image shows the circuit for flashing ESP-01 using USB to TTL converter. I use external 3.3V supply because my Prolific can provide only 5V supply from USB and the current is too low.


If you are too lazy with push button and resistor you can use this following circuit.


In the second circuit you just need jumpers without …

X Japan

Besides clascisal music, I also like heavy metal music. X Japan is one of the most famous heavy metal band from Japan. I like most of its music. Its tone is strong and brings me certain feeling.


One of its songs which makes me fell in love with X Japan was Kurenai.


X Japan was formed in 1982. At the beginning, I don't really care about its member. Recently, when I watched 2000s concert videos, I just realized that one of its member, the guitarist, who used to appear with his blooming red hair was missing. Now I know that the guitarist, Hide, 33 years old guy, was dead in 1998 because of suicide, based on police evidence.

X Japan had been disbanded in 1997 and Hide had started a solo carreer since then. While he still had certain project with another music group in 1998, he was found dead in his house. His dead was followed by copycat suicide of three of his fans.

In 2007, X Japan was reinvented and launched a new album. In 2008 concert, there was something touching. Hide was recal…

Hardening SSH Security in Linux

SSH is a popular network protocol used to access remote computer through certain network or internet. OpenSSH is an application which provides SSH accesbility for a computer or server. Common method used to start a communication with SSH access is by providing username and password before secured connection is established. This method is not really safe because you provide credentials in plain text and transfer it through the network. It also makes any scumbag individuals to be easier to guess your password or perform brute force attack in order to gain your server access. There are several possible ways that I think can be used for hardening your SSH security.
Disable root accessChange SSH port numberUtilize RSA authenticationDisable plain password login Disable root access 1) Before you disable the root access, you need to make sure that there are another user account in your remote computer.

2) Create new user as needed.
$ adduser youruser 3) Edit SSH configuration in /etc/ssh/ssh…