Posts Mentioning RSS Toggle Comment Threads | Keyboard Shortcuts

  • Dave 11:03 am on August 5, 2009 Permalink | Log in to leave a Comment
    Tags: asp.net, , firebug, firequery lightbox, , jquery, themeroller, visualstudio, vsdoc   

    Updated: Getting started with jQuery (the hard and fast approach) 

    So the time has come for you to get started with jQuery. If you’re reading this, I doubt you need an introduction. Here’s what you need to get on the fast-track to jQuery happiness…

    1. Download the latest jQuery framework from jQuery.com. It comes in two flavors – development, and production which is a compact version to keep your pageload time down. Unless you’re intending to tinker with jQuery internals (unlikely), you can go ahead and download the production version.
    2. Download and print out the latest visual jQuery cheat sheet (or the original jQuery cheat sheet) to help you along your way.
    3. Install the latest version of Firefox (no, Internet Explorer 7/8 does NOT cut it for front-end development) and then install the Firebug add-on and FireQuery add-on.
    4. If you’re using Visual Studio, download and add the VSDOC to make IntelliSense work. Oh, and if you’re an ASP.NET developer, you’ll probably find this article useful.
    5. Add a jQuery reference to your web pages. Assuming you’ve added the jquery-1.3.2.js file to your /scripts folder, you should have something like this in your page <head />…
      <script type="text/javascript" src="/scripts/jquery-1.3.2.js"></script>
    6. At this point you’re all set to go experimenting. To get a leg-up, you should probably visit jQueryList.com where there’s a massive list of existing jQuery add-ons! And here’s a fantastic list of lightbox/modal window type add-ons. And finally, don’t miss the jQueryUI – arguably one of the coolest add-ons. The default namespace is $
    7. Use Twitter? Follow @jquery for the latest news, and @pupunzi who tweets about cool jQuery-related stuff.
     
  • Dave 10:01 am on July 19, 2009 Permalink | Log in to leave a Comment
    Tags: alex, announce, applescript, , entourage, , macosx, , notify, speak, speech   

    Announce new emails using the built-in Mac OS X speech engine 

    When I’m at home in the evenings, I’m rarely sat looking at my MacBook Pro. Usually it’s idle on the dining room table – playing music through iTunes, or streaming a movie to the TV in the lounge. I thought it would be handy if when a new email arrives, it could read out the sender’s name and the subject of the email, so I could decide whether to go and look at it – instead of just hearing the new email notification sound.

    Luckily, I found an AppleScript that did much of the hard work for me, I just customized it slightly. This is my first foray into the world of AppleScript – so coders go easy on me! There’s a couple of interesting features -

    1. if iTunes or QuickTime Player are playing, the script will pause them temporarily while it announces the email
    2. if the volume is turned down low, it’ll temporarily set it to 50% to announce the email
    3. if the screensaver is active, and the volume is low, it’ll temporarily set the volume to 60% (assumes you’re not far from your computer)
    4. if the email arrives during office hours (Mon-Fri 8am-6pm), it won’t announce (because I use my Mac at work)
    5. if Entourage is the foremost window when the email arrives, it won’t announce

    Being a script, you can change the settings as you please, and modifying it to use Apple Mail instead of Microsoft Entourage should be a doddle.

    Speak new email.zip (16KB)

    Once downloaded, all you need to do is create a rule to run the script when a new email arrives in Entourage…

    New Rule - Entourage

     
  • Dave 8:22 am on March 16, 2009 Permalink | Log in to leave a Comment
    Tags: geektool, scrape, , thepiratebay, top, tpb   

    Keeping an eye on The Pirate Bay top items 

    Disclaimer: I don’t download copyrighted material, unless I already own the movie/album/application.

    desktop

    Frequently, the things I download most from The Pirate Bay appear on the Total Top 100 page. There’s no RSS feed, but with a handy shell script and GeekTool for the Mac, I can slap the latest updates straight onto my desktop – where I can keep an eye on it…

    desktop2

    Here’s how…

    First up, download and install GeekTool.

    Next, download and unzip this script to your /Users/YOURNAME/Library/Scripts folder.

    TPB Top Items.sh.zip (1KB)

    Open GeekTool in the System Preferences and create a Shell entry. The command should look like…

    sh "/Users/YOURNAME/Library/Scripts/TPB Top Items.sh" -12

    If you want to show more items from the list, just change the “-12″ part to the number of items you want. And if you want to scrape a different page on TPB site, open up the script and change the URL. For example, to grab a list of the latest Mac applications submitted, you would use this URL: https://thepiratebay.org/browse/302/0/3

    IMPORTANT! You should change the GeekTool refresh value to over 600 (I’d recommend 1200 – 20 minutes), otherwise TPB may ban you for constantly hitting the website, and you’ll probably get me into hot water too.

     
  • Dave 4:12 pm on September 12, 2008 Permalink | Log in to leave a Comment
    Tags: internet, startup, techcrunch, techcrunch50   

    TechCrunch50: my thoughts 

    For those of you who don’t know what TechCrunch is, it’s an editorial website that reports on new technology (primarily Internet startups, and computer-related geekery) over in the U.S. In the past, it’s got a lot of attention and has built a good name for itself by reporting honestly and being fairly successful with their predictions.

    So, TechCrunch50 has just been and gone. 52 startups got up on stage and pitched their ideas for $50k, and there were some great ideas – but two things struck me. Firstly, the amount of crap being developed and being pitched as innovative (as a senior developer, I’ve been around the block a few times, and this stuff is NOT innovative), and secondly the need for these startups – their products have such small niches or fill a void only temporarily until a bigger player comes along and wipes them off the face of the net. Ok, ok, so that may be a bit harsh but I’m being realistic!

    As for Yammer winning the $50k, I’m stunned. Nothing new, nothing revolutionary (lots “borrowed” from twitter and facebook) and not even that difficult to knock up from a tech perspective.

    What do you think? Watch the presentations here: http://www.techcrunch50.com/2008/conference/

     
  • Dave 4:14 pm on August 19, 2008 Permalink | Log in to leave a Comment
    Tags: accessibility, cheat, , checklist, crib, css, , , microformat, regex, scriptaculous, seo, sheet, w3c, wcag   

    Web Cheat Sheets 

    I was speaking to Magnus last night and he was asking if I had a W3C cheat sheet. While I do have a couple of cheat sheets for things like Script.aculo.us and Regular Expressions, I thought a W3C cheat would be a good addition, so I set out along the path of Google. It wasn’t long before I’d stumbled across several other useful cheat sheets – no substitute for knowing your stuff, of course – but handy as a quick reminder…

    Don’t see a cheatsheet you’re looking for? Try here, there are lots more…

     
  • Dave 10:04 pm on July 30, 2008 Permalink | Log in to leave a Comment  

    Web sites I visit regularly 

    The internet is hoooj, so I use Update Scanner for Firefox and RSS feeds to keep track of what’s going on around the web. In my subscriptions are a couple of sites you might not have heard of, so I thought I’d post them up…

    • Smashing Magazine – ok, this is a fairly well known site now, but I still bump into people who’ve not seen it. A great resource for anyone interested in design.
    • Tech Radar – a fairly new tech site owned by Future Publishing, the published of some of the greatest computer magazines over the last couple of decades.
    • BBC Internet Blog – up-to-the-minute news about what the Beeb is doing online (and they do more than you’d first think!).
    • ReadWriteWeb – for when you need to kick it with the web 2.0 crowd. Sorry, “the semantic web” crowd.
    • TED: Ideas Worth Spreading – seriously, I could spend all day watching their videos of inspired thinkers who give talks on a variety of subjects.

    (Most visited sites in my subscriptions are the ones you’ll undoubtedly heard of – digg.com, theregister.co.uk, iGoogle, BBC iPlayer)

     
c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
l
go to login
h
show/hide help
esc
cancel