Skip to content

Commit

Permalink
build glusterfs 11 for suse 11
Browse files Browse the repository at this point in the history
  • Loading branch information
huataihuang committed Jul 21, 2023
1 parent b2e5c45 commit 776a181
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/devops/docs/kindle/calibre_remove_drm.rst
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ dedrm-ebook-tools

Calibre支持 `send to kindle <https://www.amazon.com/gp/sendtokindle>`_ (即 `Kindle Personal Documents Service <https://www.amazon.com/gp/help/customer/display.html?nodeId=200767340>`_ ,非常方便把各种文档通过电子邮件方式发送给Kindle设备阅读),这样可以将中国区购买的Kindle书籍转换成去除DRM的 ``.azw3`` 文档发送到美国区Kindle设备,方便自己的学习。

.. note::

Calibre删除电子书之后会放到自己的回收箱里面(不是系统的回收箱),目录位于 ``Calibre Library`` 下的隐藏目录 ``.caltrash`` 。

参考
======

Expand Down
19 changes: 19 additions & 0 deletions source/linux/admin/check_shared_libray_is_used.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
.. _check_shared_libray_is_used:

================================
检查共享库是否使用
================================

在生产环境中常有一些遗留系统,由于年代久远,运行的安装目录下堆积了很多不确定是否使用的第三方 ``.so`` 库文件。但是由于迁移操作系统或者修改架构( 例如迁移到 :ref:`arm` ),需要确定这些 ``.so`` 是否也需要同样迁移(或编译对应架构的 ``.so`` 库文件)。

这里有一个简单的方法,就是在现有有业务的服务器上通过 ``lsof`` 来确认这些 ``.so`` 库文件是否被系统进程使用(打开)。原理很简单,就是 :ref:`linux_file_descriptor` 能够确认某个系统文件是否被真实使用

举例,在 :ref:`apache_webdav` 会启用 ``mod_dav`` 和 ``mod_dav_fs`` 模块::

/usr/lib/apache2/modules/mod_dav_fs.so
/usr/lib/apache2/modules/mod_dav.so

参考
=======

- `How to see the currently loaded shared objects in Linux? <https://superuser.com/questions/310199/how-to-see-the-currently-loaded-shared-objects-in-linux>`_
1 change: 1 addition & 0 deletions source/linux/admin/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Linux系统管理
linux_backlight.rst
linux_system_time.rst
linux_file_descriptor.rst
check_shared_libray_is_used.rst
process/index

.. only:: subproject and html
Expand Down
1 change: 1 addition & 0 deletions source/python/startup/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Python起步
install_python3_centos6.rst
python_doc.rst
pep_8.rst
run_pyton_in_browser.rst

.. only:: subproject and html

Expand Down
19 changes: 19 additions & 0 deletions source/python/startup/run_pyton_in_browser.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
.. _run_pyton_in_browser:

==============================
在浏览器中运行Python
==============================

`莫烦Python > Python基础 > 交互式学Python > 课程介绍 <https://mofanpy.com/tutorials/python-basic/interactive-python/introduction>`_ 提到了采用 `Pyodide <https://pyodide.org/>`_ 来实现在浏览器中学习Python。这是一个有趣的话题,你可以参考 `Running Python in the Browser <https://yasoob.me/2019/05/22/running-python-in-the-browser/>`_ 采用不同的解决方案实现:

- `Transcrypt <https://www.transcrypt.org/>`_
- `Brython <https://brython.info/>`_
- `Skulpt <https://skulpt.org/>`_
- `PyPy.jsis <https://pypyjs.org/>`_
- `Batavia <https://pybee.org/batavia>`_
- `Pyodide <https://pyodide.org/>`_ Mozilla开发的类似 :ref:`jupyter` 的浏览器工具,结合了 WebAssembly CPython 项目以及NumPy,SciPy,Matplotlib和Pandas到WebAssembly

参考
======

- `Running Python in the Browser <https://yasoob.me/2019/05/22/running-python-in-the-browser/>`_

0 comments on commit 776a181

Please sign in to comment.