smithvoice.com
 Y'herd thisun? 

“Remote to linux or mac machine from windows... or from linux or mac with SSH and SCP!”
-Smith


from this page

Latest pages

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


Webforms Inherited Panel control

Wasn't going to post this because some magic made the original problem go away, but just in case it comes back... my sitelett search makes it easier to find stuff than searching for commented out code :-).

Needed a container control for a Repeater's ItemTemplate so users could get the info from any collection of display controls (labels, images, whatever) and just click anywhere in the set for a serverside event instead of putting a button into the mix.

Easy enough, added an inherited Panel.  Worked fine as a drop-in on test pages but when added to the Repeater and was inline bound the doPostback javascript errored out on registration.  It was being rendered correctly in the html but when used in an ItemTemplate it didn't want to even get past page_load.

So I hand-wired the Render method to use the settimeout style and poof, it worked as a list item container.



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