chester's blog

technology, travel, comics, books, math, web, software and random thoughts

Netflix Brazil Dribbles FIFA With a Word Game

| Comments

In Portuguese, the word “copa” isn’t just a reference to the FIFA World Cup, or any generic cup. It is also often used to designate a pantry, or a small dining room inside a kitchen – some people even use the term interchangeably with “cozinha”, the word for “kitchen”.

Netflix Brazil used this in a smart commercial that dribbles FIFA’s Orwellian (and borderline unconstitutional) countrywide media ban on expressions (which includes things like “Christmas 2014”). The spot showcases the freedom of not watching any important soccer match (a non-trivial luxury in Brazil, trust me) by playing entirely as a double entendre. Here is a rough translation:

Guy: “You know what? I’m gonna watch Netflix on the [copa].” (grabs a tablet)

Girl: “Oh, you and this [copa], [copa], ewww.”

Guy 2: “Yeah, why not on the living room?”

Guy 3: “…or the office, the bedroom, the porch…”

Guy (walking to the “copa”): “I watch Netflix WHEREVER I WANT. And I want it ON THE [copa].”

Guy 2: “So I can watch movies… on the [copa]?”

Guy 3: “…pausing and returning on the [copa]?”

Guy 4: “Watch exclusive series… on the [copa]?”

Guy: “See? Netflix changes everything!”

Narrator: “Netflix on the [copa]? Why not? Movies and series for you to watch whenever and however you want. Subscribe now.”

Halt and Catch Fire: A Series Premiere With a Huge IBM PC Blunder

| Comments

Just watched AMC’s first episode of Halt and Catch Fire – a TV show that about a hyper-stereotyped bunch (chrarming entrepreneur, family-man engineer and punk-girl hacker) facing “big corps” of the early 80s. And they start by challenging no one less than IBM, so I had to check it out.

Every fiction piece about computers has one innacuracy or another, and I usually just eat my popcorn and enjoy the show. But this one had an issue too close to home to be ignored. And it started with a good idea: they borrowed the plot from Phoenix Technologies’ cloning of the IBM PC BIOS, which I’d summarize like this:

In order to run software made for the IBM PC, a computer would need a piece of software knonw as the BIOS. It was inside every IBM computer, but was dutifully copyrighted. Copying or mimicking it directly would likely result in legal action, but Phoenix got over that (and sold their version to several IBM PC clone manufacturers) by having two teams on the job: one studied the code and wrote specifications on how it worked, and another created a new BIOS only from reading such specifications, making it a “clean room” reverse engineering.

The episode puts the hacker girl in the role of the second team, while the engineer guy replaces the first (helped by the entrepreneur). Also, his task was simplified into just generating a printout of the BIOS that the girl would recreate. Things were fine up to this point, but the male duo would accomplish the task in the most complicated way possible: they hooked the guts of the computer to a LED panel, which would show a binary representation of the codes, one digit at a time. Then they would write each one on a block of paper and then type it all (into the reassembled PC or another computer, not sure), and finally print it all out!

Heck, I understand the need for dramatizing the effort. And I also wasn’t for sure the genius computer designer this engineer is supposed to be, but if you asked me how to do that in the IBM PC era, I would likely just suggest typing these two commands:

d f000:0000

The first line calls debug, the monitor/assembler/disassembler tool that came with DOS since verison 1.0. The second one (typed under debug’s - prompt) will dump (d) the contents of the first 128 bytes of the PC-BIOS. It will even print the characters that match each code (revealing some of the messages printed when you turned the computer on), and typing d again will reveal the next batch of 128 bytes, again and again. Attach a printer and you are done.

But don’t take my word for it: go to James Friend’s nice PC emulator page (based on PCE) and try the commands yourself (the page actually emulates a slightly more modern computer, but it boots in the IBM-PC-like “real mode”). You will get a result like this:

Some people may argue they could not know the location (F000:0000) without Google, but the IBM PC technical manual (PDF) that came with it tells you on page 1-12 that it’s located at F0000 (an absolute 80861 address that can be referred to as F000:0000). Even if IBM had hidden it, the Intel 8086 manual (PDF) reveals (in page 2-29, table 2-4) that the processor boots at the FFFF:0000 address (CS:Instruction Pointer). Typing u FFFF:0000 on debug would reveal the first instruction ran is a JMP to the beginning of the BIOS code (just after a few header bytes), and one would reasonably dump from it until the end of memory, which would match the ROM chip capacity (which was also public information).

