Amazinzay.com

The Profound Words Of Amazinzay…

Reinventing the Wheel

Jun-15-2009

So I am working on a site that has a voting scheme built in to it. I decided right of the bat to use Jquery with a star rating plugin. It is used all over the place and looks very slick. So I started around 7 or 8 last night, downloaded the plugin, and got to work. The original worked with radio buttons, which immediatly seemed to make sense, since it is essentially what you are going for, but as I started to get into it, it didn’t work out right for me. It’s four o’clock in the morning so I can’t remember why I initially was displeased with the main jQuery plugin, I think it had something to do with the layout. But I came across another one that used list boxes, I liked that idea, but I didn’t like how he implemented it. only the star you currently are hovering over is lit up, not the ones before it.

Now here, let me caveat into why radio buttons don’t appeal to me. I like to make my sites work just as well without javascript as I can. I know that according to w3 95% of browsers search with javascript enabled, so I am only catering to 5%, which as I’m writing this seems pathetic. Anyway with the original plugin, if you have javascript disabled you end up with a bunch of radio boxes side by side, and no individual labels. I don’t care for that. I want to be able to label my items. So a select box made more sense to me.

So anyway, now that it is past four in the morning, I have succesfully writtem my first jQuery plugin, I have created another plugin to add to all the other jQuery star plugins out there.

Mainstream Jquery Plugin

Select Box Plugin

My Own Jquery Plugin

Web Browser Madness

Mar-13-2009

I’ll admit, with the release of IE7 with the tabbed browsing and the png support, I was beginning to think that maybe Internet Explorer wasn’t as bad as I thought, and that maybe I should give it another shot. I have since revised my position and returned to a state of loathing towards the monster called IE. My biggest problem with internet explorer 6 originally was the tabbed browsing. My second it’s lack of support for PNGs with variable transparency. When addons for FireFox came out, which helped improve my testing and development, it was the final nail in the coffin. Granted, I still have IEtab installed for the stubborn sites that refuse to support FireFox, but I use it sparingly. When IE7 came out, my views changed somewhat. PNG’s no longer had to be worked around to display correctly, and tabbed browsing removed the annoying new window for every page. I still didn’t like IE, but I no longer hated it. It seemed I could make peace with it’s flaws and horrible implementation of the Border-Box Model and be content….

Until I started working on my latest site. Then all the loathing I held for the vastly inferior browser came back like a storm. Hours upon hours of work spent trying to make a simple effect work. It turns out that instead of actually making IE actually support png’s like it should, the IE developers applied the same workaround that I had been using. They simply applied their filters to all png being rendered, which on the surface works, I never knew the difference. Untill… I was implementing a simple mouseover glow, simple enough. I simply created a png with the glow that I wanted, and use jquery to fade it in. It worked beautifully. I had written a generic function that allowed you to simply add a hover class to an image and name an image imagename_hover.jpg|png|gif|etc. and it would do a crossfade in and out of the image. I was so proud, until I saw it in IE. Oh the horror. The result showed a horrible gray fuzz behind any semi-transparent part of the image during the fade, which once the fade finished was removed. But it completely ruined the effect. I googled the problem and found out from the IE developer Sam Fortiner’s blog that

“applying a BasicImage filter with an opacity attribute to an IMG
element with a transparent PNG will fill the work surface with the
transparent PNG alpha alpha blended with a solid gray background.”

Everything I read said that the only workaround was to have the image inside of a div with a background color and fade in the div rather than the image. The problem with this was that my images were on a background image, so fading in a div with a background color would not achieve the desired effect at all.

I was finally able to achieve the effect by calculating the position of the image inside of the div which had the background, create a div with the same background-image and positioning it over the image and fading it in. The result was what I wanted, but the calculations were ridiculous. I did not want to lose the scalability of the site by simply hard-coding the divs in with absolute positioning. So I used Jquery to calculate the positioning. I am so frustrated that IE still does not fully support PNG transparency.

Needless to say I am frustrated ;-)

Scammed

Feb-3-2009

