recentpopularlog in
« earlier   later »
Scrapy - xpath return parent node with content based on regex match - Stack Overflow
Not the solution I was looking for, but has a useful example of how to lower-case a text string (good idea for sorting case-insensitively).

<code class="language-python">def parse(self, response):
for href in response.xpath('//a[contains(translate(@href,"ABCDEFGHIJKLMNOPQRSTUVWXYZ","abcdefghijklmnopqrstuvwxyz"),"keyword")]/@href'):
full_url = response.urljoin(href.extract())
yield { 'url': full_url, }</code>

Note that XPath 2.0 seems to have 'upper-case' and 'lower-case' functions which simplify this process. Also note that (as of this writing, 2019-10-23) XmlStarlet does not support this function.
xml  xsl  xpath  python  scrapy  examplecode  textprocessing 
october 2019
Siskel & Ebert - "The Terminator" - YouTube
Byron Easley
4 years ago
Everyone is missing the point of this review. Siskel sneaks outside food and beverages in.

For shame Siskel. For shame.
film  review  video  forthecomments 
october 2019
American Psycho -Business Card Scene - YouTube
Zzyzzyzzs
3 years ago
What white folks have instead of rap battles.
film  forthecomments 
october 2019
editor - Disabling swap files creation in vim - Stack Overflow
Set the following variables in .vimrc or /etc/vimrc to make vim put swap, backup and undo files in a special location instead of the working directory of the file being edited:

<code class="language-viml">set backupdir=~/.vim/backup//
set directory=~/.vim/swap//
set undodir=~/.vim/undo//</code>

Using double trailing slashes in the path tells vim to enable a feature where it avoids name collisions. For example, if you edit a file in one location and another file in another location and both files have the same name, you don't want a name collision to occur in ~/.vim/swap/. If you specify ~/.vim/swap// with two trailing slashes vim will create swap files using the whole path of the files being edited to avoid collisions (slashes in the file's path will be replaced by percent symbol %).

For example, if you edit /path/one/foobar.txt and /path/two/foobar.txt, then you will see two swap files in ~/.vim/swap/ that are named %path%one%foobar.txt and %path%two%foobar.txt, respectively.
vim  swapfile  backupfile  settings  configfile  dammitbrain 
october 2019
Bash trap on exit from function - Stack Overflow
Sure enough, it was right there in the docs for 'trap' (and 'return').
Yes, you can trap RETURN :
<code class="language-bash">$ function foo() {
> trap "echo finished" RETURN
> echo "doing some things"
> }</code>
unix  linux  bash  shellscripting  til  traps  solution 
october 2019
Corporate Open Source Anti-patterns - YouTube
This is a presentation that I first gave at FISL 2012 and then gave again (with better audio and video) at the Liferay Symposium in October of 2012. Slides f...
opensource  corporations  conference  talk  doingitwrong 
october 2019
Caroline Calloway Isn’t a Scammer - The Atlantic
Her Instagram account reads like Brideshead Revisited meets Twilight meets Vanity Fair magazine circa 1988, when greed was good and having money was a golden superpower.
kidsthesedays  instagram  imagecrafting 
october 2019
« earlier      later »
per page:    204080120160

Copy this bookmark:





to read