profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/jwhitlark/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Jason Whitlark jwhitlark United States

jwhitlark/clj-on-k8s-quickstart 76

Clojure on Kubernetes, the fast way.

jwhitlark/dbus-rest 3

provides dbus bindings via a local http server. DBus data is returned as JSON

jwhitlark/android-clojure-flashlight-example 2

A simple flashlight android app written in clojure, based on the example at https://github.com/jayway/maven-android-plugin-samples. Meant to demonstrate a full toolchain for android development in clojure. The example is also simple enough to serve as a skeleton for others to base their clojure/android projects on

jwhitlark/apt-sync 1

Python tools to syncronize reporitory settings and installed packages on Ubuntu Linux machines

jwhitlark/chromeQuickCouch 1

Google chrome extension which lets you jump to specific databases from the omnibox

jwhitlark/clamq 1

Clojure Message Queues Adapter

jwhitlark/clj-file-utils 1

Unix-like filesystem manipulation utilities for Clojure, wrapping Apache Commons IO.

jwhitlark/clojail 1

A control freak's best friend.

jwhitlark/clojure 1

The Clojure programming language

jwhitlark/clojure-contrib 1

Extensions and enhancements to the Clojure libraries.

pull request commentmoby/moby

overlay2: lazy umount until kernel can process umount syscall

MNT_DETACH is a lazy unmount.

May be this title is ambiguity, still use async is more reasonable.

Accoding to umount manual page, MNT_DETACH perform a lazy umount when the mount point ceases to be busy. But above is not this case. The umount call's logic is execute nearly complete in kernel, and the mount point is already release, besides the writeback work for this umount call is not accomplish becaue of the high io avgqu-sz. The follow is the related umount kernel code, it will block at ret = sync_filesystem(upper_sb); line until io comes down.

 /* Sync real dirty inodes in upper filesystem (if it exists) */
   static int ovl_sync_fs(struct super_block *sb, int wait)
   {
       struct ovl_fs *ofs = sb->s_fs_info;
       struct super_block *upper_sb;
       int ret;
  
       if (!ovl_upper_mnt(ofs))
           return 0;
  
       /*
        * Not called for sync(2) call or an emergency sync (SB_I_SKIP_SYNC).
        * All the super blocks will be iterated, including upper_sb.
        *
        * If this is a syncfs(2) call, then we do need to call
        * sync_filesystem() on upper_sb, but enough if we do it when being
        * called with wait == 1.
        */
       if (!wait)
           return 0;
  
       upper_sb = ovl_upper_mnt(ofs)->mnt_sb;
  
       down_read(&upper_sb->s_umount);
       ret = sync_filesystem(upper_sb);
       up_read(&upper_sb->s_umount);
  
       return ret;
   }
zvier

comment created time in 2 hours

issue commentreact-bootstrap/react-bootstrap

Border of Get Started Button has margin greater in Mobile mode (320 px)

The Button is not fitting the container in 320px . Visit This Link where I have shown the issue of button overflow. Link : https://drive.google.com/file/d/1gw5R3RA8Qfh1i64qYVEm6YutIIcDiUoH/view?usp=sharing

Anmolreshi

comment created time in 2 hours

pull request commentfreedomofpress/securedrop

Remove upload-screenshots.py from package

Codecov Report

Merging #5941 (3e4fc07) into develop (6eb5ac8) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #5941   +/-   ##
========================================
  Coverage    85.37%   85.37%           
========================================
  Files           53       53           
  Lines         3876     3876           
  Branches       480      480           
========================================
  Hits          3309     3309           
  Misses         455      455           
  Partials       112      112           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 6eb5ac8...3e4fc07. Read the comment docs.

eloquence

comment created time in 4 hours

issue openedfreedomofpress/securedrop

(`develop`) `securedrop-admin tailsconfig` forces presence of `tor_v3_keys.json` for Journalist Workstations

Description

Journalist Workstations should not hold a copy of tor_v3_keys.json, which contains sensitive SSH client authentication keys. However, running securedrop-admin --force tailsconfig on current develop fails with:

