chroot (minimalistic) best practice

There are several mount points you have to retain over chroot-ing Linux root partition, namely dev (device descriptors), proc (processes), and sys (mainly the kernel control identifiers). If you do not, silly thing happens.

So, here's mostly you have to do to chroot:
mkdir /mnt 
mount /dev/sda1 /mnt 
cd /mnt 
mount -t proc proc proc/ 
mount -t sysfs sys sys/ 
mount -o bind /dev dev/ 
chroot /mnt /bin/bash 

Having just a shell in the chroot-ed environment is sometimes a nice idea, you could just exit to return to earlier environment.

pts: 0000000000000000

I've got a (virtual) server running Slackware on (physical) server running Centos.

In my ssh session (in Slackware box), just to check whether the files I downloaded last night have been finished, I do ps ax | grep wget,  and violaa:
ayu@slackware-cluster:~$ ps as | grep wget 
1001 18715 0000000000000000 0000000000000000 0000000000000000 0000000000000000 S+ pts/1 0:00 grep wget 
ayu@slackware-cluster:~$ ps as | grep wget 
1001 18717 0000000000000000 0000000000000000 0000000000000000 0000000000000000 R+ pts/1 0:00 grep wget 
ayu@slackware-cluster:~$ ps as | grep wget 
1001 18719 0000000000000000 0000000000000000 0000000000000000 0000000000000000 S+ pts/1 0:00 grep wget 

I screwed the pts? Obviously, this guy here had the same glitch. The system ran just fine afterwards (no silly 0s), it was just fun to watch some erroneous output. :D

Mother in law

Dear, can I have your mom as mine--I need an extra mother?

--something isn't quite right with me

Rig in Lab

Here's the rig I'm sitting on starting today.

 

4 cores on i3-2120, 2 cores on E7400, 2 cores on T2370 (laptop), dual head on i3 box.
Running Slackware64-current, LinuxMint Maya (LTS), Salix64 13.37. 

I need to be ambidextrous to be able to work more efficiently on this rig, I suppose.

If my phone counts: add ARM MT6516 running FroYo

Quartett!: complete save game

If you like (classical) music, this is definitely a visual novel for you: the music is great, the art is stunning, and the characters are unique. Of course, as this vn doesn't feature any voice actress--this is no fan service vn!


The branches are easy to figure out: two major choices and viola, you end up with one girl. There's no bad ending though, all the three endings are rather bitter sweet.

So here's the complete save game if you just want to see all the scenes, CGs, and BGMs. I personally suggest to go for viola girl first, cello then violin girl at last. :D

Installing LILO on virtual disk (libvirt)

I have a libvirt-coupled-qemu-based virtual machine which boots Slacware 14.0. Long story short, lilo gave me this error when I invoke lilo -v:
Fatal: Linux experimental device 0xfc00 needs to be defined.
Check 'man lilo.conf' under 'disk=' and 'max-partitions'

After adding
disk = /dev/vda bios=0x80 max-partitions=7 
to /etc/lilo.conf, the box boots but give me kernel panic.

After digging from this thread on LQ, I found out that:
- libvirt is compiled as module,
- so I need to make new initrd (because recompiling the kernel is just too much pain).
So I made a new initrd
# /usr/share/mkinitrd/mkinitrd_command_generator.sh >> newinit.sh
# newinit.sh

and added it to the lilo.conf.
image = /boot/vmlinuz 
initrd = /boot/initrd.gz 
root = /dev/vda1 
label = slackware 

My final (and working) /etc/lilo.conf looks like this:
# LILO configuration file 
# generated by 'liloconfig' 
# # Start LILO global section 
lba32 # Allow booting past 1024th cylinder with a recent BIOS 
disk = /dev/vda bios=0x80 max-partitions=7 
boot = /dev/vda 
# compact # faster, but won't work on all systems. 
...
# Linux bootable partition config begins 
image = /boot/vmlinuz 
initrd = /boot/initrd.gz 
root = /dev/vda1 
label = slackware 
read-only # Partitions should be mounted read-only for checking 
# Linux bootable partition config ends

Reinvoke lilo with lilo -v.

