FEBRUARY 2014

  • MAC OS X HIDDEN FILES

    AUTHOR: // CATEGORY: Development, Mac OS X, Open Source

    No Comments

    Sometimes you just need to edit the cursed .htaccess file and on the Mac by default the file is “hidden” – here’s how to show all.

    To show all hidden files and folders, in Terminal in OS X 10.9 Mavericks:

    [wc_code]defaults write com.apple.finder AppleShowAllFiles -boolean true ; killall Finder[/wc_code]

    Getting back to cleanliness:

    [wc_code]defaults write com.apple.finder AppleShowAllFiles -boolean false ; killall Finder[/wc_code]

    To show all hidden files and folders, in Terminal for earlier versions of OS X 10.8 and prior:

    [wc_code]defaults write com.apple.finder AppleShowAllFiles TRUE ; killall Finder[/wc_code]

    Getting back to cleanliness:

    [wc_code]defaults write com.apple.finder AppleShowAllFiles FALSE ; killall Finder[/wc_code]

    Or if you lazy and would like an app (there’s always an app) – download this (FinderRevealer.zip (app))

  • MAC PRINT SCREEN

    AUTHOR: // CATEGORY: Mac OS X

    No Comments

    How to Print Screen to a File on the Desktop in Mac OS X

    The basic functionality of taking a screen shot of a window or desktop in Mac OS X takes an complete image capture of the desktop and all open windows and running apps and dumps it to a unique file on the Mac desktop. Each keyboard shortcut will use the pressing of the Command and Shift keys concurrently as the basis for execution, followed by a number or another key:

    • Command+Shift+3: takes a screenshot of the full screen (or screens if multiple monitors), and save it as a file to the desktop
    • Command+Shift+4: brings up a selection box so you can specify an area to take a screenshot of, then save it as a file to the desktop
    • Command+Shift+4, then spacebar, then click a window: takes a screenshot of a window only and saves it as a file to the desktop

    Because this approach effectively ‘prints’ the screen to the desktop as a unique file containing the screen capture, it removes the unnecessary step of having to paste the screen shot into another application and then save it manually. If you’d rather not save the file to the desktop though, you can have it copied to the clipboard instead, which can then be pasted elsewhere just like what happens in the Windows world.

    How to Print Screen to the Clipboard on a Mac

    Saving the capture directly to the clipboard functions a lot more like the Print Screen feature in the Windows world. If you want to do the Mac equivalent of Print Screen, storing the image in the clipboard so that you can paste it into another app or document, these are the commands you’d want to use instead:

    • Command+Control+Shift+3: take a screenshot of the entire screen, and saves it directly to the clipboard for pasting elsewhere
    • Command+Control+Shift+4, then select an area: takes a screenshot of the selection using the rectangular drawing box, and saves it to the clipboard for pasting elsewhere
    • Command+Control+Shift+4, then space, then click a window: takes a screenshot of a window as specified by the hovering snapshot cursor, and saves that capture to the clipboard for pasting
  • CODE ACADEMY

    AUTHOR: // CATEGORY: Development, Open Source

    No Comments

    A great free way to learn to code http://www.codecademy.com/ if you interested in any development. Simple and very effective.

  • CHILDREN ON PARADISE (JANNAH)

    AUTHOR: // CATEGORY: Arabic, Islamic, Loss of a child, Parenting

    No Comments

    To other parents that have lost children – be strong.

    http://childrenofjannah.com/ is a wonderful group of people helping parents like us who have lost our little angels.

    They have a great read which I’d like to share click here to download a very well written book by Hafizah Ismail.

    Keep strong

  • SAUDI VISA AGENT – SOUTH AFRICA

    AUTHOR: // CATEGORY: Arabic, ESL, Saudi Arabia

    1 Comment

    Anyone looking to work in Saudi Arabia and looking for a good, trusted Saudi visa agent – give Mahmoud a call – highly recommended

    Mahmoud A Farah
    Adda recruitment, visa and legalisation

    Tel:               +27 (0) 12 751 1600
    Fax:              +27 (0) 86 602 5770
    Mobile:       +27 (0) 82 902 4500
    Email:  Mfarah@webmail.co.za

    Office No: 1; Unit 106
    Java Centre; 285 Lynnwood Road
    Menlo Park; Pretoria; 0081

  • QURAN – 13 LINE

    AUTHOR: // CATEGORY: Arabic, Islamic, Saudi Arabia

    No Comments

    Working in Saudi sometimes make us homesick with the weirdest things like a 13 line (30 Juz) Transvaal Press South African Quran.

    So I found a scanned copy online (http://myummah.co.za/) and this is just a re-share.

    File is in reduced size PDF at 28mb. Compatible on tablets and Smartphones etc.

    Download here

  • KNOWLEDGE TREE

    AUTHOR: // CATEGORY: Open Source

    No Comments

    Knowledge tree was an awesome open source document management system … I deployed it at Berlitz Al Ahsa on a Shared Hosting platform. Here’s how I did it.

    How to install Knowledge tree on shared hosting:

    PreStep:
    You will need access to FTP/cPanel/PHP 5.2

    Step 1:
    Find the installation file called kntree.tgz > around 50meg file

    Step 2:
    Extract to the directory you need e.g. /myKnowledgeTree

    Step 3:
    Navigate to the browser of myKT and complete installation … When requested for DB details add anything > last step on installation will fail on DB credentials don’t stress (DB not found / Unable to access).

    Step 4:
    Add a new database (cPnanl – mySQL) and create a user with full access

    Step 5:
    We must use the mysql setup scripts included with KT. Open phpmyadmin. Open the database. Click on the “import” tab. Click on the browse button. browse to where you extracted the files. Then go to sql\mysql\install\. Import structure.sql. Once that’s finished, go back and import data.sql. Close phpmyadmin.

    Step 6:
    Edit the config.ini file in /directory you made/config/config.ini

    edit below data

    [db]
    ; The Database Engine to use. Currently mysql is the only
    ; supported type.
    dbType = mysql

    ; Database login details
    dbHost = localhost
    dbName = dbname
    dbUser = dbUser
    dbPass = password
    dbPort = 3306

    dbAdminUser = admin
    dbAdminPass = password

    Step 7 (if you plan on using PHP 5.3):
    Update PHP to 5.3 in cPanel – you will get Depreciation error on myKT login (Deprecated: Assigning the return value of new by reference is deprecated)

    Edit:

    editing config/dmsDefaults.php from:

    CODE: SELECT ALL
    error_reporting(E_ALL & ~E_NOTICE);

    to:
    CODE: SELECT ALL
    error_reporting(E_ALL & ~E_WARNING & ~E_NOTICE & ~E_DEPRECATED);