Sunday, March 18, 2012

BADSIG Cure

Try deleting the key
sudo apt-key del 16126D3A3E5C1192
then updating the repository
sudo apt-get update
You should get a NO_PUBKEY error instead of a BADSIG error and
sudo apt-key finger
should not find the key (called "Ubuntu Extras Archive Automatic Signing Key")
Now add the key
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 16126D3A3E5C1192
The result of apt-key finger should have
pub   1024D/3E5C1192 2010-09-20
      Key fingerprint = C474 15DF F48C 0964 5B78  6094 1612 6D3A 3E5C 1192
uid                  Ubuntu Extras Archive Automatic Signing Key 

If that does not work, try
apt-get clean            # Remove cached packages
cd /var/lib/apt
mv lists lists.old       # Backup mirror info
mkdir -p lists/partial   # Recreate directory structure
apt-get clean
apt-get update           # Fetch mirror info
Source: this ubuntu forums thread
linkimprove this answer

Wednesday, March 07, 2012

search and replace n occurrence with awk

awk '/Jack/{c++;if(c==2){sub("Jack","Rob");c=0}}1' file

Thursday, March 01, 2012

12 years and counting

12 years and counting, but the feeling won't go.
It's like bitter syrup, already swallow it long time a go but still smell it today. You all maybe think this very funny, or awkward.  Whatever dud, you can say anything, you can laugh as loud as you can. You can call me crazy, whatever. It's didn't change this feeling, nor erase it.

Friday, February 24, 2012

Convert and resize picture with imagemagick

for img in *.jpg; do
base=`basename $img .jpg`
echo $base;
convert -resize 640x480 "$img" "$base.png"
done

Wednesday, December 21, 2011

love in mathematic with gnuplot

yusuf81@yusuf81-desktop:~$ gnuplot

    G N U P L O T
    Version 4.4 patchlevel 2
    last modified Wed Sep 22 12:10:34 PDT 2010
    System: Linux 2.6.38-13-generic

    Copyright (C) 1986-1993, 1998, 2004, 2007-2010
    Thomas Williams, Colin Kelley and many others

    gnuplot home:     http://www.gnuplot.info
    faq, bugs, etc:   type "help seeking-assistance"
    immediate help:   type "help"
    plot window:      hit 'h'

Terminal type set to 'wxt'
gnuplot> set xrange [-2:2]
gnuplot> set yrange [-2:2]
gnuplot> set samples 10000
gnuplot> set title "Love in MATH"
gnuplot> plot (sqrt (cos (x)) * cos (200 * x) + sqrt (abs (x)) -0.7) * (4-x * x) ** 0.01
gnuplot>


Enhanced by Zemanta

Saturday, December 10, 2011

don't create dynamic tables

Relational database terminologyImage via Wikipedia
If you are creating a table dynamically, that most likely means you do not understand relational database ideology and as a result doing something wrong.
Just create all the tables at application setup from ready made dump and do not create any tables at runtime.
No need to use dynamic table name at all.
taken from:
http://stackoverflow.com/questions/3665784/php-pdo-prepared-statements-dont-work-when-creating-a-table
Enhanced by Zemanta

Monday, December 05, 2011

Andjoeran Pengoeasa, "GIATLAH MEMBATJA"

In linux, comprehensive manual always exist, in example just simply type "man find", then you will enlighted how to find your pr0n file that had size twenty megs or more. 

Before you play and mess the code/installation and anything, please put your eyes to at least 5 tutorial. Don't stick only with 1 tutorial. Why more tutorial is better?, because more tutorial will give you different angle of perspective.

And remember all error message always explain why and where you did something wrong. The place for error sometimes buried in dmesg, /var/log/syslog or /var/log/messages. When you got those messages, simply copy paste it to google will yield the answer.

You will get more bright information with that way, than you asking the questions to the old man with rusty brain and dirty mouth like me :P. This isn't because  me and those old bags down here is lazy nor feel 3l33t, but this is not how the good discussion flow. It's already said, one of the old bags (@Bino Oetomo) tell that he crawl google through 20 pages, when he got some error or problem. I and I not crazy as that old bags, I just crawl first 5 pages, then redefine the keyword with proper keywords.

And after you do that ways, but still had no enlightenment, then you can floor it to this playground. Tell the action that you already did, and the proper documentation that you already read. I or maybe another guys will happily discuss it, and good discussion will flow. This is what we call "sama-sama belajar, belajar bersama-sama" (I'm not translate this, because this idiom seems moronic when it's said with another langs). 

Almost forgot something, you must had the vision and clearly know what are you doing. Sometimes the tutorial is does in different environment and different purpose, you must adjust it manually.