It works just great despite some warning.
--invoking lilo compact (-c) screwed things up :(

Android UMS got scrwd by usb_modeswitch in Ubuntu box

Boxes in my lab boot Ubuntu-based distros (mosty 12.04LTS). I hate the fact that it won't read my Android phone which I've set to mass storage mode (UMS).

The problem lies in the fact that my phone's ID (from lsusb) is:
Bus 001 Device 007: ID 05c6:f000 Qualcomm, Inc.
which unfortunately is the same ID with some random USB 3G modem. D'oh!

Rather than dealing with usb_modeswitch I'm unfamiliar of, I'd just remove the package. who needs 3G modem from boxes directly connected within internal AS circle anyway?  
# apt-get remove usb_modeswitch

Now the pain is gone.

Utakoi

So why love songs are popular? Because somehow they liberate you from the burden you're carrying when you're in love.



Chouyaku Hyakuninisshu: Uta Koi is simply epic. The story tells the roundabout of Hyakunin Isshu. It portrays Japanese-flavored love in subtle but meaningful ways.

The story took place when poetry at the time was a scholarly form of liberation from Japanese oppressing political (and cultural) structure. Nevertheless, love is universal (you don't say?) so it's nice to watch despite it's heavily flavored by (rather esoteric) ancient Japanese courtesy.

Anyway, enjoy!
I pick this anime as Summer 2012 Best Anime.

Bicycle Helmet


I just lost my helmet about a month ago, and now I don't think I should buy another one soon. (But sometimes doing 60+ kph twisty downhill without helmet is kind of scary :hehe: )

To Encourage Bicycling, Lose Your Helmet

pheromone on The Street Corner

It's a snippet by Yukio Yukimino. Don't you realize everyday life is sexy? :)

pheromone on the street corner


Sensei 2: Complete Save Game

This visual novel is simple: the story resolves around youngster who got laid to his female teachers (different one for every arc). The fetish is as-is, in a way you can say it features vanilla-est fetish you can get from adult visual novel: no harem, no over-sized boobs, no crap.


 
-- some screenshot here

It's pretty easy to get the game done anyway, but here's my complete save game in case you are too lazy to get through all the arcs.
TEA2US.SAV
Put it in game's directory and you're good to go.

Firefox Manual Update: *.mar

If you ever try to upgrade Mozilla Firefox manually using *.mar packages, you'll find that it's such a pain, duh! The manual in Mozilla wiki page isn't much problem due to not-so-man-page style of writing.

--- Disclaimer: this approach's been done on my personal Slackware box, you should consider your own operating system configuration, directory access permission, and environment variables ---

Actually it's quite simple:
1. download the latest update package (*.mar) available for your firefox from Firefox latest release,

2. rename the packages you just downloaded to 'update.mar',
mv firefox-18.0a1.en-US.linux-x86_64.complete.mar update.mar

3. move 'update.mar' to 'whereveryouinstalledfirefox/updates', so in my case:
mv update.mar /opt/firefox/updates

4. run 'updater update-dir apply-to-dir'. 'update-dir' refers to the location where you put 'update.mar', and 'apply-to-dir' simply refers to the location where 'firefox-bin' is. So in my case:
update-dir = /opt/firefox/updates
apply-dir = 'opt/firefox'.
update /opt/firefox/updates /opt/firefox

The installing window will pop, just wait,

5. restart firefox (if you're running any instance), and enjoy your updated build of firefox.

You can also read the 'update.log' in the same directory as the applied 'update.mar'.

XWindow's Error

XWindow is silly ;) The issues is related to broken requirement packages--reintalling the X-related packages simply solved the problem.



you don't say?

Embarcadero's RAD Studio XE3 World Tour: Surabaya

I attended Embarcadero's RAD Studio XE3 World Tour: Surabaya in Sept 14. The event is nice, and RAD Studio XE3 is kinda cool. The speaker is Steve Ho and Gordon Li.


-I ate a lot of brownies back there, hehe
 
 

RAD Studio XE3 is an IDE, heavily based on Delphi with FireMonkey GUI designer and rapid prototyping tool, and Prism which is kind of wrapper for mono and .NET. The IDE is available on Windows (XP onwards) and MacOSX. Demos on the event highlighted its readiness to develop rich business application on Windows 8 and HTML5 with flashy interface, d'oh.

I can't help but comparing RAD Studio and Qt. It's Pascal and C++, it's FireMonkey and Qt Designer, it's Prism and Qyoto, it's Delphi and Qt Creator, moreover it's proprietary license and LGPL.
 
Later in the event, they said RAD Studio's going to support Linux by 2015 (on Lazarus maybe?)
____
anyway, thanks for the shirt and the mouse :)



Touhou

Touhou Hisoutensoku is fighting game (for Windows, duh!) where all the characters are female. It features several unique elements: weather which affects the field, spell cards, story mode, also you can play across network (if you don't find playing with your friend in versus mode convenient enough).




Download link here.

Also, drop by here for more info.

The Door is Open Wide

I just like it--I don't think porn would have such a nice songs in the first place (after all what's the best audio experience in porn is moaning, huh?)






It's from ebod-206 (ebody-tia).



____
tehee, I used sb's facebook account to upload the song to soundcloud as I don't have one

Proposal

I think saying "Will you marry me?" is just outdated--more or less being cliche, but certainly this one won't become obsolete.

I've been thinking of what I should I say when I have to. Then it comes up to some such stupid ones like:
- "Rather than letting only God knows, should we let people know?",
- "Would you let me lead your climbs? I don't know about the sprints though",
- "Shall I be your aspirin? You can be my theophylline"

After realizing that I'm such a retard, I think I'd just do it the vanilla way.

Romantic?

Speaking of Titanic, you can always remember the scene with the protagonist couple hugging in the ship's bow, feeling the wind blowing (at 6 knot?), I suppose that's what most people calls "romantic".

I've come up with slightly different view for what's the most romantic moment that could happen to myself:
with some (pretty hard) rain, on the summit of Cat1 climb where I led the whole ascend, we just stopped and had 3 mins hug and a simple kiss, she then led the descend afterwards.

