Paucartambo

Mamacita Linda went to work in Paucartambo for a couple of weeks recently. Unfortunately I didn’t get the opportunity to join her because I had baby-sitting duty at home. Mamacita says Paucartambo is very nice, quiet, clean, the kind of place where I would live if Mamacita let me. Unfortunately that won’t ever happen because schools in those small towns in Peru aren’t very good at all.

Paucartambo is located near the East edge of the Andes mountains, very close to the Amazon jungle. If you ever have the chance, make a trip from the Andes mountains to the jungle below, it’s one of the most stunning changes in environment you can ever make in a short period of time. Where the Andes meets the jungle is a beautiful place but also a place of significant environmental and social challenges nowadays.

Paucartambo is known for its annual festival of the Virgen del Carmen which takes place in mid July. However, while Mamacita Linda was there, a procession took place in honor of the 30th anniversary of Pope John Paul visiting Paucartambo. Here are some pictures of Paucartambo and the procession:

Totally unrelated. I was thinking the other day, the farmhouse my dad grew up in didn’t have central heat (and it gets cold in Oostakker). Nowadays my dog sleeps on an orthopedic bed. I know it’s apples and oranges but the point is we have come a long way, I want to be thankful more often and fuss less than I do.

The Accidental Coder: How I became a (mostly) self-taught programmer

A while ago Twitter pal @glessermansazo asked me about learning how to write code, if I could recommend any good books. This got me pondering, my oldest daughter is changing schools this coming March – her first “real” school – and inevitably all the kids will have to tell their teacher “what kind of work does your daddy do?” Once upon a time those answers were simple, when the world was full of farmers, bakers, welders and carpenters but that was then. My daughter won’t have an easy answer, she’ll tell her new teacher and classmates a much glorified version of the following story.

First the short answer: I have a full-time job developing web applications. I work remotely for a US corporation, using mostly PHP, mySQL and JavaScript but I also dabble in other languages like GO. I have a side-job as a ferry-pilot, delivering small airplanes around the world.

That’s the SHORT answer! How I got here is another story.

Once upon a time when rock was pop, my father brought home a Commodore 64 computer. He was one of the first people in our area to buy a computer, most people didn’t really know anything about them back then. I learned how to write a few small programs in Bill Gates’ beloved BASIC and I wrote my first real program for a school project when I was in 5th grade. I didn’t really grasp the low level stuff – I still don’t – but I remember if you could hit the correct key combination you could escape the BASIC shell on the Commodore 64 and get into the assembly language. As a 12 year old boy I could make characters on the screen in assembly language and I vaguely felt mankind had gotten too big for its britches.

When my older brother started university he had to take some programming classes in Pascal but the professors told their students that this was mostly for learning purposes, to teach programming concepts. In the real world, everyone was using C – as we still do today. However, the university didn’t teach C because it was too powerful and easy to get in trouble.

So you wanna guess which book I picked up? Of course I decided to learn C. Why bother learning the concepts in university if you can learn the good stuff from a book? I was only 15 or so and by that time Pink Floyd had told me I didn’t need no university anyway. C is a wonderful programming language, the entire computer industry as we know it is built on top of it. Anyone who wants to program computers should learn the basics of C – just don’t put more elements in an array than you’re supposed to and stay away from pointer arithmetic unless you really know what you’re doing (I didn’t).

And then I quit programming. I’d had a love affair with aviation since I was about 5 years old and when I finished high school I enrolled in flight school. There’s a long story there too but suffice to say I spent 15 years flying airplanes, working as a flight instructor and building jet engines. I enjoyed aviation but it has its ups and downs. Somewhere along the way I was working 8 hours during the day and going to college at night, graduating when I was 33. I was working in a Fortune 500 company at the time which had outsourced most of it’s programming so I decided to pursue a degree in information systems, not computer science, but I did take a few programming classes in college. While I was in aviation I wrote some programs for aircraft weight and balance and I also did a short stint with an internet start-up during the internet boom in the 1990s.

Then I left my job at GE and came to Peru with the intention of working in aerospace, I had a contract with an aerospace company lined up when I arrived. The contract fell through and I found myself on top of a mountain in Peru with no job. I started looking for anything and everything. I was teaching ESL part time and looking for contract programming work online. I found a small 6 week programming job which turned into 6+ years of full time / independent / remote employment. I have no boss, no set working hours, it’s a very nice gig. I miss flying sometimes but programming is great because even someone like me who has no artistic talent gets to be creative, design things.

