Monthly Archives: April 2013

Mass Kill MySQL Sessions :: kadang terjadi ada banyak session yang bermasalah di…

Mass Kill MySQL Sessions :: kadang terjadi ada banyak session yang bermasalah di server MySQL. Contoh yang barusan terjadi di salah satu client saya adalah banyak session yang menggunakan parameter SQL_NO_CACHE == membuat server menjadi berat beban I/O nya, karena mem bypass mekanisme cache @ MySQL.

Terlampir adalah sebaris perintah yang memberhentikan semua sesi tsb :

for each in `mysqladmin proc |grep SQL_NO_CACHE| sort -r -n -k6 | awk {'print $2; '}` ; do mysqladmin kill $each; done

Dalam sekejap, puluhan sesi ini langsung ditutup oleh MySQL.

CATATAN : ganti "SQL_NO_CACHE" di atas dengan string yang relevan pada kasus Anda.

Semoga bermanfaat.

Post imported by Google+Blog for WordPress.

Burger berumur 14 tahun :: David Whipple membeli sebuah burger McDonalds di tahun…

Burger berumur 14 tahun :: David Whipple membeli sebuah burger McDonalds di tahun 1999 – dan lalu lupa. 

Dia baru menemukannya lagi di tahun 2013, dan kaget setengah mati karena burger tersebut tidak berubah ! Tidak ada jamur, tidak ada bau busuk, sama sekali.

Ya, burger McDonalds yang mahal itupun tetap banyak juga berisi berbagai racun, seperti pengawet, dll. Mengerikan. 

The world’s most conserved hamburger: Preservative-packed McDonald’s sandwich bought in 1999 looks EXACTLY the same as the day it was flipped (and it even spent two years in a coat pocket)
David Whipple, of Logan, Utah, kept the hamburger for a month to show friends how it would keep its composure. But even he was shocked to see that the burger still looks the same some 14 years later.

Post imported by Google+Blog for WordPress.

Oracle is great for MySQL's development :: one thing I've noticed since MySQL…

Oracle is great for MySQL's development :: one thing I've noticed since MySQL 5.5 – it's of much better quality than the previous versions. A lot of very important features, especially related to InnoDB, are released. 

MySQL 5.6 provides even more excellent features for us.

That's why I think Oracle is making MySQL into a much better product. I'm happy for the MySQL users everywhere.

However, Oracle is starting to close MySQL. Parts of MySQL that's very important to the open source community have begun to be closed down : http://blog.mariadb.org/disappearing-test-cases/

I understand that Oracle feels confident about its ability to develop a superior product. But moves like this causes fear with people, such as "what's next to be gone missing – MySQL's source code ?"

MySQL can become a superior product because of its community. Even giants, like Google, Facebook, Percona, etc; are contributing very important patches to it. If Oracle closes down MySQL, then MySQL will suffer from it.

So, yeah, Oracle is great for MySQL's development. Not so great for its community.

If you're looking for a MySQL-compatible database with great community backing it, then it's simple: MariaDB.

For anyone looking for comparison between MariaBD & MySQL, hope you'll find this useful.

http://blog.mozilla.org/it/2013/04/24/the-3-hidden-messages-in-tomas-ulins-keynote/

The 3 Hidden Messages in Tomas Ulin’s Keynote
This morning I watched Tomas Ulin’s Keynote at Percona Live: MySQL Conference and Expo, delivered yesterday. I missed this live as I am not at …

Post imported by Google+Blog for WordPress.

Thank You StarTrek

You are inspiring a LOT of people to move forward & innovate – even including Google 🙂

Cheers for SciFi movies ! 

Reshared post from +Life at Google

“These are the best times we’ve ever had in search. I have done this for 22 years, and I've been at Google for 12 years, so I should know. This is the most exciting time—every morning I come into work more excited than ever. Strap in. It's all happening in our lifetimes.”

What has +Amit Singhal so excited? +Slate goes behind the scenes with his Knowledge team to learn about our attempt to build "the Star Trek computer."

Google Is Obsessed With Building the Star Trek Computer
I first came across Google’s interest in Star Trek back in the summer of 2010. A company spokesman wanted to show me the firm’s rapidly improving visual search and speech-recognition technology. At th…

Post imported by Google+Blog for WordPress.

Gigabit MySQL

Gigabit MySQL. :: Percona, konsultan MySQL yang terkenal, membahas pentingnya menggunakan link 100 Mbps untuk koneksi ke server database. 

Barusan sekilas saya memeriksa server database client, ternyata, server MySQL nya ini sudah nyaris menghabiskan seluruh bandwidth link 1 Gbps nya ! 😀

