Posts

Khude Jajabor Istasi

Image
I've been looking for the book "Khude jajabor istasi" by Sailen Ghosh for at least 20 years and found it recently. The problem is made even more complicated by the fact that the original book was published in Anandamela way back in 1988 0r 1989. So I assumed the current publisher is Ananda. But no, Ananda doesn't publish this book. The book is now part of the collection "Uponnyash Samagra" part 2 by Sailen Ghosh, published by "Parool". Without more words, here's the front page:   And here's the index page: I'm glad if I helped anyone, who was as eager as I was, to find it. Do drop in your thoughts and words in the comment section below. I would also like to know more about similar other books or catch up with book lovers from that era. I believe there is no greater a did than talking about these nostalgic memories over some coffee. Cheers!
It's the same thing which Anakin had for Padme (Star Wars Episode 1, 2 and 3), Jason had for Citra (Far Cry 3), Nate had for Chloe (UC 2). It just keeps coming back again and again, in history, in pop culture and in dreams. When you wake up you are left with a feeling so intense, so emphasized, so full of togetherness that you wish you kept dreaming forever, you wish you never woke up, you wish you never gained back your sanity. Why this dilemma when apparently you have it all, apparently it's a beautiful life? Why, why do you feel like making again...hard choices?

MySQL doesn't load up on Php info

Hello guys, Reading this? definitely had a bad time with AMP on Windows! Worry not. After installing AMP on Windows for the last 8 years for around 25 times, still I get those hiccups. I shall not tell you about the extension directory, about the path to the extension directory, about the possibility of multiple php ini files on your system, about the probability of you being not restarting your Apache or for that matter anything which thousands of posts out there suggests you while you, confounded, tensed and tired of this horrible problem is banging your head, having done all those things suggested by all those experts, still not being able to see the MySQL section on phpinfo(). Right, to the point now. Apache httpd conf needs to know where php is. You need to set the "PHPIniDir" with the proper path of PHP location on your system. Locate the httpd.conf file for your Apache configuration and add the above section in it. And if you have done the other things correctly, t

Passing a query string to your WordPress site and show something useful

Objective: Say my website runs on Word Press (henceforth known as WP) at http://www.abcdxyz.com A post might look like the following http://www.abcdxyz.com/?page_id=21 And the post gets rendered nicely. Say I want to pass a Query String (henceforth known as QS) test=1, based on which I want to show a plain text to user or in other words simple want to hook on to WP rendering technique and modify it. My intended URL becomes http://www.abcdxyz.com/?test=21 Normally if you call this, WP would render the default page to you and simply dispose off your idea of passing and doing something useful with QS. Solution: We have to modify the $query_vars, a mechanism of WP internals, with hook. 1. In your plug in file write the following hooks add_filter('rewrite_rules_array', 'add_new_allowed_qs'); You may define the body of the function as follows: function add_new_allowed_qs( $query_vars ){ array_push($query_vars, 'test'); // return return $q

Left join should fetch data from left table even when right table doesn't have a reference

Okay first things first, the title may be confusing. Objective: There are two tables, Parent and Children. I'm creating a listing page where I'm fetching the parents and the children count, yes, please note it's count. Structures: Parent: id, parent_name Children: id, parent_id, child_name A single sql is needed which would fetch me the following columns: Parent.id, Parent.parent_name, count(child_name) as no_of_children Say for parent Tomtom there's two children, For Kawasaki there's 3 and for Mickey there's none (no association in Children table, no records absolutely). I want a list like the following: Row 1: 1 Tomtom 2 Row 2: 2 Kawasaki 1 Row 4: 3 Mickey 0 I tried the following SQL: select a.id as parent_id, a.parent_name, count(b.id) as no_of_children from Parent a LEFT JOIN Children b ON a.id = b.parent_id group by b.parent_id The output: Only the record mappings where at least 1 association is present in the Childr

jQuery Select change event firing twice

Hmmm...nice one < select id="my_dd" > < ! -- options -- >< /select > jQuery code: $('#my_dd').change(function(){      alert('hello') ; }) Surprisingly on change the alert was getting fired twice. Solution: Nothing much, this was more or less my ignorance, put the block inside document ready and everything should be fine Final code: $(document).ready(function(){      $('#my_dd').change(function(){          alert('hello') ;      }) }) Hope this helps anyone. Cheers

CodeIgniter, how to make some data from your database available throughout to all of your views

Huh, I know why you are here, welcome and all my compassion. I too spent 2 hours to get this out of the most popular light weight framework online documentation and huge fanbase. CI is more sweeter than a piece of Cake (;)), according to hardcore fans, but certainly their documentation is pain in the...well leave it. To the point: I want some data to be always available to all of my views regardless of which page I'm into in. For example it could be a drop-down of states in the right hand corner of my header menu. How do I do it? Solution: Create a helper file, say my_lil_helper.php and keep it under application/helpers. By the way you can do all the good things loosely, usually you do inside your controller, inside a helper. So it could be loading a model, a library, whatever. So you write a function there like this: function return_states() { //Model call to fetch data from db table and return return $state_array; } In you header file, all you have to do is, us