Posts

Using Bootstrap Multiselect Values in Django Query

Image
Read the documentation of Bootstrap Multiselect  . Anyway, just include all the files in you html page (head section), you will need these following files (JS and CSS files): //ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js https://dl.dropboxusercontent.com/u/75734877/bootstrap-multiselect.css https://dl.dropboxusercontent.com/u/75734877/bootstrap-multiselect.js Copy and save the files if you want to serve it with your own, and use it like this in your template: <script type="text/javascript" src="{% static "js/bootstrap-multiselect.js" %}"></script> Then refer to this JSFiddle for demo.  Let's say you have this select element in your page with the id, "bldg_type" <select class="form-control" id="bldg_type" multiple="multiple">...

Kowts #1

Image
I have nothing to say here..HAHA :3

All You Have To Do...

Image
...is savor the moment. I think just this time, I'll stop being so pessimistic of the things that is not yet happening. I'm happier now, not because of a TV show or an episode of an anime series but because of a GIRL . I described  her as a cute human being like a puppy or kitten. I love her smile, I love seeing her smile. I love her eyes and the rest of her face ( like Tim to Mary ). HAHA It's awkward seeing myself  of being this much happy. ( grammar eh?!! ) LOL I can't even stop smiling while listening to the song above. Tim: We're all traveling through time together, every day of our lives. All we can do is do our best to relish this remarkable ride. I think, I'll just be "Tim" for a while. It helps. :D

Typeahead Implementation in PHP/MySQL

DEMO First, you need to include all the necessary files for this to work. Place these three files in the head section of your page.. jquery-1.10.2.min.js  bootstrap.min.js bootstrap3-typeahead.min.js Then, this script: $(document).ready(function () { var objects = []; var map = {}; $('#person').typeahead({ source: function (query, process) { $.ajax({ url: 'get_person.php', type: 'POST', dataType: 'JSON', async: true, success: function (data) { objects = []; //resets the objects map = {}; //to avoid duplication $.each(data, function (i, object) { map[object.full_name] = object; objects.push(object.full_name); }); process(objects); } }); }, //end source ...

ASDFJKL;

Image
Everytime you tell girls you like them, they always asked "Why?". And I always go with the reason, "I just like you". And then, end of conversation. Oh girl, I'm sorry. If you can only dissect my body and see what I felt about you. You'll be spending lots of hours reading all my reasons. Because sometimes with my limited source of words and vocabulary, I can't find the exact word. So, maybe you can? "That feeling between like and love." Hmmmn, getting there? Nah, I'm not fond of words. It's just sad that women love words. I know that you need to spit it out sometimes. Unfortunately, I'm not good in speaking. I haven't confess personally, like expressing my feeling like it's the end of the world. I haven't done that. And I don't have plan doing it except in my wedding vow. When I tell you I like you , it's always true. And it means I like every details about you. The soul within your body and all the...

...now she's gone!

Image
I just told her I like her, and now she's gone(not gone, gone). Am I that powerful? hahaha Well, I am not that proud of myself but I'm always fine with it. Like really, as much as I want her. I just don't beg. It's not my style and I don't even know how to please/court a girl. Which makes me wonder, how did I get a girlfriend before? :) Anyway, 2015 is coming! I have these list; a new year's resolution: I'll try to go to church as often as possible. Maybe be more mature in interacting with people esp. girls. HAHA Mind OVER Emotion thing. I overthink a lot. I'll work harder. I want to finish my Master's Degree as soon as possible to get married. HAHA I'll sleep early like 10:00 PM. Live healthy? Less caffeine and more water. I guess that's it! I am happy with my life right now. What more can I ask for? Ahh there's one thing, I want to learn Nihongo. I got plans , you know? haha

My Sweet...Moon!

Image
When this song hits me, I listen to it all over and over again. It's a bit sad but inspiring. I really love kids, like dreaming of having one right now. But I also have this in my mind that I'm not yet capable of giving her(I want a girl BTW) a very beautiful life. I love the man you're making me Yeah, every day I'm gonna prove there's nothing I won't do for you Such a great love for his child. OK, I should take up guitar lesson now 'cause I'm gonna write  a song for my future Naleigh Moon.