๐Ÿš€ UllrichLumina

All Posts

Thumbnail for Posts

How to type hint a generator in Python 3

๐Ÿ“‚ Categories: Python
๐Ÿท๏ธ Tags: Pycharm Python-Typing

According to PEP484 we should be able to type hinting a generator function as follows from typing import Generator def generate gt Generatorint None None for i

Thumbnail for Posts

I forgot the password I entered during PostgreSQL installation

๐Ÿ“‚ Categories: Postgresql
๐Ÿท๏ธ Tags: Postgresql-9.1 Forgot-Password

I either forgot or mistyped during the installation the password to the default user of PostgreSQL I cant seem to be able to run it and I get the following

Thumbnail for Posts

Ignore parent padding

๐Ÿ“‚ Categories: Html
๐Ÿท๏ธ Tags: Css

Im trying to get my horizontal rule to ignore the parent padding Heres a simple example of what I have parent padding10px width100px hr width100px You will

Thumbnail for Posts

In SQL whats the difference between countcolumn and count

๐Ÿ“‚ Categories: Sql
๐Ÿท๏ธ Tags: Sql

I have the following query select columnname countcolumnname from table group by columnname having countcolumnname gt 1 What would be the difference if I

Thumbnail for Posts

Is it expensive to use try-catch blocks even if an exception is never thrown

๐Ÿ“‚ Categories: Java
๐Ÿท๏ธ Tags: Performance Try-Catch

We know that it is expensive to catch exceptions But is it also expensive to use a trycatch block in Java even if an exception is never thrown I found the

Thumbnail for Posts

Is it possible to define more than one function per file in MATLAB and access them from outside that file

๐Ÿ“‚ Categories: Programming

When I was studying for my undergraduate degree in EE MATLAB required each function to be defined in its own file even if it was a oneliner Im studying for a

Thumbnail for Posts

Is Python interpreted or compiled or both

๐Ÿ“‚ Categories: Python
๐Ÿท๏ธ Tags: Interpreted-Language

From my understanding An interpreted language is a highlevel language run and executed by an interpreter a program which converts the highlevel language to

Thumbnail for Posts

Is stduniqueptrT required to know the full definition of T

๐Ÿ“‚ Categories: C++

I have some code in a header that looks like this include ltmemorygt class Thing class MyClass stduniqueptrlt Thing gt mything If I include this header in a

Thumbnail for Posts

JWT vs cookies for token-based authentication

๐Ÿ“‚ Categories: Programming

I read some posts about JWT vs Cookie but they only made me more confused I want some clarification when people talking about tokenbased authentication vs