November 24, 2017
I have started this blog in the beginning of June. Mostly it was not about content, but about making something quick and complete, using technologies, that I’m not very aware. The most unknown thing for me was docker, and how to mount external volumes into it. For sqlite it worked well, and first version appeared very quickly.
But then, I have tried to use Migrations, very powerful entity framework feature, that allows db versioning and making modifications to it relatively easy (if you are not working in 10+ branches among 6 developers in separate teams, but that night alerts story is different).
Turns out, that sqlite does not allow ALTER TABLE
and this makes continuous changes very hard (in context of proper usage .net core). Another alternatives were SQL Server, with es waaay too overkill for small blog engine (based on vm linux with 1 gb ram) and MySql, that didn’t have proper adapter to core 2.0 by that time. Also, the way, how I pack everything into container, seems to be broken and I cannot restore new packages on vm.
I spent a lot of time, figuring, how to make it proper and how to avoid these problems. Instead of adding features and improve code architecture, I was thinking about deployment process. This is especially difficult, when you have regular job, wife, son and, besides, you are addicted gamer. Last code update, that goes to production, was three months ago.
Conclusion? KISS.
Keep it simple, stupid.
One day on work I have nothing to do (well, I supposed to test some features for the third time, but no, thanks). Two evenings and base thing was ready. Nothings special, no Identity features, no entity framework (well, on in-memory database), no npm dependencies.
On start, engine search for *.md files, read some metadata (title & date) and create html and push them to memory db. Only one page, that take optional page number, query 10 posts from db and show it. No admin pages, no logins, no version history or any other fancy features. Of course, I have roadmap (notepad entry) with staff, that I want implement, but for now it’s more than enough. Let’s call it v 0.1. Several hours and you got the result.
Thats why we are making side projects, right?
November 10, 2017
This summer was a swimtime for my devices. At first, my pebble watch didn't survived after swimming in Baltic sea, despite 30m water resistance. It was accurate after my birthday, and ended up with apple watch purchase. I should write post about them, but for another time. And, less than 2 months later, I dropped my loved iPhone 6 plus into pool, trying to make some cool night lights photo. Btw, photo was successfully uploaded to iCloud from 2 meters of water.
I turned phone off, dried it, and it even turned on for some time, but display was dead. Service guys asked for 250 Euro to complete repair and they said, that they can't provide any guarantee, that it will not break next day after fixing. Then I used iPad as main mobile device for couple weeks, which cause apparently some issues like inability for making calls (but who need that?). In the end I have bought iPhone SE 32 Gb, that I’m using since and I have some thoughts about it.
After 2 months of usage SE I ordered display and camera replacement kits for my old 6 plus iPhone. I didn't considered this option initially, this thought didnt cross my mind, that I can repair broken phone by myself, but yesterday I did it and it was not so hard. This phone is old, luggish, have crappy battery, that I will eventually replace too. But this is the best pocket device I ever had and I will continiue use it, until it will die again or I will find money for iPhone X Plus (when/if apple will release this). Even comparing with X, that I have played with in apple store, I like plus size better.
Conclusion: se is good, if you need new iphone, but dont have money. Or you need call phone with audio player. Otherwise, concider another options.
typed from iPhone 6 plus
October 2, 2017
On this weekend, I have found one weird bug. If you have fat32-formatted drive (mine was usb stick), on Mac OS you cannot load files on it bigger, than 2.1Gb. Usual threshold for this file system is 4 Gb, but not less. But, if you stick this drive into windows laptop, you can easy load 3Gb files into, and, after first big file will land on drive, even being immediately deleted, on Mac OS allowed me to write big files (up to 4Gb, of course) to it. Is it FAT32 virginity?
UPD: Unfortunatelly, I cannot reproduce this behavior.
September 13, 2017
What makes new product outstanding and represent new generation of some item, is that you can't directly compare it with the previous version and new features seemed gimmicky and not usefull at all. Eight gen is just improved seven, with better camera, cpu, gpu etc. But what would mean AR in future mobile technology, how usefull would be phone without home button and would it be ok to unlock phone with face id - only time will show. But we definetly getting new experience instead of just improvement for the first time iphone since 6 (or, in my case, samsung note).
When 5s was released, I was sure, that touchId looks abnominably, but this is one of the best that I missed in my 5yo ipad (my phone is broken now). I should throw this ipad to kindergarten at this point.
Until now, Apple didnt add new gimmicky features to phone, that appeared to be rubbish (like touchBar in macbooks). Even 3d touch is very usefull, at least, in text field areas. This is their chicken, that brings golden eggs, and they didn't want to screw it up.
However, for me this new device is still unclear and, even I would have free 1k€ to buy it, better option is to wait another year and see, how it will act in reallife.
And for me, i guess, it's time to buy iphone se and ipad 5gen. Not fancy, but proved stuff to get things done.
September 13, 2017
That was a weird vacation. Direct flight, half pansion. We didn't took excursions, we didn't rent cars, we didn't crawled down off valleys, didn't get up on volcanos, we haven't done hiking, diving, rafting nor snorkling, we haven't visited any party, bar or dance club. We were just sit in the hotel and sometimes walk to beach nearby. However, first vacation with child was the most active holiday in my life.
100% JS-free