存档

‘技术’ 分类的存档

linux下Chrome报GPU错误

2024年4月25日 没有评论

$ google-chrome [2520420:2520420:0425/151446.107806:ERROR:viz_main_impl.cc(198)] Exiting GPU process due to errors during initialization [2520452:7:0425/151500.728337:ERROR:command_buffer_proxy_impl.cc(131)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer. Fontconfig error: Cannot load default config file: No such file: (null) Solution 使用如下参数禁用GPU加速: --disable-gpu --disable-software-rasterizer $ google-chrome --disable-gpu --disable-software-rasterizer

分类: 技术 标签:

vscode 离线安装扩展

2024年4月24日 没有评论

vscode内网安装扩展,可以手动下载扩展包,传到内网后安装扩展。 以python扩展为例, 首先,打开 https://marketplace.visualstudio.com/items?itemName=ms-python.python 点击 Version History 选择需要的扩展版本,例如 2024.5.11101014 2024/4/19 Download 点击 Download,下载扩展 ms-python.python-2024.5.11082240.vsix 点击扩展右上角的三个点->install from vsix ,选择上面下载的扩展即可。 按过程中提示版本不匹配,可能是因为code版本太低,跟插件不匹配。可以安装新版本code,或者老版本扩展。

分类: 技术 标签:

jypyter notebook 打开空白

2024年4月24日 没有评论

安装jupyter pip install jupyter 打开编辑器 jupyter notebook 浏览器空白,不显示页面。 原因可能是firefox或者chrome版本太低,升级安装新版本即可。

分类: 技术 标签:

matlab 自定义函数路径找不到问题

2023年10月23日 没有评论

matlab可以使用path命令设置搜索路径来自定义函数给多个工程使用 path('/home/matlab/mylib') 在此目录中自定义文件myfunction.m,注意函数名与文件名同名。 进入matlab环境,执行函数找不到,Unrecognized function or variable 'myfunction'. 需要清理缓存再试。 >> which -all myfunction >> rehash toolboxcache >> which -all myfunction /home/matlab/mylib/myfunction.m

分类: 技术 标签:

python 打印查询结果集到 html

2023年6月4日 没有评论

1 pip install prettytable 1234 # Convert "gameRecords" table to a prettyTablemytable = from_db_cursor(cursor)# Generate the HTML code of the prettyTable using "get_html_stringhtmlCode = mytable.get_html_string(attributes={"class":"table"}, format=True)

分类: 技术 标签:

使用pip安装下载的tar.gz文件

2023年6月4日 没有评论

1 pip install html-table-1.0.tar.gz 报错 tarfile.ReadError: not a gzip file 安装的正确语法是: 1 pip install --user html-table-1.0.tar.gz --user用于授予安装软件包的必要权限。 您也可以通过解压缩tar.gz文件进行安装。首先,您应该使用tar命令将其提取。 12 tar -xzvf html-table...

分类: 技术 标签:

ORACLE的CONNECT和RESOURCE角色权限

2023年5月26日 1 条评论

最近在处理数据库的用户权限问题,之前惯性思维,觉得给用户授权RESOURCE权限之后,用户的一般权限都会有,等到发现用户有RESOURCE角色,却没有创建视图的权限之后,才发现这部分还是一知半解啊,所以此处整理了一下相关的CONNECT角色和RESOURCE角色的内容。 一般情况下,在新建数据库用户后,都会习惯性的给用户授权CONNECT角色和RESOURCE角色: GRANT connect,resource TO 用户; 但是拥有这两个角色的用户都拥有什么权限呢?可以使用如下语句查看一下: SELECT * FROM dba_sys_privs WHERE grantee IN ('RESOURCE', 'CONNECT') ORDER...

分类: 技术 标签:

KindEditor使用wellFormatMode美化HTML数据

2023年5月23日 没有评论

当在KindEditor内容里面插入js代码的时候,切换到源代码总是会自动将内容全部缩进到一行。 这样非常不好看,而且也打乱了js代码,以致于发生js错误无法运行。 于是就想有没有方法,不让代码自动缩进,也不那么难看,查了下KindEditor手册,原来还真有这个功能。 就是要使用到wellFormatMode,当为true时html代码会缩进字符,为false时不会。 html代码 1 <label><input id="beautifyhtml" name="beautifyhtml" type="checkbox" value="1" />不美化HTML数据</...

分类: 技术 标签:

chrony server online 但是 unreachable

2023年5月23日 没有评论

server 服务器ip地址 iburst local stratun 10 #打开时间同步 重点是这里,如果ntp服务器是windows,maxdistance 值一定要设置,linux默认比这个值小,就无法同步windows的ntp服务,会出现与chronyc sources 显示unreachable,但是activity online。 1 maxdistance 16.0 重启时间服务 1 systemctl restart chronyd

分类: 技术 标签:

beyond compare

2023年5月21日 没有评论

cd  Library/Application\ Support/Beyond\ Compare/ rm registry.dat

分类: 技术 标签: