The real April Fools from the Google Japanese Input team

Like every year, the team behind Google’s Japanese keyboard for Android has come up with a new innovative way to write with the keyboard, drawing kana on a keyboard.

IThe video explains the mechanism in a funny way.

What’s more interesting, is that, as they did with the “flick keyboard”, this project actually exists, the source code is on GitHub, available for everyone!

Did you remember the joke “with morse code you type much faster“from Google (USA)? 4 faked screenshots, and nothing real… but obviously the japanese team created a real device πŸ˜‚ (Video, source code)

And every year new, crazy ideas:

  • Write using a party horn (Video, source code) – perfect for when your hands are busy or it’s not appropriate to use vocal dictation (crying kid)
  • Write using bubble wrap like a punched card (Video, source code)
  • Write scrolling letter by letter on a flipping display, like the ones at stations and airports (Video, source code)

Fresh Goji Berries

Have you ever heard of goji berries? They are becoming popular here, in Italy.

Leaving aside the fact that marketing gives them miraculous properties while increasing 5000% the original price, I have always wondered why it’s always dry, it’s not fresh, even when you buy it in China. I am curious to taste them.

The answer is easy, and I discovered it by looking at the documentary below this article (audio in Chinese, subtitles in English). Simply… the berries are very delicate, the skin is very fragile, so they are dried immediately, for preserving them. The only way to try a fresh one is to go personally in deserts of northwestern China during the harvesting period and collect them yourself. (Read: I probably will never have the chance to taste them)

https://www.youtube.com/watch?v=vsfswOVi0NA

Creative ads: Future with bright lights

Kandenko, a japanese firm that does electric works, has done this ads for their brand identity. With simple cardboard shapes and a conductive ink marker they did a masterpiece:

If you want to know about the company name: right now it’s KanDenKo (ι–’ι›»ε·₯), that’s short for Kantou Denki Kouji (閒東電気ε·₯δΊ‹) – Kanto electric works.

Japanese socks

This one in the picture is the sock I’m talking about.

Quite normal, maybe it does not deserve a full story on DanDanDin, but who knows…

It all starts out outside the Toei Studio Park in Kyoto. It is a park/film studio where hundreds of movies and TV series are recorded, set in the samurai era.

The surroundings do not offer many options, but being a bit far from the city center, and having gone there on purpose, I decided to explore the whole area, making a “discovery”.

I see a “Lawson 100”, a little different from the normal ones.

The Lawson are small shops, called コンビニ, convenience stores, which have virtually everything you need for everyday life. Being small, it doesn’t offer a big variety, but they have a solution for every eventuality. I made some videos, but I do not remember if I published them… I have hundreds of videos waiting forever to be edited/published…

In short, normally a Lawson has two characteristics:

  • The corporate colors are white and blue
  • Every object for sale has its price

Instead, this is the “Lawson 100”, from outside:

(I was so ecstatic that I forgot to take photos or videos of it, this comes from Google Maps…)

Green and white, with the 100 doing a wink πŸ˜‰

Never seen before. Intrigued, I enter the store, and I noticed something weird.

“Ah well, this drink costs 100 yen (1 euro) instead of 120 that ask from other parts”

“Um, this onigiri costs 100 yen instead of 140”

“Hey even these snacks cost 100 yen”

…and then I realize it! Everything costs 100 yen! I love 100 yen shops like Daiso! (Daiso is a chain of stores where everything is sold for 100 yen)

I start to look at everything, buying a lot of stuff. For example, I took these “fettuccine”, cola flavor.

Then I see them there, on the shelf. Three socks for 100 yen, one size. Beautiful! I had already taken a package of 5 for 500 yen from GU (a clothing chain) and they were of excellent quality, but a pair of socks is always useful. I’ll take them right away!

They are a single size and are very tight…

The futuristic Xiaomi facial recognition

On my Xiaomi Mi 5X, after installing one of the BETA weekly updates, a new feature appeared: unlocking the phone with facial recognition, iPhone X style.

Intrigued, I immediately activated it, but I had with very low expectations: while on iPhone X there is a 3D scanner that can recognize an “alive” face from a photo, on other phones is much more “basic”, since it uses the front camera.

Anyway, I do not have anything important on the phone, so the possibility that someone else can unlock the phone by showing a picture of me is not a big deal.

I immediately saw how convenient it was: I raise the phone, the screen turns on automatically, I look at it, it unlocks. Fantastic. Indeed, better than iPhone X, because you do not have to swipe your finger to confirm, and anyway, I could always unlock via fingerprint on the back sensor! The best of both worlds!

