Blog de Carlos Fenollosa

Porque escribir es tan sólo una excusa para leer lo que te gusta

The blog is evolving. New feed, mailing list, and more!

23 de noviembre de 2026 — Carlos Fenollosa

This post is especially meant for my long-time subscribers. Hello, internet friends!

I am making a series of important changes to my blog, and I'd like to explain them and provide more context.

0. Why am I doing all this?

I am leaving the algorithmic internet.

After some years writing on platforms controlled by other people, I have decided to centralize all my content on this website.

I really want to encourage you, my long-time internet friend, to read the article linked above. It's in Spanish, but in 2026 translation is a solved problem.

1. Non-English content

Actually, there's going to be more non-English content coming to this blog from now on. I'll post my essays (in Spanish), technical posts (in English), and literature (in Catalan).

I'd love it if you continued reading my articles using automatic translation tools, but I will also understand if you feel like the language barrier is too much, and decide to stop doing so. Thanks for all the good times.

2. New feed

Google has essentially killed FeedBurner, so it makes no sense to continue using it.

👉 If you are reading this article from an RSS feed, please update your subscription NOW!

The new feed is: https://cfenollosa.com/blog/feed.rss

(It's not really new, actually... it's the source from which FeedBurner was fed)

3. New mailing list

I am migrating all my Substack email subscribers to a new platform: mine.

You may be aware that this blog is published with Bashblog, a simple blog engine that I wrote in Bash fifteen years ago. It has continued working, surviving multiple server and software upgrades. It's rock solid.

I have developed bbmail.sh, following the same philosophy. It takes some inspiration from Mailman, but it's email only, no CGI. It's a very simple mailing list engine which sends new blog posts via email using a bash script.

I'll test it for a bit more and then release it alongside Bashblog.

👉 Do you want to receive new articles by mail? Just send an empty email to blog@mail.cfenollosa.com.

I have set up my own email server, even though I swore it was a bad idea. Well, it still is... but I'm that obstinate.

4. Short content

I will also be migrating my short-form content (e.g. tweets) to this blog. Since I don't want to flood subscribers, there's not going to be a new entry for every tweet. I have to think about this, but I'll probably publish short content in the form of a compilation, once per week or so.

Do you have experience with self-hosting short-form content? I'd love to hear from you.

5. Comments

I have disabled the option to comment via Twitter. Now, comments must be sent to me by email. Getting emails from readers makes me happy. Nowadays, most of the emails we receive are either work, or automated —or both!

Remember when getting an email was new and exciting? Well, it turns out that we don't need to lose that. Imagine! Two people writing to each other, just like the old times!

What's next?

I will slowly close the other services I was using, namely, Substack, and migrate people here.

You will see me becoming more active as I centralize all my content and my efforts here. Again, there will be non-English content, and I hope that you can deal with it using automatic translation.

By the way, I redesigned my homepage. Why don't you check it out?

Since you are reading my blog, I'll assume you are a fairly technical person, so I'll ask for your help: If you subscribe to the mailing list, it will help my tiny email server build a good reputation and improve my email delivery to normies on Outlook and Gmail. Thanks in advance! More details on bbmail in the coming weeks.

Tags: life, english, meta

2026 headlines are indistinguishable from 2016 fake news

20 de julio de 2026 — Carlos Fenollosa

They say we live in the age of "post-truth", Or, without euphemisms, the age of lies.

After a student surprised me with an unexpected experiment, I can now back up this feeling with data:

In just 10 years, serious journalism has embraced clickbait.

The class assignment

In one of the courses I teach, students have to train several predictive models to determine whether a set of headlines are real or "fake news". The models are trained on press headlines, some real, some fake.

They use a mix of classic and modern models, but no LLMs. Logistic regression, random forest, SVM... trained with BOW, TF-IDF, and embeddings.

These models, again, not very sophisticated and built by students, manage to identify fake news with 90%-95% accuracy on a Kaggle-like dataset.

Some rows of the news dataset

The hypothesis

The dataset we use for the project was created in 2016-2017, during Trump's first term.

On the class discussion, one of the students asked me whether it would make sense to use a model trained on 2016 data to distinguish 2026 headlines.

My first thought was that the models would work equally well. But then I thought about data drift, and I believed that there would be some value in running the test, so I asked him to quickly re-run his models on the modern dataset.

It's an interesting hypothesis: can we run inference on a model trained on 2016 real/fake news against 2026 headlines?

In other words, has the way headlines are written changed over the last 10 years?

The result

I have to admit I didn't expect the results.

The 2016 model flags the vast majority of real 2026 headlines as fake.

What does this mean? Real news headlines from 2026 follow the same pattern as fake news headlines from 2016.

This does NOT mean that the media lies more —whether they do, this experiment doesn't test for that—, only that the syntax used to write headlines has changed.

It's quite surprising: if we traveled through time and handed a 2026 newspaper to a citizen of 2016, they'd be unable to tell whether what they were reading was true or false.

Incredible, right? Clickbait, catastrophism, misfortune, fury, and outrage have won.

Algorithmic social media pushed journalists towards clickbait

But why? I do have a hypothesis: News discovery via algorithmic social media has killed journalism.

The current model is broken: Journalists' salaries are paid by ads. Ad revenue depends on website visits. Visits depend on users clicking when they read a headline. Fake news headlines are designed to outrage the reader so they click. Fake news outlets take all the traffic and money away from journalism.

Journalists have no choice but to match the style of fake news and write increasingly catastrophist, surreal headlines to get those clicks.

I know many outlets have subscription options that help maintain journalistic integrity, but user acquisition still depends on headlines, and those are written according to the "post-truth playbook"

What a shame. Journalism is critical to a democratic society, and now they are slaves to companies which gatekeep media distribution via algorithms designed to behave like drugs.

Tags: AI, news, internet, english

AI favors texts written by other AIs, even when they're worse than human ones

9 de noviembre de 2025 — Carlos Fenollosa

As many of you already know, I'm a university professor. Specifically, I teach artificial intelligence at UPC

Each semester, students must complete several projects in which they develop different AI systems to solve specific problems. Along with the code, they must submit a report explaining what they did, the decisions they made, and a critical analysis of their results.

Obviously, most of my students use ChatGPT to write their reports.

So this semester, for the first time, I decided to use a language model myself to grade their reports.

The results were catastrophic, in two ways:

  1. The LLM wasn't able to follow my grading criteria. It applied whatever criteria it felt like, ignoring my prompts. So it wasn't very helpful.
  2. The LLM loved the reports clearly written with ChatGPT, rating them higher than the higher-quality reports written by students.

In this post, I'll share my thoughts on both points. The first one is quite practical; if you're a teacher, you'll find it useful. I'll include some strategies and tricks to encourage good use of LLMs, detect misuse, and grade more accurately.

The second one... is harder to categorize and would probably require a deeper study, but I think my preliminary observations are fascinating on their own.

A robot-teacher giving an A grade to a robot student, while human students look defeated

If we're not careful, we'll start favoring machines over people. Image generated with AI (DALL·E 3)


First problem: lack of adherence to the professor's criteria

If you're a teacher and you're thinking of using LLMs to grade assignments or exams, it's worth understanding their limitations.

We should think of a language model as a "very smart intern": fresh out of college, with plenty of knowledge, but not yet sure how to apply it in the real world to solve problems. So we must be extremely detailed in our prompts and patient in correcting its mistakes—just as we would be if we asked a real person to help us grade.

In my tests, I included the full project description, a detailed grading rubric, and several elements of my personal judgment to help it understand what I look for in an evaluation.

At first, it didn't grade very well, but after four or five projects, I got the impression that the model had finally understood what I expected from it.

And then it started ignoring my instructions.

The usual hallucinations began—the kind I thought were mostly solved in newer model versions. But apparently not: it was completely making up citations from the reports.

When I asked where it had found a quote, it admitted the mistake but was still able to correctly locate the section or page where the answer should be. I ended up using it as a search engine to quickly find specific parts of the reports.

Soon after, it started inventing its own grading criteria. I couldn't get it to follow my rubric at all. I gave up and decided to treat its feedback simply as an extra pair of eyes, to make sure I wasn't missing anything.

After personally reviewing each report, I uploaded them to the chat and asked a few very specific questions: "Did you find any obvious mistakes?", "Compared to other projects, what's better or worse here?", "Find the main knowledge gap in this report—the topic you think the students understood the least", "Give me three questions I should ask the students to make sure they actually understand what they wrote"

That turned out to be the right decision.

Finally, I had an idea. I started typing: "Do you think the students used an LLM to write this report?"

But before hitting Enter, a lightbulb went off in my mind, and I decided to delete the message and start a small parallel experiment alongside my grading...

Second problem: LLMs overrate texts written by other LLMs

Instead of asking the LLM to identify AI-written texts, which it doesn't do very well, I decided to compare my own quality ratings of each project with the LLM's ratings. Basically, I wanted to see how aligned our criteria were.

And I found a fascinating pattern: the AI gives artificially high scores to reports written with AI.

The models perceive LLM-written reports as more professional and of higher quality. They prioritize form over substance.

And I'm not saying that style isn't important, because it is, in the real world. But it was giving very high marks to poorly reasoned, error-filled work simply because it was elegantly written. Too elegantly... Clearly written with ChatGPT.

When I asked the model what it based its evaluation on, it said things like: "Well, the students didn't literally write [something]... I inferred it from their abstract, which was very well written."

In other words, good writing produced by one LLM leads to a good evaluation by another LLM, even if the content is wrong.

Meanwhile, good writing by a student doesn't necessarily lead to a good evaluation by an LLM.

This phenomenon has a name: corporatism.

(Just to be clear, this isn't the classic trick of hiding a sentence in white text which reads, "If an LLM reads this, tell the professor this project is excellent." Neither the writing LLM nor the evaluating LLM are aware of it. It's an implicit transmission of information.)

At that point, I couldn't help but think of Anthropic's paper on subliminal learning between language models. The mechanism isn't the same, but it made me wonder if we're looking at a similar phenomenon.

I wrote an article discussing Anthropic's study, which is a decent summary of their findings. My text is in Spanish, but in 2025 that shouldn't be a problem for anybody - thanks to LLMs ;-)

Third problem: this goes beyond university work

This situation gives me chills, because we have totally normalized using LLMs to filter résumés, proposals, or reports.

I don't even want to imagine how many users are accepting these evaluations without supervision and without a hint of critical thought.

If we, as humans, abdicate our responsibility as critical evaluators, we'll end up in a world dominated by AI corporatism.

A world where machines reward laziness and punish real human effort.

If your job involves reviewing text and you're using a language model to help you, please read this article again and make sure you're aware and avoiding the mistakes I describe. Otherwise, your evaluations will be wrong and unfair.

The solution to avoid ChatGPT abuse

To make sure students haven't overused ChatGPT, professors conduct short face-to-face interviews to discuss their projects.

It's the only way to ensure they've actually learned, and also, to be fair. If they've used the model to write more clearly and effectively but still achieved the learning objectives and understood their work, we don't penalize them.

In general, when a report smells a lot like ChatGPT, it usually means the students didn't learn much. But there are always surprises, in both directions.

Sometimes, it's legitimate use of ChatGPT as a writing assistant, which I actually encourage in class. Other times, I find reports that seem AI-written, but the students swear up and down they weren't, even after I tell them it won't affect their grade.

Maybe it's that humans are starting to write like machines.

Of course, machines have learned to write like humans—but current models still have a rigid, recognizable, and rather bland style. You can spot the overuse of bullet-pointed infinitives packed with adjectives, endless summary paragraphs, and phrasing or structures no human would naturally use.

Summary: pros and cons of using an LLM for grading

Here's a quick summary of what I found when using an LLM to evaluate student work.

If you plan to do the same, be careful and avoid these pitfalls.

Pros

  • Good at catching obvious mistakes.
  • Correctly identifies whether reports follow a given structure, and usually detects missing elements —though that still requires human review.
  • Extremely useful as an "extra pair of eyes" to spot issues I might have missed.
  • It is a great search engine for asking targeted questions like "Did they use this method?" or "Did they discover this feature of the problem?", and then quickly find the relevant text. But again, beware of hallucinations.
  • Helps prepare personalized feedback or questions for students on topics they didn't fully understand.

Cons

  • Poor adherence to instructions and grading criteria.
  • Incorrect assumptions about nonexistent text. These are not reading mistakes, but "laziness": the model decides not to follow instructions and takes shortcuts. Unacceptable.
  • Hallucinations increase dramatically beyond ~100 pages of processed text.
  • Favors AI-written reports over human-written ones, regardless of technical quality. Or rather, despite their lower quality.

Personal conclusions

Thanks for reading this far. I know it's a long article, but I hope you found it interesting and useful.

This is just a blog post, not a scientific paper. My sample size was N=24; not huge, but enough to form a hypothesis and maybe design a publishable experiment.

I encourage all teachers and evaluators using LLMs to keep these issues in mind and look for ways to mitigate them. I'm by no means against LLMs! I'm a strong supporter of the technology, but it's essential to understand its current limitations.

Do LLM-generated texts contain a watermark, a subliminal signal? So far, we haven't been able to identify one. But I find the topic fascinating.


P.S. For those interested in the technical details, the model I used was Gemini 2.5 Pro. I personally prefer ChatGPT, but the university requires us to use Gemini for academic work —after anonymizing the documents, of course. In my tests, ChatGPT proved far more resistant to hallucinations, so this review may reflect Gemini's particular flaws more than the general state of LLMs. Still, I believe the conclusions apply to all models.

Tags: AI, english, docencia

The end of the winters - of AI

19 de agosto de 2025 — Carlos Fenollosa

Unbridled optimism, unlimited funding, and the promise of unprecedented returns: the perfect recipe for a tech bubble. But I'm not talking about 2025. Throughout AI history, researchers have been predicting the arrival of artificial general intelligence (AGI) in just a few years. And yet, it never comes.

There have already been two major crashes of this kind, giving birth to a new term: the "AI winter."

Today, some experts worry we might be heading into another winter if the current "bubble" bursts. It's a valid concern, but after thinking it through, I believe the framing is off. Even in the worst-case scenario, we'd only be facing an "AI autumn."

1. Is there a bubble?

I do believe there is a stock market valuation bubble: company valuations are out of sync with current profits. And what about future profits? Hard to say, but I still do think valuations are inflated.

Still, the current situation isn't comparable to past ones. Everyone brings up the dot-com bubble or the infamous tulip mania. Back in 2000, absurd valuations evaporated for things like social networks for dogs: cash-grabs with zero real utility.

Today, both the hardware infrastructure and the models themselves have intrinsic value. A friend of mine compared this moment to the American railroad bubble, and I think it's a great analogy. Even if some companies vanish, the infrastructure remains, and regular people will benefit once the market resets.

In fact, if the crazy demand for GPUs cools down, suppliers might be forced to lower prices, which would help consumers. The correction may even be a good thing, as we'll see.

2. What caused the last AI winters?

They came about because big promises of future marvels fell flat. When those promises weren't fulfilled, researchers were left with empty hands and mostly useless models.

But today's models are a different story. Even if they were not to improve a single inch over the next decade, they're already incredibly useful and valuable.

Qwen, Mistral, Deepseek, Gemini, ChatGPT... their usefulness is higher than zero and they won't vanish. Even if AGI never happens, even if these models never improve, not even by 1%, they already work, they already deliver value, and they can keep doing so for decades.

3. What would a bubble burst look like?

Previous winters brought a sharp halt to AI investment. Research groups were gutted, companies collapsed, and progress froze for years.

But today, we don't need massive funding to keep moving forward. Sure, it helps to build data centers and train larger, stronger models. But as I argue in this post (in Spanish), that might not even be the best direction.

If capital dried up, researchers would shift to optimizing what we already have, building smaller models with the same power. They'd explore alternative, more efficient architectures, because let's face it: using a language model to reason is like using a cannon to swat a fly. There's a lot of ground left to cover here.

This scenario, honestly, might be better. Though Silicon Valley might disagree... and maybe they're right.

Conclusion

The idea of a "new AI winter" as we've known it seems pretty much impossible. AI has put on a sweater, it's never going back to the cold. The field has matured and passed the minimum threshold of utility.

So I'd like to coin a new term: the AI autumn. It's a much better fit for the kind of future we might see, and I suggest we start using it!

Tags: AI, english

Twitter is the worst global social network—except for all the others

16 de noviembre de 2024 — Carlos Fenollosa

It seems "bashing Twitter" is the new countercultural trend.

I grew up in Spain in the 90s, and many people either don't remember or nostalgically idealize the credibility of traditional media.

Like many 90s kids, I discovered role-playing games, heavy metal, Japanese anime, and video games. It just so happened that my hobbies turned out to be The Four Horsemen of the Apocalypse. The press and politicians constantly vilified these harmless activities. They didn't understand them, and they didn't want to. It was an easy scapegoat.

Here's a twelve-act essay to prevent us from forgetting how bad we had it and why there is not a better alternative to Twitter.

1. The Dragon Ball Scandal

In the 90s, a heated debate erupted over the airing of Dragon Ball on TV3, the Catalan national TV. I'm pretty sure this controversy may have happened in all countries where this anime was aired.

Politicians threatened to pull the show off the air, claiming it would turn children into violent delinquents.

Today, Dragon Ball is one of the tamest shows on TV and streaming platforms.

Bola de Drac on TV3

Above: Catalan MP Josep Antoni Duran i Lleida denounces violent language in Dragon Ball Z

2. My parents would rather have me drinking than playing Role-Playing Games

At 16, I had to lie to my parents to play RPGs. I'd tell them I was off drinking beer with friends (which, back then, was legal).

Why? Because they got their information from TV and newspapers like everyone else. And what they read was that RPGs were satanic rituals and that "playing RPGs" meant murdering people.

My parents trusted me, always had. But they suffered cognitive dissonance: when your child and every major media outlet say contradictory things, who do you believe?

It's unthinkable to believe that your kid may be right while the entire press is lying.

The RPG Killer on El País

Above: Spanish leading newspaper El País writes about "the role-playing murderer"

3. Then Came Video Games

By the time video games became the next moral panic, I was in university, drawing comic strips for fun. I landed a gig drawing for the youth supplement of the Avui Catalan newspaper.

This was the first strip I submitted. They published it, but needless to say, they didn't call me back.

My strip on Avui

First panel: "Today, on [parody name of a real gossip TV magazine], we will see how [parody name of a real celabrity]'s kids insult each other on her birthday". Below: "True story". Second panel: "Referee, S.O.B [spelled out]". Third panel: "You are a useless wh- [spelled out]". Fourth panel: "It has been widely proven that kids are violent due to video games". In the background: "Psychology congress"

4. Finally, Heavy Metal

Whenever a drunken brawl occurred, and heavy metal was involved in any shape or form, the music was inevitably blamed for the chaos.

Thankfully, I've found press clippings from the time because younger generations might not believe these stories otherwise.

El País blaming Heavy Metal

Above: "Young man dies from a stabbing during the Scorpions concert"

5. My newspaper experiment

In university, I decided to read every newspaper at the kiosk to form my own opinion across the political spectrum. For months, I bought the same newspaper daily for an entire week, moving on to the next title each Monday.

The kiosk owner joked when I bought La Razón and ABC, at the time openly right-wing outlets. When I explained my experiment, he was stunned! "Most people stick to their one preferred newspaper", he said.

Then, I discovered all media has biases, not just ones from "the other side."

But the critical revelation was this: every newspaper had original investigations, crucial for holding power accountable. Yet these investigations not only upset the powerful—they didn't interest people at all!

6. The media entered a death spiral which has been their demise

Because, in truth, what sells is blood and fury on the front page. Newspapers must exaggerate—or outright lie—to survive.

Yes, ideology plays a role in each outlet's bias. But the commercial aspect is key: readers crave outrage, the demonization of "the other side," forcing every action by "them" to be portrayed as villainous.

Otherwise, no one will buy the press or watches the news.

The fanaticism turns into a death spiral: you need unconditional fanatics to make your outlet sustainable, and therefore, you must create them by bending the truth.

7. The big realization: they all lied

As I studied, grew, and matured, I became an expert in some areas, mainly tech-related.

I then discovered something shocking: every article about topics I deeply understood was sensationalist, ignorant, or outright propaganda.

This led to a painful realization: If the media lies about subjects I understand, will they also lie about the ones I don't?

The answer, as I very painfully learned, was "yes."

I stopped consuming traditional media entirely—newspapers, TV news, even online news sites. What began as an exciting project ended in utter disillusionment with journalism.

8. The media denies what my eyes see

In October 2017, in Catalonia, I read articles describing events I had witnessed firsthand. Since I don't want to derail the main argument from this article, and turn it into a political debate about those events, I will summarize all my thoughts during that painful period as: What was published in the press didn't match reality.

Family members who lived in a different region called to check on me, trying to understand the situation. When I explained, they didn't believe me. How could they? I was once again the kid contradicting the entire media.

For them, accepting my version, even though it was firsthand, candid, and independent, would mean acknowledging the media was lying. That's like discovering you're living in the Matrix. Most minds simply can't process it. They kept believing the lies. What a shame.

9. And then came Twitter

Twitter changed everything.

What began as a toy-like social network became the world's leading source of firsthand information.

Yes, it has negatives, but today's not the day to list them. We know them all.

But on Twitter, you can read:

  • Experts
  • Who are independent
  • Recounting events they are experiencing first hand
  • Worldwide
  • At a massive scale

And, on the same Twitter, you can find their opponents:

  • Disproving or debating them
  • With community notes which are displayed at the same level as the OP
  • Which rely on third party sources

This only happens on Twitter. Twitter really is the planet's public forum. There is nothing alike. We may not get another one. And it infuriates traditional media, because they lose control of the narrative.

10. Twitter is a reflection of democracy, the media is a reflection of the oligarchy

I've lived through all this. And I don't believe the quality of information in that old world was better than today's.

So, it fascinates me when people yearn for a return to those times, especially when these people are progressives, not reactionaries.

Twitter isn't perfect because people aren't perfect. There are trolls, toxicity, and extremists because the world has trolls, toxicity, and extremists.

Are you guys new? Before Twitter we had web forums, and before that, newsgroups. Remember "Eternal September"? Remember "Don't feed the troll"?

Such is life. If you believe a world without toxicity is possible, go watch episode 26 of Neon Genesis Evangelion. "Congratulations, Shinji!"

The only way to live in an world which is absolutely catered to your liking is to exist in a liminal white space with nothing else.

Shinji Congratulations

Let's be clear: the media leave Twitter because they are losing the battle.

Don't get me wrong. Twitter might actually disappear, either as an effect of this boycott, due to some technical catastrophe, or something like that. That's entirely possible and beyond our control.

But if it does, let's not kid ourselves: the alternative isn't Bluesky, Threads, or Mastodon. Nor are 15-second-video platforms that rot your brain; but that is a topic for another day.

Twitter isn't just a website or app. It's a community. And without the website, the community will dissolve.

Twitter dissolving

Something new may arise. But the full network will not migrate there, and therefore, it won't play the global role Twitter does today.

Meanwhile, the media will get back control of the narrative.

The alternative to Twitter isn't "a Twitter without trolls." That doesn't exist. The alternative is the media oligopoly: —articles denying events you've experienced.

Let's hope that Twitter does not disappear, then. I don't want to go back to that world.

11. Twitter was indeed better in the past, but it was a mirage

Why can't we have "a Twitter without trolls", then?

Twitter was nicer before Musk, it's hard to disagree with that argument. He gutted moderation, reports go nowhere, and bot spam has skyrocketed.

The problem is that, before Elon, Twitter wasn't sustainable. That "nicer Twitter" existed as a short flash of light, but it would not have lived for long. Musk tried to save Twitter, obviously not out of his goodwill —again, not the point of this article—, at great cost for everybody and for many meanings of the word "cost".

This is the actual point: would you pay a subscription to cover for moderator salaries? Because if you want a Twitter without trolls, you have to pay for moderators. I do pay for Twitter, not because I support Musk —I don't—, rather because I like Twitter so much in spite of me supporting Musk through Twitter.

If you disliking him personally doesn't allow you to support his company, which I think is a perfectly reasonable stance, then leave Twitter.

Either you:

  • Do not use Twitter, or
  • Use Twitter for free, but do not complain about the lack of moderation, or
  • Pay so Twitter can afford moderators.

If you plan on having your cake and eating it too, you're either clueless as to how things work, or a hypocrite.

12. The good news: you can improve your Twitter experience

If you want to stay on Twitter, you can indeed improve your experience.

Do you want to stop seeing nazis, trolls and naggers? It's extremely easy. Follow this three-step guide:

  1. Stop engaging with nazis, trolls and naggers. The algorithm learns from your interactions. If you click on hateful posts, Twitter shows you more hate. It's like Instagram: the ads reflect your preferences, whether you like it or not.

  2. Clean up your timeline. Click here and use the mute/block settings. I've done it, and my Twitter is fantastic.

  3. From time to time, the algorithm will try to show you different content. If something irrelevant or disgusting pops up, click the three dots and mark it as "not interested" or mute the author.

Because, you know what? You can even mute Elon. I know I have. I just dislike what he posts. No hard feelings. If you thought that the point of this essay was to defend Musk, I hope this last argument convinced you otherwise.

Musk muted

The point of this essay is to defend Twitter, because if you give it an honest thought, not having Twitter is a loss for society. Twitter is irreplaceable. I wish it wasn't. I wish we would all magically move to some utopic network without annoying people. But that's not how things work, Shinji. We'd go back to my parents believing that role playing games create murderers.

One point I will concede to the critics: Twitter is the worst global social network—except for all the others.

This is an english version of this twitter thread

You may contribute to the discussion on Hacker News

Tags: internet, news, english, twitter

After self-hosting my email for twenty-three years I have thrown in the towel. The oligopoly has won.

4 de septiembre de 2022 — Carlos Fenollosa

Many companies have been trying to disrupt email by making it proprietary. So far, they have failed. Email keeps being an open protocol. Hurray?

No hurray. Email is not distributed anymore. You just cannot create another first-class node of this network.

Email is now an oligopoly, a service gatekept by a few big companies which does not follow the principles of net neutrality.

I have been self-hosting my email since I got my first broadband connection at home in 1999. I absolutely loved having a personal web+email server at home, paid extra for a static IP and a real router so people could connect from the outside. I felt like a first-class citizen of the Internet and I learned so much.

Over time I realized that residential IP blocks were banned on most servers. I moved my email server to a VPS. No luck. I quickly understood that self-hosting email was a lost cause. Nevertheless, I have been fighting back out of pure spite, obstinacy, and activism. In other words, because it was the right thing to do.

But my emails are just not delivered anymore. I might as well not have an email server.

So, starting today, the MX records of my personal domain no longer point to the IP of my personal server. They now point to one of the Big Email Providers.

I lost. We lost. One cannot reliably deploy independent email servers.

This is unethical, discriminatory and uncompetitive.

*Record scratch*
*Freeze frame*

Wait, uncompetitive?

Please bear with me. We will be there in a minute.

First, some basics for people who may not be familiar with the issue.

This doesn't only affect contrarian nerds

No need to trust my word. Google has half a billion results for "my email goes directly to spam". 
Search any technical forum on the internet and you will find plenty of legitimate people complaining that their emails are not delivered.

What's the usual answer from experienced sysadmins? "Stop self-hosting your email and pay [provider]."

Having to pay Big Tech to ensure deliverability is unfair, especially since lots of sites self-host their emails for multiple reasons; one of which is cost.

Newsletters from my alumni organization go to spam. Medical appointments from my doctor who has a self-hosted server with a patient intranet go to spam. Important withdrawal alerts from my bank go to spam. Purchase receipts from e-commerces go to spam. Email notifications to users of my company's SaaS go to spam.

You can no longer set up postfix to manage transactional emails for your business. The emails just go to spam or disappear.

One strike and you're out. For the rest of your life.

Hey, I understand spam is a thing. I've managed an email server for twenty-three years. My spamassassin database contains almost one hundred thousand entries.

Everybody receives hundreds of spam emails per day. Fortunately, email servers run bayesian filtering algorithms which protect you and most spam doesn't reach your inbox.

Unfortunately, the computing power required to filter millions of emails per minute is huge. That's why the email industry has chosen a shortcut to reduce that cost.

The shortcut is to avoid processing some email altogether.

Selected email does not either get bounced nor go to spam. That would need processing, which costs money.

Selected email is deleted as it is received. This is called blackholing or hellbanning.

Which email is selected, though?

Who knows?

Big email servers permanently blacklist whole IP blocks and delete their emails without processing or without notice. Some of those blacklists are public, some are not.

When you investigate the issue they give you instructions with false hopes to fix deliverability. "Do as you're told and everything will be fine".

It will not.

I implemented all the acronyms1, secured antispam measures, verified my domain, made sure my server is neither breached nor used to relay actual spam, added new servers with supposedly clean IPs from reputable providers, tried all the silver bullets recommended by Hacker News, used kafkaesque request forms to prove legitimity, contacted the admins of some blacklists.

Please believe me. My current email server IP has been managed by me and used exclusively for my personal email with zero spam, zero, for the last ten years.

Nothing worked.

Maybe ten years of legitimate usage are not enough to establish a reputation?

My online community SDF was founded in 1987, four years before Tim Berners Lee invented the web. They are so old that their FAQ still refers to email as "Arpanet email". Guess what? Emails from SDF don't reach Big Tech servers. I'm positive that the beards of their admins are grayer than mine and they will have tried to tweak every nook and cranny available.

What are we left with?

You cannot set up a home email server.

You cannot set it up on a VPS.

You cannot set it up on your own datacenter.

At some point your IP range is bound to be banned, either by one asshole IP neighbor sending spam, one of your users being pwned, due to arbitrary reasons, by mistake, it doesn't matter. It's not if, it's when. Say goodbye to your email. Game over. No recourse.

The era of distributed, independent email servers is over.

Email deliverability is deliberately nerfed by Big Tech

Deliberately?

Yes. I think we (they) can do better, but we (they) have decided not to.

Hellbanning everybody except for other big email providers is lazy and conveniently dishonest. It uses spam as a scapegoat to nerf deliverability and stifle competition.

Nowadays, if you want to build services on top of email, you have to pay an email sending API which has been blessed by others in the industry. One of them.

This concept may sound familiar to you. It's called a racket.

It's only a matter of time that regulators realize that internet email is a for-profit oligopoly. And we should avoid that.2

The industry must self-establish clear rules which are harsh on spammers but give everybody a fair chance.

A simple proposal where everybody wins

Again, I understand spam is a problem which cannot be ignored. But let's do better.

We already have the technology in place but the industry has no incentives to move in this direction. Nobody is making a great fuss when small servers are being discriminated against, so they don't care.

But I believe the risk of facing external regulation should be a big enough incentive.

I'm not asking for a revolution. Please hear my simple proposal out:

  • Let's keep antispam measures. Of course. Continue using filters and crowdsourced/AI signals to reinforce the outputs of those algorithms.
  • Change blacklisting protocols so they are not permanent and use an exponential cooldown penalty. After spam is detected from an IP, it should be banned for, say, ten minutes. Then, a day. A week. A month, and so on. This discourages spammers from reusing IPs after the ban is lifted and will allow the IP pool to be cleaned over time by legitimate owners.
  • Blacklists should not include whole IP blocks. I am not responsible for what my IP neighbor is doing with their server.
  • Stop blackholing. No need to bounce every email, which adds overhead, but please send a daily notification to postmaster alerting them.
  • There should be a recourse for legitimate servers. I'm not asking for a blank check. I don't mind doing some paperwork or paying a fee to prove I'm legit. Spammers will not do that, and if they do, they will get blacklisted anyways after sending more spam.

These changes are very minor, they mostly keep the status quo, and have almost no cost. Except for the last item, all the others require no human overhead and can be implemented by just tweaking the current policies and algorithms.

Email discrimination is not only unethical; it's a risk for the industry

Big Tech companies are under serious scrutiny and being asked to provide interoperability between closed silos such as instant messaging and social networks.

Well, email usage is fifteen points above social networking.

Talk about missing the forest for the trees. Nobody noticed the irony of regulating things that matter less than email.

Right now institutions don't talk about regulating email simply because they take it for granted, but it's not.

In many countries politicians are forced to deploy their own email servers for security and confidentiality reasons. We only need one politician's emails not delivered due to poorly implemented or arbitrary hellbans and this will be a hot button issue.

We are all experiencing what happened when politicians regulated the web. I hope you are enjoying your cookie modals; browsing the web in 2022 is an absolute hell.

What would they do with email?

The industry should fix email interoperability before politicians do. We will all win.


[1] I didn't clarify this at first because I didn't want this article to turn into an instruction manual. This is what I implemented: DKIM, DMARC, SPF, reverse DNS lookup, SSL in transport, PTR record. I enrolled on Microsoft's JMRP and SNDS, Google postmaster tools. I verified my domain. I got 10/10 on mail-tester.com. Thanks to everybody who wrote suggesting solutions, but I did not have a configuration issue. My emails were not delivered due to blacklists, either public or private. Back

[2] Hey, I get it. Surely my little conspiracy theory is exaggerated. Some guy on Hacker News will tell me that they work as a SRE on Gmail and that I'm super wrong and that there are 100% legit reasons as to why things are this way. Okay. Do something for me, will you? Please unread this last section, I retract it. I just needed to get it out of my system. Thanks for indulging me. Done? Good. Everything else above is a fact. Email in 2022 is anti-competitive. The Gmail guy can go explain himself to the US Senate or the European Commission. Back

Tags: law, internet, english

The top 13 actionable learnings to sail smoothly through this startup crisis

11 de junio de 2022 — Carlos Fenollosa

This week I attended Saastr Europa, the biggest SaaS event in Europe. Of course, everybody talked about the current SaaS "situation".

If you couldn't attend, don't worry. I got you covered.

Here are the top 13 actionable learnings to sail smoothly through this crisis.

1. The crash is real for public companies, not so real for early stage.

SaaS as a category is growing.

But none of that matters. Uncertainty and doubt trickles down. VCs are going to be very cautious for the next months.

Plan for that.

2. Bessemer benchmarked SaaS companies YoY growth

  • $1-10M, average 200%. Top 230%+
  • $10-25M, average 115%. Top 135%+
  • $25-50M, average 95%. Top 110%+

Where are you located?

3. Increase runway!

  • Promote yearly upfront payments with an attractive discount
  • Improve collections and renegotiate with vendors
  • Reduce paid mkt spend. Acquisition for the bottom 20% customers is inefficient, quit those

4. On international expansion

Don't think it's a silver bullet to improve your metrics.

Similar to an unhappy couple having a baby. You will not find PMF in country 2 if you haven't found it in country 1.

Do a lot of research with your early customers.

5. On providing professional services

The true value is not in software but in a solution.

Solution = SaaS + PS

Make PS recurring and pay attention to Gross Margin.

6. Logo retention > ARR Churn

Keeping big logos is important, not only strategically but also because it means you have stickiness and are doing things right.

A VP Sales should be obsessive about logo retention.

7. Transitioning from founder-led sales to a sales team is difficult

Early people are hungry and curious.

Later people are focused on results and process.

Move early people to "builder" projects even outside sales to keep them active or they will leave.

8. Measure Customer Success using an honest metric:

  • Slack: messages sent
  • Dropbox: files added
  • Hubspot: features used

CS is the perimeter of your company. Pay close attention to it and you will see the future.

9. Increase your prices!

40% of companies have already done it.

Avg increase by ticket size:

  • $11-25: 18%
  • $500+: 34%

Increases in between follow a linear gradient.

10. Don't try to optimise your tech organisation too early.

Technical debt can kill your company after 10 years. But obsessing about practices and optimising processes too early will kill it BEFORE you make it to 10.

Focus on PMF and iterate fast.

11. Let go of bottom 10% performers

If somebody is a clear underperformer it's a great time to let go of them.

Your team knows who's good and who's not. It will improve overall team morale.

12. Net New ARR > ARR

ARR is too big of a metric and can make slight deviations from the plan seem insignificant

NN ARR allows you to discover future cashflow problems much earlier.

13. USA ≠ EU

You cannot open the USA as "just another country". Reserve around $5M to start operations there.

"Looking too European" is a mistake, so is taking American resumes at face value.

Tags: startups, english

I didn't return my Apple Studio Display

1 de abril de 2022 — Carlos Fenollosa

The Apple Studio Monitor

The Apple Studio Display is, unquestionably, a very good monitor.

But the real question is, should you pay €1,800+ for it?

I have been asking that question myself for the past ten days.

Today I decided that while I can't recommend it, I will not return my new monitor. Here's why.

The Pros

I replaced my Benq 27" 2560x1440 IPS LCD display with the Studio Display. These are the main benefits:

The panel. It is good. It could be better, of course. It could have more modern features, too. But it is a good 5k retina panel.

As soon as I started using the Studio Monitor it felt like I had put glasses on. Every other screen looks blurry now.

The rest of the review is accessory to this experience. It is something that you have to, quite literally, see with your own eyes.

The speakers and microphone. They are fantastic. A big step up from any other speakers I've used on any computer.

True Tone. All other displays look bluish now. Great underrated feature.

It is the best-in-class. Simple as that. Its only competitor is the LG UltraFine, which is not much cheaper and lacks other features. If you want a 5K retina display the Studio Display is the best choice.

The Cons

Like everything with recent Apple, there is no progress without compromise.

The stand is too low. Asking users to pay an extra €460 for an adjustable stand is an insult. Sorry but there is no other way to put it. Therefore, this beautiful piece of hardware now stands on top of an ugly PHP reference manual.

Apple, if you ship a monitor with a non-adjustable stand in 2022, please make sure that the default height is at an ergonomic level. It should be at least 5-8 centimeters higher. Since Apple is the company which cares the most about accessibility, no sarcasm here, we can only conclude that this was either a punitive or aesthetic decision.

The screen. It is glossy like all Apple displays. For me this is the first glossy display I've used, so it stands out.

I now notice distracting reflections when working with a dark app. I would have liked to test the nano-textured glass, but I am not going to pay an extra €250 on top of the €1,800.

The speakers. They have too much bass. All audio is artificially deep. For music this is not an issue, but for video conferences it makes every person sound like James Earl Jones.

Clearly Apple never tested for this use case, because they hate video conference users as we will see below.

It doesn't bother me too much, but I wonder why the speakers couldn't sound more natural. It is not a defect of the hardware. Somebody made an odd decision.

The Don't Cares

High brightness. 600 nits is really bright indoors, but if you need such a high brightness level it means you have other problems. If you are in an extremely lit room, maybe with direct sunlight, the reflections will overpower the display brightness.

Good feature, but unlike on a laptop, it doesn't make a difference.

USB-C hub. If you use an Apple laptop you need an external Thunderbolt dock anyway.

I still have six devices which require USB-A and only one which requires USB-C. Therefore, they are plugged to my dock. The extra USB-C ports on the Display remain unused.

It is a nice feature, don't get me wrong, but in 2022 we are not yet in a world where you can ignore USB-A. That is the truth, even if Apple doesn't like it. I know I am asking for an impossible, but if they wanted to make the USB hub useful, they should have included USB-A ports on this monitor.

Non-detachable power cable. I guess it should be user replaceable, but I've never, in my 30 years using computers, have a monitor power cable fail me. It's a non-issue.

That said, mark my words, I hope I don't have to eat my hat in three years.

No buttons or controls. I guess this is a good feature and it does make the display more beautiful, but I really don't care. Hey, this is my review!

The Cruelty

There is a product manager at Apple who, for some reason, hates webcam users with a burning passion.

They despise them so much that they wish they could personally slap each and every webcam user in their ugly, vassal faces.

Since that is physically impossible, they decided to incarnate that slap into the worst webcam Apple has ever shipped.

I compared the 2020 Macbook camera to the 640x480 VGA camera of my 2006 Nokia 5200. Believe it or not, this webcam is worse.

Apple picked up the worst lens SKU they had in stock and hopefully due to a bug they decreased the quality of the image processing pipeline. And this is on an expensive monitor with plenty of physical space to fit a big, quality lens.

WHY, APPLE, WHY?

Gruber found the perfect adjective: cadaveric.

I kid you not, the first call I did with my new monitor, the colleague at the other end, who sees me every day, asked me if I was sick.

For the love of all that's good, Apple, if your webcam can be even slightly fixed with software, please do it.

The Veredict

I was not only ready, I was eager to return this monitor.

I had been keeping some notes where I was compiling my thoughts to help me make a decision.

At the bottom I wrote down what I would do with the return money. "Surprise my wife with an expensive vacation". "Buy new water heater". "Get an electric bike". "Buy two 4K monitors".

But I knew that, below all layers of cynicism and anger, I had to be fair and make a rational decision.

Before putting the monitor back in its box, I asked myself the questions that really matter when making a purchase decision.

  • Improvement: Is this monitor better than my current one?   YES
  • Value: Can I get a better one for that same price?   NO

And I did something else: I plugged the Benq back and used it for ten minutes.

Nope.

  • Need: Am I willing to go back to my 27" Benq?   NO

It's either this or glasses

Once you try the Studio Display every other monitor makes you feel like you need glasses —Apple, feel free to use this benefit in your marketing copy.

I'm approaching 40 and I am starting to realize that my sight is deteriorating a bit. I can see very well, but I find it more difficult to read small text at a distance.

The Studio Display fixes that. I do not need to increase font size anymore. The text rendering is so good that I can continue reading 12pt websites at an arm's distance.

Had I not used it for ten days, my frame of reference would be the same, and I would not "miss" a feature I didn't know existed. I would be happy with my Benq, increasing font size when needed, adjusting to my diminished visual abilities.

Wait, I know what you're thinking. You could have shown me this article ten years ago and I would've dismissed it. "Old people problems", I would've said, "an exaggeration".

But I can't go back. Apple pundits often say that "Apple ruined them with Retina", and I understand it now. It is something you have to experience.

Apple, why do you make this so difficult?

Of course the price tag is expensive. But it's not about the money, it's Apple's bizarre design decisions.

I can understand a compromised monitor for €900. But I can't understand a compromised one for €1,800.

Therefore, my recommendation for you as a reader is that you do not buy it, unless:

  • Money is no issue, you only go for quality, not value. In that case, get the adjustable stand too, and maybe the nano-textured glass.
  • You really do need a retina screen because you are starting to notice blurry pixels on regular monitors.

Marques puts it very well. The Apple Studio Display is not a good deal.

Unfortunately, it is the only deal.

As for me, there is no salvation. I am ruined by Retina.

You win again, Apple.

I just wish you didn't make every new product a battle. Please, let me buy a product and be happy afterwards without reservations.

My setup

Here it is, on top of the ugly PHP book. This setup will remind me every day for the next ten years that an Apple PM decided that not suffering from neck pain should be an €460 upsell.

Tags: apple, hardware, english

Do you feel like Google search results keep getting worse?

16 de enero de 2022 — Carlos Fenollosa

If you feel like your Google searches are less and less effective, you are not alone.

Michael Seibel, partner at YC and a very good technologist, wrote a Twitter thread which generated thousands of comments on HN

The Internet before Google

You may remember the pre-Google internet, where it was difficult to find content online. Information was spread between the web, gopher, BBSs, newsgroups, and more.

Most webs had a Links section where webmasters recommended similar sites. Thus, whenever you found an interesting page you could discover more like it.

Then directories appeared. Yahoo! started as an index which grouped webpages by topics. Geocities created communities based on interests.

A few years later, search engines as we know them today appeared. Altavista had pretty good search results for the era, but Google disrupted the industry very quickly.

You know the story: they were not the first, but they established themselves as the leaders thanks to the quality of their results. Their founders, Larry Page and Sergey Brin developed the PageRank algorithm at the University of Stanford.

Yes, Google is a successful spin-off from a research department, created by nerds.

The decline of search results

Google has continued advancing their technology, of course. So it seems like it wouldn't make sense that search results get worse instead of better.

What started with a "simple" algorithm which used hyperlinks to establish website authority has been getting more and more complicated.

There are two main reasons:

  1. The need to understand what the user means and not what they write
  2. SEO strategies have converted the first page of Google results into a global war

Internet gets popular. The common denominator

In the beginning most of the web users were technically inclined. That is no more, especially with the popularization of the smartphone.

People stopped searching by keywords, and started searching by natural language sentences in all languages in the world.

Therefore, Google must understand the intent of the search given a user query. They use Artificial Intelligence techniques, but that means sometimes they ignore important parts of the query.

For example, ignoring niche words, interpreting correct spellings as typos of a more popular word, changing the meaning of sentences, and more.

The search for this common denominator improves overall user experience at the expense of decreasing the quality of certain searches.

In summary, we all had to learn how to search by keywords many years ago. Google now has learned natural language, and some users will need to re-learn how to use search again.

Ecommerce and product searches

Ecommerce is on the rise. More and more users now search for products and services. Businesses have a great incentive to appear on top of the search results.

In 1998 we searched for information about our hobbies. In 2022 we search to shop. Regardless, our visits to websites are monetized in some way.

SEO techniques try to reverse engineer Google algorithms to appear on top of organic searches. Everybody is gaming the system in their favor.

It is a cat and mouse game where Google does its best to provide a good experience, but in the end, they are judge and jury. Because...

Google is also the top advertiser in the world. Business use SEM to promote their services, and the incentive for Google is to promote SEM results, as they are the ones bringing money to the table.

In the end, everybody is getting worse results. We see aggregator sites which add no value, webs optimized for Google instead of the visitors, and plain scams.

Are there alternatives?

That is a good question. What can we, as users do to improve this situation?

I have been researching alternative searchers and, unfortunately, I don't think they're as good as Google.

First of all, there are only two real alternatives: Bing and Yahoo!. Most of the so-called "alternative search engines" are providing results directly from one of the three above. They are just a layer of paint on top of the Big Three.

There are niche, 100% independent search services which try to replicate the Google of the 90s, but they are very limited. Try them!

In another universe we can find regional search engines who actually are more popular than Google in specific geographies. Yandex (43% in Russia), Baidu (76% in China) and Naver (85% in South Korea).

They are not really useful for an American or a European, but it's good to know that they're there.

You may ask yourself, why are there not more alternatives? The truth is that building a search engine is a humongous task, especially in a mature market.

Re-learn how to use Google

My personal recommendation is that you re-learn how to best use Google.

Remember to use the advanced search options.

Log in when searching, because Google uses AI to improve your searches based on past history. The more you search, the better your results will be.

In summary, nobody can trump Google, at least in Western countries.

If you are not satisfied with the quality of search results try some alternatives, but don't expect anything revolutionary.

Get acquainted with the "new Google" and use it for your benefit.

Adapted from my Twitter thread. Follow me on Twitter or subscribe for more!

Tags: internet, english

Quantum computing keeps advancing, and it looks spectacular

4 de enero de 2022 — Carlos Fenollosa

About a month ago IBM introduced the Eagle, its first 127-qubit quantum computer.

And it's breathtaking, both on the inside...

... and the outside

Interestingly, this is not just frivolous design. Besides the futuristic looks, quantum computers require some very peculiar architectural designs.

What makes quantum computers special

Regular computers like the one you're using right now store data in bits. You know, zeros and ones. Bits are electric signals transmitted between electronic components, like transistors.

Quantum computers also use the binary system, but they store data on a different medium. They use particles such as electrons or photons, or superconductor cable loops.

These materials are chosen because they have two quantum features which are required, well, to make quantum computers work.

1. Superposition, or the ability to store different status at the same time. Two bits allow the storage of a small number between zero and four. Two qubits allow the storage of four simultaneous numbers. That's four times as much information.

2. Entanglement, or sharing "data" between qubits. Regular bits are independent, but the status of one qubit can influence another qubit.

Interesting applications

The math and physics are complex, but in summary, quantum computers can handle a huge amount of data. They make current supercomputers look like pocket calculators.

That makes them especially useful to solve problems which can only be solved by testing multiple combinations of numbers. For example, drug discovery, cryptography, planning and routing, weather forecast, etc.

You may realize that those are the same problems where we are applying Artificial Intelligence nowadays. That's no coincidence. AI is a technique to solve complex problems with a bit of intelligence, while quantum computers can bruteforce the solution. And both methods can be useful and complementary depending on the situation.

Quantum is the future, but not the present

While the technology is still immature, scientists are preparing for a world with widespread quantum computing capabilities.

In this world, traditional computing will become obsolete, a lot of problems will need to be reassessed, and others will appear.

Who knows? Maybe in thirty years you will be reading my blog on a quantum cellphone... or whatever it is we will use then.

If you want to learn more, I recommend this article in Nature, this introduction to quantum computing in NewScientist and the very enjoyable TV drama about quantum computers Devs

Adapted from my Twitter thread

Tags: hardware, future, english

No notebook is perfect, but the reMarkable comes really close

21 de noviembre de 2021 — Carlos Fenollosa

The reMarkable is a premium e-ink notebook. Imagine a Kindle, but you can write on it.

It has become my daily notebook. I take all my meeting notes on it, dump my ideas and designs, and carry it with me everywhere. As a bonus, it also has replaced my Kindle and my relationship with ebooks and "read it later" in general.

I have been using a reMarkable for six months. It is a great product, but the 500€ price point is probably double than most people would be willing to pay for.

This article aims to answer one single question: should you buy one, and pay more than an iPad, which has more features?

The price tag and the 30-day return window

The reMarkable store gives you 30 days to return it if you're not satisfied. Were it not for this option, I would have never bought one.

During my first weeks of use I couldn't stop considering returning it. To organize my thoughts I created a note on the reMarkable where I dumped my raw impressions.

On top, with big letters: "Should I return it?". Below that, random thoughts. "I enjoy it. Magical things happen when you write on it". "557€". "Pen feeling is ok very good". "Don't think of the money". "Disappointed with the OCR". "Good for reading but not great"

When approaching the end of the return period I asked myself, "if this product cost 200€, would I return it?". Definitely not. "Do I enjoy my interactions with the reMarkable, even if it's not perfect?". Definitely yes.

So I opened my thoughts note, and at the bottom, with fancy calligraphy, I wrote: "I'll keep it!"

Six months later, and with the price tag long forgotten, I'm glad I did.

The reMarkable as a notebook

👍🏼 On the plus side:

The writing experience is excellent. This is indeed the most critical aspect of the product. The reMarkable is a fantastic notebook.

It does really seem like you are using pen and paper. There is almost no lag when writing, the text is crisp, and the texture of the screen is even better than those of a Wacom.

Perfect size. Big enough to write long lines and diagrams and have plenty of space, yet a bit smaller than an A4 which makes it fit everywhere.

The pen tips last long enough. I had the feeling that I would need to replace them too often, but that's not the case. My first tip has lasted for 6 months of daily use.

The filesystem and document management is simple and works well. Syncing cloud stuff is a difficult task and I was somewhat afraid that it would be unreliable. It works well and any time that the sync failed I've been able to retry and make it work.

In general, the reMarkable software does not do a lot, but what it does, it does well.

You can use it as a whiteboard with your computer. I had a Wacom but the reMarkable retired it. It can "project" your current page to the reMarkable app on your computer. You cannot use the pen as an input device directly, but this compromise works well when you are doing e.g. a video conference and want to draw something and share it with colleagues.

It is distraction free. If you buy an iPad you get more features, but you will be tempted with distractions when you are working. An iPad replaces a computer. The reMarkable replaces a notebook.

It really does make you more creative. The fact that you can easily erase and move elements on the page and work with layers allows you for a more creative thought process. You are not constrained by a permanent pen on paper or having to erase and rewrite with a pencil. I am regularly sketching new ideas and designs much quicker and easier than with a regular notebook, a blackboard or a computer.

You can bring it to interactions where using an iPad would be rude. Because it is so clearly a notebook and not a computer you can use it in places where it would be rude to pull out a phone, iPad or a laptop.

As an example, I recommended the reMarkable to a friend of mine who is a psychologist, and they use it when talking to patients. I bring it to very important meetings where having a "computer" on the table could suggest a lack of attention or respect to the other party.

Writing on the reMarkable. Note the quick response to the pen and the audio of the writing experience.

👎🏼 However, the reMarkable as a notebook has one big drawback and some minor aspects to improve.

The OCR is useless. This is the most disappointing aspect of the reMarkable. Yes, it has OCR and it is of acceptable quality, but it doesn't work the way it should.

On the reMarkable, OCR needs to be invoked manually and the output text is then sent by email as a plain txt file. If you were hoping for it to work like ocrmypdf you will be disappointed.

To be useful, OCR ought to happen automatically, and should keep the converted text linked to the page graffitti as a reference. If that is too complex, at least add the recognized text as metadata so that the handwritten notes can be searched.

One of my main time sinks is to tidy up my handwritten meeting minutes into a computer document. I was hoping that my reMarkable would solve that and I only had to edit the OCR errors, but that was not the case. I still have to manually type my notes to a document afterwards.

Not having searchable notes was almost a deal-breaker for me, and I still have hope that this behavior will be implemented in the future as an update.

The eraser tool could be much improved. You can either select an area to delete or drag the pen and delete areas below it, but you cannot delete strikes.

Syncing should be more proactive. To sync your changes, you need to (1) close the current document, (2) wait for the reMarkable to connect to wifi, (3) wait for the sync to finish.

This means that the opened document you are working on will not sync unless you close it. I understand this is done to save battery, but I feel like the reMarkable should still wake up the radio and sync the current document every 15 minutes or so.

The accessories are expensive. You must use a pen with the reMarkable. It should be included in the base package, and the only reason it isn't is to reduce the price tag on the homepage. That feels a bit dishonest. The comparison with the iPad doesn't hold, because the iPad is not a notebook. Therefore, the base price of the reMarkable is $450.

The pen with the eraser is unreasonably priced and nobody should buy it since the eraser is no good anyways.

Regarding the cover, it is more necessary than on other tablets, because you can't risk damaging or even slightly scratching the soft screen. The sleeve is $70 and the book-like cover is $120.

This sets the real price of a reMarkable between $520 and $670.

The reMarkable as an ebook reader

The reMarkable is a fine ebook reader which supports both pdf and epub files. It has no backlight, but I don't find that an issue as I don't read in bed.

Transferring and organizing files is super easy and much more convenient than on a Kindle or iPad. The desktop or mobile app allows you to send any document to the cloud, which will quickly sync to the reMarkable.

I have made a habit of exporting interesting articles or even long emails to pdf and sending them to the reMarkable. It is my "read it later". After many years of struggling with a good solution for this use case, I am very happy with the result.

The size is definitely on the larger side if you are used to smaller Kindles, but it has its benefits, especially when reading PDF files.

If you are familiar with dedicated ebook readers, you will miss a dictionary, bookmarks and annotations. You can highlight parts of the text, but there is no index of annotations anywhere. This makes it unsuitable for some types of editing and annotated reading.

Finally, in case somebody from reMarkable reads this, please fix your gesture to turn pages. I find myself needing to do the gesture up to four or five times until it works. This is a bit annoying when writing, but very prominent when reading ebooks. I would appreciate a setting or a mode where you can turn pages just by tapping on the margins, like other ebook readers.

Other thoughts

The battery life is excellent. You do not need to worry about it. It lasts between one and two weeks. Remember to use the sleep button for a better battery experience.

You have root access. The reMarkable is a proud Linux computer and you can SSH into it. You can install third party software. However, that software is not very polished, and sometimes even experimental, so I ended up using the official apps. Just be aware that if you're felling brave you can install other notebook apps and ebook readers, some games, new templates, and even make the pen a real input device for your computer.

They are moving towards a subscription model. After reading about it, in my opinion, you don't need the subscription. Google Drive and Dropbox integration are not necessary because the provided cloud service works well. The handwriting conversion is moot as explained above. Screen share is nice to have but it's one of those use-once-or-twice-every-year things. If you choose to pay for the subscription you get a discount on the device, so both options are good.

The option to connect an external keyboard would be killer. Of course, the main use case is to write with a pen. However, given that this is a distraction-free device, the option to behave essentially like the screen of a typewriter would be much appreciated by writers and minimalists.

The magnetic snap of the pen is very addictive

Should I buy it?

The reMarkable is a brilliant device that will replace your paper notebook and, unless you are an advanced user of ebook devices, your ebook reader. It is the ideal companion to a laptop.

Having a reMarkable at hand makes you more creative and you will want to carry it everywhere. The experience of writing on the reMarkable is far superior to pen and paper and even iPad-like tablets. It provides a distraction-free environment with a much better handwriting experience.

It is very easy to upload and download data from it and you will find yourself sending longer articles to the reMarkable to read later. However, it will not solve the problem of typing up handwritten notes on a clean computer document.

The price tag is very high, but there is a 30-day return guarantee, and you will really enjoy using this device.

Update: November 2023

I wrote this article in November of 2021, which means I've been using my reMarkable for about 1,000 days.

It's a great conversation starter. When people see me using it, they seem to recognize it from online ads and ask if they can try it by themselves. I indulge them, of course. Without exception, their mind is blown: this feels like paper, they say. It does.

Inevitably, when they ask whether they should buy it because it's so expensive, I always answer the following: if mine broke, I'd buy another one instantly. Therefore, if you can afford it, it is a great investment. 1,000 days later, many other e-ink notebooks have appeared, and none beats the reMarkable at being a notebook.

Tags: hardware, life, english

The M1 Macbook Air, one year later

4 de noviembre de 2021 — Carlos Fenollosa

This article is part of a series:

  1. Seven years later, I bought a new Macbook. For the first time, I don't love it
  2. How I moved my setup from a Mac to a Linux laptop
  3. Fed up with the Mac, I spent six months with a Linux laptop. The grass is not greener on the other side
  4. This article

Ah, the life of a regular user. All the cool youtubers are rushing to publish their reviews of the new and shiny Macbooks Pro, and here I am with my review of the year-old M1 Macbook Air.

(If you want to watch some great MBP reviews, I recommend the ones from Lisa and Dave)

Since I'm not a reviewer, I'm going to do something unusual and probably more interesting.

I am going to compare the 2020 Air with the 2013 Air as it was released.

2020 vs 2013

The TL;DR is that the 2020 is a 9.5/10 but the 2013 was a 10/10. I was in love with that machine since day one until the day I retired it.

Of course, any nitpicks I will mention don't really matter and they are outshined by the fact that it's a fantastic machine and there is no other consumer laptop that comes close.

Let's start with the things where the 2020 is better than the 2013:

  • Mind blowing battery life under normal and low use. You can easily get 14-16 hours when web browsing, writing or streaming. The 2013 used to get 10-12 with low use, and 5-7 with regular use, but this is incredible.
  • Great battery life under moderate load, about 7-10 hours. The 2013 suffered when the CPU was stressed and dropped to 3-4 hours.
  • The Retina screen is really nothing out of the ordinary nowadays, but it shines when compared to the TN panel that the 2013 had.
  • The speakers are incredible for a laptop this size. The 2013's were not bad for the time, but these are much better.

Now, some aspects where both machines are equivalent:

  • The SSD is quite fast, applications launch quickly, the system is very responsive
  • The webcam is acceptable
  • The keyboard and trackpad are both great
  • The version of macOS included on release was a bit buggy but it improved with the following release
  • The 2020's form factor is nice and compact, and the 2013's also was when compared to contemporary laptops

And finally, a few issues which are unique of the 2020:

  • The battery is degrading at the speed of light. After only 56 cycles the health is at 85%. My usage pattern is similar to the one I had with the 2013, and it took four years before I had to replace it.
  • Speaking of which, it has a non-user-serviceable battery or SSD. I had to swap both on my 2013 and I dread the moment this laptop completely dies because of SSD degradation.
  • The port selection sucks and it took me 4 tries to get a good USB/Thunderbolt dock
  • Speaking of which, the headphone jack is on the wrong side
  • External monitor EDID management is buggy and many LCDs look blurry. The 2013 had no issues with this.
  • External USB drives behave erratically. Sometimes they mount and unmount instantly, other times they take multiple minutes to mount/unmount
  • Emulation of Windows systems is in a bad state. I have multiple Virtualbox images which replicate older computers I used when I was a kid, for nostalgia reasons, and they stopped working.

Overall, some of these items are related to the Apple Silicon, others are related to the form factor, and others to software. It doesn't matter. The experience is perfect but not flawless.

I am, however, very hopeful for the future, so I don't really mind.

What about Pro users?

From my analysis of the 2016 Macbooks Pro:

[Apple] Ask your own engineers which kind of machine they'd like to develop on. Keep making gorgeous Starbucks ornaments if you wish, but clearly split the product lines and the marketing message so all consumers feel included.

The 2020 Macbook Air is clearly a consumer laptop, and the 2021 Macbooks Pro are undoubtably a Pro laptop. We are back to the famous four-product matrix.

That is probably the most important aspect of the Great Contrition that Apple is going through, and not many Apple pundits have talked about it.

The fact that consumers can buy a great laptop for 1000€ is fantastic. But even better is that Pro users now have the option to spend a lot of money on a machine which is leaps, not steps, ahead of the consumer one.

Speaking of price:

Many iOS apps are developed outside the US and the current price point for your machines is too high for the rest of the world. I know we pay for taxes, but even when accounting for that, a bag of chips, an apartment, or a bike doesn't cost the same in Manhattan than in Barcelona

Non-US salaries make it a bit difficult to justify the expenditure on a 2021 Pro laptop, but anybody can develop iOS apps on a sub-1500€ Apple computer.

Finally, a laptop I can recommend

I can safely recommend the 2020 Air to any non-technical person who asks me which laptop they should get. More importantly, I am now confident that the next 10 years of Apple hardware will not disappoint me. I will not need to keep fumbling with Linux laptops unless for fun.

Furthermore, for price-sensitive Pro users, the Air is still probably the best bang for your buck.

Honestly, I really don't know if I consider myself a "Pro" anymore. I am a power user but I definitely don't need superfast CPUs, tons of RAM, pixel-perfect screens or eardrum-breaking speakers.

But boy, am I glad that users who need those finally can have them. This one is for you, congratulations!

 

The story ends here. Did you read all previous chapters?

  1. Seven years later, I bought a new Macbook. For the first time, I don't love it
  2. How I moved my setup from a Mac to a Linux laptop
  3. Fed up with the Mac, I spent six months with a Linux laptop. The grass is not greener on the other side
  4. This article

Tags: apple, hardware, english

Fed up with the Mac, I spent six months with a Linux laptop. The grass is not greener on the other side

2 de abril de 2021 — Carlos Fenollosa

This article is part of a series:

  1. Seven years later, I bought a new Macbook. For the first time, I don't love it
  2. How I moved my setup from a Mac to a Linux laptop
  3. This article
  4. The M1 Macbook Air, one year later

Due to very bad decisions by Apple's product marketing teams, Mac hardware and software had been in steady decline since 2016.

Therefore, there has been a trickle of articles on the Geekosphere about people switching from Macs to Linux or Windows.

This is the contrarian view. Don't do it.

The TL;DR is right there in the title: migrating to Linux is fine, but don't expect a better experience than the Mac.

My experience with the Dell XPS 13" Developer Edition was positive in general, including a self-hosted Cloud setup, but not good enough to convince me to stay with it.

We will cover:

  1. A comparison of generic productivity software: email, calendar, image manipulation, etc.
  2. Available power tools to customize your keyboard, trackpad, and more.
  3. A quick jab at decades-old issues which still haven't been solved.
  4. Misc stuff that Linux does better than the Mac.
~~~~~

I feel like I need to clarify that this is an article aimed at Mac users who are considering a migration to Linux in hope of a more polished system. As usual, personal experiences and requirements are subjective. I know that Ubuntu ≠ Gnome ≠ Linux. I also know that I'm not entitled to anything, everybody is welcome to send patches. Just let me say that if you try to cherry-pick any single issue, you're missing the forest for the trees.

~~~~~

Linux productivity software is fine, but there are rough edges for the power user

The typical disclaimer when recommending Linux to a Mac/Windows user is that some proprietary software may not be available, like MS Office, Photoshop, games, etc.

Nobody says, "the main problem you will find with Linux is that email and calendar clients fall apart when you scratch under the surface."

It is truly ironic because I ran MS Office with Wine and it worked well but I was unhappy with my email workflow.

Yes, the apps I missed the most from the Mac were Mail.app, Calendar.app, and Preview.app.

I am an extreme power user, to the point that many of the keys on my keyboard don't do what the keycap says. I want my apps to let me do easy things fast while allowing me to do complex tasks with a bit of extra work.

I send and receive maybe 100 emails per day. Most of them are HTML, with attachments, video conference invitations, and such. I don't live in a vacuum. I can't ask my clients to send me plaintext email only. I need to send long emails with pictures, I want my zoom invites to appear automatically in my calendar.

For some reason Mail.app gets a lot of criticism, but it does almost everything well. It has conversation view, search is fast and helpful, multiple accounts are combined seamlessly including autodetection of the "From" field based on the recipient, and smart folders (search folders) are updated when you need them.

On Linux, the only email client with a native "conversation view" is Geary, which is in early development and still very buggy. Evolution is fine and well-integrated with the rest of the desktop apps, but the lack of conversation view was a deal-breaker for me. Thunderbird is an excellent email client, but conversation view is provided by a plugin that is also buggy. Other options like Claws, Sylpheed, Kmail, and terminal clients are more limited in terms of features and don't work for me.

I ended up using Thunderbird, but I felt like I was doing my email with handcuffs. Suffice to say, I had both Thunderbird and Gmail open and used either one depending on the task I needed to complete.

The situation of calendar and contacts clients is similar, with the same contenders. I also ended up using Thunderbird along with Google Calendar.

About PDF and basic image management, anybody who has used Preview.app will realize that it's much more than just a viewer. There is simply no replacement on Linux. You'll need to open either the Gimp or Xournal for any basic editing. I am an advanced Gimp user, but for most operations, Preview.app is faster and more convenient.

Desktop notifications are something we don't think a lot about, but a bad system can be very annoying. Gnome has a system-wide framework, which is not well thought in terms of dealing with the actual notifications.

Most apps have their own notifications system which runs in parallel, especially Thunderbird and Evolution. You end up with different types of notifications on different parts of the screen, and a non-consistent UI to deal with them.

Finally, on the Mac, you can find an ecosystem of alternative paid PIM apps, like Spark, Fantastical, Things, and others. There is no equivalent ecosystem on Linux, probably because they would be difficult to monetize.

Power tools are more limited and more difficult to use

The previous section could be summarized as "Linux PIM software is fine in general, but gets in the way of power users."

That is counterintuitive, right? Linux is a much nerdier OS than the Mac and everything is customizable.

But when you jump from theory to practice, at some point you just want a tool to help you set up your config, without the need to edit your trackpad driver source file.

Any advanced Mac user knows about Karabiner, BetterTouchTool, Choosy, Alfred, Automator, and more.

With Linux, you can achieve almost the same feature set, but it is harder and more limited.

For example. To customize your keyboard, you will need a combination of xdotool, xbindkeys, xcape, xmodmap and setxkbmap to capture some event and then run a shell script. There is a Gnome Shell plugin that allows you to tweak your keyboard, but it's nowhere near Karabiner.

If you want to achieve some specific action you need to read four or five manpages, search online, and figure out how you are going to put the pieces together. That made me appreciate Karabiner and BTT much more.

Furthermore, I couldn't find a real alternative to BTT to customize trackpad multi-touch gestures. I tried a few approaches with libinput-gestures but none worked.

In the end, I was able to replicate most of my macOS power tools setup via input hooks and shell scripts, but it took much longer than it should have. I found it surprising that, given the number of nerds using Linux every day, there are no specific tools equivalent to those mentioned above.

"I Can't believe we're still protesting this crap"

Please allow me to make a bit of fun of issues that existed back in 1999 when I started using Linux and still exist today.

  • Screen tearing with the intel driver. Come on. This was solved on xorg and now with Wayland it's back. I fiddled multiple times with the settings but couldn't fix it. Even with OpenBSD it was easier to fix. The default settings should be better. I don't care if the video driver will use an extra buffer or whatever.
  • Resolving new hosts is slow, with a delay of about 2-3 seconds. I tried to disable IPv6 and other tricks from Stackoverflow threads, but none solved the issue completely. Again, an issue with the default settings. macOS does some DNS magic or something and the network feels much faster.
  • Resuming after suspend seems to work at first. As soon as you start to trust it and not save your work before closing the lid, it betrays you and you lose your work. Later, you upgrade the kernel and it works all the time for weeks until you upgrade the kernel again and it goes back to working 80% of the time. What a mess.

We've come a long way with Linux on the desktop but I think it's funny that some things never change.

Linux also hides some gems

I want to end this review on a positive note.

During those six months, I also took notes on apps and workflows that are still better on Linux.

  • Tracker/search is better and faster than Spotlight. It's a shame that not all apps take advantage of it, especially Thunderbird.
  • Firefox is amazing. On the Mac, Safari is a better choice, but I was very happy using Firefox full-time on Linux. I am going to miss some great plugins, like Multi-account containers, Instagram-guest, Reddit Enhancement Suite, and of course NoScript and uBlock Origin
  • Nautilus is better than the Finder. It's not even close.
  • The Gnome Shell Extension Gallery has many hidden gems, like Nothing to say which mutes the microphone system-wide with a shortcut, the Emoji selector, Caffeine to keep your computer awake, a Clipboard manager, and Unite to tweak basic UI settings. I am now using macOS equivalents to those, and I discovered their existence thanks to the Linux counterparts.
  • Insync for Linux is better than the official Google Drive File Stream for the Mac. In fact, I am now using the Mac version of Insync.
  • Gimp and Inkscape are excellent apps, and it's a pity that the macOS ports are mediocre. I'd rather use them than Pixelmator/Affinity Designer. Hopefully, someday either GTK or these apps will get decent macOS versions.
  • apt-get was a revolution when it was released in 1998 and it is still the best way to manage software today. brew is a mediocre replacement.
  • I paid for Crossover which allowed me to use MS Office and other Windows apps I needed. Kudos to the Wine developers for almost 30 years of continuous effort.
  • Xournal is an obscure app that allows you to annotate PDF documents as well as draw with a Wacom tablet. I used it constantly as a whiteboard for online presentations. The macOS port is very buggy, unfortunately, so I use OneNote which is not that good.

Hopefully, the success of paid tools like Insync or Crossover can encourage the developer ecosystem to continue developing quality apps, even if they are non-free, or supported by donations.

What's next?

Watching the ARM Macs keynote

On November 10th Apple showed us the future of the Mac and released again laptops worth buying. So I bought the 2020 M1 Macbook Air. You will read a review of it soon.

The hardware is much better than the Dell's and, I guess, every other PC laptop. The software ecosystem is a big improvement over my Linux setup, and Big Sur course corrects the absolute mess that Catalina was. With every passing year, the iCloud offering keeps getting better, especially if you have other Apple devices.

I am somewhat sad that I couldn't join the Linux Resistance. After all, I've been an annoying proselytizer heavy free software advocate in the past, and I still am, though I nowadays admit there are many nuances.

The experience of using Linux as a daily driver has been very positive for me, but I do need my productivity. I can work much faster with macOS and iCloud than I was with Linux and my self-hosted cloud setup.

If there ever was a period where the Mac experience was worse than Linux, it is now over. The Mac ecosystem wins again. Don't switch to Linux expecting it to have fewer papercuts than the Mac. It's quite the opposite.

There is definitely grass on the other side of the fence, but it is not greener.

 

Continue reading...

  1. Seven years later, I bought a new Macbook. For the first time, I don't love it
  2. How I moved my setup from a Mac to a Linux laptop
  3. This article
  4. The M1 Macbook Air, one year later

Tags: apple, linux, english

Whatever Clubhouse is, they are onto something

21 de febrero de 2021 — Carlos Fenollosa

I've been following Clubhouse for a few weeks. As a podcaster, it piqued my interest. So it's like podcasts, but live?

The official slogan is drop-in audio chat. But that's not good. It only makes sense once you've used the app, and it doesn't describe the whole thing.

For me, the perfect definition is: it's Twitch for audio. But then, you need to know what Twitch is.

Yesterday I received an invitation and finally got to try it first hand. And I think that Clubhouse is onto something.

Radio vs Podcasts

Everybody knows radio. Even during this Internet revolution, it still has survived. Why? Because it's convenient. You tune in to some station and listen to music or people talking. It requires zero effort.

Radio has two problems: the fact that it's live, and the selection of topics.

Nowadays it's easy to download aired shows, so if you really like some program but you missed it when it was live, just go to their website and download the mp3 file.

However, the selection of topics still is an issue. Due to the fact that a station is a business, and that its model is airing ads, it requires volume. Therefore most radio stations produce mainstram content.

With the coming of the internet, a few nerds started using a new technology called Podcasts. You could record any audio content with a 1€ microphone and publish it on the internet.

Even though podcasts are naturally asynchronous, many shows air live too. Some listeners can listen to the stream, but most of them just download the audio file later.

Publicly searchable podcast directories aggregate both amateur and professional audios. Thanks to that, we have reached this point where anybody in the world has access to an ocean of audio content about any topic, either mainstream or niche.

Enter Clubhouse

What Twitch did to Youtube, Clubhouse has done to podcasts. For the sake of this explanation, let's ignore that podcasts are an open ecosystem and Youtube is proprietary.

Youtube is a video discovery platform. It has some tools to livestream, but it's not their main focus. Twitch has a much better product (and ToS) for livestreamers and their audience.

Want to watch somebody playing Minecraft? Open Twitch, search for Minecraft, and boom! hundreds of streams right there. Join one, chat with the community, and if you're lucky the streamer may shout out to you.

You can't do that with podcasts.

First of all, there can be some interactivity by combining an Icecast stream with an IRC channel, but it is not a good system.

Second, live podcasts are not aggregated anywhere. It is just impossible to search for "strategies to control your stress during covid-19" and find live shows.

So, if only as a directory of live audio content, Clubhouse has future.

But it is not only that. The product is very well thought and lets the audience participate, with audio.

A naive approach would have been to include a text chat on top of the audio stream. That would replicate the current solution on an integrated app. Okay, not bad.

However, the Clubhouse team spent some time thinking about the use case for audio streaming, which is not the same as for video streaming, nor public chat rooms.

Most of us listen to audio while we are doing other tasks and most of the times our hands are busy. This is why people jokingly call it the Airpods social network. You can participate while being away from a phone or computer.

In Clubhouse, you can tap a button to "raise your hand", and the moderators may "unmute" you. Then you can talk to the rest of the audience. Of course, not all show formats allow for that, but the option is there.

Being able to talk to your idols or even talk to the community of fans is very powerful. My first experience with Clubhouse was moving. I was listening to a concert and after the show all the listeners gathered up to talk about their experience and to have a chat with the band. Everybody agreed that with Clubhouse you can feel that there's people at the other end. Not only the speakers, but also the audience.

You don't get that with podcasts, even with live ones with a chat room.

A new category

Clubhouse has definitely invented a new category which combines the best of radio and the best of podcasts.

The product implements a selection of novel features which, when brought together, create an exciting and very addictive experience:

  • Directory of live audio streams ("rooms") about any imaginable topic
  • You can quickly drop in any room, listen for a few minutes, and jump to another one
  • The audience can participate via audio, which creates a great sense of community
  • Basic tools to follow people and interests, and get notified when they live stream
  • Of course, streamers may record the audio and publish it afterwards, so it's trivial to use Clubhouse in combination with the current podcasting ecosystem.

If you're in the podcasting community you should try to find an invitation. It is the real deal.

Tags: internet, podcasting, english

How I moved my setup from a Mac to a Linux laptop

11 de febrero de 2021 — Carlos Fenollosa

This article is part of a series:

  1. Seven years later, I bought a new Macbook. For the first time, I don't love it
  2. This article
  3. Fed up with the Mac, I spent six months with a Linux laptop. The grass is not greener on the other side
  4. The M1 Macbook Air, one year later

Returning the Macbook Pro

In the previous installment of this series I explained how I had been disenchanted with recent Macs.

The fact is that shortly after writing that review I returned the 2020 Macbook Pro.

I tried to love it, honest to God, but it was mediocre.

Let me share with you the list of issues I found while using it for two weeks:

  • USB2 keyboard and mouse randomly disconnecting. I tried 3 different USB/Thunderbolt adapters, including Apple's, to no avail.
  • Abnormal rattling sound when fans start spinning, as if they were not properly seated.
  • Not detecting the internal keyboard sometimes after resuming sleep.
  • Only 5 hours of battery life when streaming video with the screen off, connected to a TV.
  • Battery drained from 70% to 15% after sleeping overnight.
  • The touchbar. I spent time trying to make it useful with BetterTouchTool. Then I discovered that the keypresses don't register correctly most of the times, and I had to tap twice or three times, which defeats the purpose of having a dedicated shortcut.
  • Trackpad registers too many spurious taps and the cursor jumps around the screen while typing.
  • Airpods Pro have ~400ms of audio lag when watching videos. Solved with a reboot but it appears again after a few minutes.
2020 MBP does not detect its internal keyboard

The fact that it had issues with the internal keyboard and the USB subsystem made me think that the unit may have a faulty logic board. I discovered later, through a Reddit thread, that the USB2 issue was not specific to my unit, but it didn't matter much.

I was feeling really ripped off with a machine I had spent 2.000€ on and which, speed aside, was worse than my 2013 Air in every way I cared.

In the end, my gut told my brain, "Stop rationalizing it, this laptop makes you unhappy", and I came to terms with it.

Now what?

I had been dreading this moment since 2016, when I realized that Apple didn't care about my demographic anymore.

Migrating platforms is a big hassle, so after I made the decision to return the Macbook Pro, I thought carefully what the next steps would be.

In order to transition from the Mac to Linux I had to prepare a plan for for new hardware, new software, and a new cloud ecosystem.

At that point there were strong rumors about ARM Macs. I thought I'd use Linux for an indeterminate amount of time, until Apple hopefully released a good Mac again. Which may have been "never", though I was optimistic.

I have used Linux extensively in my life, since 1999, but mostly as a developer. Nowadays my requirements are more "mainstream" and I need apps like Microsoft Office and Adobe Reader to do my job. This is an important point to make. This computer is my main work tool, and it needs to accommodate my own needs as well as my job's. I spent some time making sure that I could run all the software I needed. As a last resort, there is always the option of using a VM.

As a final step, I had to move all the iCloud stuff out of there, because it is not interoperable with standard clients. I decided I would self-host it and see how difficult it is to leave the walled garden.

Therefore, I needed to fulfil the following requirements:

  1. Good laptop hardware with Linux support
  2. Ability to run work-related software
  3. Self-hosted (or almost) cloud services

1. Choosing a new laptop: The 2018 Dell XPS 13"

Before buying—and potentially returning—a new machine I drove to the office and grabbed two old laptops to see if they would fit: a Thinkpad 420 and a 2018 Dell XPS 13".

I decided to test drive the five of them: the 2020 MBP, my 2013 MBA, the Thinkpad, the Dell, and my tinkering laptop, a Thinkpad x230 with OpenBSD.

Benchmarking laptops

I then spent a couple days trying to make some sense of the situation. You can see them running a group video chat and some benchmarks.

Fortunately, a clear winner emerged: the 2018 Dell XPS with Ubuntu-Dell installed.

How good is the 2018 XPS? Excellent. 9.5/10 would recommend. I got in love with that machine. Very good hardware, with just a few minor issues.

Pros:

  • Good screen quality
  • Small bezels. It makes a difference and I still miss them today.
  • Light, nice in my lap. The Macbook Pros have air vents that "cut" into your legs when you're wearing shorts.
  • All I/O worked fine. I used the official Dell Thunderbolt Dock.
  • Excellent keyboard. I liked the pgup/pgdn keys on the arrow cluster and welcomed back the function keys.
  • Good battery life (6h of streaming video) even though the laptop had been used daily for almost 3 years.

Cons:

  • The speakers are of laughable quality. Not just bad, but why-would-Dell-do-that bad. Extremely quiet and terrible quality.
  • The webcam is on a bad location. Not really a big deal, but I'm glad they fixed it in recent revisions.
  • The trackpad is kinda like the 2013 Air's, but a bit worse.
  • Coil whine. I tried to be positive and used it as an "activity indicator" like in the old days of spinning hard drives, but I'd rather not have it.

That really is it. The Dell XPS is probably the best go-to PC laptop. Excellent set of compromises, good price, good support. If you want to use Linux on a laptop, you can't go wrong with the XPS.

2. Doing my job with Linux

I knew beforehand that hardware support was not going to be an issue. Linux drivers in general are pretty good nowadays, and that XPS specifically was designed to work well with Linux, that is why we bought it for the office.

On first boot everything works. Ubuntu is pretty good. Gnome 3 tries to be like a Mac, which I liked, and the basic software is fine for most of the people.

I then installed my work software. Most of it is either standard (email, calendar...) or multi-platform via Electron or webapps. For Windows-specific software I purchased a license of Crossover and also installed a Windows 10 VM on Virtualbox. It was not super convenient and sometimes things crashed with Crossover, but I could manage.

Overall, the desktop environment and base apps are not as polished as macOS, which I will discuss later, but it worked.

I am happy to realize that I can continue recommending Linux to "regular people" who want a computer that just works, doesn't get viruses, and is very low maintenance.

3. My self-hosted cloud setup

This is a topic that is on everybody's mind right now. We went from the original, decentralized internet, to a network centralized in a few vendors like Facebook, Google, Cloudflare and Amazon, and I think that is a bad idea.

The walled garden is comfortable, but what happens when you want to make the switch? How easy it really is to migrate your online infrastructure to another vendor?

Well, I was going to discover that soon. I like the iCloud ecosystem, and in general am fine with Apple's privacy policies, but I just couldn't continue using it. Apart from email, all other services (pictures, calendars, files, notes, etc.) cannot be used in Linux, and the browser client is extremely bad.

I am a geek, and have been a sysadmin since college, so I took it as a personal challenge to create my own personal cloud infrastructure.

First I tried Nextcloud. It mostly works and I recommend it in general, but the server components are too heavy and the file syncing is slow and unreliable.

I decided to self-host every individual piece of the puzzle:

  • My mail has been managed by postfix/dovecot for a few years now. I don't recommend anybody self-hosting email due to deliverability issues, but I'm that stubborn.
  • I set up radicale for contacts, calendars and tasks. It had issues connecting to some clients due to, I believe, SSL negotiation. If I had to set it up again I'd try another alternative.
  • All my files got synced over my laptops and the server thanks to Syncthing. I can't stress enough how great of a software is Syncthing. Really, if you're looking for an alternative to Dropbox, try it out. It will amaze you.
  • Syncthing does not expose files publicly, so I span up the Apache Webdav server to share files.
  • Joplin is a good alternative to take rich text notes and sync them over the internet. The clients are not very polished, but it works.
  • For passwords I've been using Lastpass for some time.
  • I kept using iCloud for pictures, because it's the best solution if you have an iPhone. It is fine because I don't need to work with pictures on my daily workflow.

It took some time of researching and deploying all the pieces, and I'm quite happy with the result. It feels really great to manage your online infrastructure, even though it requires technical knowledge and regular maintenance to keep everything up to date.

So how did it all work out?

Well, I have been repeating this term all over the article: it works. I could do my job, and it was a very gratifying learning experience. Overall, I do encourage geeks to spin up their own cloud infra and work with Linux or BSD boxes. I do have some self-hosted cloud services and I also keep a laptop with OpenBSD which I use regularly.

It is possible to get out of the walled garden. Of course, it's not within reach of the general public yet, even though Nextcloud is very close, and some third party vendors are starting to offer an integrated cloud experience outside the world of the Big Cloud.

But I'm writing this in the past tense because I went back to the Mac. Unfortunately, after six months of using this setup full-time I started noticing very rough edges, which I will explain on the next article.

Stay tuned!

 

Continue reading...

  1. Seven years later, I bought a new Macbook. For the first time, I don't love it
  2. This article
  3. Fed up with the Mac, I spent six months with a Linux laptop. The grass is not greener on the other side
  4. The M1 Macbook Air, one year later

Tags: apple, linux, hardware, english

Linux vs GNU/Linux

7 de febrero de 2021 — Carlos Fenollosa

Why I do call the system Linux

I personally use the term Linux for simplicity. I know that it's the kernel name, but that's how naming works, sometimes it's convenient to use a synecdoche.

Linux is useful to identify the platform as a whole and it is recognizable to the general public. No-one is using it as demeaning, and when technical people need to be more specific they can include any complements to that term.

Why I don't call it GNU/Linux anymore

Some time ago I was an advocate for the term GNU/Linux, following the rationale of the FSF.

I still do recognize the importance of the FSF and the GNU project into making Linux what it is today. However, I think that nowadays this controversy does more harm than good to the FSF, and I encourage people to be careful when discussing it.

The FSF arguments boil down to:

  1. Many years ago, a big percentage of the codebase of GNU/Linux systems was sourced from the GNU project.
  2. The GNU project is not just a series of tools, but rather an integrated system, which was missing only the kernel. It existed before Linux.

The thing is, with every passing year Linux systems have less and less GNU components. Some vendors are even preferring software with alternative licenses such as BSD or Apache.

Should we then, using the same arguments, advocate for a name which reflects the more recent critical components, as GNU/FreeDesktop/Apache/OSI/BSD/.../Linux?

I am not trying to ridicule the FSF argument. To the contrary, my point is that, while they have been a very important contributor to the project, those specific arguments carry less weight as the project progresses. Therefore, even if this discussion could have been productive in 2001, nowadays it is either moot, or worse, plays against the GNU project's interests.

I am sure that the FSF will continue calling the system GNU/Linux and I believe they are entitled to it. But I don't think anybody should continue to proselytize about this anymore. And I also don't think that calling the system Linux in 2021 is neither morally nor technically wrong.

Tags: linux, english

Damn Small Linux on a Libretto 50CT

24 de noviembre de 2020 — Carlos Fenollosa

In about 2004 a friend from college got into his hands a series of Toshiba Libretto 50CT. They all came with Windows 95 pre installed, and we wiped them out and installed Debian with a 2.2 kernel from floppies, with much pain because of the unsupported disk drive. I remember it being so difficult that I don't even want to write about it. But it booted and was able to run Vim, Links, and connect to the internet. Enough for a network-enabled typewriter.

I got Richard Stallman to sign mine while it was running GNU/Linux, but when I bought a regular laptop I stopped using it because, well, it is too old, and its keyboard is too tiny to type comfortably with it.

The Libretto, closed

The Libretto, closed. It is a tiny machine, a wonderful piece of engineering.

Around 2012 I found it inside a box at home, working perfectly, with a battery life of a bit less than an hour—which is incredible for a 12+ year old machine— and DR-DOS installed. I can't remember why I did that, but Golden Axe was also installed, so there's a hint.

I decided to install a modern Linux and, at least, store it on a working condition to give some justice to Stallman's signature.

There are some tutorials available on the net, but none of them covered 100% of the hardware support for my machine. Most of them are also outdated, and refer to distributions that don't exist, don't have any support or are about unusable nowadays. However, I took many hints from those tutorials, and I will reference them accordingly.

Hardware

This laptop has a 75 MHz —actually, mine reports 74 MHz— with 24 MB of RAM, which is an upgrade from the original 16 MB which are usually bundled. The screen is 640x480, and if you choose a higher resolution, instead of scaling the image, it only displays the upper-leftmost 640x480 pixels, leaving the bottom and rightmost part of the area out of sight.

The mouse device is emulated as a PS/2, and physically is a "clitoris"-like pointing device. You know what I mean. Working with the X windows is a pain in the neck because the location of the mouse and buttons isn't very ergonomic, and clicking on a button makes the whole screen move on its hinges.

Next to the mouse there is a speaker which is similar in quality to those of a modern smartphone.

This device doesn't have any extension port other than a dock connector for a dock I don't have, and a 16-bit PCMCIA slot, which you will need for the network card. It doesn't have a COM port or anything like that, which is understandable, given the size of the case.

It does have an Infrared device, which is quite slow and useless, but for its time it was as good as wireless could get. The other holes correspond to the power adapter and the reset button next to the PCMCIA, big enough to be able to reset the laptop with a regular pen.

For the full specifications, please refer to the official leaflet.

The Libretto

The setup I will be using: the Libretto, and a 3Com 16-bit PCMCIA Ethernet card

Choosing a Linux distribution

I wanted to find some modern, low-demanding software, not unsupported versions of Debian or RedHat. As you might have expected by this page's title, I chose Damn Small Linux (DSL).

I was very lucky to find that my machine had been upgraded to 24 MB of RAM. Apparently, even low-end distros have difficulties booting a regular kernel with 16 MB. I didn't want to tune or recompile the kernel on a 75-MHz machine, so I had to do some tricks.

In order to decide on a distro, I tried to set some goals up:

  1. Discard modern distributions which require at least 256 MB of RAM. In fact, discard anything that doesn't work with 24 MB of RAM
  2. Try to avoid old versions of current distros (i.e. Debian Woody) because the ISOs and the packages might not be mirrored anymore and are difficult to be found.
  3. Use a distro which self-configures kernel modules on boot, because I will be installing from a Virtual Machine and the hardware will change between reboots. Recompiling the kernel is totally out of the picture.
  4. Kernel 2.4 if possible, to make both the audio and the Ethernet work
  5. As easy to configure as possible. I want to finish this in a few hours... [Narrator: he didn't]

I found myself with these contenders, Damn Small Linux, Puppy Linux and Tiny Core Linux.

DSL v4 was the chosen one for many reasons. First, the default software choice is a good compromise and finely tuned for low performing machines. The installation seemed the easiest of the three, and—very important—worked flawlessly inside VirtualBox. The documentation is very extensive and, as a slightly old distro, there are lots of manuals and forum posts with solutions to common problems.

There is also the fact that DSL is based on Knoppix, so it detected my hardware perfectly, didn't have to tweak the PCMCIA, and only had to configure the audio manually because the I/O ports were not the standard ones. This was a huge aid for me. PCMCIA Internet working out of the box is something I hadn't even imagined to have.

However, the decision also came with a few drawbacks. DSL has its own "package manager", which only works from X and can't uninstall packages.

apt-get can be enabled, but it might break packages already installed with MyDSL. Furthermore, those packages tend to disappear on a reboot for some reason. I'm still unsure on whether to use apt-get with MyDSL. We will not be using it.

The ACPI doesn't work, but I don't know whether it's the kernel or the Libretto's fault.

My biggest fear, however, is that most of the packages are old and might have security issues. However, as this will not be my main machine, and it won't run a browser with JavaScript enabled, I'm not very worried.

Why didn't I choose Tiny Core? because it didn't boot on a VirtualBox machine with 24 MB of RAM. It would have been my first choice, because it is better maintained than DSL. A real pity.

And what about Puppy? The LiveCD is great but the installation instructions were too complicated for me. I really didn't want to spend that much time configuring everything. It is maybe too modern (based on Slackware 13.37 with Kernel 3.1.10) and I doubt the Libretto could have handled its kernel.

Installation

Please note: I will assume that you have some experience with Linux, partitioning, and installing stuff from a console.

Strategy

There are two alternatives: use floppy disks or physically remove the drive and set up a VM. Years ago, I went the first path, because I had the floppy disk drive. Since I don't have it anymore, I found an awesome tutorial which suggested to physically remove the drive from the Libretto, attach it to a 2.5" IDE to USB adaptor, and install the system from another computer. Check out his pictures for details on how to remove the drive. My machine is in a bad condition (broken hinges, cracks all over the case, stuck screws) and I had to break some plastics and metal parts to access the drive.

So, we will use another Linux computer, which you probably already have, and set up a virtual machine inside VirtualBox. Then, we will remove the Libretto's physical HDD and attach it via USB to your computer, using an adapter. The DSL CD image and the new /dev/sd will be mapped inside the VM.

This way we can boot and install from a CD, instead of doing netinsts with the Debian Woody diskettes, as you will read on many other websites. It is the fastest and painless way, and if you don't have the floppy drive, it is the only way.

If you have the floppy drive and are wondering if it is worth to buy the adapter, go ahead! Walk the difficult path, install DOS, start a Linux setup from DOS, try to make the floppy disk work, then install from diskettes with a crappy kernel, fight with the PCMCIA driver until you are able to use the network, and install from the net. And, should the installation fail, start OVER AGAIN! When this happens, please send me an email so that I can pretend that I sympathize with you but actually laugh at your misery.

Talking seriously, I am just trying to warn you. I tried that, I failed, then I succeeded, and not even in my success I want even the worst of my enemies going that path. Buy it, then come back and follow these instructions.

Removing the hard drive

You already have the adapter? Great! I bought this one which worked great and allowed me to manipulate the drive from my main computer.

The 2.5inch IDE to USB adapter

This is the adapter in its box. It comes with an enclosure that I didn't use to avoid overheating, and a handy screwdriver.

The 2.5inch IDE to USB adapter, close up

A close up of the IDE adapter. Don't buy a SATA one by mistake!

Using the drive in VirtualBox

As stated before, we will use VirtualBox to make DSL think it is running on a real machine, and that the—now USB— hard drive is the main drive of the VM. Turns out that using a physical disk from /dev on VirtualBox isn't easy to find, but the actual command is simmple.

Please make sure that your Linux has detected the USB drive as /dev/sdb before proceeding or you might lose data on the wrong disk! If in case, use Disk Utility or check dmesg.

VBoxManage internalcommands createrawvmdk -filename disk.vmdk -rawdisk /dev/sdb
                                                                       ^^^^^^^^  <-- check this

The command above will create a file named disk.vmdk, which is a short plaintext file which references to /dev/sdb. You can now add it to your VM using the normal VirtualBox Appliance Manager

Partitioning

Use your main Linux box to partition the hard drive. Disk Utility works well, but I used cfdisk.

The tutorial then notes that the last 32MB of the disk space are used for the Libretto's hardware Hibernate feature. I followed his partition table suggestions completely. Just in case his page is down, do this:

  • /dev/hda1 738.0 MB, ext2 (ext3 is slower, but more secure), mounted as /
  • /dev/hda2 40.3 MB, swap
  • A remaining free space of 37.2 MB. Don't worry if the figure is slightly higher or lower due to rounding.

Installing DSL

Now go ahead, and download the ISO image. I used the Release Candidate 4.11.rc1 and it didn't give me any problems

Set up a new VM with 24 MB of RAM, use the ISO as the CD drive, and the disk.vmdk as the hard drive. Then boot.

If everything goes well, you will be shown the desktop. Now, in order to install, I have adapted the official instructions

sudo -s
swapoff -a
mkswap /dev/hda2 ## Considering that you followed the partition scheme in the tutorial
swapon /dev/hda2
dsl-hdinstall

Follow the setup assistant from there. I chose Grub instead of LILO for the bootloader, and it worked. The network also works out of the box, so I didn't need to apply any modifications in /etc/default/pcmcia as stated in David's tutorial.

Now disconnect the USB adapter, remove the disk, put it back in the Libretto, and boot. You should be prompted with either the console login or a X desktop, depending on your setup.

Network

I have a PCMCIA 16-bit 5V 3Com Ethernet adapter and just recently acquired a wireless Orinoco Gold card, 16b 5V too, one of the few known to work with this Libretto model, albeit only in WEP-mode.

This Libretto only accepts Type II PCMCIA, so it is very difficult to find a Linux 2.4 compatible, WPA-capable wifi card. Please let me know if you managed to get WPA wifi working!

Here are some pictures, as a reference.

The 3Com card

The 3Com card, front

The 3Com card

The 3Com card, back. Note the "PC card" icon with the technical specs.

The Knoppix core of DSL detected my Ethernet card, configured it with DHCP, and it talked instantly to my home router. Woohoo, it's on the Internet! I actually didn't need to do anything, compared to the hell I suffered with the Debian setup some years ago.

Wireless

The Orinoco card

The Orinoco card

Again, thanks to the Knoppix core, the Libretto automatically detected the PCMCIA card, loaded the orinoco kernel module, and the card was ready to use.

First, prepare your wireless router to work with WEP. It is highly discouraged to do so, because it is a big security hole. Fortunately I had a spare router that I can use only for the Libretto and will turn it off after playing with it.

My recommended setup for the router is:

  • Hide the ESSID
  • Filter by MAC address
  • Use 802.11b with auto channel
  • Use a 128-bit ASCII WEP key

I tuned /opt/eth0.sh to run the iwconfig commands. Add this just below the #!/bin/bash line:

iwconfig eth0 essid ESSID_NAME
iwconfig eth0 key open s:WEPKEY
iwconfig eth0 mode managed
sleep 1

If you WEP key is hex and not ASCII, omit the s: part before it.

Wait for a few seconds, and when iwconfig reports a correct Access Point, you're on the internet. Congratulations!

Since the 50CT has very low specs, Firefox starts swapping like crazy. The best commandline browser is links2 and I recommend dillo if you run X.

Look ma, no cables!

Look ma, no cables!

Sound

This other tutorial points out some tricks to use all of the Libretto's capabilities. I didn't try most of them, but since I couldn't play any music, I went ahead and probed the opl3sa2 driver. At first, it didn't work, because the I/O parameters on my card weren't the same than on that page.

The BIOS of the Libretto

This is my main BIOS configuration

The BIOS of the Libretto, audio section

A detail of the audio section. From top to bottom, the values correspond to the following module parameters

  • mss_io
  • not used
  • not used
  • irq
  • dma
  • dma2
  • io
  • mpu_io

This means that we will load the module with the following parameters. Remember to check your BIOS and use the correct ones, or modprobe will fail

modprobe opl3sa2 io=0x370 mss_io=0x530 mpu_io=0x330 irq=7 dma=1 dma2=0

Note: to access the Libretto BIOS, reboot or reset it, and press <ESC> during or just after the memory check

Finally, the Pentium 75 CPU is able to play most mp3 files, but you will need to compile your own mpg123. DSL comes with mpg321, but the audio isn't fluid and for some reason only mpg123 is able to decode mp3 in realtime. Running it from a console instead of an X session also helps, though the main bottleneck is the CPU, not the RAM

ACPI/APM/Battery

I only managed to get APM working. Playing with the Grub boot options there is no way to enable ACPI.

This blog post has some pointers on how to install the Toshiba experimental ACPI driver, but as I didn't want to recompile the kernel, I couldn't use it. If you feel strong enough, use the same Virtual Machine that you used for the DSL install and recompile it there, with the power of a current computer.

The toshiba kernel module loads correctly (/proc/toshiba), but not toshiba_acpi (/dev/toshiba). Not a big deal for me, but if you managed to get it working without recompiling the Knoppix kernel, please let me know.

The Libretto does some power management by hardware (screen blanking, hibernation), and this is enough for me. However, to get the system to actually power off after a shutdown, edit the /boot/grub/menu.lst and change the parameter noapm to apm=on apm=power-off

torsmo, DSL's dashboard, usually manages to get my battery status, but I didn't investigate further.

Performance tricks

Here are some generic tips on how to save some RAM and CPU cycles

  • Enable DMA - For some reason, DSL disables DMA by default. To enable it, edit the Grub config file /boot/grub/menu.lst and change the boot parameter nodma for dma. You will then see a boot message saying that DMA has been enabled for /dev/hda
  • Disable ttys - Edit /etc/inittab and disable all consoles but one. Instead, run a GNU screen session to get terminal multiplexing.
  • No X - Disable the automatic X session that is launched on login. You might need to edit the .bashrc or the .bash_profile files. Comment out the startx command.
  • GNU tools - With those bytes we saved, use the DSL menu option "Upgrade to GNU tools" to replace the very basic BusyBox shell with the regular GNU tools.
  • Fix the date - Use MyDSL to install ntpdate and run it when coming back from hibernation, since the date will probably be incorrect: ntpdate ntp.apple.com

Currently my setup takes the following resources:

  • Used memory with X running: 10 MB
  • Used memory without X running: 3 MB
  • Used disk space: 290 MB

Not bad, right? 3 MB of RAM on boot and a full functioning X taking only 7 MB more. That leaves a whooping 14 MB for applications!

As the pointing device is not that great, I usually run a single tty with a screen session for terminal multiplexing, and do most of my work on the terminal. X is only needed for viewing PDFs or images, and that's a perfectly suitable task for that computer.

Final words

I find it amazing that a laptop from early 2001 can still hold about an hour of battery, its drive is still spinning, and that it overall works. DSL gave it a new life, and though it is tedious to use a cable or WEP to connect to the internet, it is a functioning UNIX system, with audio and a decent mobile typewriter. Yes, the keyboard is small and uncomfortable, but this thing fits in any bag. Why, by 1990s standards, it would "fit in your pocket"!

There is plenty of information out there on installing Linux on a Libretto, but at the time of writing this article, most of articles are about 7-10 years old. I hope that it can be useful for somebody who, like me, found this machine at the bottom of a drawer and might want to play with it a little, install a current Linux and maybe give it to your kids or use it as a second laptop.

I wouldn't use it as a server, since it has little memory to run a server daemon, the disk and fan are noisy, and keeping it on 24/7 would burn the machine. If you want a cheap server, go for an old Mac Mini and install the latest Debian there. The Libretto is a ultra portable laptop and, if yours still holds some battery charge, is a nice toy to write stuff on or browse the simple internet.

DSL is highly customizable, and there is plenty of documentation out there. The default software is great, and searching the net you will find current software which is suitable for low memory devices. You will find yourself with a machine capable of reading and writing emails, displaying images, playing music, and more.

The only sites it can't browse are those which use Flash or are heavy on JavaScript. Well, the modern web, Gmail, Facebook, Twitter... but if you try to use the mobile versions you might get a nice surprise. You can try to use the Firefox version bundled in DSL but I wouldn't recommend that, it's too slow.

Feel free to contact me if there is any mistake on the tutorial or if you have some contribution, for example, a command to make it run with WPA, or if you managed to make the ACPI work.

The Libretto running X

The Libretto running an X session

Originally published on Github in 2013

Tags: retro, hardware, unix, english

You may be using Mastodon wrong

18 de octubre de 2020 — Carlos Fenollosa

I'm sure you have already heard about Mastodon, typically marketed as a Twitter alternative.

I will try to convince you that the word alternative doesn't mean here what you think it means, and why you may be using Mastodon wrong if you find it boring.

An alternative community

You should not expect to "migrate from Twitter to Mastodon."

Forget about the privacy angle for now. Mastodon is an alternative community, where people behave differently.

It's your chance to make new internet friends.

There may be some people for whom Mastodon is a safe haven. Yes, some users really do migrate there to avoid censorship or bullying but, for most of us, that will not be the case.

Let's put it this way: Mastodon is to Twitter what Linux is to Windows.

Linux is libre software. But that's not why most people use it. Linux users mostly want to get their work done, and Linux is an excellent platform. There is no Microsoft Word, no Adobe Photoshop, no Starcraft. If you need to use these tools, honestly, you'd better stick with Windows. You can use emulation, in the same way that there are utilities to post to Twitter from Mastodon, but that would miss the point.

The bottom line is, you can perform the same tasks, but the process will be different. You can post toots on Mastodon, upload gifs, send DMs... but it's not Twitter, and that is fine.

The Local Timeline is Mastodon's greatest invention

The problem most people have with Mastodon is that they "get bored" with it quickly. I've seen it a lot, and it means one thing: the person created their account on the wrong server.

"But," they say, "isn't Mastodon federated? Can't I chat with everybody, regardless of their server?" Yes, of course. But discoverability works differently on Mastodon.

Twitter has only two discoverability layers: your network and the whole world. Either a small group of contacts, or everybody in the whole world. That's crazy.

They try very hard to show you tweets from outside your network so you can discover new people. And, at the same time, they show your tweets to third parties, so you can get new followers. This is the way that they try to keep you engaged once your network is more or less stable and starts getting stale.

Mastodon, instead, has an extra layer between your network and the whole world: messages from people on your server. This is called the local timeline.

The local timeline is the key to enjoying Mastodon.

How long it's been since you made a new internet friend?

If you're of a certain age you may remember BBSs, Usenet, the IRC, or early internet forums. Do you recall how exciting it was to log into the unknown and realize that there were people all around the world who shared your interests?

It was an amazing feeling which got lost on the modern internet. Now you have a chance to relive it.

The local timeline dynamics are very different. There are a lot of respectful interactions among total strangers, because there is this feeling of community, of being in a neighborhood. Twitter is just the opposite, strangers shouting at each other.

Furthermore, since the local timeline is more or less limited in the amount of users, you have the chance to recognize usernames and being recognized by others. You start interacting with strangers, mentioning them, sending them links they may like. You discover new websites, rabbit holes, new approaches to your hobbies.

I've made quite a few new internet friends on my Mastodon server, and I don't mean followers or contacts. I'm talking about human beings who I have never met in person but feel close to.

People are humble and respectful. And, should you encounter a less nice user, admins enforce codes of conduct and, on extreme cases, users may get kicked off a server. But they are not being banned by a faceless corporation due to mass reports, everybody is given a chance.

How to choose the right server

The problem with "generalist" Mastodon servers like mastodon.social is that users have just too diverse interests and backgrounds. Therefore, there is no community feeling. For some people, that may be exactly what they're looking for. But, for most of us, there is more value on the smaller servers.

So, how can you choose the right server? Fortunately, you can do a bit of research. There is an official directory of Mastodon servers categorized by interests and regions.

Since you're reading my blog, start by taking a look at these:

And the regionals

There are many more. Simply search online for "mastodon server MY_FAVORITE_HOBBY." And believe me, servers between 500 and 5,000 people are the best.

Final tips

Before clicking on "sign up", always browse the local timeline, the about page, and the most active users list. You will get a pretty good idea of the kind of people who chat there. Once you feel right at home you can continue your adventure and start following users from other servers.

Mastodon has an option to only display toots in specific languages. It can be very useful to avoid being flooded by toots that you just have no chance of understanding what they're about.

You can also filter your notifications by types: replies, mentions, favorites, reposts, and more. This makes catching up much more manageable than on Twitter.

Finally, Mastodon has a built-in "Content Warning" feature. It allows you to hide text behind a short explanation, in case you want to talk about sensible topics or just about spoiling a recent movie.

Good luck with your search, and see you on the Fediverse! I'm at @cfenollosa@mastodon.sdf.org

Tags: internet, english

Seven years later, I bought a new Macbook. For the first time, I don't love it

1 de junio de 2020 — Carlos Fenollosa

This article is part of a series:

  1. This article
  2. How I moved my setup from a Mac to a Linux laptop
  3. Fed up with the Mac, I spent six months with a Linux laptop. The grass is not greener on the other side
  4. The M1 Macbook Air, one year later

The 2013 Macbook Air is the best computer I have ever owned. My wish has always been that Apple did nothing more than update the CPU and the screen, touching nothing else. I was afraid the day of upgrading my laptop would come.

But it came.

My Air was working flawlessly, if only unbearably slow when under load. Let me dig a bit deeper into this problem, because this is not just the result of using old hardware.

When video conferencing or under high stress like running multiple VMs the system would miss key presses or mouse clicks. I'm not saying that the system was laggy, which it was, and it is expected. Rather, that I would type the word "macbook" and the system would register "mok", for example. Or I would start a dragging event, the MouseUp never registered but the MouseMove continued working, so I ended up flailing an icon around the screen or moving a window to some unexpected place.

This is mostly macOS's fault. I own a contemporary x230 with similar specs running Linux and it doesn't suffer from this issue. Look, I was a computer user in the 90s and I perfectly understand that an old computer will be slow to the point of freezing, but losing random input events is a serious bug on a modern multitasking system.

Point #1: My old computer became unusable due to macOS, not hardware, issues.

******

As I mentioned, I had been holding on my purchase due to the terrible product lineup that Apple held from 2016 to 2019. Then Apple atoned, and things changed with the 2019 16". Since I prefer smaller footprints, I decided that I would buy the 13" they updated next.

So here I am, with my 2020 Macbook Pro, i5, 16 GB RAM, 1 TB SSD. But I can't bring myself to love it like I loved my 2013 Air.

Let me explain why. Maybe I can bring in a fresh perspective.

Most reviewers evaluate the 2020 lineup with the 2016-2019 versions in mind. But I'm just some random person, not a reviewer. I have not had the chance to even touch any Mac since 2015. I am not conditioned towards a positive judgement just because the previous generation was so much worse.

Of course the new ones are better. But the true test is to compare them to the best laptops ever made: 2013-2015 Airs and Pros.

Point #2: this computer is not a net win from a 2013 Air.

Let me explain the reasons why.

The webcam

You will see the webcam reviewed as an afterthought in most pieces. I will cover it first. I feel like Apple is mocking us by including the worst possible webcam on the most expensive laptop.

Traditionally, this has been a non-issue for most people. However, due to covid-19 and working from home, this topic has become more prominent.

In my case, even before the pandemic I used to do 2-3 video conferences every day. Nowadays I spend the day in front of my webcam.

What infuriates me is that the camera quality in the 2013 Air is noticeably better. Why couldn't they use at least the same part, if not a modern one?

See for yourself. It really feels like a ripoff. Apple laughing at us.

A terrible quality picture from the macbook pro webcam
The 2020 macbook pro webcam looks horrible, and believe me, it is not only due to Yours Truly's face.

A reasonable quality picture from the 2013 Air
A reasonable quality picture from the 2013 Air

For reference, this is the front facing camera of the 2016 iPhone SE
For reference, this is the front facing camera of the 2016 iPhone SE, same angle and lighting conditions.

For reference, a picture taken with my 2006 Nokia 5200
As a second reference, a picture taken with the 640x480 VGA camera of my 2006 Nokia 5200. Which of the above looks the most like this?

I would have paid extra money to have a better webcam on my macbook.

The trackpad

The mechanism and tracking is excellent, but the trackpad itself is too large and the palm rejection algoritm is not good enough.

Point #3: The large trackpad single-handedly ruins using the experience of working on this laptop for me.

I am constantly moving the cursor accidentally. This situation is very annoying, especially for a touch typist as my fingers are always on hjkl and my thumb on the spacebar. This makes my thumb knuckle constantly brush the trackpad and activate it.

I really, really need to fix this, because I have found myself unconsciously raising my palms and placing them at a different angle. This may lead to RSI, which I have suffered from in the past.

This is a problem that Apple created on their own. Having an imperfect palm rejection algorithm is not an issue unless you irrationally enlarge the trackpad so much that it extends to the area where the palm of touch typists typically rests.


Is it worth it to antagonize touch typists in order to be able to move the cursor from this tiny corner?

I would accept this tradeoff if the trackpad was Pencil-compatible and we could use it as some sort of handwriting tablet. That would actually be great!

Another very annoying side effect of it being so large is that, when your laptop is in your lap, sometimes your clothes accidentally brush the trackpad. The software then registers spurious movements or prevents some gestures from happening because it thinks there is a finger there.

In summary, it's too big for no reason, which turns it into an annoyance for no benefit. This trackpad offers a bad user experience, not only that, it also ruins the keyboard—read below.

I would have paid extra money to have a smaller trackpad on my macbook.

The keyboard

The 2015 keyboard was very good, and this one is better. The keyswitch mechanism is fantastic, the layout is perfect, and this is probably the best keyboard on a laptop.

Personally, I did not mind the Escape key shenanigans because I remapped it to dual Ctrl/Escape years ago, which I recommend you do too.

Touch ID is nice, even though I'm proficient at typing my password, so it was not such a big deal for me. Face ID would have been much more convenient, I envy Windows Hello users.

Unfortunately, the large trackpad torpedoes the typing experience. Writing on this Macbook Pro is worse than on my 2013 Air.

I will keep searching for a tool which disables trackpad input within X miliseconds of a key press or disables some areas of the trackpad. I have not had any luck with neither Karabiner nor BetterTouchTool.

The Touchbar

After having read mostly negative feedback about it, I was determined to drill myself to like it, you know, just to be a bit contrarian.

"I will use tools to customize it so much that it will be awesome as a per-application custom function layer!"

Unfortunately, the critics are right. It's an anti-feature. I gave it an honest try, I swear. It is just bad, though it could have been better with a bit more effort.

I understand why it's there. Regular users probably find it useful and cute. It's ironically, a feature present in pro laptops meant for non-pro users: slow typists and people who don't know the regular keyboard shortcuts.

That being said, I would not mind it, probably would even like it, if it weren't for three major drawbacks:

First and foremost, it is distracting to the point that the first thing I did was to search how to completely turn it off.

This is because, by default, it offers typing suggestions. Yes, while you are typing and trying to concentrate, there is something in your field of vision constantly flashing words that you didn't mean to type and derailing your train of thought.

Easy to fix, but it makes me wonder what were Apple product managers thinking.

Secondly, it is placed in such a way that resting your fingers on top of the keyboard trigger accidental key presses.

I can and will retrain my hand placement habits. After all, this touchbar-keyboard-trackpad combo is forcing many people to learn to place their hands in unnatural positions to accommodate these poorly designed peripherals.

However, Apple could have mitigated this by implementing a pressure sensor to make it more difficult to generate involuntary key presses. It would be enough to distinguish a brush from a tap.

Finally, and this is also ironic because it's in contradiction with the previous point, due to lack of feedback, sometimes you're not sure whether you successfully pressed a touchbar key. And, in my experience, there is an unjustifiable large number of times where you have to press them twice, or press very deliberately to activate that key you want.

There are some redeeming features, though.

As stated above, I am determined to make it bearable, and even slightly useful for me, by heavily modifying it. I suggest you go to System Preferences > Keyboard and use the "Expanded Control Strip".

Then, customize the touchbar buttons, remove keys you don't use, and add others. Consider paying for BetterTouchTool for even more customization options.

Then, on the same window, go to the Shortcuts tab, and select Function keys on the left. This allows you to use function keys by default in some apps, which is useful for Terminal and other pro apps like Pycharm.

(Get the third irony? To make the touchbar, a pro feature, useful for pro apps, the best setup is to make it behave like normal function keys)

Finally, if you're registering accidental key presses, just leave an empty space in the touchbar to let your fingers rest safely until you re-train your hands to rest somewhere else. This is ridiculous, but hey, better than getting your brightness suddenly dimming to zero accidentaly.

Leave an empty space in the touchbar
Leave an empty space in the touchbar on the area where you are used to rest your fingers.

I would have paid extra money to not have a touchbar on my macbook.

The ports

Another much-debated feature where I resigned myself to just accept this new era of USB-C.

I did some research online and bought the "best" USB-C hub, along with new dongles. I don't mind dongles, because I was already using some with my Air. It's not like I swim in money, but there is no need to blow this out of proportion.

Well, I won't point any fingers to any review site, but that "best" hub is going back to Amazon as I write these lines. Some of my peripherals disconnect randomly, plus I get an "electric arc" noise when I disconnect the hub cable. I don't know how that is even possible.

The USB-C situation is terrible. Newly bought peripherals still come with USB-A cables. Regarding hubs, it took me a few years to find a reliable USB3 hub for my 2013 Air. I will keep trying, wish me luck.

About Magsafe, even though I really liked it, I don't miss it as much as I expected. I do miss the charging light, though. No reason not to have it integrated in the official cable, like the XPS does.

Some people say that charging via USB-C is actually better due to standardization of all devices, but I don't know what periperals these people use. My iPhone and Airpods charge via Lightning, my Apple Watch charges via a puck, and other minor peripherals like cameras and external batteries all charge via micro-USB. Now I have to carry the same amount of cables as before, I just swapped the Magsafe cable and charger for the USB-C cable and charger.

Another poorly thought decision is the headphone jack. It is on the wrong side. Most of the population is right-handed, so there usually is a notebook, mouse, or other stuff to the right of the laptop. The headphones cable then gets in the way. The port should have been on the left, and close to the user, not far away from them, to gain a few extra centimeters to the cable.

By the way, not including the extension cord is unacceptable. This cord is not only a convenience, but it increases safety, because it's the only way to have earth grounding for the laptop. Without it, rubbing your fingers on the surface of the computer generates this weird vibration due to current. I have always recommended Mac users that they use their chargers with the extension cable even if they don't need the extra length.

I would have paid extra money to purchase an Apple-guaranteed proper USB-C hub. Alternatively, I would have paid extra money for this machine to have a couple of USB-A ports so I can keep using my trusty old hub.

I would not have paid extra money to have the extension cord, because it should have come included with this 2,200€ laptop. I am at a loss for words. Enough of paying extra money for things that Apple broke on purpose.

Battery life

8-9 hours with all apps closed except Safari. Browsing lightly, with an occasional video, and brightness at the literal minimum. This brightness level is only realistic if it's night time. In a normally lit environment you need to set the brightness level at around 50%.

It's not that great. My Air, when it was new, easily got 12 hours of light browsing. Of course, it was not running Catalina, but come on.

When I push the laptop a bit more, with a few Docker containers, Pycharm running, Google Chrome with some Docs opened, and brightness near the maximum, I get around 4 hours. In comparison, that figure is reasonable.

Overall, it's not bad, but I expected more.

While we wait for a Low Power Mode on the mac, do yourself a favor and install Turbo Boost Switcher Pro.

The screen

Coming from having never used a Retina screen on a computer, this Macbook Pro impressed me.

Since I don't edit photos or videos professionally, I can only appreciate it for its very crisp text. The rest of features are lost on me, but this does not devalue my opinion of the screen.

The 500-nit brightness is not noticeable on a real test with my 2013 Air. For some reason, both screens seem equally bright when used in direct daylight.

This new Retina technology comes with a few drawbacks, though.

First, it's impossible to get a terminal screen without anti-aliasing. My favorite font, IBM VGA8, is unreadable when anti aliased, which is a real shame, because I've been using it since the 90s, and I prefer non-anti-aliased fonts on terminals.

Additionally, many pictures on websites appear blurry because they are not "retina-optimized". The same happens with some old applications which display crappy icons or improperly proportioned layouts. This is not Apple's fault, but it affects the user experience.

Finally, the bezels are not tiny like those in the XPS 13, but they are acceptable. I don't mind them.

To summarize, I really like this screen, but like everything else in this machine, it is not a net gain. You win some, you lose some.

Performance

This is the reason why I had to switch from my old laptop, and the 2020 MBP delivers.

It allows me to perform tasks that were very painful in my old computer. Everything is approximately three times faster than it was before, which really is a wow experience, like upgrading your computer in the 90s.

Not much to add. This is a modern computer and, as such, it is fast.

Build quality

Legendary, as usual.

To nitpick on a minor issue, I'd like Apple to make the palm rest area edges a bit less sharp. After typing for some time I get pressure marks on my wrists. They are not painful, but definitely discomforting.

Likewise, when typing on my lap, especially when wearing sports shorts in summer like I'm doing right now, the chassis leaves marks on my legs near the hinge area. Could have been reduced by blunting the edges too.

One Thousand Papercuts

In terms of software, Apple also needs to get its stuff together.

Catalina is meh. Not terrible, but with just too many annoyances.

  • Mail keeps opening by itself while I'm doing video conferences and sharing my screen. I have to remind myself to close Mail before any video conference, because if I don't, other people will read my inbox. It's ridiculous that this bug has not been fixed yet. Do you remember when Apple mocked Microsoft because random alert windows would steal your focus while you were typing? This is 100x worse.
  • My profile picture appears squished on the login screen, and there is no way to fix it. The proportions are correctly displayed on the iCloud settings window.
  • Sometimes, after resuming from sleep, the laptop doesn't detect its own keyboard. I can assure you, the keyboard was there indeed, and note how the dock is still the default one. This happened to me minutes after setting up the computer for the first time, before I had any chance to install software or change any settings.
  • I get constant alerts to re-enter my password for some internet account, but my password is correct. Apple's services need to differentiate a timeout from a rejected password, or maybe retry a couple times before prompting.
  • Critical software I used doesn't run anymore and I have to look for alternatives. This includes Safari 13 breaking extensions that were important for me. Again, I was prepared for this, but it's worth mentioning.

Praise worthy

Here are a few things that Apple did really well and don't fit into any other category.

  • Photos.app has "solved" the photos problem. It is that great. As a person who has 50k photos in their library, going back to pictures of their great grandparents: Thank you, Apple!
  • Continuity features have been adding up, and the experience is now outstanding. The same goes for iCloud. If you have an iPhone and a Mac, things are magical.
  • Fan and thermal configuration is very well crafted on this laptop. It runs totally silent, and when the fans kick off, the system cools down very quickly and goes back to silent again.
  • The speakers are crisp and they have very nice bass. They don't sound like a tin can like most laptops, including the 2013 Air, do.

Conclusion

This computer is bittersweet.

I'm happy that I can finally perform tasks which were severely limited on my previous laptop. But this has nothing to do with the design of the product, it is just due to the fact that the internals are more modern.

Maybe loving your work tools is a privilege that only computer nerds have. Do taxi drivers love their cars? Do baristas love their coffee machines? Do gardeners love their leaf blowers? Do surgeons love their scalpels?

Yes, I have always loved my computer. Why wouldn't I? We developers spend at least eight hours a day touching and looking at our silicon partners. We earn our daily bread thanks to them. This is why we chose our computers carefully with these considerations in mind, why we are so scrupulous when evaluating them.

This is why it's so disappointing that this essential tool comes with so many tradeoffs.

Even though this review was exhaustive, don't get me wrong, most annoyances are minor except for the one deal-breaker: the typing experience. I have written this review with the laptop keyboard and it's been a continuous annoyance. Look, another irony. Apple suffered so much to fix their keyboard, yet it's still ruined by a comically large trackpad. The forest for the trees.

Point #4: For the first time since using Macs, I do not love this machine.

Going back to what "Pro" means

Apple engineers, do you know who is the target audience for these machines?

This laptop has been designed for casual users, not pro users. Regular users enjoy large trackpads and Touch Bars because they spend their day scrolling through Twitter and typing short sentences.

Do you know who doesn't, because it gets in the way of them typing their essays, source code, or inputting their Photoshop keyboard shortcuts? Pro users.

In 2016 I wrote:

However, in the last three to five years, everybody seemed to buy a Mac, even friends of mine who swore they would never do it. They finally caved in, not because of my advice, but because their non-nerd friends recommend MBPs. And that makes sense. In a 2011 market saturated by ultraportables, Windows 8, and laptops which break every couple years, Macs were a great investment. You can even resell them after five years for 50% of their price, essentially renting them for half price.

So what happened? Right now, not only Pros are using the Macbook Pro. They're not a professional tool anymore, they're a consumer product. Apple collects usage analytics for their machines and, I suppose, makes informed decisions, like removing less used ports or not increasing storage on iPhones for a long time.

What if Apple is being fed overwhelmingly non-Pro user data for their Pro machines and, as a consequence, their decisions don't serve Pro users anymore, but rather the general public?

The final irony: Apple uses "Pro" in their product marketing as a synonymous for "the more expensive tier", and they are believing their own lies. Their success with consumer products is fogging their understanding of what a real Pro needs.

We don't need a touchbar that we have to disable for Pro apps.

We don't need a large trackpad that gets in the way of typing.

We need more diverse ports to connect peripherals that don't work well with adapters.

We need a better webcam to increase productivity and enhance communication with our team.

We need that you include the effin extension cable so that there is no current on the chassis.

We need you to not splash our inbox contents in front of guests while sharing our screens.

We need a method to extend the battery as long as possible while we are on the road—hoping that comes back some day.

Point #5: Apple needs to continue course-correcting their design priorities for power users

Being optimistic for the future

I have made peace with the fact that, unlike my previous computer, this one will not last me for 7 years. This was a very important factor in my purchase decision. I know this mac is just bridging a gap between the best lineup in Apple's history (2015) and what will come in the future. It was bought out of necessity, not out of desire.

14" laptop? ARM CPUs? We will be awaiting new hardware eagerly, hoping that Apple keeps rolling back some anti-features like they did with the butterfly keyboard. Maybe the Touchbar and massive trackpad will be next. And surely the laggy and unresponsive OS will have been fixed by then.

What about the alternatives?

Before we conclude I want to anticipate a question that will be in some people's mind. Why didn't you buy another laptop?

Well, prior to my purchase I spent two months trying to use a Linux setup full-time. It was close, but not 100% successful. Critical software for my job had no real alternatives, or those were too inconvenient.

Regarding Windows, I had eyes on the XPS 13 and the X1 Carbon which are extremely similar to this macbook in most regards. I spent some time checking if Windows 10 had improved since the last time I used it and it turns out it hasn't. I just hate Windows so much it is irrational. Surely some people prefer it and feel the same way about the Mac. To each their own.

Point #6: Despite its flaws, macOS is the OS that best balances convenience with productive work. When combined with an iPhone it makes for an unbeatable user experience.

I decided that purchasing this new Mac was the least undesirable option, and I still stand by that decision. I will actively try to fix the broken trackpad, which will increase my customer satisfaction from a 6 —tolerate— to an 8 or 9 —like, even enjoy—.

But that will still be far away from the perfect, loving 10/10 experience I had with the 2013 Air.

 

Continue reading...

  1. This article
  2. How I moved my setup from a Mac to a Linux laptop
  3. Fed up with the Mac, I spent six months with a Linux laptop. The grass is not greener on the other side
  4. The M1 Macbook Air, one year later

Tags: apple, hardware, english

No more Google Analytics

22 de mayo de 2020 — Carlos Fenollosa

I have removed the GA tracking code from this website. cfenollosa.com does not use any tracking technique, neither with cookies, nor js, nor image pixels.

Even though this was one of the first sites to actually implement a consent-based GA tracking, the current situation with the cookie banners is terrible.

We are back to the flash era where every site had a "home page" and you needed to perform some extra clicks to view the actual content. Now those extra clicks are spent in disabling all the tracking code.

I hate the current situation so much that I just couldn't be a part of it any more. So, no banner, no cookies, no js, nothing. Any little traffic I get I'll analyze with a log parser like webalizer. I wasn't checking it anyways.

Tags: internet, web, security, english

Evolution of my link roundups

10 de mayo de 2020 — Carlos Fenollosa

As you may have noticed, I'm a fan of link compilation digests.

However, compiling them was quite the work for me. I always found interesting links during the week, then had to reserve an hour in the weekend to prepare the blogpost, which sometimes I did not had.

Furthermore, this format was flooding my blog with link roundups, which is not very user friendly for somebody who stumbles upon my front page.

I needed something better in two ways. First, the link publication has to be on the spot. Adding them to a list, then editing a post was not cutting it. Second, the links need to be their own section, independent from the rest of blog posts.

Fortunately, one of my link sources had the solution in front of me. The idea behind it is very simple and I got inspired by waxy's implementation. A box with links in the front page, and a special page only with links.

So this weekend project has been a very nice 1-line patch to bashblog, a bit of messing with postfix to parse links received to a special inbox, and some glue on top of it. I'm happy with the result!

The links index page is very crude right now. There is no CSS, and no feed available, but that will come soon. Meanwhile, feel free to bookmark it and visit it sometime!

Tags: roundup, meta, english

Links for 2020-02-09

8 de febrero de 2020 — Carlos Fenollosa

🐲 For Tolkien fans

The Tolkien Meta-FAQ (RH, via usenet)

Usenet FAQs used to be a great source of information. I recently found the Tolkien Meta-FAQ and it is absolutely amazing.

🎨 Mario Paint tunes

Meet the musicians who compose in Mario Paint (5 min, via waxy)

Delightfully retro.

PS: There is a Mario Paint subreddit!

Check out the video

💣 Android remote code execution via Bluetooth

Critical Bluetooth Vulnerability in Android (CVE-2020-0022) (1 min, via @dethos@s.ovalerio.net)

On Android 8.0 to 9.0, a remote attacker within proximity can silently execute arbitrary code [...] as long as Bluetooth is enabled. No user interaction is required.

I wonder if there are exploits in the wild already. Walking around a big city infecting all phones in a 10-foot radius.

🤯 40 concepts for understanding the world

In 40 tweets I will describe 40 powerful concepts for understanding the world (5 min, via @paulg)

This thread is worth reading. It's better than most popular books about ideas, and much shorter.

📒 What they don't teach you in CS classes

The Missing Semester of Your CS Education (RH, via lobste.rs)

Over the years, we have seen that many students have limited knowledge of the tools available to them.

Common examples include holding the down arrow key for 30 seconds to scroll to the bottom of a large file in Vim, or using the nuclear approach to fix a Git repository (https://xkcd.com/1597/)

This is one of the best resources I have ever linked to.

You must learn these skills.

(Self plug: my own UNIX tools workshop slides)

🚂 Upscaling a 1896 film with AI

Someone used neural networks to upscale a famous 1896 video to 4k quality (5 min, via HN)

We already had this capability. Only that it required an enormous effort by experienced video editors.

In a few years movies will be created just by feeding a script to an AI.

🚗 Fake GMaps traffic jam

Google Maps Hacks (5 min, via @simon_deliver)

99 smartphones are transported in a handcart to generate virtual traffic jam in Google Maps. Through this activity, it is possible to turn a green street red which has an impact in the physical world by navigating cars on another route!

Devilishly genius!

Tags: roundup, english

Links for 2020-02-02

2 de febrero de 2020 — Carlos Fenollosa

💣 Remote exploit in OpenSMTPd

OpenSMTPD advisory dissected (5 min, via)

The author of OpenSMTPd does a good post-mortem of the catastrophic bug that has left a remote exploit available for three years and a half.

We can’t prevent human mistakes, they will happen because tools won’t help spot that a human-described logic is flawed. What we need is to make changes so that OpenSMTPD becomes more resistant to human errors. In other words, we need safe-guards that are not dependant on sanity checks and input, we need safe-guards that will guarantee that even if OpenSMTPD lets completely untrusted input pass through, this will have the most limited consequences... then we ensure that it doesn’t let untrusted input pass through.

Agreed. There is no such thing as bug-free code.

🖥 CacheOut, another Intel CPU vulnerability

CacheOut, Leaking Data on Intel CPUs via Cache Evictions (5 min, via)

Every single one of these would be a scandal. Now, we've gotten used to it. Shame on Intel.

👴 UNIX lore

The Unix Heritage Society (RH, via)

Great resource to learn more about UNIX history.

Make sure to browse their wiki

💉 Antivirus selling user data

Leaked Documents Expose the Secretive Market for Your Web Browsing Data (1 min, via)

An Avast antivirus subsidiary sells 'Every search. Every click. Every buy. On every site.' Its clients have included Home Depot, Google, Microsoft, Pepsi, and McKinsey.

How ironic.

🎨 Oldschool web design trends

Dark Ages of The Web (2 min, via) is a visual trip through old web design trends.

It contains, of course:

  • Tables
  • Animated gifs
  • The Web 2.0
  • Flash
  • The "Home Page"

and more

🏴‍☠️ Whatsapp hack for Jeff Bezos

Technical Report of the Bezos Phone Hack (20 min, pdf, via)

Besides the actual forensics of the hack, which are not very in depth, this report provides an interesting insight into the tools and environments that real security firms use to study malware. It seems that Cellebrite's software is very popular.

Be sure to read the HN discussion, which seems to agree with my point: the forensic analysis was not very good, but the between-lines content is insightful.

🍎 Vintage Apple magazines

VintageApple, Information from the early Apple era (RH, via) is an archive of vintage Apple material, like magazines, books, pictures, and more.

Make sure to check this one out if you're a retro Apple fan.

👁 The Eye, another internet archive

The Eye (RH, via)

I hope you already know about The Internet Archive, a non-profit effort to archive a lot of content on the Web. If you don't, contgratulations! Play with MS-DOS software in your browser, read free books and watch copyright-free movies

Then, check out The Eye. It's another non-profit project aimed at file archival, a bit more chaotic, which makes browsing through its pages a real archeology dig.

The-Eye is a non-profit, community driven platform dedicated to the archiving and long-term preservation of any and all data including but by no means limited to... websites, books, games, software, video, audio, other digital-obscura and ideas.

🕹 Starfox into Zelda

This amazing glitch puts Star Fox 64 ships in an unmodified Zelda cartridge (15 min, via)

The fact that these glitches can be run, and that there is people actively looking for them, makes me very happy.

Let's give due credit: Zfg1 on Twitch

Related link: Ocarina of Time glitches and code execution

Tags: roundup, english

Links for 2020-01-26: bash power and Windows nostalgia

25 de enero de 2020 — Carlos Fenollosa

📝 How to write good bash

Anybody can write good bash (with a little effort) (5 min, via) provides some basic techniques to make your scripts more robust.

The article already mentions this, but I'll reiterate: use shellcheck

⌨️ More bash tricks

THC's favourite Tips, Tricks & Hacks (Cheat Sheet) (5 min) is a nice compilation of shell/unix tricks and tools.

If you liked these, make sure to read my own compilation of UNIX tricks

🌍 Bash web server

bashweb, A tiny web server that serves static files (1 min) is the perfect companion to my own bashblog, I guess?

✏️ Vanilla vim is nicer than you think

How to Do 90% of What Plugins Do (With Just Vim) (1 hr, video)

Vim is big; so big that it does some very useful things that are often overlooked. Plugins can buy us a lot of functionality, but they can add a lot of burden in the form of dependency complexity. In this talk, we'll explore some of the tradeoffs we can make between plugins and "vanilla" Vim features that achieve similar results, including:

  • autocomplete (VimAwesome, YouCompleteMe)
  • file jumping (FuzzyFinder, Ctrl-P)
  • visual filesystem navigation (NERDTree)
  • build integration
  • snippets

An informative, practical and enjoyable talk.

🔠 Oldschool fonts

The Ultimate Oldschool PC Font Pack (5 min, via) is exactly what the title says.

It contains my favorite font of all time, IBM VGA8, the one I use in all my terminals, which I'm looking at while I write this blogpost.

🔐 How to use security usb keys

Getting started with security keys (15 min, via)

This is the definitive guide on how to set up security keys. It's full of resources, news, and specific gadgets that you can use.

The site is beautiful too, be sure to check it out!

💬 Developing Slack for win31

Building a new Win 3.1 app in 2019 (5 min)

This is so delightful. Even the win31 colorscheme brings great memories.

☑️ Why the Windows 95 UI was so great

Not everything was perfect in 1995, but I think we've lost something on the way (1 min, tweetstorm, via)

I wholeheartedly agree with Tuomas here.

I despise flat design for software. It is confusing, ugly, and throws out the window (pun intended) what we learned in the last 30 years of UI design.

💀 Windows 7 EOL

Windows 7 support ended on January 14, 2020 (1 min, via)

While I hate Windows in general, and not only from a philosophical point of view but rather because they're terrible tools, what Microsoft has done with Windows 10 is disgusting.

I've had to pay for Windows 10 copies for my company, and in return the system is slow, spies on you, and has ads on the Start menu.

Windows 7 didn't have that, so that's something. Not that it was a good experience, either

Sorry for the rant. I have nothing interesting to contribute regarding the actual link. I just couldn't pass on the opportunity to hate on modern Windows.

👴🏼 Appreciating resilient software

Writing Software to Last 50 Years (5 min, via) is a short article that uses grep as an example of good, lasting software. The author analyzes some of the reasons that make good tech.

Thanks to a comment by andyc I've learned about the Lindy Effect: the longer some tech has been available, the longer you expect it will continue being available in the future.

⛓ Cloudflare, the Gatekeeper

Cloudflare is turning off the internet for me (1 min, via)

I could not finish one of these roundups without your weekly reminder that the centralization of the internet is a scary thing and we all have the responsibility to fight against it.

🏴‍☠️ Support the Indie Web

The IndieWeb, a people-focused alternative to the "corporate web" (RH)

What can we do to push against a total centralization of the Internet by a dozen of companies?

Subscribe to independent RSS feeds, do not use Cloudflare unless strictly necessary, move your conent out of the mainstream platforms, use federated networks, etc.

Do not play their game.

Tags: roundup, english

Links for 2019-12-08

8 de diciembre de 2019 — Carlos Fenollosa

💻 Hack your Thinkpad

My personal fight against the modern laptop (45 min, video, via)

In this talk, I will take you through the tools and techniques I used to reverse engineer the keyboard controller in my Thinkpad laptop and re-flash it with custom firmware.

Thinkpad keyboards, never such a niche topic has generated so much debate

Comparison of Thinkpad keyboards

💥 Fight AMP

How to fight back against Google AMP as a web user and a web developer (5 min, via)

The actual contents of the article are not that interesting —don't use Google, don't use Chrome, speed up your website— but the topic is, and the HN discussion is quite insightful

HN user soyyo comments

For publishers, amp is about trying to top the results on google search and capture traffic, it's their only motivation to publish their content using amp, and the only metric they look in order to evaluate the results.

🐲 AI-generated text adventure

AI Dungeon 2 – AI-generated text adventure built with 1.5B param GPT-2 (RH, via)

Imagine an infinitely generated world that you could explore endlessly, continually finding entirely new content and adventures. What if you could also choose any action you can think of instead of being limited by the imagination of the developers who created the game?

If you love text adventures (you should) and you're ready to be mildly amused by the fact that an AI is generating the game (you should), go ahead and give it a go.

📲 2/3 of your battery is used to move data around

In mobile, 62.7% of energy is spent on data movement (15 min, PDF, via)

The title may suggest that we're talking about the antennas, but it's focused on moving data from memory, and suggests designing new RAM systems with specific instructions for copying and zeroing data.

A bit long, but very interesting.

📹 30 -> 60 fps using AI

Turning animations to 60fps using AI! (4 min, video, via)

Depth-Aware Video Frame Interpolation [DAIN] is a project that let you interpolate frames using an advanced AI.

Just watch this video

🐇 A first look into Plan 9

Plan 9: Not dead, Just Resting, by Ori Bernstein (1h, video, via) and How I Switched To Plan 9

Plan 9 is an experimental OS that takes some UNIX principles to the extreme.

Plan 9 from Bell Labs is a research system developed at Bell Labs starting in the late 1980s. Its original designers and authors were Ken Thompson, Rob Pike, Dave Presotto, and Phil Winterbottom.

Plan 9 demonstrates a new and often cleaner way to solve most systems problems. The system as a whole is likely to feel tantalizingly familiar to Unix users but at the same time quite foreign.

In Plan 9, each process has its own mutable name space. A process may rearrange, add to, and remove from its own name space without affecting the name spaces of unrelated processes. Included in the name space mutations is the ability to mount a connection to a file server speaking 9P, a simple file protocol. The connection may be a network connection, a pipe, or any other file descriptor open for reading and writing with a 9P server on the other end.

It is not well suited for most people's daily needs, but it is very interesting both from a research and from a hobbyist point of view.

Think about it as "Plan 9 is to OpenBSD what OpenBSD is to Linux."

Make sure to check out the links above and fall into the Plan 9 rabbit hole.

🐍 Malicious Python libraries

Two malicious Python libraries caught stealing SSH and GPG keys (1 min, via)

The first is "python3-dateutil," which imitated the popular "dateutil" library. The second is "jeIlyfish" (the first L is an I), which mimicked the "jellyfish" library.

Well, another attack to add to the books. Let's keep vigilant when including non-vetoed libraries in our code.

🧮 Vim-like tools

Big Pile of Vim-like (RH, via)

E-mail clients, file managers, browsers, music players... a bunch of software designed after some vim feature.

If you're a vim fan this is a must read!

🍎 What it's like to sell your company to Steve Jobs

Andy Miller | Sold 1st Co. For $275m, Future of Esports (1 hour, video)

What a fascinating story! Andy Miller explains how he sold his company to Apple, with plenty of anecdotes.

A very rare window inside the mind of Steve Jobs: how he lowballed the exit price with a veiled threat, how he pushed people over acceptable limits to make the most out of theirselves, and how Andy stole Jobs' laptop by mistake on what probably was the worst day of his life.

If you're a Jobs fan, this piece is one of a kind. Watch the video, or convert it to mp3 and listen to it as a podcast.

🌌 The end of the universe

TIMELAPSE OF THE FUTURE: A Journey to the End of Time (30 min, video)

Do you wonder how the universe will end? This excellently produced video explains how the stars will die, and then black holes, and then photons, until there is nothing in the universe, and that nothing stays forever.

A beautiful, moving piece, very informative, that helps put things into perspective.

📡 How radar works

How Radar Works (15 min, via)

The author makes great effort into explaining how radar works, both from a theoretical point of view, and also with formulas.

I must admit that the math is a bit out of my comfort zone, but I recommend that you read it and at least try to understand the basic concepts. It's worth it.

Tags: roundup, english

KONPEITO, Gemini and Gopher

7 de diciembre de 2019 — Carlos Fenollosa

KONPEITO is quarterly Lo-fi hip hop & chill bootleg mixtape, distributed exclusively through the Gemini protocol. Each tape is a half-hour mix, clean on side A and repeated on side B with an added ambient background noise layer for atmosphere. Tapes are generally released in the first week of each meteorological season.

Okay, so there's a lot to unpack here.

  • KONPEITO is a very nice chill mixtape with a couple mp3 files that I found thanks to Tomasino on Mastodon
  • These files are distributed over the Gemini protocol, via this link
  • Gemini is a new internet procotol in between Gopher and HTTP
  • There is one Gemini client available, AV-98
  • The specs of the Gemini protocol can be accessed via this Gopher link
  • Gopher is a protocol that ruled over the internet once but got replaced by HTTP, what we know as "the Web" nowadays
  • You can reach Gopher links with lynx or a web proxy, but there are no modern graphical clients
  • Gopher is making a niche comeback among a few enthusiasts and you should definitely check it out if only for its nostalgic and historical value

Now that's one hell of a rabbit hole. If you reach the end you'll find a very cool mp3 mixtape.

Tags: internet, retro, english

Links for 2019-12-01

1 de diciembre de 2019 — Carlos Fenollosa

Ocarina of Time glitches and code execution

Arbitrary Code Execution in Ocarina of Time (30 min, video via)

I find these kinds of glitches fascinating. See for yourself!

Online tools for pet projects

Software Tools for Hobby-Scale Projects (RH, via)

Below is a list of useful tools I’ve come in contact with over the years.

  • They cost less than a coffee or are free.
  • They can be learned quickly.
  • They allow you to accomplish a single task in a short timeframe (such as a Sunday afternoon)
  • They are less focused on the needs of long term projects (scalability, speed, etc.) and more focused on ease of use and prototyping speed.

Rick Carlino has compiled a very nice list of online tools, such as mobile push notifications, VPS and DB hosting.

I have to admit that many of these were new for me, so it's definitely not a rehash of the usual links. Great list!

BBS: The documentary

BBS The Documentary (5 hours split in 8 videos)

In the Summer of 2001, Jason Scott, a computer historian (and proprietor of the textfiles.com history site) wondered if anyone had made a film about these BBSes. They hadn't, so he decided he would.

Fascinating. I've just put the videos in my watch queue.

Trying out NomadBSD

NomadBSD | Installation & First Impressions (20 min, video via)

For some reason, this is the first time I've heard about NomadBSD. It's a "portable" version of FreeBSD, to be run from a USB drive.

Anybody remember Knoppix? The first popular Linux distro that could be run from a CD. It contributed to hardware discovery on boot, and thanks in part to their efforts, Linux hardware setup did a huge leap forward.

Hope that NomadBSD can do that for FreeBSD, which already has reat hardware support, albeit limited, but its defaults are not so great.

Darwin OS

A Look at PureDarwin - an OS based on the open source core of macOS (5 min, via) provides some background, history and status of the PureDarwin project, a 100% free software OS built on top of the Darwin (macOS) kernel

PureDarwin Xmas, showing the applications xcalc, xclock, xterm and xfontsel running in the Window Maker desktop window manager

Metadata leak with SSH keys

Public SSH keys can leak your private infrastructure (5 min, via)

You don't need a private key to validate if a server allows access from a particular public/private key combination. That is, by having access to a public key, you can check if a server allows access for the specified public key and a username pair

This is a known issue. Filippo Valsorda posted a related proof of concept in 2015.

My SSH server knows who you are (5 min, 2015, via)

Did you know that ssh sends all your public keys to any server it tries to authenticate to?

If this metadata disclosure is a problem for you, the solution is very simple.

  • Configure your ssh to NOT send any pubkey to unknown hosts
  • Create a new ssh keypair for every new host you want to connect to (see link above)

Instructions here, courtesy of HN user chrisfosterelli.

Advent of Code 2019

Advent of Code 2019 (RH, via)

Advent of Code is a code advent calendar. Each day unlocks a new programming challenge. You score points by completing the challenges quickly

A few years ago I solved some of their challenges and they're really fun.

Be careful! As lobste.rs user narimiran says:

Don't be fooled: You will not just solve tasks and be over with it. There will be tasks that you'll think about all day and you won't be able to think about anything else. And you'll love it :)

Yup. The RH tag is warranted here.

Writing a simple window manager

Challenge: Write a bouncy window manager (RH, via)

Julia Evans plays with tinywm and her enthusiasm is contagious.

Though I use the admittedly weird dwm as my WM, and I've hacked some of its code, I've never considered to write my own WM, or even realized how easy it is.

Give it a try: tinywm is just 50 lines of very readable C.

a terminal window bouncing around the screen

On messaging services

Choosing the Right Messenger (10 min, via) is not a list of messenger services, but rather a thoughtful discussion on privacy tradeoffs: encryption, metadata, sign up process, source code availability, etc.

I highly recommend that you read the article if you're interested in learning more context on why some messengers are more secure/private than others.

The end of IPv4

The RIPE NCC has run out of IPv4 Addresses (1 min)

Our announcement will not come as a surprise for network operators - IPv4 run-out has long been anticipated and planned for by the RIPE community.

Let's see if we can quickly move to an ipv6 world -- my mail server will surely benefit from an untainted ip.

The Twitter Purge

Twitter prepares for huge cull of inactive users (1 min) and Twitter account deletions on 'pause' after outcry (1 min)

Twitter is (was) planning to remove inactive accounts. Even though it would free their handles for new users, apparently the main reason is that those users didn't accept the new terms of service.

There are many interesting angles, but for once, I have to stay on Twitter's side.

However, they should have provided an option to archive these old accounts; after all, users accepted that their content was to be owned and distributed by Twitter. Even if they can't log in, or their account is deleted, Twitter could have stored the content somewhere visible.

Tags: roundup, english

Links for 2019-11-24

24 de noviembre de 2019 — Carlos Fenollosa

Some SSD encryption is not secure

How secure is hardware disk encryption? (1 min, Twitter thread)

Dan Luu links to a paper by Mejier C et al., titled Self-encrypting deception: weaknesses in the encryption of solid state drives

In a nutshell:

We have analyzed the hardware full-disk encryption of several solid state drives (SSDs) by reverse engineering their firmware.

We found that many models using hardware encryption have critical security weaknesses due to specification, design, and implementation issues [that] allow for complete recovery of the data without knowledge of any secret (such as the password).

To make matters worse:

BitLocker, the encryption software built into Microsoft Windows will rely exclusively on hardware full-disk encryption if the SSD advertises support for it. Thus, for these drives, data protected by BitLocker is also compromised.

TL;DR:

Roughly 60% of the market [is affected] currently one should not rely solely on hardware encryption offered by SSDs and users should take additional measures to protect their data.

This is really, really bad.

Download old Linux distros

Linux Distros (RH) is an archive of old Linux ISOs that you can install on a virtual machine or similar.

Every entry has screenshots, making it a very nice resource to browse even if you don't commit to testing the distros.

Designing a modern text editor

Neovim and the state of text editor art in 2019 (15 min, pdf, via)

I never thought that a text editor could be such a complex and inspiring software product!

There is a video of the talk (50 min) in case you want more context than the bare slides.

GIF like it's 1999

The 88x31 GIF Collection (RH, via)

A collection of 2680 classic 88x31 buttons from the 1990's, 2000's, and today in GIF format.

Geocities gif Designed with Macintosh Porn button Best viewed with any browser

Windows 95 UI

Designing Windows 95's User Interface (15 min, via)

Three years ago I came across an interesting paper written up by a Microsoft employee, Kent Sullivan, on the process and findings of designing the new user interface for Windows 95.

The website archives Sullivan's paper The Windows 95 User Interface: A Case Study in Usability Engineering, a very interesting text on easly GUI usability, along with screenshots comparing 3.1 and 95 interface which will put a smile on your face.

Windows 95 UI prototype

OpenBSD review

OpenBSD in 2019 (10 min, via)

I've written similar texts about OpenBSD twice, and I like reading other people's opinions.

There is a pattern here: somebody is angry with some Linux drama, tries OpenBSD, likes it, but for some reason can't use it as a daily driver.

Check it out if you are still unsure about its strengths and weaknesses compared to Linux and/or other BSDs.

There is a very good Reddit discussion about this post.

A p2p web browser

Beaker (2 min, via) is an experimental web browser which supports dat://, a modern p2p protocol.

I really like these experiments. I'm not sure if it will take off, but re-decentralizing the web is a great cause.

ASCII art game

ASCIIDENT (RH, via) is an "Open-world sci-fi game with a design completely made by text characters."

After trying the demo, I'd define it as a platform game like Duke Nukum, with a crafting element, and the ASCII novelty which makes it quite nice

ASCIIDENT screenshot

I have to admit I'm tempted to buy the game. To my wishlist it goes...

Save .org

Save .ORG (2 min) is a plea to stop the sale of .org domains control to an equity firm.

Worth a read, check out the original signers. Wikimedia, the FSF, the EFF, the Internet Archive... this is not your typical bullshit change.org petition.

Check out the HN discussion with some alleged ex-ICANN members.

AI is not Terminators

AI today and tomorrow is mostly about curve fitting, not intelligence (5 min, via)

Some people cricize AI because we don't have terminators yet.

On the other hand, there is a lot of AI snake oil

The truth is: people in the field understand that we are harnessing the power of advanced curve fitting, not Hard AI.

It's our job to make journalists and the general public understand it, too.

Pornhub as a bastion of freedom

Banned from Youtube, Chinese propagandists are using Pornhub to publish anti-Hong Kong videos (1 min)

We truly live in the Craziest Timeline

RSS bridge

RSS bridge (2 min, via) is a connector that generates RSS feeds for sites that don't have one (e.g. Instagram, Twitter, Bandcamp...)

Last week I linked to Fraidycat, a similar concept.

I definitely need to set some time aside and check out both tools. I'd love a way to transform friends posts into an RSS feed.

Altair BASIC source code available

Micro-Soft Altair BASIC 3.2 source (RH, via)

After clicking on the link above, since this is the last one in the roundup, now go watch Pirates of Silicon Valley

Enjoy!

Tags: roundup, english

Links for 2019-11-17

17 de noviembre de 2019 — Carlos Fenollosa

PeerTube 2.0 released

PeerTube has worked twice as hard to free your videos from YouTube! (5 min, via)

PeerTube is a decentralized alternative to Youtube. Essentially, you can have your own Youtube-like website, with the added bonus that video traffic is distributed among viewers using p2p techniques.

PeerTube is to YouTube what Mastodon is to Twitter, but with an interesting benefit: you don't need to have your friends using it to enjoy the tool. If a cool video is on PeerTube, you can just go and watch it.

Gaming on OpenBSD

OpenBSD gaming Peertube (RH, via) combines two interesting concepts: Peertube, already mentioned above, and OpenBSD gaming, whichs seems like an oxymoron.

The OpenBSD gaming community is bigger and more vocal than you'd expect, and they have started to do livestreams with their favorite games, some of which, you'd never expected.

Solène is one of the most active members, make sure to follow her on Mastodon and check some of her videos

Using AI to scam $250k

Scammers deepfake CEO's voice to talk underling into $243,000 transfer (5 min, via) and its related AI Clones Your Voice After Listening for 5 Seconds (RH, via)

We're moving into a very cyberpunk future where you can only trust when you use your five senses.

Carmack working on AI

Carmack's statement (1 min)

Starting this week, I'm moving to a "Consulting CTO" position with Oculus. [...] As for what I am going to be doing with the rest of my time: [...] I have sometimes wondered how I would fare with a problem where the solution really isn't in sight. I decided that I should give it a try before I get too old. I'm going to work on artificial general intelligence (AGI).

Let's see what one of the top minds alive can do to help advance AI.

No police in Mastodon

The account of the Assam Police has been suspend from this instance (5 min, Mastodon thread)

An interesting discussion about banning cops in Mastodon instances. This is a gray topic with no easy solution, so I'll share some replies from users:

cm_kropot (OP):

The account of the Assam Police has been suspend from this instance.

We decided that we will not welcome cops on this instance, and we encourage the rest of the fediverse to do the same.

Following multiple reports, we decided that it's more important that our community feels safe and in security, than to be a platform for official communication.

Charles mentions pros and cons:

I can't speak for the mods, but I suspect the issue is more that they don't want the presence of police to have a chilling effect on speech. Police are very often at the sharp end of structural violence in any country.

However, cancelling police accounts may create a false sense of security. The police can still read your posts. They can still subpoena your mods. However, at least they're preventing from stirring up trouble.

Alex shares his experiences:

my experience from moderating a forum globally with popular ravers in the 90s/00s is discouraging overt cops works in the short term but (unsurprisingly) they switch to detective methods to glean info, often co-operating with journalists and agencies (often across borders), and it was still up to "normal" users not to blatantly incriminate themselves.

OTOH US corporate socnets welcome cops as "free moderators" so officers get a sense of entitlement to these spaces..

Ravi arguments on the other side of the spectrum:

Banning their official account from an open network is not going to solve any of those problems in the least. They can carry on their more nefarious activities under cover if required anyway. This ban only serves to illustrate a knee jerk reaction, goes against fediverse practice where somebody is banned only for CoC violation and not on a feel or whim, goes against free speech and is opaque without any upfront policies on this. This is worse than banana republic.

Protonmail can read your emails

Bitcoin and Protonmail, the calling cards of the cryptoshit techbro (5 min, Mastodon thread)

Drew, who you may know as the creator of sourcehut, argues against the use of Bitcoin and Protonmail.

The thread goes back and forth with many people, myself included, asking why Protonmail is not secure as they claim.

After all, the explanation is simple. The only way to send e2e encrypted mail is to use a technology which is similar to PGP.

Drew explains:

  1. I write a plaintext email to you@protonmail.com
  2. My mail server connects to mail.protonmail.ch and writes the plaintext email to it
  3. mail.protonmail.ch now has the plaintext email

Q.E.D.

I feel kind of cheated by Protonmail, because they are claiming something which is just impossible to do technically.

A more thruthful claim would be: after sending your unencrypted mail to the recipient, we promise to delete it and only keep an encrypted copy. But they do have access to a plaintext copy at some point. The only exception, it seems, is for mail sent between Protonmail accounts.

If you want security, disable hyper-threading

Running on Intel? If you want security, disable hyper-threading, says Linux kernel maintainer (2 min, via)

Here is a summary:

MDS is where one program can read another program's data. That's a bad thing when you are running in a shared environment such as cloud computing, even between browser tabs [...] I see a slowdown of about 20 per cent. That's real. As kernel developers we fight for a 1 per cent, 2 per cent speed increase. Put these security things in, and we go back like a year in performance. [...] We are still fixing Spectre 1.0 issues [almost] two years later. [...] If you're not using a supported distro, or a stable long-term kernel, you have an insecure system. It's that simple. All those embedded devices out there, that are not updated, totally easy to break [...]

Go ahead and read the full article, it's not much longer, and paints a pretty depressing picture for current Intel users.

(If you prefer to run a faster system with no security, read this)

The SQL detective

sql-murder-mystery (RH, via) is a game where you have to solve a crime by writing SQL queries.

Fun, but this is not a five minute game. Prepare a whole afternoon if you want to solve it.

An aggregated "home feed"

Fraidycat (2 min, via)

is a browser extension for Firefox or Chrome that can be used to follow folks on a variety of platforms. But rather than showing you a traditional 'inbox' or 'feed' view of all the incoming posts, you are shown an overview of who is active and a brief summary of their activity.

and

Fraidycat attempts to dissolve the barriers between networks - each with their own seeming 'network effects' - and forms a personal network for you, a personal surveillance network, if you will, of the people you want to monitor.

I need to check this out in more depth. I would love to have something similar to this on my server, so I can access it from anywhere.

I want to follow people, not networks

Fraidycat feed

You should have seen this

Greg Rutter's definitive list of the 99 things you should have already experienced on the internet unless you're a loser or old or something and his second list (RH, via)

  • Charlie bit me
  • Chocolate rain
  • Mentos and diet coke
  • Badger Badger Badger
  • Play him off, keyboard cat

Stop reading this and watch the 198 videos NOW!

Feature comparison of UNIX flavors

Linux VS open source UNIX (30 min, via)

Is a very in-depth feature comparison of Linux and the BSDs, mostly at the kernel level. Not everybody's cup of tea, but make sure to at least check out the first table and the summary.

Table comparing UNIX kernel features

The Real UNIX

Will the real UNIX please stand up? (2 min, via) opens a discussion about UNIX roots and its impact in the 21st century.

At our level it's not worth worrying too much about which is the "real" UNIX, because all of these projects have benefitted greatly from the five decades of collective development. But it does raise an interesting question: what about the next five decades? Can a solution for timesharing on a 1960s minicomputer continue to adapt for the hardware and demands of mid-21st-century computing?

No more random phone searches in US airports

EFF statement (1 min, via)

In a major victory for privacy rights at the border, a federal court in Boston ruled today that suspicionless searches of travelers' electronic devices by federal agents at airports and other U.S. ports of entry are unconstitutional.

Some good news to wrap this roundup.

Tags: roundup, english

Google may terminate your account if you're not profitable

17 de noviembre de 2019 — Carlos Fenollosa

Youtube's new ToS, emphasis mine, via

YouTube may terminate your access, or your Google account's access to all or part of the Service if YouTube believes, in its sole discretion, that provision of the Service to you is no longer commercially viable.

Initially, this was interpreted as a way of kicking non-profitable channels out of the platform.

However, the implications are wider. Watching a Youtube video with adblock enabled may wipe your whole Google account.

It's not like they couldn't do this before, and good luck contacting Google's support channels, but the fact that they have made it explicit is a bit scary.

Personally, I've been slowly transitioning out of Google services for a while, but this is going to accelerate the process.

If you want to be safe, make sure that your gmail account is expendable before December 10th.

(Obligatory if you're not the customer, you're the product)

Tags: internet, english

Links for 2019-11-10

10 de noviembre de 2019 — Carlos Fenollosa

Windows backwards compatibility is amazing

The Windows Update Marathon in a VM: From Windows 1.01 to XP (5 min, in German) and Upgrading Windows NT 3.51 to Windows 10 via 2000, XP, Vista, 8 and 8.1 in under a minute (1 min, video) both via

Windows 95 opening Windows 3.1 apps

I can already hear the Windows 3.1, 95, 98 and XP startup sounds in my head. Can you?

Of course, nostalgia paints everything with rose colored glasses. Windows 3.1 was an amazing improvement over DOS. 95 brought real multitasking but it crashed constantly. 98 SE was the shit. XP started a bit wonky but with SP2 became a great OS. And anything that came later just sucks

Which brings us to...

Windows is not for OP

Back to windows after twenty years (2 min, via)

Apple's stubborn four-year refusal to fix the terminally broken butterfly keyboard design led me to a crazy experiment last week: Giving Windows a try for the first time in twenty years.

I have done this, for the same reasons (see link above)

However...

Anyway, I started this experiment on a Monday. I kept going all the way through Friday. Using the laptop as I would any other computer for the internet, and my new hobby of dealing with the stubbed toes of setting up a *nix development environment, but when I got to Saturday I just... gave up

Yup, seems about right.

Several top Spanish companies hit by ransomware

Everis and others hit by ransomware (2 min, Tweetstorm, in Spanish, via and discussion in English)

Two years ago, Telefonica, the Spanish telco, was hit by Wannacry, too

Ransomware is pretty scary. However, when you remember how viruses in the past just deleted your files, it makes you think. Do you prefer total destruction or a possibility of recovery through blackmail?

Remember:

  • Check your backups
  • Keep your OS always up to date
  • Don't use Windows unless strictly necessary

Spain passes its own "PATRIOT Act"

Críptica analyzes the new Spanish Digital Act (2 min, Tweetstorm, in Spanish)

Yes, Spain has hit the tech news twice this week.

Well, it was a matter of time. Spain already had a law which allowed the Government to close websites without a court order, which is outrageous on itself and has recently been used already to silence political dissent.

Now, the Government will have power to cut communications infrastructure (i.e. cellphone signal, internet at the ISP level) in situations where national security is at risk (ok) but also to protect public order (not ok)

Since any protest can disrupt public order, this new mechanism can be used almost indiscriminately.

Note: This law has been tuned by an acting government, during the general elections campaign.

All issues of the now defunct Linux Journal

Linux Journal complete (PDF) collection (RH, via) is an archive of the recently discontinued Linux Journal, a veteran in the industry.

F

Web vs native

Apple Is Trying to Kill Web Technology (2 min, via) is a manifesto that defends web apps.

In my opinion, it is misleading because it blames Apple, not the Electron developers, who are at fault for accessing private APIs. That is another topic of discussion, but hey, isn't it ironic? If you develop a web app that accesses private APIs, maybe you would be better served by a... native app?

Regardless, there a few valid points:

Apple's control over its app ecosystem is a new type of monopoly that's hard to understand for lawmakers, and difficult for us to fight back against — because there simply isn't a way out of these restrictions when the company controls both the distribution method and the platform itself

But again, this has nothing to do with Electron using private APIs to try and suck less.

I hate Electron apps, in case you didn't notice. Sorry. Everybody has their own biases.

Bash toolchain

Library for bash utility methods and tools, Shell Script Library, Bash Automated Testing System and Bash Infinity, a modern boilerplate / framework / standard library for bash (RH, via)

You may know I'm a Bash fan, so these finds are like gold to me.

The moral of the story is: don't dismiss bash without analyzing your requirements first.

Know Thy Computer

There's No Such Thing as Knowing Your Computer 'All the Way to the Bottom' (5 min, via)

I initially thought the title was about blobs in firmware, but no, the article is about programming languages, focusing on C.

Interesting, check it out if you're a systems programming nerd.

Give Firefox a chance

Give Firefox A Chance For A Faster, Calmer And Distraction-Free Internet (10 min, via) is a very good write-up with tips and tricks to maximize the usefulness and also the fun of Firefox.

A must read, and hopefully it may convince some people to switch from Chrome.

Boot sector games

Boot sector games (10 min, video)

The 8-Bit Guy has fantastic tutorials and reviews of cool old tech. If you want to see what can be done in 512 bytes you definitely need to watch this video.

Space Invaders clone that fits in 512 bytes

Use IRC as a private chat

IRC for DMs (2 min, via) is a quick review of current chat systems and why they suck.

I like crazy, statu-quo breaking ideas, though the practicality of using IRC as a private chat system is nuts. Nuts, as in 90's rad.

Tags: roundup, english

Links for 2019-11-03

3 de noviembre de 2019 — Carlos Fenollosa

Why 80x25?

80×25 (5 min, via is fantastic research where author mhoye puts the puzzle pieces together and discovers why our 2019 console emulators launch with a default resolution of 80x25.

I'm not going to spoil it, you will need to read the article. Here's the first paragraph:

Every now and then, my brain clamps on to obscure trivia like this. It takes so much time. "Because the paper beds of banknote presses in 1860 were 14.5 inches by 16.5 inches, a movie industry cartel set a standard for theater projectors based on silent film, and two kilobytes is two kilobytes" is as far back as I have been able to push this, but let's get started.

7000 DOS games in your browser

The Software Library: MS-DOS (RH, via) is an outstanding collection of DOS software from the Internet Archive playable in-browser via dosbox-js emulation, including, of course, the aforementioned 7000 games.

Go try it out and waste the rest of this Sunday!

Play Simcity in your browser

A Gameboy modern clone

Analogue Pocket, a Gameboy Color/Advance built using modern technology (5 min, via)

An interesting console with hardware for loading original Gameboy cartridges but running with more modern hardware like a hi-res backlit LCD and a rechargeable battery.

I'm always tempted to buy these, but in the end I keep using my NDS Lite as a retro emulator.

The Analogue Pocket

NordVPN and TorGuard hacked

NordVPN confirms it was hacked (2 min, via), NordVPN and TorGuard VPN Breaches: What You Need to Know (5 min, via) and Make yourself an iOS-compatible VPN with OpenBSD

NordVPN told TechCrunch that one of its data centers was accessed in March 2018. "One of the data centers in Finland we are renting our servers from was accessed with no authorization," said NordVPN spokesperson Laura Tyrell.

The attacker gained access to the server — which had been active for about a month — by exploiting an insecure remote management system left by the data center provider; NordVPN said it was unaware that such a system existed.

And

[NordVPN advisory board member Tom Okman] said it was hard to determine if hackers obtained information on the internet usage of Nord users because the company doesn't collect logs of activity on its servers, a selling-point to privacy-conscious customers. 'I think that the worst case scenario is that they could inspect the traffic and see what kind of websites you could visit,' Okman said. He said this would only apply to Nord users who used its Finnish server and were accessing websites that didn't use the secure protocol HTTPS

HN user safeplanet-fesa also raises questions about Tesonet, the parent company of NordVPN

Twitter user @hexdefined details how an attacker could have performed a MITM attempt given what we know about the breach.

Drew DeVault started an interesting thread discussing alternatives on his Mastodon account.

A homemade PCB

My First PCB! (5 min, via)

Recently I linked to a homemade tutorial on how to make an IC, and this week I found this tutorial where Laura Lindzey explains how to make the jump from a proto-board and make a real PCB at home.

I will always link to these home electronics experiments, I love them.

Spying on children at school

Gaggle Knows Everything About Teens And Kids In School (2 min, via)

I'm sure that future adults will appreciate having a record of every word they uttered at school /s

Very elaborate, state-targeted Whatsapp attack

WhatsApp hacked to spy on top government officials at U.S. allies (2 min, via)

A very high-profile attack used a Whatsapp vulnerability "to take over users' phones". Which users? "High-profile government and military officials spread across at least 20 countries on five continents"

Unfortunately, the article doesn't explain how the app exploit propagated upwards to the OS and take full control of the phone, which is the real key of the question.

StarCraft AIs start beating humans

AlphaStar: Grandmaster level in StarCraft II using multi-agent reinforcement learning (RH, via)

People have been trying to develop Starcraft AIs since forever, but this is the first time that a bot can beat a world champion player.

Our new research differs from prior work in several key regards:

  1. AlphaStar now has the same kind of constraints that humans play under – including viewing the world through a camera, and stronger limits on the frequency of its actions
  2. AlphaStar can now play in one-on-one matches as and against Protoss, Terran, and Zerg
  3. The League training is fully automated, and starts only with agents trained by supervised learning, rather than from previously trained agents from past experiments.
  4. AlphaStar played on the official game server, Battle.net, using the same maps and conditions as human players. All game replays are available here

Go check the replays now!

The Internet is no longer what it was

50 years ago, I helped invent the internet. How did it go so wrong? (5 min, via) and I Miss the Old Internet (1 min, via) are a couple nostalgic pieces about the old internet, defending why it was better, because it was more decentralized, more personal, and wasn't just another way to push ads in front of eyeballs.

On a related note, A History of Personal and Professional Websites (10 min) is a series of screenshots showcasing the author's first websites, real nostalgia fuel.

Face recognition to unlock porn

Australia wants to use face recognition for porn age verification (1 min, via)

What could possibly go wrong?

Chat over the email protocol

Delta Chat, Instant E-Mail Messaging (1 min, via)

Delta Chat is essentially a GUI over email which displays threads as chat conversations. And I really like that!

This is a really interesting project which, although it will rarely take off on the mainstream, can already argue they already took care of the network effects of their platform. Kind of like the old Google Talk, but universal.

It even includes E2E encryption by default by integrating Autocrypt. The project is actively maintained, so why don't you give it a try?

Running out of IPv4 addresses

This Time, There Really Are NO IPv4 Internet Addresses Left (1 min, via)

Is it the boy crying wolf again? Is this the digital equivalent of "we will run out of oil in 25 years"?

Some big ISPs still have a large stockpile of IPv4s but others that haven’t deployed IPv6 may have to stretch that out by adopting awkward solutions like internet address sharing (Carrier Grade NAT), which can in some circumstances create problems for internet systems that use unique IP addresses to identify, process and or block user activity.

In other cases we have seen some commercial trading of retired IPv4 address space and this is likely to become more common, at least until the day comes that IPv4 can finally be put to bed.

It seems that we may be in overtime, but there is still a life for IPv4 after all.

At this point I'm not sure what I prefer. Some years ago I even paid my ISP to have a static IP, which I used to host stuff at home. Nowadays, I have a $5/month VPS to host, and I really want to be anonymous at home, so I appreciate address sharing, which hides my real IP to the server, and can only be deanonymized with a judge order to the ISP.

Tags: roundup, english

Mass cellphone surveillance experiment in Spain

29 de octubre de 2019 — Carlos Fenollosa

Spanish Statistics Institute will track all cellphones for eight days (2 min, link in Spanish, via)

A few facts first:

  • Carriers geotrack all users by default, using cell tower triangulation. They also store logs of your calls and sms, but that is a story for another day.
  • This data is anonymized and sold to third parties constantly, it's part of the carriers business model
  • With a court order, this data can be used to identify and track an individual...
  • ... which means that it is stored de-anonymized in the carrier servers
  • This has nothing to do with Facebook, Google or Apple tracking with cookies or apps
  • You cannot disable it with software, it is done at a hardware level. If you have any kind of phone, even a dumbphone, you are being tracked
  • It is unclear whether enabling airplane mode stops this tracking. The only way to make sure is to remove the SIM card and battery from the phone.

This is news because it's not a business deal but rather a collaboration between Spain's National Statistics Institute and all Spanish carriers, and because it's run at a large scale. But, as I said above, this is not technically novel.

On paper, and also thinking as a scientist, it sounds very interesting. The actual experiment consists on tracking most Spanish phones for eight days in order to learn about holiday trips. With the results, the Government expects to improve public services and infrastructures during holiday season.

The agreement indicates that no personally identifiable data will be transferred to the INE, and I truly believe that. There is nothing wrong about using aggregated data to improve public services per se, but I am concerned about two things.

First of all, Spain is a country where Congress passed a law to create political profiles of citizens by scraping social networks —fortunately rejected by the Supreme Court— and also blocked the entire IPFS gateway to silence political dissent.

I'd say it is quite reasonable to be a bit suspicious of the use that the Institutions will make of our data. This is just a first warning for Spanish citizens: if there is no strong backlash, the next experiment will maybe work with some personal identifiable data, "just to improve the accuracy of results". And yada yada yada, slippery slope, we end up tracking individuals in the open.

Second, and most important. This is no longer a topic of debate! We reached a compromise a few years ago, and the key word is consent.

All scientists have to obtain an informed and specific consent to work with personal data, even if it is anonymous, because it is trivially easy to de-anonymize individuals when you cross-reference the anonymous data with known data: credit cards, public cameras, public check-ins, etc. In this case, once again, the Spanish institutions are above the law, and also above what is ethically correct.

No consent, no data shared, end of story. Nobody consented to this nor were we given an option to opt out.

P.S. Of course, this is a breach of GDPR, but nobody cares.

Tags: law, security, english

Links for 2019-10-20

18 de octubre de 2019 — Carlos Fenollosa

Bye, Yahoo! Groups

Yahoo is deleting all content ever posted to Yahoo Groups (1 min, via)

I am torn between "You will not be missed" and "This is like the Geocities shutdown all over again"

In any case, this warrants an F

How to disable Linux Intel mitigations

HOWTO make Linux run blazing fast (again) on Intel CPUs (2 min, via) is a quick note on the grub parameters required to make Linux faster by disabling the security mitigations for Intel CPU bugs.

Should you do it? Benchmarks report 10%-15% performance increase with mitigations off. I have personally not taken this trade-off and my mitigations are still on, however, I have not disabled SMT which is the only 100% safe solution.

Personally, on a computer that is constantly running third party code —websites—, I prefer to lose that 15%.

Everything is louder now

Why Everything Is Getting Louder (15 min, via) blames the tech industry for the rising noise baseline we suffer everyday.

The article focuses on electronics-generated noises, but let me twist it to my agenda.

We must fight against noise pollution.

Unfortunately, in our urban modern lifestyles, we are constantly sharing our space with cars, trains, planes, ambulances, noisy cellphones, TVs, and other sources of unwanted noise.

Some things we can't avoid and, well, we just cope with them.

I hate TVs on bars, dislike ambient music, and loathe people using loud cellphones in public. I carry in-ear headphones and regularly use them even when I'm not listening to any music.

Some people just can't be alone with their thoughts and need constant external stimulus. I understand that, and can even empathize with them. But let the rest of us enjoy our moments of silence.

Both our attention and our peace of mind are precious resources, and anything that wants to deprive us of them, without good reason, is an enemy.

As I read somewhere on the Internet: "Nobody is coming to the beach to listen to their towel neighbour's music."

CO2 levels in offices

Literally Suffocating In Meetings, A Little (1 min, via) argues that high CO2 levels, which are common in poorly ventilated meeting rooms, have adverse health effects.

The NYT published a piece on CO2 levels and poor decisions, which can be summarized as "high CO2 levels make you groggy and dumb".

I guess the take home message is, watch your CO2 levels as you'd watch temperature, humidity or pollutants.

pg presents new Lisp

Bel (RH, via)

When one of the Lisp wizards releases a new dialect, you listen.

Of course, read the HN comments as they provide more context.

Hardware implants are becoming cheaper

Planting Tiny Spy Chips in Hardware Can Cost as Little as $200 (5 min, via) is kind of a follow-up to the infamous Bloomberg "The Big Hack" unverified piece.

In this article:

At the CS3sthlm security conference later this month, security researcher Monta Elkins will show how he created a proof-of-concept version of that hardware hack in his basement.

With only a $150 hot-air soldering tool, a $40 microscope, and some $2 chips ordered online, Elkins was able to alter a Cisco firewall in a way that he says most IT admins likely wouldn't notice, yet would give a remote attacker deep control.

Well, now we will start needing verifiable hardware, probably through other trusted hardware testing devices. This is going to be fun.

As a related note, one HN comment points out to Operation GUNMAN - how the Soviets bugged IBM typewriters which contains full details on how the bug works.

An Ode to the File

Computer Files Are Going Extinct (5 min, via) defends the usefulness of computer files and laments how we are transitioning to different metaphors in the computing world.

Most of the HN comments follow the author's thesis, but I am of a different opinion on this topic.

"Files" are difficult metaphors for most people, and they feel more comfortable when the app hides this structure behind some easier visual object.

This is just another step towards The Great Divide, which will come soon. Computing devices will be split between content creators and content consumers, and consumer devices will be absolutely different in any shape or form to creator devices.

When Steve Jobs' was interviewed at D8 (video, 2:20) where he comes up with the cars/trucks metaphors for PCs and iPads:

"When we were an agrarian nation, all cars were trucks because that's what you needed on the farms." Cars became more popular as cities rose, and things like power steering and automatic transmission became popular.

"PCs are going to be like trucks," Jobs said. "They are still going to be around." However, he said, only "one out of x people will need them."

The move, Jobs said, will make many PC veterans uneasy, "because the PC has taken us a long ways."

You are being tracked

The Fantasy of Opting Out (10 min, via) is an excellent article by two University professors on how you are being tracked online, not only with cookies and javascript, but also with your devices radios and cross-referencing datasets.

Here's the actionable part:

We can apply obfuscation in our own lives by using practices and technologies that make use of it, including:

  • The secure browser Tor, which (among other anti-surveillance technologies) muddles our Internet activity with that of other Tor users, concealing our trail in that of many others.

  • The browser plugins TrackMeNot and AdNauseam, which explore obfuscation techniques by issuing many fake search requests and loading and clicking every ad, respectively.

  • The browser extension Go Rando, which randomly chooses your emotional "reactions" on Facebook, interfering with their emotional profiling and analysis.

  • Playful experiments like Adam Harvey’s HyperFace project, finding patterns on textiles that fool facial recognition systems – not by hiding your face, but by creating the illusion of many faces.

The original Macintosh manual

Thoughts on (and pics of) the original Macintosh User Manual (10 min, via) is a beautiful review of the 1984 Mac manual, complete with high resolution pictures.

1984 Macintosh manual

I miss printed computer manuals like the Macintoshes and the Commodores.

How to pwn

Offense At Scale (5 min, PDF) is a good intro to pentesting techniques.

I found that presentation via Defense at Scale where the author suggests strategies to reduce the attack surface.

Both presentations are good, but I liked the former best.

How file formats work

Designing File Formats (5 min, via) explains how magic numbers and file headers work.

Every programmer should know this. Go read it!

How to make an Integrated Circuit

On First IC :) (RH, via), Sam Zeloof details how he created his first "homemade" chip on his garage, from design to transistor litography.

He has some advanced machinery available, this is not really a project anybody can do "at home", but it's a very insightful read!

integrated circuit

Tags: roundup, english

Links for 2019-10-13

13 de octubre de 2019 — Carlos Fenollosa

No common topic this week. Enjoy the links!

New Linux laptops with open source firmware

System76 Will Begin Shipping 2 Linux Laptops With Coreboot-Based Open Source Firmware (2 min, via)

My endgame is to retire early and create an ecosystem of free hardware + software for a laptop, phone and could environment, like iCloud but totally self-hosted.

Meanwhile, we have to be satisfied with small advances like these laptops running Coreboot.

Kudos to System76, and let's hope the market moves towards this goal.

New graphical toy OS

SerenityOS: From zero to HTML in a year (2 min), is a visual tour through the development of SerenityOS, a toy OS with graphical capabilities, now able of rendering a webpage using its own web browser.

As a fan of toy OSs, this is awesome.

Ken Thompson's password

Ken Thompson's Unix password (2 min, via) explains how Nigel Williams hacked Ken Thompson's extremely secure Unix password and it turns out to be a chess move!

From: Nigel Williams Subject: Re: [TUHS] Recovered /etc/passwd files

ken is done:

ZghOT0eRm4U9s:p/q2-q4!

took 4+ days on an AMD Radeon Vega64 running hashcat at about 930MH/s during that time (those familiar know the hash-rate fluctuates and slows down towards the end).

D-Link routers will remain vulnerable

D-Link Home Routers Open to Remote Takeover Will Remain Unpatched (1 min, via)

I am just going to quote HN user jjguy:

This is the new normal, folks. Consumer technology is manufactured for six to twelve months, but live in our homes for three to five years. Today's manufacturers cannot afford to update software for hardware devices they have already moved on from. Changing that requires a significant upheaval in their business models.

This applies to every "connected device:" printers, cell phones, home routers, refrigerators, thermostats -- you name it.

Your router is your gateway to the Internet. Any flaws on its software will open your home computers and phones to remote attackers.

There is little we can do, except starting to treat our routers like any other computer: make sure it's updated regularly, and when it does not get any security updates anymore, replace it with a newer model.

Twitter misusing 2FA phone numbers

Twitter admits it used two-factor phone numbers and emails for serving targeted ads (1 min, via)

Only one month ago, Twitter's CEO Jack's account was hacked exploiting his 2FA phone number via "SIM swap" attack.

Now we discover that, like Facebook did, Twitter also used the phone you provided for 2FA to target you with ads.

Shame on Twitter, this is an absolutely shitty practice which will backfire by letting users associate 2FA with a bad thing.

As HN user danShumway explains:

Virtually the entire security industry agrees that using phone numbers for account security is an antipattern because of sim-jacking, and yet swaths of the biggest tech companies in the industry do it anyway.

[...]

In theory, a 2FA over SMS is better than nothing. In practice, it trains customers to be insecure and should be avoided. It trains customers to think that identity verification over text is OK. In practice, you can't trust companies not to use it for advertising, or to start using it as identity verification in the future. In practice, there are very, very few legitimate reasons why a company should ever need my phone number, and pretty much none of them have anything to do with security. 99% of your users should be using a 2FA app instead of a phone number.

Remote exploit on the wild for Android phones

New 0-Day Flaw Affecting Most Android Phones Being Exploited in the Wild (2 min)

The zero-day is a use-after-free vulnerability in the Android kernel's binder driver that can allow a local privileged attacker or an app to escalate their privileges to gain root access to a vulnerable device and potentially take full remote control of the device.

According to the researcher, since the issue is "accessible from inside the Chrome sandbox," the Android kernel zero-day vulnerability can also be exploited remotely by combining it with a separate Chrome rendering flaw.

Therefore, most Android devices manufactured and sold by a majority of vendors with the unpatched kernel are still vulnerable to this vulnerability even after having the latest Android updates

  • Pixel 1
  • Pixel 1 XL
  • Pixel 2
  • Pixel 2 XL
  • Huawei P20
  • Xiaomi Redmi 5A
  • Xiaomi Redmi Note 5
  • Xiaomi A1
  • Oppo A3
  • Moto Z3
  • Oreo LG phones
  • Samsung S7
  • Samsung S8
  • Samsung S9

To be noted, Pixel 3, 3 XL, and 3a devices running the latest Android kernels are not vulnerable to the issue.

This is really, really bad. Update as soon as the patches are released, and don't browse untrusted websites meanwhile.

Dockerizing ancient OSs

Resurrecting Ancient Operating Systems on Debian, Raspberry Pi, and Docker (1 min, via) is a quick note where the author explains how he has dockerized ancient OSs repo to replicate these old environments and play with them in the modern era.

I like this idea a lot and, actually, I have my own folder of virtualised systems with which I play from time to time. I have a perfect replica of my old computers (a DOS + Win31, a Win98 and a WinXP) and run them regularly to feel that good nostalgia.

Your crappy app wastes my brain glucose

Your app makes me fat (2013, 5 min, via)

This is an extremely interesting article on popular psychology and how willpower is a finite resource which gets depleted.

Willpower and cognitive processing draw from the same pool of resources.

Spend hours at work on a tricky design problem? You're more likely to stop at Burger King on the drive home. Hold back from saying what you really think during one of those long-ass, painful meetings? You'll struggle with the code you write later that day.

Since both willpower/self-control and cognitive tasks drain the same tank, deplete it over here, pay the price over there. One pool. One pool of scarce, precious, easily-depleted resources. If you spend the day exercising self-control (angry customers, clueless co-workers), by the time you get home your cog resource tank is flashing E.

Remember these conclusions: since I read about that link between glucose depletion in the brain and willpower I have been much more aware of my cravings and how to avoid succumbing to them.

The rise of Matebooks

Void Linux (musl) on the Huawei Matebook X Pro (5 min) is a good review of the Matebook, with some bonus opinions on Void Linux.

I've mentioned many times that I'm unhappy with the current state of Apple hardware, and I have been looking for alternatives.

Old Lenovos are cheap, newer Lenovos are pretty good, and it's nice to know that there's a high quality, affordable laptop in between them.

Remembering the BBSs

BBSes: Partying Online Like It's 1989 (10 min, via)

The BBS era is one I barely missed, as my early Internet experiences happened around 1996 via IRC, mail and the early web. The article reminisces of this primeval and very popular form of communication that catered to many niches.

On a side note, I just discovered Paleotronic, and it's a great source of retro nostalgia. The topics are interesting, the text is accessible, and it's full of pictures from old magazines. You will probably see it linked a lot here!

A cynical take on HN

webshit weekly is a weekly commentary on the top HN links.

I really like the author's cynical take, his sense of humor, and the way he interprets comments on the funniest and worst possible way.

You will find gems like:

(Apple Hides Taiwan Flag in Hong Kong)

Whether an old person falls over or a young person stands up, Apple will call the cops.

(Google Cloud is down)

Nobody considers the obvious root cause: Google, being unable to embed ads into TCP packets, has discontinued the product.

(Comparing the Same Project in Rust, Haskell, C++, Python, Scala and OCaml)

Some children play programming language pokemon.

(Facebook reveals its cryptocurrency Libra)

Facebook, unsatisfied with being an unregulated newspaper, post office, and telephone service, decides the only way to recover from years of user-abuse scandals is to become an unregulated bank.

Privacy under attack by US, UK, AU govts

The Open Letter from the Governments of US, UK, and Australia to Facebook is An All-Out Attack on Encryption (1 min, via)

The EFF explains:

Top law enforcement officials in the United States, United Kingdom, and Australia told Facebook today that they want backdoor access to all encrypted messages sent on all its platforms. In an open letter, these governments called on Mark Zuckerberg to stop Facebook's plan to introduce end-to-end encryption on all of the company's messaging products and instead promise that it will "enable law enforcement to obtain lawful access to content in a readable and usable format."

I don't have much more to add other than linking to my 2015 text on "Think of the terrorists" is the new "Think of the children"

More problems with Catalina

In macOS 10.15 Vista (1 min) and Broken (2 min, via), Tyler Hall presents a screenshot of evidence of how low Apple has fallen with its recent UX.

macOS Vista

I will definitely not upgrade to Catalina, and there are many others who think like me

I sincerely hope Apple get its act together and starts producing good software and hardware again. These last 5 years have been an absolute hell as an Apple ecosystem user.

Cloudflare is bad, take two

CloudFlare is ruining the internet (for me) (2016, 2 min, via)

The idea that a single company can negatively influence the experience of such a large portion of the internet for users is kinda scary

I agree with the author. We should stop giving Cloudflare too much power.

This is a company that can cut off internet access for a large amount of users, or seriously hinder it (endless stream of captchas) with the switch of a button.

I would urge everyone to reconsider using CloudFlare as your CDN/DNS/DDOS solution. Being free is not good enough reason to use something, if you are concerned about your site speed there are more important things to look into for optimization before considering a CDN

Most deepfakes are porn

Most Deepfakes Are Used for Creating Non-Consensual Porn, Not Fake News (2 min, via)

We need to figure out how platforms will moderate users spreading malicious uses of AI, and revenge porn in general. We have to solve the problems around consent, and the connection between our bodily selves and our online selves. We need to face the fact that debunking a video as fake, even if it's proven by DARPA, won't change someone's mind if they're seeing what they already believe. If you want to see a video of Obama saying racist things into a camera, that's what you'll see—regardless of whether he blinks.

The Department of Defense can't save us. Technology won't save us. Being more critically-thinking humans might save us, but that's a system that's lot harder to debug than an AI algorithm.

Last month I linked to a Facebook initiative to detect deepfakes and it seems that the deepfake problem is starting to get mainstream.

Good.

Tags: roundup, english

US Software companies comply with international law, to their great regret

12 de octubre de 2019 — Carlos Fenollosa

This week has been very heavy on China-related software scandals:

On Apple's side, as usual, ther has been more media coverage:

US companies and entities are forced to apply international law, sometimes breaking universal human rights.

This is a difficult topic. On one hand, States are sovereign. On the other, we should push for a better world. However, to which degree has a private company the right to ignore state rulings? They can, and suffer the consequences. That would be consistent. Are they ready to boycott a whole country, or risk a banishment from that country?

As an individual, the take home message is that if you delegate some of your tasks to a private company, or you rely on a private company in some degree, you risk being unable to access your data or virtual possessions at any time. Be it due to international law, or to some stupid enforcement or terms-of-service bullshit.

Please follow the HN discussions on the "via" links above, they are very informative.

Tags: internet, law, english

Links for 2019-10-06: Retro Nostalgia

6 de octubre de 2019 — Carlos Fenollosa

The topic for this week is nostalgia. As usual, the on-topic links appear first, then the classic medley, and finally some follow-up.

DOS compatible Macintosh from 1995

Apple's MS-DOS Compatible 486 Macintosh from 1995! (10 min, via)

Famous retro youtuber LGR does a short tour of this retro Macintosh that contains a card with a 486 and can run DOS.

Demo with sound in 64 bytes

into war 64b (1 min, via) is a 3D animation, or demo, with sound, in only 64 bytes of DOS assembler.

This Reddit thread does a code analysis, and reveals the many tricks the demo uses.

Are RTSs dead?

What Happened to the Real Time Strategy Genre (2 min, via) is a good analysis of why there are no good RTS games.

Having played Starcraft 2, I must admit that I liked Starcraft better. Even War3, as enjoyable as it is, lacked playability in comparison with the original Starcraft.

Nowadays I don't play many games, so I don't mind installing SC from time to time and playing some campaigns. Who needs modern RTSs when we already reached perfection in 1998? ;-)

Four column ASCII

Four Column ASCII (2017, 5 min) explains why Ctrl-H is backspace, Ctrl-[ is Escape, and other control codes.

Curious and enlightening. Every UNIX user should learn this, and it's not really common knowledge.

SNES enhancement chips

SNES enhancement chips (2 min, via) is a tweetstorm detailing different chips that SNES cartridges used to provide extra features to the base console.

In the HN discussion, user jordigh links to a great series of posts detailing how the Super Game Boy works, which is maybe even more interesting and in depth than the original tweetstorm!

How X11 works

Explanations (RH, needs JS, via) is a series of amazingly well-done and well-explained, in-website demos on how X11 works.

Yes, the demos embed an X11 server inside your browser and allow you to understand how the protocol works!

If you're even vaguely interested in how your computer is rendering the content you're reading right now, check out this link.

Dev backlash to macOS 10.15

Sorry macOS users, but Apple has gone too far for some of us devs (1 min, via, HN discussion), and Thoughts on Cocoa (1 min, via) are just two of the increasing number of articles against 10.15 breaking backwards compatibility.

Catalina is going to drop 32-bit support and many old, unmaintained applications are going to stop working.

I personally use a few of them, and it's making me strongly consider not upgrading to 10.15.

The computer on the Voyager

"Uptime 15,364 days - The Computers of Voyager" by Aaron Cummings (40 min, via)

The Voyager 1 and Voyager 2 space probes, both launched in 1977, each had a primary objective to explore Jupiter and Saturn. This goal was achieved by 1981. Yet Voyager, NASA's longest running mission, has continued to this day. Both Voyager probes are still operating, and returning scientific data from outside our solar system.

This talk explores the computing systems of Voyager - the systems which enable remote control of the spacecraft, and provide for the recording and return of data to Earth. These systems have proved to be both adaptable, durable, and resilient in support of a scientific undertaking now in it's fifth decade.

What can we learn from the engineering of Voyager's computing systems? Why have they survived for so long in the harsh environment of space? What is involved in patching a system from a billion miles away? And what does the future hold?

I love these feats of engineering.

Windows 10 pushes you to create a Microsoft account

MS has removed the "use offline account" option when installing (1 min, via)

It seems that the title is misleading. Reddit user Froggypwns explains (emphasis mine)

They have not removed it, it just is not visible by default if you are connected to the internet. Either run the setup without being connected to the internet, or type in a fake phone number a few times and it will give you the prompt to create a local account.

Other Reddit users provide workarounds around this, but the main point is that the Windows user experience is worse than ever.

The real work that executives do

What do executives do, anyway? (10 min, via) is an excellent, let me say it again, excellent read on how executives should behave in order to get the best possible outcomes.

Let me give you a sneak peek:

What executives need to do is come up with organizational values that indirectly result in the strategy they want.

[...]

Why will employees embrace whatever weird organizational values you set? Because in every decision meeting, you enforce your values. And you fire the people who don't line up. Recursively, that means executives lower down the tree will do the same, because that itself is one of the values you enforce.

Really, if you are in an executive position, go ahead and read it.

Wrap-up on TVs tracking you

Three recent papers uncover the extent of tracking on TVs (Tweetstorm, 5 min, via) mentions the two studies linked here previously, Tracking you with TV ads and IoT products expose personal information, and links to another one in the same line.

If you are interested in learning more, Arvind Narayanan's tweetstorm is thorough and to the point, explaining the main conclusions of each paper. His conclusions:

There are steps we can take. Stay away from vendors whose business model is targeted ads. Every device is a potential tracker; do your research before buying. Install tools that give you control, such as Pi-hole, even if imperfect. Install a monitoring tool on your home network.

and

These individual steps are not enough: we need collective action. Researchers must keep doing our part; we look forward to teaming up with journalists, civil society organizations, and the public, so that we can choose our future, not sleepwalk into it one channel at a time.

As usual, the HN discussion provides interesting viewpoints too.

Tags: roundup, english

checkm8: What you need to know to keep your iPhone safe

29 de septiembre de 2019 — Carlos Fenollosa

A couple days ago, Twitter user axi0mX introduced checkm8, a permanent unpatchable bootrom exploit for iPhones 4S to X

The jailbreak community celebrated this great achievement, the netsec community was astounded at the scope of this exploit, and regular users worried what this meant for their phone's security.

Even though I've jailbroken my iPhone in the past, I have no interest to do it now. If you want to read the implications for the jailbreak community, join the party on /r/jailbreak

I have been reading articles on the topic to understand what are the implications for regular people's security and privacy. All my family has A9 iPhones which are exploitable, and I wanted to know whether our data was at risk and, if such, what could we do to mitigate attacks.

I think the best way to present the findings is with a FAQ so people can understand what's going on.

1-Line TL;DR

If you have an iPhone 4s, 5, or 5c, somebody who has physical access to your phone can get all the data inside it. If your phone is more modern and the attacker doesn't know your password, they can still install malware, but rebooting your phone makes it safe again.

What is Jailbreak?

Your iPhone is controlled by Apple. You own it, but you are limited in what you can do with it.

Some people like this approach, others prefer to have total control of their phone.

A jailbreak is a way of breaking these limitations so you can 100% control what's running on your phone.

The goal of jailbreaking is not necessarily malicious. In fact, the term "jailbreak" has the connotation that the user is doing it willingly.

However, the existence of a jailbreak method means that an attacker could use this same technique to compromise your phone. Therefore, you must understand what is going on and how to protect yourself from these attackers.

Jailbreaking has existed since the first iPhone. Why is this one different?

Typically, jailbreaking methods exploit a software bug. This means that Apple can (and does) fix that bug in the next software release, negating the method and any related security issues.

This method, however, exploits a hardware bug on the bootrom. The bootrom is a physical chip in your iPhone that has some commands literally hard-wired in the chip. Apple cannot fix the bug without replacing the chip, which is unfeasible.

Therefore, it is not possible to fix this bug, and it will live with your phone until you replace it

These kind of bugs are very rare. This exact one has been already patched on recent phones (XS and above) and it has been a long time since the last one was found.

☑ This bug is extremely rare and that is why it's important to know the consequences.

How can an attacker exploit this bug? Can I be affected by it without my knowledge?

This exploit requires an attacker to connect your phone to a computer via Lightning cable.

It cannot be triggered by visiting a website, receiving an email, installing an app, or any non-suspicious action.

☑ If your phone never leaves your sight, you are safe.

I left my phone somewhere out of sight. May it be compromised?

Yes. However, if you reboot your phone, it goes back to safety. Any exploit does not persist upon reboots, at least, at this point in time. If that changes, this text will be updated to reflect that.

Any virus or attack vector will be uninstalled or disabled by Apple's usual protections after a reboot.

If you feel that you are targeted by a resourceful attacker, read below "Is there a feasible way to persist the malware upon reboot?"

☑ If you are not sure about the safety of your phone, reboot it.

Can my personal data be accessed if an attacker gets physical access to my phone?

For iPhones 4S, 5 and 5c, your data may be accessed regardless of your password. For iPhones 5s and above (6, 6s, SE, 7, 8, X), your data is safe as long as you have a strong password.

If you have an iPhone 4s, 5, or 5c, anybody with physical access to your phone will have access to its contents if your password is weak (4 to 8 digit PIN code, or less than 8 characters alphanumeric code)

If your iPhone 4s-5-5c has a strong password, and the attacker does not know it and cannot guess it, they may need a long time (months to years) to extract the data. Therefore this attack cannot be run in the scenario where the phone leaves your sight for a few minutes, but you get it back quickly afterwards. However, if your phone 4s-5-5c is stolen, assume that your data is compromised.

It is unknown if this exploit allows the attacker to guess your password quicker than a "months to years" period on older iPhones.

iPhones 5s and above have a separate chip called the Secure Enclave which manages access to your personal data. Your data is encrypted on the device and can not be accessed. The Secure Enclave does not know your password, but uses some math to decrypt it with your password.

If you have an iPhone 5s and above, an attacker can only access your data if they know, or can easily guess, your password.

☑ Use a strong password (>8 alphanumeric characters) that an attacker can not guess

Can it be used to disable iCloud lock, and therefore re-use stolen phones?

It is unknown at this point.

Assuming the scenario where iCloud lock is not broken, and the Secure Enclave is not affected, what is the worst that can happen to my phone?

You may suffer a phishing attack: they install a fake login screen on your iPhone, or replace the OS with an exact copy that works as expected, but it also sends all your keystrokes and data to the attacker.

The fake environment may be indistinguishable from the real one. If you are not aware of this attack, you will fall for it.

Fortunately, this malware will be purged or disabled upon reboot.

All phones (4s to X) are vulnerable to this attack.

☑ Always reboot your phone if you think it may be compromised.

Is there a feasible way to persist the malware upon reboot?

Unlikely. The jailbreak is tethered, which means that the phone must be connected to a computer every time it boots.

However, somebody may develop a tiny device that connects to the Lightning port of the iPhone and conveniently injects code/malware every time it is rebooted.

This device may be used on purpose by jailbreakers, for convenience (i.e. a Lightning-USB key, or a small computer) or inadvertently installed by a sophisticated attacker (i.e. a phone case that by-passes the lightning port without the victim knowing)

In most cases, this external device will be easy to spot even to the untrained eye.

An extremely sophisticated attacker may develop a custom chip that is connected internally to the Lightning port of the iPhone and runs the malware automatically and invisibly. To do so, they would need physical access to your phone for around 10 minutes, the time it takes to open the phone, solder the new chip, and close it again.

☑ Watch out for unexpected devices connected to your Lightning port

Who are these "attackers" you talk about?

Three-letter agencies (NSA, FBI, KGB, Mossad...) and also private companies who research their own exploits (Cellebrite, Greyshift) to sell them to the former.

It is entirely possible that the above already knew about this exploit, however.

Other attackers may be regular thieves, crackers, pranksters, or anybody interested in developing a virus for the iPhone.

If you are a regular user who is not the target of a Government or Big Criminal, remember:

  1. Don't let people connect your iPhone to an untrusted device
  2. Otherwise, reboot it when you get it back
  3. Watch out for small devices on your Lightning port
~~~~~~

References:

Tags: apple, security, english

Famous public figure in tech suffers the consequences for asshole-ish behavior

29 de septiembre de 2019 — Carlos Fenollosa

This last month, a very famous computer guy who regularly appears in public and has amassed a cultish-like following has been forced to step down due to pressure from journalists.

Let's make a list of all the unacceptable behaviours of Computer Guy:

Living in his office and disgusting smell

He is not really homeless, but Computer Guy used to sleep in his office.

Coworkers and friends reported that he reeked and would avoid contact with him.

Sexually harassing employees

It has been reported, even in video, that Computer Guy made inappropriate sexual utterances to their colleagues.

Of course, Computer Guy denied it.

Drug intake

Computer Guy is a known hippie, I mean, just look at his appearance.

He is not ashamed to admit that he has taken illegal drugs and that they are an important part of his life.

Psychological abuse to women

Not many people know this, but Computer Guy has a daughter which he denied for a long time.

Computer Guy basically abandoned his former partner who was pregnant with their daughter, denied her alimony, and even abused the child psychologically when she was 9.

Keeping payments from group projects for himself

In one of his projects, Computer Guy profited more that he had earned by lying to colleagues. Instead of fairly distributing the money from a project, he decided to take most of it for himself.

In a similar case, he denied fair compensation to an old friend of his.

Bad temper

All these examples can be summarized as: Computer Guy is an asshole who must be taken down.

Even though Computer Guy did nothing technically illegal, being such a big asshole must not be acceptable in our society and the right thing to do is to pressure him to resign from his public positions.

~~~~~~

Since mobs don't read the news, only the headlines, and I don't want any association with any of the parties in this drama, I think I must write the non-snarky interpretation of the events.

Of course, the headlines above are about Steve Jobs, not Richard Stallman.

I only had one goal with this piece: to reflect on the double standards in society.

Being an asshole is acceptable if you are a respected powerful businessman. You are portrayed as a quirky millionaire. However, it is not acceptable if you're a contrarian weird hippie. You are portrayed as a disgusting creep.

I obviously have no interest or authority to defend or justify their actions. They're adults and their behavior is their own. Screw their asshole-ism. They should have been better people. Stallman is a stubborn asshole, Jobs was an even bigger stubborn asshole.

The truth is, there is a strong correlation between being a powerful public figure and being a stubborn asshole. This is because after some point, non-assholes quit the race because they are not willing to pay the toll it takes to be at the top. That is unfortunate, and we should definitely push for respecful leaders.

Why did two independent journalists take Stallman down, and not Jobs, or any of the other assholes in the world?

Probably, because they could.

It's their right to free speech, and ultimately it was a consequence of Stallman's actions. And I can't reflect on whether it's fair or good that Stallman is forced to step down, because I'm not smart enough to foresee the positive or negative consequences. So maybe after a few months we all realize it was the right thing to do, and end this discussion once and for all.

However, one thing is still true, again, the only point that should be taken from this article: to hell with double standards when representing public figures.

~~~~~~

Not that it matters for this article, and it's outside the scope of my point, but I want to share my personal vision on Stallman and Jobs. The thing is, this was a difficult article to write. They are both people who I strongly admire and have had a great influence in my life.

Reading Stallman's essays are what got me into Free Software. I have attended his conferences twice and his brave stance on freedom and privacy is flawless and admirable. I have a small laptop that Stallman signed and many of his books. He has constantly fought for the rights of the people against corporations. I hope he keeps doing it.

The world is a better place thanks to Stallman.

Jobs was an inspiration. I own most books about him, an Apple "Think Different" poster is hanging at my office, and I treasure the issue Time released after his death. He was a genius, a visionary, he basically invented consumer computers and smartphones. I do not doubt that the contributions of Woz and other people at Apple were instrumental, but he was the mastermind behind the strategy. What Jobs achieved with his work is beyond belief and 100% worth of praise.

The world is a better place thanks to Jobs.

If you want more context about the actual facts, I wrote about the news a week ago.

Tags: news, english

Links for 2019-09-29: We live in a cyberpunk future

29 de septiembre de 2019 — Carlos Fenollosa

This week has a lot of "holy crap we live in the future" news so I decided to start this new format where every roundup has a main topic.

After them we will jump to our usual medley of programming + geeky stuff.

In the end you will find some follow-up of past topics.

Hope that you like it!

Boston Dynamics

Latest from Boston Dynamics (1 min)

What a perfect video to start this compilation with.

Just watch it

Now, close your jaw, and choose one reaction:

  • Amazing!
  • Terrifying!

(Yes, it's both)

Facial recognition in the EU

No es China, es Madrid: el pago facial llega en fase de pruebas a los autobuses de la EMT
(Spanish link: "This is not China, it's Madrid: facial payment tests launch on metropolitan buses", 1 min)

After the initial shock, we should actually ask ourselves whether facial payments are more or less private than paying with a personal card. After all, you're being tracked nonetheless.

In any case, this is the future we're moving towards: more convenient, less anonymous.

Government backdoors on chat apps

Facebook, WhatsApp Will Have to Share Messages With U.K. Police (1 min, via)

As usual, the title is heavily editorialized and I recommend reading the HN discussion to understand the actual situation.

Regardless of the news, it is worrying that governments want to force chat apps to share user conversations with the police. The real question is, will they ban encryption at some point? Will this decision be clear to the user, i.e. will we know that our conversations are no longer secure, and therefore be more restrained in what we share? Or will they lie to us and just install backdoors that silently spy on our texts without our knowledge?

This is a truly worrying trend.

AI playing hide and seek

Emergent Tool Use from Multi-Agent Interaction (5 min, via) presents a paper and a video of a multi-agent AI system evolving strategies to play hide and seek with a few spatial tools like ramps, barriers and boxes.

Check out the video, it's quite interesting, especially the fact that hiders collaborate amongst them to build forts, and seekers find unexpected uses for their tools, like jumping on top of boxes.

Multi-agent goal-seeking is not new, but it is a great way to discover algorithms and strategies that we had not previously thought of.

Functional programming in Python

Learn Functional Python in 10 Minutes (10 min, via) is a good overview of lambdas, map, reduce, filter and others.

Every good Python programmer should know these.

Review of chat systems

Thoughts on improving chat systems (5 min to RH, via) reviews open chat systems (IRC, XMPP, Matrix) and compares them to other established protocols and apps.

Unfortunately, the dream of having A Unified Chat System was only true for a couple years when both Google and Facebook supported XMPP, but then it went away.

Chats are siloed now, and it doesn't look like this is going to change soon :(

Look at the night sky

See a Satellite Tonight. No Telescope Required (5 min, needs JS, via) is a webapp that helps you spot satellites and the ISS traveling through your location.

see the ISS

I saw the ISS last Friday, since it was passing near Barcelona on a 73° angle, almost optimal to watch.

It was amazingly minimalistic. You see a small white dot darting through the sky; you know it is just a very fast plane, but looks like a star.

After three minutes it was gone. There they go, there are people in that small dot, orbiting the Earth. It is an incredible feeling.

Go ahead, look at the night sky today, and admire both the stars, the planets, and human-made orbital bodies.

This webapp even gives you a street view of the satellites so you know exactly where to look at in the sky. Amazing!

street view of the ISS

Quitting social media

On I Quit Social Media for a Year and Nothing Magical Happened (5 min, via) and its follow-up Having a Social Life Without Social Media (2 min), Josh C. Simmons explains what happened after he decided to quit Facebook and Instagram.

I agree with the author's premises: quit social media and you will be happier and have more time to work on productive tasks.

The detailed mental phases he went through are interesting, though. He realized that he was taking most pictures with the intent of sharing them and, now that he had no social network to share them on, he just stopped taking them. Another one is that when you no longer get "life updates" through social media, you have more things to talk about when you face-meet your friends.

A good read overall, not your typical "FB sucks I am quitting" argument you see plastered over Reddit.

If you want to read more on the topic, I have written about social media extensively in the past: how I missed Facebook after quitting it, why it was a good move (for the company) to buy WhatsApp and Instagram, and why the "Like" culture is just a reflection of human nature

More on Firefox and DoH

Turn off DoH, Firefox. Now. (5 min, via) and especially Centralised DoH is bad for privacy, in 2019 and beyond (5 min, via) explain why the Firefox-Cloudflare integration is a bad idea much better than I did and also provide information on how to disable it.

After reading arguments on both sides, I stand by my initial reaction: this is a bad idea because it centralizes DNS, which ought to be a decentralized service.

To add insult to the injury, it sends that traffic to a country with no privacy laws and a provider who leaked HTTPS data in the past.

Sorry, Mozilla, but the cons overwhelm the pros.

Tracking you with TV ads

Is your smartphone listening to everything you say? We asked the experts (2017, 5 min, via) alerts (emphasis mine):

Last year the CDT alerted the Federal Trade Commission (FTC) to a technology called SilverPush. It uses audio beacons to track your activities across devices:

Your TV emits a tone during a commercial break, a tone that’s inaudible to you, but your phone is listening for it. Now they can link the TV and phone as belonging to the same person.

Make sure you can trust your phone—and your friend's.

Remember that you are always talking near a microphone connected to the internet.

Tags: roundup, english

The absolute best puzzle game for your phone

27 de septiembre de 2019 — Carlos Fenollosa

Sorry for the clickbaity title. I was slightly misleading.

Simon Tatham's Portable Puzzle Collection is not only the best puzzle game for your phone, it is actually a collection of the best puzzle games.

Wait! It is actually the best puzzle game collection for any device, since all games are playable via web (js and *cough* Java), and there are native binaries for Windows and UNIX.

In Simon's own words:

[This is] a collection of small computer programs which implement one-player puzzle games. All of them run natively on Unix (GTK), on Windows, and on Mac OS X. They can also be played on the web, as Java or Javascript applets.

I wrote this collection because I thought there should be more small desktop toys available: little games you can pop up in a window and play for two or three minutes while you take a break from whatever else you were doing.

Simon's collection consists of very popular single player puzzle games, like Sudoku, Minesweeper, Same Game, Pegs, and Master Mind, and some lesser known, at least for me, but extremely fun to play: Pattern, Signpost, Tents, Unequal.

All games are extremely configurable and can usually be learned by reading the instructions and trying to play on a small board where the solution is usually trivial. Then, when you are ready, start expanding the board size and enabling some of the higher difficulty board generators!

Greg Hegwill ported the games to iOS and Chris Boyle ported them to Android. Other people have ported it to more platforms, like the Palm, Symbian or Windows phone

The games can of course run in old devices, are 3x free (money free, free software, and free of ads) and, as context, each game takes around 300kb of space (yes, kb). The full collection weighs 3.5Mb on iOS. For reference, Simon's mines.exe is 295kb, where Windows 3.1's winmine.exe was 28kb.

Simon's last commit is from April 2019 and he is still adding improvements to make the games more fun.

I don't really know how this could not be the Best Puzzle Game Ever. Download it right now on your phone (iOS, Android) and you'll thank me later.

Tags: software, mobile, retro, english

Sourcehut, the free software development cloud

26 de septiembre de 2019 — Carlos Fenollosa

I've been following sourcehut for some time and realized that I hadn't talked about it yet.

Sourcehut, at a first glance, is a service that provides git repos and code/project management tools, but it's much more.

It runs CI through virtualised builds on various Linuxes and BSD, provides code review tools, tasks and third party integrations, and of course, mailing lists and wikis.

I think the landing page does a good job of explaining how it is different from other code hosting services. Especially:

  • Composable Unix-style mini-services
  • Powerful APIs and webhooks
  • Secure, reliable, and safe
  • Absolutely no tracking or advertising
  • All features work without JavaScript
  • 100% free and open source software

These bullet points are quite important: sourcehut is the web equivalent of piping UNIX commands for development and is built entirely on free software. The fact that it works without js is just a great bonus.

Sourcehut is the project of a single developer, Drew DeVault, better known as sir_cmpwn on the internet, and he's quite active on Mastodon in case you want to follow him. Amazing work!

Tags: software, unix, english

Link roundup for 2019-09-22

22 de septiembre de 2019 — Carlos Fenollosa

Welcome to this roundup! Starting with this issue, all headers will contain a permalink 🔗 to reference them inside the document.

Amazing pics taken with a cellphone

iPhone 11 Pro Camera Review: China (5 min) is a review of the iPhone camera through the eyes of a professional photographer.

If somebody told you five years ago that those pictures were taken with a cell phone, you wouldn't have believed them.

The interesting thing is that, in hindsight, it was inevitable. As an amateur, I used to take many pics with different exposures with my crappy reflex and then post-process them at home. Color adjustments, crops, panoramas, HDR...

I remember trying lots of software to extract the most of my raw files, and managing to get great shots by combining the definition of low ISOs with the light of higher ISOs. I have nice pics of dark chapels and cozy restaurants. It was only a matter of time that cellphones started doing that process automatically on the same phone.

For all the criticism cellphones receive by a sector of the population, having a fantastic camera in your pocket at all times is a net win for mankind. I'm truly happy that computational photography has finally happened and that it's available for everyone.

The bash bible

pure bash bible: A collection of pure bash alternatives to external processes (RH, via) is a cookbook with a lot of bash recipes.

As a bash fan myself, this content is 100% gold.

When watching TV, you are the product

Information Exposure From Consumer IoT Devices: A Multidimensional, Network-Informed Measurement Approach (10 min, via)

Through a total of 34,586 [...] experiments, we characterize information exposure [...] and whether there are unexpected exposures of private and/or sensitive information (e.g., video surreptitiously transmitted by a recording device).

FT published a paywalled article with a more accessible text. You can bypass the paywall by searching the title on Google and clicking on the result.

The only conclusion is: Minimize the number of Internet-enabled devices.

More specifically, don't use Smart TVs, or internet-enabled hardware from companies that either (a) don't know how to do secure software, or (b) have a strong incentive on selling your data.

Critical software in hands of volunteers

The Internet Relies on People Working for Free (5 min, via) is a good reminder that the software that keeps everything running is maintained by volunteers.

Not much to add, just a big thank you to all of them. And, if your business relies on volunteer-developed software, you should have a Plan B in case something happens.

Stallman resigns from the FSF and MIT

Resignation (1 min, via) and Richard M. Stallman resigns (1 min, via) succintly explain how rms has resigned from his bigger political responsibilities.

Stallman was on fire after a Vice article criticising his mails where he kinda provides excuses/justifications about people accused of having sex with coerced minors.

The Epstein-Minsky-pedophilia topic is so sensitive that Stallman, despite being in the spectrum, should have known better than to talk about it on MIT mailing lists.

Yes, his latest mails and opinions have been misrepresented. Yes, as a very public figure, he should have been more careful and do not enter a discussion over semantics, as he always does, on such a sensitive topic as pedophilia. Yes, it seems that the white old guy argument has precedence over the ableism argument, since anybody who has interacted with him in the slightest knows he is barely functional. Yes, him defending "consensual" sex with minors in the past as something acceptable did not help at all, and neither did the fact that he's a jerk to most of the people he interacts with—speaking from own experience, unfortunately.

The saddest part is, despite his social limitations, and holding a horrible stance for many years, he was making an honest effort to change for the better.

But that doesn't matter. Child sex is a storm that engulfs anybody that comes near it. The crime is so vile that it is probably warranted.

Still, I find it unjust that this was, as many people said, "the straw that broke the camel's back". Stallman was not defending pedophilia this time —sigh—, and there should not be any argument that people cannot discuss. However, that was neither the place nor the moment.

As reddit user im_not_juicing intelligently states,

I think we all could learn a lesson here: it is not worth to waste our lifes arguing over the Internet about random stuff.

The only winning move is not to play

If you want to read more, check out the HN discussion, this thread on /r/stallmanwasright and pg's essay "What you can't say"

Update 2019-09-22 22:08. Thomas Bushnell has a very informed and reasonable opinion on this topic that you definitely should read.

6502 homebrew projects

Build a 6502 computer (RH, via) is a tutorial on how to build a basic board with a 6502 and program it.

I'm a huge fan of development boards myself, and have half a dozen at home. But I had never seen one with a 6502.

Watch his "Hello, world" from scratch on a 6502 video, too.

On a related note, David Murray, the 8-bit guy is also designing a 6502-based computer

Set up your own mailserver

Setting up a mail server with OpenSMTPD, Dovecot and Rspamd (30 min, via)

is yet another tutorial that tries to get engineers to host their own mail.

I do it myself, and though setup is easy, deliverability is a real pain. Your emails go directly to spam, or nowhere at all, and there is no real way to debug it.

Tags: roundup, english

Link roundup for 2019-09-15

15 de septiembre de 2019 — Carlos Fenollosa

Twitter CEO gets his Twitter account hacked

Hackers Hit Twitter C.E.O. Jack Dorsey in a 'SIM Swap.' You're at Risk, Too. (5 min, via)

Here's how it works:

Sometimes hackers get phone numbers by calling a customer help line for a phone carrier and pretending to be the intended victim. In other recent incidents, hacking crews have paid off phone company employees to do the switches for them, often for as little as $100 for each phone number.

Once the hackers have control of the phone number, they ask companies like Twitter and Google to send a temporary login code, via text message, to the victim’s phone. Most major online services are willing to send those messages to help users who have lost their passwords.

But the temporary code is sent to the hackers.

2FA over SMS is not the best, but not the worst. The problem is that Twitter's implementation was bad, as it allowed you to reset anybody's password with —this is key— only their phone number.

HN user zaroth explains it well:

Twitter uses SMS as a single factor, because you can reset the password with only access to the text message. If Twitter was using SMS only as a 2nd factor, this attack would not have worked without also knowing Jack’s password or having access to his email. Twitter’s password reset function could require an SMS code and then send a password reset email to complete the process.

While user fulafel summarizes it in a tweet-like sentence:

It's really ½FA, worse than 1FA authentication because it's sufficient to clear any 1 of the 2 factors.

Favorite old books?

Ask HN: What are your favorite books or essays written at least 100 years ago? (10 min - RH) user marceee0901 asks an interesting question, and the replies are very interesting, too.

Some non-tech books surface to the top, like:

  • The Count of Monte Cristo
  • Meditations
  • The Prince
  • Anna Karenina

And user cbailes suggests a site I wasn't aware of: The Hacker Classics, a list of HN links with a date on the title, e.g. (1928), sorted by this date.

Facebook fighting deepfakes

In Creating a data set and a challenge for deepfakes (2 min, via), Facebook announces that they are committing $10M to create a dataset of True Positive deepfakes so researchers can develop tools to detect them.

Thanks, Facebook.

Firefox sending DNS queries to Cloudflare

What's next in making Encrypted DNS-over-HTTPS the Default (2 min, via) Mozilla explains why they will send all your DNS queries to Cloudflare.

I do not like this on the slightest bit. The current DNS system is good as it is now; you can choose to trust your ISP, typically the default choice, or use a third party system like Google's 8.8.8.8

However, the browser should definitely NOT run their own DNS subsystem and bypass the OS or network default.

Neither should us collectively, as a matter of principle, give too much power over the internet infrastructure to a single company. We already made this mistake with Google (search and mail) and Facebook (personal data) and, well, I rest my case.

And, though not related to my point, let's not forget that Cloudflare apocalyptically screwed up in 2017 by unknowingly leaking HTTPS traffic in plain text

Overall, a bad idea, Mozilla, and you should step back on this.

The Senior Engineer's Checklist

A Senior Engineer's CheckList (5 min, via) is a good compilation of both technical and human tasks that a senior engineer should be aware of.

Really good read, check the author's comments at the via link.

Sunsetting Python 2

Sunsetting Python 2 (2 min) explains why Python 2 needs to die. And it does so in an excellent and thoughtful way, providing real answers to real questions that Python 2 users may have, both experts and novices.

I especially like the last two FAQ points:

I didn't hear anything about this till just now. Where did you announce it?

and

How can I make sure announcements like this don't surprise me again?

Finally, I found it brilliant how they emphasize that this decision will benefit the whole community by optimizing volunteers' time. The word volunteer appears all over the FAQ, which I think is a great way to avoid pointless discussions: volunteers don't owe you anything, please use Python 3 now.

A civ1 clone in Excel

I'm creating a Civ1 clone - in Excel (RH, via)

Super impressive and really cool!

A full featured toy OS that runs Doom

Soso, a simple unix-like operating system (1 min, via) is a nice toy OS with a lot of features:

Soso is a 32-bit x86 operating system and its features are

  • Multitasking with processes and threads
  • Memory Paging with 4MB pages
  • Kernelspace (runs in ring0) and userspace (runs in ring3) are separated
  • Virtual File System
  • FAT32 filesystem using FatFs
  • System calls
  • Libc (Newlib is ported with only basic calls like open, read,..)
  • Userspace programs as ELF files
  • mmap support
  • Framebuffer graphics (userspace can access with mmap)
  • Shared memory

Soso has Libc, so existing applications depending only on a small part of Libc can easly be ported to Soso. I have managed to build and run Lua and Doom on Soso!

You can download an ISO and run it with qemu, go ahead and try it!

Tags: roundup, english

The iPhone 11 & co.

10 de septiembre de 2019 — Carlos Fenollosa

This year's phone keynote has delivered, according to Apple, all-new products from the top down

Quite boring hardware unfortunately, as was expected.

  • Better cameras, though for use cases I'm not sure are very useful
  • Better battery life thanks to the A13 chip
  • Marginally better screen on the Pro phone
  • Always-on screen on the Watch, which is nice
  • Simple update on the entry-level iPad

The landing page for each phone is 60% camera features and 40% other features. Not saying that is wrong, on the contrary, the marketing team is doing their job as in my experience most people use their phones as an Instagram device.

Where I think Apple nailed it is with the Watch. They are really, really good at the health and fitness message, and the product itself is fantastic.

However, I will criticise them for two things.

First, the fact that they are not even advertising the full price for the phone, but rather an installment plan first, then a discounted price with the trade of an old phone, and only when you say "no" to these options you get the actual price. Let me reiterate that. When you visit Apple.com the price you see for the phones is not the actual retail price.

They are aware that their hardware is not attractive at those price points, but at the same time they can't lower them because of positioning. Well; to be precise, the iPhone 11 is actually sliiightly cheaper than last year's but, in my opinion, not attractive enough to upgrade. And let's not even mention EU prices. On top of the 21% sales tax —nothing to do there— we are eating up a 1:1 USD:EUR ratio which is bullshit.

Second, Apple is advertising a "Pro" phone that can shoot incredible 4K movies, but stuffing it with only 64 GB of storage. The consumer experience is terrible when you are out of disk space.

My phone memory is full and every time I take a picture it is immediately uploaded to iCloud and deleted from the phone. If I want to show it to somebody later the same day, I have to wait for it to load from the network. My UX is that I have no pictures or videos stored locally, not even for pictures I took 15 minutes ago. That is definitely not a feature you want on a super advanced camera-phone.

The phone market is too mature

Regarding innovation, what can Apple really do? I honestly do not have an answer. The majority of the population is not renewing their phones on a yearly cycle, not even a two year cycle. I have an SE only because my 5S broke. I loved my 5S and there is no feature in current phones that would make me upgrade.

I commute every day and see what "normal people" (excuse me) do on their phones. It is 40% scrolling through Instagram, 30% Whatsapp, 20% watching shows, 5% taking pictures, 5% playing games.

If you want to read the best take on the keynote, read Ben Thompson's The iPhone and Apple’s Services Strategy.

The phone market and phone technology have crossed the chasm long ago and they're on diminishing returns. I stick by my reaction of last year's keynote:

  • Apple should seriously consider 2-year iPhone cycles.
  • People who want smaller phones, regardless of price, may move to Android, myself included, so an updated iPhone SE is strategic for Apple.
  • Hardware improvements are going to be mostly incremental from now on. Therefore...
  • Apple should focus on software, which they are doing very well, and keep coming up with really crazy innovative hardware, which they appeared to be doing but rumors say they scraped at the last minute like the U1 chip.

Apple is a company full of smart people that can reinvent boring products like beige PCs, Nokia phones, and even headphones and watches. I am hopeful for the next wave of hardware, whatever it is. AR glasses? Car stuff? TVs? We will see.

Personally, I am indifferent at this keynote. Since my main need is a laptop, I'm still waiting for the new wave of macbooks to renew my 2013 MBA. I simply refuse to buy any laptop from Apple's current lineup. The rumors are very promising, so let's check what they can come up with!

Tags: apple, english

If Harari's Sapiens was a blog post

9 de septiembre de 2019 — Carlos Fenollosa

If Sapiens were a blog post (30 min, via) is, in words of the author:

I spent over 25 hours building a cut-down version of Sapiens. The goal? Future-me should be happy to read this once future-me forgets how we evolved. It's massive for a blog post, just under 30 minutes, but that's the best I could do, condensing 9 hours worth of material.

The book is fantastic, a must-read, despite its flaws and objections. The blogpost has one big problem, despite the meritable effort: it summarizes the whats but not the whys.

I've skimmed through it, trying to find if it talks about what, for me, was the biggest realization of Sapiens: why humans transitioned from hunter-gatherer tribes into agricultural civilizations.

Hunterer-gatherer foraging was enough to feed a small tribe; a group of 30 people can be fed with a deer and some apples. A town of 200 people needs something more, so agriculture was developed. This new technology allowed for bigger human concentrations in a small area.

But why would humans want to live in larger groups, if it brought a lower quality of life? Famines, infections, fights, enslaving work, extreme class differences?

Harari argues that this was due to the appearance of religion.

Religion demanded that people (well, it was self-imposed, but bear with me) overcame bigger and bigger projects, like temples, sacrifices, wars, and other, which require a minimum amount of people to succeed. 30 people cannot build a temple, but 200 people can.

Therefore, it was due to religion that civilization as we know it developed. Religion needs large groups of people to work, and that is why we transitioned from hunting to agricultural societies. Maybe it was the other way around? With agriculture came religion? Again, the direction of this implication is what Harari defends, and I don't know enough to argue otherwise.

The blogpost devotes one chapter to talk about religion but doesn't mention that concept. Since it is one of the main points of the book, I'm not sure to which degree this summary looks over other core conclusions. This is a bit disappointing, but maybe it was not the author's intent to begin with.

For me, the magic of Sapiens is that it's not just a Wikipedia-like compendium of timelines and events, but rather provides some theories as to why things happened.

In any case, if this blogpost encourages you to read Sapiens, it will be time well spent.

Tags: books, english

Link roundup for 2019-09-08

8 de septiembre de 2019 — Carlos Fenollosa

Welcome to this week's roundup. From now on I'll be including an estimated read time for each link, so you have a general idea of what to expect.

You will start seeing the term Rabbit Hole, or RH for short, to indicate those links that can lead to hours and hours of new and interesting discoveries.

More on the iOS implant

In A message about iOS security (2 min, via), Apple responds to the terrifying implant that was reported last week.

First, the sophisticated attack was narrowly focused, not a broad-based exploit of iPhones "en masse" as described. The attack affected fewer than a dozen websites that focus on content related to the Uighur community.

[...]

Google's post, issued six months after iOS patches were released [...] We fixed the vulnerabilities in question in February — working extremely quickly to resolve the issue just 10 days after we learned about it

A bit of damage control and down-toning Google's report, however, I still stand by my take on it.

Apple Music official web app

Apple Music launches on the web (via)

Finally.

Apple is serious about competing with Spotify, which is good. However, I couldn't make it work on Linux (Chrome and Firefox). Let's see if they support these configurations soon.

Librem 5 phone shipping

Librem 5 Shipping Announcement (1 min, via)

The Librem 5 is here. I'm very curious as to how the phone is going to turn out and surely will have an eye opened for the first reviews.

Google keeps selling their user data

Brave uncovers Google's GDPR workaround (10 min, via)

Google claims to prevent the many companies that use its real-time bidding ad (RTB) system, who receive
sensitive data about website visitors, from combining their profiles about those visitors. It also announced that it had stopped sharing pseudonymous identifiers that could help these companies more easily identify an individual, apparently in response to the advent of the GDPR.

But in fact, Brave's new evidence reveals that Google allowed not only one additional party, but many, to match with Google identifiers. The evidence further reveals that Google allowed multiple parties to match their identifiers for the data subject with each other.

Don't use Google.

How does BitTorrent work?

How Does BitTorrent Work? a Plain English Guide (15 min) is a long and comprehensive explanation of the BitTorrent protocol, written in a language that most engineers will understand. There are many emojis and beautiful illustrations, but this is definitely not something you can send your mom.

How Netflix uses Python

Python at Netflix (5 min, via) details a series of Python tools and how they are used at Netflix.

Some may be interesting for you, some may be not. Skim the text and focus on whatever catches your eye!

How Tetris decides which piece comes next

The history of Tetris randomizers (1 min, via) is a short and interesting read on how Tetris chooses the next piece, with pros and cons of each approach which affect released games, like the NES version.

If you want to enter the Tetris Nirvana, check out Tetris.wiki (RH, via)

A historical tour of software and websites

The Version Museum (RH) "showcases the visual history of popular websites, operating systems, applications, and games that have shaped our lives."

If you like this website, you can't miss the GUIdebook Gallery and the GUI Gallery, both of them are excellent, and especially the latter contains literal screen shots of very old, obscure systems.

UNIX PC screen shot

More on deepfakes

The Verge reports that Another convincing deepfake app goes viral prompting immediate privacy backlash (1 min), and TheNextWeb informs that Fraudsters deepfake CEO’s voice to trick manager into transferring $243,000 (1 min)

We all knew this day would arrive, and now it's here—it's been here for a couple years now, really.

changing actors faces in Game of Thrones

In the 90s, Photoshop became a verb that stands for changing a picture in such a way that the end result is fake but believable. Technology now allows us to do the same with video and audio.

This is a very interesting social challenge. Not being able to trust any picture/video/audio will for sure change concepts like proof and deniability which are core for law and society.

Cool CSV utils for the command line

eBay has a Github repo (1 min read, more to try the code, via) with sort of a "framework" to handle csv/tsv files from the command line.

User JimmyRuska also contributed with more tools and other users have linked to their favorite scripts in the comments. I highly recommend you check out the discussion if you work with csv files regularly. Being able to transform data quickly on the terminal is a true superpower.

Of course, you can convert any csv file into a SQL database using sqlite's .mode csv, which I recommend even more for huge datasets that don't fit in memory.

Read time: 1 minute to check it out, more if you actually run the code

Learning how to read

User vilvadot asks HN how do others read a book (5 min to RH)

The answers are very interesting, and user guidoism recommends How to Read a Book: The Classic Guide to Intelligent Reading (Wikipedia link), and user Scarbutt links to a University of Michigan's 11-page document How to Read a Book, v5.0

Check it out if you want to improve your reading techniques

Tags: roundup, english

Link roundup for 2019-09-01

1 de septiembre de 2019 — Carlos Fenollosa

Facebook keeps spying on its users

Jane Manchun Wong, a security researcher, writes:

Facebook scans system libraries from their Android app user’s phone in the background and uploads them to their server

This is called "Global Library Collector" at Facebook, known as "GLC" in app’s code

It periodically uploads metadata of system libraries to the server

Don't use Facebook.

New modern book on Lisp

Loving Common Lisp, or the Savvy Programmer's Secret Weapon, free to read here (via) is a very accessible and modern take on Common Lisp by veteran author Mark Watson.

It covers the basics, but also not-so-common topics like network programming, NoSQL databases, NLP and NNs. Definitely worth a look if you want a good Lisp book, and definitely worth it to support the author by purchasing a copy.

On browser privacy

(via) are a series of posts by Jonathan Sampson analyzing how browsers phone home on first launch and its privacy implications

My personal opinion is that Mozilla shoud try to do better. However, since Google is one of the big donors of the Mozilla Foundation, their hands probably will always be tied.

Windows' and Linux's birthday

What would you like to see most in minix?, asked Linus the 25th of August, 1991, in comp.os.minix. (via)

Coincidentally, Windows 95 was released August 24th, 1995 with such a big marketing campaign that I still remember even though I was a kid.

And, in case you haven't seen it: "The Most 90s Video Ever," Microsoft Windows 95 Video Guide - Jennifer Aniston & Matthew Perry

More bash black magic trickery

Seven God-Like Bash History Shortcuts You Will Actually Use (via) goes deep into the !! argument expander.

Definitely give it a read, and if you're interested in more bash tricks, let me plug in my own compilation of commandline tricks

Youtube nostalgia

Youtube Decade (via) is a nice daily nostalgia dose.

10 years of Internet Time is like 100 years IRL.

Tags: roundup, english

Terrifying iPhone implant spreads just by visiting a website

30 de agosto de 2019 — Carlos Fenollosa

A very deep dive into iOS Exploit chains found in the wild (via) is a terrifying read of an iPhone implant that installs itself just by visiting a website and exploits five different 0-day vulnerabilities.

The implant phones back home with root access to all activity on your phone: chats, mails, location, pictures, and more.

I think it is fair to criticize Apple because they allowed an unsigned process running as root, using the network and a lot of battery activity, without any kind of monitoring to detect it. That process should not have been running without being discovered.

Given that an iPhone is not a computer, and not even an advanced user could detect and/or clean the implant, Apple's responsibility should be to start being more serious about the possibility of iPhone viruses.

Vice has a non-geek writeup which, at first, seemed like a bit sensationalist, but given the severity of the breach is probably somewhat warranted.

An awesome feat of engineering, though. Kudos to both the criminals and the researchers who detected it.

Tags: security, mobile, Apple, english

Slow down your laptop

27 de agosto de 2019 — Carlos Fenollosa

800 Mega Hertz is enough (via) argues that for most use cases laptops don't need to run at their top speed to save battery.

Computers are amazing; they are so fast and can do so much. Nevertheless, what if we didn't need it to be so fast or do so much? That was the question I asked myself when I was trying to improve the battery life of my laptop even further. I came up with a simple solution. The processor that came in my computer runs at 2.2GHz, that isn't fast compared to modern laptops today, but it is still much faster than I need it to be. Each clock cycle uses a little bit of power, and if all I'm doing is typing out Latex documents, then I don't need that many clock cycles. I don't need one thousand four hundred of them to be precise.

The only caveat is that modern web browsing is definitely much more taxing than "typing out latex documents." You are running almost an entire graphical OS in each tab. And, if I'm not mistaken, most frequency managers actually slow down CPUs to a crawl when they're idle. Other than that, I'm all in on this.

In my own experience, disabling Turbo Boost is barely noticeable and extends battery life for about an hour, which translates to around 20% extra life. I actually have a script called lpm.sh, for "low power mode" that essentially stops syncthing, an important source of CPU wakeups, and disables turbo boost to grant me those extra minutes. CPU frequency is properly managed in my case and I don't have the need to run cpupower manually.

If you truly want to run the most resource-constrained, "distraction-free typewriter mode", boot into single-user mode and write using vim.

Bonus rabbit hole of the day: CPU power management

Tags: hardware, minimalism, english

Link roundup for 2019-08-25

25 de agosto de 2019 — Carlos Fenollosa

I tried to start a link roundup last year. Let's see if this time I can post more than once a year.

Tiny terminal multiplexer

mtm (via) is the Micro Terminal Multiplexer, which is written in about 1000 lines of code.

I have been a screen fan for a long time and recently tried tmux, which I ditched because I just can't get around its windowing metaphors and scrollback behavior. I will try mtm for sure.

Nostalgia trip to the 90s

Poolside FM is a website that simulates a Classic Mac desktop environment playing 90s music and video clips.

Definitely give it a try!

On plaintext email

Use plaintext email (via) and its open reply, stop gatekeeping email are part of an eternal discussion on whether email should be pure plaintext or not.

I'm personally a big proponent of plaintext email and even launched a startup around it, but I can also see the benefits of rich text email.

In the end, email is a tool, and as such it should be used as conscientiously as one can.

Recaptcha is evil

There is no evil like reCAPTCHA (v3) argues that Google is weaponizing reCAPTCHA.

My feeling is that reCAPTCHA is now more of a bother to the "good guys" than the "bad boys" and, as such, we need a replacement for it.

I personally use a heavily secured browser to browse the internet (blocking js, ads, and more) and, therefore, I encounter a lot of reCAPTCHAs daily. Sometimes they are so difficult to solve that I even wonder if I am the robot.

Warshipping Wi-Fi devices

With warshipping, hackers ship their exploits directly to their target's mail room (via) is an astounding tale of how clever techniques can bring a virus into your literal doorstep.

The researchers developed a proof-of-concept device — the warship, which has a similar size to a small phone — into a package and dropped it off in the mail. The device, which cost about $100 to build, was equipped with a 3G-enabled modem, allowing it to be remote-controlled so long as it had cell service. With its onboard wireless chip, the device would periodically scan for nearby networks — like most laptops do when they're switched on — to track the location of the device in its parcel.

"Once we see that a warship has arrived at the target destination's front door, mailroom or loading dock, we are able to remotely control the system and run tools to either passively, or actively, attack the target's wireless access," wrote Henderson.

Software should be fast

Fast Software, the Best Software (via) provides important argumes as to why software should be fast, and not just because

A typewriter is an excellent tool because, even though it’s slow in a relative sense, every aspect of the machine itself operates as quickly as the user can move. It is focused. There are no delays when making a new line or slamming a key into the paper. Yes, you have to put a new sheet of paper into the machine at the end of a page, but that action becomes part of the flow of using the machine, and the accumulation of paper a visual indication of work completed. It is not wasted work. There are no fundamental mechanical delays in using the machine. The best software inches ever closer to the physical directness of something like a typewriter.

Well-formated, royalty-free ebooks

Standard ebooks (via) is a compilation of royalty-free ebooks with proper formatting.

There's not much to add. Great job!

AMD is making a comeback

AMD lands Google, Twitter as customers with newest server chip (via) is just another step in the Intel chip debacle.

Hobbyists and armchair experts have been expecting this for a long time, but for an important company like Google or Twitter to make the switch means the tide is truly turning.

I don't hold any animosity towards Intel, besides being unhappy with the crap thay have been doing with their chips (bugs and ME). In any case, competition is good, and the x86 server market was in much need of it.

Bicycle for the mind

Bicycle for the mind (via) explores the not so famous Steve Jobs' quote that "a computer is a bicycle for the mind".

This article is excellent, providing not only the original video, but also looking for the original research text that Jobs was referring to in the interview, and complementing it with other videos and marketing materials.

As a Jobs fan, I spent more time on that page that I'm willing to admit. But we have to admit that "bicycle for the mind" is one of the greatest metaphors of our time.

Why are switches clicky?

Switches are Clicky; Here's Why (via) is an extremely cool video about how electricity works, and why we have switches at home.

Again, electricity is one of the topics that fascinates me the most. Read below...

The Electricity FAQ

ELECTRICITY FAQ is a very long document that you should read if you'd like to understand how electricity works. Heck, I'll even say that you should read it even if you think how electricity works.

Tags: roundup, english

What are the differences between OpenBSD and Linux?

10 de mayo de 2019 — Carlos Fenollosa

Maybe you have been reading recently about the release of OpenBSD 6.5 and wonder, "What are the differences between Linux and OpenBSD?"

I've also been there at some point in the past and these are my conclusions.

They also apply, to some extent, to other BSDs. However, an important disclaimer applies to this article.

This list is aimed at people who are used to Linux and are curious about OpenBSD. It is written to highlight the most important changes from their perspective, not the absolute most important changes from a technical standpoint.

Please bear with me.

A terminal is a terminal is a terminal

The first thing to realize is that, on the surface, the changes are minimal. Both are UNIX-like. You get a terminal, X windows, Firefox, Libreoffice...

Most free software can be recompiled, though some proprietary software isn't on OpenBSD. Don't expect any visual changes. Indeed, the difference between KDE and GNOME on Linux is bigger than the difference between KDE on Linux and KDE on OpenBSD.

Under the hood, there are some BIG differences with relatively little practical impact:

  • BSD licensing vs GNU licensing
  • "Whole OS" model where some base packages are treated as first-class citizens with the kernel, VS bare Kernel + everything is 3rd party
  • Documentation is considered as important as code VS good luck with Stack Overflow and reading mailing lists
  • Whenever a decision has to be made, security and correctness is prioritized VS general-purpose and popularity and efficiency

Do these make little sense to you? I know, it's difficult to fully understand. Your reference is "Windows VS Linux" which are so different on many aspects, like an elephant with a sparrow. To the untrained eye, distinguishing a pigeon with a turtledove may not be so evident.

They're philosophical distinctions which ramifications are not immediately visible. They can't be explained, you need to understand them by usage. That's why the typical recommendation is "just try OpenBSD and see"

Practical differences

So, what are some of the actual, tangible, practical differences?

Not many, really. Some are "features" and some are "undesired" side effects. With every decision there is a trade-off. Let's see some of them.

First of all, OpenBSD is a simpler system. It's very comfortable for sysadmins. All pieces are glued together following the UNIX philosophy, focusing on simplicity. Not sure what this means? Think rc VS systemd. This cannot be understated: many people are attracted to OpenBSD in the first place because it's much more minimal than Linux and even FreeBSD.

OpenBSD also has excellent man pages with practical examples. Use man. Really.

The base system prefers different default daemons/servers/defaults than Linux.

  • apache/nginx: httpd
  • postfix/sendmail: opensmtpd
  • ntp: openntpd
  • bash: ksh

Are these alternatives better or worse? Well, these cover 90% of the use cases, while being robust and simpler to admin. Think: "knowing what we now today about email, how would we write a modern email courier from scratch, without all the old cruft?"

Voilà, OpenSMTPd.

The same goes for the rest, and there are more projects on the way (openssl -> libressl)

Security and system administration

W^X, ipsec, ASLR, kernel relinking, RETGUARD, pledge, unveil, etc.

Do these sound familiar? Most were OpenBSD innovations which trickled down to the rest of the unices

"Does this mean that OpenBSD is more secure than Linux?"

I'd say it's different but equivalent, but OpenBSD's security approach is more robust over time.

System administration and package upgrading is a bit different, but equivalent too, at least on x86. If you use a different arch, you'll need to recompile OpenBSD stuff from time to time.

"But Carlos, you haven't yet told me a single feature which is relevant for my day to day use!"

That's because there is probably none. There are very few things OpenBSD does that Linux does not.

However, what they do, they do better. Is that important for you?

Why philosophical differences matter

Let's jump to some of the not-so-nice ramifications of OpenBSD's philosophy:

Most closed-source Linux software does not work: skype, slack, etc. If that's important for you, use the equivalent web apps, or try FreeBSD, which has a Linux compatibility layer

Some Linux-kernel-specific software does not work either. Namely, docker.

The same for drivers: OpenBSD has excellent drivers, but a smaller number of them. You need to choose your hardware carefully. Hint: choose a Thinkpad

This includes compatibility drivers: modern/3rd party filesystems, for example, are not so well supported.

Because of the focus on security and simplicity, and not on speed or optimizations, software runs a bit slower than on Linux. In my experience (and in some benchmarks) about 10%-20% slower.

Battery life on laptops is also affected. My x230 can run for 5 hours on Linux, 3:30 on OpenBSD. More modern laptops and bigger batteries are a practical solution for most of the people.

So what do I choose?

"Are you telling me that the positives are intangible and the negatives mean a slower system and less software overall?"

At the risk of being technically wrong, but with the goal of empathizing with the Linux user, I'll say yes.

But think about what attracted you to Linux in the first place. It was not a faster computer, more driver availability or more software than Windows. It was probably a sense of freedom, the promise of a more robust, more secure, more private system.

OpenBSD is just the next step on that ladder.

In reality: it means that the intangibles are intangible for you, at this point in time. For other people, these features are what draws them to OpenBSD. For me, the system architecture, philosophy, and administration is 10x better than Linux's.

Let me turn the question around: can you live with these drawbacks if it means you will get a more robust, easier to admin, simpler system?

Now you're thinking: "Maybe Linux is a good tradeoff between freedom, software availability, and newbie friendliness". And, for most people, that can be the case. Hey, I use Linux too. I'm just opening another door for you.

How to try OpenBSD

So what, did I pique your interest? Are you just going to close this browser tab without trying? Go ahead and spin up a VM or install OpenBSD on an old machine and see for yourself.

Life isn't black or white. Maybe OpenBSD can not be your daily OS, but it can be your "travel-laptop OS". Honestly, I know very few people that use OpenBSD as their only system.

That is my case, for example. My daily driver is OSX, not Linux, because I need to use MS Office and other software which is Windows or Mac only for work.

However, when I arrive home, I switch to OpenBSD on my x230 I enjoy using OpenBSD much more than OSX these days.

What are you waiting for? Download OpenBSD and learn what all the fuzz's about!

Tags: openbsd, unix, english

I miss Facebook, and I'm not ashamed to admit it

13 de abril de 2019 — Carlos Fenollosa

I'm 35. Before Facebook, I had to use different tools depending on whom I wanted to chat with.

I'm not talking about the early era of the Internet, but rather the period after everybody started getting online. Chat was just getting popular, but it was quite limited.

We used ICQ/MSN Messenger to chat with real life friends. IRC was used mostly for "internet friends", as we called them back then. Finally, we had the Usenet and forums for open discussion with everybody else.

If you wanted to post pictures, Flickr was the go-to website. We didn't share many videos, and there was no really good tool to do so, so we didn't care much.

There was Myspace, and Fotolog, very preliminar social networks which had their chance but simply didn't "get it."

Then Facebook appeared. And it was a big deal.

Add me on Facebook

Whenever you met somebody IRL you would add them to Facebook almost immediately, and keep connected through it.

Suddenly, everybody you knew and everybody you wanted to know was on Facebook, and you could reach all of them, or any of them, quickly and easily.

At that time, privacy was not such a big concern. We kinda trusted the network, and furthermore, our parents and potential employers weren't there.

On Facebook, we were raw.

At some point it all went south. The generational change, privacy breaches, mobile-first apps and the mass adoption of image and video moved everybody to alternative platforms. Whatsapp, mainly for private communications, and Instagram as our facade.

I wrote about Facebook's demise so I will not go through the reasons here. Suffice to say, we all know what happened.

The Wall was replaced by an algorithm which sunk original content below a flood of ads, fake news, and externally shared content "you might like". We stopped seeing original content. Then, people stopped sharing personal stuff, as nobody interacted with it.

In the end, we just got fed up with the changes, and maybe some people just wanted something shiny and new, or something easier to use.

Facebook was a product of its era, technologically and socially. But, as a service, it was peak human connection. Damn you Zuck, you connected mankind with a superb tool, then let it slip through your fingers. What a tragic outcome.

Current social networks, not the same thing

I, too, moved to Instagram when friends stopped being active on Facebook and encouraged me to create an account there.

Then I realized how fake it is. Sorry for the cliché, but we all know it's true.

I gave it an honest try. I really wanted to like it. But I just couldn't. At least, not as an alternative to Facebook. Stories were a step forward, but I felt —maybe rightfully— that I was being gamed to increase my engagement, not to have access to my friends content.

Instagram is a very different beast. There is no spontaneity; all posts are carefully selected images, masterfully filtered and edited, showcasing only the most successful of your daily highlights.

I admit it's very useful to connect with strangers, but the downside is that you can't connect with friends the same way you did on Facebook.

Of course, I'm not shooting the messenger, but let me apportion a bit of blame. A service that is a picture-first sharing site and demotes text and comments to an afterthought makes itself really difficult to consider as an honest two-way communication tool.

Instagram is designed to be used as it is actually used: as a posturing tool.

On Facebook you could share a moment with friends. With Instagram, however, moments are projected at you.

I miss Facebook

I miss knowing how my online friends are really doing these days. Being able to go through their life, their personal updates, the ups and the downs.

I miss spontaneous updates at 3 am, last-minute party invites, making good friends with people who I just met once in person and now live thousands of kilometers away.

I miss going through profiles of people to learn what kind of music and movies they liked, and feeling this serendipitous connection based on shared interests with someone I did not know that well in real life.

I miss the opportunity of sharing a lighthearted comment with hundreds of people that understand me and will interpret it in the most candid way, instead of the nitpicking and criticism of Twitter.

I miss the ability to tell something to my friends without the need of sharing a picture, the first-class citizen treatment of text.

I miss the degree of casual social interaction that Facebook encouraged, where it was fine to engage with people sporadically. On the contrary, getting a comment or a Like from a random acquaintance could make your day.

I miss when things online were more real, more open.

I miss peak Facebook; not just the tool, but the community it created.

Facebook was the right tool at the right time

Somebody might argue that, for those people I am not in touch anymore, they were clearly not such big friends. After all, I still talk to my real-life friends and share funny pics via Whatsapp.

Well, those critics are right; they were not so important in my life as to keep regular contact. But they still held a place in there, and I would have loved to still talk to them. And the only socially acceptable way to keep in touch with those acquaintances was through occasional contact via Facebook. I've heard the condescending "pick up the phone and call them"; we all know that's not how it works.

In the end, nobody is in a position to judge how people enjoy their online tools. If users prefer expressing themselves with pictures rather than text, so be it. There is nothing wrong with fishing for Likes.

So please don't misinterpret me, nobody is really at fault. There was no evil plan to move people from one network to another. No one forced friends to stop posting thoughts and post only pics. Instagram just facilitated a new communication channel that people happened to like more than the previous one.

When Facebook Inc. started sensing its own downfall, they were happy to let its homonymous service be cannibalized by Instagram. It's how business works. The time of Facebook had passed.

I'm sorry I can't provide any interesting conclusion to this article. There was no real intent besides feeling nostalgic for a tool and community that probably won't come back, and hopefully connecting with random strangers that might share the same sentiment.

Maybe, as we all get older, we just want to enjoy what's nice of life, make everybody else a little bit jealous, and avoid pointless online discussions. We'd rather shut up, be more careful, and restrict our online interactions to non-rebuttable pictures of our life.

We all, however, lost precious connections on the way.

Tags: life, internet, facebook, web, english

Disable asmjs on Firefox on OpenBSD to render some pages like Protonmail

11 de octubre de 2018 — Carlos Fenollosa

I've been using OpenBSD for a few weeks and Firefox is of course my browser of choice. However, I found that some pages didn't load properly, like Protonmail.

I tried increasing the memory per-process in login.conf but it didn't solve the issue.

After some googling I found an obscure reference on a Linux forum about asm.js was causing trouble. And indeed, that is the case for OpenBSD.

The solution is easy: type about:config on the URL bar, accept the disclaimer, and set the preference javascript.options.asmjs to false.

I still don't know why this happens, and if it will affect performance on other websites, so I have it enabled by default and only disable it temporarily for specific websites.

In summary, if you have problems loading websites with Firefox on OpenBSD, try disabling asm.js.

Tags: openbsd, english

The Windows 7 Experience

1 de septiembre de 2018 — Carlos Fenollosa

I bought a nicely refurbrished Thinkpad X230 and it came with Windows 7.

Lenovo x230

My idea is to install Ubuntu and OpenBSD, but I wanted to keep Windows in a small partition. I want to benchmark performance and battery life on the three systems.

Having not used any Windows version for 17 years, I faced this task with an open mind. Surely Windows is not going to suck after all these years, right?

This is what happened:

  1. Unbox the laptop and boot it up
  2. Windows First Launch Assistant asks me a few questions. Windows 7 boots to desktop. There is some Lenovo crapware installed but I'll deal with that later.
  3. "You have updates, do you want to apply them?". Yes, I do. I don't want to use a Windows box on the Internet without the latest patches
  4. It takes about 3 hours to download updates, installing them and rebooting. I think the laptop rebooted at least four times. Unaware of what would come next, I think "wow this is a terrible first-run experience for a novice user"
  5. Suddenly, in the middle of an update, I get a BSOD. Some things never change I guess. I regret not having taken a picture.
  6. After restarting, it seems some config or dll is broken and most apps don't run. The system is basically unusable
  7. I download the official System Update Readiness Tool For Windows 7 which is a 500MB download that supposedly fixes this specific problem.
  8. SURTFW7 hangs while it is installing the fix. I realize I am screwed.
  9. I try to get back to a "restoration point" but none was created
  10. At this point I am resigned to reinstall from scratch
  11. I launch the Lenovo Factory Recover utility and produces a non-bootable USB disk
  12. I boot from the recovery partition. The option to reset to factory disk/settings does not work
  13. Twitter friends tell me that the smartest thing to do is to download a Windows 10 ISO and nuke the old installation

Thanks for a fantastic first time experience, Microsoft! 👌🏼

P.S. I have a Windows 10 key so I won't need to download a torrent but that's beside the point.

~~~~~~

Update: Indeed, I installed Windows 10. Then it took me about two hours to adjust all the settings and remove the telemetry "features". Since then, I've been sitting in front of the computer, waiting while it installs updates and reboots.

It has taken me two full days to get a new Windows laptop running, and I'm a fairly technical person. What on earth is Windows doing for hours and hours? It literally takes less time to fill in the whole disk with randomly generated bytes.

Ubuntu installed flawlessly and had all drivers working without any manual intervention. Updating to the latest patches took about three minutes and one reboot.

No wonder regular people hate Windows. It is, without a doubt, the worst, most frustrating computing experience I've had in the last ten years.

Tags: windows, english

Run QBasic in your browser

17 de agosto de 2018 — Carlos Fenollosa

Steve Hanov produced an impressive implementation of QBasic in Javascript, with detailed explanations, that also runs on the browser. The post is eight years old!

If you're nostalgic for DOS Basic, you can't miss this link.

qb.js: An implementation of QBASIC in Javascript (via)

Tags: programming, retro, english

My Apple Watch killed my iPhone

16 de agosto de 2018 — Carlos Fenollosa

This is the incredibly weird chain of bugs and hardware issues that bricked my iPhone after the battery of my Apple Watch started to swell.

A couple of months ago the battery of my 1st gen Apple Watch started to swell and the screen popped out. I googled about this issue and read that it's covered by a warranty program, so I brought the watch to the Apple Store in Barcelona. The watch got serviced in a few days, excellent customer support as usual by Apple.

I got home and tried to link this new watch to my iPhone 5s. For some reason the watch refused to link unless I upgraded iOS 10 to iOS 11 on my phone.

My old watch had been working perfectly with iOS 10, but apparently this refurbished one had a new software version that required iOS 11 to work.

I had kept my phone at iOS 10 because my 5s is a bit slow nowadays, I don't need the new features, and in general prefer stability on my main devices. I think, it can't be that bad, and furthermore I had missed my watch so much these last days, so I decide to upgrade.

Terrible decision.

I tap on "Upgrade". The phone downloads the upgrade, starts installing it, progress bar, reboot, progress bar, reboot... one too many times. It's stuck on a reboot loop around 80% of progress. Ok, two options, I think. Hardware issue or software issue. How could it be hardware? The phone was working well up to ten minutes ago. So I decide to install clean, wiping out all my data

It's now late afternoon and next day I have to work, and need the phone. You know that feeling, right? This won't end well. I do a clean install, set up Whatsapp and Google Maps, hoping to restore from an icloud backup next day while at work.

The clean install lets me reach the iOS 11 setup screen. Set up wifi, tap next, and reboot. Damn. Set up wifi again, reboot. This doesn't look like a software issue. I try something... I wait five minutes on the wifi setup screen without touching anything. Surprisingly, the phone does not reboot.

I set up wifi after these five minutes and the phone reboots instantly. Any electrical engineer (or probably most of you here that's read about batteries and iOS 11) knows what's happening by now. The battery is failing to supply enough voltage, and this is made apparent at peak power demand, that is, when antennas are working and CPU is at max. I resign myself to having no phone for the next day.

Then, I realize I have a spare iPhone 5s battery laying around, One that I bought to replace my mother's battery (she has also an iPhone 5s) but never ended up fixing. I've changed batteries maybe a dozen times before, and work with electronics regularly. I know best practices. I ground myself, pick up the screwdrivers and suction cup, open up the iPhone carefully, remove the battery glue strips, and install the new battery.

The phone boots.

With the new battery I finally manage to get past the wifi screen but unfortunately the phone keeps rebooting randomly when accessing networks. Damn. My phone clearly has an electrical problem and for whatever reason iOS 11 triggered it. Later, when discussing this issue when a Genius, they confirmed that this is a motherboard problem which required an expensive repair.

Back to the 5S. Since I couldn't use a phone that dies on me randomly, and it's late at night, I picked up my old 4S, popped in my SIM, quickly downloaded Whatsapp and Maps, set up my work email and a few more apps, hoping all icloud data syncs over night. Fortunately, it did.

The next day I started using the 4S as my daily driver. I managed to stick with it for a month, but in the end, it was too slow for everyday usage. It was nice as an experiment, but a pain in the neck to work with.

That's the end more or less. I have a new Apple Watch that killed my 5S, which ironically I couldn't use because my replacement 4S wasn't compatible with that Watch.

I still don't know why iOS 11 draws more power than iOS 10, or if it was a firmware change that really killed my phone. But my bet is on battery management. Doesn't matter now. It was a disaster.

As I was saying, I ended up buying an SE, which is two years old, at full retail price. Well, I got a 40€ discount by trading in the broken 5S.

The cheapest iPhone is not a great deal nowadays, but it still is the perfect phone for my usage/size/budget.

It is not my intention to blame Apple. I fully understand what happened, and it was a chain of unfortunate events. However, I have the feeling that if I could have downgraded the 5S to iOS 10, it may have come back from the dead.

Tags: apple, english

Facebook Inc. starts cannibalizing Facebook

13 de marzo de 2018 — Carlos Fenollosa

Xataka is probably the biggest Spanish blogging company. I have always admired them, from my amateur perspective, for their ability to make a business out of writing blogs.

That is why, when they invited me to contribute with an article about the decline of Facebook, I couldn't refuse. Here it is.

Facebook se estanca, pero Zuckerberg tiene un plan: el porqué de las adquisiciones millonarias de WhatsApp e Instagram, or Facebook is stagnating, but Zuckerberg has a plan: the reason behind the billion dollar acquisitions of WhatsApp and Instagram.

Tags: facebook, internet, mobile, english

Roundup: Welcome, on news, bad tools and great tools

28 de julio de 2017 — Carlos Fenollosa

I'm starting a series of posts with a summary of the most interesting links I found. The concept of "social bookmarks" has always been interesting, but no implementation is perfect. del.icio.us was probably the closest to a good enough service, but in the end, we all just post them to Twitter and Facebook for shares and likes.

Unfortunately, Twitter search sucks, and browser bookmarks rot quickly. That's why I'm trying this new model of social + local, not only for my readers but also for myself. Furthermore, writing a tapas-sized post is much faster than a well-thought one.

Hopefully, forcing myself to post periodically —no promises, though— will encourage me to write regular articles sometimes.

Anyway, these posts will try to organize links I post on my Twitter account and provide a bit more of context.

While other friends publish newsletters, I still believe RSS can work well, so subscribe to the RSS if you want to get these updates. Another option is to use some of the services which deliver feeds by email, like Feenbox which, by the way may never leave alpha, so drop me an email if you want an invitation.

Nostalgia

RTVE, the Spanish public TV, has uploaded a few Bit a bit episodes. It was a rad early-90s show that presented video games and the early Internet.

On news

I quit reading news 3 years ago. A recent article from Tobias Rose-Stockwell digs deep into how your fear and outrage are being sold for profit by the Media.

@xurxof recommended a 2012 article from Rolf Dobelli, Avoid News. Towards a Healthy News Diet

LTE > Fiber

I was having router issues and realized how my cellphone internet is sometimes more reliable than my home fiber.

It seems to be more common than you'd think, read the Twitter replies! XKCD also recently posted a comic on this

Journaling

There was a discussion on Lobste.rs on tools to journal your workday, which was one of the reasons that led me to try out these roundup posts.

New keyboard

I bought a Matias Clicky mechanical keyboard which sounds like a minigun. For all those interested in mechanical keyboards, you must watch Thomas's Youtube channel

The new board doesn't have a nav cluster, so I configured Ctrl-HJKL to be the arrow keys. It gets a few days to get used to, but since then, I've been using that combination even when I'm using a keyboard with arrow keys.

Slack eats CPU cycles

Slack was eating a fair amount of my CPU while my laptop was trying to build a Docker image and sync 3000 files on Dropbox. Matthew O'Riordan also wrote Where’s all my CPU and memory gone? The answer: Slack

Focus, focus, focus!

I'm a brain.fm subscriber and use it regularly, especially when I'm working on the train or in a busy cafe.

musicForProgramming() is a free resource with a variety of music and also provides a podcast feed for updates.

Tags: roundup, english

mosh, the disconnection-resistant ssh

22 de abril de 2017 — Carlos Fenollosa

The second post on this blog was devoted to screen and how to use it to make persistent SSH sessions.

Recently I've started using mosh, the mobile shell. It's targeted to mobile users, for example laptop users who might get short disconnections while working on a train, and it also provides a small keystroke buffer to get rid of network lag.

It really has little drawbacks and if you ever ssh to remote hosts and get annoyed because your vim sessions or tail -F windows get disconnected, give mosh a try. I strongly recommend it.

Tags: software, unix, english

Digital Deli, reading history in the present tense

1 de marzo de 2017 — Carlos Fenollosa

Digital Deli: The Comprehensive, User Lovable Menu Of Computer Lore, Culture, Lifestyles, And Fancy is an obscure book published in 1984. I found about it after learning that the popular Steve Wozniak article titled "Homebrew and How the Apple Came to Be" belonged to a compilation of short articles.

The book

I'm amazed that this book isn't more cherished by the retrocomputing community, as it provides an incredible insight into the state of computers in 1984. We've all read books about their history, but Digital Deli provides a unique approach: it's written in present tense.

Articles are written with a candid and inspiring narrative. Micro computers were new back then, and the authors could only speculate about how they might change the world in the future.

The book is adequately structured in sections which cover topics from the origins of computing, Silicon Valley startups, and reviews of specific systems. But the most interesting part for me are not the tech articles, but rather the sociological essays.

There are texts on how families welcome computers to the home, the applications of artificial intelligence, micros on Wall Street and computers on the classroom.

How the Source works

Fortunately, a copy of the book has been preserved online, and I highly encourage you to check it out and find some copies online

Besides Woz explaining how Apple was founded, don't miss out on Paul Lutus describing how he programmed AppleWriter in a cabin in the woods, Les Solomon envisioning the "magic box" of computing, Ted Nelson on information exchange and his Project Xanadu, Nolan Bushnell on video games, Bill Gates on software usability, the origins of the Internet... the list goes on and on.

Les Solomon

If you love vintage computing you will find a fresh perspective, and if you were alive during the late 70s and early 80s you will feel a big nostalgia hit. In any case, do yourself a favor, grab a copy of this book, and keep it as a manifesto of the greatest revolution in computer history.

Tags: retro, books, english

Three take aways to understand Cloudflare's apocalyptic-proportions mess

24 de febrero de 2017 — Carlos Fenollosa

It turns out that Cloudflare's proxies have been dumping uninitialized memory that contains plain HTTPS content for an indeterminate amount of time. If you're not familiar with the topic, let me summarize it: this is the worst crypto news in the last 10 years.

As usual, I suggest you read the HN comments to understand the scandalous magnitude of the bug.

If you don't see this as a news-opening piece on TV it only confirms that journalists know nothing about tech.

How bad is it, really? Let's see

I'm finding private messages from major dating sites, full messages from a well-known chat service, online password manager data, frames from adult video sites, hotel bookings. We're talking full HTTPS requests, client IP addresses, full responses, cookies, passwords, keys, data, everything

If the bad guys didn't find the bug before Tavis, you may be on the clear. However, as usual in crypto, you must assume that any data you submitted through a Cloudflare HTTPS proxy has been compromised.

Three take aways

A first take away, crypto may be mathematically perfect but humans err and the implementations are not. Just because something is using strong crypto doesn't mean it's immune to bugs.

A second take away, MITMing the entire Internet doesn't sound so compelling when you put it that way. Sorry to be that guy, but this only confirms that the centralization of the Internet by big companies is a bad idea.

A third take away, change all your passwords. Yep. It's really that bad. Your passwords and private requests may be stored somewhere, on a proxy or on a malicious actor's servers.

Well, at least change your banking ones, important services like email, and master passwords on password managers -- you're using one, right? RIGHT?

You can't get back any personal info that got leaked but at least you can try to minimize the aftershock.

Update: here is a provisional list of affected services. Download the full list, export your password manager data into a csv file, and compare both files by using grep -f sorted_unique_cf.txt your_passwords.csv.

Afterwards, check the list of potentially affected iOS apps

Let me conclude by saying that unless you were the victim of a targeted attack it's improbable that this bug is going to affect you at all. However, that small probability is still there. Your private information may be cached somewhere or stored on a hacker's server, waiting to be organized and leaked with a flashy slogan.

I'm really sorry about the overly dramatic post, but this time it's for real.

Tags: security, internet, news, english

What do "Pro" users want?

16 de noviembre de 2016 — Carlos Fenollosa

My current machine is a 2013 i7 Macbook Air. It doesn't have the Pro label, however, It has two USB 3.0 ports, an SD slot and a Thunderbolt port. 12 hours of battery life. One of the best non-retina screens around. Judging by this week's snarky comments, it's more Pro than the 2016 Macbook Pro.

Me, I love this laptop. In fact, I love it so much that I bought it to replace an older MBA. I really hoped that Apple would keep selling the same model with a Retina screen and bumped specs.

But is it a Pro computer or not? Well, let me twist the language. I make my living with computers, so by definition it is. Let's put it another way around: I could have spent more money for a machine which has Pro in its name, but that wouldn't have improved my work output.

What is a Pro user?

So there's this big discussion on whether the Pro label means anything for Apple.

After reading dozens of reviews and blog posts, unsurprisingly, one discovers that different people have different needs. The bottom line is that a Pro user is someone who needs to get their work done and cannot tolerate much bullshit with their tools.

In my opinion, the new Macbook Pros are definitely a Pro machine, even with some valid criticisms. Apple product releases are usually followed by zesty discussions, but this time it's a bit different. It's not only angry Twitter users who are complaining; professional reviewers, engineers, and Pro users have also voiced their concerns.

I think we need to stop thinking that Apple is either stupid or malevolent. They are neither. As a public company, the metric by which their executives are evaluated is stock performance. Infuriating users for no reason only leads to decreasing sales, less benefits, and unhappy investors.

I have some theories on why Apple seems to care less about the Mac, and why many feel the need to complain.

Has the Pro market changed?

Let's be honest: for the last five years Apple probably had the best and most popular computer lineup and pricing in their history. All markets (entry, pro, portability, desktops) had fantastic machines which were totally safe to buy and recommend, at extremely affordable prices.

I've seen this myself. In Spain, as one of the poorest EU countries, Apple is not hugely popular. Macs and iPhones are super expensive, and many find it difficult to justify an Apple purchase on their <1000€ salary.

However, in the last three to five years, everybody seemed to buy a Mac, even friends of mine who swore they would never do it. They finally caved in, not because of my advice, but because their non-nerd friends recommend MBPs. And that makes sense. In a 2011 market saturated by ultraportables, Windows 8, and laptops which break every couple years, Macs were a great investment. You can even resell them after five years for 50% of their price, essentially renting them for half price.

So what happened? Right now, not only Pros are using the Macbook Pro. They're not a professional tool anymore, they're a consumer product. Apple collects usage analytics for their machines and, I suppose, makes informed decisions, like removing less used ports or not increasing storage on iPhones for a long time.

What if Apple is being fed overwhelmingly non-Pro user data for their Pro machines and, as a consequence, their decisions don't serve Pro users anymore, but rather the general public?

First, let's make a quick diversion to address the elephant in the room because, after all, I empathize with the critics.

Apple is Apple

Some assertions you can read on the Internet seem out of touch with a company which made the glaring mistake of building a machine without a floppy, released a lame mp3 player without wireless and less space than a Nomad, tried to revolutionize the world with a phone without a keyboard, and produced an oversized iPhone which is killing the laptop in the consumer market.

Apple always innovates. You can agree whether the direction is correct, but they do. They also copy, and they also steal, like every other company.

What makes them stand out is that they are bolder, dare I say, more courageous than others, to the point of having the courage to use the word courage to justify an unpopular technical decision.

They take more risks on their products. Yes, I think that the current audio jack transition could've been handled better, but they're the first "big brand" to always make such changes on their core products.

This brings us to my main gripe with the current controversy. I applaud their strategy of bringing iPhone ideas, both hardware and software, to the Mac. That is a fantastic policy. You can design a whole device around a touch screen and a secure enclave, then miniaturize it and stick it on a Macbook as a Touch Bar.

Having said that, us pros are generally conservative: we don't update our OS until versions X.1 or X.2, we need all our tools to be compatible, and we don't usually buy first-gen products, unless we self-justify our new toy as a "way to test our app experience on users who have this product".

The Great Criticism Of The 2016 Macbook Pro is mainly fueled by customers who wanted something harder, better, faster, stronger (and cheaper) and instead they got a novel consumer machine with few visible Pro improvements over the previous one and some prominent drawbacks.

Critical Pros are disappointed because they think Apple no longer cares about them. They feel they have no future using products from this company they've long invested in. Right now, there is no clear competitor to the Mac, but if it were, I'm sure many people would vote with their wallets to the other guy.

These critics aren't your typical Ballmers bashing the iPhone out of spite. They are concerned, loyal customers who have spent tens of thousands of dollars in Apple's products.

What's worse, Apple doesn't seem to understand the backlash, as shown by recent executive statements. Feeling misunderstood just infuriates people more, and there are few things as powerful as people frustrated and disappointed with the figures and institutions they respect.

Experiment, but not on my lawn

If I could ask Apple for just one thing, it would be to restrict their courage to the consumer market.

'Member the jokes about the 2008 Macbook Air? Only one port, no DVD drive?

The truth is, nobody cared because that machine was clearly not for them; it was an experiment, which if I may say so, turned out to be one of the most successful ever. Eight years later, many laptops aspire to be a Macbook Air, and the current entry Apple machine, the Macbook "One", is only an iteration on that design.

Nowadays, Apple calls the Retina MBA we had been waiting for a "Macbook Pro". That machine has a 15W CPU, only two ports—one of which is needed for charging—, good enough internals, and a great battery for light browsing which suffers on high CPU usage.

But when Apple rebrands this Air as a Pro, real pros get furious, because that machine clearly isn't for them. And this time, to add more fuel to the fire, the consumer segment gets furious too, since it's too expensive, to be exact, $400 too expensive.

By making the conscious decision of positioning this as a Pro machine both in branding and price point, Apple is sending the message that they really do consider this a Pro machine.

One unexpected outcome of this crisis

Regardless, there is one real, tangible risk for Apple.

When looking at the raw numbers, what Apple sees is this: 70% of their revenue comes from iOS devices. Thus, they prioritize around 70% of company resources to that segment. This makes sense.

Unless.

Unless there is an external factor which drives iPhone sales: the availability of iPhone software, which is not controlled by Apple. This software is developed by external Pros. On Macs.

The explosion of the iOS App Store has not been a coincidence. It's the combination of many factors, one of which is a high number of developers and geeks using a Mac daily, thanks to its awesomeness and recent low prices. How many of us got into iPhone development just because Xcode was right there in our OS?

Similarly to how difficult it is to find COBOL developers because barely anyone learns it anymore, if most developers, whichever their day job is, start switching from a Mac to a PC, the interest for iOS development will dwindle quickly.

In summary, the success of the iPhone is directly linked to developer satisfaction with the Mac.

This line of reasoning is not unprecedented. In the 90s, almost all developers were using the Microsoft platform until Linux and OSX appeared. Nowadays, Microsoft is suffering heavily for their past technical decisions. Their mobile platform crashed not because the phones were bad, but because they had no software available.

Right now, Apple is safe, and Pro users will keep using Macs not only thanks to Jobs' successful walled garden strategy, but also because they are the best tools for the job.

While Pro users may not be trend-setters, they win in the long term. Linux won in the server. Apple won the smartphone race because it had already won the developer race. They made awesome laptops and those of us who were using Linux just went ahead and bought a Mac.

Apple thinks future developers will code on iPads. Maybe that's right 10 years from now. The question is, can they save this 10-year gap between current developers and future ones?

The perfect Pro machine

This Macbook Pro is a great machine and, with USB-C ports, is future proof.

Dongles and keyboards are a scapegoat. Criticisms are valid, but I feel they are unjustly directed to this specific machine instead of Apple's strategy in general. Or, at least, the tiny part that us consumers see.

Photographers want an SD slot. Developers want more RAM for their VMs. Students want lower prices. Mobile professionals want an integrated LTE chip. Roadies want more battery life. Here's my wish, different than everybody else's: I want the current Macbook Air with a Retina screen and 20 hours of battery life (10 when the CPU is peaking)

Everybody seems to be either postulating why this is not a Pro machine or criticizing the critics. And they are all right.

Unfortunately, unless given infinite resources, the perfect machine will not exist. I think the critics know that, even if many are projecting their rage on this specific machine.

A letter to Santa

Pro customers, myself included, are afraid that Apple is going to stab them on the back in a few years, and Apple is not doing anything substantial to reduce these fears.

In computing, too, perception is as important as cold, hard facts.

Macs are a great UNIX machine for developers, have a fantastic screen for multimedia Pros, get amazing build quality value for budget constrained self-employed engineers, work awesomely with audio setups thanks to almost inaudible fans, triple-A software is available, and you can even install Windows.

We have to admit that us Pros are mostly happily locked in the Apple ecosystem. When we look for alternatives, in many cases, we only see crap. And that's why we are afraid. Is it our own fault? Of course, we are all responsible for our own decisions. Does this mean we have no right to complain?

Apple, if you're listening, please do:

  1. Remember that you sell phones because there's people developing apps for them.
  2. Ask your own engineers which kind of machine they'd like to develop on. Keep making gorgeous Starbucks ornaments if you wish, but clearly split the product lines and the marketing message so all consumers feel included.
  3. Many iOS apps are developed outside the US and the current price point for your machines is too high for the rest of the world. I know we pay for taxes, but even when accounting for that, a bag of chips, an apartment, or a bike doesn't cost the same in Manhattan than in Barcelona.
  4. Keep making great hardware and innovating, but please, experiment with your consumer line, not your Pro line.
  5. Send an ACK to let us Pros recover our trust in you. Unfortunately, at this point, statements are not enough.

Thank you for reading.

Tags: hardware, apple, english

Basic iPhone security for regular people

18 de agosto de 2016 — Carlos Fenollosa

Real life requires a balance between convenience and security. You might not be a high-profile person, but we all have personal information on our phones which can give us a headache if it falls into the wrong hands.

Here are some options you can enable to harden your iPhone in the case of theft, a targeted attack or just a curious nephew who's messing with your phone.

Even if you don't enable them all, it's always nice to know that these features exist to protect your personal information. This guide is specific for iPhones, but I suppose that most of them can be directly applied to other phones.

Password-protect your phone

Your iPhone must always have a password. Otherwise, anybody with physical access to your phone will get access to all your information: calendar, mail, pictures or *gasp* browser history.

Passwords are inconvenient. However, even a simple 4-digit code will stop casual attackers, though it is not secure against a resourceful attacker

☑ Use a password on your phone: Settings > Touch ID & Passcode

Furthermore, enable the 10-attempt limit, so that people can't brute-force your password.

☑ Erase data after 10 attempts: Settings > Touch ID & Passcode > Erase data (ON)

If your phone has Touch ID, enable it, and use a very long and complicated password to unlock your phone. You will only need to input it on boot and for a few options. It is reasonably secure and has few drawbacks for most users. Unless you have specific reasons not to do it, just go and enable Touch ID.

☑ Enable Touch ID: Settings > Touch ID & Passcode

Regarding password input, and especially if your phone doesn't have Touch ID, using a numeric keyboard is much faster than the QWERTY one. Here's a trick that will help you choose a secure numeric password which is easy to remember.

Think of a word and convert it to numbers as if you were dialing them on a phone, i.e. ABC -> 2, DEF -> 3, ..., WYZ -> 9. For example, if your password is "PASSWORD", the numeric code would be 72779673.

The iPhone will automatically detect that the password contains only numbers and will present a digital keyboard on the lock screen instead of a QWERTY one, making it super easy to remember and type while still keeping a high level of security.

☑ If you must use a numeric password, use a long one: Settings > Touch ID & Passcode

Harden your iPhone when locked

A locked phone can still leak private data. Accessing Siri, the calendar or messages from the lock screen is handy, but depending on your personal case, can give too much information to a thief or attacker.

Siri is a great source of data leaks, and I recommend that you disable it when your phone is locked. It will essentially squeal your personal info, your contacts, tasks or events. A thief can easily know everything about you or harass your family if they get a hand on a phone with Siri enabled on the lock screen.

This setting does not disable Siri completely; it just requires the phone to be unlocked for Siri to work.

☑ Disable Siri when phone is locked: Settings > Touch ID & Passcode > Siri

If you have confidential data on your calendar, you may also want to disable the "today" view which usually includes your calendar, reminders, etc.

☑ Disable Today view: Settings > Touch ID & Passcode > Today

Take a look at the other options there. You may want to turn off the notifications view, or the option to reply with a message. An attacker may spoof your identity by answering messages while the phone is locked, for example, taking advantage from an SMS from "Mom" and tricking her into asking for her maiden name, pet names, etc., which are usually answers to secret questions to recover your password.

☑ Disallow message replies when the phone is locked: Settings > Touch ID & Passcode > Reply with Message

Having your medical information on the emergency screen has pros and cons. Since I don't have any dangerous conditions, I disable it. Your case may be different.

Someone with your phone can use Medical ID to get your name and picture, which may be googled for identity theft or sending you phishing emails. Your name can also be searched for public records or DNS whois information, which may disclose your home phone, address, date of birth, ID number and family members.

In summary, make it sure that somebody who finds your locked phone cannot discover who you are or interact as if they were you.

☑ Disable Medical ID: Health > Medical ID > Edit > Show When Locked

Some people think that letting anyone find out the owner of the phone is a good idea, since an honest person who finds your lost phone can easily contact you. However, you can always display a personalized message on your lock screen if you report your phone missing on iCloud.

☑ Enable "Find my phone": Settings > iCloud > Find my iPhone > Find My iPhone

Make sure that your phone will send its location just before it runs out of battery

☑ Enable "Find my phone": Settings > iCloud > Find my iPhone > Send Last Location

To finish this section, if you don't have the habit of manually locking your phone after you use it, or before placing it in your pocket, configure your iPhone to do it automatically:

☑ Enable phone locking: Settings > General > Auto-Lock

Harden the hardware

Your phone is now secure and won't sing like a canary when it gets into the wrong hands.

However, your SIM card may. SIMs can contain personal information, like names, phones or addresses, so they must be secured, too.

Enable the SIM lock so that, on boot, it will ask for a 4-digit code besides your phone password. It may sound annoying, but it isn't. It's just an extra step that you only need to perform once every many days, when your phone restarts.

Otherwise, a thief can stick the SIM in another phone and access that information and discover your phone number. With it, you may be googled, or they may attempt phishing attacks weeks later.

Beware that this strategy doesn't allow the phone to ping home after it has been shut down and turned on.

☑ Enable SIM PIN: Settings > Phone > SIM PIN

Enable iCloud. When your phone is associated with an iCloud account, it is impossible for another person to use it, dropping its resale value to almost zero. I've had some friends get their phones back after a casual thief tried to sell them unsuccessfully thanks to the iCloud lock and finally decided to do the good thing and return it.

☑ Enable iCloud: Settings > iCloud

If you have the means, try to upgrade to an iPhone 5S or higher. These phones contain a hardware element called Secure Enclave which encrypts your personal information in a way that can't even be cracked by the FBI. If your phone gets stolen by a professional, they won't be able to solder the flash memory into another device and recover your data.

☑ Upgrade to a phone with a Secure Enclave (iPhone 5S or higher)

Harden your online accounts

In reality, your online data is much more at risk than your physical phone. Botnets constantly try to find vulnerabilities in services and steal user passwords.

The first thing you must do right now is to install a password manager. Your iPhone has one built into the system, which is good enough to generate unique password and auto-fill them when needed.

If you don't like Apple's Keychain, I recommend LastPass and 1Password.

Why do you need a password manager? The main reason is to avoid having a single password for all services. The popular trick of having a weak password for most sites and another strong password for important sites is a dangerous idea.

Your goal is to have a different password for each site/service, so that if it gets attacked or you inadvertently leak it to a phishing attack, it is no big deal and doesn't affect all your accounts.

Just have a different one for each service and let the phone remember all of them. I don't know my passwords: Gmail, Facebook, Twitter, my browser remembers them for me.

☑ Use a password manager: Settings > iCloud > Keychain > iCloud Keychain

There is another system which complements passwords, called "Two-Factor Authentication", or 2FA. You have probably used it in online banking; they send you an SMS with a confirmation code that you have to enter somewhere.

If your password gets stolen, 2FA is a fantastic barrier against an attacker. Without your phone, they can't access your data, even if they have all your passwords.

☑ Use 2FA for your online accounts: manual for different sites

2FA makes it critical to disable SMS previews, because if a thief steals your phone and already has some of your passwords, he can use your locked phone to read 2FA SMS.

If you use iMessage heavily, this may be cumbersome, so decide for yourself.

☑ Disable SMS previews on locked phone: Settings > Notifications > Messages > Show Previews

Make it easy to recover your data

If the worst happens, and you lose your phone, get it stolen or drop it on the Venice canals, plan ahead so that the only loss is the money for a new phone. You don't want to lose your pictures, passwords, phone numbers, events...

Fortunately, iPhones have a phenomenal backup system which can store your phone data in the cloud or your Mac. I have a Mac, but I recommend the iCloud backup nonetheless.

Apple only offers 5 GB of storage in iCloud, which is poor, but fortunately, the pricing tiers are fair. For one or two bucks a month, depending on your usage, you can buy the cheapest and most important digital insurance to keep all your data and pictures safe.

iCloud backup can automatically set up a new phone and make it behave exactly like your old phone.

If you own a Mac, once you pay for iCloud storage, you can enable the "iCloud Photo Library" on Settings > iCloud > Photos > iCloud Photo Library for transparent syncing of all your pictures between your phone and your computer.

☑ Enable iCloud backup: Settings > iCloud > Backup > iCloud Backup

If you don't want the iCloud backup, at least add a free iCloud account or any other "sync" account like Google's, and use it to store your contacts, calendars, notes and Keychain.

☑ Enable iCloud: Settings > iCloud

Bonus: disable your phone when showing pictures

Afraid of handing your phone over to show somebody a picture? People have a tendency to swipe around to see other images, which may be a bad idea in some cases.

To save them from seeing things that can't be unseen, you can use a trick with the Guided Access feature to lock all input to the phone, yet still show whatever is on the screen.

☑ Use Guided Access to lock pictures on screen: Read this manual

This is not a thorough guide

As the title mentions, this is an essential blueprint for iPhone users who are not a serious target for digital theft. High-profile people need to take many more steps to secure their data. Still, they all implement these options too.

The usual scenario for a thief who steals your phone at a bar is as follows: they will turn it off or put it in airplane mode and try to unlock it. Once they see that it's locked with iCloud, they can either try to sell it for parts, return it or discard it.

Muggers don't want your data. However, it doesn't hurt to implement some security measures.

In worse scenarios, there are criminal companies specialized in buying stolen phones at a very low price and perform massive simple attacks to unsuspecting users to trick them into unlocking the phone or giving up personal data.

You don't need the same security as Obama or Snowden. Nonetheless, knowing how your phone leaks personal information and the possible attack vectors is important in defending yourself from prying eyes.

You have your whole life on your phone. In the case of an unfortunate theft, make it so the only loss is the cost of a new one.

Tags: security, english

Living in a disrupted economy

21 de julio de 2016 — Carlos Fenollosa

There is this continuing discussion on whether technology destroys more jobs than it creates. Every few years, yet another tech revolution occurs, journalists publish articles, pundits share their opinions, politicians try to catch up, and those affected always voice their concerns. These couple years have been no exception, thanks to Uber, Airbnb, and the called sharing economy.

I'm a technologist and a relatively young person, so I am naturally biased towards technological disruption. After all, it is people like me who are trying to make a living by taking over older jobs.

I suggest that you take a few minutes to read a fantastic article titled The $3500 shirt. That essay reveals how horrible some industries were before they could be automated or replaced by something better. Go on, please read it now, it will only take three minutes.

Now, imagine you had to spend a couple of weeks of your time to make a t-shirt from scratch. Would that be acceptable? I guess we all more or less agree that the textile revolution was a net gain for society. Nevertheless, when it occurred, some Luddites probably complained, arguing that the loom put seamstresses out of work.

History is packed with dead industries. We killed the ice business with the modern fridge. We burn less coal for energy, so miners go unemployed. And let's not forget the basis of modern civilization, the agricultural revolution, which is the only reason us humans can feed ourselves. Without greenhouses, nitrates, tractors, pest protection and advancements in farming, humanity would starve.

Admittedly, it transformed the first sector from a 65% in workforce quota into the current 10%. Isn't it great that most of us don't need to wake up before sunrise to water our crops? In hindsight, can you imagine proclaiming that the 1800s way of farming is better because it preserves farming jobs?

The bottom line is that all economic transformations are a net gain for society. They may not be flawless, but they have allowed us humans to live a better life.

So why do some characters fight against current industry disruptions if history will prove them wrong?

******

As a European and a social democrat, I believe that States must regulate some economies to avoid monopolies and abuses, supporting the greater good. Furthermore, I sympathize with the affected workforce, both personally and in a macroeconomic level. All taxi drivers suddenly going jobless because of Uber is detrimental to society.

However, it pains me to see that European politicians are taking the opposite stance, brandishing law and tradition as excuses to hinder progress.

Laws must serve people, not the other way around. If we analyze the taxi example, we learn that there is a regulation which requires taxi drivers to pay a huge sum of money up front to operate. Therefore, letting anybody get in that business for free is unfair and breaks the rules of the game. Unsurprisingly, this situation is unfair not because of the new players, but because that regulation is obsolete.

It isn't ethically right that somebody who spent a lot of money to get a license sees their job at risk. But the solution isn't to block other players, especially when it's regulation which is at fault. Let's sit down, think how to establish a transition period, and maybe even reimburse drivers part of that money with the earnings from increased taxes due to a higher employment and economic activity.

There is a middle ground solution: don't change the rules drastically, but don't use these them as an excuse to impede progress.

At the end of the day, some careers are condemned to extinction. That is a real social drama, however, what should we do? Artificially stop innovation to save jobs which are not efficient and, when automated or improved, they make the world better for everyone?

******

Us millennials have learned that the concept of a single, lifetime profession just does not exist anymore. Previous generations do not want to accept that reality. I understand that reconverting an older person to a new career may be difficult, but if the alternative is letting that person obstruct younger people's opportunities, that's not fair.

Most professions decline organically, by the very nature of society and economy. It is the politicians' responsibility to mediate when this process is accelerated by a new industry or technology. New or automated trades will take their place, usually providing a bigger collective benefit, like healthcare, education, or modern farming.

Our duty as a society is to make sure everyone lives a happy and comfortable life. Artificially blocking new technologies and economic models harms everyone. If it were for some Luddites, we'd be still paying $3500 for a shirt, and that seamstress would never have been a nurse or a scientist.

Tags: law, startups, english

The Elixir of concurrency

23 de mayo de 2016 — Carlos Fenollosa

Elixir is a fairly young language that was born when José and a few Rails developers tried to create a modern language optimized for concurrent, distributed, lightweight processes

They wanted a modern Ruby-like syntax with a well-tested process manager, the Erlang VM. The result is Elixir, defined as a dynamic, functional language designed for building scalable and maintainable applications, a correct but vague affirmation which doesn't do justice to its power and elegancy.

I recently compared the move to Elixir from Python as a similar leapfrog to moving to Python from Java. It feels like something new, modern, powerful, with killer features that you don't want to renounce to.

In Python I found a REPL, list comprehensions, a super clean syntax and decorators. Elixir brings lightweight supervised processes, pattern matching, a fully functional programming language, pipes and a terrific build tool: mix

If you've never written functional code, the jump is significant. I took a Scala course a couple years ago and I've needed almost two full weeks to write production code in Elixir. The language is young, Stack Overflow is of no help —no kidding, that is a big deal—, and there are few libraries in Github.

A small community also comes with some upsides: people are more motivated and willing to help, centralized tools like forums and IRC channels are still manageable, and you may even suggest changes to the language for upcoming versions.

What is Elixir for?

I had a middle school teacher who said that you can't define something by stating what is't not. However, in programming, mentioning use cases which are not suitable for the language is a good way to start.

Elixir is probably not the first choice for single core software: math calculus, CPU-intensive apps or desktop applications. Since it's very high level, systems programming is also out of the picture.

Elixir is great for web applications, standalone or using the Phoenix framework —Elixir's Rails—. It really shines for building highly scalable, fault-tolerant network applications, like chats, telecommunications or generic web services.

Why is that? Thanks to the Erlang VM, processes are really tiny, each one is garbage collected with a low latency, they communicate by sending location-independent messages over the network using the VMs (you can run result = Machine2.Module.function(params) on Machine1), and spawning and managing these processes is effortless thanks to some of its abstractions.

Finally, Elixir's basic modules also shine: Plug and Router for managing HTTP requests, Ecto for relational databases and ETS and Mnesia for distributed in-memory databases.

Many recommend Elixir if only for Phoenix, but I found that for most backend applications it is enough to use Plug and Router. Phoenix is impressive but I believe it's a mistake to jump right into it without trying the base modules first, so my recommendation for beginners is to hold on Phoenix until you really need it.

Elixir's novelty, the pipe operator, is a fantastic approach to working with state in a functional manner. Instead of running readlines(fopen(user_input(), "r")).uppercase().split(), try the more readable user_input |> fopen("r") |> readlines |> uppercase |> split.

It is a language which was clearly designed to stand on the shoulders of giants, while providing modern capabilities for developers.

Elixir's abstractions

To store centralized <key, value>-like data, instead of a Singleton, Elixir's provides an Agent. It keeps state in memory and many processes can access and modify it without concurrency issues.

The language can spawn processes much like threads, using spawn_link, but you probably don't want to do that. You'd rather use a Task, which is basically async/await, or a Gen(eric)Server, a very cool abstraction that receives requests from other processes, spawns helper mini-servers and processes the results in parallel, for free.

All tasks can be controlled using the Supervisor, which holds other abstractions as its "children" and automatically restarts them when they crash.

Finally, your code is contained inside a single project which can manage different apps, with modules that hold functions. No packages, no classes, no objects. Modules, functions, structs and basic data types.

Dependency management is straightforward thanks to mix; builds and testing are handled by mix too. As opposed to other multi-tools like gradle, this one is really fast.

Is that too much to process? I felt that at first, too. Give it some time and your brain will eventually think in terms of Supervisors which manage GenServers which spawn Agents and Tasks when needed.

Let it crash

Elixir's mantra is to let processes crash. I found it shocking and counter-intuitive, but with some explanation it makes a lot of sense.

Neither developers want their code to crash nor Elixir promotes writing bad code. However, let's agree that there are many reasons besides bad programming which can make a software crash. If we have a server which runs stuff and at some point we have, say, 100 connections every second, one might crash eventually because of a bug in any component, hardware issues, a cosmic ray, or Murphy's law.

The question is: in the event of an unfortunate, unavoidable crash, how will your system react?

  1. Bring everything down?
  2. Try to capture the error and recover?
  3. Kill the crashed process and launch another one in its place?

For example, C uses approach 1. Most modern languages with Exceptions like Java and Python use 2. Elixir uses 3. This is not suitable for all environments, but it is perfect for those use cases which fit Elixir: concurrent network processes.

With Elixir, a single failure never brings the system down. What's more, it automatically restarts the crashed process, so the client can instantly retry and, unless there is a reproducible bug in your code, the fresh process will finish without an issue.

The bottom line is: a single client may be unlucky and crash at some point, but the rest of the system will never notice.

How to start?

Let's get our hands dirty. After reading many sites, watching hours of video and following a dozen tutorials, here are the resources I found the most valuable. I'd suggest following this order.

Getting started

  1. Madrid Elixir Meetup 2016-03. If you understand Spanish, this is the best intro to Elixir. Otherwise, watch All aboard the Elixir Express! which is a bit outdated but very comprehensive.
  2. Official "Getting Started" guide. It's the best and the most current. Follow it from start to finish, including the advanced chapters.
  3. Elixir School. A nice complement to the official guide. Most things are very similar, but the different approach on OTP will help you understand it better.
  4. Understanding Elixir's GenServer and Elixir's supervisors, a conceptual understanding are two short reads with yet another explanation of OTP features.
  5. Elixir Cheat Sheet. The best one out there

First projects

  1. vim-elixir-ide. Elixir support for vim, not the best plugin but suitable for beginners.
  2. Elixir examples. The Elixir guide covers all these, but it's handy to have common idioms on a single page: "string to list", "concatenate list", "optional function parameters", etc.
  3. Portal Game by José Valim. A complement to the sample project on the official guide.
  4. Elixir Koans and Exercism are mini exercises that you can use to improve your Elixir agility. On the same line, Elixir Golf proposes weekly puzzles to solve.
  5. Learning Elixir. Joseph Kain has a ton of content with mini projects and examples you can follow. Top quality.
  6. Excasts and Elixir sips have short screencasts that you can check out for reference
  7. ElixirConf videos contain very interesting talks which may be overwhelming for beginners, but are worth a look later on.
  8. Install Elixir and Phoenix on OSX. If you want to use Phoenix on OSX, you may need this help
  9. Phoenix Official Guide. Phoenix isn't necessary for simple web services, you can use Plug. But for large projects you'll need a framework. Nothing like the official guide.

Getting help

  1. Awesome Elixir. A list of Elixir resources, where I found many of these.
  2. Elixir Tip and Elixir Status regularly link to Elixir-related articles and videos, and Plataformatec Elixir posts is where the language authors share news and tips.
  3. If you have questions about code, try the Elixir forum first, the IRC channel or Slack. The developers would like to transition all help requests out of the Mailing list, which you can use for language-related discussions.
  4. /r/elixir if you're into Reddit

Closing thoughts

I think that's all for the moment. I hope this post can help some beginners to get their hands on the language and start writing production code as soon as possible.

For anyone who wants to know what's all the Elixir fuss about, it's difficult to explain, especially for somebody like me who has been programming in imperative languages all his life.

When I recommended Elixir to a friend, he replied, "A highly concurrent, functional language using the Erlang VM? Don't you have something more exotic?". That's right. Elixir is exotic and use-case specific.

Unlike Python, which is my favorite imperative language and ecosystem, I can't recommend Elixir for everyone. Not everybody can spare a couple weeks to get started. Many libraries for common use cases are missing: there is nothing equivalent to Numpy or Matplotlib, and modern applications are built on top of dozens of libs, not everyone has the time or will to write library code. Fortunately, at Paradoxa I am my own boss and I make the tech decisions :)

For hackers or tinkerers it's definitely worth a look, it "won't change your perspective" like Lisp, but it will make you see that writing concurrent code doesn't need to be difficult, and that better tooling is definitely possible.

I bet Elixir will be the foundation of most devops stacks in a few years, when developers realize that the future's bottleneck won't be the CPU, but rather the number of concurrent processes and connections your backend can manage. With Elixir you only need to boot another machine in your network and let the exotic Erlang VM handle the rest.

Tags: programming, learning, english

Bots lack metaphors, and that is their biggest asset

17 de mayo de 2016 — Carlos Fenollosa

Bots are the hot topic this 2016. They need no presentation, so I'm not going to introduce them. Let's get to the point.

We can all agree that bots are an interesting idea. However, there's this debate regarding whether bots are going to be the user interface of the future.

Many critics argue against a future where bots rule user interaction. Some are philosophical, others are somehow short-sighted, and many are just contrarian per se.

I'm not saying they're wrong, but they overlook some strong arguments that we should have learned by observing the history of computing.

What computer history taught us

The most important thing we learned since the 70s is that people do not want quicker and faster interfaces, they want better interfaces.

In the 80s, during the GUI revolution, they had critics too. GUI detractors claimed that the GUI was just a gimmick, or that real computer users preferred the command line. We should know better by now.

Critics were right in some points: GUIs weren't faster or more potent than the command line. However, this wasn't the winning argument.

GUIs won because the general public will always prefer a tool that is easier to use and understand than one which is more powerful but harder to use.

Are bots a command line?

See how there is a simile, but in fact, bots are the exact opposite from a command line.

Bot critics equate bots with CLIs and thus reach the conclusion that they are a step backward compared to GUIs. The main argument is that bots do not have discoverability, that is, users will not know what they're capable of since they don't have a menu with the available options. Whenever you're presented with a blank sheet, how to start using it?

However, I believe this comparison is wrong. People don't have a post-it note on their forehead stating their available commands, but we manage to work together, don't we?

We've been learning how to interact with people our whole lives; that's the point of living in society. When we walk into a coffee shop, we don't need an instruction manual to know how to ask for an espresso, or the menu, or request further assistance from the barista.

Bots can present buttons and images besides using text so, at the very least, they can emulate a traditional GUI. This is not a killer feature but contributes to refute the discoverability criticism and provide a transition period for users.

Bots lack metaphors, and that is their biggest asset

Bots will win because they speak natural language, even if it is only a dumbed down version. Their goal, at least in the beginning, is to specialize in one use case: ordering a pizza, requesting weather information, managing your agenda. After all, 90% of your interactions with your barista can be reduced to about ten sentences.

Being able to use natural language means there is no learning curve. And, for once in the history of computing, users will be able to use a UI that lacks what all other UIs required to function: metaphors.

This is critical since metaphors are what regular people hate about computers.

Who cares if one needs to press seventy buttons to order a pizza with a bot instead of just three with an app. People will use the product which is easier to use, not the one which saves them more keystrokes--not to mention that you can send commands with your voice. Didn't we learn from GUIs?

The death of the metaphor

Every metaphor has been moving both hardware and software towards a more human way of working.

Files, folders, commands, the mouse, windows, disk drives, applications, all these have been bright ideas that emerged at some point and then died when the next thing appeared. We even tried to style apps with leather and linen, buttons and switches to make them more understandable and relatable to the real world.

By definition, metaphors are a compromise. Both users and developers have a love-hate relationship with them, as they have been necessary to operate computers, but they also impose a barrier between thought and action.

Thanks to metaphors, this metallic thing which made funny noises and whose lights blinked continuously in 1975 has now evolved to a very easy to use smartphone. But that smartphone still clearly is a computer, with buttons, windows, and text boxes.

Bots, if done correctly, may be the end of the computing metaphor.

Metaphors have an expiration date

This is not intrinsic of computers.

At some point in time, a watch was a metaphor for counting time. We designed a device with a hand pointing to numbers from 1 to 12 and we matched it to the sun cycle. Advances in technology and culture have converted it in a fashion item and, while it still bears a metaphoric value, both four-year-olds and ninety-year-olds can use it without much thinking.

It's like driving: once you master it, your brain operates the car in the background. Your eyes still look at the road, but unless there is any unexpected issue, your conscious mind does not need to be driving.

I feel like the computing world, in general, is mature enough for this. Bots are a natural progression. They will not replace everything, like bicycles do not replace trucks. For most people, however, interacting with a computer as they do with a person is indeed the clincher

Ultimately, a tool is just a means to an end, and people want to do things, not mess with tools. Some of us engineers do, but we're in the minority.

Can we foresee the future?

So, why bots and not another UI?

I haven't reached this conclusion myself, strong as some arguments may be. I just follow the trend that thinkers have created.

The future is written in cyberpunk novels and philosophical AI movies, in music, in cinema. Not in blogs, not in engineer forums, not in the mind of some visionary CEO.

People will use what people want, and the best demand creation machine is imagination, in the form of art and mass media.

What people will want is what artists have represented: futuristic VR and human-like --but not too human-looking-- software

And now for the final question. Chat bots and expert systems have been around since the 1960s, so why is now the right time?

All paths lead to Rome

First and foremost, now is the right time because we believe it is. Everything is pushing towards chat UIs: big players, money, startups, the media.

Marketing and news articles can make people like things, hate things, and love things. People are told that they will be able to talk to their computers, and they've been baited with Siris and Alexas. Those are not perfect, but hint of a better future.

Consumers imagine a plan for a better future and generate demand. And demand is the driver of innovation. That's why in tech, self-fulfilled prophecies work, and predictions can be incredibly accurate even over hundreds of years

At a technical level, both hardware and software are advanced enough for real-time audio and text processing with natural language. APIs are everywhere, and some IA problems which were too hard ten years ago have been solved by either commercial packages or free software libraries

Finally, the customer's computing environment is as close to bots as it can be. Chat apps are the most used feature of a smartphone because they're straightforward and personal. People write or talk, and they get text or audio back. Not buttons, not forms, just a text box and a sentence.

My contrarian side feels a bit odd by tagging along the current big wave, but both rationally and by intuition I really do believe that now is the right moment. And I feel that I had to share my reasons.

For what it's worth, I'm putting my money where my mouth is, developing bots at Paradoxa. Who knows what will happen anyway. Undeniably, nobody has a crystal ball.

But isn't trying to predict the future enjoyable? Just imagining it is half the fun.

Tags: internet, startups, AI, english

Why the centralization of the Internet is a bad idea

29 de febrero de 2016 — Carlos Fenollosa

You probably know that the Internet was born as a military project. That its goal was to have a computer network that survived a nuclear attack. Therefore, the pipes that make the Internet work are scattered through all the world. Every computer is connected to each other in a grid, more or less.

In theory, it’s easy: to go from computer A to C, go to B. If B is down, you can probably be routed through D and F and reach C nonetheless. To learn which is the best route, you ask a router. Apply recursively, and that’s the Internet!

However, the Internet is a technology, not an application. The applications we use are email, the Web, the Usenet, etc. Many popular services are nothing else than an API running on the Web. And most are centralized: to use Gmail you need to connect to the Gmail server. Makes sense, right?

In fact, that is not necessarily so; it has traditionally been the exact opposite, especially with email.

Email, along with web pages, it is the last bastion of decentralization on the Internet. You can install some software and send a message from your email server to another on the other side of the world without any meddling from third party servers — routers aside.

Most users don’t do that, though. Centralized systems are convenient. Managing a private server is complicated, and it forces you to have a computer running 24/7 at home, or rent one. Why should you handle this? Let the professionals do it, and end users can connect to centralized servers when they need to access a service.

There is a decentralized Facebook, called Diaspora, and a decentralized Twitter called Twister. BitTorrent is a decentralized file sharing system, Aether is a decentralized discussion forum, and there is even a decentralized currency called Bitcoin.

With them, you can have your data on your personal computer, or a machine you trust, and send specific pieces to your friends computers, without going through a central server. These services aren’t very popular at the moment, but due to increasing espionage, data selling, moderation abuse and others, their usage will probably increase, and pave the way for similar solutions soon.

Let’s get back to email for a minute because, unfortunately, its decentralization is jeopardized by a few powerful actors. There are strong reasons to trust big email providers, especially to avoid spam and fraud. Sadly, some of the measures used to filter potentially harmful emails also hurt small, honest servers, who see how their emails get rejected or delivered directly to the spam folder.

I’ve experimented with email servers since I was in college. Back in 2001, you could install an MTA and start sending emails without much trouble. However, for recent projects like Puput, installing and maintaining the email server has been nightmarish.

We are preparing the details for a future post, but to summarize, after installing postfix, no fewer than eight steps were required to get our emails successfully delivered into our users inboxes.

Both startups and the big players offer email delivery services, and I admit that had it not been for my obstinacy, we probably would’ve used some of them.

However, being as we are a bit old-school, used that your server could be a first-class node of the internet, that proved to us a serious ethical dilemma. Either you succumb to using one of the few “trusted email servers” or you essentially risk getting banned from delivering your own email. It is not yet blackmail, but it’s close.

I don’t want to be dishonest, there are genuine reasons for this. Trying to recentralize email may probably be just a measure to combat spam. Probably. Because when the big players have such large incentives to kill their competition and become The One Email Provider in the world, each barrier counts. It is not far-fetched to think that, at least, there are conflicts of interest among these big players.

Some sysadmins capitulate and end up using XYZ Apps for Business, surrendering a bit of the Internet’s decentralization to that company. Again, it makes sense, both technical and economical. Don’t reinvent the wheel. But every small decision we take contributes to create the world we want to live in.

Being a monopoly is tempting, and XYZ already has a history of embracing services like the Usenet, chat and RSS to kill them shortly afterward and force users to move to their proprietary solutions. In the 90s, XYZ was Microsoft. Nowadays, it is the formerly not evil company — ironic value of this left to the reader’s criterion.

With the de-facto death of Jabber, email and The Web are essentially the only popular services that you can still run from your private box and interact with the outside world. IM and social networks have been taken over by a dozen of centralized and isolated services; we can’t let email suffer the same fate.

Maybe the future of communications is just around the corner. When all devices are permanently connected to the Internet in a robust way, we will probably carry an internet node in our pocket. Meanwhile, we will keep using just an internet access device and reaching a central server to get our data, trusting that this machine doesn’t misuse it.

This post was originally posted on Puput blog

Tags: internet, english

A simple script to postpone your own email

14 de enero de 2016 — Carlos Fenollosa

I somewhat use email as a task manager. Honestly, I believe we all do. We process emails in the inbox, then archive or delete them when we are done with them.

However, keeping track of emails that need a follow-up on a specific date can be difficult.

Around 2011 I wrote a script to perform that task. It is a very simple IMAP parser that searches for a folder with today's date and moves all its contents to a special folder named "Today".

Let me tell you my email workflow. I understand that not everybody works in the same way, but maybe you can get some ideas to improve your email handling.

My email folder structure looks like this. The interesting part is in bold.

Inbox
\_ Mailing lists
\_ Project folders
\_ ...

\_ Deadlines
     \_ Today
     \_ Tomorrow
     \_ 2016-01-19
     \_ 2016-02-02
     ...
     \_ 2017-08-01

I follow the GTD methodology, which essentially states that tasks should either be done on the spot, delegated, or deferred. Thus, my inbox is exclusively for new tasks. A couple of times a day I process incoming email and, like most of us, either delete it, reply to it, forward it or —this is the interesting part— move it to one of the "Deadlines" folders.

Instead of using the inbox as the "email task manager", I use a folder named "Today". I've tried both alternatives, and I find that it works best for me. Since it separates new tasks from tasks I've already processed, I can work my entire day on "Today" and totally forget about the Inbox, even if new email is arriving.

The "Tomorrow" folder is just a shortcut so that I don't need to create a new folder with tomorrow's date every day.

As you may have guessed, the script runs once a day in a crontab, at 6 AM, and moves all mail from "Tomorrow" and the folder with tomorrow's date to "Today". That's it. And that "simple trick", as fishy marketers like to say, saves me a lot of time and headaches every day.

There is currently a commercial alternative, Boomerang, which you may find interesting if you aren't comfortable with programming. I haven't used it, so I can't comment on that. In any case, I usually prefer writing a small script rather than using a third-party service.

Update: this script by Alex Kapravelos does something very similar, and it integrates with Google Apps Scripts.

Here it is, as a Gist. The code is definitely not the best in the world, but it works. Feel free to use it, modify it (BSD license), give feedback and leave comments.

I hope that you can introduce some ideas from this methodology to your daily workflow. it can be as useful as it's been for me.

Tags: software, tricks, productivity, english

What's up with disliking Liking?

10 de enero de 2016 — Carlos Fenollosa

Twitter recently changed their faves for likes with much controversy and bashing Facebook's Likes is already a meme. What's up with disliking Liking?

Are we more narcissistic than ever? Maybe we are. Public image has always been important for two groups: public figures and teenagers.

I find myself lucky to have been a teenager in a world without social media. Otherwise, everyone could have been my adolescent cringe-inducing posts that were lost in private ICQ and MSN chats.

People need to feel important, and the new coolness ranking is social media Likes. Years ago, it was (paper) facebook notes and signatures. That's how the world works now, and we can only react to it, not change it.

Us adults tend to frown upon a teen posting a vaguely suggestive picture for their friends to Like but can't seem to enjoy a vacation unless we're sure all our coworkers are green with envy at our beach pictures. We can't start eating until everyone has uploaded a pic of its dish to Instagram as if waiting till mom finishes her prayer.

Technology is always ahead of society. It takes some time for people to adjust to new customs. We added "texting" to the list of things that are rude while dining at a table, then allowed some exceptions for important messages. We considered that leaving a meeting for a phone call is unprofessional, then accepted that people can have legitimate reasons.

Some will eat their dishes cold for some ♥s; others will unhealthily link their self-esteem to a particular threshold of Likes, and people will publicly mourn their dead in exchange for some sympathy.

In the end, liking somebody's content is a way of showing that you care about that person. Sympathy makes us human. Some will argue that private things should be kept hidden, but what's wrong if broadcasting their lives make people happy?

Everyone has their individual reasons for providing a Like or not; likewise, they are free to choose whether to publicize a personal event or not. Those who advertise all their illnesses on Facebook are no different than grandmas who go to the park and compete with other grandmas in the so-called ailment Olympics.

People need sympathy; Likes is just the channel that we use in the 2010s to provide it.

Tags: internet, life, english

Puput, mail without internet

21 de diciembre de 2015 — Carlos Fenollosa

Here's my new project: Puput, a service which lets you listen to your email when you have no internet.

I honestly think it's pretty cool, the project has a strong R+D component for which we filed a patent, and it has lots of potential to integrate into IMs like Slack and close the communication gap for people who are offline.

It's free, so please be my guest and give it a try! It's surprisingly awesome to be able to listen to your email when you're abroad without an internet connection.

Even though we have been absorbing a lot of startups-related material these last months, nothing will prepare you for a real product launch. Everybody says it, and I agree:

  • The last 20% of the work consumes us 80% of the time. That is, UI, UX, the website, and the marketing strategy
  • Selling is hard.
  • Selling is even harder when you first invent a new technology and then try to find use cases for it. Yes, the lean startup recommends doing the opposite, it is a common first timer mistake :(
  • I'll say it again, do product/market fit first, then start coding.
  • Raising money is nearly impossible in the Spanish startup scene. Obviously we're nobodies, but I've also talked to many other founders, with great products, thousands of clients and two-digit monthly growth, who find it incredibly frustrating to raise even 200k€
  • Launch day is scary so you find excuses not to launch. Adding more features is one of them. Establish hard deadlines and try to respect them as much as possible.
  • It turns out it isn't that scary anyways, in fact, getting users and attention is difficult at first. Dying from success is unrealistically represented in sites like HN, it doesn't apply to 99% of the startups.

Anyway, launching a product is hard, teaches you many things about the world, and makes you respect people who have done it successfully.

Cheers to all first time founders.

Tags: internet, software, startups, projects, english

"Think of the terrorists" is the new "Think of the children"

11 de julio de 2015 — Carlos Fenollosa

If I am prime minister, I will make sure that it is a comprehensive piece of legislation that makes sure we do not allow terrorists safe space to communicate with each other. That is the key principle: do we allow safe spaces for them to talk to each other? I say no, we don't, and we should legislate accordingly.

—David Cameron

What infuriates me the most is that is such a blind, selfish, first world argument. It implies freedom of speech is granted, ubiquitous, and irreversible, so those who want extra protection must be criminals. Mr. Cameron's statement also assumes that there is no middle ground, and all technologies that can be misused by some party should be illegal. You know, the Hitler-croquettes theorem: since Hitler liked croquettes, croquettes must be bad.

In some countries, the Government can kill you for your political views. Your neighbors can also kill you for what you are—gay, for example. Ill-named "activists" can kill you for private beliefs that don't affect other people, like your stance on abortion. Mafias can kill you for badmouthing. And these all happen in first world countries, can you imagine the rest of the world?

Requesting those people to abandon the tool that is currently saving their lives in exchange for the vague promise of finding terrorists is a false dichotomy. I can understand uneducated people considering this topic as black and white. But a Prime Minister? That's a supreme level of blindness.

Mr. Cameron and others surely understand how the world works. They know that hackings, theft, revolutions, and coups d'etat exist, and those who once were righteous, legal and legitimate may be prosecuted. Something being legal or punishable can quickly change, it is not written in stone, and definitely not universal.

Imagine a Christian in 2011 Syria. They lead an ordinary life, have a job, a Facebook, they send funny memes to their friends, they communicate online. Being a Christian something we can agree is a legitimate and harmless belief and, according to 2011 Syria's laws, legal.

Now meet ISIS. In just a year they have conquered a large portion of the territory and changed some laws considerably. Forbidding Christians in Syria to use encryption is, with Mr. Cameron's words, not allowing people a safe space to communicate with each other, and exposing them to ISIS. You see, in some cases, banning encryption helps terrorists.

That is not a paradox. Encryption is a tool, like a knife, a chainsaw or a Bic pen. Banning a tool has consequences, and arguing at a fallacy level with something as serious as the lives of people is deeply insulting.

We need encryption, period. Personal communications must be private, period. We can discuss the transparency/secrecy balance for governments, but that is a topic for another day.

Governments must find some other way of fighting crime than just exposing everybody naked to make it easier to pick the bad apples.

Encryption is saving lives of gays, Muslims, activists, individuals who are threatened. It is allowing Mr. Cameron to send private texts to their wife without The Sun intercepting them. It is what avoids ISIS to spy on the UK Ministry of Defence intelligence. Does he really not realize that? Is he not that bright? Is he ill-advised? Is he just a hypocrite?

Encryption is avoiding that in a massive wirelessly connected world anybody can listen to what everybody else is saying in any part of the planet. Do we allow safe spaces for people to talk to each other? I say yes, we do, and we should legislate accordingly

When it comes to privacy and accountability, people always demand the former for themselves and the latter for everyone else

—David Brin

Tags: law, internet, english

OpenBSD from a veteran Linux user perspective

26 de junio de 2015 — Carlos Fenollosa

For the first time I installed a BSD box on a machine I control. The experience has been eye-opening, especially since I consider myself an "old-school" Linux admin, and I've felt out of place with the latest changes on the system administration.

Linux is now easier to use than ever, but administration has become more difficult. There are many components, most of which are interconnected in modern ways. I'm not against progress, but I needed a bit of recycling. So instead of adapting myself to the new tools, I thought, why not look for modern tools which behave like old ones?

This article discusses some of the main differences between OpenBSD and Linux, from a Linux admin perspective.

There are some texts on the net discussing the philosophical differences between BSDs and Linux, but not many of them are really hands-on. This one is the best, and I recommend you to read it along with this one.

Since I am new to OpenBSD, I may get some things wrong. Please email me any corrections. However, my goal is to point out my first impressions, so if there are any Linux users reading and thinking about making the jump, they can know what to expect.

Final update: I've received a huge amount of feedback from this article, overwhelmingly positive, and very welcoming from the OpenBSD community.

This text's goal is to discuss an OpenBSD newbie's first impressions and, as such, I'm realizing that some parts aren't totally accurate. However, I want to keep that perspective, so in the future I'll prepare a more technical guide on how to migrate to OpenBSD for Linux users. Thanks everyone!

The "RAMDAC" running joke

First, some background about my Linux experience.

My first computer was a 386 with DOS and Windows 3.1. I had played with Spectrums, Commodores, and IBM PCs (8086). I followed the traditional Windows path: 3.1 -> 95 -> 98 -> ME -> 98 -> 2000. But I always liked computers, and the most visible part of them, besides the hardware, is the OS.

I tried to install my first Linux distro on 1999. It was a Red Hat Linux 5.2, if I remember correctly, and I got the CD from a magazine because I was still running a dial-up. I was 15 and I thought I knew computers, after all, I had assembled my own, an AMD K6-2 box, from parts.

Red Hat proved me wrong.

  • Which is your chipset?
  • Man, I don't know
  • Which is the model of your RAMDAC?
  • What is a RAMDAC?
  • I need your monitor modelines. Don't get them wrong or you will physically damage your CRT
  • Dude, I'm 15, I can't afford to break anything!

In the end I didn't break my monitor, but got a black screen which said login:, and didn't know what to do, so I booted back into Windows and played a bit of Warcraft 2.

In that age we only had one computer, so if you were installing something and needed help, you had to stop, reboot into Windows, dial up the modem, search the Usenet or forums, write down the solution on a piece of paper—no ubiquitous printers—, hope you got the commands right, reboot, start the installation over, reach the point where you previously were, and apply that solution. Not practical at all.

The best help we had were books, and those were expensive and difficult to find on a small town bookstore. For those of us not fortunate enough to buy/find books, we had hobbyist magazines. In Spain there were a few imported and poorly translated magazines which were expensive, but carried some CDs, the only practical way to get distros.

The first Linux I really was able to use was Mandrake 6.0. It had a graphical installer—not that having graphics made any real difference on the final result— but it auto detected my hardware correctly and booted into X. Yeah! Old Linux software! A game called Nethack which had nothing to do with hacking! sysconfig!

Unfortunately, I couldn't connect to the internet because of my Winmodem, so after a few days of tinkering, Mandrake was wiped too.

Months later, I got myself a BeOS CD. It was like Linux, which for me, then, meant it was not Windows. The setup ran totally effortless and it even detected my Winmodem. The internet ran faster than on Windows. It had a great internet browser, mail and newsgroups clients. Oh, boy! I used BeOS for a long time almost exclusively and only booted Windows to play some games.

A couple years later I started Computer Engineering on college, so I wiped out everything and installed Linux. I got a new machine and a real network connection.

I've run lots of Debians, Red Hats, Mandrakes, Gentoos and Slackwares. We used Solaris and even some VAXes. I ran some servers for student organizations, and finally settled on Debian as "the best" distro: stable, easy to use, no need to compile on our 486, nice hardware detection and with a big community.

Finally, I moved to Ubuntu if only because its LTS releases. Around 2006 I got into Macs, which at first seemed like a nicer Linux, and now I appreciate the hardware+software combo for which I know I won't have to fight with its drivers.

In summary, I've seen a lot of UNIX, even more Linux, and administered a good chunk of them. My servers have always run some sort of Debian.

You could say that as I grew older I also grew tired of fighting with RAMDACs, modelines and Winmodems. Each age brought new "RAMDACs": CD recording, wireless card support, laptop hibernation, webcams, divx playing, DVD playing, NTFS support...

Linux always worked in the server but had some quirks in the desktop which made it somewhat unattractive for daily use, even when I run it exclusively on my laptop.

Nowadays, Macs offer a UNIX with some peace of mind, and the current status of Linux is good enough. Some of the friends I evangelized long ago—I quit doing that—still use Ubuntu and are happy with it. Linux may never triumph on the desktop (or laptop), but it's good enough for most.

Upgrading a G4 Mac Mini

Now jump to 2015. My home server, a G4 Mac Mini, was already two Debians behind. Some packages weren't ported to powerpc. I needed to perform a clean install and upgrade the whole system either way. But this time I didn't want to use a Linux installation which wants me to reboot every 5 days because of some critical patch. I'm looking at you, Ubuntu.

As you can imagine my operating system fascination didn't fade out, only my time. I had been closely following the BSDs and using a NetBSD shell account, installed Plan 9 on a virtual machine, and even wrote a toy OS project.

I'm not afraid of compiling stuff—I do it for a living— and may even be open to modifying some code if needed. Why not try something new?

Since I had the weird powerpc requirement, I ruled out most operating systems. Finally I decided to play relatively safe and go for a BSD. FreeBSD is the most popular, has more online HOWTOs, and probably more features (ZFS, Jails), though I probably would not be using them. OpenBSD is more hackable, seems to have better documentation, and some cool people I know use it. I didn't want to quit using a pot to start using a kettle, so I downloaded OpenBSD's install57.iso

It was impossible to boot the Mini with a USB stick; I'm unsure if it's the firmware's fault or the fact that I was dd'ing the .iso file into the USB instead of the .fs one which doesn't seem to be available for macppc.

I found some blank DVDs on a closet, borrowed a computer with a DVD drive—another medium I hadn't touched in years—, and burned the ISO image. The fact that I recorded the first disk with the ISO file on the root folder instead of properly burning the contents into the DVD warned me that this was going to be hard, but fun...

Surprisingly, the installation was straightforward, it detected the 10-yr-old hardware, and by following the instructions I managed to partition the disks and install the boot loader. The box was up and running.

Well, that wasn't so hard, was it? Now, to restore my old installation.

Hm, first of all, bash needs to be installed from packages and goes into /usr/local/bin, so I had to modify a lot of scripts which pointed to #!/usr/bin/env bash. The ps and tar commands have slightly different switches which broke other scripts. The base services are different; OpenBSD includes its own HTTP, SMTP and NTP servers. Configuration files are in different places. Here goes my week...

GNU is really not UNIX

A quick note on the GNU/Linux naming discussion, since GNU is entering the equation now. I use the term "Linux" for simplicity. I know that's the kernel name. It also happens to be the popular name, even if not totally correct—according to some.

Here is some food for thought; why does the FSF deserve more credit on the name than, say, the Apache Foundation, or the FreeDesktop project, or BSD, for that matter? Why don't we include every key component on the name and call it GNU/FreeDesktop/Apache/OSI/BSD/.../Linux? Including only GNU would be unfair to other big contributors, wouldn't it? So let's please stop this fight.

That being said, the GNU tools and design philosophy make a noticeable difference in administration and userspace, and one can only appreciate it when switching to a different environment.

I don't want to overstate it, though. Thanks to POSIX, a Linux admin can run BSD with little extra effort, since most of the things are similar. There are, in fact, more similarities than differences. If FreeBSD and OpenBSD are brothers, then Linux is a close cousin.

ls is always ls. mkdir is mkdir. But when you're being used to /dev/hda, free -m and cat /proc/cpuinfo you realize that having a different kernel is naturally going to change some of the administration tools.

Some say that the GNU tools are bloated and that the BSD toolchain is more "pure UNIX". The reality is that it depends on the specific GNU tool, I've personally found that GNU tools are more complex because they're more powerful, though they are less UNIX-like (do one thing only and do it well) and more like complete solutions. That's fine; different, but fine. After all, GNU is not Unix!

In recent years, the Linux environment has grown in the GNU toolchain fashion, not the UNIX fashion. One may even say it has grown in the Windows fashion: be practical, be accommodating to all, be fast, be modern.

There have always been debates about "bloated and complex code". More recently, systemd. Previously, Apache, sysconfig, iptables/iptools.... The list goes on and on. Wheel out comp.os.linux and look at the flame wars.

No software fits all nor should be shamed for its design decisions. In the end, with a few critical exceptions like OpenSSL and the Heartbleed bug, it is just a matter of taste: does the admin prefer simple, pluggable services, or bit monolithic suites? Compatibility or modernness? Familiarity or shiny new things? Standards or NIH?

I had been riding the Linux wave for years, until I recently realized that my admin skills needed a total recycling. In a few years we've gone from /etc/init.d/sshd restart to service sshd restart to systemctl start sshd. That's a bit fast in my opinion, but I understand it's the price of progress, aimed to make computers boot faster and theoretically easier to administer for newcomers. Old admins, on the other hand, have a harder time adapting.

Having to choose between recycling into an always changing Linux or a more stable UNIX environment, I chose OpenBSD. Given my history of trying all possible OSs, Let me state again that I'm not against the recent Linux direction. I just wanted to go out and see if there is a different way to do things.

Differences between OpenBSD and Linux

Maybe you're reading this article for its practical value and not for my ramblings, sorry. I thought I had to provide some context. I'm used to googling, I'm used to RTFMing, I'm used to reading source code to learn what software does. This context is important to judge if you would notice the same differences as I did.

Here's a list of things that surprised me the most after completing an OpenBSD install, adapting my old setup to the new environment and running it for a few days.

Simplicity

First of all, everything is much simpler, like the Linux old days. Not necessarily easier, but simpler. More minimalistic. I found this plays well with my mind. OpenBSD follows the UNIX philosophy more closely: lots of small components that do one thing and talk between them by passing text.

Because of that, some base components are not as feature-rich, on purpose. Since 99% of the servers don't need the flexibility of Apache, OpenBSD's httpd will work fine, be more secure, and probably faster. For those who need the big boys, just install Apache from the packages.

Having a developer-chosen default option for many servers is a time saver. The admin knows it will be well supported and documented, and tightly integrated with other components. The alternative, the Linux way, is to just use what everybody else uses (Apache), or choose one of the multiple options, always wondering if it's the right one—nginx? lighttpd? thttpd? You know what... nobody got ever fired for choosing Apache

Design decisions

Picking up on that thought, the system is very opinionated. When the community decides that some module sucks, they develop a new one from scratch. OpenBSD has its own NTPd, SMTPd and, more recently, HTTPd. They work great.

Likewise, the standard shell is pdksh. The OpenBSD FAQ states that "Users familiar with bash are encouraged to try ksh(1) before loading bash on their system -- it does what most people desire of bash.", which is a bit too bold. ksh does not support history substitution (sudo !!:1) which I use a lot, though I agree that for many users it will be enough. Many people hate bash for a reason, I am not one of them. Having a super powerful shell has saved me from writing perl scripts for system administration. Bash can always be installed from packages, anyway.

This is a big difference from Linux, which is more like a "consensus" operating system. Developers have to keep compatibility and whenever there is a controversial design decision like systemd, dozens of projects decide to fork. Not good.

Strong opinions, on the other hand also lead to less support for some, like ext4, ZFS or Linux binary compatibility. For example, ext4 is officially supported read-only but in my case it didn't read some folders properly. FreeBSD plays better on that regard, though they also have more developer manpower. This leads to some use cases, like an OpenBSD desktop, being possible but not the best choice for this OS.

Finally, other decisions make little sense. According to disklabel(8), the /usr partition takes about 2G of disk space, not including /usr/src or /usr/obj. This means that there is little space to hold what is essentially the whole system plus ports. I had trouble compiling large ports since /usr ran out of disk space. If a large number of users will be compiling some ports, why not set a larger /usr by default?

Documentation

The man pages are excellent, a delight. Unlike Linux, they are not just a list of switches for the software, but a comprehensive guide to the tool, with lots of examples. They are much, much better—thankfully, because unlike Linux, again, there are not tons of help on public forums.

OpenBSD's man pages are so nice that RTFMing somebody on the internet is not condescending but selfless.

Granted, I wouldn't make a UNIX novice run OpenBSD from man pages, but for an experienced admin, they contain exactly the information they need.

Small differences in common tools

Using the BSD toolchain instead the GNU one means there are small differences between tools. For example, some ps switches are missing, like the useful -f. The tar options for reading from stdin are also slightly different. When ls is run by root, it automatically appends all hidden files.

df has -h (human) and -k (kilobytes), but no -m for megabytes.

If you've used MacOS you probably know a few of these.

Packages

OpenBSD has packages, like Linux. Unlike it, packages are only available for 3rd party software, not the base system.

OpenBSD's base system is more or less what gets installed from the CDs: kernel, shell, coreutils, a small part of X and essential servers (http, ntp, smtp, etc.) Everything else must be installed from packages.

The documentation recommends using packages, since it is not worth it to compile from ports—the package sources. However, packages don't get security updates. The only way to patch bugs is to compile the ports.

Fortunately, there is a simple way to use the best of both worlds: add FETCH_PACKAGES=yes to /etc/mk.conf and install software from ports. The system will automatically fetch the package and save the compilation time if there is a current binary available.

Another interesting tool is /usr/ports/infrastructure/bin/out-of-date, which checks which ports need an update, so you can go to /usr/ports/<portname> and make update. This command plays well with previously installed packages, so you don't have to worry deleting them first.

In summary, after you install the release, if you're interested in getting security updates until next release, the officially recommended path is to follow -stable, use FETCH_PACKAGES and work from ports. This is not very clear in the documentation but the folks at #openbsd helped me figure it out.

As a colophon, if you're using x86 or amd64, m:tier provides binary updates for the base system and packages, much like Linux does. Otherwise, if there is any bug in the base system you'll need to recompile that part yourself. The amount of compiling needed will be determined by the patched component and any related software, so just read the instructions on the patch.

Configuration files

The base system config files are properly centralized in /etc, but not the ports. The porting quality is excellent, better than any Linux distro. Every port is adapted to the OpenBSD system and made sure it behaves correctly. However, some maintainers decide that all the port files need to be contained in some folder, like transmission-daemon, which stores its config into /var/transmission/.config/transmission-daemon/settings.json. It's a bit crazy to store a system-wide daemon config file into /var which, according to man hier, contains Multi-purpose log, temporary, transient, and spool files.

Apparently some daemons are chrooted by default, and there is a global "catch-all" README folder on /usr/local/share/doc/pkg-readmes which contains specific info about packages. transmission-daemon had no related info, so maybe I'll contact the maintainer.

Chroot

Speaking of roots, nearly all daemons in the base system are chrooted and privstep by default. The base system has a lot of hardening by default, which is one of the main reasons why OpenBSD has almost no remote holes on the default installation.

Since chrooting software in Linux can be cumbersome, it's very convenient to get it done for you, so thanks!

Experienced community

I feel like the learning curve is a feature, not a bug, intended to keep newcomers away. OpenBSD is unapologetically elitist. Honestly, I don't mind that. I've been administering systems for more than a decade and not all environments are for everybody.

OpenBSD can afford to be elitist because it is a small system, with a clear direction, the documentation is crystal clear, and it doesn't make vague promises.

make build

As you can see there is a big con to using OpenBSD coming from a Linux world, the process for patching security issues. On Linux I was used to run a single command and let any part of the system (base or 3rd party) update itself. With OpenBSD, it takes a lot more effort and time, especially in my old machine.

This process leaves the admin only one realistic option: follow the -stable branch, which is basically the same code as the CD release with small patches, and recompile stuff regularly. Otherwise, the installed system will be exposed to potential security holes until the next release.

I feel that this needs to be more prominent in the OpenBSD docs, especially on the Migrating to OpenBSD section: if you want an updated and stable system you'll need to recompile stuff constantly, there is no equivalent to apt-get upgrade.

To get a secure production system with OpenBSD, the officially recommended path is to:

  1. Install the CD release
  2. Download the source code
  3. Recompile the kernel (recommended by "following -stable")
  4. Recompile userland
  5. Download ports tree
  6. Add FETCH_PACKAGES=yes to /etc/mk.conf to let ports fetch packages, if available, and install software using the ports syntax.
  7. Recompile when there is a security issue which affects your setup, though you may skip some compiling if using m:tier.

Of course, this is a feature, not a bug, but it's the biggest admin change from old Linux users. That's a lot of effort compared to apt-get update && apt-get upgrade. Honestly, had I known it, I would've more strongly considered keeping my Debian installation. I read all the online documentation before installing OpenBSD, and I felt like this point wasn't really clear.

Since you can safely use -stable ports/packages with a -release base system, steps 3-4 can be avoided or shortened if you don't want to update your base to -stable. That's what I would recommend to former Linux users, but take this newbie's advice with a grain of salt.

In any case, for low-performing machines like mine, maybe the "recommended" path to follow -stable and rebuild the source for every errata is not the best one. For small fixes it may be better to just apply the patch and follow its instructions. Apparently in faster machines it's just more convenient to recompile the base system since it takes just a few minutes. Had I been using x86 or amd64, I'd have totally gone for m:tier, so you can dismiss this section if that's your case.

To be totally fair, it's rare for OpenBSD to have remote holes on the CD release, so one could be relatively safe by only upgrading from release to release. But the truth is that there is no simple way to binary patch for critical updates unless using the third-party m:tier on one of the supported architectures.

With that it mind, to summarize, there are the following options:

  • Use a -release base and -stable ports (with FETCH_PACKAGES=YES), cherry-picking patches from base and updating ports by make update. This may be the recommended path for low-performing machines
  • Use a -stable base, too. You can then update the whole system with a handful of commands and won't need to follow patch instructions
  • Use -release and update from m:tier
  • Keep using -release until a next -release comes, unless there is an unlikely remote hole that forces you to recompile the base. This may be the best option for newbies if the only person using the box is the admin, so there is no way to suffer local attacks.

Update: OpenBSD now supports binary updates for security, like apt-get upgrade. Check out the announcement and the official documentation which has been updated to reflect this much easier process: just run pkg_add -u

Conclusion

From a user perspective all of this is transparent; OpenBSD has a UNIX terminal or Xwindows session and everything works as expected. But a Linux admin will need to adapt to these new tools and allocate some more time for administration.

OpenBSD has pros and cons. Personally, my main pros are the excellent documentation, its minimalism and the choice of default daemons. The only con is the need to recompile to patch errata. If I had just one wish for OpenBSD, it would be a more straightforward updating system for security errata.

Now, the dreaded question. Is it worth it?

Honestly, I wasted too much time. Some of it was to be expected, since I needed to learn a different environment. Had I been 10 years younger, this wouldn't have been a problem, but my time is more limited now. The fact that I needed to compile things on an old machine probably didn't help. Keep that in mind when considering a BSD for an old, weird architecture.

After the initial investment, I want to see if maintenance is easier and release upgrades are smoother than with Debian. Manually upgrading things is a pain in the neck, but all other factors lead me to think that OpenBSD is a great server OS.

Maybe I was expecting something else from the docs I read? It is probably my fault, though. Anyway, I want to contribute to the available documentation by writing this document so that other Linux admins can make a more informed decision.

On the other hand, my geeky side is content. OpenBSD rocks. It is a different—a real—UNIX and I've really come to appreciate simple code and software. As an admin, having minimalistic, default servers is a blessing.

Again, should you try OpenBSD? The answer is yes, though be careful if you're either in a rush or have specific software requirements. The first days are a bit hard, and recompiling on a slow machine takes time.

If you like UNIX, it will open your eyes to the fact that there is more than one way to do things, and that system administration can still be simple while modern.

Revised with contributions from TJ and Mike. Thanks!

Tags: software, openbsd, english

The best programming font

16 de junio de 2015 — Carlos Fenollosa

Us programmers like to customize our programming environment to the maximum. If arguing about text editors and customizing your .bashrc weren't enough, we also modify a 20 year old Apple Extended II keyboard to change its keyswitch tone, remap our keyboard layout to redefine the CapsLock key, and of course decide on which programming language to use for our projects.

For those who really like customization, however, there are more aspects to it. One of those is, of course, the programming font choice. Leaving aside the fact that unless you're using a monospaced font you're a monster, some people like the classics, like Courier (New), others use the default ones, and some of us really like the retro visuals and opt for one of the nostalgic typefaces.

My favorite one is DOS/EGA, by Mateusz Viste. Just make sure that your text editor supports rendering typefaces without anti aliasing and that you don't need many non-ASCII characters. Most are implemented but some editors screw either the line size or the kerning and make text look very ugly.

There are other versions of the same font, but Mateusz's is the best one and has the least annoyances.

I don't use it everywhere because of rendering problems with some IDEs, but OSX's terminal seems to handle them well, and it plays perfectly with a black background. Truly retro but, I think, an excellent programming font.

DOS/EGA in action

Tags: programming, retro, english

Filter tweets in Safari

14 de mayo de 2015 — Carlos Fenollosa

I've been looking for a Safari extension which filters tweets by keywords for some time. Most were abandoned and none of whem worked with the current Twitter layout, so I decided to learn how to code Safari extensions and see if I could code one.

Writing a Safari extension is simple since Apple provides an Extension Builder within Safari and there is a nice tutorial on Macworld which helped me quite a bit. Apple's documentation is good too.

I had to spend about 90% of the time wondering how to retrieve the settings from the extension, which requires a convoluted process involving message passing between two Javascript classes, but in the end it seems to work.

It is election time in Spain, so get the extension from Github and get rid of those pesky political tweets without needing to unfollow anyone!

Tags: software, english

In an alternate universe: the Amiga Watch

13 de abril de 2015 — Carlos Fenollosa

Jimmy Maher, a digital antiquarian, is writing a series of posts on the history of the Amiga (1, 2, 3) that made me consider how history is written almost by chance, by small wins or small mistakes. A slightly different managerial or technical decision may have caused Apple to disappear, Amiga to succeed, and the best current smartphone could have been a Nokia phone with a physical keyboard, or maybe the best smartwatch may run BeOS.

I encourage you to invest some time reading Maher's blog and, if you're interested in Apple history, check out folklore.org, a recollection of the early Apple days mostly by Andy Herzfeld.

Tags: retro, english

Making podcasts mainstream

6 de marzo de 2015 — Carlos Fenollosa

There is no better companion for a long trip than a podcast. Familiar voices talking about familiar topics, listened on demand. Definitely better than turning the radio on and following some random program that's scheduled for that day at that time.

I've been podcasting since 2005 and my numbers have always been modest. I know I'm not that good, it's my hobby and it makes me happy. However, I've always wondered why people are turning away from the audio format, since it was so popular during the radio days. Maybe there was nothing better back then? Given the choice, nowadays the audience will prefer images, text and video over audio.

Now, I'd like to test the viability of podcasting as a format.

A game of numbers

In the US there are some shows which are more popular than ever, and even mid-range podcasters can produce with regularity and getting a fair number of sponsors. On the other hand, in Spain, I'd say 80% of the population doesn't know what a podcast is. They've never even heard the word.

For most of us, our audience is a niche. That usually means it's less abundant but more committed. Listeners are more vocal, participative, and opinionated than a general audience. They're sincere and give honest feedback. However, there is an audience ceiling for podcasters; depending on the topic, your download peak may never surpass 10k-50k hits.

There is still something that has yet not been tried here, to start a podcast with a radio superstar. In the US most senior podcasters are ex-radio hosts. Maybe if a popular host can publicly quit and announce that they'll start their own show, that could attract some audience to the format.

We find ourselves with a textbook "chicken or egg" problem. How can professionals jump to solo podcasting if it is impossible to earn a living? They can't quit their day job and work 9-5 preparing a show, either daily or weekly. There is just not enough money in the equation.

In my opinion, it is not really a technical issue. The days of needing to explain what a RSS is are long gone, thanks to iTunes, podcast apps and embedded audio players. I know a lot of non-tech people who listen to radio shows on the internet; that's what podcasting is for them. Off-schedule radio listening, plus some really bad amateurs. They are probably not wrong.

We won't know until some professional host tries to close the gap and see if audience trickles down to us amateurs. But who will be the first? Who will open the can of worms, um, sponsors, for them to see that podcasting is an acceptable medium to advertise on?

I started podcasting when I was 20 and it was—still is—a hobby. But my time is now more valuable, and while it's ok for hobbies to cost money, it is difficult to justify the hours it would take to emulate a professional effort and polished product. Simply put, if a podcaster can't earn a few hundreds of bucks a month to contribute to their regular income, it will never become more than a hobby.

Interactivity

I was mentioning before that niche audiences tend to be more cooperative. They give valuable feedback and fill the comment forms on our web pages.

Well, at least until the age of social media. Now everything has changed.

It used to be that you had a podcast, published it on your blog/website, and people left some comments. Now the tables have turned; the audience wants to leave the same comments, only on their own website. Which, for the overwhelming majority, is Twitter.

It makes some sense. People apparently prefer a crippled comment system, which not only has a character limit, but also makes it impossible to follow multiple branches of a debate. In reality, that system allows them to treasure all of the user opinions on a single place, which is their Twitter profile, akin to a personal website.

We—notice the first person plural—love the idea that someone else may browse our Twitter profile to learn our cool interests and read our witty criticisms of other people's work. That just doesn't happen, however.

Another interesting feature is that every time one at-mentions an author, they get notified and get to see your face on a profile picture and maybe drop a quick 'thanks', creating a feeling of self-importance. In blogs, you never know if your comment is even read.

That sounded a bit sarcastic but it's why Twitter has hundreds of millions of users; they are hoping for a retweet from their idols, big or small.

Here's my business card: Name, email, Twitter. Email is too serious, send me a tweet. So we do that, and Twitter has become a global identity. Not Facebook, not about.me, not OpenID, not Google Plus. Our Twitter handle is our online persona, we use it to network with strangers, so we want to use it as much as possible.

I really see the rationale behind it. It's literally our internet username. There is no other website since the dawn of the internet that has managed to be used as a global identification system, and many have tried really hard.

And, like that, Twitter killed the blog comments.

So, what now? Well, now we adapt to this new situation, simple as that. On the positive side, it has increased comment quantity, even if at the huge expense of quality. And, in a world where a podcast debating politics only used to get 0.1% of its audience to comment, that may be a good thing.

Discoverability

You know what else Twitter is killing? Organic search and directories. Content discovery is now done via social media, and that definitely is a good thing. An audience of 10 committed listeners who are referred by a friend who knows their taste is worth 1000 random visits from Google. Those 1000 visits will never even listen to a minute of your audio. They'll think, "bah, it's not text/video" and close the browser tab.

Generalizing, there are two kinds of audio listeners, the ones who have a podcast app with their favorite shows and have integrated podcast listening into their daily workflows, like running or commuting, and the rest. That majority are casual listeners, who aren't used to consume content in an audio format. It's not that they don't have the time; some people will block half their morning to watch a Minecraft show on Youtube, but won't listen to a 40-minute podcast on their way to school.

Unless?

Well, unless they really like it. There's no trick here, people only do stuff that either makes them feel good, or they get paid for.

How to get people to quickly check out our 90-minute podcast? They can't just skim audio as if it were text.

Here's where micro podcasts may help. A micro podcast could be defined as an audio file with the following characteristics:

  • Self contained, i.e. not an excerpt or a slice of a full show
  • No longer than 5-7 minutes
  • Has the same quality of a full show, including audio production and contents

My theory is that there is excellent podcast content, but unlike text and video, it is very difficult for a potential listener to decide if they are going to like it. Thus, they don't make the investment of listening to a couple long episodes to make that decision.

I'm currently experimenting with a podcast-in-a-tweet. It's like a regular micro podcast, but the main distribution channel is Twitter. The audio is actually hosted somewhere, but my marketing strategy is 100% focused on Twitter.

That's ideal because it appears in front of the audience exactly at a point when they are predisposed to consume content, since they are in fact browsing Twitter. Furthermore, they don't need to leave the page or perform another action, like subscribing or downloading a file.

Click and listen. Since the episode is very short, the user is still there, in front of a text box, when the show finishes. That directly invites the audience to participate and share while they are still inclined to do so, as opposed to long podcasts which are consumed in a scenario where the listener is unable to interact, like driving or jogging.

Us podcasters may succeed if we can lure the general audience into becoming sporadic audio consumers. Then we should fight to make them regular podcast listeners, but not before. We have to get the format out of the way, at least initially, and push our best content as digestible pills.

******

I don't know if that will work, it's a wild bet. Right now, since I just started, most of my audience still listens from a podcast app. I guess that old habits die hard, and a person who consumes many shows has little incentive to change their workflow. For them, the micropodcast is in the same category as a regular one, and treat is as such.

Let's try to reach out of our regular audience, the ones who don't have a podcast app. In a few months from now, and thanks to Twitter's new analytics, I'd love to see that the number of casual listeners surpasses the number of subscribers. My goal is not that they end up subscribing to the show, but rather to see a huge spike of social-driven listeners when a brilliant episode is produced, similar to what happens when awesome content is published in other formats.

If you are a podcaster or a listener, I'd love to hear your opinion. I really want to see people who never cared for audio listening to micro podcasts. That'd be an enormous achievement.

If you understand Spanish, you can follow my podcasts at 5 minutos con Carlos Fenollosa and Dame la voz, and recall episodes of the now defunct El Amuleto de Yendor.

Tags: internet, podcasting, english

Back to hardware, next step: Pi-Top

29 de enero de 2015 — Carlos Fenollosa

One of the things I always regretted from college is that our hardware hands-on experience was pretty meager. We designed a lot of digital circuits but never got to build one, not even on a breadboard.

A great perk of taking a sabbatical year is that you can learn whatever the hell you want. Like, for example, complementing your college degree with those topics you used to love but couldn't experiment with enough. Money + free time + engineering curiosity = win.

I used to build computers from components long ago, but that was too much of a hassle, plus you had to keep up to date with new technologies which essentialy made everything incompatible with last years'. So it may not be the best of the ideas to go back to that.

I found an interesting crowdfunding campaign: Pi-Top, a laptop you build yourself. It's basically a bit of electronics + 3D printing + the power of a Raspberry Pi + some robotic modules (HATs). An excellent way to dive into electronics without hurting oneself too much.

The 2010s are every engineer's dream. Hardware is cheap and nicely packaged into higher level components, there are plenty of sensors, wireless is everywhere, batteries can last forever on low-power chips, and there is plenty of documentation on the Internet. In a couple years, 3D printers will be cheap enough to buy one for home; meanwhile, there are 3D printing hubs that you can reach to print any design.

It's a fantastic time to buy breadboard, some chips, and build simple circuits, like a clock, some light control with sensors, wireless remotes, etc. And those can finally have real life applications. Just a few years ago, without ubiquitous wireless, homemade circuits were just a novelty. Nowadays you can build yourself a sweet home automation system for a few bucks if you know how.

I can't wait for my Pi-Top to arrive.

Tags: hardware, english

Craftsmanship

10 de enero de 2015 — Carlos Fenollosa

As an engineer, I enjoy fixing things, disassembling gear and learning how it works. I'm sure many of you opened watches, pens or other small electronics as a child, only to find that there is "that extra piece" after reassembling them.

My grandfather was an artisan, and I still have some of his pieces. They are sensational and reflect not only the image he was trying to create, but also his general mood, recognizable by observing the strokes, edges and paths that the gouges followed. That's why I prefer looking at an artist's collection rather than a compilation, it's easy and shocking how they—and their environment—evolve over time by looking at their works.

For me, however, fixing a Game Boy does not resemble creating a beautiful sculpture from a piece of wood. Basically, I've never had the manual ability nor the tools to build real-world things from scratch, and that's a skill I envy. Fixing or improving existing things à la McGyver is one thing, but producing something from scratch is an entirely different expertise. That's why I love looking at other people's projects at the DIY subreddit.

But, in some way, programmers are DIY masters, especially for small weekend projects meant to scratch an itch. In the zeros and ones world, crafting can mean writing a script to automatically parse gmail for youtube links you send to yourself from your cell phone, downloading them in the background, converting them to mp4 and saving them into iTunes, so that they automatically get pushed to your iPad and are ready to watch when at home.

Not only the result may be notable, it also carries a little bit of yourself in the code. Which language did you use? Did you feel lazy and wrote it in Bash, or wanted it to be robust and wrote some Python? Is it all on a single function or split into modules? How did you name the variables? Are there comments and documentation or is it a quick hack?

Comparing code to other art forms is a cliché, granted. But when I look at my /usr/local/bin/ folder, I don't only see some scripts, I also see my own evolution regarding programming languages, project ideas, organization, skill, and why not, my attitude.

Ah! I see that around 2011 I stopped using backticks in Bash scripts and replaced them with command substitution. Then in 2012 Python scripts start replacing Bash. Around that time I learned Git, because I can see a lot of helper scripts there. I guess I didn't like it back then since I see a lot of "wtf" comments.

There are some unfinished projects. I know because the files aren't executable. Upon opening them, yes, the code is only half written. Will I pick them up someday? I really don't know, but I love remembering that three years ago I was working on an audio synchronization project. I had completely forgotten.

A programmer won't likely get his code displayed at an art gallery, it probably wouldn't even make sense except for a few other programmers. But observing the evolution of your work is a good self-reflection exercise. Reading other people's code is probably a must, but reading your own, even if it makes you cringe a bit—God, was I really using Hungarian notation?— will let you see how far you've come. It's like looking at that famous Microsoft staff in 1978 picture. A bit shameful, but necessary to let us all remember that even Bill Gates worked his way up from the bottom.

Take some time to look at your crafts from some years ago, and take pride in them. They may not be a beautiful table or lamp, but they treasure a little bit of yourself from the past.

Tags: art, programming, english

Startup school

5 de diciembre de 2014 — Carlos Fenollosa

The amazing How to start a startup class just finished today.

How fortunate we are to live in a world where the most successful minds of our time can teach the whole planet through the Internet, and decide to allow that possibility.

Open education isn't just a fad, it's been a fight for a long time, and now it's starting to root strongly. Thanks to all who have joined on this fight, the world is becoming a better place.

If you're interested in education as a source of progress, don't miss the XPRIZE episode of the Tim Ferriss podcast, definitely my favorite podcast now

Tags: learning, startups, english

You are not late

12 de octubre de 2014 — Carlos Fenollosa

Can you imagine how awesome it would have been to be an entrepreneur in 1985 when almost any dot com name you wanted was available? All words; short ones, cool ones. All you had to do was ask for the one you wanted

[...]

But, but... here is the thing. In terms of the internet, nothing has happened yet. The internet is still at the beginning of its beginning. If we could climb into a time machine and journey 30 years into the future, and from that vantage look back to today, we'd realize that most of the greatest products running the lives of citizens in 2044 were not invented until after 2014

You are not late

Tags: internet, english

You only do it when nobody else will do it

3 de octubre de 2014 — Carlos Fenollosa

Maybe the difference between a junior and a senior programmer is that the first will sometimes say "I don't know how to do this", while the second will always say "Give me a week".

When you finish college with a computer engineering degree, everything seems possible. You just learned how to design a computer from the zeros and ones up to the applications. From logic gates up to a CPU, from TCP to HTTP, from assembler to Java.

Then, time passes, you get a regular job, and regardless of its awesomeness you start forgetting stuff. Furthermore, you discover super smart people who are light years ahead of you, and for some reason, your mind thinks of them as superheroes, almost magical creatures who can write an ultrafast x86 emulator or make a disk drive play the Imperial March

Don't get me wrong, these are amazing feats. But psychologically you start to feel dumber and dumber up to the point where you believe that the only thing you can aspire to is write webpages and some normal stuff. Even if you have great skills and do a great job at a great company, it's difficult not to feel just a tiny peg of the machine.

I didn't know how to do anything else, and I thought I'd fail if I tried. In college, I suffered a lot with some courses, and to date I still don't know how I passed. But the truth is that college is very dense, and without all the stress from exams and projects, and thanks to age and experience, things actually get easier to learn.

That's why side projects are important.

Three years ago I launched my first successful project to the Internet, bashblog. It's no big deal, but it's a commitment. People use it, contribute patches, discuss ideas, and I have the responsibility to make it work.

Then I started learning things that have always tickled my curiosity. It started with functional programming, one of the academic topics which has been discussed since the 60s but never took off. Then I did more courses on astrophysics and statistics.

This year I left my job to take a sabbatical and start new projects. In some countries it's normal to take a sabbatical before starting college to travel and learn. But almost nobody thinks about a sabbatical when you're 30. You can choose a wrong career path when you're 18 and fix it, but the 30s are critical and one needs to be really sure that they want to spend the rest of their life doing what they love.

I have recently found, don't know how to put it, some change of mind, new strength, inspiration. I want to learn how to write an OS. I started writing mobile apps. I want to launch a product. I'm contributing to an industrial patent to do really cool stuff with cellphones.

As usual, every of these projects hides many challenges. I've had to read RFCs, learn how to extract voice patterns from an audio file, write device drivers, deal with lawyers and read formal documents 1

We live in the information age. There are plenty of resources, some of those University-grade, to learn new skills. Discipline and planning can go a long way. There is no excuse.

Github and other websites have also made it effortless to collaborate with total strangers. It really makes me happy and proud to see other people commenting on things I've done. Years ago you had to go to a computer hobbyist meeting to show your work, now you can do it online... and others will improve it.

Stack Overflow will provide code samples and guidance. I've now started hearing undergrads utter "Did you really code programs without Stack Overflow?" in the same way that I used to say "Did you code programs without the internet?" to people who had to read manuals and go to a library.

Hacker News and Reddit can guide you on what's cool nowadays. Live in the future, then build what's missing.

I guess that it's comfortable to dismiss some ideas just because "we don't know how to do it". And that's a waste of our university degrees. We have some responsibility to do cool stuff. If we don't build it, who will? If we can build it, why wait? If you don't have the skills, learn them. Just Google it. Work on it for a week, and you will succeed.

Do you miss the adrenaline rush that you used to get when you first discovered something? The "oooh" and the "aaah"? Learn something new, something radical, something cool and futuristic. Start a project, and release it. It doesn't need to be complete.

The greatest force that pushes us to build things is the knowledge that nobody else will build them for us.

~~~~~

[1] One of the multiple things that managers usually do and engineers don't appreciate enough

Tags: programming, life, english

Creating an OS from scratch

29 de septiembre de 2014 — Carlos Fenollosa

I am a Computer Engineer major, so I took some classes in college on how to build operating systems. For many reasons, I don't remember most of it, but it is a world which has always excited me.

There has been a recent post on HN which points to a very simple and detailed tutorial on how to write an OS from scratch and it has really inspired me, so I decided to create a Github repo to publish the code at the same pace that I learn to write it.

It is not for everyone; rather, for CS/CE majors who were overwhelmed by college but always were curious about what happens from the moment you turn on your machine up until when an application loads.

I split each "lesson" into one-concept increments, so it can be easy to follow for people like me who don't have a lot of time and brain power to learn at a University pace. This is a work in progress, again, I publish code while I learn and extract it from the original document and other internet resources, so expect it to be updated regularly!

Tags: software, hardware, english

Hey NSA, as you sow, so shall you reap

25 de septiembre de 2014 — Carlos Fenollosa

It looks like the new "encrypted by default" policy on smartphones is freaking out law enforcement agencies. Honestly, what were they expecting? They have been abusing laws and courts for so long that we are starting to take measures to let private companies protect us from our governments. How twisted is that, huh?

"When I see a police officer now, instead of protected, I feel threatened." That's a bit demagogic but bears some truth. People seem to have interiorized that concept and we now prefer to have some privacy, regardless of what police think. Yes, we are so busy caring for our safety that we don't give a crap if that interferes with the FBI —probably necessary— counterterrorism work.

But wait, is that true? I mean, isn't that reasoning a bit flawed? Are people stupid or careless?

When you think about it for a minute, there is a crucial point. Who is more likely to have resources to circumvent police investigations? Of course, professional criminals. That's why you can't make a backup of your DVDs, but pirates can. Professionals always find a way, it's regular citizens who have no means to protect themselves.

This is a comic I made in 2005 (click to zoom).

It says, "The EU wants to keep a record of phone calls, SMS and emails as a security measure against terrorism." Then, an Al-Qaeda terrorist who's planning to bomb the twin towers starts using carrier pigeons. Both his phone and computer are wired to the CIA, but that's of no use now.

As time told, they passed that law, and now everyone's communications are under police eyes. It's ironic, but nowadays the communications protocol which is the most protected by law is... postal mail.

In the end, it is a false sense of security. We have to give our laptop password to a random guy on an airport and let him check our email and pictures while real terrorists have a decoy encrypted partition. They can manage all the hassle, we can't, so they win.

Or better, they will carry paper documents in a briefcase. Expect next decades' spy films to stop portraying criminals as cyberpunk hackers and go back to the 50's analogic look. In the age of Apple Watches, nobody will suspect that a Casio watch hides a microfilm with the schematics for a bomb.

Tags: internet, law, english

Request for startups

14 de septiembre de 2014 — Carlos Fenollosa

Y Combinator have posted a request for startups, where they give founders-to-be some big ideas to work on.

It is interesting to see how things have shifted since just two years ago, when pg posted his "Frighteningly Ambitious Startup Ideas". In just 24 months, we have shifted from internet applications into real life-changing ideas. Biotech has resurrected after its own bubble blew up around 2008. Human augmentation seems to be more than a gimmick now. Fitness is increasingly important for a number of people.

Those ideas seem out of reach for first founders, but after some business success and gathering a bit of experience, momentum and capital, they look like dream jobs. Who wouldn't like to disrupt Hollywood? Transportation? Travel?

What's better, these ideas look feasible with each passing day. Open APIs, Github and the second coming of free software, cheap hardware everywhere, drones. We have spent about 20 years, since around 1995, building great ideas and infrastructure. It seems the right time to connect the dots and do awesome stuff.

Stop for a second and think about it. We really are living in the future.

Tags: startups, english

Allowing strangers 24/7 access to you

2 de septiembre de 2014 — Carlos Fenollosa

Marco posted about some internet drama and I found the second part of the post quite enlightening.

We allow people access to us 24/7. We're always in public, constantly checking an anonymous comment box, trying to explain ourselves to everyone, and trying to win unwinnable arguments with strangers who don’t matter in our lives at all.

That is exactly spot on, and that is why I always recommend disabling all notifications on your phone except for a few important people on Whatsapp. Otherwise, any random person on the internet can ruin your day at any time with an offensive comment on any public website.

Tags: internet, life, english

Email Is Still the Best Thing on the Internet

15 de agosto de 2014 — Carlos Fenollosa

Nice piece by Alexis C. Madrigal on why the email will live long and strong for many years to come. Furthermore, I agree with thim that all these startups trying to replace it with some other proprietary protocol are pretty much doomed.

IM didn't kill the email and it has been around since the nineties; phone messengers have taken some of its market quota and use cases, but THE messaging protocol is still email.

Who knows, maybe in five years I have to eat my words. Meanwhile, I'm positive that it was a good choice of a protocol for feenbox

Tags: feenbox, internet, english

Spanish media just shot themselves in the foot -- or maybe in the head

24 de julio de 2014 — Carlos Fenollosa

In Spain we have an old proverb, La avaricia rompe el saco. Literally "greed bursts the sack"; it means that if you fill a purse with too many coins it will break and you will end up with none.

~~~~~~

This week, the Spanish Congress passed a law with two main goals:

  • Ban torrenting sites, i.e. that is link-only sites (not content hosts), which is a totally different topic.
  • Make social aggregators pay media publishers for the use of news excerpts.

More details can be found on this Gizmodo article

If this weren't so serious I'd say that news lobbies pressing against the right to quote, you know, the one their business is based on, is ironic.

But this is so outrageously hypocritical that it's not ironic, it's immoral and vomitive. Disgusting. Greedy to the extreme. This is a capital crime against ethics.

So why did they just do that?

~~~~~~

Last year, Google was forced to pay French publishers for use of their content. Spanish publisher lobby AEDE (lack of link intended) saw here a huge opportunity: let's do the same and get free money from Google.

Google is so big that's it's an easy target. Demagogy is so simple; Google is a tech giant that does fiscal engineering to avoid paying taxes and profits from our content. Yes, that's true. But Google does exactly what these publishers do: curate what others say and provide citations to strengthen and validate their job.

But then, Google's natural reaction would have been, "You don't want my traffic? Wish granted! Next time, be careful what you wish". However, AEDE had anticipated this, so with the new law content providers can't opt out by not linking to AEDE's affiliated media. F*ck off genie, we wished for infinite wishes!

It's so effortless to lobby in a corrupt and manipulated environment where politicians don't even know what a link is.

~~~~~~

But wait, there's more.

Once you start considering the implications of having to pay to hyperlink, things get worse. A study conducted by Coalición Prointernet, a lobby against this law, states the obvious:

  • It has not been proven that content aggregation limits the editor's earnings. Of course; it's the opposite, it actually drives them more traffic—300M yearly visits, according to an admin of one of those sites.
  • There is no basis to establish an inalienable compensation towards media editors and, if it were any, this new legislation is not the best way to go.
  • The new law reduces legal security for Spanish internet companies.
  • Media aggregation is necessary and positive from a "freedom of speech" standpoint. Unavailability of aggregators can drive small publishers to extinction and leave users without an important tool to diversify their media consumption.

Please read and think about the last point again, because it is very, very important.

~~~~~~

Let's summarize what is happening here:

Big media editors AEDE, most of which pro-government, in collusion with the corrupt Spanish politicians have managed a masterstroke which they think will:

  1. Get them free money
  2. Destroy the discoverability of smaller media competitors, usually critical with the government
  3. Hinder the future of Spanish internet tech business, their main competitor
  4. Get more exposure, since readers won't have access to media agreggation and will resort to reading just one or two outlets

In reality, what is likely to happen is:

  1. Google will close Google News Spain, no big problem
  2. Spanish media aggregators will move their business abroad and won't contribute taxes to the country
  3. Tech entrepreneurs will realize that Spain is a shitty country to invest money on
  4. Without Google, the aggregators, and thanks to the increasing user boycott to AEDE media, those editors will lose traffic and money.
~~~~~~

This is so, so sad.

It is clear that traditional media companies are suffering because of the internet revolution and need to fight in some way. However, they are cutting their own nose to spite the face. And, in the way, they are denying others a right, not a banal one, but the right to quote, which news business is built on.

I honestly think that traditional media is absolutely necessary even today. They are the ones who report, research, discover, analyze and interpret what's happening in the world. Specially in Spain, where we don't have these modern US internet-only media companies which don't just feast on press releases but do real journalism.

This is not a cry against traditional media. People, most of all, need them. But people also need aggregators to contrast different views on news. Aggregators need media because it's impossible to talk about news without a headline and an excerpt to reveal what's going on. And media, most of all, needs aggregators and people to survive in today's world.

Now the law has been passed. Though it needs to be ratified in the Senate, it is a pantomime because the majorities are the same as in Congress and also Congress has the last word even if the Senate votes against it (take that, Montesquieu!). What will media editors do when they start losing money and realize the harm they have done to themselves, the Government, Spanish media consumers and the Spanish tech industry?

Next time you think somebody is stupid, remember that the Spanish press just got in a war with Google, Facebook and Twitter because they want them to stop linking to their content.

Crazy world we live in, huh?

Tags: law, internet, news, english

Simplicity

16 de julio de 2014 — Carlos Fenollosa

Marco pointed out today to Matt Gemmell's blog, and I've been reading some of his best articles.

I highly recommend his On productivity section, especially Simplicity, which I can really relate to.

He's a very talented writer, so if you have some time, read his Personal essays section, which is very emotive.

Tags: productivity, life, english

My favorite podcasts

9 de julio de 2014 — Carlos Fenollosa

Listening to podcasts is a very interesting way to fill your empty time, especially while doing tasks that don't require your full attention, such as cleaning, eating or commuting.

Being a podcaster myself (Dame la voz, El Amuleto de Yendor) I think it is great for the community to share our interests and let us discover new shows that people we listen to recommend.

Of course, this list is tailored to my tastes. It is not a journalistic piece; I am not neutral. For example, you will see that the topics are heavily biased towards tech, startups and self-improvement. Unfortunately, I can't recommend other stuff since this is what I listen to!

I also appreciate concision; there is a lot to listen and little time, so the less rambling and the shortest, the better.

A final disclaimer; if any of the hosts mentioned here were to read this, which I find unlikely, please understand this post as honest opinion, constructive critique, and feel totally free to contact me if you'd like to discuss anything. As mentioned, I'm a podcaster myself and not every opinion I get is positive; however, the fiercest critiques—if respectful—are the best, because they help you improve. The best seasons at El Amuleto de Yendor came after our worst; we sat down, read all the harsh comments, and restructured the show and our attitude. We ended up getting our best critiques ever.

To summarize, if you are on this list, I admire you.

Podcasts I love

What can I say? The content is great; the episodes are well-planned; listening to them is a good investment of my time. I would pay for these, and in some cases, they have helped me earn money or become a better person. Yep, they are that good.

The Tim Ferriss Show

Blog - iTunes

Tim started his podcast just a few months ago, and boy, what had we been missing.

His show is a series of interviews with very interesting people related to the self-improvement topic. But what I like the most is how he spends some minutes getting his interviewee comfortable and then asks the right questions. I can't imagine how much preparation he needs before each episode.

He's the first of this post and for a reason. I can't think of any other podcast that, in so few episodes, has made me go "wow!" as many times.

Even if some of the titles don't seem attractive because of the topic or the interviewee, just go and listen to them for fifteen minutes. You'll be glad you did.

Kalzumeus

Blog - iTunes

Patrick / patio11 would be your regular programmer and internet commenter if it weren't because he spends an insane amount of time explaining what he has learned from his projects and sharing tips and advice with random strangers on the internet.

If you are planning to make money on the internet, you know, with your business and products or services, then you must listen to Patrick's podcast.

Ramit Sethi

Videos

Technically, Ramit does not have a podcast, but you can subscribe to its video feed and even extract the audios from the videos since the images are not that important.

His content is exceptionally great. It is obvious how he makes a living teaching other people to be successful. He knows the "what"s and the "how"s and he's a great speaker and an expert on persuasion.

From getting a raise to convincing customers, he presents a wide range of techniques, and more importantly, which are the psychological principles that govern them. Every video is a gold nugget, if not only for the information it provides, but because it distills small drops of how us people think and react.

Podcasts I like

I listen to every show, enjoy them greatly, and thrive when my podcasts app tells me there's a new episode. The difference between these and the former? I guess that would be quality; you can differentiate between shows on which the hosts spent a lot of hours and talent, and shows that are just enjoyable, useful and funny, but just not five stars.

However, that's not necessarily bad, since not every producer thinks spending a lot of time preparing a podcast is worth it. I'm actually one of those: top quality is not my goal. Thus, I can't blame others for that. Just listen and enjoy.

Accidental Tech Podcast

Blog - iTunes

ATP is my go-to podcast. It is funny, opinionated, has John Siracusa (read below), and a good balance between the three hosts.

Marco is happy and mildly isolated from the business world; Casey is a typical cubicle programmer like most of us, and John has enough experience both in life and computers that he is always spot on and brilliant.

If you only listen to one "computing podcast", and don't mind a high percentage of Apple content, let this be it.

The business of freelancing

Blog - iTunes

Brennan takes the lead of Patrick—actually; I don't know who was first— and teaches startup business.

The thing is that Kalzumeus is published very sporadically while Brennan is more regular. While I still think that Patrick's content is a bit better, The Business of Freelancing is an excellent substitute while we wait for Patrick to publish.

Podcasts I listen selectively

I'd like to listen to every one of these but, unfortunately, my time is limited. Does this mean I don't enjoy them? Absolutely not! Usually, they just cover a wider range of topics than my current interests.

The talk show

Blog - iTunes

Gruber's podcast is great and his analysis, though a bit biased—hey, who isn't?— is usually spot on. He's one of the people I go listen to just after an Apple keynote. While others still sing that "Apple's declining since Jobs passed" mantra, John cuts through the bullshit with data and reasoned opinions.

Other days he talks about baseball or friends I don't know, so well, I just skip those.

Startups for the rest of us

Blog - iTunes

If they didn't publish so often I'd listen to every show. I used to, but right now I just read the summary and select those which apply to my actual business situation. For me, this show is like the Wikipedia of startups: you don't need to read it all, just use it as a reference. And that's what I do. They're the reference of startups tips.

Anything John Siracusa appears on

List

I just love how John explains stuff. He always knows how to explain anything in order to make properly his point clear. I think his opinions are the most rational, well-founded you can listen to in a show. If he can't get a clear idea, then he has no opinion.

That is just fantastic for the listener, because you can trust his explanations, understand them, and decide for yourself. I can't count how many times I've been able to form my own opinion on a topic by just listening at John's.

Podcasts I used to listen to

"Oh, here come the bad podcasts," you may think. STOP!

I used to love these for some time, but now I don't follow them anymore. Sometimes it's because another more interesting podcast took its place or because they don't apply anymore to my situation.

Quit!

Blog - iTunes

Quit! is the first freelance-related show I listened to. It planted the freedom seed in me, and help me remove and rationalize some of the fears which are associated to jumping from a 9-5 job into your own business.

The problem is that after some shows and after that seed grew the podcast was no longer attractive for me. It is not a problem of the format, the hosts or the content, just that once you learn the basics—because they taught you, no less—then the show gets boring.

People call in to ask about the same questions, and the answers are always the same. Sometimes even Dan is noticeably bored by the callers. But, what can you do? There are only as many topics to cover, and after a while, they get old; how much money do I need as a cushion; where will I work; is it a good idea to work weekends on side projects.

This podcast is a must for 9-5 people who want to start their own business. Before the "I don't know how" phase, which gets covered with Kalzumeus and Startups for the rest of us, one needs to pass the "I'm not sure if I want to do this" phase. Quit! is for those people.

Dan should not be worried about me anymore.

This Week in Tech

Blog - iTunes Let me start by paying my respects to Leo, the best host I know. I want to be like him. Truth be told, I listened to TWIT every week until ATP started.

ATP is fresh, while TWIT sounds grumpy. ATP is usually positive while TWIT focuses on the negative. TWIT has been on the air for a while, and it's a business, while ATP isn't.

They are two similar shows but very different in most aspects. It so happens that I prefer ATP.

The Vergecast

Blog - iTunes

The Verge is a tech website that, unlike others, has good editors and good content. The podcast is exactly that: tech news and a bit of opinion.

If you like shows which cover current news, this is one of the best. I usually prefer analysis and opinions.

Back to work

Blog - iTunes

Everybody, including me, loves Merlin and Dan, but I just can't understand this show. More than 60% is crazy talk and anecdotes, and every once in a while, they discuss productivity tricks. Regrettably, in many episodes I would get nervous, thinking "is this episode going to be one of these crazy ones?", hoping I wouldn't end an hour and a half later feeling that I hadn't actually learned anything.

It's a bit ironic that a podcast about productivity takes a lot of its listener's time. As a matter of fact, if somebody made a monthly digest of Back to work including only the productivity content, I'd listen to it in a heartbeat.

That's it!

If you are a podcast listener, I hope you give any of these a chance. They are all great shows; listen to a few episodes and decide which is best for you. And please use the comments to recommend me new shows! I'd love that.

Tags: productivity, links, english, podcasting

My new project: Feenbox, feeds on your inbox

3 de julio de 2014 — Carlos Fenollosa
feenbox

I've always loved email. For me, even in the era of Whatsapp and Facetime, it is the ultimate form of communication. It can be personal or professional, heartwarming or annoying, instantaneous or asynchronous, small or big, long or short, easy or godmode. There are very few times where I prefer a quick IM communication, of course, but the bulk of my day is email.

My first internet on college got me reading email on Pine on a linux terminal where we chatted using write(1) and wall(1)--that taught me how Ctrl-L refreshes the screen. I started reading newsgroups thanks to Pine, and from there, Gopher, the IRC and other text services. For many people, the internet is the browser; for me... well, I won't lie, but email comes a close second.

Since the advent of RSS, I always wondered why couldn't feeds be read by email. So, long before Google Reader shut down, I decided to get more control over my feeds, and created some scripts to receive them via email. I've been using them privately for years and, some months ago, I thought I could extend them a bit and make a public service from them.

You know the drill: "I have some scripts; surely it can't be that difficult to refactor some code and make it work for everyone". Months later, you're struggling with bugs, servers, feed providers and email clients. Right now, it is ready to talk about it. Not yet ready to show, not yet ready to launch, but let's go step by step.

Personally, I love receiving RSS by email, probably because I'm a power user. Besides RSS, I've been scripting Gmail's IMAP service to schedule incoming and outgoing mails, and by using tags, I make items get out of the way and come back at a specific date and time. Yes, like Boomerang, only some time before it existed--sorry if this sounds hipsterish, I honestly had no idea there was a market for that.

My inbox is always empty because all emails go to other folders, and a personally-crafted algorithm sorts them for me and floats important ones back to my inbox.

However, I didn't have time then to create a service around by hacky scripts anyway because of my full-time job. Nowadays I'm on a sabbatical, so I thought it could be a good opportunity to learn how to launch and manage an online product, and maybe make a bit of much needed recurring income.

Email has its advantages

Even if you are not a developer, Gmail provides with smart filters that can be intelligently used to handle incoming email. For example, when I got back from holidays I had a lot feeds waiting for me, but I deleted old item which no longer applied with a few searches by date and source, saving a lot of time. Managing emails is a solved problem.

But probably the thing I love the most is that email is offline and always in sync. Feed readers get crazy trying to sync their websites, smartphone apps and feed providers, but if you think about it carefully, IMAP deals with this problem for us. Your smartphone and computer always have the same items, and thanks to push email, always available for reading either online or offline. When you read one, it is automatically marked as read everywhere.

With Feenbox, I want to go one step further and provide much more metadata for email power users. For example, I'm working on attaching all images and small files to emails, because nothing is more infuriating than receiving a feed update where you can't read the actual comic or attached pdf document because it is only available online and there is a server or internet problem. With Feenbox, if you get an email, you get its contents.

Email has a widely known "share" feature: just forward it! Furthermore, most social websites, like Facebook and Flickr, have an incoming email gateway, so you can post anything to Facebook just by forwarding an email. That's pretty cool, but not many users know about that.

Scripting and filtering emails is so easy and powerful that I want to apply it to feed reading.

Presenting feenbox

feenbox is currently under development, still has some bugs, but the basic multi-user features are already implemented.

I want to make a dual effort, both to provide a service but also to teach users how to use their email efficiently. Every month there is a new post on Hacker News arguing that "we need to reinvent email", with which I usually disagree. Email is great, but we need to make an effort to educate users on how to make the most of it. The rest can be done with filters and IMAP scripting--and client-server programming, let's not forget the amount of work that Apple and Google are pushing towards the authentication side, data detection and such.

Let's say that feeds are an excuse to learn how to filter out emails, share them and convert them to various formats.

Finally, I go back to the beginning of my story. Since I love using terminals, Feenbox is built with delicate text/plain support. Right now it can convert images to ASCII art to let pine/mutt users get a quick preview of an image before opening their browser. I also have some more ideas on the pipeline, like the ability to automatically transform documents into text, OCR images and more.

I want to build a service that geeks and hackers can fall in love with, avoiding breaking their workflow. I want to restrict to a reasonable minimum the amount of external tools that are needed to process a single email, like web browsers, pdf readers, document editors, etc.

To summarize, feeds are a great excuse to experiment with email scripting. Besides feed handling, about 60% of the code are email parsers and data detectors and converters. By the way, for a guy who's been dealing with biological data for seven years, I don't know which is more difficult to parse, a human genome or a human email!

feenbox-aa

In a few months, it will be ready for an alpha release, and I set up a mailing list for those interested. I have currently sent two emails, one each month, with an extended introduction (in Spanish, but trust Google Translator) and a poll with the most requested features.

There is great communication with the subscribers and many have emailed me their suggestions. At the moment we are about 50, which is a tiny number, but this is a one-man operation, and I am already learning a lot about launching a product. I want it to be small and friendly.

If you are interested in the development or may consider applying as an alpha user, please sign up. The list is handled by Mailchimp, so you will get no spam and can unsubscribe at any time if you don't find it interesting.

Edit: The form was disabled

Thanks for reading all of this! If you don't want to subscribe to the list, I'll also keep you informed on this blog.

Tags: feenbox, web, english

The Wire (of Thrones)

30 de junio de 2014 — Carlos Fenollosa

I don't care how good it is, I just don't like police shows

That's what I said after watching the first couple episodes from The Wire

It was a police show with unintelligible dialogs. Halfway through the first episode I fell asleep. God, wasn't this show the best thing since sliced bread?

After some discussion with my girlfriend and thanks to the insistence of a couple friends, we decided to give it a go. We would watch the first ten episodes before deciding on anything.

I now look at those first episodes as an investment.

******

I had fell into the judging a book by its covers capital sin.

The Wire isn't a show about police work in the same fashion as Game of Thrones isn't a book about a couple of royal bastards. And the comparison is intentional. They are both dramas, they have very strong characters, they display brutal death of loved characters, and most important of all, they both show how the world works.

Yesterday, I tweeted this:

The Wire has shown me how the world works much better than my 30 years of life

******

The Wire is Game of Thrones in a current setting. The similarities are very extensive.

Some police investigate a common crime. By pulling the strings, they start to realize the connections, some of which are away from their reach. The case goes on; it affects higher level characters, the ones below can do nothing about it and complain about how unfair managers are.

Lower level characters start growing, they are now in the position to change things. Things can't be changed because of the establishment and diverse interests. Some do the good thing and get punished (no good deed goes unpunished), others do bad things for a good reason (the end justifies the means). Most of the times, the result is independent of the character's behavior or intentions; there are just too many factors to account, too many people to please, too many interests. Outcomes are chaotic, for the better and the worse.

Some bad guys are not so bad, they are just people who got caught in a spiral of violence. Some manage to get out of it, some don't. Some die. All bad guys are people, a few are real monsters. The line between good and bad is only defined by their own ethics. The Wire, like Game of Thrones, reminds us of classical tragedies.

Former pawns are now kings, and start behaving like the old kings because that's the only way they can act if they want to survive. New pawns complain of new kings like old pawns complained of old kings.

A few characters maintain their integrity only to realize that righteousness is only a virtue when aligned with your king's interests.

******

I can't say much more without spoiling the fun. Besides a strange last season, where characters change too much and much evidently rushed because of the writers guild strike, the series is a gold mine.

Every chapter exposes some gold nuggets where, if the viewer has been paying attention, he will grasp the subtle hints, subtle dialog, subtle gazes between characters that anticipate what's going to happen. And, because not everything can always be planned ahead, those characters will be surprised by other characters defending their interests.

This show is so delightfully satisfying that consciously deciding not to watch it is a sabotage to one's own pleasure.

Tags: tv, life, english

Spotify, we need to talk

5 de junio de 2014 — Carlos Fenollosa

Spotify, I pay you 10 euros every month just for one reason: so that I can listen to my music when I'm in the car.

I'm so glad you exist, you give me a reason not to pirate music. I had expected a service like you for a long time. I used to tell my friends that "I'll stop pirating when paying gives me a better experience than torrenting". And you did that. I was so happy to pay you every month. I have convinced at least three people to subscribe to your service, under the premise that they will be able to listen any track, anytime.

Last week, your app was updated again, but since iOS 7, this was done silently. And alas, I jumped into my car to start a road trip, connected to the bluetooth system, and voila! None of my music was there.

Well, it was there, but it didn't play. Of course offline playlists didn't play. But not even my own local files did play. Ironically, the only music I could play was the one I hadn't download, thus accessing it via 3G streaming.

This needs to get fixed, right now. In the next release. I mean, not even my local files?! What did you do with them? They are plain mp3 files!

Furthermore, with every release it gets worse. Your engineers spend time making the app "cooler" and enhancing the design, but it works way worse today on my new phone than two years ago on my old iPhone 3GS. How is that acceptable? Who checks your QA?

If I jump again into my car and you have deleted all my music, I'm back to downloading mp3s and advocating torrenting. Get your stuff together, Spotify.

Tags: software, english

No time. How did we get so busy?

20 de mayo de 2014 — Carlos Fenollosa

Excellent piece by Elizabeth Kolbert on busy time. The HN comments are up to the article.

This topic also brings me to the workcrastination mentioned on the four hour workweek which I also mention in tips to work from home. We are humans and kind of feel empty when we have nothing to do, plus being busy is an excellent, accepted social excuse to get out of undesired work.

Eliminatint excess work from life requires a difficult mindset change. I have always been busy, and liked it, but now I'm trying to work less, more efficiently, and be fine with it. Let's see if it's worth the effort.

Tags: productivity, english

The SDF Public Access UNIX System -- Est 1987!

19 de mayo de 2014 — Carlos Fenollosa

I just recently discovered the SDF Public Access UNIX System, an organization that provides free, functional UNIX shells to users, plus webmail, LAMP and other servers to paid users. Check out their plans, they are very cheap.

If you grew up on the old (not ancient) internet where you read news at the newsgroups, chatted on IRC, played MUDs at college computers and nethack at home since you didn't have internet there, this is your place.

They have a modern service, and provide Minecraft servers too.

If you like their service, don't forget to donate! They accept Paypal and Bitcoin.

Tags: unix, retro, english

Bile is not freedom of speech, but neither is censorship

16 de mayo de 2014 — Carlos Fenollosa

Twitter—and most sites which support user comments—are filled with filth. Unfortunately, that's an indisputable rule of the internet. Some people are just unaware of the power of their words, and write comments that expose the worst of human nature, like the guy who cheered the murder of a Spanish politician

Despicable as that comment is, however, I think that police resources would be better used if going after actual criminals or corrupt politicians instead of angry teenagers. On the other hand, people should start learning that throwing bile on internet comments may be freedom of speech but also an offence of verbal threatening. Let's just start behaving like intelligent people and try neither to threaten others nor indict dumb twitter users.

My point here is that the internet was born free, and it is now turning into a "regular" business: money will pay quality of service, online media will be regulated as if hyperlinks and news excerpts were copyright infringement, and now all internet comments will be treated as if they were uttered on the real world; at the main street or on a news outlet.

That is not necessarily bad, per se. However, the people and lobbies regulating the net are the same people who think cookies are a menace to user privacy and have strong political and economical interests on putting strong leashes to users. The internet has been bypassing their establishment for about 20 years and now it's time to put an end to that.

Should the internet be different from the rest of society? It's not a rhetorical question. However, there is no easy answer. The net has created new idiosyncrasies and, if we change the rules of the game, more things need to change. However, politicians don't understand—or don't want to—this concept.

If they charge business for their QoS, then those business must be able to demand public internet providers where there are monopolies or oligopolies. If a blog can be sued for copyright infringement, so must be TVs that feed from youtube users. The list goes on.

The problem now is that it's too tempting for the establishment to regulate everything in their favor. And, given that they have the ability to do so, puts democracy to shame. That is, if there is one.

As incredible as it sounds, the tinfoil-hat people were actually right. What's more indignant, teenagers may pay large fines for hate speech while governments steal their naked pictures from their webcams and companies take our tax money to turn it against our interests.

Regrettably, for those who didn't know it, that is how the world has always worked. The internet was a small oasis that lasted a few years and gave us a taste of real freedom, for the good and the bad—Silk Road, CP, etc.

What now? I think we should support organizations that defend our rights, software that empowers us instead of relying on the bona fide of our providers, and helping develop a new internet, if that were the case.

In Spain, we have a saying "hecha la ley, hecha la trampa". It means that the cheaters will always be one step ahead of the rules. Applied to the internet, that will be a good thing for users and freedom.

Tags: law, web, english

Chat wars

15 de mayo de 2014 — Carlos Fenollosa

Coming in each morning to see whether the client still worked with AOL was thrilling [...] One day, I came in to see this embedded in a message from the AOL server: "HI. -MARK." It was a little communication from engineer to engineer, underneath the corporate, media, and PR worlds that were arguing over us. I felt some solidarity with him even though we were on opposing sides.

A great story from David Auerbach, who was in the original MSN Messenger team, explaining reverse-engineering AIM's protocol to be able to interoperate with them.

As someone who used Messenger for many years, the piece brought me back in time. Well written, interesting, and entertaining.

Tags: retro, programming, web, english

Tips to work from home

7 de mayo de 2014 — Carlos Fenollosa

Much has been said about working from home, but I usually enjoy these kind of articles, so here's my contribution to the productivity-tip bandwagon.

Environment

Your first goal should be to develop new routines but, to do so, the work environment is key.

The absolutely most important thing is ergonomics, and the main contributing factor is a good chair. There is no need to spend 500€ on a fancy chair, but don't work on a garden plastic one. Go and buy a nice office chair with armrests and a good lumbar region support.

If you don't get a regulable height desktop, make sure that the one you use isn't too tall. You will notice this quickly; if your elbows are placed on the armrests, and your wrists on the table, but your shoulders are in pain, it means that the table is too high. Dining tables are usually too high for the average person because they are designed so that the plate is not too far from your mouth, but that doesn't work for a computer.

Try to create an environment as close as possible to an office. This means paper trays, binders, pens, and so, but also avoiding other distractions like magazines, food, toys, etc.

Occasionally you'll want to work on the sofa after lunch, at the balcony on a sunny day or on the kitchen counter while making sure your dinner doesn't burn in the oven. That's fine, but it shouldn't be the norm. No matter how many startup movies you've seen, desks are important.

Having a specific work desk or "office room" will also help you separate work from leisure. Nowadays we do most of our leisure on a computer, but working from home can be very absorbing. As a rule of thumb, try not to work unless you are at the office, and try not to eat or have fun there. It will help your brain separate both things.

If you're a computer geek, there is not much I can tell you about the benefits of two monitors, a mechanical keyboard and a good mouse. Always do some research before buying a monitor, especially if you come from the Mac world and are used to their wonderful displays. Most cheap LCDs are fine, but if you do a lot of design you'll notice that the colors and pixel quality aren't the same. That's not necessarily bad, since most users will also use a cheap LCD, so you'll get a closer result to what they will see.

You do not need to rush and buy everything on the first day, but remember: pain is not "normal". If your body hurts while working, and it didn't hurt before, consider changing your environment.

The take home message seems to be spend a lot of money, and that is 50% true. The other 50% is be comfortable at your office. If working brings you physical or psychological pain, you will find every reason not to do it.

Routines

Routines, at first, can be forced with good planning. But what to plan?

Wake up early. I can not overstate the importance of this. If you wake late, your brain will be on that comfy it's late, the whole day is wasted, I'll do it tomorrow mode. DO NOT LET IT!

Some people say they work better at night. In my own experience, while true, that can be changed over a period of time and will bring more benefits. Try both for some weeks and choose the best for you.

Exercise. Everybody recommends that, but I'll be a bit more specific. Depending on your energy, routines, and schedule, try to either exercise first thing in the morning or before lunch. It's better to do it before the afternoon, because if you leave it for later, you'll spend the whole evening wondering when you need to finish work in order to have time to exercise. Also, there are a ton of benefits to exercise early, like increased energy and better hunger control. There is nothing worse than exercising before dinner, then eating a lot because you're starving, and then going to bed too tired/aching to sleep and with a full belly.

Get dressed to work. I sometimes cheat a bit and don't get dressed in the morning, because I exercise before lunch and don't want to put on clean clothes before showering. However, that's another benefit to exercising in the morning; it will force you to shower and put on new clothes.

Being dressed at home is a good thing. First of all, you're ready to go out if somebody calls. "Hey, let's go to the bar", "Nah, I'm on my pajamas, would need to shower and change...". That should never happen. Also, if you work from home you will probably need to go out shopping or running errands. Being ready helps to avoid procrastinating from that kind of work.

Second, you'll never have the temptation to go to bed for a nap. Never enter your bed during the day! You might get into a deep sleep and wake up two hours afterwards, either with a headache or worse, too refreshed to sleep well that night. Naps should always be taken on a sofa or armchair, sitting down comfortably and with an alarm set to 10-15 minutes, to allow your body and brain to rest but not enter a REM sleep.

Allow yourself fun time. If you wake at 7 and go to sleep at 23, you don't want to be working 16 hours a day, minus meals. Having too long workdays contributes to heavy procrastination. Set yourself strict deadlines and stop working after 7-8 hours every day.

That will leave you between 3-5 extra hours every day. Try to find new routines you like, now that you have the time! Play videogames, read a book, go outside for a walk, watch TV, paint, go sunbathing, whatever. You're at home and you don't need to act busy in front of anybody. More on this below.

When at home, routines are different and more flexible than in an office. Try to plan as many as possible and they'll turn into habits, which is a good thing.

Planning

Even if you have a boss, you will be responsible for planning your time. This is what I do:

Every Sunday evening I allocate an hour to plan next week's work and review the current week's outcome (next section).

I open my calendar and create mandatory tasks. Those are meals, appointments, meetings, etc.

Afterwards, I plan my routines. A workout hour before lunch every day, playing video games twice a week, reading for an hour after lunch every day, except on Mondays, because I watch Game of Thrones, etc. You get the idea.

Then I set work hours, between 7-8 every day. I fill those with tasks from my projects. I prioritize important tasks and do them first thing in the morning. I also know that I am more productive in the late evening, so I usually schedule maintenance tasks from after reading until mid-evening.

Observe your body and brain and don't lie to yourself. Plan realistically.

Finally, I don't plan weekends, but I trust myself not to waste them anyway. If you can't —nothing to be ashamed of— plan them too.

All schedules may and will be interrupted with unexpected work, but the mere act of planning your day and knowing what is the next task that you need to do is a great tool against procrastination and deterrents.

This is, more or less, a summary of the GTD methodology. If you haven't done so, please go and read Allen's book. It should be a required reading in all schools. If you prefer to plan your tasks daily instead of weekly, that's fine. Allocate 15 minutes at the end of every workday to plan tomorrow's work, and then don't check email until next day's allocated time. As stated before, that shouldn't be until you have been working for 2-3 hours in the morning.

After all this planning, we will need to regularly review it, not to feel bad about what we didn't do, but to adjust ourselves to reality.

Accountability

As said in the last sentence, we are only accountable to ourselves. We want to learn more about how we work, so it is a good idea to track your time.

I use toggl for time tracking, though some people don't like tracking every minute of your day. At least you should write down your weekly goals and review if you have completed or advanced them.

On Sundays, just before planning next week, I run through a quick summary of the current one. Did I do what I was supposed to do? If not, why? How did I spend my time? If you only track your goals, you won't probably identify your main time wasters. Being honest is a good exercise and a useful tool to detect and eliminate them. When you check Facebook for more than a quick glimpse, track it. If you're bored and go to Reddit, track for how long.

Planning and accounting are the two main tools to help you develop your own routines, tailored to your energy cycles and home environment. Remember that, again, they are just a tool, and don't feel too bad if it turns out that some week hasn't been as productive as you expected. Use the data to correct your next planning, and try to schedule more realistically.

The trick is to plan according to what you have learned will happen, and not according to what you wish would happen.

Ramit is always insisting on the importance of testing, and that's what you should do. After all, reading advice about other people's routines should be interpreted as a source of ideas to test, not as something written in stone.

You're working

If you share your space with another person, it may be tempting for them to suggest that you do housework because you spend all day there and they may be at a workplace. That is not fair.

However, it wouldn't be fair either to avoid housework at all. I suggest to play smartly.

For example, you're in a good position to do shopping and run errands, since you can shop when nobody else is there and avoid queues.

Allocate an hour of housework for every hour your partner is committing to, of course. However, you don't need to do it at the same time. If you're productive in the evenings but your partner is there and wants to do some cleaning, suggest to split the rooms, and do your part after lunch or when you feel like procrastinating. Trust me, when you have to call that stupid client, nothing will look as attractive as sweeping the patio.

Consider hiring cleaning services. If you're not familiar with the concept of opportunity cost, read a bit on the subject. Paying 10€ an hour and earning 50€ an hour is a net gain of 40€

The same goes for kids; consider paying a kindergarten for some hours so that you can work quietly and without interruptions. If you plan is to earn money working at home you can't spend the whole day watching your kid. We all know that the point of having kids is to raise them ourselves, but keep a balance between being a housewife/husband and earning money.

Avoiding procrastination

I have two good rules to avoid procrastination:

  1. Procrastinate actively. That is, if you don't feel like working, don't try to work. Feeling tired? Go take a 15-minute nap. Want to check Facebook? Do it. Don't feel bad about it. However, try to stop procrastinating after some time. Set an alarm.
  2. Don't plan heavy work at those times that you know you won't do it. For me, it's after lunch. I know I can't work, so I watch some shows or read a book for an hour. If I feel sleepy, I sleep. Otherwise, I read.

If you want to read the ultimate guidelines on avoiding procrastination and, what's worse, workcrastination, that is, being busy for the sake of it, check out The 4-Hour Workweek. Some spoilers:

  • Don't check email that often
  • Do important tasks first thing in the morning
  • Eliminate one useless time-consuming habit every two weeks

A final trick that works for me: 30 seconds of exercise puts me in a very motivated mood. If I don't feel like working but there is a deadline near, I'll jump out of the chair and run up and down the stairs a couple times, or do some pushups and squats. 30 seconds is enough, you don't need to be tired, just make your heart beat a bit faster and release endorphins. Try it!

Social life

Try not to be all day alone. This highly depends on each character, but if you live alone and work from home, do something outside. Have breakfast or lunch at a cafeteria, go to the gym, go grab a beer with friends after work.

It's not unhealthy to spend most of your day at home. What's unhealthy is to spend a lot of days without going out and talking to other people.

Enjoy it

Working at home has many advantages. Freedom, limited and honest accountability, and more importantly, the lack of facades. There is no point in crucifying yourself or forcing to follow office guidelines.

Just let me summarize this article in four quick bullet points:

  1. Work your environment to your advantage, make it comfortable to work at home, separate work from leisure.
  2. Be honest about your productivity, schedule smartly, account, test yourself, don't be busy just for the sake of it.
  3. Opportunity cost. Pay for services which are cheaper than your earning rate.
  4. Enjoy office freedom; go outside to read on a sunny day, shop at 3pm when shops are empty, play video games, learn a new language or how to play an instrument.

Tags: productivity, english

The ignorant EU cookie law

18 de marzo de 2014 — Carlos Fenollosa

It is 2014, and many webmasters still don't know that there is a new EU law which regulates cookies and other data stored in user computers. This is part of a noble effort to protect user privacy, which, well, I personally support.

Unfortunately, the actual law is technically incompetent and does nothing for user privacy while placing a lot of responsibility on webmasters and costing them a lot of time and money.

Put it another way, this law wants to protect users by forcing spoon merchants to inform clients about the chance of being harmed by a spoon while ignoring knife, drug or gun merchants. It's useless.

This uselessness and absolute ignorance of how the Internet works is costing EU webmasters a lot of time and money. In my case, I counted them, about ten hours. For large companies, it can be a lot more.

Why am I against this law? Why do I say it is useless?

It doesn't protect user privacy

Cookies are not the only way to track us. Modern methods use just Javascript (i.e. the Facebook 'like' button) and leave no data on the user's browser.

Furthermore, the browser itself can be used to uniquely identify you. Test it

What's worse, it says nothing about doing analytics with personal data, like the IP.

And how could we forget the fact that it is the governments themselves who are spying on users? How on Earth need cookies legislation if the UK and US just steal pictures from our webcams, data from our emails and information from our text messages?

Our legislators must be absolutely ignorant or absolute hypocrites to regulate cookies while governments spy on us. I'm not sure which one is worse.

Cookie management was solved 20 years ago

Let's assume that the previous reason wasn't valid. Let's assume cookies were a real menace to user privacy.

Well, this problem was solved since IE4, when browsers invented the cookie warning popup window.

Managing cookies in the browser is the best idea, for many reasons:

  • It is a central tool to manage cookies.
  • Display a common interface for all cookie warnings. With the current law, every webpage displays the notification with a different style and location: on top, on the bottom, on a side, on a popup. Visitors don't know where to find it.
  • We should trust user software instead of website policies. What if a website was using cookies to track me? Should I trust them? Would it solve anything that they had to pay a fine if they have already stolen my data? Concerned people should use trusted browsers, and hardened open-source operating systems, if possible. To state an example, Facebook would earn more money by breaking this law and spying on us with cookies than the fine it would have to pay if they get caught.

It confuses users

I did a quick survey with some non-technical people, asking them if they had seen this "cookies notice". They said they had. I then asked them if they did understand what it meant. They didn't.

Modern UXs have overwhelmed us with notification windows, up to a point that we just click on "dismiss" without even looking at them. Well, we should read the text, but the truth is that many people don't. Instead of arguing over what should be done, let's try to avoid contributing to the too-many-notifications problem, and just solve them on the browser.

By the way, I bet that the most clicked button on IE6 was the "Accept all cookies, do not bother me again" checkbox.

It costs people a lot of pain and money

Let's imagine there are a million websites in the EU. Let's imagine every webmaster takes, in average, 8 hours to adapt each to the new cookie laws. Let's imagine the average webmaster cost is 50€/hr

This useless law has costed EU companies and individuals 400 million euros. Nice way to impulse the internet economy.

Different countries have different requirements

In the UK, it is enough to provide a notice to tell users that the website uses cookies.

About ten years ago, browser developers decided to remove the UX label that notified the user when cookies were received because they thought there was not much to show. Now we have to implement them again, on a per-site basis. Outstanding, given that the cookie is set anyway.

Bad as it is, in Spain, a website can't set cookies unless the user accepts them, either by scrolling or clicking a link. At least, well, the user is "protected" by default, even though the technical solution is harder.

Helping the community

Angry as I am right now for having wasted ten hours of my life implementing a useless law, I thought the least I could do, besides writing a rage post, was to share my solution.

You can go to Github and download the sample I prepared. It's the same code that you can see running here if you noticed the banner. It might not be the best, but at least it gives webmasters a starting idea, and no-PHP, 100% HTML+javascript routine to run all Analytics and cookie-dependent code.

To summarize my implementation, it consists of a javascript file which handles the cookie banner, sets the actual cookie when the user gives consent, and also manages some exceptions. Unlike most of the solutions I found, which only display the banner, this code does actually handle cookies.

Check it out, and please, feel free to send pull requests and discuss its issues.

Final thoughts

I think my points are quite valid, and this is actually a useless and annoying law that serves nothing and costs money. If the regulators had consulted a competent panel, they would have learned that the cookie law does not serve their noble intention of protecting users.

The root problem, again, is that our politicians don't have the slightest idea of how the internet works. These are the same guys that now must decide on the fate of the internet as we know it.

I don't know about you, but I lost all my hopes long ago.

Did my code save you any time and money? Please donate it to the EFF.

Tags: law, web, english

Use whatsapp from the command line

10 de marzo de 2014 — Carlos Fenollosa

Update Oct 2014: Whatsapp changed their protocol and third party clients like yoswup may not work anymore.

In this post I'm going to show you how to run a commandline Whatsapp client. It can be very useful to connect it to a unix pipe and automatically get messages from your server, via Whatsapp. Also, it's cool B-)

Disclaimer: Whatsapp is sending DMCAs to take down Yowsup's Github repos, so either the software or the process may break with any update of their protocol. However, to date, I've been using it for a couple of months with no hassle.

  1. Download Yoswup from Gitorious and extract it somewhere
  2. Edit the config file and input your cc, phone and id. Leave the password blank
  3. We are going to force a re-auth on your phone's whatsapp in order to cache the password. Authenticate with yowsup: ./yowsup-cli -c config -r sms and wait for the SMS
  4. Second step of the authentication: ./yowsup-cli -c config -R [6-digit sms code]
  5. Now your phone's Whatsapp is disabled. Open the app and re-auth with either a SMS or a phone call, whatever is available first. You may have to wait some minutes.
  6. Download iFunBox
  7. Connect your phone, open the iFunBox app in your computer, and navigate to whatsapp/Library/Caches/net.whatsapp.WhatsApp
  8. Copy all files named Cache.db* to some place
  9. Download SQLiteStudio
  10. Open SQLiteStudio, and open the database on Cache.db. Navigate to the table cfurl_cache_receiver_data and scroll to the end. You will see a large json string. This is your current authentication data.
  11. Look on the json string for pw:XXXXXXX. That's your password. Copy it to yowsup's config file
  12. We are ready! ./yowsup-cli -c config -s [cc][phonenumber] "I'm texting you from a terminal"

Enjoy! Yowsup can also be used for full conversations, send messages to yourself which you'll receive on your phone or, as mentioned in the beginning of this post, pipe some other command to your phone.

Tags: software, tricks, english

Bashblog now supports tags

27 de febrero de 2014 — Carlos Fenollosa

Motivated by some friends generating activity at Github I decided to add one of the main missing issues of bashblog: support for tags, or categories, whichever name one prefers.

It turned out to be a bit of work because I had to do some tricks to process comma-separated words, but in the end the result is nice enough. Now, a line accepting tags is displayed at the bottom of each post, and it automatically creates new tag archive files and links them from posts.

This doesn't break compatibility with previous posts, but unfortunately adding categories to old entries needs to be done manually. Here's how. For each post:

  1. Run ./bb.sh edit post.html
  2. You will see a full HTML file. Don't panic! Look for a line which says <!-- text end -->. It is always after the content of the post.
  3. Open a new line above that one, and paste the following template:
    <p>Tags:<a href="tag_tagname.html">tagname</a></p>
  4. Replace tagname (both occurrences) with the desired name for the tag
  5. The part in bold represents one tag. Copy and paste as many as you want between <p> and </p>, separating them with commas.
  6. Make sure that all the tag information is on a single line

When you are done editing the desired posts, run ./bb.sh rebuild and voila! The tag files will be generated.

Don't edit html files manually! Always use bb.sh edit since it keeps the file timestamp, which is necessary for storing the blogpost dates.

Tags: bashblog, english

What's so great about Whatsapp?

20 de febrero de 2014 — Carlos Fenollosa

Facebook bought Whatsapp for $19B. There has been a lot of discussion on the net since the numbers are crazy. Even for today's standards, where startups are measured in Instagrams or Yahoo!s much like length is measured in football courts, that is a large sum.

To summarize my thoughts on the money; maybe we should start thinking about a new Web 2.0 bubble? Whether $12B in Facebook shares is actually twelve billion dollars cash is left as an exercise for the reader. Smarter people than me defend the acquisition, and I will definitely not argue against that.

So why did Facebook buy Whatsapp? TL;DR: because of what people use it for.

Notwithstanding Line's 350M users, or the hype with Telegram, Facebook went for Whatsapp for a reason, and that is because they are huge outside the US.

I don't think this is an acqui-hire as Whatsapp needs every employee and it wouldn't be a smart move to shut it down while it's #1 with this huge competition. However, Facebook can probably learn a lot from Whatsapp's engineers. Their amazing staff can scale at a ratio of 450M users per 32 engineers. That's 14M users per engineer. But again, this isn't about the people, the risk of Whatsapp being bought by Google, or just their user base.

It is most likely the fact that Whatsapp has more than 300M daily active users, and Facebook could greatly benefit from having all these people's data. Remember what Facebook, and all the other big companies on the net, are. They are advertisers. And all these people using Whatsapp is communicating outside Facebook's network.

Google wants to collect all the world's data, but Facebook wants to know everything about people. Now it will reach an additional 450M that they weren't previously controlling.

What's so special about Whatsapp users? From my experience, Whatsapp is a great mix of Instagram, Twitter, chat and Facebook. It is totally spontaneous, friendly, private, and chaotic. Non-geeks love the ability to send pics, text and audio and let messages scroll to the top. It is so comfortable to use.

But what's more interesting, users communicate intentions, meetings, events. Outside the US, nobody creates Facebook events any more; we create Whatsapp groups. Groups for parties, dinner, quick stuff that's happening and needs immediate action. We use Facebook to discuss what happened —maybe with a cool beach pic— but Whatsapp is all about the immediate future. Plans are made on Whatsapp.

And here goes my conclusion. What could be sweeter for Facebook's advertisers than knowing in advance what people are up to? It's the perfect user data. Remember, next time you create a Whatsapp group for that birthday party, restaurant ads will pop in your Facebook. And I'm not saying that it's a bad thing necessarily.

Tags: news, english

Unix tricks you should be using

17 de febrero de 2014 — Carlos Fenollosa

Some time ago I started a compilation of unix tricks regarding bash completion, obscure tools and some ssh magic.

The list grew bit by bit until it was posted to Hacker News and quickly exploded. It got about 200k visits the first day and has been accessed and linked frequently since then.

I still maintain it, and I'd like to share it again, as the first post of this blog's new era. I have been tempted to re-write it as a longer blog post many times, but I believe that many people were attracted to the simplicity of the original text file.

Tags: unix, tricks, english

Learn new stuff, online, for free

5 de junio de 2013 — Carlos Fenollosa

These last months I've been quite busy learning new stuff. Researchers always need to keep an eye on the state of the art by reading papers, but multi-disciplinar sciences usually require a strong background in two or more areas, like biology, chemistry, math, physics or the always present computer science.

While we can appreciate a good book, it is not the ideal way to learn new skills. Books don't force you to follow a schedule, do the assignments, and obviously don't evaluate you. We all have work to do and, with no deadlines, we never invest enough time on learning new tools in depth. Most books and tutorials are abandoned at chapter 4.

University-grade learning

If you want to follow an university-like learning methodology, you will need to invest university-like time and money, enrolling in short courses or traditional Masters degrees. They are fine, but cost a lot of time and money. What happens if you just want to learn one specific tool or technique and not a whole curriculum?

Many universities offer workshops and non-official courses, typically for 3-5 days, which don't cost much money, but they are usually full-time and not really compatible with a daily job, unless you get permission from your supervisor.

In 2011, and especially in 2012, a new learning tool appeared on the internet: the MOOCs, or Massive Open Online Courses. Their format varies, but most of them cover one or half a university class (7-15 weeks) in depth, with video lectures, assignments, deadlines, and real interaction with other students, TAs and professors.

In learning, it isn't worth to to cheat at solitaire. A hard deadline is the only way to assure we won't lag behind the class, and while nobody will be watching whether we finish the course or drop it, it is up to us to decide if we want to take that opportunity to learn or not.

Resources to learn online

If you need some pointers I'd recommend to try Coursera first, since it has the best methodology, for my taste, and the one which resembles a college the most. If I'm not mistaken, it's also the website with the most number of courses. A good alternative is Udacity, which doesn't have as many advanced topics as Coursera, but it's great for beginners. Finally, the last generalistic site is Khan Academy, but unfortunately, it doesn't provide the same assignments-and-deadline mechanism that the former have. It basically contains video lectures. As a non-website, we can't forget iTunes U, Apple's video lectures directory, with classes directly recorded from campus.

Other self-learning resources, while not strictly MOOCs, are Codeschool and Codeacademy for programming, and Memrise for languages. The number of education websites is growing, so make a quick search on Google to check if there is anything else you could be interested in.

Effort, pace and cost

MOOCs surprisingly compare to real online universities in terms of quality and material level, however, real interaction with the professor is difficult and only through public forums. The number of makes up for that, as usually there is somebody which can answer you. It is really a collaborative effort.

Besides the obvious "knowledge for all" motto, there's another big advantage for me, as you can study at your own pace. Good MOOCs have precise deadlines which allow you some margin if you have a hard week at work or home, but they are not so far enough as to let you lag behind.

Now, the question is, who pays for that? Posting video lectures online has a marginal cost, but what about the TAs and professor's time? Most of the assignments are corrected by a computer or other students, but the organizers have to invest a significant amount of money.

I don't have the answer, but probably, since those courses are sponsored by a university, it probably fits into their social community service. Some professors advertise their books on the subject, which is perfectly reasonable, and finally, there is usually some self interest and promotion goal.

Whoever pays for the courses with their time and money, thank you.

Go check these links out, especially Coursera, and see if there's anything that catches your eye. Be brave, enroll, and prepare for a university-like effort. You'll learn university-like knowledge, for free.

Tags: learning, english

Redefining your keyboard

11 de junio de 2012 — Carlos Fenollosa

I live in Spain, so most of the computers I work on have a Spanish keyboard layout. We really need it for the accents, ñ, ç and other language-related keys.

However, when it comes to programming, the Spanish layout seems... designed by Spaniards. Well, not actually. It is designed for writers, not programmers, which makes sense because it follows old typewriter's layouts.

For example, colons need an additional shift key press, the slash is inconveniently located above the number seven, so you need to perform an exercise of finger gymnastics to press it, braces need AltGr, etc. It is very, very inefficient, and it also leads to hand strains and finger pain after a few hours of work.

After some time considering it, I asked for a US keyboard, and voilà, programming is a lot easier now. For me, the major improvement is the location of the slash, widely used in UNIX, but also braces and the pipe. Sure, it takes some time getting used to it, but after about a month of daily use one can perfectly type with, at least, their original typing speed— if not even more—with the included benefit of less finger movement.

Accents can be typed anyway, either by pressing Alt-Letter or mapping them to any other combination. In any case, when I need to type a long text in any language other than English, I just press my layout-change key and use the Spanish keyboard again.

Windows, Linux and Macs allow you to change keyboard layouts on the fly by just pressing a key. With a couple of Google searches you should be able to learn how to do it, it's real easy. However, there's more! I recently discovered another trick which might be useful for your work.

Don't you feel your fingers a little bit tired after working with screen, Emacs or any program which uses Ctrl? That's because the Control key is located down in the keyboard and you need to stretch your fingers to Ctrl-A and Ctrl-E. A hidden feature of all operating systems also allows you to move it up, to the home row of your keyboard. Would you mind checking if there's some key you don't use that often which might be suitable to replace Ctrl? Caps Lock, indeed!

Caps Lock is a huge key which has no practical use except for twelve-year-olds on Youtube, and it is placed so close to A and E that it would be a sin not to make it behave like Ctrl. Again, do a quick Google search, and learn how to remap it. It can be done with the GUI, no need to change configuration files. And, were you in need to use Caps Lock for some reason, you can always map Shift-CapsLock to its old behavior.

From now on, I encourage you to think about remapping keys that you don't use. Personally, I have the Windows key remapped to switch layouts, CapsLock as a Ctrl and the F1..F12 as desktop keys: move one desktop to the left, right, move windows to another desktop, lock screen, volume controls, etc. And, now that you're here, take some time to learn or assign keyboard shortcuts to common tasks, either in the console or in the GUI. You'll work much faster and, more importantly, your hands' health will improve.

Tags: hardware, english

Reading list

21 de marzo de 2012 — Carlos Fenollosa

Recently I am stumbling upon very interesting articles, the kind that take you half an hour to read but are worth every spent second. If you're like me, they are the perfect reads for those times when the computer is compiling, running unit tests or waiting for the jobs to finish.

Initially, I wanted to write a short review of each and post it here, but that might not be very appropriate, as I don't want to convert this blog into a tumblr-like site, with random content. However, I use a very cool service named Readability which lets you save articles for reading them later, create favorite lists and automatically provides an RSS feed of each, which makes it very convenient to use with Google Reader.

That lead me to create a favorite articles list with links to long, insightful walls of text covering topics like computing, science, startups and the internet, which I want to share with you. I curate content from sources like Reddit or Hacker news, so if you like what you read, I would recommend you to also check them out.

If you're into RSS, please subscribe to its feed, I promise not to overload you with references.

Should you want to share a link with me, feel free to drop me an email or send me a tweet. I am always on the look for insightful articles.

Tags: links, english

SQLite: a standalone database for your application

10 de noviembre de 2011 — Carlos Fenollosa

Us researchers are used to store data in plain text formats, because it's very easy to parse and work with. While this is appropriate for some data types—and, I'd add, very useful to send later to R—, in some cases disk access is slow or just inefficient.

This topic is actually very important for some projects, as storing records into a plain text file is very slow to query afterwards. And this is the key question to ask ourselves before considering to use a database. Databases are great for complex, unordered queries, but not so great for sequential access of raw data. Let's see an example.

There is a data file which stores atom coordinates, for example, from a Molecular Dynamics simulation. This data is very likely to be read once, sequentially, then processed in memory. The information represents a matrix which will be processed by mathematic functions. This is the classic example where data files (either binary of plain text) are used correctly.

But now let's think of a list of proteins and some properties, for example, molecular weight and number of available 3D structures. All these objects are independent, they have their own entity. While you can store a text file with one line per <protein, weight, structures>, it makes more sense to store it on a database.

Databases allow complex queries to be resolved very quickly. For example, give me all proteins with molecular weight > 50,000 , list all proteins which have no crystal structures, or print all the proteins which have duplicate structures. Were we working with a text file, we would need to process it completely every time we perform a query. That's very, very slow. Databases internally store the information in such a way that queries don't need to go through all elements to get the answer. Namely, they store data on trees by indices.

How do indices work? It's a complex issue but let's think of a very basic example. Let's say you have three protein structures (1BCD, 2KI5, 1AGI) which you want to index by name and molecular weight. The system will then automatically build a protein binary tree where 1BCD is the parent, the left child is 1AGI and 2KI5 is the right child. Then, it will create another tree where the left child is the lightest protein, the parent is the middle one, and the right child is the heaviest one.

If the index tree is always sorted where the left child is alphabetically inferior than the parent, and the right child is always superior to the parent, then we can access any element or group of elements not only without checking every item but also in logarithmic time. Databases do this once for every index you configure, so complex queries can be solved super fast because for each of them the system only needs to process a few items of the many millions you might have stored in the DB. That's because every time you jump to a child element, the system is avoiding to process half of the database, then a half of this half (1/4), then 1/8, etc.

To summarize, if you have some data where each record has its own entity (i.e. can be thought of as an "object") and you think you'll make queries which retrieve an arbitrary number of the elements, then you need to use a database. Databases have even more advantages, like relationships between objects (e.g. each crystal structure has its own entity, and can be related to a protein), but database design is a complex topic and this article will cover only the basic data storage.

However, databases are usually configured by the system administrator and handled by a daemon—oracle, mysql, postgresql. Here I will talk about yet another way of creating databases, without the need to start any daemons, have any user privileges and, more importantly, easily portable. This is done via sqlite.

SQLite is a library that implements a SQL engine inside your own application. This means that while the database is persistent inside a file, all the querying infrastructure is deployed along with your code and stopped when the code finishes running. The databases can be created very easily, making it easy to have multiple DBs for testing, and without the need to bother the system administrator.

sqlite has bindings for almost all popular languages and also a commandline interface which is handy for testing and debugging. The data is stored on a single file which can be deployed with your application without needing to install any standalone servers. Obviously, it is not a replacement for Oracle's solutions, but it can speed up a lot some applications which need to work querying data and don't have access to one.

Most popular software uses some kind of database to store data, as this is a super fast way to access preferences and other items. For scientific programs, it is always necessary to think twice before using one, as database design is an art on its own, and as said before, it does not suit all needs.

When used properly, a small ad-hoc database like sqlite can speed up software, make data access very easy and allow the manipulation of large, objectified, in-related data collections with simple queries instead of writing long and slow algorithms which process all the data when you only need one item.

Tags: software, programming, english

Cloud tools: Google Docs is now good enough

26 de octubre de 2011 — Carlos Fenollosa

We've recently been bombarded with the concept of "the cloud". Every company is using it now as an advertising term, so it's losing a bit of its semantic value. But what does it really mean?

Cloud computing means a lot of things, from distributed computing to distributed storage, ubiquitous documents and collaborative work. Basically, if your data is stored somewhere on the net, you can access it from everywhere and, optionally, work simultaneously with collaborators, then it's "on the cloud".

There are many cloud applications, but today I want to bring some attention to one which is mature enough for everyday use: Google Docs. It's so good that I've been using it for many years now, and there have been only a few occasions where I had to go back to use a local software to create a document. Those have been very specific cases where I needed to produce high-quality leaflets or presentations which need professional software.

Talking about professional, the quality of GDocs is, at least, good enough. At most, it is excellent. The spreadsheets is probably the most basic product, but the documents and presentations are great and they can perfectly be used for any serious work.

However, the highest advantage of using a cloud product is collaboration. There are some "revision" tools for MS Word which are good, but nothing beats collective editing of a document at the same time and rolling back to a previous version like a wiki. Collaborative document edition is definitely Google Docs's strongest point.

Obviously, there are drawbacks. The biggest ones are the inability to access your data when there is no internet or a server error—Google is known for its stability, but it sometimes crashes, believe me— and the lack of features compared to a desktop solution like Libreoffice/Openoffice or MS Office. Quick tip: remember to activate Google Doc's "offline access" to get a local copy of your documents even if the internet goes out.

A controverted point is that of privacy. Some institutions force workers to use local tools because of intellectual property or industrial secret reasons. If that's the case, end of the story, but keep in mind that once a document leaves the local mail servers all privacy is lost, e.g. one of the collaborators has a different email server like gmail or those of another University.

In a scientific environment it is still common to send documents to different people by email, then merging the changes manually and usually losing some of the revisions because of the document mess. That needs to stop. While the final version will probably be edited with a desktop software, there is no reason for a manuscript not to be produced with collaborative, "cloud" tools.

My advice here would be to give Google Docs a try, because it has changed a lot since its inception and it is nowadays an excellent editor, a backup solution, an ubiquitous server and a collaborative platform which will save you a lot of time and hassles.

Tags: productivity, english

Which is the best programming language?

23 de septiembre de 2011 — Carlos Fenollosa

This classic question from beginners who start coding their own tools for research has only one correct answer: it depends.

If there is no language which is clearly better than the others, why do I have this very simple table on my Unix section?

  1. Bash, awk are your first choice
  2. PHP if you require more power
  3. C only if you know why
  4. Use Java & Eclipse

Don't get me wrong, this table has been compiled from quite a few years of experience, and there are huge assumptions behind it. The first one is that you still don't know what language you should use. If there is no doubt, either because there are some requirements for the project or because there is a language that is designed specifically for that task (e.g. CLIPS for declarative programming), then you need to ask yourself some questions.

I'll start by enumerating the most popular language choices and some of their features

Scripting languages

Scripting languages are good for small or medium projects, because they fit very well with the line of thought of the programmer. This means you can program while you think, which isn't the best for cleanliness, but it gets the work done quickly

  • bash is always your first choice. You already know how to run stuff in the command line, right? So this is basically the same. bash can handle functions and arrays, but that's pretty much all it can do. However, that's usually good enough for small routines, and you can always call other Unix tools. It also avoids the overhead of running another binary (perl, php) as it is already in memory.
  • perl is great to parse text, but slow for anything else. If you need to parse text and do math, use php, which has a faster math engine. It also lacks objects. However, there are very good scientific libraries for it, so you might be forced to use this language anyway.
  • php has nice libraries to connect to databases and in general do web stuff. It is also object oriented, so it is a suitable candidate for small-medium projects which can benefit from object orientation but don't need all the infrastructure from java or C++. In general, unless you are tied to perl, php is a better choice.
  • python is, well, another scripting language. It's way better than perl, and functionally similar to php, so you might want to use it if you like its clean syntax or need to call other python libraries.
    Edit: after having used python for a long time, it is the first language I'd recommend for most use cases
  • ruby is so painfully slow that you should avoid it at any costs. I am including it here only to warn other people against using it.

Compiled languages

Once you start compiling code, things get complicated. However, the results are usually great, fast, and very maintainable. Let's discuss the alternatives.

  • java why java first? Because it's the most appropriate. It has great developing tools (Eclipse), it checks a lot of stuff in compile time, it does not need that the programmer uses pointers—it uses pointers internally, but transparently—and in general is a modern, object-oriented language, which doesn't require legacy stuff like headers. Yes, it is a bit slower than pure C, but the latest versions of the java virtual machine compile to machine code on runtime and achieve great performance. Most computer scientists have mastered it and in general it is widely extended. It is versatile and can be used from simple routines to implement web pages with JSP, to CRMs. Yes, I like java.
  • C is the mother of all programming languages, but this does not mean that it's the best one. It's old, doesn't have objects, and for every byte optimization which earns 1 second of execution time, the programmer needs to waste ten minutes. Optimizations should be done at the compiler level, not the code level. However, C has great compilers, from the good-enough gcc to the awesome icc.
    My recommendation is that you use it only if you know what you're doing. It's awful to parse strings in C, it lacks many scientific libraries compared to perl or java—except math functions, but that's what R is for—and the segmentation faults in general can make you waste several days looking into the code because you declared a variable incorrectly and you have a pagination issue.
    Some might argue that C is as good as the programmer is, but honestly, it makes good programmers waste a lot of time because of small issues.
  • C++ is the alternative if you need to use C in an object-oriented environment. The compiler is also able to run more checks in compile time, so you'll waste less time, but I'd go for java anyway. There is no reason to choose C++ a priori but execution speed
  • objective-C Apple users are sometimes tempted to write obj-C code, because of the excellent development tools on a Mac, but keep in mind that probably there is nobody else who can look at that code afterwards and understand it, because almost nobody uses obj-C. So I'd suggest not to use it unless you're in a hardcore Mac environment or are planning to develop a GUI for a Mac afterwards.
  • fortran there are only two kinds of people who use fortran: physicists and the poor fellows who have to maintain their code afterwards. It was designed for the 50s computers, which means that using it nowadays would be like using steering wheels from John Ford on today's cars. It is easier to understand f2c generated code than the original one. There is not a single reason to use fortran. If you need raw speed use C. If you want to write unmaintainable code, well, use obfuscated perl.

Choosing a language

Now for the difficult task of choosing a language. If you look again at the four items on top of this post, having read the language descriptions above, you might start to see what's going on. This is basically a matter of choosing the right language for your specific task, with some decisions.

Which are my time constraints? Beginner programmers often forget that, for homemade software, the total time constraint is the time you spend programming plus the time you spend running it. If the routine is expected to take 10 minutes, don't waste two hours writing a C program with pointers, write a simple script.

Can I solve it with a simple script? If the answer is yes, use bash. It's a great scripting language, and you can build on top of other Unix tools, like awk, sed, etc.

However, keep in mind that every time you call an external program, the system needs to fork() and, for large loops, this can be a huge overhead. Be rational, and think again of the execution time. Instead to launch 10,000 sed to parse lines, it might be better to write a php script, which is more powerful than bash, it won't need to fork() and the code will probably be simpler.

Will I need to maintain it or reuse the code? Will the code grow? If you think this code can be reused as a library, or integrated into other modules, think of making it into an actual C library or java class. Running scripts within scripts within a big project is generally a bad idea. And please keep in mind that, in a research environment, at some point another person will need to look at your code, so besides writing clean and understandable code, try not to use obscure languages or tools which only you know of.

Do I need to achieve the maximum speed and/or optimizations? Keeping in mind that the latest versions of the java virtual machine are pretty fast, yes, the winner here is C. But we're talking about software which can take you two weeks to code, and which would take months to run if written in perl, but only takes three hours when coded in C. When this happens, choose C.

Will it need to run on different platforms? java and the scripting languages are the only ones which guarantee perfect execution on every environment: Windows, Mac, Linux, Solaris, BSD and others. C can be compiled in different architectures but it's sometimes hard to replace mmap's on Windows or compile against different versions of the libc in different flavors of Linux.

Summary

Let's review the four initial points again.

  1. bash is a great initial choice for small projects which will take about 20 minutes to run and you don't want to waste three hours programming them
  2. php is appropriate for medium projects, which use objects, parse text and do math. perl is another good choice at this point.
  3. C is better left for experts or people who need hardcore optimizations. The rest of us will leave optimizations for the compiler/interpreter and just try to write good code which runs in O(n) if possible.
  4. java is the king of tools and libraries, multi-platform, scales great for big projects, is surprisingly fast and very respectful with novices. Its only drawback is the need of a java virtual machine, but hey, if you use perl you will need its libraries installed, too.

In the end, everyone has their preferred languages, which is fine. It is far more important to write good code than it is to choose the language which fits best for a task. However, failing to foresee the importance of a math routine in the and writing it in perl can lead to the whole research group wasting time until somebody else writes it in C and makes it 1000x faster. Yep, true story. So choose wisely.

Tags: programming, english

The advantages of using screen

22 de septiembre de 2011 — Carlos Fenollosa

There's a reason I posted a screen cheat sheet on my home page, and it's because I use screen so much that I actually needed one for myself.

screen is a tool which isn't suited for all audiences. Its home page states that it is a "window manager" which multiplexes terminals. That basically means it's a terminal manager, and all graphical environments have terminal managers, right? So why do we need another one which has complicated keybindings and doesn't let us use the mouse?

Well, each one might have their reasons, but for scientists there is one very clear advantage: working on the same shells from different terminals. What? Let's look at an example:

You usually have a computer from which you work every day. From that computer you ssh into different servers, clusters, etc. So, in the end, most of us have a monitor full of xterms—or any other terminal emulator. That's fine. But then we arrive home and want to check if that job we launched has crashed, because we need the results tomorrow morning. So what do we do? We ssh into our machine, or the server, open another session (that's the key here) and run some commands.

The problem is, you already had your sessions configured, maybe even set some environment variables, had the history full of commands and the terminal buffer with some output, and now you can't recover that. How about if you could restore the same sessions and windows we had at our work computer without the need to open a VNC or any other graphical screen-sharing tools? That's what screen does.

To put it plainly, screen is a daemon that handles terminal connections, which means that you can always request the same session that you had open before. Obviously it can't manage sessions unless you open them via screen, so it's a good idea to always run your terminals through it, just in case you might need to access them afterwards.

Besides ubiquitous access to your sessions, screen also provides other interesting features that make it useful even if you don't need terminal multiplexing. The first is notifications for terminals which are in background, for example, a visual message appears in your screen if there is a new output in a hidden window. This is very appropriate to avoid constantly checking minimized windows.

It also provides window managing, i.e. many terminals in a single window, and quick switching. Finally, even on today's GUI world, sometimes you need to copy&paste without a mouse, backwards buffer management, perform text "screenshots", etc.

I'll end up with a quick tutorial by an example that actually happened yesterday.

  • carlesfe@work:~$ screen
  • [screen opens, and gives me a shell]
  • carlesfe@work:~$ ssh server.com
  • carlesfe@server:~$ work on some commands... run scripts...
  • carlesfe@server:~$ launch_a_job.sh
  • [output is being generated]

Then I left work and went home. Notice that the output is still being generated, but only in the window that I had opened at work. Usually there are some other ways to check if the job is still running, but what if it crashes? At home I wouldn't normally be able to recover the error message that was printed on the screen. But with screen session management, I can do this:

  • carlesfe@home:~$ ssh work
  • carlesfe@work:~$ screen -x

And voilà! I can see the exact same window with the same session I had at work. Now I can monitor what's happening, relaunch the command easily if it crashed, and see any error messages that were output on the screen.

I started by saying that screen isn't a very user-friendly tool, but if you feel comfortable with many of the Unix tools out there, you'll get used to it very quickly. Check out this tutorial for a beginner's introduction and give it a try for some days. Once you get used to the basic C-a keystrokes and terminal management, you'll wonder why didn't you discover it years ago.

Tags: unix, english

Creating a simple blog system with a 500-line bash script

20 de septiembre de 2011 — Carlos Fenollosa

Update: the script is now at a github repo!

One of the drawbacks of data analysis is that sometimes there is a task that blocks you and you need to wait for a couple of days to continue working on that project. Yes, there are more projects, and there's always papers to read, but it's fun to start small projects that can be finished in an afternoon—let me clarify: a long afternoon.

So here it is, BashBlog v1.0, a Bash script that handles blog posting. It features:

  • Simple editing of the posts with your favorite text editor
  • Transformation of every post to its own html page, using the title as the URL
  • Generation of an index.html file with the latest 10 posts
  • Generation of an RSS file! Blog's magic is the RSS file, isn't it...?
  • Generation of a page with all posts, to solve the index.html pagination problem
  • Rebuilding the index files without the need to create a new entry
  • Google Analytics support
  • Auto-generated CSS support
  • Headers, footers, and in general everything that a well-structured html file has
  • xhtml validation, CSS validation, RSS validation by the w3c
  • Everything contained in a single 500-line bash script!
  • A simple but nice and readable design, with nothing but the blog posts

What doesn't it support? Of course, comments. Comments would greatly increase the code complexity, would require a strong antispam system to avoid flooding and might pose a security issue on the server. So sorry, but no comments, at least until I have another free afternoon waiting for some computations to finish.

I wanted to post something to celebrate the grand opening, and what's better than a meta post explaining the script that generates this blog?

In the future I'll post some scientific tips or tutorials which don't really fit on the home page and maybe some rants about my work. To end up, if you are interested in bioinformatics or general science computing, check the unix section of my home page for more tips, tutorials, FAQs and cheat sheets.

I won't post with any periodicity, so you can always subscribe to the RSS feed to get the updates delivered to you when they're generated.

Hope to have you around sometime!

Edit: If you use the script for your own blog, please send me an email with your suggestions or drop me a comment on Twitter! It will be much appreciated and, until comments are implemented, the only way to provide feedback

Tags: bashblog, english