Perl vs. PHP: Multiple Select

This 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.

The Search for Ramen Broth Recipes

So 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

ADC 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?

I 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.