Geeky Stuff (RSS)

My surfing habits and that irritating 'double-click a word to pop-up a definition' (NY Times!)

I am a web-surfing multi-tasker.  For example, I currently have 7 tabs in this Firefox window and 5 more tabs in 2 other firefox windows going simultaneously.  When I mean "going", I mean they are usually queued up for me too read.

So, I will go to a site like digg.com and I will Ctrl-Click the links I want to read and they all load in background tabs.  I will then subsequently do this with any links in the pages I read.  I will also look up topics or definitions of words with a double-click (highlight the word), right-click, "s" (Search Google For 'word').  This, again loads another tab.

Anyway, so I frequently hop from one tab to another and Alt-Tab between Firefox windows, since I categorize a full "session" represented by a single window.  For example, I will have one that is my "email" window.  I will have tabs for McKearney.com email, Gmail, Myspace (kind of email-ish), etc.

All this said, I obviously bounce around.  So, when I leave one page to look at another, I often need a place-holder to show where I was.  So, I double-click a word to highlight it.  This way, when I come back, my place is held.  In comes the New York Times (among others).

So, the New York Times recently made it off of my shit list because they decided to stop requiring registration just to read the news.  Well, they very quickly made it back on the list because they added this "helpful" feature for people.  If you double-click any text on the entire page, they take the highlighted text and search for a definition for you and pop up a lovely window with it, without asking you if you want it.  Nice.

I first toyed with the idea of using Greasemonkey to add an additional "Are you sure you want to look this up?" question, but I quickly realized that I would never answer that question with a "yes".  So, I looked at the source HTML for the web page.  It begins with this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script src="http://graphics8.nytimes.com/js/common.js" type="text/javascript"></script>
<script src="http://graphics8.nytimes.com/js/article/articleShare.js" type="text/javascript"></script>
<script src="http://graphics8.nytimes.com/js/Tacoda_AMS_DDC_Header.js" type="text/javascript"></script>
<script src="http://graphics8.nytimes.com/js/fileit.js"></script>
<script type="text/javascript" language="JavaScript" src="http://graphics8.nytimes.com/js/common/screen/DropDown.js"></script>
<script type="text/javascript" language="JavaScript" src="http://graphics8.nytimes.com/js/common/screen/modifyNavigationDisplay.js"></script>
<script type="text/javascript" language="JavaScript" src="http://graphics8.nytimes.com/js/common/screen/altClickToSearch.js"></script>
<script type="text/javascript" language="JavaScript" src="http://graphics8.nytimes.com/js/util/tooltip.js"></script>


I bolded the line that caught my eye... this one is the culprit, so I decided to use Adblock Plus (which is usually used to block images) to block that URL.  So, I fired up the Adblock Plus configuration and added "http://*.nytimes.com/js/common/screen/altClickToSearch.js" to the list.  I reloaded the page and... voila!  No more obnoxious "oh, you meant to look up the meaning of 'the'.." logic.

This doesn't get the NY Times off of my shit list, since they did it in the first place, but it at least makes it tolerable if I want to view something on their site.

One note:  This only works for the NY Times, obviously.  So, I will probably have to figure this out again with another site.  It may require Greasemonkey.  Either way, I don't care.  I'm the one in control of my web browsing, not you!
posted by Tom with 0 Comments

Phidgets project update

The implementation of my Closet Venting Project was so easy in all the languages I tried.  I had to make it slightly more challenging.  So, I took the .NET Assemblies (DLLs) and used Reflector to disassemble them in to C# code.  Once I had the ".cs" files, I recompiled it on the Linux box, using the latest version of Mono

Since all the C function names and parameters were the same in Windows and Linux, I just added one configuration entry to tell it to use "libphidgets21.so" when the DllImport calls refer to "Phidgets21.dll".  This forwarded all the wrapped C functions in that DLL to the Linux "so" (shared library).  Then, I took my original C# code and compiled that on the Linux box with Mono too.  It worked! :)

Here's the configuration line:

<dllmap dll="phidget21.dll" target="libphidget21.so" />

