Jul 02

John Oliver Has Surpassed Jon Stewart

Unlike the comment in in my earlier post, this does deserve its own post.  I was fortunate enough to actually catch this episode when it originally aired, and I honestly had no prior idea who Robert Murray even was; I do now.  This absurdly frivolous lawsuit, and his actions as a businessman (a “coal king”) are honestly ridiculous, and frankly literally unamerican – this fucker’s trying to wipe his ass with the Bill of Rights.  In case it wasn’t obvious, I’ve honestly hadn’t even previously heard of anything so egregious; does he honestly seem to not at all understand what rights are afforded to all Americans?  The article mentions sanctions, and I really hope that materializes; money is frequently the only thing that will get imbeciles like him to understand.

Jun 11

Recovering Windows XP Professional Password

Windows XP Professional Password Recovery

Recently, I booted up the old Shuttle SN41G2 I used in college, only to run-into the password prompt, for a password I had honestly completely forgot.  The good news, is that this is a solved problem, on XP (and more recent versions too, I believe).  I had to nab the password reset utility, from http://pogostick.net/~pnh/ntpasswd/ ; I can verify that it indeed works though.  Said computer, albeit my second-most-under-powered one (right after my very first, which I still have – a Pentium Pro 200 mhz, with my similarly super old-school 3dfx Voodoo 2s – interestingly, I still remember its password.  Yes, I had SLI, when it was first commercially available; it’s not even referred as that anymore; I believe its IP was a major reason they were purchased, and that they didn’t release the Voodoo 5 6000 earlier, was a major part of the reason they ran into financial difficulty; as we can see now, it was capable of out-performing all other cards, it would have been competing against.

May 20

Heterotopic Ossification (Part 1)

So, I mentioned in http://www.ericangleton.com/update-torsional-diplopia/ that this would receive its own post; and, that’s materializing.  https://en.wikipedia.org/wiki/Heterotopic_ossification is a condition I didn’t even previously think was possible – hence why you never hear of amputees, “regrowing” their lost limbs; and, just to be clear, after a fair amount of research, I’m not sure this would even really allow for something akin to that.  I recently had mine removed; and, I didn’t get to keep it; but, I did get to see it at least.  The ossification, was like gravel – not an extra femur, or hip bone, or anything similar.  It also wasn’t smooth whatsoever; but, very rough, like sandpaper – I was told that this likely contributes to the pain it causes; and, is a side effect of the speed it develops (~4 weeks).  Something else I noticed, is that the ossification, has no way for blood to get to, or through it (so, “vasculature” maybe?).  Anyway, one of the things I was told, is that cells can become sort of like “stem cells,” after a brain injury; and, for whatever reason, said “stem cells” were re-purposed as bone; but, this is where the term “heterotopic” applies.  Because, the bone, is not part of the skeletal system; so, it’s out of place, so to speak.  I’ll add more, as I learn more; but, the surgery to have it removed, was open-knee surgery – the equivalent, of what would be required, for full knee replacements – I’ll upload a shot, of my new scars, later; they’re actually seemingly healing pretty quick though, fortunately.  There is still pain, when attempting to bend them however; and, I’m honestly not sure why – my physical therapist’s theory, is essentially that it’s largely because I haven’t really used them, in over a year; there are no longer bones in the path of use though, at least.

Apr 27

Vadim Zhukov – Basically Russia’s Paul Oakenfold

I originally listened to this as “Vadim Zhukov – Untitled,” implying that this may have been unreleased for quite a while. I only learned well afterword, that it was indeed released as “Energy Driver.” I then tried to obtain nearly anything I could from him; I don’t think any of his other tracks hold a candle to this one though; it’s easily my most-listened-to song of all time – including Oakenfold mixes and tracks. And believe me, I listened to him A LOT; I still remember all of his Essential Mixes (I even still have a lot of them). On a (unrelated) side note, Yoast SEO is complaining about the lack of a meta description, for this post; but, I don’t even see how to add one. There’s literally no TextBox, for “meta description.”  Also, I’m not a huge fan of the format of Audio posts; so, I’m converting this to a standard one; furthermore Audio posts appear to conflict with a lot of Yoast SEO’s default settings, nor do they even appear to be scrollable.

Vadim Zhukov – Energy Driver (also credited as “Untitled”)

Apr 25

Entheogenic – Timeless E.S.P.

So I came across this song today and was like why the hell is this not on my playlist? This is from the Album Dialogue Of The Speakers.

Apr 24

Sundial Aeon – Startup – Sequence

Hello yall, Eric and I have similar tastes in music and for a couple of years I have been linking him youtube videos practically every day. He has recently suggested to me to link them here. So, for my first post: Sundial Aeon – Startup – Sequence, (which I’ve had this group on repeat for a couple of days now) is from their new album Vulcanosis that came out this year…Enjoy!

Dec 31

Update & Torsional Diplopia

