- 再读一遍《scala编程》
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
package utils | |
import java.io.File | |
import com.google.common.base.Charsets | |
import com.google.common.io.Files | |
import scala.io.Source | |
/** |
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
package utils | |
import scala.io.Source | |
/** | |
* parse jstack log | |
*/ | |
object JavaStackParser { | |
def main(args: Array[String]): Unit = { | |
val lines = Source.fromFile("/Users/sjk/19229.log").getLines() |
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
git branch -r | awk -F/ '/\/release/{print $2}' | xargs -I {} git push origin :{} | |
git tag -l | xargs -n 1 git push --delete origin |
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
server { | |
listen 7000; | |
server_name localhost; | |
location / { | |
root /Users/sjk/apps; | |
autoindex on; | |
} |
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
// that would be: | |
// SI-5079 "Scaladoc can't link to an object (only a class or trait)" | |
// SI-4497 "Links in Scaladoc - Spec and implementation unsufficient" | |
// SI-4224 "Wiki-links should support method targets" | |
// SI-3695 "support non-fully-qualified type links in scaladoc comments" | |
// SI-6487 "Scaladoc can't link to inner classes" | |
// SI-6495 "Scaladoc won't pick up group name, priority and description from owner chain" | |
// SI-6501 "Scaladoc won't link to a @template type T as a template but as a member" | |
package scala.test.scaladoc.links { | |
import language.higherKinds |
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
http://zh.wikipedia.org/wiki/HTTP%E7%8A%B6%E6%80%81%E7%A0%81 | |
1xx消息 | |
这一类型的状态码,代表请求已被接受,需要继续处理。这类响应是临时响应,只包含状态行和某些可选的响应头信息,并以空行结束。由于HTTP/1.0协议中没有定义任何1xx状态码,所以除非在某些试验条件下,服务器禁止向此类客户端发送1xx响应。 这些状态码代表的响应都是信息性的,标示客户应该采取的其他行动。 | |
100 Continue | |
客户端应当继续发送请求。这个临时响应是用来通知客户端它的部分请求已经被服务器接收,且仍未被拒绝。客户端应当继续发送请求的剩余部分,或者如果请求已经完成,忽略这个响应。服务器必须在请求完成后向客户端发送一个最终响应。 | |
101 Switching Protocols | |
服务器已经理解了客户端的请求,并将通过Upgrade消息头通知客户端采用不同的协议来完成这个请求。在发送完这个响应最后的空行后,服务器将会切换到在Upgrade消息头中定义的那些协议。: 只有在切换新的协议更有好处的时候才应该采取类似措施。例如,切换到新的HTTP版本比旧版本更有优势,或者切换到一个实时且同步的协议以传送利用此类特性的资源。 |
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
package com.twitter.common.logging; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.concurrent.atomic.AtomicReferenceArray; | |
/** | |
* ringbuffer | |
* <pre> | |
* tail |
安装文档:https://github.com/amplab/shark/wiki/_pages
0.8 遇到的问题:
- mysql驱动
hive> show tables;
FAILED: Error in metadata: javax.jdo.JDOFatalInternalException: Error creating transactional connection factory
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
http://aosabook.org/en/index.html |