馃敟 | Latest

Advice, Django, and Facebook: <?php header("Content-type: text/html; charset=utf-8"); *This is a warning to any poor soul who may have to deal with this code. *I took over this criminal piece of chaos from a monkey named Joel who I assume had been given a typewriter by Mephistopheles himself. For reasons I have yet been unable to fathom, he decided to patch together this thing *using a BaseX setup hardwired into an unfixably broken Manjaro VM, queried by a handwritten plate of uncommented PHP spaghetti fit to feed an army of people with a serious death wish, without any framework or CMS. The very long BaseX script, very long PHP presenter and very long XSLT *stylesheet mostly perform the same heuristic document structuring for different components and are supposed to produce compatible results, but I bet they have mismatches somewhere. *Since Prof. T just wanted a few small functional enhancements, I decided to just patch it and keep the general setup. Unless you were hired to *correct some spelling mistakes, DO NOT FOLLOW IN MY STEPS. Putting up with this simulation of how a goldfish would design a system has literally given me CLINICAL DEPRESSION. This is not an exaggeration, I am writing this after a prolonged medical therapy - mostly successful, thanks for asking, but not fun. I wouldn't wish this code on anybody who isn't a manager at Oracle or Facebook, and therefore give you this sincere advice: *Nuke this. Take the XSLT if you must, and then nuke the app and recreate it *in Django or whatever works for you. I would do it myself, but I risked a relapse simply by opening this file again to write this comment. *Dear brother or sister, I wish you all the luck and strength in the world * and hope it will be enough. Farewell. error_reporting (E_ALL) ; ini_set("display_errors",true); print('<?xml version="1.0" encoding="UTF - 8 " ?>'."\n") ; ?> I鈥檓 getting second thoughts about whether accepting this job was a good idea.
Advice, Django, and Facebook: <?php header("Content-type: text/html; charset=utf-8");
 *This is a warning to any poor soul who may have to deal with this code.
 *I took over this criminal piece of chaos from a monkey named Joel who I
 assume had been given a typewriter by Mephistopheles himself. For reasons
 I have yet been unable to fathom, he decided to patch together this thing
 *using a BaseX setup hardwired into an unfixably broken Manjaro VM, queried
 by a handwritten plate of uncommented PHP spaghetti fit to feed an army
 of people with a serious death wish, without any framework or CMS.
 The very long BaseX script, very long PHP presenter and very long XSLT
 *stylesheet mostly perform the same heuristic document structuring for
 different components and are supposed to produce compatible results, but I
 bet they have mismatches somewhere.
 *Since Prof. T just wanted a few small functional enhancements, I decided
 to just patch it and keep the general setup. Unless you were hired to
 *correct some spelling mistakes, DO NOT FOLLOW IN MY STEPS. Putting up with
 this simulation of how a goldfish would design a system has literally
 given me CLINICAL DEPRESSION. This is not an exaggeration, I am writing
 this after a prolonged medical therapy - mostly successful, thanks for
 asking, but not fun. I wouldn't wish this code on anybody who isn't a
 manager at Oracle or Facebook, and therefore give you this sincere advice:
 *Nuke this. Take the XSLT if you must, and then nuke the app and recreate it
 *in Django or whatever works for you. I would do it myself, but I risked a
 relapse simply by opening this file again to write this comment.
 *Dear brother or sister, I wish you all the luck and strength in the world
 * and hope it will be enough.
 Farewell.
 error_reporting (E_ALL) ;
 ini_set("display_errors",true);
 print('<?xml version="1.0" encoding="UTF - 8 " ?>'."\n") ; ?>
I鈥檓 getting second thoughts about whether accepting this job was a good idea.

I鈥檓 getting second thoughts about whether accepting this job was a good idea.

Animals, Beautiful, and Children: JUNE 21, 2011 DECEMBER 12019 bublog: This is my first photo with BUB next our last photo together.On the morning of Sunday, December 1st 2019 we lost the purest, kindest and most magical living force on our planet. BUB was cheerful and full of love laying in our bed with us Saturday night, but unexpectedly passed away peacefully in her sleep.. I have always been fully transparent about BUB鈥檚 health, and it was no secret that she was battling a persistent and aggressive bone infection. 聽Even knowing this, we weren鈥檛 expecting her to pass so soon or so abruptly without warning. 聽I truly believe that she willingly made the decision to leave her failing body so that our family would not have to make that difficult decision ourselves.聽It is impossible to put into words the profound effect that BUB has had on my life, on the lives of thousands of homeless pets, and on the lives of those of you that have cared for her as if she were your own family. She taught me everything that I know about unconditional love, she brought my wife Stacy and I together, she鈥檚 the reason we have our beautiful children Rosco and Lula, and she has been a constant source of warmth and love in our lives for the past 8 years. To say that our family is devastated would be an understatement.But most importantly, BUB has made a huge difference in the world of animal welfare, and in the lives of millions of people worldwide. She has literally saved thousands of lives (both pets and humans), she started the first national fund for special needs pets, she was the subject of groundbreaking genetic and biological 聽research, she鈥檚 helped raise over $700,000 for animals in need, and has spread a message of determination, positivity, and perseverance to people all over the world. And even though my heart is absolutely crushed by her graceful departure from planet Earth, 聽I know that her sprit, magic, and overwhelming energy are still with us, reminding us every day to be better.Dearest BUB, I will never forget your generosity, your limitless supply of love, or your uncanny ability to bring so much magic and joy to the world. I am forever honored and humbled that you chose me as your caretaker. Please visit all of us in our dreams often. GOOD JOB BUB.
Animals, Beautiful, and Children: JUNE 21, 2011 DECEMBER 12019
bublog:

