小编Léo*_* 준영的帖子

如何编写这个伪代码 where 条件

这个问题是关于列出目录问题的这个问题的扩展。我遇到一个问题,需要理解文本的原始部分。

电流输出

在此处输入图片说明

你在哪里看到第二个问题没有意义。它被列入风湿病学目录中的subsection Takayasu 动脉炎

\subsection{Takayasu arteritis}

\begin{question}
{You get a patient. 
What do you notice first in this patient?}
Absence of peripheral pulse.
\end{question}

Lorem ipsum.    

\begin{question}
{What was the first Takayasu case?}
Young woman in Asia with red vessels in the eye. 
So special eye diagnosis done. 
Affects eye.
\end{question}
Run Code Online (Sandbox Code Playgroud)

当前输出是由这个优秀的代码

\section{Rheumatology}  

\begin{question}
{You get a patient. 
What do you notice first in this patient?}
Absence of peripheral pulse.
\end{question}

\begin{question}
{What was …
Run Code Online (Sandbox Code Playgroud)

scripting perl text-processing latex

5
推荐指数
1
解决办法
1437
查看次数

如何将这些段落 SED 为 MCQ 格式?

我的数据:

Question Nr.  311
Main proteins are in the lorem ipsun
A Lorem RNA test
B Cells
C Metoclom
D Cells
E Muscles

Question Nr.  312
Main proteins are in the lorem ipsun
A Lorem
B Cells
C Metoclom
D Cells
E Muscles

...
Run Code Online (Sandbox Code Playgroud)

想要的格式:

\item 
Main proteins are in the lorem ipsun

A Lorem RNA test

B Cells

C Metoclom

D Cells

E Muscles

\item
Main proteins are in the lorem ipsun

A Lorem

B Cells

C Metoclom

D …
Run Code Online (Sandbox Code Playgroud)

sed perl text-processing

5
推荐指数
4
解决办法
371
查看次数

如何解决这个只读文件系统错误?

我愿意

find /media/masi/FAT32/ -type f -name '._*' -delete
Run Code Online (Sandbox Code Playgroud)

但我明白了

find: cannot delete '/media/masi/FAT32/._booklet.pdf': Read-only file system
Run Code Online (Sandbox Code Playgroud)

在 ext4 中工作但搜索 fat32 时,我不知道如何处理这种情况。fat32 中没有权限/所有者。所以我想改变所有读写存储卡中的所有文件。但是,不确定是否可以在这里完成。它也可能是文件系统一致性问题,但不确定。我只注意到在系统中,这似乎是备份文件,因为我没有使用该选项描述了许多.dotFiles这里之前。我愿意ls -la /media/masi/

drwxr-xr-x 29 masi masi 32768 1 1970 FAT32
Run Code Online (Sandbox Code Playgroud)

我做,mount -o remount, rw /media/masi/FAT32/但我得到

mount: mount point /media/masi/FAT32/ does not occur
Run Code Online (Sandbox Code Playgroud)

命令dmesg | grep FAT32给出空白。命令lsblk也不显示内存。在 Debian 8.25 的 Nautilus 中分析内存,我正确地看到了主节点,但没有看到子节点;在终端中,我可以搜索树但不确定它有多好

抱歉,无法显示“handouts.noindex”的所有内容:获取文件'/media/masi/FAT32/handouts.noindex/?Yp?@?3.ç??'的信息时出错:输入/输出错误

内存:Transcend JetDrive Lite 130 128 GB(适用于 Macbook Air 2013-mid)
硬件:Macbook Air 2013-mid 和 Dell PC i3​​ 2013 …

filesystems find

5
推荐指数
1
解决办法
7万
查看次数

grep:如何找到右括号?

一部分以我想要查找的行号/usr/share/X11/xkb/symbols/us开始xkb_symbols "dvorak" {和结束。};

partial alphanumeric_keys
xkb_symbols "dvorak" {

    name[Group1]= "English (Dvorak)";

    key <TLDE> { [       grave, asciitilde, dead_grave, dead_tilde      ] };

    key <AE01> { [          1,  exclam          ]       };
    key <AE02> { [          2,  at              ]       };
    key <AE03> { [          3,  numbersign      ]       };
    key <AE04> { [          4,  dollar          ]       };
    key <AE05> { [          5,  percent         ]       };
    key <AE06> { [          6,  asciicircum, dead_circumflex, dead_circumflex ] };
    key <AE07> { [ …
Run Code Online (Sandbox Code Playgroud)

grep sed awk text-processing

5
推荐指数
1
解决办法
4731
查看次数

如何在 Wayland Gnome 中反转触摸板两指滚动的方向?

我在“设置”>“鼠标和触摸板”中找不到任何有关更改的内容。我的 X11 配置在这里不起作用,因为我使用的是 Wayland。

操作系统:Linux Debian Stretch 9.1
Gnome:3.22
Wayland:1.12

debian touchpad wayland

5
推荐指数
1
解决办法
9464
查看次数

如何在 bash 脚本中回显大量内容?

我想要做

echo "[this thing]"
Run Code Online (Sandbox Code Playgroud)

这件事是

\documentclass{article}
\usepackage{rotating}
\usepackage{pdfpages}
\usepackage{verbatim}
\usepackage{amsmath, amsfonts, amssymb, textcomp, mathtools, xparse}
\usepackage[T4, OT1]{fontenc}
\usepackage{graphicx}
\graphicspath{{/Users/Masi/Dropbox/Physiology/images/}}
% Animations cannot be included here
% \addmediapath{ {/Users/Masi/Dropbox/Physiology/animations/} }
\usepackage{newunicodechar}
\usepackage{multirow}
\DeclarePairedDelimiter{\abs}{\lvert}{\rvert}
\DeclarePairedDelimiter{\norm}{\lVert}{\rVert}
\usepackage{color}
\usepackage{hyperref}
\usepackage{media9} % animations swf
\usepackage{Tabbing}
\usepackage{doi, natbib}
\hypersetup{
colorlinks=true,
linkcolor=blue,
citecolor=blue,
allcolors=blue
}
\usepackage[affil-it]{authblk}
\usepackage{import}
\usepackage{color}
\usepackage[normalem]{ulem}
\usepackage{titling} % Two titles in one document
\DeclarePairedDelimiter{\abs}{\lvert}{\rvert}


%%%%%%%%%%%%%%%%%%%%%%%%%%% Question and Answer %%%%%%%%%%%%%%%%%

\usepackage[framemethod=tikz]{mdframed}

\mdfdefinestyle{ans}{
  linecolor=cyan,
  backgroundcolor=yellow!20,
    frametitlebackgroundcolor=green!40,
    frametitlerule=true
}
\newcounter{question}[section]%
\setcounter{question}{0}

\newenvironment{question}[1]{%
\refstepcounter{question}%
    \begin{mdframed}[style=ans,frametitle={Question: #1}]
}{%
    \end{mdframed}% …
Run Code Online (Sandbox Code Playgroud)

bash echo

4
推荐指数
1
解决办法
2812
查看次数

为什么在 Raspbian 中删除用户失败?

我在 Raspberry Pi 3b 的 Raspbian Jessie 中成功

% http://askubuntu.com/a/227513/25388
masi@raspberrypi:~ $ sudo locale-gen en_US en_US.UTF-8
masi@raspberrypi:~ $ sudo dpkg-reconfigure locales
Run Code Online (Sandbox Code Playgroud)

我跑,sudo deluser pi但我得到

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = "en_US.UTF-8",
    LC_PAPER = "fi_FI.UTF-8",
    LC_ADDRESS = "fi_FI.UTF-8",
    LC_MONETARY = "fi_FI.UTF-8",
    LC_NUMERIC = "fi_FI.UTF-8",
    LC_TELEPHONE = "fi_FI.UTF-8",
    LC_IDENTIFICATION = "fi_FI.UTF-8",
    LC_MEASUREMENT = "fi_FI.UTF-8",
    LC_TIME = "fi_FI.UTF-8",
    LC_NAME = "fi_FI.UTF-8",
    LANG = "en_US.UTF-8"
    are supported and installed on …
Run Code Online (Sandbox Code Playgroud)

raspberry-pi raspbian

4
推荐指数
1
解决办法
1万
查看次数

在 Debian 8.5 中升级 Linux 内核有多顺利?

我想在 Debian 8.5 中将我的 Linux 内核升级到 4.7,因为它比当前的 linux 内核具有明显更好的 Skylake 第 6 代支持。在 Ubuntu 16.04 中,升级很容易。但是,我现在需要 Debian 8.5 因为稳定性,我想为它做同样的升级。

测试 StephenKitt 的答案

我升级内核并重新启动,但在加载操作系统时没有成功。图 1 启动失败信息

在此处输入图片说明

第二次迭代 - 解决启动中的错误 [GAD3R]

  1. 在 Linux 内核 3.16.x 中启动
  2. 运行为suapt-get remove xserver-xorg-video-intel
  3. 重启

输出:有效!分辨率现在是 1920x1080。既然有SKYLAKE微架构的Linux中没有完整的支持内核4.6等这件神器这里在Matlab 2016a没有固件,你需要一些免费的非调整固件; 您可能已经在 Linux 内核 4.7 中释放了固件

# https://unix.stackexchange.com/a/307435/16920
apt-get -t jessie-backports install firmware-misc-nonfree
Run Code Online (Sandbox Code Playgroud)

xserver-xorg-video-intel 异常安装及其动作的预防

我发现该软件包xserver-xorg-video-intel可能会在其他情况下作为依赖项(及其所有依赖项)安装,如线程如何在运行级别冲突的情况下恢复 LK 反向移植的 Debian? 这个想法是为了防止包的动作,尽管它是通过创建文件来安装的/etc/X11/xorg.conf

# https://unix.stackexchange.com/a/308709/16920
Section "Device"
        Identifier "Intel"
        Driver "modesetting"
EndSection …
Run Code Online (Sandbox Code Playgroud)

debian upgrade system-installation linux-kernel skylake

4
推荐指数
1
解决办法
1万
查看次数

如何在 64 位 Debian 8.5 中安装 adobe reader-enu?

情况:在任何 pdf 阅读器中进行高级搜索(如 Adob​​e Acrobat 的搜索);搜索许多文档并集成视图供他们查看

我知道如何在 Debian 中安装 Adob​​e Acrobat Reader线程中有关安装 Adob​​e Reader 的线程我试过的地方

  • 它目前接受的答案是关于在此处安装旧版本(9.0)的 Adob​​e reader
  • terdon关于在 Debian 中添加 Linux Mint存储库的回答acroread,但源代码不起作用

我知道如何在 Ubuntu 16.04 中安装 Adob​​e Acrobat?关于添加存储库,但add-apt-repository "deb http://archive.canonical.com/ precise partner"在 Debian 中没有命令。我记得您可以通过这种方法获得 Adob​​e Reader 10 和/或更新版本。我想在 Debian 中至少得到相同的结果。

操作系统:Debian 8.5 64 位
Linux 内核:4.6
硬件:Asus Zenbook UX303UA
架构:amd64

debian pdf acrobat-reader

4
推荐指数
1
解决办法
1万
查看次数

为什么找不到这个 Debian-ex-developer 公钥?

我正在遵循使用命令行和 GnuPG 从 Debian、Ubuntu 或 Mint 安装的说明以制作基于 Debian、USB 棒的Tails

所有步骤都在最后一行失败的地方完成gpg: error reading key: public key not found,而预期输出sig! 0x9C31503C6D866396 2015-02-03 Stefano Zacchiroli <zack@upsilon.cc>到命令gpg --keyid-format 0xlong --check-sigs A490D0F4D311A4153E2BB7CADBB802B258ACD84F

masi@masi:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 8.7 (jessie)
Release:    8.7
Codename:   jessie

masi@masi:~$ wget https://tails.boum.org/tails-signing.key
--2017-02-26 08:47:14--  https://tails.boum.org/tails-signing.key
Resolving tails.boum.org (tails.boum.org)... 204.13.164.188
Connecting to tails.boum.org (tails.boum.org)|204.13.164.188|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: …
Run Code Online (Sandbox Code Playgroud)

debian software-installation gpg

4
推荐指数
1
解决办法
963
查看次数