cardboard chair

One time, when at Katapult, we moved to a new office, but we were moving from a wework and so we didn’t have any chairs, so I joined to help buy new chairs from Staples. We rolled a hand cart full of boxed up chairs down the a bike lane, to the office and we assembled all the new chairs. But then I remember we had tons of cardboard from all the boxes, so I ended up stashing a bunch of cardboard for myself, and bolted together a cardboard chair. So hehe, this cardboard chair, made out of the boxes used to pack chairs from Staples, actually lasted several years during my time there. Some photos of the initial assembly and cutting, are below. ...

October 26, 2014 · (updated July 27, 2025) · 1 min · 130 words · Michal Piekarczyk

petrol car queue question

okay Question There is a queue of N cars waiting at the filling station. 3 fuel dispensers, x, y, z. When a car arrives at front of the queue, driver can choose to go to any dispenser not occupied. If all unoccupied dispensers have less than required by the driver he has to wait. if more than one dispenser has the required liter, the driver chooses the one labeled with the smallest letter.Calculate max amount of waiting time. ...

September 30, 1970 · (updated September 30, 2023) · 3 min · 475 words · Michal Piekarczyk

First i needed to get ruby from homebrew Using gem install bundler jekyll didn’t work for me because I was getting a permission error, ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /Library/Ruby/Gems/2.3.0 directory. I did brew install ruby and brew install rbenv ruby-build Also saw this message (venv3) $ brew install ruby ==> Installing dependencies for ruby: libyaml, openssl@1.1 and readline ==> Installing ruby dependency: libyaml ==> Downloading https://homebrew.bintray.com/bottles/libyaml-0.2.2.mojave.bottle.tar.gz ######################################################################## 100.0% ==> Pouring libyaml-0.2.2.mojave.bottle.tar.gz 🍺 /usr/local/cellar/libyaml/0.2.2: 9 files, 291.6kb ==> installing ruby dependency: openssl@1.1 ==> downloading https://homebrew.bintray.com/bottles/openssl@1.1-1.1.1d.mojave.bottle.tar.gz ==> downloading from https://akamai.bintray.com/10/104ef018b7bb8fcc49f57e5a60359a28a02d480d85a959e6141394b0571cbb28?__gda__=exp=1571 ######################################################################## 100.0% ==> pouring openssl@1.1-1.1.1d.mojave.bottle.tar.gz ==> caveats a ca file has been bootstrapped using certificates from the system keychain. to add additional certificates, place .pem files in /usr/local/etc/openssl@1.1/certs and run /usr/local/opt/openssl@1.1/bin/c_rehash openssl@1.1 is keg-only, which means it was not symlinked into /usr/local, because openssl/libressl is provided by macos so don't link an incompatible version. if you need to have openssl@1.1 first in your path run: echo 'export path="/usr/local/opt/openssl@1.1/bin:$path"' >> ~/.bash_profile for compilers to find openssl@1.1 you may need to set: export ldflags="-l/usr/local/opt/openssl@1.1/lib" export cppflags="-i/usr/local/opt/openssl@1.1/include" for pkg-config to find openssl@1.1 you may need to set: export pkg_config_path="/usr/local/opt/openssl@1.1/lib/pkgconfig" ==> summary 🍺 /usr/local/cellar/openssl@1.1/1.1.1d: 7,983 files, 17.9mb ==> installing ruby dependency: readline ==> downloading https://homebrew.bintray.com/bottles/readline-8.0.1.mojave.bottle.tar.gz ==> downloading from https://akamai.bintray.com/3c/3c754391e9d243835811d128771ca0f1a565024100fd2c2871534353d46aaf0e?__gda__=exp=1571 ######################################################################## 100.0% ==> pouring readline-8.0.1.mojave.bottle.tar.gz ==> caveats readline is keg-only, which means it was not symlinked into /usr/local, because macos provides the bsd libedit library, which shadows libreadline. in order to prevent conflicts when programs look for libreadline we are defaulting this gnu readline installation to keg-only. for compilers to find readline you may need to set: export ldflags="-l/usr/local/opt/readline/lib" export cppflags="-i/usr/local/opt/readline/include" for pkg-config to find readline you may need to set: export pkg_config_path="/usr/local/opt/readline/lib/pkgconfig" ==> summary 🍺 /usr/local/cellar/readline/8.0.1: 48 files, 1.5mb ==> installing ruby ==> downloading https://homebrew.bintray.com/bottles/ruby-2.6.5.mojave.bottle.tar.gz ==> downloading from https://akamai.bintray.com/e3/e30782df0575e8df1bc3c23da701644919099cc31f6b05b163cde847d116414c?__gda__=exp=1571 ######################################################################## 100.0% ==> pouring ruby-2.6.5.mojave.bottle.tar.gz ==> caveats by default, binaries installed by gem will be placed into: /usr/local/lib/ruby/gems/2.6.0/bin you may want to add this to your path. ruby is keg-only, which means it was not symlinked into /usr/local, because macos already provides this software and installing another version in parallel can cause all kinds of trouble. if you need to have ruby first in your path run: echo 'export path="/usr/local/opt/ruby/bin:$path"' >> ~/.bash_profile for compilers to find ruby you may need to set: export ldflags="-l/usr/local/opt/ruby/lib" export cppflags="-i/usr/local/opt/ruby/include" for pkg-config to find ruby you may need to set: export pkg_config_path="/usr/local/opt/ruby/lib/pkgconfig" ==> summary 🍺 /usr/local/cellar/ruby/2.6.5: 19,390 files, 31.1mb And rbenv ...

