Home For Fiction – Blog

for thinking people


javascript

Image to Text with TensorFlow

January 17, 2022

Machine learning is all the programming craze these days, so I thought to give it a shot myself. In all honesty, the (undoubtedly important) applications of machine learning are mostly outside my immediate interests, at least at present. But for fun, I thought to play with the intriguing TensorFlow.js library and see what I could come up with. In this post we’ll do an image-to-text with TensorFlow – a silly little program that takes an input image, detects its content, and generates some semi-random text with it.

A complete description of what machine learning and TensorFlow are is beyond the scope of this post. If you’re familiar with them, you anyway don’t need me to tell you. If you’re not but would like to find out more, feel free to read about them on the TensorFlow site (linked above) or Wikipedia.

And if you’re neither familiar nor interested in finding out more, you can still continue reading to see the results we can get. No programming knowledge required for reading; only curiosity.

image to text with tensorflow
Image to Text, TensorFlow style. This silly little program will detect what’s in this picture and generate some text from it.
(more…)

A JavaScript Demotivational Quote Generator

December 6, 2021

There’s a lot to like on the internet, and a lot to hate. To be fair, this is more of a pet peeve of mine (there are far more annoying and dangerous things out there), but I hate it still. I’m talking about those inspiring quotes, complete with images of butterflies and dramatic skies and believe-in-yourself-you-can-do-its. That’s why I thought to make this little JavaScript Demotivational Quote Generator.

I guess the reason I hate such designs is because they summarize some of the things I truly loathe, such as hypocrisy and the scourge that is simple answers to complex questions. Everything today, every experience and every instance of thought seems to be condensable into a neatly packaged, context-free sentence. It’s truly disgusting, and I mean that the same way Slavoj Žižek expertly expressed:

Click to display the embedded YouTube video

facade placeholder

And so, I decided to do something about it. It seems any idiot can pair together some fancy words and some nice images, so why not this one. The whole thing is a bit like making up a horoscope, truly. So, with these in mind, let me show you what I made.

JavaScript Demotivational Quote Generator
No JavaScript Demotivational Quote Generator is complete without cats!
(more…)

A Modern Text Adventure Game: Mansion Escape v2, in Your Browser!

February 8, 2021

Yes, I’ve got some really important news! As a name, Mansion Escape might be familiar to you, if you’ve played its first iteration on Android. But I decided to take this to a whole new level. Mansion Escape is dead, long live Mansion Escape! A modern text adventure game, in the style of the early computer-game era, but updated for modern audiences, with attractive visuals, immersing sounds, and enhanced playability.

More importantly, this is no longer just an Android app. This is a game you can play in any modern browser, be it on mobile, desktop, PC, Mac, or Linux. You can save on your mobile and continue from your PC. Is that cool or what?

But what does a modern text adventure videogame include? What is it about? And where can you try it?

Read on to find out!

modern text adventure
What should a modern text adventure look like? Well, like Mansion Escape of course!
(more…)