Author Archives: Mario Lurig

Automatic Form Detection and Post with jQuery

After building custom jQuery on multiple websites to POST form data to a secondary PHP file for processing, I decided there has to be another way. I wanted to build a JavaScript (jQuery) chunk of code that executes when the document is ready and automatically performs the following functions:

  • Put the cursor (focus) in the form’s first input field (if multiple forms on the page, be smart enough to use only the first form).
  • Detect all forms and automatically generate the code to POST all of the form elements, via AJAX, to the script defined in the form’s action. Furthermore, use the name of each form field as the key in the POST data.
  • Load the results into a div with the id of ‘output’.
  • Work for forms that are generated and returned as part of the output (not originally part of the page)

Continue reading

Bicycle Group Rides – Launching BicycleTogether.com

Over Labor Day weekend I finally launched a love website: BicycleTogether.com. It’s main purpose is to bring cyclists together by offering a central place to add or search for group bicycle rides. Why is it a love website? It doesn’t have a revenue stream, it just meets a need. Sure, that may sound tragic considering that, financially, I really need to focus on revenue streams, but I’ve found a lot of value in following what you are passionate about.

Do what you love and the money will follow

Continue reading

Truth in Cereal – Photo Evidence of Portion Sizes

I’ve had a nagging curiosity about why you may choose one cereal or another for weight loss. There is enough selection that you will enjoy multiple brands, so maybe you go to the Nutritional Information and realize it’s about 10-20 calorie range between each cereal. You also think that 3/4 of a cup portion size is about right for what you eat in the mornings. Well, all of that is not true, and instead of telling you why, I think pictures will speak volumes here.
Continue reading

OpenStage Theatre: Anton in Show Business (Oct 2009)

It’s amazing the lengths I go for theatre… no, scratch that, OpenStage theatre. If this was a Mastercard commercial…

  • Ticket: $14
  • Parking: $1
  • Gas: $5
  • Seeing an OpenStage performance: Priceless

Friday afternoon I decided to do something better with my Friday night and reserved tickets to see “Anton in Show Business” at 8pm on October 9th, 2009. I grabbed my fedora and my trench coat, and off I went after work, leaving Broomfield and grabbing some cash before the drive. The way up greeted me with snow flurries, not yet sticking to the road. Winter, in early October. sigh
Continue reading

BikeMS Colorado 2009 – A First Person Summary

This is a first hand account of my experience riding in BikeMS Colorado for the first time in 2009. It was a fantastic experience, and I am excited (even while sore) to have not only finished, but to be even better next year in fundraising and riding. The following is pure opinion, and in general I was thrilled with the organization, planning, and overall atmosphere of the entire event… thank you Bike MS Colorado staff, volunteers, and sponsors!
Continue reading

New Page Added: MASHD

Just a quick note that there is a new page available on MarioLurig.com: MASHD. It’s an Active Monitoring tool for people who are using Dreamhost‘s Virtual Private Server (VPS) for their web hosting. It graphically displays their CPU and Memory usage while the webpage is open, and requires only copying a single file over to your web server before accessing that file through a web browser. It does the rest by creating 3 more files and running immediately; no configuration required. It works on any Linux based VPS or Dedicated server, I just happen to use Dreamhost VPS.

Dreamhost VPS Root Access and System Monitoring

SUDO has long since been removed from Dreamhost making this invalid

If you are a Dreamhost customer, you may have popular enough websites that you switched from their stellar shared hosting to a Virtual Private Server (VPS). They offer both your main Apache/PHP server as well as a MySQL VPS. I switched to these shortly after it became available, to ensure maximum control over restarting my servers, troubleshooting problems, and scalable resources. The latter option is a real perk: You can change the memory/CPU allocation for your VPS as activity grows on your websites. On the down side, once those resources are used up, specifically memory, your server will determine that memory was exceeded and all processes will be killed.
Continue reading