I had a couple new requirements for myself.  I needed it to run as a "service" so that I could restart it and replace it with new versions at will.  After a few tries, I realized that I could just use the /etc/inittab.  The entry looks like:

FC:2345:respawn:/opt/mono-1.2.5.1/bin/mono /home/tom/FanController/FanController.exe

This sets the ID to "FC" and runs it at runlevels 2,3,4,5.  What it also does is automatically respawn the process if it exits.  So, I needed a way to make it exit itself.  So, I added a very simple .NET Remoting interface into the app to kill it.  So, if you call FanController with a "/X", it connects to the currently running version of itself and calls a function.  This function sets the ManualResetEvent that the app normally waits on before it exits.

So, an upgrade consists of:
  • compile a new version
  • run "mono FanController.exe /X"
That's it!  I, for one, think that's pretty cool :)
posted by Tom with 0 Comments

Closet Venting Project

I had a problem with a closet full of computers getting too hot to the point that fans and power supplies were dying.  So, I decided to do something about it.  I used Phidgets for the sensors.  I wrote the software in C#, then PowerShell, and then , finally, in C in Linux (was easier for my deployment). 

There are photos here

When the temperature hits 80 degrees Fahrenheit, it applies 5V to the digital output, which triggers the Xantech controlled outlet.  This, in turn vents the room until the temperature goes below 80 degrees, at which time the 5V signal is dropped.

It was actually pretty easy to do.  The total cost was kinda high... maybe $250 if you don't count buying the Dremel tool.  The good part is that the Phidgets 8/8/8 Interface Kit supports 16 inputs (8 analog, 8 digital).  So, I can buy new stuff and add on to this much cheaper. 

Hopefully I'll have more to post about soon.

UPDATE: I posted some new info here
posted by Tom with 1 Comments

Non-geeks finally caught up....

This is a well written article from the BBC, which talks about how Sci-Fi and Fantasy have made such a huge impact lately in both TV and Movies.  The main reason is that Sci-Fi and Fantasy are excellent ways to comment on current affairs in a way that is appealing to people. 

Go read it!
posted by Tom with 0 Comments

For those of you who played lots of Atari....

This is awesome!

Go down the side... there are two more :)
posted by Tom with 0 Comments

leave it to a VB programmer...

OK, I've always been an admitted snob when it comes to Visual Basic.  To me, Visual Basic has always represented the blocks-with-letters-on-them version of languages.  Basically, most of the people who are really big fans of VB fall solidly under the category of "Don't Want Him/Her on My Team".  I know, this will upset some people, but anyone who knows me knows that I don't really care :)

Here's what made me say the title:

I was google searching for an algorithm to give me the intersecting point of two Line Segments.  For those non-math weenies out there, a "line" is an infinite thing.  So, when you ask for the intersection of two lines, you may get a point extremely far away from your area of interest.  A "line segment" on the other hand is what you generally consider a line: the connection of two points. 

In looking around, I found this code which, by the way, doesn't solve what I want.  It solves the "line" intersection:

    'Returns the point that the lines cross and stores into LinesCross if the lines do in fact cross
    Public Function Intersect(ByRef Ln As geoLine, ByRef LinesCross As Boolean) As geoPoint
        Try
            'Calculate Denominator
            Dim Det As Double = Ln.m_A * m_B - Ln.m_B * m_A
            Dim Res As geoPoint = New geoPoint((Ln.m_C * m_B - Ln.m_B * m_C) / Det, (Ln.m_A * m_C - m_A * Ln.m_C) / Det)
            LinesCross = True
            Return Res
        Catch
            'Lines are parallel (or do not intersect within the range of a double)
            LinesCross = False
            Return New geoPoint()
        End Try

    End Function

OK, this is a Cardinal Sin of exception handling.  (S)he's using exception handling for logic flow!  That's 30 lashes with a cat o' nine tails to me.  Of course a VB person may applaud his/her ingenuity...

T

posted by Tom with 0 Comments

New engine design -- Savior of the planet?

OK... this interview with an inventor (found it on Digg), is really cool.  Supposedly, he's invented what seems like an almost perfect engine.  If it was close to April 1st, I would call total bullshit on this, but it's not. 

