smithvoice.com
 Y'herd thisun? 

“Millions of Chinese peasants died of famine during the Mao Zedong Great Leap Forward period as agricultural crops proved stubbornly unresponsive to demonstrations of mass enthusiasm. Chinese industrial production also declined as factory machinery proved similarly unresponsive. What worked was Deng Xiaoping's restoration of material incentives for good management and disciplined work”

from Reopening the Space Frontier by John Hickman

Latest pages

Redirected Downloads

We have files for download on a NAS.  We don't want to expose them directly to everyone hitting the site and the idea of just mapping the drives makes people go nutty so, got a fast idea?  We know that by this time it's got to be so simple that we're missing the obvious but we're going in circles and a vendor wants too much money for a bridge product.

Huh.  Does the file server run IIS or Apache/Mono?

It's a Windows server so IIS is ok but we don't want to expose it to the internet.

You don't have to, if it's on your company network just expose it internally so the web servers can hit it.  That possible?

The answer is going to slay you... open up notepad and copy this in:


Regex Ajax Jquery UserControl

This universe is fun.  Last week I was having a conversation with a budd about a validation regex and just a few days later I had the need to dig it out for myself ... lucky I put it on the sitelett (thanks Universe!).

In my case I needed to make a double listbox picker for Keywords.  Over the years I've just used Telerik controls but this is a lean webapp and I didn't want the extra baggage so I rolled my own.  ASCX with serverside needs plus Jquery/JS Ajax hitting an ASMX web service for adding new keywords on the fly without page reloads.

Demo here.  Code and some notes ...[more]


E3 2014 Gamespot All Hail Monolith

I'n not a big fan of pages just listing links but....

http://www.gamespot.com/articles/e3-2014-gamespot-s-best-of-e3-2014-winners/1100-6420468/

Gamespot did their biggies of E3 2014 and I'm full of pride for the great folks at Monolith!  Shadow of Mordor *is* awesome!

And for Heinlein fen, take a gander at No Man's Sky.  Please God, make it release the way they envision it.


Simple person name regex

"Do you have a good regex to test a person name part entry?"

Yep.  ^[A-Za-z]+((-[A-Za-z]+)|('[A-Za-z]+)|(\040[A-Za-z]+))*$


Pretty Helicopter over Ventura Boulevard

I don't know about other places these days but in LA it's getting so that it's now unusual to look up and NOT see at least one helicopter circling around.  

I live off Ventura Boulevard so I think we get a tad more circlers so I'm immune to choppers more than most... but this one kept so close right over the house for so long that I had to look up and it was an odd puppy. 

side view helicopter


Hack the Profile Provider

So you don't want to reinvent the wheel on an ASP.Net profile system but you need to support some perfectly understandable business rules for the profile data that the precooked Profile Provider doesn't handle well?

You just create a custom Profile Provider to hold your props in a custom table instead of that silly serial format, right? 

Yeah... but what if one of those rules requires a lookup validation and message to the user?  Your custom implemented Save() has to return void,  a status code won't work and a custom exception from SetPropertyValues will choke your web site.

Well, there's a hack for that.


ASP.Net Membership mdf setup without ASPNETDB.mdf

Microsoft's ASP.Net Membership system isn't world-class bulletproof and has quite a few limitations so you'd not want to use it as-is for projects where money is involved, but for a lot of projects it fits the bill fine.

The only problem is that most of us get it into a project by banging on it and swearing a lot... then we forget about the pain till the next time.

This last time when my brain started saying 'next time I won't have to use this thing'... I figured I'd be smarter and write it down.  Also, because I am getting sick and tired of simple yes/no questions being answered by showing a YouTube video, I decided that I won't even show a single darned image in these steps.

[more]


Support SSI With Amazon Smile

Just called up Amazon and was greeted with a popup asking if I wanted to donate to a charity (at no cost to me).  Huh.  I clicked the About link ( http://smile.amazon.com/about ) and saw that all we have to do is pick a charity then whenever we call up Amazon with http://SMILE.amazon.com a portion of our regular purchase prices go to what we want.

They offer a scroll picker with the usual suspects but also allow you to search.  I did so and found that SSI is listed! 

Neat.  I'm in!

[more...]

Gary Hudson SSI NIAC 2014 Video

SSI President Gary Hudson was at the 2014 NIAC conference last week. I so wish I could have been there but Livestream is the next best thing. Gary starts at 1:03.

Watch live streaming video from niac2014 at livestream.com

Benny The Focused Lego

Lego Movie is coming.  The book is already here. 

My son yelled across the Barnes and Noble store ...

...that we are in it :).

 


Yes, thank you, it was a very nice birthday

I'm a terrible person.  I make my living teaching machines to keep track of minutia but I never remember anyone else's birthdays.  Guess it's like being able to spot the best mechanic by looking for the guy in the most beat up car in the dealer lot.

In any case, I thank the long-time budds who wished me a happy and yes it was.


The last remaining issue of long duration space life

Had another request to add demo SQL to the old Magic Datepart page. Done.

Hey... yesterday two background voices came together in a flash.

First, while waiting for my tires to be replaced I caught a guy lamenting 'kids these days' not being able to look up from their Gameboys [sic] and AppPhones to save their souls.  Later I had Methuselah's Children playing at the house and along came that always-sad Heinleinism that the only long duration space travel issue truly unfixable by dedicated science and engineering (aka Just Doing It) is the deadliness of boredom.

Hmm.  Hmmmm.  Perhaps the rise of video games is the pink pill RAH didn't foresee?


Abuse of Power (jquery)

B> i need...

S> how bout...

B> a start

S>dont show a priest

B>efem ;)


Persisted Coalescence

I knew PERSISTED.  I knew COALESCE.  Dang though, I hadn't thought to put them together!

ALTER TABLE myPersonTable
    ADD FullName AS  (
REPLACE(RTrim(Coalesce(Title + ' ','') 
+ Coalesce(FirstName + ' ','') 
+ Coalesce(MiddleName + ' ', '')
+ Coalesce(LastName + ' ', '')
+ Coalesce(Suffix, '')
+ Coalesce(NULL, '')), '  ', ' ') ) PERSISTED



home     who is smith    contact smith     rss feed π
Since 1997 a place for my stuff, and it if helps you too then all the better smithvoice.com