Tuesday, May 31, 2011

Saying Nothing At All

"He got nuttin' to say and he ain't sayin' it!"

lol

Monday, May 30, 2011

Creativity : Doctor Who plus Monty Python and the Holy Grail

What do you get when you add Monty Python's Search for the Holy Grail to the most popular cybernetic bad-asses in the longest running TV show in history?

Dalek Awesomeness:

Sunday, May 29, 2011

Winning Recipes…or…”All Green Things Must Die” | Jeff's Place

Winning Recipes…or…”All Green Things Must Die” | Jeff's Place

Monk Food

I don't think Monk is weird for not wanting his food to touch on his plate.. food SHOULDN'T touch food on the plate!

:P

Watson is not smart OR intelligent

The program that played Jeopardy is way cool.. and very fast, but Watson is not an artificial intelligence.
As far as I know, it does not have the capability to grow. To learn.. to be creative.. to put 2 and 2 together and come up with a Rose and a Dalek.

Very cool (I'd love to get a chance to work on it), but it is neither intelligent or self-aware.

Sorry, HAL.. not yet.

C#: Another HasDuplicates() for IEnumerable



public static bool HasDuplicates_Version2<T>( this IEnumerable<T> sequence ) {
if ( null == sequence ) {
throw new ArgumentNullException( "sequence" );
}
var set = new HashSet<T>();
return !sequence.All( set.Add );
}

C#: HasDuplicates() extension for IEnumerable

Continuing on my previous post..



public static bool HasDuplicates<T>( this IEnumerable<T> sequence ) {
if ( null == sequence ) {
throw new ArgumentNullException( "sequence" );
}
return sequence.Duplicates().Any();
}

C#: IEnumerable get Duplicates (Select Non-Distinct with LINQ)

Saw this page: Raucous Random Ramblings: Select Non-Distinct with Linq!

[Updated 2012-06-12]

Not too shabby.. FWIW: the GetDuplicates() from the raucous random ramblings post returns all items it considers are duplicates.

This is different than my version, which only returns items after they are found in the list. I consider my version better because: if I existed and someone made a clone of me (i.e. 'duplicated'), then I would not consider myself contained in the set of the duplicates. :) But I can understand someone using both functions for different purposes.)

Here is my version for getting duplicates from an enumerable list.
Better? You try both and then let me know what your results are..


/// <summary>
///   Returns duplicate items found in the <see cref = "sequence" />.
/// </summary>
public static IEnumerable<T> Duplicates<T>( this IEnumerable<T> sequence ) {
if ( null == sequence ) {
throw new ArgumentNullException( "sequence" );
}
var set = new HashSet<T>();
return sequence.Where( item => !set.Add( item: item ) );
}

In the testing I slimmmed the two foreach down to "return results.SelectMany( @group => @group )" per Resharper's suggestion.

Examples for the set of
    {1,2,3,4,5,6,7,8,9,6,4,2,2,4,6}
  • Duplicates() returns {6,4,2,4,4,6}
  • GetDuplicates() returns {2,2,2,4,4,4,6,6,6}
Speed tests!
I threw together a function timer with a massive UInt64[1048576] to check for duplicates.
Letting the tests run for a few minutes (over the same set of data)...
  • Duplicates() processes at 3338 units every millisecond.
  • GetDuplicates() processes at 1060 units every millisecond.
Remember: the test results are going to vary under different conditions, of course.
Ignoring the duplicate duplicates that both functions return with a .Distinct() did not make a noticeable timing impact.
Increasing the count of duplicates in the test data increased the speed of both function.
I do like the result set my function returns, and it does perform 3X faster than the raucous post..

Saturday, May 28, 2011

Truth

Ask me a question, and I will tell you nothing OR the truth.

I abhor lies.

Friday, May 27, 2011

Maddi Jane - Jar of Hearts (by Christina Perri)‬‏

Wow.. she is good.

Unknown Coprocessor Device (Acer Aspire AX3400G)

(Background: after swapping video cards on an Acer Aspire AX3400G)
An unknown device showed up in the Windows 7 64 bit device manager: Coprocessor.

After some googling.. and going to Acer's website I downloaded the 64 bit drivers.. unrared each into it's own folder and let windows pick through the folders (through the "Update Device" option).

The device identified as "NVIDIA nForce System Management Controller".
The 15.56 nVidia driver might be found here: http://www.nvidia.com/object/nforce-vista-win7-64bit-15.56-driver.html

Hope this helps someone..!