And last one, please understand this fucking language. No exception for this, because this moronic things (I mean this poor operating system, yes I talking about this damn OS), build in the western world, not from magelang, situbondo, kendal payak or another place in this island. This fact that we must admitted. So goods articles or howtos will came from their language.  

PS: If you cannot understand this article, please get your ass to bookshop and buy some oxford dicts, burn it, put it on a glass of water, and drink it with single shots, after that, we will meet in another side :)).

memperbaiki file modification based on exif data

memperbaiki file modification based on exif data
--------------------------------------------------------------------------------
for f in *.jpeg
do
  exiftool -S -d "%Y%m%d%H%M.%S" -DateTimeOriginal "${f}" \
  | awk '{ print $2 }' \
  | xargs -I % touch -m -t % "${f}"
done
--------------------------------------------------------------------------------
Enhanced by Zemanta

Tuesday, November 22, 2011

USB modem, networkmanager dan native networking stack

Gini lho ceritanya, orang2 itu kadang pada bingung menggunakan modem usb bawaannya provider gsm dan evdo di ubuntu, dan solusi nya selalu menggunakan wvdial yang dalam hal ini helper untuk setting native stack networking, padahal saya menggunakan networkmanager  bawaannya gnome/ubuntu selalu berhasil. Yang jadi pertanyaan, apanya yang salah? kukur2.

Native stack networking/tcp-ip.
Ini adalah mekanisme inisialisasi network paling kuno. Di setiap distro utama (redhat,slackware,debian) tempatnya berbeda-beda.
Kalo di slackware kalo gak salah ada di /etc/rc.network (kalo gak salah), soalnya slackware ngambil model konfigurasi ala bsd.
Kalo di redhat ada di /etc/sysconfig/network-scripts/ifcfg-device dan di /etc/sysconfig/network
Kalo di debian ada di /etc/network/interfaces
Setting dns ada di /etc/resolv.conf baik untuk debian, redhat maupun slackware (ini gara2 semua menggunakan libc/glibc).

Sunday, October 09, 2011

fix GPG key missing

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com [key-fingerprint]

lightweight ubuntu versi network_pirates

  1. Install ubuntu dengan cd alternate dan jangan pilih package apapun.
  2. install xorg lxde lxdm openoffice network-manager libasound2-plugins "pulseaudio-*" paman padevchooser paprefs pavucontrol pavumeter pidgin openntpd iptraf iptables iproute ifstat
  3. edit /etc/xdg/ untuk menampilkan network manager applet
  4. selesai :P

Monday, September 26, 2011

Bug direct3d / opengl pada wine

jika sampeyan main DotA pake wine, terus menggunakan wine versi ini:

yusuf81@yusuf81-desktop:/opt/DotA$ wine --version

wine-1.3.28

terus mengalami warning message seperti ini:

err:d3d:swapchain_blit >>>>>>>>>>>>>>>>> GL_INVALID_OPERATION (0x502) from Swapchain present blit(EXT_framebuffer_blit)

 @ swapchain.c / 334

err:d3d:swapchain_blit >>>>>>>>>>>>>>>>> GL_INVALID_OPERATION (0x502) from Swapchain present blit(EXT_framebuffer_blit)

 @ swapchain.c / 334

fixme:d3d:resource_check_usage Unhandled usage flags 0x8.

fixme:d3d:resource_check_usage Unhandled usage flags 0x8.

fixme:d3d:resource_check_usage Unhandled usage flags 0x8.

dan game hanya berjalan di mode windowed (wine w3l.exe -window) dan/atau harus berjalan pada resolusi yang sama dengan xwindows. 
Terus pas ngegame jalannya game nggembot dan setelah di cek, kelihatannya seluruh proses dilakukan di prosesor, dan prosesor vga, kelihatannya nganggur.
Jika sampeyan mengalami hal-hal tersebut, maka sampeyan semua apes. 
Tunggu saja update wine yang anyar, atau downgrade ke versi yang lama. 
Yang jelas wine versi sebelum ini lancar jaya dan aman. Saya saja yang sok gaya pake repository wine dilaunchpad, terus jadinya keblusuk seperti ini.

NB: Untuk langganan versi wine yang lucu ini (lebih cepet dari standard repository ubuntu, namun dengan resiko gak stabil), silahkan ikuti jejak saya dengan mengetik:
sudo echo "deb http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu natty main" >> /etc/apt/source.list

sudo apt-get update && apt-get upgrade

Namun ingat, segala resiko silahkan ditanggung sendiri

Sekian, Wassalam

[mangkel gara2 gak bisa main dota]

Sunday, September 11, 2011

perintah tunnel ssh

ssh -p 443 -D 1080 -N -f

Saturday, September 03, 2011

