`
marlgl
  • 浏览: 73444 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表

shiro session listener

    博客分类:
  • J
package com.xyz.service.shiro; import org.apache.shiro.session.Session; import org.apache.shiro.session.SessionListener; import lombok.extern.slf4j.Slf4j; @Slf4j public class ShiroSessionListener implements SessionListener { @Override public void onStart(Session session) {//会话创建时触发 ...
大于8k左右的数据请求(PUT/POST)无法与server通信 Chrome: Error (net::ERR_SSL_PROTOCOL_ERROR): SSL protocol error. public class ShortBufferException extends GeneralSecurityException This exception is thrown when an output buffer provided by the user is too short to hold the operation result. Tomcat 8.0 disable TLS ...

grep and sed

grep -n x.log sed -n '1000,2000p' x.log > target.log
http://stackoverflow.com/questions/3917925/what-do-the-arrow-icons-in-subclipse-mean

Java call R - windows

    博客分类:
  • R
  • J
引用install.packages("rJava") (1/3) 新增 R_HOME D:\opt\R\R-2.15.2 (2/3) CLASSPATH 加入: ;%R_HOME%\library\rJava\jri\JRI.jar (3/3) Path 加入: ;%R_HOME%\bin\i386;%R_HOME%\library\rJava\jri
flash拍照改进版 - 参照的原版地址不详。 camera.zip - flash source flashcamera.zip - web-app source
patch remove Bomb(^M) $ cat ~/bin/rmBom #! /bin/sh¬ ¬ #echo "uconv --remove-signature the $1 files"¬ ¬ ### uconv not availble¬ # find . -name "*.$1" \¬ # -exec uconv --remove-signature {} -o {}.nobom \; \¬ # -exec mv {}.nobom {} \;¬ ¬ ### ¬ # Convert DOS ...
NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init]; [dateFormat setDateFormat:@"yyyy-MM-dd HH:mm Z"]; NSDate *selected = [datePicker date]; NSString *message = [[NSString alloc] initWithFormat: @"The date and time you selected is: %@", ...
1.Richard Stevens,TCP/IP Illustrated, Vol.1 / Vol.2 / Vol.3 《TCP/IP详解(第一卷)协议》 《TCP/IP详解 卷2:实现》 《TCP/IP详解卷3:TCP事务协议、HTTP、NNTP和UNIX域协议》 《TCP/IP详解卷1:协议(英文版)》 《TCP/IP详解卷2:实现(英文版》 《TCP/IP详解卷3:TCP事务协议、HTTP、NNTP和UNIX域协议(英文版)》 2.Richard Stevens, UNIX Network Programming, 2/e, Vol.1 / Vol.2 《UNIX网络编程卷2:进程间通信 ...
   When you create an object using new, alloc, or copy, the object has a retain count of 1. You are responsible for sending the object a release or autorelease message when you're done with it. That way, it gets cleaned up when its useful life is over.    When you get hold of an object via any other ...
cd ORACLE_HOEM/sqlplus/admin/help sqlplus system/pwd system@ORCL> @helpdrop.sql system@ORCL> @helpbld.sql system@ORCL> @helpus.sql first input: path name() second input: helpus.sql system@ORCL> help grant GRANT (Object Privileges) ------------------------- Use this comm ...
去除MyEclipse 的一些相关的jsf的支持jar包 查找MyEclipse加载的jar包: $ pmap `pidof java` | grep jsf 6abfc000 368K r-xs- Genuitec/Common/plugins/org.jboss.tools.jsf.ui_2.0.1.zmyeclipse7102009030516/jsfui.jar 6d90c000 16K r-xs- Genuitec/Common/plugins/org.jboss.tools.jsf.verification_2.0.1.zmyeclipse7102009 ...
参考:http://www.ibm.com/developerworks/cn/java/l-linux-jni/ 但参考中的版本过于古老,不利于初学者参照。 环境: gentoo, jdk-1.6, gcc version 4.3.4 (Gentoo 4.3.4 p1.0, pie-10.1.5) 1. $ vi HelloJni.java $ cat HelloJni.java class HelloJni { public native void SayHello(String name); static { try { ...
sed -e '/^sshd/!d' hosts.deny | cut -d' ' -f2 -e '/^sshd/!d' 删除非‘sshd’开头的行 -d' '  空格分隔 -f2 分隔后所得数组的第二个值 引用$ cat hosts.deny sshd: 117.21.249.75 sshd: 58.252.146.187 sshd: 217.111.0.6 sshd: 92.243.65.138 for i in $(sed -e '/^sshd/!d' hosts.deny | cut -d' ' -f2); do echo $i;done for i in $(sed -e '/^ss ...
原文链接:How to Live With Uncertainty 原文作者:Ellesse Chow 翻 译:Paula 审 校:Ellesse Chow 如果你下周开始新工作,要结婚,或者移居异国,你是不是感到心慌意乱? 两个月前,我的一位好朋友就经历了这样的恐慌。她接受了公司的 ...
Global site tag (gtag.js) - Google Analytics