Saturday, September 28, 2013

[coding] The Data Layer


Sink or Swim

After hearing about how hard it is to start a business, I have been looking for that thing that would make the business hard.  I mean, dealing with people that can't work together was hard but I've basically solved that.  I'm talking about the thing that could make the business fail.  And I've found it:  the data layer is going to cost money.

At first they wanted $5,000 a month, which wasn't going to happen mostly because for that price I could just implement my own crappy nosql service on top of mysql and I'd still be better off.  Or I could use an Amazon service.  I mean, whatever.  After voicing my concerns to them, they dropped the price down to something I won't choke on.  Given that they are willing to make changes to their software so that I can use it without creating a separate web service to handle the parts they didn't have...I think this is the best option.  Unfortunately, this means we are still going to be burning a ton of cash every month.

All of this would actually still be fine, however they want me to sign a contract before they implement the changes I need, and I need those changes to finish the beta version, and I need the beta version to find out if even a single customer wants this software, and I need to know if anyone even wants this software before I commit thousands of dollars to a data layer contract.

So, maybe we'll have to change the "beta test" milestone to some kind of demo.

I still very much regret starting with an iOS version.  We are fucked on iOS.  What we should have done is create an android version.  This android version would be special, because if it detects that it was not downloaded from some lame app store like google play, it would let people sign up for a subscription via the app.  We could just hand out test devices to spas for a trial period and we wouldn't even need a website.





Perspective

A long time ago I posted this hilarious video making fun of fanboys.  Fanboys come in all types...language fanboys, architecture fanboys, OS fanboys, game fanboys, etc.  And as the video shows they make great punching bags.

However.

The video is a sort of relational database vs "nosql" database debate, but doesn't actually cover the reasons you would use one versus the other.  Watching it again years later...both characters sound like idiots.  When the relational database guy talks, he feeds us that line about "well we looked at all these databases and..." but that's just a line.  It's a line just like saying "did it hurt when you fell from heaven?" except its something we say in meetings to cockblock the jackass who is looking to make us look bad by pointing out that we should have done more investigation.  I actually have a lot of jackass-blocking lines, and I'd really like to work in a place where I don't have to use them.

So the relational guy never tells us why a relational database is really better for his use case.  Relational databases are slower...sort of.  Relational databases are slower when you are using them to store something that doesn't need to be relational.  For example, if you stored all of your favorite HD movies in a shared mysql database, that would be much slower than a non-relational store.  Databases really are the bottleneck in a large system, so we try to remove them from the picture as much as possible but there are use cases where you still need the locking and strong consistency of a database.  So did the cow guy actually need a relational database?  No one will ever know.

I think the same guy posted another video that was basically passive aggressively crying about being on some project where shitty programmers replaced a fast php website with a slow, poorly implemented ruby one.  It sounded like a small company where the entry level programmers and the CTO would be in the same meeting.  In their defense, php is ass-ugly.

Tuesday, September 24, 2013

Friday, September 20, 2013

My Car was Raped, Part 5

