2/18/2015

How I setup my Internet estate

Hello, hello...

Anyone out there waiting for this post ? Aah.

Starting a fresh from today, "again". Phew, my site is finally up, for those who didn't know, it can be found @ jrajan.in. It was a royal pain in the ass to finally find a way to mask the fact that my site is hosted on one of the free platforms, given the fact that I'm miserly about spending money on an AWS micro-instance.
So currently, my site has jumped from being hosted on Google's App Engine platform, to Bitbucket pages, which sadly doesn't allow you to redirect custom domains before finally settling on the super easy-to-setup Github pages.

By which, let's talk a bit about setting up a simple site for yourself. A few steps that can help you out, not necessarily in the order below. This is how I started it off.

Buy a domain for yourself.
My options were limited to either jojurajan. or jrajan.. I went for jrajan.in since it needs lesser keystrokes. Mine was brought at BigRock, since ".in" domains are sold cheaply. Other options include, but are not limited to, Enom, Name.com or GoDaddy. Since this is going to be your identity on the web, I would suggest buying it for 10 years, since that seems to be the maximum time allowed for one-time domain registration.

Choose a template.

I went for a simple minimalistic Bootstrap template for an SPA(single page application). SPA, in simple terms, means your whole site will be in one page and different sections can be shown or hidden, when required, based on your preferences. I chose my template from HTML5UP, even though with limited variety, which suited my taste. There are many other places where you can get Bootstrap themes, such as Bootstrap Zero, Start Bootstrap or Bootswatch to name a few. Choose one that suits your taste and download the html files to your machine. In case, your tastes change in future, no worries, you can switch to another theme, albeit with small modifications that can be done without breaking much sweat.

Update your info.

Now that you have chosen a theme, it's time to add your information into it. For my development work, I use Sublime Text which is quite a nice editor, with a few plugins which make it super-friendly. Or you could use the default editors which come pre-installed with the OS such as Notepad or Gedit.
Coming back to adding your info, there will be an index.html file in the theme that you just downloaded. First open it in the browser to see what it looks like by default. At this stage, I would suggest you create another copy of the index.html file. This would be our backup copy, in case you modify something and it goes horribly wrong. After that is done, now search for the words you want to replace in the index.html, for e.g. Jane Doe is what HTML5UP themes usually use for the user's name, i.e mine or your name. Replace that with your and save the file. Now click on the Refresh button in the browser to see your updated web page. Remember, you should be updating the original index.html, and not the backup copy. ;)
Once you get a hang of it, I would suggest that you try and add a new section, if you want, for yourself.

Make it live.
 
This is one phase that you should do real carefully. I had updated my site, as said earlier, in Google App Engine, then in Bitbucket and finally Github pages. So let's start with how we could setup the site using Github pages. For that, first of all you need to sign up for a Github account. The technical details can be found in their documentation, which I would say is quite awesome even for first-timers. After that, you need to create a repository like .github.io in your Github account. You should replace with your Github username account, e.g mine is jojurajan.github.io. A repository, or repo, is like a folder where you can add files, images, documents and many other things. In our case, the repo keeps an internal record of which files were in that folder at a given time, something like a backup feature. We don't need to go that deep for now.
Creating a copy of that repo in your machine is called "cloning a repo", which is real simple if you follow the steps given in the documentation. After the local repo is ready, move all the files that you just modified to that folder. You should copy all the files and folders from the folder in which your index.html file is present. Add a new file 'CNAME', all capital without any extension with your index.html file. Add your domain name to that file, e.g. the file in my repo contains one single line jrajan.in, which is my domain. Now you need to make sure that the "repo", a.k.a folder named .github.io in Github also has these files. For that, you need to use the git push command which is also documented in the Github pages.
Once you see all the folders in your online repo, load your website by going to http://.github.io, e.g mine goes like http://jojurajan.github.io . If all is good, you should be able to see the same page that you saw in the browser after updating your index.html file.

Connect the dots.

Now that your site is up, we need to link your domain to your site. It goes like this, you have an address and your house is also ready. But for the letters to reach your house, the postman must know that for your address, this is the house. We are going to do the same thing now. First of all, you need to add an I.P address for your domain. Since your site is at the github.io pages, you should add their IP address as for your domain too. You need to add an "A Record" in your DNS records which will tell the browser, i.e. postman, that if someone tries to load your site, it should look at that address. The IPs to be added are 192.30.252.153 and 192.30.252.154. You can find more details here. Once that is done, you need to add "CNAME Record" which will point the domain name, i.e jrajan.in, to the github page, i.e jojurajan.github,io. More details can found in this one. Once you set these records correctly, you should be able to see your domain being shown correctly in around 1~2 hours, because that is the minimum time it usually takes pass along the changes. It would be better if you sleep and come back the next day to see whether the domain and pages have been linked properly.

Phew, that is one long post but I think it might be worth for at least someone, if not just me. In case, you have issues or doubts with these please let me know thru the comments.

Corrections and updates are also welcome, since I might have missed a few things in the making.

Disclaimer: The author is a part of an offshore team that works for one of the subsidiaries of Enom.

1/13/2014

Phir ek baar

Yunhi chalti jaa rahi hai zindagi,
Na pata manzil ka aur na nishaan raste ki,
Dil mein kuch lamhe liye chal rahe hain,
Kisi ki bas ab yaadein liye chal rahe hain,

