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
import java.util.concurrent.CyclicBarrier; | |
import java.util.ArrayList; | |
import java.util.List; | |
/** | |
* Little demo that creates 16 threads and each thread increments a shared | |
* counter 1000 times without any of the extra work required to do it in a | |
* thread safe manner. But for some reason adding a System.out.print in the | |
* increment loop makes it work!?!?!? | |
*/ |
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
------ NO USB, POWER FROM 5V RAIL OF AC UNIT ----- | |
event: BUFFER_READ | |
data: {"data":"FD 7F 80 C0 3F 7F 7F 80 3 7F 7F 7F 80 3 7F 7F 7F 1 3F FD 7F 7F 1 6F ","ttl":"60","published_at":"2015-07-28T06:52:03.347Z","coreid":"xxxxx"} | |
event: BUFFER_READ | |
data: {"data":"DD 7F FF 7F 80 C0 DD 7F 7F 7F 80 C0 39 FD FF FF 80 C0 DD FD FF 7F 80 C0 ","ttl":"60","published_at":"2015-07-28T06:52:33.346Z","coreid":"xxxxx"} | |
event: TEMP_CHANGED | |
data: {"data":"null","ttl":"60","published_at":"2015-07-28T06:52:33.427Z","coreid":"xxxxx"} |
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
interface EntityLoadAccess<T> { | |
public T getReferenceById(Object id); | |
public T getReferenceById(Object id, LockOptions lockOptions); | |
public NaturalIdQueryBuilder getNaturalIdQueryBuilder(); | |
public T loadById(Object id); | |
public T loadById(Object id, LockOptions lockOptions); | |
} | |
public interface NaturalIdQueryBuilder<T> { | |
public <V> NaturalIdQueryBuilder<T> setNaturalIdParam(Attribute<T, V> attribute, V value); |
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 SomeEntity { | |
@NaturalId | |
@ManyToOne(optional = false) | |
private final StylesheetDescriptorImpl stylesheetDescriptor; | |
@NaturalId | |
private final int userId; | |
@NaturalId | |
private final int profileId; |
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 RemoteUserNexusSecureHttpAuthenticationFilter extends NexusSecureHttpAuthenticationFilter { | |
/* (non-Javadoc) | |
* @see org.apache.shiro.web.filter.authc.AuthenticatingFilter#createToken(java.lang.String, java.lang.String, javax.servlet.ServletRequest, javax.servlet.ServletResponse) | |
*/ | |
@Override | |
protected AuthenticationToken createToken(String username, String password, ServletRequest request, ServletResponse response) { | |
final HttpServletRequest httpServletRequest = (HttpServletRequest)request; | |
final String remoteUser = httpServletRequest.getRemoteUser(); |
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
Index: persistenceContext.xml | |
=================================================================== | |
--- persistenceContext.xml (revision 25216) | |
+++ persistenceContext.xml (working copy) | |
@@ -41,14 +41,19 @@ | |
<aop:config> | |
<aop:pointcut id="jpaDaoExecution" | |
expression="execution(* org.jasig.portal.*.dao.jpa.Jpa*Dao.*(..))"/> | |
+ <aop:pointcut id="prefsStoreExecution" | |
+ expression="execution(* org.jasig.portal.portlet.container.services.PortletPreferencesServiceImpl.*(..))"/> |
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 MyBean { | |
private Object foo; | |
private Object bar; | |
public MyBean() { | |
} | |
private MyBean(MyBean myBean) { | |
this.setFoo(myBean.getBar()); | |
this.setBar(myBean.getBar()); |
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
<userRoleMapping> | |
<userId>dalquist</userId> | |
<source>RUT</source> | |
<roles> | |
<role>edu.wisc.my.portal Deployer</role> | |
</roles> | |
</userRoleMapping> |
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
apollo:uPortal edalquist$ git fetch upstream | |
remote: Counting objects: 20, done. | |
remote: Compressing objects: 100% (3/3), done. | |
remote: Total 11 (delta 8), reused 11 (delta 8) | |
Unpacking objects: 100% (11/11), done. | |
From github.com:Jasig/uPortal | |
570a685..db13c90 master -> upstream/master | |
apollo:uPortal edalquist$ git checkout master | |
Switched to branch 'master' | |
apollo:uPortal edalquist$ git merge upstream/master |
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) 2000-2009, Jasig, Inc. | |
* See license distributed with this file and available online at | |
* https://www.ja-sig.org/svn/jasig-parent/tags/rel-10/license-header.txt | |
*/ | |
package org.jasig.stats.reporting.view; | |
import java.util.Map; |
OlderNewer