Then one evening I went out and the phone unlocked in an almost completely dark room. Wow, in this room it’s so dark that I can not recognize people with my own eyes, how the phone could manage this?. Then I thought… an iPhone X uses some kind of Kinect (Apple acquired the company that invented the Kinect sensor a few years ago) and manages to see in 3D in absolute darkness, while my phone uses a common photo sensor, not able to see in the dark.

What a Kinect can see in the dark

I tried the recognition on an Asian face and it unlocked! I had low expectations on security, but I did not imagine that he was totally incapable of distinguishing an Asian face from a European face!

I immediately disabled it…

Coin Crypt

Cryptocoins! No, Coin Crypt it’s a 4-5 years old game, that I got as a gift on Steam a few years ago.

How does it work: without a tutorial, you’re on a Pacific island, on the ruins of an ancient coin-based civilization. Soon, you have to understand that some coins can be used for attacks, other for defense, some of them heal, and some… have just a monetary value: so you have to prepare a strategy, don’t waste coins on weak monsters (no coins = game over), spend them in donations, and so on.

If you have an Xbox controller the interface it’s very easy, you OK with the right trigger, you choose the coins with the buttons shown on screen. If, like me, you use a Dualshock 4, either you have already got muscle memory about the different buttons (X = square, A = X, and so on), either you’re going to suffer a bit.

Technically the game is easy: there are three random levels, a final boss, and victory! Basically, it all depends on your luck/patience/strategy/choices.

The more you play, the more coins you can spend to unlock other characters, with many different personalities. For example, the ghost will find more coins, but will lose them on the road; the monkey will use all the coins in the hand during a battle, it can be a good thing, but also a disaster.

As a game, it’s easy to learn, but hard to master: in order to fully completing it you need a lot of patience and time. If like me, you have small patience and less time… after a few game overs, you’re going to be bored.

There’s also a daily challenge, all the players try the same world with the same character, competing for the highest score.

About crypto coins in coin crypt… during a game, you can find a computer. If you spend a coin on it you can mine a crypto coin… with a value, like almost in the real value, totally volatile and unpredictable, as it changes randomly at the beginning of the level.

Searching for the perfect speed

Since I got the crazy idea to radically change this website engine, from Windows+mojoPortal to Linux+PHP, I noticed that I need a LOT of more CPU time to generate each page:

cpu-year

It uses a lot of processor time, but requests are much more faster… if the page has been “cached”:

http_loadtime-year

In my experiments I saw that the forum that I was using (bbpress) slows down the site a lot: it loads a lot of useless javascript in all pages, and doesn’t allow “caching” the pages. So I temporarily disabled the forum, searching for a temporary solution. I’m thinking to use Discourse

What does “root” means?

In computer terms, with root we can mean:

  • Root as user
  • Root as in file path

If we mean root as an user, we mean the main user, the one with the “master” control of the machine. For example, if you have root on Android, it means you can do whatever you want it it.

If you mean root as a file path, it’s the base, just place the file outside any folder. If you’re using the D: drive, by saying “place the file in root”, it means just place it on D:

How to control a lamp via Arduino

In the last posts I wrote that I bought a lot of Arduino stuff, to try to build something interesting, but I didn’t show anything.

This is the first example, the easiest: how to control a lamp.

Ingredients:

The circuit and the code it’s super easy and it’s on GitHub.

Code explanation:

  1. in setup() we declare that pin 7 is an output
  2. in loop() we turn on pin 7
  3. We wait 10000 milliseconds (10 seconds) before running next instruction
  4. We turn off pin 7
  5. We wait another 100000 milliseconds
  6. We start again from point 2

The result is that we have turn on and off the lamp every 10 seconds.

Obviously, this is an useless circuit, but we can expand it, for example by controlling the lamp via Bluetooth or via WiFi.

How to change the email in WordPress

I don’t see a logical reason behind it, but WordPress is designed for sending emails from the address [email protected]

Did you spent hours to search where in the settings it’s possible to change this address? Wasted time, there the address is hardcoded, you can’t easily change it!

There are 2 ways to change it:

  1. Install a plugin like this: https://wordpress.org/plugins/wp-change-default-email/
  2. Write a few lines inside the functions.php in the theme (better if it’s a child theme)

Since I try to avoid to install WordPress plugins, I chose option 2.

In functions.php, add this:

// change the email
function wpb_sender_email( $original_email_address ) {
    return '[email protected]';
}

// change the name
function wpb_sender_name( $original_email_from ) {
    return 'Your Name';
}

// Hook those functions to WP 
add_filter( 'wp_mail_from', 'wpb_sender_email' );
add_filter( 'wp_mail_from_name', 'wpb_sender_name' );