It moves!

I’m building a RCPowers Extra 300S and a couple of days ago it moved by itself for the first time:

So exciting! There’s still a lot of work to do, I hope it’ll be flying this weekend (if the weather allows it).

Posted in other | Tagged , , , , , | Leave a comment

RadioControlPedia

I’m tired that there are no canonical URLs for most products, materials, systems, etc. regarding to radio control. The vendors do a very poor job of having an online presence. Some seem not to have a web site at all and the ones that do have very poor URLs, very poor data (old articles get removed) or very poor websites (frames, javascript, no way to deep-link).

Sometimes the best information is provided by the retailers, which is already wrong, but the real issue is that when retailers are not selling something anymore, they remove the product from the public page, and the information gets lost.

I’ve decided to fix the problem so I’ve created the RadioControlPedia. A wiki for RadioControl were articles will always stay and stay at the same URL. Over time it’ll have more and more information.

Posted in announcement | Leave a comment

.gitignore

I’m launching a new site:

gitignore.com

For now it’s just a blog, but the final goal is different:

Every time I start a new project I hesitate to make the first commit: what should I commit and what shouldn’t I? Essentially, what should I put on .gitignore.

The goal of this site is to collet snippet of .gitignore that one should use depending on what framework, software, libraries, etc. are being used. I’ll try to put the ones I’ll know, but please, if you know any, send me an email to pupeno@pupeno.com and I’ll publish (with attribution).

My final goal is to develop a small web application with a list of the frameworks (as checkboxes or something) from which you can pick and it’ll build the .gitignore. But I’ll only do it if this site gathers enough information.

Posted in announcement | Tagged , | Leave a comment

My first contribution to Rails

Looking forward to many others.

Posted in announcement | Tagged , | Leave a comment

Thanks for your contribution to the NetBeans 6.9

When I write software, bug reports and feature requests are a blessing. It shows me that people is using it and want more. Silence is death. It’s nice to see an software project show appreciation for bug reports and I’m honestly impressed:

Dear NetBeans User,

In the past you have taken the time to report issues that you encountered while using NetBeans software. A new version (NetBeans 6.9) has just been released,and we’d like to inform you that the following issue(s) you reported have been addressed in the new release:

181509 Dot paths not available when adding new platform in Ruby Platform Manager
181766 Gem directories picked wrongly
181844 Search for RVM installations

Please visit the netbeans.org website to download NetBeans 6.9 and to learn more about the new release.

We appreciate your contribution to our efforts to make NetBeans software and features better for all users. And as always, we look forward to feedback from you about ways we can continue to improve.Thank you.

The NetBeans Team

Posted in other | Tagged | Leave a comment

If I were in charge of Adobe

Clearly, Adobe is losing the battle with Apple. There’s no Flash on the iPhone, iPod Touch and iPad and there’s no sign that there will ever be.

Apple is not a company that can be easily influenced. They do things the way they think is right even when everybody else disagrees. Even when everybody predicts is going to cost sales. They’ve been doing it for more than 10 years and it’s working very well for them, they are not going to stop now. For Adobe, Apple is a lost cause.

I actually dislike both companies. Apple is building an extremely proprietary environment. They are much worst than Microsoft. Apple’s tax not only includes the operating system, it also includes every third party application. Not only they get a part of everybody’s cake, they decide who have cake and who doesn’t by controlling which applications get approval and which get rejected. If Apple ever dominates the industry, it’ll be the dark ages of computers.

Adobe is not much different with Flash. Flash is a proprietary and it works well on one and only one platform; if it does at all. Everybody else is left out. Flash has been making the web inaccessible for ages. I would be very glad if we can get rid of Flash.

If I were in charge of Adobe I would do something that would help the company remain a leader on the web and at the same time make Flash good: open source it.

I never understood why Adobe hasn’t open sourced Flash already. The specs are more or less open, there are alternative implementations, and they are not making any money by selling Flash. They make money by selling the tools to build Flash web sites and that’s not going to stop if they make Flash itself open source.

Before or while open sourcing I would make agreements with two companies: Google and HP. Make sure Flash is going to be included in Android, Chrome OS and Web OS. I would also put those phones and tablets in the hand of my developers (that is, Adobe’s), for free, as a gift, with the goal of making the Flash experience is absolutely thrilling.

I think that is Flash’s only hope.

Posted in idea | Tagged , , , , | Leave a comment

Really resetting the database

When I start coding a Ruby on Rails project, I find myself modifying the migration files over and over. I know this is not the way they were intended to use, but to avoid upfront design, I only ad fields when I need them. If I respected the way migrations were intended I would end up with hundred of migrations the first day and I would waste half my day just creating migrations.

