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
<settings> | |
<profiles> | |
<profile> | |
<id>sign</id> | |
<properties> | |
<keystore>./test.keystore</keystore> | |
<storepass>hogehoge</storepass> | |
<keypass>hogehoge</keypass> | |
<alias>test</alias> | |
</properties> |
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
public class JExcelSample { | |
public void sample(File inputFile) { | |
final Workbook masterBook = Workbook.getWorkbook(inputFile); | |
try { | |
for (Sheet sheet : masterBook.getSheets()) { | |
if (sheet == null) { | |
assert false : "null は無いはず。"; | |
continue; | |
} |
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
diff --git a/ddms/libs/ddmlib/src/com/android/ddmlib/MultiLineReceiver.java b/ddms/libs/ddmlib/src/com/android/ddml | |
index 24dbb05..f3d9412 100644 | |
--- a/ddms/libs/ddmlib/src/com/android/ddmlib/MultiLineReceiver.java | |
+++ b/ddms/libs/ddmlib/src/com/android/ddmlib/MultiLineReceiver.java | |
@@ -51,7 +51,7 @@ public abstract class MultiLineReceiver implements IShellOutputReceiver { | |
if (isCancelled() == false) { | |
String s = null; | |
try { | |
- s = new String(data, offset, length, "ISO-8859-1"); //$NON-NLS-1$ | |
+ s = new String(data, offset, length, "UTF-8"); //$NON-NLS-1$ |
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
/dev/block/loop0 /mnt/obb/443968eabe370a269a4f820df69824bb vfat ro,dirsync,nosuid,nodev,uid=10030,fmask=0227,dmask=0227,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0 |
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
ユーザーanonymousが実行 | |
[workspace] $ /bin/sh -xe /Library/Tomcat/temp/hudson2161977023374287353.sh | |
+ echo /Users/zaki/.hudson/secrets/a3e0d4fc-c897-4ca1-9381-e51919ce2917 | |
/Users/zaki/.hudson/secrets/a3e0d4fc-c897-4ca1-9381-e51919ce2917 | |
+ cat /Users/zaki/.hudson/secrets/a3e0d4fc-c897-4ca1-9381-e51919ce2917/aa/bb.txt | |
secret! | |
Finished: SUCCESS |
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
ユーザーanonymousが実行 | |
[workspace] $ /bin/sh -xe /Library/Tomcat/temp/hudson2161977023374287353.sh | |
+ echo /Users/zaki/.hudson/secrets/a3e0d4fc-c897-4ca1-9381-e51919ce2917 | |
/Users/zaki/.hudson/secrets/a3e0d4fc-c897-4ca1-9381-e51919ce2917 | |
+ cat /Users/zaki/.hudson/secrets/a3e0d4fc-c897-4ca1-9381-e51919ce2917/aa/bb.txt | |
secret! | |
Finished: SUCCESS |
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
class Klass<K> { | |
public static <K> Klass<K> create(Class<K> c) { | |
return new Klass<K>(c); | |
} | |
private final Class<K> clazz; | |
private Klass(Class<K> c) { | |
clazz = c; | |
} |
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
final KeyPairGenerator kpg = KeyPairGenerator.getInstance("RSA"); | |
kpg.initialize(new RSAKeyGenParameterSpec(2048, RSAKeyGenParameterSpec.F4)); | |
Log.i("hamatz", "generating RSA key pair..."); | |
final long start = SystemClock.uptimeMillis(); | |
final KeyPair kp = kpg.generateKeyPair(); | |
final long end = SystemClock.uptimeMillis(); | |
Log.i("hamatz", "done: " + (end-start) + "ms."); | |
final RSAPrivateKey privkey = (RSAPrivateKey) kp.getPrivate(); | |
final RSAPublicKey pubkey = (RSAPublicKey) kp.getPublic(); |
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
/* | |
こんなintent filter で | |
<intent-filter> | |
<action android:name="android.intent.action.VIEW" /> | |
<category android:name="android.intent.category.DEFAULT" /> | |
<data android:scheme="https" android:host="market.android.com"/> | |
</intent-filter> | |
*/ | |
protected void onResume() { |
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
Index: src/net/kazzz/felica/lib/FeliCaLib.java | |
=================================================================== | |
--- src/net/kazzz/felica/lib/FeliCaLib.java (リビジョン 37) | |
+++ src/net/kazzz/felica/lib/FeliCaLib.java (作業コピー) | |
@@ -256,7 +256,7 @@ | |
* @return byte[] このデータのバイト列表現を戻します | |
*/ | |
public byte[] getBytes() { | |
- ByteBuffer buff = ByteBuffer.allocate(this.length); | |
+ ByteBuffer buff = ByteBuffer.allocate(this.length & 0xFF); |
OlderNewer