An Examination of Optimization of Numpy’s Linear Algebra Functionalities
Latest post on Medium

gracie abrams
Misplaced Lens Cap
Interview Vampire Daily
$LAYYYTER
Sade Olutola
NASA
hello vonnie

bliss lane

#extradirty
The Bowery Presents
RMH

if i look back, i am lost
todays bird
EXPECTATIONS

Origami Around
Cosmic Funnies
untitled

❣ Chile in a Photography ❣
Monterey Bay Aquarium
sheepfilms
seen from Malaysia
seen from United States
seen from United States
seen from United States
seen from United States
seen from United States
seen from Pakistan

seen from United States
seen from Australia
seen from Brazil
seen from Brazil
seen from Brazil
seen from United States
seen from United States
seen from Pakistan
seen from United States
seen from United States
seen from United States
seen from United States

seen from United States
@rhgraysonii
An Examination of Optimization of Numpy’s Linear Algebra Functionalities
Latest post on Medium
A simple explanation
Why I Program
Get Around Using S3 for pg_dump Restores in Postgresql
I recently had to restore from a dump of a Postgres server for an application I was building. However, S3 (the preferred provider of files for heroku) kept timing out when I would upload this dump (it was around 90mb). So, I went to dropbox, thinking its direct link (in the format of https://www.dropbox.com/you/my.dump) would work in the Heroku command.
This, however, was not true. I was getting an error. Specifically, one saying I was trying to upload HTML content upon reading my logs. So, I figured this out. Instead of running
heroku pgbackups:restore DATABASE 'https://www.dropbox.com/me/my.dump
I got the exact get request from the download link after downloading the file in my browser (monotonous, I know). It results in something like this:
heroku pgbackups:restore DATABASE 'https://dl-web.dropbox.com/get/my.dump?_subject_uid=27342527&w=FFD8rk1Kdyr48qERjgnd0AbA5QxTOL7ho2GOcRVlxgroiwQ&dl=1'
Obviously I changed my UID and such, but you get the picture. So there you have it, now you can run a restore from that dump clean using dropbox over s3.
Interesting Ruby Error
>> ((1-0).to_f / 0.to_f) => Infinity >> ((1-0)/0) !! #<ZeroDivisionError: divided by 0>
Via Geesu
A Note For Amtrak
As you may know if you are one of the folks who frequent this blog, I am writing two free and open source books. They are Clojure: From Zero to Deploy and A Fun Introduction to Meteor.js.
Amtrak recently announced a pilot program where writers can take long round trips for the purpose of writing the entire time on the train. I had actually already planned to do this from Cincinnati to LA on my own. I am hoping maybe they'll cut me in on this awesome deal and I can get the cheaper/freebie ride.
Either way I'll be doing it on my own come April, or maybe sooner if they get back to me. Feel free to tweet this out or share and hopefully I can get their attention. I'd love to push open source/free educational content and market for the open source community in general to get the word out on projects like mine.
Cheers,
Bobby
Why Ruby?
all_3_letter_word_combos = [('a'..'z').to_a, ('aa'..'zz').to_a, ('aaa'..'zzz').to_a].flatten! puts all_3_letter_word_combos
vs.
var alphabet = "abcdefghijklmnopqrstuvwxyz"; ); var query = from a in alphabet from b in alphabet from c in alphabet select "" + a + b + c; foreach (var item in query) { Console.WriteLine(item); }
Hyper Productive Testing in Rails
You should be testing your code.
However, you're an awesome developer. The apple of Lisp's eye. The super-productive machine that intakes caffeine and outputs software. Sweet. You already are testing, then. Well lets make it even easier to test. The specific pieces we will be using give us some hella cool stuff to work with. We will be able to:
Have pages live reload anytime we make a change to the styling or view
Have our specs run automatically when changes and/or committed
Allow a tag to run only one test or a specific scattered group of them through the codebase for faster runs
Have our stylization forced upon us while coding it live, resulting in better Ruby
Not even have to try much to accomplish all of this
Sounds awesome, right? Meteor.js esque live reloads, automatic specs running, focus on specific ones so the suite doesn't take forever to give you your precious green dots, and we will be writing prettier, proper Ruby the entire time.
Why are you a jerk?
"I've never claimed to be more than a nice guy and an athlete" -HST. I'm no jerk, man.
Ember.js: Loading Screens Made Easy
About Ember Loading
Ember is a wonderful little frontend framework. It is simple to integrate with rails, offers plug and play ease of use, and in general is eloquently written code (outside of handlebars, which I personally use emblem over, but that is a talk for another day). Ember, like Ruby, also has a metric buttfudgeton of built in methods and actions that allow you to do things easily.
The Ember docs reference the error and loading substates directly, but I have not seen many tutorials that dive into the topic. The concept, however, is very easily implemented. The docs go over it here if you would like to read in directly, but here is a simple tutorial that will go over how to do it in rails and a standard ember app both.
How it works
When Ember is switching states using one of it's controllers, no matter what the controller currently being used a promise is generated in the exchange. If this promise takes too long to have a response made to it, Ember has a built in loading substate. What this allows is the implementation of a simple loading template that will automatically be rendered. Awesome, right? Plug and play loading screen that can be implemented with the addition of one file. '
Javascript Trends, Rails, and the Big Picture
Ruby on Rails is amazing, and everyone is happy.
I honestly can't think of a way to ask for something better. It is so plug and play platforms as massive as Github and as small as Penflip have been launched with it and flourish. Yes, you need to scale it eventually, no it does not do this perfectly. But I'll be damned if it isn't the most eloquent and simple way to prototype an application that can handle being production. A quick look at many blogs, twitter, trends in startups, and other general indicators of the technical worlds happenings will quickly reveal one thing: JavaScript is really popular. Like, REALLY popular right now. Hipster chic in Portland level popular.
What the hell does all this mean anyways?
Well, for one thing. I hope you know JavaScript. Any web developer who previously had been in another stack has almost definitely felt its slow, trickling grasp come there way. And not just the jQuery. Redoing UI's in JavaScript frontend MVC's, building entire applications on top of a platform like Firebase that allow you to have persistence without a true DB. Many have danced, a few have sung, and just about as many probably whined. Programmers have strong opinions. A language you cannot properly handle date and time without a library being added extraneously is quite impractical, or even insane to most; though it is quite doable to make JS eloquent. Especially with tools like CoffeeScript (which I refuse to refer to as its own language. But we won't even have the debate). So what's right? What's wrong? What's going to happen? I think "a lot" is the proper response.
ROBOTS OR DINOSAURS?
I need context here. Are they fighting? Am I owning one? Choosing to coexist with one? Far too ambiguous. Clarify for me here.
I've been a *REAL* Developer since 2pm on Friday...These are my initial thoughts.
I still feel like I don't know what I'm doing. But I do know I absolutely love it.
That, of course, is not to say I don't feel qualified. I think this is a feeling essential to exist in a good developer. You can never be done. Your product is never good enough. Your code is never good enough. Hubris leads to things such as Windows ME.
*shudder*'
So how in the hell did I actually end up here?
Well, it started with Epicodus. When I decided to drop out of college and go for a boot camp I had a very clear line of reasoning:
I was in college and taking a physics curriculum. I had a hobby of refusing to even show up for any class that was not math or physics. Smart guy right? I quickly realized I was essentially throwing away large sums of money, and only wanted to continue in academia and end up with a PhD then shrug my shoulders and hope being a "doctor of physics" would pay my bills or something. This was very questionable on a long term economic basis. Sitcom physicists such as Sheldon Cooper can live in the Bay Area in swanky apartments, but I feel this is a manifestation of a friendly set being conducive to a television show being well received rather than an accurate socioeconomic reflection of real estate pricing in SF.
TDD: Feynman Endorsed, With a Proven Track Record
A Setup:
I have always been helplessly intrigued by the man known as Richard Feynman. My initial foray into this curious character's work, like many, was one I will never forget. It was 8th grade, I was just getting into 'tech' culture, my first attempts at running Linux were recently successful having gotten Ubuntu 6.06 to run on my home desktop (I requested the free discs online, which to this day is one of the best favors anyone has done me. But that's another story), and TechTV had not yet been ruined by Comcast. It was a wonderful time for me, fantasizing about WarSpying, WarDriving, hacking Windows Components into a Mac Mini after Kevin Rose did the same, and other projects of the 'hacker' ethos that took over my rebellious minds capabilities and lack of stimuli from other sources. On a program known as the Screen Savers, for a reason I can't remember, they referenced a problem of physics:
A fisherman rowing his boat on a very small lake throws his anchor into the water. Does the water level of the lake rise, fall, or stay the same?
This is a classical example of a problem from Feynman's Lectures on Physics and, as many of you know, to a teen just getting into science, technology, and the surrounding world, the answer to this problem is quite fascinating, and at first glance, unintuitive. The water level falls.
But once this introduction came, I was a fiend to find out anything I could from this guy's lectures. I began to read every single one. Now what does Feynman have to do with TDD, programming, or anything relevant to these tangentially?
His Approach.
Big Problems. Simple Answers.
A Note On Progress
As Epicodus wound down I have found little time to continue additions to the book, though other contributions have been made and merge requests accepted. However, I am excited to announce that in the next two hours I will finally be in humble, boring, simple Ohio, and have ample time to continue onward. I am shooting to have the chapters up to completing a trivial application such as a To Do list complete within 2 weeks.
Happy Hacking,
Bobby
Fifth chapter finished!
A Note On Ethics
Today, I was encountered with a somewhat strange situation.
A good friend and coworker of mine, Jason Rodriguez (http://jasonrodriguez.net/) woke up this morning to see he had his first github repo forking ever occur. Exciting, right?!
Well, it turns out that the repo was forked...but then this curious character decided that he should not only copypasta the entirety of the code from several other of jason's repos and load them in his own, called "Javascripts", he also immediately opened a personal domain page in which he stole the entire theme from Jason's personal site (referenced above) and didn't even change the filler text other than subbing out his name for Jason's.
This is just wrong. The entire point of open source is to contribute as a group and grow and gain. If you want a personal page there are 10,000 MIT licensed open templates you could use for free.
If you absolutely need to build a basic rails app Michael Hartl's tutorial will give you all you need.
If you want to fake being a developer of some skill level X to get into a coding bootcamp, you should stop writing code.
I just found it quite strange someone would even attempt this. What is being gained? You cannot fake being a developer. It isn't possible.
Here is this guy's github.
https://github.com/ACMotanya?tab=repositories
javascripting, and youtube TV are both direct copies of what is on Jason's github.
I just have to ask, why?
The tech community prides itself on ingenuity, collaboration, hard work, and forward thinking. This is the opposite of all those things.
So, I guess my point here is really just, "Don't do this." I found it very personally offensive that someone would pull such a ruse.
On Motivation, Open Design, Open Source, and Just Doing It.
Howdy.
I figure a little background may give light to the inspirations, goals, and larger picture ideas of this project. So we're going to have a fun little write up on that topic here.
On Why Bother
I've always been the guy who writes. A lot. Personally I feel a book or other piece of anything that could be roughly interpolated as "art" carries a certain weight that the medium of scientific accomplishment, understanding, and contribution cannot.
If a scientist in Rome and a scientist in Canada both begin vigorous research of the effects of the Cashmir Force they will both yield the same findings. The papers may contain different examples, wording, and other minutia; but the discovery, the mathematical representation of fact in our larger world is a piece that will be universally the same with its input and output for this event.
This is not the case with a book, a film, or a picture. Simply put, a piece of the self ends up in these pieces that cannot be attained in a discovery scientific. I feel this carries a value that is inherently good that I have always sought after personally.
I also love teaching, and experiment. I wanted to do this as a means to teach others while I teach myself (a doubly selfish endeavor due to my own interests, but one with benefits nonetheless.) in order to offer gains in both plains. I also needed a good excuse to use Penflip. That service is just astounding. I cannot believe someone had not done it before.
Penflip