tag:blogger.com,1999:blog-79889093543791670462024-01-24T17:54:22.418+01:00przemelek in english...przemelekhttp://www.blogger.com/profile/14956032882265621104noreply@blogger.comBlogger172125tag:blogger.com,1999:blog-7988909354379167046.post-47595661168282039122024-01-23T10:30:00.002+01:002024-01-23T10:32:01.963+01:00How to get negative number from size() in LinkedList in Java? ;-)<p>Yep, didn't wrote long time ;-)</p><p>Today will be "translation" of my post in Polish, but it is so fun that I decided to go with it ;-)</p><p>In short I wanted to break LinkedList in Java ;-)</p><p>I wanted to move LinkedList to state in which even when it was used in proper way it would stop to work for some stuff, or would return stupid answers. </p><p>We will exploit "problem" in design of List in Java, its size is kept in int and may be up to Integer.MAX_VALUE. In case of implementations based on arrays this is quiet valid assumption. To be honest in case of computers used when Java Collections were created this was good assumption, but we are living 25 years into future so our computers are now 5-6k times faster, and have 5-8k times memory (In 1998 I had still 4 or 8 MB of RAM and was planning to upgrade to 64 MB of RAM, now I have in laptop which is 5 years old 32 GB of RAM ;-)).<br/></p><p>So, idea is to have piece of code like:</p><div style="background-color: white; color: #080808;"><pre style="font-family: "JetBrains Mono", monospace; font-size: 11.3pt;"><span style="color: #0033b3;">var </span><span style="color: black;">list </span>= <span style="color: #0033b3;">new </span>LinkedList<<span style="color: black;">Integer</span>>();<br/><span style="font-style: italic;">doMagic</span>(<span style="color: black;">list</span>);<br/><span style="color: black;">System</span>.<span style="color: #871094; font-style: italic;">out</span>.println(<span style="color: black;">list</span>.size()); <span style="color: #8c8c8c; font-style: italic;">// return negative number!!!<br/></span></pre></div><p>Where doMagic looks like:</p><div style="background-color: white; color: #080808;"><pre style="font-family: "JetBrains Mono", monospace; font-size: 11.3pt;"><span style="color: #0033b3;">static void </span><span style="color: #00627a;">doMagic</span>(<span style="color: black;">LinkedList</span><<span style="color: black;">Integer</span>> <span style="color: black;">l</span>) {<br/> <span style="color: #0033b3;">for </span>(<span style="color: #0033b3;">var </span><span style="color: black;">i</span>=<span style="color: #1750eb;">0L</span>; <span style="color: black;">i</span><<span style="color: black;">Integer</span>.<span style="color: #871094; font-style: italic;">MAX_VALUE</span>+<span style="color: #1750eb;">1000L</span>; <span style="color: black;">i</span>++) {<br/> <span style="color: black;">l</span>.add(<span style="color: black;">Integer</span>.<span style="font-style: italic;">valueOf</span>(<span style="color: #1750eb;">0</span>));<br/> }<br/>}</pre><div><span style="color: black;">So as we can see we are simply adding more than Integer.MAX_VALUE objects to our LinkedList.<br/>By some time I wasn't able to run it on my machine because I was each time setting max heap size under 32 GB... and this would take 96-120 GB or so ;-) <br/>But it seems that you are able to setup Xmx to number bigger than your memory (at least on macOS) and after setting it to 150 GB I got </span><span style="color: black;">-2147482649 from calling list.size(), and when I tried to execute:</span></div><div><pre style="font-family: "JetBrains Mono", monospace; font-size: 11.3pt;"><pre style="font-family: "JetBrains Mono", monospace; font-size: 11.3pt;"><span style="color: #0033b3;">var </span><span style="color: black;">count </span>= <span style="color: #1750eb;">0L</span>;<br/><span style="color: #0033b3;">for </span>(<span style="color: #0033b3;">var </span><span style="color: black;">n</span>:<span style="color: black;">list</span>) {<br/> <span style="color: black;">count</span>++;<br/>}<br/></pre><div><br/></div></pre></div><div>And I got also IndexOfOutBoundException with index 0 ;-) (it is because when iterator is created there is rangeCheck for 0, and when 0 is greater or equal to 0, it is still bigger than size of -<span style="color: black;">2147482649 ;-)</span></div></div><br/><br/>
<span style="font-weight: bold;">Similar posts</span><sup><span style=";font-size:75%;color:red;">beta</span></sup><br /><a href="https://eng-przemelek.blogspot.com/2008/03/how-many-i-11-in-java.html" target="blank">How many i 1+1 in Java? ;-)</a><br /><a href="https://eng-przemelek.blogspot.com/2008/07/recursion-is-evil.html" target="blank">Recursion is evil ;-)</a><br /><a href="https://eng-przemelek.blogspot.com/2011/01/google-buzz-lets-mark-some-comments-as.html" target="blank">Google Buzz - let's mark some comments as not spam ;-) or how to unhide "hidden" comments ;-)</a><br /><a href="https://eng-przemelek.blogspot.com/2008/08/calculation-fo-life-time-of-ssd-in-eee.html" target="blank">Calculation of SSD life time in EEE PC</a><br /><a href="https://eng-przemelek.blogspot.com/2017/01/portable-code-smells-list.html" target="blank">Portable code smells list ;-)</a><br />przemelekhttp://www.blogger.com/profile/14956032882265621104noreply@blogger.com0tag:blogger.com,1999:blog-7988909354379167046.post-19370236588515258212019-03-31T21:34:00.000+02:002023-02-09T14:56:27.501+01:00DST may not be so stupid as it looks...European Commission decided that Europe as a whole will end with moving clocks twice a year.<br/>It seems reasonable, but...<br/>If whole Europe will stay in given time offsets and will decide to use Summer Time, this means that when in Poland in Kraków on beginning of year we will have sunrise about 8:30, in Spain in Vigo it will be about 10:00....<br/>Now for Kraków in Poland thanks to moving clocks it is about 7:30 and in Vigo about 9:00....<br/><br/>OK, so maybe Europe should move to Winter Time, so "standard time without DST".<br/>It would mean that in Kraków in the middle of July sun would rise at 3:30....<br/><br/>DST/moving clocks lets now to keep the same time zone in many countries in EU, question is if it will be true after we will resign from it? ;-)<br/><br/><br /><span style="font-weight: bold;">Similar posts</span><sup><span style=";font-size:75%;color:red;">beta</span></sup><br /><a href="https://eng-przemelek.blogspot.com/2018/12/i-hate-6-oclock.html" target="blank">I hate 6 o'clock....</a><br /><a href="https://eng-przemelek.blogspot.com/2007/12/correlation-between-traffic-and-time.html" target="blank">Correlation between traffic and time spent at work ;-)</a><br /><a href="https://eng-przemelek.blogspot.com/2017/01/really-first-snow.html" target="blank">Really first snow ;-)</a><br /><a href="https://eng-przemelek.blogspot.com/2017/03/why-people-are-so-afraid-of-terrorists.html" target="blank">Why people are so afraid of terrorists?</a><br /><a href="https://eng-przemelek.blogspot.com/2011/04/callloger-invigilate-yourself.html" target="blank">CallLoger ;-) Invigilate yourself ;-)</a><br />przemelekhttp://www.blogger.com/profile/14956032882265621104noreply@blogger.com0tag:blogger.com,1999:blog-7988909354379167046.post-7236258364230632552019-03-24T11:55:00.003+01:002023-02-09T14:56:32.837+01:00Coding without IDEI'm observing strange phenomena.<br/>More and more developers when asked to write code on whiteboard or on computer without IDE with code assist is almost unable to do so.<br/><br/>I'm not saying that this is bad thing. It is strange for me, but I'm not able to say if it is bad.<br/>In normal circumstances they have access to IDE which will help, so in theory they are able to use memory and brain power to code on higher level instead of remembering APIs.<br/><br/>My own way to train algorithms is to write code on whiteboard, and latter rewriting it to online judge system (which usually doesn't have code assist) and checking how it works, and if code does not compile it means that I made mistake and need to work on this.<br/>But I'm not exactly sure if it is good way ;-)<br/><br/>From other side, if dev is able to write code on whiteboard he or she is usually better....<br/><br/>My working theory is that better short term memory and higher IQ means that someone may be better at programming, and problems with writing code on whiteboard are showing that given person may have some problems in those areas.<br/><br/><br /><span style="font-weight: bold;">Similar posts</span><sup><span style=";font-size:75%;color:red;">beta</span></sup><br /><a href="https://eng-przemelek.blogspot.com/2018/07/blindfold-programming.html" target="blank">Blindfold programming</a><br /><a href="https://eng-przemelek.blogspot.com/2017/01/whiteboard.html" target="blank">Whiteboard</a><br /><a href="https://eng-przemelek.blogspot.com/2017/02/power-of-doodling.html" target="blank">Power of doodling ;-)</a><br /><a href="https://eng-przemelek.blogspot.com/2008/08/calculation-fo-life-time-of-ssd-in-eee.html" target="blank">Calculation of SSD life time in EEE PC</a><br /><a href="https://eng-przemelek.blogspot.com/2018/07/programmers-love-to-over-complicate.html" target="blank">Programmers love to over complicate... </a><br />przemelekhttp://www.blogger.com/profile/14956032882265621104noreply@blogger.com0tag:blogger.com,1999:blog-7988909354379167046.post-42245180550053515792019-01-27T23:34:00.000+01:002023-02-09T14:56:26.861+01:00Bloggerid cannot post images....Title is for catching Google searches ;-)<br/>But it also describes current behavior of Bloggeroid.<br/><br/>From last week it stoped to publish images. Main, and only cause is fact that Google disabled Picasa API which was used by Bloggeroid.<br/><br/>As far as I can say from looking into Google Photos API it cannot be used as alternative, because it doesn't let embed images in pages.<br/>Or at least I didn't find any info how to do it.<br/><br/>As I can see increase of number of problems with publishing went up 18 times.<br/>But now stabilised at 3.5 times more than before disabling Picasa API.<br/><br/>I'm not sure if I should do anything. I may disable app in Google Play Store, or remove possibility to publish images, or find some other solution.<br/>From users perspective last one would be the best, but because I'm not posting too much pictures to any of my blogs (mostly because I prefer to blog from computer ;-)) user number 1 isn't pushing too much...<br/><br/>So for now I will not do anything.<br/><br/>In general this shows two problems:<br/>1) Bloggeroid is a mean to publish posts to Blogger, so it is fully depend on another product, any disruption in this product means problems for app,<br/>2) in case of free apps, or apps which were sold for price in given moment authors don't have too many incentives to keep apps running.<br/><br/>Lessons from it (for me):<br/>1) do not build products depending on other products,<br/>2) if you are using mobile app use app from owner of service,<br/>3) abo is better than one time price.<br/><br/><br /><span style="font-weight: bold;">Similar posts</span><sup><span style=";font-size:75%;color:red;">beta</span></sup><br /><a href="https://eng-przemelek.blogspot.com/2017/09/aws-vs-azure-vs-google-cloud.html" target="blank">AWS vs Azure vs Google Cloud</a><br /><a href="https://eng-przemelek.blogspot.com/2010/08/bloggeroid-10.html" target="blank">Bloggeroid 1.0 :-)</a><br /><a href="https://eng-przemelek.blogspot.com/2017/12/know-country-behind-apps-on-your-phone.html" target="blank">Know country behind apps on your phone....</a><br /><a href="https://eng-przemelek.blogspot.com/2011/04/callloger-invigilate-yourself.html" target="blank">CallLoger ;-) Invigilate yourself ;-)</a><br /><a href="https://eng-przemelek.blogspot.com/2015/11/its-alive-still.html" target="blank">It's alive... still ;-)</a><br />przemelekhttp://www.blogger.com/profile/14956032882265621104noreply@blogger.com1tag:blogger.com,1999:blog-7988909354379167046.post-19946542850687082992018-12-10T06:49:00.002+01:002023-02-09T14:56:32.163+01:00I hate 6 o'clock....I never had New Year resolutions, but in 2019 I will try to wake up at 9 ;-)<br/>Mainly because of this that by last 2 months or so I need to wake up at 6....<br/><br/><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwAm_QAr7rDootaPNDeRxOXPWd4kVPDtRm8qcdzOUkGE4DuCwIH4um4eqFyWgpYuFpYkjg618peZf6yeWnr1KNF3ZBnSKN3-XatMgdqMVUPIh4LZ2z0k1gU1JUMPjthxw3G54kJ37Rt2w/s1600/IMG_20181207_060208.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1200" data-original-width="1600" height="480" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwAm_QAr7rDootaPNDeRxOXPWd4kVPDtRm8qcdzOUkGE4DuCwIH4um4eqFyWgpYuFpYkjg618peZf6yeWnr1KNF3ZBnSKN3-XatMgdqMVUPIh4LZ2z0k1gU1JUMPjthxw3G54kJ37Rt2w/s640/IMG_20181207_060208.jpg" width="640" /></a></div><br/>I hate this...<br/>But it can be wven worse sometimes I need to wake up at 5:30, and at 6:11 I'm already on streets of San Francisco ;-)<br/><br/><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIeovuItO3v1Cm2tu5yAea8qk6WliN7kJQ1Zfp4HLntMh3_dQyQvbcodynAP-d6CAOXCUDbnCELHKnDNVzwOnsuG40lsy8kIC_36LUGtpzkk2dD7Im2n-byhiBL576dLc7JUX8rIw7eu8/s1600/IMG_20181127_061128.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1200" data-original-width="1600" height="480" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIeovuItO3v1Cm2tu5yAea8qk6WliN7kJQ1Zfp4HLntMh3_dQyQvbcodynAP-d6CAOXCUDbnCELHKnDNVzwOnsuG40lsy8kIC_36LUGtpzkk2dD7Im2n-byhiBL576dLc7JUX8rIw7eu8/s640/IMG_20181127_061128.jpg" width="640" /></a><br/><br/>So I promise myself, when I will be back in Poland I will try to wake up at 9 or latter, as often, as it is possible ;-)<br/><br/>One plus of waking up so early is that I'm in office before 7 (when I wake up at 5:30), or 7:20 when I wake up at 6:00.<br/>Thanks to this I have about an hour of time without any interruptions.<br/><br/>But usually I prefer to have this in the evening ;-)<br/><br/><br /><span style="font-weight: bold;">Similar posts</span><sup><span style=";font-size:75%;color:red;">beta</span></sup><br /><a href="https://eng-przemelek.blogspot.com/2017/02/it-seems-that-meditation-helps.html" target="blank">It seems that meditation helps ;-)</a><br /><a href="https://eng-przemelek.blogspot.com/2007/12/correlation-between-traffic-and-time.html" target="blank">Correlation between traffic and time spent at work ;-)</a><br /><a href="https://eng-przemelek.blogspot.com/2019/03/dst-may-not-be-so-stupid-as-it-looks.html" target="blank">DST may not be so stupid as it looks...</a><br /><a href="https://eng-przemelek.blogspot.com/2018/07/yeah-will-see-sam-harris-and-yuval-noah.html" target="blank">Yeah! :-) Will see Sam Harris and Yuval Noah Harari :-)</a><br /><a href="https://eng-przemelek.blogspot.com/2016/12/2016.html" target="blank">2016...</a><br />przemelekhttp://www.blogger.com/profile/14956032882265621104noreply@blogger.com0tag:blogger.com,1999:blog-7988909354379167046.post-56523932506204876502018-11-26T07:22:00.001+01:002023-02-09T14:56:25.665+01:00Me in SF Moma... Today I was in SF MOMA (San Francisco Museum of Modern Art)...<br/>I'm living nearby so I though that this may be good idea to visit ;-)<br/><br/>And I'm proud to say that I don't understand anything ;-)<br/><br/>But I really liked Sol LeWitt creations, but I was trying to find probably too much in those.<br/>I spend about 10 minutes in room with his Wall Drawing 273 and I still didn't grasp rules...<br/>Because for me some of his works seems like some kind of puzzle ;-)<br/><br/><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXV49j2NW4vZg4MWQqZr_YHl0i8iZ3xgkweH_xubfdhaVHz4AKrrl3mmzMGotIlR49a27U9ZFdqtHJkKcafi23T-XoRP7QHRxYj-FWjxosx-lEYye-mP7gZqWMBoQoRUlZmCDzWFQQ2R4/s1600/IMG_20181125_143927.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1600" data-original-width="1200" height="640" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXV49j2NW4vZg4MWQqZr_YHl0i8iZ3xgkweH_xubfdhaVHz4AKrrl3mmzMGotIlR49a27U9ZFdqtHJkKcafi23T-XoRP7QHRxYj-FWjxosx-lEYye-mP7gZqWMBoQoRUlZmCDzWFQQ2R4/s640/IMG_20181125_143927.jpg" width="480" /></a></div><br/>I saw Mark Rothko art and I don't get it ;-)<br/>But thats cool that it is presented and some people are able to read it :-)<br/><br/>Here things I liked the most :-)<br/><br/><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhClNynOWTwFVo_UyG2Ee_Ddo9_TwlW5Zf4I1oBPNK0hVzU75IxzDVtlNTU_tX13gHzrft-9OoUZaaivTBPzBukoXmFwxgIGzzskfr_FTk2OMXZEDwqWpwck5lKl9TaErBoexxqYruaMjU/s1600/IMG_20181125_154147.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1200" data-original-width="1600" height="480" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhClNynOWTwFVo_UyG2Ee_Ddo9_TwlW5Zf4I1oBPNK0hVzU75IxzDVtlNTU_tX13gHzrft-9OoUZaaivTBPzBukoXmFwxgIGzzskfr_FTk2OMXZEDwqWpwck5lKl9TaErBoexxqYruaMjU/s640/IMG_20181125_154147.jpg" width="640" /></a></div><br/><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTle0gBr3U8qdjrvnppMYcqjJUxO5krZ1RMtQbw0nXLqDVtWPZmJ0zb7iORaKNMW6X5ZL1PjKaM9sGCiw11pDwna6YjsXB0c97ufi8ltFqDu-T1doOSm4JVaZ-HPgJOSJcX2kd4gP1cAQ/s1600/IMG_20181125_154652.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1600" data-original-width="1200" height="640" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTle0gBr3U8qdjrvnppMYcqjJUxO5krZ1RMtQbw0nXLqDVtWPZmJ0zb7iORaKNMW6X5ZL1PjKaM9sGCiw11pDwna6YjsXB0c97ufi8ltFqDu-T1doOSm4JVaZ-HPgJOSJcX2kd4gP1cAQ/s640/IMG_20181125_154652.jpg" width="480" /></a></div><br/><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirPXEhROdV9OgG7BSRq-MwTXnxQrrcS2YBPqxa22k6eG1LWeXqmxoBhmz5dNhpFKw0c7VZNmVMUuUOSJ96CQTXtki_WBSRUHTpWctRThh4_dRqlHNXnk96hEmEUUBL4qMDyJdnp-ekue4/s1600/IMG_20181125_154716.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1200" data-original-width="1600" height="480" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirPXEhROdV9OgG7BSRq-MwTXnxQrrcS2YBPqxa22k6eG1LWeXqmxoBhmz5dNhpFKw0c7VZNmVMUuUOSJ96CQTXtki_WBSRUHTpWctRThh4_dRqlHNXnk96hEmEUUBL4qMDyJdnp-ekue4/s640/IMG_20181125_154716.jpg" width="640" /></a></div><br/><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBrdUPfJKiUQq48UiXDAGgVEZnNw2FBCZO7SMTUxXMCs1MHvE32vxxmGF4MGAL13ba4LZUKyhaglZ_YeY3wlk_qzBgFzGj6nvKSc3JZ6ZQsCP3R6Nv4RQ7l39Iij3RYgg9TDMrjuZCO4c/s1600/IMG_20181125_154720.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1200" data-original-width="1600" height="480" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBrdUPfJKiUQq48UiXDAGgVEZnNw2FBCZO7SMTUxXMCs1MHvE32vxxmGF4MGAL13ba4LZUKyhaglZ_YeY3wlk_qzBgFzGj6nvKSc3JZ6ZQsCP3R6Nv4RQ7l39Iij3RYgg9TDMrjuZCO4c/s640/IMG_20181125_154720.jpg" width="640" /></a></div><br/><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzZqNpLooFuH034J1iOmDUCn1Lqh1uuWZ3mK5tDsYnVn_7Mzwu4G2d8mkFqcdR4CR0a9OKtTn3UdJaMhkAoTYiaG21rVTSzWF7N13Pfu9oC5-J50tgyaN1mEEajjYY5jwHDjCeRU4iSek/s1600/IMG_20181125_144158.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1200" data-original-width="1600" height="480" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzZqNpLooFuH034J1iOmDUCn1Lqh1uuWZ3mK5tDsYnVn_7Mzwu4G2d8mkFqcdR4CR0a9OKtTn3UdJaMhkAoTYiaG21rVTSzWF7N13Pfu9oC5-J50tgyaN1mEEajjYY5jwHDjCeRU4iSek/s640/IMG_20181125_144158.jpg" width="640" /></a></div><br/><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_OTX7VMfySUq8TiyfPz4bE8IFx21WE5asnVLYbd7lmEh-H00nTPQxUcFXZ8JStfwHcpQsifdU1h_XDyA5nsaUp6a5w5DVhkuAVutwKHG8exz6pgpAoQ41QS9Ekowm2UBASX0DNiNxINg/s1600/IMG_20181125_163036.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1600" data-original-width="1200" height="640" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_OTX7VMfySUq8TiyfPz4bE8IFx21WE5asnVLYbd7lmEh-H00nTPQxUcFXZ8JStfwHcpQsifdU1h_XDyA5nsaUp6a5w5DVhkuAVutwKHG8exz6pgpAoQ41QS9Ekowm2UBASX0DNiNxINg/s640/IMG_20181125_163036.jpg" width="480" /></a></div><br/><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjp64qGDTFJ7mQ2NKX6Ut113mGJVId4D3afuFDjkBei59D9zWsgv4dwbEWcz-26MpMopJQwzXBHFGARHhr9pr7b_koG9lRMRNgCMnQmYx-I17YTs3Zotp87VIDsWjJtad92LX1N_kqM4RQ/s1600/IMG_20181125_155749.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1200" data-original-width="1600" height="480" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjp64qGDTFJ7mQ2NKX6Ut113mGJVId4D3afuFDjkBei59D9zWsgv4dwbEWcz-26MpMopJQwzXBHFGARHhr9pr7b_koG9lRMRNgCMnQmYx-I17YTs3Zotp87VIDsWjJtad92LX1N_kqM4RQ/s640/IMG_20181125_155749.jpg" width="640" /></a></div><br/><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrYeyUVLyXG3v1xgzi9qzUfQMogMIFA9hkERjhup1pRPWfSivZHIBKJaSNEJ1yfU5aoRiGLekIWS7W5xWUCEDyVN_vpZJi1eGgUiegtZhcOCTRWNCDxjPliIHeIBZI_IQSEHcQ6kynhus/s1600/IMG_20181125_144011.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1600" data-original-width="1200" height="640" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrYeyUVLyXG3v1xgzi9qzUfQMogMIFA9hkERjhup1pRPWfSivZHIBKJaSNEJ1yfU5aoRiGLekIWS7W5xWUCEDyVN_vpZJi1eGgUiegtZhcOCTRWNCDxjPliIHeIBZI_IQSEHcQ6kynhus/s640/IMG_20181125_144011.jpg" width="480" /></a></div><br/><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMCSdY-pvQmjIi7_qrfdLsq18wE8bbfFbbPqV3BvyqbeaXKjtli8FA-XSXoHURcO13caqi3OgR3YTOF7fMW6yk3LMjCWRfO2gZYb0H6DEVuV4Y3CHgz9Y5eH7Ik1VaJHhOU0CRmT6lfVc/s1600/IMG_20181125_152425.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1600" data-original-width="1200" height="640" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMCSdY-pvQmjIi7_qrfdLsq18wE8bbfFbbPqV3BvyqbeaXKjtli8FA-XSXoHURcO13caqi3OgR3YTOF7fMW6yk3LMjCWRfO2gZYb0H6DEVuV4Y3CHgz9Y5eH7Ik1VaJHhOU0CRmT6lfVc/s640/IMG_20181125_152425.jpg" width="480" /></a></div><br/><br/><br /><span style="font-weight: bold;">Similar posts</span><sup><span style=";font-size:75%;color:red;">beta</span></sup><br /><a href="https://eng-przemelek.blogspot.com/2017/08/alexa-what-to-do-with-her.html" target="blank">Alexa... What to do with her?</a><br /><a href="https://eng-przemelek.blogspot.com/2017/03/python-yet-another-hero-of-sf-book.html" target="blank">Python yet another hero of SF book Seveneves</a><br /><a href="https://eng-przemelek.blogspot.com/2018/07/yeah-will-see-sam-harris-and-yuval-noah.html" target="blank">Yeah! :-) Will see Sam Harris and Yuval Noah Harari :-)</a><br /><a href="https://eng-przemelek.blogspot.com/2016/12/2016.html" target="blank">2016...</a><br /><a href="https://eng-przemelek.blogspot.com/2017/02/happy-darwins-day.html" target="blank">Happy Darwin's Day!</a><br />przemelekhttp://www.blogger.com/profile/14956032882265621104noreply@blogger.com0tag:blogger.com,1999:blog-7988909354379167046.post-48292516001487982432018-08-10T10:33:00.001+02:002023-02-09T14:56:31.536+01:00Wind down is cool :-)On my phones I have already Android 9, and Digital Wellbeing installed.<br/><br/><br/>And I really like Well down feature.<br/>You can see its effects on picture below:<br/><br/><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrPD-psA4n9Kod0iSCHj7WbKV9oDb8Qmw_TU3zidhFjYFM9Cpj2vYiRlYTHbZobRBXbWncnsfcH0rsmRh2fAXnlmKYBW_kO0Iu2qy8MrDwvRDJYMXq2YSaiHar4vYUlDEtvm-qRErwN8w/s1600/IMG_20180810_012601.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1600" data-original-width="1200" height="640" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrPD-psA4n9Kod0iSCHj7WbKV9oDb8Qmw_TU3zidhFjYFM9Cpj2vYiRlYTHbZobRBXbWncnsfcH0rsmRh2fAXnlmKYBW_kO0Iu2qy8MrDwvRDJYMXq2YSaiHar4vYUlDEtvm-qRErwN8w/s640/IMG_20180810_012601.jpg" width="480" /></a></div><br/>Between 23:00, and 7:00 my screen display everything in grayscale :-)<br/><br/>Assumption behind this is that in such case screen is not so interesting, so you are not drawn so much to it when you should prepare to sleep, or sleep.<br/>Additionally it make most of apps simply ugly, and it is a hope that you will avoid those apps ;-)<br/><br/>As far as now I like it :-)<br/><br/><br /><span style="font-weight: bold;">Similar posts</span><sup><span style=";font-size:75%;color:red;">beta</span></sup><br /><a href="https://eng-przemelek.blogspot.com/2017/02/roomba-friendly-furniture.html" target="blank">Roomba friendly furniture...</a><br /><a href="https://eng-przemelek.blogspot.com/2007/11/re.html" target="blank">RE<C</a><br /><a href="https://eng-przemelek.blogspot.com/2017/02/it-seems-that-meditation-helps.html" target="blank">It seems that meditation helps ;-)</a><br /><a href="https://eng-przemelek.blogspot.com/2010/08/bloggeroid-10.html" target="blank">Bloggeroid 1.0 :-)</a><br /><a href="https://eng-przemelek.blogspot.com/2007/12/correlation-between-traffic-and-time.html" target="blank">Correlation between traffic and time spent at work ;-)</a><br />przemelekhttp://www.blogger.com/profile/14956032882265621104noreply@blogger.com0tag:blogger.com,1999:blog-7988909354379167046.post-38270485143598493552018-07-29T16:42:00.001+02:002023-12-01T01:22:07.731+01:00Yeah! :-) Will see Sam Harris and Yuval Noah Harari :-)Yeah!<br/>Assuming everything will go well I will go to event <a href="http://sfmasonic.com/event/sam-harris-yuval-noah-harari/">"Sam Harris & Yuval Noah Harari - Understanding The Present" in San Francisco in Masonic</a> :-)<br/><br/>I love Yuval Noah Harari books - "Sapiens" and "Homo Deus", I love Sam Harris podcast (to be honest I didn't read any of his books, I started Free Will, and listened to Waking Up).<br/>And this event is near premier of newest book of Yuval Noah Harari :-)<br/><br/>So it should be interesting ;-)<br/><br/><br /><span style="font-weight: bold;">Similar posts</span><sup><span style=";font-size:75%;color:red;">beta</span></sup><br /><a href="https://eng-przemelek.blogspot.com/2018/11/me-in-sf-moma.html" target="blank">Me in SF Moma... </a><br /><a href="https://eng-przemelek.blogspot.com/2017/04/sapiens-is-really-interesting.html" target="blank">"Sapiens" is really interesting</a><br /><a href="https://eng-przemelek.blogspot.com/2018/12/i-hate-6-oclock.html" target="blank">I hate 6 o'clock....</a><br /><a href="https://eng-przemelek.blogspot.com/2018/07/when-you-should-stop-read-book.html" target="blank">When you should stop read a book?</a><br /><a href="https://eng-przemelek.blogspot.com/2017/03/python-yet-another-hero-of-sf-book.html" target="blank">Python yet another hero of SF book Seveneves</a><br />przemelekhttp://www.blogger.com/profile/14956032882265621104noreply@blogger.com0tag:blogger.com,1999:blog-7988909354379167046.post-35221753836233922982018-07-15T14:50:00.002+02:002024-01-23T10:32:00.290+01:00Programmers love to over complicate... Did you notice that programming use to be easier?<br/>10 or 20 years ago you were spending more time writing code than now?<br/><br/>It is true for me.<br/><br/>10 years ago I was coding at work in Java and JavaScript. We were using MyEclipse and SVN without branches.<br/><br/>My day was something like this:<br/>- update sources from SVN on trunk,<br/>- look for info about stories,<br/>- code:<br/> - write code,<br/> - run code,<br/> - update sources from SVN on trunk,<br/> - commit code if it was ready in given part,<br/>- update sources from SVN on trunk,<br/>- commit code (still if it was ready)<br/><br/>This was easy.<br/>We had in each moment almost the most current source version on our machines.<br/>We didn't have any CI tooling, but each time you updated and tried to build, and something was failing you were sharing with this and was trying to fix problem.<br/>Without special monitors showing CI results.<br/><br/>Each week we had manual weekly build (written in ANT!), and QAs were testing this version.<br/><br/>It was working.<br/>It was fast.<br/>It was stable.<br/><br/><br/>How it looks usually now?<br/><br/>You are coding with Java and JavaScript + ReactJS + Webpack + Gradle/Maven + Nexus + whatever else + GIT/HG with tons of branches.<br/><br/>Your day looks something like this:<br/>- update from master (or current release master),<br/>- resolve conflicts,<br/>- commit,<br/>- test on your branch (but it may take too much time),<br/>- push to your branch,<br/>- wait for tests,<br/>- in case of failing investigate,<br/>- look for info about stories,<br/>- code,<br/> - write code,<br/> - wait till it compile,<br/> - run code and some tests,<br/> - commit code<br/> - push code,<br/> - wait for tests,<br/> - look why some UI tests are failing,<br/> - run those tests again,<br/> - and again,<br/>- create pull request,<br/>- notice that in the meantime somebody else commited to master code he or she was cooking by last 5 days on own branch,<br/>- merge,<br/>- commit,<br/>- squash commits (because somebody will complain that you have multiple commits),<br/>- push,<br/>- LINT or PMD or Sonar complaining,<br/>- yeah, not in your code, but you needed to change some legacy code in class with 6 kLOCs....,<br/>- hack Lint/PMD/Sonar,<br/>- commit,<br/>- wait for tests,<br/>- CI is slow,<br/>- create ticket for restarting CI,<br/>- you need to stop because you have one of Scrum meetings,<br/>- CI works again!!!!,<br/>- tests are failing,<br/>- again UX tests<br/><br/>I may little exaggerate, but from my perspective it too often looks like this (in many companies).<br/><br/>It seems that developers want to make things more complicated.<br/>Or maybe it works in this way that some people have good ideas and intentions, but those latter are half baked, or introduced only because...<br/><br/>In several companies I saw problem with Maven.<br/>Maven was in HQ and in other sites it was too slow.<br/>So it was always decision, big managerial action "we are doing our own Maven repo which will sync-up with master in HQ!".<br/>This was done.<br/>After some short time people started to realize that they don't see most recent SNAPSHOTs, but after tinkering with /etc/hosts and making repo name resolving to IP of this Maven repo in HQ everything was starting to work.<br/>From this time, in 1st or 2nd day each of newly employed was instructed to do changes in /etc/hosts....<br/><br/>Why? Because everyone is able to read on StackOverflow or something similar about setuping copies of Maven, but configuration is not so trivial....<br/><br/>(I'm still amazed that in one of companies they were extensively using ActiveMQ, and tried even to configure backups... but after trying they realized that it was much more complicated to configure and maintain so they simply killed backup ActiveMQ server without even changing apps configuration....)<br/><br/>
<span style="font-weight: bold;">Similar posts</span><sup><span style=";font-size:75%;color:red;">beta</span></sup><br /><a href="https://eng-przemelek.blogspot.com/2009/11/which-language-is-fastest.html" target="blank">Which language is fastest? ;-)</a><br /><a href="https://eng-przemelek.blogspot.com/2011/01/google-buzz-lets-mark-some-comments-as.html" target="blank">Google Buzz - let's mark some comments as not spam ;-) or how to unhide "hidden" comments ;-)</a><br /><a href="https://eng-przemelek.blogspot.com/2024/01/how-to-get-negative-number-from-size-in.html" target="blank">How to get negative number from size() in LinkedList in Java? ;-)</a><br /><a href="https://eng-przemelek.blogspot.com/2009/07/what-sux-in-g1.html" target="blank">What sux in G1?</a><br /><a href="https://eng-przemelek.blogspot.com/2008/08/calculation-fo-life-time-of-ssd-in-eee.html" target="blank">Calculation of SSD life time in EEE PC</a><br />przemelekhttp://www.blogger.com/profile/14956032882265621104noreply@blogger.com0tag:blogger.com,1999:blog-7988909354379167046.post-28996543092461066542018-07-09T00:07:00.001+02:002024-01-23T10:32:01.660+01:00When you should stop read a book?I like to read, and from more than year I try to spend daily at least 45 minutes reading some popular science or similar book.<br/><br/>But sometimes I don't like the book.<br/><br/>And I'm looking for some "formula" to decide if I should stop to read or not.<br/><br/>I already spend this time, and I'm not able to recoup it, still I may try to rescue rest of time I would spent reading....<br/><br/>So maybe something like:<br/><br/>expected_value = value_till_now/time_spent<br/><br/>This will let me estimate how much I may gain.<br/>Interesting fact, because at the beginning I have some "value" already at least from this that reading on its own improves vocabulary and so on, at the beginning expected_value is almost infinite ;-)<br/><br/>Now is problem of this what should be expected_value.<br/>I would propose something radical, expected value should be at least equal to average value from previously read books.<br/>Let even be nicer for book, lets say it should be at least half of value of average book.<br/><br/>So formula to make decision should be:<br/><br/>stop_reading = value_till_now/time_spent < 0.5*average_value_of_book<br/><br/>It seems also that using this formula will cause that reading more books will means stoping earlier with bad books ;-)<br/><br/>And thanks to this I avoided in last year or so reading books like:<br/>The Singularity Is Near by Ray Kurzweil - topic was interesting, but at least Polish translation of this book was so badly written that I didn't wanted to read it,<br/>Getting Things Done by David Allen - how many times the same may be written? Or maybe this was again Polish translation,<br/>The 4-Hour Workweek by Tim Ferriss - I admire Tim Ferriss for creating really good idea of making business - let others do it - it brillant idea, and books created in such way like Tools of Titans, and Mentors Tribe are quiet interesting, this one is simply boring.<br/>Capital in the Twenty-First Century by Thomas Piketty - main idea of book is worth noting, but it isn't easy read, and one simply don't have way to verify data provided, so instead of reading this one book I would prefer reading some summary of it (from this what I heard the same is true about Marx's Capital ;-))<br/><br/>
<span style="font-weight: bold;">Similar posts</span><sup><span style=";font-size:75%;color:red;">beta</span></sup><br /><a href="https://eng-przemelek.blogspot.com/2017/03/python-yet-another-hero-of-sf-book.html" target="blank">Python yet another hero of SF book Seveneves</a><br /><a href="https://eng-przemelek.blogspot.com/2017/02/how-to-detect-clickbaits.html" target="blank">How to detect clickbaits?</a><br /><a href="https://eng-przemelek.blogspot.com/2008/07/recursion-is-evil.html" target="blank">Recursion is evil ;-)</a><br /><a href="https://eng-przemelek.blogspot.com/2015/11/its-alive-still.html" target="blank">It's alive... still ;-)</a><br /><a href="https://eng-przemelek.blogspot.com/2024/01/how-to-get-negative-number-from-size-in.html" target="blank">How to get negative number from size() in LinkedList in Java? ;-)</a><br />przemelekhttp://www.blogger.com/profile/14956032882265621104noreply@blogger.com0tag:blogger.com,1999:blog-7988909354379167046.post-34137465280346814022018-07-01T16:42:00.000+02:002023-02-09T14:56:30.229+01:00Blindfold programmingSome time ago I read <a href="https://academiccomputing.wordpress.com/2012/09/28/experts-can-program-blindfolded/">this article</a>, and started to play with idea of Blindfold programming.<br/><br/>What this whole Blindfold Programming is about?<br/><br/>It is about trying to write code in your head, without any screen, keyboard, paper or whiteboard. Only in head.<br/><br/>Why?<br/><br/>To exercise :-)<br/>Not used ability usually stops to work...<br/><br/>And in my case I noticed several years ago what becoming more senior in software engineering in my case means writing less code... but still coding is very important part of this job, so it is important to practice :-)<br/><br/>Additionally it seems that it helps with <a href="https://www.verywellmind.com/chunking-how-can-this-technique-improve-your-memory-2794969">chunking</a>. and naturally leads to dividing problem to smaller subproblems.<br/><br/>This part is important, because human brain doesn't have too much space in short memory. One is able to keep in the same time ~4 things in memory and focus.<br/><br/>So from some time I'm going to <a href="https://leetcode.com/problemset/all/?difficulty=Easy">LeetCode easy problems</a> and I'm trying to write whole solution in my head. Sometimes I'm touching also medium problems in the same way.<br/><br/>Next, sometimes I'm writing code on whiteboard or with pencile on my iPad Pro, but usually I simply put whole code from my head to LeetCode editor and I'm checking if my solution works ;-)<br/><br/>And after several months of doing it I think I can see some improvements ;-)<br/><div><br/></div><br/><br/><br /><span style="font-weight: bold;">Similar posts</span><sup><span style=";font-size:75%;color:red;">beta</span></sup><br /><a href="https://eng-przemelek.blogspot.com/2019/03/coding-without-ide.html" target="blank">Coding without IDE</a><br /><a href="https://eng-przemelek.blogspot.com/2017/01/whiteboard.html" target="blank">Whiteboard</a><br /><a href="https://eng-przemelek.blogspot.com/2017/02/coursera-courses-worth-of-doing.html" target="blank">Coursera courses - worth of doing?</a><br /><a href="https://eng-przemelek.blogspot.com/2017/06/my-way-to-parital-vegetarianism.html" target="blank">My way to (parital) vegetarianism </a><br /><a href="https://eng-przemelek.blogspot.com/2018/07/programmers-love-to-over-complicate.html" target="blank">Programmers love to over complicate... </a><br />przemelekhttp://www.blogger.com/profile/14956032882265621104noreply@blogger.com0tag:blogger.com,1999:blog-7988909354379167046.post-30052572799936964062018-06-23T21:45:00.000+02:002023-02-09T14:56:22.606+01:00Decluttering of phone :-)Last Friday or Thursday I looked on my phone and realized that I have too many apps on start screen.<br/>At time it looked somehow like this:<br/><br/><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgp3frNlI35OYK_4yfoomjTwy7ITjaX1VjQCP5SiygXvqqrMqMezpzZpuhA5V6MTybMAMApX5L8_vcehyq809H8j3GtULvl7JTNID0whjkD2bUEVCkpsS-zqflrTEN-saX1fKsVhhQegVA/s1600/Screenshot_20180217-103222.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1600" data-original-width="800" height="640" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgp3frNlI35OYK_4yfoomjTwy7ITjaX1VjQCP5SiygXvqqrMqMezpzZpuhA5V6MTybMAMApX5L8_vcehyq809H8j3GtULvl7JTNID0whjkD2bUEVCkpsS-zqflrTEN-saX1fKsVhhQegVA/s640/Screenshot_20180217-103222.png" width="320" /></a></div><br/>Icons and Folders were set in slightly different way (once o week I'm reorganizing some apps, like WhatsApp, Chrome, Inbox to make it more difficult to start those "on autopilot"), but number was exactly the same.<br/><br/>Now I have still a lot of icons, but number is smaller:<br/><br/><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMvSC7hHhd2BY4_I11k6jPVzYudxLz_mK1RIufQ6mXUW9tJI3fQ7ZbYy5BWaAe6ff_5_5k2DllHMuM81nui5CCPlfTDLRjCKmaO4kGizFFDwWjtBItdnBgav9P5m6aPxNHEfsSoh5T_Cg/s1600/Screenshot_20180623-213931.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1600" data-original-width="800" height="640" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMvSC7hHhd2BY4_I11k6jPVzYudxLz_mK1RIufQ6mXUW9tJI3fQ7ZbYy5BWaAe6ff_5_5k2DllHMuM81nui5CCPlfTDLRjCKmaO4kGizFFDwWjtBItdnBgav9P5m6aPxNHEfsSoh5T_Cg/s640/Screenshot_20180623-213931.png" width="320" /></a></div><br/>Still I have place to improvement, but I'm moving in right direction ;-)<br/><br/><br /><span style="font-weight: bold;">Similar posts</span><sup><span style=";font-size:75%;color:red;">beta</span></sup><br /><a href="https://eng-przemelek.blogspot.com/2018/01/biggest-problem-with-whatsapp-telegram.html" target="blank">Biggest problem with WhatsApp, Telegram, Allo, Duo and so on</a><br /><a href="https://eng-przemelek.blogspot.com/2008/03/openofficeorg2googledocs-09.html" target="blank">OpenOffice.org2GoogleDocs 0.9 :-)</a><br /><a href="https://eng-przemelek.blogspot.com/2017/05/avoiding-nulls-becoming-better.html" target="blank">Avoiding null's -> becoming better programmer ;-)</a><br /><a href="https://eng-przemelek.blogspot.com/2017/06/my-way-to-parital-vegetarianism.html" target="blank">My way to (parital) vegetarianism </a><br /><a href="https://eng-przemelek.blogspot.com/2017/12/know-country-behind-apps-on-your-phone.html" target="blank">Know country behind apps on your phone....</a><br />przemelekhttp://www.blogger.com/profile/14956032882265621104noreply@blogger.com0tag:blogger.com,1999:blog-7988909354379167046.post-32662625277907063792018-03-25T00:54:00.001+01:002024-01-23T10:31:55.119+01:00My Clipboard says that I&amp;amp;#39;m a programmer ;-)Interesting...<br/>Several days ago I started to use <a href="https://hluk.github.io/CopyQ/">CopyQ</a> (so Clipboard Manager which lets you return to things earlier in clipboard - works on Linux, macOS/OSX and as I heard also on Windows).<br/><br/>And now I counted how many pieces of code I have in latest 100 positions...<br/><br/>And it seems that it was 40 :-)<br/><br/>So 40% of all things in my clipboard are fragments of code ;-)<br/><br/>Someone may say that this means that I must copy/paste a lot of code ;-)<br/>But no, this was my code :-)<br/><br/>Some of those <a href="https://github.com/przemelek/dcevm/commit/73e2f0eef882b146ecc561bf997b2d9ead0a113a">were tests</a> for <a href="https://dcevm.github.io/">DCEVM</a> which I first were putting in other test classes, and latter moved to new one (it was easier to copy them than use move), pieces of code of DCEVM, and some programming tasks I was moving to other project (to have list of solutions for people checking first stage of our interview process)).<br/><br/>So, I must say it - I'm a programmer ;-)<br/><br/>
<span style="font-weight: bold;">Similar posts</span><sup><span style=";font-size:75%;color:red;">beta</span></sup><br /><a href="https://eng-przemelek.blogspot.com/2017/12/using-pythonista-to-journaling.html" target="blank">Using Pythonista to Journaling ;-)</a><br /><a href="https://eng-przemelek.blogspot.com/2019/03/coding-without-ide.html" target="blank">Coding without IDE</a><br /><a href="https://eng-przemelek.blogspot.com/2017/01/coding-time-means-often-waitingreading.html" target="blank">Coding time means often waiting/reading time ;-)</a><br /><a href="https://eng-przemelek.blogspot.com/2017/05/avoiding-nulls-becoming-better.html" target="blank">Avoiding null's -> becoming better programmer ;-)</a><br /><a href="https://eng-przemelek.blogspot.com/2017/02/it-seems-that-meditation-helps.html" target="blank">It seems that meditation helps ;-)</a><br />przemelekhttp://www.blogger.com/profile/14956032882265621104noreply@blogger.com0tag:blogger.com,1999:blog-7988909354379167046.post-86899686827007895622018-01-14T18:14:00.002+01:002023-02-09T14:56:21.992+01:00Biggest problem with WhatsApp, Telegram, Allo, Duo and so onTo be honest I was trying not to use any of "new wave" communicators as long as it was possible.<br/><br/>Main reason why I don't like those is the fact that your account is assigned to phone number.<br/>This is strange, and not cool.<br/><br/>First of all you may use those only on mobile devices which has SIM card and phone number...<br/>So if your tablet don't have such you will not use it...<br/>Second if you change your phone number you have next set of problems...<br/>Especially if you are on trip, and change SIM card to local operator to have Internet in your phone.....<br/><br/>So I still prefer Hangouts over those. I may use Hangouts on phone, tablet and PC without any difficult hassle...<br/><br/>I wonder when those will "invent" accounts instead of phone numbers......<br/><br/><br /><span style="font-weight: bold;">Similar posts</span><sup><span style=";font-size:75%;color:red;">beta</span></sup><br /><a href="https://eng-przemelek.blogspot.com/2017/03/mobile-generation.html" target="blank">Mobile generation..</a><br /><a href="https://eng-przemelek.blogspot.com/2018/06/decluttering-of-phone.html" target="blank">Decluttering of phone :-)</a><br /><a href="https://eng-przemelek.blogspot.com/2009/07/what-sux-in-g1.html" target="blank">What sux in G1?</a><br /><a href="https://eng-przemelek.blogspot.com/2017/12/know-country-behind-apps-on-your-phone.html" target="blank">Know country behind apps on your phone....</a><br /><a href="https://eng-przemelek.blogspot.com/2017/07/yep-tablet-may-replace-computer-in-most.html" target="blank">Yep, tablet may replace computer in most of cases... </a><br />przemelekhttp://www.blogger.com/profile/14956032882265621104noreply@blogger.com0tag:blogger.com,1999:blog-7988909354379167046.post-70325512611075932682017-12-31T00:04:00.001+01:002023-02-09T14:56:28.329+01:00Using Pythonista to Journaling ;-)I'm using my iPad Pro to journaling.<br/>Each day I'm trying to write what I done, what I'm happy for, what I learn and so on...<br/><br/>I like also book The Martian ;-)<br/>And each entry of Mark Watney in The Martian starts from date (in Sols).<br/>It would not work for me, but number of days from my birthday? ;-)<br/><br/>So I wrote small Python script which I run on Pythonista.<br/><br/><pre style="background-color: white; font-family: "DejaVu Sans Mono";"><span style="color: navy; font-weight: bold;">import </span>time<br/><span style="color: navy; font-weight: bold;">import </span>clipboard<br/><span style="color: navy; font-weight: bold;">import </span>webbrowser<br/><span style="color: navy; font-weight: bold;">import </span>console<br/><span style="color: navy; font-weight: bold;">import </span>util<br/><br/>#if you want to use it put below your birthdate :-)<br/>birthday=time.strptime(<span style="color: green; font-weight: bold;">"1900-01-11 7:45"</span>,<span style="color: green; font-weight: bold;">"%Y-%m-%d %H:%M"</span>)<br/>now=time.time()<br/>time_from_birth=now-time.mktime(birthday)<br/>days_from_birth=round(time_from_birth/<span style="color: blue;">60</span>/<span style="color: blue;">60</span>/<span style="color: blue;">24</span>,<span style="color: blue;">5</span>)<br/><br/><br/>today=time.strftime(<span style="color: green; font-weight: bold;">"%d-%m-%Y"</span>)<br/>clipboard.set(today+<span style="color: green; font-weight: bold;">"</span><span style="color: navy; font-weight: bold;">\n</span><span style="color: green; font-weight: bold;">Day:"</span>+str(days_from_birth))<br/><br/><span style="color: navy; font-weight: bold;">print</span>(<span style="color: green; font-weight: bold;">"Done"</span>)<br/><br/>util.startBundle(<span style="color: green; font-weight: bold;">"pro.writer"</span>)</pre><pre style="background-color: white; font-family: "DejaVu Sans Mono";"></pre><pre style="background-color: white; font-family: "DejaVu Sans Mono";"></pre><br/>Which is using next script (util.py):<br/><br/><pre style="background-color: white; font-family: "DejaVu Sans Mono";"><span style="color: navy; font-weight: bold;">from </span>objc_util <span style="color: navy; font-weight: bold;">import </span>*<br/><span style="color: navy; font-weight: bold;">from </span>ctypes <span style="color: navy; font-weight: bold;">import </span>*<br/><span style="color: navy; font-weight: bold;">import </span>sys<br/><br/><br/><span style="color: navy; font-weight: bold;">def </span>startBundle(bundleId):<br/> <span style="color: grey;">libobjc</span>=CDLL(<span style="color: green; font-weight: bold;">'/usr/lib/libobjc.dylib'</span>)<br/> LSApplicationWorkspace=ObjCClass(<span style="color: green; font-weight: bold;">'LSApplicationWorkspace'</span>)<br/> workspace=LSApplicationWorkspace.defaultWorkspace()<br/> workspace.openApplicationWithBundleID(bundleId)</pre><br/>So first script is calculating number of days from my birthday.<br/>For now it is 14531.84021 days ;-)<br/><br/>Next this with some additional text is copied to clipboard.<br/><br/>Next using method startBundle from util module it starts iA Writer :-)<br/><br/>My only job is to do CMD-V (on keyboard of my iPad Pro) and start to write about my day :-)<br/><br/>This startBundle may start any of program on iPad, only thing which we need to know is an id of application (<a href="https://pspdfkit.com/guides/ios/current/faq/finding-the-app-bundle-id/">here</a> is instruction how to get this ID for known program).<br/><br/>I would really love to be able to instruct iA Writer to create new file and paste my text at beginning of it... but as for now I'm not able to do so ;-)<br/><br/><br /><span style="font-weight: bold;">Similar posts</span><sup><span style=";font-size:75%;color:red;">beta</span></sup><br /><a href="https://eng-przemelek.blogspot.com/2017/08/android-vs-ios.html" target="blank">Android vs iOS</a><br /><a href="https://eng-przemelek.blogspot.com/2009/03/ooo2gd-151-birthday-edition.html" target="blank">OOo2GD 1.5.1 Birthday Edition ;-)</a><br /><a href="https://eng-przemelek.blogspot.com/2017/11/worflow-my-biggest-disapotiment-of-ios.html" target="blank">Worflow - my biggest disapotiment of iOS</a><br /><a href="https://eng-przemelek.blogspot.com/2017/06/watchdog.html" target="blank">Watchdog.... </a><br /><a href="https://eng-przemelek.blogspot.com/2017/02/how-to-detect-clickbaits.html" target="blank">How to detect clickbaits?</a><br />przemelekhttp://www.blogger.com/profile/14956032882265621104noreply@blogger.com0tag:blogger.com,1999:blog-7988909354379167046.post-11422737547679117372017-12-18T01:50:00.000+01:002023-02-09T14:56:20.796+01:00Know country behind apps on your phone....Smartphone knows a lot about its owner.<br/>Knows where this person is.<br/>Knows with whom this person talk.<br/>Can listen. Can make photos.<br/><br/>So, it is better if you know who can know this stuff about you.<br/><br/>I may be little paranoid, but lets be honest, I don't trust companies from countries like Russia or China...<br/><br/>If I need to choose being tracked by NSA or CIA, or by FSB, I will always choose NSA and CIA.<br/>Of course if I can I would like to be sure that any of those track me ;-)<br/><br/>So I looked on apps on my phone.<br/>Among 94 my results looks like this (yep, I counted Google as country ;-)) <br/><br/><center><table border="1"><tbody><tr><th>Country</th><th>count</th></tr><tr><td>Google</td><td>47</td></tr><tr><td>USA</td><td>13</td></tr><tr><td>Poland</td><td>10</td></tr><tr><td>UK</td><td>5</td></tr><tr><td>China</td><td>4</td></tr><tr><td>my own</td><td>4</td></tr><tr><td>Netherlands</td><td>2</td></tr><tr><td>Serbia</td><td>2</td></tr><tr><td>Australia</td><td>1</td></tr><tr><td>Czech Republic</td><td>1</td></tr><tr><td>Germany</td><td>1</td></tr><tr><td>Japan</td><td>1</td></tr><tr><td>South Korea</td><td>1</td></tr><tr><td>unknown</td><td>1</td></tr><tr><td>was Google</td><td>1</td></tr></tbody></table></center><br/>Happily nothing from Russia ;-)<br/>Sadly some apps from China.<br/>One is Kasa from TP-Link, second is Motoconnect from Motorola. So I hope that I may trust those.<br/>CamScanner is little bit tricky. I'm not scanning top secret documents, but this makes me little bit worried.<br/>Wifi Analyzer too...<br/>I have one app which I don't know from where it is. This is <a href="https://play.google.com/store/apps/details?id=com.google.zxing.client.android&hl=en">Barcode scanner</a>, don't know why but name of developer sounds like China. Happily this is open source.<br/><br/>But looking on this list I know almost for sure that I will not install Telegram. Sorry...<br/>Will rather go in direction of WhatsApp... but I'm not happy with that.<br/><br/>To be honest I spend near one hour checking from where is given developer.<br/>And in most cases I was checking both info on Google Play, and for whom domain is registered.<br/><br/><br /><span style="font-weight: bold;">Similar posts</span><sup><span style=";font-size:75%;color:red;">beta</span></sup><br /><a href="https://eng-przemelek.blogspot.com/2011/04/callloger-invigilate-yourself.html" target="blank">CallLoger ;-) Invigilate yourself ;-)</a><br /><a href="https://eng-przemelek.blogspot.com/2019/01/bloggerid-cannot-post-images.html" target="blank">Bloggerid cannot post images....</a><br /><a href="https://eng-przemelek.blogspot.com/2015/11/its-alive-still.html" target="blank">It's alive... still ;-)</a><br /><a href="https://eng-przemelek.blogspot.com/2017/03/borders-immigrants-and-so-on.html" target="blank">Borders, immigrants and so on</a><br /><a href="https://eng-przemelek.blogspot.com/2007/12/vacation-in-progress.html" target="blank">Vacation in progress ;-)</a><br />przemelekhttp://www.blogger.com/profile/14956032882265621104noreply@blogger.com0tag:blogger.com,1999:blog-7988909354379167046.post-44526901324463060062017-11-26T01:55:00.002+01:002023-02-09T14:56:27.127+01:00Coursers courses debugging ;-)I really like <a href="http://coursera.org/">Coursera</a>, and set of courses about deep learning (from <a href="http://deeplearning.ai/">deeplearning.ai</a>), but I must make note to myself:<br/><div style="text-align: center;">"DO NOT attend new (fresh) courses before those will not stabilize"</div><br/>Why?<br/>Today I finished <a href="https://www.coursera.org/account/accomplishments/verify/Y6EU2ZTMCYYQ?lipi=urn%3Ali%3Apage%3Ad_flagship3_profile_view_base%3BELppERYCR5%2BK99afiiI2gQ%3D%3D">4th</a> (as for now last, 5th will be available "soon") course in deeplearning.ai path.<br/>It was quiet interesting, about convolutional neural networks.<br/>But almost in each of assignments some bugs were present.<br/><br/>In last set of assignments those were biggest (things like this that first task is described as second, and second as first, or this that to do second task (described as first) you need to break your code, and in first task (described as second) despite this that during creation of functions you are using TensorFlow, latter example code is trying to pass there numpy objects....<br/><br/>I need simply wait some time, till those courses will not be debugged :-)<br/><br/><br /><span style="font-weight: bold;">Similar posts</span><sup><span style=";font-size:75%;color:red;">beta</span></sup><br /><a href="https://eng-przemelek.blogspot.com/2017/02/coursera-courses-worth-of-doing.html" target="blank">Coursera courses - worth of doing?</a><br /><a href="https://eng-przemelek.blogspot.com/2017/07/yep-tablet-may-replace-computer-in-most.html" target="blank">Yep, tablet may replace computer in most of cases... </a><br /><a href="https://eng-przemelek.blogspot.com/2017/02/how-to-detect-clickbaits.html" target="blank">How to detect clickbaits?</a><br /><a href="https://eng-przemelek.blogspot.com/2007/11/re.html" target="blank">RE<C</a><br /><a href="https://eng-przemelek.blogspot.com/2017/01/coding-time-means-often-waitingreading.html" target="blank">Coding time means often waiting/reading time ;-)</a><br />przemelekhttp://www.blogger.com/profile/14956032882265621104noreply@blogger.com0tag:blogger.com,1999:blog-7988909354379167046.post-32682695161417268712017-11-06T02:02:00.000+01:002023-02-09T14:56:20.160+01:00Worflow - my biggest disapotiment of iOSLong befor having anything with iOS I heard about Worflow.<br/>Wonderful app which was able to automate a lot of stuff on iOS.<br/><br/>I was looking for something similar to this what I imagnied on Android, and each of those tools was disapointing...<br/><br/>So finally when I got iPad Pro, I installed Workflow.<br/><br/>It was nice, shiny.... and completly useless...*<br/><br/>It seems that Workflow is build for people who need to automate some trivial stuff, and are complety OK with whole hassle with clicking, opening windows and so on.<br/><br/>This is really powerfull tool.<br/>It is very usefull tool.<br/>But not for me, and users like me.<br/><br/>Problem is not in Workflow but in my needs. I needed something what would help me automate some things where the best solution would be to write app, or in very untypical cases (like copying files from iCloud to Google Drive).<br/>In some of those cases I already have apps created to do a job.<br/>So automation given to me by this powerfull tool is in my cases not needed.<br/><br/>And because of this tool which looked for me so promising, is one of rarest started apps on my iPad...<br/>To be honest I’m running it from time to time to check if maybe somehow I will be able to use it... but as for now answer was always „no” ;-)<br/><br/>* - very important addition here - it was useless for me.<br/><br/><br /><span style="font-weight: bold;">Similar posts</span><sup><span style=";font-size:75%;color:red;">beta</span></sup><br /><a href="https://eng-przemelek.blogspot.com/2017/07/yep-tablet-may-replace-computer-in-most.html" target="blank">Yep, tablet may replace computer in most of cases... </a><br /><a href="https://eng-przemelek.blogspot.com/2017/08/android-vs-ios.html" target="blank">Android vs iOS</a><br /><a href="https://eng-przemelek.blogspot.com/2017/01/my-road-to-automation.html" target="blank">My road to automation ;-)</a><br /><a href="https://eng-przemelek.blogspot.com/2015/12/throw-out-1-thing-each-day.html" target="blank">Throw out 1 thing each day </a><br /><a href="https://eng-przemelek.blogspot.com/2009/03/ooo2gd-151-birthday-edition.html" target="blank">OOo2GD 1.5.1 Birthday Edition ;-)</a><br />przemelekhttp://www.blogger.com/profile/14956032882265621104noreply@blogger.com0tag:blogger.com,1999:blog-7988909354379167046.post-38097372691129015812017-11-04T20:11:00.000+01:002023-02-09T14:56:25.922+01:00Keyboard + tablet = not great idea ;-)<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUr6fW8l5CTlg-VfF7LMA1HqGYjBT54so8BJydKNnlewUCyRRNBD79F4c2v-JGKG3rqHaOC-Qx7EDAc1vEltSl-HhQFGyx9zdssc0Bj2HxFrONboZIrFTZ26s9elkTEmS_lxgf9Lc0-sM/s1600/IMG_20171101_005327.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1200" data-original-width="1600" height="480" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUr6fW8l5CTlg-VfF7LMA1HqGYjBT54so8BJydKNnlewUCyRRNBD79F4c2v-JGKG3rqHaOC-Qx7EDAc1vEltSl-HhQFGyx9zdssc0Bj2HxFrONboZIrFTZ26s9elkTEmS_lxgf9Lc0-sM/s640/IMG_20171101_005327.jpg" width="640" /></a></div><br/>Now I'm sure of something what I found out years ago, but wasn't sure.<br/><br/>Years ago I had one of first quiet good tablets with Android.<br/>It was EEE Pad Transformer from Asus.<br/><br/>I used it a lot, but when I was buying it I didn't bought keyboard.<br/>Latter I bought it, and in the blink I stopped to use it...<br/>It was too complicated to remove keyboard, so I wasn't removing keyboard and wasn't using tablet.<br/><br/>So when I was buying iPad Pro with keyboard I was little bit afraid.<br/>But it was working.<br/><br/>So I decided that it may be good idea to buy keyboard for my Pixel C.<br/><br/>So being in US I bought some used keyboard for Pixel C.<br/><br/>And again, it caused that I started to treat Pixel C differently....<br/>Maybe not using it less, but less enthusiastically ;-)<br/><br/>So I put Pixel C again to its cover, it works better.<br/>I still may use keyboard sometimes, but ratter not ;-)<br/><br/>So why with iPad Pro keyboard wasn't so problematic?<br/>I think 2 things, first this keyboard is really easy to work with, its part of cover, so I may use it as cover or as keyboard.<br/>Second thing is that from this what I can say I'm using iPad Pro more like some kind of computer, so much more often in landscape than portrait mode. So keyboard makes perfect sense for it :-)<br/><br/><br /><span style="font-weight: bold;">Similar posts</span><sup><span style=";font-size:75%;color:red;">beta</span></sup><br /><a href="https://eng-przemelek.blogspot.com/2017/07/yep-tablet-may-replace-computer-in-most.html" target="blank">Yep, tablet may replace computer in most of cases... </a><br /><a href="https://eng-przemelek.blogspot.com/2017/08/android-vs-ios.html" target="blank">Android vs iOS</a><br /><a href="https://eng-przemelek.blogspot.com/2016/12/2016.html" target="blank">2016...</a><br /><a href="https://eng-przemelek.blogspot.com/2017/08/2-years-without-car.html" target="blank">2+ years without a car</a><br /><a href="https://eng-przemelek.blogspot.com/2018/07/blindfold-programming.html" target="blank">Blindfold programming</a><br />przemelekhttp://www.blogger.com/profile/14956032882265621104noreply@blogger.com0tag:blogger.com,1999:blog-7988909354379167046.post-73384142886582619322017-10-08T12:03:00.001+02:002023-02-09T14:56:19.538+01:00Pixelbook<div xmlns='http://www.w3.org/1999/xhtml'>A lot of people over internet ask why Google created Pixelbook.<br/>And says on the same breath that it for sure cannot compete with MacBook or even PC.<br/><br/>I think that it was never intention.<br/><br/>It should compete with iPad Pro.<br/><br/>And because it have true web browser, and ability to run Android apps it may be even better than iPad Pro...<br/><br/>Only problem is, that nobody will buy it :-(<br/><p style='font-size: xx-small' align='right'>posted from <a href='https://market.android.com/details?id=pl.przemelek.android.blogger'>Bloggeroid</a></p></div><br/><br/><br /><span style="font-weight: bold;">Similar posts</span><sup><span style=";font-size:75%;color:red;">beta</span></sup><br /><a href="https://eng-przemelek.blogspot.com/2017/07/yep-tablet-may-replace-computer-in-most.html" target="blank">Yep, tablet may replace computer in most of cases... </a><br /><a href="https://eng-przemelek.blogspot.com/2017/03/mobile-generation.html" target="blank">Mobile generation..</a><br /><a href="https://eng-przemelek.blogspot.com/2017/11/keyboard-tablet-not-great-idea.html" target="blank">Keyboard + tablet = not great idea ;-)</a><br /><a href="https://eng-przemelek.blogspot.com/2017/01/whiteboard.html" target="blank">Whiteboard</a><br /><a href="https://eng-przemelek.blogspot.com/2017/01/amazon-prime-video-suxx.html" target="blank">Amazon Prime Video suxx</a><br />przemelekhttp://www.blogger.com/profile/14956032882265621104noreply@blogger.com0tag:blogger.com,1999:blog-7988909354379167046.post-52723881178883400372017-09-24T14:19:00.001+02:002023-02-09T14:56:25.266+01:00AWS vs Azure vs Google CloudI'm guessing that Google should find catchy name for its cloud solution.<br/>Something like Android for mobile or Chrome for browser.<br/><br/>Here Google Trends comparing search for AWS/Azure/Google Cloud:<br/><br/><br/><script src="https://ssl.gstatic.com/trends_nrtr/1154_RC03/embed_loader.js" type="text/javascript"></script> <script type="text/javascript"> trends.embed.renderExploreWidget("TIMESERIES", {"comparisonItem":[{"keyword":"aws","geo":"","time":"2012-09-24 2017-09-24"},{"keyword":"google cloud","geo":"","time":"2012-09-24 2017-09-24"},{"keyword":"azure","geo":"","time":"2012-09-24 2017-09-24"}],"category":5,"property":""}, {"exploreQuery":"cat=5&date=2012-09-24 2017-09-24,2012-09-24 2017-09-24,2012-09-24 2017-09-24&q=aws,google%20cloud,azure","guestPath":"https://trends.google.com:443/trends/embed/"}); </script><br/>As we can see people are searching mainly for AWS and Azure, but not too much for Google Cloud.<br/><br/>It's even better visible when you will look on YouTube searches:<br/><br/><script src="https://ssl.gstatic.com/trends_nrtr/1154_RC03/embed_loader.js" type="text/javascript"></script> <script type="text/javascript"> trends.embed.renderExploreWidget("TIMESERIES", {"comparisonItem":[{"keyword":"aws","geo":"","time":"2012-09-24 2017-09-24"},{"keyword":"google cloud","geo":"","time":"2012-09-24 2017-09-24"},{"keyword":"azure","geo":"","time":"2012-09-24 2017-09-24"}],"category":5,"property":"youtube"}, {"exploreQuery":"cat=5&date=2012-09-24 2017-09-24,2012-09-24 2017-09-24,2012-09-24 2017-09-24&gprop=youtube&q=aws,google%20cloud,azure","guestPath":"https://trends.google.com:443/trends/embed/"}); </script><br/>And as all developers knows when you are looking for first info, you first look over web, next you move to YouTube for some short and sweet descriptions.<br/><br/>My guess is that developers are looking for available options for cloud, and it is much easier to look for something specific like aws or azure, not for "google cloud".<br/>Term "google cloud" may means everything, from "cloud" of search terms, by Google infrastructure, Google services like Google Drive, and Google products like compute engine and so on.<br/><br/>Maybe it would be good idea to use one catchy phrase to name all Google cloud products? Appspot wasn't soo bad ;-)<br/><br/><br /><span style="font-weight: bold;">Similar posts</span><sup><span style=";font-size:75%;color:red;">beta</span></sup><br /><a href="https://eng-przemelek.blogspot.com/2019/01/bloggerid-cannot-post-images.html" target="blank">Bloggerid cannot post images....</a><br /><a href="https://eng-przemelek.blogspot.com/2008/03/secret-life-of-string.html" target="blank">The Secret Life of String ;-)</a><br /><a href="https://eng-przemelek.blogspot.com/2009/07/how-to-create-valid-file-name.html" target="blank">How to create valid file name?</a><br /><a href="https://eng-przemelek.blogspot.com/2008/06/how-we-may-use-google-earth-plugin.html" target="blank">How we may use Google Earth Plugin? :-)</a><br /><a href="https://eng-przemelek.blogspot.com/2010/11/people-dont-read.html" target="blank">People doesn't read...</a><br />przemelekhttp://www.blogger.com/profile/14956032882265621104noreply@blogger.com0tag:blogger.com,1999:blog-7988909354379167046.post-30214779042556239582017-09-18T01:26:00.003+02:002023-02-09T14:56:18.908+01:00Buying christmas lights in September isn’t easy ;-)Who knows that it is really difficult to buy simple christmas lights in September ;-)<br/><br/>Yep, this is possible, but not so easy like in December ;-)<br/><br/>And I have simple dream, I would like to have christmas lights hanging on one of my bookshelfs (exactly 2 Kalaxes which are dividing my kittchen anex from rest of my studio).<br/>And I would like to light those one by simple „OK, Google make lights” or similar.<br/><br/>This second part is already done. Thanks to some magic from TP-Link and one of theirs products.<br/><br/>Now I only needs lights...<br/><br/>I was hopping to buy those in normal brick and mortar shop, but it seems that those are seasonal...<br/>So I will need to buy those in the net... and wait...<br/><br/><br /><span style="font-weight: bold;">Similar posts</span><sup><span style=";font-size:75%;color:red;">beta</span></sup><br /><a href="https://eng-przemelek.blogspot.com/2017/01/whiteboard.html" target="blank">Whiteboard</a><br /><a href="https://eng-przemelek.blogspot.com/2017/12/know-country-behind-apps-on-your-phone.html" target="blank">Know country behind apps on your phone....</a><br /><a href="https://eng-przemelek.blogspot.com/2017/08/alexa-what-to-do-with-her.html" target="blank">Alexa... What to do with her?</a><br /><a href="https://eng-przemelek.blogspot.com/2015/12/throw-out-1-thing-each-day.html" target="blank">Throw out 1 thing each day </a><br /><a href="https://eng-przemelek.blogspot.com/2017/08/2-years-without-car.html" target="blank">2+ years without a car</a><br />przemelekhttp://www.blogger.com/profile/14956032882265621104noreply@blogger.com0tag:blogger.com,1999:blog-7988909354379167046.post-33555868648444054662017-08-27T22:31:00.000+02:002023-02-09T14:56:24.063+01:00Lemon battery...One of my wildest dreams was to build lemon or potato battery to power Raspberry Pi...<br/><br/>I always thought that it should be easy.<br/><br/>~14 years ago on some industrial fair one of companies was showing some small device powered by potato battery, so I thought that this should work with Rasbperry Pi too.<br/><br/>Problem is that according to science (or at least <a href="https://en.wikipedia.org/wiki/Lemon_battery">Wikipedia</a> ;-)) lemon battery build from 1 lemon gives up to 1 mA of current...<br/>And according to <a href="https://www.pidramble.com/wiki/benchmarks/power-consumption">this site</a> minimal current needed for RPi vary from 80 mA up to 1250 mA...<br/><br/>So it seems that I would need at least 80 lemons only to power RPi....<br/><br/>It doesn't look as viable plan ;-)<br/><br/>And it also seems that this company I remember wasn't showing working device ;-)<br/>They would much more energy to power device, especially that this was some device connected to GSM modem ;-)<br/><br/><br /><span style="font-weight: bold;">Similar posts</span><sup><span style=";font-size:75%;color:red;">beta</span></sup><br /><a href="https://eng-przemelek.blogspot.com/2017/06/watchdog.html" target="blank">Watchdog.... </a><br /><a href="https://eng-przemelek.blogspot.com/2017/03/why-people-are-so-afraid-of-terrorists.html" target="blank">Why people are so afraid of terrorists?</a><br /><a href="https://eng-przemelek.blogspot.com/2009/07/what-sux-in-g1.html" target="blank">What sux in G1?</a><br /><a href="https://eng-przemelek.blogspot.com/2010/11/ooo2gd-help-site.html" target="blank">OOo2GD help site</a><br /><a href="https://eng-przemelek.blogspot.com/2015/12/throw-out-1-thing-each-day.html" target="blank">Throw out 1 thing each day </a><br />przemelekhttp://www.blogger.com/profile/14956032882265621104noreply@blogger.com0tag:blogger.com,1999:blog-7988909354379167046.post-8330869330257270602017-08-27T00:00:00.001+02:002023-02-09T14:56:18.287+01:002+ years without a carLittle more than 2 years ago I have collision on highway, and my car transformed from nice but old to simple old ;-)<br/>I tried to repair it, but after spending 1/3 of its price at the time on repairs I got something doesn’t worth of trust.<br/>As a result of this I stopped to drive, and latter throw out a car.<br/><br/>And now I’m more than 2 years without a car.<br/><br/>And to be honest I don’t fell a pain.<br/><br/>Living in city center has its advantages. Everything is soo close that you may go by foot, or in worst case by mass transport, or bike.<br/>In less than 15 minutes on foot I’m able to reach almost all needed places.<br/>Thanks to on-line shoping I don’t need to visit grocery store for big shoping. I simply order on-line, and for smaller things I have shope in the same building I live ;-)<br/><br/>But sometimes I’m thinking about buying a car...<br/>Mainly because I’m used to have a car.<br/>But to be honest I don’t need one.<br/><br/>At least for now.<br/><br/>And looking on prices, I’m not sure if I want to spend half of my yearly wages on something what I will use maybe twice a month.<br/><br/>After a while of thinking - for me biggest advantage of car would be this what it would occupy my parking spot and I would not need to check ocasionally if somebody isn’t using it without my permission ;-)<br/><br/><br /><span style="font-weight: bold;">Similar posts</span><sup><span style=";font-size:75%;color:red;">beta</span></sup><br /><a href="https://eng-przemelek.blogspot.com/2017/01/really-first-snow.html" target="blank">Really first snow ;-)</a><br /><a href="https://eng-przemelek.blogspot.com/2017/11/worflow-my-biggest-disapotiment-of-ios.html" target="blank">Worflow - my biggest disapotiment of iOS</a><br /><a href="https://eng-przemelek.blogspot.com/2017/08/im-close-to-decide-to-abandon-linux.html" target="blank">I'm close to decide to abandon Linux.....</a><br /><a href="https://eng-przemelek.blogspot.com/2017/11/keyboard-tablet-not-great-idea.html" target="blank">Keyboard + tablet = not great idea ;-)</a><br /><a href="https://eng-przemelek.blogspot.com/2015/11/its-alive-still.html" target="blank">It's alive... still ;-)</a><br />przemelekhttp://www.blogger.com/profile/14956032882265621104noreply@blogger.com0tag:blogger.com,1999:blog-7988909354379167046.post-29886346830055596402017-08-20T01:13:00.001+02:002023-02-09T14:56:22.879+01:00Experiment.... will try to not complain by next 21 days....I'm reading <a href="https://www.amazon.com/Tools-Titans-Billionaires-World-Class-Performers/dp/1328683788">Tools of Titans</a>* and in one of interviews Tim Ferris mentioned <a href="https://tim.blog/2007/09/18/real-mind-control-the-21-day-no-complaint-experiment/">21 Day Non Complaint Experiment</a>.<br/>So I'm trying to perform it on myself ;-)<br/><br/>I started with key-leash wrapped around my left wrist.<br/>We will see how it will work ;-)<br/><br/>* - to be honest chapter about psychodelic was little bit scary, I can understand that psychodelics with proper psychological help may do wonders for people with terminal conditions, and cause that they will not be afraid, but I'm still scared when I think about using any narcotics or similar things. Even when I decided that if I will have legal possibility I will try weed (not look for trying but if it will be easy I may try)<br/><br/><br /><span style="font-weight: bold;">Similar posts</span><sup><span style=";font-size:75%;color:red;">beta</span></sup><br /><a href="https://eng-przemelek.blogspot.com/2018/07/when-you-should-stop-read-book.html" target="blank">When you should stop read a book?</a><br /><a href="https://eng-przemelek.blogspot.com/2017/01/really-first-snow.html" target="blank">Really first snow ;-)</a><br /><a href="https://eng-przemelek.blogspot.com/2017/02/how-to-detect-clickbaits.html" target="blank">How to detect clickbaits?</a><br /><a href="https://eng-przemelek.blogspot.com/2017/06/watchdog.html" target="blank">Watchdog.... </a><br /><a href="https://eng-przemelek.blogspot.com/2017/11/keyboard-tablet-not-great-idea.html" target="blank">Keyboard + tablet = not great idea ;-)</a><br />przemelekhttp://www.blogger.com/profile/14956032882265621104noreply@blogger.com0