If any decent percentage of it is close to truth, I want one now.  Not because I am sick of paying so much for gas (I think prices should be forced higher to stop waste), but because it is a cool gadget, and I'm all about cool gadgets :)

It does get a little creepy with the New Age-ish "this will save the world" type statements from the guy, but he's got a dream; I can't fault him for that!
posted by Tom with 466 Comments

Great insight into Hollywood from an "insider"

I was reading the Battlestar Galactica blog like a good geek and ran across a really cool posting by Ron Moore which happened to have some commentary about Hollywood that I thought was really great.

On Gaming: "...To put it succinctly: these are seriously smart people, doing seriously smart things with a deadly seriousness of purpose..."
On Gaming vs Hollywood: "
It was especially interesting to contrast the conversations I had with people in the gaming industry with the typical conversation with people in my own industry. My industry tends toward the narcissistic, finding new and exciting ways to be in love with itself and its own hype, sometimes to the point of being in love with being in love with itself."

Yes, Hollywood is full of asshats that don't try to improve themselves or their industry and feel that they deserve to be where they are.  The gaming industry is young and hungry and works really hard to improve rather than resting on their laurels.  They deserve our money more than Hollywood does.
posted by Tom with 0 Comments

those f-ing bastards!

This kind of shit pisses me off...

So, the early adopters of HDTV will NOT be able to watch HD-DVDs!?!?!?!?

WTF!?  We're the ones who bought your shit so that the technology actually succeeded!  Without us, there would not be HD TVs!!  We took it on the chin so that we could get the technology early.  Now, we're getting f*cked because we spent extra money in the beginning!?  What kind of shit is that!?

Man, I'm angry at this.
posted by Tom with 413 Comments

Maybe Hitchcock was on to something....

(all those Intelligent Design folks, please leave now)

According to this article, early humans/hominids were hunted by birds!

Apparently they found the early equivalent to a phone booth with a dead lady in a flowery dress and a lot of feathers or something.  I don't know.  I didn't really read the article.

(originally saw it here)
posted by Tom with 1 Comments

Microsoft finally wakes up to the 60s...

Microsoft has added an actual, powerful shell to their arsenal

You know what I mean.  It's just like those things that have been in Unix (and it's variants) since the 60s.

Granted, this one's got some pretty cool features and looks like I'm going to really like it.  I just downloaded Beta 3 and am about to install.

I can't wait for this to be my new favorite tool.  I'm still a command-line guy at heart and Windows has always been missing a decent scripting language like this seems to have.

T
posted by Tom with 0 Comments

I can stop whenever I want to...

Wired has a new article about how American's "need" their gadgets.  Duh!

