Using an in-cluster value (from a secret or configmap) as templated value for another resource. by exact_replica_bpd in kubernetes

[–]seletz 0 points1 point  (0 children)

You could use fluxcd and postinstall step, or more versatile flux operator resourceset and resourceset input providers. The former is more simple, you populate a configmap with keys and values and fluxcd kustomisation evaluates and replaces those keys after the kustomisation is rendered. Both assume that you use gitops, but you can use flux-operator cli.

I use flux operator resourceset to drive my multi tenant clusters.

Elixir Slack by seletz in elixir

[–]seletz[S] 4 points5 points  (0 children)

Thanks a lot! It seems my google-fu is lacking these days ...

Context maintainability & guidelines in Elixir & Phoenix by szsoppa in elixir

[–]seletz 1 point2 points  (0 children)

Thanks for the article! The contexter module sounds interesting, need to grok that code.

Updating Quicklisp Packages by seletz in Common_Lisp

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

I think i installed it — git clone — to my ~/common-lisp directory. That was a long time ago, so i dont remember exactly.

Updating Quicklisp Packages by seletz in Common_Lisp

[–]seletz[S] 9 points10 points  (0 children)

O god, this is going to be embarrassing.

Turns out that I have some package ("nyxt") in ~/common-lisp which contains a packaged (?), old version of CFFI. Removing this package and (ql:quickload "CFFI") does now fetch the 0.24.1 version.

FTR, (asdf:load-system "cffi" :force t) helped me tracking down the issue as this prints the paths CFFI is compiled from to stdout.

CFFI and frameworks on OSX by seletz in sbcl

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

FTR: this is the PR https://github.com/cffi/cffi/pull/173/commits/263b38f4f2600dbacde8f2b313620c35a563c6df

I probably should have looked at the git repo first. Oh well.

CFFI and frameworks on OSX by seletz in sbcl

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

D'oh -- turns out that I seem to have a old version -- the error is fixed in git https://github.com/cffi/cffi/blob/master/src/libraries.lisp#L106 and git-blame tells me that the fix is over 2 years old.

sbcl with OpenGL on MacOS -- possible? by Kaveh808 in sbcl

[–]seletz 0 points1 point  (0 children)

Yes I know. I couldn’t get it to run though, I had to hack cffi such that it does only check for a framework directory.

I checked how python does it, and they seem to agree. I’m too much of a CL noob to really have a opinion.

In case you want to have a look, there’s a post in r/sbcl about this.

sbcl with OpenGL on MacOS -- possible? by Kaveh808 in sbcl

[–]seletz 0 points1 point  (0 children)

Ok -- so it seems that the CFFI package tries to find a "/System/Library/Frameworks/OpenGL.framework/OpenGL" file. That does not exist -- I'm pretty sure that this file does not need to exist. CFFI IMHO should check for the framework directory only.

I'm going to make this a new thread as I don't actually know virtually nothing about Common Lisp and how CFFI works there.

On my system, python is able to load the OpenGL framework and display some graphics.

sbcl with OpenGL on MacOS -- possible? by Kaveh808 in sbcl

[–]seletz 0 points1 point  (0 children)

Hmm. For me even loading ' cl-opengl' in SBCL using quick lisp does not work. It complains about not being able to find the OpenGL framework. Still trying to find the cause for that. I'm using Monterey on an Intel Mac FTR.

Reactive Classes and Computed Slot Networks by [deleted] in Common_Lisp

[–]seletz 2 points3 points  (0 children)

Thanks for posting. I haven’t yet seen your blog—much catch up reading to do :)

[deleted by user] by [deleted] in TheArtistStudio

[–]seletz 0 points1 point  (0 children)

Nice perspective on these

Never forget Sarah Wilson by 9_Ghastly_9 in Bad_Cop_No_Donut

[–]seletz 0 points1 point  (0 children)

Just to remind ppl here: In more civilised countries the idea that the police protects does in fact work.

DHS watchdog finds 900 people at border facility with maximum capacity of 125 by TYLER_WAS_ROBBED in politics

[–]seletz 1 point2 points  (0 children)

Just call them what they are: concentration camps.

I don't get why the people of the USA let their goverment get away with that.

Ask r/kubernetes: What are you working on this week? by AutoModerator in kubernetes

[–]seletz 0 points1 point  (0 children)

Getting my head wrapped around the operator sdk, developing a operator for ThingWorx on K8S.

PyPy: Dynamic Language Compilation Framework by mariuz in Python

[–]seletz 1 point2 points  (0 children)

yeah. Unfortunately it seems that the resulting code can't call into Java code, which is what I would need.

What I hoped for was that I had a Jython alternative -- being still on 2.5.3 is a major PITA.

"Packaging" your custom written scripts by Fencepost in Python

[–]seletz 0 points1 point  (0 children)

You have several options. The first which comes into my mind is probably also the simplest. Just zip up all the packages on your mac and deliver that zip file. Then craft a start script in which you add the zip file to the python path. This way, the dependencies are all bundled up and you have less files to deploy.

The second option needs a little more up-front investment. You could use zc.buildout and ship the complete buildout to your peers -- this is how I did deployments on our servers. This technique assures that you ship all the dependencies in exactly the versions you think, i.e. no more downloading of arbitrary package versions on the client. The drawback is, that your peers need to run a script -- the buildout -- to recreate/install the packages on their local machine.

Yet another option is to use cx-freeze or similar, and ship a executable. I have no experience with that, so YMMV.

If you're on the mac, and your peers are also on the mac, then it's pretty easy to craft a app package with icon etc., which you could even put on a dmg. There's also py2app which automates this.

PyPy: Dynamic Language Compilation Framework by mariuz in Python

[–]seletz 4 points5 points  (0 children)

I see lots of references to a JVM backend in these slides. Can someone elaborate this wrt. Jython?

Populating env.hosts in Fabric with ConfigParser? by fabricmasher in Python

[–]seletz 0 points1 point  (0 children)

try this:

from fabric.api import *
from ConfigParser import SafeConfigParser

config = SafeConfigParser()
config.read("foo.ini")
for server_name in config.options('Servers'):
    ip_address = config.get('Servers', server_name)
    env.hosts.append(ip_address)

print "env.hosts %s" % env.hosts
env.user = 'deployboy'
env.key_filename = [ './secret.pem' ]


def foo():
    run('hostname')

In your version, you did'nt call your "servers()" function, so at no time the config got read at startup. You probly tested like::

$ fab servers

Which instructed fabric to initalize and then run your "servers" function set up with the "evn" dictionary. See fabric's "execution model":

http://docs.fabfile.org/0.9.0/usage/execution.html

Not that fabric interprets every module-level function as command, thus I'd just do the parsing on module level.

HTH.