So in my little steps of trying to be fully free (as in beer), I decided to change the map in my Places section from Google Maps to OpenStreetMap. There is a whole table in the OpenStreetMap wiki with many libs you can use to embed OpenStreetMap into a webpage, and add a lot of stuff to it.
The one I picked was the one at the top of the list, called Leaflet, which the authors describe as a library that focuses on performance, usability, simple API, small size and mobile support. In my experience, it was really easy to implement on my site, as well as I just needed something simple: a map with a bunch of markers. There is an easy quick start guide on Leaflet's site, where they use Mapbox for the maps, but if you are like me and want to use OSM, you only need to change the tileLayer to use it, see my example.
It didn't take me more than an hour to have the map with all the markers on it. If you want an alternative solution for embedding maps into your site, you can use this opensource one (:
What up! In this post I will talk about my experiences at my first FOSDEM. FOSDEM (Free and Open source Software Developers' European Meeting) is the biggest open source event in Europe; It is celebrated every year in Brussels. Now that I'm living in Europe, I added that event into my calendar since the moment I knew about it.
My trip there was only possible thanks to Fedora, who sponsored my trip. The first day I arrived, I was confident that I would know how to arrive to the hotel using my phone's GPS, but when I arrived to the train station, Murphy's law came into action and made me be without internet =/, so I asked some policemen at the station and they told me to go in some direction. So I began walking through Brussels until I found out I was somehow lost in the city center. I decided to ask some locals, and when I did, those "locals" were also foreigners coming to FOSDEM, but they were heading to some bar where the preFOSDEM party was going on, so I decided to go with them. There I met a lot of people (and also drank a couple of beers), but what I liked the most was seeing some old friends from the States. After the bar I managed to find my hotel.
The first day at FOSDEM I went directly to the Fedora booth, were I met a lot of european Fedora and Red Hat folks. Between the stuff we brought to the booth, the thing that most attracted people were some 3D printers. And what do 3D printers have to do with Fedora? Well, Fedora has one spin called Fedora 3D printing, where we can find a lot of CAD programs and other design tools to use in regular 3D printers. I was there the first day all the morning helping at the booth. After noon, I went with some friends to give a round at the expo room. There were many FLOSS projects, and what I liked the most: hardware projects. Being an embedded systems guy hardware for me is one of the best things I could see there. That night I went out with the Red Hat guys and I manage to know them more.
The second (and last) day, I was mostly working at the Fedora booth, where I met a lot of people interested in the project, and we also heard some cool stories of them using Fedora. I also went to the Mozilla booth and met a lot of the Mozilla folks. I am also a Mozilla Reps, so meeting them was of great pleasure for me. I discussed with them about different topics, and I really liked seeing a lot of young people volunteering in the Mozilla project. I would be really glad to see a lot of teens volunteering in the Fedora project. At the end of the day, I had dinner again with the Fedora/Red Hat people, and I heard lots of cool stories about FLOSS and off-topic with them.
FOSDEM I don't think is just about going to conferences and getting free stuff, but most importantly of meeting the people with who you work with, the people who volunteer on other projects, or even people that barely knows about FLOSS but are beginning to get interested on it. I really want to be there next year again, and see my friends and make new ones. Thanks again to Fedora, and I am really glad I'm contributing to it (:
What up! Thanks to one of the blogs I follow (LINUXMANR4) I found a way to enable hardware acceleration in chromium. It is just quick and easy.
In any tab in chromium we should write chrome://flags, and enable the option that says Override software rendering list, and then restart the browser. That's all! You can check that it worked by going in any tab to chrome://gpu, and there most of the options should be green and saying "Hardware accelerated" ;)
On my Real-Time Systems book called "Hard Real-Time Computing Systems" by Giorgio C. Butazzo, in the introductory chapter the author writes:
"Due to the relevance that pessimistic assumptions have on the design of real-time systems, Table 1.1 lists the most significant laws on the topic, which a software engineer should always keep in mind".
Table 1.1 is the next one:
Murphy’s General Law
If something can go wrong, it will go wrong.
Damage to an object is proportional to its value..
One can make something bomb-proof, not jinx-proof..
1. Any software bug will tend to maximize the damage.
2. The worst software bug will be discovered six months after the field test..
If a system is designed to be tolerant to a set of faults, there will always exist an idiot so skilled to cause a nontolerated fault..
Dummies are always more skilled than measures taken to keep them from harm..
Johnson’s First Law
If a system stops working, it will do it at the worst possible time.
Sodd’s Second Law
Sooner or later, the worst possible combination of circumstances will happen.
A system must always be designed to resist the worst possible combination of circumstances.