But wait, there is more: if they had really bothered reading the aforementioned PC manual, they could have saved some ink and paper. Appendix A contains the fully disassembled BIOS code – meaning those guys spend a whole weekend printing something that was already on the box, in an easier to read format. Geniuses.

Having that out of my chest, I can focus on the episode itself: it was ok-ish. I may check future ones if they appear on the website/over-the-air/Netflix/whatever, but I’m not really holding my breath.

  1. As pointed by Clonejay, the IBM PC actually had an 8088 processor. Programmers (including myself) tend to refer to it as 8086 because software-wise, they were identical. The 8088 had a smaller data bus, compatible with cheaper-but-slower RAM chips). You won’t find much 8088-specific documentation, so I’ll keep the text as-is.

2048 2600: The 2048 Game for the Atari 2600

| Comments

As everyone else on the planet, I got hooked on 2048 and amazed by the variants that sprouted. Its simple rules and graphics are one distinctive characteristic. “It’s so simple”, I thought, “that it really could have been done on an Atari”. And once you have such an idea…

That’s right: this is a version of 2048 for the Atari 2600! It took me about 16 hours of work to get to a playable prototype, and about 50 hours for the final version, spread over a couple weekends and nights during which I was refining the core game and squeezing features like sound, two-player mode, and a high score.

During this period it briefly made the front page of Hacker News, received lots of great feedback on Atari Age and RVG, and got a couple of contributions (bug fix, PAL support). The 2048 source was also helpful – even though I had to rethink the whole shifting/merging strategy, it provided a nice foundation with very readable code.

The project page has all the instructions and files you need to run it on an emulator, on a real console or even in your browser. The remainder of this post shows some technical notes (which can also be found at the main assembly source file).

Running Ruby2600 in a Browser With Opal

| Comments

Last year I challenged myself into writing an Atari 2600 emulator using Ruby in time to present it at RubyConfBr 2013 – thus ruby2600 was born. When I found Opal, a Ruby-to-JavaScript compiler, I felt it might be fun to run the emulator on a browser.

It runs even slower than in MRI and is far from polished, but works. To watch it, just click the button below and wait until the black lines get replaced by Pitfall Harry slooooowly running to the left (sorry, no key bindings for now).

Keep reading if you want the gory technical details!

London, Paris and Reykjavík: A One-Week Vacation

| Comments

Bani noticed this winter would be one of the best to see the northern lights in this decade. Granted, there are lots of places in Canada for that, but we decided for a stretch and went to Iceland. Adding a flight leg to the UK was cost-effective, and I threw in a train hop into France, ending up with a mix of Icelandic natural landscapes and urban highlights of London and Paris – two iconic cities I always wanted to visit!

Day Job - a Story of Chasing Dreams

| Comments

There is no shortage of documentaries about startups, and that is understandable: the idea of bootstraping an idea into a viable enterprise is fascinating, and the reality is filled with real-life sweat, joy and drama that owes nothing to fiction.

Given that, I jumped at the opportunity of watching the premiere of Day Job, which puts under a microscope the journey of three companies through one of the Extreme Startups accelerator programs. Between the tight schedules and limited budgets, an interesting story ensures. Check the trailer:

How realistic? Well, after the event we had the opportunity of watching a Q&A with the film’s director and the three entrepreneurs, which pretty much backed the film depiction. It is yet unclear how/when the movie will be distributed, but I’d keep an eye if I had not already seen it.

Day Job Premiere Screening - Q&A

Dollar Shave Club: A Test Drive

| Comments

I hate shaving. I really hate it.

The only reason I shave is because I’m not much fond of facial hair either. And I’ve tried every single facial hair removal alternative, such as laser (hint: does not work for light-colored hair) and wax (requires growing a beard before each session, pretty much defeating the purpose; also hurts on a par with passing a kidney stone or wisdom teeth extraction).

Now you know why anyhthing with the slightest potential of making shaving suck a bit less grabs my attention – not that Dollar Shave Club’s unorthodox presentation needs any help in that regard. If you don’t know what I’m talking about (or just want to laugh again), here is their presentation video:

For “$1” a month, they will send you enough blades to allow a weekly replacement. Of course, that does not include shipping (adds $2/mo), and refers to the very basic model, the “Humble Twin”. Also, that is the price in the US – in Canada it gets 50c more expensive, and you pay in Canadian dollars.

Still, CAD 3.50 is an awesome deal for a month’s worth of shaving – you can only get that with fixed-head disposables (the kind that is unlikely to be “f***ing great”, as Mike puts it), so I decided to give them a spin. Being a Gillete Fusion Power user, I was tempted to go straight to “4x” (their 4-blade model) or even “Executive” (a 6-blade mammoth reminescent of MADtv’s Spishak Mach 20), but I wanted to test the real Dollar Shave, so I went with the Humble Twin.

The package arrived with a separate razor and its set of 5 cartridges. The razor is pretty decent: comfortable grip, flexible head (my biggest issue with disposables) and a firm pressure-connection system, complete with eject button. It also included a couple of lame joke cards, not nearly as fun as the video.

Dollar Shave - Humble Twin

After shaving a few days with it, I won’t say it is as good as the vibrating, 4-blade Fusion Power, but the difference was really small: with an extra pass I got the same results, which is much more than I could say of other 2-blade systems I’ve tried. Since they let you upgrade/downgrade your plan at any time (changing the future billing/delivery), I upped the ante and switched to the 4x, for CAD 6.50 a month – still below the Fusion price.

The switch process was easy, although I had to enter my credit card information again (apparently they need to do a new authorization, and the website confusingly warns that, for all effects, you are stopping the previous plan and starting a new one). But it worked fine – at the time I’d be receiveing a new set of 2-blade cartridges, I got a 4-blade set (with 1 less cartridge, but I suppose they last more), a new razor compatible with them, and another set of not-really-funny cards.

Dollar Shave - Humble Twin versus 4x

Once again I was positively surprised: it is nearly as good as the Fusion. The difference is small enough to be shadowed by the convenience/price, and the freshness of a new blade every week or so might even make the average shaving slightly better than with the Fusion, whose steep price makes me swap less often.

Disclosure: I get a free month if you buy it through my link, which would raise suspicion – if the blades weren’t so dirt cheap to begin with. That said, my veredict: I did not find it as f***ing great as Mike does, but they are very good, and having a fresh one every week without any effort is a huge benefit for such a low price. With the ease of switching plans and the promise of equally easy cancellation, it is worth a shot.

Dragon Ball Z: Kami to Kami (Battle of Gods)

| Comments

Dragon Ball Z: Kami to Kami (Battle of Gods)

It is not a secret to anyone how much of a Dragon Ball nerd I used to be. I collected the manga (having read it quite a few times) and watched the anime religiously, although I did not enjoy the post-manga material (Dragon Ball GT and the “TV specials”) that much. Granted, I did watch it, but those always felt like something was missing. Akira Toriyama (original manga writer/artist) not being much involved on their production surely played a role.

Well, things has changed: thanks to Nick van Vugt, I have just watched Dragon Ball Z: Kami to Kami (Battle of Gods), and I REALLY, REALLY enjoyed it! Every single element of the series is there, bringing all the joy from the classic: I laughed, I got thrilled, I got embarassed. Just like the old days (with a bit of modern animation here and there).

Announced as as the first “really canon” DBZ movie, it has a good share of Toriyama participation: he came up with the new characters’ backgrounds and designs, steering what would have been another higher-order-of-power-magnitude-but-heartless-guy into a way more interesting character that blends in with the existing cast as few of the new ones in TV specials or GT did.

The story happens in the 10-year hiatus between Z and GT (or, manga-wise, between the end of Majin Boo saga and the epilogue). Won’t give any spoilers – it suffices to say that adding canon to this precise time frame brings its share of inconsistencies with the non-manga material. One can bet it will bring Dragon Ball nerds (in particular GT haters) countless hours of fun figuring out and discussing possible explanations.

Unfortunatelly, it seems that nothing short of summoning Shenlong would bring it to Canadian theathers. This time, Brazilians hit jackpot: it will be on the big screen in October 18, with the voices from the original Brazilian dub. If you live in Brazil and enjoyed Dragon Ball Z, you owe yourself a ticket for this one!

TEDxToronto 2013

| Comments