I think i almost got scammed today. I have been looking at getting a Jawbone II bluetooth headset which retails for about $120. I was looking online and found one at mrbdepot.com for $69.99. A good deal by all means. A quick google search found this commentsearch.com article which had many favorable things to say about it. I didn’t find anything negative although I searched for about two hours, being a very skeptical person. After not finding anything negative I decided to go ahead and purchase the headset. When I went to checkout, I selected the PayPal option, deciding it to be shrewd to hide my credit card info. My second clue that something was wrong (The first being the Too-Good-To-Be-True price) was the company name on the PayPal page said “Madeline Rose Boutique, LLC”. Now I am not one to judge, but most electronics retailers do not refer to themselves as boutiques. BUT I went ahead anyway because I hoped that I could still get the good deal. After entering my information into paypal, I proceeded back to the MRB Depot site, where I was told that an error had occurred. So I went back to my cart and clicked the paypal link again, thinking that a server error may have occurred and knowing that my PayPal transaction had not been fully approved, and therefore my money not been released. After re-entering my PayPal Password, I clicked continue and was taken back to the checkout page asking if I wanted to use my credit card, or checkout with PayPal. I choose PayPal once again and again it took me back. After realizing that it was not going to accept my PayPal payment, I decided to look for a good deal somewhere else. Lo and behold, I found one on Buy.com that was $74.99. I decided that the extra five dollars was worth the assurance that I was dealing with a legitimate site.

Work…

Jan-10-2009

So, I’ve been rather busy at work lately. I’m working sixty hour weeks now. I haven’t posted much, so I am sure my reader count has dropped considerably. With working so much my life hasn’t really been very interesting, nothing to really blog about… Except there was the cruise…. And the mexican hospital… And Thanksgiving…. And Christmas…. So anyway, I am sorry I haven’t posted in a while. I’ll try to do better.

Firefox Trunk Release

Oct-23-2008

I was reading Digg.com today on my lunch break and came across an article about the new firefox trunk release codenamed Minefield. It is supposed to be way faster than any other browser. I downloaded it and tested it out. It is still a trunk release (pre-alpha) but it is amazingly fast. Sites display remarkably fast.

If you want to download the relase (not recommended for the average computer user) the link is:

http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/

Portal Prelude

Sep-30-2008

So for anyone who played Portal, this is an interesting development. Three french programmers who liked the game but thought it was too short decided to make an addon to the game. Hence Portal Prelude was born. I have been really impressed with it and would highly recommend anyone who liked the original check it out. It is set to be released on October 10th. It is totally free, assuming you already own portal as it uses many resources from the original Portal.


Standards Compliant Frustration

Sep-4-2008

Google released a browser yesterday called Google Chrome . It is supposed to be one of the most standards compliant browser yet. Which on the surface seems really cool, having website standards helps web designers ensure that their site looks correct in every browser. Unfortunately having a single “standards compliant” browser is useless. Unless all browsers follow the same standards google chrome is just another browser with a different set of rules that have to be accounted for in design. I still have to write my html to look good in firefox (because everyone should), IE 5.5 (ok seriously guys?), IE 6 (…), IE7 (a step in the right direction), Safari (for those not cool enough to custom build a PC), and now Google Chrome (Standards compliant = awesome, a whole new browser to try to code for = crap). I just finished redoing a website to look good in Google Chrome, testing it in IE and firefox along the way, and when it was finally done, it looks different in all three browsers. so now I have to back track to the last test when it looked right and figure out what went wrong.

While I aplaud Google for their contribution to the Standards Compliant community, I still find the need to test and tweak for another browser frustrating.

Google Chrome can be downloaded here:
http://www.google.com/chrome

Update

Sep-3-2008

It’s been a while since my last update… and I dont really have an excuse since lots has happened. We went to new hampshire on vacation three weeks ago, which was a blast. Lots of fun on the beach. I skinned my knee up pretty badly thought, and it still hasn’t completely healed. I’ve been looking for a job for the next year since I am not going to be going to school. I’ve had a few places that I thought I was going to work, but so far none have turned out. So I’m still looking. Jim N Nicks said that they could help me out with some more shifts in the meantime. So I’m about to leave to host.

Graduated

Jul-27-2008

So I graduated Friday night. The ceremony was pretty gay. The speaker was pretty horrible, we only had one run through so the students didn’t know what they were doing. But I got my diploma so it’s all good. :-)

Tattoos

Jun-22-2008

I am actually writing this because Kenny reminded me about it on his site with his position paper on tattoos.

I’ve been telling people for a while now about a new type of tattoo ink that is coming out that makes tattoos totally permanent but also totally and safely removable. I finally took the time to look up the information to back up what I was talking about so people don’t have to take my word for it. The ink is called infinitink and it is made by a company called Freedom 2 LLC.  ABC News wrote an article about it here.