Tidak kebayang akan seperti apa kacaunya jika cuma menggunakan link 100 Mbps 😉 fiuh. 

Di sisi lain, suksesnya server MySQL ini men saturasi link 1 Gbps menunjukkan performa yang handal — servernya sendiri bekerja dengan santai (nyaris tidak ada query yang > 1 detik). Namun, sukses melahap seluruh bandwidth Gbps yang ada.

Network nya yang menjadi bottleneck nya 🙂 bukan lagi servernya.

SOLUSI CEPAT : aplikasi client diubah settingnya, agar menggunakan flag MYSQL_CLIENT_COMPRESS

HASIL : traffic database drop sekitar 20% 🙂

SOLUSI KOMPREHENSIF :

# Memisahkan database-database yang ada ke beberapa server MySQL = traffic jadi terbagi ke beberapa server / link Gbps

# Seluruh aplikasi menggunakan flag MYSQL_CLIENT_COMPRESS

http://www.mysqlperformanceblog.com/2007/12/20/large-result-sets-vs-compression-protocol/

Large result sets vs. compression protocol – MySQL Performance Blog
mysql_connect() function in PHP’s MySQL interface (which for reference maps to mysql_real_connect() function in MySQL C API) has a $client_flags parameter since PHP 4.3.0. This parameter is barely kno…

Post imported by Google+Blog for WordPress.

Live feed perburuan tersangka Boston bomber :: di Reddit; menarik sekali, sangat…

Live feed perburuan tersangka Boston bomber :: di Reddit; menarik sekali, sangat up to date karena di update beramai-ramai oleh komunitas 🙂 CNN pun kalah cepat ;D

Situasi sejauh ini : 1 tersangka tewas (bom di badannya meledak), 1 polisi tewas, 1 polisi cedera. 1 tersangka sedang dikepung.

Selamat membaca :

Bagian I : http://reddit-stream.com/comments/1cnwms/

Bagian II : http://reddit-stream.com/comments/1co395/

Embedded Link

reddit-stream
reddit-stream.com | v1.2. Nathan Reed (c) 2012 | @reednj. single column mode | login username | logout. Support redditstream – Use todoist.com on your iPhone with BlueTick – in the app store now. subm…

Post imported by Google+Blog for WordPress.

Silakan jika ada saran & masukan: terlampir adalah script untuk bypass duplicates…

Silakan jika ada saran & masukan: terlampir adalah script untuk bypass duplicates query di slave, yang bisa terjadi misalnya karena proses mysqldump terlalu lama (sehingga sudah ada data baru yang di INSERT di master)

==============
<?php

$dbuser = 'root';
$dbpass = 'rahasiaaa';
$dbserver = 'localhost';

mysql_connect($dbserver,$dbuser,$dbpass) or die("Koneksi gagal");

while (true) {

// ambil status slave
$sql = 'show slave status';
$hasil = mysql_query($sql);

$x = mysql_fetch_array($hasil);
//var_dump($x);

// jika ada error 'Duplicate entry', maka skip query tsb
if (($x['Slave_SQL_Running'] == 'No') && (stripos($x['Last_Error'], 'Duplicate entry'))) {

echo "Found problem: ".$x['Last_Error']." — restarting Replication… n";

// skip the problematic query
$sql = 'STOP SLAVE';
$hasil = mysql_query($sql);
$sql = 'SET GLOBAL sql_slave_skip_counter=2';
$hasil = mysql_query($sql);
$sql = 'START SLAVE';
$hasil = mysql_query($sql);

// wait 1 sec before checking again
sleep(1);
};
};

?>

Post imported by Google+Blog for WordPress.

News is bad for you :: In the past few decades, the fortunate among us have recognised…

News is bad for you :: In the past few decades, the fortunate among us have recognised the hazards of living with an overabundance of food (obesity, diabetes) and have started to change our diets.

But most of us do not yet understand that news is to the mind what sugar is to the body.

News is easy to digest. The media feeds us small bites of trivial matter, tidbits that don't really concern our lives and don't require thinking. That's why we experience almost no saturation.

Unlike reading books and long magazine articles (which require thinking), we can swallow limitless quantities of news flashes, which are bright-coloured candies for the mind.

Today, we have reached the same point in relation to information that we faced 20 years ago in regard to food. We are beginning to recognise how toxic news can be.

http://www.guardian.co.uk/media/2013/apr/12/news-is-bad-rolf-dobelli

