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
import org.apache.sanselan.ImageReadException; | |
import org.apache.sanselan.ImageWriteException; | |
import org.apache.sanselan.common.IImageMetadata; | |
import org.apache.sanselan.formats.jpeg.JpegImageMetadata; | |
import org.apache.sanselan.formats.jpeg.JpegImageParser; | |
import org.apache.sanselan.formats.jpeg.exifRewrite.ExifRewriter; | |
import org.apache.sanselan.formats.tiff.TiffImageMetadata; | |
public SomeClass { | |
public static TiffImageMetadata readExifMetadata(byte[] jpegData) throws ImageReadException, IOException { |
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
git clone ssh://[email protected]/repo/blah.git | |
cd blah | |
git config user.name "Jens Lohmann" | |
git config user.email "[email protected]" |
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
This might be helpful when generating signed (not strictly self-signed) certificates for use in development on MacOSX. | |
Testing (against server using the generated server cert): | |
curl --trace - -3 --insecure --cert clientcert.p12:changeit --get https://localhost:443/ | |
Troubleshooting: | |
- Check the keychain (Cmd-Space "Keychain Access") for old entries. Delete them :-) | |
- "-3" avoids some MacOSX curl quirkiness. | |
- "--insecure" seems to be necessary for MacOSX curl. If you find a way to use "--cacert cacert.pem" instead then tell me :-) |
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
Index: org/apache/catalina/authenticator/BasicAuthenticator.java | |
<+>UTF-8 | |
=================================================================== | |
--- org/apache/catalina/authenticator/BasicAuthenticator.java (revision ) | |
+++ org/apache/catalina/authenticator/BasicAuthenticator.java (revision ) | |
@@ -191,6 +191,11 @@ | |
request.getResponse().getCoyoteResponse().getMimeHeaders() | |
.addValue(AUTHENTICATE_BYTES, 0, AUTHENTICATE_BYTES.length); | |
CharChunk authenticateCC = authenticate.getCharChunk(); | |
+ MessageBytes xRequestedWith = |
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
public java.lang.String toString() { | |
#if ( $members.size() > 0 ) | |
#set ( $i = 0 ) | |
return "{\"_class\":\"$classname\", " + | |
#foreach( $member in $members ) | |
#set ( $i = $i + 1 ) | |
#if ( $i == $members.size() ) | |
#set ( $postfix = "+" ) | |
#else | |
#set ( $postfix = "+ "", "" + " ) |
NewerOlder