
This tree impressed me with its dedication to the season. What a beautiful red!

This tree impressed me with its dedication to the season. What a beautiful red!
Links to the code first!
Github: http://github.com/timbotron/JPEF-Magic
What is JPEF Magic, you ask?
JPEF (Javascript, PHP, Email Form) Magic is a package which handles email forms in an elegant and simple manner. Essentially, it lets you add email forms to your site and deploy addition email forms down the road much quicker then creating each one from scratch.
Notable features..
Why did I make it?
I come across this need all the time. I always think, “Oh I’ll just throw a form together.” but after you take care of the php to mail it, error checking, it does take time. Couple that with the fact I hate using the name value in emails as the question. I wanted a way to just have the exact language of the question on the form be what was included in the email, with minimal duplication by me. Hence, JPEF Magic was born.
Check out the demo at: http://lab.citracode.com/jpef_magic/
Just a quick one today, pretty much unrelated to anything.
It is getting colder, as Autumn is losing territory to it’s rival, Winter. That means soup should be the lunch of choice here for a while at the office. There’s only one problem.. I have no bowl.
It’s perfect! A handle so I can easily carry it back to my desk, but big enough to handle soup cans of all sizes, and homemade soup as well.
You can find it Here on Amazon
This is pretty simple, but I wanted to write up how to install/upgrade Firefox manually, in a Linux environment.
First thing that was tricky is, where is the “proper” place to install it? There is much debate on this point still, but I believe that installing to the /opt directory seems to make the most sense.
So we’ve downloaded the Firefox version we want to install:
[text]firefox-7.0.1.tar.bz2[/text]
It is sitting in a directory:
[text]/home/tim/downloads/[/text]
I open up a terminal and type:
[text]sudo tar -jxvf /home/tim/downloads/firefox-7.0.1.tar.bz2 -C /opt/[/text]
What is this command? Let’s break it down:
sudo – “The following commands we are going to run as super user”, necessary for putting things in the opt directory.tar -jxvf – The tar program is what can compress and uncompress archives. We are using the options jxvf
/home/tim/downloads/firefox-7.0.1.tar.bz2 – The full path to the Firefox archive we are going to be installing.-C /opt/ – We want to specify the directory /opt/ as where it is going to be extracted to.Then, bam Firefox should be extracted to the /opt/firefox directory. Then what do we need to do? Well, depending on your Linux distribution, you need to add a shortcut to that to your menu somewhere, so it’s easy to get to. The program the shortcut should point to is:
[text]/opt/firefox/firefox[/text]
UPGRADE: For upgrading your Firefox install you have in the /opt/ dir, you do the exact same thing.
Now I don’t have to spend the 1 min remembering how to do this every time a new version of Firefox comes out. Hope it helps others.
I recently worked on an internal project that replaced a current web app. The new one had a cms behind it, and was overall a better product. So, we made it live, and moved the old tool. And all heck broke loose, since staff had bookmarks pointing to the old location all over the place.
Here is an example of the old link structure:
http://example.com/sub_dir/filename.html
The new link to the same content:
http://example.com/sub_dir/view.php?doc=filename
Now, sure I could try searching and replacing everywhere those links could live, but that sounds like a disaster. Instead I leveraged the mighty power of the mod rewrite in Apache.
I created a .htaccess file in the sub_dir/ directory. Then I added:
[text]
ReWriteEngine on
RewriteBase /sub_dir
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*).html view.php?doc=$1
[/text]
1) We are turning on the rewrite engine. 2) setting the base directory as sub_dir. 3) Saying “If the requested file is not found..”. 4) “Grab the text before the .html, and put it where the $1 is”.
And bam! All those old links, when hit, point to the correct page. I thought this would be much harder than it was. I’m trying to tag the heck out of this post, so if others are looking to do the same thing, it is here for them.
I had a thought earlier: There is a comparison to be made between web developers documenting their progress of personal projects online, and academic types (scientists, researchers, etc) publishing papers.
Both groups have to keep publishing, else their respective fields will see them as not current or dedicated.
I am sure people already know all about this service, but I didn’t so I thought I’d share. Stripe is a payment system for web apps, where everything lives on their servers, you don’t need to store any sensitive info yourself. That is very appealing to me. Also, their API looks really straightforward.
The cost is reasonable as well. 2.9% of the transaction, plus 30 cents.
Soon, I hope to have a reason to build their services into a web app.
Does this ever happen to you? You get an email or text from someone you haven’t heard from in a while, with a message of, “Hope all is well, haven’t heard from you in a while.” Or something similar. What is even worse are the ones you hear it through others, where someone says, “Bob Balaw wanted me to tell you he misses you.”
The older I get, the more this irks me. My main gripe with it is this: Communication goes both ways. It isn’t my responsibility to always initiate communication. If someone misses you, why don’t they contact you? At least with something more than a, “haven’t heard from you in a while”. Because that means that I haven’t heard from them in a while too. But the implication I see there is that it is my responsibility to contact them, and I haven’t. Which really, if you think about it, is manipulative. Some emotional blackmail, that. Especially if they use a parent or someone you really care about to convey the message.
I guess my point is this: if you want to talk to someone, or miss someone, initiate communication! Don’t send guilt-laden messages.
This post is in no way is a result of recent life events.
I’m looking at my blog, and I am totally uninspired to write.
I look at my blog circa 2004 and I totally want to write on that! Why is that?
I miss the old internet. There was less concern with slick-looking pages, and more excitement about just getting content up there. Part of it is too, it reminds me of my excitement I had back then for my blog.
I’m redesigning my site to make it look like my old Movable Type site. Maybe then I will post more. And I don’t care that it won’t look slick, this blog is primarily for me, after all.
I’ve been reading selections of Voltaire’s work. Namely, a group of short essays, jots (dare we say blogposts) called ‘Selections’. It’s been good for me, I feel like my mind is getting a little more active. My plan to read more is paying off.
I’m stumbling across all sorts of wonderful words, and rabbit trails to new things to research. I’ll be sharing them as I go along. Here are a couple new words: