Runaway Regular Expressions: Catastrophic Backtracking - https://www.regular-expressions.info/catastrophic.html
"1085632_1230848_1230849_582053_2831200_5524895_6004491&page=6".matches("^\\d+(_?\\d+)*$");
Runaway Regular Expressions: Catastrophic Backtracking - https://www.regular-expressions.info/catastrophic.html
"1085632_1230848_1230849_582053_2831200_5524895_6004491&page=6".matches("^\\d+(_?\\d+)*$");
I had some historical key material data in pkcs#1 format that needed to be in pkcs#8 for input into another system. Here's how to do it, using BouncyCastle:
import org.bouncycastle.asn1.ASN1InputStream;
import org.bouncycastle.asn1.DERObject;
import org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers;
import org.bouncycastle.asn1.pkcs.PrivateKeyInfo;
import org.bouncycastle.asn1.x509.AlgorithmIdentifier;
import java.security.PrivateKey;
task projectDependencyGraph { | |
doLast { | |
def dot = new File(rootProject.buildDir, 'project.dot') | |
dot.delete() | |
dot << 'digraph {\n' | |
dot << " graph [label=\"${rootProject.name}\\n \",labelloc=t,fontsize=30];\n" | |
dot << ' node [style=filled, fillcolor="#bbbbbb"];\n' | |
dot << ' rankdir=TB;\n' |
I hereby claim:
To claim this, I am signing this object:
/** | |
* Glyph object provides Unicode glyphs as well as it's plain ASCII alternatives. | |
* All ASCII glyphs are guaranteed to be the same number of characters as the | |
* corresponding Unicode glyphs, so that they line up properly when printed on | |
* a terminal. The orginal data file is taken from "Dart term_glyph" project. | |
* | |
* @author Suresh | |
* | |
* @see https://github.com/dart-lang/term_glyph | |
*/ |
class DataRace { | |
// Make volatile | |
boolean ready = false; | |
int answer = 0; | |
void thread1() { | |
// Spin Lock | |
while(!ready); | |
assert answer == 42 | |
} |
# Installation Steps on CentOS 6.5
# --------------------------------
$ sudo su -
$ yum install xorg-x11-server-Xvfb
$ yum install firefox
$ yum install ImageMagick
$ dbus-uuidgen > /var/lib/dbus/machine-id
package main | |
import ( | |
"time" | |
"fmt" | |
"strings" | |
) | |
func main() { | |
p := [][][]string { |