<?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 Gediminas Ginkevičius on Medium]]></title>
        <description><![CDATA[Stories by Gediminas Ginkevičius on Medium]]></description>
        <link>https://medium.com/@gediminasgn?source=rss-3f2227e62ac------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*qvybf9bnZhvQwB5mLM7Igg.jpeg</url>
            <title>Stories by Gediminas Ginkevičius on Medium</title>
            <link>https://medium.com/@gediminasgn?source=rss-3f2227e62ac------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 08:11:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gediminasgn/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[Image resize/cache routing via .htaccess]]></title>
            <link>https://medium.com/@gediminasgn/image-resize-cache-routing-via-htaccess-762c556c7c4?source=rss-3f2227e62ac------2</link>
            <guid isPermaLink="false">https://medium.com/p/762c556c7c4</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[photo-watermarking]]></category>
            <category><![CDATA[php]]></category>
            <category><![CDATA[image-resizing]]></category>
            <category><![CDATA[apache]]></category>
            <dc:creator><![CDATA[Gediminas Ginkevičius]]></dc:creator>
            <pubDate>Thu, 15 Feb 2018 17:22:57 GMT</pubDate>
            <atom:updated>2018-07-25T23:52:24.338Z</atom:updated>
            <content:encoded><![CDATA[<h3>The issue</h3><p>I’ve been posting loads of pictures to my other blog for the last few years, however the thumbnails resize script that I used for generating different size images was passing file request through PHP all the time (I have used <a href="https://github.com/penibelst/timthumb/blob/master/timthumb.php">TimThumb</a> previously), therefore I thought it was not very efficient and required more computing power than it really should. Finally I got to the point to rethink the approach and implement image size handling in a different way.</p><p>Note: approach works on Apache + PHP stack web hosting.</p><h3>Request handling via .htaccess</h3><p>Just to share an idea I’ve added my .htaccess code. The requests handling logic works in the following way:</p><ul><li>Listen to requests that contains i.e. public-images/<strong>large</strong>/150/150_1518648782_0.jpg</li><li>Checks if the file does not exist</li><li>In case the file does not exist, it passes the image <strong>size</strong> and <strong>path</strong> to generate.php</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9b6bad42b568576aa5d4b98bf47b392b/href">https://medium.com/media/9b6bad42b568576aa5d4b98bf47b392b/href</a></iframe><h3>Image resize and watermarking</h3><p>You may found image resize and watermarking solutions out there on the internet, however as part of the learning process and some fun I wrote a script of my own.</p><p>Resizing and watermarking PHP based solution can be found on my blog: <a href="https://www.impressionsflow.com/image-resize-cache-routing-via-htaccess/">continue reading…</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=762c556c7c4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React - building your first app]]></title>
            <link>https://medium.com/@gediminasgn/react-building-your-first-app-d5ebb32ee416?source=rss-3f2227e62ac------2</link>
            <guid isPermaLink="false">https://medium.com/p/d5ebb32ee416</guid>
            <category><![CDATA[unit-testing]]></category>
            <category><![CDATA[single-page-applications]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Gediminas Ginkevičius]]></dc:creator>
            <pubDate>Fri, 28 Apr 2017 08:31:00 GMT</pubDate>
            <atom:updated>2017-06-10T20:40:50.274Z</atom:updated>
            <content:encoded><![CDATA[<p>Being a front-end developer and sticking with React for a second year now I realised it’s not so easy to get started with this framework for some people. Therefore I have started a little project of my own to show some simple steps how to build a basic React application. Instead of writing a long tutorial, I choose to introduce it as an open source project with commits history and easy to track code changes on GitHub. Naturally there are many different ways and approaches what to look at, which framework to choose and how to structure things around, however my given example is based on my personal practice and approach for this little project “<a href="https://github.com/g86/create-your-react-app"><strong>create-your-react-app</strong></a>”. If you’re interested in React, this might be another source of getting-started material to look at and learn some things about this popular stack in the market. Note: depends on your learning preferences!</p><p>By this post I target people who already know at least basics of HTML, CSS, JavaScript and Git (GitHub).</p><h3>Getting started</h3><p>There are many blog posts around the internet how to get up and running with your first app, however the easiest and the simplest way to get there is to follow official information source from this <a href="https://facebook.github.io/react/blog/2016/07/22/create-apps-with-no-configuration.html"><strong>blog post</strong></a> — it explains what <strong>create-react-app</strong> is and how to get it up and running. I’ve also put together a shorter version of it in my own <a href="https://github.com/g86/create-your-react-app/blob/master/README.md"><strong>readme.md</strong></a> file, which is the introduction to further steps that can be followed via commits of “<a href="https://github.com/g86/create-your-react-app">create-your-react-app</a>” repository.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*M7nGZV7boBMoPn9AOlQZuw.png" /></figure><h3>Basic application</h3><p>Given screen on the left is the application at it’s <a href="https://github.com/g86/create-your-react-app/tree/c560b098f3e34e280b35441db9ec27dbd7dc30fe"><strong>25th commit</strong></a>. You may clone the project and check out the commit via command line as follows:</p><pre>git clone https://github.com/g86/create-your-react-app.git</pre><p>and then pick the 25th commit:</p><pre>git checkout c560b09</pre><p>to get this app up and running you may check readme.md</p><h3>Application features</h3><p>At this given point (<a href="https://github.com/g86/create-your-react-app/tree/c560b098f3e34e280b35441db9ec27dbd7dc30fe"><strong>25th commit</strong></a>) the application contains:</p><ul><li>Flex box layout</li><li>Two routes</li><li>Active route highlight in the menu</li><li>Basic contact form</li><li>Input value handling within component state</li><li>Unit tests</li></ul><p>Additional npm modules (libraries) used:</p><ul><li>Enzyme (for testing component rendering and functionality)</li><li>React-test-renderer (for testing)</li><li>React-router-dom (for page routing)</li></ul><h3>Living example</h3><p>See this application in action: <a href="https://goo.gl/NMwMkW">https://goo.gl/NMwMkW</a>.</p><h4>How is it built?</h4><p>For the step by step guide of how to create your app — please follow <a href="https://github.com/g86/create-your-react-app/commits/master">commits history</a> of my sample application <a href="https://github.com/g86/create-your-react-app/commits/master">here</a>. Click each commit to see code changes. For example commit “Split CSS. Separate Header and Footer style into separate CSS files.” can be accessed here: <a href="https://github.com/g86/create-your-react-app/commit/66a4b68eb7a2879a20e19ebc718206a03893749d">https://github.com/g86/create-your-react-app/commit/66a4b68eb7a2879a20e19ebc718206a03893749d</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d5ebb32ee416" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>