Sunday, December 8, 2013

emacs image-dired mode fixing "Thumb could not be created" thing

Ah, emacs's dired-mode... if you don't know it, do "C-h r m Dired" on your emacs right now (do Image-Dired instead for image dired mode too).

You need to have a few extra packages for image manipulation installed, but it's like the only descent/realistic way to manage (a large number of) image files I know...

"Thumb could not be created  for file ..."

This error can be annoying. In my system with:
GraphicsMagick 1.3.12 
emacs-24.3

If you have all the necessary packages and all, then probably it's because of the "strip" option used by default by image-dired-mode to make thumbnails/resize original files.


Adding this to your .emacs file should fix it.
(setq image-dired-cmd-create-thumbnail-options "%p -size %wx%h \"%f\" -resize \"%wx%h>\" jpeg:\"%t\"") ;; remove -strip option
(setq image-dired-cmd-create-temp-image-options "%p -size %wx%h \"%f\" -resize \"%wx%h>\" jpeg:\"%t\"");; remove -strip option
;;(setq image-dired-external-viewer "/usr/bin/xzgv");; a viewer I like, just in case you're interested

As an extra advice for image-dired noobs, having a 3 window emacs frame is probably the expected thing for having it working. One for dired-mode, the other for the thumbnails of image-dired, and the other for the larger preview/original size pic.
It let's you add comments/tags in an emacs exclusive "database" file, so you can manage/search for images pretty easily and fast.

Sunday, November 17, 2013

my "bodybulding" training

In results:
Before / After
  

These are my results for my 3.5 months of training.
Bulk up: 3 months ( +4 kg, +2% fat, +900g of muscle)
Reduce fat: 2~3 weeks (- 2.5kg, -1% of fat, -50g of muscle).

If you're like me and want to look more like Arnold Schwarzenegger, rather than a simple thin guy, please keep reading. If not, please leave the page.


After drinking alcohol pretty much 3~4 times a week and having a super unhealthy diet and lifestyle after being dumped by fiance, I looked a lot worst that in the "before" pic.
I hit the bottom of the bottom of my life so far at least in self-destructive/depressively speaking.
Leaving aside "why" I began training, it was something I had been wanting to do a long time, but didn't have the money/time/will till now.
Apparently I have good genes for muscle development, which helps. After 2~3 years, I expect to look more like a real bodybuilder.

There are many stories out there around how a certain diet/fitness training can help you do this kind of change in your body. But most of it is sh*t. And believe me, the worst thing you can do is do a ketosis diet, like eating once a day, or having days without eating anything. You only do that kind of thing if you have some kind of trauma for being a f*cking fatso for long, and having no idea of how to change that and being totally desperate.

