Matching database field names with underscores in dappet.net.
A little trick I learned on using the default dapper.net mapper to match screaming case field names.
seen from Malaysia

seen from Australia
seen from United States

seen from United Kingdom

seen from Malaysia
seen from United States
seen from Bulgaria

seen from Malaysia

seen from Russia
seen from United States

seen from France
seen from Sweden

seen from Germany

seen from France

seen from United States
seen from Sweden
seen from United States
seen from South Africa
seen from China

seen from United States
Matching database field names with underscores in dappet.net.
A little trick I learned on using the default dapper.net mapper to match screaming case field names.
Completitive advantage¹
I mentioned I spend too much time playing Stack Exchange lately before, I’m sure. As a game, it probably looks odd to bystanders – though probably less controversial to the uninitiated eye than your average ego shooter – but the effect on my sleep and family time are very similar to more, ah, conventional, examples.
The good thing is: “I’m learning lots of stuff” is, for once, true. Most of my time is spent reading what my betters answer. Once in while, I try to pick some low hanging fruit the black belts have neglected due to bad language, erratic tagging or questionable user reputation. And once in fortnight, something piques my interest enough that I start to try to unravel the issue even after noticing (usually quite early in the process) that I am thoroughly out of my league.
The latest example for that was a question about extending bash completion to aliases – crucially on Super User, where it went unnoticed by the Stack Overflow heavyweights. My ill-advised attempt to get beyond my barely granted white belt-status in bash-fu by improving the solutions I found on Stack Overflow and the Ubuntu Forums cost me most of a night.
The fruit of that night is alias_completion – a function that will automatically add completion functions for all your aliases to commands that have a completion function defined. Just include it in your .bashrc after bash_completion . It’s smart enough to simply map the original function to an alias if the alias has no arguments, and it will create a wrapper function around the original function to insert the arguments for aliases which do, mapping completion to that. It should also perform well even if you have a lot of aliases, as it relies on two external pipes for input and one temporary file for output total, breaks early out of its main loop and works entirely with bash builtins otherwise.
[EDIT: as noted here, the original code didn’t do much if your setup wasn’t more or less identical to mine. The code has gone through a lot of revisions since and should be far more robust now, besides actually doing what it is meant to even if you have not, somehow, copied my shell setup (ahem).]
You can see the code and some added comments of mine on Super User, or grab the raw code as a Github Gist – source it and let me know what you think.
¹ I‘ll get over the stupid puns one day, I promise. Just not today.
I’ve been spending entirely too much time on [Stack Exchange][1] lately. This has triggered two things: complaints from the wife (but that is off topic to this post) and the creation of a dedicated browser for Stack Exchange courtesy of the fantastic [Fluid][2]. I’ve thrown a load of user scripts at this SSB, and now I am very nearly happy but for a few things. One of the itches I decided to scratch today: the lack of a Dock badge and Growl notifications for new messages in the Stack Exchange MultiCollider (aka global inbox). The result is my very first userscript (and my first foray into JavaScript beyond bookmarklets, ever, too). Grab it and enjoy. [1]: http://stackexchange.com/users/967114?tab=accounts [2]: http://fluidapp.com/
The most of interesting themes at programmers.stackexchange
The most of interesting themes at programmers.stackexchange:
Can you recomended some programmers blog
Which programming language do you realy hate
What is the single most effective thing you did to improve your programming skills
The best programmers rss feeds
Stack Exchange Q&A site proposal: Code Review
I'm supporting a proposal to create a new Q&A website for feedback on projects you're working on, by sharing your code with fellow programmers and getting extensive feedback/review of best practices, design pattern usage, application UI, security, etc..
It's built on the same software as stackoverflow.com, a hugely popular site where over seven million programmers help each other with difficult programming problems. On Stack Overflow the audience votes for the best answer, so the answer you want is usually right at the top, not on page five.
I'm hoping that a site for feedback on projects you're working on, by sharing your code with fellow programmers and getting extensive feedback/review of best practices, design pattern usage, application UI, security, etc. would have the same kind of network effect and turn into an amazing resource.
The proposal process is going on here:
http://area51.stackexchange.com/proposals/11464/code-review?referrer=DsJK_ZIm4S1qjFW8CUacGw2
If you're interested in participating, go to that URL and click on the green "Commit" button.
Thanks!