<?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 PsuedoCoder on Medium]]></title>
        <description><![CDATA[Stories by PsuedoCoder on Medium]]></description>
        <link>https://medium.com/@jeevz.dev?source=rss-9e500d08d564------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*FRNE1H2SmWG9Jf9m.jpg</url>
            <title>Stories by PsuedoCoder on Medium</title>
            <link>https://medium.com/@jeevz.dev?source=rss-9e500d08d564------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 03:29:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jeevz.dev/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[Amazon Web Services — How to Host a PHP Application — Processwire App in AWS]]></title>
            <link>https://medium.com/@jeevz.dev/amazon-web-services-how-to-host-a-php-application-processwire-app-in-aws-d4e0b310d853?source=rss-9e500d08d564------2</link>
            <guid isPermaLink="false">https://medium.com/p/d4e0b310d853</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud]]></category>
            <dc:creator><![CDATA[PsuedoCoder]]></dc:creator>
            <pubDate>Thu, 24 Jan 2019 06:58:27 GMT</pubDate>
            <atom:updated>2019-01-24T06:58:27.183Z</atom:updated>
            <content:encoded><![CDATA[<h3>Amazon Web Services — How to Host a PHP Application — Processwire App in AWS</h3><p>Cloud Services are in the air for a while now, the very business idea changed the way of conventional Corporate world from its core. If you want to know what exactly a cloud service works ( AWS for instance ) , this is a <a href="https://aws.amazon.com/resource-center/videos/">good video series </a>explains the basic structure.</p><p>AWS provides very rich arsenal suitable to run from SMB to top notch Corporate Business organization. It has Server Apps, Media tools, analytic tools, Scaling Tools and what not… Its very very rich in features. But the catch is you pay as you use them. In the conventional business model, you will have to invest a lot for setting up the server station and other tools but some times you wont get the clientèle as you expect, then that investment will be gone. Here, you start from the basic, go as you use or come back down if your business gets into drought and you can go up again later.</p><p>Here in this picture, you can see the list of tools, a lot of them will come out if you explore further.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*o21vCdrJnBtvnvbk.png" /></figure><p>AWS gives you a Free Tier package, which is you can use some set of tools completely free for 12 months. You can read further about <a href="https://aws.amazon.com/free/">FreeTier </a>here. It is the best way to start using AWS services.</p><p>Now, assume you have setup a free-tier account in AWS and lets see how to host a simple PHP website.</p><p>1. Log in with your free tier account</p><p>2. Go to services -&gt; choose EC2 to create virtual instances</p><p>3. Create virtual instance ( This is like a creating a server OS instance for you — in my case I choose Ubuntu 16 LTS version of Server which is in the free tier package — you make sure the Virtual Server OS instance you select should be in the Free Tier pack)</p><p>4. Allocate new Elastic IP</p><p>5. Connect it with new Virtual Instance</p><p>Steps 1 to 5 could be a little confusing here, so I suggest to watch this <a href="https://www.youtube.com/watch?v=h04jIAIcBhg">video</a> for a visual tutorial. It helped me.</p><p>So once you setup your Server OS instance, its time to configure with LAMP stack. Its a straight forward setup, for any confusion, look at <a href="https://www.linode.com/docs/web-servers/lamp/install-lamp-stack-on-ubuntu-16-04/">here :</a></p><p>If you are fond of PhpMyAdmin as your Database Manager, install it too.</p><p>At this point, you must be introduced to your elastic IP Address, your AMAZON private key and all. So use the SCP way to transfer your PHP website / app into the server, then access it via your <a href="http://www.ipaddress/your_appfolder">www.ipaddress/your_appfolder</a></p><p>In my case, I did an</p><blockquote><em>SCP copy scp -i myamazonkey.pem /home/jeevs/Downloads/soft/processwire-master.zip ubuntu@myamazonIP:~/.</em></blockquote><p>Then I extracted the PW into my /var/ww/html/public_html/pw. So I could access <a href="http://www.myip/pw">www.myip/pw</a> . I imported the database using <a href="http://www.myip/phpmyadmin.">www.myip/phpmyadmin.</a> So if you want to edit any files in the server, you can use the SSH command and edit files using <a href="https://www.nano-editor.org/"><strong><em>nano</em></strong></a></p><blockquote><strong><em>ssh -i “myamazonprivatekey.pem” ubuntu@myamazonip</em></strong></blockquote><p>The last step is to map the domain with your hosting IP address. You can register a new domain with AWS or you can map the existing one to the hosting. For an existing domain name in Godaddy, you can assign the IP address to Godaddy DNS settings.</p><p>You can assess <a href="#">www.yourdomainname.tld/your_appfolder</a></p><p>Voila, you have hosted your first PHP App in Amazon Web Hosting. Here is one <a href="http://13.126.48.0/pkrosi.org/">simple ProcessWire website</a> I have done.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d4e0b310d853" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dynamic Modal Popup content using Bootstrap]]></title>
            <link>https://medium.com/@jeevz.dev/dynamic-modal-popup-content-using-bootstrap-1a581650652f?source=rss-9e500d08d564------2</link>
            <guid isPermaLink="false">https://medium.com/p/1a581650652f</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[processwire]]></category>
            <dc:creator><![CDATA[PsuedoCoder]]></dc:creator>
            <pubDate>Thu, 24 Jan 2019 06:52:22 GMT</pubDate>
            <atom:updated>2019-01-24T06:52:22.910Z</atom:updated>
            <content:encoded><![CDATA[<p>Say,</p><p>You have a website which displays a series of Quotes or Greetings cards. Each of these panel contain unique information to display. Now you need to put this all in a single page, without any redirection to another page. Obviously Bootstrap modal popup is the one will come to your mind. But, you will realize, the JS popups does not update the content without a page refresh. Surely, you can make a work around using clearing JS cache etc, but require further complicated code blocks.</p><p>Instead, you can use Bootstrap Modal component<a href="https://getbootstrap.com/docs/4.0/components/modal/#varying-modal-content"> — Varying Modal Content</a></p><blockquote><em>Varying modal content</em></blockquote><blockquote><em>Have a bunch of buttons that all trigger the same modal with slightly different contents? Use event.relatedTarget and </em><a href="https://developer.mozilla.org/en-US/docs/Learn/HTML/Howto/Use_data_attributes"><em>HTML data-* attributes</em></a><em> (possibly </em><a href="https://api.jquery.com/data/"><em>via jQuery</em></a><em>) to vary the contents of the modal depending on which button was clicked.</em></blockquote><p>This is a simple solution for our particular requirement. Surely, we need to feed the dynamic input to data-*attribute. The attribute can be anything, for instance, I call <strong>data-itemN </strong>where N is the dynamic input we have to produce.</p><p>Rest is easy, we normally get a<strong><em> foreach</em></strong> array loop of our content ( quote, greeting message etc) into a DIV Panel , which is inside the Modal Popup content block. Now,<strong> for each item</strong>, the <strong>N</strong> will be different for each Modal Block. So you will have <strong>N</strong> number of Modal Popups sitting behind the curtain, will show up whenever its clicked.</p><p>For a working example : see this website : <a href="http://pkrosifoundation.org/#news"><strong>http://pkrosifoundation.org/#news</strong></a></p><p>That website is created with <a href="https://processwire.com/">Processwire CMS</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a581650652f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>