Coming back to the question @glessermansazo asked, what would I recommend if someone wanted to learn a bit about coding:

  • Take a few programming classes. I launched into everything head first, see if I could make something work without understanding the concepts. All that experimenting is great but when I took some programming classes years later I found it helped me a lot to think about the academic concepts.
  • Tinker with C at least a little bit, just remember the thingy about arrays and pointer arithmetic. Also, learn at least the basics of Linux – Linux is to operating systems what C is to programming languages.
  • Don’t fall for hype. Software like anything else is a business and people want to sell. Some things that were all the hype 5-8 years ago like SOAP and XML are now practically obsolete. On the other hand you can never go wrong with broadly accepted technologies like C/C++, Java, and PHP.
  • There are many new-ish languages and technologies now like node.js (which I’m tinkering with a little bit), Erlang, Scala, noSQL and untold frameworks, some claiming to be the best thing since sliced bread. You don’t have to learn them all, some are better for creative/expressive work, others are more suited for analytical work, etc. Find something you like and do it to the best of your abilities.
  • Don’t worry too much about this vs that. Ruby vs PHP, Python vs GO, mySQL vs Postgres, Ford vs. Chevy. Some languages are better suited for certain types of work (for example, C is better for systems programming and PHP is better for web development) but in my opinion a heated debate over things like PHP vs ASP often indicates you’re missing the most important part of software development: you are programming for real people in the real world. Designing the best solution starts with understanding the real world requirement, then you design the application around the real world requirement – not around your choice of language or technology.
roxi_at_work

Web developer is a popular job for expats in Peru

Maintenance

kids playing at Coney Park, mall Real Plaza Cusco

Coney Park

Happy New Year! ┬áI hope you enjoyed the holiday season and here’s to good health and good fortune in 2015.

Speaking of holidays, school is out for summer in Peru so both kids are home 24/7 and it’s a bit of a challenge to entertain them as it is also rainseason here in Cusco. Have I told you yet what an adventure it is to take our kids out on the town? Whoever coined the phrase “terrible 2″ knew what they were talking about. Yesterday we took the kids to the movies, the one and only movie theater in Cusco is at a new-ish mall near our house. After the movie we were leaving the mall through the big ProMart home improvement store when we caught our youngest trying to flush her leftover popcorn down the toilet in one of ProMart’s exhibition bathrooms.

A while back I took both kids to that same mall by myself. I wanted to prove a point to Mamacita Linda: not only could I take both kids by myself, I could even accomplish something useful while I’m out and about with them, in this case buy a new pair of sneakers. I let the kids play for a bit in the Coney Park playground at the mall and then went sneaker shopping. In the shoestore my oldest all of a sudden realizes they are missing a toy phone they brought with them to the mall (which was a bad idea in the first place). We run back to Coney Park without any real hopes of finding the toy but to my surprise it was laying untouched by one of the games we played earlier. A friend of mine once left his wallet in a taxi in Dubai and the taxi driver returned to the hotel 20 mins later to give him back his wallet, insisting my friend check the contents to make sure nothing was missing. Here in Peru it’s rare to find something after you leave or forget it somewhere.

But I was going to tell you about maintenance. Before the lost phone incident, my kids were playing in a helicopter ride/toy at Coney Park. I was a bit suspicious because a few days prior I’d seen the helicopter tagged “out of service” but the tag was no longer there so I figured it had been fixed. The kids got in the helicopter but about halfway through it’s up-down left-right cycle, the machine seemed to get stuck and started shaking violently left to right, tossing my kids around as if they were limes in Jimmy Buffett’s blender. I yanked the power chord out of the wall and with a crying kid in each arm I advised the Coney Park staff their helicopter was broke, whoever “fixed it” didn’t get to the root of the problem.

This was before the lost phone. When we came back to Coney Park 15 minutes later looking for our toy phone, the manager was standing by the helicopter, watching another batch of kids go up and down, left and right. The machine worked OK for the moment so apparently it was considered “fixed”.

A broken toy is a minor inconvenience but in bigger issues like infrastructure the same attitude seems baked into the culture of Peru: don’t fix it as long as it kind of sort of works most of the time.

The worldly Belgian

They say it’s hard to be a Saint in the City but I say it’s even harder to be a Belgian in Peru. Or to be a Belgian anywhere outside of Belgium for that matter, because old habits die hard. Take the Belgian idea of politely offering a cup of coffee to a visitor in your home:

HOST: “Would you like a cup of coffee?”
GUEST: “No thank you.”

HOST: “Are you sure? I can make a fresh pot.”
GUEST: “No thanks, I’m actually in a hurry to get to blablablah.”

HOST: “I’m going to make a pot of coffee because so-and-so is coming over in a bit.”
GUEST: “You don’t have to do that I was just leaving anyway.”