And now, the final conclusion to the tale of why I will never have loose objects in my car again.  And also why I need to start checking my damn credit report weekly, and probably put of opening any new accounts even though I just found a reddit thread which invigorated my desire to move all my credit cards to credit unions (fun fact:  the only credit union I know of that lets you have a credit card with them, and lets you pay that credit card with an external checking account in a single action and without being a dick about it, is USAA.  Please tell me if you find others.  Everyone else I've tried makes you do an "external transfer," wait for 3 days, and then log in again to pay off the card).

So.

I went to the DMV yesterday.  Then I went to the other DMV, because the first one I went to only did driver licensing, and the second one only did vehicle licensing.  Whatever.  The person who stole my documents had a reason, and I hate them, so I'll visit every fucking DMV in the city if I have to.

I got a new registration, and I also told them I wanted new plates, hoping that will fuck up whatever scheme that shitfucker has planned.  Hmm...maybe I should call my insurance company and ask when the last time "I" contacted them regarding my account?  Anyway...they just handed me new plates.  They didn't even argue with me.  I had no idea they were so fucking efficient (or friendly!).  They just had these stacks of fucking license plates there, and they took a set, and give them to me, and it was done.  I've never seen any government agency act with such incredible efficiency.  In fact, I was expecting to spend weeks waiting for my new plates to arrive, which is why I only had a motorcycle and no backpack.  I actually had to walk across the parking lot to the climbing gym, buy a $2 practice rope, and lash the plates onto the back of my bike.



I think I did a damn good job, actually.  The really interesting part how I learned to tie those knots.

Thursday, September 19, 2013

Amazon, Sucks a Bag of Dicks

One of the largest bonuses to using Amazon Video was that it worked in any browser.  Netflix required this Silverlight bullshit, which meant that despite whatever platforms it allegedly runs on, its not going to run on any linux or apple box I own.  So if I want to curl up in bed with my airbook thingy and watch a movie, I have to watch something on Amazon.

Until now.

You were supposed to read "until now" in that deep voice that is always used in movie previews.  Go back and do it.  I'll wait.  Anyway, I tried to buy the latest season of Mythbusters and was told I would need Silverlight.  I've actually purchased a number of movies on Amazon because it seemed more free and could work in any HTML5 browser.  Now, the value of my little movie collection I assembled there just dropped by more than half.

Fuck you, Amazon.

Ergo, Put.io.  I intend to make use of this service.  What I'd really like to do is only use it to download things that netflix doesn't have, or that I happened to feel like watching on amazon when I using a mac/linux computer, etc.  I think it would be cool if we could get a movement going, where people who torrent would classify media in categories like this:

1.  GREEN:  A movie that is not available to stream on Netflix, Hulu, or Amazon (rent-only counts as not available on Amazon).  Physical services, and lame-ass streaming services run by the monopolies and content owners (Red Box, AMC, Comcast, MLB) don't count.  Torrent and seed as much as you can. Paint the streets with free pirated DVDs of this type of content.

2.  YELLOW:  the movie is sort of available, but the content owners (the "assholes") are being assholes about it.  This is a gray area that I don't have a good definition for.

3.  RED:  the movie is available on Netflix, or is one of the free videos you get with Amazon Prime or Hulu Plus.  You're kind of a dick for pirating this movie.  Maybe torrent it, but seriously consider if you should maybe pay money in some form, even if you are just buying one version on Amazon just to make it ethical to also torrent onto your myth TV box.  Obviously if you own the movie in any kind of physical form--DVD, laserdisc, VHS, Betamax--then pirating it is perfectly ethical.

Now, I think that if all netziens everywhere followed that model, it would put market pressure on the content owners to stop being dickwads and let us buy digital content without also trying to control us.  I'm skeptical that enough people would follow this.  I am starting to wonder if most of the people torrent-ing simply don't want to pay for things.

Wednesday, September 18, 2013

My Car was Raped, Part 4

So apparently the apartment manager did get back to me, via text message, and I the forwarding number I give out to businesses (like Comcast, etc) doesn't support texts.

I have the backpack.  Turns out, a few more items were missing than I realized:
  • 1 M$ rain jacket
  • blanket
  • mechanic gloves
  • bag of carabiners
  • 1 sweaty athletic shirt that I may not wear again
  • another athletic shirt
  • sock
  • sock
  • underwear.  THIS event is now creepy.
  • camelback water thingy
  • deodorant i'll never use
  • red bull
  • skull thingy which does not belong to me
  • garage clicker!
  • scotch tape
  • food I'll never eat
  • schedule for bus 33
  • receipts
  • more deodorant
  • GPS
  • wires
MOTHER FUCKING CUNT my insurance and reg are not here.

Tuesday, September 17, 2013

My Car was Raped, Part 3

The manager at my apartment has suddenly became scarce that we need to arrange getting my stuff back to me.  I have a few ideas.  The first one was his:

1. she gives my stuff to the apartment manager, and he gives it to me
2. he gives her my contact info
3. he gives me her contact info

Its really...I am so close to having my stuff back.  But not he seems like he is not answering my emails now.  I am thinking about just going to the DMV to get a new registration after all.

Monday, September 16, 2013

My Car was Raped, Part 2

The apartment manager just called me.  My backpack, including the garage clicker and my insurance and registration, was found in some girl's car a few days ago.  The reason they didn't contact me is all of my stuff has my P.O. box on it.  So the thief broke into my car, took a bunch of shit out, then broke into another car, and put my shit in there.

I'm assuming they got interrupted.

I am pretty fucking happy right now.  I was about to go into the DMV and try to convince them to give me a new license plate, new tabs, new driver's license...the works.  I'd even ask for a new VIN if that was possible.  I actually had an enormous list of things to do, including building an enormous lego building in my apartment and hiding my safe inside...that one I might still do.  However, now it looks like the thief doesn't even have all that.

Also, for the record, my apartment manager seems competent.  He told me some of the steps he's been taking to reduce theft, so even though I live in a shitty apartment, the manager currently cares, and that is pretty helpful.