If you select an element either via the "Inspect element" context menu item or manually through the Elements pane you can hit Esc to toggle the Script Console you can use the following snippet:
> var target = $($0); undefined > target [<div class="container-fluid">...</div>] > target.find('a'); [<a href="#anchor1">...</a>, <a href="#anchor2">...</a>]
You'll be able to run the usual jQuery methods on the collection.
- Borrowed from the Salt docs:
- "Salt delivers a dynamic communication bus for infrastructures that can be used for orchestration, remote execution, configuration management and much more."
This HOWTO is intended to get you up and running a master with one or more salt minions that you can remote-execute commands on. I'm not covering actual usage here, just providing a condensed guide on how to actually get up and running.
I recently had to migrate
django.contrib.comments from a legacy app to a newer app, also in Django. I only wanted to move relevant comments that were unflagged (no need to duplicate spam!)
When using the
data-* HTML5 attribute on elements, be careful not to use the
watch keyword as it's a non-standard reserved object attribute in Mozilla browsers used for debugging.
If you have a Django
forms.Form with two or more fields to validate that require information from each other you can test these in the forms'
- Chrome Devtools: Get current element selection as jQuery-wrapped collection in Script Console
- Multiple EC2 instances with boto and Salt
- Django: get all unflagged comments for a Model
- jQuery.data() caveat for HTML5 in Firefox
- Django: handle form validation with combined POST and FILES data
- November (2)
- Code Snippet (7)
- DevOps (5)
- Django (1)
- Game Development (1)
- Graphics (1)
- Hacks (4)
- OS X (1)
- Python (4)
- Web Development (8)
- Matt Stevenson (22)