News is bad for you – and giving up reading it will make you happier
News is bad for you. It leads to fear and aggression. It hinders your creativity and makes you sick. We should stop consuming it, says Rolf Dobelli, who’s abstained for years

Post imported by Google+Blog for WordPress.

Blazing Fast MySQL Backup :: I've been trying to backup a 400 GB database over…

Blazing Fast MySQL Backup :: I've been trying to backup a 400 GB database over network (#), and I kept getting abysmal speed. Even after using compression (mysqldump -C), gzip trick (mysqldump | gzip -c), etc; I can only get 20 Mbps transfer rate at best.

So I looked around, and found out this article about using "tab" option on mysqldump, to make the backup process much faster. 

Apparently, mysqldump spend much of its effort in formatting its output. 
The "tab" option will make mysqldump to save its output in a very sparse format (tab delimited). 

Anyway, since the "tab" option can only be used on disk (not over network), I mounted the destination over network using NFS. Then I pointed mysqldump to use that.

I was shocked to see that I'm getting 200 Mbps transfer speed ! 🙂 instant 10x speed increase. Amazing. 

To be honest, I was sceptical at first. I thought I'd just be getting a bit of performance increase.
But 10x speed increase ? That's just awesome 😀

Listed below is the script to do the fast mysql backup, and its restore. I've also fixed the original script, nothing major, but might be confusing for newbies.

Here you go :

—- fast-mysql-backup.sh —————–
#!/bin/bash
dir=$(date "+%Y-%m-%d_%Hh")
mkdir -m 777 -p /tmp/$dir
for db in $(mysql -BNe "show databases" | grep -v information_schema ) ; do 
  mkdir -m 777 /tmp/$dir/$db
  mysqldump –tab=/tmp/$dir/$db –opt –single-transaction –quick  $db
done
tar czf dump.tgz /tmp/$dir
——————————

—- fast-mysql-restore.sh —————–
#!/bin/bash
### NOTE
# change "dir" with the correct location
# change –use-threads with the number of processors in your computer

dir=/mnt/nfs
cores=16

cd $dir
tar xzf dump.tgz

for db in * ; do
  mysql -e "drop database $db; create database $db default charset utf8"
