Blog

June 4th

Dear Diary, I’m sorry that I didn’t get any time during the day hours to come and visit you. Well, as a matter of fact. I was busy entire day only to make you look more awesome than you already are. The thing which I was working on resulted in you showing a very beautiful quote on the top of you head. New one every time I reload the page. I will get back to that part later. In detail. I promise. So let’s get started. First things first. I woke up at 11:30 AM today. Well, I had slept at 4:3

Nick

Nick

4 Jun 2016 8 min read
June 4th

Dear Diary,

I’m sorry that I didn’t get any time during the day hours to come and visit you. Well, as a matter of fact. I was busy entire day only to make you look more awesome than you already are. The thing which I was working on resulted in you showing a very beautiful quote on the top of you head. New one every time I reload the page.

I will get back to that part later. In detail. I promise. So let’s get started. First things first.

I woke up at 11:30 AM today. Well, I had slept at 4:30 so this was quite obvious. I didn’t wake up on my own. I woke up to the voice of so-irritaging lady tenant. Yeah, I’m talking about the Didi who lives next door. As always, she was there at my door step shouting my name and asking for the rubber pipe. Her cooler runs out of water every morning. That too when i am sleeping peacefully. I am now quite frustrated by this daily act of her.

I gave her the pipe. Snugged back to the bed. 5 minutes hardly pass and there comes that irritating voice, again. This time she was asking to take care of the baby while she went to bathe. If it wasn’t for that newborn I would never have left my bed again for that lady. Man! she is so good at back biting about one person to an other one. Funny part is when they all come to know about that act of her and confront her. I am also a victim of her back biting ?? ??. In fact every member of this family is.

I left the bed. Picked up my iPhone. Went to her room and lied on her bed. Right next to the baby. As I do everyday, I was scrolling in the notification center looking for any message or notification titled Yukti, Ishu or Pari. Although she had told me the day before that she will be leaving at her mother’s sister’s home and she won’t be able to talk or text me for next 2-3 days. Even though. Paagl Dil Hai Ki Maanta Hi Nahi. Disappointed I came back to my room after a few minutes.

Dear, you would be wondering that why didn’t I cook today. Warna roj subeh subeh cooking krna to mera job ho gya tha. Well let me come to that.

We were running out of flour so I called up Raj and asked what should I do in order to feed Tiger. Ah! don’t be surprised. He is somewhat sick nowadays so I care. I can’t see anyone in pain, be it my enemy. To which he said borrow some from Didi and do the cooking I was like fuck you. I ain’t gonna cook nothing. I was in no mood today. Main reason? Well, obvious, I didn’t get to talk or chat with the girl that I love. That broke me from the inside. Yet i kept holding strong.

I switched on the Laptop and tried killing time by watching my favorite The Vampire Diaries. I had completed 40% of the episode that i was watching then i get a ping from Ankush asking me to help him regarding his website.

On that I quit that episode and fired up Apple’s Safari on my MacBook. Opened up his website and assisted him with whatever he was stuck at. Then I opened up my website (blog) and started looking at the design. I love the design of this website very much. Well, generally I suck at designing things but not this time.

While I was scrolling up and down an idea struck my mind. That my website should show a quote of the day on the top of the page. Well then there was no stopping me. I instantly opened up the website’s code and added a simple div tag. Added some CSS styling to it and published it. It took me about 15 minutes.

I messaged Ankush to see my work which I did and asked him to tell me his views about it. He said it is awesome brother. At that time it was not so beautiful. It was a basic text in a bold format which was center aligned. He asked me, “Is it random or only one line is displayed every time?” I said that it is only one line. But wait, I can do something. Just give me some time.

With ultimate dedication i broke the ice of WordPress plugin development. I created a piece of code written in PHP language which would load a random line from an array of texts. It worked very well. I applied some very nice formatting to it. So it looked great. Visually too. I installed that plugin on my blog (this website) and on his website too.

I just text him and ask him to see the list of plugins. He was amazed by seeing a plugin named Quotey and author was black.dragon74 ( Me ?? ). Then i asked him to visit my blog and see it in action. He was amazed. Shocked would fit much better in here ?. He refreshed the page and every time a new quote was being loaded up.

See, this is what I can do once i have the motivation and dedication. I hadn’t even developed a piece of code for WordPress. I wrote that code for the first time and trust me, It worked at first try. No errors. I just don;t know the idea of what I should develop. Once i have the idea I can write the code for that. Ankush can think of very good ideas but unfortunately, he can’t code. Well he’s trying so hard to learn it. And he will succeed one day. With me by his side, he surely will.

In the meantime I got a text from my wife. Well, yeah, for me she is more than wife. But in words wife is the best I can describe her with. I said I was missing her so much. I hadn’t brushed yet. Would you believe me? I brushed at 3:00 PM today. I felt very happy as earlier I thought that she won’t be taking her phone with her, but now, as she has messaged me, this means she has carried her phone with her too. Only to find out that she hasn’t left yet. She said that she would be leaving for that place in the evening. I asked her if she has had her lunch. To which she said no. Stupid girl. Never eats on time. Just wait for some time. I’ll officially marry you and force feed you. Then don’t know what happened. She went AWOL.

In the meantime Raj had returned back home. He was carrying an iPhone. I thought he got one. Not new. Second Hand. Maybe. I asked him to show me and he was like, “Why?” Feeling so possessive of that phone. But the fact is that phone was of one of his friends. I was like, dude keep this shit to yourself. I have an iPhone 6s and this little buddy there in your hand is an iPhone 4s. Outdated technology. I have gifted iPhone 4s to Yogesh’s sister, Shivani. See? No big deal. Just put your ego to curb and at least pretend that you are normal.

