๐Ÿš€ OharaLumina

All Posts

Thumbnail for Posts

Do I understand Prometheuss rate vs increase functions correctly

๐Ÿ“‚ Categories: Programming
๐Ÿท๏ธ Tags: Prometheus

I have read the Prometheus documentation carefully but its still a bit unclear to me so I am here to get confirmation about my understanding Please note that

Thumbnail for Posts

Does Conda replace the need for virtualenv

๐Ÿ“‚ Categories: Python

I recently discovered Conda after I was having trouble installing SciPy specifically on a Heroku app that I am developing With Conda you create environments

Thumbnail for Posts

Does Jest support ES6 importexport

๐Ÿ“‚ Categories: Programming
๐Ÿท๏ธ Tags: Ecmascript-6 Jestjs Babel-Jest

If I use importexport from ES6 then all my Jest tests fail with error Unexpected reserved word I convert my object under test to use old school IIFE syntax and

Thumbnail for Posts

Execution time of C program

๐Ÿ“‚ Categories: Programming
๐Ÿท๏ธ Tags: C Benchmarking

I have a C program that aims to be run in parallel on several processors I need to be able to record the execution time which could be anywhere from 1 second

Thumbnail for Posts

Fastest way to get the first object from a queryset in django

๐Ÿ“‚ Categories: Python

Often I find myself wanting to get the first object from a queryset in Django or return None if there arent any There are lots of ways to do this which all

Thumbnail for Posts

Git Correct way to change Active Branch in a bare repository

๐Ÿ“‚ Categories: Programming
๐Ÿท๏ธ Tags: Git

I have a bare repository thats used as the central store for my project All the developers do git clone ltrepogt to share with it When they do the clone they

Thumbnail for Posts

Golang tests in sub-directory

๐Ÿ“‚ Categories: Go
๐Ÿท๏ธ Tags: Unit-Testing Build

I want to create a package in Go with tests and examples for the package as subdirectories to keep the workspace cleaner Is this possible and if so how All the

Thumbnail for Posts

Hash collision in git

๐Ÿ“‚ Categories: Programming
๐Ÿท๏ธ Tags: Git Hash Sha1 Hash-Collision

What would actually happen if I had a hash collision while using git Eg I manage to commit two files with the same sha1 checksum would git notice it or corrupt

Thumbnail for Posts

How can I check if a Flutter application is running in debug

๐Ÿ“‚ Categories: Flutter

Im looking for a way to execute code in Flutter when the app is in Debug mode Is that possible in Flutter I cant seem to find it anywhere in the documentation