Lane's Blog 随记备查

学,浅而广,可牛B,深而专,可为业,趣乎

Lane's Blog 随记备查

Windows、Mac、Linux 系统都适用

插件是全自动无限激活一个月到期自动激活,无需每月找激活码找安装参数,适用最新 JetBrains 全家桶

本插件可以离线激活

通过自动无限重置 PyCharm 试用期的方法来达到永久激活;

收费插件的试用信息也会一并重置,试用期的 PyCharm 没有任何功能限制

下载 PyCharm 永久激活插件

👇👇👇👇👇👇👇👇👇

点击下载 PyCharm 永久激活插件 2.1.9

提取码:u4ry

点击下载 PyCharm 永久激活插件 2.1.12 版

阅读全文 »

清华大学开源软件镜像站

pypi 镜像每 5 分钟同步一次。

临时使用

1
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple some-package

注意,simple 不能少,是 https 而不是 http

设为默认

升级 pip 到最新的版本 (>=10.0.0) 后进行配置:

1
2
pip install pip -U
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

如果您到 pip 默认源的网络连接较差,临时使用本镜像站来升级 pip:

1
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pip -U
阅读全文 »

插件安装

1
2
3
pip install jupyter_contrib_nbextensions -i https://pypi.tuna.tsinghua.edu.cn/simple
jupyter contrib nbextension install --user
pip install jupyter_nbextensions_configurator -i

以上三步结束,重新启动 jupyter notebook 即可搞定,出现以下表示安装完毕。

img

阅读全文 »

修改博客目录下_config.yml 配置文件

注释一个库,提交另外的库

发布两次即可(hexo d)

1
2
3
4
5
6
deploy: 
type: git
repository: https://github.com/netxulei/netxulei.github.io.git
branch: main
# repo: https://gitee.com/netxulei/netxulei.git
# branch: master

注意 gitee 的博客需要再 pages 服务力做一次更新

阅读全文 »

Gitee 新建仓库并关联克隆 GitHub 仓库

image-20210415193414023

修改 Git 的配置文件./git/config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
[remote "origin"]
# github仓库地址
url = https://github.com/netxulei/hngk-git.git
# gitee仓库地址
url = https://gitee.com/netxulei/hngk-git.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master

git remote -v 可查看配置

1
2
3
4
$ git remote -v
origin https://github.com/netxulei/hngk-git.git (fetch)
origin https://github.com/netxulei/hngk-git.git (push)
origin https://gitee.com/netxulei/hngk-git.git (push)

提交命令

1
git add .
1
git commit -m "注释"
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$ git push origin master
Enumerating objects: 3, done.
Counting objects: 100% (3/3), done.
Delta compression using up to 6 threads
Compressing objects: 100% (2/2), done.
Writing objects: 100% (2/2), 229 bytes | 229.00 KiB/s, done.
Total 2 (delta 1), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (1/1), completed with 1 local object.
To https://github.com/netxulei/hngk-git.git
46859bb..974d410 master -> master
Enumerating objects: 3, done.
Counting objects: 100% (3/3), done.
Delta compression using up to 6 threads
Compressing objects: 100% (2/2), done.
Writing objects: 100% (2/2), 229 bytes | 229.00 KiB/s, done.
Total 2 (delta 1), reused 0 (delta 0), pack-reused 0
remote: Powered by GITEE.COM [GNK-5.0]
To https://gitee.com/netxulei/hngk-git.git
46859bb..974d410 master -> master


阅读全文 »

LibXL is a library for direct reading and writing Excel files.

Package contents:

bin 32-bit dynamic library
bin64 64-bit dynamic library
doc C++ documentation
examples C, C++, C#, Delphi and Fortran examples (MinGW, Visual Studio, Qt, Code::Blocks)
include_c headers for C
include_cpp headers for C++
lib 32-bit import library for Microsoft Visual C++
lib64 64-bit import library for Microsoft Visual C++
net .NET wrapper (assembly)
php compiled plug-in for PHP
stdcall 32-bit dynamic library with stdcall calling convention
changelog.txt change log
libxl.url link to home page
license.txt end-user license agreement
readme.txt this file

Using library:

  1. Microsoft Visual C++

    • add include directory in your project, for example: c:\libxl\include_cpp

      Project -> Properties -> C/C++ -> General -> Additional Include Directories

    • add library directory in your project, for example: c:\libxl\lib

      Project -> Properties -> Linker -> General -> Additional Library Directories

    • add libxl.lib in project dependencies:

      Project -> Properties -> Linker -> Input -> Additional Dependencies

    • copy bin\libxl.dll to directory of your project

  2. MinGW

    Type in examples/c++/mingw directory:

    g++ generate.cpp -o generate -I../../../include_cpp -L../../../bin -lxl

    Use mingw32-make for building examples.

  1. C# and other .NET languages

    Use assembly libxl.net.dll in net directory: Project -> Add reference… -> Browse

    Also copy bin\libxl.dll to Debug or Release directory of your project.

  1. Qt

    • add the following lines to a configuration file (.pro):

      INCLUDEPATH = c:/libxl-3.6.4.0/include_cpp
      LIBS += c:/libxl-3.6.4.0/lib/libxl.lib

    • copy bin\libxl.dll to the build directory of your project

  2. Borland C++ and Embarcadero C++ Builder

    • create an import library for your compiler:

      implib -a libxl.lib libxl.dll

    • add the include directory to your project, for example: c:\libxl-3.9.1.0\include_cpp

      Project -> Options -> Building -> C++ Compiler -> Directories and Conditionals -> Include file search path

      or

      Project -> Options -> Directories/Conditionals -> Include path (for old C++ Bulder versions)

    • add library directory to your project (only for old C++ Builder versions)

      Project -> Options -> Directories/Conditionals -> Library path

    • add libxl.lib to your project

      Project -> Add to Project…

    • copy libxl.dll from the bin folder to /Win32/Debug or /Win32/Release folder

      If your target is “Windows 64-bit” copy libxl.dll from the bin64 folder.

  3. Delphi

    • add the directory with the LibXL.pas unit, for example: c:\libxl-3.9.1.0\examples\delphi12

      Project -> Options -> Building -> Delphi Compiler -> Search path

    • copy libxl.dll from the bin folder to \Win32\Debug or \Win32\Release folder

Documentation:

http://www.libxl.com/doc

Contact:

阅读全文 »