Get NISE! Remember what should be a get requests

so in the world of routes I sometimes get lost in what should do what so I came up with this silly acronym to help me remember what should be get request:

get NISE

N: new ‘/pigeon/new’

Screen Shot 2015-06-07 at 12.23.06 AM

I: index ‘/pigeons’

Screen Shot 2015-06-07 at 12.22.48 AM

S: show ‘/pigeon/1’

Screen Shot 2015-06-07 at 12.22.14 AM

E: edit ‘/pigeon/1/edit’

Screen Shot 2015-06-07 at 12.23.50 AM


I hope this helps some people.


I made a App… again!

So I have been working on this really cool idea for a app ever since Tim Holman came to speak to my class. I created a working prototype of my App. What the App does is gets the user latitude and longitude using the geolocator gem.

Screen Shot 2015-06-03 at 3.17.01 PM

After the app has your latitude and longitude it can now use the forecast io api to get the weather from where the user is based on the lat and long.

Screen Shot 2015-06-03 at 3.24.12 PM

This information is in a JSON that the application can now parse for all the goodies needed to give . With those goodies the app can find a relevant picture for a hash that I created with urls of images related to that weather and make a call to the gify api to find a nice gif to boot.

Screen Shot 2015-06-03 at 3.27.59 PM

Then on the rendered html the background is sent to the back and the gify is embedded in day’s description using Tim’s Giflinks.

Screen Shot 2015-06-03 at 11.01.39 AM

Git yo Stuff on Heroku

So I just deployed my first rails project Anime Chase on Heroku and I still am a surprised at how easy it was but I see many have yet to put their awesome projects on Heroku. I decided to write this post to understand the progress a little better of posting apps to heroku and to help my fellow, fellows in the journey of showing off what they worked so hard on last week.

So getting your stuff on Heroku is broken into about 6 steps and it feel very simliar to using git.

1. Sign up for a free Heroku account.

this step is very easy just go to and follow the step in signing up for a free account.

Featured image

2. Create your Heroku app

to do this while in app simply enter on the terminal:

heroku create

Screen Shot 2015-04-15 at 8.07.21 PM

this creates your app as a heroku app putting the heroku.

mines looked like this:

heroku create animechase

This is also what your git config file should look like:

Screen Shot 2015-04-15 at 8.38.25 PM

3. Edit the gemfile if need be. This includes add your more lines if you are using the gem sqlite.

Screen Shot 2015-04-15 at 8.07.38 PM

4. Apply the changes if you edited your gem file in any way with typing this into your terminal:

bundle install --without production

Screen Shot 2015-04-15 at 8.08.05 PM

5. Do all of your migrations, rake tasks, git commit and push to heroku master

git push heroku master

♥ heroku run rake db:migrate

Screen Shot 2015-04-15 at 8.06.55 PM

figaro heroku:set -e production

6. Visit your sit by just typing this into the terminal:

heroku open

Things to note:

If you’d like to edit the app on heroku this is the process:

Screen Shot 2015-04-15 at 8.08.19 PM

If you have a free account be careful of going over the database limits at this moment you can only have 10K rows in your database. I personally had to scale down Anime Chase in order to keep it running on heroku.

understand and inform the api key providers, if need be, of where your app is hosted. I know things like facebook’s oauth would not work if you stated your app lived on localhost:3000 but you are making calls on the heroku domain name.

so if you would like more information on the subject matter read these lovely resources below


Rails Project Day 1: The Birth of Anime Hunt

Featured image

So at Flatiron today we started working on our first week long project in Rails. I was very nervous at the beginning about about the project because we learned rails for maybe two weeks then dove right into the projects. I understand programming and rails, but creating a idea from scratch from methods and arrays; thats still crazy to me!

However, doing my own idea for the project made me feel a lot better about the situation. We are doing a Anime Search program which will search for animes by titles and genres. I always felt as though I was missing out one cool animes that I have not heard of, so I wanted to create a project that would give me recommendations based on genres of anime I would like.

