Starting to get comfortable with linux

Ran a rake routes | grep 'brand' command at work today. Didn't bother to look it up, just typed it out and it worked. Boom! Finally, one piece of basic linux competency learned, and it only took me 14 years! Woo!

Published on 21 October 2017 at 00h23 by Dave, tags , ,

Loop holes

Received this feedback today: "Refactored your refactor cause there were some loop holes"(sic)

Ok, buddy. I haven't been told there were holes in my logic since my first semester programming class in college, but let's take a look at what you found. Looked it up and there weren't any holes in the logic, he just wanted the logic moved from the subclass into the base class. Got it, not sure why he didn't just say it that way. It's a reasonable refactor, but my logic was flawless the way it was.

Addendum: Was working on some code at work that's been in production for 3 years (I've been there less than 5 months) that was dropping records from a parsed file. No one noticed, no client complained, I just had to deal with it for an upgrade. Had to trace the logic out and found out that the logic was bad. You want to complain about my logic? Noted.

Published on 09 October 2017 at 20h20 by Dave, tags ,

Dumb Little Tasks

When discussing losing weight on a podcast I listen to, Shop Talk, one of the co-hosts mentioned that people generally recommend a food log, and the other responded: "My whole life is dumb little tasks like this, like I need one more." If that doesn't describe my whole life I don't know what does. That's the stuff I need to find and automate instead of piling more on.

Published on 28 August 2017 at 21h23 by Dave, tags ,

No data mining allowed on facebook?

A friend of mine started a private facebook group for personal finance discussions, with the caveat that the group isn't to be used for marketing products, "business opportunities" (i.e. MLM), data mining, or recruiting. Heh, no data mining? I'm not sure you understand how facebook works. I know it's not what she meant, but it made me laugh. I joined the group anyway.

Published on 27 August 2017 at 06h20 by Dave, tags ,

Who does Lisa Fleisher think is hoarding the wealth?

Just saw this "article" from Bloomberg pop into my news feed on Google Now: We Know Where All The Money Is Hiding

Let me save you the click: this Bloomberg staff writer (I assume) is asserting that retirees are hoarding all the money to get the economy moving because they are spending 8% less than they can comfortably afford. Um, no. If you think that 8% means anything when put against the massive wealth redistribution from the middle class to the upper class over the last 40 years you're either naive or colluding.

This argument is the bullshit designed by the wealthy to keep everyone lower than them on the economic ladder fighting among each other over the scraps leftover from the wealth grab so that they don't realize where the money actually went. Fuck you for pushing this false narrative and fuck you for trying to make retirees look bad. Most of those people are on inadequate fixed incomes until they die and they have no idea how long that will be so they need to stretch their savings out for an indefinite length of time.

Literally the only leg your argument has to stand on its that *some* of the retirees are obscenely wealthy and they fit into the group that's actually crippling middle class growth, but you've segmented poorly which makes your argument lose credibility to anyone that's even glanced at this issue.

Published on 20 May 2017 at 07h38 by Dave, tags ,

Wrote my first Slack Slash Command!

I'm surprised at how easy it was to do. I went into the slack web interface and created an app through there and enabled the slash commands, then added a new slash command that posts to an API end-point. I wrote an API end-point in my application at work to return a JSON with the different AB tests we have on production for each of our web sites recently so I wanted to point to that. I used {"code":"200", "message":"24,145,146"} as the return but Slack uses "text" instead of "message" so I added a new endpoint that called the same function but with a 'slack' flag and if the flag is true it writes the output to "text" instead of "message" and then slack dumps that into the channel when it receives the slash command. I went back into the web interface and installed the app to the team. Super easy to do and now my front-end team that doesn't have access to the application but constantly needs to know which tests are on production have a simple way to get it without asking me! Empowering users, and saving my time. I like it!

Published on 05 May 2017 at 16h53 by Dave, tags , ,

Those spotlight photos on the login screen on Windows 10 highlight some really beautiful places on the globe...

... but seeing them makes me sad that I'm where I am instead of somewhere more beautiful. It's a weird feeling, because I love where I live and it's a vacation destination in its own right, but most days I'm not in the vacation parts of it. I'm in the concrete jungle part of it, and it just doesn't compare. I think I'm feeling a little bit of "the grass is always greener" though. I really do love it here. Thanks for the existential crisis, Microsoft.

Published on 03 May 2017 at 08h04 by Dave, tags ,

Powered by Publify | Photo Startup stock photos