<?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 Mahabub Islam Prio on Medium]]></title>
        <description><![CDATA[Stories by Mahabub Islam Prio on Medium]]></description>
        <link>https://medium.com/@miprio101?source=rss-95e5768b4bbe------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Evi35EuZKvDblUzvd-jtlw.jpeg</url>
            <title>Stories by Mahabub Islam Prio on Medium</title>
            <link>https://medium.com/@miprio101?source=rss-95e5768b4bbe------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 09:32:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@miprio101/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[Elixir app with Plug and Cowboy]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@miprio101/elixir-app-with-plug-and-cowboy-2ecee23c39dd?source=rss-95e5768b4bbe------2"><img src="https://cdn-images-1.medium.com/max/2600/1*sCxuW_CxP1sHQC2plgiP-w.jpeg" width="4665"></a></p><p class="medium-feed-snippet">This week I am going to demonstrate about how you can create an Elixir app with the power of Plug and Cowboy. And after reading this post&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@miprio101/elixir-app-with-plug-and-cowboy-2ecee23c39dd?source=rss-95e5768b4bbe------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@miprio101/elixir-app-with-plug-and-cowboy-2ecee23c39dd?source=rss-95e5768b4bbe------2</link>
            <guid isPermaLink="false">https://medium.com/p/2ecee23c39dd</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[plug]]></category>
            <category><![CDATA[elixir]]></category>
            <category><![CDATA[cowboys]]></category>
            <dc:creator><![CDATA[Mahabub Islam Prio]]></dc:creator>
            <pubDate>Fri, 31 Aug 2018 19:28:16 GMT</pubDate>
            <atom:updated>2018-08-31T19:28:16.039Z</atom:updated>
            <cc:license>http://creativecommons.org/publicdomain/zero/1.0/</cc:license>
        </item>
        <item>
            <title><![CDATA[Mix Elixir project with Ecto]]></title>
            <link>https://medium.com/@miprio101/mix-elixir-project-with-ecto-b2d4c6104f23?source=rss-95e5768b4bbe------2</link>
            <guid isPermaLink="false">https://medium.com/p/b2d4c6104f23</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[elixir]]></category>
            <category><![CDATA[ecto]]></category>
            <dc:creator><![CDATA[Mahabub Islam Prio]]></dc:creator>
            <pubDate>Tue, 28 Aug 2018 19:26:44 GMT</pubDate>
            <atom:updated>2018-08-28T19:26:44.188Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Yqk7NjhzTxdTkTkQXBNBtg.jpeg" /><figcaption>Taken from <a href="https://unsplash.com/search/photos/stikey-notes">unsplash</a></figcaption></figure><p>In this post I am going to share how to make a Mix project with Elixir and Ecto. I was using Elixir 1.7.3 while making this project.</p><p>For this section, I started with an empty template of the mix project but its a template. More about this can be found over here.</p><p><a href="https://github.com/pragdave/mix_templates">pragdave/mix_templates</a></p><p>After installing it I pulled a template form hex,</p><pre>mix template.install hex gen_template_ecto_service</pre><p>and after this run command to have a mix project with Ecto,</p><pre>mix gen ecto_service project_name --module_name=ModuleName<br>cd project_name<br>mix deps.get</pre><p>Now I have to open the project and update the credentials over the config/dev.exs</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9b502e24d5f057e461df66fd5b6666ac/href">https://medium.com/media/9b502e24d5f057e461df66fd5b6666ac/href</a></iframe><p>after we can run the command over terminal,</p><pre>mix ecto.create</pre><p>It will create a database with the project name. And will initialize the Repo.</p><p>After this, I tried to create Migration and generate it.</p><pre>mix ecto.gen.migration create_tasks_table</pre><p>And write the migration, into /repo/migration/migration_file_name</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/77049f607aa5588e37b0431271ec2132/href">https://medium.com/media/77049f607aa5588e37b0431271ec2132/href</a></iframe><p>And run, mix ecto.migrate</p><p>After this to spin up a CRUD app to check the power of the Ecto I created,</p><p>todo_list/task.ex over the Module directory.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/994a97aeca300eb63bc044d5c5016422/href">https://medium.com/media/994a97aeca300eb63bc044d5c5016422/href</a></iframe><p>Now, we can boot up iex -S mix and run,</p><pre>&gt; TodoList.Task.create_task(&quot;Work&quot;, &quot;Work for elixir&quot;, &quot;incomplete&quot;)</pre><pre>&gt; TodoList.Task.tasks<br></pre><pre>&gt;&gt; [<br>  %TodoList.Task{<br>    __meta__: #Ecto.Schema.Metadata&lt;:loaded, &quot;tasks&quot;&gt;,<br>    id: 1,<br>    inserted_at: ~N[2018-08-27 18:11:46.807061],<br>    task_description: &quot;Work for elixir&quot;,<br>    task_name: &quot;Work&quot;,<br>    task_status: &quot;incomplete&quot;,<br>    updated_at: ~N[2018-08-27 18:11:46.811099]<br>  }<br>]</pre><pre><br><br>&gt; TodoList.Task.show_task(1) #id</pre><pre>&gt;&gt; &quot;{\&quot;updated_at\&quot;:\&quot;2018-08-27T18:11:46.811099\&quot;,\&quot;task_status\&quot;:\&quot;incomplete\&quot;,\&quot;task_name\&quot;:\&quot;Work\&quot;,\&quot;task_description\&quot;:\&quot;Work for elixir\&quot;,\&quot;inserted_at\&quot;:\&quot;2018-08-27T18:11:46.807061\&quot;,\&quot;id\&quot;:1}&quot;</pre><pre>&gt; TodoList.Task.update_task(1, %{task_name: &quot;New Name&quot;}) <br>  #id, changeset</pre><pre>&gt;&gt; &quot;Updated&quot;</pre><pre>&gt; TodoList.Task.delete_task(1) #id</pre><pre>&gt;&gt; &quot;Deleted 1 numbered task&quot;</pre><p>And this is a small CRUD based todolist made with mix project.</p><p>The github link of the full code is here: <a href="https://github.com/prio101/mix_todo_app">Link Of the Project</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b2d4c6104f23" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Elixir , Httpoison, Floki Scrapper]]></title>
            <link>https://medium.com/@miprio101/elixir-httpoison-floki-scrapper-22bc4267b99a?source=rss-95e5768b4bbe------2</link>
            <guid isPermaLink="false">https://medium.com/p/22bc4267b99a</guid>
            <category><![CDATA[elixir]]></category>
            <category><![CDATA[httpoison]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[alchemist]]></category>
            <category><![CDATA[scraper]]></category>
            <dc:creator><![CDATA[Mahabub Islam Prio]]></dc:creator>
            <pubDate>Mon, 20 Aug 2018 19:04:13 GMT</pubDate>
            <atom:updated>2018-08-25T17:41:25.622Z</atom:updated>
            <cc:license>http://creativecommons.org/publicdomain/zero/1.0/</cc:license>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r8lWHbH-mgWkl462lQsYuQ.jpeg" /></figure><p><a href="https://unsplash.com/photos/yFbyvpEGHFQ">Photo by John Schnobrich on Unsplash</a></p><p>Github Link of the repo: <a href="https://github.com/prio101/gurdian_scrapper">https://github.com/prio101/gurdian_scrapper</a></p><p>I started to work with elixir language short time ago. And as people say, there are no other way better than creating small one or two side projects to sharpen your skill sets.</p><p>So, I started to think of creating a small scrapper script with elixir language specifically for this resource page on <a href="https://www.theguardian.com/books/table/2011/apr/21/literary-clock">TheGurdian</a> . They tried to crowd source and collect quotes and book data accordingly with time.</p><blockquote>As example,</blockquote><blockquote><strong>00:00:00h </strong>- “He is certain he heard footsteps: they come nearer, and then die away. The ray of light beneath his door is extinguished. It is midnight; someone has turned out the gas; the last servant has gone to bed, and he must lie all night in agony with no one to bring him any help.”</blockquote><blockquote><strong><em>Swann’s Way Marcel Proust - @westrowc</em></strong></blockquote><p>So, at the very first I created a mix project for elixir language. With command,</p><pre>&gt; mix new gurdian_scrapper</pre><p>This created a ready to work with mix project on the path. After that I put <a href="https://github.com/edgurgel/httpoison">Httpoison</a> and<a href="https://github.com/philss/floki"> Floki </a>over <em>mix.exs and ran</em></p><pre>&gt; mix deps.get</pre><p>And this command fetched the packages over local directory for the usage.</p><p>From here mostly what I have done is, Using httpoison to call and get the response from the url of TheGurdian page and later with Floki parse the data and saved it over a new text file.</p><p>In specific three steps it would be like, Fetching the response,</p><pre>def start_and_fetch_response do<br>    IO.puts &quot;starting&quot;<br>    HTTPoison.start<br>    url = &#39;<a href="https://www.theguardian.com/books/table/2011/apr/21/literary-clock&#39;">https://www.theguardian.com/books/table/2011/apr/21/literary-clock&#39;</a><br>    case HTTPoison.get(url) do<br>      {:ok, %HTTPoison.Response{status_code: 200, body: body}} -&gt;<br>        file = File.open!(&quot;data_save_scrapped.txt&quot;, [:write, :utf8])<br>        parse_by_id(body, 0, file)<br>      {:ok, %HTTPoison.Response{status_code: 404}} -&gt;<br>        IO.puts &quot;Not found :(&quot;<br>      {:error, %HTTPoison.Error{reason: reason}} -&gt;<br>        IO.inspect reason<br>    end<br>  end</pre><p>Formatting the response with Floki,</p><pre><em>def</em> parse_by_id(body, n, file) <em>when</em> n &lt;= 934 <em>do</em></pre><pre>  by_td_data(body, n, file)</pre><pre>  parse_by_id(body, n + 1, file)</pre><pre><em>end</em></pre><pre><em>def</em> parse_by_id(<em>_body</em>, <em>_n</em>, file) <em>do</em></pre><pre>  File.close file</pre><pre><em>end</em></pre><pre><em>def</em> by_td_data(body, i, file) <em>do</em></pre><pre>  Enum.each(0..4, <em>fn</em> j -&gt;</pre><pre>    body</pre><pre>    |&gt; Floki.find(&quot;#table-cell-7619-#{i}-#{j}&quot;)</pre><pre>    |&gt; Floki.text</pre><pre>    |&gt; (<em>fn</em> x -&gt; save_into_txt_file(x, file) <em>end</em>).()</pre><pre><em>  end</em>)</pre><pre><em>end</em></pre><p>And after that I just saved it over the file,</p><pre><em>def</em> save_into_txt_file(data, file) <em>do</em></pre><pre>  IO.binwrite(file, data &lt;&gt;&quot;, \n&quot; )</pre><pre><em>end</em></pre><p>After this I just ran,</p><pre>&gt; iex -S mix<br>-&gt;&gt; GurdianScrapper.start_and_fetch_response</pre><p>And this saves the scrapped data onto the file on the same project directory .</p><p>So, that’s all for today, its fun to work with elixir language. Maybe next time I will be able to share something more with you people.</p><h4><strong>Here is the link of the main project over</strong><a href="https://github.com/prio101/gurdian_scrapper"><strong> Github</strong></a><strong>.</strong></h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22bc4267b99a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[2017 feature]]></title>
            <link>https://medium.com/@miprio101/2017-feature-ab1550c012d8?source=rss-95e5768b4bbe------2</link>
            <guid isPermaLink="false">https://medium.com/p/ab1550c012d8</guid>
            <category><![CDATA[ruby-on-rails]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Mahabub Islam Prio]]></dc:creator>
            <pubDate>Wed, 11 Jan 2017 05:23:32 GMT</pubDate>
            <atom:updated>2017-06-16T17:25:10.592Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong><em>— sprint ends at 31st December ,2017</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eody_03Mux5ySCla4Qpl4Q.jpeg" /></figure><p>As a junior developer working with ruby-lang , want to implement a nice plan for 2017 . Thus after the year I can say that I made it.</p><h3>Acceptance :</h3><p>This plan includes solving more than 100 programming problems.</p><p>Making it possible to publish one side project.</p><p>Writing 12 blog post in 12 months.</p><h4>Surviving with ruby on rails and learn more of software development.</h4><h3>Conclusion note:</h3><p>Damn :p</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ab1550c012d8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fake Data For Rails Development]]></title>
            <link>https://medium.com/@miprio101/fake-data-for-rails-development-be30461ff511?source=rss-95e5768b4bbe------2</link>
            <guid isPermaLink="false">https://medium.com/p/be30461ff511</guid>
            <category><![CDATA[ruby-on-rails]]></category>
            <category><![CDATA[ruby]]></category>
            <dc:creator><![CDATA[Mahabub Islam Prio]]></dc:creator>
            <pubDate>Sat, 19 Mar 2016 17:39:13 GMT</pubDate>
            <atom:updated>2016-03-19T17:49:51.575Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r2gPlwgKlUS1EAocPEcV3A.jpeg" /><figcaption>From <a href="http://unsplash.com/">http://Unsplash.com</a> by: Thomas Lefebvre</figcaption></figure><p>While developing web-application we always face such circumstances , when we are in badly need of some real-looking data which can get our application features in a proving position , for showing it to our client or even team or sometime it is highly recommended to create fake data that we can test against it the features we have created.</p><p><a href="http://rubyonrails.org/">Ruby On Rails</a> framework which is made upon Ruby-Language provide a easiest backed way that we can add seed data or fake data . But this process is also tedious .</p><p>But there are some more ways to do this in convenient way , Thanks to Community of Ruby On Rails that they provide us many options .</p><p><a href="https://github.com/stympy/faker">Faker</a> is one of them which is also easy to use.</p><p>Well , let me show a quick bake recipe for you all. You can download this <strong>Gem</strong> in your rails application with,</p><pre><strong>gem</strong> install faker</pre><ul><li>More help are available on <a href="https://rubygems.org/gems/faker">installation</a></li></ul><p><strong>Basic Usage:</strong> Example of usage would be like:</p><pre>Faker::Name.name      #=&gt; &quot;Christophe Bartell&quot;<br><br>Faker::Internet.email #=&gt; &quot;kirsten.greenholt@corkeryfisher.info&quot;<br><br>Faker::Color.hex_color #=&gt; &quot;#31a785&quot;<br><br>Faker::Color.color_name #=&gt; &quot;yellow&quot;<br><br>Faker::Lorem.sentence #=&gt; &quot;Dolore illum animi et neque         accusantium.&quot;<br><br>Faker::Lorem.sentence(3) #=&gt; &quot;Commodi qui minus deserunt sed vero quia.&quot;</pre><p>A bunch of variation of data creator is available for you to take from in this <a href="https://github.com/stympy/faker"><strong>GEM</strong></a> .</p><p>You can always make awesome application by harnessing power of faker and all the other gems Community prepared for you and continuously developing for you.</p><p>Because why not , You are human , and you develop human friendly application.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be30461ff511" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bit of SASS]]></title>
            <link>https://medium.com/@miprio101/bit-of-sass-a106a8293662?source=rss-95e5768b4bbe------2</link>
            <guid isPermaLink="false">https://medium.com/p/a106a8293662</guid>
            <category><![CDATA[sass]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Mahabub Islam Prio]]></dc:creator>
            <pubDate>Wed, 10 Feb 2016 19:22:45 GMT</pubDate>
            <atom:updated>2016-02-10T19:22:45.743Z</atom:updated>
            <content:encoded><![CDATA[<p>We are living in a age of wonders. How can you tell? Well in few years back developers had to take a lot of pain to make a good piece of CSS. Now they have some pre-processors , new designs and new way of doing works.</p><p>So , a preprocessor. Sass is kind of one. By this time some of you may ask “Why the use of a preprocessor needed? ( In british accent )”.</p><p>I would say , The style sheets are not that little tiny peice of works anymore. Its even a lot more complex with new features. Here preprocessors comes to save your day.</p><p>SASS is a beautiful preprocessor . Right now the stable release is <strong>Selective Steve (3.4.10)</strong> More on this , Follow along,</p><h3>Getting Sass:</h3><p>Its easy, if you have Ruby installed in your computer, Then you can install it with gem installer. Like,</p><pre>$ gem install sass</pre><p>Check after installation ,</p><pre>$ sass --version</pre><p>And it should be there showing the glorius version .</p><h3>Diving and learning to swim:</h3><p>Ahem ! I want to be in safe side , so listen everyone, we have two kinds of working styles in this SASS.</p><ul><li>SASS Way</li><li>SCSS way</li></ul><p>We are going to see the <strong>SCSS</strong> way , why ? because it is easy.</p><p>First thing first , <strong>The variable</strong>. It always as a regular variable of programming languages , for more easier concept its just like a Javascript variable for holding Data.Example,</p><pre>$font-color : #000 ;<br>$background-color: #fff ;<br>$font-size: 1em ;</pre><p>So , SCSS use $ in front of a variable name . And that is easy as pie.</p><p>Now it does come to the power of Nesting up the styles, With this nesting you can make perfect tree structure of styles.Example:</p><pre>.class{<br>	<br>	.class-a{<br>		font-family: $font-family-a ;<br>	}<br>	.class-b{<br>		font-family: $font-family-b ;<br>	}<br><br>	font-size: $font-size-default ;<br>	color: $font-color-default ;<br><br>}</pre><p>Easy and convenient , Right ? Now I give you permission to laugh with joy.</p><p>Another fun with SASS , It supports the Partial system. Just by naming something as in this _partial format , you can write down small snippet of style sheet. Which as collectively can be used in a single style sheet , by using @importkeyword. Example:</p><pre>@import &#39;partial&#39; ;  # where it is _partial<br><br>.class{<br>	color: $color ;<br>	padding: $padding ;<br>}</pre><p>I am quite tired now , talking about all these stuff. But a lot more features still is in store. I think , it would be better If we talk about it in another article.</p><p>Yes , it will be so. Take care .</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a106a8293662" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bit of SASS — Part 2]]></title>
            <link>https://medium.com/@miprio101/bit-of-sass-part-2-a893204f48dc?source=rss-95e5768b4bbe------2</link>
            <guid isPermaLink="false">https://medium.com/p/a893204f48dc</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[css]]></category>
            <dc:creator><![CDATA[Mahabub Islam Prio]]></dc:creator>
            <pubDate>Wed, 10 Feb 2016 19:20:39 GMT</pubDate>
            <atom:updated>2016-02-10T19:20:39.531Z</atom:updated>
            <content:encoded><![CDATA[<p>CSS Preprocessor is new Pie in world of Web Development. And in my last post I started about a beautiful preprocessor named SASS. And this is another part after last post.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*UDTGtq0VjwmjDSr6XBnwRA.jpeg" /></figure><p>So , Lets get to the point.</p><p>There is some features in SASS like , <strong>mixin</strong> , with this mixin you can write down function like css snippet . Which can be used with argument or without it. Like,</p><pre>//Mixin<br><br>@mixin color($color,$back-color){<br>	color:$color;<br>	background-color:$color;<br><br>}<br><br><br>//And to include it <br><br>.some-style{<br>	@include color(#fff,#777);<br>}</pre><p>Which will output,</p><pre>.some-style{<br>	color:#fff;<br>	background-color:#777;<br>}</pre><p>So , it is a charm isn’t it? And here is another smashing stuff you will love. You can use and manipulate css flow with control-statements like</p><ul><li>@if</li><li>@while</li><li>@each</li><li>@for</li></ul><p>Well , this can take your css works in to whole new level. Let me give a little example,</p><pre>p{<br>	  @if 1 + 1 == 2 { border: 1px solid;  }<br>	  @if 5 &lt; 3      { border: 2px dotted; }<br>	  @if null       { border: 3px double; }<br>  }</pre><p>Output:</p><pre>p{<br>  	  border: 1px solid; <br>  	 }</pre><p>Just try to imagin how much power is on your hand if you start to manipulate the CSS sheet with Control statements. Whole power is up to you .</p><p>Maybe next time I can talk about another CSS Preprossecor named LESS. Which is also fun to work with. Until then take care.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a893204f48dc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Less]]></title>
            <link>https://medium.com/@miprio101/less-ac5125ddf17d?source=rss-95e5768b4bbe------2</link>
            <guid isPermaLink="false">https://medium.com/p/ac5125ddf17d</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[nodejs]]></category>
            <dc:creator><![CDATA[Mahabub Islam Prio]]></dc:creator>
            <pubDate>Wed, 10 Feb 2016 19:18:23 GMT</pubDate>
            <atom:updated>2016-02-10T19:18:23.521Z</atom:updated>
            <content:encoded><![CDATA[<p>if we start to talk about the web revolution , we can see how everything is starting to depend on the javascript. Moreover now new armies of technology get the Node Js . Well , so the fact is it comes with many new tools and funs.</p><p><em>Less is one of that.</em></p><p>Let us have a quick look on that today. Its a preprocessor of css . Its based on the node js runtime and yes partially in Rhino environment. Means that we have to get Nodejs installed in our computer to use Less. to install less we have to,</p><pre>$ npm install -g less</pre><p>type this in your terminal. And its there in your computer. we can invoke less from terminal or even from the nodejs.</p><p>To give a easy short view , there is many GUI out there to help you with such thing. Like one is my favorite , and its name is <a href="http://koala-app.com/">Koala</a> .</p><h3>Features</h3><p>Lets get us on the features we can have with Less:</p><ul><li>You will get variables which can store data , like color code or the amount of margin or padding etc.</li><li>We have mixins and yes mixins like functions.</li><li>We can create loop for generating iterated data flow of css.</li><li>Also importing directives</li><li>To manipulate data we have scoping and conditional statements.</li></ul><p>You see the whole less is full of wonders , that can give us good feeling about front-end design. We can read more about it on its own Documentation . Which is in <a href="http://lesscss.org/features/#features-overview-feature">Here</a></p><p>So , I hope putting aside all the stuff you have to do this evening you will jump over the docs and learn that beautiful thing.</p><p>I am Mahabub I. wishing you all a very happy session with less to do more. Until next time , take care.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ac5125ddf17d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Vim]]></title>
            <link>https://medium.com/@miprio101/vim-cdea63a3785c?source=rss-95e5768b4bbe------2</link>
            <guid isPermaLink="false">https://medium.com/p/cdea63a3785c</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Mahabub Islam Prio]]></dc:creator>
            <pubDate>Wed, 10 Feb 2016 19:16:12 GMT</pubDate>
            <atom:updated>2016-02-10T19:16:12.812Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9J6lVJ0IwaVSN55-tDPYpg.gif" /></figure><p>We do use editors in everyday manner . And If we are like those people who stay behind computer screen trying to make something eligible of throwing out of the window of internet , then we have a specific relationship with our favorite editor . Well sometimes it like a relationship that can be painful or sometimes which worth to know that is “yes its my editor here… technically mine…” Why speaking this intro stuff while we can jump straight to the point , right ? because Vim made me to say these.</p><p>I can start little history here . But these will only ruin your time and I want to leave this up to you . Just for a reason , VIM is a successor of the VI and Vi is available in almost every kind of Operating System [ Excluding the Windows ] .</p><p>You just have to open your terminal and write</p><pre>$ vi<br></pre><p>or,</p><pre>$ vim</pre><p>and its there. Opened with its glorious 80’s retro view . Going to call you over into its dark and powerfull world . Okay, if this doesn’t happen with you then please just go to the <a href="http://www.vim.org/">vim online</a> and download it from there .</p><blockquote>if you are here then you are near the otherside of the galaxy …</blockquote><p>okay , that is quite offtopic. So , I suppose you got it . then let’s play with it . If have to know about VIM . Then can buy a BOOK or bang your head on the screen . Or like me you just can type in your terminal :</p><pre>$ vimtutor</pre><p>This will show you a interactive 30 minute tutorial. Hope this will only take you 2 hours to grasp the whole stuff !!!</p><p>But , after learning the basics . You will definitely try to get more of it . Yes , thats the real human nature . But with meta humans they build it by there own effort .</p><p>So , there is a place where you can get it all or almost all : <a href="http://vimawesome.com/">VimAwesome</a></p><p>And you will get all the plugins and stuff you need to claim your own editor Which will always stay you awake and give you pain to remember that its yours .</p><p>And a quick tip,for better package management use <a href="https://github.com/gmarik/Vundle.vim">Vundle</a></p><p>Vim is not there as a ready stuff rather its a ready to be yours if you are someone who dig up mines and take the real ruby out of it .</p><p>until next time , Mahabub Islam</p><p><em>N:B: for your headache — I am not responsible.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cdea63a3785c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Streams of Gulp]]></title>
            <link>https://medium.com/@miprio101/streams-of-gulp-d99a77caddd7?source=rss-95e5768b4bbe------2</link>
            <guid isPermaLink="false">https://medium.com/p/d99a77caddd7</guid>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Mahabub Islam Prio]]></dc:creator>
            <pubDate>Wed, 10 Feb 2016 19:11:33 GMT</pubDate>
            <atom:updated>2016-02-10T19:11:33.742Z</atom:updated>
            <content:encoded><![CDATA[<p>Modern Ecology of advanced tools made web development quite easy and more welcoming . As you can see there is countless stuff out there to bake our scratch-pad quite quick. Javascript task runner is a new juice among web developers. <a href="http://gulpjs.com/">Gulp</a> is that kind of legion .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/1*iFR3PV1qe4dWSQ6I9nkJ9Q.png" /></figure><h3>Dive into streams</h3><p>There is task runner like <a href="http://gruntjs.com/">Grunt</a> out there . But still , Gulp is awesome . In my opinion it uses streams of very specific module which is baked to do a very specific task. And to learn more about it , please read this article :<a href="http://jaysoo.ca/2014/01/27/gruntjs-vs-gulpjs/">Grunt VS Gulp</a> . <strong>As you can see this is quite needed to know what we are working with.</strong></p><p>So, today we will get geared with gulp by working with it . At the very beginning I would like to say,<em>You must have the Nodejs and Npm package manager installed in your Computer.</em> Go into official <a href="http://nodejs.org/">NODEJS</a> page and download it from there.</p><p>After that to install gulp globally we have to write</p><blockquote><strong>npm install -g gulp</strong></blockquote><p>in our terminal. After that to check if it is installed there or not, we can write</p><blockquote><strong>gulp -v</strong></blockquote><p>Let us consider a situation, that we are working with a <a href="https://html5boilerplate.com/">HTML5-Boilerplate</a> and We badly in need to compress the javascript codes so the performance of the server response get raised.</p><p>So, here is what we are going to do, in our terminal we are going to type destination of the current directory where we are working on. Like In my case its in,</p><p><strong>$ home/workstation/gulp-try/</strong></p><p>This is why in my terminal I wrote <strong>cd /workstation/gulp-try/</strong>. After that to install the gulp specific node module of uglify js which is named as “gulp-uglify” . We have to type, <strong>npm install — save-dev gulp-uglify</strong> in our Terminal. This will invoke the nodejs terms to get the module installed in our local directory.</p><p>After that in the directory we have to create a file named gulpfile.js. After creating the file and opening it on any text editor. We have to write something like this to use gulp and gulp uglify. Just follow along and later we will explain more about it.</p><pre>var gulp        = require(&#39;gulp&#39;),<br>      gulpUglify  = require(&#39;gulp-uglify&#39;);<br><br>  gulp.task(&#39;compress&#39;, function() {<br>  return gulp.src(&#39;lib/*.js&#39;)<br>    .pipe(gulpUglify())<br>    .pipe(gulp.dest(&#39;dist&#39;));<br>  });<br><br>  gulp.task(&#39;default&#39;,[&#39;compress&#39;]);</pre><p>If we take a good look now we will see that we had to define two variable named gulp and gulpUglify and what it does is , these variables requires the gulp and gulp-uglify node modules and loads it and make it ready.</p><p>After that you can see we wrote gulp.task() this is where we write specific task a module need to done for us. Inside the parentheses you will notice we named the task as compress and called a callback function after that. Inside the function returned the destination of scripts location we want to get compressed .</p><p>After getting the source path we wrote , a pipe method which will add boundless and limitless features to a gulp task. In here we at first added the required gulpUglify() method and after that, we send a destination where it should save the files after compressing.</p><p>At the very bottom of the code snippets , we wrote a default task , which will run when we invoke gulp in our terminal from that directory. This default task can take a array of tasks, thus you can invoke a series of different tasks module pretty easily one after another.</p><p>So this is it . You have the idea about GULP and streams of it. There is thousands of gulp module available in the gulp site . Here is the link of it <a href="http://gulpjs.com/plugins/">Gulp Plugins</a> . So search what you need to get done. And make it happen.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d99a77caddd7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>