# create the database structure
cat $db/*.sql | mysql $db
# import the database contents
mysqlimport –use-threads=$cores –local $db $db/*.txt
done
——————————

TIP : to find out network throughput on a server, use "iftop" on linux.

(#) Can not backup to the server itself because it's running out of space…hence the backup (to move its data out, into another server)

Credit : http://matthew.mceachen.us/blog/faster-mysql-dumps-and-loads-with-tab-and-use-threads-1047.html

Faster MySQL dumps and loads with –tab and –use-threads | Hints and Kinks
By default, mysqldump writes a series of sql DDL and inserts to standard out, that you can then pipe to another database server to recreate a given database. The problem is that this is all serial, an…

Post imported by Google+Blog for WordPress.

Awas: Kamper bisa sebabkan kanker & adalah racun syaraf :: dari sebuah diskusi…

Awas: Kamper bisa sebabkan kanker & adalah racun syaraf :: dari sebuah diskusi di forum, ada yang menyinggung soal ini. Karena tidak percaya, kemudian saya periksa. Ternyata benar.

Saran :

(#) Gunakan hanya untuk fungsinya : mengamankan baju yang akan disimpan lama, di lemari tertutup.

(#) Jangan hirup wangi / aromanya.

(#) Jika memegang kamper, cuci tangan setelahnya sampai bersih.

(#) Jangan gunakan untuk : pewangi ruangan, dst.

Sebarkan informasi ini. Semoga bermanfaat.

http://en.wikipedia.org/wiki/Mothball#Uses_and_risks

Mothball – Wikipedia, the free encyclopedia
[edit] Composition and safety. Older mothballs consisted primarily of naphthalene, but due to naphthalene’s flammability, modern mothballs instead use 1,4-dichlorobenzene (also called para-dichloroben…

Post imported by Google+Blog for WordPress.

Foto saat Bom di Boston meledak :: tidak sengaja terfoto oleh user Twitter @Bost…

Foto saat Bom di Boston meledak :: tidak sengaja terfoto oleh user Twitter @Boston_to_a_T 

Live thread soal ini di Reddit : http://www.reddit.com/r/news/comments/1cf7mn/boston_marathon_explosions_live_update_thread_3/ 

http://www.reddit.com/r/news/comments/1cf17c/boston_marathon_explosions_live_update_thread_2/

Mudah-mudahan tidak ada lagi bom yang meledak (bom ke #3 berhasil dihancurkan oleh polisi) 🙁

http://i.imgur.com/3HNLktB.jpg

i.imgur.com/3HNLktB.jpg

Post imported by Google+Blog for WordPress.

Pesta Internet Indonesia :: para pendiri & pelaku Internet Indonesia mengadakan…

Pesta Internet Indonesia :: para pendiri & pelaku Internet Indonesia mengadakan pesta besar di JCC & semua orang diundang 🙂 GRATIS ! 😀

Bagi umum, ada banyak pesta & band, seperti Raisa, Naif, Maliq & D'essentials, 12 Malaikat Gimbal, dan puluhan band indie lainnya.

Bagi para penikmat Internet, disini kesempatan untuk bertemu dengan para biang kerok Internet Indonesia 🙂 seperti para hacker Indonesia, founder Kaskus, Indowebster, MalesBanget.com, detikcom, dan masih banyak lagi.
Bahkan para dinosaurus Internet pun muncul 🙂 Bemonet, komunitas online Indonesia pra Internet 🙂 🙂

Info selengkapnya ada di situsnya, http://www.TracerouteParty.com

Enjoy !

http://www.tracerouteparty.com/web/programme/#tab-560-3

Programme | Traceroute Party
10.30 AM – 11.30 AM, Indie Band Performance: TOP (by digitalabel.com). 1.30 PM – 2.30 PM, Indie Band Performance: PLAY MATES (by digitalabel.com). 2.30 PM – 4 PM, KEYNOTE SPEECH The Rock Star : Johar …

Post imported by Google+Blog for WordPress.

Kristenisasi di Indonesia :: Yang seperti ini memang potensi menyebabkan kericuhan,…

Kristenisasi di Indonesia :: Yang seperti ini memang potensi menyebabkan kericuhan, karena secara #eksplisit berusaha memurtadkan orang Islam.

Dikutip :

"To fulfill the great commission of Jesus we must evangelize Indonesia"

"Many are moderate Muslims who really don’t understand Islam and are prime candidates to receive the Gospel of Jesus"

Pihak mereka menganggap bahwa memurtadkan orang lain adalah kewajiban mereka. Sedangkan pihak lainnya tidak senang dengan tindakan seperti ini.

Perlu ada dialog dan komunikasi antara kedua pihak ini, agar jadi bisa saling selaras pemikiran & keinginannya. Jika tidak, maka siap-siap saja menuai badainya di masa depan.

http://www.indonesianchristianmission.org/recruiting.html

Embedded Link

Indonesia Christian Mission
Home Page · Missionaries · Mission History · Current Work · Newsletters · Prayer Requests Recruiting-Missionaries · Contact Us. RECRUITING MISSIONARIES AND INTERNS. In the late 1970’s there were 38 mi…

Post imported by Google+Blog for WordPress.

Kompetisi = Vital :: (sambil lirik PLN) Beberapa jam setelah Google Fiber diumumkan,…

Kompetisi = Vital :: (sambil lirik PLN) Beberapa jam setelah Google Fiber diumumkan, AT&T langsung menirunya. 

Google Fiber adalah layanan Internet dengan speed 1 Gbps. Biaya bulanannya ada pilihannya yang gratis (!!!).
Para pelanggan paket Internet + TV nya mendapatkan bonus Tablet (Google Nexus 7), Router Hotspot, 2 TB Storage Box, dan 1 TB space di Google Drive…. #edan  https://fiber.google.com/about/

Setelah Google Fiber diumumkan di Austin, Texas; mendadak AT&T meluncurkan layanan Internet 1 Gbps juga 😀

ISP / Internet Service Providers di Amerika terkenal karena harga & kecepatannya lebih buruk dibandingkan dengan berbagai negara maju lainnya. 

Berkat adanya kompetisi, yaitu Google Fiber, maka mereka jadi terpaksa membenahi keburukan mereka ini 🙂 🙂

Nah….kalau bisa ada kompetitornya PLN, sepertinya masalah listrik di Jakarta / Indonesia juga bisa segera beres. PLN tidak bisa lagi santai ongkang-ongkang kaki dan memperlakukan para customernya dengan semaunya 🙂

http://www.engadget.com/2013/04/09/att-1gbps-fiber-internet-austin-texas-official/

Post imported by Google+Blog for WordPress.

Mohon maaf kepada kawan-kawan yang berusaha kontak saya, hari ini saya  terkapar…

Mohon maaf kepada kawan-kawan yang berusaha kontak saya, hari ini saya  terkapar di tempat tidur. Mendadak vertigo saya kumat sejak tadi pagi.

Saat ini sudah agak mendingan, mudah-mudahan saya bisa segera aktif kembali. Terimakasih.

http://en.wikipedia.org/wiki/Vertigo

Embedded Link

Vertigo – Wikipedia, the free encyclopedia
[edit] Classification of Vertigo. Vertigo is classified into either peripheral or central depending on the location of the dysfunction of the vestibular pathway, although it can also be caused by psyc…

Post imported by Google+Blog for WordPress.

Bitcoin makin populer :: terutama setelah krisis ekonomi di Cyprus – mendadak banyak…

Bitcoin makin populer :: terutama setelah krisis ekonomi di Cyprus – mendadak banyak yang menarik uangnya dari bank, dan membeli Bitcoin sebagai gantinya. Nilai Bitcoin langsung melonjak drastis. 

US Treasury mulai memperhatikan Bitcoin, dan mulai mencari cara untuk me regulasinya. Bulan lalu, total nilai Bitcoin menembus US$ 1 Milyar. Makin banyak trader & vendor yang menerima pembayaran dengan Bitcoin. Jumlah transaksi Bitcoin naik 50x lipat dibanding 2 tahun yang lalu. 
Dan, mainstream media mulai membahas Bitcoin. 

Bagi banyak pihak, sifat "decentralized" Bitcoin adalah fiturnya yang paling menarik. Bitcoin bebas dari tirani pemerintah, karena, tidak ada institusi pusat yang menjalankannya. Semuanya dijalankan bersama-sama, cukup dengan menjalankan software Bitcoin di komputer masing-masing.

Salah satu contoh kasus paling menarik terkait soal ini adalah kisah E-gold.

Pendiri E-gold berusaha menyediakan alternatif dari mata uang biasa, yaitu  dengan membuat mata uang berbasis emas DAN online. Berbeda dengan koin emas, E-gold bisa transaksi non-fisik (ecommerce, cashless, wireless, dst)

Beberapa tahun kemudian, pemerintah Amerika memberangus E-gold, dan menjebloskan pendirinya ke penjara : http://www.forbes.com/sites/jonmatonis/2012/10/04/bitcoin-prevents-monetary-tyranny/

Yup, tindakan yang sangat semena-mena.

Nah, Bitcoin terbebas dari masalah ini, karena sifatnya yang "decentralized". Bitcoin adalah cryptocurrency, dan asalnya dari kita, untuk kita.

Bahasan yang agak teknis terkait soal ini bisa dibaca misalnya disini : http://www.americanbanker.com/bankthink/how-cryptocurrencies-could-upend-banks-monetary-role-1057597-1.html?zkPrintable=1&nopagination=1

Berikut ini adalah artikel ringkas mengenai beberapa aspek dari Bitcoin. Ditulis dalam bahasa yang cukup mudah dimengerti, namun tetap membahas Bitcoin secara cukup mendalam. 
Bagi yang tertarik dengan Bitcoin, saya bisa menyarankan untuk membaca artikel ini. Selamat membaca.

http://www.forbes.com/sites/timothylee/2013/04/07/four-reasons-bitcoin-is-worth-studying/

Four Reasons Bitcoin Is Worth Studying – Forbes
As Adam Ozimek points out Bitcoin has so far largely been greeted with eye-rolling by professional economists. One reason is that the cryptocurrency’s most enthusiastic advocates tend to subscribe to …

Post imported by Google+Blog for WordPress.

Baru sadar bahwa BlackBerry Z10 melakukan revolusi UI (user interface), mirip seperti…

Baru sadar bahwa BlackBerry Z10 melakukan revolusi UI (user interface), mirip seperti ketika iPhone dulu muncul tanpa keyboard. Yaitu, tidak ada satu pun tombol di layarnya 🙂

Android ada (minimal) 3 buah tombol di layar. iPhone ada 1 tombol.
BB Z10 = nol 🙂

Semuanya diakses dengan swiping. 

Saya tidak menyadarinya mungkin karena sudah terbiasa sejak menggunakan BlackBerry Playbook, yang menggunakan UI yang sama dengan Z10. UI tersebut dikenal dengan nama "Flow". 

Dan kalau sudah terbiasa dengan Flow ini, sangat menyenangkan. Terasa jauh lebih intuitif / alami.

Consider the BlackBerry Z10, a Smart Fish in an Ocean of Smartphones
So maybe you’re shopping for a new cellphone this weekend. You could wait for that heady new Facebook phone. Or you could hold out for that cheap iPhone. And then there’s the latest savior from BlackB…

Post imported by Google+Blog for WordPress.