Apr 13 2012

Friday the 13th

Category: #generik —  Juan @ 09:33 

One by one, they started to die.

 


Nov 30 2011

NSDateFormatter Specifiers

Category: #apple,#kode —  Juan @ 12:00 

The following is a list of specifiers that can be used for NSDateFormatter class: kontinue reading…

Tags:


Nov 28 2011

HOWTO Implement UINavigationController and UITabBarController Programmatically

Category: #apple,#howto,#kode —  Juan @ 09:42 
Apple Logo

This HOWTO will cover the basics for implementing UINavigationController and UITabBarController, programmatically, together, in a single, fluid environment. In short,  UINavigationController is a class that implements a specialized view controller that manages the navigation of hierarchical content and UITabBarController is a class that implements a specialized view controller that manages a radio-style selection interface and provides a sort of “overall” look for the application as it places a bar at the bottom of the screen with selectable UI buttons. If you are a novice unfamiliar with either class, you’ll need to read up on both classes first. I won’t be explaining what each line of code does.

Before we begin, there are a few of things that should be noted. Anything outside of these points is out of the scope of this document.

First, you need OSX.

Second, this example covers a tab bar controller with 5 buttons (just like the AppStore) with 5 unique UIViews, each a navigation controller. The number of buttons is trivial but gives you the basic concept of adding/deleting as many as you want. Be creative.

And finally, due to the nature of this HOWTO, Interface Builder will not be covered. I find Interface Builder to be more of a hindrence than assistive so I, personally, build everything programmatically. Interface Builder is, however, very useful for getting coordinates.

Now, on with the HOWTO. Open XCode and create a new project using the Single View Application template. You may be tempted to create the new project using the Tabbed Application template but for the sake of this HOWTO, please do not. After creating you new project, delete the file ViewController.xib from the project as we will be programmatically implementing the controllers.

Now, let’s start hacking up this 5 button tab bar/navigation controller example…. kontinue reading…

Tags: ,


Oct 13 2011

Upgrading Ubuntu Servers

Category: #howto,#linux,#root —  Juan @ 09:18 
Tux Thumbnail

To upgrade from Ubuntu Server (regardless of which version you are upgrading from to which you are upgrading to):

1. Install the update-manager-core package if it is not already installed:

Kode   
sudo apt-get install update-manager-core

2. Edit /etc/update-manager/release-upgrades and set Prompt=normal.

3. Launch the upgrade tool with the command

Kode   
sudo do-release-upgrade -d
4. Follow the on-screen instructions.

Tags: , ,


Oct 11 2011

LA Basin Panoramic

Category: #iphone,#mobile-photography,#photography —  Juan @ 14:16 
Circle A Thumbnail
Panoramic of the LA Basin

Panorama: From Los Angeles to Santa Monica

Tags: , , ,


Jul 21 2011

How To Disable Spotlight on Mac OS X

Category: #apple,#howto,#osx —  Juan @ 15:42 
Apple Logo

I’ve been a OS X user for a couple of years now and during this time, there is one feature I’ve never used; Spotlight. As such, I felt I needed to disable Spotlight so I searched high and low for a solution to completely disable Spotlight indexing and Spotlight in general. I found the solution in mdutil. To use this solution, you should be comfortable using BASH, a Terminal window and have administrator rights (root access). Ultimately, the solution really is quite easy.

Remember that you can always configure which items Spotlight to index (Apple -> System Preferences -> Spotlight).

Once you’re ready, fire up Terminal (Applications -> Utilities -> Terminal). kontinue reading…

Tags: , ,


Jul 16 2011

Force Overwrite Files Using ‘cp’ Command With Fedora Core

Category: #generik,#howto,#linux,#root —  Juan @ 11:11 
Tux Thumbnail

Upgrading similar websites, for example, WordPress blogs, usually requires uploading new files and overwriting old, existing files on the target server. Instead of uploading WordPress for each and every site, one can upload it once and copy new files into existing web directories by logging into the server via SSH. Ideally, we would just copy the new files over and be done quickly and efficiently but that isn’t the case with Fedora Core (*sigh*). kontinue reading…

Tags:


May 26 2011

Samba and Controling Group Ownership of Directories (SGID Bit)

Category: #howto,#linux,#root —  Juan @ 13:45 
Tux Thumbnail

Just recently, I ran out of room on the network drive where all my media is stored. Naturally, I installed a larger hard drive and then copied all my media to the new hard drive. After about a week with the new hard drive, I noticed that all new media files copied to/created on this dedicated network drive were created with a group ownership of my user and not with the expected [dedicated] group, media-admin. I spent a good hour trying to figure out how to force Samba to force group ownership to newly created files and considering you can force user ownership with the “inherit owner” parameter, I assumed there was another parameter to control group ownership. I was wrong. kontinue reading…

Tags: , , ,


Apr 28 2011

Network Upgrade for Ubuntu Servers

Category: #howto,#linux —  Juan @ 11:38 
Tux Thumbnail

Before you start, be sure that you have all updates applied to your current version of Ubuntu before you upgrade.

  1. Install update-manager-coreif it is not already installed:
    Kode   
    1. sudo apt-get install update-manager-core
  2. edit /etc/update-manager/release-upgrades and set Prompt=normal
  3. Launch the upgrade tool:
    Kode   
    1. sudo do-release-upgrade
  4. Follow the on-screen instructions.

Tags: , ,


Mar 23 2011

How to Uninstall Xcode

Category: #apple,#kode —  Juan @ 18:49 
Apple Logo

Should you ever find the need to remove Xcode, run the following from within a terminal window to make it happen:

Kode   
sudo /Developer/Library/uninstall-devtools --mode=all

<Xcode> is the directory where the tools are installed. For typical installations the full path is /Developer/Library/uninstall-devtools

Easy enough, just make sure this is what you really intend to do as once it’s gone, it’s gone. This is, after all, UNIX.

Tags: ,