๐Ÿš€ UllrichLumina

All Posts

Thumbnail for Posts

How can I swap positions of two open files in splits in vim

๐Ÿ“‚ Categories: Programming
๐Ÿท๏ธ Tags: Layout Editor Split Vim

Assume Ive got some arbitrary layout of splits in vim one two three Is there a way to swap one and two and maintain the same layout Its simple in this example

Thumbnail for Posts

How can I use newline n in an f-string to format a list of strings

๐Ÿ“‚ Categories: Python
๐Ÿท๏ธ Tags: Python-3.X Newline F-String

I tried this code names Adam Bob Cyril text fWinners arennjoinnames printtext However cannot be used inside the expression portions of an fstring How can I

Thumbnail for Posts

How do I ALTER a PostgreSQL table and make a column unique

๐Ÿ“‚ Categories: Sql
๐Ÿท๏ธ Tags: Postgresql Unique-Constraint

I have a table in PostgreSQL where the schema looks like this CREATE TABLE footable id serial NOT NULL PRIMARY KEY permalink varchar200 NOT NULL text

Thumbnail for Posts

How do I get the backtrace for all the threads in GDB

๐Ÿ“‚ Categories: Programming

Is there an equivalent command in GDB to that of WinDbgs process 0 7 I want to extract all the threads in a dump file along with their backtraces in GDB info

Thumbnail for Posts

How do I negate a test with regular expressions in a bash script

๐Ÿ“‚ Categories: Bash

Using GNU bash version 40351release x8664suselinuxgnu I would like to negate a test with Regular Expressions For example I would like to conditionally add a

Thumbnail for Posts

How do I upgrade the Python installation in Windows 10

๐Ÿ“‚ Categories: Python
๐Ÿท๏ธ Tags: Python-3.X

I have a Python 2711 installed on one of my LAB stations I would like to upgrade Python to at least 35 How should I do that Should I prefer to completely

Thumbnail for Posts

How do you create a daemon in Python

๐Ÿ“‚ Categories: Python
๐Ÿท๏ธ Tags: Daemon

Searching on Google reveals x2 code snippets The first result is to this code recipe which has a lot of documentation and explanation along with some useful

Thumbnail for Posts

How do you do relative time in Rails

๐Ÿ“‚ Categories: Ruby
๐Ÿท๏ธ Tags: Ruby-On-Rails

Im writing a Rails application but cant seem to find how to do relative time ie if given a certain Time class it can calculate 30 seconds ago or 2 days ago or

Thumbnail for Posts

How do you test to see if a double is equal to NaN

๐Ÿ“‚ Categories: Java
๐Ÿท๏ธ Tags: Double Equality Nan

I have a double in Java and I want to check if it is NaN What is the best way to do