Jump to content

Hari KT

Members
  • Posts

    131
  • Joined

  • Last visited

Everything posted by Hari KT

  1. Looking at the di benchmark PR https://t.co/dQyK6pLQoH

  2. RT @mark_story: This bloom is massive. Approximately 8" in diameter. http://t.co/R9AvFdOQtD

  3. RT @lisachenko: .@harikt it's possible to do this with #goaop, look at http://t.co/Q6ffJAD1x3 method interceptors can do this easily

  4. Wished if php could have a way to trigger a call to a method before a method. Not talking about a way with __call.See http://t.co/BEdYNBXVkO

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

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

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

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

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

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

  11. 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

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

  13. @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
  14. RT @beausimensen: .@mathiasverraes dropped some knowledge on me again. so happy that some people are willing to share so much. i need to re…

  15. @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 ?
  16. RT @pmjones: Soccer, Development, and The Value Of Teamwork http://t.co/zoef2XjvZb

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

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

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

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

×
×
  • Create New...