Monday, June 26, 2006

Domain Specific Class Selector

This is pretty cool...we stumbled across this syntax in a Digg Article about putting the menu back on the right.

docrule ::= "@-moz-document" S+ url-list "{" S* ruleset* "}"

url-list ::= url-item ( "," S* url-item )*

url-item ::= ( "url(" | "url-prefix(" | "domain(" ) URL ")" S*

where S is from the CSS2 tokenization, ruleset is from the CSS2 grammar,
and URL is like the production URI in the CSS2 tokenization except
without the 'url(' and ')'.

To define the three functions by example:

@-moz-document url(http://www.w3.org/),
url-prefix(http://www.w3.org/Style/),
domain(mozilla.org)
{
/* CSS rules here apply to:
+ The page "http://www.w3.org/".
+ Any page whose URL begins with "http://www.w3.org/Style/"
+ Any page whose URL's host is "mozilla.org" or ends with
".mozilla.org"
*/
}

It basically allows you to have a class that only works on a specific domain. Of course it only works in Mozilla. Good use for the userContent.css file in FireFox.

Sunday, June 25, 2006

Some Cool Links for tonight

Interesting the people you meet at the most unusual times

Yesterday was my nephews high school graduation party.  Yep my nephew graduated and my oldest son is going into middle school...I am getting old.

At the party my dad said I had to meet my nephews uncle that runs his own business doing what I do...I ask "oh what's that?" "COMPUTERS" I always get a kick out of that.  They never realize that that could mean anything.

A couple hours later after my wife had handed me my 8th Crown Royal and coke my nephews grandfather bring him over to meet me.

Turns out he runs pokerdream.com a for pay online poker site.  He told me the site was written in VB.NET and the poker rooms were written in C++.

I visited the site this morning and was really impressed with the design and layout of the site...very professional looking.

He's looking for someone to build an affiliate program for the site.  I told him about my experience with building banner ads tracker on MediaGab and how I thought that should work...now that I think about it I should of told him about RedStorm Sports and the Ad system we build for that as well...I guess I can thank my wife and the 8 cups of Crown Royal and coke for that.

We exchanged cards and talked about our nephew and his choice of college and his decision to go into Computer Science.  I was telling him I think he'll switch to IT eventually because I don't see him have the geekiness to like Computer Science once you get into the Science of it...I know I couldn't handle it and switched to IT in my third year....it's just more satisfying to make things work from existing software and applications then it is to build it from scratch.

MySpace hiring ASP.NET Developers

Speaking of MySpace.  I got a bulletin today from Tom (the founder) looking to hire more MySpace Developers.

i want to hire some more .net developers to work on myspace. do you have experience? here's what i need:

Required Skills/Experience:
- 3+ years of solid C Sharp experience
- 3+ years of ASP.NET (and the .NET 1.1 Framework) experience
- 4+ years of experience developing with SQL Server 2000 (including stored procedures)
- Strong knowledge of several protocols (including HTTP, TCP/IP, and UDP)
- a solid foundation in n-tier, Business Objects, Design Patterns, and general OOP
- Strong knowledge (and wisdom) of IIS6 and its internals
- Experience on sites under heavy loads that require meticulous attention to coding practices as they relate to performance and scalability

go here to upload a resume:
myspace developers

please dont upload anything about any other job at myspace. i'm only posting this to find .NET developers!

oh yah, you've got to live in, or move to LOS ANGELES, CALIFORNIA! yeehaw!


If I was single and didn't have a family and a house I would totally have jumped all over this.  Not because I like MySpace and want to make it better.  I would do it for the experience and jump into another company in the "Valley" that would be impressed to see a big name like MySpace on my resume.

But I have a great job here in Rochester, NY.  Even if I am stuck in Maintenance Programming....thank God Coding Horror says it's pretty complex and challenging stuff. Thank god since I am challenged everyday with it.

The Best MySpace Experience I have had

You know those friends you have when your a kid 7-11 years old that you do everything with?  Play baseball, ride bikes, go hiking, have sleep overs, camping, etc. etc.

I had a friend like that when I was growing up.  But I moved away when I was 11 and we kept in touch here and there until finally I went away to college and we lost track of each other.

Well today I check my e-mail and I have one that says I have a MySpace message from Thomas.  Usually messages on myspace for me are just spam crap.  But I was delightfully surprised to see it was from my childhood friend.

I remember him as a scrawny short kid (skin and bones almost) but his pictures show him to have beefed up...could be because he is in the Air Force now stationed in Alaska.

I sent him a reply getting him up to speed on me and my life and hopefully we can arrange to meet sometime if he ever comes home.

Friday, June 23, 2006

Digg v3 coming

Digg is launching a new look and feel on Monday June 26th.  You can take a look at screenshots and listen to a Podcast interview of the Digg founders.

Last night was the Digg Launch party that was held in San Francisco Laughing Squid has some photos of the event.

Looks good can't wait to see it live.

Thursday, June 22, 2006

Google Bans 7 BILLION Pages for Spamming

Five domains were caught trying to cheat Googles rankings for spamming purposes and were banned by Google with a total result of 7 Billion pages not indexed anymore.


Our World to Scale with the Universe

How big is Earth compared to Venus, Mars, Pluto...The SUN.

How big is the sun compared to other stars.

Well check it out.

Artemii Lebedev photo story of his trip to North Korea

I ran across this forum thread of Artemii Lebedev trip to North Korea where he tells a photo story of his trip.

Some excellant photos that show how locked down the Communist country really is.


Tuesday, June 06, 2006

Let's not forget what today really is...

And no I don't mean it's an evil day...today marks the 61st Anniversary of the D-Day invasion at Normandy.  Let's not forget our fallen soldiers that invaded France and won back the freedom we enjoy today. 

LinkButton doesn't print out a name attribute

When you use a LinkButton Control in ASP.NET 1.1 there is one difference compared to a Button Control.  A LinkButton does not print out a name attribute in the Generated HTML.

I was trying to write some javascript from a textbox to press the LinkButton if the enter key is pressed as this is not done automatically in .NET.

I was having the worst time debugging this stipping it all down to bare javascript calls. But I kept coming up with this.form.elements.somenameattibute has no properties.  Obviously I was getting at the LinkButton control but for some reason could not figure out why.  I switched over to document.getElementById("someIDattribute").click() and this worked great in IE but did not work in Firefox.  So back to debugging I went.

After looking at the code and the example code that I lifted this with I noticed that the code had a name attibute and my code did not.  I switch my Link button over to a button control and everything worked fine.

So in case you need to know this information at a later time a LinkButton control does not print out a name attribute, at least by default.

Monday, June 05, 2006

How to create Firefox extensions

Here's a great article on creating Firefox extensions.

I have a couple in mind for administrating MediaGab a little easier.

Sunday, June 04, 2006

curvycorners - Rounded Corners Simplified

curvyCorners

curvyCorners is a free JavaScript program that will create on-the-fly rounded corners for any HTML DIV element, that look as good as any graphically created corners.

I downloaded it and tried it out and it works great. 

Update:  I was looking through jQuery and noticed there is a Rounded Corner Plugin that works very similarly to curvyCorners but uses less code as promised by jQuery.

Hurricane Tracker Map powered by Google Maps

http://hurricane.stormreportmap.com/

Check out this hole in one

Friday, June 02, 2006

Sabres lose game 7 to Carolina

At least it was a fantastic series.  But now the season is done.  Carolina and Edmonton for the Cup now.

And I will shock people by saying GO CAROLINA!!!!  I don't want that suck ass bastard Micheal Peca to get his greedy hands on the cup.

The Official jQuery Podcast

with Ralph Whitbeck & Rey Bango

You can subscribe to the show in iTunes or via the raw RSS feed

My Twitter Updates

View Twitter Page