Posts

Brighter!

Image
Hi dear! I love you so much. I just felt today that I should say those words to you more often than before. And the need to prove it to you every day. Thank you for considering me in your time. I know I'm quite demanding. Thank you for letting me in again. All I want for you is to be happy with me. I will try my best to make that happen when we're together or even apart. I'll be the saddest if I lose you again. So please bear with my immaturity sometimes. With my random stares at you, and with my unnecessary giggles and smiles. 'Coz I don't see myself with anyone else other than you. I'm claiming it that you will be my future. My future stress-reliever. My future company. My partner in life! So, just bear with me. I LOVE YOU! One of the things that I'm proud of and maybe my "greatest offer" to you. A day spent with you is the day that I'm truest to myself. Every time I look at you, my h...

Believe me...

Image
Believe me, When I say that I LOVE YOU When I care about you When I don't want to hurt you intentionally Because it's true. This is a promise to myself more than to you. You deserve all my time and efforts and more importantly my love. With you, I am not afraid to experience pain again. 'Cause I know that it will be worth it.  And I understand that, when there is love, there is pain. You told me that you would rather get hurt than me, in which I don't want to happen. Sometimes when I'm alone and lying in my bed, thoughts of our relationship will come in my head. It's surreal, and it still amazes me. I must have done something good because God has lead me back to you.   Always remember that my love for you is greater than any of my future mistakes. I want you to know that! You are loved because of who and what you are. You don't need to change and I'm sure you won't.  I'm not perfect dear, but I will be consistent in loving...

Changing Password in Django using Jquery/Ajax

Image
I posted about this not so long ago without using JQuery/Ajax, here is the link .This time, with different approach and much easier.All you need to do is create function in views.py then use it in urls.py and call the URL using Ajax.  HTML: <form action="/change_pw/" method="post" id="frmChangePW"> {% csrf_token %} <div class="form-group"> <label for="id_old_password">Old Password:</label> <input class="form-control" id="id_old_password" name="old_password" type="password" placeholder="Old Password" autofocus=""> </div> <div class="form-group"> <label for="id_new_password">New Password: <input class="form-control" id="id_new_password" name="new_password" placeholder="New Password" type="password"> </label> ...

All I need is you...

Image
Why worry about the future if we're doing great today? What I mean with "great" is, we're so much in love and we are the happiest when we're together. And even if not, we longed for each other. It's not bad, right? Do you think we need to slow it down? I don't think so! We have wasted (sorry for the term) enough time with other people from the past already. I think we deserved each other the way it needs to be. Do you think this feeling of mine will change soon? The answer is (if there's one thing that I'm really sure this is it) , NO! You are worth the time, effort and love. You are more than what I asked and deserved. They say you need an inspiration to write something. Yeah, it's true. A song and thoughts of you is enough, and sometimes a cup of coffee. I'm glad that we have this kind of relationship. Like we talk things, then laugh about it. Argue like preschoolers. You're the cutest when you reason out. (HA...

Set table width to 100% on PDF export in Datatables

Image
I've been using DataTables a lot these days, it's good. Actually, it's a very good plug-in for displaying data in table ( haha ), with lots of interaction. Few and should be implemented feature: Can't export multiple table headers API for table width in PDF Export  Adding header and footer for Excel Export DataTables uses pdfmake library for its pdf export module. Sample output of pdf To make the table width 100%, as per pdfmake documentation we should set its width to "*". Here it goes: Edit the datatables JS file, find t.table.widths="auto" , change it to t .table.widths="*" . You might want to change the alignment of the table header also: Find  tableHeader:{bold:!0,fontSize:11,color:"white",fillColor:"#2d4154",alignment:"center" Set the alignment to left. sample output after the tweak

Dear Girlfriend

Image
I wrote this on my notebook As much as I want to describe how much I love you, I can't find the exact adjectives for it. So, I'll just use these available words in my head and form some sentences. First, I can't deny that you are a blessing to me. Yah, you are!!! Why? The main reason is because of your LOVE. It brings so much joy in my heart. It makes me take things lighter than before. Your love is not selfish. I could not ask for more. You have loved me the way I wanted it to be. Without you being told, without you being dictated. It's just how you love and it amazes me. Every single day, I wake up thanking God for opening your heart to love me. I know I'm overly sensitive sometimes. Sorry, I'm still learning and I don't want to hurt you in the process. I know you'll understand. Don't ever change. Stay loud. When you laugh, when you burp. Tell me everything. What you hate about me. When my jokes are not that funny anymo...

Why I choose her?

Image
The real question is not "Why?, it's "Why not?". I choose her because I LOVE her. She loves me also. And I love how she shows it. Gentle, sincere and she appreciates little things that I do for her. Every time I look at her, it makes me glad that I had a failed relationships. Because it makes me think that my past has prepared me for this moment. 'Cause with her, I see happiness, I see contentment. Seldom you'll find a woman who cares a lot about you. Who speaks "I love you" with every kiss. Who can hug you in both manner;being told or not. By the way, I will still love you even if you don't feel the same. But of course, I'm very GLAD you did. (hehe..thank you) I love how short you are. I love your eyes, the way it laid on me. I love your forehead. (bun-og na every Sunday..haha) I love your lips, nose, ears, neck and even your teeth. I love your small hands, your cute face, your shoulders, elbows....