Dive into the archives.


  • Cutting text , handy php function

    I know everybody knows how todo it, but cutting text according to text length is needed almost in any content driven website to avoid breaking design. here is my handy function for cutting text:
    function wordcutter($string , $cutnum) {
    $wordcutter = strlen($string);
    if ($wordcutter > $cutnum) {
    $titlecut = substr($string, 0, $cutnum);
    $titlecut .= ‘…’;
    echo $titlecut;
    } else {
    echo $string;
    }
    }

  • Handy CSS trick i found on the web

    If you build websites that let users upload avatars or image and you wondered how facebook maintain that ratio for images? here is a css snippet that knows how to keep your avatars at ratio scaled to any size:
    .avatar img
    {
    float:left;
    vertical-align:middle;
    margin-left:0px;
    border: solid 1px #CCCCCC;
    top:50%;
    max-width:60px;
    width: expression(this.width > 60 ? 60: true);
    max-height:65px;
    height: expression(this.width > 70 ? 70: true);
    }
    You […]

  • Start modding your website to iphone!

    Macosxtips.com has posted a great note about modding your blog to be best viewed on an iphone, its great for any website that wants an iphone friendly stylesheet.
    Check it out
    PHP START
    $iphone_stylesheet = str_replace(”.css”, “_iphone.css”, get_bloginfo(’stylesheet_url’));
    ?>

  • Experimenting with Amazon S3 Service

    Recently i started experimenting with Amazon’s simple storage service S3. The idea is that the service cost is free and you only pay for usage, if you got a huge bandwidth crunching site you can use amazon’s s3 server farm to host videos,pictures and even your .pid mysql database. they charge you by the usage […]

  • Safari hangs while logging into Gmail

    When i tried to log into gmail using my safari fresh install on my macbook intel that i just bought, the whole page hanged on the LOADING screen after login, i tried every possible thing that google suggested as clearing the cache, resetting safari, clearing cookies and restarting osx. nothing was working until i came […]

software

This is the archive for software.

FRESH / LATEST POSTS

My Mobbroll



www.flickr.com

Tags


apple ,  asi dayan ,  auction ,  bill gates ,  bizwise ,  Bugile ,  bukaa ,  cloverfield ,  code ,  death ,  Deface ,  design ,  develop ,  digg ,  Disc review ,  domains ,  fashion ,  firefox ,  first timer ,  funny ,  geek ,  General ,  gizmos ,  gmail ,  google ,  great service ,  hackers ,  icq ,  idf pizza ,  instant messenger ,  israel ,  jj abrams ,  life ,  linux ,  metalist ,  microsoft ,  model ,  movie ,  music ,  negotiation ,  New start? ,  news ,  Nokia ,  nuclear ,  oron ,  peace ,  phising ,  poor ,  pub ,  review ,  security ,  selling ,  service ,  social ,  software ,  spam ,  ssl ,  starwars ,  stupid ,  terrorist ,  toaster abuse ,  tshirt hell ,  ubuntu ,  usability ,  useless id ,  web 2.0 ,  web savvy ,  Yeah right ,  zoho ,