How many people who are used to carrying them would like living without a cell phone?
And Tivo (or at least the functionality of one) is now as important to me as blood plasma.  (Though I did build a Myth TV box because I don't like some of the things Tivo has been announcing/implementing lately.  I only use Tivo as a backup now)  People ask me when a TV show is on, I kind of stare at them blankly.  Then I say "You don't have a Tivo?" as if I was saying "You don't own any pants?".

Some more projects that I look forward to being completely dependent on:
  • Video surveillance of the house on my PC (doors, driveway, back yard, showers -- just kidding)
  • Fingerprint scanners on the doors
  • Beer on tap
  • Full home automation -
    • whole house music (got it)
    • software-based grocery lists integrated with Palm/Pocket PC devices and the internet
    • Voice authentication and recognition sofware for doors, wine cellar, music playing, etc.
    • Automatic temperature monitoring of the wine cellar (with email / phone alert capability)
    • voice/internet/software controlled thermostats and humidity
    • (Eventually) Integrate the appliances with this system (notification that the dryer is done popping up on the TV or being played through the speakers when listening to music
    • Auto-pause / Auto-mute music / TV when the phone rings
    • Caller-ID popup on all TVs in the house (and possibly audibly announced through speakers).
    • Auto-close the garage door if we leave it open for too long.
    • Driveway trigger to tell us when someone drives down the driveway (Ding! on the speakers, popup on the TV)
      • Automatically pause and then switch the TV to view the driveway
    • Voice control of the TV
    • Touch screen interface for all house functionality in various rooms of the house.
The list goes on and on.  I can't wait to have all of it too :)

I am sure that, once I have these things, and they are working consistently, I will not be able to live without them.  There's nothing wrong with that, is there?
posted by Tom with 0 Comments

Shower debugging...

Eric Gunnerson has a funny (too geeks) post to his blog about "shower debugging".  Basically, he says that he fixes lots of bugs and design issues when he is in the shower.  I laughed when I said that, because most of my bigger problems with work are solved in the shower or in bed.  I will wake up too early (5:00 or 6:00 am -- I work at home) and start thinking about work.  I've obviously been thinking of it during sleep, so I can't get back to bed.

I usually jump out of bed, grab a cup of the essence of life (you may know it as "coffee") and have my most productive hours of the day.

I wonder if non-geeks have the same productivity boost in these places.

posted by Tom with 0 Comments

The audacity of Sony

The audacity of Sony in handling this "root kit" disaster of theirs leaves me nearly apoplectic...

Bruce Schneier writes a great article at Wired about the whole situation and points out some really great reasons to get really pissed off:  If you don't know of Bruce, he is a great resource for computer users' rights and is always fighting for the "right thing" when it comes to software.  Everything he writes is very cogent and on the mark; it really makes you think.

Anyway, here's a very small background on this issue:
  • In 2004, Sony decides that they want to watch what they do with the CDs that you BOUGHT from them on your computer.
  • Sony adds secret software to their CDs so that when you put them in your machine, it installs without your knowledge.  This software watches what you do with Sony's CDs and sends that information back to Sony!
  • In order to avoid detection, Sony installs what is called a "root kit" that allows them to hide the existence of this software.
  • This software can't be removed without crashing Windows.
  • Sony executives just act like a bunch of elitist pricks saying things like "Most people don't even know what a rootkit is, so why should they care about it?"
  • Sony issues a "fix" that removes the cloaking of the software, but doesn't remove the software itself!
  • It turns out that some included software in there might actually be violating other people's Copyright, which is exactly what they were supposedly trying to prevent!
  • People have now written viruses that take advantage of Sony's installed software to hide themselves from the rest of the machine (including anti-virus software as far as I know).
  • Sony has yet to actually issue a removal tool that actually removes.
  • The number of machines with this root kit installed on it number over 1/2 million and some of those are in the DoD... not good.
  • Your anti-virus software does NOT remove this....
Read the article for other details and reasons to get mad.

This makes me so mad that we bought a Sony TV the other day for my mother-in-law.  I will not buy Sony products anymore.  How about you?

To
posted by Tom with 0 Comments

Very cool new functionality in C#...

Here's a really cool page of examples of LINQ, Microsoft's new data munging functionality in C#.  Unfortunately, it won't be around for at least a year.  You'll be able to do SQL-like data manipulation on any collection(s) in your code.   Neat stuff.

I can't wait.
posted by Tom with 0 Comments

Marrying my favorite team with my Geekiness

Wired has a story about how the Baltimore Ravens are the most technologically advanced team in the league.
(That's the National Football League (That's "American" Footbal) to those non-US folks)

Being a season ticket holder and the owner of 9 computers (read: Geek), this warms the cockles of my heart.  And who couldn't use a little cockle warming every now and then? (Sounds dirty, doesn't it?)

Anyway, I thought it sounded pretty cool and I, for one, can't wait to hear about it when they've got simulators and things like that running. 

Maybe I can get a tour of the facility?

posted by admin with 0 Comments

Microsoft is trying to screw us again... I know you're shocked

If you want to watch DRM-enabled video on Windows Vista, you'll have to buy a new monitor!

Well, you don't HAVE to, but the video will be blurred. 

That is so obnoxious it makes me want to hurt someone.

As if they needed to do more to alienate people...

posted by Tom with 0 Comments

scp doesn't support resuming downloads??

I was trying to remote copy some large files (CD ISOs) from my college while I was at work and had decent bandwidth.