HOST: “Here’s some cookies, you sure you don’t want a cup of coffee with that?”
GUEST: “Well if you’re having a cup, I’ll have a cup with you.”

The Belgian guest will politely say “no” at least 2 or 3 times before accepting and the host will keep offering until the guest accepts. The idea is that the guest can’t accept the first time the host offers because it would indicate that he or she came hungry/thirsty to the guest’s house. A similar weirdness takes place when you’re passing that plate of cookies around the coffee table and everyone will refuse to take the last cookie until the plate with that lone last cookie has gone around the table 2 or 3 times, then someone will finally cave and eat the last cookie. The idea is that you don’t want to leave the host without anything, so nobody takes the last of anything until the host has insisted on passing plate around 2 or 3 times.

One of the things I like best about being in Peru is that we eat very well. Unlike the so called developed world, we eat real and fresh foods, not food-like industrial products. For example, we buy fresh bread twice a day, we don’t get bread that lasts 10 days in a plastic bag from a factory 3 states away. We make fresh juice for breakfast most days and I’m the self-proclaimed king of the Philips blender: mangos, papayas, pineapple, bananas, it’s all fair game.

Now lately mamacita linda’s been in a rush to get to work in the morning and she might skip breakfast at home, like this:

Me: “Mamacita, do you want a glass of juice before you go?”
Mamacita Linda: “No papi thanks”.

Me: “Sure you don’t want some of my world famous mango juice?”
Mamacita Linda: “No papi I already told you I don’t have time”.

Me: “Hmmmmmmmmm this is the best juice ever, do you want some before you go?”
Mamacita Linda: “NO PAPI!!!! How many times do I have to tell you the same thing??? I don’t have time!!!! I don’t want juice!!! I don’t want breakfast!!!! Quit asking me the same thing over and over!!!”

Oops. Then I realize I’m no longer in Belgium and there is no such thing as a worldly Belgian.

Merry Christmas!!!

Poor man dies – no one cares

Yesterday 7 people died in the ongoing territorial dispute between Calca and La Convencion, areas outside Cusco that have been embroiled in a dispute about land and the accompanying royalties and revenue for some time. The past 2 days the Calca side organized a big strike in the city of Cusco and according to Diario El Sol a total of 7 people died, 6 in a car accident on the way to the strike and one man died in a confrontation with police.

Mamacita linda and some of her friends have been doing an audit in the municipality of Calca, they didn’t go into work the past 2 days but this morning they returned to continue their job. As they went about their business of nosing around the municipal office, one of Mamacita’s friends stumbled upon the body of the man killed in the strike. In a small meeting room in the municipal office, the man’s family was mourning the loss of the poor father of 5 kids. They did not have the means to hold a wake in a funeral home. There were no wreaths or flowers. These are humble people.

A poor man went to Cusco to participate in a strike which will benefit only its organizers – as most all strikes do. He obeyed those in power because he believed they were looking out for people like him. Now they won’t even buy him flowers or a decent funeral. Higidio Tapara QEPD.

I see a line of cars and they’re all painted black
With flowers and my love, both never to come back
I see people turn their heads and quickly look away
Like a newborn baby it just happens ev’ryday

I look inside myself and see my heart is black
I see my red door and I must have it painted black
Maybe then I’ll fade away and not have to face the facts
It’s not easy facing up when your whole world is black

Darkness on the edge of town

Just snapped this picture of the moon over Q’osqo, the navel of the world. They say it is the navel of the world because you can see the sun and the moon at the same time on many days. People who know photography could make this so much better but unfortunately I’m picture-taker-challenged. Still, you get the idea.

Moon over Cusco

Moon over Cusco

Tonight I’ll be on that hill ’cause I can’t stop
I’ll be on that hill with everything I’ve got
Well, lives on the line where dreams are found and lost
I’ll be there on time and I’ll pay the cost
For wanting things that can only be found
In the darkness on the edge of town

I voted!

No, not politics but Otto’s survey. Just go to IKN and look for the “WHICH WILL BE WORTH MORE AT END 2015?” poll on top of the page.

Before you vote, here’s my thoughts on each option:

1) AAPL: Not sure how much upside there is left after the past few years or what the margins are on mobile devices now that they are ubiquitous. Any monkey could have told you that but did you know that the proliferation of mobile devices gave birth to something called big data? Put simply: everything you do is recorded and analyzed. Your mood, location, places you’ve shopped at, relationships, etc. Feeling stressed out? Don’t be surprised to see a coupon for your local day spa on your smartphone. Walk into a bar? Expect an ad for a “get you home safely” taxi service on your trusty device. Ended a relationship on a social network? Book a comfort-sex trip to Kenya with any of our preferred travel partner sites. AAPL doesn’t really use “big data” in their business plan but their devices make it possible for others to do so. Did you know there are private, for-profit companies who will sell your current and recent location to anyone based on GPS data embedded in publicly available social-media posts? George Orwell was wrong about one thing only: the date was off by 30 years.

2) Bitcoin: I don’t understand it being used as a currency but you may be surprised to know that Bitcoin has serious implications for online security. Bitcoin is based on “mining” computer hashes, similar what is used in cryptography. As a result, cryptography that was considered secure only a few years ago is now trivial to break because Bitcoin miners have learned how to exponentially increase the speed of hashing (particularly by applying graphic processors or GPUs instead of CPUs). It used to be if a company like Target, Home Depot or JP Morgan got hacked, encrypted data on their servers such as passwords was relatively safe. Now this data is exposed and sold in no time. This combined with the existence of a shadowy industry where you can sell computer vulnerabilities to the highest bidder (ie. governments and businesses) means there is a tremendous incentive for hacking.

3) Gold: It’s shiny. For more wisdom, ask Otto because I don’t know.

Pro-Tip: Gringo dudes getting married in Peru

So you’re standing in front of a church half-full of people you barely know, waiting for your sweetie to walk down the aisle. Your sweetie doesn’t show up and you recognize only a few of your sweetie’s family members – most of the ones you know aren’t there. Then the priest enters and starts his Mass, which you barely understand due to your limited Spanish. People are kneeling and praying and you generally have no clue what’s going on except that everyone is mostly ignoring you and your sweetie isn’t there.

Pro-Tip: THIS IS NORMAL!

You see, the only things that generally run on time in Peru are the Catholic Church and an occasional airline flight. The priest probably has 3 or 4 weddings scheduled on that beautiful day and if he were to wait for the bride, the last wedding would be 3 hours late. Just sit tight and about 2/3 through the mass, the church now full instead of half-full, your sweetie will show up, the priest will stop what he’s doing and your sweetie will walk down the aisle. Then everything goes on but at least you now have your sweetie who can translate for you.

whew.

* * *

We were invited to a friend’s wedding last week at the “Sistene Chapel of South America”, a small church about an hour outside of Cuzco with ceilings painted in the style of the Sistene Chapel. I’m a bad picture-taker but it’s absolutely beautiful. If you’re visiting Cuzco, don’t miss it.

Church of  San Pedro de Andahuaylillas, Sistene Chapel of South America

Church of San Pedro de Andahuaylillas, known as the Sistene Chapel of South America

Lentejas

Had lentejas for lunch today. Remember when I fussed at Otto for cooking lentejas on his day off? Well, I’ve been meaning to say this for a while now: “I was wrong!”

WRONG

WRONG

WRONG

I had eaten lentejas before and they were “OK no mas” but what I didn’t know is that lentejas done right, are great. We have a girl who cooks for us and she is an excellent cook, especially when it comes to any of the typical “comida criolla” of Peru.

Provecho!

lentejas

Lentejas, comida criolla Peruana

2014 Peru Election storylines

Yesterday Peru went to the polls and elected a new crop of regional and municipal leaders. There are plenty of story lines out there if you’re into that kind of thing. Just look for #MadeleineOsterling or #CastanedaLossio, read about the influence of cocaine cash or the soap opera around Gregorio Santos. One of the more interesting story lines is how practically none of the elected local and regional candidates have any affiliation with the supposedly “national” parties in Lima, in other words, central government is extremely weak.

Rather than talk about politics on a grand scale, you know I prefer the personal side of things, so I’ll share a personal election story.

Last week Mamacita Linda was late coming home from her job. She’s been working in a town about an hour outside of Cusco. Upon leaving her job, Mamacita Linda and her coworkers couldn’t immediately get to their driver because 2 political candidates were having their “closing rally” and the streets were packed. Eventually a large group of moto-taxis with flags for one of the political candidates passed by. Mamacita Linda and her friends waived down one of the moto-taxis and asked if he’d give them a ride to the terminal where their driver was waiting. The moto-taxi said he couldn’t, that he was participating in the political rally.

Always the economist, Mamacita Linda asked: “Wouldn’t you rather make a few $ than to participate in this rally?”

To which the moto-taxi driver replied: “I have to participate in the rally. This candidate paid for each of us a tank of gas so we are supporting him.”

There you have it. People gave their lives for the right to vote. Nowadays in Peru, your vote is worth about 2 gallons of gas.