Gen X Design | Ian Selby

All Things Web 2.0

Jaxer 1.0 Now Available (RC B)

It’s been awhile since I’ve made any mention of Jaxer, and for good reason. The Jaxer team at Aptana has been hard at work getting Jaxer ready for 1.0 Release. That day has come, and I’m proud the first publicly available version of Jaxer 1.0: Jaxer 1.0 RCB. As far as functionality goes, this release is pretty much feature-complete, and we just need some people to kick the tires a bit before we officially tag it as 1.0.

So, what’s new in this version of Jaxer? Quite a bit, actually, and if you’ve been using 0.9x releases of Jaxer until now, a lot has changed for you as well. As usual, Jaxer is available bundled into studio (starting with the recently released 1.2 version), as well as the usual stand-alone. Read on for a full summary of what’s new…

Read the rest of this entry »

  • 0 Comments
  • Filed under: JavaScript, Jaxer
  • That’s right kids, I’m speaking at the 6th International AJAX World RIA Conference & Expo! I’ll be giving a session on server-side javascript, and how it will make your life better, your apps cooler, and your friends jealous!

    Read the full entry for details on the session, but here’s a little introductory overview (for the sake of not re-writing everything, I have just copied and pasted the announcement)…

    Server-side JavaScript (SSJS) is growing in popularity fast since developers realize it can drastically simplify Web app creation by letting you use using the same technology stack on both the client and the server. While server-side JavaScript is not new - it was a part of Netscape’s vision 10 years ago - times have significantly changed with 10x faster hardware and networks, making that original vision for the Web now a reality.

    In this session delegates will learn how to:

    • Overcome common hurdles and pitfalls of client-side only JavaScript development.
    • Speed up development time by cutting out extra server-side code and processing scripts that are no longer necessary.
    • Clean up your code base by reducing (or even eliminating) the number of languages needed to leverage to accomplish common tasks (i.e. Why bother with server-side PHP scripts to fetch database results when you can do it all in JavaScript on the server? Why mess with Curl to fetch content that your JavaScript code can grab in one line?)

    Read the rest of this entry »

    As today’s web applications continue to evolve and get more complex, it has become a lot more commonplace to keep a data model present inside of your javascript. You would then write various widgets, modules, or whatever that would get their data from the model, rather than querying some other web service independently (and if you aren’t doing this, you should!). While centralizing all your data into a nice, organized model that different parts of your code can access, it’s often a challenge to integrate an efficient way to notify the code that depends on these models when the stored data is updated. Lucky for us, Ryan Johnson has created a surprisingly small library that will allow our data model to notify anything that depends on it that it has updated (or loaded, or whatever you’d like in fact).

    Before we dig in to the notifications, let’s do a little work to set up an example and some assumptions we’ll be operating under for the sake of this article. First, as prototype is my weapon of choice, that’s what we’ll be using. We’ll also be using prototype as Object.Event uses it as well! Now, let’s pretend that we have a website that has some social networking aspect of some kind. We want to display a short list of who’s currently online (say the 6 most recently active people) in some sort of side bar, and perhaps a count of the total members online in a footer element. Rather than having both these elements poll the server at some interval to update their information, let’s create a little data model that these areas can use instead.
    Read the rest of this entry »

  • 2 Comments
  • Filed under: JavaScript
  • Nothing’s cooler than writing a bad-ass site or application and watching it gain popularity and a significant user base. By the same token, nothing’s more frustrating than watching your app fall on its face when its running under high load. If you’re like me, you know how disheartening this can be, as it usually means that its time for a hard dose of reality: your code probably isn’t as awesome as you thought it was.

    Or is it? There’s a whole slew of things that a person could point a finger at regarding slowly running code. The most-oft thing that gets called out is code with a lot of overhead (a ton of includes, excessive logic, and the like), and right behind that is poorly designed databases (unoptimized indexes, no indexes, ridiculous amounts of joins, blah, blah, blah). Well, let’s assume for a minute that you’ve got a fair amount of experience under your belt, so you know your code is pretty damn optimal, and you also have a DBA buddy that took a look at your database and helped you tweak it up a bit. What do you do if this isn’t enough? Before you say, “throw more / better hardware at that mo-fo”, why not take a moment and learn about APC: Alternative PHP Cache…
    Read the rest of this entry »

  • 7 Comments
  • Filed under: PHP
  • JavaScript & MySQL With Jaxer

    Wouldn’t it be cool if you could work with MySQL within your JavaScript code? Think about it, you wouldn’t have to spend extra time writing extra server-side code for connecting to, querying, and parsing results, you could just write a little bit more code in your JavaScript and be done with it. Of course, we wouldn’t want any of this SQL exposed to the end-user, as that would be a major security issue, but what if that problem was solved as well? You might also raise the point that you’d still need the ability to prepare your SQL statements that take dynamic input to prevent SQL injection attacks, but if that weren’t an issue, wouldn’t that be awesome as well?

    Seriously, take a look over an existing AJAX app you may have written. You’ve probably got a bunch of different functions for making AJAX calls to PHP scripts (or something similar), which process the input, and deal with the database, then return either parsed results, or results to be parsed by JavaScript. Wouldn’t it be nice if you could consolidate all that stuff into some smaller, simpler JavaScript code? Fewer files, less overhead… sounds good to me.

    That’s one of the great things about Jaxer. If you’ve done any reading, you probably know that Jaxer works with SQLite out of the box, and you might be aware that it’s also able to work with MySQL, but most of the people I’ve talked to have stopped there. Aside from the above objections (which I’ll smash shortly ;)), I’ve also heard that they simply don’t want to learn another complex API. Well, the time for silly excuses is over, and I’m going to show you how easy all this stuff can be. I would suggest that you first set up Jaxer with XAMPP so you can follow along, but if you want to use the stand-alone Jaxer and Apache, you’ll be just fine. Let’s get our hands dirty…
    Read the rest of this entry »

  • 5 Comments
  • Filed under: JavaScript, Jaxer
  • Next Page »

    See Me @ AjaxWorld '08 West

    AJAX RIA - Server-Side JavaScript - All the Cool Kids Are Doing It!

    PhotoStream

      Griffin Playing in Alamo SquareThe Painted Ladies, and the City in the BackgroundThe Painted LadiesMore Golden Gate Bridge GoodnessAlcatraz IslandThe Golden GateGive Mommy KissMommy & Griffin Playing at Crissy FieldDaddy and Griffin Leaving Crissy Field

    Asides

    • Firebug Lite 1.2 Released

      If you've ever used Firebug for JS development, you know how indisposable it is. If you haven't, you're insane, and you need to start using it now! Firebug Lite was created to be able to embed a more limited version of the library in non-firefox browsers. Previously, you couldn't do much with it outside of the console. functions and use a JS command-line. Looks like that's a thing of the past with the new release. It's pretty much as functional as the actual Firefox extension, and is well worth checking out:
      Firebug Lite 1.2 Released (via Ajaxian)

    • BgPatterns.com - Cool Background Image Generator

      While its generally not my style, I would have loved to have something like this several times in the past. Slick, easy, classy, fun, and actually worthwhile. Check it out:
      www.bgpatterns.com

    • savethedevlopers.org - Save a Developer. Upgrade Your Browser

      "Say No To IE 6!
      Our current campaign focuses on assisting users in upgrading their Internet Explorer 6 web browser. This campaign will result in former IE 6 users having a more enjoyable experience on the web while (hopefully) creating a less stressful and complicated environment for web developers by hastening the retirement of an outdated browser."

      http://www.savethedevelopers.org/

    • Evernote - Awesome Note Capturing Software

      I know, yet another note capture / organize program... but this one's different. It's got really powerful OCR software (it will pull text from images, even handwriting) that automatically finds words in your images and indexes them, making it easier to find later. Works on the web, your mobile phone, and PC or Mac. Best of all, it's free!
      Evernote - Capture. Sync. Find

    • Magic Toolbox - High Quality JS Tools

      Nice little suite of JS tools... they're commercial, but reasonably priced. The names kinda imply what they do: Magic Zoom, Magnify, and Thumbs. Definitely worth a look:
      Magic Toolbox

    Categories

    About Me

    Gen X Design has been my freelance development and design company for some time now, and my services are sometimes available.

    Recently, I've been too wrapped up in work to pursue my own interests. To that end, I've made some changes in my life, re-worked this site so I'm happy with it again, and have decided to get back to writing and developing.

    I have a passion for all things Web 2.0, love shiny icons and gradients, and live in the San Francisco Bay area. I work for Aptana.