How to change delay for Dock autohide – OSX

A nice trick to make the autohiding mac Dock appear almost instantly.

  1. Open Terminal.app
  2. Type in this command:

defaults write com.apple.Dock autohide-delay -float 0 && killall Dock

If you ever want to revert these changes and get the delay again, use this command in the terminal:

  1. Open Terminal.app
  2. Type in this command:

defaults delete com.apple.Dock autohide-delay && killall Dock

 

A better NSLog!

While using objectiveC, try this macro to get detailed information with each NSLog, like line number, function name. It takes multiple arguments and can replace NSLog without a problem. Here is the macro:

//A more detailed NSLog by josellausas.com
#define NSLog(__FORMAT__, ...) NSLog((@"\n\t {LOG} %s -[Line %d]=> " __FORMAT__ "\n\n"), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__)

The resulting console log will look something like this:

2013-06-18 15:12:07.062 AppName[12172:c07]

{LOG} -[ViewController viewWillAppear:] -[Line 67]=> A Log Message

 

A Better SlideView for Corona SDK

I was making an app that needed 2 SlideViews on the same scene, but there  is a problem with the sample code for a SlideView in Corona SDK: You can only have one SlideView per scene.

I modified the code to make the SlideViews independent from each other, enabling the creation of more than one instance for a single scene.

This simple tutorial will guide you on how to create a GroupObject that contains images to slide through, and implement the “touch” listener that will scroll through the images.

Continue reading

Creating Games with Corona SDK

I recently started used Corona SDK to create mobile games that run on Android and Iphone. Corona SDK uses Lua Scripting language to do its magic. Corona lets you focus on the gameplay aspects of game creation. The tutorials on their website are excellent and the community continues to grow.

Screen Shot 2013-04-19 at 11.03.39 AM

I have created a menu system using coronas Storyboard that automatically releases the previous scene. I will be creating a tutorial for the process soon.

 

Home Recording Setup

Home Recording Setup

Im using en AKAI EIE (red thing) with a Phonic 100w mixer (gray thing) connected to a pair of stage monitors.

With a single USB cable, I get a 4 channel input that can toggle between mic/line and direct input (or Guitar as shown on the labels)

This is great for anyone that wants to start a home recording studio on a budget. In my opinion it offers the best features and functionality for the lowest price.

It not only works as an audio interface, but offers 3 extra USB expansion ports, so you can plug anything you want to it (as long as it has USB of course!)

The EIE is great for my MacBook Air, because it offers 3 extra USB ports. When I get home, all I do is plug it in to my Mac and its gives me the functionality of a laptop dock station. I can have a mouse and keyboard, as well as a MIDI controller with and still have a spare USB port on my MacBook Air (this is awesome because it only has 2)

Here is a link to Amazon if you want to buy one for yourself:

Back to top