Skip to content

Instantly share code, notes, and snippets.

@tfnico
tfnico / error.txt
Created April 24, 2014 06:34
GET on entity fails in spring-data-rest-2.0.1.RELEASE (same in 2.0.2)
# after upgrading to spring-data-rest-2.0.1-RELEASE
2014-04-23 17:23:45,078 [qtp595100226-20] TRACE HandlerMethod - Invoking [listEntities] method with arguments [org.springframework.data.rest.webmvc.RootResourceInformation@3383d20e, Page request [number: 0, size 20, sort: null], null]
2014-04-23 17:23:45,279 [qtp595100226-20] TRACE HandlerMethod - Method [listEntities] returned [PagedResource { content: [Resource { content: PlannedWorkload{id='142', processingDate=Thu Aug 22 13:46:11 CEST 2013}, links: [<http://127.0.0.1:8000/api/plannedWorkload/142>;rel="self"] }, Resource { content: PlannedWorkload{id='144', processingDate=Thu Aug 22 13:46:11 CEST 2013}, links: [<http://127.0.0.1:8000/api/plannedWorkload/144>;rel="self"] }, Resource { content: PlannedWorkload{id='146', processingDate=Thu Aug 22 13:46:11 CEST 2013}, links: [<http://127.0.0.1:8000/api/plannedWorkload/146>;rel="self"] }, Resource { content: PlannedWorkload{id='148', processingDate=Thu Aug 22 13:46:11 CEST 2013}, links: [<http://127.0.0.1:800
@tfnico
tfnico / error.txt
Created April 24, 2014 06:32
GET on entity fails in spring-data-rest-2.0.0.RELEASE
# this is the error using spring-rest-data-2.0.0.RELEASE
# It worked fine in 2.0.0.M1
# I believe it's caused by https://jira.spring.io/browse/DATAREST-253 (but not sure)
2014-04-23 17:01:22,385 [main] INFO ServerConnector - Started ServerConnector@6f0e15e9{HTTP/1.1}{0.0.0.0:8000}
2014-04-23 17:02:34,801 [qtp186591455-21] TRACE HandlerMethod - Invoking [listEntities] method with arguments [org.springframework.data.rest.webmvc.RootResourceInformation@7bd766d, Page request [number: 0, size 20, sort: null], null]
2014-04-23 17:02:35,007 [qtp186591455-21] TRACE HandlerMethod - Method [listEntities] returned [PagedResource { content: [Resource { content: PlannedWorkload{id='142', processingDate=Thu Aug 22 13:46:11 CEST 2013}, links: [<http://127.0.0.1:8000/api/plannedWorkload/142>;rel="self"] }, Resource { content: PlannedWorkload{id='144', processingDate=Thu Aug 22 13:46:11 CEST 2013}, links: [<http://127.0.0.1:8000/api/plannedWorkload/144>;rel="self"] }, Resource { content: PlannedWorkload{id='146', processing
@tfnico
tfnico / console
Last active March 1, 2016 16:19
Phantomjs died while running protractor tests
> node_modules/protractor/bin/protractor src/test/js/e2e/protractor_phantom.js
Starting selenium standalone server...
Selenium standalone server started at http://192.168.178.59:51258/wd/hub
F
Failures:
1) homepage should show notification after starting import
Message:
@tfnico
tfnico / pom.xml
Last active December 28, 2015 00:19
dummy pom
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.tfnico.dummy</groupId>
<artifactId>dummy-pom</artifactId>
<version>1.0</version>
<build>
<plugins>
<plugin>
@tfnico
tfnico / console
Created September 3, 2013 07:32
different ways of looking at stashes
➜ ~/projects/agnes/[master]>git stash show stash@\{0\} -p #tab completion works
diff --git a/readme.txt b/readme.txt
index 98d8a9a..41773d2 100644
--- a/readme.txt
+++ b/readme.txt
@@ -31,7 +31,9 @@ Here's some random content: enzym
Here's some random content: stringybark
Here's some random content: supercrescence
Here's some random content: glanduligerous
-Here's some random content: uninternational
@tfnico
tfnico / console
Created August 29, 2013 06:53
homebrew formula
➜ ~/projects/sapient/lufthansa-all/lufthansa/[master]>brew info vcsh
vcsh: stable 1.20130724
https://github.com/RichiH/vcsh
/usr/local/Cellar/vcsh/1.0-1 (6 files, 60K)
/usr/local/Cellar/vcsh/1.20130724 (6 files, 72K) *
Built from source
From: https://github.com/mxcl/homebrew/commits/master/Library/Formula/vcsh.rb
==> Dependencies
Required: mr
@tfnico
tfnico / console
Created August 28, 2013 14:10
vcsh output
➜ ~/>vcsh status
tmux:
tmuxinator:
➜ ~/>vcsh tmux status
# On branch master
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
@tfnico
tfnico / instructions.txt
Last active December 21, 2015 13:19
Instructions on how to port Dukto from SVN to Git
First create an author-map file for translating svn user names to Git user names in history:
$ cat author-map
em.colombo = Emanuele Colombo <[email protected]>
[email protected] = Emanuele Colombo <[email protected]>
Vittorio.Curcio = Vittorio Curcio <[email protected]>
xxdede = xxdede <[email protected]>
(no author) = no author <[email protected]>
Now, do a git svn clone:
@tfnico
tfnico / 1.txt
Last active December 20, 2015 22:58
Trying to get go2arena.com to delete my account
# From Go2Arena
Dear Thomas Ferris Nicolaisen,
Welcome to Go2Arena. To log in when visiting our site just click Login or My Account at the top of every
page, and then enter your e-mail address and password.
Use the following values when prompted to log in:
E-mail: [email protected]
Password: [xxxx]