Category Archives: Useful Stuff

Reset Apple Wireless Keyboard

If you’re like me and countless fellow Mac users that needed to reset their wireless keyboard, just to run into a lengthy process of research and frustration, well then you know what I’m talking about.

It’s completely inexcusable that such a simple, yet highly demanded task is poorly documented by Apple. After all, it appears that besides using a wireless device on more than one mac, users also seem to face issues with sudden connectivity problems at random.

The steps for resetting the wireless keyboard are really simple, just follow along:

  1. Turn off the keyboard, better yet remove the batteries
  2. Click the bluetooth icon in the upper toolbar, then select “Set Up Bluetooth Device”
  3. When the Bluetooth Set Up Assistance is up and start searching for devices
  4. Insert the batteries and HOLD the power button, do NOT let go
  5. Your keyboard should now appear in the assistant
  6. Select the keyboard from the list and click continue, while still holding the power button
  7. Once you get the pairing code, let go of the power button and type in the code.

Your keyboard should now be paired and working. The trick is to hold down the power button during the entire process, simple yet rarely documented.

Facebook New Features And Changes Announced At F8

Facebook CEO Mark Zuckerberg and his crew presented the latest Facebook features at f8 today, to a crowd of developers and reporters during Facebook’s F8 keynote. There are many of new changes and features coming to Facebook and we have an outline of them for you.

News

A wide range of new social apps, such as Digg, Gizmodo, USA Today, The Guardian, Flipboard, Yahoo and many more will provide apps tailored to Facebook.

Music and Video

Like apps, music providers will think of ways to engage users on Facebook, like listening to the same music at the same time with your friends. And so will video providers, such as Hulu, Netflix, Flixster and others. Read more »

Tweak User Interface In OS X Lion

OS X LionThe user interface changes of Apple’s new operating system, Lion, are obvious to experienced Mac users. But some of the changes might have you scratching your head, when you don’t for example see traditional scroll bars, the mailbox and folder list, or large enough icons in the Finder sidebar.

You might also be annoyed by the new “reverse scrolling” feature, and the reappearance of that ping sound when you receive new mail messages. Plus, you may be wondering what the “Arrange” button and the extra items in the Finder sidebar are all about.

If you’re a veteran Mac user, you probably have figured out how to change a few things in Lion to get them back the way you like. But if you’re still confused, read on. Read more »

Create mobile and iPad versions of your WordPress site

WPtouch ProHaven’t you thought of creating mobile/iPad versions of your WordPress site? Is it worth the effort? If there just was an easy way to get them created and maintained. Well, there is..

WPtouch is a WordPress plugin for self-hosted WordPress websites that shows a well-designed mobile theme version of your site when visitors use their favorite touch mobile devices like the iPhone/iPod touch, Google Android phones, Motorola Droid, Palm Pre/Pixi, Samsung bada and Blackberry Storm & Torch devices. There is a free version and a paid Pro one. Read more »

Best Free Beat Making Software

Beat Making Software Beat Making can be a great way to earn money and build a career in the music industry. Up to now, you only had a couple of options when it came to selecting a beat maker.

The first was to pay a high price for high priced high end equipment.  The other option was to get affordable software that you could afford, but made beats that sounded like crap.
Read more »

iFrame problems in WordPress solved

There seems to be a know problem with iFrames in posts, starting with WordPress 2.2.1, which happens when editors use the internal WYSIWYG editor. A lot of users have reported this issue in frustration.

Initial saving of the content was fine, but subsequently editing and re-saving is would strip iFrame tags. A less than ideal solution was to avoid using the WYSIWYG editor and edit the post using HTML code. Now there is a Mozilla Firefox extension for those that don’t like write pure html code, called Xinha Here!.
Xinha Firefox addon
It’s a pretty cool add-on, that opens either in a new window or  in a bottom bar and let’s you use it as WYSIWYG editor until you’re done, then hit ok and save the article in WordPress. Just ensure that html editor is selected during this process, especially at saving.

