tag:blogger.com,1999:blog-36564969572310208902024-03-11T14:31:29.940+01:00Lorenz Merdian's infamous upcoming stuffStuff i'm working on. Or have worked on. Or stuff that just wanders in my head.Anonymoushttp://www.blogger.com/profile/17837506500114816175noreply@blogger.comBlogger85125tag:blogger.com,1999:blog-3656496957231020890.post-59905202471371827602016-03-05T20:43:00.000+01:002016-03-05T20:51:56.181+01:00Just a (Very) Quick Update<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyL3y61qzQEVSBBFGqD8rtq8zAwjBSy1as7LO848xMTx7J5UWy5SV8_-WRayix0GWFTLIbo3lf7Yzms1KUtpir4z58mchiOrM1YkDRf2MciJEZEGpqp2Z7gshWegVBjPGZFBRlmuMKjf0/s1600/IMG_2495.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="640" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyL3y61qzQEVSBBFGqD8rtq8zAwjBSy1as7LO848xMTx7J5UWy5SV8_-WRayix0GWFTLIbo3lf7Yzms1KUtpir4z58mchiOrM1YkDRf2MciJEZEGpqp2Z7gshWegVBjPGZFBRlmuMKjf0/s640/IMG_2495.JPG" width="640" /></a></div>
<br />
<br />
My stuff is sorted.<br />
My stuff is minimized (well, kinda).<br />
<br />
I really recommend Mari Kondo's method in her outstanding book "<a href="http://tidyingup.com/books/the-life-changing-magic-of-tidying-up-hc">The life-changing magic of tidying up</a>". I really like this book.<br />
<br />
My key take aways:<br />
<br />
<br />
<ol>
<li>Process by category, not by room.</li>
<li>Put everything on the floor. </li>
<li>Keep only the things you really like. Or, as Mari put it: "Things that spark joy"</li>
<li>Store those items vertically.</li>
<li>Avoid "clever" storage solutions.</li>
</ol>
<div>
<br /></div>
<div>
So long,</div>
<div>
Lorenz</div>
Anonymoushttp://www.blogger.com/profile/17837506500114816175noreply@blogger.com1tag:blogger.com,1999:blog-3656496957231020890.post-38859277860699768032015-12-30T17:55:00.000+01:002015-12-30T17:55:23.006+01:00So, what to do in 2016?<div class="separator" style="clear: both; text-align: center;">
<a href="https://images.unsplash.com/photo-1446603420622-4c498ae0cc8e?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&s=f415319f09a5238ba31f1375222b3c2e" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="426" src="https://images.unsplash.com/photo-1446603420622-4c498ae0cc8e?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&s=f415319f09a5238ba31f1375222b3c2e" width="640" /></a></div>
<br />
<br />
I have a hard time deciding what to do. There are so many options. Waaaaah!<br />
<br />
Should I learn a new language? A new programming language? Some frameworks? An instrument? Juggling? How to solve the rubics cube?<br />
<br />
The possibilities are nearly endless.<br />
<br />
So, what is really important to me?<br />
<br />
My family is. Getting better at things I love to do. Getting my shit together. Living a healthy live.<br />
<br />
So, my priorities for the upcoming year:<br />
<ul>
<li>I want to live healthier than the passing year. I want to look at the mirror and not think about the beer belly I have to look at. Hence I want to lose weight. Not something too crazy. But by June 30th, I want to weight 75kg. (Last time I stood on the scale, it showed something like 86+ kg).</li>
</ul>
<ul>
<li>I want to build stairs in my garden so that the front part is not just a piece of mud anymore. I want to finish that project by 30th of September. Wake me up, when September ends.</li>
</ul>
<ul>
<li>I want to clean up my house. Yep. I want a clean basement. I want t clean living room. Yes, I know I have kids. Yes, I hate hate hate hate messy places. Anyway: The rules that seem appealing for me are:</li>
<ul>
<li>Nothing lies on the floor</li>
<li>Every item I am responsible for has a designated place to "live".</li>
<li>Cleaned up before 28th of February.</li>
</ul>
</ul>
<div>
Actually, those are the first three items for this year. There's a lot more at my "to do later list". See last year's resolution. See my "watch later" playlist on YouTube. See "to be sorted" folder on my Desktop. It all can wait. First the things I wrote here.</div>
Anonymoushttp://www.blogger.com/profile/17837506500114816175noreply@blogger.com1tag:blogger.com,1999:blog-3656496957231020890.post-73492024043518919282015-12-30T00:09:00.002+01:002015-12-30T17:59:09.060+01:002015. My year of unfulfilled resolutions. And my some thoughts on my new years resolution.<div class="separator" style="clear: both; text-align: center;">
<a href="https://images.unsplash.com/photo-1428591850870-56971c19c3d9?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&s=f0b7f6b60ead2dfde7a114f0a9e743fe" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="426" src="https://images.unsplash.com/photo-1428591850870-56971c19c3d9?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&s=f0b7f6b60ead2dfde7a114f0a9e743fe" width="640" /></a></div>
<br />
Sigh. I wanted to learn so much stuff this year. Exiting stuff. Great stuff. Of which I accomplished only a small fraction.<br />
<br />
Let's take a closer look at all of those items I wanted to learn.<br />
<br />
Programming languages:<br />
<ul>
<li>Python</li>
<li>Rust</li>
<li>Go</li>
<li>Ruby</li>
<li>Haskell</li>
<li>Prolog</li>
<li>Scala</li>
</ul>
Frameworks:<br />
<ul>
<li>Ext JS</li>
<li>Spring</li>
<li>Spring MVC</li>
<li>EmberJS</li>
<li>Express</li>
<li>Ionic</li>
<li>MongoDB</li>
<li>Docker</li>
<li>Node.JS</li>
</ul>
Let's look at the programming languages one by one. I have learnt Python a little bit. So much, n fact, that I was able to write DubbelVla. But not that much, that I would apply for a job demanding Python experience.<br />
<div>
Rust, Go, Ruby, Haskell, Scala weren't touched by me at all. My progress in PROLOG resulted in writing some half-assed code failing to load contents from a file.</div>
<div>
<br /></div>
<div>
Now let's look at the frameworks. I haven't touched Spring. I wrote just a little bit code in Spring MVC, just enough to get some stuff done on the job. EmberJS, Express, Ionic, MongoDB, Docker I haven't touched at all. I used NodeJS to write some mini script for some special task I don't even remember any more. The framework I learnt best is ExtJS. I know ExtJS pretty good today. The others not so much.</div>
<div>
<br /></div>
<div>
So, how do I go from here? First, I have to realize, I was waaaay too ambitious. I thought: Hey, that would be cool to learn. I would be cool if I knew Docker. Perhaps comparable to some teenager boy who thinks he would be cool if he learnt to play the guitar.</div>
<div>
<br /></div>
<div>
The problem is, it had no real value for me. Being cool for the sake of being cool just does not cut it.</div>
<div>
Another problem is: If you want to do so much, there's alway some shit that you don't do. When I learn ExtJS, I can't learn Docker. I completely lacked any priority.</div>
<div>
But that's not enough of problems: My resolutions also completely lacked any scope. What the heck does it mean to "learn Ionic"? Read some shit about it? Surf their website? Create a multimillion code-line app with Ionic? I had no clue and I still don't.</div>
<div>
<br /></div>
<div>
So. Now What? Avoid all new year's resolutions? Nah. Don't want to.</div>
<div>
<br /></div>
<div>
I have to come up with some new year's resolutions. Some that are meaningful. Some that are scoped. Some that are well chosen and not just a bunch of random items. I will do that tomorrow.</div>
Anonymoushttp://www.blogger.com/profile/17837506500114816175noreply@blogger.com1tag:blogger.com,1999:blog-3656496957231020890.post-51228873372971355512015-02-25T21:29:00.001+01:002015-02-26T10:41:40.937+01:00DubbelVla is ready for dessert<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRymYrDQ3MJJv8NPmvXXjZIBTdjQRJJPcFHc-ba5Hwv_5Xyyqm4uzDOb8hPEawjeuBQgC6osRTL0aPbFwLuM5eEqkedc0KOTYAnkvTgE7EEOH0ZgtTLnfOfOk7PV8WvaY387Z4H-HxvZU/s1600/dubbelvla.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRymYrDQ3MJJv8NPmvXXjZIBTdjQRJJPcFHc-ba5Hwv_5Xyyqm4uzDOb8hPEawjeuBQgC6osRTL0aPbFwLuM5eEqkedc0KOTYAnkvTgE7EEOH0ZgtTLnfOfOk7PV8WvaY387Z4H-HxvZU/s1600/dubbelvla.jpg" height="640" width="426" /></a></div>
<br />
It feels great. I just "finished" my first Github project: <a href="https://github.com/loie/DubbelVla">DubbelVla</a>.<br />
It lists identical files in one directory.<br />
<br />
I learned a little bit of Python for this one. Although I don't know much Python, those were the things, that made me like this language:<br />
<br />
<br />
<br />
<ul>
<li>Syntax. It just so beautiful. I wish, JavaScript had this great syntax</li>
<li>OMG, it's functional. Did not expect that. Something more to dive in.</li>
<li>Maps with JSON-like Syntax. Like. <complete id="goog_805999440">+1.</complete></li>
</ul>
Anonymoushttp://www.blogger.com/profile/17837506500114816175noreply@blogger.com1tag:blogger.com,1999:blog-3656496957231020890.post-52924337996346041552015-02-22T00:29:00.000+01:002015-02-22T00:29:03.361+01:00Update on My Learning<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8-LHCs79U-pKkUvdjf1swKu-fXVqbIpUneVP8-USjmN6TgzV7oKxa69XbA9OpOHYOt8LLSsY2OZIo2NOfJk_VsrtX5u7nmfa4dh76oLfTIEGS0Q-Q529Oogm00fZCCHQXWhpGrk3iTWc/s1600/3765c625.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8-LHCs79U-pKkUvdjf1swKu-fXVqbIpUneVP8-USjmN6TgzV7oKxa69XbA9OpOHYOt8LLSsY2OZIo2NOfJk_VsrtX5u7nmfa4dh76oLfTIEGS0Q-Q529Oogm00fZCCHQXWhpGrk3iTWc/s1600/3765c625.jpeg" height="426" width="640" /></a></div>
<br />
<br />
Hi there,<br />
<br />
I'm going to specify more on the stuff I'm going to learn this year.<br />
<br />
So, for the seven programming languages:<br />
<br />
It's really tempting to buy just the book "<i>7 Programming Languages in 7 Weeks</i>" and do just that.<br />
That would be sensible in many ways, and perhaps I'll do that.<br />
<br />
So: These are the seven languages I'm going to learn this year:<br />
<br />
<br />
<ol>
<li>Python</li>
<li>Rust</li>
<li>Go</li>
<li>Ruby</li>
<li>Haskell</li>
<li>Prolog</li>
<li>Scala</li>
</ol>
<br />
<br />
Currently, I'm learning Python. <a href="https://github.com/loie/dubbelvla">DubbelVla</a> will be my the project to be implemented in this newly learned language.<br />
<br />
For the other languages, I will decide when I finish DubbelVla. I will think about a new project to learn each language.<br />
I don't know about Swift, about R and other cool stuff, that's on my personal hype list. It would be great and learn all of them but I don't think I have the time.<br />
<br />
<br />
So, what about the seven frameworks, libraries, whatever?<br />
<br />
<br />
<ol>
<li>Ext JS</li>
<li>Spring</li>
<li>Spring MVC</li>
<li>EmberJS</li>
<li>Express </li>
<li>Ionic</li>
<li>MongoDB</li>
<li>Docker</li>
<li>Node.JS</li>
</ol>
<div>
Yup, now I named them. I can't decide which of them to take. Anyway, I will have at least learned seven of them.</div>
Anonymoushttp://www.blogger.com/profile/17837506500114816175noreply@blogger.com0tag:blogger.com,1999:blog-3656496957231020890.post-78351710502510736152014-12-31T13:10:00.000+01:002014-12-31T13:10:07.529+01:00Challenges for 2015<div class="separator" style="clear: both; text-align: center;">
<a href="https://ununsplash.imgix.net/reserve/ZF75d1lhQ0SyLWYEGOqO_21_forest_mountains.jpg?q=75&fm=jpg&s=1e79f79890f00672658d5b6db465fa63" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="422" src="https://ununsplash.imgix.net/reserve/ZF75d1lhQ0SyLWYEGOqO_21_forest_mountains.jpg?q=75&fm=jpg&s=1e79f79890f00672658d5b6db465fa63" width="640" /></a></div>
<br />
So, after an awesome year 2014, filled with interesting challenges, I have learned a lot.<br />
<br />
<ul>
<li>I did not know that I enjoy hot drinks that much.</li>
<li>I did not know that you might get used to almost anything</li>
<li>I did not know that drinking water each day was really good</li>
<li>I did not know that not drinking alcohol was not really a problem</li>
<li>I did not know that I am so incredibly lazy</li>
<li>Sleep deprivation is an experience I do not seek again.</li>
</ul>
<br />
Nevertheless, I decided to take a new approach:<br />
<br />
Instead of monthly challenges, I will have just some goals to be fulfilled this year.<br />
<br />
These will be:<br />
<br />
<ol>
<li>Learn seven new programming languages</li>
<li>Learn at least seven frameworks, libraries, whatever. This will be mainly web frontend related stuff</li>
<li>Finish seven projects and put them on GitHub. (some of them are already existent in my GitHub account, but no commits yet.)</li>
<li>Cook a new meal for my family once a month</li>
</ol>
<div>
Let's bring it on!</div>
Anonymoushttp://www.blogger.com/profile/17837506500114816175noreply@blogger.com0tag:blogger.com,1999:blog-3656496957231020890.post-89338666778079814382014-12-31T12:39:00.002+01:002014-12-31T12:39:52.284+01:00One Month Without an Smartphone<div class="separator" style="clear: both; text-align: center;">
<a href="https://ununsplash.imgix.net/1/iphone-4-closeup.jpg?q=75&fm=jpg&s=1c8702f6fd07ef4d305c194277bc9d57" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="426" src="https://ununsplash.imgix.net/1/iphone-4-closeup.jpg?q=75&fm=jpg&s=1c8702f6fd07ef4d305c194277bc9d57" width="640" /></a></div>
<div>
<br /></div>
This month was sometimes weird, sometimes it just sucked and sometimes I did not miss a thing.<div>
<br /></div>
<div>
<b>The Good</b></div>
<div>
<ul>
<li>Its easier to focus on conversations with the other person when you're not constantly distracted by some notifications and habit-shaping glances on your phone.</li>
<li>It's easier to realize what's happening around you</li>
</ul>
<div>
<b>The Bad</b></div>
</div>
<div>
<ul>
<li>I did miss an appointment because I did not take a look at my calendar that day. So I disappointed one person, who did need my help.</li>
<li>My online communication via WhatsApp was nonexistent this month. So I might miss something urgent. But I think, if it might be something important (not to be confused with urgent), The people had plenty of other ways to contact me.</li>
<li>I forgot my phone way more often at home than before. One time it resulted in a awful misunderstanding between me and my wife. This sucked so much.</li>
</ul>
<div>
<b>The Ugly</b></div>
</div>
<div>
<ul>
<li>My wife uses Pintrest since yesterday. It did suck up about one hour on my life to stare on her screen.</li>
<li>Writing text messages with T9 sucks so much, I will never miss it any more. I have to admit, I really hated it.</li>
<li>I still wasted some time with playing a silly game (coded in Java for Embedded Systems, good old times).</li>
<li>I tend to adopt an "better-than-thou"-attitude. "Hey, you still use a smartphone? You social outcast instant-gratification monkey!". That is a attitude I really had to watch out for and capture it, not letting any room to breathe.</li>
</ul>
</div>
Anonymoushttp://www.blogger.com/profile/17837506500114816175noreply@blogger.com0tag:blogger.com,1999:blog-3656496957231020890.post-21041307633190092342014-12-13T14:33:00.000+01:002014-12-13T14:33:05.569+01:00How I see Others In my Month Without a Smartphone<div class="separator" style="clear: both; text-align: center;">
<a href="https://pbs.twimg.com/media/B3zDoFLIAAAkyqC.jpg:large" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="640" src="https://pbs.twimg.com/media/B3zDoFLIAAAkyqC.jpg:large" width="432" /></a></div>
<br />
<div style="text-align: center;">
<a href="https://twitter.com/DesignTimes/status/539521149395566593/photo/1">As seen on Twitter</a>.</div>
Anonymoushttp://www.blogger.com/profile/17837506500114816175noreply@blogger.com0tag:blogger.com,1999:blog-3656496957231020890.post-89860110726389780602014-11-30T22:11:00.001+01:002014-11-30T22:11:06.160+01:00Today I learned: Avoiding My Smartphone for One Months Seems Pretty Scary<div class="separator" style="clear: both; text-align: center;">
<a href="https://unsplash.imgix.net/uploads/14120938606568dde6e2b/c9e42240?q=75&fm=jpg&s=30cfed70f59bbfce34b374e629bb5f84" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="426" src="https://unsplash.imgix.net/uploads/14120938606568dde6e2b/c9e42240?q=75&fm=jpg&s=30cfed70f59bbfce34b374e629bb5f84" width="640" /></a></div>
<br />
I have decided, to set my smartphone aside for December.<br />
This seemed pretty easy at first sight, but now it seems kinda frightening: I think, that some things will be more cumbersome.<br />
<br />
I used to plan my day the night before on a smartphone. I wrote some articles for this blog on my smartphone. I used to make note on my smartphone. Almost all my appointments are made on my smartphone. Almost all of my ideas are captures on my smartphone. Much of my communication is run via WhatsApp, so almost exclusively on my smartphone. Much of distractions are also from smartphone: Reddit, messages, notifications. Sometime silly, but also fun games.<br />
<br />
So, my smartphone is something I use everyday. More than I realized before.<br />
And this step is now something frightening.<br />
<br />
I will have to rely on my computer to plan my day (I need notifications for my tasks). I will have to take my notebook (not the computer, I mean the thing you write on) to make notes. I will have to rely on email (on my computer), and SMS for async communication. Feels a little bit like 2004.<br />
<br />
Anyway, I'm glad not having to write anymore articles everyday. But somehow, I liked it. It forced me to reflect every day on what happened, what I have learned. It kinda rocked.Anonymoushttp://www.blogger.com/profile/17837506500114816175noreply@blogger.com0tag:blogger.com,1999:blog-3656496957231020890.post-4882663643785317072014-11-29T23:30:00.000+01:002014-11-30T22:18:42.737+01:00Today I Learned: Psalm 22 ist a prophecy fulfilled<div class="separator" style="clear: both; text-align: center;">
<a href="https://ununsplash.imgix.net/40/OSASuBX1SGu4kb3ozvne_IMG_1088.jpg?q=75&fm=jpg&s=d6ce591c2de5ee7a465c856782fe765c" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="426" src="https://ununsplash.imgix.net/40/OSASuBX1SGu4kb3ozvne_IMG_1088.jpg?q=75&fm=jpg&s=d6ce591c2de5ee7a465c856782fe765c" width="640" /></a></div>
<br />
In John 19 it is written, that the soldiers cut Jesus clothes into four parts and gambled for his tunic. This scene is explained with these words:<br />
<br />
<div style="text-align: left;">
<i>"They said therefore among themselves, "Let us not tear it, but cast lots for it, whose it shall be," that the Scripture might be fulfilled which says: "They divided My garments among them, And for My clothing they cast lots." Therefore the soldiers did these things."</i></div>
<div style="text-align: center;">
<br /></div>
A wonderful example of explaining the scripture with the scripture. But where does this stand, what is fulfilled? You guess right: Psalm 22.<br />
<br />
In my opinion (and luckily, not only mine alone) this Psalm explains how the Cruscofication of Jesus felt. From Jesus' point of view.<br />
Just read some verses:<br />
<br />
<i>Verse 8: "He trusted in the Lord, let Him rescue Him; Let Him deliver Him, since He delights in Him!"</i><br />
-- That's what some people shout at him when he is at the cross.<br />
<br />
<br />
<br />
<i>Verse 15: "My strength is dried up like a potsherd, And My tongue clings to My jaws; You have brought Me to the dust of death."</i><br />
-- That's how you feel, hanging on a tree<br />
<br />
<br />
<i>"For dogs have surrounded Me; The congregation of the wicked has enclosed Me. They pierced My hands and My feet;"</i><br />
-- Guess what happened to Jesus' feet and hands<br />
<br />
<br />
<i>"They divide My garments among them, And for My clothing they cast lots."</i><br />
-- Guess why this is quoted in John.<br />
<br />
<br />
<br />
Jesus himself quotes Psalm 22, when dying:<br />
<i>"My God, My God, why have You forsaken Me?"</i><br />
<i><br /></i>
<i><br /></i>
<br />
And last, and maybe least, but nonetheless interesting fact: These verses were written by David, who was King of the Jews. Jesus has been hung because the Sanherin said, that Jesus was King of the Jews.<br />
Thing like these explanations are one point why I love the bible.Anonymoushttp://www.blogger.com/profile/17837506500114816175noreply@blogger.com0tag:blogger.com,1999:blog-3656496957231020890.post-48926290544758835362014-11-28T23:52:00.001+01:002014-11-28T23:52:21.065+01:00Today I learned: It's more important how you do it than what you do.Today, I was pissed off. I kinda saw no point in what I was doing. Every thing I moved, annoyed me. I groaned. I was in really bad temper.<br />
<br />
Later that day my wife told me, that she was disappointed in me. It used to be fun doing that kind of work, but today my bad mood created bad mood in her. This sucks. I was an idiot, once again.<br />
<br />
So, I experienced today first hand, that what you say or do does not matter as much as how you say or do it.<br />
<br />
If I communicated my feelings and my expectations better, without all that annoyances, without groaning, but with seeking of understanding for the other person.<br />
<br />
If I would handle that situation in this way, it would have been a way better to spend the afternoon.<br />
<br />
So, instead of being annoyed, think about what it could mean. I bet in most cases you are angry, because your standards or your expectations are not met. If this is the case, either reflect whether your expectations are adequate and if not, correct them. If you think, they are adequate, communicate them as soon as possible, immediately at best.<br />
<br />
I think, that could work wonders.Anonymoushttp://www.blogger.com/profile/17837506500114816175noreply@blogger.com0tag:blogger.com,1999:blog-3656496957231020890.post-43066370474433712502014-11-27T23:52:00.002+01:002014-11-27T23:54:20.615+01:00Today I learned: JavaScript's continue is only allowed in loops<div class="separator" style="clear: both; text-align: center;">
<a href="https://ununsplash.imgix.net/photo-1416339276121-ba1dfa199912?q=75&fm=jpg&s=9bf9f2ef5be5cb5eee5255e7765cb327" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="480" src="https://ununsplash.imgix.net/photo-1416339276121-ba1dfa199912?q=75&fm=jpg&s=9bf9f2ef5be5cb5eee5255e7765cb327" width="640" /></a></div>
<br />
Reading through the basics of JavaScript, I wondered whether you could simulate a <span style="font-family: Courier New, Courier, monospace;">while</span> statement with a <span style="font-family: Courier New, Courier, monospace;">switch</span> statement. You might ask yourself: <i>Wait, what?</i><br />
<br />
Let me explain: I thought some crazy thoughts. If you could combine labels, a dynamic case statement, and the continue statement, you could fake the while loop. Let's look at an example:<br />
<br />
Let's compute some Fibonacci numbers, the classical way.<br />
<br />
<span style="font-family: Courier New, Courier, monospace;"><span style="color: #0b5394;"><b>var</b></span> <span style="color: #38761d;"><b>a</b></span> = [<span style="color: #990000;">0</span>, <span style="color: #990000;">1</span>],</span><br />
<span style="font-family: Courier New, Courier, monospace;"> <span style="background-color: white;"><span style="color: #38761d;"><b>num</b></span></span> = <span style="color: #990000;">10</span>,</span><br />
<span style="font-family: Courier New, Courier, monospace;"> <span style="color: #38761d;"><b>i</b></span> = <span style="color: #38761d;"><b>a</b></span>.length,</span><br />
<span style="font-family: Courier New, Courier, monospace;"> <span style="color: #38761d;"><b>result</b></span>;</span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;"><b><span style="color: #0b5394;">while</span></b> (<span style="color: #38761d;"><b>i</b></span> < <span style="color: #38761d;"><b>num</b></span>) {</span><br />
<span style="font-family: Courier New, Courier, monospace;"> <span style="color: #38761d;"><b>a</b></span>.push(<span style="color: #38761d;"><b>a</b></span>[<span style="color: #38761d;"><b>i</b></span> - <span style="color: #990000;">1</span>] + <span style="color: #38761d;"><b>a</b></span>[<span style="color: #38761d;"><b>i</b></span> - <span style="color: #990000;">2</span>]);</span><br />
<span style="font-family: Courier New, Courier, monospace;"> <span style="color: #38761d;"><b>i</b></span> += <span style="color: #990000;">1</span>;</span><br />
<span style="font-family: Courier New, Courier, monospace;">}</span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: inherit;">And so I thought to myself, maybe you could do something like that instead of the </span><span style="font-family: Courier New, Courier, monospace;">while</span><span style="font-family: inherit;"> loop.</span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;"><span style="background-color: white;"><span style="color: #a64d79;">loopMe</span></span>:</span><br />
<span style="font-family: Courier New, Courier, monospace;"><span style="color: #0b5394;"><b>switch</b></span> (<span style="color: #38761d;"><b>i</b></span>) {</span><br />
<span style="font-family: Courier New, Courier, monospace;"> <span style="color: #0b5394;"><b>case</b></span> <span style="color: #38761d;"><b>i</b></span> < <span style="color: #38761d;"><b>num</b></span>:</span><br />
<span style="font-family: Courier New, Courier, monospace;"> <span style="color: #38761d;"><b>a</b></span>.push(<span style="color: #38761d;"><b>a</b></span>[<span style="color: #38761d;"><b>i</b></span> - <span style="color: #990000;">1</span>] + <span style="color: #38761d;"><b>a</b></span>[<span style="color: #38761d;"><b>i</b></span> - <span style="color: #990000;">2</span>]);</span><br />
<span style="font-family: Courier New, Courier, monospace;"> <span style="color: #38761d;"><b>i</b></span> += <span style="color: #990000;">1</span>;</span><br />
<span style="font-family: Courier New, Courier, monospace;"> <b><span style="color: #0b5394;">continue</span></b> <span style="color: #a64d79;">loopMe</span>;</span><br />
<span style="font-family: Courier New, Courier, monospace;"> <span style="color: #0b5394;"><b>default</b></span>:</span><br />
<span style="font-family: Courier New, Courier, monospace;"> <span style="color: #0b5394;"><b>break</b></span>;</span><br />
<span style="font-family: Courier New, Courier, monospace;">}</span><br />
<br />
I was an idiot, and JavaScript told me so:<br />
<br />
<div style="text-align: center;">
<span style="font-family: Courier New, Courier, monospace;"> <span style="color: #990000;">Uncaught SyntaxError: Undefined label 'loopMe'</span></span></div>
<br />
When I removed the label after continue, I still was an idiot, and JavaScript told me so:<br />
<br />
<div style="text-align: center;">
<span style="color: #990000; font-family: Courier New, Courier, monospace;">Uncaught SyntaxError: Illegal continue statement.</span></div>
<br />
So there was no way to get this to work. continue statements are only allowed in loops, as I remembered.<br />
The only funny thing was, that JavaScript bitched about unfound labels at first. And then about the misplaced continue statement.<br />
<br />
Glad, I used two hours of my life on that one. But at least, I have learned something.<br />
And that is what it's all about, isn't it?Anonymoushttp://www.blogger.com/profile/17837506500114816175noreply@blogger.com6tag:blogger.com,1999:blog-3656496957231020890.post-69444905165277136492014-11-26T22:22:00.000+01:002014-11-30T22:25:34.916+01:00Today I learned: Gratitude is the antidote to fear<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://ununsplash.imgix.net/41/Vgu1RUfKT3WN1ZYxSWaR_14672519443_13d8873062_k.jpg?q=75&fm=jpg&s=18b79c01949f4c839d7709bc8818787e" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="426" src="https://ununsplash.imgix.net/41/Vgu1RUfKT3WN1ZYxSWaR_14672519443_13d8873062_k.jpg?q=75&fm=jpg&s=18b79c01949f4c839d7709bc8818787e" width="640" /></a></div>
<br />
This saying is something I heard today.<br />
<br />
If I think about the things I fear, then there are many things that may come to my mind: Being expelled from the company I work for, losing my job, not finishing the the love projects I have, not being accepted. But there may be even more drastic things, like losing my health, losing my family, being ignored by the ones I love, etc. The longer I think about this, the more frightening it becomes. Finally, my mind would come up with some super weird, super sick fantasy about something, that will never happen.<br />
<br />
So why is gratitude the antidote to this? Because it helps you to focus on the good parts.<br />
If I focus on what I am thankful for, not much comes to mind. One trick for me, that works is to focus on what I might be thankful for. Then events, that were fascinating, where I participated, come to my mind. My wonderful sons, as well as my beautiful wife. But also the little things, like that coffee this morning or being able to come home in a relaxed way (train riding rocks). Being able to breathe and being able to pray.<br />
<br />
Out of this focus, it's impossible to focus on the possible negative outcomes in life.<br />
What if I would really lose my job? Don't know. I would be sad probably. But I would find another one. Maybe that new one would be even better.<br />
<br />
What if I would lose my family? Don't know. I would horribly sad, for sure. But after a time, I would get over it and go on with life. And who knows, probably I would value life even more than I do today.<br />
<br />
Don't get me wrong: I do not wish any of those bad things to happen to anybody. But bad things will happen, inevitably, to everybody. The question I want to ask myself then: "What good can I get out of this? What can I be thankful for because of this?". I know, that's no a single magic button, that you press and everything will be fine, but a shift in thinking.<br />
<br />
The bible says, that "We know, that all things work together for good to those who love God". This is an incredibly powerful statement. If you can believe this, there is nothing not to be thankful for and hence nothing to fear.Anonymoushttp://www.blogger.com/profile/17837506500114816175noreply@blogger.com0tag:blogger.com,1999:blog-3656496957231020890.post-87878675225495727692014-11-25T20:58:00.003+01:002014-11-25T20:58:39.382+01:00Today, I learned: Progress make you happyToday, after some days of being sick, slacking, being lazy (hey, but sometimes, I enjoyed being lazy), I got a little bit back on track.<br />
<br />
One hack, which works pretty well for me: Plan your day the night before.<br />
When I wake up and think about what I should do today, it feels arbitrary. It feels not like a must an hence, not compelling at all. But when I take some minutes the night before to schedule my activities (not focusing on results but on work itself), it feels mandatory. I have to work on these items for that specific amount of time. And when I get to finish some of the items on my to-do list, it feels great.<br />
<br />
And this feeling of accomplishment is incredibly motivating. I believe, that you should improve not only in one area of your life, but in every area of your life. This is challenging, but necessary.<br />
<br />
If you focus on your relationship with your spouse, and do nothing else, everything else with go to the dogs. If your work life sucks and you focus on improving it, and you do not improve in your relationships as well, after a not too long time, your rest of your life will suck, too.<br />
<br />
To keep it short, as Tony Robbins <a href="http://training.tonyrobbins.com/the-one-and-only-thing-you-need-to-be-happy/">stated</a>:<br />
<br />
<div style="text-align: center;">
<i>If you aren’t growing, you are dying.</i></div>
Anonymoushttp://www.blogger.com/profile/17837506500114816175noreply@blogger.com0tag:blogger.com,1999:blog-3656496957231020890.post-9105724147730683352014-11-24T22:25:00.001+01:002014-11-24T22:25:21.338+01:00Today I learned: There are still people in this world, who do not take JavaScript seriously.I'm not sure on this one:<br />
On one hand, it's sad. On the other hand, it's funny.<br />
<br />
I watched a professional tutorial called "Advanced JavaScript". It's actually a couple of hours long course about advanced JavaScript techniques.<br />
<br />
The first thing I noticed was, that the speaker compared JavaScript's lack of namespaces to "professional programming languages". Yeah, sure.<br />
<br />
C#, Java are professional programming languages. JavaScript, the most used programming language in the world is not professional. Sure.<br />
<br />
And further down the line, the speaker explains JavaScript's prototype mechanism to "real OOP". This is also great. In my opinion, JavaScripts OOP is superior to the classical OOP we all grew up with. Just because it's familiar, does not mean, it's actually better.<br />
<br />
So, I ask myself why, even in 2014 there are some people, who teach other people JavaScript and apparently never saw Doug's "JavaScript - The Good Parts", which he semi-ironically calls the "most important discovery in the early 21st century".<br />
<br />
On the other hand, I have to realize, that I, being as nit-picky as I can sometimes be, have to admit, that I can still learn a lot from this speaker.<br />
<br />
So a small rant might be OK, sometimes, perhaps. Being a pedantic jerk is never OK.Anonymoushttp://www.blogger.com/profile/17837506500114816175noreply@blogger.com0tag:blogger.com,1999:blog-3656496957231020890.post-30401467720581340442014-11-23T22:37:00.001+01:002014-11-23T22:37:12.285+01:00Today I learned: I gain so much on lazy sundays.So, today, I went to church.<br />
That's nearly all I did accomplish up to 17:00. After that made some photos for my ebay sellings.<br />
<br />
Neither my wife nor I did cook today. We just bought some french fries and some gyros and were enjoying our laziness.<br />
At noon, my wife and me were laying on the sofa, sleeping, while two of my sons (the youngest one was sleeping) were taking cushions from the sofa, took blankets from upstairs and moved some of the chairs to build a "robbers' den".<br />
<br />
After shooting some photos and taking some notes for ebay sellings, I read Winnie-the-Pooh to them and played with them. It was awesome. In all honesty, this was one of the best sundays for a quite long time. No phone calls. No visits. No appointments. No events. No obligations.<br />
<br />
Just me and my family. A great wife and great kids.<br />
<br />
Wonderful.<br />
<br />
Okay, I did some ebay today. And, as usual, it took way more time than expected. This is the main reason I do not like ebay. But it's a great place to sink time and not gain much money from it. But it still feels a little bit better than just putting all the junk you want to sell into the trash bin.<br />
<br />
So, I learned: Lazy days are not useless at all.Anonymoushttp://www.blogger.com/profile/17837506500114816175noreply@blogger.com0tag:blogger.com,1999:blog-3656496957231020890.post-91131658658254649872014-11-22T23:17:00.000+01:002014-11-30T23:49:06.599+01:00Today I learned: Give Up Your Goal For Something BetterToday, I originally planned to write something extremely boring about some stuff almost nobody cares about.<br />
<br />
During a conversation, a friend said to me, that it's shortly before midnight. I should have written my article by now, but I haven't. My first thought, in the middle of something, that just got pretty interesting, was to rush to my notebook and scribble something down, just to get my article finished.<br />
<br />
But then, I realized that this would be stupid. So I participated in this wonderful conversation. We discussed about thankfulness, how it affects your mind, why it helps you through the day, why it helps you in your communication with others. We discussed about thinking, how seeking the positive in everything, even in the negative.<br />
<br />
It was a great discussion with wonderful people.<br />
<br />
Something, I would have missed if stayed straight on my not-so-important self-chosen challenges.<br />
<br />
So, in doubt, I would like to choose the action with people talking about important things involved.Anonymoushttp://www.blogger.com/profile/17837506500114816175noreply@blogger.com0tag:blogger.com,1999:blog-3656496957231020890.post-53415716798834212582014-11-21T22:39:00.000+01:002014-11-30T22:41:05.172+01:00Today I learned: My unsatisfaction feelings are because of unfulfilled expectationsWhen you asked me about how I feel in the last weeks, I would say: I am discontent. I often was angry about myself, about the world, about crappy programming languages, about computer equipment, just about everything, no matter whether it makes sense or not.<br />
<br />
Today, I thought a little bit about myself and how my sadness, angriness comes. I think, a major source of my no-good feelings are: a way too high, way too many expectations.<br />
So I have to change my strategy in approaching my tasks.<br />
<br />
Instead of dealing with failures, that some things take longer than expected, hence not being able to check off each and every item on my personal to-do list each day, I will simply choose to for an amount of a fixed time on a specific issue.<br />
<br />
Instead of "making that super new feature work", I note: "Work for one hour on super new feature"<br />
<br />
Tomorrow, I will report how it worked out for me.Anonymoushttp://www.blogger.com/profile/17837506500114816175noreply@blogger.com0tag:blogger.com,1999:blog-3656496957231020890.post-62693478389521548702014-11-20T21:06:00.000+01:002014-11-20T21:06:18.220+01:00First Steps With FoundationToday, I played a little bit with ZURB Foundation.<br />
Although it's way too early to have a qualified opinion, I already recognized that I've made a major mistake: I've not used Sass.<br />
<br />
My small hobby project is nowhere near completion (in fact, it's closer to not having started than to having something that's comparable to an mockup), so I think I'll start over.<br />
<br />
What I like about Foundation so far:<br />
<br />
<br />
<ul>
<li>The Off-Canvas flyout menu. In my opinion, the bootstrap responsive menu is ugly as hell. Whenever I can avoid using it, I avoid it. Foundation's Off-Canvas Navigation is sexy. Heck, it even provides multiple levels of indentation. That's a great reason to love it.</li>
<li>Another item I like is the integration of Joyride. You need something like that for your app, if your app is somewhat more complex than "Yo!". And I love if a framework makes something easy.</li>
<li>And I like the fact, that it makes customizing easier than Bootstrap does. I look forward where I can deliver my wonderfully styled app to the world with foundation.</li>
</ul>
<br />
<br />
What I don't like so far:<br />
<br />
<ul>
<li>I have to learn it. ;)</li>
<li>And I missed some classes like <span style="font-family: Courier New, Courier, monospace;">pull-left</span>, <span style="font-family: Courier New, Courier, monospace;">pull-right</span> or <span style="font-family: Courier New, Courier, monospace;">text-center</span>.</li>
</ul>
<br />
Maybe I just oversaw them.<br />
<br />
Nevertheless, Foundation is the way to go for the next projects.<br />
And having to learn Sass.Anonymoushttp://www.blogger.com/profile/17837506500114816175noreply@blogger.com0tag:blogger.com,1999:blog-3656496957231020890.post-71389653966414830362014-11-19T20:34:00.000+01:002014-11-19T20:34:00.418+01:00Today I learned: Sometimes it's better to focus on work, not outcomeSo today I tried out how it would work out for me, if I would not focus on outcomes but one the work I do.<br />
<br />
So I set up my calendar to the time I wanted to worked on those specific items.<br />
And although I did not accomplish everything I wanted to, I feel way better than yesterday.<br />
<br />
Why is that?<br />
I simply did decide, that I don't want to focus on a specific outcome. I often entered some stuff like "Finish xyz" or "Get xyz to work".<br />
<br />
And this resulted often in an emotional mess. Most days, I failed. Even on days, where I did accomplish much, I did not fully succeed, because there was still somewhere a item list, which has not been checked.<br />
<br />
And today, I just decided: I don't care how far I go come with xyz, whether I finish it or not. I just don't care. I will work for one hour on that item. If I finish it: great! If not, no problem. There is still something left for tomorrow.<br />
<br />
Realizing, that my to-do list will not be empty when I die, I can see my to-do list now in a more relaxed way. And the more relaxed I am viewing at my to-do list, the happier I can go to work. And the happier I go to work, the better the results I produce.<br />
<br />
So, this small hack seems to work for me.Anonymoushttp://www.blogger.com/profile/17837506500114816175noreply@blogger.com0tag:blogger.com,1999:blog-3656496957231020890.post-73446207740936043462014-11-18T21:30:00.000+01:002014-11-19T17:53:41.190+01:00Today I learned: I expect too much.When you asked me about how I feel in the last weeks, I would say: I am discontent. I often was angry about myself, about the world, about crappy programming languages, about computer equipment, just about everything, no matter whether it makes sense or not.<br />
<br />
Today, I thought a little bit about myself and how my sadness, and anger comes. I think, a major source of my no-good feelings are: a way too high, way too many expectations.<br />
<br />
So I have to change my strategy in approaching my tasks.<br />
<br />
Instead of dealing with failures, that some things take longer than expected, hence not being able to check off each and every item on my personal to-do list each day, I will simply choose to for an amount of a fixed time on a specific issue.<br />
<br />
Instead of "making that super new feature work", I note: "Work for one hour on super new feature"<br />
<br />
Tomorrow, I will report how it worked out for me.Anonymoushttp://www.blogger.com/profile/17837506500114816175noreply@blogger.com0tag:blogger.com,1999:blog-3656496957231020890.post-47909460473850288552014-11-17T20:00:00.000+01:002014-11-18T09:32:54.899+01:00Today I learned: Code Quality depends on Reviews.<br />My Code will be better if I know, it will be reviewed. Here I said it.<br /><br />If you compared my code I wrote today, for basically myself only, to the code I wrote some months ago for someone else, you will find great differences.<br /><br />I don't think that I'm either much smarter or dumber than this summer, but if you saw my code, it would be a huge quality difference.<br /><br />In one code nearly comments every line, what it does and why it does this and how the result of each statement will be used in future, what's the meaning of each variable and so forth, the other code was just hacked to get it to work. It has wonderful statements like<br /><br />var parentElement = jQuery(this).parent().parent().parent().parent();<br /><br />Code like this makes me cringe. It shows me, that I write horrible code, at times.<br /><br />On the other hand, the code I wrote for someone else some months ago, I knew he would be dependent on understanding every detail of my code. And I knew, that he is no profound coder himself. So I made the code as simple and documenting as possible. No little, dirty hacks that are kinda clever, run 2% faster than normal implementations, but are a mess to debug. Everything was well explained and well documented. That was maybe the best code I have ever written, yet.<br /><br />So, from now on, knowing that someone might read my code will help me to write better code.<br /><br />One more reason for me, to write more open source code.Anonymoushttp://www.blogger.com/profile/17837506500114816175noreply@blogger.com0tag:blogger.com,1999:blog-3656496957231020890.post-63069555762679561962014-11-16T17:00:00.000+01:002014-11-17T09:31:44.620+01:00Today, I learned to live without InternetWaking up this morning was weird. I grabbed my phone, wanted to check for some news on Twitter, WhatsApp, you name it. Full Wi-Fi. No internet connection.<br /><br />Several retries later, still same result. After I went downstairs to check the Internet router. No Internet. Checking the splitter resulted in: No Internet.<br /><br />Do I called my provider. Deutsche Telekom actually has a good reputation in customer service. At least they 're not as bad as the other internet providers. After spending some minutes in the waiting line and some more minutes, the first free available slot for a technician to come by is: next Friday. One week without internet. Hooray.<br /><br />Okay, not really. It sucks. But on the other hand: I am kinda happy about the possibility to explore life without internet. I am forced to do so, yes. I did not choose it, yes. But I'm still a little bit thrilled about this possibility.<br /><br />Instead of mindless surfing shopping websites, you would to do something else. Instead of watching YouTube, you would have to do something else. Instead of being absent minded with fluff, you would have to find a way to be absent minded with fluff you can touch, like books.<br /><br />Frankly, this is just a mere fantasy. Instead of lonely surfing the Internet, I fantasize about being Super Dad, having the deepest relationship with my wife ever possible, my understanding of my career material exploding, learning to play the guitar and become fluent in Russian and Japanese within this week, just because of the lack of the internet. Reality will be different. But reality will be great, nevertheless. I just have to take it as it is.<br /><br />So, now, after having spent my first internet-free afternoon for weeks, I'll create myself an awesome, super delicious Cappuccino and will continue reading a book of my choice.<br /><br />You need less than you think to be happy. And you need less than you think to be thankful.Anonymoushttp://www.blogger.com/profile/17837506500114816175noreply@blogger.com0tag:blogger.com,1999:blog-3656496957231020890.post-30121785430105751102014-11-15T22:35:00.000+01:002014-11-30T22:36:20.129+01:00Today I learned: I should choose my challenges wisely<br />
<br />
I enjoyed this year. My monthly challenges helped me to get insights about myself. Challenges like not drinking alcohol or working out helped me to get to know myself. Challenges like spending time with kids showed me how hard it can be to set time for important things in life, when it's filled with clutter.<br />
<br />
I think I enjoyed none of these challenges. And neither I enjoy writing this article. I would prefer watching that movie next to my wife than watching that movie next to my wife writing this article on my smartphone.<br />
<br />
I know some of my friends think my self-chosen challenges are stupid. Day, I think so, too. Tomorrow, I'll maybe think differently.<br />
<br />
So, I know that my challenges were not enjoyable. But I enjoyed the outcome. And next year, I will find new challenges. Probably I won't enjoy them. But I will enjoy the outcomes.Anonymoushttp://www.blogger.com/profile/17837506500114816175noreply@blogger.com0tag:blogger.com,1999:blog-3656496957231020890.post-41551499871590662992014-11-15T18:48:00.000+01:002014-11-15T18:48:02.778+01:00TIL: Plowing through the basics of JS actually helpsToday, I read through some pages of "JavaScript, the definitive Guide". I knew most of the stuff. And once again, like in almost every language, I read trough the seemingly boring bitwise operators. You know, stuff like <span style="font-family: Courier New, Courier, monospace;">|</span>, <span style="font-family: Courier New, Courier, monospace;">&</span>,<span style="font-family: Courier New, Courier, monospace;"> ~</span>, ^ and bit shift operators <span style="font-family: Courier New, Courier, monospace;">>></span>, <span style="font-family: Courier New, Courier, monospace;"><<</span> and<span style="font-family: Courier New, Courier, monospace;"> >>></span>.<br />
<br />
So I asked myself, why should I use them? Being and not-too-young developer and not having used them in any real-world-application yet, this shows me: Either those bit operators are a little bit outdated or I am a little bit ignorant, that means that I could miss out simpler solutions than I usually provide.<br />
<br />
So I decided that I have to learn some bit operation magic.<br />
<br />
So beside bit shift operations as an alternative to multiplying or dividing by powers of 2, I learned, that<span style="font-family: Courier New, Courier, monospace;"> | 0</span> converts nearly everything to an integer.<br />
<br />
Longer description can be found here:<br />
http://stackoverflow.com/questions/654057/where-would-i-use-a-bitwise-operator-in-javascript<br />
<br />
So, if you have some handy trickt with bitwise operators in JavaScript, let me know.<br />
<br />
The other thing I heave learned: labels in Javascript. You can label stuff. Most likely, you will label loops, so that you can break free from them with with the <span style="font-family: Courier New, Courier, monospace;">break </span><span style="font-family: Arial, Helvetica, sans-serif;"><i>label</i></span><span style="font-family: Courier New, Courier, monospace;">;</span> statement.<br />
<br />
I have to say, that Mozilla <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/label">discourages</a> you from using labels.Anonymoushttp://www.blogger.com/profile/17837506500114816175noreply@blogger.com0