(updated February 26, 2023) · 8 min · 1598 words · michal

Build issues again haha I am doing jekyll build but this time from a Makefile , containing build: jekyll build with make build And I’m getting $ make build jekyll build Traceback (most recent call last): 10: from /usr/local/lib/ruby/gems/2.6.0/bin/jekyll:23:in `<main>' 9: from /usr/local/lib/ruby/gems/2.6.0/bin/jekyll:23:in `load' 8: from /usr/local/lib/ruby/gems/2.6.0/gems/jekyll-4.0.0/exe/jekyll:11:in `<top (required)>' 7: from /usr/local/lib/ruby/gems/2.6.0/gems/jekyll-4.0.0/lib/jekyll/plugin_manager.rb:52:in `require_from_bundler' 6: from /usr/local/lib/ruby/gems/2.6.0/gems/bundler-2.0.2/lib/bundler.rb:107:in `setup' 5: from /usr/local/lib/ruby/gems/2.6.0/gems/bundler-2.0.2/lib/bundler/runtime.rb:26:in `setup' 4: from /usr/local/lib/ruby/gems/2.6.0/gems/bundler-2.0.2/lib/bundler/runtime.rb:26:in `map' 3: from /usr/local/lib/ruby/gems/2.6.0/gems/bundler-2.0.2/lib/bundler/spec_set.rb:148:in `each' 2: from /usr/local/lib/ruby/gems/2.6.0/gems/bundler-2.0.2/lib/bundler/spec_set.rb:148:in `each' 1: from /usr/local/lib/ruby/gems/2.6.0/gems/bundler-2.0.2/lib/bundler/runtime.rb:31:in `block in setup' /usr/local/lib/ruby/gems/2.6.0/gems/bundler-2.0.2/lib/bundler/runtime.rb:319:in `check_for_activated_spec!': You have already activated public_suffix 4.0.5, but your Gemfile requires public_suffix 4.0.1. Prepending `bundle exec` to your command may solve this. (Gem::LoadError) make: *** [build] Error 1 Ok cool. Whatever that means haha. So going full Memento here, looking at my earlier notes , I see last time I used gem update --system to solve the problem. So doing that again this time , and saw this output.. $ gem update --system Updating rubygems-update Fetching rubygems-update-3.1.4.gem Successfully installed rubygems-update-3.1.4 Parsing documentation for rubygems-update-3.1.4 Installing ri documentation for rubygems-update-3.1.4 Installing darkfish documentation for rubygems-update-3.1.4 Done installing documentation for rubygems-update after 59 seconds Parsing documentation for rubygems-update-3.1.4 Done installing documentation for rubygems-update after 0 seconds Installing RubyGems 3.1.4 Successfully built RubyGem Name: bundler Version: 2.1.4 File: bundler-2.1.4.gem Bundler 2.1.4 installed RubyGems 3.1.4 installed Regenerating binstubs Parsing documentation for rubygems-3.1.4 Installing ri documentation for rubygems-3.1.4 === 3.1.4 / 2020-06-03 Minor enhancements: * Deprecate rubyforge_project attribute only during build time. Pull request #3609 by Josef Šimánek. * Update links. Pull request #3610 by Josef Šimánek. * Run CI at 3.1 branch head as well. Pull request #3677 by Josef Šimánek. * Remove failing ubuntu-rvm CI flow. Pull request #3611 by Josef Šimánek. ------------------------------------------------------------------------------ RubyGems installed the following executables: /usr/local/Cellar/ruby/2.6.5/bin/gem /usr/local/Cellar/ruby/2.6.5/bin/bundle Ruby Interactive (ri) documentation was installed. ri is kind of like man pages for Ruby libraries. You may access it like this: ri Classname ri Classname.class_method ri Classname#instance_method If you do not wish to install this documentation in the future, use the --no-document flag, or set it as the default in your ~/.gemrc file. See 'gem help env' for details. RubyGems system software updated You have new mail in /var/mail/michal $ ok letss try again make build Darn getting same result. Ok it says to use bundle exec jekyll build instead. Going to try that ...

