Skip to content

Silveira Neto Posts

1) everything that’s already in the world when you’re born is just normal;

2) anything that gets invented between then and before you turn thirty is incredibly exciting and creative and with any luck you can make a career out of it;

3) anything that gets invented after you’re thirty is against the natural order of things and the beginning of the end of civilisation as we know it until it’s been around for about ten years when it gradually turns out to be alright really.

Apply this list to movies, rock music, word processors and mobile phones to work out how old you are.

by Douglas Adams in “How to Stop Worrying and Learn to Love the Internet”, August 29th 1999.

Chess Puzzles

https://lichess.org/training/qkjAy

https://lichess.org/training/aTolD

https://lichess.org/training/yzAtI

Lego Powered UP fibonacci

Version 1. Stores fibonacci(n) and fibonacci(n+1) in the variables a and b up to n=10. Waits 1 second between each iteration for visibility.

Pseudocode:

a = 0
b = 1
for (10) {
  wait(1)
  b = a + b
  a = b - a
}

Version 2. Blinks a powered up hub (88009 or any other). The led blinks the number of times of fibonacci(n) sequence.

Pseudocode:

a = 0
b = 1
light(RED)
for (10) {
  wait(1)
  b = a + b
  a = b - a
  c = b
  while (c!=0) {
    light(GREEN)
    wait(0.5)
    light(RED)
    c = c - 1
  }
}

It may look like a wait is needed at the second red light but in practice each block takes a little delay to execute.

flatten directory structure

Move files in current subdirectories to the current directory.

find . -mindepth 2 -type f -exec mv -t . -i '{}' +

Delete local folders that are empty.

 find . -empty -type d -delete

Crysis Remastered on the Switch

Although the original Crysis was launched in 2007 I have never played it until the Crysis Remastered edition on the Nintendo Switch. I have to say I’m quite impressed and delighted with the experience after finished the main game campaign.

The game

The game is comprised of 10 missions. In the first 6 missions you fight against the Korean People’s Army forces in a island. Those are the best missions. The human enemy is intelligent and powerful yet you slowly learn different ways to approach them. There is a sense of progress and experience gained. Each map is fairly large and you can decide many different ways and routes to approach the missions from more stealth to more powerful. Some of these maps like 2:Recovery, 3:Relic and 4:Assault are masterpieces of level design.

On missions 7 to 10 you fight aliens. While the change is welcome after 6 missions against the KPA, the level design becomes much more linear and the game feels hand-holding. The gameplay devolves into the classic FPS campaign cycle of die, reload last checkpoint, advance a little, and repeat. There is nothing intrinsically wrong with this cycle but after tasting the excellent level design of the first six levels this change feels like a regression.

Aside from the main campaign there is not a multiplayer mode. Replayability comes from the different difficulty levels (easy, normal, hard and delta). You can also replay specific missions from the campaign with adjusted difficulty.

The game on the Switch

Back in the day Crysis was the benchmark on the graphical capabilities of a computer system. Hence the meme “But Can It Run Crysis?”. You needed a beefy computer in order to run Crysis, a feat that my machine could not pull it off. But can the Nintendo Switch run Crysis? Yes, it can. Actually, surprisingly well given this little handheld tablet console limitations.

To this moment Crysis has the best graphics I have ever seen on this console. The lights in the forests are specially realistic. The excellent graphics combined with a smooth refresh rate, tress and buildings you can destroy, enemy intelligence, and excellent level design makes this a great game. There are frame and resolution drops here and there but these were much more forgivable than I was expecting. The game runs really well in docked mode as well specially because the smaller screen is much more forgivable than the big screen I usually play.

Gyro aiming is there and after a few settings adjustments to make it more sensitive it becomes perfect. You use the analog sticks for aiming and the gyro to fine aiming. Similar to what Splatoon does.

Conclusion

I don’t really care about impressive graphics in a game unless they are bundled with a fun game experience. Crysis Remastered is the whole package.