We first modeled the program on how things should flow and work. We learned that the model anime should hold the title description and should have many genres and the genre model should belong to a anime to search by in the future.

FullSizeRender (2)

The first problem we faced in the project was finding a way to gain all of the anime titles with such dated api’s on the inter-webs. Most anime app.s only render xml format to parse. However, after a long search we found a api that is relatively good and renders JSON. We found the Hummingbird api to search animes for our hunt app. Hummingbird takes all of the data from a searched anime on presents them in a readable json format.  This can then be keyed into to create the anime in the database.

# this is the method that all the magic happens

def create

# search_input is the input that the user enters into the search box. the info is than downcased to
@search_input = params[“anime”][“title”].gsub(” “, “-“).downcase

#responce calls on the Unirest which creates a get request to hummingbird version 1 api in which we put the user’s input at the end
@response = Unirest.get “{@search_input}”,

# this gives the ENV api keys that we needed to sign up for in order to use the hummingbird api
“X-Mashape-Key” => ENV[“HUMM_API_KEY”],

this creates the form as json
“Accept” => “application/json”

so then we created a conditional statement that stops if the search turned up a 404 page not found. If the info is found we create a anime in the database then render the show page which shows the page after.
unless @response.headers[:status] == “404 Not Found”
@anime = Anime.create(title: @response.body[“title”],
description: @response.body[“synopsis”],
score: @response.body[“community_rating”],
img_url: @response.body[“cover_image”])
#next i would like to build the genres through the anime here to give them that belongs to table relationship.
render “show”

that is it for now until next time the three people that read my blog.

Playing around with Unity 3D… No wait trying to fix Unity

So I started my coding career in the hopes of making a game one day. In my countless search of finding resources to help me in this journey I found  internships that had many elements of game development, workshops that were really expensive but informative, and online game design courses. I found all of these resources very informative, but one of the elements I found the most consecutive beneficial to me was the online resources this is were I learned most of my game development and programming skills before The Flation School. I don’t normally talk about this as much as I would like but I am really appreciative of The Flatiron School for giving me the opportunity learn code because I would either need to have a lot of money to go to bootcamps for coding or had to have been a woman to learn how to code without going into debt in college.  However, because I did a ton of videos without the foundation of programming I had no idea what I was doing so I went back to the code I wrote for some particular games to understand what is going on now that I have a better understanding of coding.

logo (1) n3-1Z5OV_400x400

So this was still relatively difficult because most of my coding with game was in programming languages like C# and GameSalad which uses a cover language to make objective C easier. one of the methods I would like to go over in this blog because there are a ton that I programmed, but I wanted to show one of the coolest I learned and that would be the explode method in C#. This method is a destructive method that can chain on other behaviors. in this game I chose to spawn piece of the player with the explosion. which creates an effect of the player being blown to pieces. So I would like show a demo of this and talk about it alone with it.

However, in the process of trying to get my demo working for class I realized that there was a major problem with unity’s new editor it could not handle translating old projects. I will finish this blog post when I figure out more on the subject

Screen Shot 2015-04-01 at 12.48.26 AM

Am I Brainwashed? A Responce to Seth Godin’s Manifesto

I was fooled. Fooled into being average and thinking that is ok. I have been brainwashed by society. Just because society doesn’t have room for a million Steve Jobs that think differently. If you remember your mother telling you that you are special, but when you go to school you are grouped in generalized and creativity sterilized. Seth Godin’s book, Linchpin: Are You Indispensable talks about the problem of being a individual in a public educational system that is made to have everyone exiting thinking and acting the same.

What does Seth mean by the title brainwashed? Are you brainwashed?

What I understand from Godin’s ideas of being brainwashed is that we have been programed to become cogs in the machine of society and not to be unique.

What is the function of public education?