So, I decided to "scp" the files to my laptop.  So, when I looked back at the Cygwin window, the download was stalled at 696MB (99%).

I then realized that I wasn't sure if scp does resuming of downloads (if the file is partially downloaded already, restarting where you left off).

After checking, I realize that, indeed, it does not.  This, frankly, is ridiculous.  But, google came to the rescue again and helped me find this web site which has some shell scripts that basically do the same thing.  It actually uses ssh and dd to do the job, but it works.

I only had to modify one hard-coded path at the top of scp-resume.sh to make things work.
I'm happy

posted by Tom with 2 Comments

Oh man... I need some real bandwidth...

I just read the following words and drool started coming out of my mouth involuntarily...

"Microsoft has signed a deal with comic book giant Marvel that will allow it to develop massively multiplayer online games (MMOGs) featuring Marvel's superheroes for the Xbox 360"

The big problem with this is that my satellite internet connection, DirecWay (may they rot in hell), really sucks, but I don't have any alternatives.
Well, technically, that's not true... Comcast offered to bring cable to my house for the mere pittance of $30,000 (yes, that's the right number of zeros).  Also, I could get a T1 for $500/month.  So, the sky's the limit, apparently :)

T
posted by Tom with 0 Comments

Wil Wheaton

Some of you know him as Gordie in Stand By Me or as Wesley Crusher in Star Trek: The Next Generation, or ST:TNG to us geeks.
Wil Wheaton is more that.  He is a writer, comedian, actor, apparently a heck of a poker player (he's in the WSOP hold'em tournament this year), a step-father to two boys and I find him an excellent writer.  I have read his two books and I read his blog all the time.

Many people think I'm a total geek for reading his blog all the time, but I just want those nay-sayers to read this entry.  This is the kind of writing that proves to the world that he's a good writer.  He lets you into his life, just a little.  He makes you smile.  His life, which is coincidentally 2 days shorter than mine, has been full of so much that he has lots of stories to tell.  He tells them well. 

I hope you agree.

T

posted by Tom with 0 Comments

Deep Impact this weekend

No... not the movie... (or any bedroom antics!)

This weekend, a man-made vehicle will smash into an asteroid.  Cool huh?
You might be able to watch it too.

It has a home page at the University of Maryland

Also, there's a site that is going to host live pictures of it...
I'll try to find it later... having connectivity issues...

Update: Here's the link for live images
posted by Tom with 1 Comments

Welcome to my blog's new home..

This is the new home of my blog.

Thank you for following me here.

I apologize, but the comments did not make it over with the porting of the archives (it was just too much effort).

I hope this works a little better for all you readers out there (*cough*).

Tom

P.S. Anyone that's interested can also check out my MythTV blog (very geeky topic though)
posted by Tom with 0 Comments

Wired 9.12: Take The AQ Testl

Along the lines of the Asperger's question, I found
The AQ Test. It's a measure of your Autism-Spectrum Quotient. People with Autism or related disorder scored higher than 32 80% of the time. I scored a 28. Pretty close. Also, it seems that it won't calculate for you anymore (it's an old article), but it has the scoring info at the bottom, so I added it manually.
posted by Tom with 0 Comments

Do I have Asperger's?

I read this article, and it seemed to be exactly the way I am...

I've always known that there's something a little different about how I work versus lots of other people.

There are various issues I have with my own personality:

  • I won't do mundane/simple things. It's almost like they're "beneath me" in a way. For instance, homework in school (if I knew how to do it, I wouldn't -- I was there to learn, not be a hamster in a wheel), fill out time sheets for work (seems like a waste of time for so little information, even though I know this is where my income comes from)

  • Inability to rapidly multitask. I can do many tasks, but my "time slices" allocated to each task tend to be really large.

  • Monotonous tasks with work. Anything that is simple and unchallenging takes me about 3 times as long as challenging things. If someone could figure out how to keep feeding me exciting and challenging work, I could perform at an amazing level of productivity.

  • I need to know the exact way things are supposed to be done, or I wind up floundering. The perfect example of this occurred when my wife and I were taking dancing lessons. I needed to be told the exact steps and was very irritated when I found out that they had simplified the steps to teach us in the beginning and re-taught us the right way. It was very frustrating for the teacher and for my wife, but it's just how my brain works. Obscure Corrolary: I also attribute this to the reason why I never could slide in baseball. I couldn't figure out how it was done by watching people. Since nobody described how it was supposed to be done, I just didn't even try to do it. To this day I have not tried. Of course, now it's because I have no reason too, and it seems like it could be painful :)



