Friday, February 3, 2017

MOAR applications

I went to lunch with former coworkers today and some other thing-of-the-moment applications came up in conversation. moviepass.com is an app which allows you to pay a $45 per month subscription (and there is at least one cheaper/weaker option too) for a creditcardesque card and a mobile app that you may use to otherwise see movies for free in the theaters provided that you do not see more than one movie a day. That means that if you are seeing one movie a week with the system you are basically breaking even and if you are a real fan then you have a cost savings indeed. Yay! Major chains of theaters are on the system for this thing and so might be Alamo Drafthouse. Audible, which is Amazon-owned and at audible.com, was the other app discussed. I had heard of this one before from a current coworker. It's getting more and more trendy to listen to books as audio instead of reading books and this is a place to go for audio books.

Thursday, February 2, 2017

falsey six

Yikes! There are not five falsey values as I suggest here and here but instead at least six as the Boolean value for false is obviously falsey as it's literally false. This moreover makes a distinction between negative zero and zero and between an empty string defined with single quotes and an empty string defined with double quotes and all four things are falsey. The same thread suggests there is an obscure thing called document.all which is of old IE that is also falsey, so there could be as many as nine falsey shapes.

  1. undefined
  2. null
  3. false
  4. NaN
  5. 0
  6. ""
  7. ''
  8. -0
  9. document.all

Wednesday, February 1, 2017

When do I want to break up the falsey five?

Almost never. The convenience of checking to see if something is falsey is a convenience for a reason, you know? The one exception might be to see if a numeric property is set yet or not. In those cases you would want a distinction between a zero versus null and/or undefined. Do something like so:

