lolizeppelin 最近的时间轴更新
lolizeppelin

lolizeppelin

V2EX 第 239732 号会员,加入于 2017-07-11 18:20:07 +08:00
今日活跃度排名 13307
crypto-js 的完全看不懂
JavaScript  •  lolizeppelin  •  2021-11-02 16:37:56 PM  •  最后回复来自 lolizeppelin
2
PG11 基于时间点恢复在时间线上无限循环
PostgreSQL  •  lolizeppelin  •  2021-10-24 22:51:06 PM  •  最后回复来自 lolizeppelin
1
被各种关系数据库的 json 操作坑死了
Python  •  lolizeppelin  •  2020-09-04 09:39:30 AM  •  最后回复来自 ghostviper
32
有没有熟悉 libtorrent 或者 bt 客户端开发的
程序员  •  lolizeppelin  •  2020-03-05 10:36:59 AM  •  最后回复来自 julyclyde
10
求个完美的文件夹校验正则
程序员  •  lolizeppelin  •  2020-02-18 20:05:50 PM  •  最后回复来自 no1xsyzy
19
有没有熟悉 setuptool 和 pbr 的同学?
Python  •  lolizeppelin  •  2019-09-10 15:48:41 PM  •  最后回复来自 lolizeppelin
1
求一个编译号的 Python 包 yappi 要 python3.6 的
Python  •  lolizeppelin  •  2019-09-02 16:34:04 PM  •  最后回复来自 Pzqqt
2
lolizeppelin 最近回复了
笑死了...都在用 python 了还在纠结性能问题....
60 天前
回复了 lingeo 创建的主题 Python 如何为 Python 原生对象添加函数
我敢打赌 楼主原来是写 js 的
74 天前
回复了 zywscq 创建的主题 Python Python 如何实现单例模式
用元类装饰器

```python
class Singleton(type):
_instances = {}
_semaphores = lockutils.Semaphores()

def __call__(cls, *args, **kwargs):
with lockutils.lock('singleton_lock', semaphores=cls._semaphores):
if cls not in cls._instances:
cls._instances[cls] = super(Singleton, cls).__call__(
*args, **kwargs)
return cls._instances[cls]

singleton = six.add_metaclass(Singleton)


@singleton
class Myclass():
....


```


写一个通用的非常方便

缺点时候被装饰的类本身也有元类操作时就出错了
@adoal
把 Kong 和 APISIX 也打标准 rpm 包....
@adoal
可以自己做标准 rpm 打包,稍微改动下标准 nginx 打包文件就可以了
%if %{with lua}
%package mod-http-ndk
Group: System Environment/Daemons
Summary: Nginx HTTP ndk module
Requires: nginx = %{epoch}:%{version}-%{release}

%description mod-http-ndk
%{summary}.

%package mod-http-lua
Group: System Environment/Daemons
Summary: Nginx HTTP lua module
Requires: nginx-mod-http-ndk = %{epoch}:%{version}-%{release}
Requires: openresty-luajit = %{luajit_ver}
Requires: openresty-core = %{core_ver}
Provides: lua-nginx-module = %{lua_ver}

%description mod-http-lua
%{summary}.
%endif

----
%if %{with lua}
--add-dynamic-module=./ngx_devel_kit-%{ndk_ver} \
--add-dynamic-module=./lua-nginx-module-%{lua_ver} \
%endif
%if %{with luastream}
--with-stream \
--add-module=./stream-lua-nginx-module-%{lua_stream_ver} \
%else
--with-stream=dynamic \
%endif
用户才会觉得 Electron 垃圾...只是用户不知道而已
知道 Electron 的用户都是程序员所以产生了程序员觉得 Electron 垃圾的错觉

Electron 的问题是又臃肿又慢,核心就是 js 不够行

程序员写 Electron 方便得 1b 好么,总比用其他东西写 ui 来的快多了
127 天前
回复了 OldCarMan 创建的主题 程序员 是前端改还是后端改?
3. 后端接口都要都要带版本前缀/v1.0 方便更新修 bug,通过多版本接口实现兼容
127 天前
回复了 OldCarMan 创建的主题 程序员 是前端改还是后端改?
1. 用 int 节约带宽就是扯淡,字符串提高开发效率,一眼能看懂的状态用 int 还要想半天
如果后端状态 int 字段本身很多地方都在用了,才考虑用 int 表状态

2.说了 100 便了 了,用 http 重定向用 post 传 get 带 body 就完事
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3490 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 23ms · UTC 11:22 · PVG 19:22 · LAX 04:22 · JFK 07:22
Developed with CodeLauncher
♥ Do have faith in what you're doing.