whores

Compress files individually in Mac

To compress selected files individually instead of 1 zip files, we need to setup script to handle this. Luckily we do have the “Automator” to seamlessly integrate to finder.

These are the Steps for Automator 2.1, should be similar for minor version:
1. Open Automator
2. Choose Service
3. Service receives selected = files or folders
4. in = Finder
5. Drag Run Shell Script to the right pane.
6. Pass input = as arguments
7. Paste this code to the script area
for f in "$@"
do
zip -j -9 "$f.zip" "$f"
done

8. Save and name your script, “Compress Individually” should be fine or just make one up that informative enough for you.
9. Try to right clicking on files, and you should find it on the lists

Share and Enjoy:
  • Digg
  • Slashdot
  • Technorati
  • Reddit
  • Mixx
  • StumbleUpon
  • Facebook
  • Google
  • del.icio.us
  • TwitThis
  • E-mail this story to a friend!

Birth and Death

Birth and Death is two side of a coin.
Denying death, it’s worser than the death it self.
.benzwu

Share and Enjoy:
  • Digg
  • Slashdot
  • Technorati
  • Reddit
  • Mixx
  • StumbleUpon
  • Facebook
  • Google
  • del.icio.us
  • TwitThis
  • E-mail this story to a friend!

jquery ui dialog with iframe

If you ever come across those combination, you’ll know where this post will lead.

Whether we fire the dialog on the iframe element, the contained iframe in the dialog will adjusted it’s width to ’standard’ 150px regardless the dialog’ width and iframe’ width setting. To put it another way, you call dialog to show in 300px but the iframe contained only fill half of the dialog and leaving plain blank on the rest.

It’s been a pain to be in the situation but you really have to use those combination. I’ve been tinkering with it with no luck and luckily my hunch lead to the solution.

The key is to resize the iframe to fill the margin AFTER the dialog opened. Put it at the open event of the dialog.

$(“#theiframe”).dialog({
bgiframe: true,
modal: true,
width:600,
height:480,
close: function(event, ui) { $(this).dialog(‘destroy’) },
open: function (event,ui) {$(this).css(“width”,”100%”)}
});
}

That should do the trick!

Share and Enjoy:
  • Digg
  • Slashdot
  • Technorati
  • Reddit
  • Mixx
  • StumbleUpon
  • Facebook
  • Google
  • del.icio.us
  • TwitThis
  • E-mail this story to a friend!

Report: Wine 1.1.35 and Lotus Notes 8.5.1 Designer/Admin Not Working

I’ve been trying to install Lotus Notes 8.5.1 Designer/Admin using Wine in OS X 10.6.2 with no luck.

I installed wine-devel using macport and Porticus as it’s GUI. Pretty neat using these combination instead getting all dependencies manually without GUI.

First obstacle was I have to the setup screen stop at calculating diskspace usage. The work around is to call the .msi instead.

wine msiexec  /i Lotus\ Notes\ 8.5.1.msi

At the end of the installation, the setup will fire a service but alas it came with error message that it require to be run in folder with notes.ini file.

I had to force the installation and manually run notes.exe instead but, BAM!, flat at on the brick wall.

Guess stick with virtualization for now.

Share and Enjoy:
  • Digg
  • Slashdot
  • Technorati
  • Reddit
  • Mixx
  • StumbleUpon
  • Facebook
  • Google
  • del.icio.us
  • TwitThis
  • E-mail this story to a friend!

Converting NRG to ISO in MAC

AFAIK, single session disk image in NRG format is a 600 bytes header and standard iso data after that. To remove the first 600 bytes, we can use dd utility from terminal.

The command format as follow,

dd if=source.nrg of=target.iso bs=512 skip=600

Replace source.nrg with your NRG file and target.iso with your desired target iso file name.

Good luck.

Share and Enjoy:
  • Digg
  • Slashdot
  • Technorati
  • Reddit
  • Mixx
  • StumbleUpon
  • Facebook
  • Google
  • del.icio.us
  • TwitThis
  • E-mail this story to a friend!

Japanese went berserk

You got to watch this, slo-mo video of Japanese went berserk. Somewhat entertaining but at the same time enlightening :)

Share and Enjoy:
  • Digg
  • Slashdot
  • Technorati
  • Reddit
  • Mixx
  • StumbleUpon
  • Facebook
  • Google
  • del.icio.us
  • TwitThis
  • E-mail this story to a friend!

Google Chrome on Mac 4.0.221.8

google-chromeRecently I switch to Chrome at 4.0.221.8. In this build the flash is working fine, no more 100% cpu usage like the older build. No crash for this whole day browsing. Currently I’m using puk-puk theme. Looks great.

This build is quite stable and pretty usable for now. Let see in coming weeks then.

Share and Enjoy:
  • Digg
  • Slashdot
  • Technorati
  • Reddit
  • Mixx
  • StumbleUpon
  • Facebook
  • Google
  • del.icio.us
  • TwitThis
  • E-mail this story to a friend!

The most out of sync video clip ever

Expression, costume, dance and song, they are in perfect out of sync. Hey, look at the bright side, it’s a multimedia entertainment, MULTI-MEDIA. You can turn off the sound and you can have some wacky hippie-like indian dressed dance that could go along well with ambonese poco-poco. Or you can only hear the song, an instant hardcore death metal. And the best part is, when you watch and hear the song simultaneously, undoubtedly hilarious new breed of entertainment. Multi, right?

So, why wait? Enjoy!

Share and Enjoy:
  • Digg
  • Slashdot
  • Technorati
  • Reddit
  • Mixx
  • StumbleUpon
  • Facebook
  • Google
  • del.icio.us
  • TwitThis
  • E-mail this story to a friend!

How To Take Care a Woman

hugI heard this on the radio talk show this morning, he said he was told by his friend too. The secret is… Hug. Yes, a hug. Hug is on top of the list. Woman need to be hug everyday. Could be true.

It’s said that this hug responsible for releasing oxytocin hormone that have beneficial effect such as bonding, increasing trust, reducing fear, affecting generosity.

While we waiting women to confirm this here, there is no harm to do it anyway, right?

Share and Enjoy:
  • Digg
  • Slashdot
  • Technorati
  • Reddit
  • Mixx
  • StumbleUpon
  • Facebook
  • Google
  • del.icio.us
  • TwitThis
  • E-mail this story to a friend!

Upskirt iPhone App

Undoubtedly iPhone has opened new genre of mobile applications. Recently BottleCube Inc. released PUFF!、ぱふパフ!!, an upskirt “game” featuring gravure idols *A.K.A adult movie star*. You can blow or flick the screen to upskirt the girls in it.

They try to find another “unusual” way to pleasing desires. After bored with the regular way, they create the derivation one. For me it doesn’t make any sense why would anyone buy that app? Maybe japan has a lot of potential buyer perverts or maybe there are a lot of people like this kind of amusement out there indeed. Do you like this app? Check out the ad video, you might one of those perverts too.

Share and Enjoy:
  • Digg
  • Slashdot
  • Technorati
  • Reddit
  • Mixx
  • StumbleUpon
  • Facebook
  • Google
  • del.icio.us
  • TwitThis
  • E-mail this story to a friend!