Ramiro Franco

Educating Portland

Written on Thursday May 30, 2013 at 3:48 p.m.

Yesterday I ventured out for lunch with Dave and Kevin to meet a promising young man named (Jackson Gariety)[http://jacksongariety.com]. We had no real expectations or requests, just wanted an opportunity to pick his brain and maybe get his perspective on a couple of things.

We first talked about his ambitious and promising entrepreneurial goals, we talked about his educational goals, and then we talked about his experience teaching a programming class at his school, to a class of only eleven students even though one-hundred-and-fifty or so had applied, because those were all the computers the school could muster for the course.

That last snippet rejuvenated my concern for the Portland education system. I feel high school is an important part of education for most people, so that they have a good rounded introduction to several subjects ( and at least some grasp of world history ) before entering college. It seemed however, that what high school should be, is far from what it actually is at the moment.

I know I can't change things all by myself, but I can certainly help raise awareness of how bad things are. So I intend to.

I was also inspired to start up my own mentoring / beginner programming workshop oriented toward youth again. I have the space, it's just a matter of organizing it and making the time at this point.

Months Later.

Written on Tuesday January 22, 2013 at 12:49 a.m.

It's been roughly a million months since my last update, despite my repeated announcements that I would in fact, keep things up to date.

The main culprit behind it has been my work. I'm not complaining mind you, I enjoy what I do, I just haven't had any time to myself really in months, and what little I have had, I've tried to spend away from any computers.

I think I'm finally ready to spend some of my downtime on my sites and projects again though, I've even taken a couple of contracts back up.

I'm going to pick up a copy of Pikmin 2 for the Wii today, and I'm excited to replay that on the Wii U. I can't tell if it's true or not that upscaling applies, but it certainly seemed that way when I went through the first Pikmin title, and this will get me caught up and ready to enjoy the third.

Inline-block-parents Are Terrible.

Written on Wednesday August 22, 2012 at 9:41 p.m.

I recently ran into this strange "jitter" with elements animated by jQuery, and searching for the culprit I found that a parent element set to inline-block in order to auto-adjust the width to the content was the source of my problem.

Normally, I don't really see an issue with people using inline-blocks for parent elements ( despite the title), though I'm not particular for it when a block is not really meant to be displayed inline but as a document-container.

In this situation it was causing some visually jarring problems in animation, but we still needed the block to expand to the size of the content dynamically.

I of course turned to more jQuery / JavaScript (CoffeeScript) for a solution, and found a pretty simple one:

This does a fantastic thing where, we find out what the size of the block turns out to be for its particular instance, and we just set it manually before switching it to a block. No flicker, or fuss, just a super easy solution. If only that were the case more often.

Getting Friendly with Ubuntu VMs + OSX Hosts

Written on Tuesday August 7, 2012 at 5:47 a.m.

I can't tell you how many countless times I've setup Ubuntu VMs for development, but I've only for the last couple of years done so on a linux host. This whole time I've been setting up /etc/hosts (frequently) because I couldn't find a great way to get hostnames working between the two. Well, the following snippet will get you everything you need to get the two talking over Bonjour:

Simple enough right? You can test this out by typing trying:

Where guest is the hostname for your guest machine.

Appending Parent and Child Views Using Ember After Dom Ready

Written on Sunday July 22, 2012 at 7:04 a.m.

For some reason I can't seem to find any guides on how to implement new views in Ember after the dom is loaded. You'd think that this would be a pretty frequent task for people aggregating their data without using the ember-data thing. At this point, I've figured it out so I decided to write a few quick samples to help other people get this relatively easy task accomplished. Please note, these samples are all in CoffeeScript, you'll have to translate to javascript as necessary.

First off, setup your Container. I like to set this right after my app to make sure it's available:

This will attach the main ember container to your content, simple enough right?

Next we'll want to create a view for whatever object / array we have going for us. Personally I love using the Ember Array controllers, which we won't go into detail here, but are super useful for collections. Also, you'll want to make sure your view is already setup. I like using the ember-rails gem because it makes sprocket integration easy. So we setup our super simple view:

Now we've got our parent container, and our view, how do we make it appear? Well, I ended up handling this with my controller, so in my controller I have this tidbit:

Now it's up to you to find out where and how you want to execute that, I'm doing it after loading my data successfully.

That's it! that should get your child view to load in parent container in Ember. I know there's bits and pieces left out ( especially data handling ), but I figure most people these days are probably handling data in Ember their own way, but if you want help on that, just let me know!