I had the great opportunity of attending TEDxToronto 2013, the 5th edition of this independently organized TED event in the city, and my my second TEDx (the first being TEDxUSP 2010 in São Paulo). Held at the Koerner Hall, it was carefully organized around the theme “The Choices We Make”.

TEDxToronto 2013

A great selection of speakers made this edition a huge success – I honestly could not find a single disappointing talk (and I was not the only one). The artistic performances had a strong local appeal, making them a bit harder to grasp for newcomers like me. But the audience really enjoyed, so I guess it is all about living a few more years in this lovely city.

If I had to choose a favorite talk, I’d be torn between Darrell Bricker (former Director of Research for Canada’s Prime Minister and CEO of a leading social research firm), who presented a novel perspective of the country’s economics and demographics, fully backed by statistics and census data; and Mark Bowden, who impressed the audience with a live demonstration on the impact of body language on public acceptance.

It is interesting how a few of those presentations interact: Mark makes a point in how those visual cues are an important part of communication and how social engagement can be improved by them, even though they might be cast as lies – and it was just after Debbie Berlin-Romalis talked about how her work with terminal children with cancer taught her that telling the truth is the core component of dealing with such a delicate matter.

TEDxToronto 2013

There was no shortage of sad stories, such as Ti-Anna Wang’s life as an advocate for Chinese dissident families (including her injustly imprisioned father) and Mark Henick’s pledge for mental health care backed by a vivid portrait of clinical depression. On the other hand, seeing Dr. Ivar Mendez connecting on-stage to the remote presence robots he and his coleagues use to bring medical care to remote communities in Canada and Bolivia brought happiness back to everyone’s souls.

Overall, the talks brought a great perspective on how a person’s choices can impact the lives of so many others, and one can’t help but think about his/her choices in the same light. Talks should be available soon (“this October”, says the official Twitter account) can be watched online, and here are some photos as well.

Toronto Mini Maker Faire 2013

| Comments

It amazes me how some publications become avatars for specific cultural movements. For example, I can’t think about the (pre-internet) BBS hacking scene without an image of 2600: The Hacker Quarterly, nor I could dissociate the formative years of the geek generation from WIRED (of which I was an avid reader and even occasional subscriber, despite its price in Brazil.)

The community of do-it-yourself electronics/robotics/material hackers that call themselves makers have a clear representant in Make: magazine, and one of the publication’s staples is organizing the Maker Faire. Self-described as “the greatest show (and tell) on earth — a family-friendly festival of invention, creativity and resourcefulness, and a celebration of the Maker movement”, it spread into local events such as the Toronto Mini Maker Faire, which I attended today.

Lock picking - looks fun

It is a very entry-level/family event. The appeal is mostly for those who have never seen or heard about, say, 3D printers or Arduinos. In addition, it is also extremely focused on children. All activities and a great deal of the exibitions targeted younger audiences and those who have no previous exposure to this kind of thing.

Of course it doesn’t mean older and more experienced geeks should stay away, as there are lots of activities in different areas. I was eager to have some fun at lock picking table, but it was too crowded. To make things worse, the rain pretty much packed everyone inside of Whychwood Barns, demanding quite some patience for the most sought-after activities. Maybe next time.

Chocolate 3D Printer

The highlight that made my ticket worth its price was Brian Luptak’s talk on his 3D Printed Chocolate experiment. I (mistakenly) thought it was pretty much a simple replacing of injected plastic with some sort of chocolate goo, but the science and labor involved in making it work are quite complex and interesting. We could not see the machine in action (or try the chocolate, which “tastes really good”, in his words) because the laser used is not appropriate for non-lab environments, but the hardware and some of the chocolate was on display.

There is space for organizational improvement: the lack of a second microphone made it impossible even for speakers to listen to audience questions (and there were many). There was only a single TV screen – I was lucky/wise enough to get a good spot, but I’m sure lots of people could not see the slides at all. It beats me how people that can hack such complicated technologies could not solve these mundane problems.

Food makers!

Anyway, if you believe science and family go together, I highly recommend facing the drizzle and checking out the second (and last) day. Tickets can be purchased online or at the event, and a couple of hours should be enough to see all the tables and engage in one or two activities. Talks are very short (20 min), so it’s worth checking the talk schedule as well. And, of course, make a lot of stuff afterwards!

(click here for more photos)