Recent Updates Page 2 RSS Toggle Comment Threads | Keyboard Shortcuts

  • kusno mudiarto 11:36 am on February 8, 2010 Permalink | Reply  

    zoomIt – iPhone SD Card Reader – ready for pre order 

    zoomIt available for pre-order. You can get it from here : http://www.zoomitonline.com/

     
  • kusno mudiarto 12:33 am on February 5, 2010 Permalink | Reply
    Tags:   

    Almost ready to launch our product : zoomIt SD Card reader for iPhone ! 

    My company zoommediaplus – http://zoommediaplus.com – almost ready to launch our main product, zoomIt sd card reader for iPhone, iPod Touch, (and hopefully iPad). I like our product so much; it is quite useful. I’m very excited about it ! ..

    With this accessory, now you can bring your music or video in your sd card, you don’t have to put it on the phone using itunes. You can share it with your friends also :-)

    I am working mostly on the apple iphone sides. The main app to support the accessory has been launched to the AppStore couple weeks ago. You can download it here for free : http://itunes.apple.com/us/app/zoomit/id343057034?mt=8. But of course you won’t see the full potential until you have the zoomIt accessory.

    I am also working on other apps to further enhance & simplify the usage of our product. An app specially designed to play music, another to handle photo, and yet another one to play video. Just keep your eye open for updates.

     
  • kusno mudiarto 1:09 pm on July 20, 2009 Permalink | Reply  

    Redirect IP address to localhost in os x 

    Use this command to redirect ip address to localhost in os x. Not sure if it will work in other os.

    ifconfig lo0 alias 10.0.0.1 will redirect 10.0.0.1 to the localhost / loopback adapter

    ifconfig lo0 -alias 10.0.0.1 will remove it

     
  • kusno mudiarto 2:33 pm on June 19, 2009 Permalink | Reply  

    NSLog replacement 

    copied from http://iphoneincubator.com/blog/debugging/the-evolution-of-a-replacement-for-nslog

    basically just put these code into your precompiled header file:

    // DLog is almost a drop-in replacement for NSLog
    // DLog();
    // DLog(@"here");
    // DLog(@"value: %d", x);
    // Unfortunately this doesn't work DLog(aStringVariable); you have to do this instead DLog(@"%@", aStringVariable);
    #ifdef DEBUG
    #	define DLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);
    #else
    #	define DLog(...)
    #endif
    
    // ALog always displays output regardless of the DEBUG setting
    #define ALog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);
    

    you might need to add this flags to the project:
    OTHER_CFLAGS = -DDEBUG
    GCC_PREFIX_HEADER = YourProject_Prefix.pch # this is needed especially for static library

     
  • kusno mudiarto 5:14 pm on March 26, 2009 Permalink | Reply  

    Trace32 script to print stack frame to a file 

    A very simple scripts, but took me a while to found it. Basically in Trace32, I need to capture stack trace whenever a certain memory location is being written. I got tired of doing it manually, and have to copy & paste the stack trace everytime. Searching it in Google didn’t give me a clue, so I read through Trace32 manual to find out how to do it.

    Finally, I found the easy way to do it, here is the script / command in its glory:

    # printer.clipboard -> to redirect to clipboard
    # use this to redirect to file
    printer.open "c:/kusno_trace_1.txt"
    
    # command to be run inserted in the  the breakpoint
    wp.var.Frame
    
    # close printer after we're done
    printer.close
    

    The trick here is using printer to print the content of the var.Frame…

    Tags:

     
    • vineet 11:34 pm on September 16, 2009 Permalink

      Thanks… It is really useful…

  • kusno mudiarto 11:43 am on March 24, 2009 Permalink | Reply  

    Adding Custom Compilation Flags in XCode 

    I just found out how to add additional compilation Flags in XCode. It may looks stupid, but I couldn’t find it anywhere couple days ago :( .

    Basically just do “Get Info” on a project / target, and add user defined settings with this value :

    OTHER_CFLAGS and set the additional compilation flags : -DTARGET_OS_X -DMUDI_DEBUG

    edit:

    another additional flags : GCC_PREFIX_HEADER to specify your precompiled header – useful for static library

    Tags:

     
  • kusno mudiarto 11:33 am on October 12, 2008 Permalink | Reply  

    OS X Leopard DNS performance problem – enabling local name server 

    Lately I have been having problem with slow DNS lookup while browsing. You can see it when I browse, it took some time in the “looking up for youtube.com …” for example.

    I googled around and tried several solutions as suggested by others.

    1. Using Open DNS (208.67.222.222, 208.67.220.220) and verizon? (4.2.2.1, 4.2.2.2, 4.2.2.3) as my dns server.
    2. Disable Apple IPv6 in System Preference -> Network -> Advanced -> Configure IPv6
    3. Change firefox dns preference in about:config -> network.dns.disableIPv6

    All of those doesn’t seem to fix my problem. I tried the DNS Performance Test and it looks like it is ok, not too fast, but not too slow either; but even though DPT is running correctly, I still see that annoying problem.

    I saw there was a suggestion on turning on local DNS server from macosxhints.

    I followed it, and it works very good in my case, it fixes all my problems, and now I can browse very fast. There are several things that tripped me when I was installing this, so this is my notes for other brave enough to follow the direction.

    Notes :

    • on step 2 (Set up your machine to run BIND server), you have to put forwarders inside the options section. At first I thought I should put it in the end of file, but it didn’t work, I just found it out after careful examination
    • You have to do step 3 (Create StartupItem for DNS). There are 2 files that have to be created there.
    • on step 6, you can start the DNS right away, or you can also try to start the dns server manually first by using this command (without quote): “/usr/sbin/named -f -g” . -f & -g is to  run the server in the foreground, not as a daemon. It is useful if you want to test your configuration
    • There is also a software “named-checkconf” that can check if your named configuration is correct or not.
    • Before switching your network settings to use the local dns, you can test it up by using nslookup like this (without quote): “nslookup yoursite.com – 127.0.0.1″. If your server is set up correctly, nslookup should return the ip address for yoursite.com

    I hope this helps other who have the same problem like me.

    Tags:

     
    • Raphae Halim 6:55 pm on August 29, 2009 Permalink

      Hey, thanks for your post. I wanted to improve my network performance. I found the same article but didn’t know if it would work well on Leopard. You article gave me the confidence to try it out. :-)

    • Nico 9:37 am on May 27, 2010 Permalink

      thnx, works like a charm, also on Snow Leopard.
      TIP: If you want to do it all from Shell,(like me via ssh) enter the following commands:
      sudo networksetup -setdnsservers Ethernet 127.0.0.1 208.67.222.222 208.67.220.220

      change 208.67.222.222 208.67.220.220 (OpenDNS) to any dns server you like, in case of a problem with your own BIND server, you can still reach Internet.

      do this for all your network connections: get the list with sudo networksetup -listallnetworkservices.

      So for instance you will need to do: sudo networksetup -setdnsservers Airport 127.0.0.1 208.67.222.222 208.67.220.220

    • SandraMillhouse 12:41 pm on July 8, 2010 Permalink

      I don't get it, where's step 6? There are 3 steps and then you mention what we have to do in step 6.
      Sandra Millhouse @ Virtual servers UK

  • kusno mudiarto 10:09 pm on July 28, 2008 Permalink | Reply  

    Mercurial tips & tricks for mac 

    I am collecting several useful mercurial tricks for me :

    - See diffs when committing in vim
    see : http://www.selenic.com/mercurial/wiki/index.cgi/DiffsInCommitMessageInVIM
    but instead of using the instruction as is, I have to modify the string a little bit to work in my mac:
    what I did is replacing :

     $EDITOR "$HGTMP/msg" "$HGTMP/diff" || exit $?
    

    with

     vim "+e $HGTMP/diff" '+set nobl buftype=help filetype=diff' "+vsplit $HGTMP/msg"
     

    I’ll add more tricks later if I find any

    Tags:

     
  • kusno mudiarto 9:04 am on July 24, 2008 Permalink | Reply  

    Reminder to self. Never set the permission of the / 

    In a lapse of judgment, I set my hard drive permission to disable readonly for all user, except myself & admin (Using hard drive get info – sharing & permission ). The reasoning was because I can see my root when I enable wireless sharing.

    It turned out to be a very bad decision though, my computer won’t boot up anymore. Luckily, I found some helps in the internet.

    * first go into single user mode (by pressing command-s during bootup
    * mount -a
    * mount -uw
    * chmod 755 /
    * halt

    and then restart your computer.

    I hope it will fix your problem.

    Tags:

     
  • kusno mudiarto 3:25 pm on July 23, 2008 Permalink | Reply  

    batch file rename in mac 

    I am missing batch renaming functionality that I used to have in windows -> “ren *.xxx *.xxx.orig” in my macbook. But using utility “mmv”, I finally can do the same in mac & windows.

    You can download the utility from here :

    http://www.joel.lopes-da-silva.com/articles/computer-science-technology/62-tips-tricks/79-mmv-under-mac-os-x-leopard-for-mac-intel.html

    some example usage :

    http://debaday.debian.net/2007/06/13/mmv-mass-moving-and-renaming-files/

    Tags:

     
c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
l
go to login
h
show/hide help
esc
cancel