You'll basically need:
  1. a gym subcription / + optional sport or fitness recreational activity (me: capoeira/brazilian jujitsu and mountain biking) 
  2. a microwave, fridge, and basic cooking skills (you'll begin bodybuilding cooking)
  3. time to rest and sleep
  4. track recording tool (notebook, etc. I use a database in my computer)
  5. calories calculating tool (notebook, etc. I use a lisp program I made)
  6. the will to improve yourself or kill someone so much you'll stick with the plan

About one third of all is in the gym, and how you develop your musculature using the progressive overload principle. Go to youtube or something, and watch the Joe Weider's training tapes. If you want to look a bodybuilder, you gotta train like one.
The other two thirds are about the time you take to rest your body /sleep, and how you calculate your diet.
You can do the diet change gradually, having to better have about 40%, 50%, and 10% of protein, carbohydrates, and fat daily. With the amount of calories being higher than the amount you need --- get in an over calories diet --- (in the bulk up phase, where you generate the amount of muscle you want, fat will be generated too, don't worry about it you can get thin anytime, it's super easy when you begin understanding your body and how it uses the food you take).

The basic cooking skills part is nice too. Especially since you're like me and never cooked before, and think the best food you have had is whatever your ex-gf or her mom had made for you. Everything will taste better when knowing that's what your body requires, and how it be used by it. Read in sites like bodybuilding.com about simple/complex carbs, protein, fat, and experiment on yourself about what suits your body better. You'll probably be making your food in bulk ilke twice a week, and heating stuffs with a microwave everyday. (From my second month of training, I started eating 5~7 times a day, bringing packed food to the office). Oatmeal, non-stick-spray (cooking oil spray) and baked chicken breast, brown rice, (especially sweet) potatoes, eggs/milk, and of course protein shakes and supplements will be your strongest allies.

Weight yourself everyday to keep record, as well as write down everything you eat, and it's nutrition values so you can make sure you're having enough calories and carbs/protein, or if you get too fat, how much is too much for you.
Also take pics of yourself once every 2 weeks, which will help keep record of how your body changes (you really don't notice when looking yourself at the mirror everyday, although probably your friends do).
An occasional junk food/eating out meal is OK. But if possible, stay away from alcohol, that's not only for bodybuilders, if you want to stay healthy in general...

Some people say I look ripped/muscular enough now, but I want to get bigger, so I'll keep bulking up again for a while. Really, this changes your life in so many ways I wish I had started it long time ago. Now I can cook pretty good (which also makes your life cheaper if you were used to eat it out), look a lot better, and feel a lot more confident of martial arts skills as well... which can't hurt (me).

Friday, August 9, 2013

omg lavabit.com is down...

I had been using this account for so long, and it's down all of the sudden><...

I guess the only options I have are either renting a server (having to pay monthly!), or use gmail... none of which can really be told to be very free (as in freedom).
Argh, if any of you have any good mail provider suggestions...

Sunday, August 4, 2013

The cheapest usable cellphone in Japan

Update

Now you can get a super cheap SIM-free cellphone in Japan by many companies (let me recommend "rakuten mobile"...), with a phone number and everything, so this is kind of outdated.



Japanese cellphone companies can be crazy.
They have some very hard to get bills, lots of plans which don't make much sense, and since the moment you sign the contract they usually will make you get in for some plans you don't plan to use but "need" to sign first in order for the campaign to apply, of which without it'd be even more expensive...

I used the Japanese company au's cellphone for a while, for about 7,500JPY per month. Then softbank, for about 9,000JPY per month...
That's pretty much my cellphone to receive emails, browse the web a bit while on the train, and get occasional phone calls. So it's pretty much a big waste of money...

Then, thanks to IP phones... we can get something a lot better, a lot cheaper! The services are:
Rakuten fusion smart phone (SIP phone number)
Rakuten LTE

LTE just refers to the (micro-)SIM chip you get to connect your cellphone to a Japanese cellphone network (docomo's) and use internet. And the SIP phone number is the thing that lets you do/receive phone calls via internet, you can also use it from your computer as you can guess (use Ekiga on GNU/Linux).

The SIP phone number DOESN'T have a basic fee per month. And you can make phone calls for free to most IP phone numbers (050- numbers). That means as long as you only receive phone calls, you'll be talking for free. And it's cheaper to make phone calls than from regular cellphone's phone numbers.
The bad thing, is that as you can guess, it relies on your network... If you are in a remote area, and your internet connection is kinda slow or doesn't respond very fast, you'll have a bit of a lag during the call. Kind of when you make a long distance phone call.

LTE works just fine, it has a basic fee from 875JPY to like 2,980JPY per month, depending on the bandwidth plan you choose. These are some very easy to understand plans...

The "bad" thing, is that you have to buy the cellphone in advance by yourself, and do the setup (put the SIM chip into the phone) by yourself. But that's pretty reasonable for the price you get, being that I pay like 900~1,500JPY monthly for this phone... about 6 to 9 times cheaper than I used to.

my little sister dog

Ah I'm sure how she's is... she wasn't really my dog...
But I will never forget how friendly she was with me, even when apparently she wasn't like that with everyone, which made me feel like a family member...
I truly hope she's doing good, and making her family feel loved as they deserve.
I hope I can see, or at least hear from her again someday soon. Although that's not likely to happen for reasons out of my control...

I don't know, people tend to tell me not to be negative, and to just ignore depressing/bad stuffs.
Although sometimes I do follow the advice, that just sounds like fooling oneself. I understand being positive is probably a lot more attractive and all socially, but what's the point in ignoring your own feelings and thoughts. If we truly are because we think, I think that should be expressed in a healthy way rather than just keeping it to ourselves...

Anyway, that was my internet message to my almost little sister dog. Please visit me in my dreams at least.

Monday, July 15, 2013

for second try

OK, so... putting apart the fact I want my ex back like hell, I'm "fixing" my remaining "bad" stuffs she kept complaining about...
Maybe I'll get a chance with this... or at least it'll certainly make me healthier and more skillful.



So, 
  1. I realized and corrected my wild/yakuza Japanese I used to use sometimes. Now I use it only before fighting the yakuza in Shinjuku.
  2. I can resist criticizing defects of people I don't like very much (to a certain level... and as long as they are not working with me).
  3. I got I was too jealous without having a reason on many occasions. Although I wished she'd got how I felt for her having so many guy friends... But I should have understood how that was just kind of her role here as well, I wish I had been able to think so a few months ago...

And now I'm fixing my diet and cooking skills...

Do you know what a "mochi" is? It's like a soft cake make of rice. Well, sometime ago when my (ex)girlfriend was feeling bad and her stomach wasn't too good, I bought one for her to make her feel better... this is a NOT DO example. Apparently that's like hard to digest and stuffs, so she got like really mad at me for not being able to cook her anything...

So, fuck, I'm starting cooking classes><... Of all the things I thought I'd never be doing...
I even got a BBQ Master License (only in Japan...)! So at least I can prepare some good meat.
Target: Next time my gf gets sick, I will be able to prepare something to her. As well as when she's busy at work and stuffs.

My diet, which consisted mostly of meat and coca cola, has been completely changed.
Maybe it's because of age, or being extremely depressed, I don't know. But I don't feel like having meat/chicken with potatoes and coke all day long any more.
From my health checkup 4 days ago, I lost 2.5kgs, from which a lot was fat... although I my muscular mass increased a lot too thanks to capoeira classes.
2 more kgs, and I'll be the same weight I had when I joined my company, only with more muscle, which I guess is a good thing. And riding my bike 36kms a day for 2, or 3 more days should get me there.

Now losing weight, I'm measuring my weight/fat%/muscle%, etc on daily basis, as well as the kcals for everything I eat(I'm eating vegetables! can't believe it...).
That's another reason to quit coke, I used to have about 1/3 of my needed kcals from it + meals, so it was very easy to get over calories.
Target: Have my Greek-god-like body back, be able to control my and family's(0ppl right now) nutrition responsibly, and hopefully with a good flavor.


Anyway, I should have the necessary skills to be a good ikumen with this... now I only need my girl back><.

Diet/cooking classes links(Japanese)
http://www.betterhome.jp/school/beginner/tour/index.html
http://nanapi.jp/23611/
http://www.sorisso.jp/modules/school/schedule.php
http://naisibo.seesaa.net/


After a while
Updating this after a few weeks...
Hmmm setting targets can be a good thing for projects and all, but maybe not too good to get a girlfriend. The best thing is just leave it to nature and her judgement.
I will be trying to improve myself, in all the things she told me were bad about me, and I do hope while or after that she'll understand how much she means to me though.

Anyway, now I'm thin again, I'm trying to get along with lots of people I really couldn't even imagine talking myself with ever (trying to understand people...), and I'm learning to cook and all so I can be useful in the house too. At least one girl should find some of that attractive, sadly I don't just care for any kind of girl anymore...

After even longer

And then I started seeing my ex in the same place I work, coming to and going back from the office, pretty much every time at lunch, and in big meetings, with some super ugly/annoying guy she works with... and it was just too clear.
After 10 months of dumping me, she contacted me, told me she wanted like 300,000JPY "back" (we had already split the money we used every month, so there's no way we owe each other any money...), and more of some psycho, probably brainwashed by some other guy talk.
This is so disappointing in so many ways... it's amazing how people can change from influence from fucking assholes. I guess you kind of have to be one from the beginning to be able to be such people's friend though.
So disappointed.

Thursday, July 11, 2013

life sucks

1!|=3 5u(>

Ah, there are so many things I wish I could fix.
So many things I'd like to go back and redo differently.

My father has passed away.
We weren't the best friends, but his last mail to me was very emotional, and made me wish I had done things differently...

I wish I had introduced my girlfriend (ex) to him, and maybe pay him a visit when I knew he was sick.
That only could have changed so much my current situation...

I've lost the closest people I had, the only person I've thought to marry, have kids, and be with the rest of my life... and the only person who although not liking each other since childhood, trusted, saw my potential, and even helped me economically to study and live in a foreign country on the other side of the planet.
There's no next closest person in the list...

I've always tried to even when things seem bad, to think logically and deal with them in a positive/self-helping manner.
I think I'm about to reach my limit.

Losing my father is understandable, as it's a part of nature at least. Although I wished I could spend some time with him at least on his final days.

Losing my fiance still makes no sense. As although there were some bad times caused by stress and others, there benefits and happiness in being together is/was obviously larger... Why focus only in the bad things when there were so many more good times and memories... Why think of fighting when we can flirt with in mysql, joke about stuffs that wouldn't make much sense to other people, or just enjoying being together at dna level.

The worst thing is I had fell for this girl so badly, even trying I can't be with someone else. I have no interest, no will to.

God please, if you read my blog, I've had quite a crappy life till now, please give her back to me and I'll try to do more good stuffs for the world besides free software and work.
I'm too tired to go on.

Rest in peace dad, I'm so sorry I couldn't visit you in person with a wife and kids as you wanted to so much.
Believe me, I'm full of regrets already.
By this rate, see you in a few years...

Thursday, June 20, 2013

ah |=|_|C|< my 1337 post

ahh |=|_|C|<

It's just horrible.
When you find the person you know is everything you've been looking for all of your life.
When you have the luck to actually getting even engaged, meet her parents, and still be crazy about her.
And then being forced to separate and live afterwards only remembering her every fucking day.

17$ 4 |=uc|<!|\|6 #0RR!8|_3 7#!|\|6 1!\/!|\|6 |_!|<3 3="" 7="">4'/...

17$ |\/|34|\|!|\||_355.
7#3R3 15 |\|07#!|\|' |\/|0R3 P4!|\||=|_||L N \/0!|>.

3'/3 571|_|_ |_0\/3 #3R 50 |\/||_|(#...

|\|0 |\/|0R3 P4\//|\|4|>63 |=0R |\/|3...

|=|_|(|<
What wouldn't I give to 637 #3R 84(|<....

FTW

3\/3|\| |\|0\/\/ 3'/3 4|\/| 7#!|\||<!|\|6 0|= J00 |\/||_P.

FTW

60|> 6!\/3 #3R 84(|< 70 |\/|3 P|_34$3


Monday, February 11, 2013

Running quakelive on GNU/Linux

After getting a decent video card, the next obvious thing to do is to at least try it with a game...

quakelive.com is a nice one! (lots of actual free games out there to try to though)

I'm using debian, so I'll use iceweasel instead of firefox.

1. run iceweasel
2. go to quakelive.com and register + get the plugin file (QuakeLivePlugin_520.xpi)
3. mkdir -p ~/temp/quakelive; cd ~/temp/quakelive; unzip QuakeLivePlugin_520.xpi; cd ./plugins
4. depeneding on your architecture, copy the file npquakelive.i386.so or npquakelive.x64.so to ~/.mozilla/plugins
5. restart iceweasel
6. go to quakelive.com again, and it'll say plugin OK and start downloading the rest of the game! After that you'll be able to play.


GEFORCE GT610 video card in dell poweredge 840 server

And, trying to ignore reality, the only thing sane to do is to try to think something else real hard. Luckily I have lots of tasks like that.

I installed a GEFORCE GT610 in my new dell poweredge 840 server (I use my server as a desktop computer).
Model name GF-GT610-LP1GH, with 1 GB of video memory, pretty fast, and the best, works with a 32 bit PCI bus! (not pci-express!)
My computer has 1 32bit PCI bus, and two PCI-X (not express, eXtended! which is like a 64 bit PCI bus), so the card fits in any of these (you can put a 32 bit PCI card into a PCI-X one).

Maker page: http://kuroutoshikou.com/modules/display/?iid=1720

Official drivers for GNU/Linux (32 and 64 architecture available): http://www.nvidia.com/Download/index.aspx?lang=en-us

I'd prefer to use free software or at least open source for this kind of thing... apparently there are some options in the repositories (sudo apt-cache search nvidia). Please check those out too, I know I will...

How it goes:
1- Install the card in the server
2- Boot. You'll hear some beeps, and it'll take a lot longer than usual depending on your kernel
3- Depending on your X settings, you'll get no output to the monitor after the POST and maybe the init scripts have run.
4- If you get no output from your monitor (I didn't!), use ssh to login to your computer, run the file you get from the official drivers download page (chmod +x NVIDIA-Linux-x86-310.32.run; ./NVIDIA-Linux-x86-310.32.run)
5- You'll get compiled the kernel modules for the video card and your /etc/X11/xorg.conf settings will be changed ( notes on that below)
6- reboot
7- Cross your fingers and after probably a lot longer than you're used to, you'll see how the init scripts run, and you get your X session looking quite pretty!

Problems:
- the grub menu screen won't show... so right now I can't choose anything but my current default kernel/initrd on startup. This probably won't be so hard to fix
- the server won't halt! (it takes a lot to shutdown!)... yes, I guess the modules aren't working perfectly or something. I guess re-compiling your kernel for multiple displays support would fix it. Or at least trying a new kernel...
- it takes so long to boot! There's a pause between the grub start menu thing, and the actual initrd scripts running. I guess this is due to the kernel as well.

But besides that, it works perfectly!! I can finally see high-resolution videos without having to scale them smaller or dropping frames, and even better, I can finally play on my computer decently! I just tried quakelive without any trouble!


Random information:
computer: dell poweredge 840
OS: Debian GNU/Linux 6.0, kernel: 2.6.26-2
added lines on /etc/X11/xorg.conf:

$ bzr diff xorg.conf|grep +
--- xorg.conf 2013-02-11 07:06:13 +0000
+++ xorg.conf 2013-02-11 07:24:07 +0000
@@ -1,57 +1,54 @@
+# nvidia-xconfig: X configuration file generated by nvidia-xconfig
+# nvidia-xconfig:  version 310.32  (buildmeister@swio-display-x86-rhel47-09)  Mon Jan 14 15:46:49 PST 2013
+
+Section "ServerLayout"
+    Identifier     "Layout0"
+    Screen      0  "Screen0"
+    InputDevice    "Keyboard0" "CoreKeyboard"
+    InputDevice    "Mouse0" "CorePointer"
+EndSection
+
+Section "Files"
+EndSection
+
+Section "InputDevice"
+    # generated from default
+    Identifier     "Mouse0"
+    Driver         "mouse"
+    Option         "Protocol" "auto"
+    Option         "Device" "/dev/psaux"
+    Option         "Emulate3Buttons" "no"
+    Option         "ZAxisMapping" "4 5"
+EndSection
+
+Section "InputDevice"
+    # generated from default
+    Identifier     "Keyboard0"
+    Driver         "kbd"
+EndSection
+
+Section "Monitor"
+    Identifier     "Monitor0"
+    VendorName     "Unknown"
+    ModelName      "Unknown"
+    HorizSync       28.0 - 33.0
+    VertRefresh     43.0 - 72.0
+    Option         "DPMS"
+    Identifier     "Device0"
+    Driver         "nvidia"
+    VendorName     "NVIDIA Corporation"
+    Identifier     "Screen0"
+    Device         "Device0"
+    Monitor        "Monitor0"
+    DefaultDepth    24
+    SubSection     "Display"
+        Depth       24
+    EndSubSection
+

ah life

I can't stop feeling like shit.

Everything I do reminds me of my old girlfriend.
All those good moments, and dreams for the future... gone in a swift.

I have so much to regret...

ah, fuck it.

Sociable