iPhone Apps: iTunes on fivoca

Filed in iPhone | mac | web Leave a comment

stumble on this pretty interesting website that let you browse top ranking free/paid/grossing apps for the different countries that have itunes, for apple iphone, ipad and mac apps.

browse application through their screenshots, i personally love the photography category, allowing me to browse through all the camera sample screenshots instead of having to guess them from their icons and figure what type of lenses or effect it may offer!

worth the checks!

Restarting MySQL in Mac OS X

Filed in mac 2 Comments

Update: Apparently the method i mentioned below is incorrect, at least for Mac OS X!
Here’s the more proper way, simply:

launchctl stop com.mysql.mysqld

OR

launchctl list

and stop all process with mysql as the label, mysql should automatically restart. if it don’t simply

launchctl start com.mysql.mysqld

to bring it back to life!


Never really have to change any configuration to the mysql installation on my mac os x (10.6) (snow leopard). but when the need arises, i can’t seems to find my installation directory or how i can safely restart the mysqld services.

Good thing i found a few ways to do so!
To restart, start or stop your mysql server, you first need to identify your mysql installation base directory, that’s on assumption that you already have your mysql server up and running previously. Run the following sql command:

SHOW GLOBAL VARIABLES;

this command will return a list of variables along with its respective configured values. to find your base directory directly, you can just use the command below.

SHOW GLOBAL VARIABLES WHERE Variable_name = ‘basedir’;

The value returned will be something like this:

/usr/local/mysql-5.0.51a-osx10.5-x86/

from my case, it’s quite obvious that mysql installation was from 10.5, before i upgrade to snow leopard. So this guide may differs slightly for those who mac came with 10.6, i haven’t got the chance to confirm that yet. Now to restart your mysql server.

Simply go to terminal and enter the following command:

/usr/local/mysql-5.0.51a-osx10.5-x86/support-files/mysql.server restart

or you can cd into your basedir and then go into “support-files” folder.
then run

./mysql.server restart

the other option to stop and start will be as follows:

./mysql.server stop
./mysql.server start

, , ,

Mac: Merging Folder Content

Filed in mac Leave a comment

Mac OS X do not merge folder content when folder of same name is copied from one location to another.
The terminal command will overwrite the sub-folder content of the destination folder if there are sub-folder of the same file name. Sounds a bit confusing, but if you try copying folders with files & folder inside, you should get the idea.

mv /src_folder/ /destination_folder/

Unknowingly, Mac OS actually have a command for you to merge folder content.

ditto /src_folder/ /destination_folder/

Find out more about ditto from Mac OS X Reference Library

, , ,

CS5: There are no destinations for Code Navigator to show for this selection.

Filed in mac 2 Comments

This is driving me nuts! and i can’t seems to find any solution on google or adobe detailing this problem.

Using CS5 Dreamweaver, and out of a suddenly, with no exact indication of means to always replicate this problem, on mouse click on code, this dialog box will always appear, which no means to turn it off. the problem go alway only after i restart mac, restarting dreamweaver don’t help. i can’t seems to find the corresponding process in activity monitor which may help.
If anyone encounter such problem, and know a fix for it, will greatly appreciate sharing this, so that i can update this article for the good of everyone!

cs5 (dreamweaver and other product) maybe feature packed, if not for dreamweaver’s autocompleter, i may very well be going back to mx or cs3. all other feature’s don’t really appeal to me.

UPDATE: Thanks to MyWebsiteSpot.com from MyWebsietSpot.com who posted the comment in this post sharing why this happened! Just saved my day!! So wonder why i cannot find this any were else on google!

“Its a conflict between Things and Adobe products, it also effects PS somehow. If you use the Ctr+Alt+Space shortcut it starts the conflict. Reboot and when you use the program called “Things” try and refrain from that quick entry shortcut until Adobe and Things comes up with a conflict fix. They are aware of it.”

UPDATE 2: I have confirmed this issue is caused by using “Show and Autofill” shortcut from Things, in fact, it may actually cause the whole range of Adobe CS5 products to become cranky! Photoshop cannot find it configuration file, etc etc. Adam Taylor from MyWebsietSpot.com pointed out a Adobe forum thread discussing this issue, and from there, you can find a adobe support ticket which ridiculously says that we need to wait for Apple to release a fix.

Few of the other issues noted from the ticket page:

  • The warning, “Delete the Adobe Photoshop Settings file?” appears when you open Photoshop.
  • The startup screen reads White Rabbit, instead of Photoshop CS5, and looks different.
  • Tools behave as if the Shift or Option keys are pressed.
  • Your cursor remains the plug sign (+).

, , , ,

Mac OS X: Purging Inactive Memory

Filed in mac Leave a comment

Warning: Although this command should be generally safe, please make sure you have quit all your application and nothing important is running before trying this.

If inactive memory seems to be something that bothers you, use the following command in Terminal to purge it:

purge

it’s surprising that simple, but totally at your own risk.

Source: Using purge to free inactive memory on Mac OS X

, , , , ,

Snow Leopard: PHP & PostgreSQL

Filed in mac | php | postgresql Leave a comment

Got this need to install PostgreSQL on my Mac OS X, Gnegg did a good guide on how to do so.

that should be all. the last part about php.ini may depends on which php.ini is been loaded, so do note.

Mac: Measuring Wireless Signal Strengths

Filed in mac | software | wireless Leave a comment

Very interesting article i found here, about Optimising wireless reception from a distance, using the following command in Terminal:

while x=1; do /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I | grep CtlRSSI; sleep 0.5; done

it returns a value in dBm, the wireless radio signal strength.

Quick Look: Mac OS X Mail

Filed in mac | software Leave a comment

It is pretty tiring to have to wait for Microsoft Office to open just to have a quicklook at attachments in Mail. Equally tiring to have to drag the cursor to the attachment, highlight the icon and hit spacebar to quicklook the attachment.

Here’s the shortcut key: Cmd+Y

Shall have knew about this sooner!

Snow Leopard: SpotLight

Filed in mac | software Leave a comment

a while back, i disabled spotlight cause the process mds was totally consuming too much ram.
with improved spotlight in snow leopard, i decided to give it a chance, but totally forget how to enable it back!
so here’s for the reference:

To turn Spotlight Indexing OFF in MAC OS X 10.6 Snow Leopard

sudo mdutil -a -i off

To turn Spotlight Indexing ON in MAC OS X 10.6 Snow Leopard

sudo mdutil -a -i on

Just type the respective command in terminal.
If this don’t help you may follow the instruction on the link in reference.

Reference: Spotlight won’t work?

, , , ,

Vacuuming iPhoto database

Filed in mac | software Leave a comment

with lots of photos events and album in iphoto, really need optimisation! vacuuming do helps quite a bit.

Inside the iPhoto Library Package, there are four SQLite databases (face_blob.db, face.db, iPhotoAux.db and iPhotoMain.db). I found that by vacuuming all four of these databases, I restored iPhoto ’09’s performance back to something on par with its predecessor.

Open Terminal and cd into your iPhoto Library (by default, cd “~/Pictures/iPhoto Library”). Once there, execute the following command:

for dbase in *.db; do sqlite3 $dbase “vacuum;”; done

Source: macosxhints : Speed up iPhoto ’09 by vacuuming its databases

TOP