Ok, I’ve posted way too much about the iPhone, I think a few people might actually be reading and subscribing to my blog. I’m actually getting comments too. Time to nip that in the bud with a post about obscure unix commands.
I was reading a tutorial on setting up an IMAP server and the guy [...]
mkaz.com
Category Archives: coding
Unix Directory Commands
PHP: How to Fix Double Posting
When submitting a form, a user may click the submit button twice, they may reload the posted form, or hit back in their browser. Most of these will cause the form to be submitted twice and likely posted twice to the database.
Here’s one way to solve double posting, the process is:
generate a unique key and [...]
Yahoo Pipes…. whoa!
Pipes lets you remix feeds and create new data mashups in a visual programming environment
Yahoo just blew me away with their new Pipes service. Innovation is not dead at the purple Y! I’ve just read a little on it and touched the service, but this looks better than sliced bread. I need to check [...]
Goodbye XML, Hello JSON
About four years ago I wrote an article on the limitations of XML, I’m here to back that up with some numbers. All of the same issues apply to XML today as they did then. It is still a bloated format, still requires external libraries and still takes plenty of code to parse.
Our search [...]
PHP Benchmarking: Loops
A little more on PHP Benchmarking, I was reading a bit about it over the weekend. Some sites were also claiming that you can optimize your loops by using do and while loops instead of for loops.
Here are my results for those, I had to bump it up to 2,000,000 loops to see a noticeable [...]
PHP Benchmarking: isset, empty, or (var)
I read in a couple of spots that using isset() or empty() is much quicker than doing a simple ($var) check. I was curious how accurate these statements were, so I wrote a little benchmark script and was a bit surprised by the result. Using isset() or empty() was about 40x faster.
Here’s the results from [...]
Specials Characters = Special Pain
Things can be easier. It amazes how difficult simple text processing can be. The crazy thing is after 10+ years of doing it for the web, things don’t seem to be getting any easier. Copying and pasting text from Word always is a problem, plus now people like fancy quotes, accents and all sorts of [...]
Rich Text Editor - IE, Firefox, Safari ?
Things should be easier.
Why can’t I do the following with HTML:
<textarea richtext=”yes”
buttons=”bold,italic,copy,cut,paste,lists,…”
resizable=”yes” … >
It would display something like this:
When submitting the rich textarea it would simply POST well-formatted HTML as you would expect. You wouldn’t need a huge download, buggy javascript, different editor widgets for each site. You could have the same consistent spell [...]