metapython - Macro and code quoting facility for Python
yesterday
"Metapython includes an import hook that recognizes ".mpy" files as metapython files and performs macro definition, expansion, and code instantiation at import-time."
python
macros
metaprogramming
yesterday
Navigate Mac OS X dialog boxes using only your keyboard | MacYourself
4 days ago
"Apple just has it disabled by default for some unknown reason. ... In the Keyboard & Mouse section of System Preferences there is a Keyboard Shortcuts tab." seriously?
mac
keyboard
tips
tab
4 days ago
Ghostery
4 days ago
"Ghostery tracks the trackers and gives you a roll-call of the ad networks, behavioral data providers, web publishers, and other companies interested in your activity. [...] allows you to block scripts from companies that you don't trust, delete local shared objects, and even block images and iframes."
browser
extensions
privacy
4 days ago
Stochastic Bigraphs (Krivine, Milner, Troina) [PDF]
5 days ago
"In this paper we present a stochastic semantics for Bigraphical Reactive Systems. A reduction and a labelled stochastic semantics for bigraphs are defined. As a sanity check, we prove that the two semantics are consistent with each other. We illustrate the expressiveness of the framework with an example of membrane budding in a biological system."
papers
robin-milner
bigraphs
stochastic
computational-biology
reactive-systems
5 days ago
The Bigraphical Model (Robin Milner)
5 days ago
"Bigraphs are a rigorous generic model for systems of autonomous agents that interact and move among each other, or within each other. They can be specialised to very different applications. In particular, they offer a unified platform for ubiquitous systems. They are proposed as a Ubiquitous Abstract Machine, playing the foundational role for ubiquitous computing that the von Neumann machine has played for sequential computing."
bigraphs
robin-milner
process-calculus
5 days ago
Slicing of a numpy 2d array, or how do I extract an mxm submatrix from an nxn array (n>m) - Stack Overflow
20 days ago
x[numpy.ix_([1,3],[1,3])]
a[[1,3],:][:,[1,3]]
numpy
slicing
submatrix
a[[1,3],:][:,[1,3]]
20 days ago
Tracklet Descriptors
27 days ago
"Devise statistics of the video signal that are insensitive to nuisance factors
Spatio-temporal descriptors that capture the local structure around trajectories
Model the temporal evolution of the local structures"
computer-vision
time-series
statistics
dynamic-time-warping
Spatio-temporal descriptors that capture the local structure around trajectories
Model the temporal evolution of the local structures"
27 days ago
Two problems (Ned Batchelder)
27 days ago
"Some people, when confronted with a problem, think "I know, I'll use multithreading". Nothhw tpe yawrve o oblems."
programming
funny
quotes
two-problems
jwz
27 days ago
Two Happiness Tips Discussed (Will Wilkinson)
28 days ago
"You know? This makes me feel lousy. If I had to name my single greatest flaw, I'd say it's dereliction of friendship. I don't actively cultivate new friendships. They either happen to me or they don't, and mostly they don't because I don't put in much effort from my side. I'm not sure why, but I think it's mostly because I find the idea of extending a hand stressful. Worse, I'm terrible at keeping in touch with old friends. After too much time without calling or emailing or texting or anything, I feel really embarrassed. And then, perversely, that embarrassment makes me more not less averse to reestablishing contact. Then a really long time passes and I'm sort of mortified by myself, but at this point there's no way I'm calling because that would mean facing up to the fact that I'm a terrible friend. This makes no sense. If a friend I haven't spoken to for years suddenly calls me up, I'm delighted. So why should I hesitate to delight old friends? Maybe they'll be mad at me? I really need to get over this. Anyway, go get a drink with a friend tonight! Call an old friend this weekend! (That's right. Later. Not today.)" (oh man, this sounds far too familiar)
happiness
friendship
social
28 days ago
[1203.0786] Approximate Computation and Implicit Regularization for Very Large-scale Data Analysis
4 weeks ago
"Database theory and database practice are typically the domain of computer scientists who adopt what may be termed an algorithmic perspective on their data. This perspective is very different than the more statistical perspective adopted by statisticians, scientific computers, machine learners, and other who work on what may be broadly termed statistical data analysis. In this article, I will address fundamental aspects of this algorithmic-statistical disconnect, with an eye to bridging the gap between these two very different approaches. A concept that lies at the heart of this disconnect is that of statistical regularization, a notion that has to do with how robust is the output of an algorithm to the noise properties of the input data. Although it is nearly completely absent from computer science, which historically has taken the input data as given and modeled algorithms discretely, regularization in one form or another is central to nearly every application domain that applies algorithms to noisy data. By using several case studies, I will illustrate, both theoretically and empirically, the nonobvious fact that approximate computation, in and of itself, can implicitly lead to statistical regularization. This and other recent work suggests that, by exploiting in a more principled way the statistical properties implicit in worst-case algorithms, one can in many cases satisfy the bicriteria of having algorithms that are scalable to very large-scale databases and that also have good inferential or predictive properties."
papers
regularization
surveys
algorithms
via:shivak
4 weeks ago
Cubism.js
4 weeks ago
"Cubism.js is a D3 plugin for visualizing time series. Use Cubism to construct better realtime dashboards, pulling data from Graphite, Cube and other sources."
javascript
libs
time-series
d3
visualization
4 weeks ago
Postgres Guide
4 weeks ago
"Postgres Guide is intended to highlight best practices and great features that exist within Postgres."
postgresql
tips
4 weeks ago
CodeMirror
5 weeks ago
"CodeMirror is a JavaScript library that can be used to create a relatively pleasant editor interface for code-like content ― computer programs, HTML markup, and similar. If a mode has been written for the language you are editing, the code will be coloured, and the editor will optionally help you with indentation."
javascript
libs
programming
editor
5 weeks ago
Python interface for the Z3 Theorem Prover (Microsoft Research)
6 weeks ago
"Z3 is a high-performance theorem prover. Z3 supports arithmetic, fixed-size bit-vectors, extensional arrays, datatypes, uninterpreted functions, and quantifiers."
python
theorem-prover
msr
6 weeks ago
SQLPython v1.6.1 documentation
6 weeks ago
"SQLPython is a command-line interface to relational databases. It was created as an alternative to Oracle’s SQL*Plus, and can likewise be used instead of postgres’ psql or mysql’s mysql text clients. For the most part, it can be used as any other text-based SQL interface would; this document focuses on the extra capabilities."
python
sql
cli
database
6 weeks ago
Right-click in Remote Desktop [Archive] - The macosxhints Forums
8 weeks ago
"Remote Desktop Connection uses CONTROL+SHIFT+click as the right-click function."
remote-desktop
mac
right-click
windows
8 weeks ago
What she Really said: Fighting Sexist Jokes the Geeky Way (Jessamyn Smith)
8 weeks ago
"It has been fascinating to watch the ongoing reactions. There have been complaints that we have too many bots in the channel now. There have been complaints about it spamming the channel. There were several “Make them shut up!” responses. These are not reactions I have seen the other bots elicit, certainly not with such intensity. One person even complained about the name being too long, though to his credit he realized right after he said that that several other people in the channel also have very long handles.
To me, all of this seems like typical geek behaviour: something is making them uncomfortable, and so they attack it on “rational” grounds. Most likely, they aren’t even aware of the gut reaction fueling their logic. Interestingly, the intensity of emotion seemed to carry over into subsequent discussions, including one about women in the Python community. For the most part, I have not responded to the comments. I did shorten the bot’s name to “twsrs”, and I pointed out that it’s trivially easy to have the bot not say anything: don’t say TWSS."
gender
irc
bot
twss
programming
culture
politics
To me, all of this seems like typical geek behaviour: something is making them uncomfortable, and so they attack it on “rational” grounds. Most likely, they aren’t even aware of the gut reaction fueling their logic. Interestingly, the intensity of emotion seemed to carry over into subsequent discussions, including one about women in the Python community. For the most part, I have not responded to the comments. I did shorten the bot’s name to “twsrs”, and I pointed out that it’s trivially easy to have the bot not say anything: don’t say TWSS."
8 weeks ago
mediawiki-parser/parsers.rst at master · erikrose/mediawiki-parser · GitHub
8 weeks ago
"This is an archive about the research that was made by Erik Rose and Peter Potrowl in order to find and finally build a good Python parser for MediaWiki's syntax."
python
parsers
8 weeks ago
erikrose/mediawiki-parser · GitHub
8 weeks ago
"This is a parser for MediaWiki's (MW) syntax. It's goal is to transform wikitext into an abstract syntax tree (AST) and then render this AST into various formats such as plain text and HTML."
parsers
mediawiki
python
libs
8 weeks ago
Emojicons
9 weeks ago
"Welcome to Emojicons, your one-stop plot of internet land for every ლ(╹◡╹ლ), ¯_(ツ)_/¯, ಠ_ಠ, and (╯°□°)╯︵ ┻━┻ you can possibly imagine."
emoticons
unicode
funny
via:migurski
9 weeks ago
parallax distance (David Hogg)
9 weeks ago
"You are outside after the rain late in the day and you see a rainbow. What is the parallax distance to the rainbow?"
parallax
9 weeks ago
A kaleidoscope of responses to Dubner’s criticisms of our criticisms of Freaknomics (Andrew Gelman)
9 weeks ago
nice ... "Sometimes I think that Levitt, Dubner, and their crew are basing their judgment on the “What would Robert Heinlein think” principle. ESP? Check. Absurd claims of sex differences? Check. Voting is for suckers? Check. Our climate problems solved by the good old American knowhow of a genius billionaire who got a Ph.D. at age 23 and now has a plan to save the world and make another fortune? Check, check, check, check, check."
freakonomics
heinlein
9 weeks ago
The Julia Language
9 weeks ago
"Julia is a high-level, high-performance dynamic programming language for technical computing, with syntax that is familiar to users of other technical computing environments. It provides a sophisticated compiler, distributed parallel execution, numerical accuracy, and an extensive mathematical function library. The library, mostly written in Julia itself, also integrates mature, best-of-breed C and Fortran libraries for linear algebra, random number generation, FFTs, and string processing."
proglang
julia
scicomp
via:kje
9 weeks ago
Following up on dames getting Ph.D.s in international relations (Daniel W. Drezner)
9 weeks ago
"So treating dads and mom the same (tenure clock extensions, course reductions for all faculty, regardless of gender) really isn't treating them the same at all -- because there's a higher chance that dads can physically use the extra time for research while moms are still brain dead from round-the-clock nursing and infant childcare. By my third kid, I finally figured out that the best strategy was NOT to use maternity leave right after childbirth; instead, I taught, and negotiated to bank the maternity leave time for the following year, when I was rested enough to make the most of that time to write my next book." [amy zegart]
gender
academia
9 weeks ago
I abandon my abusive relationship with Facebook (Mark Dominus)
10 weeks ago
"This was, for me, just a little thing. But it was the last straw because when I read Facebook's explanation of why this was, or wasn't, counter to their policy, I realized that with Facebook, you cannot tell the difference.
For any particular appalling breach of personal privacy you can never guess whether it was something that they will defend (and then do again), or something that they will apologize for (and then do again anyway). The repeated fuckups for which they are constantly apologizing are indistinguishable from their business model."
facebook
privacy
For any particular appalling breach of personal privacy you can never guess whether it was something that they will defend (and then do again), or something that they will apologize for (and then do again anyway). The repeated fuckups for which they are constantly apologizing are indistinguishable from their business model."
10 weeks ago
My Git Habits (Mark Dominus)
10 weeks ago
"Often I'll be in the middle of something, with a dirty work tree, when it's time to leave for the day. Then I'll just commit everything with the subject WIP ("work-in-progress"). First thing the next morning I'll git-reset HEAD^ and continue where I left off.
So the model is that the current head is usually a terrible mess, accumulating changes as it moves forward in time. When I'm done, I will merge the topic into master and run the tests. ..."
git
programming
workflow
So the model is that the current head is usually a terrible mess, accumulating changes as it moves forward in time. When I'm done, I will merge the topic into master and run the tests. ..."
10 weeks ago
mithro/python-datetime-tz · GitHub
10 weeks ago
"A version of the python-datetime module which deeply cares about timezone
(instead of ignoring the problem). The module automatically detects your
current timezone using a variety of different methods.
The module also includes extra functionality;
* Full integration with pytz (just give it the string of the timezone!)
* Proper support for going to/from Unix timestamps (which are in UTC!).
* Smart Parsing which attempts to accept all formats."
python
libs
datetime
timezone
(instead of ignoring the problem). The module automatically detects your
current timezone using a variety of different methods.
The module also includes extra functionality;
* Full integration with pytz (just give it the string of the timezone!)
* Proper support for going to/from Unix timestamps (which are in UTC!).
* Smart Parsing which attempts to accept all formats."
10 weeks ago
Why Conservatives Are Still Crazy After All These Years (Rick Perlstein)
10 weeks ago
"Here's the problem: To this way of thinking, the triumph of enlightenment liberalism is always inevitable. Now it’s demographics that's the inexorable force (I debunk that argument here); in the 1960s, it was the certainty that Americans would never consent to give up their big-government perks. And yet, somehow, alongside the ordinary tacking of American political preference between Democrats and Republicans, conservatism continues to thrive. That's because power begets power: Democrats can be counted on to compromise with conservative nuttiness, and the media can be counted on to normalize it. And it's because there will always be millions of Americans who are terrified of social progress and of dispossession from whatever slight purchase on psychological security they've been able to maintain in a frightening world. And because there will always be powerful economic actors for whom exploiting such fear, uncertainty and doubt pays (and pays, and pays).
Conservatism is not getting crazier, and it's not going away, either. It's just getting more powerful. That's a fact that a reality-based liberal just has to accept – and, from it, draw strength for the fight."
conservatism
history
Conservatism is not getting crazier, and it's not going away, either. It's just getting more powerful. That's a fact that a reality-based liberal just has to accept – and, from it, draw strength for the fight."
10 weeks ago
advice
ai
ajax
algorithms
amazon
analysis
apache
architecture
art
asp.net
audio
bayesian
bioinformatics
biology
blogs
book
books
brain
browser
business
c
caching
charts
china
clustering
code
color
community
comparison
compsci
computing
concurrency
converter
cool
course
courses
critique
css
culture
data
data-mining
database
debugging
delicious
design
dip
distcomp
django
eclipse
economics
education
email
erlang
evolution
extension
facebook
finance
firefox
flash
food
free
functional
funny
game
genetics
geo
geometry
git
google
graph
graphics
gui
hardware
haskell
history
html
http
humor
image
internet
interview
java
javascript
journalism
jquery
language
latex
library
libs
links
linux
logic
mac
machine-learning
maps
marketing
markets
math
matlab
matrix
memory
microsoft
mobile
modeling
movie
movies
music
net
network
networks
news
nlp
notes
numeric
numpy
opensource
optimization
papers
parsing
pdf
people
performance
philosophy
photos
physics
pkg
playlist
plc
plotting
plugins
politics
postgresql
privacy
probability
productivity
prog
proglang
programming
psychology
python
quotes
R
read
rec
recipes
ref
reference
regression
religion
research
rest
review
reviews
ruby
scalability
scicomp
science
scifi
search
security
shell
slides
social
social-software
software
sql
startup
statcomp
statistics
stats
storage
swdev
sysadmin
tdd
teaching
tech
testing
text
theory
time-series
tips
tutorial
tutorials
twitter
ui
unicode
unix
usa
utils
via:chl
video
videos
vim
visualization
web
webapp
webapps
webdev
wiki
windows
writing
xml