<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ilya Naryzhnyy on Medium]]></title>
        <description><![CDATA[Stories by Ilya Naryzhnyy on Medium]]></description>
        <link>https://medium.com/@phantomydn?source=rss-eeaf58a6e16------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*CO2pHijRadVBu3lBGjMIVA.jpeg</url>
            <title>Stories by Ilya Naryzhnyy on Medium</title>
            <link>https://medium.com/@phantomydn?source=rss-eeaf58a6e16------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 19:39:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@phantomydn/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to Build Posts Scheduler with Almost No-Coding]]></title>
            <link>https://medium.com/orienteer/how-to-build-posts-scheduler-with-almost-no-coding-b52068f8c23b?source=rss-eeaf58a6e16------2</link>
            <guid isPermaLink="false">https://medium.com/p/b52068f8c23b</guid>
            <category><![CDATA[publishing]]></category>
            <category><![CDATA[telegram]]></category>
            <category><![CDATA[scheduling]]></category>
            <category><![CDATA[rapid-app-development]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Ilya Naryzhnyy]]></dc:creator>
            <pubDate>Wed, 23 Dec 2020 00:07:10 GMT</pubDate>
            <atom:updated>2020-12-23T00:07:10.829Z</atom:updated>
            <content:encoded><![CDATA[<h4>Step-by-step tutorial</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vtlbvIXmOeP04mES.png" /></figure><p>As an owner of a famous Instagram account or Telegram-channel or other creative accounts on other social media, you, probably, already thought about the answer to the following question: <strong>How can I plan posts ahead?</strong> There are a lot of services and solutions for that. Some of them might be expensive, others are lacking in functionality, third ones might look so insecure, so it’s scary to give access to your beloved account. Today I will show how with our platform Orienteer and 1 hour you can build a posts scheduler just for your own! Sounds interesting? Let&#39;s go!</p><p>For simplicity, we will focus on the scheduled posting to Telegram, but you will get enough skills to extend functionality, by adding new social networks, or by adjusting the data-model to do cross-posting, posting with post-removal after some time and etc. If you will have any questions: please contact us!</p><h3>Step 1: Setup and Launch Orienteer</h3><p>We will need <strong>docker</strong>, and, ideally, <strong>docker-compose</strong>. You can use it locally or on any available dockized hosting like AWS, Google Clouds or DigitalOcean. If you are not familiar with docker, I highly recommend spending 3–5 hours on self-education on this topic.</p><p>You can run Orienteer by the following simple command:</p><pre>docker run -p 8080:8080 orienteer/orienteer</pre><p>But to preserve data between containers updates and to secure application by avoiding the use of default passwords you can use the following command:</p><pre>docker run -p 8080:8080 -v &lt;runtime&gt;:/app/runtime -e ORIENTDB_ADMIN_PASSWORD=&lt;password&gt; -e ORIENTDB_GUEST_PASSWORD=&lt;password&gt; orienteer/orienteer</pre><p>If you prefer <strong>docker-compose</strong>, here is the template:</p><pre>version: &#39;2.1&#39;<br>services:<br>   orienteer:<br>      image: orienteer/orienteer:latest<br>      container_name: &lt;My Posting Service Name&gt;<br>      network_mode: &#39;bridge&#39;<br>      ports:<br>          - &quot;8080:8080&quot;<br>      volumes:<br>          - ./runtime:/app/runtime<br>          - ./maven-repository:/app/repository<br>      environment:<br>          - ORIENTDB_ADMIN_PASSWORD=&lt;Admin Password&gt;<br>          - ORIENTDB_GUEST_PASSWORD=&lt;Guest Password&gt;<br>          - JAVA_TOOL_OPTIONS= -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/app/runtime/heapdump.bin</pre><p>After the successful starting of Orienteer, go to <a href="http://localhost:8080/">http://localhost:8080</a> (or other host if you run it on some hosting). You should see something like this on the screen below. Without authentication, you will act as a user guest, which can read everything, but not change. It can be restricted later on to allow access to the backend only for authenticated users.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bZtMac0beBQp6TPB.png" /></figure><p>Click to right-top corner, select Login and enter to the system as admin (default password is admin as well).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/466/0*qXWCmP_Eu6KNUeC3.png" /></figure><h3>Step 2: Add Required Dependencies</h3><p>To turn Orienteer into service for scheduled posting we will need:</p><ul><li><a href="https://github.com/pengrad/java-telegram-bot-api"><strong>java-telegram-bot-api</strong></a> — simple java library to work with Telegram network</li><li><strong>orienteer-architect</strong> — module for data schema modeling</li><li><strong>orienteer-devutils</strong> — module with a set of utils to develop</li></ul><p>By the way, the last 2 modules can be finally disabled: they needed only during the active part of development.</p><p>Go to <strong>Schema</strong>, then to tab <strong>Artifacts</strong>. Click <strong>Add</strong>. To add <strong>java-telegram-bot-api </strong>enter everything as for common maven dependency:</p><pre>&lt;dependency&gt;<br>   &lt;groupId&gt;com.github.pengrad&lt;/groupId&gt;<br>   &lt;artifactId&gt;java-telegram-bot-api&lt;/artifactId&gt;<br>   &lt;version&gt;5.0.0&lt;/version&gt;<br>&lt;/dependency&gt;</pre><p>It should look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/0*UvhjKDNP5RutwU7A.png" /></figure><p>To add the remaining 2 modules, click Add, then <strong>Available Orienteer Modules</strong>. After downloading of a list of available modules from the server, select a required module, and click <strong>Install as Trusted</strong>. Adding all the required modules, click <strong>Reload Orienteer</strong>. After the restart, we can go to the next step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*L_xmv9v1gPQ-AwYy.png" /></figure><h3>Step 3: Data Schema Modeling</h3><p>I think that the best approach for systems development is spiral development. The first cycle is a very simple, but a workable solution which covers common needs (MVP). System functionality can be expanded and made more user-friendly or flexible in the next cycles. Let&#39;s follow this approach here as well. For the first cycle we will need just 3 types of entities(classes):</p><ul><li><strong>Content <em>(or Post)</em></strong> — content which we are going to send to a particular channel at a predefined time</li><li><strong>Channel</strong> — a destination to send our content to</li><li><strong>Bot </strong>— an entity that performs the actual act of sending a content</li></ul><p>Let me highlight, that this data-model doesn’t have Telegram specific. By <strong>Channel, </strong>you can mean any other account you can share/send content to, for example, Instagram or Facebook. Any network-dependent details we will hide under <strong>Bot </strong>entity, which is responsible for actual sending: to be specific, in scripts which we will associate with a <strong>Bot </strong>through link “<strong>sendFunction</strong>”.</p><p>It’s recommended to use <strong>orienteer-architect</strong> for data schema modeling. This module allows you to model data schema in UML-like editor. Go to <strong>ODataModel </strong>by clicking <strong>Browse</strong>, click <strong>Create</strong>, enter name (for example ‘Scheduler DataModel’) and click <strong>Save</strong>. Now it’s time for imagination! But, I guess, that for our use case you should have finally something like on the image below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xuHRRhVr5LbXEgCP.png" /></figure><p>After saving the data-model (buttons <strong>Save Data Model</strong> and then <strong>Apply Changes</strong>), don’t forget to polish UX by additional configuration such things like:</p><ul><li><strong>Document Name Property</strong> — a property that defines the name of a document to be used in any links to a document of this type</li><li><strong>Parent Document Property</strong> — link to a parent, which will be used in breadcrumbs</li><li><strong>Visualization </strong>— how to visualize a particular property</li></ul><h3>Step 4: Make Service Alive</h3><p>We will need just 2 scripts</p><ol><li><strong>Scheduler </strong>— script, which, being invoked once per minute, will search for the next set of content to be sent. It will lookup the associated <strong>bot </strong>and <strong>sendfunction</strong>, and invoke last one with <strong>Content </strong>as an argument</li><li><strong>SendToTelegram </strong>— script which will send a <strong>Content </strong>which passed as an argument to Telegram network</li></ol><p>Scripts in Orienteer (and in OrientDb) are documents/objects of class <strong>OFunction</strong>. So we will create documents of this class with the corresponding name, language and actual code to be executed. I recommend to use <strong>nashorn</strong> — it’s Java implementation of JavaScript.<br>I will not torment you with explanations: it’s better to see code once rather discuss it 100 times.</p><h4>Scheduler</h4><pre>var db = orient.getDatabase(); <em>//Obtain OrientDB</em><br>var resultSet = db.query(&quot;select from SContent where published!=true and when &lt; sysdate()&quot;); <em>//Query for all contents,which haven&#39;t yet published and expected date/time of publishing, actually, is in the past</em><br>for(var i in resultSet) { <em>//Iterate over results</em><br>   var content = resultSet[i]; <em>//Next content to be sent</em><br>   var sendFunction = content.field(&quot;channel.bot.sendFunction.name&quot;); <em>//Obtain name of a function to be used for sending the content</em><br>   if(sendFunction) {<br>      db.getMetadata().getFunctionLibrary().getFunction(sendFunction).execute(content); <em>//Invokation of sending function and passing content as an argument</em><br>      content.field(&quot;published&quot;, true); <em>//Marking content as already published</em><br>      content.save(); <em>//Saving the content</em><br>   }<br>}</pre><p>As you can see, this script is very simple and there are no Telegram specifics: everything will be incorporated in a special script, which we will refer to from Bot.</p><h4>SendToTelegram</h4><p>Do you remember that we have added library <a href="https://github.com/pengrad/java-telegram-bot-api"><strong>java-telegram-bot-api</strong></a>? It’s time to use it for sending Telegram messages!</p><pre>var content = orient.getDatabase().load(content); <em>//Just in case if content was passed not as a document, but a reference to a document</em><br>var channel = content.field(&quot;channel&quot;); <em>//Obtain channel or chat we will send message to</em><br>var botDoc = channel.field(&quot;bot&quot;);<em>//Obtain document with Bot configuration. We have obtained &quot;sendFunction&quot; previously from this document</em><br>var botKey = &quot;Bot&quot;+botDoc.getIdentity(); <em>//Generate a key which we will use for retriving TelegramBot from the server environment</em><br>var app = org.orienteer.core.OrienteerWebApplication.lookupApplication(); <em>//Lookup Orienteer Web Application as Java object</em><br>var bot = app.getMetaData(botKey); <em>//Try to get bot by its key</em><br>if(!bot) { <em>//If bot was not found: lets create and start it</em><br>bot = new com.pengrad.telegrambot.TelegramBot(botDoc.field(&quot;token&quot;)); <em>//Create TelegramBot and pass token as argument</em><br>app.setMetaData(botKey, bot); <em>//Preserve just created bot in Orienteer Web Application, to avoid creation of the bot next time</em><br>}<br>bot.execute(new com.pengrad.telegrambot.request.SendMessage(channel.field(&quot;chatId&quot;), content.field(&quot;content&quot;))); <em>//Send message by pessing required content and chatId</em></pre><p>But how are we going to have script <strong>Scheduler </strong>be invoked every minute? Orienteer (and OrientDB) use for the documents of class <strong>OSchedule</strong>. Let&#39;s create a document of this class, specify some name, link to script <strong>Scheduler </strong>in field Function. Then enter the following rule: 0 * * * * ?. This means invoking of the specified script at first (zero) second of each minute, each hour, etc.</p><h3>Step 5: Lets Test</h3><p>And now the most exciting part: testing!</p><h4>Create Bot in Telegram Network</h4><p>We should create a bot in Telegram first and then define it in Orienteer.</p><p>You can read how to create Bot in Telegram in <a href="https://core.telegram.org/bots#6-botfather">the official documentation</a>. But here is the summary:</p><ol><li>Start conversation with <a href="https://t.me/botfather">BotFather</a></li><li>Send command /newbot</li><li>Define a displayable name for your bot</li><li>Define an account name for your bot</li></ol><p>As a result, you should receive a token. I recommend to add just created bot into your contact list for subsequent adding it to required channels and groups.</p><p>Now, let create a new document of class <strong>SBot</strong>, which we modeled and created in Step 3. Enter bot name, link to actual script <strong>SendToTelegram </strong>and <strong>token</strong>, which we got from <strong>BotFather</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/0*4VJ66MIWQHe3C-1t.png" /></figure><h4>Create Telegram Channel</h4><p>I assume, that you already have Telegram channel or chat. If no — I’m sure that you can easily figure that out by yourself. In order to configure Orienteer properly, you will need <strong>chatId </strong>of your target channel or chat. There are multiple ways to figure that out, but one of the easiest is to use <a href="https://t.me/getidsbot">GetIDs Bot</a>. Just forward a message from your channel to this bot and you will get the required information. But if you need <strong>chatId </strong>for a group: just add this bot to it and the first message will contain the required details. After that, you can easily remove this bot from it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/553/0*GCBDxnEXM9GiDnvn.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/552/0*4EixVcAw_9Ak7Kdj.png" /></figure><p>If everything is ok, you have <strong>ChatId </strong>now and you can go ahead and configure Orienteer. Create <strong>SChannel</strong>, define name and <strong>ChatId</strong>. And don’t forget to link the previously created <strong>SBot </strong>document with this SChannel.</p><h3>Create a Content</h3><p>This is the moment of truth: let&#39;s create content and test sending it to a channel or group. For content, we have previously created class <strong>SContent</strong>. In a document of this class define name (not being used in Telegram), link to target channel or group, publication time, and the content itself.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PGJnLKvQz9DtbdnT.png" /></figure><p>If you made it correctly, at a defined time you will see the corresponding message in your target channel/group.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/557/0*QURIFrQ6hA5NgxUy.png" /></figure><p>Hooray! It’s working!</p><p>That’s it for today. Please let us know if you like our content by like or a comment.</p><p><strong>P.S.</strong> If you have any problems with the current tutorial or additional questions: please don’t hesitate and contact us.</p><p><strong>P.P.S.</strong> We are looking for new people for project <a href="https://orienteer.org/">Orienteer</a>. Even if you are new to Java or JavaScript, but willing to learn: no problem — just contact us!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b52068f8c23b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/orienteer/how-to-build-posts-scheduler-with-almost-no-coding-b52068f8c23b">How to Build Posts Scheduler with Almost No-Coding</a> was originally published in <a href="https://medium.com/orienteer">Orienteer</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[VueJS + Wicket = Vuecket]]></title>
            <link>https://medium.com/orienteer/vuejs-wicket-vuecket-ee7bd5534fee?source=rss-eeaf58a6e16------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee7bd5534fee</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[wicket]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[vuejs]]></category>
            <category><![CDATA[vue]]></category>
            <dc:creator><![CDATA[Ilya Naryzhnyy]]></dc:creator>
            <pubDate>Sun, 16 Aug 2020 20:09:20 GMT</pubDate>
            <atom:updated>2020-08-16T20:09:20.371Z</atom:updated>
            <content:encoded><![CDATA[<h4>Getting Started with Vuecket</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/691/1*4bdE753S5QtyBSX7EMyz2g.png" /></figure><p><a href="https://github.com/OrienteerBAP/vuecket">Vuecket</a> - full-stack web framework, which integrates <a href="https://vuejs.org/">VueJS </a>as front-end side and <a href="https://wicket.apache.org/">Apache Wicket</a> as back-end side. It takes all the best from both frameworks and allows to develop full-stack applications fast and easy.</p><p>Of course, you can say that these are unproofed statements and you will be right since Vuecket is a newborn web framework (August 2020) and hasn’t been seriously tested on production. But it was developed as a result of 6+ years of work on our key solution and flagman Open Source product <a href="https://orienteer.org/">Orienteer</a>, a platform for quick and easy Business Applications development.</p><p>We work hard to build this framework more valuable and helpful for the Open Source community, thus our team would appreciate your thoughts, feedbacks, and sharing your experience working with Vuecket (successful or not).</p><p>Vuecket guiding principles:</p><ol><li><strong>Be declarative, not imperative</strong></li></ol><ul><li>You can use VueJS 3rd party libraries and get benefits out of Vuecket even without modifying them</li><li>In a similar way, you can use 3rd party Apache Wicket component and just by adding VueBehavior (Behavior provided by Vuecket) you enable Vuecket benefits</li></ul><p>2. <strong>Provide 80% of functionality Out Of the Box, but do have good extension points for the remaining 20%</strong></p><p>It’s easy to spot that both VueJS and Apache Wicket follow these guiding principles.</p><p>To get familiar with Vuecket, let’s develop together a Chat/Guest Book with Markdown support application in this article. You can find our <a href="https://vuecketdemo.orienteer.org/">final application here</a>, and <a href="https://github.com/OrienteerBAP/vuecket/tree/master/vuecket-demo">source code here</a>.</p><h3>Step 0: Project Creation</h3><p>Let’s use Apache Wicket Maven Archetype to generate our project. You can use the following command:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c23de81fac8c505fe29632af43ea4d63/href">https://medium.com/media/c23de81fac8c505fe29632af43ea4d63/href</a></iframe><p>Vuecket doesn’t have yet its own Maven Archetype. Probably, <a href="https://github.com/OrienteerBAP/vuecket/issues/2">in the future</a> releases, we will add that.</p><p>Now, let&#39;s add Vuecket. Add the following dependency topom.xml in your newly generated project. Please check the most recent Vuecket version on our <a href="https://github.com/OrienteerBAP/vuecket">GitHub page</a>.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1f75acd6457569a2b2de056cb89b3be4/href">https://medium.com/media/1f75acd6457569a2b2de056cb89b3be4/href</a></iframe><h3>Step 1: Render Markdown</h3><p>Your generated Wicket project already contains HomePage.java. Let’s add some code there to make sure that Vuecket has been enabled.</p><p>For example, let’s render Hello World from a text which will be provided by Apache Wicket component. We will use <a href="https://github.com/miaolz123/vue-markdown">vue-markdown</a> for rendering markdown on the client-side.</p><p>Instead of Wicket greetings please add the following code into HomePage.html:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fb6f90b51d62c9443823ae72002b2425/href">https://medium.com/media/fb6f90b51d62c9443823ae72002b2425/href</a></iframe><p>And to HomePage.java:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2eed8b0a25fa5726aa4ef2fa74db36ed/href">https://medium.com/media/2eed8b0a25fa5726aa4ef2fa74db36ed/href</a></iframe><p>But where is VueMarkdown? Let’s define it in the following way:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7b2cad7426dd80e78ef8b9edddd130af/href">https://medium.com/media/7b2cad7426dd80e78ef8b9edddd130af/href</a></iframe><p>Please pay attention to annotation @VueNpm . It’s needed to enable Vuecket on this Wicket component, which will load everything needed from NPM to allow Vue on the client-side to render markdown properly.</p><p>Use mvn jetty:run to run your project and, if no problems are there, you can observe the following on <a href="http://localhost:8080/">http://localhost:8080</a> :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QG6dglFssxVHJfdfb2ce-A.png" /></figure><p>What did we build and why is it working?</p><ul><li>We added 2 Wicket components to our HomePage: for Vue application and for Markdown rendering</li><li>We linked Vue components with corresponding Wicket components on the server side (in HomePage.java)</li><li>We defined what particular VueJS library needed for markdown rendering: where to get it and how to enable it on your page</li><li>The rest is easy: Wicket provided unrendered text # Hellow World from Vuecket to the client’s browser which was defined during adding the Wicket component. Vuecket helped to load everything required on the client-side (including VueJS), ran required VueJS enablement code, and allowed the last one to do its job in rendering the text as markdown.</li></ul><p><a href="https://github.com/OrienteerBAP/vuecket/commit/102f4ee72a6fe7ea258cf5d679c8b12d7495d634"><strong>Need help?</strong> Check this commit on GitHub</a></p><h3>Step 2: Message Entering and Preview</h3><p>Here we will enhance our application by allowing to enter a message and its preview.</p><p>Let’s use textarea to enter a message. For VueJS v-model use the field text and assign the same field to vue-markdown.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/34d01c55d371989f6183f5ca056399fe/href">https://medium.com/media/34d01c55d371989f6183f5ca056399fe/href</a></iframe><p>We’ve just used the data field text, so we have to define it in data of the corresponding Vue component. There are multiple ways of how to do that in Vuecket, but let&#39;s use the longest one:</p><ul><li>Create your own VueComponent for Vue app</li><li>Associate it with *.vue file</li><li>Define all required VueJS logic in this*.vue file: for this chapter, it will be a new data field text</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/685655d9a8739600a310123c38b1bae0/href">https://medium.com/media/685655d9a8739600a310123c38b1bae0/href</a></iframe><p>And here is our newly created ChatApp.vue:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/433fa72ebb4d8b14a10e28494cafc18a/href">https://medium.com/media/433fa72ebb4d8b14a10e28494cafc18a/href</a></iframe><p>After running your application by mvn jetty:run you can see something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/988/1*A8GddSf5RByXPouJDNB9Xg.png" /></figure><p>All right, in this chapter, we learned how to create *.vue files and associate them with Apache Wicket components.</p><p><a href="https://github.com/OrienteerBAP/vuecket/commit/35c966cb49c12391363b34ea73d08fef26a815ca"><strong>Need help?</strong> Check this commit on GitHub</a></p><h3>Step 3: Display of Messages and Adding a New One</h3><p>We won’t use either Vuecket or Wicket in this chapter, “eternal sunshine of the spotless VueJS”. Let&#39;s decompose our task:</p><ul><li>Add a new field to Vue app in order to hold the list of messages</li><li>Add Vue method for adding a new message</li><li>Display the list of messages using markdown</li></ul><p>First of all, let’s change ChatApp.vue and add required logic: new field messages for holding the list of messages and method addMessage. Don’t forget that after adding a new message it will be good to clean textarea. For future convenience let’s store a submission date along with the message’s text. It will allow future extension of the message by additional fields, for example: author, priority, highlighting , etc.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f4c48ea638b8518d6d8a1e23db4d95da/href">https://medium.com/media/f4c48ea638b8518d6d8a1e23db4d95da/href</a></iframe><p>Also, we have to change HomePage.html to render the list of messages and a handler for pressing Ctrl-Enter to add our new message through addMessage.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8316427fdd6ca8f34c310f2fcb8ead50/href">https://medium.com/media/8316427fdd6ca8f34c310f2fcb8ead50/href</a></iframe><p>After running mvn jetty:run and some test chat with yourself, you can see something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1003/1*mmrYPhSpZF4x9o2G2dWqvw.png" /></figure><p>In this chapter, we learned how to add a new message and display a list of them on the page just by using VueJS.</p><p><a href="https://github.com/OrienteerBAP/vuecket/commit/e220327589d0914e46ea909e7537fef2e4fff8a2"><strong>Need help?</strong> Check this commit on GitHub</a></p><h3>Step 4: Enable Collaboration</h3><p>On the previous step, a content of our guest book was unique per visitor and not shared with a server.</p><p>In this step, we will enable a connection with the server and synchronization with all visitors. To do that we would need to use Vuecket Data Fibers, a special solution, which allows data synchronization between client’s and server’s sides. Moreover, to do that it’s sufficient to change only the server-side! Nothing to do on the client-side. Sounds amazing? Let’s go to code! But, wait… There are only 2 new lines of code for ChatApp.java:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2a4a098e9b100f4031aa47474bd992cd/href">https://medium.com/media/2a4a098e9b100f4031aa47474bd992cd/href</a></iframe><p>All right, what’s just happened?</p><ul><li>We created Wicket IModel MESSAGES, which is accessible by everyone, because it’s defined as static final</li><li>We added data-fiber, which links together data in MESSAGES from server and messages field on the VueJS side.</li><li>We defined that data-fiber is needed for 3 things: load, observe, and refresh. Load — for the initial load of the messages list, observe — for letting the server-side know that messages was changed on the client-side, refresh — for updating messages on the client-side, if there are changes on the server one.</li></ul><p>After running mvn jetty:run and sharing the link with your friends, you can observe something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1011/1*DKiCcN3VcugzGJdTxBczDA.png" /></figure><p><a href="https://github.com/OrienteerBAP/vuecket/commit/eda9f725e3d164fb4b319f3c0558f47d9db67f8f"><strong>Need help?</strong> Check this commit on GitHub</a></p><h3>Step 5: Server-Side Methods</h3><p>I cheated a little bit in the previous chapter for a good purpose by providing full read-write access to MESSAGES to all site visitors. It’s highly not recommended to do because everybody can overwrite all messages on the server-side through data-fiber or even erase them. It’s recommended to use data-fibers synchronization from the client-side to the server-side only for objects which belong to the current visitor.</p><p>How can we fix that?</p><ul><li>Use our data-fiber only for the initial load of messages</li><li>User server-side method for adding a new message</li></ul><p>After these sub-steps, visitors will be able to add new messages to the list and will NOT be able to remove or change the existing ones. Also, let&#39;s make the server-side a little bit more complex by adding a new class Message to store the actual message instead of just a pure JSON object. Btw, this class can be JPA enabled to allow to store/retrieve it from a database.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2e276e88f4ef29c61e65e67b36ce90e9/href">https://medium.com/media/2e276e88f4ef29c61e65e67b36ce90e9/href</a></iframe><p>Please pay attention to annotation @JsonProperty. By defining it we can retarget JSON field message to Java field text.</p><p>Let’s change ChatApp.java as well: add the Vuecket method for adding a new message. Also, you can find out in the code below the trimming of the list of messages. It was done to keep the list relatively short.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/dfdccce99bc7f34f313f1364a0880622/href">https://medium.com/media/dfdccce99bc7f34f313f1364a0880622/href</a></iframe><p>Do you see method annotated by @VueMethod? Here we are obtaining our new message as an instance of the class Message, adding to the list and trimming the last one. Finally, we are sending an updated list back to the client-side. Also, please pay attention that the data-fiber was reconfigured to do only the initial load of the messages.</p><p>Also, we need to change the logic in ChatApp.vue to send a new message to the server in asynchronous mode (vcInvoke) instead of adding it just locally.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f22f628126606bf20547c787c71a48e6/href">https://medium.com/media/f22f628126606bf20547c787c71a48e6/href</a></iframe><p>What we have just learned:</p><ul><li>How to create Vuecket server-side methods</li><li>How to invoke server-side methods</li><li>How to send back changes on server-side</li></ul><p>For common users, nothing will change, but hackers will not be able to change/erase messages on the server-side.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1011/1*DKiCcN3VcugzGJdTxBczDA.png" /></figure><p><a href="https://github.com/OrienteerBAP/vuecket/commit/1c12d9dd20384129397812dce5fc8cbb10540ee3"><strong>Need help?</strong> Check this commit on GitHub</a></p><h3>Summary</h3><p>There are multiple other enhancements that you can do for this application, but let us keep it up to you, dear reader. If you will need any help you know <a href="https://github.com/OrienteerBAP">where to find us</a>!<br>Do you like Vuecket? Please share your feedback. Community opinion is the main driver for any Open Source project as Vuecket.</p><h3>P.S. Near-term Vuecket Road Map</h3><ul><li>Support of WebSockets for even more reactive connection between server-side and client-side</li><li>Ability to send the only delta between browser and server</li><li>More configuration abilities for data-fibers</li><li>Set of Vuecket/Wicket components which prewired with most interesting and used VueJS libraries, for example, <a href="https://github.com/miaolz123/vue-markdown">vue-markdown</a> (which we used in this tutorial)</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee7bd5534fee" width="1" height="1" alt=""><hr><p><a href="https://medium.com/orienteer/vuejs-wicket-vuecket-ee7bd5534fee">VueJS + Wicket = Vuecket</a> was originally published in <a href="https://medium.com/orienteer">Orienteer</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Working with NPM from Java]]></title>
            <link>https://medium.com/orienteer/working-with-npm-from-java-6acddd97f7a4?source=rss-eeaf58a6e16------2</link>
            <guid isPermaLink="false">https://medium.com/p/6acddd97f7a4</guid>
            <category><![CDATA[java]]></category>
            <category><![CDATA[backend]]></category>
            <category><![CDATA[rest]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[npm]]></category>
            <dc:creator><![CDATA[Ilya Naryzhnyy]]></dc:creator>
            <pubDate>Wed, 29 Jul 2020 00:38:49 GMT</pubDate>
            <atom:updated>2020-07-29T00:38:49.658Z</atom:updated>
            <content:encoded><![CDATA[<h4>Practical Guide</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UiGq4CPRvIL78-CG9XFxtw.png" /></figure><p>If you code on Java and there is a need to work with NPM, you have, probably, one of the following 2 cases:</p><ul><li>You have Web Application with Java-based backend and you need to provide JS/HTML/CSS resources from some NPM packages to the frontend</li><li>You have Java-based application (for example, for Android) which search/traverse/retrieve information about versions and packages from NPM</li></ul><p>Ok, let&#39;s see how these can be done in Java.</p><h3>Providing NPM resources from Java-based Web App</h3><p>There are few architectural options which can be used:</p><ol><li>Pack required NPM resources inside your WAR file</li><li>Use CDN to get access to the resources</li></ol><h4>Packing NPM resources inside WAR/JAR</h4><p>First of all, you can use <a href="https://www.webjars.org/">WebJars</a>. It allows you to treat NPM packages as a common Maven package. For example, to include Bootstrap into your WAR you need to add the following dependency into your pom.xml :</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3541785f258837bc612f829dd0a9f6ef/href">https://medium.com/media/3541785f258837bc612f829dd0a9f6ef/href</a></iframe><p>WebJars reflect dependencies from NPM package to corresponding Maven package, so if an included package will require some other ones they will be added recursively by Maven.</p><p>Along with Maven-based artifacts for NPM packages, WebJars provides set of libraries for different web frameworks to get access to packed resources. Please refer to <a href="https://www.webjars.org/documentation">the documentation</a> for more information related to your favorite framework.</p><p>WebJars is great, but it packs the whole NPM packages with all required dependencies. Alternatively, you can use Maven plugin to pack required NPM resources into your WAR. Here is the list of plugins:</p><ul><li><a href="https://github.com/OrienteerBAP/JNPM">jnpm-maven-plugin</a></li><li><a href="https://github.com/eirslett/frontend-maven-plugin">frontend-maven-plugin</a></li><li><a href="https://github.com/jy4618272/npm-maven-plugin">npm-maven-plugin</a></li></ul><p>For example, to include vue and vuex of corresponding versions by <a href="https://github.com/OrienteerBAP/JNPM">jnpm-maven-plugin</a> add the following into your pom.xml:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1312f478ffd23599d86c623dc5b5a0c8/href">https://medium.com/media/1312f478ffd23599d86c623dc5b5a0c8/href</a></iframe><p>You can use NPM notation for versions constraints:</p><ul><li>Wildcard Ranges (*|X|x) - 1.* which is equivalent to &gt;=1.0.0 &amp; &lt;2.0.0</li><li>Tilde Ranges (~) - ~1.5 which is equivalent to &gt;=1.5.0 &amp; &lt;1.6.0</li><li>Hyphen Ranges (-) - 1.0-2.0 which is equivalent to &gt;=1.0.0 &amp; &lt;=2.0.0</li><li>Caret Ranges (^) - ^0.2.3 which is equivalent to &gt;=0.2.3 &amp; &lt;0.3.0</li><li>Partial Version Ranges — 1 which is equivalent to 1.X or &gt;=1.0.0 &amp; &lt;2.0.0</li><li>Negation operator — !(1.x) which is equivalent to &lt;1.0.0 &amp; &gt;=2.0.0</li><li>Parenthesized expressions — ~1.3 | (1.4.* &amp; !=1.4.5) | ~2</li></ul><p>Also, you can pick exactly what files are needed by using includes and excludes. For example, commonly NPM package contains “compiled” files in directory dist/. To pick this directory only it’s sufficient to add the following snippet into the&lt;configuration&gt; section:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1eeef05178610c4bdef3dfb8414241b9/href">https://medium.com/media/1eeef05178610c4bdef3dfb8414241b9/href</a></iframe><p>By default, <a href="https://github.com/OrienteerBAP/JNPM">jnpm-maven-plugin</a> packs resources in a way that WebJars does. So you can use the most appropriate WebJars library for your web framework. If you need some specific way of packing, please refer to <a href="https://github.com/OrienteerBAP/JNPM#maven-plugin">JNPM documentation</a>.</p><h4>CDN for serving NPM resources</h4><p>There are publically available CDNs to get NPM resources:</p><ul><li><a href="https://unpkg.com/">UNPKG</a></li><li><a href="https://www.jsdelivr.com/">JSDELIVR</a></li></ul><p>Alternatively, you can deploy your own CDN or even embed this functionality into your Web-App. For example, add the following mapping to your web.xml to enable <a href="https://github.com/OrienteerBAP/JNPM#cdn">JNPM CDN servlet</a>. Adjust as needed:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6dc00fca7063c1aec218072df8e2073f/href">https://medium.com/media/6dc00fca7063c1aec218072df8e2073f/href</a></iframe><p>Files from NPM packages will be available through URLs with the following pattern: http(s)://&lt;host&gt;:&lt;port&gt;/&lt;deploy-folder&gt;/cdn/&lt;package expression&gt;/&lt;required file&gt;.</p><p>For example: <a href="http://localhost:8080/cdn/vue@2.6.11/dist/vue.js">http://localhost:8080/cdn/vue@2.6.11/dist/vue.js</a></p><h3>Use of NPM REST API from Java</h3><p>You can use NPM registry REST API directly through, for example, <a href="https://square.github.io/retrofit/">Retrofit</a>. Please refer to the <a href="https://github.com/npm/registry/blob/master/docs/REGISTRY-API.md">NPM Registry documentation page</a>. Also, you can use already implemented Java wrapper for NPM REST API: <a href="https://github.com/OrienteerBAP/JNPM#java-api">JNPM</a>.</p><p>Include JNPM Jar into pom.xml:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/011971e187cd222df6335202b195e619/href">https://medium.com/media/011971e187cd222df6335202b195e619/href</a></iframe><p>Initialize JNPM API prior to the actual use.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4c8f31341b33163a2192fcf81c96dc98/href">https://medium.com/media/4c8f31341b33163a2192fcf81c96dc98/href</a></iframe><p>JNPM API has 2 options: Synchronous API and RXJava API. Please use the required one per your needs:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/28259ad1764837f2c9fadbaf0a6444c1/href">https://medium.com/media/28259ad1764837f2c9fadbaf0a6444c1/href</a></iframe><p>Examples of API use:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2b21368ea114531d0e0f00d079bc2ef6/href">https://medium.com/media/2b21368ea114531d0e0f00d079bc2ef6/href</a></iframe><p>If you have some specific case of using NPM from Java which was not covered here, please let me know!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6acddd97f7a4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/orienteer/working-with-npm-from-java-6acddd97f7a4">Working with NPM from Java</a> was originally published in <a href="https://medium.com/orienteer">Orienteer</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lucid Dreaming Short Guide]]></title>
            <link>https://medium.com/@phantomydn/lucid-dreaming-short-guide-f4ef49777dd2?source=rss-eeaf58a6e16------2</link>
            <guid isPermaLink="false">https://medium.com/p/f4ef49777dd2</guid>
            <category><![CDATA[lucid-dreaming]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[sleep]]></category>
            <category><![CDATA[dreams]]></category>
            <category><![CDATA[nightlife]]></category>
            <dc:creator><![CDATA[Ilya Naryzhnyy]]></dc:creator>
            <pubDate>Sun, 19 Jan 2020 20:42:09 GMT</pubDate>
            <atom:updated>2020-01-19T20:43:11.626Z</atom:updated>
            <content:encoded><![CDATA[<h4>Or How-To not waste 1/3 of your life</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*q8N7VpwQuK84TEW8" /><figcaption>Photo by <a href="https://unsplash.com/@dnevozhai?utm_source=medium&amp;utm_medium=referral">Denys Nevozhai</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>I’m a lucid dreamer with 20+ years of experience and the founder of one of the famous forums on this topic. And here is the shortest summary you should know to unlock the power of Lucid Dreaming for yourself.</p><h3>Intro</h3><p>Every night you sleep. If you are lucky enough: you might recall your dream the next morning. A dream is just a surface of a deep ocean of our mind. If you dive, you can find silly dolphins and/or huge scary slimy monsters. Our mind protects ourselves from horrors and insanity of the depth by keeping us on the surface. Frequently it “completely” vanishes dreams immediately after first signs of consciousness.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iQ59DmjEnIuR9FpF" /><figcaption>Photo by <a href="https://unsplash.com/@jakobowens1?utm_source=medium&amp;utm_medium=referral">Jakob Owens</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>But what if you might keep your consciousness during a night? What if you bring light into the deep ocean of your mind? What if you can architect reality which you observe and interact with every night? That all is possible when you are Lucid Dreaming.</p><p>You can simultaneously be Actor and Spectator, Architect and Resident, Creator and Creature. It’s hard to explain, but easy to perceive.</p><h3>Master Key</h3><p>The main component to getting into Lucid Dream is <strong>self-awareness</strong>. You should always understand where you are, what you are doing, what you are thinking about, and what you feel. It’s easy to say, but consistently keeping an eye on the flow of your thoughts is pretty tricky. There are two directions on how to get it managed. If you get that handled — one day (maybe tonight?), <strong>you will find yourself in a dream</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7dochp4DJJ7UH-M_" /><figcaption>Photo by <a href="https://unsplash.com/@modernafflatusphotography?utm_source=medium&amp;utm_medium=referral">Ash from Modern Afflatus</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Occasional</h4><p>It means that from time to time, you check your state: thoughts, feelings, outside conditions, etc. During the check, you should make yourself be fully in consciousness. Just do it right now! Ask yourself:</p><blockquote>What do I feel?</blockquote><blockquote>Where am I?</blockquote><blockquote>Am I sleeping?</blockquote><p>It’s easy to do for the first time but requires enough patience and perseverance to keep going.</p><p>You can build out a set of triggers that can help you to initiate a reality check. Some tricks:</p><ul><li><strong>Look at your hands.</strong> Once you find out yourself looking at your hands, turn them up, look into your palms, and do reality-check.</li><li><strong>Find your reflection.</strong> Just try to find yourself in a mirror, glasses, silver pots, etc. Once found — you are out of the flow and can do a reality check. You might be surprised how many things around where you can find your reflection.</li><li><strong>Going through doors.</strong> Whenever you go through a door — do a reality check.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*utfgJLruVOUK7mPs" /><figcaption>Photo by <a href="https://unsplash.com/@lmtrochezz?utm_source=medium&amp;utm_medium=referral">Lina Trochez</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Continuous</h4><p>It’s an advanced technique because it requires building out a second-attention (how it was called in books of <a href="https://en.wikipedia.org/wiki/Carlos_Castaneda">Carlos Castaneda</a>). Reality check requires <strong><em>“someone”</em></strong> who actually does a reality check. The one who observes everything around and makes a report. But it’s possible to observe and manage the observer. Don’t be afraid:) It’s easier than it sounds. Let me explain.</p><p>Once you finish reading this paragraph, close your eyes, and keep calm for a while. After some time, you will spot that somebody is talking in your head. It’s your <strong>internal dialog</strong> (or inner voice). Your mind is commenting on everything around. Try to stop it. Is it easy to do? If yes — wait for a while, and it will come back. <strong>Internal dialog</strong> is like a curious squirrel: easy to spook, but it constantly returns back.</p><p>You can fight with your internal dialog. But it’s meaningless because you fight with your own mind. Inner dialog/voice describes everything, and it’s our <strong>first attention</strong>, but somebody who can listen to that voice and indirectly interact with that voice — our <strong>second attention</strong>.</p><p>It surprises people that our internal dialog is just a lightweight step/level to a real dreaming. It’s a verbal dream or a textual one. And an actual dream is deeper: visualizations and feelings.</p><p>If you are the master of your internal dialog, if you can stop it whenever you want, if you can focus on something specific: you can <strong>expend</strong> it as a fan to Lucid Dream.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jm8wVleVZoHzAlBv" /><figcaption>Photo by <a href="https://unsplash.com/@danielapodaca96?utm_source=medium&amp;utm_medium=referral">Daniel Apodaca</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Memory</h3><p>Have you seen the movie “Memento”? The main character (Leonard) has a critical mission: find who killed his wife. But due to injury, he has <em>anterograde amnesia</em>: loss of ability to create new memories. Every morning, he has to start from a puzzle: <em>Who am I? What’s happened to me? What’s my goal?</em></p><p>Can you imagine to live a life like that? But something very similar happens to us every morning: we don’t remember our dreams. As mentioned at the beginning: there are strong reasons why our mind “erases” memory about dreams. But if you want experience Lucid Dreams — you have to trick your nature and train step-by-step your night-memory. There are a few things which can help you:</p><ul><li>Try to recall a dream immediately after awakening and record on paper or audio-tape. Try to put on paper every single detail you remember and expend your records over your day if you recall more details.</li><li>Create a bridge between your night and day memories. Send yourself a mail, text SMS, make a record in a journal, put a paper in a bottle, etc. before awakening, and upon awakening — “check” that place for new messages. Obviously, you can’t receive an e-mail from your dream, but connected intent from both directions will help to establish a bridge between these two worlds.</li><li>Along with recalling the main story of your dream — try to recall peripheral information. For example, you can draw a map of a location where the main story happened; or you can recall colors and styles of clothing of all characters in your dream; etc.</li></ul><p>And one day you will start recalling in batches all your past dreams: even if they happened a long time ago in your childhood. Per my experience, our night-memory does not fade out over time.</p><h3>Other Contraptions</h3><ul><li>Our mind works as pattern-machine. Every time we learn — we become aware of new patterns: what to look for and what should be our logic of reaction. If we don’t have some pattern in our mind: we just ignore it. Probably you heard about the <em>“Invisible Ships”</em> phenomenon. Native people were completely ignoring Cook ships&#39; arrival because they didn’t know what ships are, how they look like and etc. The same happens with each of us: during daytime and nighttime. It will be very helpful if you will start to pay attention to everything unusual, try to recognize that in a common flow of our life. Once you will have enough cases of unusual things in your dreams: find something common. Finding that patterns next time will be a great trigger to enable your consciousness and make your dream lucid.<em> For example, finding yourself in your parents&#39; house; meeting with people who are far away; inability to read; flying; a lot of stopped watches and so on.</em> Your dreams journal can help you in finding patterns of unusual things.</li><li>It’s easier to get into a lucid dream if you wake up occasionally during your night. Close your eyes and just start imagining a long-long hall with doors. Try to make it as comfortable for you as possible. Imagine every single detail, every single door, and doorway, all details of walls and etc. Go through the hall and open doors on the left and right. Allow your mind to relax and “build” a new world after opening each door. If you are not satisfied with the “quality” of the world — close the door and go to the next one.</li><li>The simplest combination of Melatonin and Vitamin-B can help you to induce Lucid Dream easier. Melatonin makes you deeply asleep, but Vitamin-B gives energy. But be aware, that you can get addicted to this combination and ruin even your common ability to sleep without it. Talk to your doctor before use.</li><li>Water is life. Drink water before sleep and right after. It will normalize your body’s schedule. Don’t eat a lot 3–4 hours before falling asleep. An established schedule will help you to know the exact time when you highly possible can have a lucid dream. Then you can use soft alarms to awaken yourself in a dream.</li><li>Scientists found out that sleep cleans toxins from the brain. So, again, drink enough water to help your body make “wet-cleaning” easier. Also, once awaken, do not move and try to recall your dreams. Moving initiates draining out of excessive liquids from your brain, which makes recalling much more complicated.</li></ul><p>Learning techniques to induce lucid dreams is like to be in a wardrobe to Narnia. Beyond is a whole different world. Relax, open your mind and allow yourself to take a wonderful journey <strong>in a dream</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lsmcVgi864lfMh4B" /><figcaption>Photo by <a href="https://unsplash.com/@jplenio?utm_source=medium&amp;utm_medium=referral">Johannes Plenio</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><blockquote><em>Do you want to know more? Let me know… in a dream…</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f4ef49777dd2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How To Run Effective Meetings]]></title>
            <link>https://medium.com/@phantomydn/how-to-run-effective-meetings-ef851250ee8a?source=rss-eeaf58a6e16------2</link>
            <guid isPermaLink="false">https://medium.com/p/ef851250ee8a</guid>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[efficiency]]></category>
            <category><![CDATA[meetings]]></category>
            <category><![CDATA[best-practices]]></category>
            <dc:creator><![CDATA[Ilya Naryzhnyy]]></dc:creator>
            <pubDate>Tue, 26 Nov 2019 23:58:19 GMT</pubDate>
            <atom:updated>2019-11-26T23:58:19.652Z</atom:updated>
            <content:encoded><![CDATA[<h4>The ultimate guide to taking the maximum from collaboration</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zv_gy0PLuMKaT4_fwS4Xfg.png" /><figcaption>Not-effective meeting</figcaption></figure><p>The first thing which you need to know about effective meetings: to make it really productive you need to work <strong>before</strong>, <strong>during, </strong>and <strong>after</strong>! There is no golden goose, which can instantly make it highly effective. But by following tips in this post, you can start your journey towards feeling the real power of collaborative work. Good Luck!</p><h3>Before the meeting</h3><h4>Goal</h4><p>OK — you just concluded that you have to have a meeting. Try to stop there and understand what’s the actual goal of the meeting. Write it down. Try to think about how you can reposition this goal to make it more effective. The correct goal is the primary key to a productive meeting. For example, instead of <em>“We need to choose color-scheme for our site,”</em> it would be better to have something like <em>“Understand what kind of feelings users should have during a visit of our site and how to re-emphasize that by graphical style.”</em></p><p>It’s always a good idea to have a “preparation meeting” if the meeting is going to be between different teams or companies. Gather your team and try to figure out your part of the agenda and overall strategy for the meeting. If the target meeting is going to be around some negotiation: preparation to it is a “must.”</p><p>If you understand the goal of the upcoming meeting, ask yourself: “is meeting even needed?”. Commonly, there is a good chance that the meeting is NOT needed, and you can achieve your goal in some other ways. For example: conduct a poll or survey, start email thread, delegate or do a task by yourself, ask a single decision-maker or make it by yourself.</p><p>Be clear about your meeting’s goal type. It might be something from the list:</p><ul><li>A <strong>decision</strong> should be made</li><li><strong>Brainstorm</strong> new ideas</li><li><strong>Socialize</strong> some news, changes, decisions</li><li>Gather <strong>status</strong></li><li>Get <strong>feedback</strong></li><li><strong>Combination </strong>of types above</li></ul><p>An effective meeting is always collaborative. So if you gonna <strong>socialize</strong>, gather <strong>status </strong>or <strong>feedbacks</strong>: think twice — there is a chance that you can make it by email, screencast, or side-activity for some other meeting. But if you need full people’s attention: a meeting should help.</p><p>The correct goal for the meeting contributes at least half to its effectiveness. You should also clearly understand how it contributes to the higher-level goal of your team and company.</p><h4>Attendees</h4><p>Your goal should give you a clue who is actually needed for the meeting. Invite only those people who will help you. If you are not sure — ask attendees who else might be helpful or forward meeting invitation correspondingly.</p><p>If you are firm on who is needed for your meeting and extra people might distract: It’s OK to send in a meeting invite something like <em>“Please do not forward the invite”</em> or <em>“Please let me know if somebody else should be invited.”</em> It’s your meeting — your rules.</p><p>For every invited person, you should understand his role. If you struggle to assign something from the list below — do not invite that person.</p><ul><li><strong>Decision-maker</strong> — a person who has enough rights and responsibility to make a decision that helps to reach your meeting goal.</li><li><strong>Stakeholder</strong> — a person who has interest or concerns, especially if (s)he can veto decisions made on your meeting</li><li><strong>Subject-matter expert</strong> — a person who knows very well knowledge domain</li><li><strong>Executor</strong> — a person who will execute decisions that will be made at the meeting. Sometimes the presence of executors might be optional.</li></ul><p>If there are multiple people of the same role: think twice — probably you can nominate just one person to be a delegate from that group.</p><h4>Support materials</h4><p>Support materials might be a presentation, facts&amp;data, design documentation and etc. Just think about what might be helpful for the meeting. Remember — people might be not on the same page about the context, and your goal is to bring them on the same page. Imagine that you are in a court, and you need to protect/explain your position. Try to have everything which might be helpful — even if you will not expect to use it.</p><h4>Socialize goals and expectations</h4><p>Do not just book people’s time. Spend some time to prepare a clear agenda for your meeting and make sure that people understand what exactly you will need jointly achieve. You can easily ruin the meeting if people come with different expectations. For example, technical people might want to discuss solutions for a problem. Still, management might want to structure a message to a customer about the issue.</p><p>Consider “prewiring” the meeting with key attendees. If you are inviting high-management or topic is hot and speculative: your meeting can quickly go off the rails. Prewiring will make people familiar with your way of conducting the meeting and allow you to gather valuable feedback on how to make it stronger.</p><p>It’s also essential to book just-right time for the meeting. Do not underestimate and do not over-estimate the required time. In the first case, a discussion might be in the middle of something important, and people will be angry due to the need to take it down. In another case, you will spend people’s time un-effectively, they will feel boredom and disrespect to their time. If you are almost on-time and just 5 minutes left: try to finish meeting early and give back even this small amount of time.</p><p>Send invitations ahead of time to give your attendees to become familiar with a goal and, probably, prepare some materials or arguments they might want to bring. Try to avoid an early morning, lunchtime, or end of the day, and give some time to commute if needed.</p><h3>During the meeting</h3><h4>Introduction</h4><p>You might have different people with different backgrounds and contexts. It’s always a great idea is to make some introduction to bring everybody on the same page. A good introduction should help everybody to get the following:</p><ol><li>What needs to be accomplished at the meeting? What’s the goal and expectations?</li><li>Who is there at the meeting, and how they can help?</li><li>What does depend on this meeting’s results?</li></ol><h4>Drive the meeting</h4><p>If it’s your meeting — you are responsible for driving the meeting and making it useful for everyone.</p><p>During the meeting, allow people to ask questions. It’s in our brain nature to stop actively listening if you have an important point to make. By enabling people to express yourself on time — you make them better listeners.</p><p>Keep track of time. Do that pro-actively: it means that if some vital topic requires more time to discuss — probably you can skip some other not so important ones. Or, vise verse, if teammates stuck on some off-topic: propose to park it and discuss later.</p><h4>Next steps</h4><p>It’s essential to catch all Next Steps to be done in the future. Effective meeting contributes to the high-level goal of your company. This contribution should be materialized as clear things to be done after the meeting.</p><h4>Feedbacks</h4><p>It’s good to ask at the end: <em>“What was good? What was bad? What and how can be done better next time?”</em> It will provide you good feedbacks for future optimizations and raising productivity. It’s recommended to ask these questions just right on the meeting because people quickly forget their feelings about the actual meeting’s execution and focus on the primary outcome. Moreover, it raises people’s Self-Reflection and Self-Awareness. For example, if somebody proposed to come to the meeting with more facts&amp;data, be sure that next time this person will be very well prepared.</p><h4>Do not do</h4><p>Everything which doesn’t help to reach the goal — pack as Action Items and push outside of the meeting. But it’s easy to say so: frequently, it’s hard to understand is conversation helpful or it’s already off-topic. If you are not sure — do not hesitate to ask team members “<em>Is it helping to get XXX?”</em>, <em>“Will it help to figure out YYY?”</em> and so on. Focus, focus, focus…</p><h3>After the meeting</h3><h4>Meeting Minutes(MMs)</h4><p>Do not forget to take your (and your teammates) notes and prepare Meeting Minutes, which you will send to everyone. MMs should reflect:</p><ol><li>What was discussed?</li><li>What agreements have been made?</li><li>What are Next Steps? (What, when and by whom should be done)</li></ol><p>Thank people for the participation: they spent the most valuable resource — their time.</p><h4>Distribute</h4><p>Send out Meeting Minutes and ask people for any comments and corrections.</p><p>Also, spend some time on the post-wiring results of your meeting. MMs intended to be for participants. It might be smart for other people to prepare more clear description/explanation. For example, your management might want a concise, high-level summary.</p><h3>The real key to making a meeting successful</h3><p>You might have excellent presentation, quorum, and agenda, but still, you might miss the goal. You might look after the exact reason why it’s failed. But, commonly, it’s something outside of a direct subject of your meeting: it’s something which can be summarized by one statement: <strong><em>it was uncomfortable</em></strong>.</p><p>People are people. And having ideal room <strong>temperature</strong>, <strong>water</strong>, and some <strong>food </strong>should cut most of the reasons why teammates feel uncomfortable. Care opens people’s minds and hearts.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ef851250ee8a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bullet Journal for Project Managers]]></title>
            <link>https://medium.com/@phantomydn/bullet-journal-for-project-managers-5d1ffb15cef5?source=rss-eeaf58a6e16------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d1ffb15cef5</guid>
            <category><![CDATA[bulletjournal]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[remarkable]]></category>
            <category><![CDATA[remarkablepapertablet]]></category>
            <category><![CDATA[product-management]]></category>
            <dc:creator><![CDATA[Ilya Naryzhnyy]]></dc:creator>
            <pubDate>Thu, 06 Jun 2019 15:20:04 GMT</pubDate>
            <atom:updated>2019-06-06T15:20:04.660Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ah0OwhzQyWd_fqkH" /><figcaption>Photo by <a href="https://unsplash.com/@alejandroescamilla?utm_source=medium&amp;utm_medium=referral">Alejandro Escamilla</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><a href="https://bulletjournal.com/">Bullet Journalling</a> is a way to plan and keep records about your life in a simple and space efficient way. But it’s also a good way to enhance your note taking technique. Especially if you are a project manager and should keep an eye on a wide range of things which are just happening and manage all of that in an effective way.</p><p>In this post I will explain the technique which I use on my <a href="https://medium.com/@phantomydn/remarkable-review-of-the-remarkable-tablet-42c198124b14">reMarkable</a> table. You can take from it whatever will work for you. Experiment and try to find what fits your style better.</p><p><a href="https://medium.com/@phantomydn/remarkable-review-of-the-remarkable-tablet-42c198124b14">Remarkable review of The reMarkable Tablet</a></p><h3>Page Layout</h3><p>I use a simple lined page template. When open new page: put the current date on the right-top corner. If today was pretty calm and the next day you are going to reuse free space on the same page, I recommend just add a new date to the right-top corner.</p><p>Every row is a separate record: which is either a task to be done or a quick note. I keep some space on the left of every row for additional notes and signs. If I need to have a bigger space for a note or image: just line around some required space. So, as a result, I commonly have something like this:</p><pre>                                                           6/5/2019<br>   Task 1<br>   Task 2<br>   Task 3</pre><pre>-------------------------------------------------------------------<br>|  Some note or picture                                           |<br>|                                                                 |<br>|                                                                 |<br>-------------------------------------------------------------------</pre><h3>Notations</h3><p>Default notations from Bullet Journalling are not working for me well in project management. My approach:</p><pre>    This is simple task<br>  ! This is high priority task<br> !! This is very important task<br> F: This is task for a particular work stream (F is for &quot;Family&quot;)<br> O: This is task from &quot;Others&quot; workstream <br>&gt;Jack: Talk with Jack about something<br>      </pre><p>If you have done some task: just strike out that task:</p><blockquote>W̶r̶i̶t̶e̶ ̶p̶o̶s̶t̶ ̶a̶b̶o̶u̶t̶ ̶B̶u̶l̶l̶e̶t̶ ̶J̶o̶u̶r̶n̶a̶l̶l̶i̶n̶g̶ ̶f̶o̶r̶ ̶P̶r̶o̶j̶e̶c̶t̶ ̶M̶a̶n̶a̶g̶e̶r̶s̶</blockquote><p>If some task becomes irrelevant and you need to cancel it: mark it by X on the left side and strike out as well:</p><blockquote>X M̶a̶k̶e̶ ̶a̶ ̶c̶u̶p̶ ̶o̶f̶ ̶c̶o̶f̶f̶e̶e̶</blockquote><h3>Notes/Tasks Lifecycle</h3><p>Every Project Manager does know that you have to review your notes periodically and make plans actual. I do 2 types of reviews:</p><ul><li><strong>Daily</strong> — review of what was done and plan next day</li><li><strong>Weekly</strong> — a retrospective review of what was done, what’s in pipeline and plan next week</li></ul><h4>During these reviews, I might do the following changes:</h4><p>If a task is actual, but almost has been lost among others: move it to next page by writing down it again. Task on previous page mark by arrow on the right side:</p><blockquote>T̶h̶i̶s̶ ̶i̶s̶ ̶t̶h̶e̶ ̶a̶c̶t̶u̶a̶l̶ ̶t̶a̶s̶k̶ ̶w̶h̶i̶c̶h̶ ̶h̶a̶s̶ ̶b̶e̶e̶n̶ ̶m̶o̶v̶e̶d̶ ̶t̶o̶ ̶n̶e̶x̶t̶ ̶p̶a̶g̶e̶ →</blockquote><p>If the task has to be moved, but along with that it should be reformulated: use waved arrow:</p><blockquote>T̶h̶i̶s̶ ̶t̶a̶s̶k̶ ̶w̶a̶s̶ ̶r̶e̶f̶o̶r̶m̶u̶l̶a̶t̶e̶d̶ ̶a̶n̶d̶ ̶h̶a̶s̶ ̶b̶e̶e̶n̶ ̶m̶o̶v̶e̶d̶ ̶t̶o̶ ̶o̶t̶h̶e̶r̶ ̶p̶a̶g̶e̶ ~~&gt;</blockquote><p>The goal of a review is to plan the next day or week. If all tasks on a page were completed or moved: just cross out the whole page. I found out that striking previous task and handwriting it again on the new page is pretty efficient, because if you postpone some task few times — you began to think more efficient about what has to be done to avoid stupid copy-pasting again and again. So you either do that task or decide that it’s actually not needed anymore. It helps to avoid paralyzation by a huge list of uncompleted tasks. Recommend to keep your tasks just on one page.</p><h3>Bird-View (Weekly/Monthly) Notes</h3><p>Pretty sure that you have things which you need to keep an eye on. You need to have some bird-view on what’s actually important for your work, otherwise you can be lost among everyday low-level tasks. For Bird-View I recommend having a separate notebook in your <a href="https://medium.com/@phantomydn/remarkable-review-of-the-remarkable-tablet-42c198124b14">reMarkable</a> or just keep those records on dedicated pages from the end of your journal if you are using the paper version.</p><p>If some task is too big for daily records and needs to be decomposed: “upgrade” it to your Bird-View records. In this case, I strike out the task and put ^ symbol at the end.</p><blockquote>! S̶a̶v̶e̶ ̶t̶h̶e̶ ̶W̶o̶r̶l̶d̶ ^</blockquote><p>On my reMarkable, if something was done from my BirdView list I prefer to strike out that record and move it away. It helps to keep the first page very focused on really actual things.</p><h3>Email Routine and Bullet Journalling</h3><p>Working with emails is an essential part of every project manager. For most of us working in Outlook/Mail can take a significant part of a day. I prefer to follow the <strong>4D</strong> time management approach. For every email, you do one of the following D:</p><ul><li><strong>Do</strong> — yes, just read email and do immediately if it’s a task for about 5–10 minutes.</li><li><strong>Delegate</strong> — add to the email thread or forward it to a person who should be assigned to a required task. In this case, I add also record to my Bullet Journal to check progress later with that person.</li><li><strong>Drop</strong> or <strong>Delete</strong>— if it’s not relevant for you — just ignore the email or even delete it.</li><li><strong>Defer</strong> — add a record to your Bullet Journal to do this task later. Mark it correspondingly according to your notation.</li></ul><h3>What’s Next?</h3><p>Time management is hard. Just try to do different techniques and use what works for you. If you are stuck, paralyzed and procrastinate — just take a rest, but if it’s making guilty — talk with your friends and/or psychologist. Happy project management!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d1ffb15cef5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Remarkable review of The reMarkable Tablet]]></title>
            <link>https://medium.com/@phantomydn/remarkable-review-of-the-remarkable-tablet-42c198124b14?source=rss-eeaf58a6e16------2</link>
            <guid isPermaLink="false">https://medium.com/p/42c198124b14</guid>
            <category><![CDATA[tablets]]></category>
            <category><![CDATA[review]]></category>
            <category><![CDATA[remarkable]]></category>
            <category><![CDATA[productivity]]></category>
            <dc:creator><![CDATA[Ilya Naryzhnyy]]></dc:creator>
            <pubDate>Sat, 20 Apr 2019 02:45:29 GMT</pubDate>
            <atom:updated>2019-12-30T21:27:17.334Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*THcm6GKtrW_nONGHNhIbWw.jpeg" /><figcaption>My remarkable reMarkable</figcaption></figure><p>Hello! If you read this, most probably, you are like me three months ago: searching and looking for any review about this reMarkable tablet! Sure that this review will help you make the final decision: <strong>Invest money or not?!</strong></p><p>“Invest” is the exact word how you should think about the purchase, because the tablet is quite expensive ($600 minus $100 discount which you can get with <a href="https://remarkable.mention-me.com/m/ol/pb1ff-ilya-naryzhnyy">my referral link</a> = $500), but at the same time reMarkable tablet is a <strong>Game Changer</strong>: it might change your life irrevocably.</p><h3>reMarkable is a Game Changer</h3><p>Long-time back, in 2009, I met with one Russian painter. We had a long discussion about all the different things: it was exciting to meet somebody, not from my IT world. I’ve got a lot from that conversation, but the main one: <strong>Form makes us free </strong>(or “restrictions/constraints can set us free”).</p><p>Our nature is fascinating: to be more creative and efficient — we have to have some constraints. That might be time: “I have to finish the article before Thursday.” It might be money: “I have to do something to make my marketing campaign effective.” It might be our family: “I have to make something to give my kids food.”</p><p>reMarkable tablet is great to let you focus. There are no tons of applications, no notifications, no ads. There are no things that are constantly requesting your attention and taking your working memory. There is no even possibility to get the current time! And I absolutely love it! That’s precisely The Form to make you free and your imagination.</p><p>Have you tried sensory deprivation? When you are lying in a big tube with warm salted water and floating… No sound, no touch, no visual contact. Nothing. Just silence on all “metering channels” of your body. But after some time, your brain starts to gush with new ideas and thoughts.</p><p>The same happens when you have reMarkable in your hands. It’s a piece of paper, pen and time. Ideas just find out a way out from your subconscious, and you have to be fast enough to write everything down.</p><h3>reMarkable is a remarkable digital paper</h3><p>Computers are relatively new for mankind. Not sure about you, but your parents definitely were learning hand-writing at school: and through all grades, the only way to express and write down was “hand-writing”. And all mankind had been primary writing by hands for lots of centuries. It’s our nature to remember better and think better if we are doing something by hand: writing on paper or whiteboard or sand. And reMarkable provides exactly those feelings as you write on real paper. It’s tough to explain: you just need to try it!</p><p>Of course, there are digital functions like “Move,” “Erase,” “Copy” etc. And Yes — you can write within e-books! These physical feelings and benefits of digital devices change entirely your mindset again. You become more “connected” with what you do right now on the device. If you are learning or writing, you can easily add marks, dive into examples, solve problems right there! There are no moving a mouse, opening/creating new documents, deciding where to store, how to name, tons of notifications around, etc. All of that stuff which you do on your computer to facilitate your learning time — all of that just gone! There are only you and the material which you are working on.</p><h3>Wishlist</h3><p>Tablet is really remarkable, but not 100% ideal. Here is my wishlist, which will be nice to see implemented.</p><ul><li>It will be great to have a Copy ability not only within a page but across different pages and even various documents.</li><li>When you are working on some big documents and making marks — it would be cool to be able to jump to the previous/next mark which you made.</li><li>Apparently, it’s pretty common desire: to have the ability to bookmark a particular page, but not a whole book. Also, some tagging of bookmarks should help to organize your work on documents even better.</li><li>E-Ink requires much less energy to redraw a screen and no power just to display. It would be useful to have the last page frozen and displayed instead of showing a blank page with the message that “tablet is sleeping.”</li><li>Did I mention that reMarkable has great page templates? Lines, grid, doted, calendar and a lot more! But it would be nice if you will be able to upload your own templates easily.</li><li>It might sound strange, but currently, you can add a new page only at the end of your notebook. It will be great to be able to insert a new one everywhere and be able to hide some draft pages.</li><li>You can organize your documents and notebooks into folders and subfolders, but filters work globally only. So you can’t filter out only notebooks in the current folder. Also, currently, you can’t change the order of search results: descending or ascending.</li><li>Zooming functionality is great in the tablet, but it will be even more useful if Copy and Move will work when you zoom-in.</li><li>Your documents are in reMarkable cloud, and you do have access to all your documents through mobile and desktop applications, but it will be even more convenient if files will be available right from their site: <a href="https://my.remarkable.com/">https://my.remarkable.com/</a></li></ul><h3>Summary</h3><ul><li>Easy to use</li><li>The pen doesn’t require a battery</li><li>Can be used for drawing</li><li>All data stored in the cloud</li><li>A full battery is enough for 4–5 days, depends on usage style</li><li>Solid design and manufacturing, not bendable</li><li>Price: $600, but -$100 with <a href="https://remarkable.mention-me.com/m/ol/pb1ff-ilya-naryzhnyy">my referral link</a></li></ul><p>reMarkable tablet worst this money — at least for me. And it’s up to you to decide: invest or not. I do recommend to find a friend who already owns this tablet and JUST TRY to write on it. It’s really hard to explain, but that’s exact “aha-moment” when you understand that this product is just for you!</p><h3>Useful links</h3><ul><li>Official site: <a href="https://remarkable.com/">https://remarkable.com/</a></li><li>reMarkable app: <a href="https://my.remarkable.com/">https://my.remarkable.com/</a></li><li>Collection of awesome projects around this tablet: <a href="https://github.com/reHackable/awesome-reMarkable">https://github.com/reHackable/awesome-reMarkable</a></li><li>YouTuber about reMarkable: <a href="https://www.youtube.com/watch?v=lOpkdHRRDMY&amp;list=PLsSI9-gaSSmjgjpi4otY1xYWYusw38OtR">https://www.youtube.com/watch?v=lOpkdHRRDMY&amp;list=PLsSI9-gaSSmjgjpi4otY1xYWYusw38OtR</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=42c198124b14" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning techniques — crisp and easy]]></title>
            <link>https://medium.com/@phantomydn/learning-techniques-crisp-and-easy-114547ca47fe?source=rss-eeaf58a6e16------2</link>
            <guid isPermaLink="false">https://medium.com/p/114547ca47fe</guid>
            <category><![CDATA[summary]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[productivity]]></category>
            <dc:creator><![CDATA[Ilya Naryzhnyy]]></dc:creator>
            <pubDate>Wed, 02 Jan 2019 01:15:58 GMT</pubDate>
            <atom:updated>2019-01-02T02:53:44.006Z</atom:updated>
            <content:encoded><![CDATA[<h3>Learning Techniques — Crisp and Easy</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*z0W_8DwGZQUrabj8" /><figcaption>Photo by <a href="https://unsplash.com/@kimberlyfarmer?utm_source=medium&amp;utm_medium=referral">Kimberly Farmer</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Recently, I have learned one of the greatest courses: <a href="https://www.coursera.org/learn/learning-how-to-learn/">Learn How to Learn</a>. I do recommend this course to everybody: it’s a great investment of your time ever. Let me outline the most valuable techniques and facts which might become useful for you as well.</p><ol><li>Our brain has two modes: <strong>focused</strong> and <strong>diffused</strong>. Do use wisely <strong>both</strong> of them to make material straighten and structured in your brain in a most efficient way.</li><li>If you find yourself procrastinating: try to figure out clues and triggers of that; focus on a process, but not a product of your work (which might be too far); use Pomodoro technique to focus on process rather than on 100% completion of your product.</li><li>During writing something: do it in 2 steps. <strong>Write whatever relevant</strong> come to your mind. And after that switch to <strong>Editor mode</strong> and work on your article for final publication.</li><li><strong>Diffused mode</strong> (or our subconsciousness) <strong>is extremely powerful</strong>. It’s not wise to do not use it, because sometimes it does not require even extra time. Try going through your problem, you are working on, or your planned tasks before going to sleep. In most cases, your mind will do its job and “silently” work out the problem. Due to the same effect, it’s recommended on tests to jump to hardest questions/problems first and then, when you are stuck, go to easier. It will allow your mind to work on those hardest problems in the background while you are mechanically working on more easier for you problems.</li><li><strong>Sleep well.</strong> During sleep, toxins are being washed out of our brain. The similar effect can be achieved by good meditation.</li><li>Learning something — try to do that in different places and conditions. Also, try different methods to get material. It will allow building required neural structure more reliable.</li><li>Our memory can be divided into 2 parts: <strong>working</strong> and <strong>permanent</strong> memory. Working memory has only 4–6 spaces for keeping stuff. Avoid keeping in your working memory things which are really not needed for you right now. For example, you can “flush out” such things to your TODO list or just do it.</li><li>Accountability is helpful to have things done. Try to schedule a meeting with your friend/mentor for reviewing your results to speed up your working on them.</li><li>Be accountable also for what and how you are learning. Prepare learning plans, divide to chunks, interleave different learning activities.</li><li>To write better try to answer 2 questions: <strong>1) What am I trying to say? 2) What I can’t leave out?</strong></li><li><strong>Metaphor</strong> and <strong>analogy</strong> is an extremely useful technique. Try mentally link new staff with what you already know even if this link looks fantastic.</li><li><strong>Exercising</strong> is not only for our muscles and general health but also for our brain. It helps to learn faster and keep our mind clean and open.</li><li>Most of us fill experience sometimes <strong>“Imposter Syndrome”</strong>. It’s important to get the idea, that you are not alone in that.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=114547ca47fe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Analyze Failed Projects?]]></title>
            <link>https://medium.com/@phantomydn/how-to-analyze-failed-projects-fd2552123eda?source=rss-eeaf58a6e16------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd2552123eda</guid>
            <category><![CDATA[analysis]]></category>
            <category><![CDATA[failure]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[project-management]]></category>
            <category><![CDATA[reflections]]></category>
            <dc:creator><![CDATA[Ilya Naryzhnyy]]></dc:creator>
            <pubDate>Sat, 01 Dec 2018 06:01:16 GMT</pubDate>
            <atom:updated>2018-12-01T06:01:16.946Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6UrZukj_C3xv4lan" /><figcaption>Photo by <a href="https://unsplash.com/@nate_dumlao?utm_source=medium&amp;utm_medium=referral">Nathan Dumlao</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>You just closed one more your project and labeled it as FAILED? Don’t be in a hurry and lets get as much as possible for your future success!</p><h3>Why you claim that project “FAILED”?</h3><p>First of all, analyze why are you actually closing the project? What is the reason? Why have you decided that the project is really “Failed”? Why you don’t want to spend time and other resources on it any more? Reasons might be very different:</p><ul><li>Competitors out-ran you and your project</li><li>Market changed and final product is not needed any more</li><li>Project required so much time and money</li><li>Big problems/complexities uncovered and you can’t solve them</li></ul><p>Reason should be clean and clear for you. Don’t try to fool your self!</p><h3>What has been changed?</h3><p>Knowing reason from previous question, it will be easier to answer. That might be something like:</p><ul><li>No more money for covering costs</li><li>Per latest marketing research: landscape has been changed</li><li>Resources are needed for new much more prospective resources</li></ul><p>It will be good also understand why exactly right now you closed the project? Why that didn’t happen week ago, month ago and etc?</p><h3>When project started to fail?</h3><p>Most probably, somewhere deep in you mind you did know that this project will fail. Try to understand how and when your mood changed from very optimistic to skeptic, from enthusiastic to disgust. What was the reason those days? Might be critics? Or market metrics? Or your health become worse?</p><h3>Did you have a chance to make it fly?</h3><p>We are all guru in explaining the past. Did it failed because you did not know something those days? For example:</p><ul><li>There are big and powerful competitors with better team, more money and wide idea</li><li>There are laws which prohibits project to succeed.</li></ul><p>Or problem was in execution of the project?</p><ul><li>You and your team were too slow</li><li>You underestimated cost and other resources</li></ul><p>Where exactly did you do it wrong?</p><h3>What can you do next time better?</h3><p>Try to convert your failure into set of things which you can do better next time. Try to figure out what sides should be strengthened. That are your lessons learned!</p><ul><li>Do better marketing research</li><li>Do better financial analysis and forecasting</li><li>Do better communicate with the team or clients</li><li>Do better project planning and/or risk management</li></ul><h3>What’r left after?</h3><p>Most probably, after closing a project there are bunch of resources which can be re-used in the future. It might be:</p><ul><li>Source code</li><li>Point of contacts</li><li>Money</li><li>Learned skills</li><li>Best practices</li></ul><p>I do recommend to enumerate all these resources. It might be a good foundation for your future success!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd2552123eda" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Audit of 333eth v2 Smart Contract]]></title>
            <link>https://medium.com/cryptomaniacszone/audit-of-333eth-v2-smart-contract-c9c5cc450ed5?source=rss-eeaf58a6e16------2</link>
            <guid isPermaLink="false">https://medium.com/p/c9c5cc450ed5</guid>
            <category><![CDATA[solidity]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[audit]]></category>
            <category><![CDATA[pyramid]]></category>
            <category><![CDATA[smart-contracts]]></category>
            <dc:creator><![CDATA[Ilya Naryzhnyy]]></dc:creator>
            <pubDate>Fri, 02 Nov 2018 05:27:41 GMT</pubDate>
            <atom:updated>2018-11-02T05:27:41.095Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bnk7WYE2K8vKm8A1XXKVCw.png" /></figure><p>Please check our video version out:<br><a href="https://www.youtube.com/watch?v=cH-vZpQcPr4">https://www.youtube.com/watch?v=cH...</a></p><p>Ponzi site: <br><a href="https://333eth.io/ru">https://333eth.io/ru</a></p><p>Smart Contract:<br><a href="https://etherscan.io/address/0x215ce36e90b1b64e6fa2e358305177f8fe5daf25#code">https://etherscan.io/address/0x215ce3...</a></p><p>Financial Analytics:<br><a href="https://beta.observablehq.com/@phantomydn/ethereum-pyramids-analysis">https://beta.observablehq.com/@phanto…</a></p><p>333eth is one of the biggest crypto Ponzi on Ethereum. First version of 333eth had been collapsed recently and launch of second version was announced. Our monitoring of blockchain catched this new contract even before official publishing.</p><p>There are 750 lines of code. Significant part of it are famous libraries and comments.</p><p>Alright, go ahead!</p><p><strong>Line 1</strong> is defining solidity version which should be used to compile the contract.</p><pre>pragma solidity 0.4.25;</pre><p><strong>Lines 4–64</strong> contains information about the project, links to social networks and how to use this contract.</p><pre>/**<br>*<br>* ETH CRYPTOCURRENCY DISTRIBUTION PROJECT v 2.0<br>* Web              - <a href="https://333eth.io/">https://333eth.io</a><br>* GitHub           - <a href="https://github.com/Revolution333/">https://github.com/Revolution333/</a><br>* Twitter          - <a href="https://twitter.com/333eth_io">https://twitter.com/333eth_io</a><br>* Youtube          - <a href="https://www.youtube.com/c/333eth">https://www.youtube.com/c/333eth</a><br>* Discord          - <a href="https://discord.gg/P87buwT">https://discord.gg/P87buwT</a><br>* Telegram_channel - <a href="https://t.me/Ethereum333">https://t.me/Ethereum333</a><br>* EN  Telegram_chat: <a href="https://t.me/Ethereum333_chat_en">https://t.me/Ethereum333_chat_en</a><br>* RU  Telegram_chat: <a href="https://t.me/Ethereum333_chat_ru">https://t.me/Ethereum333_chat_ru</a><br>* KOR Telegram_chat: <a href="https://t.me/Ethereum333_chat_kor">https://t.me/Ethereum333_chat_kor</a><br>* CN  Telegram_chat: <a href="https://t.me/Ethereum333_chat_cn">https://t.me/Ethereum333_chat_cn</a><br>* Email:             mailto:support(at sign)333eth.io<br>* <br>* <br>*  - GAIN 3,33% - 1% PER 24 HOURS (interest is charges in equal parts every 10 min)<br>*  - Life-long payments<br>*  - The revolutionary reliability<br>*  - Minimal contribution 0.01 eth<br>*  - Currency and payment - ETH<br>*  - Contribution allocation schemes:<br>*    -- 87,5% payments<br>*    --  7,5% marketing<br>*    --  5,0% technical support<br>*<br>*   ---About the Project<br>*  Blockchain-enabled smart contracts have opened a new era of trustless relationships without <br>*  intermediaries. This technology opens incredible financial possibilities. Our automated investment <br>*  distribution model is written into a smart contract, uploaded to the Ethereum blockchain and can be <br>*  freely accessed online. In order to insure our investors&#39; complete security, full control over the <br>*  project has been transferred from the organizers to the smart contract: nobody can influence the <br>*  system&#39;s permanent autonomous functioning.<br>* <br>* ---How to use:<br>*  1. Send from ETH wallet to the smart contract address 0x311f71389e3DE68f7B2097Ad02c6aD7B2dDE4C71<br>*     any amount from 0.01 ETH.<br>*  2. Verify your transaction in the history of your application or etherscan.io, specifying the address <br>*     of your wallet.<br>*  3a. Claim your profit by sending 0 ether transaction (every 10 min, every day, every week, i don&#39;t care unless you&#39;re <br>*      spending too much on GAS)<br>*  OR<br>*  3b. For reinvest, you need to deposit the amount that you want to reinvest and the <br>*      accrued interest automatically summed to your new contribution.<br>*  <br>* RECOMMENDED GAS LIMIT: 200000<br>* RECOMMENDED GAS PRICE: <a href="https://ethgasstation.info/">https://ethgasstation.info/</a><br>* You can check the payments on the etherscan.io site, in the &quot;Internal Txns&quot; tab of your wallet.<br>*<br>* ---Refferral system:<br>*     from 0 to 10.000 ethers in the fund - remuneration to each contributor is 3.33%, <br>*     from 10.000 to 100.000 ethers in the fund - remuneration will be 2%, <br>*     from 100.000 ethers in the fund - each contributor will get 1%.<br>*<br>* ---It is not allowed to transfer from exchanges, only from your personal ETH wallet, for which you <br>* have private keys.<br>* <br>* Contracts reviewed and approved by pros!<br>* <br>* Main contract - Revolution2. Scroll down to find it.<br>*/</pre><p><strong>Lines 67–241</strong> contains libraries and links to contract of first version:</p><p>Math<em> </em>— just a calculation of minimal number our of 2 provided.</p><pre>library Math {<br>  function min(uint a, uint b) internal pure returns(uint) {<br>    if (a &gt; b) {<br>      return b;<br>    }<br>    return a;<br>  }<br>}</pre><p>Zero<em> </em>— set of validations and checks for zeros.</p><pre>library Zero {<br>  function requireNotZero(address addr) internal pure {<br>    require(addr != address(0), &quot;require not zero address&quot;);<br>  }</pre><pre>function requireNotZero(uint val) internal pure {<br>    require(val != 0, &quot;require not zero value&quot;);<br>  }</pre><pre>function notZero(address addr) internal pure returns(bool) {<br>    return !(addr == address(0));<br>  }</pre><pre>function isZero(address addr) internal pure returns(bool) {<br>    return addr == address(0);<br>  }</pre><pre>function isZero(uint a) internal pure returns(bool) {<br>    return a == 0;<br>  }</pre><pre>function notZero(uint a) internal pure returns(bool) {<br>    return a != 0;<br>  }<br>}</pre><p>Percent<em> </em>— library to work with percentages. A long with methods which work with storage,there are new methods in comparison with their previous version which are working with memory.</p><pre>library Percent {<br>  //Solidity automatically throws when dividing by 0<br>  struct percent {<br>    uint num;<br>    uint den;<br>  }<br>  <br>  //storage<br>  function mul(percent storage p, uint a) internal view returns(uint) {<br>    if (a == 0) {<br>      return 0;<br>    }<br>    return a*p.num/p.den;<br>  }</pre><pre>function div(percent storage p, uint a) internal view returns(uint){<br>    return a/p.num*p.den;<br>  }</pre><pre>function sub(percent storage p, uint a) internal view returns(uint) {<br>    uint b = mul(p, a);<br>    if (b &gt;= a) {<br>      return 0;<br>    }<br>    return a - b;<br>  }</pre><pre>function add(percent storage p, uint a) internal view returns(uint) {<br>    return a + mul(p, a);<br>  }</pre><pre>function toMemory(percent storage p) internal view returns (Percent.percent memory) {<br>    return Percent.percent(p.num, p.den);<br>  }</pre><pre>// memory <br>  function mmul(percent memory p, uint a) internal pure returns (uint) {<br>    if (a == 0) {<br>      return 0;<br>    }<br>    return a*p.num/p.den;<br>  }</pre><pre>function mdiv(percent memory p, uint a) internal pure returns(uint) {<br>    return a/p.num*p.den;<br>  }</pre><pre>function msub(percent memory p, uint a) internal pure returns(uint) {<br>    uint b = mmul(p, a);<br>    if (b &gt;= a) {<br>      return 0;<br>    }<br>    return a - b;<br>  }</pre><pre>function madd(percent memory p, uint a) internal pure returns(uint) {<br>    return a + mmul(p, a);<br>  }<br>}</pre><p>Address<em> — </em>extraction of address from input data and utility method to check whether address is actually address of an another smart contract. This check will be used later in function for dividends withdraw getMyDividents in main contract body. It worst to say that this check is not ideal and there are way how to by pass it.</p><pre>library Address {<br>  function toAddress(bytes source) internal pure <br>returns(address addr) {<br>    assembly { addr := mload(add(source,0x14)) }<br>    return addr;<br>  }</pre><pre>function isNotContract(address addr) internal view returns(bool) {<br>    uint length;<br>    assembly { length := extcodesize(addr) }<br>    return length == 0;<br>  }<br>}</pre><p>SafeMath — library for safe math, it has been copied without any changes from <em>openzeppelin-solidity</em>. It’s required to prevent numbers overflow errors in math operations.</p><pre>/**<br> * <a href="http://twitter.com/title">@title</a> SafeMath<br> * <a href="http://twitter.com/dev">@dev</a> Math operations with safety checks that revert on error<br> */<br>library SafeMath {</pre><pre>/**<br>  * <a href="http://twitter.com/dev">@dev</a> Multiplies two numbers, reverts on overflow.<br>  */<br>  function mul(uint256 _a, uint256 _b) internal pure returns (uint256) {<br>    // Gas optimization: this is cheaper than requiring &#39;a&#39; not being zero, but the<br>    // benefit is lost if &#39;b&#39; is also tested.<br>    // See: <a href="https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522">https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522</a><br>    if (_a == 0) {<br>      return 0;<br>    }</pre><pre>uint256 c = _a * _b;<br>    require(c / _a == _b);</pre><pre>return c;<br>  }</pre><pre>/**<br>  * <a href="http://twitter.com/dev">@dev</a> Integer division of two numbers truncating the quotient, reverts on division by zero.<br>  */<br>  function div(uint256 _a, uint256 _b) internal pure returns (uint256) {<br>    require(_b &gt; 0); // Solidity only automatically asserts when dividing by 0<br>    uint256 c = _a / _b;<br>    // assert(_a == _b * c + _a % _b); // There is no case in which this doesn&#39;t hold</pre><pre>return c;<br>  }</pre><pre>/**<br>  * <a href="http://twitter.com/dev">@dev</a> Subtracts two numbers, reverts on overflow (i.e. if subtrahend is greater than minuend).<br>  */<br>  function sub(uint256 _a, uint256 _b) internal pure returns (uint256) {<br>    require(_b &lt;= _a);<br>    uint256 c = _a - _b;</pre><pre>return c;<br>  }</pre><pre>/**<br>  * <a href="http://twitter.com/dev">@dev</a> Adds two numbers, reverts on overflow.<br>  */<br>  function add(uint256 _a, uint256 _b) internal pure returns (uint256) {<br>    uint256 c = _a + _b;<br>    require(c &gt;= _a);</pre><pre>return c;<br>  }</pre><pre>/**<br>  * <a href="http://twitter.com/dev">@dev</a> Divides two numbers and returns the remainder (unsigned integer modulo),<br>  * reverts when dividing by zero.<br>  */<br>  function mod(uint256 a, uint256 b) internal pure returns (uint256) {<br>    require(b != 0);<br>    return a % b;<br>  }<br>}</pre><p>Accessibility — contract, which defines modifier for access restriction if requestor is not an owner of a contract. Also it contains method for resigning ownership.</p><pre>contract Accessibility {<br>  address private owner;<br>  modifier onlyOwner() {<br>    require(msg.sender == owner, &quot;access denied&quot;);<br>    _;<br>  }</pre><pre>constructor() public {<br>    owner = msg.sender;<br>  }</pre><pre>function disown() internal {<br>    delete owner;<br>  }<br>}</pre><p><strong>Lines 261–419</strong> contain more libraries and contracts:</p><p>Rev1Storage &amp; Rev2Storage — contracts with abstract methods which allow to get information about investors from first and current version of the Ponzi.</p><pre>contract Rev1Storage {<br>  function investorShortInfo(address addr) public view returns(uint value, uint refBonus); <br>}</pre><pre>contract Rev2Storage {<br>  function investorInfo(address addr) public view returns(uint investment, uint paymentTime); <br>}</pre><p>PrivateEntrance — library, which allow investors to first version of the Ponzi to invest into current one before official launch. It defines access to storage, access rules and calculations about allowed sum to invest.</p><pre>library PrivateEntrance {<br>  using PrivateEntrance for privateEntrance;<br>  using Math for uint;<br>  struct privateEntrance {<br>    Rev1Storage rev1Storage;<br>    Rev2Storage rev2Storage;<br>    uint investorMaxInvestment;<br>    uint endTimestamp;<br>    mapping(address=&gt;bool) hasAccess;<br>  }</pre><pre>function isActive(privateEntrance storage pe) internal view returns(bool) {<br>    return pe.endTimestamp &gt; now;<br>  }</pre><pre>function maxInvestmentFor(privateEntrance storage pe, address investorAddr) internal view returns(uint) {<br>    // check if investorAddr has access<br>    if (!pe.hasAccess[investorAddr]) {<br>      return 0;<br>    }</pre><pre>// get investor max investment = investment from revolution 1<br>    (uint maxInvestment, ) = pe.rev1Storage.investorShortInfo(investorAddr);<br>    if (maxInvestment == 0) {<br>      return 0;<br>    }<br>    maxInvestment = Math.min(maxInvestment, pe.investorMaxInvestment);</pre><pre>// get current investment from revolution 2<br>    (uint currInvestment, ) = pe.rev2Storage.investorInfo(investorAddr);<br>    <br>    if (currInvestment &gt;= maxInvestment) {<br>      return 0;<br>    }</pre><pre>return maxInvestment-currInvestment;<br>  }</pre><pre>function provideAccessFor(privateEntrance storage pe, <br>address[] addrs) internal {<br>    for (uint16 i; i &lt; addrs.length; i++) {<br>      pe.hasAccess[addrs[i]] = true;<br>    }<br>  }<br>}</pre><p>InvestorsStorage — contract for investors storing and access methods.</p><pre>contract InvestorsStorage is Accessibility {<br>  struct Investor {<br>    uint investment;<br>    uint paymentTime;<br>  }<br>  uint public size;</pre><pre>mapping (address =&gt; Investor) private investors;</pre><pre>function isInvestor(address addr) public view returns (bool) {<br>    return investors[addr].investment &gt; 0;<br>  }</pre><pre>function investorInfo(address addr) public view returns(uint investment, uint paymentTime) {<br>    investment = investors[addr].investment;<br>    paymentTime = investors[addr].paymentTime;<br>  }</pre><pre>function newInvestor(address addr, uint investment, uint paymentTime) public onlyOwner returns (bool) {<br>    Investor storage inv = investors[addr];<br>    if (inv.investment != 0 || investment == 0) {<br>      return false;<br>    }<br>    inv.investment = investment;<br>    inv.paymentTime = paymentTime;<br>    size++;<br>    return true;<br>  }</pre><pre>function addInvestment(address addr, uint investment) public onlyOwner returns (bool) {<br>    if (investors[addr].investment == 0) {<br>      return false;<br>    }<br>    investors[addr].investment += investment;<br>    return true;<br>  }</pre><pre>function setPaymentTime(address addr, uint paymentTime) public onlyOwner returns (bool) {<br>    if (investors[addr].investment == 0) {<br>      return false;<br>    }<br>    investors[addr].paymentTime = paymentTime;<br>    return true;<br>  }<br>}</pre><p>RapidGrowProtection — fast growth protection, probably to prolong Ponzi lifetime. Protection is implemented by checking for maximum investments per day (500 ETH) for first 21 days. First launch should be performed by Ponzi administrator by invoking functioninit(), but before ownership resign. Going forward it’ll be done automatically during Ponzi restart in function nextWave().</p><pre>library RapidGrowthProtection {<br>  using RapidGrowthProtection for rapidGrowthProtection;<br>  <br>  struct rapidGrowthProtection {<br>    uint startTimestamp;<br>    uint maxDailyTotalInvestment;<br>    uint8 activityDays;<br>    mapping(uint8 =&gt; uint) dailyTotalInvestment;<br>  }</pre><pre>function maxInvestmentAtNow(rapidGrowthProtection storage rgp) internal view returns(uint) {<br>    uint day = rgp.currDay();<br>    if (day == 0 || day &gt; rgp.activityDays) {<br>      return 0;<br>    }<br>    if (rgp.dailyTotalInvestment[uint8(day)] &gt;= rgp.maxDailyTotalInvestment) {<br>      return 0;<br>    }<br>    return rgp.maxDailyTotalInvestment - rgp.dailyTotalInvestment[uint8(day)];<br>  }</pre><pre>function isActive(rapidGrowthProtection storage rgp) internal view returns(bool) {<br>    uint day = rgp.currDay();<br>    return day != 0 &amp;&amp; day &lt;= rgp.activityDays;<br>  }</pre><pre>function saveInvestment(rapidGrowthProtection storage rgp, uint investment) internal returns(bool) {<br>    uint day = rgp.currDay();<br>    if (day == 0 || day &gt; rgp.activityDays) {<br>      return false;<br>    }<br>    if (rgp.dailyTotalInvestment[uint8(day)] + investment &gt; rgp.maxDailyTotalInvestment) {<br>      return false;<br>    }<br>    rgp.dailyTotalInvestment[uint8(day)] += investment;<br>    return true;<br>  }</pre><pre>function startAt(rapidGrowthProtection storage rgp, uint timestamp) internal { <br>    rgp.startTimestamp = timestamp;</pre><pre>// restart<br>    for (uint8 i = 1; i &lt;= rgp.activityDays; i++) {<br>      if (rgp.dailyTotalInvestment[i] != 0) {<br>        delete rgp.dailyTotalInvestment[i];<br>      }<br>    }<br>  }</pre><pre>function currDay(rapidGrowthProtection storage rgp) internal view returns(uint day) {<br>    if (rgp.startTimestamp &gt; now) {<br>      return 0;<br>    }<br>    day = (now - rgp.startTimestamp) / 24 hours + 1; // +1 for skip zero day<br>  }<br>}</pre><p><strong>Lines 428–750</strong> contain main contract Revolution2. Lets check it out.</p><p>Contract Revolution2 is child ofAccessibility, its owner is also admin of 333eth, till ownership resign:</p><pre>contract Revolution2 is Accessibility {</pre><p>Imports and attachments of used libraries:</p><pre>using RapidGrowthProtection for RapidGrowthProtection.rapidGrowthProtection;<br>using PrivateEntrance for PrivateEntrance.privateEntrance;<br>using Percent for Percent.percent;<br>using SafeMath for uint;<br>using Math for uint;</pre><pre>// easy read for investors<br>using Address for *;<br>using Zero for *;</pre><p>Then you can find initialization of utility contracts RapidGrowthProtection, PrivateEntrance, imported earlier, a long with mapping variable for storing referrals and smart contract for InvestorsStorag. There is one interesting approach has been used: during ponzi restart — just new storage contract recreated, to forgot momentarily information about previous investors:</p><pre>RapidGrowthProtection.rapidGrowthProtection private m_rgp;<br>PrivateEntrance.privateEntrance private m_privEnter;<br>mapping(address =&gt; bool) private m_referrals;<br>InvestorsStorage private m_investors;</pre><p>Then you can find initialization of constants minInvestment andmaxBalance, which define minimal investment and maximum allowed balance of the ponzi, plus there are variables, which will store addresses of wallets for marketing and admins advertisingAddress and adminsAddress, counted number of investmentsinvestmentsNumber and variable waveStartup,which is used for ponzi restart:</p><pre>uint public constant minInvesment = 10 finney; //       0.01 eth<br>uint public constant maxBalance = 333e5 ether; // 33 300 000 eth<br>address public advertisingAddress;<br>address public adminsAddress;<br>uint public investmentsNumber;<br>uint public waveStartup;</pre><p>Block of variables for main financial coefficients:</p><pre>Percent.percent private m_1_percent = Percent.percent(1, 100);           // 1/100*100% = 1%</pre><pre>Percent.percent private m_2_percent = Percent.percent(2, 100);           // 2/100*100% = 2%</pre><pre>Percent.percent private m_3_33_percent = Percent.percent(333, 10000);    <br>// 333/10000*100% = 3.33%</pre><pre>Percent.percent private m_adminsPercent = Percent.percent(5, 100);       // 5/100*100% = 5%</pre><pre>Percent.percent private m_advertisingPercent = Percent.percent(75, 1000);<br>// 75/1000*100% = 7.5%</pre><p>Long block of different events which might be generated during ponzi execution. Most probably they are used on 333eth site for dynamic refresh:</p><pre>// more events for easy read from blockchain<br>event LogPEInit(uint when, address rev1Storage, address rev2Storage, uint investorMaxInvestment, uint endTimestamp);</pre><pre>event LogSendExcessOfEther(address indexed addr, uint when, uint value, uint investment, uint excess);</pre><pre>event LogNewReferral(address indexed addr, address indexed referrerAddr, uint when, uint refBonus);</pre><pre>event LogRGPInit(uint when, uint startTimestamp, uint maxDailyTotalInvestment, uint activityDays);</pre><pre>event LogRGPInvestment(address indexed addr, uint when, uint investment, uint indexed day);</pre><pre>event LogNewInvesment(address indexed addr, uint when, uint investment, uint value);</pre><pre>event LogAutomaticReinvest(address indexed addr, uint when, uint investment);</pre><pre>event LogPayDividends(address indexed addr, uint when, uint dividends);</pre><pre>event LogNewInvestor(address indexed addr, uint when);</pre><pre>event LogBalanceChanged(uint when, uint balance);</pre><pre>event LogNextWave(uint when);</pre><pre>event LogDisown(uint when);</pre><p>Right after you can find 2 modifiers : balanceChanged and notFromContraсt . First one is used for events generation after invocation of balance changing function. Second one is needed to prohibit invocation from other smart contract:</p><pre>modifier balanceChanged {<br>    _;<br>    emit LogBalanceChanged(now, address(this).balance);<br>  }</pre><pre>modifier notFromContract() {<br>    require(msg.sender.isNotContract(), &quot;only externally accounts&quot;);<br>    _;<br>  }</pre><p>Pretty lightweight constructor which set initial value for advertisingAddress and adminsAddress, and final command to run first wave nextWave():</p><pre>constructor() public {<br>    adminsAddress = msg.sender;<br>    advertisingAddress = msg.sender;<br>    nextWave();<br>  }</pre><p>Then you can find default (or <em>fallback)</em> function which allows contract to receive and send ether. <br>When 0 ETH has been sent, function to get dividends will be calledgetMyDividends() , but if value is not 0, that ether will be invested. More over: fielddata of a transaction can contain referrer.</p><pre>function() public payable {<br>    // investor get him dividends<br>    if (msg.value.isZero()) {<br>      getMyDividends();<br>      return;<br>    }</pre><pre>// sender do invest<br>    doInvest(msg.data.toAddress());<br>  }</pre><p>Next function is doDisown(), which can be executed only by admin. It performs ownership resign by setting owner variable to 0x0 address:</p><pre>function doDisown() public onlyOwner {<br>    disown();<br>    emit LogDisown(now);<br>  }</pre><p>Right after you can find function init() , which can be executed only by admin before ownership resign. It’s needed to finalize Ponzi initialization. It activates protection from fast growth, plus initialization of parameters for early access by investors from first version of the pyramid:</p><pre>function init(address rev1StorageAddr, uint timestamp) public onlyOwner {<br>    // init Rapid Growth Protection<br>    m_rgp.startTimestamp = timestamp + 1;<br>    m_rgp.maxDailyTotalInvestment = 500 ether;<br>    m_rgp.activityDays = 21;<br>    emit LogRGPInit(<br>      now, <br>      m_rgp.startTimestamp,<br>      m_rgp.maxDailyTotalInvestment,<br>      m_rgp.activityDays<br>    );</pre><pre>// init Private Entrance<br>    m_privEnter.rev1Storage = Rev1Storage(rev1StorageAddr);<br>    m_privEnter.rev2Storage = Rev2Storage(address(m_investors));<br>    m_privEnter.investorMaxInvestment = 50 ether;<br>    m_privEnter.endTimestamp = timestamp;<br>    emit LogPEInit(<br>      now, <br>      address(m_privEnter.rev1Storage), <br>      address(m_privEnter.rev2Storage), <br>      m_privEnter.investorMaxInvestment, <br>      m_privEnter.endTimestamp<br>    );<br>  }</pre><p>Next function aresetAdvertisingAddress(address addr), setAdminsAddress(address addr) and privateEntranceProvideAccessFor(address[] addrs) . First two are needed to change addresses for marketing and admin. Third one is appending set of addresses for early access:</p><pre>function setAdvertisingAddress(address addr) public onlyOwner {<br>    addr.requireNotZero();<br>    advertisingAddress = addr;<br>  }</pre><pre>function setAdminsAddress(address addr) public onlyOwner {<br>    addr.requireNotZero();<br>    adminsAddress = addr;<br>  }</pre><pre>function privateEntranceProvideAccessFor(address[] addrs) public onlyOwner {<br>    m_privEnter.provideAccessFor(addrs);<br>  }</pre><p>Then pretty long block for view functions which provide just read-only access to the information:</p><ul><li>rapidGrowthProtectionmMaxInvestmentAtNow() - remaining sum of investments till maximum protection cap per day;</li><li>investorsNumber()- number of investors;</li><li>balanceETH()- balance of the contract;</li><li>percent1()- calculation of 1 %;</li><li>percent2()- calculation of 2%;</li><li>percent3_33()- calculation of 3,33%;</li><li>advertisingPercent()- calculation of marketing percentage;</li><li>adminsPercent()- calculation of fees to ponzi’s admins;</li><li>investorInfo(address investorAddr)- investor’s information retrieval;</li><li>investorDividendsAtNow(address investorAddr)- calculation of dividents for an investor for now, it uses another functioncalcDividends(address investorAddr) inside;</li><li>dailyPercentAtNow()- calculation of daily percentage for a current moment. Result depends on total balance of the contract (3.33% if it less then 1 000 ETH, 2% if it between 1 000 and 33 333 ETH and 1% if it’s greater than 33 333 ETH);</li><li>refBonusPercentAtNow()- calculation of referral bonus, it uses functionrefBonusPercent()as well;</li><li>getMemInvestor(address investorAddr)- retrieval of last payment to an investor.</li></ul><p>FunctiongetMyDividends() has been used within default function or fallback when 0 ETH was sent. Calculations are made of an address which invoked fallback, as you know, it’s being stored in variablemsg.sender. This function sets new timestamp in investor’s storage structure, and then it checks contract balance. If there are no enough balance, investor will get the rest and restart of the ponzi will be initiated by invoking nextWave():</p><pre>function getMyDividends() public notFromContract balanceChanged {<br>    // calculate dividends<br>    uint dividends = calcDividends(msg.sender);<br>    require (dividends.notZero(), &quot;cannot to pay zero dividends&quot;);</pre><pre>// update investor payment timestamp<br>    assert(m_investors.setPaymentTime(msg.sender, now));</pre><pre>// check enough eth - goto next wave if needed<br>    if (address(this).balance &lt;= dividends) {<br>      nextWave();<br>      dividends = address(this).balance;<br>    }</pre><pre>// transfer dividends to investor<br>    msg.sender.transfer(dividends);<br>    emit LogPayDividends(msg.sender, now, dividends);<br>  }</pre><p>Function doInvest() is called within fallback<br>if amount of ether sent is greater then 0.<br>Invested amount has been compared with minimal allowed amount to invest, plus maximum cap has been checked, which is, btw, 33 000 000 ETH (!). Then there are checks for fast growth protection, when it’s activated, and daily limits. After that there are checks for early investors. If there are overlimits — only the amount till cap will be invested and the rest will be sent back to the investor. Of course there are fees calculations for marketing, admin and referral. If it’s new investor: corresponding Investor structure will be initialized — otherwise existing data about investor will be updated.</p><pre>function doInvest(address referrerAddr) public payable notFromContract balanceChanged {<br>    uint investment = msg.value;<br>    uint receivedEther = msg.value;<br>    require(investment &gt;= minInvesment, <br>&quot;investment must be &gt;= minInvesment&quot;);<br>    require(address(this).balance &lt;= maxBalance, <br>&quot;the contract eth balance limit&quot;);</pre><pre>if (m_rgp.isActive()) { <br>    // use Rapid Growth Protection if needed<br>      uint rpgMaxInvest = m_rgp.maxInvestmentAtNow();<br>      rpgMaxInvest.requireNotZero();<br>      investment = Math.min(investment, rpgMaxInvest);<br>      assert(m_rgp.saveInvestment(investment));<br>      emit LogRGPInvestment(msg.sender, now, investment, m_rgp.currDay());<br>      <br>    } else <br>    if (m_privEnter.isActive()) {<br>    // use Private Entrance if needed<br>      uint peMaxInvest = m_privEnter.maxInvestmentFor(msg.sender);<br>      peMaxInvest.requireNotZero();<br>      investment = Math.min(investment, peMaxInvest);<br>    }</pre><pre>// send excess of ether if needed<br>    if (receivedEther &gt; investment) {<br>      uint excess = receivedEther - investment;<br>      msg.sender.transfer(excess);<br>      receivedEther = investment;<br>      emit LogSendExcessOfEther(msg.sender, now, msg.value, investment, excess);<br>    }</pre><pre>// commission           advertisingAddress.send(m_advertisingPercent.mul(receivedEther));<br>    adminsAddress.send(m_adminsPercent.mul(receivedEther));</pre><pre>bool senderIsInvestor = m_investors.isInvestor(msg.sender);</pre><pre>// ref system works only once and only on first invest<br>    if (referrerAddr.notZero() <br>        &amp;&amp; !senderIsInvestor <br>        &amp;&amp; !m_referrals[msg.sender] <br>        &amp;&amp; referrerAddr != msg.sender <br>        &amp;&amp; m_investors.isInvestor(referrerAddr)) {<br>      <br>      m_referrals[msg.sender] = true;<br>    // add referral bonus to investor`s and referral`s investments<br>      uint refBonus = refBonusPercent().mmul(investment);<br>      assert(m_investors.addInvestment(referrerAddr, refBonus)); <br>    // add referrer bonus<br>      investment += refBonus;                                    <br>    // add referral bonus<br>      emit LogNewReferral(msg.sender, referrerAddr, now, refBonus);<br>    }</pre><pre>// automatic reinvest - prevent burning dividends<br>    uint dividends = calcDividends(msg.sender);<br>    if (senderIsInvestor &amp;&amp; dividends.notZero()) {<br>      investment += dividends;<br>      emit LogAutomaticReinvest(msg.sender, now, dividends);<br>    }</pre><pre>if (senderIsInvestor) {<br>    // update existing investor<br>      assert(m_investors.addInvestment(msg.sender, investment));<br>      assert(m_investors.setPaymentTime(msg.sender, now));<br>    } else {<br>    // create new investor<br>      assert(m_investors.newInvestor(msg.sender, investment, now));<br>      emit LogNewInvestor(msg.sender, now);<br>    }</pre><pre>investmentsNumber++;<br>    emit LogNewInvesment(msg.sender, now, investment, receivedEther);<br>  }</pre><p>Function nextWave() is used during first launch and for every ponzi reload. As we discussed earlier: new storage for investors has been created, which allow easily forgot about all previous investors.</p><pre>function nextWave() private {<br>    m_investors = new InvestorsStorage();<br>    investmentsNumber = 0;<br>    waveStartup = now;<br>    m_rgp.startAt(now);<br>    emit LogRGPInit(now , m_rgp.startTimestamp, m_rgp.maxDailyTotalInvestment, m_rgp.activityDays);<br>    emit LogNextWave(now);<br>  }</pre><h3>Summary</h3><p>We didn’t find backdoors and vulnerabilities. Contract contain interesting approach for referrals. Contract returns difference if there is overlimit and it realize protection against fast growth: probably, per creator’s idea, it will prolong lifespan of this Ponzi.</p><p>WE DO NOT RECOMMEND TO INVEST YOUR MONEY TO ANY KIND OF PONZI, INCLUDING THIS ONE!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c9c5cc450ed5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cryptomaniacszone/audit-of-333eth-v2-smart-contract-c9c5cc450ed5">Audit of 333eth v2 Smart Contract</a> was originally published in <a href="https://medium.com/cryptomaniacszone">Crypto Maniacs Zone</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>