I haven’t exactly been great at keeping this guy updated; at least semi-recently, I have a reasonably good excuse. Anyway, the linked hit-&-run, was almost fatal; I was in the hospital, and later rehab, for just shy of a year. Thankfully however, I have an amazing employer, whose CEO was beyond generous. Literally, every single other person, in my group rehabs was either fired, or “let go” (essentially the same thing, but typically includes a severance package). Furthermore, the chances of even regaining consciousness, from the resulting brain injury, are absolutely dismal (less than 10% for those who don’t like reading). So, needless to say, I’ve been out-of-commission for a while – no excuse before that though, sorry! Aside from Heterotopic Ossification, in both knees (will get its own post later – before this, I had never even remotely heard of it, and didn’t honestly think “re-growing” bones was even possible), I was also, later, formerly diagnosed with an acquired fourth nerve palsy, resulting in a very specific type of double vision (diplopia – torsional specifically). I had strabismus surgery, but it’s still noticeable – maybe not as bad, I just can’t tell for sure – this is another thing I didn’t really know much about before this ordeal (I had at least heard of strabismus though – in general, not 4th nerve palsy in particular). Anyway, the surgery didn’t solve the problem completely. That’s in-line with the procedure’s chances of success; but, I’m wondering whether there’s something else contributing, that’s beyond my limited expertise.

Jul 20

C# Alternative to a Type Dictionary

Somewhat recently, I needed a dictionary whose index was the entry’s type. The obvious way to go about this of course was to simply create a dictionary whose index was the entry’s type, like so:

ConcurrentDictionary<RuntimeTypeHandle, object> _typeDictionary;

There is a really cool, and much faster, alternative though – which was brought to my attention by one of the geniuses (Wil Bennett) I’m fortunate enough to work with every day. You can leverage C# Generics to accomplish exactly what the dictionary would. First, create this simple class that will function essentially like the type-indexed dictionary entry. I’m going to use an integer to function as the dictionary entry’s value in this example; you’d replace this with whatever value you’re interested in indexing.

private class Context<T>
{
       public static volatile int Value = 0;
}

Then, we need a method that will utilize our new class – something simple, just to show off how much faster it is relative to just using a Dictionary.

public void TimeClass<T>(int iterations)
{
       int value = 0;

       var watch = Stopwatch.StartNew();
       Context<int>.Value = 0;

       for (int i = 0; i < iterations; i++)
       {
              ++Context<T>.Value;
       }

       watch.Stop();
       value = Context<int>.Value;

       if (iterations <= 10)
              return;

       Console.WriteLine("Class        : Iterations: {0:N0}, Elapsed: {1}, Value: {2:N0}",
              iterations, watch.Elapsed, value);
}

Now, to test this, we can add a couple of additional methods that use the more conventional approaches to this problem.

public void TimeDictionary<T>(int iterations)
{
       var dict = new Dictionary<Type, int>();
       int value = 0;

       var watch = Stopwatch.StartNew();
       var type = typeof(T);

       for (int i = 0; i < iterations; i++)
       {
              if (!dict.TryGetValue(type, out value))
              {
                     value = 0;
                     dict[type] = value;
              }

              dict[type] = ++value;
       }

       watch.Stop();

       if (iterations <= 10)
              return;

       Console.WriteLine("Dictionary  : Iterations: {0:N0}, Elapsed: {1}, Value: {2:N0}",
              iterations, watch.Elapsed, value);
}

public void TimeDictionary2<T>(int iterations)
{
       var dict = new Dictionary<Type, object>();
       object value = 0;

       var watch = Stopwatch.StartNew();
       var type = typeof(T);

       for (int i = 0; i < iterations; i++)
       {
              if (!dict.TryGetValue(type, out value))
              {
                     value = 0;
                     dict[type] = value;
              }

              value = (int)value + 1;
              dict[type] = value;
       }

       watch.Stop();

       if (iterations <= 10)
              return;

       Console.WriteLine("Dictionary2: Iterations: {0:N0}, Elapsed: {1}, Value: {2:N0}",
              iterations, watch.Elapsed, value);
}

Lastly, throw it all together inside of Main(), then fire it up and test it.

using System;
using System.Threading;
using ININ.Messaging;

void Main()
{
       int iterations = 10;
       TimeDictionary<int>(iterations);
       TimeDictionary2<int>(iterations);
       TimeClass<int>(iterations);

       iterations = 10000000;
       TimeDictionary<int>(iterations);
       TimeDictionary2<int>(iterations);
       TimeClass<int>(iterations);
}

The results really are pretty impressive with regards to how much faster this approach is.

DictionaryTrickResults

Jan 30

AAPL Cash/Share

I’m not particularly a fan of Apple products, nor have I ever understood the willingness of consumers to pay a sizeable premium for them, but I can’t argue with Apple’s success as a company. Their annual EPS growth has been both absurdly consistent and absurdly high. Consumer sentiment might be shifting though, which of course would impact their profitability. Recently, I’ve started digging through their financial statements, to at least better understand whether I could justify some longer-term puts. Granted, I haven’t totally convinced myself on the bearish direction yet, but so far anyway it makes more sense. Between foundries demanding a larger cut, and rising Chinese wages due to the emergence of its middle class, I just don’t see how AAPL’s margins are maintainable – but again, I’ve admittedly never understood their consumer base. Nevertheless, in returning to the point of this post, it’s worth mentioning that as of their last financial statement, $145 of their ~$450 share price is accounted for solely through their immense cash reserves. Ben Graham might wait until it hits that price to move long on it (he might be waiting forever), but I’m thinking it looks interesting around $300 (I might also be waiting forever). I’ll have to wait and see if Mr. Market agrees.

AAPL January 23-24, 2013

Jan 30

When you want to succeed as bad as you want to breath, then you’ll be successful

I’ve already covered the best motivational video ever, but this might be the second best.

The original speech is by Eric Thomas. I might be a little biased on this one since we share first names. 🙂

Older posts «