BLOG ARCHIVES

  • HOW TO GET A SIZE OF COLUMN IN MYSQL

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

    No Comments

    So last week I got an email from our host saying a database has received its maximum size of 3GB. I was like what? How? So I quickly ran the below to check which column was causing the problem.

    If you want to find out the size of column=COLUMN_NAME from table=TABLE_NAME, you can always run a query like this:

    SELECT sum(char_length(COLUMN_NAME))FROM TABLE_NAME;
    
    

    Size returned is in bytes. If you want it in kb, you could just divide it by 1024, like so:

    SELECT sum(char_length(COLUMN_NAME))/1024FROM TABLE_NAME;

    Happy querying.

  • BINARY

    AUTHOR: // CATEGORY: Development, Mac OS X, PC

    No Comments

    Yup … all this fancy graphics, animation, calculations, algorithm all comes down to machine reading binary … This is my name in binary …

    |A|h|m|e|d| |V|a|r|a|c|h|i|a|<new line>

    |65|104|109|101|100|32|86|97|114|97|99|104|105|97|13

    |41|68|6D|65|64|20|56|61|72|61|63|68|69|61|0D

    |01000001|01101000|01101101|01100101|01100100|00100000|01010110|01100001|01110010

    |01100001|01100011|01101000|01101001|01100001|00001101

    Check our yours atĀ http://durso.org/ynib/

    Amazing huh …

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