Oh yes, 60Hz, my favorite vertical refresh rate, but why I wonder?

Well for starters it’s the best and easiest way to get a headache. I have a 52 inch Sharp LCD TV (LC52D64U) and it’s max refresh rate at 1920×1080 is 60Hz, which makes it fantastic to watch while playing anything high definition. Since I use it as a monitor, and the only way it looks decent is at 1080p, I’m currently stuck at 60Hz.

So I suppose it’s time to buy another TV… or an actual monitor for the mean time.


Previous ArticleNext Article

Regex and Anchor tags

I had been looking on the Internet for a solution to a program I had be working on and sadly didn’t come up with one. I was trying to find a way to use regular expressions to find all the html anchor tags in a string along with matching a wild card URL (ie: secnem.com.*test.html). And after many hours of thrusting my head into my keyboard I came up with:

/<a [^><]*href=[\”\’][^\”\’><]*<rule>[^\”\’><]*[\”\’][^>]*>\s*.*\s*<\/a>/iU

You’d replace <rule> with what ever url rule you want, except for any wild cards in the url I needed to use [^\”\’><]* instead of just .* . This would prevent it from matching outside of the anchor. Bascially [^\”\’><]*  means: match any character except a double quote, single quote, greater than sign, or less than sign. All of which should not be in the href field to begin with.

If you wanted to see what the content of the anchor tag was or the matched href, simply put some brackets around like so:

/<a [^><]*href=[\”\’]([^\”\’><]*<rule>[^\”\’><]*)[\”\’][^>]*>(\s*.*\s*)<\/a>/iU

Hope this helps someone. You can of course adapt this to other html tags by replacing ‘a’ for ‘table’ or w/e. Same with the href. larsolavtorvik.com has a great resource for testing regex in real time and addedbytes.com has a great cheat sheet as well.


Phenom X2 955 + 8GB PC2-8500 = Win

Well I decided to get an upgrade for my current AMD Phenom 9600 setup, and that upgrade was a new Phenom X2 955 processor, 8GB of OCZ Reaper PC2-8500 memory, and ASUS M4A79 Deluxe motherboard. Now I’m currently actually using my old ASUS M3A32-MVP motherboard because the new M4A79 needs to be sent back for RMA (which made me sad). I also ordered a new printer and case for this setup so I can’t wait for that to get here as well.

But so far I’m very impressed with the results compared to the 9600. As an example, in WoW while in Dalaran my screen would stutter and freeze with an FPS 12-20 at any GFX setting. This was common through a lot of my games, where I could set the GFX settings pretty much as high or as low as they’d go and I’d still get the same FPS. This was caused by the fix for the error in the translation lookaside buffer (TLB) and L3 cache of the processor which made it suffer huge performance losses. But now with this new X2 processor I can easily fly through Dalaran with 40-70 FPS and no lag and that’s with only one of my two ATI 3870’s in the rig.

Can’t wait to see what else I can easily do.