skip main navigation skip all navigation top
 

Latest posts

Charanjit Chana BSc

This is my personal blog, covering a wide range of topics including web development, design, technology, film, music, TV and sport. I'm a web developer and creator of popular fashion website, Be Unequaled.

Search

Categories

Tags

See all tags

Social networks

Flickr

  • My Crackbook
  • Ruins of an arch near Ceasar's Palace
  • Ruins near Ceasar's Palace - inside of Arch
  • Star Crak
  • Torres destroys
  • dektop
  • Ruins near Ceasar's Palace
  • Trevi Fountain at night (long exposure)
  • Trevi Fountain at night

Nike+ Nike+

    Links

    Arrested Development

    Quote #82 (of 307):

    Lindsay Funke: [discussing Michael's dislike of George Michael's girlfriend] You know, maybe if you stopped judging her, he'd trust you. Look, if you say no, you're just going to drive him right to her.
    George Michael Bluth: Hey, Dad, can you drive me to Ann's?
    Michael: Nnnn... Y-Y-Y-Y-Yes.
    George Michael Bluth: Great. I'll wait in the car.
    Michael: I don't think that worked.

    Share this quote

    Quotes fed from IMDB.com

    Advertisements

     

    Nike+PHP's new home

    While the code itself still sits over on Google Code, Nike+PHP's support site now has a new look!

    I've moved it onto a Wordpress platform which makes administration and updating the site easier.

    Posted Posted by Chaz 11th March 2010 @ 10:10am - comments 0 comments - permalink permalink

    Nike+PHP progress and branding

    Version 1 or Nike+PHP has been out for a while and earlier this month I released v1.2.1.

    The code has been downloaded over 100 times and I'm extremely proud of that fact! I would love to see how people are using the code, so please add to the Examples page on the wiki.

    I also changed the branding for the project a little bit, but need time to work on the site, something I might do in March. The site is a little bright, something I wanted it to be, but I'll be toning it down a bit in the next refresh.

    The old logo was dark, plain and, well, just boring!

    image

    The new one is lighter, has a bit of depth and contains the Nike logo (hope I don't get into any trouble for that!).

    image

    Posted Posted by Chaz 19th February 2010 @ 16:55pm - comments 0 comments - permalink permalink

    2010 or ten past eight?

    Possibly the best way of pronouncing the new year, 20:10 has already begun and I've already made more changes to http://charanj.it!

    My portfolio site now has a slightly better layout, more functionality for the portfolio showcase and more key terms and information about me, as a developer.

    I'm looking to improve the twitter situation, because not all my tweets are really suitable for my portfolio site, but I'll decide what to do with that a bit later!

    Posted Posted by Chaz 5th January 2010 @ 18:13pm - comments 0 comments - permalink permalink

    Goodbye 2009, hello 2010

    As the world waves it's goodbye to the year that was 2009, I thought I'd write a quick post on how the year went for me.

    I got married and achieved a lot of other personal milestones this year.

    I got to see Hawaii and an active volcano. Got to see Anfield and sit in the Kop. I got to see Francesco Totti play for Roma at the Olympico while taking my wife around a city I love.

    The year has had a few downs, but many many ups and I can't wait for the new year to start. Happy New Year all! :)

    Posted Posted by Chaz 31st December 2009 @ 17:46pm - comments 0 comments - permalink permalink

    Blurred text in CSS

    It's possible to make text looked blurred using just CSS3. See the examples below, just hover over the first bit of text to see the possibility of using blurred text as a hover state.

    Some blurred text

    Some blurred text



    Above, you can see some examples of blurred text in browsers that support CSS3

    The trick is to change the colour of the element and either apply the text-shadow or box-shadow properties through CSS. Using the :hover pseudo-class you can create a blurred/unblurred effect

    Example:


    HTML:

    <h1 class="blurred">Blurred text</h1>
    



    CSS:

    h1.blurred {
    	color: #FFF;
    }
    h1.blurred:hover {
    	cursor: pointer;
    	color: #666!important;
    	text-shadow: 0 0 5px #444;
    }
    



    The colours need to be selected carefully, as the shadows are often a bit lighter than the foreground text colour. Shadow size also plays a role. 5px seems to be effective, but 10px can wash the colour out.

    To apply the effect to a block element, you'll need to use the box-shadow property instead of the text-shadow property, but otherwise it's the the same.

    For more effects, you could apply opacity to make the text a little see through and see how that works out!

    If you find this useful, please check out my portfolio site.

    Posted Posted by Chaz 22nd December 2009 @ 15:41pm - comments 0 comments - permalink permalink

    In the pipeline

    I haven't had the time to work on receeve.it properly for a few weeks, but I am looking to release the following things in the near future:

    1. Nike+PHP v0.9.1
    2. A mobile poker site (trying some revenue ideas out)
    3. Migrating the odd blog post from the old Be Unequaled blog

    As you may be aware, Be Unequaled is no longer around as a fashion site, but will return in the future in a different form. I feel that the blog had some decent content so I'll be migrating that over bit by bit to this blog.

    Posted Posted by Chaz 17th December 2009 @ 14:38pm - comments 0 comments - permalink permalink

    URL ABC

    Simply type each letter of the alphabet, one at a time and see what URL comes up in your address bar. Post them up and you're taking part in the game!

    a: http://angela.sky.com
    b: http://www.bbc.co.uk/football
    c: http://charanj.it
    d: http://digg.com
    e: http://expedia.co.uk
    f: http://flickr.com
    g: http://gmail.com
    h: http://hotukdeals.com
    i: http://icanhascheezburger.com
    j: http://jonquirk.com
    k: http://karmaloop.com/index.asp?rcode=CA7004
    l: http://liverpoolfc.tv
    m: http://maps.google.com
    n: http://news.bbc.co.uk
    o: http://odeon.co.uk
    p: http://picasaweb.google.com
    q: //
    r: http://reader.google.com
    s: http://www.skyarts.co.uk
    t: http://twitter.com
    u: http://upnextinsports.com
    v: http://validator.w3.org/check
    w: http://wave.google.com
    x: //
    y: http://youtube.com
    z: //

    I took these results from Chrome at work, so the first result was often a well used search term!

    Posted Posted by Chaz 8th December 2009 @ 11:47am - comments 0 comments - permalink permalink

    New portfolio is live!

    I tweeted a few things about my new portfolio and I finally got it up yesterday evening!

    I feel that it showcases my talents a lot better than the last version and has a lot more personality! The site is built in HTML5 and uses CSS3, it should degrade nicely down to XHTML and CSS2.

    Quite a bit of jQuery, but all unobtrusive. As has become my signature, the site doesn't work in IE6, but I really couldn't care!

    Check out charanj.it!

    Posted Posted by Chaz 4th November 2009 @ 17:29pm - comments 0 comments - permalink permalink

    Nike+PHP a PHP class for Nike+

    So I am a lover of Nike+ and have had a Nike+ stat widget on the side of my blog for quite a while now. The project can be found at http://nikeplusphp.org.

    It came to my attention that the method used wasn't the easiest and certainly wasn't up to date. Looks like something changed on Nike's end and that has broken the API I was using.

    Looking around for an alternative, I was inspired to build my own class and am now firmly at version 0.7 with it. I've created a small website for the project where you can grab the code and there's some documentation to help you get started.

    The project is called Nike+PHP and all you need is a Nike+ account, PHP5 and SimpleXML installed.

    [ read more... ]

    Posted Posted by Chaz 5th October 2009 @ 09:08am - comments 0 comments - permalink permalink

    PHP - deleting cookies

    I had an issue where I couldn't delete cookies today. Turns out, adding the path works.

    <?php
    setcookie('name', 'value', time()+3600);
    ?>
    



    The above would set a cookie for one hour into the future.

    <?php
    setcookie('name', 'value', time()-3600);
    ?>
    



    The above should set a cookie for one hour into the past, making it expire and effectively deleting it. Today, this wasn't the case, but adding a path did the trick.

    <?php
    setcookie('name', 'value', time()+3600, '/');
    ?>
    



    The above sets it for an hour and for the whole domain. Adding the '/' to both the setting and expiring did the trick!


    Posted Posted by Chaz 25th August 2009 @ 11:19am - comments 0 comments - permalink permalink