Author - Web Developer - Educator
Found 2 results for tag "curl"
RSS Feed

What a way to end a week

Well, I finished Eureka Season 2 today. Gotta love Netflix and all of their Instant shows, right? I mean, I could have watched SyFy (or SciFi as it was known) when it came on, for example: Tuesdays at 9, and I usually operate on a "must have a time slot" schedule for most things, but not TV shows. Instead of waiting each week for a certain day at a certain time for a TV show to come on (if it comes on), I prefer to watch it online. Sure, I can't do that with current shows (waiting on new Psych episodes is killing me), but who else can say that they watched all 4 seasons of Heroes in 16 consecutive days? I know I can.

But on to more important things: Keat went out shopping with Kat today, which left me home alone for about 5-ish hours. My main goal was to figure out Milestone 3 of the form building algorithym. I found out about the .empty() portion of the jQuery binding function (example: $('.to_delete').click(function() { $('#box').empty(); });), which is 80% of the Milestone. Now all I have to do is get the form builder to have multiple fields recognize the self-emptying feature with 1 function instead of having 1 auto-built function per row (which can get very confusing and very redundant).

I'm still playing with jQuery to better understand it. Although I'm all for building my own functions and features from scratch, I gotta admit: jQuery is probably the best of AJAX scripting libraries I've ever come across. jQuery makes everything that I've done with AJAX (such as the repetitive function $(box){ return document.getElementById(box); }, which simplifies a lot of the element claiming) seem like 1st grade.

If I keep working at this tomorrow, I should have Milestone 3 done by evening (I hope). Although one thing that always bugs me about the Fall/Winter season is the shortening of daylight. In the Summer, I like how at 7pm, you can see the oncoming of the night, and by 9, the night us upon us. However in the Fall/Winter, it's day at 5:30pm, as soon as 6 o'clock, nighttime comes and it's pitch black.

So far, the progress is coming along nicely. I'm awaiting payment from a client, which will allow us to afford the server upgrade, and then I'll spend some time getting the cURL installed and getting their site up. After that's done (est. time: 1 week), I should be back on the Accelerator and hopefully have the form builder done by Xmas, which means the whole system (form builder, form editor, validation and submission, payment, and more) should be done by March.


Tags:#jquery #netflix #heroes #eureka #milestone #xmas #psych #curl

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 libcap.so.1, which was needed for proftp. So I go out searching for libcap.so.1, 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. And................it 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