Author - Web Developer - Educator
Found 4 results for tag "accelerator"
RSS Feed

Tueday's over already?

Laser Pointer

Yesterday seemed to fly by. Keat didn't have class in the morning, but she still had to be there to sign in, so we were up and out of the apartment by noon. I actually got a lot of sleep on Monday night, but I was always so tired during the day. Can't figure that out.

Anyway, after I got to the office, I decided to spruce up on th jQuery I'd been studying. I fixed a few Fire & Ice issues (along with implementing jQuery on the spot), and did a little sales work on the side. Didn't get 1 of our potential customers that I'd been working with for about 3 weeks, but that's okay. Sooner or later, we'll get more customers.

I also figured out that by using a border-code in CSS, I can eliminate the "rounded box images" I had been using so much. This actually makes it easier for me because I don't have to create custom-color images for each rounded box I want. The CSS automatically rounds the box for me, and uses the supplied div/img without any additional markup! What a time-saver!
.round_border, .round_box{
	-khtml-border-radius: 12px;
	-webkit-border-radius: 12px;

I also added a few features to the blog; the main one being the "Search" feature (others being the bottom gear margin fix and the Newer/Older buttons, but the Search feature took me the longest to add/fix). Using the round box CSS method, I also made that input field rounded as well. How cool is that? I wanted to use jQuery to automatically highlight the searched term when found in the context, but that took too long. With my limited knowledge and the examples from, it turns out that the example I was using would actually go through the whole context and replace every word with &;lt;span>word, which can get very resource-heavy and it took about 10-20 seconds for the page to load. After unsucessfully finding a method for $('#content').find(':contains('+query+').replaceWith(''+query+''), only to find that the jQuery statement would end up in a recursive loop, I decided to make it server-side and have the replacement function in PHP instead of jQuery. That actually made things a lot faster and I found a case-insensitive function that allowed for replacement of the original capitalization (if existed). That saved me a few hours.

On to a different topic: I finally successfully implemented the Active/Inactive feature on the Business Accelerator form builder, but it took me forever to figure out why the variable wasn't being passed right. It turns out that I actually had my custom function get each array type in the form and (after passing it through a "Save" page with jQuery and AJAX), compile the whole thing into an orderly form with proper syntax. So in order to find the Active/Inactive variable, the function was trying to find a variable in an array that didn't exist, which is why the variable wasn't being passed. After I realized that, I took the custom parser out and made the Active/Inactive and Debug variables parse first (since they're only checkboxes), and parse the rest of the array-based form later. That solved that issue.

I'm still working on the form builder, and Milestone 4 should be done within a day or so (with respect to the world around me). If things go right, I should have it done by Spring. That'd be awesome.

I'm also going to be adding a "Projects" tab to this site for project tracking. Let's see how well that goes.

On another topic, I finished Eureka 3.5 and I'm excited to see what happens next. Season 4 isn't out on Netflix Instant yet, and Hulu only has episodes 5-9 until the season returns in 2011. I may watch 4:5-9 and watch 4:1-4 when Instant comes out, but I don't know right now. I may not be able to hold the excitement if Season 4 has 20 episodes, which means Instant is a ways off.

After yesterday's long work day (I got home around 9ish), Keat and I cooked dinner and watch the Eureka Pilot. It's a good series, I don't mind watching it again, plus Keat wanted to watch it from the beginning. She went to bed around 11 (maybe 12?), and I was up working on a few loose ends before I hit the sack around 2 (and missed the post for the day). Then, this mornings alarm woke me up around 8. Why must the winter be so cold? I wanted to call it a "sick day" and crawl back under the covers. But, work has to get done........

Tags:#eureka #netflix #xkcd #css #jquery #search #accelerator #hulu

RSS Feed

Milestone 3: Complete!

YAY! I've successfully completed Milestone 3 of the Accelerator. It was a bit of a challenge, since I'm still learning jQuery, but I accept challenges for coding - especially when using a language that I barely know anything about and am willing to learn. Just to recap: M3 was to successfully remove a dynamically inserted row. Using a combination of .empty() .remove(), .parent(), and .live(), I was able to successfully remove dyanmicaly inserted rows using the .append() function and the tableDnD library.
$('.remove_box').live('click', function() { 
    /* get parent (td), then parent again (tr), and empty the tr */ 
Edit: 2010-11-14 20:12:35 .empty() was replaced by .remove() since the latter keeps the tableDnD library in place and requires the DOM features to be kept for the move features Now on to Milestone 4: field submission with database structure building rules - let's see how that goes....
Business Accelerator Progress - Form Builder: 60%

Tags:#milestone #accelerator #jquery #tracker #tutorials

RSS Feed

2 down, 3 to go!

I'm so excited about this, I have to talk about it!

The Business Accelerator I've been working on just passed it's 2nd major milestone! For the form builder, I wanted to merge the Field Adder (click "Add Field", a new text field is added to the form without erasing the current info) with the Row Mover (the "Netflix Queue" effect). In my mind, it worked perfectly. In real life, it was a pain to get to. But now that I made it, I'm excited!

Milestone 1 was getting the Field Adder put in place and tested. It worked right out of the box.

Milestone 2 was adding the Row Mover. After much testing, Milestone 1 had to be re-worked from scratch. After much testing and many, many edited pages, the Row Mover worked (many thanks to for the jQuery field adder and for the drag-and-drop jQuery feature). As of today: M2 has been reached and passed!

Milestone 3 will be for field deletion without messing up the current field structure. Should be easy (I hope)

Milestone 4 will be for field submission with database structure building rules (basically: taking the data and putting it in the database to be re-constructed as a form on the fly)

Milestone 5 will be testing the database insertion to make sure the form is built correctly.

Can't wait to get back in the code!
Business Accelerator Progress - Form Builder:

Tags:#jquery #netflix #milestone #accelerator #tracker

RSS Feed

Does anything go right?

I know this is a little late for yesterday, but I wanted to make sure I got it in. Yesterday, it seemed like nothing went right, except for one thing - I'll get into that later.

As for thing not going right, a client wants us to get an e-commerce system for their site. In my mind, I'm thinking "Ok, no problem." So I find out that I have to install cURL on the main server. I tried to add cURL via yum, but yum couldn't find any appropriate packages to install cURL. So, I tried to update yum, but yum was missing an important file called, which was needed for proftp. So I go out searching for, which only exists in far out-of-reach corners of the Internet. Afterwards, I'm sent on a wild goose chase to track down dependencies for out of date files, which are out of date themselves, so I had to find up to date dependencies which needed more dependencies......can you say "endless loop"? So I try to update some of the main core files in the RHEL system, but it turns out that RHEL 3AS, which is on the server, is no longer supported anywhere.

I contacted the main server hosting service asking if the OS could be upgraded. It turns out that the OS cannot be upgraded, but PHP and MySQL could be (they failed to mention a $75/hour fee, which I did not commit to). I could upgrade the VPS and get a new OS, which would handle the PHP and MySQL upgrade without the upgrading fee. However, the new VPS upgrade would only allow 10 domains to be hosted instead of "Unlimited" which I was promised when I first signed up for a VPS system with this company back in 2007. In addition, we can move the files of the client websites, but can't move anything else (like httpd.conf, email forwardings, specific server configuration files, etc).

Shortly after I unsucessfully tried to install cURL on the main server, I thought "Ok, why not try to install it on a local server" (little background: local server "Blueice" has Centos 5, not RHEL 3AS). I ssh'ed into it. ran a yum installiation for cURL, and 10 seconds later, I had cURL on Blueice. After I saw this, tested it, and confirmed it, I was furious. Why couldn't the main server be this easy?!?!

So basically, I spend 5-6 hours trying to get cURL installed only to find out that the system itself is outdated and I have to upgrade the whole system. I decided to tell clients "We've outgrown our server capacity and have to upgrade." In a sense, we have outgrown our current space and need to upgrade, but I was furious for the first few hours. I also think this could be the "kick in the butt" we needed to take more risks in the business. With the new VPS system we're looking at, we'll have more space, more bandwidth, up to 100 domains (which shouldn't be a problem; once we reach 100, we should be able to get another VPS or self-hosting), and up-to-date software. Not really my day.

After I gave up on the server upgrade for the time being, I tried to work on the Accelerator to make AJAX-ified fields appear. It works with 1 box template (a hidden box with pre-determined fields), and I thought I could merge a "field adder" (without removing the existing text), with the drag-n-drop system, similiar to Netflix's Queue manager. However, once I configured the system to have custom boxes (like "Title", "Instructions", "Text"...basic stuff), the system would run through it once and then wouldn't add any more on demand. It seemed like the event listener in the AJAX file wasn't working and wouldn't add the proper event listeners with the proper binding properties. In my mind, it works perfectly: Click "Add Title", type in. Click "Add Instructions", type in. Click "Add Text Box", type in. Move and re-arrange the text boxes for better organization. Submit structure and build database based on the input. doesn't work. Great....

On the up-side, I stopped by Wendy's for lunch, and saw that they had the 5-piece Spicy Nuggets on the Everyday 99 cent menu! YAY! I was so afraid that they would take the 5-piece Spicy Nuggets away again.

After we got home (after Keat went to class), we watched Psych on Netflix and then went to bed.

Tags:#netflix #accelerator #wendys #kick #vps #server #nuggets #curl #e-commerce