Doobie Custom T-Shirt tool for Android and IOS

Hey guys,

I have recently launched my new T-shirt app (http://getdoobie.com)

You will be able to print on the whole surface of the shirt, each print will cost $24.90 but if you use the coupon code: skincollected  you will get 10% in discount!
I also ship for free to anywhere in this world!

Its now on Android and iPhone
i will be working on the web version soon.

Get it now!

applestoreen_app_rgb_wo_45

Share/Bookmark

Y U No Print?

I have recently started my online print shop, it does Custom T-Shirts, Business Cards, Stickers/Decals and Rubber Stamps. Check it out! YunoPrint   <– clicky!

Points system, whenever someone purchases a design you created, you will get 2 credits as a reward, this way you can print for free by just creating designs that people like. I am also planing to do a withdrawal system where you will be allowed to withdraw your points as cash if you have a certain amount of cash.

Again.. check it out –> http://yunoprint.com

 

Fun with USB RS232

Yes i am alive, pirated butter fish didn’t kill me.

Recently, in my great pile of E-Junk, i found a usb to rs232 converter that wasn’t in use. I decided to do something with it. with a little bit of reading, i made this:

Initially, i hooked up the motor to the txd and gnd pins of the rs232 port and hoped that it worked – it didn’t. It turns out that it doesn’t have enough current to drive the motor (it lit up LEDs though, I didn’t mess around with LEDs much as my LEDs might die from it :/). i figure i need some sort of external power supply, this is where the N-MOSFET comes in.

Anyways… this is what you need to make your own

Circuit Diagram

Assemble your board according to the diagram

 

You can then connect the positive and negative cables to any battery powered device you have lying around (i happened to have a spare propeller), for the battery, i used a standard 9v battery.

 

Mine turned out like this:

Connecting to Rs232 port

Connect the Gate pin of the mosfet to the RS232’s Txd  and Connecting GND pin to the source pin.

On the computer…

All you need to now is to send something to the port,

In *nix based systems(Linux, Mac, etc):
$ echo 1 > /dev/tty(WHATEVER)

Windows
C:\> echo 1 > COM(WHATEVER)

Notice that the more data you send to the port the longer the your powered device stays powered up. To keep your device powered for a longer time, you might want to write a scrip to loop trough it.

Here’s an idea…

Hook this up with twitter and a battery powered nerf gun and everytime someone mention you in twitter, your nerf gun will fire!

The Curse of the “Pirated Butter Fish”

Recently i went for a trip to Langkawi, we stayed in The Andaman for 4 days 3 nights.
I’ll stay on topic and not talk about the run down hotel facilities; I’ll talk about the breakfast, lunch and dinner they serve there.

Breakfast

For a 5 start hotel, the variety isn’t as impressive. I’ll just list out what they serve (the ones that i can remember): Sausage, Bacon, Bread, Butterfish, Scramble Eggs, Miso Soup, Soba, Pancake, Waffles, Poached Eggs (This is good!!), Bloody Marry (wtf? for breakfast?) and salads.

Lunch

Its is pretty much same as the Breakfast: Spaghetti, Fried Rice, Butterfish, Chicken Sausage, Beef Sausage, Cake and.. i don’t remember the rest but that’s not important.

Dinner

The dinner is quite impressive (the atmosphere). the main focus is suppose to be the Grilled/BBQ food but they only grilled: chicken satay, beef satay and butterfish; they also serve curry lamb, noodles, chicken rice (serious), Murtabak and standard buffet food.

The Curse!

Did you happen to see what’s in common? press ctrl+f and type butterfish, you will notice that the only fish they served is butterfish. what’s wrong with butterfish? Nothing! the problem is, they are not serving us real butterfish! they are serving us Escolar instead of real butterfish (Stromateidae)!

Escolar

From wikipedia:

Because of the possible effects of consumption, escolar has been banned from consumption in Japan since 1977, as the Japanese government considers it toxic

If Japan banned a fish from consumption, it means that its extremely serious! (the fugu which can kill you if the chef is incompetent is still not banned).

Majority of The Andaman’s customer base are Japanese and yet they serve this fish to everyone.. 3 times a day!! It seems like that’s they only fish they stock up!

Effects of the Pirated ButterFish

Effects of consumption are:

  • headaches
  • nausea
  • vomiting
  • diarrhea
  • stomach cramps
  • bright orange oil in stool (That’s some scary shits! Literally scary shits! )
  • anal leakage!

Scarry Oily shit!I am not saying that you will 100% get this if you went to a sushi restaurant and ate Escolar as you will only get this if your portion is no greater than 6 ounces (170 grams). But if you stayed in The Andaman your chances is that you will get effected as the only fish they serve is Escolar 3 times a day…

Note that i am not the only one who is complaining about this fish a quick google reveals result from : Andy and Adrian, gothamist and some women’s health blog. This fish should be banned completely from consumption!

Cuting-Cost or Corporate corruption?

I really think that its the latter, Real butterfish is significantly more expensive than Escolar (they are restricted from selling to some countries). if they are cutting cost, they would have just changed the menu. But in this case they lied to their consumer, the purchaser (most likely the head chef) decides to purchase “Fake butterfish”(Escolar) and pocket the remainder of the budget for the real butterfish.

So yea, Thanks to the corrupted ass holes, our trip is messed up by some Pirated butterfish!

Even sharks are afraid

ADBFS a FUSE Filesystem for Android Debug Bridge

Android Debugging Bridge in action

Android Debug Bridge(ADB) is usually used for debugging android devices. I personally use it to move files arround because mounting your sdcard can sometimes be a bitch. moving files around in command line isn’t fun too imagine typing the following:

adb push bla /sdcard/ultRa\ Long\ Directory/AnOther\ Long\Directory/bla

not fun…. so to solve this problem i wrote ADBFS. With adbfs, i can simply drag and drop files as usual.

Requirements

  • *nix Os (or any os that support FUSE – i think windows has a port.. not sure)
  • FUSE ( macfuse for mac users – windows, i don’t know.)
  • android sdk from  Android developers site
  • git

Installation

git clone git@github.com:isieo/adbFS.git .
cd adbFS
make
mv adbfs <location of android sdk>/tools/adbfs

Usage

mkdir ~/mounted-adb
adbfs mounted-adb

done! enjoy drag and drop without needing to “mount” your sdcard to your machine.

Note: adbfs can be very very slow at times, this is because your file manager is trying to access all the files to get data from it. ADB was never designed to do this so its not fast. Also this program is a proof-of-concept if anyone have a better implementation, please suggest.

License

/*
 *      Redistribution and use in source and binary forms, with or without
 *      modification, are permitted provided that the following conditions are
 *      met:
 *      
 *      * Redistributions of source code must retain the above copyright
 *        notice, this list of conditions and the following disclaimer.
 *      * Redistributions in binary form must reproduce the above
 *        copyright notice, this list of conditions and the following disclaimer
 *        in the documentation and/or other materials provided with the
 *        distribution.
 *      * Neither the name of the  nor the names of its
 *        contributors may be used to endorse or promote products derived from
 *        this software without specific prior written permission.
 *      
 *      THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 *      "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 *      LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 *      A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
 *      OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 *      SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 *      LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 *      DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 *      THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 *      (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 *      OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

Warning

Very experimental =P its usable though i use this regularly to modify my playlist file.

Android Debugger Bridge Filesystem

Preventing CSRF in Kohana

Recently I found myself a neat CSRF module for kohana:

http://github.com/synapsestudios/kohana-csrf

I liked its simple design, you generate a token for your form then validate the token when its submitted. Unfortunately, I can’t use this solely for my project. The first issue with this module is that It will require me to manually add support for every single form and be very careful when adding AJAX and regular forms together. So i forked it.

http://github.com/isieo/kohana-csrf

What i did was i add a controller that returns the token as JSON and included a “fake javascript” file. My javascript is simple, its a simple jQuery script that injects a hidden field containing the token that was requested via AJAX, the token is then validated by the the controller automatically which upon success un-assign the token element from the $_POST array and reject if invalid. With that, CSRF tokens are transparent to your front end designers(if you are working with one) and all you need to tell your javascript programmer to do is call getCSRFToken() and post it in every Ajax Call.

Example usage for normal forms:

<!DOCTYPE html>
<html>
    <head>
        ...
        <script src="jquery-goes-here.js" />
        <script src="<?=url::site('/csrf/javascript/csrf.js');?>" />
    </head>
    <body>
        ...
        <form action="" method="post">
            <input type="email" name="emailaddress" />
            <input type="submit" value="submit">
        </form>
    </body>
</html>

that will work out of the box! no including pesky <input type=”hidden”> crap in your form.

Example using an AJAX call in jQuery:

$.post("<?=url::site('/email/add');?>", 
         { 
           'email':'someone@example.com',
           'csrf-token' : getCSRFToken() 
         }
       );

All you need to do is to add the ‘csrf-token’ : getCSRFToken()  into the ajax request. simple, no need to do callbacks for ajax calls that doesn’t require them.

Security in using JSON for getting token. Some of you might argue that serving tokens in JSON isn’t secure but if you read about JSONP (yes JSON with a P), you will notice that JSON doesn’t work well cross domain.  I am no security expert but hey, Accodring to: robubu.com there are no current vulnerabilities in using “serialized object” JSON (php’s json_encode function returns that by default).

So there you go a simple and nice module to prevent CSRF in kohana, coupled with jQuery Pouplate Plugin you get “pure html” forms that will make your frontend guy happy and not bug you for any assistant.

Update: As of 3 hours prior from this post, supports Namespaces to support multiple forms. but still.. its quite troublesome trying to keep track of token namespaces when you have many forms in a the same page which is going to make the frontend guy and you cry.. Its still a great module to use if you are working alone or you have an application that needs to be super-duper-uber-hacker-proof secure.

Stuff to watch this Month!

Here is a list of tv series that might interest some of us.

Episode 2

James May gets stuck.

TopGear is back! more “serious” car show!

As usual, they are being “serious”, crashing more Malaysian made cars and insulting people. I don’t usually watch car show but top gear is different, its not about cars; its about how 3 guys do strange things with cars =P

Next, we have Eclip….urgh! i mean High School of the Dead.

Why Twilight Eclipse? When you can have more dead people?

Brainzzz!

I am guessing that this show will not end up in animax or cartoon network because of the amount of blood and flesh you see in this show (and boobs?). Anyway, its should be fun to watch, i have read the comic(yea i don’t use the word “manga”, i am typing in english so why need romanization?) and the story isn’t too bad… (i personally watch it for the zombies). In any case this is 10000% better than Vampires and Warewolfs trying to mingle with a girl (Ecl*caugh*caugh*ips)..

Messed up even on first episode.

Seitokai Yakuindomo Screenshot

ok, i am going to contradict what i said about romanization (just because it sounds stupid after translation) Seitokai Yakuindomo which means correct me if i am wrong… “the officers of student council”. Anyway this is filled with weird jokes and just good for laughter.

There are more that i want to post but they are all still in the first episode can’t write much there.. so i am recommending some documentaries here.

National Geographic Engineering Connections hosted by Richard Hammond. Interestingly enough this is quite informative, it shows you how engineering marvel got designed by tracing the roots of the technologies it uses.

Richard Hammond explaining the functions of Taipei101 giant pandulum

National Geographic Engineering Connections

Mythbusters! not much to talk about here but more explosions! yea!

Pig: don't tase me bro!

Mythbusters

Well that’s it.

May your skin be collected..

Roast Duck @The Apartment

Last week, my friends and me decided to have dinner at theCurve and chill at the apartment then go to laundry and then finally go to the library (err don’t take this literally click on the links before assuming anything).

At the apartment, I got some Roast duck for main course,  cappuccino for drink and chocolate cake for desert.

Rost Duck... quack quack?

Roast Duck with mash potato, peach and honey

Being me, i’ll always comment on the coffee first. Here’s my Rating (bold denotes rating):

  • Micro-foamed milk… Fail! they gave me Macro-foamed milk instead…
  • Sugar Cubes.. normally if they give me sugar cubes i would fail them but hey, its “home made” so Pass!
  • The blend, i have not yet reach the stage of identifying the brand and what blend is it but.. either the beans isn’t grounded enough or the coffee is pre grounded, it doesn’t have enough aroma.. i can’t blame them they are specialized in beers and alcoholic drinks not coffee.. Barely Pass!
  • Presentation, i don’t call sprinkling cocoa on the cup “artistic”, there isn’t any presentation to begin with no latte art, no motif  just plain white foam with coca sprinkel.. FAIL!

Yea so.. the coffee is a fail and the food?

  • Mash potato; Flavour is not bad texture is decent.. not much to say here
  • Peaches? err… warm peach… ok…
  • The Sauce. Its honey with herbs and nuts. Sweet
  • The Duck. if i didn’t tell you that i ordered roast duck, you would have thought i ordered mash potato with honey sauce (Bad presentation). What about the taste? hm… what taste? it tasted like the sauce! the meat is soaked with the sauce, the skin is moist.. its just like eating left over meat in the pressure cooker (tasteless as everything got extracted into the soup) Ultra Fail!

Desert… my tastebud got congested by honey-herb-nut sauce and i can taste nothing. according to my friends, its good. =P

Conclusion, i have been collectskin (oh yea this is how you use the word btw.) by the apartment… go to the apartment for your desert and alcoholic drinks and not for dinner.

Oh yea we didn’t manage to go laundry and the library because i have got honey tongue. We ended up at SYM and karaoked till 2am ~_~