Jump to content

Hari KT

Members
  • Posts

    126
  • Joined

  • Last visited

Everything posted by Hari KT

  1. RT @dbu: what are the most important bits about symfony a drupal 8 developer needs to know? /cc @Crell

  2. RT @cschorn: The perfect framework for me might just be #slimPHP plus the @auraphp components …

  3. RT @nomadphp: Learn abotu the PHP framework Rect as @jmikola presents "Async PHP with React" http://t.co/r9VkjQOPyk

  4. RT @mlaphp: You can now purchase "Modernizing Legacy Applications in PHP" in hard copy from Lulu! http://t.co/V8BOPdz53Z

  5. Any recommendation for a wifi router? / cc @noufalibrahim @jaseemabid . Thank you.

  6. RT @MarcJSchmidt: Next gen CMS for Symfony. http://t.co/FdtYHDyNjl - now with a own website with first information about the project.

  7. If anyone missed my question lately https://t.co/HG5x2Xkn31 are you making use of the signal/events in the core? Eg : before route, dispatch

  8. "I have a project, can we partner?" I don't know who you are. Then how could I partner with you :-) .

  9. @horst good to hear. I have another patch which will more more awesome then . Don't forget to add `private static $mysql_gone = false;` in the `wire/core/DatabaseQuery.php`. And the execute changes to public function execute() { try { $database = $this->wire('database'); $query = $database->prepare($this->getQuery()); $result = $query->execute(); if (self::$mysql_gone) { self::$mysql_gone = false; } } catch (Exception $e) { if (self::$mysql_gone) { throw new Exception("It is better to exit than throwing error " . $e->getMessage()); } else { // try once again $msg = $e->getMessage(); if (strstr($msg, 'MySQL server has gone away')) { self::$mysql_gone = true; $database->closePdo(); sleep(20); $this->execute(); } else { throw new Exception($e->getMessage()); } } } return $query; } Discussion on github https://github.com/ryancramerdesign/ProcessWire/pull/563#issuecomment-50871518
  10. RT @beausimensen: .@mathiasverraes dropped some knowledge on me again. so happy that some people are willing to share so much. i need to re…

  11. @horst, so how is things working . I was forced to fix with a different fix again . It was in `DatabaseQuery` execute method. public function execute() { try { $database = $this->wire('database'); $query = $database->prepare($this->getQuery()); $query->execute(); } catch (Exception $e) { $msg = $e->getMessage(); if (strstr($msg, 'MySQL server has gone away')) { $database->closePdo(); } throw new Exception($e->getMessage()); } return $query; } and in the `WireDatabasePdo` adding a new method public function closePdo() { $this->pdo = null; } Hope this fix will help everyone . One still problem is one query can be missed which got the failure. To execute that I think it is good to call `execute()` again with some flag set. Your thoughts ?
  12. RT @pmjones: Soccer, Development, and The Value Of Teamwork http://t.co/zoef2XjvZb

  13. RT @spiffyjr: @pmjones I've updated the README.md for SpiffyFramework to credit your "A" from ADR. Thanks!

  14. RT @shameerc: @harikt Yeah! Been there quite a few times when I worked from home. Power/internet won't work when needed the most :(

  15. RT @jacques_thekit: @harikt Happy to help! Hopefully this leads to more.

  16. RT @CalEvans: Want to play with #WordPress 4 Beta without risking your site? Play in the @getpantheon sandbox.http://t.co/V0jGQ4esQY

  17. RT @jwage: DDD - Data Driven Decision making

  18. Aura Framework V2: The Missing Manual http://t.co/ipveEvaW0a

  19. RT @shanselman: American out of office: "I'm on vacation but will check email hourly. Reach me on my mobile."European: "I am unavailable u…

  20. Happy B'day @shameerc . Have a nice day dude :-)

  21. Underground programming: Phystrix: latency and fault tolerance library for ... http://t.co/jizwLSjk8W

×
×
  • Create New...