V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
V2EX  ›  hihihihihi  ›  全部回复第 41 页 / 共 44 页
回复总数  861
1 ... 33  34  35  36  37  38  39  40  41  42 ... 44  
2016 年 12 月 12 日
回复了 hihihihihi 创建的主题 Linux 有强迫症的别折腾 Linux,太浪费时间了
@em70 我发现自己都是在折腾工作环境去了, 最后代码没写多少。。。。
2016 年 12 月 8 日
回复了 raysonx 创建的主题 程序员 分享一个 vim 配置文件(for programmers)
我用的 Fisa vim ,很爽啊。
2016 年 12 月 6 日
回复了 susu 创建的主题 Apple 有人被 Macbook 漏电伤过么。
打字的时候经常,发现也是边缘部分
2016 年 12 月 5 日
回复了 mablinuxp 创建的主题 硬件 还是个老问题,如何确定我今天出门锁门了
前几年换了密码锁后,爽!
2016 年 12 月 5 日
回复了 tankb52 创建的主题 Linux 先修好 Arch 再来修 Windows
refind
2016 年 12 月 5 日
回复了 hihihihihi 创建的主题 Linux 删除 Arch 滚回 Xubuntu 下做开发了。。。。
@fuxpro 很头疼,主要是做 Python 的开发, 不同 Python 的版本用 Pyenv 来管理已经有点麻烦了,用多个虚拟机吧,设计到 GUI 调试,也麻烦。全部在本机可是碰到版本兼容问题。。。头疼,头疼。

可能就不适合同时工作在几个不同的工程中。
2016 年 12 月 4 日
回复了 hihihihihi 创建的主题 Linux 删除 Arch 滚回 Xubuntu 下做开发了。。。。
Ok, start to learn docker!!!
2016 年 12 月 4 日
回复了 hihihihihi 创建的主题 Linux 删除 Arch 滚回 Xubuntu 下做开发了。。。。
@fyibmsd The library I am using only works on Linux...:(
2016 年 12 月 4 日
回复了 hihihihihi 创建的主题 Linux 删除 Arch 滚回 Xubuntu 下做开发了。。。。
编译不通过是链接时出错, 而那部分我没有源代码。
Kinzu V3
2016 年 11 月 20 日
回复了 Antidictator 创建的主题 程序员 看技术文档 PDF 之类的比较适合是 Kindle 吗?
我之前为了看书籍, 各种类型, 有 kindle store 上购买的 mobi 格式, 也有 pdf 格式。 买过 2 个 kindle , 都不适合 pdf 格式,文字太小,段落分得很不好。 还买过 surface , 上面的 pdf 阅读软件都好烂!!尤其是涉及到本地书架的时候, 很不爽。 ipad mini 也不适合,太小了。

最后 kindle voyage 看电子书, pdf 用 ipad air
2016 年 11 月 17 日
回复了 SkyTodInfi 创建的主题 macOS Visual Studio for Mac 下载链接来啦~
这不就是 xamarin 吗?
2016 年 11 月 13 日
回复了 hihihihihi 创建的主题 Python Python 多线程 Websockets 退出出错
算了,算了, 不麻烦了, 我还是 setDaemon 方式退出拉倒。。。后事不料理了。。。。
2016 年 11 月 13 日
回复了 hihihihihi 创建的主题 Python Python 多线程 Websockets 退出出错
好像还是用抛异常来解决超时杀线程比较方便


import threading
import time
import inspect
import ctypes

def _async_raise(tid, exctype):
"""raises the exception, performs cleanup if needed"""
tid = ctypes.c_long(tid)
if not inspect.isclass(exctype):
exctype = type(exctype)
res = ctypes.pythonapi.PyThreadState_SetAsyncExc(tid, ctypes.py_object(exctype))
if res == 0:
raise ValueError("invalid thread id")
elif res != 1:
# """if it returns a number greater than one, you're in trouble,
# and you should call it again with exc=NULL to revert the effect"""
ctypes.pythonapi.PyThreadState_SetAsyncExc(tid, None)
raise SystemError("PyThreadState_SetAsyncExc failed")

def stop_thread(thread):
_async_raise(thread.ident, SystemExit)

class TestThread(threading.Thread):
def run(self):
print "begin"
while True:
time.sleep(0.1)
print "end"
if __name__ == "__main__":
t = TestThread()
t.start()
time.sleep(1)
stop_thread(t)
print "stoped"
1 ... 33  34  35  36  37  38  39  40  41  42 ... 44  
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2779 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 33ms · UTC 05:38 · PVG 13:38 · LAX 22:38 · JFK 01:38
♥ Do have faith in what you're doing.