if (whatever || whatever === 0) {

 
 

Something to avoid is to write a separate pipe (in an Angular 2 app for example) that tries to return true or false based on if something is undefined or null. The one line comparison against zero is the way to keep it simple. While I'm thinking of pipes, don’t use a pipe directly in TypeScript. If you need a repurposable blob of functionality that can work in both the front face Angular 2 markup and the TypeScript files you should write a service for it and then have a shim of a pipe for wrapping the service that exclusively is used in the markup.

isNaN should perhaps be avoided

You use it like this right?

if (isNaN(whatever)) {

 
 

You'd think this would be truthy or falsey based on whether or not whatever was a number or not, but that's not so. Some strings will cause false to be returned from this thing, specifically strings that will survive the trip through a parseInt or a parseFloat. Also an empty string or a string with a single space looks to me like it will sail through with a false output based upon what I'm seeing on StackOverflow.

funmoppet

The book "Generation X: Tales for an Accelerated Culture" by Douglas Coupland is credited with assigning the moniker "Generation X" to my generation. I just finished reading it this Sunday after having originally discovered a Swedish language version while on vacation in Stockholm last summer. I like what Doug had to say about my generation and, as he puts it, McJobs:

VEAL-FATTENING PEN: Small, cramped office workstations build of fabric-covered disassemblable wall partitions and inhabited by junior staff members. Named after the small preslaughter cubicles used by the cattle industry.

Vine has gone away with Obama.

Stupid apps like Gowalla come and go. Others like Digg die by way of shapeshifting. I kinda get the impression that Digg used to be something like what StumbleUpon is now though I've never used either app. Anyhow, Vine has been watered-down (shapeshifted) into Vine Camera for fifteen days now and while this was just another stupid app like Gowalla, Digg, and StumbleUpon I nonetheless fell in love with this one, embracing it completely. I could not get enough of it. I used to make six second movies all the time and kept one hundred and three of them. Thirteen of the most recent fifteen (the least recent of the most recent) are from a vacation I took in Stockholm, Sweden in the summer of last year which is the best vacation I've ever had.

103.generic beach experience
 Virginia Beach Boardwalk
 
 
Aug 29, 2016
102.stupid octopus!
 Blacklight Mini Golf
 
 
Aug 29, 2016
101.Who's doggie are you?
 Stadsbiblioteket (B)
 
 
Jul 9, 2016
100.Facey McFaceface!
 Åhléns City
 
 
Jul 9, 2016
99.the flute!
 Dansmuseet
 
 
Jul 7, 2016
98.Milenkovic Vojin the cab driver scared the hell out of me by getting out of the cab and wandering about the not-yet-open museum grounds.
 Artipelag
 
 
Jul 7, 2016
97.the night rolls in
 Radisson Blu Waterfront Hotel
 
 
Jul 6, 2016
96.Swedish girls have the bright blonde hair that American white girls pretend to have.
 Drottningholms Slott | Drottningholm Palace
 
 
Jul 5, 2016
95.these kids try to figure their shit out on the boat ride to Drottningholm
 Mälarhöjden
 
 
Jul 5, 2016
94."Hey!"
 Trångt & Trevligt
 
 
Jul 4, 2016
93.art at the Tensta subway stop
 Tensta T-bana
 
 
Jul 4, 2016
92.girl panhandling on her celly didn't want her photo taken
 Wayne's Coffee
 
 
Jul 3, 2016
91.what is this machine supposed to do???
 Scandic Grand Central
 
 
Jul 2, 2016
90.howl on through the night, call the stars...
 Zara
 
 
Jul 2, 2016
89.bags
 Stockholm-Arlanda Airport (ARN)
 
 
Jul 2, 2016
88.wasting time in Newark
 Newark Liberty International Airport (EWR)
 
 
Jul 1, 2016
87.Sunny!
 Austin Bergstrom International Airport (AUS)
 
 
Jul 1, 2016
86.I overstep.
 Maiko Sushi Lounge
 
 
May 15, 2016
85.the carousel dies
 Dallas Zoo
 
 
Apr 9, 2016
84.brave! came up on the table
 Rio Rio Cantina
 
 
Apr 2, 2016
83.um... something about a cheeseburger... it's kinda hard to follow
 Gold's Gym
 
 
Mar 19, 2016
82.chill cat
 Starbucks
 
 
Mar 18, 2016
81.Visual Studio and its master artist @jeffreypalermo
 DeVry University Austin Campus
 
 
Jan 21, 2016
80.do something interesting
 Planet Hollywood Resort & Casino
 
 
Aug 5, 2015
79.the selfie stick
 New York-New York Hotel & Casino
 
 
Aug 4, 2015
78.rock!
 Tom's Urban
 
 
Aug 4, 2015
77.it's for a good cause
 Twin Peaks Restaurant & Sports Bar
 
 
Aug 3, 2015
76.super gross cloudy fish tank at Buffet Palace
 Buffet Palace
 
 
Jul 30, 2015
75.I'm trying Salvation Pizza!
 Salvation Pizza
 
 
Jul 26, 2015
74.Does daytime use of the night drop qualify as irony? I feel conflicted.
 Vulcan Video North
 
 
May 31, 2015
73.dictation!
 Star Nails
 
 
May 13, 2015
72.silhouette
 Bon Eco Design
 
 
May 12, 2015
71.Felisha and I aimlessly wander the local hardware store.
 Tamworth Pro Hardware
 
 
May 12, 2015
70.WOW!
 Tamworth
 
 
May 11, 2015
69.This is my second speeding ticket in New York State today! They didn't make me sign anything! Am I really liable? Yes, I probably am.
 Town of Ellisburg
 
 
May 10, 2015
68.trying to keep the Mexican Revolutionaries happy, festive
 Republic Square Park
 
 
Apr 11, 2015
67.Oddity: I hook my hand like I'm left-handed when I write, but I'm not left-handed.
 Mansfield Dam Park
 
 
Mar 29, 2015
66.x+
 Texadelphia
 
 
Mar 27, 2015
65.hula hoop
 Darwin's Pub
 
 
Mar 22, 2015
64.curlers!
 Aaron's Rock & Roll
 
 
Mar 22, 2015
63.scary
 Chupacabra Cantina
 
 
Mar 16, 2015
62.war reel
 Pace Bend Park
 
 
Mar 15, 2015
61.keepers!
 Keepers Clothing
 
 
Mar 13, 2015
60.zero calories!
 Hidden Gardens Apartments
 
 
Mar 5, 2015
59.nasty weather be damned, let's fly kites
 Zilker Park
 
 
Mar 1, 2015
58.What does the pizza at @hobokenpie smell like?
 Hoboken Pie
 
 
Feb 28, 2015
57.dog
 Anderson Mill
 
 
Feb 27, 2015
56."colorless Hawaiian shirt" is almost an oxymoron
 Guitar Resurection
 
 
Feb 21, 2015
55.she digs the lavender slacks (I think)
 Hut's Hamburgers
 
 
Feb 20, 2015
54.I guess the food at Athenian is pretty good!
 Athenian Bar & Grill
 
 
Feb 10, 2015
53.all of my vines are made in the right now (2013 style) the way Hephaestus intended without @goldbergsisters after edits
 Iron Cactus Downtown Austin
 
 
Jan 2, 2015
52.sudden death of the sock puppet!
 ACC Northridge
 
 
Jan 1, 2015
51.guy with the guitar just had the guitar thrown at him
 The Mohawk
 
 
Dec 3, 2014
50.I haven't seen one of these machines in action in many, many years. They're noisy up close!
 Shoal Crossing Event Center
 
 
Nov 16, 2014
49.It's the day of the Austin Heart Walk! (though it looks like rain)
 Long Center for the Performing Arts
 
 
Oct 18, 2014
48.Hollister Noise
 Hollister Co.
 
 
Oct 14, 2014
47.We have jelly!
 Steiner Ranch
 
 
Oct 13, 2014
46.silly
 Walgreens
 
 
Oct 5, 2014
45.some chickens at the Texas School for the Blind and Visually Impaired Gardens
 TSBVI Bistro
 
 
Oct 4, 2014
44.at WalMart in the middle of the night
 Walmart Supercenter
 
 
Oct 4, 2014
43.by campus
 St. Austin's Catholic Church
 
 
Oct 2, 2014
42.classy entertainment
 The Bat Bar
 
 
Sep 27, 2014
41.her Mohawk need assistance
 Wild About Music
 
 
Sep 27, 2014
40.I think I'll have one of the "Chocolate Chunk" cookies!
 Walton's Fancy and Staple
 
 
Sep 8, 2014
39.I'm easily entertained.
 Catfish Parlour
 
 
Sep 7, 2014
38.shooting with Rick Cymbalist and Dip Manandhar!
 Shady Oaks Gun Range
 
 
Sep 6, 2014
37.eating
 Winflo Osteria
 
 
Sep 5, 2014
36.rope line at "The Madison"
 The Madison
 
 
Aug 30, 2014
35.surreptitious is delicious
 Pete's Dueling Piano Bar
 
 
Aug 28, 2014
34.Kafka's Castle!
 Frankenstein Computers
 
 
Aug 24, 2014
33.with new wave hairdos, I want #GIRLS
 Dillard's
 
 
Aug 20, 2014
32.at Lanai
 Lanai
 
 
Aug 10, 2014
31.feel my WRATH!!!!!
 Balcones Woods
 
 
Jul 18, 2014
30.Tejano jams
 Central Market
 
 
Jun 15, 2014
29.I never really noticed the hummingbird before. #ctcc14
 Chesapeake Energy
 
 
Jun 14, 2014
28.It's the first day of work in the new office building and I couldn't resist going into the hallway in the middle of the air.
 Chase Bank
 
 
Jun 3, 2014
27.if everyone jumped off a bridge, would you jump too?
 ZaCH Topfer Theatre
 
 
May 25, 2014
26.the drive home
 Mopac Loop 1
 
 
May 13, 2014
25.Whatever. SXSW.
 Austin Convention Center
 
 
Mar 9, 2014
24.meow!
 Longhorn Rentals
 
 
Dec 28, 2013
23.the last show ever of Bad Rackets!
 The Legendary White Swan
 
 
Dec 15, 2013
22.Shark Attack!
 Balcones Family Dental
 
 
Sep 3, 2013
21.we are working 28 hours straight on a hackathon
 @hand
 
 
Aug 9, 2013
20.approaching the Pennybacker Bridge from the East on #lake #austin
 360 Bridge (Pennybacker Bridge)
 
 
Aug 1, 2013
19.the dark board at @headspring
 Headspring
 
 
Jul 26, 2013
18.I'm breaking down and making a vine again. Sigh. (I'm so weak.)
 Main Event Entertainment
 
 
Jul 16, 2013
17.Creating a whitelist is a good way to prevent "mass assignment" attacks per @amirrajan at the Austin .NET Users group tonight!
 Microsoft Corporation
 
 
Jul 8, 2013
16.an apple (and a vine) for teacher, specifically my high school art teacher, Mary Ann Evans Miller, who died May 1st
 Westwood High School
 
 
Jul 7, 2013
15.I don't want your girl!
 #'s Night Club
 
 
Jul 4, 2013
14.a successful shopping outing at Walgreens!
 Walgreens
 
 
Jun 27, 2013
13.I'm meeting Felisha Storring for the first time in a dozen years.
 Graveyard Point
 
 
Jun 23, 2013
12.Tiger Jaw is playing at Red 7! So says Ayssa.
 Red 7
 
 
Jun 13, 2013
11.Summer is calling.
 Lady Bird Lake Trail
 
 
Jun 2, 2013
10.another Katie Pennington ecigarette movie
 Recess Arcade Bar
 
 
May 20, 2013
9.Katie explains the ecigarette!
 Alamo Drafthouse Cinema – Ritz
 
 
May 19, 2013
8.Fight! Fight!
 Buckshots
 
 
May 16, 2013
7.a "God" story
 Old School Bar & Grill
 
 
May 8, 2013
6.Caffe la Toscana
 Olive Garden
 
 
Mar 19, 2013
5.I bought a hat!
 Sherwood Forest Faire
 
 
Mar 10, 2013
4.I just got the High Score on Q*bert at Pinballz Arcade!
 Pinballz Arcade
 
 
Mar 9, 2013
3.IHOP he hop a we hop, she hop you hop a they hop, be hop, be hop a lu hop, I don't think you'll understand
 IHOP
 
 
Mar 1, 2013
2.ring of fire!
 Dell Round Rock 2
 
 
Feb 7, 2013
1.. @eric_anderson open spaces scribbles at #HTML5tx
 St. Edward's University
 
 
Feb 2, 2013

Classic ASP

I am currently learning Angular 2 and it makes me glad I never learned Angular 1 honestly. The two are so very different and one is of the past and one (two) is of the future. I've been doing C# for a decade now and the modern Angular 1 versus Angular 2 circumstance makes me think of the old Active Server Pages in contrast to more modern modernity and makes me glad I never learned it given that it was all to get abandoned for .NET. Sure I dabbed in PHP and Cold Fusion in the ASP era, but in bailing for .NET it was like I was escaping to something better, not reluctantly cursing the fact that someone made a wildly different version of the thing I already knew. I've been there before in moving from the DOS (disk operating system) version of 3D Studio to 3D Studio Max back in the 1990s. PHP and Cold Fusion were probably better than ASP by a hair. You couldn't do any file uploading in old school ASP I recall. Cold Fusion had a low barrier to entry and PHP ran on dirt cheap hosting. Anyways, I do have a funny story to tell. In 2006 I was working at a consultancy which had a client that was a sizable organization with many departments. For example, Mechanical Engineering was one of the departments. The departments didn't have their own IT subdepartments within however. There was a common IT across all departments which was thus inattentive as everyone fought for its attention and Mechanical Engineering wanted to create an intranet site while sidestepping actually setting it up through IT as that would be a tedious waiting process with a bunch of red tape. This was a windowsland LAN environment and I was dispatched to see what could be done. I determined that without being able to set up a site in IIS (which only the ivory tower IT department could) that there would be no way to see the code inside a .NET .dll and hence .NET was out. I did determine that one could drop an old school ASP web site on a file share and hit the pages at a browser URL by way of going to an IP address in lieu of a domain name and then specifying the applicable file name for an entry point after a forward slash. What was more such an ASP site could successfully talk to a Microsoft Access database which could also just be dropped onto a file share! When I got back to the office I told Karl Parker my idea and he vetoed it. We ended up building the app the right way in .NET and then there was a bunch of drama and heartache in the name of getting IT involved to roll it out. And yet, I am proud of my ability to hack as exemplified here and I also wonder if this sort of hacking can't just be done at Windowland LANs today. Could you set up a rouge intranet site at your work with Classic ASP as the engine? What's in the way per se? Will this get me the ten at Black Hat I crave?