recentpopularlog in

kme : woes   21

[PHP 7] Exception error PHP 7 · Issue #9601 · laravel/framework · GitHub
Had this problem after I upgraded MediaWiki 1.2x to PHP 7.x and it wasn't ready for the new exception handler function signature.

Workaround offered by one of the comments:

<code class="language-php">
try {
// Code that may throw an Exception or Error.
} catch (Throwable $t) {
// Executed only in PHP 7, will not match in PHP 5.x
} catch (Exception $e) {
// Executed only in PHP 5.x, will not be reached in PHP 7
php  mediawiki  errormessage  exceptionhandling  php7  upgrade  woes 
16 days ago by kme
The Myth of 'It's Just Javascript'
*The phrase is often used in its unfinished state and so its meaning is often misconstrued. In full, the phrase reads “A jack of all trades is a master of none but oftentimes better than a master at one.”

Contrary to the commonly-held negative notion of being a generalist (i.e. jack of all trades), the true nature of the phrase reveals that being a generalist is actually not a bad thing at all.
javascript  frontend  webdevel  woes 
october 2019 by kme
json - xargs: how to have literal double-quotes in replacement? - Stack Overflow
GNU Parallel was built specifically to deal with xargs bad handling of special chars:
<code class="language-bash"><source parallel curl -X POST -H "application/json" myURL -d {}</code>
shellscripting  sysadmin  xargs  gnuparallel  quoting  woes 
september 2019 by kme
Deciphering Glyph :: Tips And Tricks for Shipping a PyGame App on the Mac
Luckily the OS ships with the macOS-specific “scriptable image processing system”, which can helpfully convert an icon for you. Make yourself a 512x512 PNG file in your favorite image editor (with an alpha channel!) that you want to use as your icon, then run it something like this:
<code class="language-bash">$ sips -s format icns Icon.png --out Icon.icns</code>
somewhere in your build process, to produce an icon in the appropriate format.
mac  python  pygame  packaging  woes  imageprocessing  icons  tipsandtricks 
june 2019 by kme
LFTP FTPS and Certificate Verification » Versatile Web Solutions |
<code class="language-bash">
openssl s_client -showcerts -connect -starttls ftp
lftp  cryto  cacert  certificate  woes  maybesolution  troubleshooting 
april 2019 by kme
java - Reading File from Windows and Linux yields different results (character encoding?) - Stack Overflow
� is a sequence of three characters - 0xEF 0xBF 0xBD, and is UTF-8 representation of the Unicode codepoint 0xFFFD. The codepoint in itself is the replacement character for illegal UTF-8 sequences.
unicode  encoding  illegalcharacters  utf8  linux  woes  reference 
july 2015 by kme
java - How to replace � in a string - Stack Overflow
Based on other comments, it is most likely that the character that you are looking for is '�', that is the Unicode replacement character. This is the character that is "used to replace an incoming character whose value is unknown or unrepresentable in Unicode".
unicode  errormessage  encoding  utf8  woes  reference 
july 2015 by kme
ls - Strange case: Text file that exist and doesn't exist - Unix & Linux Stack Exchange
Explanation: why does the high bit signify something gone wrong? The filename ‘Clon1918K_PCC1.gff’ appears to be 100% 7-bit US ASCII. Putting it through hexdump -C produces this:

Run LC_ALL=C ls -l --quoting-style=c *.gff to see a non-ambiguous representation of the file name.

Run mv -i *.gff Clon1918K_PCC1.gff to rename the file to a known name.
international  encoding  utf8  linux  woes  illegalcharacters  tipsandtricks 
july 2015 by kme

Copy this bookmark:

to read