Thursday, August 20, 2009

More Array Stuff

Using the code in my previous post, I disabled the existing echos and tried this:


The output was

As expected, so I can access the array I need based on the $selected_array var.

PHP mixed arrays

I wanted to verify that I could mix scalar data and array data in the same array. Here's what I came up with.


echo ("first is {$test_array['first']}
echo ("second is {$test_array['second']}
echo ("array1 begin is {$test_array['array1']['begin']}
echo ("array1 middle is {$test_array['array1']['middle']}
echo ("array1 end is {$test_array['array1']['end']}
foreach ($test_array['array2'] as $value){
echo("array2 key $count is $value

The output was:
first is 1
second is 2
array1 begin is one
array1 middle is 2
array1 end is three
array2 key 0 is a
array2 key 1 is b
array2 key 2 is c

This means we can use mixed data in one array and access the scalar and composite data as expected.

Wednesday, July 15, 2009

MS Does it right? IE8

I am not a huge fan of Microsoft because I generally don't trust corporate giants and their software tends to bloat.

That being said, I am hearing and experiencing good things regarding IE8. I have heard that it is the most standards compliant browser. That's a good thing right? Not if the site you are visiting relied on old IE7 functionality. Well, that's where the Compatibility Button comes in handy! Then, theres the inPrivate Browsing, and the ability to delete items, one by one, from the address bar MRU.

I hate to admit it, but I kind of like this MS Product. Let's see if my opinion of that remains in the next few weeks.

Tuesday, July 14, 2009

Back to Normal

I have returned my blog to it's normal appearance. I am not completely satisfied with the FTP integration, but it might work.


I am tweaking around with the blog today, using it as a test before I break a client's site. :)

If you see it, and it looks broken, you'll know why.

I am following the instructions found here and here to integrate a blogspot blog into an existing php website.

Monday, July 13, 2009

Delete Linux files with illegal Characters

If a file has been created with invalid or illegal characters, your FTP program or the rm command may choke on it. Here's a quick way to delete it in ssh.

navigate to the correct directory, then:
ls -il

You'll see somehthing like
782263 -rw-r--r-- 1 viv viv 0 2006-01-27 15:49 \+Xy \+\8

"\+Xy \+\8" represents the bad filename

find . -inum 782263 -exec rm -i {} \;

replace 782263 with the number associated with your bad filename.

You'll be prompted to verify the correct file is being delted. Type "y" and "Enter" if it is correct.

This information came from:

Thursday, June 4, 2009

Testing Something

This is a simple test. I am thinking of blogging a little more frequently, so I need to be able to do it quickly.
This is a test of that.

Tuesday, January 27, 2009

The Passing of a Friend

This morning, a friend of mine unexpectedly passed away. He was what I might call a peripheral friend. That is, I knew him more as a friend of a friend. What little I knew of him, He was a great guy. I am talking about Hook Atsavinh. The first time I met him was at a little place in downtown St. Pete (FL). I think it was "Number 9 Bangcock". Then I had the pleasure of attending a LAN party (If you have to ask...) put on by [BITCH] Clan of which I was a member. Hook let us use what was to be his restaurant. It was torn apart as if in the middle of a re-construction, but that was a perfect atmosphere for playing Quake. Hook set up and served sushi and other tidbits for us all night. He made a roll for me using a hot pepper instead of seaweed. Lightly battered and dipped in hot oil. It was excellent. We had a great time! I have had the honor of working on his website, for a few years as well. We (JH Studios, owned by John Holland) were able to optimize his site so well that the term "sushi bar" in google brings him up in the number one spot! That means he beats out all of Japan, all of California, all of New York all of wherever!
(no longer the case as JH no longer hosts the site)

I copied a piece from Creative Loafing. I hope they don't mind since I am giving credit here. This is talking about his business, but I think it says a lot about the person as well.

Serenity now
review by Brian Ries

On the weekend after the annual Thanksgiving family gorge-fest, I head out for sushi. I wrote about this tradition last year, but it bears repeating. You may even want to try it yourself. There is something gastrointestinally appropriate about chasing a meat, starch and gravy meal with discrete amounts of pristine fish and tiny dollops of subtly seasoned rice. It soothes my soul just thinking about it. Better yet, no one in my family eats sushi. It may be the last peaceful moment I have until Jan. 2, 2007.

Thankfully, there are two sushi joints just north of downtown St. Pete, conveniently across the street from each other: Hook's and Sushi Rock Grill.

Not that Hook's is particularly calm. Inside, it's a shabby chic ode to Polynesian design run by a crowd of youthful chefs and servers, all entirely casual in appearance and attitude, with pop music pouring from the speakers and trays of sushi flowing from the bar. If I'm looking for serenity, I'm going to have to find it in a slice of fish.

That's no problem, actually, because Hook's fish is exceptional. Hamachi ($4.75) enters my mouth with a whiff of the sea, leaving behind the taste of butter and brine. Salmon ($3.95) looks solid enough but dissipates in a rich smear of fat and meat as soon as it hits my tongue.

Fine tuna, like that served at Hook's ($4.50), is reminiscent of a good steak, if that steak were distilled down to one cool, silky morsel that's light and fresh and as good as sex. When I'm having sushi, I also ask for "toro" -- that high-grade, fatty tuna that's difficult to find here in the Bay area. If tuna is like sex, toro is like making love. Mmm, fishy love. Sadly, Hook's "toro" ($7.95) is fine, but not much of an improvement over the regular tuna.

There is nothing shabby about the look across the street at Sushi Rock Grill. Black lacquer furniture, low lights and modern restaurant design give this place a posh, suburban feel. No vibe, mind you. Just décor.

It's hard to have a vibe when there are so few people partaking. I don't know -- maybe there are more people across the street because they don't want to be left out of some great happening. Maybe it's the soulless elevator music playing at Sushi Rock. Maybe more casual dining is what people are after. Maybe the sushi across the street is just better.

With the first bite of tuna ($4.50), that does seem to be the case. Sushi Rock's sushi is fine and it would be perfectly acceptable if there weren't better fish just across the way. Same with yellowtail ($4.50) that has just a bit too much chew.

Sushi Rock's salmon ($4.25) is the better between the two restaurants, though, so rich it's like eating salmon foie gras. And this restaurant manages to season the sushi rice appropriately, with enough sweet and tart mirin to add layers of flavor to the character of the bare fish. Over at Hook's, the rice is bland.

Rolls are a mess at both places. I'm not saying they're not tasty; it's just that modern sushi places have gone a little goofy with their combos. At Sushi Rock we could almost put together a meal named after Sean Connery movies -- there's an 007 roll and a Red October roll -- or Peter Weller movies -- a Screamer roll and ... if only there were a Robocop roll.

Making maki of grilled chicken seems a little sacrilegious to me, but if it works, I'm not going to complain. However, I will complain about the "Bangkok roll" ($8.88 at Hook's, $10.95 at Sushi Rock). Both joints have a similar version, but neither should bother. Sure, it's packed with a bounty of high-quality seafood -- tuna, hamachi, salmon, shrimp, crab -- but we have to bite through tough, chewy rice paper to get to it. No thanks.

Note to Sushi Rock: Chopped scallops get lost when in the same roll as sweet grilled eel ($9.95). Putting cream cheese in a fried roll, Hook's? Yech. Most of these overly clever rolls fall a little short, but a "lollipop roll" ($7.95) at Sushi Rock is worth a try. Salmon and crab are rolled inside thin slices of cucumber, with a bright ponzu dipping sauce on the side.

Sushi Rock coats a deep-fried, spicy tuna roll ($8.95) in breadcrumbs, resulting in a golden brown shell that is a bit too crisp and too substantial for the raw fish underneath. Better to have the light and airy tempura batter across at Hook's, like that on the lobster tail roll ($8.88).

There's more to this sushi restaurant duo than just coincidence. In 2003, sushi chef Hook Atsavinh broke off from former employers at Sushi Rock and, perhaps in a fit of spite, opened his own place within spitting distance. On the Hook's website, there is a thinly veiled jab at his neighbors: "You can go to other restaurants where your money goes more toward fluff." That would be cocky if it weren't so true.

Sushi Rock Grill, with its acceptable sushi and pleasant décor, might be the kind of date you could see yourself marrying. It looks good and can keep up with cocktail conversation, although it's a bit fastidious. What you really want, though, is a date with Sushi Rock's hot friend Hook's. Hook's is a wild child, exciting, down-to-earth, and, ultimately, more fun than the prettier place across the street.

Or, for those of us firmly trapped into the infinite cycle of death and rebirth known as the annual family holiday get-together season, Hook's is a release from pretense and suffering. This time of year, I can get enough tightly wound atmosphere at home.

Brian Ries is a former restaurant general manager with an advanced diploma from the Court of Master Sommeliers. Creative Loafing food critics dine anonymously, and the paper pays for the meals. Restaurants chosen for review are not related to advertising.

Hook, Rest in Peace.
We miss you.