Skip to content

Instantly share code, notes, and snippets.

@knowuh
knowuh / gist:1132302
Created August 8, 2011 17:55
vle stack trace (vlepostdata stepwork) data too long for column 'data' at row 1
INFO: Initializing Spring FrameworkServlet 'dispatcher'
Aug 8, 2011 10:51:04 AM org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service() for servlet vlepostdata threw exception
org.hibernate.exception.DataException: could not insert: [vle.domain.work.StepWork]
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:77)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:40)
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2163)
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2643)
at org.hibernate.action.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:51)
<!-- * Copyright (c) 2006 Encore Research Group, University of Toronto * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA --> <!-- $Id: include.jsp 2682 2010-01-26 00:31:00Z [email protected] $ --> <!-- * Copyright (c) 2006 Encore Research Group, University of Toronto * * This library is free software; you can redistribute it and/or * modify it
@knowuh
knowuh / gist:1119780
Created August 2, 2011 08:00 — forked from technicalpickles/gist:1119603
rsync an iTunes Library to a new computer like a boss

Motivation

Shiny new MacBook Air, and I wanted to do this install from scratch (no TimeMachine recovery), but still get the good stuff from my old laptop. Also, rsync is awesome.

Prepare old computer

On old computer, from iTunes: File -> Library -> Organize Library and check Consolidate files.

on Aug 1 14:41:58 4249-npaessel.local MacVim[36484] <Error>: kCGErrorIllegalArgument: CGSMoveWindowList
Mon Aug 1 14:41:58 4249-npaessel.local MacVim[36484] <Error>: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
Mon Aug 1 14:41:58 4249-npaessel.local MacVim[36484] <Error>: kCGErrorIllegalArgument: CGSMoveWindowList
Mon Aug 1 14:41:58 4249-npaessel.local MacVim[36484] <Error>: kCGErrorIllegalArgument: CGSOrderWindowList
Mon Aug 1 14:41:58 4249-npaessel.local MacVim[36484] <Error>: kCGErrorIllegalArgument: CGSMoveWindowList
# backup the database:
mysqldump --add-drop-table -u rites -pXXXXXXXX -h discostu rites_pro > /web/tmp/rites-production_data.sql
ls -lah /web/tmp/rites-production_data.sql
# -rw-r--r-- 1 npaessel users 3.3G Jul 1 16:08 /web/tmp/rites-production_data.sql
# note previous release location.
/web/production/rites/releases/20110624202921
git co rites-staging
git pull
@knowuh
knowuh / activity.json
Created June 27, 2011 19:03
activity json
{
"url": "/shared/describing-velocity/page/4/step/8",
"activityPage": "/shared/describing-velocity/page/4",
"paneConfig": "split",
"panes": {
"top": {
"type": "graph",
"title": "Position vs. Time",
"xAxis": "/shared/describing-velocity/axes/9s",
@knowuh
knowuh / vimrc.local (ideas)
Created June 16, 2011 19:01
How to get syntastic vim plugin to be whiny be default.
" add this foo to your vimrc if you want whiny defaults for javascript linting:
let g:syntastic_quiet_warnings=0
let g:syntastic_auto_loc_list=1
let g:syntastic_auto_jump=1
let g:syntastic_enable_signs=1
let g:syntastic_jsl_conf="~/.jsl.conf"
let g:syntastic_stl_format = '[%E{Err: %fe #%e}%B{, }%W{Warn: %fw #%w}]'
@knowuh
knowuh / gist:1004884
Created June 2, 2011 17:45
wise 4.3 backtrace
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long
net.sf.sail.webapp.dao.impl.AbstractHibernateDao.getById(AbstractHibernateDao.java:80)
@knowuh
knowuh / gist:996069
Created May 27, 2011 20:14
stack trace for sound grapher problems
Process: java [57226]
Path: /usr/bin/java
Identifier: com.apple.javajdk16.cmd
Version: 1.0 (1.0)
Code Type: X86-64 (Native)
Parent Process: eclipse [56479]
Date/Time: 2011-05-27 16:14:15.814 -0400
OS Version: Mac OS X 10.6.7 (10J869)
Report Version: 6
On Wed, May 25, 2011 at 4:17 PM, Exception Notifier <[email protected]> wrote:
A ActionView::TemplateError occurred in schools#index:
edit_portal_clazz_url failed to generate from {:controller=>"portal/clazzes", :action=>"edit"} - you may have ambiguous routes, or you may need to supply additional parameters for this route. content_url has the following required parameters: ["portal", "classes", :id, "edit"] - are they all satisfied?
On line #9 of app/views/portal/clazzes/_show.html.haml
6: .action_menu_header_left
7: .action_menu_header_right
8: -if portal_clazz.changeable? current_user