Muskaan mein phir se ek dard si ghul gayi,
Khushi par kisi ki phir se nazar lag gayi,
Ashk na phir se aaye ye ibadat reh gayi,
Aur unke saath rahe kushi ye dua bhi aa gayi

Chalo, phir se jeene ki koi wajaah dhoond le,
Phir kisi daud ki raftar mein doob le,
Junoon si koi khwaahish dil mein bhar le,
Aur jeeye ja, mere yaar, tu bas jeeye jaa...

12/09/2013

Down the crap Lane

Huh, is this what I signed up for when I relocated to Ernakulam ? Don't think so, but one thing's for sure. Frustration seems to be creeping in somehow. Can't place my finger on the exact cause, but yes, it's coming on real fast. Can feel it with my mood changes, with those eccentric out of blue thoughts on modesty, feeling lost, aimless and what not.

Crap, this post is gonna suck big time. Never thought my comeback post would be so full of shit. Was hoping for a small short story or atleast one filled with gratefulness to one of my fellow beings. Something that would scatter a bit of positive thoughts into this bleak consumerist world that we are a part of. Not saying all are, but yes, to certain extent, it is.

BTW, my new fav singer seems to Ayushmaan, Dude's got a nice voice, along with the lyrics. Can't get enough of Nautenki Saala. Anyways, time to cut this crap post short and head back to coding. You see, I'm still in office. ;)

This is Jo signing off,
Adios

6/25/2013

Yaara

Kehte hai ki dil tootne se awaaz nahi karti. Lekin saath reh kar bhi kaun sa ukhaad lena hai. Aashique 2 dekh li aaj, pata nahi kya huwa. Kahin par kuch lag gaya, shayad kuch na ho, lekin kya pata kya huwa. Dard sa uth raha hai, chod kar jaana hai yeh pata chal gaya hai. Shayad kisi aur ke bhalaayi ke liye. Is Jaahaan se nahi, bas uske zindagi se. Puraane rishton ke saath jeena asaan nahi, kuch dost hai kuch yaar hai, lekin dil ke paas aaj tak na koi aa saka hai. Ek deewar kahin hai, jisne har kisiko rok rakha hai. Shayad kabhi na toote jo, shayad kisi aur ko bhi baahar rakhne ke liye hai. Jo bhi hai, apni to lagi huwi hai. Naa khul ke jee sake, na khul na saas le sake.
Andar ki iss ghutan se bhaag raha hoon. Kaam ke siwa kuch soojta nahi, shayad ek wahi rasta jisme dil na toote. Na koi naya rishta, na koi naya bandhan. Bas ek me aur meri tanhaayi. Saale, itna bhi kab se kamina ban gaya hoon, ki sirf apni apni soch raha hoon. Kya pata, shayad isse khatam karne ke baad kuch raahat mile. Shayad aankhonko koi sukoon mile. Abhi ke liye bas itna hi. Agli baar kuch aur alfaz iss nautanki dil se.
This is Jo signing off for now,
Adios

6/15/2013

A post of a post

Countless drafts on my mobile, a few hundred scribbles on the laptop and tens of movies. Finally, I think, a post that would see light,i.e. night light. Weekends have always been happening for the last few months. A trip for a marriage, a late night movie with myself, walking the streets of Trivandrum at 1:30 in the night. A few furious hours of "creative" coding, finishing off the 4th season of Dexter, trying and trying again to turn over a new leaf, and the list goes on and on and on... Oh ya, forgot a wee bit thing, donated blood after a almost a year. FYI, I'm A- and available for donation, as for now out of action till 7/09/13.

Coming back to the catalyst for the post, I watched ABCD today. No, it is not the Hindi one. This one's pure mallu even thought the title may mislead. It's American Born Confused Desi, with Dulqur back in action. Last time it was Ustad Hotel. If you would pardon the liberty that I would take with interpreting the message, hold on, why should I ask your pardon. My blog, my post, my damn words, who gives a f&^% on what you might think after reading this.

----------------------------------
----------------------------------
READING
----------------------------------
----------------------------------

I would say the movie is a sarcastic view on how the media, the government and the general public on today's Kerala. It's sugar-coated through a confused NRI's eyes but the visual is there for everyone to see, if you bloody damn give a moment's f%%$ about it. Naah, using f&*^ doesn't make me sound cool. It's just a way of saying this is MINE. At least, on the outer side. Technically, I allow Google rights over this digital copy of my words once it is posted to blogger.com. Oh, one more thing, every bloody thing that you think is coming for free is never free. There is always a catch, something that may not be obvious now but will clear out as time progresses. Coming back to the movie, it's an entertainer albeit a bit long if you think 2:45 is long. Another thing, Dulqur is a rising star with the right set of thoughts in his head. He's chosen carefully, tries something new, an American accent in this one. But then, there is this thing about him, being always super-cool with low waists and hair styles. Not that he doesn't pull it off nicely. Just saying, it's getting repetitive. Oh gosh, 2 movies with a similar wardrobe and I'm saying it's repetitive. Holy Shit, when did I start caring about what someone wears or not wears. ;)

Anyways, seems like I'm getting back to being the old me. Cocky, Abusive, Foolish, Creative, Bullshitter. Welcome back Jo, it's been long since we missed you. A round of applause for the young dashing, bullshitting, piece of Piscean crap who is still as cocky as the one who entered QBurst in an August of 2009.

This is Jo signing off,
Adios
Related Posts Plugin for WordPress, Blogger...