I have to say, Xinha works like a charm and has more features than the built in wordpress WYSIWYG editor. For more info, check out xinha’s web site.

Move a SVN Subversion Repository

Subversion SVNAt some point in a developers life, we have to upgrade, switch hosting providers or replace broken hardware and with that comes the inevitable. Moving all of our apps, data and configuration settings, and eventually our holy repository.

Moving an SVN repository from one Subversion server to another, while carrying over the entire version history information may seem like a daunting task, but fortunately it’s rather quite easy and straight forward.

Backup your old Repository

Step one is the generate a dump file of the existing repository which we can later move to our new server.
We create this dump with the following command:

# svnadmin dump /path/to/old/repository > repository.svn_dump

This dump file contains now all the revisions that have ever been made and committed to our SVN repository, and therefore this file may get rather large, depending on how active and old the repository is. Read more »

Create Your Own Folders On The iPad

iPad FoldersQuick intro for creating folders on an iPad

Creating our own folders to organize files has always been on top of the wish list for the iPad. With iOS 4.2  we finally have the capability of creating desktop folders to store applications, photos, videos or any other content.

In addition, creating folders on the iPad is an easy way to limit the number of screens we have to scroll through when searching for a file or an application.

Create the folder

Create a new folder by tapping and holding down any of the application icons that you want to organize into a folder. Hold it until the icon starts wiggling.

Drag it

Drag the icon on top of any other icon which you want to include in your folder. This will cause the home screen on your iPad to fade. A folder display will appear containing both of the application icons which you touched. Read more »

HTML5 Open Source Framework for iPad E-books

Baker FrameworkThe Baker E-book Framework is a free, open-source platform to create e-books for the iPad. The framework was developed by a team of Italian software geeks, allowing designers and web developers to transform fixed-width HTML5 pages into an e-book format and subsequently publish the finished product. All publishers have to do is follow the Apple App Store submission guidelines.

The first step involves creating a HTML5 version of your book with fixed width of 768 pixels that works and looks fine using Safari in iPad or via downloadable support CSS at Baker’s site. Keep all files in a flat directory called book and name the html files according to their page number (eg. 1.html, 2.html ….) which is the HPub format. The naming convention is still somewhat strict, but that will change over the next few releases.

Finally download the Baker Framework and follow the simple instructions contained in the readme.txt file:

  • Rename the Xcode project
  • Include your book
  • Include your icon
  • Follow the App Store submission instructions

You can check out a sample book created by the Baker folks, 5×15 Tokyo.

Casali and his team hope their creation will lead to more beautiful e-books and digital magazines on the iPad, and for other WebKit-enabled devices later.

You can download the Baker Framework files at the official site, and you can also join the project itself on GitHub.

Redis High Speed Storage Or Cache System

NoSQL databases are the hype, with MongoBD and CouchDB on the forefront, while Memcache has found a place in many high load web applications during the past few years. Each of these applications has their own, very specific characteristic. MongoDB finds its usage where single key-value pairs are not sufficient, but adds a slight overhead and complexity with its hash table like multi field storage architecture. CouchDB is an ideal candidate where single key-value pair storage engine is sufficient.

And there is Redis, the new kid on the block. Redis is a high speed storage or cache system, much like Memcache on steroids. Redis writes data into memory, which makes it really fast. And in contrast to Memcache, it writes data periodically to disk depending on the amount of data that has changed. Redis is been said to be able to handle in excess of 10’000 reads/writes per second! Read more »

Free Version Of Microsoft Word With Office 2010

Microsoft is releasing a new edition of Office to businesses this Wednesday and for the first time it’s adding free versions online versions of MS Word and other programs that work in a Web browser. It’s expected that these free apps will have fewer features than the desktop versions.

MS Office 2010 marks a milestone in the company’s efforts to stay abreast with an shift within the software industry that moves away from programs running locally on computers to free services that can be accessed from any browser over the Internet. Microsoft must walk a fine line and be careful not to make the free applications too appealing as to impact its lucrative software business negatively.
Software accounted for 29 percent of Microsoft’s revenue and 51 percent of its operating income in the most recent quarter.

