This file contains hidden or 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
Oct 14, 2012 4:01:44 PM io.netty.channel.socket.nio.NioEventLoop | |
WARNING: Unexpected exception in the selector loop. | |
java.util.ConcurrentModificationException | |
at java.util.HashMap$HashIterator.nextEntry(Unknown Source) | |
at java.util.HashMap$KeyIterator.next(Unknown Source) | |
at io.netty.channel.socket.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:268) | |
at io.netty.channel.socket.nio.NioEventLoop.run(NioEventLoop.java:211) | |
at io.netty.channel.SingleThreadEventExecutor$1.run(SingleThreadEventExecutor.java:80) | |
at java.lang.Thread.run(Unknown Source) |
This file contains hidden or 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
[error] AuthenticationHandler.scala:54: overriding method inboundBufferUpdated in class ChannelInboundMessageHandlerAdapter of type (x$1: io.netty.channel.ChannelHandlerContext)Unit; | |
[error] method inboundBufferUpdated cannot override final member | |
[error] def inboundBufferUpdated(ctx: ChannelHandlerContext) { | |
[error] ^ | |
[error] one error found |
This file contains hidden or 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
[error] Server.scala:55: type mismatch; | |
[error] found : io.netty.channel.ChannelOption[java.lang.Boolean] | |
[error] required: io.netty.channel.ChannelOption[Any] | |
[error] Note: java.lang.Boolean <: Any, but Java-defined class ChannelOption is invariant in type T.[error] You may wish to investigate a wildcard type such as `_ <: Any`. (SLS 3.2.10) | |
[error] .childOption(ChannelOption.TCP_NODELAY, true) | |
[error] |
This file contains hidden or 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
#!/bin/bash | |
dir=$(dirname "$0") | |
. "$dir/vif-common.sh" | |
netdev=${netdev:-eth1} | |
vlan=${vlan:-0} | |
vlandev=$netdev.$vlan | |
retval=$( ip link show | grep $vlandev | wc -l ) |
This file contains hidden or 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
bundle edit_line sshd_config { | |
replace_patterns: | |
"^.*Port (?!22).*$" replace_with => content("Port 22"); | |
"^.*Protocol (?!2).*$" replace_with => content("Protocol 2"); | |
"^.*ServerKeyBits (?!2048).*$" replace_with => content("ServerKeyBits 2048"); | |
"^.*PermitRootLogin (?!without-password).*$" replace_with => content("PermitRootLogin without-password"); | |
"^.*PubkeyAuthentication (?!yes).*$" replace_with => content("PubkeyAuthentication yes"); | |
"^.*PermitEmptyPasswords (?!no).*$" replace_with => content("PermitEmptyPasswords no"); | |
"^.*TCPKeepAlive (?!yes).*$" replace_with => content("TCPKeepAlive yes"); |
This file contains hidden or 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
body package_method packer { | |
package_changes => "bulk"; | |
package_list_command => "/usr/bin/pacman -Q"; | |
package_list_name_regex => "([^\s]+).*"; | |
package_list_version_regex => "[^\s]+ ([^\s\n\r]+)"; | |
package_name_convention => "$(name)"; | |
package_installed_regex => ".*"; | |
package_name_regex => "([^\s]+).*"; |
This file contains hidden or 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
bundle edit_line replace_with_content(regex,content) { | |
replace_patterns: | |
"^($(regex))$" | |
replace_with => content("$(content)"), | |
comment => "Search and replace string"; | |
} | |
body replace_with content(c) { | |
replace_value => "$(c)"; |
This file contains hidden or 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
scala> "ffff".split("..") | |
res0: Array[java.lang.String] = Array() | |
scala> "ffff".split("..".r) | |
<console>:8: error: type mismatch; | |
found : scala.util.matching.Regex | |
required: java.lang.String | |
"ffff".split("..".r) | |
^ |
This file contains hidden or 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 ag.bett.model | |
import org.joda.time._ | |
import scala.collection.JavaConversions._ | |
import scala.reflect.BeanProperty | |
import java.util.{UUID, ArrayList} | |
import javax.persistence.{Table, Entity} | |
import me.prettyprint.cassandra.serializers.LongSerializer |
This file contains hidden or 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
Info: | |
CPU: Core i7 3.38 GHz 6core | |
RAM: 32GB ECC Reg RAM | |
OS: MacOS X 10.7.4 (Hackintosh) | |
JVM: Java(TM) SE Runtime Environment (build 1.7.0_05-b06) | |
# ./sbt run | |