What I believe public education’s purpose is, is to give every child the common knowledge to function in society. Now, if these students are good enough they go on to college majoring in something that they are interested in and become more of a individual from there. What has happen now is that everyone needs to have a college degree in order to have a typical job so college has turned into another form of public education in which they are standardized and no one is rewarded for being a individual.

What is art?
Is that act of coming to the Flatiron school your art? Or are you looking for us to draw you a map?

I believe art is any product one has put a ton of labor and passion in; something one would like to share with the world. Art can be anything, a well personalized work desk or even one’s code. I feel as though what I have created in this program my art, not the act of coming to the school.

Why are you here?

I am here at the Flatiron School because I want to learn how to program, but I could not afford nor wanted to go through a formal education. I want to be great and creative in the work world and I feel as though I cannot do that at any position besides coding in this day and age.

What is the resistance?
What does failure mean? How is failure at Flatiron different than what you are used to?

My resistance within this program is just learning enough to become a great coder. Failure for me is not being good enough for a particular field. Failure at Flatiron for me would be soul crushing it is something that would make me a dark sadder failure in life. This is why at this moment The Flatiron School is my life at this moment.

A Talk With a Flatiron Alum

I spoke with my Flatiron School mentor on Monday and it was truly an eye opening experience. My mentor’s name is Daniel Spector. He went from working as an accountant to becoming a coder from the Flatiron School.  He now works at Lifebooker, a company which is basically a Groupon for beauty deals. I did not know what to think of a mentor meeting so I was a nerd and created questions for the occasion.

My first question was what was his coding background before Flatiron Daniel had zero coding experience all he did was a little HTML for his job. He did went to a lot of meet ups like the NYC.rb meets ups to learn about coding. He actually off handedly mentioned that he got his job offer from Lifebooker from a connection he met a the meet up, so go to meet ups.

I then proceeded to ask him what were the first could of days like at his job and his response was very eye opening! Apparently, at most junior developer positions you actually are not expected to know anything for the first couple of months. naturally I can understand this from starting new positions in my life but the entry level buffer for positions I been a part of have been around two to three weeks to get on board with the program or get out. In school we learn simply complexity with our one hundred to one thousand line applications. In companies, one would be working with programs with million lines of code and that would take some time to learn and get use to.

At that point in the talk, I asked generally basic questions about his job and the tech field, but I then turned it to a serious topic for a moment and asked him about his experience with diversity in the tech field. naturally I knew the answer. We need more multiracial eyes, thought, and code in tech but I wanted to see what he wold say about the matter. He got a bit more serious and uncomfortable  and talked about sure hoping for a difference because it is needed.

I then asked him about his future aspirations in the world of coding and he answered with the hopes of becoming a senior designer one day and basically told me that I should do the same once I am in a position. He does a lot of side learning outside of the job and basically does this first because one should never stop learning as a programmer, but he also constantly learns because he knows that the more he learns the faster he will reach the goal of being a senior developer. I really resonate with this thought process because this is how a ambitious coder should behave especially if they are a minority in their field.

So then I asked him for advice, he just said don’t freakout. He freaked out a ton coming into the program with no experience freaked out when it came to finding a job and he wish some one told him to not freakout he would get it, he would get a job and etc. so he just told me to not freakout.

I can’t wait to meet with again. I will be meeting him before he heads off to present at Ruby Con in April about Javascript with Ruby.

So…. I know that was not too technical so I will give you my method of the week!!!

This week it goes to… Partiton string method!

The Partition method splits a string into an array based on where you set the argument.

partition(sep) → [head, sep, tail]
partition(regexp) → [head, match, tail]

Searches sep or pattern (regexp) in the string and returns the part before it, the match, and the part after it. If it is not found, returns two empty strings and str.

"hello".partition("l")         #=> ["he", "l", "lo"]
"hello".partition("x")         #=> ["hello", "", ""]
"hello".partition(/.l/)        #=> ["h", "el", "lo"]