(updated February 26, 2023) · 7 min · 1354 words · Michal Piekarczyk

Binomial Distribution Plot Binomial distribution for p, and a sample of n from scipy.stats import binom import numpy as np import matplotlib.pyplot as plt import pylab workdir = '_posts/2020-11-14-georgia-recount-stats_files' fig, ax = plt.subplots(1, 1) n, p = 5, 0.4 mean, var, skew, kurt = binom.stats(n, p, moments='mvsk') x = np.arange(binom.ppf(0.01, n, p), binom.ppf(0.99, n, p)) ax.plot(x, binom.pmf(x, n, p), 'bo', ms=8, label='binom pmf') ax.vlines(x, 0, binom.pmf(x, n, p), colors='b', lw=5, alpha=0.5) out_loc = f'{workdir}/foo.png' pylab.savefig(out_loc) pylab.close()

(updated February 26, 2023) · 1 min · 76 words · Michal Piekarczyk

Here, looking at the recent recount in Georgia as an example around determining, what would a good number of votes to randomly sample to help validate an election result. According to the latest results of this writing there is B, T = 2472182, 2458010 p_observed = B*1./(B + T) # 0.501437 For now just starting off below visualizing the binomial distribution around the p_observed for different numbers of samples to look at what likelihoods are assigned to the different outcomes specified by that given binomial distribution. ...

(updated February 26, 2023) · 2 min · 277 words · Michal Piekarczyk

Trying to figure out whether Calories specified typically include grams from Fiber Managed to find some documentation , here on “proximates” , “Carbohydrate content, referred to as “carbohydrate by difference” in the tables, is expressed as the difference between 100 and the sum of the percentages of water, protein, total lipid (fat), ash, and alcohol (when present). Values for carbohydrate by difference include total dietary fiber content. “Sugars, total NLEA” refers to the sum of the values for individual monosaccharides (galactose, glucose, and fructose) and disaccharides (sucrose, lactose, and maltose), which are those sugars analyzed for nutrition labelling. Because the analyses of total dietary fiber, total sugars, and starch content are conducted separately and reflect the analytical variability inherent in the measurement process, the sum of these carbohydrate fractions may not equal the carbohydrate-by-difference value or may even exceed it.” ...

(updated March 12, 2023) · 2 min · 282 words · Michal Piekarczyk

TLDR This time, the brew update && brew upgrade approach resolved my openssl dyld: Library not loaded woes. And brew apparently no longer has the switch command which had been the cornerstone of a popular stackoverflow answer for this problem. Trying to run this new ffmpeg usage, but… $ ffmpeg -i 2021*.jpg -sameq -r 25 outmovie.mp4 dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib Referenced from: /usr/local/bin/ffmpeg Reason: image not found Abort trap: 6 $ brew update Error: homebrew-core is a shallow clone. homebrew-cask is a shallow clone. To `brew update`, first run: git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask fetch --unshallow These commands may take a few minutes to run due to the large size of the repositories. This restriction has been made on GitHub's request because updating shallow clones is an extremely expensive operation due to the tree layout and traffic of Homebrew/homebrew-core and Homebrew/homebrew-cask. We don't do this for you automatically to avoid repeatedly performing an expensive unshallow operation in CI systems (which should instead be fixed to not use shallow clones). Sorry for the inconvenience! $ openssl version OpenSSL 1.0.2n 7 Dec 2017 $ ls -al /usr/local/Cellar/openssl ls: /usr/local/Cellar/openssl: No such file or directory $ ls -al /usr/local/Cellar/openssl\@1.1/ total 0 drwxr-xr-x 3 michal staff 96 22 nov 20:38 . drwxr-xr-x 111 michal admin 3552 1 mai 16:11 .. drwxr-xr-x 14 michal staff 448 16 oct 2020 1.1.1h Well this subject is super busy on stack overflow. But the top answer did not work for me hmm $ brew switch openssl 1.1.1h Error: Unknown command: switch $ And yea according to here , switch command is no more ...

(updated February 26, 2023) · 2 min · 329 words · Michal Piekarczyk

mindfulness or mindlessness? One definition of mindfulness is awareness of pre-thought, that is, to capture rumination, stop it in its tracks and put a magnifying glass over it. Then you can inspect the material, as a thought, and either notice it go away or notice yourself doing something about it. verbal or nonverbal? Some of the pre thoughts, perhaps call them gut feelings or intuitions, can be nonverbal. Perhaps that is along the lines of a bag of words , sort of embedded in a hyperdimensional space? And one where neuralink can one day let us write with them or direct our environment. That’s the stuff of thought. ...

(updated August 25, 2024) · 1 min · 108 words · Michal Piekarczyk