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/sh | |
# From http://www.linuxweblog.com/bash-argument-numbers-check | |
EXPECTED_ARGS=1 | |
E_BADARGS=65 | |
if [ $# -gt $EXPECTED_ARGS ] | |
then | |
echo "Usage: ./extract [starting_directory]" >&2 | |
exit $E_BADARGS | |
fi |
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
<html><head></head><body> | |
<table border=1> | |
<tr><td>Location</td><td>Comment</td></tr> | |
<tr> | |
<td><a href=/Applications//Aquamacs Emacs.app/Contents/Resources/site-lisp/edit-modes/jde/java/src/jde/debugger/expr/LValue.java>Aquamacs (629)</a></td> | |
<td>return ((ObjectReference)val).toString(); // </td> | |
</tr> | |
<tr> | |
<td><a href=/Applications//Aquamacs Emacs.app/Contents/Resources/site-lisp/edit-modes/jde/java/src/jde/debugger/expr/LValue.java>Aquamacs (633)</a></td> | |
<td>return val.toString(); // not correct in all cases</td> |
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
#include <jni.h> | |
#include "Translator.h" | |
#include <stdio.h> | |
extern "C" { | |
JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *vm, void *reserved) { | |
printf("We're loaded by the OS!\n"); |
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
strace -v -s 256 -p 8326 | |
Process 8326 attached - interrupt to quit | |
setup() = -1 ETIMEDOUT (Connection timed out) | |
stat64("/system/lib/libhello-jni.so", 0xbeb57fa0) = -1 ENOENT (No such file or directory) | |
stat64("/data/data/com.example.hellojni/lib/libhello-jni.so", {st_dev=makedev(31, 5), st_ino=1374, st_mode=S_IFREG|0644, st_nlink=1, st_uid=1000, st_gid=1000, st_blksize=4096, st_blocks=27, st_size=13362, st_atime=2010/09/20-13:33:01, st_mtime=2010/08/27-13:04:18, st_ctime=2010/09/20-13:33:01}) = 0 | |
writev(3, [{"\3", 1}, {"dalvikvm\0", 9}, {"Trying to load lib /data/data/com.example.hellojni/lib/libhello-jni.so 0x434fb638\n\0", 83}], 3) = 93 | |
stat64("/data/data/com.example.hellojni/lib/libhello-jni.so", {st_dev=makedev(31, 5), st_ino=1374, st_mode=S_IFREG|0644, st_nlink=1, st_uid=1000, st_gid=1000, st_blksize=4096, st_blocks=27, st_size=13362, st_atime=2010/09/20-13:33:01, st_mtime=2010/08/27-13:04:18, st_ctime=2010/09/20-13:33:01}) = 0 | |
open("/data/data/com.example.hellojni/lib/libhello-jni.so", O_RDONLY|O_LARGE |
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
#Medevac | |
09-24 17:18:42.366: INFO/JNI(17488): From XML | |
09-24 17:18:42.826: INFO/stdout(17488): In mgmain JNI_OnLoad | |
09-24 17:18:42.826: INFO/stdout(17488): XML path: /sdcard/XML/ | |
09-24 17:18:42.976: INFO/stdout(17488): translateIndexNumbers: about to call getNameTranslationData(VMF_HEADER) | |
09-24 17:18:42.976: INFO/stdout(17488): getNameTranslationData: segType = 0; fileName = /sdcard/XML/msg_hdc.xml | |
09-24 17:18:43.056: INFO/stdout(17488): translateIndexNumbers: back from call to getNameTranslationData | |
09-24 17:18:43.056: INFO/stdout(17488): headerTranslation->size() = 8 | |
09-24 17:18:43.056: INFO/stdout(17488): about to iterate over a total of 4 header MessageDataItems | |
09-24 17:18:43.056: INFO/stdout(17488): iterating through header MessageDataItems; at i=0 |
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
// Save state of map | |
@Override | |
protected Parcelable onSaveInstanceState() { | |
Parcelable superState = super.onSaveInstanceState(); | |
SavedState ss = new SavedState(superState); | |
ss.centerPoint = getMapCenter(); | |
ss.zoomLevel = getZoomLevel(); | |
return ss; | |
} | |
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
/* | |
* To change this template, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package polygonexample; | |
import java.awt.Color; | |
import java.awt.Dimension; | |
import java.awt.Graphics; |
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
/* | |
* To change this template, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package dynamicfields; | |
import java.awt.event.ActionEvent; | |
import javax.swing.AbstractAction; | |
import javax.swing.JButton; |
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 static void main(String[] args) { | |
JFrame frame = new JFrame(); | |
JPanel panel = new JPanel(); | |
panel.add(new StarRater()); | |
frame.getContentPane().add(panel); | |
frame.pack(); | |
frame.setVisible(true); | |
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); | |
} |
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
$ python reverse.py I like dogs | |
dogs like I |
OlderNewer