上海 亿贝 招聘 软件工程师
职位列表如下, 常见有各种职位, 要求英语好, 能沟通.
内部推荐 邮箱联系: eGlhdGlhbkBlYmF5LmNvbQ==

职位列表如下, 常见有各种职位, 要求英语好, 能沟通.
内部推荐 邮箱联系: eGlhdGlhbkBlYmF5LmNvbQ==

下面就是当前线程的Stack;
"DefaultThreadPool-89" daemon prio=10 tid=0x00007f3974036000 nid=0xb4a waiting on condition [0x00007f393e7e4000]
java.lang.Thread.State: WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00000007ac99baf8> (a com.ebay.raptor.orchestration.impl.FutureCallableTask)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
at java.util.concurrent.FutureTask.awaitDone(FutureTask.java:425)
at java.util.concurrent.FutureTask.get(FutureTask.java:187)
java.lang.Thread.State: RUNNABLE
java.lang.Thread.State: BLOCKED (on object monitor)
java.lang.Thread.State: TIMED_WAITING (sleeping)
java.lang.Thread.State: TIMED_WAITING (parking)
java.lang.Thread.State: TIMED_WAITING (on object monitor)
java.lang.Thread.State: WAITING (parking)
java.lang.Thread.State: WAITING (on object monitor)
JVM 6种线程定义:
A thread state. A thread can be in one of the following states:
NEW
A thread that has not yet started is in this state.
RUNNABLE
A thread executing in the Java virtual machine is in this state.
BLOCKED
A thread that is blocked waiting for a monitor lock is in this state.
WAITING
A thread that is waiting indefinitely for another thread to perform a particular action is in this state.
TIMED_WAITING
A thread that is waiting for another thread to perform an action for up to a specified waiting time is in this state.
TERMINATED
A thread that has exited is in this state.
A thread can be in only one state at a given point in time. These states are virtual machine states which do not reflect any operating system thread states.
brew install unrar
unrar x a.rar
尚未查到具体原因. 之后竟然直接好了, 怀疑 chrome 升级修复.
问题: 经常下载一些比较大的文件, 如JVM heap, 通常几个G, 然而常用的chrome 浏览器的默认行为竟然是打开, 而不是下载, 直接导致它开始卡住, 继而电脑开始嗡嗡响.
如果自己可以修改 html, 其实可以添加一个 downlaod 属性
<a href="/images/myw3schoolsimage.jpg" download>more info: https://www.w3schools.com/tags/att_a_download.asp
有用的链接:
https://chromium.googlesource.com/chromium/src/+/500057e7dc62bc041d248c03e10e73165d044e3e/chrome/browser/download/download_prefs.cc
https://superuser.com/questions/408243/prevent-chrome-from-automatically-opening-downloaded-pdf-and-image-files
https://superuser.com/questions/725854/prevent-chrome-from-automatically-opening-files
https://support.google.com/chrome/forum/AAAAP1KN0B07MMOjnYxV4Q/?hl=en&gpf=%23!topic%2Fchrome%2F7MMOjnYxV4Q
https://stackoverflow.com/questions/20144948/is-there-any-way-to-programatically-force-always-open-files-of-this-type-for-a
刚工作的时候, 为了学习各种技能, 买了很多书, 后来每次搬家, 发现最难搬的就是哪些厚厚的书, 里面有一大部分是买过之后根本没读过的. 反而很多存的电子书都读过不少. 在第二家公司离职之前, 发现电脑里存了至少10几个G的各种格式的书, 最多的是pdf, 当时还很喜欢收集各种 chm 格式的书, 尽管有人说 chm 格式可能有携带病毒的风险, 不过鉴于个目录结构非常清晰, 如果有 chm 格式的, 绝对不会看其它的. 那次离职之前把当时所有的电子书都上传到了 download.csdn.net. 于是我的csdn账号成了一个非常受欢迎的东西, 因为后来 csdn在下载东西需要积分, 而我那个账号因为分享了好些书, 别人下载我可以自动有积分, 于是很多同事都喜欢用我那个含有很多积分的csdn账号下东西.
尽管 chm 格式很好, 不过哪些都是些 速查工具手册 之类的, 比如 CSS, HTML, SQL 语法之类的. 更多系统性的书和文档都是pdf 格式的.
后来处于保护眼睛和便携性, 买了 Kindle paperwhite, 发现这确实是个好东西, 不伤眼, 可以在灯光昏暗的地方看, 方便携带, 还有 amazon 里面的很多书可以买.
对于很多计算机方面的书有个问题是, 里面的很多插图, 很多代码, 放到 Kindle 里面的效果很不好, 看起来格式就很乱. 另外一方面Safari online 里面的很多书只能导出pdf格式. 尽管有很多切边的教程可以把pdf 放到 Kindle, 但是效果很不好.
后来了解到电子书, 当时国内外已经有很多这样的设备, 考虑到Kindle同样的屏幕大小的问题, 想买一个尽量大屏幕的设备. 查找过很多资料, 说最大屏幕, 最好效果的竟然是Kindle 家族已经停产的 Kindle DXG. 于是在淘宝上买了一个二手的(当时只有二手可买). 收到之后发现屏幕上面有好几处明显的划痕, 大概1200多块钱. 我老婆看后觉的不划算, 要退货. 我说如果退了这个, 只能买一个快要发布的Sony的电子书, 那个要5000多块钱, 她觉的5000多买个新的也比这个有划痕, 已经停产好几年的东西强, 于是在2017年8月从亚马逊上面海淘了一个美版的 Sony Digital Paper rp1.
到现在已经使用了大概1年半多, 读了至少有20多本书, 大部分是计算机相关的. 使用的感受如下:
下一步 如果可以的话, 在买个 10.3寸的做收藏.