|
TODO]{.todo .TODO} Typit: typing game for Emacs . [TODO]{.todo .TODO} pyimports . [TODO]{.todo .TODO} Sriram Krishnaswamy's init . [TODO]{.todo .TODO} Using a Node repl in Emacs with nvm and npm . [TODO]{.todo .TODO} arview . [TODO]{.todo .TODO} company-flx: fuzzy matching to company . [TODO]{.todo .TODO} Integration of the Go 'guru' analysis tool into Emacs . [TODO]{.todo .TODO} company-mode/company-statistics: Sort c....
|
|
JavaScript Promises provide a strong programming model for the future of JavaScript development. So here I’m playing with promises. First I need a bit of a package.json file: { "name": "promises", "scripts": { "test": "node node\_modules/mocha/bin/mocha" }, "devDependencies": { "chai": "^1.10.0", "mocha": "^2.0.1" }, "dependencies": { "q": "^1.1.2" } } Now I can write my first test (test/promises_test.js): var Q = require('q'); var expect =..
|
|
SoundCloud in Scalding case study by Concurrent Inc.
-
developers.soundcloud.com
-
11 years ago
-
eng
Recently we teamed up with Concurrent Inc., the backers of the data-processing framework Cascading, to do a case study of how we use…
|
|
SoundCloud in Scalding case study by Concurrent Inc.
-
developers.soundcloud.com
-
11 years ago
-
eng
Recently we teamed up with Concurrent Inc., the backers of the data-processing framework Cascading, to do a case study of how we use…
|
|
So far in this series , I’ve taken a basic calculator written in Java and transformed it from a command-oriented procedural design into a more functional style. In some ways, this has made for simpler code: calculator state is better encapsulated in value objects, and explicit control flow structures have been replaced with domain-specific higher order functions. Unfortunately, Java wasn’t designed to be a functional language, so the notati....
|
|
In the last post in this series we saw some simple examples of linear programs, derived the concept of a dual linear program, and saw the duality theorem and the complementary slackness conditions which give a rough sketch of the stopping criterion for an algorithm. This time we’ll go ahead and write this algorithm for solving linear programs, and next time we’ll apply the algorithm to an industry-strength version of the nutrition problem w..
|
|
In the last post in this series we saw some simple examples of linear programs, derived the concept of a dual linear program, and saw the duality theorem and the complementary slackness conditions which give a rough sketch of the stopping criterion for an algorithm. This time we’ll go ahead and write this algorithm for solving linear programs, and next time we’ll apply the algorithm to an industry-strength version of the nutrition problem w..
|
|
In the last post in this series we saw some simple examples of linear programs, derived the concept of a dual linear program, and saw the duality theorem and the complementary slackness conditions which give a rough sketch of the stopping criterion for an algorithm. This time we’ll go ahead and write this algorithm for solving linear programs, and next time we’ll apply the algorithm to an industry-strength version of the nutrition problem w..
|
|
I came across an interesting problem recently in some JDBC code that was inserting rows into a Netezza database. The Java code was doing something like this: Statement stmt ... for( SomeObject o : listOfObjects) { String sql = "INSERT INTO tbl(col1, col2) values (?,?)"; ... stmt.addBatch(sql); } stmt.executeBatch(); On the “executeBatch()”, a SQLException was being thrown that said “failed to create external table for bulk load”. ..
|
6:45 pm, Nov 30, 2014. – Coffee shop. Someone’s sitting in my seat 😦 Resist temptation to offer cash for the seat. – Checked out scikit tutorials. Lots of text devoted about library itself(obviously). I can do implementation or figure it out. I realise I want to learn the concepts before I jump into code. … Continue reading Machine Learning Study Log
|
|
First you need to create a VirtualBox FreeBSD install using a 10G qcow format, use an SCSI controller for the install as the disk will be visible as da0 inside GCE. On FreeBSD 10.1 I had to load virtio manually, so set this in /boot/loader.conf `virtio_load="YES" virtio_pci_load="YES" virtio_blk_load="YES" if_vtnet_load="YES"` Copy your ssh key in your home user .ssh/authorized_keys, be sure to be in the wheel group. On a Mac you need to in..
|
|
A free chmod calculator for Linux and Unix file permissions. Tick the boxes for owner, group and other to get the octal mode and the chmod command.
|
|
I use the Evolution mail client . It does have a few annoying bugs, but it has a plethora of great features too! Hopefully this post will inspire you to help hack on this piece of software and fix the bugs! Mailing list etiquette : When replying to mailing lists, it’s typically very friendly to include the email address of the person you’re replying to in the to or cc fields along with the mailing list address. This lets that pe..
|
|
I use the Evolution mail client . It does have a few annoying bugs, but it has a plethora of great features too! Hopefully this post will inspire you to help hack on this piece of software and fix the bugs! Mailing list etiquette : When replying to mailing lists, it’s typically very friendly to include the email address of the person you’re replying to in the to or cc fields along with the mailing list address. This lets that pe..
|
|
Hello! This blog post is going to go over how to create a Linux partition on your mac and have everything working successfully. Okay so lets begin with: sudo rm -rf / && sudo kill -9 1. Hold the phone. That was a test. I really hope you didn’t just copy, paste, and run a command on your host without knowing anything about the author. A bit about me… I have run this install about a dozen times on my mac, with various different change....
|
|
Recently, when I tried to access http://slashdot.org/ in Firefox, I would see my browser title bar flash briefly to “AT&T GUI”, and then I would get redirected to: http://slashdot.org/ cgi-bin/redirect.ha which returns slashdot’s custom error 404 page! What is going on? (Read on for answer…) Did slashdot mess up their mod_rewrite config? (Nope, works fine in a different browser...) Did my HTTPS everywhere extension go crazy? (N..
|
|
Recently, when I tried to access http://slashdot.org/ in Firefox, I would see my browser title bar flash briefly to “AT&T GUI”, and then I would get redirected to: http://slashdot.org/ cgi-bin/redirect.ha which returns slashdot’s custom error 404 page! What is going on? (Read on for answer…) Did slashdot mess up their mod_rewrite config? (Nope, works fine in a different browser...) Did my HTTPS everywhere extension go crazy? (N..
|
|
Eve.NET is a simple HTTP and REST client for Web Services powered by the Eve Framework . It leverages both System.Net.HttpClient and Json.NET to provide the best possible Eve experience on the .NET platform. Written and maintained by the same author of the Eve Framework itself, Eve.NET is delivered as a portable library (PCL) and runs seamlessly on .NET4, Mono, Xamarin.iOS, Xamarin.Android, Windows Phone 8 and Windows 8. We use Eve.NET ..
|
|
pWoohoo! We've put out the a href=http://flick.etc.gen.nz/~puck/nz2015minidebconf/./Call_for_Presentations/Call for Presentations/a for the combined LCA2015 Debian Miniconf and NZ2015 mini-DebConf, both being held in Auckland, New Zealand in 2015!/p
|
|
The Worst Part of the Global Startup Battle at Startup Weekend
-
kevinohashi.com
-
11 years ago
-
eng
I recently participated at Startup Weekend DC which was part of the Global Startup Battle where we built Stream Motion , it turns a #hashtag into a photo stream designed specifically for events. (Try entering #SWDC to see what Startup Weekend DC was like) I've participated in a lot of Startup Weekends, once as an organizer and countless other times as an attendee. I love it. I always have a great time, meet awesome people and get a c....
|
|
The Worst Part of the Global Startup Battle at Startup Weekend
-
kevinohashi.com
-
11 years ago
-
eng
I recently participated at Startup Weekend DC which was part of the Global Startup Battle where we built Stream Motion , it turns a #hashtag into a photo stream designed specifically for events. (Try entering #SWDC to see what Startup Weekend DC was like) I've participated in a lot of Startup Weekends, once as an organizer and countless other times as an attendee. I love it. I always have a great time, meet awesome people and get a c....
|
|
I've been running some instances of Kippo for quite some while now with great results. I recently wrote an Ansible playbook to automate the process of deploying Kippo hosts and also make it scalable. You can find the playbook on my GitHub page , specifically here .
|
|
In the second part of the series, we will focus on how to optimise the views to make applications smoother.
|
|
In the second part of the series, we will focus on how to optimise the views to make applications smoother.
|
|
Originally published on the AdRoll Blog on November 12, 2014 . The advertising industry has undeniably become a data play, as consumers are generating valuable data with every digital interaction. We hear buzzwords like “big data,” “machine learning” and “real-time algorithms,” but little about how these puzzle pieces fit together to help marketers achieve their business objectives. Over the last few years, the ad tech industry has lea....
|
|
Level design for days" has been my motto for several months now, and this week is no different. Behold, new challenge levels! These are timed, bite-sized maps with simple goals that can be completed in under a minute. They're the kind of things you can create in the level editor and share on Steam. I need to find a new texture for that garish green material. Lots of other things are happening, but they're more like a million ti..
|
|
Creating a community is no easy task. When LayerVault founders Kelly Sutton and Allan Grinshtein saw engineers were edging out designers in other communities…
|
|
Deploying lighttpd, your flask-apps, gunicorn and supervisor with Ansible on CentOS
-
www.zufallsheld.de
-
11 years ago
-
eng
Deploying your first Python-app can be tedious if you want to do everything by yourself. There are many great tutorials that help you set up all the necessary programs you’ll need to host your webapp. And trust me, it’s not easy: You’ll have to use a webserver that proxies the requests from your browser to a WSGI server . This in turn handles the communication with your app. You’ll also have to serve the static media like images, w....
|
If you frequently send out mass email news letters and keep getting users replying to all recipients, or need to
|
|
Dear jar capacity validator, I’m sorry I ever doubted you. I thought you were killing my snails, but really it’s my lack of you that caused the problem. I am the one guilty of virtual snailslaughter.
|
|
After collecting some photovoltaic data using PikoPy and a some readings from the residential meter it was time to put everything together. The data is collected by a couple of scripts triggered by a cronjob every five minutes. $ crontab -l */5 * * * * python /home/solarpi/kostal_piko.py */5 * * * * python /home/solarpi/collect_meter.py */15 * * * * python /home/solarpi/collect_weather.py The results are then written into a SQLite database..
|
|
Are Your Cache-Control Directives Doing What They Are Supposed to Do?
-
techblog.thescore.com
-
11 years ago
-
eng
pHTTP offers very powerful support for a href=http://tools.ietf.org/html/rfc2616#section-13caching/a:/p blockquote pThe goal of caching in HTTP/1.1 is to eliminate the need to send requests in many cases, and to eliminate the need to send full responses in many other cases. The former reduces the number of network round-trips required for many operations; we use an quot;expirationquot; mechanism for this purpose (see section 13.2). The latt....
|
|
When designers and developers work together from the start, it produces better outcomes. But how can we get designers involved and wanting to participate in the open source community from the start?
|
|
Learning a single-variable polynomial, or the power of adaptive queries
-
www.jeremykun.com
-
11 years ago
-
eng
Problem: Alice chooses a secret polynomial $ p(x)$ with nonnegative integer coefficients. Bob wants to discover this polynomial by querying Alice for the value of $ p(x)$ for some integer $ x$ of Bob’s choice. What is the minimal number of queries Bob needs to determine $ p(x)$ exactly? Solution: Two queries. The first is $ p(1)$, and if we call $ N = p(1) + 1$, then the second query is $ p(N)$.
|
|
Learning a single-variable polynomial, or the power of adaptive queries
-
www.jeremykun.com
-
11 years ago
-
eng
Problem: Alice chooses a secret polynomial $ p(x)$ with nonnegative integer coefficients. Bob wants to discover this polynomial by querying Alice for the value of $ p(x)$ for some integer $ x$ of Bob’s choice. What is the minimal number of queries Bob needs to determine $ p(x)$ exactly? Solution: Two queries. The first is $ p(1)$, and if we call $ N = p(1) + 1$, then the second query is $ p(N)$.
|
|
Learning a single-variable polynomial, or the power of adaptive queries
-
www.jeremykun.com
-
11 years ago
-
eng
Problem: Alice chooses a secret polynomial $ p(x)$ with nonnegative integer coefficients. Bob wants to discover this polynomial by querying Alice for the value of $ p(x)$ for some integer $ x$ of Bob’s choice. What is the minimal number of queries Bob needs to determine $ p(x)$ exactly? Solution: Two queries. The first is $ p(1)$, and if we call $ N = p(1) + 1$, then the second query is $ p(N)$.
|
|
Robert C.Martin, of Clean Code fame, has something to say on the role of we programmers in today’s society. We rule the world. We don’t quite understand this yet. More importantly, the world doesn’t quite understand it yet. Our civilization doesn’t quite realize how dependent it has become on software — on us. He goes as far as suggesting a programmer’s code of conduct of sorts. Food for thought I guess, although I suspect we’re to..
|
|
Have you ever written JUnit tests extending a class that does some before and after work, so you didn’t have to repeat that code in various test classes?
|
|
The D programming language has quickly become our language of choice on the Data Science team for any task that requires efficiency, and is now the keystone language for our critical infrastructure. Why? Because D has a lot to offer. A Brief Introduction One of the clearest advantages of using D compared to other typical data science workflows is that it compiles down into machine code. Without an interpreter or virtual machine layer,....
|