This is my first photo with BUB next our last photo together.On the morning of Sunday, December 1st 2019 we lost the purest, kindest and most magical living force on our planet. BUB was cheerful and full of love laying in our bed with us Saturday night, but unexpectedly passed away peacefully in her sleep.. I have always been fully transparent about BUB鈥檚 health, and it was no secret that she was battling a persistent and aggressive bone infection. 聽Even knowing this, we weren鈥檛 expecting her to pass so soon or so abruptly without warning. 聽I truly believe that she willingly made the decision to leave her failing body so that our family would not have to make that difficult decision ourselves.聽It is impossible to put into words the profound effect that BUB has had on my life, on the lives of thousands of homeless pets, and on the lives of those of you that have cared for her as if she were your own family. She taught me everything that I know about unconditional love, she brought my wife Stacy and I together, she鈥檚 the reason we have our beautiful children Rosco and Lula, and she has been a constant source of warmth and love in our lives for the past 8 years. To say that our family is devastated would be an understatement.But most importantly, BUB has made a huge difference in the world of animal welfare, and in the lives of millions of people worldwide. She has literally saved thousands of lives (both pets and humans), she started the first national fund for special needs pets, she was the subject of groundbreaking genetic and biological 聽research, she鈥檚 helped raise over $700,000 for animals in need, and has spread a message of determination, positivity, and perseverance to people all over the world. And even though my heart is absolutely crushed by her graceful departure from planet Earth, 聽I know that her sprit, magic, and overwhelming energy are still with us, reminding us every day to be better.Dearest BUB, I will never forget your generosity, your limitless supply of love, or your uncanny ability to bring so much magic and joy to the world. I am forever honored and humbled that you chose me as your caretaker. Please visit all of us in our dreams often. GOOD JOB BUB.

bublog: This is my first photo with BUB next our last photo together.On the morning of Sunday, December 1st 2019 we lost the purest, kindes...

Best Friend, Friends, and Girls: 11:50 Add Question Q Quora Notifs Home Open Qs More FRitam Chatterjee upvoted this 19 Nov I like girl A. We are very good friends. A's best friend B likes me. Also, A likes a guy C who is my best bro and C likes another girl D who is in a relationship with another guy. What should we do? Priyanka Dhaka 10.7k upvotes by Ritam Chatterjee, Mukesh Sharma, (more) You can apply Bipartite Matching algorithm of Graph Theory. All you have to do is: 1. Put all girls as vertices (a's) in Part A, and boys as vertices (b's) in Part B. 2. Draw an edge between vertex a to vertex b if a likes b. 3. It will be a bipartite graph (there are no edges within vertices of Part A, and same for Part B) unless your friends are not straight. 4. Then find maximum matching for this bipartite graph. (refer this link Maximum Bipartite Matching-GeeksforGeeks) 5. You will get maximum matching as output and the matched edges will be the pairs who should be together. 6. You can apply weighted bipartite matching algorithm if you know how much they love/like each other. In that case, assign weights according to their amount of love. and repeat step 4 and 5. Thanks for asking this question. Finally I have found a real life problem which can be solved by what Prof Panda has been teaching us for 2-3 years. P.S.I can provide you code for both weighted and unweighted maximum bipartite matching which I made for my project. Updated 28 Jul. Graph Theory can Save Relationships
Best Friend, Friends, and Girls: 11:50
 Add Question Q
 Quora
 Notifs
 Home
 Open Qs
 More
 FRitam Chatterjee upvoted this 19 Nov
 I like girl A. We are very good friends. A's best friend B
 likes me. Also, A likes a guy C who is my best bro and
 C likes another girl D who is in a relationship with
 another guy. What should we do?
 Priyanka Dhaka
 10.7k upvotes by Ritam Chatterjee, Mukesh Sharma, (more)
 You can apply Bipartite Matching algorithm of Graph Theory.
 All you have to do is:
 1. Put all girls as vertices (a's) in Part A, and boys as vertices
 (b's) in Part B.
 2. Draw an edge between vertex a to vertex b if a likes b.
 3. It will be a bipartite graph (there are no edges within
 vertices of Part A, and same for Part B) unless your friends
 are not straight.
 4. Then find maximum matching for this bipartite graph. (refer
 this link Maximum Bipartite Matching-GeeksforGeeks)
 5. You will get maximum matching as output and the matched
 edges will be the pairs who should be together.
 6. You can apply weighted bipartite matching algorithm if you
 know how much they love/like each other. In that case,
 assign weights according to their amount of love. and repeat
 step 4 and 5.
 Thanks for asking this question. Finally I have found a real life
 problem which can be solved by what Prof Panda has been
 teaching us for 2-3 years.
 P.S.I can provide you code for both weighted and unweighted
 maximum bipartite matching which I made for my project.
 Updated 28 Jul.
Graph Theory can Save Relationships

Graph Theory can Save Relationships