To me sense of romance is about "exchanging things", thus the scene features some exchanges:
- saliva: (kiss: just make sure we both open our mouth widely),
- body heat (hug: due to the rain and different riding position, it'll **feel** more apparent),
- sweat (hug: you can barely tell which [dilluted with rain] sweat drop is whose at the points of body contact),
- lead (different leader on the ascend and descend).

 Blah! But exchanging helmets, gloves, or bike--I feel--won't make it more romantic. I suppose it just works on uncountable things. Anyway, making it HC climb or more expensive bike won't do much diffrence.

---------
Wait, if porn features kisses, hugs, exchanges of lead (the one who moves more frantically), why just because the actress is camera-aware for 2 secs, the whole 30 mins video is rather **unromantic**.
--------

Nah, let me correct myself: being romantic is showing your true colors
---Olivia Ong: True Colors just happenned to be on my playlist by the time I wrote this

Special Day

What a special day to me:
- Ied al-Fitri,
- (a day) after Indonesian Independence day,
- 1st anniversary with my current bike,
- Vuelta,
and I've set up my box with IPv6 :D

SATA hotswap

Hotswapping SATA drives, be it ODD or HDD, is easy on Linux.

To detect newly attached drive:
echo "0 0 0" > /sys/class/scsi_host/host?/scan"
(its permission is 200, write-only only to root)
The host? reflects SATA channel number.

To safely dismount the drive:
echo 0 > /sys/block/sd?/device/delete
The sd? is hdd's device identifier.

___
Thanks to stephane kattorr@sakana.fr

Cheap(skate) Flashdrives

I'm sure we are familiar with flash drives, and they're getting cheaper and cheaper every year. There are several reasons that flash drives become cheaper:
- cheaper materials,
- cheaper manufacturing cost (V/ULSI),
- cheaper labor (pity those guys in China),
- cheaper distribution chain (so many computer stores around),
+ being 'cheapskate'.



In January I purchased Kingston DTIG3/8G. Let's grab fdisk to tell us about its actual user-addressable capacity.


Disk /dev/sdc: 8010 MB, 8010194944 bytes
255 heads, 63 sectors/track, 973 cylinders, total 15644912 sectors

Recently I purchased the very same model from the same store, 6 months after the earlier purchase, in a way I feel like I've been being ripped off. See what I've got.

Disk /dev/sdb: 7784 MB, 7784628224 bytes
192 heads, 30 sectors/track, 2639 cylinders, total 15204352 sectors

To me 7784 MB is barely 8GB, duh!

Le Tour: Team Sky

Team Sky Pro Cycling has  it overkill this year on TdF. The squad is (un-)heralded to be the best super team (and likely the most expensive squad, in a way). They've got World champ, several national champs (and ex-national champs); and the yellow helmet is just funny :)




Yellow for Wiggins
Bradley Wiggins's always been top GC contender, hasn't thing gone wrong the final yellow jersey should go for him.

Green for Cavendish
Sagan, Goss, Griepel, Petachi: yet we can't deny that Cav is amazingly fast in the last 100m.

Polka-dot for Froome
This one doesn't sound quite right, there's still Movistar, Euskaltel, FDJ, Schleck and Sanchez.
 
White for Boasson Hagen
 Why not?
 

Too bad they lost Siutsov.

Soundcloud, anyone?

Soundcloud is just amazing, you just can listen and download almost any music you'd like.


And a little hack from me, you can always download the track: find the stream token in the page's source, such as:
http://media.soundcloud.com/stream/4zX19lYZadAV?stream_token=uFBK5

It'll redirect you to the song's file :) Else, you can use addons for your browser to download 'undownloadable' tracks. 

____
Dubstep is just cool the first 40 hours you're listening into it, it mostly sucks afterwards.

Magnet links on Nightlies

Open about:config page;
type in network.protocol-handler.expose.magnet as boolean value set to 'false',
you're good to go. It'll gives you protocol association windows the next time you open magnet links.

IMHO, It's definitely the easiest way to associate new protocol in later versions of Firefox (which come with confusing rapid release scheme in the package :D ).

Thanks to ArchWiki.
 ____
Anyway, I've never really liked the idea about Firefox's rapid release development: just knowing your build number is bigger has nothing to do with the software's reliability, no?



Florence + The Machine: Breath of Life

Florence + The Machine: Breath of Life.



You're screwed up if you don't think this one is awesome.
Fetch the lyrics here.

Idol Group turn Pedophile on

Just until today, I **sanely** thought idol group would just singing around wearing certain-themed (school, lolita, casual) decent clothing in their music video, and those whose photobooks including bikinis is just 'side activities'.

But it turns out that I were completely wrong: they wear slutty-looking lingerie in their music video! DAMN!

Thank God it's not female-to-female French kiss, after 'cat-to-cat' kiss and bathtub duo, what could be worse?

So who are their audiences? Pedophiles?


____
Anyway, if you are interested in the lyrics, you can fetch it here.