Terminator

Fix key settings (Home/End/Insert/Delete) in .zshrc when running Zsh in Terminator Terminal Emulator

久未见 提交于 2019-11-29 21:27:59
I'm running Ubuntu 11.04. I installed the Terminator Terminal Emulator 0.95, and Zsh, version 4.3.15. I have (commonly known) problems with my keys inside the Zsh. At least these: Home/End, nothing happens Insert/Delete/PageUp/PageDown: a "~" is typed I already tried some configurations for .zshrc which should solve the problem, but no approach really worked so far. Maybe this is related to the combination of Terminator and Zsh. I took the 2 configs on this page: https://bbs.archlinux.org/viewtopic.php?pid=428669 . Does oneone have a similar configuration (especially Terminator and Zsh) and

Fix key settings (Home/End/Insert/Delete) in .zshrc when running Zsh in Terminator Terminal Emulator

僤鯓⒐⒋嵵緔 提交于 2019-11-28 16:46:58
问题 I'm running Ubuntu 11.04. I installed the Terminator Terminal Emulator 0.95, and Zsh, version 4.3.15. I have (commonly known) problems with my keys inside the Zsh. At least these: Home/End, nothing happens Insert/Delete/PageUp/PageDown: a "~" is typed I already tried some configurations for .zshrc which should solve the problem, but no approach really worked so far. Maybe this is related to the combination of Terminator and Zsh. I took the 2 configs on this page: https://bbs.archlinux.org

Is it possible to add data to a string after adding “\0” (null)?

只愿长相守 提交于 2019-11-28 00:21:35
问题 I have a string that I am creating, and I need to add multiple "\0" (null) characters to the string. Between each null character, is other text data (Just ASCII alphanumeric characters). My problem is that in J2SE when you add the first null (\0), java then seems to determine that it's a string terminator, (similar to C++), and ignores all other data being appended. No error is raised, the trailing data is just ignored. I need to force the additional trailing data after a null in the string.

Integer面试连环炮以及源码分析

五迷三道 提交于 2019-11-27 07:19:47
场景:   昨天有位朋友去面试,我问他面试问了哪些问题,其中问了Integer相关的问题,以下就是面试官问的问题,还有一些是我对此做了扩展。 问:两个new Integer 128相等吗? 答:不。因为Integer缓存池默认是-127-128; 问:可以修改Integer缓存池范围吗?如何修改? 答:可以。使用 -Djava.lang.Integer.IntegerCache.high=300 设置Integer缓存池大小 问:Integer缓存机制使用了哪种设计模式? 答:亨元模式; 问:Integer是如何获取你设置的缓存池大小? 答: sun.misc.VM.getSavedProperty("java.lang.Integer.IntegerCache.high"); 问: sun.misc.VM.getSavedProperty 和 System.getProperty 有啥区别? 答:唯一的区别是, System.getProperty 只能获取非内部的配置信息;例如 java.lang.Integer.IntegerCache.high 、 sun.zip.disableMemoryMapping 、 sun.java.launcher.diag 、 sun.cds.enableSharedLookupCache 等不能获取,这些只能使用 sun.misc.VM