In the middle of the desert you can say anything you want
a_{multiplechars}
|modulo|
Problem: jupyter notebooks being shown as text on my website.
Adding the following to a .htaccess
file prevents files being “shown” in the browser, as opposed to downloaded1:
<FilesMatch "\.(?i:doc|odf|pdf|rtf|txt|ipynb)$">
Header set Content-Disposition attachment
</FilesMatch>
Also 2 that there’s a HTML syntax for that in links now!
<a href="./my_file.txt" download>
ls
has --color=always
, but not everyone does.
sudo apt install expect-dev
provides unbuffer
1, that when prefixed to a command makes it think it’s running in an interactive CLI, even if it’s piped or redirected etc.
For example this would preserve the colors in timew month
’s output while changing text:
unbuffer timew month 2022-02-01 - 2022-04-01 | sed "s/what/ever/g"
Was trying to code a “is this a sortable thing or not” thing, saw the documentation for collections, and it’s awesome: collections.abc — Abstract Base Classes for Containers — Python 3.11.3 documentation
The table of base classes has who inherits from whom (Set
from Collection
), which abstract methods it has (__contains__
) etc.
Definitely worth reading in full. As the rest of the very very readable Python docs.
Gitlab makes stuff really easy to use by providing copy-pasteable commands!
The container registry, when empty, shows that you basically need to build and push a Docker image to the registry to make it not-empty. I guess you just enable it and you’re set.
> history
10640 echo command 1
10641 echo command 2
10642 echo command 3
Usually I’d !10640 !10642
to run 1 and 3, but there’s fc
!1
fc -l
to list instead of invoke.
fc first last
, where the latter ones can be e.g:
12
for command 12-12
for command executed 12 commands agoThen:
> fc -l 10639
10639 h apt
10640 echo command 1
10641 echo command 2
10642 echo command 3
10643 history
> fc -l 10639 10642
10639 h apt
10640 echo command 1
10641 echo command 2
10642 echo command 3
> fc 10639 10642
% opens vim with these commands, edit then they get run on close.
Never thought about this till I saw this:
./file.sh
zsh: permission denied: ./file.sh
I’d usually chmod +x
it, but sh file.sh
works just as well!
algorithm2e - How to add input and output before algorithm procedure - TeX - LaTeX Stack Exchange:
...
\hspace*{\algorithmicindent} \textbf{Input} \\
\hspace*{\algorithmicindent} \textbf{Output}
\begin{algorithmic}[1]
also:
% rename `for all` into `for each`
\renewcommand{\algorithmicforall}{\textbf{for each}}
% remove leading triangle-thing-symbol from comments
\algrenewcommand{\algorithmiccomment}[1]{\hfill#1}
Finally, since the computation of the optimal operating point cannot be performed during the surgical procedures due to the absence of a golden standard of the undergoing patient, a surgical aid visualization system was developed to this end (Figure 6). In this system, the operating surgeon is able to determine the optimal result on the density map by manually adjusting the threshold values of the tumor, normal and hypervascularized classes. These threshold values establish the minimum probability where the pixel must correspond to a certain class in the classification map generated by the 1D-DNN
In this paper, we explore the effects of degraded inputs in hyperspectral image classification including the five typical degradation problems of low spatial resolution, Gaussian noise, stripe noise, fog, and shadow. Seven representative classification methods are chosen from different categories of classification methods and applied to analyze the specific influences of image degradation problems.
In postprocessing methods, the raw classification map is often calculated from a pixelwise HSI classification approach and then optimized according to the spatial dependency [26]. References [27,28] used the Markov random fields (MRF) regularizer to adjust the classification results obtained by the MLR method in dynamic and random subspaces, respectively. In order to optimize the edges of classification results, Kang et al. [29] utilized guidance images on the preliminary class-belonging probability map for edge-preserving. This group of strategies can better describe the boundary of classification objects, remove outliers, and refine classification results
Several approaches to improve artificial networks were considered, such as testing different pre-processing steps (e.g. normalization) [26] and architectures (e.g. CNN) [28]. Recent studies showed that post-processing is an important step in ML pipelines [29].
Several approaches to improve artificial networks were considered, from testing different architectures (e.g. CNN [28], also in combination with squeeze-and-excitation networks[XXX]), to testing different pre-processing (e.g. normalization)[26] or post-processing steps.[29].
In particular, postprocessing is often used to optimize a raw pixelwise classification map, using various methods, e.g. using guidance images for edge-preserving, as part of a group of strategies used to better define the boundaries of classification objects, remove outliers, refine classification results. In particular, Edge Preserving Filtering (EPF)3 has been shown to improve the classification accuracy significantly in a very short time. Another approach is the use of a Markov Random Field (MRF)4, where the class of each pixel is determined based on the probability of the pixel itself, the adjacent pixels, and the solution of a minimization problem.
Applied Sciences | Free Full-Text | Comparison of Convolutional Neural Network Architectures for Classification of Tomato Plant Diseases ↩︎
29 / Kang, X.; Li, S.; Benediktsson, J.A. Spectral–Spatial Hyperspectral Image Classification with Edge-Preserving Filtering. IEEE Trans. Geosci. Remote Sens. 2014, 52, 2666–2677. [Google Scholar] [CrossRef] ↩︎
86 / Tarabalka, Y.; Fauvel, M.; Chanussot, J.; Benediktsson, J.A. SVM- and MRF-Based Method for Accurate Classification of Hyperspectral Images. IEEE Geosci. Remote Sens. Lett. 2010, 7, 736–740. [Google Scholar] [CrossRef][Green Version] ↩︎
Good-bye old personal wiki, AKA Fiamma. Here are some screenshots which will soon become old and nostalgic:
I’ve also archived it, hopefully won’t turn out to be a bad idea down the line (but that ship has sailed long ago…):
Will be using the Links blog from now on: https://serhii.net/links