OPEN SOURCE

  • MAXIMUM FILE UPLOAD SIZE – PHP.INI

    AUTHOR: // CATEGORY: Development, Open Source, Wordpress

    1 Comment

    On shared hosting/VPN or cloud if you’d like to increase the default max file upload size from 10M check our the below

    You need to set the value of upload_max_filesize and post_max_size in your php.ini (in the example below 40M is what I’ve set the max upload to, however you can change to whatever you’d like eg. 100M etc.):

    ; Maximum allowed size for uploaded files.
    upload_max_filesize = 40M
    
    ; Must be greater than or equal to upload_max_filesize
    post_max_size = 40M
    
    Or in the cursed .htaccess file 
    
    php_value upload_max_filesize 40M
    php_value post_max_size 40M

    Happy uploading ....

  • TESTING DATA – HTTP://WWW.GENERATEDATA.COM/

    AUTHOR: // CATEGORY: Development, Open Source

    No Comments

    Testing, Testing, Testing – the dreaded curse of software development. From case scenarios to pass/fail – from white box to black box I get bored with repetitive tasks. However, it’s important and for QA (ISO and CMMI) it’s essential.

    So for testing we need test data – I usually run out of names or data so have check out http://www.generatedata.com/  that generates pretty accurate demo/sample/test data for use in testing. It also exports to popular formats like HTML/Excel/SQL/XML so you can actually import it directly and continue testing. Pretty cool site check it out.

    Happy testing …..                 (NOT!)

  • CLOUD FILE HOSTING

    AUTHOR: // CATEGORY: Development, Open Source

    No Comments

    Looking for an open source cloud file hosting application …

    Look no further than http://owncloud.org/

    – awesome app,
    – easy to install (even on shared hosting),
    – desktop sync clients,
    – totally free and customisable

  • 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))

  • 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.

  • 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);