There are also Asperger's like things that I don't mind, like:

  • Nearly OCD issues: I tend to have a seriously geometric mind. This allows me to visualize things in my head to a great degree, but it also causes me to do strange things like walk on tile floors in the patter of a knight in chess (3 tiles forward, one tile to the side -- yep, I do that).

  • I tend to talk to myself: Mostly, this is silent, but I will actually carry on conversations with myself; occasionally this is in the form of talking with someone imaginary, but I am laughing at myself the whole time. I keep thinking... "well, as long as I think this is nuts, I'm doing OK" :)

  • When I concentrate, I tend to rock back and forth rhythmically. Especially when I'm in distress. This first manifested as a kid when I would have really bad asthma attacks. It would allow me to focus and calm myself down. Now, when I'm really on a roll with work or reading a particularly exciting book, I will rock back and forth too. My wife noticed this but didn't say anything :)



Maybe I should see a psychiatrist about this and see if I have a real problem, or if I am just reading into the inormation. But, considering that I have a nephew with a PDD (Autism spectrum disorders), it might just be true.

There are so many more quirks and examples that I could put here, but this is enough for now. Maybe I'll come back and add more to the lists later.
posted by Tom with 0 Comments

You know you want to....

Adblock



I originally got this here. Thanks Sherilla.
posted by Tom with 0 Comments

Researchers Find New Source of Adult Stem Cells From Hair

This is great news... BUT...

I actually have mixed emotions about it. I love the fact that it can be a whole lot easier to get stem cells, but I would have loved the current debate about using stem cells from discarded embryos (from in-vitro cases) to have been resolved rationally. People were actually arguing against using the cells, claiming it was human life, when the cells were being discarded anyway. Umm this "life" is being "terminated" anyway. Why not make it a mini organ donor?

Anyway... awesome news. I hope this is as promising as it sounds. We could make incredible progress on lots of diseases that way.
posted by Tom with 0 Comments

My home theater PC installation has started.

​​​​Some of you who know me (all zero people that are reading this) know that I was planning on building a home theater PC (HTPC) using MythTV on i've decided to he installation has started, and I've decided to blog my random thoughts during the installation. It's kinda tech-heavy though; more for the geekier of those amongst you.
posted by Tom with 0 Comments

Do you think cell phones are too small and push-buttony?

Push-buttony? (I don't know... seemed right at the time)

I came across this article through Slashdot.org (a geek news site). Apparently, some geek decided that he wanted a big, honking old-fashioned-looking rotary cell phone! There are lots of pics and descriptions of the construction process there for those who are interested. Get out your propellor hats and give em a spin!

Slashdot article is here
posted by Tom with 0 Comments

"I am GEEK-I-CUS!"

That is a quote from Wil Wheaton.

For all those of you who are geeks, I seriously recomment Wil Wheaton's Dot Net (WWDN).

Here are two threads about his appearance on VH1's My Coolest Years: The Geeks

Anyway, I'm a huge fan of Wil's -- heck, I have 2 T-shirts from WWDN!

Update: Here's a funny episode of The Dork Tower about Wil Wheaton
posted by Tom with 0 Comments

Multiplication, The Weird Way

If you don't have a calculator and

  • You're sick of doing it the old way and are looking to unecessarily complicate your multiplication, or
  • Your brain works a little "differently" from the rest of us, or
  • You are a Russian peasent and you only have bowls of pebbles around to help you

For your new mental exercise, read this: Math Forum: Ask Dr. Math FAQ: Russian Peasant Multiplication
posted by Tom with 0 Comments