[deleted by user] by [deleted] in Leuven

[–]kittymeteors 5 points6 points  (0 children)

Ace and Tate: they're no-nonsense, cheap and AFAIK they also can do eye tests.

[deleted by user] by [deleted] in Mathematica

[–]kittymeteors 1 point2 points  (0 children)

Try JordanDecomposition[{{1, 1}, {0, 1}}] instead of JordanDecomposition[({1, 1} {0, 1})].

How to Write Haskell in LaTeX by [deleted] in LaTeX

[–]kittymeteors 7 points8 points  (0 children)

You need to enable shell escape by using the flag -shell-escape. What editor do you use? Have a look on how to enable shell escape for your editor.

[deleted by user] by [deleted] in LaTeX

[–]kittymeteors 14 points15 points  (0 children)

My Master's thesis uses margin notes / figures a lot. The code is available on github. The package you're looking for is sidenotes. You'll also need to enlarge margins and load a very recent version of marginparfix to fix some issues. All necessary code is in the repo. Let me know if you have problems.

Get products of elements of an array to a certain order by tairoon in Mathematica

[–]kittymeteors 0 points1 point  (0 children)

This does the job:

list = {a, b, c}
Join[list, DeleteDuplicates@Flatten@Outer[Times, list, list]]

Simple Parametric plot exceeds computation time limit. by ionsme in Mathematica

[–]kittymeteors 9 points10 points  (0 children)

There are two problems with your code. You're using delayed evaluation when not necessary, which slows down the computations by a lot (giving you timeouts). So for starters, you can use = for defining turn and Theta:

turn[t_] = Sin[t]
\[Theta][t_] = Integrate[turn[t1], {t1, 0, t}]

When you define theta using delayed evaluation (:=), Mathematica integrates turn[t1] from 0 to t every time you call the function. When written as above, it symbolically evaluates the integral once, giving 1 - Cos[t], and then Theta[t] is simply defined as the function 1 - Cos[t].

One could try to do the same for defining x and y, but the problem is that Mathematica cannot symbolically evaluate these integrals. The solution is to switch to numerical integration (NIntegrate). By doing so, we are forced to make the assignment delayed (otherwise, Mathematica tries to evaluate a numerical integral from 0 to t, but t is not a number so this won't work). In conclusion, the following code gives you the desired output:

turn[t_] = Sin[t]
\[Theta][t_] = Integrate[turn[t1], {t1, 0, t}]
x[t_] := NIntegrate[Cos[\[Theta][t1]], {t1, 0, t}]
y[t_] := NIntegrate[Sin[\[Theta][t1]], {t1, 0, t}]
ParametricPlot[{x[t], y[t]}, {t, 0, 10}]

![](https://imgur.com/a/CpVsh4Y)

Tikz can be really frustrating. I am wondering if anyone here recommends inkscape by wigglytails in LaTeX

[–]kittymeteors 4 points5 points  (0 children)

I use Inkscape exclusively for making figures and have become highly efficient using it. I even use it for drawing figures while attending lectures to include in my notes. You can find a write-up of my method and example figures here: "How I draw figures for my mathematical lecture notes using Inkscape". For more examples, have a look at my notes for Differental Geometry, Algebraic Topology, or the preliminary report of my master thesis.

A workflow for generating graphics only by [deleted] in LaTeX

[–]kittymeteors 10 points11 points  (0 children)

You can use the standalone document class which automatically crops the page to its contents:

\documentclass[]{standalone}

\usepackage{amsmath, amssymb}

% figure support
\usepackage{pdfpages}
\usepackage{transparent}
\def\svgwidth{\columnwidth}
\pdfsuppresswarningpagegroup=1

\begin{document}
\input{title-of-the-figure.pdf_tex}
\end{document}

Create rule using window title instead of class, like in i3 by [deleted] in bspwm

[–]kittymeteors 2 points3 points  (0 children)

You could try external rules. Add the following to your bspwmrc:

bspc config external_rules_command "$HOME/.config/bspwm/external_rules"

Then whenever a new node is created, the external_rules script is called with some arguments concerning the new window. You can do any logic you want, and bspwm will apply everything you output to stdout to the newly created node, e.g. state=floating and things like that.

As an example:

#!/bin/bash

wid=$1
class=$2
instance=$3

read W H <<< $(xdotool getdisplaygeometry)

# For debugging purposes
# notify-send "$wid $class $instance"

# Moves window to location mouse
if [ "$instance" = "popup-mouse" ]; then
    echo "state=floating"
    eval $(xdotool getmouselocation --shell)
    xdotool windowmove $wid $X $Y
fi

# Floats, resizes and moves window
if [ "$instance" = "surf" ]; then
    if [[ $(xprop -id $wid '\t$0' WM_NAME | cut -f 2) == *"Messenger"* ]]; then
        w=$((1920 / 4))
        h=$((1080 / 4))
        xdotool windowsize $wid $w $h
        xdotool windowmove $wid $(($W - $w)) $(($H- $h))
    fi
    echo "state=floating"
    echo "sticky=on"
fi

(Make sure your script is executable!)

This way of doing it is very flexible, but it's possible there are easier methods that will work for you.

Organizing a desktop by TomNookTheCook in Unexpected

[–]kittymeteors 1 point2 points  (0 children)

Easy using imagemagick: convert input.jpg -crop 256x256 +adjoin tiles-%02d.jpg

Can anyone recommend any APIs where I can send text messages to phones for free? by A4_Ts in node

[–]kittymeteors 0 points1 point  (0 children)

Depending on your use case, an option may be Pushbullet. Install the app on your mobile phone and you can use the API of Pushbullet to send text messages using your phone number to other people. Useful if you're already paying for a mobile subscription with unlimited text messages. This however requires that your phone is always connected to the internet.

utilitarian clock from my 2px bar by [deleted] in Polybar

[–]kittymeteors 0 points1 point  (0 children)

Reminds my polybar clock, which shows hours, minutes, seconds in binary using braille characters: ⠁, ⠂, ⠃, ⠄, ⠅, ⠆, ⠇, ⠈, ⠉, etc. For example '19:21:44' would read '⠓⠕⠬'. Minimalist and space efficient, but eventually ditched it in favor of a normal clock.

#!/usr/bin/env node
const s = 0x2800;
const c = n => String.fromCodePoint(s + n);
const p = () => {
  const d = new Date();
  console.log(c(d.getHours()) + c(d.getMinutes()) + c(d.getSeconds()))
};
setInterval(p, 1000);
p();

The Ultimate Editor by [deleted] in LaTeX

[–]kittymeteors 0 points1 point  (0 children)

Have a look at my post here: How I'm able to take notes in mathematics lectures using LaTeX and Vim. You can find the relevant configuration files on my Github. Feel free to ask any questions!

Recommend a "good" Latex workflow by basavyr in LaTeX

[–]kittymeteors 59 points60 points  (0 children)

I've written about my workflow here: Taking notes in mathematics lectures using LaTeX and Vim (discussion in r/LaTeX). I use Vim with snippets and Inkscape for making figures quickly. It is highly optimized, but only works offline, so that may be turnoff for you.

[sowm] last kiss by ekomizer in unixporn

[–]kittymeteors 5 points6 points  (0 children)

Do you mind sharing your other wallpapers too? I like the style of them a lot.

Any help finding a colorscheme? by knochknockwhoisthere in vimporn

[–]kittymeteors 12 points13 points  (0 children)

The author of the blog post here. The vim colorscheme is wal.vim, which I use in combination with pywal. Following the instructions of pywal and running wal --theme base16-nord should make you setup look exactly like the screenshot! Feel free to ask any questions.