|
A while back Peter Norvig posted a wonderful pair of articles about regex golf. The idea behind regex golf is to come up with the shortest possible regular expression that matches one given list of strings, but not the other. “Regex Golf,” by Randall Munroe. In the first article, Norvig runs a basic algorithm to recreate and improve the results from the comic, and in the second he beefs it up with some improved search heuristics.
|
|
A while back Peter Norvig posted a wonderful pair of articles about regex golf. The idea behind regex golf is to come up with the shortest possible regular expression that matches one given list of strings, but not the other. “Regex Golf,” by Randall Munroe. In the first article, Norvig runs a basic algorithm to recreate and improve the results from the comic, and in the second he beefs it up with some improved search heuristics.
|
|
AdRoll is building products that allow customers of any size, big or small, with a lot of marketing experience or none, to run high performing marketing campaigns. And with over 20,000 customers in over 150 countries, we’ve been fairly successful in this. Our main product has been Retargeting, the basic concept is very simple: when one of your customers leaves your site without buying, we enable you to reach them with the most appropriate....
|
|
The second edition of the Little MongoDB Book Italian Edition is finally up. It is aligned to MongoDB 2.6 and includes a much needed introduction to the Aggregation Frameworks. Enjoy.
|
|
Armenistis - Ikaria . Hydra (island). No cars or motorcycles allowed . Kathisma Beach - Lefkada . Kefalonia Island . Melissani Cave . Momnevasia . Navagio bay . Papafragas beach . Preveza at DuckDuckGo .
|
|
Ambuluwawa Temple . Sri Lanka Travel Guide | Best Tips For Your Trip (Nomadic Matt) . The best train journeys in Sri Lanka . The Safari Hotel (great area to go on safari, see leopards) .
|
|
Bernina railway . Lauterbrunnen village . Lion Monument (Lucerne) . Lucerne lake/city . Oeschinen Lake .
|
|
Best Thai street food: Bangkok stall Raan Jay Fai awarded with Michelin star . Buddha Statue in Forest Pak Chong . Phanom Rung Historical Park . Rama IX park, Bangkok . Sanctuary of Truth . What makes Bangkok so popular? (Quora) .
|
|
Causeway Bay pedestrian crossing . Hong Kong's most breathtaking views: where to glimpse the city from above . Hotel Icon (allegedly amazing service/extras) . Lin Heung Tea House (bakery/tea/dim sum) . Mak's Noodle (Jordan) . Siu yuk (Roasted Pig) . Tsang Tsou Choi (King of Hong Kong) . Tsim Chai Kee (recommended over Mak's wonton/soup).
|
|
18 free things to do in Barcelona . Dessert place you can recommend in Barcelona? (Twitter) . La Pedrera .
|
|
An Iceland travel log . Apartmenthouse.is for local flats. Blue lagoon spa. citywalk.is : Free walking tour. Design March . Drive it yourself: The Snæfellsnes peninsula . Efstidalur : farm to table restaurant. Eight must-see spots in Iceland's wild west . Fridrikv restaurant . Gangleri outfitters . Golden circle's waterfalls and geysers. grillmarkadurinn.is restaurant. Horse farm hotel . Hotel Budir . How to have a budget brea..
|
|
With open source nature of android and it’s vast open source ecosystem, we often (want to) contribute to an open source library. Here I have tried to cover some points to be kept in mind for library developers and contributers.
|
|
With open source nature of android and it’s vast open source ecosystem, we often (want to) contribute to an open source library. Here I have tried to cover some points to be kept in mind for library developers and contributers.
|
|
Pixel art is so much fun! This blog post walks through how to read a matrix-like list with Sass and generate Mario pixel art from box shadows.
|
|
I’ve added the ability to deploy a Kubernetes cluster with Oh-My-Vagrant ( omv ). I’ve also built an automated developer experience so that you can test your Kubernetes powered app in minutes. If you want to redeploy a new version, or see how your app behaves during a rolling update , you can use omv to test this out in minutes! I’ve recorded a screencast (~15 min), if you’d like to see some of this in action.
|
|
I’ve added the ability to deploy a Kubernetes cluster with Oh-My-Vagrant ( omv ). I’ve also built an automated developer experience so that you can test your Kubernetes powered app in minutes. If you want to redeploy a new version, or see how your app behaves during a rolling update , you can use omv to test this out in minutes! I’ve recorded a screencast (~15 min), if you’d like to see some of this in action.
|
|
After my previous post , I was asked what I’m thinking about the notion of crowd funding, which is currently all the rage. The answer is complicated. I’m focusing right now on things like kick starter and its siblings, because I’m familiar with how they work. The basic premise is pretty great. You have some idea (usually a product) that require initial capital and has some well known market. By directly contacting the target audience, we....
|
I created my own Serviio service script, I’m sharing it for reference and free usage here. If you don’t know Serviio and you need a Media Server in your home network, this is your best choice. check it out here. Actually, you only need to alter “/etc/default/serviio” with your username and path to Serviio installation. […]
|
|
pEveryone has specific tips and shortcuts that they have picked up from various sources, including the following:/p ul liTrial amp; error or self-discovery/li liFrom a friend or colleague/li liReading books, blog posts, articles/li liWatching videos, conferences/li liFormal education/li /ul pRegardless of how one has gained these skills, it is obvious that they increase their effectiveness and efficiency at tasks. With enough exposure and t....
|
|
After announcing travis-cargo a few days ago in Helping Travis catch the rustc train , I got some great hints/contributions from Jan Segre and had a fun little time automating code coverage collection via coveralls.io . Unfortunately, this is a breaking change for existing users of travis-cargo, but the migration is easy. (If you’re wondering what travis-cargo is, see the linked post .) Version 0.1 of travis-cargo is now av....
|
|
I have spent the last week or so fixing bugs in Winter (our programming language) found by our new fuzz testing code. Fuzz testing is the process of sending lots of random input to a program, to try and uncover crashes or other undesirable behaviour from the program. If you are writing a compiler, I highly recommend fuzz testing it, it seems like a very effective way of finding bugs. Some more details about our fuzzing code: It'....
|
|
This is what is working for me and may not be the best for you. This is very beginner level. I am using the Git Bash from here. Starting a new repo Create the repo in GitHub, include readme. Create a team in Github and make sure you have access to the repo. Create a [...]
|
|
This is what is working for me and may not be the best for you. This is very beginner level. I am using the Git Bash from here. Starting a new repo Create the repo in GitHub, include readme. Create a team in Github and make sure you have access to the repo. Create a [...]
|
|
Avoid adding "drive-by formatting changes" to commits
-
www.databasesandlife.com
-
11 years ago
-
eng
Recently, when reviewing code, I saw a commit resembling the following: - if (x) foo();
- if (y) bar();
+ if (y) {
+ bar();
+ }
It’s not easy to see that of the two “if” statements, only one was actually deleted. The other had its formatting changed, but was otherwise not altered. To prevent this, go through the “diff” before doing the commit. Revert any changes which have happened which haven’t changed the functionality of the c..
|
|
Based on instructions from Building clang-format and friends on OSX Mountain Lion . #!/bin/bash set -o nounset set -o errexit # Based on instructions from: # http://blog.hardcodes.de/articles/63/building-clang-format-and-friends-on-osx-mountain-lion readonly LLVM_DIR_PATH='/tmp/llvm' update_repo() { if [[ ! -d $1 ]]; then git clone $2 else cd $1 git pull cd .. fi cd .. } update_all_repos() { update_repo "llvm" "http://llv....
|
|
Basic iOS auto layout usage. See Adopting Auto Layout and Visual Format language for reference. - (instancetype)initWithFrame:(CGRect)frame { self = [super initWithFrame:frame]; if (self) { // Disable autoresizing mask translation for parent. self.translatesAutoresizingMaskIntoConstraints = NO; _subview1 = [[UIView alloc] init]; // Disable autoresizing mask translation for subview. _subview1.translatesAutoresizingMaskIntoConstra....
|
|
I was humbled and encouraged to learn that I was nominated for Nordic Startup Awards category of Developer Hero for my contributions to the developer community. You can vote for me or one of the other great candidates here. For the last ten years, I have felt that the main pain points of the software development world could be fixed by empowering and inspiring those who do the work. From my perspective, I have focused on the developers.
|
|
Since my last post, I dropped by an Apple Store to take a look at the 2015 MacBook. It is difficult to overstate how startlingly small the new machine is in person. I may be biased by the internal specifications, but the impression is much more 'big tablet' than 'small laptop'. The other standout feature was the touchpad. It continues Apple's tradition of high-quality touchpad implementations, removes the mechanicical switch and hinge, and ....
|
|
Comment on Be careful how you rsyslog by Elmer Fud
-
bandcamptech.wordpress.com
-
11 years ago
-
eng
If your disk fills up your queue will still block, or if the disk is somehow unavailable for writing. You might want to also consider adding the following 2 options as well. $ActionQueueMaxDiskSpace 512m # limit amount of disk space used $ActionQueueTimeoutEnqueue 0 # Drop messages with no wait when they can't be queued
|
Bandcamp was offline briefly yesterday due to what I like to call an unexpected single point of failure. Good systems design is all about addressing single points of failure, making sure you have redundancies in place, but sometimes you discover single points of failure that you didn’t realise you had. Yesterday’s problem was caused by […]
|
|
pTests which utilize external services or interact with the database are typically the culprits of long-running tests. We want to keep our tests quick. It is possible to mock/stub out long running database and/or external services calls. This reduces the time a test suite takes to execute./p h2Unsheathe the Double/h2 pIn Ruby, one approach to mocking is by completely replacing the object of interest with a lightweight a href=http://www.ruby....
|
|
I’ve been putting off configuring my continuous integration settings to match the Rust train model: it involves non-trivial branching on the configuration, and duplicating that over a pile of repos is not something I looked forward to. So, instead, I wrote travis-cargo to make things easier. Branching on configuration? One approach to developing Rust libraries once 1.0 is released will be to test by building with the latest stable compi....
|
|
I’ve been having a lot of fun recently solving “little” problems in Rust. I have a long term project to make something for displaying my (GPS-tagged) photos nicely and, along the way, I’ve discovered and filled in a few gaps by creating focused crates for small tasks. My travels over the last few years, as displayed by the current web interface (served to the browser via Rust, of course). Once an idea is formed, cargo means ....
|
|
Picking up the art blogging again after a long hiatus. Recently I’ve been thinking about constraints a lot, and finding out how helpful they are. I think they are especially helpful for artists. For example, since I started my new job last year, I am in the habit of taking photos on the way to or from work. I use the following constraints: Use only the iPhone with no extra lenses (digital filters/manipulation OK, but only on the iPh....
|
|
Picking up the art blogging again after a long hiatus. Recently I’ve been thinking about constraints a lot, and finding out how helpful they are. I think they are especially helpful for artists. For example, since I started my new job last year, I am in the habit of taking photos on the way to or from work. I use the following constraints: Use only the iPhone with no extra lenses (digital filters/manipulation OK, but only on the iPh....
|
|
Advanced Oracle Troubleshooting Guide – Part 12: control file reads causing enq: SQ – contention waits?
-
tanelpoder.com
-
11 years ago
-
eng
Vishal Desai systematically troubleshooted an interesting case where the initial symptoms of the problem showed a spike of enq: SQ – contention waits, but he dug deeper – and found the root cause to be quite different. He followed the blockers of waiting sessions manually to reach the root cause – and also used my @ash/ ash_wait_chains.sql and @ash/ event_hist.sql scripts to extract the same information more conveniently (note that he ..
|