(I'd add a permlink to the Acer drivers, but they keep changing their site around)
(Also works with Windows 8 64bit)

Plants Versus Zombies by PopCap (bass.dll problem)

So my daughter went to play Plants vs Zombies when the screen went black and just sat there.
The error that popped up was:
"BASS_ChannelPlay function not found in bass.dll"
After a bit of sleuthing and googling, it turns out that some other application had dropped a dll into the window's system SysWOW64 folder.

The path was "C:\Windows\SysWOW64" on this computer..
You may be able to find your computer's folder by pressing "Windows+R" and then entering "%SystemRoot%\SysWOW64".

Deleting "bass.dll" from the SysWOW64 folder allowed the game to work.

(Programmers: please stop putting your muck in my OS's folders!)
(Developers: please don't let programmers muck with your OS!)

Thursday, May 26, 2011

Deletion vs Extermination (aka Cybermen vs Daleks)

Now, I ask you: which is scarier?
"You will be deleted. deleted. deleted."

Exterminate!


Daleks, win. :P 

DNC chair: Without the auto bailout, we'd all drive foreign cars (VIDEO) - CSMonitor.com

DNC chair: Without the auto bailout, we'd all drive foreign cars (VIDEO) - CSMonitor.com:
"Without the auto bailout, we'd all drive foreign cars."
Bullshit.

We'd start fixing the ones we have (and stop filling up the junkyards)!

The very fact that sales are dropping points to market oversaturation.

Wednesday, May 25, 2011

BBC News - Where are India's millions of missing girls?

BBC News - Where are India's millions of missing girls?: "foetuses"

omg... those poor lives. lost.

Doctor Eleven

Just watched the first episode of Doctor Who with the Eleventh Doctor.. it was funny.

The redhead (pond?) is definitely a hotty. Nice legs.. cute eyes.. great hair.. ...wait, where was I...

Ah, the doctor. Young.. not as handsome as #10. But I can definitely see potential to grow on us as a new beloved doctor.

Not to sure about the TARDIS just yet. Didn't like seeing her mangled !

IANAL

<insert standard anal joke here>

No.. not "I anal".

It means "I am not a lier." er, uh, excuse me I mean: "I Am Not A Lawyer".
Close enough though.

Heh.

But really... who cares?

Do people go around professing: "I'm not a painter/policeman/politician/astronaut/geek/etc..." when they give advice in real life?

Since when did lie-rs lawyers obtain this special status?
Btw, legalese should be designed to be more understandable and not less intelligible.

So someone says: "I think the red flavor will give you more taste."
Or they say: "I think the red flavor will give you more taste but IANAL."

Is there really any freaking difference?
I'll judge what you are saying based on what you are saying.. I don't give a crap what your profession is!

Saturday, May 21, 2011

N355 FWU

Has anyone found what is the significance of N355FWU ?

Friday, May 20, 2011

Easy way to compress folders and files in Windows 7

Ever want to compress a folder just chock full of files, but you don't like that annoying dialog box that just takes forever to finish with the inaccurate progress bar?

Ever canceled that annoying dialog box? Heh. I have.. Many times..

Well, here is the easy way to get the job done!
  1. Press "Windows-R" to bring up the run dialog.
  2. Run "cmd" to start a command prompt.
  3. Change to the drive and folder you want to compress.
  4. Run the command "compact /C /S /I"
  5. Let it run and ..tada.. space saved!

Windows 7 : Multiple usb flash drives with ReadyBoost

So, just for fun I gather together some old usb flash drives sitting around my computer desk, formatted then to exFAT, and dedicated them to ReadyBoost.

All together it's about 29.92 GB decicated to ReadyBoost...

I swear it makes a good difference. I already have 4gb of ram in this system, but I do do a lot of multitasking.

At this moment: I have an ide open, creating a photosynth (87% synthy, my highest yet!), watching a youtube video, picasa running, and importing some home videos from another flash drive!

And not one bit of lag, 'tis nice.

No loss of a drive either, if I need a flash drive I just turn off the ReadyBoost option in the properties.

Thursday, May 19, 2011

Wednesday, May 11, 2011

Gas Prices and the Scarecrow

Really.. what is up with the 9/10ths portion on the gas prices.
It doesn't con us.. at least those of us with more edumacation than your average third grader.
It's really actually just annoying. Really annoying.

And, I really want to know: Why is the ocean near the shore?

Tuesday, May 10, 2011

Dutt Bust aka Subject: FW: What Is Butt Dust??

What Is Butt Dust??

What, you ask, is 'Butt dust'? Read on and you'll discover the joy in it!
JACK (age 3) was watching his Mom breast-feeding his new baby sister... After a while he asked: 'Mom why have you got two? Is one for hot and one for cold milk?'
STEVEN (age 3) hugged and kissed his Mom good night. 'I love you so much that when you die I'm going to bury you outside my bedroom window..'
BRITTANY (age 4) had an ear ache and wanted a pain killer. She tried in vain to take the lid off the bottle. Seeing her frustration, her Mom explained it was a child-proof cap and she'd have to open it for her. Eyes wide with wonder, the little girl asked: 'How does it know it's me?'
SUSAN (age 4) was drinking juice when she got the hiccups. 'Please don't give me this juice again,' she said, 'It makes my teeth cough..'
DJ (age 4) stepped onto the bathroom scale and asked: 'How much do I cost?'
CLINTON (age 5) was in his bedroom looking worried when his Mom asked what was troubling him, he replied, 'I don't know what'll happen with this bed when I get married. How will my wife fit in it?'
MARC (age 4) was engrossed in a young couple that were hugging and kissing in a restaurant. Without taking his eyes off them, he asked his dad: 'Why is he whispering in her mouth?'
TAMMY (age 4) was with her mother when they met an elderly, rather wrinkled woman her Mom knew. Tammy looked at her for a while and then asked, 'Why doesn't your skin fit your face?'
JAMES (age 4) was listening to a Bible story. His dad read: 'The man named Lot was warned to take his wife and flee out of the city but his wife looked back and was turned to salt..' Concerned, James asked: 'What happened to the flea?'

Kids say the darnest things.....

The Sermon I think this Mom will never forget...

This particular Sunday sermon....'Dear Lord,' the minister began, with arms extended toward heaven and a rapturous look on his upturned face. 'Without you, we are but dust....' He would have continued but at that moment my very obedient daughter who was listening leaned over to me and asked quite audibly in her shrill little four year old girl voice, 'Mom, what is butt dust?'

Lil kids.. yah just gotta love them...

Friday, May 6, 2011

YouTube - Too Short

God bless static cling. :)
YouTube - Too Short

fap fap fap fap fap fap fap fap

Tuesday, May 3, 2011