Skip to content

Instantly share code, notes, and snippets.

@tfnico
tfnico / error.txt
Created Apr 24, 2014
GET on entity fails in spring-data-rest-2.0.1.RELEASE (same in 2.0.2)
View error.txt
# 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 Apr 24, 2014
GET on entity fails in spring-data-rest-2.0.0.RELEASE
View error.txt
# 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 Mar 1, 2016
Phantomjs died while running protractor tests
View console
> 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 Dec 28, 2015
dummy pom
View pom.xml
<?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 Sep 3, 2013
different ways of looking at stashes
View console
➜ ~/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 Aug 29, 2013
homebrew formula
View console
➜ ~/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 Aug 28, 2013
vcsh output
View console
➜ ~/>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 Dec 21, 2015
Instructions on how to port Dukto from SVN to Git
View instructions.txt
First create an author-map file for translating svn user names to Git user names in history:
$ cat author-map
em.colombo = Emanuele Colombo <em.colombo@gmail.com>
em.colombo@gmail.com = Emanuele Colombo <em.colombo@gmail.com>
Vittorio.Curcio = Vittorio Curcio <Vittorio.Curcio@dummy.example.com>
xxdede = xxdede <xxdede@dummy.example.com>
(no author) = no author <no-author@dummy.example.com>
Now, do a git svn clone:
@tfnico
tfnico / 1.txt
Last active Dec 20, 2015
Trying to get go2arena.com to delete my account
View 1.txt
# 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: tfnico@gmail.com
Password: [xxxx]