Archive for June, 2004
Perl vs. PHP: Multiple Select
Thursday, June 24th, 2004This is a really annoying behavior with PHP.
In order to access form variables in a multiple select box, you need to rename the box with array brackets at the end. If you don’t, PHP will only populate the $_POST assoc. array with the last element selected.
e.g. <select multiple name=”vars[]“>
Whereas with Perl, you can get the values from a normally-named multiple select box because mod_perl actually sticks all the selected options in a dereferencible array.
Mr. T Bonanza!!!
Thursday, June 24th, 2004Functional Spec Tutorial
Wednesday, June 23rd, 2004More about GET and POST
Wednesday, June 23rd, 2004An enlightening discussion of the philosophical (and HTTP) difference between GET and POST:
http://www.cs.tut.fi/~jkorpela/forms/methods.html
Originally spurred by wondering what the maximum size of a GET query string is: 2,083 in IE
FCKEditor DHTML Editor
Monday, June 21st, 2004Nice DHTML editor on sourceforge. http://www.fckeditor.net/ (via)
The Search for Ramen Broth Recipes
Sunday, June 20th, 2004So my ramen broth tonight was pretty bland and disappointing. It happens to armchair chefs like myself fairly often. I’m not speaking about instant ramen, rather, the kind of ramen made with fresh noodles and ingredients. (Yes, i’m a Tampopo fanatic) Therefore, I am officially on the search for good ramen broth recipes without MSG. Interesting shoyu recipe (looks Western) Miso broth recipes Pictures of various broths
The traditional ramen broths are tonkotsu, a stocky broth made from pork and chicken, shoyu or soy sauce broth, and miso broth.
As a side note, seeing over-simmered shrimp balls inflate to 4 times their normal size was a visual treat on par with the time i microwaved marshmallows as a kid.
Explanation of tonkotsu ramen preparation Entertaining links.net entry re: interesting thick pork broth ramen in Japan. Debunking the myths about RAMEN!!! Daikokuya in little tokyo. Looks like a place to sample tonkotsu.
Safari XMLHttpRequest object
Sunday, June 20th, 2004ADC Article: http://developer.apple.com/internet/webcontent/xmlhttpreq.html
Basically, it allows your client to asynchronously connect to the server and retrieve XML or HTML documents, returning the results in XML for parsing. Should allow some interesting remote scripting applications, but i’m not sure that it’s 100% cross browser compatible. According to the article, look for this to get picked up as a de facto standard.
Also has interesting example (I think it can be played in Safari, Moz, and IE 5+ so far. http://developer.apple.com/internet/webcontent/XMLHttpRequestExample/example.html
Nested SPANs inside DIVs - padding-top problems?
Friday, June 18th, 2004I was having severe problems with putting a padding-top attribute on a SPAN lying within a DIV… in both Firefox and Safari, if I did so, the span seemed to extend the padding past the enclosing block element. It would nestle up against the top and taunt me with its big floating tab.
I eventually solved the problem with a float:left; attribute temporarily. Please let me know if there’s a better answer to this.
Time zone difficulties
Friday, June 18th, 2004Had really weird time zone problems on my RSS feed that were solved by upgrading my RSS templates to the latest defaults out on moveabletype:
http://www.movabletype.org/defaulttemplates.shtml#rss10_index