In contrast to it’s competitor, 4 percent of companies use Google Apps today, according to Forrester Research.

In addition, the Outlook e-mail program will be able to pull in information from users’ outside social networks, such as Facebook and LinkedIn. It also adds new features to tame the ever-growing number of messages in the inbox, including a way to group all replies to a single thread under one line.

How To Install Snow Leopard From USB

Ever been without a DVD/CDROM or installation disk?  Especially MacBook Air users undoubtedly come across this situation. This article will explain how to install Snow Leopard from an external device such as USB or disk drive.

You will need an appropriately sized external drive or USB Flash Drive, as the Snow Leopard install DVD’s size is about 6.2 gigabytes. An 8GB USB stick like the SanDisk Cruzer 8GB is the perfect choice.

Now let’s plug in that USB stick and get started.

1. Start up Disk Utility and select your Flash Drive from the left side pane.

2. Select the Erase tab and set Format to Mac OS Extended (Journaled). It should be the first choice in the list. Set Name to Snow Leopard or OS X Install so you can easily keep track of it. Before you the Erase button, be sure that you copied any files or folders from the Flash Drive that you want to keep, as everything will get erased. You’ve been warned! Hit Erase. Read more »

MySQL – How To Analyze, Repair and Optimize all Tables

Ever come across a situation, where you’d like to check all tables in a database and have them all repaired and optimized? My guess is yes.

In case you didn’t know, there is a helpful MySQL utility called mysqlcheck, available as of version 3.23.38. It does exactly what we need.

To check all tables in all databases for corruption and errors and also fix them in one go, this is your command:

mysqlcheck -u username -p password  –check –optimize –auto-repair –all-databases

mysqlcheck executes statements like CHECK TABLE, REPAIR TABLE, ANALYZE TABLE, and OPTIMIZE TABLE and chooses the best statements for any given operation and storage engine.

Note that the operations complete a lot faster if you can afford to to disable any external services, especially if your database is large.

Installing true-type (ttf) Fonts in Ubuntu

Installing true-type fonts in Ubuntu is an easy task. With literally thousands of free fonts available on the Internet, (from sites such as 1001 Free Fonts or DaFont), who could resist to add that extra spice to their documents or websites.

Ready? Here we go!

First, find and download your desired fonts into ~/Downloads/fonts. You may have to create that directory first. Then extract them and copy to the system fonts directory as follows:

cd /usr/share/fonts/truetype
sudo mkdir customFonts
cd customFonts
sudo cp ~/Downloads/fonts/*.ttf .
sudo chown root.root *.ttf
sudo mkfontdir
cd ..
fc-cache

And that’s it. If you had your favourite graphics program open during this process, you’ll likely need to restart it to see the added fonts.
Have fun!

How to recover a lost Linux root password

Forgot your root password? Nice going. What now? Reinstall the machine from ground up? Sadly enough, I’ve seen this happening all too often while it’s surprisingly easy to change the password knowing the correct procedure. While this doesn’t work in all cases (like if you secured your machine with a GRUB password and forgot that as well), but here’s the procedure in case of a CentOS Linux machine.

Start off by rebooting your system. At the GRUB boot loader screen, move the highlighted entry with the arrow keys to interrupt the boot process. While the current boot entry is highlighted, press E and you can edit the kernel line.

Grub boot loader screen

Grub boot loader screen

Use the arrow key to highlight the line that starts with kernel, and press E to edit the kernel parameters. When you get to the screen below, append the number 1 at the end of the line. This will enable you to boot into single-user mode.

Edit GRUB boot loader entry

Edit GRUB boot loader entry

Next press Enter, then B, and the kernel will boot up into single-user mode. Once there you can run the passwd command, changing the password for user root:

prod-093# passwd
New UNIX password:
Retype new UNIX password:
passwd: all authentication tokens updated successfully

Next time you boot up, use your newly created password to login.

Page 1 of 212