Authentication files for v3 onion services were found, but the corresponding tor_v3_keys.json file is missing. To enable updates to an existing SecureDrop instance, please add this file under ~/Persistent/securedrop/install_files/ansible-base.

Analysis

My read is that this is fallout from #5915, which removed the v3_onion_services condition here:

https://github.com/freedomofpress/securedrop/blob/0e74ac2ecd28c47dfbc302a1fb8044263bf110ba/install_files/ansible-base/roles/validate/tasks/validate_tails_environment.yml#L80-L90

v3_onion_services previously defaulted to False, ensuring that the check did not run on Journalist Workstations.

created time in 4 hours

issue commentreact-bootstrap/react-bootstrap

Slow loading of vscode's smart tips on low performance devices

问题是好像只有这个库会使 vscode 这么慢,所以我就先来这边碰碰运气了😂 --------------------------- Translate by Google --------------------- The problem is that it seems that only this library will make vscode so slow, so I will try my luck here first 😂

kljzndx

comment created time in 5 hours

PR opened freedomofpress/securedrop

Remove upload-screenshots.py from package

Status

Ready for review

Description of Changes

Fixes #5832

Uses .rsync-filter as suggested by @conorsch on https://github.com/freedomofpress/securedrop/issues/5832#issuecomment-788164580. We could also move the script somewhere else, but none of the existing directories (e.g., devops) felt like a great fit.

Testing

  1. make build-debs-notest on this branch
  2. Make coffee
  3. Inspect securedrop-app-code package in build/focal and observe that upload-screenshots.py is no longer present.
+1 -0

0 comment

1 changed file

pr created time in 5 hours

create barnchfreedomofpress/securedrop

branch : 5832-no-screenshot-script

created branch time in 5 hours

pull request commentmoby/moby

[19.03 backport] Update containerd v1.4.4, runc v1.0.0-rc93

@thaJeztah do you when this change will be merged? thanks

thaJeztah

comment created time in 6 hours

push eventfreedomofpress/securedrop

Kevin O'Gorman

commit sha fc78532d7c5176e058f23f1af80d447ada411986

Updated infra python package version check to work without pip, dropped '--upgrade-pip-to' arg from dh_virtualenv

view details

push time in 6 hours

issue commentmoby/moby

All published services within a docker swarm are unreachable while containers deployed normally work fine.

Is this issue closed? or we need to worry deploying on 20.04?

TheRealAlexV

comment created time in 7 hours

issue commentreact-bootstrap/react-bootstrap

Option for Toast to be position: fixed

I actually don't see where position is explicitly defined at all https://github.com/twbs/bootstrap/blob/v5.0.1/scss/_toasts.scss

From what I can tell, it seems like they have it included in their docs as position: absolute, but only as a way to illustrate some of the functionality.

The intended use (at least from my perspective) feels like it's meant to be used in combination with position: fixed. And anecdotally, I'm not really sure how you'd use it with position: absolute, except maybe in very specific circumstances.

IHIutch

comment created time in 7 hours

push eventfreedomofpress/securedrop

Kevin O'Gorman

commit sha 5c888a67a35c2a9900f1adcb0da40ca4bbbfb4d1

Updated infra python package version check to work without pip, dropped '--upgrade-pip-to' arg from dh_virtualenv

view details

push time in 7 hours

issue openedfreedomofpress/securedrop

The version of pip installed by dh_virtualenv in the app venv is erroring out, causing testinfra tests to fail.

Description

As part of release prep, the securedrop builder image was updated, pulling in a new Ubuntu python3-pip package in the process. This package is installed in the securedrop-app-code venv by dh_virtualenv during the build process (whether it should be is an open question), and is used in a testinfra test that checks expected package install versions against the versions reported by pip.