After a project is deployed or a second developer is working on it, I revert to the way migrations are intended and I create a new one every time there’s a change I need in the database.

As migrations are intended to run only once, if you modify them, they won’t get run; and if you force them to run them, they’ll fail, because the database already contains such a table. So I’ve found myself doing this quite often:

rake db:drop && rake db:create && rake db:migrate && rake db:seed && rake db:data

db:data is a task I created to generate some sample data. Good known data that I can use to test the site locally. I’m using Factory Girl to create it, which I also use for the tests so I can re-use as much data creating logic as possible. It’s very good to get to a known state of the project you are developing and to get other developers started right away. I really recommend everyone doing it.

The problem is that I also need to reset my test data, so I end up having this other command and it gets horrible:

RAILS_ENV=test rake db:drop && RAILS_ENV=test rake db:create && RAILS_ENV=test rake db:migrate && RAILS_ENV=test rake db:seed

Note: no db:data this time.

I’ve got tired of re-writing these commands or trying to find them in my bash history, so I decided to write a Ruby task that will do it for me and here it is in case you want to use it too:

namespace :db do
  desc "Crush and burn the database"
  task :hard_reset => :environment do
    File.delete("db/schema.rb")
    Rake::Task["db:drop"].execute
    Rake::Task["db:create"].execute
    Rake::Task["db:migrate"].execute
    Rake::Task["db:seed"].execute
    if !Rails.env.test?
      Rake::Task["db:data"].execute
    end
  end

  desc "Generate sample data for developing"
  task :data => :environment do
    # Create the sample data in here
  end
end

Enjoy!

Posted in tutorial | Tagged , , , , , | 1 Comment

iPad, the good and the bad

I consider the iPad a very negative force. Apple is taking the close system of iPhone and moving it up to tablets. What’s the next move? Desktops? That’s very scary! Imagine a world where Steve Jobs is the final word on which programs people can and can’t run. If that happens, the dark ages of computers will have started, and who knows how long they’ll last.

Now there’s a very good side effect to the iPad. People is starting to spend a lot of time on non-Windows computers. No, this is not a rant against Microsoft.

There was a time when we had many operating systems and people use to choose. Different machines came with different operating systems. Then Microsoft dominated the market and there was one and only one operating system. For a time there was even only one browser. That hinders innovation.

Microsoft Windows obviously failed on phones and tablets. Apple, first with the iPhone and now with the iPad, opened those markets. Now people is talking about how great WebOS (Palm’s operating system) would be on a tablet (made by HP). Nobody would have though of a non-Windows tablet if Apple haven’t done it before. Also Android tablets are coming. Microsoft is rebooting its phone efforts, without Windows this time; and maybe they’ll reboot their tablet efforts too. At any rate Microsoft won’t dominate that market and certainly not Windows.

The only company capable of dominating phones and tablets is Apple; and they are not set to dominate it. Apple makes one and only one product, with no variations. If you want something different (a USB port, a memory card reader, a camera, porn, a cheaper product, whatever) you go to a competitor. Apple makes a lot of money by making the luxury products, not by selling it to everybody.

I think it’s going to be a lot of fun to watch a very competitive market where four players are so will be constantly innovating trying to win users over.

Posted in other | Tagged , , , , , , , | Leave a comment

Relentlessly resourceful

Paul Graham says that startup founders should be relentlessly resourceful. Well, the other day I needed a charger for my Sony PRS505, which was so empty that the USB plug wouldn’t charge it.

We went through a big box of charges and none matched the voltage of the ebook reader. Well, there was one that matched it, but I needed a car to plug it in.

In the box there was also a 12V charger. I grew up with McGyver, so a couple of wires and some tape latter I got it charging.

Relentlessly resourceful!

Posted in other | Leave a comment

LEGO!

After watching AFOL A Blocumentary I got obsesed about LEGO. I couldn’t stop thinking about it for a week, so I gave in and I bought some.

AFOL A Blocumentary from AFOL on Vimeo.

My style is technic, so I went and I bought the LEGO Technic Crane Truck (8258). Here’s a picture of it finished (holding an easter bunny):

I’m surprised how much it changed. Being a Mechano fan, I welcome the changes (more pins, more strength). I’ve also ordered some assorted pieces on eBay. I just finished cleaning and disinfecting the first batch and I’m excited about this pieces.

Only one of those was already known by me (hey! I’m a beginner here) and I can’t wait to use them.

Posted in other | Tagged , | 1 Comment