recentpopularlog in

dirtystylus : debugging   34

Thank you, Guido | Dropbox Blog
“When asked, I would give people my opinion that maintainable code is more important than clever code,” he said. “If I encountered clever code that was particularly cryptic, and I had to do some maintenance on it, I would probably rewrite it. So I led by example, and also by talking to other people.”
dropbox  python  techculture  maintainability  codearchitecture  debugging  codestyle  technicaldebt 
november 2019 by dirtystylus
Better way to theme paragraphs edit page [#2870463] |
I eventually wrote a really cool function for traversing down $variables arrays/objects for a string and replacing it with the reference to call that string. (Feel free to steal this everyone, it's awesome):
drupal  drupal7  module:paragraphs  layout  contentadmin  debugging 
june 2017 by dirtystylus
Debug a PHP app in a Docker container with Xdebug | Blog |
set xdebug.remote_host to the IP address of your Mac

When the LAMP stack is running in a container though, Docker’s network stack sits between the running processes inside the container and the host machine that’s running Docker Machine. This means that when I run a web server in a container, then open that site in my browser, the web server inside the container will see that the request originated from a host with an IP like which is the IP address of the host (Mac in my case) on the virtual network stack that Docker runs on the host.
docker  php  xdebug  vscode  ide  webdev  debugging  kalabox 
january 2017 by dirtystylus
Entity metadata wrapper (entity_metadata_wrapper) in Drupal 7
// If your object property does not exist, you will get a fatal error. To avoid this you can control the existence of it.
entity_metadata_wrapper  entities  drupal7  drupal  debugging 
april 2016 by dirtystylus
Pesticide - Kill Your Css Layout Bugs
Seriously, if you are up right now trying to solve some inane CSS bug, go get by (h/t )
css  debugging  tools  bookmarklet 
september 2014 by dirtystylus

Copy this bookmark:

to read