Steps to Reproduce

  • Update molecule/builder-focal/create.yml, setting default_image toquay.io/freedomofpress/sd-docker-builder-focal:2021_05_13`
  • run make build-debs && make staging && make testinfra

Expected Behavior

build succeeds, staging set up, testinfra passes

Actual Behavior

build succeeds, staging set up, testinfra fails on test_app_pip_deps with traceback:

Traceback (most recent call last):\n  File "/opt/venvs/securedrop-app-code/bin/pip", line 5, in <module>\n    from pip._internal.cli.main import main\n  File "/opt/venvs/securedrop-app-code/lib/python3.8/site-packages/pip/_internal/cli/main.py", line 10, in <module>\n    from pip._internal.cli.autocompletion import autocomplete\n  File "/opt/venvs/securedrop-app-code/lib/python3.8/site-packages/pip/_internal/cli/autocompletion.py", line 9, in <module>\n    from pip._internal.cli.main_parser import create_main_parser\n  File "/opt/venvs/securedrop-app-code/lib/python3.8/site-packages/pip/_internal/cli/main_parser.py", line 7, in <module>\n    from pip._internal.cli import cmdoptions\n  File "/opt/venvs/securedrop-app-code/lib/python3.8/site-packages/pip/_internal/cli/cmdoptions.py", line 25, in <module>\n    from pip._internal.locations import USER_CACHE_DIR, get_src_prefix\n  File "/opt/venvs/securedrop-app-code/lib/python3.8/site-packages/pip/_internal/locations.py", line 19, in <module>\n    from pip._internal.utils import appdirs\n  File "/opt/venvs/securedrop-app-code/lib/python3.8/site-packages/pip/_internal/utils/appdirs.py", line 13, in <module>\n    from pip._vendor import appdirs as _appdirs\nImportError: cannot import name \'appdirs\' from \'pip._vendor\' (/opt/venvs/securedrop-app-code/lib/python3.8/site-packages/pip/_vendor/__init__.py)\n'

The same error can be observed by activating the virtualenv on the app server and running any pip command.

Comments

Some potential resolutions already discussed:

  • use dh_virtualenv's --upgrade-pip-to argument to install a working pip (e.g. 21.1.1) - this works but doesn't check hashes and adds a massive unreviewed dependency
  • add pip to securedrop-app-code requirements - unclear if this will work, good for hashes, would still be on the hook to review
  • figure out how to not install pip - by far the best solution but not sure it's possible
  • live with the busted pip addition, drop the test - if pip is in fact required in the venv, this will backfire, plus test coverage reduced
  • live with the busted pip addrion, update the test to check versions with importlib instead - same backfire potential but at least test number doesn't :arrow_down:.

created time in 8 hours

issue commentreact-bootstrap/react-bootstrap

Problems extending/theming via CSS while using Typescript

I certainly appreciate and feel silly about that workaround, thanks! I was also unaware/hadn't noticed what my suggestion does to auto-complete - tough choice there.

jessedp

comment created time in 8 hours

issue closedreact-bootstrap/react-bootstrap

Problems extending/theming via CSS while using Typescript

Describe the bug

Apologies if this is a dupe of a discussion/docs I've missed...

The Theming and customizing styles suggestions worked wonderfully while I was using plain JS. I could and did, for example, easily add a xs size button by adding .btn-xs{} in my CSS.

In converting the project to TS, this stops working because size is defined in ButtonProps as size?: 'sm' | 'lg';

To Reproduce

Add a Button to a TS project and use a size other than sm or lg.

<Button size="xs" variant="secondary" onClick={this.handleClose}>
            Close
 </Button>

Expected behavior

No typescript type def complaints for properties that should be extendable via CSS.

Environment (please complete the following information)

  • Operating System: any
  • Browser, Version: any current
  • React-Bootstrap Version - 1.6.0

Additional context

In my mind, the "fix" would be to change that definition to size?: 'sm' | 'lg' | string; . That's what was done for the Variant type, though oddly(?) not for ButtonVariant or Color. Then size in Modal, Spinner, and whatever other properties in the various Components fall under the "should be extendable via CSS".

Using bsPrefix technically works, but then I'm making copies of variant/etc styles just to change the Button size which gets gross and messy and is probably in part why it's not recommended.

In the meantime, I'm trying to extend/copy the various components parts I need/want to bring forward my css based customizations to (Button, Spinner, Modal, Dropdown & DropdownToggle so far).

Hopefully I'm missing something easy and obvious here, because the two workarounds I have seem untenable. Happy to submit a PR to get started with what I think should be included in a change if that seems proper.

closed time in 8 hours

jessedp

pull request commentfreedomofpress/securedrop

Updated focal builder image

(note for posterity) the way to test this locally is:

  1. checkout this PR branch
  2. make build-debs
  3. make staging
  4. make testinfra
zenmonkeykstop

comment created time in 9 hours

issue commentmscdex/ssh2

What do you mean by host.key?

A server needs a valid private key. The public key can be automatically derived from the private key, so you don't need that.

JamieGrimwood

comment created time in 9 hours

issue commentreact-bootstrap/react-bootstrap

NavDropdown alignRight does not allow for breakpoints

This is something we fixed up in v2 if you're interested in using that.

Might be able to backport it.

broofa

comment created time in 10 hours

issue commentmoby/moby

How to disable /etc/hosts /etc/hostname /etc/resolv.conf mounts with docker run ?

Patching Glibc worked and didn't cause any problems. The binary to alter in my Docker image was /lib/x86_64-linux-gnu/libnss_files.so.2.

mrinaldhillon

comment created time in 10 hours

issue commentreact-bootstrap/react-bootstrap

Border of Get Started Button has margin greater in Mobile mode (320 px)

Seems fine to me. Is there an issue this is addressing?

Anmolreshi

comment created time in 10 hours

issue commentreact-bootstrap/react-bootstrap

Option for Toast to be position: fixed

The styles come from the bootstrap css - we don't add anything extra on our side.

If you're looking to change the position style, you can manually override the styles in your code.

IHIutch

comment created time in 10 hours

push eventpepijndevos/pepijndevos.github.com

Pepijn de Vos

commit sha 7da8e6cf71af280189017a81eafec36a669150c9

flutter evaluation

view details

Pepijn de Vos

commit sha ff48354411ab8e9cb6926458890d851052ef0c3c

react section

view details

Pepijn de Vos

commit sha 6b341986625be248ccb0f73ce28b22bf4d01e239

cljs

view details

Pepijn de Vos

commit sha 9e7306195162b7efc5d2e87f873ab8a562e91ea3

finish up

view details

Pepijn de Vos

commit sha 9f64b2fc939700bb2e79dc3bc2b983230042ea97

Merge pull request #1 from pepijndevos/guis Guis

view details

push time in 10 hours

PR opened pepijndevos/pepijndevos.github.com

Guis
+336 -0

0 comment

9 changed files

pr created time in 10 hours

push eventpepijndevos/pepijndevos.github.com

Pepijn de Vos

commit sha 9e7306195162b7efc5d2e87f873ab8a562e91ea3

finish up

view details

push time in 10 hours

issue commentreact-bootstrap/react-bootstrap

Slow loading of vscode's smart tips on low performance devices

Isn't this a vscode issue? Not sure how it relates to react-bootstrap?

kljzndx

comment created time in 10 hours

issue commentreact-bootstrap/react-bootstrap

Problems extending/theming via CSS while using Typescript

Yeah we should probably change it to allow customizations. Only downside is we lose auto-complete (https://github.com/microsoft/TypeScript/issues/29729), but maybe that's ok?

A workaround is to do size={'xs' as any}

jessedp

comment created time in 10 hours

issue commentmoby/moby

overlay2 infinitely eats server disk space

@pascalandy Did you ever resolve your issue?

vartagg

comment created time in 10 hours

issue commentmoby/moby

overlay2 infinitely eats server disk space

I am having this same issue. I started a Stack Exchange post where I unpack the diagnosis I've done so far. But I'm running Ubuntu 20.04 host machine with a 10 GB volume. I'm doing docker pull to download and launch a single image, I launch it once (during the startup script) and let it run. After about 3 weeks the host disk completely fills up. The docker image is also running a minimal Ubuntu 20.04.

It's my /var/lib/docker/overlay2 directory that keeps growing. This SO post unpacks all the diagnosis I've done so far. I'm still stuck:

https://stackoverflow.com/questions/67523890/why-does-a-long-running-docker-instance-fill-up-my-disk-space

vartagg

comment created time in 10 hours

issue commentubuntu/microk8s

Lack of s390x arch support

We have started working on this. Should have it ready soon.

lcavassa

comment created time in 10 hours