This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//> using scala "3.2.0" | |
//> using lib "dev.zio::zio:2.0.2" | |
//> using lib "dev.zio::zio-interop-cats:3.3.0" | |
//> using lib "org.tpolecat::doobie-core:1.0.0-RC2" | |
//> using lib "org.tpolecat::doobie-hikari:1.0.0-RC2" | |
import zio.* | |
import zio.interop.catz.* | |
import doobie.util.transactor.Transactor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE FUNCTION base58_encode(num INT) | |
RETURNS VARCHAR(255) AS $encoded$ | |
DECLARE | |
alphabet VARCHAR(255); | |
base_count INT DEFAULT 0; | |
encoded VARCHAR(255); | |
divisor DECIMAL(10, 4); | |
mod INT DEFAULT 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl https://www.npmjs.org/install.sh | sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class StringToChar { | |
public static void main(String[] args) { | |
String[] strArr = { "HELLO", "WORLD" }; | |
char[][] char2D = new char[strArr.length][]; | |
for (int i = 0; i < strArr.length; i++) { | |
char2D[i] = strArr[i].toCharArray(); | |
} | |
for (char[] char1D : char2D) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Copyright (C) 1998, 1999, 2000, 2009 Free Software Foundation, Inc. | |
This file is part of GCC. | |
GCC is free software; you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation; either version 3, or (at your option) | |
any later version. | |
GCC is distributed in the hope that it will be useful, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Exception in thread "AWT-EventQueue-0" org.springframework.dao.InvalidDataAccessApiUsageException: detached entity passed to persist: devopsdistilled.operp.server.data.entity.items.Brand; nested exception is org.hibernate.PersistentObjectException: detached entity passed to persist: devopsdistilled.operp.server.data.entity.items.Brand | |
at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:668) | |
at org.springframework.orm.jpa.vendor.HibernateJpaDialect.translateExceptionIfPossible(HibernateJpaDialect.java:106) | |
at org.springframework.dao.support.ChainedPersistenceExceptionTranslator.translateExceptionIfPossible(ChainedPersistenceExceptionTranslator.java:58) | |
at org.springframework.dao.support.DataAccessUtils.translateIfNecessary(DataAccessUtils.java:213) | |
at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:163) | |
at org.springframework.aop.framework.ReflectiveMethodInvoca |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Exception in thread "AWT-EventQueue-0" org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: devopsdistilled.operp.server.data.entity.items.Product.categories, could not initialize proxy - no Session | |
at org.hibernate.collection.internal.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:566) | |
at org.hibernate.collection.internal.AbstractPersistentCollection.withTemporarySessionIfNeeded(AbstractPersistentCollection.java:186) | |
at org.hibernate.collection.internal.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:545) | |
at org.hibernate.collection.internal.AbstractPersistentCollection.read(AbstractPersistentCollection.java:124) | |
at org.hibernate.collection.internal.PersistentBag.toArray(PersistentBag.java:274) | |
at java.util.Vector.<init>(Vector.java:167) | |
at devopsdistilled.operp.client.items.panes.details.ProductDetailsPane.show(ProductDetailsPane.java:110) | |
at devopsdistilled.operp.client.items.panes.Lis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Exception in thread "AWT-EventQueue-0" org.springframework.transaction.TransactionSystemException: Could not commit JPA transaction; nested exception is javax.persistence.RollbackException: Error while committing the transaction | |
at org.springframework.orm.jpa.JpaTransactionManager.doCommit(JpaTransactionManager.java:522) | |
at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:755) | |
at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:724) | |
at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:475) | |
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:270) | |
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94) | |
at org.springframework.aop.framework.ReflectiveM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!SESSION 2013-03-14 10:45:43.362 ----------------------------------------------- | |
eclipse.buildId=M20130204-1200 | |
java.version=1.7.0_15 | |
java.vendor=Oracle Corporation | |
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US | |
Command-line arguments: -os linux -ws gtk -arch x86_64 | |
!ENTRY org.eclipse.equinox.ds 4 0 2013-03-14 10:45:44.307 | |
!MESSAGE [SCR] Exception while activating instance org.eclipse.e4.ui.css.swt.internal.theme.ThemeEngineManager@28fed5b1 of component org.eclipse.e4.ui.css.swt.theme | |
!STACK 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!SESSION 2013-02-20 05:08:05.299 ----------------------------------------------- | |
eclipse.buildId=M20120914-1800 | |
java.version=1.7.0_13 | |
java.vendor=Oracle Corporation | |
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US | |
Command-line arguments: -os linux -ws gtk -arch x86_64 -clean | |
This is a continuation of log file /home/kpl/Public/Workspace/.metadata/.bak_0.log | |
Created Time: 2013-02-20 05:19:44.007 |
NewerOlder