wodim dan geniso bento

poro hadlirin penikmat linux yang berbahagia, jangan pakai geniso dan wodim bawaannya debian. Itu package yang bento, pakailah mkisofs dan cdrecord aseli dari brandonsnider di ppa:brandonsnider/cdrtools. Hal ini pernah diulas oleh saudara walecha99 tapi baru hari ini saya melihat bukti dari ke bento an itu.
Sekian

Saturday, August 27, 2011

DNS outage at hosting

Warning, total DNS outage or partial DNS outage (because ip blocked or something else) can cause some php script that need resolving ip address stop working. Use reliable DNS server like google dns or opendns server.
You can use: 8.8.8.8, 8.8.4.4 (google DNS server), 208.67.222.222, 208.67.220.220 (opendns DNS server).

Wednesday, August 24, 2011

"linux clone file system method "copy procedure

Dari:
https://bitcointalk.org/index.php?topic=7374.280
purpose:
There's going to be a HDD installer included on the final version. The reason why I decided not to post instructions on how to install to a local HDD is because of LinuxCoin being in testing. If you really want to you could try formatting you HDD as ext4 then ...


mkdir /mnt/hdd
mount /dev/sdXX /mnt/hdd
cp --preserve -R /{bin,boot,dev,etc,home,lib,lib32,opt,root,run,sbin,selinux,srv,usr,var} /mnt/hdd
mkdir /mnt/hdd/{media,proc,sys,tmp}
mount -o bind /dev /mnt/hdd/dev
mount -t proc /proc /mnt/hdd/proc
chroot /mnt/hdd
apt-get install grub2
grub-install /dev/sdX
exit

 

Thursday, July 14, 2011

in_array strange behavior

use in_array in php?
better check this out because I had mess my script because this strange behavior.
http://www.php.net/manual/en/function.in-array.php#102681

Wednesday, June 29, 2011

Gallery - D'arcy

Langitpun kelam dan kelabu
Matanya terkatup dengan sayu
Fatamorgana hal yang sudah sangat biasa
Optimispun percuma saja
Na... na... na... na... na...

Oh D`arcy terbuai tinggi
Lihatlah dia bersembunyi
Pelarian adalah Suatu keseharian
Terbangkan D`arcy ke impian

Reff :
Oh ooo D`arcy... (2x)
Kesakitan si D`arcy
Menjadi sebuah hobi
ooh oo D`arcy

Na... na... na... na... na...

Terdekap di sudut gelap
Kata hati tak pernah tetap
Kekecewaan D`arcy makin lengkaplah kini
Dengan musik yang mengiringi

Monday, June 20, 2011

These Days

I was walking around, just a face in the crowd
Trying to keep myself out of the rain
Saw a vagabond king wear a Styrofoam crown
Wondered if I might end up the same
There's a man out on the corner
Singing old songs about change
Everybody's got their cross to bare, these days

She came looking for some shelter with a suitcase full of dreams
To a motel room on the boulevard
I guess she's trying to be James Dean
She's seen all the disciples and all the wanna be's
No one wants to be themselves these days
Still there's nothing to hold on to but these days

These days the stars seem out of reach
These days there ain't a ladder on the streets
Oh no, no, no
These days are fast, nothing lasts in this graceless age
There ain't nobody left but us these days

Jimmy shoes busted both his legs, trying to learn to fly
From a second story window, he just jumped and closed his eyes
His momma said he was crazy, he said "Momma, I've got to try
Don't you know that all my heroes died
And I guess, I'd rather die than fa-fa-fade away, yeah"

These days the stars seem out of reach, yeah
But these days there ain't a ladder on the streets
Oh no, no, no
These days are fast, love don't lasts in this graceless age
Even innocence has caught the midnight train
And there ain't nobody left but us these days

I know Rome's still burning
Though the times have changed
This world kept turning round and round and round and round
These days

These days the stars seem out of reach, yeah
But these days there ain't a ladder on these streets
Oh no, no, no
These days are fast, love don't lasts in this graceless age
Even innocence has caught the midnight train
And there ain't nobody left but us these days

These days the stars seem out of reach, yeah
These days there ain't a ladder on these streets
Oh no, no, no
These days are fast, nothing lasts
There ain't no time to waste
There ain't nobody left to take the blame
Oh no, no, no
Oh no, no, no, these days
There ain't nobody left but us these days



Bon Jovi - These Days - These Days

Monday, May 23, 2011

SANE PROJECT

Pilih salah satu:
  1. Arduinno / Embedded Sub Project
  2. TPlink MR3220 - OpenWRT Sub Project
  3. Mikrotik-Routerboard Sub Project
  4. Yashica Superfx3 / Photography Sub Project