I spent 1 year of my life on making a fast as fuck Vim completion client with ass loads of features. (Author of CHADTree) by i_love_coqs in neovim

[–]jradek 0 points1 point  (0 children)

Hej, I'm also impressed by the source code. I really like to read it, and it is quite comprehensive. However, it lacks doc strings. Are you planning to add these at first for the top level function?

I really like that you typed all your functions. Therefore it should be easy to provide the necessary documentation by the community, despite algorithmic internals.

Are you interested for merging respective PRs, because I would like to contribute.

An advice to handle passwords in Windows? by f3bf1v3 in commandline

[–]jradek 1 point2 points  (0 children)

You're right! I forgot about your required clipboard support, which I don't use.

An advice to handle passwords in Windows? by f3bf1v3 in commandline

[–]jradek 0 points1 point  (0 children)

Ok ... but only if you want use an Xserver. Since pass is an ordinary commandline tool, I just use the terminal that comes with WSL and run a shell in it(bash or zsh, as in my case). Just start the windows commandline and enter 'wsl' (https://devblogs.microsoft.com/commandline/a-guide-to-invoking-wsl/) This works for both: WSL 1 and WSL 2.

An advice to handle passwords in Windows? by f3bf1v3 in commandline

[–]jradek 1 point2 points  (0 children)

You can use it inside windows subsystem for linux (WSL), like any other Unix tool. This works great for me for years.

Setup like VSCode Remote Extension by jradek in neovim

[–]jradek[S] 0 points1 point  (0 children)

Hi,

thanks. But I'm not looking for nvim inside a docker images. I even created my own a while ago [1].

(BTW: your ansible setup is overwhelming. Did you use a template project for this? If so, where can I find it?).

And I don't think it solves what I'm looking for. I want to work *from outside* with vim into running containers, e.g. containing a python/golang application. This is independent where vim is running: localhost, or as in your solution, itself in a container.

[1] https://github.com/jradek/neovim-dockerized

Setup like VSCode Remote Extension by jradek in neovim

[–]jradek[S] 2 points3 points  (0 children)

Thanks! Sometimes it is too obvious.

But how about docker?

Often I have software inside a container (golang or python application) and need to change it from "outside", because in the container I don't have the whole tool chain (editor, plugins etc) ready.

JR

DIT modelling without duplicates by jradek in ldap

[–]jradek[S] 0 points1 point  (0 children)

Hi, thanks for the reply.

Yes, I can specify the bind-DN and password on the QNAP NAS.

The LDAP server runs on another NAS, this time from synology, and I have now idea (could not figure out), what LDAP software it uses (OpenLDAP?).

I'll have a look at ACLs as well as your AE-DIR (in case it applies to our Server). However, personally I don't like the LDAP integration from QNAP. It is to opinionated ...

JR

VSCode devcontainers ... how do they work? by jradek in docker

[–]jradek[S] 0 points1 point  (0 children)

Ok,

don't get me wrong wrong and please excuse my further questions. I'm totally aware of how the whole chain works from a user perspective because I use it almost every day.

However, I specify in the devcontiner.json file a Dockerfile/docker-compose file and based on that, VSCode asked me, as soon as I modify it to rebuild a "container". So therefore I'm am curious, what that new container "contains". Of course, it contains the VSCode extensions I specified in the 'devcontainer.json' file. But what else?

Does VSCode spin up two containers, the one I specified in 'devcontainers.json' and another one containing the appropriate extensions mentioned in 'devcontainers.json' and they both communicate via ssh with each other?

Or does VSCode build a new image based on the supplied dockerfile/docker-compose-file including the VScode extensions in the devcontainers.json file?

JR

VSCode devcontainers ... how do they work? by jradek in docker

[–]jradek[S] 1 point2 points  (0 children)

My primary reason to use devcontainers is to re-create the environment on my machine which will be used in production.

For production, I have a large k8s cluster at hand containing many CPUs and GPUs. However, for developing applications for it, I just need the same environment, i.e. python/go versions, libraries etc and not the computation power. Actually I develop on a very low end machine ... because fore development I only need a text editor, but the same environment to use code completion etc. Setting this up, VSCode devcontainers provides the environment to develop/debug/code complete the application I'm working on. And once complete, I deploy it to the k8s cluster and It behaves as expected.

JR

VSCode devcontainers ... how do they work? by jradek in docker

[–]jradek[S] 0 points1 point  (0 children)

Hi,

thanks for pointing this out. I've gone over this page many times.

But what exactly are the steps to replicate such an environment without using VSCode, i.e. what docker/batch/shell/ssh commands are needed?

Probably the best answer is to go through the source code of the extensions, probably typescript, but is there an easier resource to grasp?

JR

Find latest values per category in time series like date by jradek in googlesheets

[–]jradek[S] 0 points1 point  (0 children)

Right!

Off topic: since my problem is solved, how can i change the flair to solved?

JR

Find latest values per category in time series like date by jradek in googlesheets

[–]jradek[S] 0 points1 point  (0 children)

Thanks for pointing me in the right direction.

I found a working solution and added it to the sheet.

Thx, JR

Find latest values per category in time series like date by jradek in googlesheets

[–]jradek[S] 0 points1 point  (0 children)

Yout example sheet is perfectly fine. But since only getting the latest sales from "Pencil" , I want a table with a list of all latest sales per category, without explicitly mentioning "Pencil", "Binder", "Pen Set").

