Skip to content

Instantly share code, notes, and snippets.

View zdavatz's full-sized avatar
🎯
Focusing

Zeno R.R. Davatz zdavatz

🎯
Focusing
View GitHub Profile
@zdavatz
zdavatz / gist:3cc5e0c565aefaaa6bae3b2aa9dd9faf
Created September 13, 2018 12:51
debugging wrong scan
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
2018-09-13 14:49:30.173250+0200 AmiKoDesitin[1065:335780] -[PrescriptionViewController loadDefaultPrescription] Default prescription not yet defined
2018-09-13 14:49:30.210667+0200 AmiKoDesitin[1065:335780] Patient DB found in user's documents folder /var/mobile/Containers/Data/Application/B0767FF9-C5E4-40B6-8E13-9C083894EEAD/Documents/patient_db.db
2018-09-13 14:49:30.210790+0200 AmiKoDesitin[1065:335780] /var/mobile/Containers/Data/Application/B0767FF9-C5E4-40B6-8E13-9C083894EEAD/Documents/patient_db.db
2018-09-13 14:49:46.007957+0200 AmiKoDesitin[1065:336039] 298 hits in 409ms
2018-09-13 14:49:46.072792+0200 AmiKoDesitin[1065:336039] 8 hits in 6ms
2018-09-13 14:49:46.126479+0200 AmiKoDesitin[1065:335868] 2 hits in 5ms
2018-09-13 14:49:46.396450+0200 AmiKoDesitin[1065:335868] 2 hits in 18ms
2
standard 14:09:10.589346 +0200 assertiond [SpringBoard:2836] Attempting to acquire assertion for AmiKoDesitin:5792: <BKProcessAssertion: 0x100621bc0; "com.apple.UIKit.KeyboardManagement.message" (finishTask:180s); id:…97B34DB9673A>
standard 14:09:10.589505 +0200 assertiond [SpringBoard:2836] Attempting to acquire assertion for AmiKoDesitin:5792: <BKProcessAssertion: 0x100621bc0; "com.apple.UIKit.KeyboardManagement.message" (finishTask:180s); id:…97B34DB9673A>
standard 14:09:10.589811 +0200 assertiond [AmiKoDesitin:5792] Add assertion: <BKProcessAssertion: 0x100621bc0; id: 2836-95E82A1E-E523-424F-9C98-97B34DB9673A; name: com.apple.UIKit.KeyboardManagement.message; state: active; reason: finishTask; duration: 180.0s> {
owner = <BSProcessHandle: 0x100508b10; SpringBoard:2836; valid: YES>;
flags = preventSuspend, preventThrottleDownUI, preventThrottleDownCPU, preventSuspendOnSleep;
}
standard 14:09:10.589974 +0200 assertiond [AmiKoDesitin:5792] Add assertion: <BKProcessAssertion: 0x100621bc0; id: 2836-95E
Verifying my Blockstack ID is secured with the address 1NSCpZaVHgSzZ1vVbPYpRb2HZyWY9CHM13 https://explorer.blockstack.org/address/1NSCpZaVHgSzZ1vVbPYpRb2HZyWY9CHM13
@zdavatz
zdavatz / hash
Created November 22, 2017 17:13
[self.webView stringByEvaluatingJavaScriptFromString:[NSString stringWithFormat:@"var hashElement=document.getElementById('%@');if(hashElement) {hashElement.scrollIntoView();}", href]];
@zdavatz
zdavatz / ydim_install_script_error
Created May 11, 2016 13:33
ydim_install_script_error
ic -lpthread -lrt -ldl -lcrypt -lm
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/local/lib64/libruby-static.a(array.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib64/libruby-static.a: could not read symbols: Bad value
collect2: ld gab 1 als Ende-Status zurück
make: *** [mod_ruby.so] Fehler 1
gcc -shared -o mod_ruby.so mod_ruby.o ruby_config.o apachelib.o array_header.o table.o connection.o server.o request.o upload.o cookie.o paramtable.o multival.o bucket.o uri.o error.o apache_request.o apache_multipart_buffer.o apache_cookie.o -L/usr/lib64 -L/usr/local/lib64 -Wl,-R -Wl,/usr/local/lib64 -L/usr/local/lib64 -lruby-static -lpthread -lrt -ldl -lcrypt -lm
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/local/lib64/libruby-static.a(array.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPI
/usr/local/src/mod_ruby> readelf -d mod_ruby.so
Dynamic section at offset 0x22b10 contains 33 entries:
Tag Type Name/Value
0x0000000000000001 (NEEDED) Shared library: [libruby.so.2.1]
0x0000000000000001 (NEEDED) Shared library: [libpthread.so.0]
0x0000000000000001 (NEEDED) Shared library: [libgmp.so.10]
0x0000000000000001 (NEEDED) Shared library: [libdl.so.2]
0x0000000000000001 (NEEDED) Shared library: [libcrypt.so.1]
0x0000000000000001 (NEEDED) Shared library: [libm.so.6]
/usr/local/src/mod_ruby> readelf -d mod_ruby.so
Dynamic section at offset 0x22b10 contains 33 entries:
Tag Type Name/Value
0x0000000000000001 (NEEDED) Shared library: [libruby.so.2.1]
0x0000000000000001 (NEEDED) Shared library: [libpthread.so.0]
0x0000000000000001 (NEEDED) Shared library: [libgmp.so.10]
0x0000000000000001 (NEEDED) Shared library: [libdl.so.2]
0x0000000000000001 (NEEDED) Shared library: [libcrypt.so.1]
0x0000000000000001 (NEEDED) Shared library: [libm.so.6]
@zdavatz
zdavatz / keybase.md
Created March 17, 2016 21:08
keybase.md

Keybase proof

I hereby claim:

  • I am zdavatz on github.
  • I am zdavatz (https://keybase.io/zdavatz) on keybase.
  • I have a public key whose fingerprint is 0182 6A3A 541E C198 032B 4A92 0840 EBA0 D77B 920F

To claim this, I am signing this object:

<ARTICLE>
<GTIN>7680630020048</GTIN>
<NAME>Forielle 1050 U.I./1.75 mL (77 µg/1.75 mL), Injektionspräparat</NAME>
<PKG_SIZE>1</PKG_SIZE>
<SELLING_UNITS>1</SELLING_UNITS>
<MEASURE>Set</MEASURE>
<GALENIC_FORM>Injektionspräparat</GALENIC_FORM>
<GALENIC_GROUP>Injektion/Infusion</GALENIC_GROUP>
<COMPOSITIONS>
<COMPOSITION>
<ARTICLE>
<GTIN>7680413520352</GTIN>
<NAME>Feiba NF 1000 E., Injektionspräparat</NAME>
<PKG_SIZE>1</PKG_SIZE>
<SELLING_UNITS>1</SELLING_UNITS>
<MEASURE>Ampulle(n)</MEASURE>
<GALENIC_FORM>Injektionspräparat</GALENIC_FORM>
<GALENIC_GROUP>Injektion/Infusion</GALENIC_GROUP>
<COMPOSITIONS>
<COMPOSITION>