Skip to content

Instantly share code, notes, and snippets.

View halfdan's full-sized avatar
🇩🇪

Fabian Becker halfdan

🇩🇪
View GitHub Profile
[ { "code" : 500,
"message" : "current transaction is aborted, commands ignored until end of transaction block",
"property" : "tag",
"stack" : "Error\n at Error.DataImportError (/home/vagrant/code/Ghost/core/server/errors/dataimporterror.js:6:18)\n at cleanError (/home/vagrant/code/Ghost/core/server/data/import/index.js:38:12)\n at /home/vagrant/code/Ghost/core/server/data/import/index.js:52:34\n at Function.forEach (/home/vagrant/code/Ghost/node_modules/lodash/dist/lodash.js:3297:15)\n at handleErrors (/home/vagrant/code/Ghost/core/server/data/import/index.js:45:7)\n at /home/vagrant/code/Ghost/core/server/data/import/index.js:101:16\n at tryCatchReject (/home/vagrant/code/Ghost/node_modules/when/lib/makePromise.js:806:14)\n at RejectedHandler.when (/home/vagrant/code/Ghost/node_modules/when/lib/makePromise.js:643:9)\n at ThenableHandler.DeferredHandler.run (/home/vagrant/code/Ghost/node_modules/when/lib/makePromise.js:452:13)\n at Scheduler._drain (/home/vagrant/cod

Keybase proof

I hereby claim:

  • I am halfdan on github.
  • I am halfdan (https://keybase.io/halfdan) on keybase.
  • I have a public key whose fingerprint is F497 C9A2 2781 BFFE E4FF EE6B 2AC2 9C3D 34AE 5042

To claim this, I am signing this object:

interface FactorialComputator {
int computeFactorial(int n);
}
class RecursiveFactorial implements FactorialComputator {
public int computeFactorial(int n) {
if (n == 1) {
return 1;
}
return this.computeFactorial(n-1) * n;
interface Optimizer {
double optimize();
}
// Many implementations can exist
interface Mutation {}
// Many implementations can exist
interface Selection {}
@halfdan
halfdan / SassMeister-input.scss
Created March 11, 2014 10:02
Generated by SassMeister.com.
// ----
// Sass (v3.2.14)
// Compass (v0.12.3)
// ----
.splitbtn {
display: inline-block;
position: relative;
.options {
display: inline-block;
var express = require('express'),
app = express(),
hb = require('express3-handlebars'),
fs = require('fs');
var configurationFile = 'config.json';
var configuration = JSON.parse (fs.readFileSync(configurationFile));
function createFilelist (callback) {
fs.readdir(configuration.filepath, function (err, files) {
/**
* Comment for
* <code>serialVersionUID</code>
*/
private static final long serialVersionUID = 1L;
{
"population_size": 20,
"number_of_runs": 10,
"seed": 1386710249974,
"problem": {
"name": "F1-Problem",
"dimension": 30
},
"runs": [
{
1) Import 000 imports data from 001:
Error: done() invoked with non-Error: Error importing data: RejectionError: duplicate key value violates unique constraint "posts_slug_unique"</br>RejectionError: current transaction is aborted, commands ignored until end of transaction block
at /home/vagrant/code/Ghost/node_modules/mocha/lib/runnable.js:196:38
at tryCatch1 (/home/vagrant/code/Ghost/node_modules/bookshelf/node_modules/bluebird/js/main/util.js:85:19)
at Promise$_resolvePromise [as _resolvePromise] (/home/vagrant/code/Ghost/node_modules/bookshelf/node_modules/bluebird/js/main/promise.js:631:13)
at Promise$_doResolveAt [as _doResolveAt] (/home/vagrant/code/Ghost/node_modules/bookshelf/node_modules/bluebird/js/main/promise.js:821:10)
at Async$_consumeFunctionBuffer [as _consumeFunctionBuffer] (/home/vagrant/code/Ghost/node_modules/bookshelf/node_modules/bluebird/js/main/async.js:63:12)
at Async$consumeFunctionBuffer (/home/vagrant/code/Ghost/node_modules/bookshelf/nod
{ sql: 'insert into `users` (`bio`, `created_at`, `created_by`, `email`, `image`, `location`, `name`, `password`, `updated_at`, `updated_by`, `uuid`, `website`) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)',
bindings:
[ '',
Tue Nov 26 2013 09:24:40 GMT+0000 (UTC),
1,
'[email protected]',
'http://www.gravatar.com/avatar/2174875fdee25e314d90b3382a123cf5?d=404',
'',
'Fabian Becker',
'$2a$10$hnTtkwsj4MEHzu7oES3quu3pXojLw.2Vi3OXI92uDpVjs6j8p9zUK',