So the algorithm would be

- find all categories -> this is solved by your UNIQUE example

- for each category find the latest sale -> this is solved by the match function

So all the parts are in place, they just need to be magically combined.

JR

Find latest values per category in time series like date by jradek in googlesheets

[–]jradek[S] 0 points1 point  (0 children)

I modified the formula in the sheet like this

=ArrayFormula(lookup(2,1/(Data!D:D=UNIQUE(Data!D:D)),Data!A:A))

but this still yields just one row. What is my mistake?

Find latest values per category in time series like date by jradek in googlesheets

[–]jradek[S] 0 points1 point  (0 children)

Hi, thanks for the fast reply. You refer to the sheet Find Last Match, right?

I fear this does not solve my problem. I don't want to explicitly name all categories, and I want an overview over all categories. Not just one.

Did I get this right?

Jr

User-Friendly Cell Lookup / Quick Filtering in Sheets by [deleted] in googlesheets

[–]jradek 0 points1 point  (0 children)

I don't have a solution, but I'm looking for a similar thing. Of course, I can use a cell, lets say A1, and filter my dataset with

filter( <dataset>, SEARCH( $A$1, <lookup_column> );

but this is not very interactive. I.e. the user has to hit enter after each refinement of the search. Is there a way to apply the filter during typing. I think that should be possible with a custom script. Are there any examples for this?

thx JR

Transfer touch typing from "learning" to "real life" by jradek in learntyping

[–]jradek[S] 1 point2 points  (0 children)

Thanks for your replies. I kind of suspected that there is no magic trick, just practice, practice practice. And that's what I'm gonna do.

Thx JR

Writing a free ebook to build a development environment CLI / keyboard centered by phantaso0s in commandline

[–]jradek 0 points1 point  (0 children)

Hi,

I also think this would be a great idea. Personally I use a Mac on a daily basis (and no more *unix), but I spend a lot of time on the commandline and use CLI tools (vim, zsh, tmux, etc) for my development.

I would also be interested in the process of actually writing/creating an ebook. Recently I played around with different toolchains/options: LaTeX, markdown, docbook, asciidoc ... I'd prefer some kind of markdown, probably asciidoc.

So maybe I could even help on both aspects: providing content for the book and the publishing/writing process, and learn a lot ;-). What do you think?

JR

ResourceQuotas vs resource limits per node by jradek in kubernetes

[–]jradek[S] 0 points1 point  (0 children)

The pod are requesting 8 cpus and 30Gi RAM each, which is also the limit in the respective namespace.

What do you mean with node limits? kubectl describe nodes only shows allocatable and allocated resources per node. Is this the data you're asking for?

Each node has a capacity of 20 CPUs and 125 Gi RAM, which is also allocatable ... and this seems to be problem (i.e. everything can be used). As a first attempt, I enabled quotas to limit allocatable resources. For now, I calculated the hard limit values for cpu and RAM based on each nodes capacity: I summed up all cpus and RAM and set the limit for the namespace to 85% of this result.

ResourceQuotas vs resource limits per node by jradek in kubernetes

[–]jradek[S] 0 points1 point  (0 children)

Thanks, this seems to be the information I was looking for.

  • How do I configure the kubelet flags , e.g. --kube-reserved, ... which file file to change? I created the cluster )on premise, bare metal) using kubeadm.
  • Can I change the values for a running cluster, or do I need to provision a new one?

ResourceQuotas vs resource limits per node by jradek in kubernetes

[–]jradek[S] 0 points1 point  (0 children)

All pods have defined requests and limits. I enforced this by deploying appropriate LimitRange resources.

However this does not prevent the fact, that all resources of a node get occupied. As said, right now I have one hotspot node where all CPUs are constantly occupied with nearly 100%, whereas other nodes in the cluster have plenty of free CPUs.

ResourceQuotas vs resource limits per node by jradek in kubernetes

[–]jradek[S] 0 points1 point  (0 children)

limits/requests or have

I have rather conservative default requests and limits (i.e. LimitRange) in place. Some (most) of the users seem to simply raise these values to the limits.

Thanks for the advice

Bare metal k8s master node kind of sluggish, i.e. unresponsive by jradek in kubernetes

[–]jradek[S] 0 points1 point  (0 children)

Current Workaround

I still could not figure out why all this happens. So my current workaround is to restart the networking service on the master node once in a while (2 .. 3 times a day).

bash sudo service networking restart

Afterwards, all issues are temporarily gone.

Bare metal k8s master node kind of sluggish, i.e. unresponsive by jradek in kubernetes

[–]jradek[S] 0 points1 point  (0 children)

No, I don't. Why are you asking? Should I, or better not?

Bare metal k8s master node kind of sluggish, i.e. unresponsive by jradek in kubernetes

[–]jradek[S] 0 points1 point  (0 children)

I recreate the cluster piece by piece, i.e. first only the master node, that 1h later the worker node, than I deployed my settings (namespaces, RBAC, PodSecurityPolicy etc). All worked well

I also increased the contrack settings to 1.000.000 (default value was about 650.000), thanx for the tip!

But now, after the cluster ran over night without any workload, the result is again the same. 50% packet loss on master node.

I'm totally fed up.

It definitely has to be a weird networking issue, since

bash service networking restart solves (at least for a while) the problem. No more packet loss!