He went out and came back after a few minutes. 10 minutes maybe. And asked me to cook again. I was like that, No! Never. I am not gonna cook today. Then again he started all that weird and oh-i-do-so-much-work kind of people. What he does is just flirt with the girls and kill his own time. He’s gonna fail his 12th standard that’s for sure. Now my very dear diary, don’t think that i am cursing him or hoping that bad should happen to him. I have also tried to teach him a few times. But only if he responded. Faaltu ke kaam kraa lo us se bas.

Anyways, I went to kitchen and thought I should cook. I was busy making chapatis while I heard him say something to me. I don’t remember what he said actually but in one way he was showing his shitty ego on to me. I finished with cooking. Came back to my room and locked myself up in the room. I was hurt. What the hell foes he thinks of himself? Dude you ain’t a superhero. You are just a beautiful mistake who’s lost his existence in this worldly world. You are a lost cause. And i am not gonna pull you over the edge every time. Not anymore. I have tried and failed. Many a times.

Due to him I didn’t even eat the food. I have not eaten anything this whole day. And how rude of him to stuff all that matter inside his stomach and roam around as if nothing has happened. He didn’t even ask once. In the evening Sir was busy taking remand of someone over some money related matter. Paisa Paisa Paisa. Mar jaaoge ek din Paisa Paisa krte krte. Enjoy this little life while you have the opportunity of living it.

He went out and purchased some goggles of DITA brand. Came to me so excited. Showed me that. I tried to unbox it and pull out those aviators out and have a look at them. He said, Aaram se. I put that stuff right back and asked him to leave. I asked how much worth is it for. He was like bill is lying in the other room. He said this line as if he had bought it for a million dollars or something. Where was the need of showing your douchebag-ey attitude here. Dude, I have Ray Ban aviators worth rupees 7,000. But I don’t keep roaming showing it off and trying to be all bossy. Due to this thing I didn’t have dinner too. All three meals skipped. Very good Nick. Keep it up. ????

Then again i was talking to Ankush. Then suddenly i struck an idea. What if the quotes on my page are displayed from the internet. After being randomly selected from there. Once again I got to work and implemented this feature.

Below is the code for that plugin :-

<?php
/**
* @package Quotey
* @version 2.0
*/
/*
Plugin Name: Quotey
Description: A simple plugin which was just created for personal use. No configuration required. When activated it shows a random quote from a predefined list on the top of your header.
Plugin URI: http://github.com/black-dragon74/Quotey
Author: black.dragon74
Version: 2.0
Author URI: http://hackintoshrevolution.net/members/black-dragon74.1/
*/

function quotey_custom_content() {
// Edit these quotes. In case you want to add more. Add them each. Line by line. One at a time.
// Mind the quote symbol on the first and the last line. Mind the colon too.
$quotes =
"Enter you custom quotes like this.
Second like this
Third like this
And so on";

// Parse the above quotes into single lines.
$quotes = explode( "\n", $quotes );

// Use wordpress function to randomly choose a line.
return wptexturize( $quotes[ mt_rand( 0, count( $quotes ) - 1 ) ] );
}

function quotey_remote_content() {
// Please change this url in case you want to change the fetch location.
// The file should be readable without any encryption
// It is advised to use simple txt file containing quotes. One in each line.
// There are multiple preloaded file of different categories. You just have to change quotes_inspirational.txt to quotes_category.txt
// The list of categories can be found in the readme file on the plugin's website (GitHub)
$quotes = file_get_contents('https://raw.githubusercontent.com/black-dragon74/Quotey/wordpress/quotes_inspirational.txt');

// Parse the above quotes into single lines.
$quotes = explode( "\n", $quotes );

// Use wordpress function to randomly choose a line.
return wptexturize( $quotes[ mt_rand( 0, count( $quotes ) - 1 ) ] );
}

// Print a random line. Everytime the page is loaded.
function print_quote() {
// To use custom content change quotey_remote_content() to quotey_custom_content() in the line below.
$selectedquote = quotey_remote_content();
// Define a paragraph tag. Don't change anything below this line.
echo "<p id='quotey'>$selectedquote</p>";
}

// Now we add a event listener into the head tag as we want it to appear it on the top.
add_action( 'wp_head', 'print_quote' );

// Some styleup to the output
// Edit the background-color property to match your theme's header.
// If you see some extra spacing or want more. Edit the margin-top and margin-bottom.
function quotey_style() {
echo "
<style type='text/css'>
#quotey {
text-align: center !important;
font-family: cursive;
margin-bottom: 3px;
margin-top: 3px;
margin-left: auto;
margin-right: auto;
font-weight: 600;
opacity: 0.7 !important;
color: white;
background-color: #333 !important;
}
</style>
";
}

// Deploy the plugin with the style element applied.
add_action( 'wp_head', 'quotey_style' );
?>

With that i was done with coding. At least for today.

One moment worth mentioning. I was missing Ishu so much. I decided to send her a voice message. Picked up the phone. Opened up WhatsApp. And was ready to record then just at that moment she texted me. That feeling at that moment was beyond what words can describe. It was divine. I love you cutie.

So this is for today. It is 5:01 Am and i can see the morning sky out from the window. Now i am gonna get some sleep.

Goodnight Ishu. I miss you. I miss your goodnight kisses. Goodnight Dad. Goodnight Diary.

Love

Nick