text:
[Question] Break and combine words

Let's take a word "description"
It is a token "13951"
Is there a way to break the word into parts "des" "crip" "ti" "on" and then combine such as <'des' + 'crip' + 'ti' + 'on'> and have the same sence/token/vector/etc?

The word description is indeed a single token, can be independently confirmed, for example, at https://novelai.net/tokenizer (choose CLIP Tokenizer)
In this case, it has its own dedicated embedding vector.
Theoretically, it may be possible to:

Find the most similar other tokens in terms of cosine similarity (the main metric CLIP uses, not a simple mean squared error; but MSE might work too)
Find a weighted sum of other tokens that would give closest approximation of this embedding

But both ways demand a question: Why for?
For sure you cannot "combine back" a word by its parts if the word was a token by itself (you'll have more luck with synonyms of this word!)
Also it is possible to infer a (pretty random) string of tokens that would "mean" something what you want it to mean: https://github.com/YuxinWenRick/hard-prompts-made-easy, but that wasn't related to merging but concatenating.
I presume if we could consider a reasonable amount of raw token merging when calculating hard-prompts – it could enhance their quality.
But the main reason to use hard prompts – is to be able to treat them as "text", otherwise we can just optimize an old plain TI embedding!

My reason is the same — civitai automoderator is so paranoidal and continue sending my typical real life pictures to long and slow queue.
So I'm looking for a way to disguise the words he finds suspicious.

Synonyms usually work well and using them helps me to learn English but sometimes I need to use exactly suspicious words. As an example "a girl next door" is not about a girl but the phrase is as is and changing "girl" to something else breaks the sense.
https://www.dictionary.com/e/slang/the-girl-next-door/

Couldn't you just cheat and edit the prompt in meta info of the file?
I'm sure there are png chunk editors out there.
(Al least you can pad your prompt with spaces and then replace the string with a needed one inside a hex editor, even if your disguise prompt is longer)

Couldn't you just cheat and edit the prompt in meta info of the file? I'm sure there are png chunk editors out there. (Al least you can pad your prompt with spaces and then replace the string with a needed one inside a hex editor, even if your disguise prompt is longer)

No way! I'm a honorable pirate! ;-)
I want to keep my prompts usable for people.

I'm a honorable pirate!

👏❤

…You can save an embedding of "a girl next door", name it differently and upload as your trained TI.
Ugh, disgusting thought.

…You can save an embedding of "a girl next door", name it differently and upload as your trained TI.
~Ugh, disgusting thought.~

Actually, a great idea, speaking of this phrase!

Huh, if you'll multiply words with near-one constant (0.8-1.2) and merge with something related, multiplied with a low constant – so that the result will be still good but not the same as with original words – it would be pretty hard to prove that the embedding was made by merging and not by training.
Moreover, you can start a real training at a very low learning rate but initialized with your target text!

authors: aleksusklim miasik

license: Unlicense


text:
Investigate Changing Package Name To Better Elucidate Purpose

Suggestions

Test Juggler (my personal favourite so far)
CodeLeap
TestHop
LeapCode
JumpTest
SourceSwitch
TestWizard

See https://chat.openai.com/share/dcedb99c-f79c-41ad-a0d6-dbf9ae483b6d
Thanks to @anlek

My vote is to Test Juggler as well ;)

I got ChatGPT to provide a few more names... I'd like to throw Testify and File2Test into the race.

But of the options, I like the direction of TestHop, but as TestHopper instead

source: gharchive/issue

authors: anlek danerio klondikemarlen

repo: klondikemarlen/vscode-create-test-file

license: MIT

license_type: permissive

license_source: github-api


text:
Add CA certificates bundle for DNS-over-TLS

The new Docker images no longer contain ca-certificates-bundle, so DNS-over-TLS cannot be used without the user manually supplying one.
IMHO, this is a regression, compared to the older Docker images and should be fixed.

Can see if klutchell/unbound:pr-74 works for you?

Thanks, I tried that image and the certificates are included correctly.
However, you should probably also set the default configuration so that the user don't have to do it.
server:
  tls-cert-bundle: /etc/ssl/certs/ca-certificates.crt

Given that not everyone will use this, probably best to customize configuration in a separate conf file if needed, IMHO...

@churchofnoise I don't think providing this path in the default configuration enables any features on it's own, it's just handy to have the path to the certificates already set if someone enables DNS-over-TLS since they wouldn't otherwise know where to find the certs.
tls-cert-bundle: <file>
              If  null or "", no file is used.  Set it to the certificate bun-
              dle file, for example "/etc/pki/tls/certs/ca-bundle.crt".  These
              certificates  are  used  for  authenticating connections made to
              outside peers.  For example auth-zone urls, and  also  DNS  over
              TLS  connections.  It is read at start up before permission drop
              and chroot.

@kien-truong thanks for the suggestion, I'll add this change to the PR and a new build of klutchell/unbound:pr-74 should be available for testing shortly.

authors: churchofnoise kien-truong klutchell

repo: klutchell/unbound-docker


text:
Something must be say about bytearray + readinto

Based on the two recent CircuitPython meeting, it is clear that something bust be said about bytearray.
If you only have to store positive integer from 0 to 255, then that is the optimal structure to use as each entry cost one byte, where a list of int might cost 4 bytes per entry.
So if short table of short value are needed, putting them as bytearray is beneficial, making a list of tuple would be overkill as the list is an object, each tuple is an object and each int take some space.
A typical bad example is this table: https://github.com/adafruit/Adafruit_CircuitPython_IS31FL3731/blob/9993369654a47ca8763b0971e1dc847717b21cc6/adafruit_is31fl3731/keybow2040.py#L67 :
        lookup = [
            (120, 88, 104),  # 0, 0
            (136, 40, 72),  # 1, 0
            (112, 80, 96),  # 2, 0
            (128, 32, 64),  # 3, 0
            (121, 89, 105),  # 0, 1
            (137, 41, 73),  # 1, 1
            (113, 81, 97),  # 2, 1
            (129, 33, 65),  # 3, 1
            (122, 90, 106),  # 0, 2
            (138, 25, 74),  # 1, 2
            (114, 82, 98),  # 2, 2
            (130, 17, 66),  # 3, 2
            (123, 91, 107),  # 0, 3
            (139, 26, 75),  # 1, 3
            (115, 83, 99),  # 2, 3
            (131, 18, 67),  # 3, 3
        ]

All values are between 0 and 255 and with a code a little bit smarter, it can be an array of 48 bytes.
If the needed data are big, then reading them from file into a bytearray rather than to declare that in the code will make the code smaller and the memory usage more efficient. Typically a map for a game (containing reference to background tile) could be into a resource file.
One way to avoid memory activity that has a cost in fragmentation and CPU, it is best to use any function that do "readinto" an existing buffer. And that buffer should be the same everytime we have to read (like when you change level in a game). This mean a local variable in a function allocated on the stack at each call is worst than a global (to the library) variable.
Bad example are like this: https://github.com/adafruit/Adafruit_CircuitPython_MLX90640/blob/2668229b7b72dcfc2317c1e607be8ecb1c505cd9/adafruit_mlx90640.py#L123
Every time this function is called, for every "image" a new temporary array of 834 element is created:
    def getFrame(self, framebuf):
        """Request both 'halves' of a frame from the sensor, merge them
        and calculate the temperature in C for each of 32x24 pixels. Placed
        into the 768-element array passed in!"""
        emissivity = 0.95
        tr = 23.15
        mlx90640Frame = [0] * 834

Since you only make one call at a time to getFrame, it can be a more global and always the same buffer.
Maybe blurring the distinction between memory on the stack and memory in the heap is not great... and I don't exactly know how CP work inside and what is stored where, so this can give general idea on what to do or not to do.

Cool that helps clear up some about your comment about “use bytearray”. But let me be sure I’m clear.
If you define a big array in code, then it takes up RAM by

loading the code to create the array
and to hold the array

so you’re suggesting that if you keep the array definition in a file somewhere you can load it into a bytearray and save the RAM that would have been used to hold the code.
Thanks for the “non-memory-usage-optimized” examples. Any “memory-optimized examples? :)

The use bytearray was suggested by danh and match some of my reading on MicroPython memory optimisation per type.
I am totally not sure how an array initialisation in a *.py file consume memory.
It sure consume memory for parsing the *.py file... once I wanted to make a array of 768 "real" number and it exploded. Splitting that one line (sic) into multiple line where each line add element to the array was a trick, ugly trick: https://gist.github.com/dglaude/9eca2d82a2db2660a65c91086dee44e5
But the proper way to do it would be a file with all those value (here I don't know exactly the format, because those are not byte or integer, but floating point things. And read that at runtime.
You can skip the parsing if you use mpy, then maybe it will be directly into the optimal format. My idea is that the "compilation" of a *.py file into a *.mpy file generated bytecode for your "function" and a "data" segment for the (global) variable you create/initialise.
I am totally unsure about "data segment" and "code segment".
I believe the memory usage learn guide should be primarly focused on user writing *.py file... not really library writer.
The assumption is that library code will be reviewed and if it is not memory optimal, then someone will complain and suggest change. So many tricks like mpy-cross would be "advance".
I don't know enough about the internal of CP to give really good advice. Like I don't know if a temporary array you use in a function is on the stack or just a pointer in the stack pointing to something allocated on the heap. I would guess it is the later and that most of the memory problem user have are heap memory issue, not stack (except if they use recursive function).
Also fighting for memory on an "M0" or a Pico is not the same. Actually, on the Pico or the Feather S2.
Should one write the code on a big memory board, measure there, then try to run on a smaller board?
Or write with the "M4" as a target to be "clean" from the start?
Sorry, I don't have link to good examples, maybe because most of the code is not too bad? And I only know the place where I would like to fix it when I have time for that.

Here is the discussion on byte and bytearray and the various way to make that table for the IS32FL3731 library:
https://github.com/adafruit/Adafruit_CircuitPython_IS31FL3731/issues/43
It might help.


text:
add document for deploying and developing in kind

What type of PR is this?
documentation

What this PR does / why we need it:
add document for deploying and developing in kind
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?:

Good job! But maybe it would be more appropriate to put it in https://github.com/kmesh-net/website
And this is a great supplement to https://kmesh.net/en/docs/setup/quickstart/

source: gharchive/pull-request

repo: kmesh-net/kmesh


text:
fix crash when waypoint is not network address type

What type of PR is this?
/kind bug
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #815
Special notes for your reviewer:
Does this PR introduce a user-facing change?:

/lgtm

authors: YaoZengzeng hzxuzhonghu


text:
very slow to pack/unpack integer array

Julia 0.4.1
CentOS 6
Compared to a float array, integer array is brutally slow.  Note the 72 million allocations...
julia> bigun = rand(1000000);
julia> @time MsgPack.pack(bigun);
WARNING: uint32(x) is deprecated, use UInt32(x) instead.
in depwarn at deprecated.jl:73
in uint32 at deprecated.jl:50
in pack at /dd/home/mewert/.julia/v0.4/MsgPack/src/MsgPack.jl:287
in pack at /dd/home/mewert/.julia/v0.4/MsgPack/src/MsgPack.jl:173
while loading no file, in expression starting on line 155
0.262886 seconds (316 allocations: 17.622 MB, 1.16% gc time)
julia> @time MsgPack.pack(bigun);
0.257133 seconds (102 allocations: 17.614 MB)
julia> bigun = collect(1:1000000);
julia> @time MsgPack.pack(bigun);
WARNING: uint32(x) is deprecated, use UInt32(x) instead.
in depwarn at deprecated.jl:73
in uint32 at deprecated.jl:50
in pack at /dd/home/mewert/.julia/v0.4/MsgPack/src/MsgPack.jl:287
in pack at /dd/home/mewert/.julia/v0.4/MsgPack/src/MsgPack.jl:173
while loading no file, in expression starting on line 155
WARNING: uint32(x) is deprecated, use UInt32(x) instead.
in depwarn at deprecated.jl:73
in uint32 at deprecated.jl:50
in pack at /dd/home/mewert/.julia/v0.4/MsgPack/src/MsgPack.jl:204
in pack at /dd/home/mewert/.julia/v0.4/MsgPack/src/MsgPack.jl:293
in pack at /dd/home/mewert/.julia/v0.4/MsgPack/src/MsgPack.jl:173
while loading no file, in expression starting on line 155
107.134147 seconds (72.01 M allocations: 598.657 GB, 14.76% gc time)

Hi @Orbots, any chance you can take a stab at fixing this?  Fixing the deprecation warnings would be a good start--they often introduce slowdowns--although there may be deeper issues.  I won't have time to look at this closely for a while.

Sure.  I'll take a stab at it.  I'm pretty new to Julia, but that code looks fairly straight-forwards.
Thanks.

Michael
On Sunday, November 22, 2015 7:03 AM, Kevin Squire notifications@github.com wrote:

Hi @Orbots, any chance you can take a stab at fixing this? Fixing the deprecation warnings would be a good start--they often introduce slowdowns--although there may be deeper issues. I won't have time to look at this closely for a while.—
Reply to this email directly or view it on GitHub.

authors: Orbots kmsquire

license: mit

license_source: bigquery


text:
Add eventing-gitlab repo to update-nightlies workflow

Changes
assignee: @harsh098
Add eventing-gitlab repo to update-nightlies workflow.

Addresses the issue https://github.com/knative-extensions/eventing-gitlab/issues/496
Add the knative-extensions/eventing-gitlab in the .github/workflows/update-nightlies.yaml workflow
Suggestion by @creydr https://github.com/knative-extensions/eventing-gitlab/issues/496#issuecomment-2314397811

/kind

Fixes #

Release Note

Docs

Requested Changes had been made @creydr
Pls review

Any updates @creydr @cardil ?

repo: knative-extensions/knobots


text:
[main] Update community files

Cron -knative-prow-robot
Produced by: knative-extensions/knobots/actions/update-community
Details:

/verify-owners

/verify-owners

authors: dprotaso knative-automation

repo: knative-extensions/net-contour


text:
[WIP] Ignore me 3

Fixes #

Proposed Changes

Release Note

Docs

/close

repo: knative-sandbox/eventing-kafka-broker


text:
Correctly handle KafkaChannels with long names

Appending a suffix to the service associated with a KafkaChannel
cannot be done when the resulting name is too long.
Signed-off-by: Pierangelo Di Pilato pdipilat@redhat.com

Release Note

Correctly handle KafkaChannels with long names

Docs

/cc @aliok @matzew

/cherry-pick release-1.4

/cherry-pick release-1.3

/cherry-pick release-1.2

authors: matzew pierDipi

repo: knative-sandbox/eventing-kafka


text:
[main] Upgrade to latest dependencies

Cron -knative-prow-robot
/cc knative-sandbox/channel-wg-leads
/assign knative-sandbox/channel-wg-leads
Produced by: knative-sandbox/knobots/actions/update-deps
Details:
bumping knative.dev/eventing aef6803...31e4e2e:
  > 31e4e2e Trigger dls resolving e2e (# 5841)

/approve
/lgtm

authors: benmoss knative-automation

repo: knative-sandbox/eventing-rabbitmq


text:
Letting flags be changed from outside

This PR let change test flags from outside. It can be done either by:

declaring environmental variables: TEST_NAMESPACE, and TEST_RESOURCE,
using -ldflags "-X knative.dev/eventing-operator/test.EventingOperatorNamespace=knative-eventing"

Changing those flags is needed to perform tests on RH operators.

/ok-to-test
/approve
/lgtm
/hold
Hold for waiting for https://github.com/knative/eventing-operator/pull/17 to land, and then we can /retest to confirm it does not break the new unit tests.

/retest

/test pull-knative-eventing-operator-build-tests
/test pull-knative-eventing-operator-integration-tests
/test pull-knative-eventing-operator-unit-tests

/test all

/hold cancel

authors: cardil chizhg houshengbo matzew n3wscott

repo: knative/eventing-operator


text:
Decide whether to use GenerateName for creation of EventTypes in Source controllers

Need to decide whether we are going to use generateName for the creation of EventTypes in source controllers. This came up in the Registry design discussion and will be tracked here.
https://github.com/knative/eventing-sources/pull/300 does use generateName.

/assign

IMO we should use generateName for EventTypes to avoid naming collisions whenever code creates the EventTypes, e.g., in source controllers.
If we don't use generateName, we can easily have collisions when multiple CO are instantiated. For example, when two GitHubSource COs are created, both hooking on "pull_requests" but from different repos, if we don't use generateName, then we won't be able to create the second EventType.
generateName is used throughout k8s, and a Cluster Configurator can decide to use just name whenever she creates the EventTypes manually.

@csantanapr do you still think generateName to be a problem?
what about you guys @vaikas-google @Harwayne @grantr ?

As I haven't heard back from folks, I went ahead an implemented it with generateName for the reasons stated above. If there are any strong objections, we can revisit this later on.
Closing this issue for now and linking it to the Registry issue https://github.com/knative/eventing/issues/929

repo: knative/eventing-sources


text:
chore: update all references to kn-plugin-func

Changes

🧹 update all references to "kn-plugin-func", changing them to "func"

I did not change references in CHANGELOG.md but otherwise, I believe this should cover all configuration settings, image names, package names, etc.
Signed-off-by: Lance Ball lball@redhat.com
/kind chore
changes package name from knative.dev/kn-plugin-func to knative.dev/func

Base: 47.20% // Head: 49.10% // Increases project coverage by +1.89% 🎉

Hilarious

@dsimansk this verify failure I believe is from hack/update-codegen.sh on a mac :/

cause and either fix our usage of golicenses to be non-os-depenent,

Perhaps we should patch the Knative script which invokes go-licenses to include GOOS=linux such that others using non-linux OSs do not encounter the same problem.

@lkingland @matejvasek @zroubalik ptal again 🙇

/lgtm

/unhold

/lgtm

It will be great to merge this asap right?

authors: lance lkingland matejvasek salaboy

repo: knative/func


text:
Add eventing-integrations nightly job

Part of https://github.com/knative-extensions/eventing-integrations/issues/6
***Changes

Add eventing-integrations nightly job

/cc @matzew
/cc @knative/productivity-leads

/override "style / suggester / yaml"

repo: knative/infra


text:
[main] Upgrade to latest dependencies

Cron -knative-prow-robot
/cc knative/serving-writers knative/eventing-writers
/assign knative/serving-writers knative/eventing-writers
Produced by: knative-extensions/knobots/actions/update-deps

/retest
/lgtm
/approve
unit test should be fixed by https://github.com/knative/serving/pull/14598

repo: knative/pkg


text:
Knex merging duplicate column names with no alias

Environment
Knex version: 0.21.2
Database + version: Oracle 11g / MySQL
OS: Centos 7
@atiertant @smorey2 @elhigu
Bug
Not really a bug, just need help with solution/work around for Knex merging duplicate column names with no alias in SELECT statement for data returned from Oracle database. Is there a way I can automatically append an alias, object keys which are the same in javascript get merged, ".options({ rowMode: 'array' })" doesn't work for Oracle database 11g.
Currently ingesting thousands of queries written by other developers for a different application, into a new presentation layer to generate charts etc.
Issue:
Finding that a lot of the queries are using duplicate column names in the SELECT statement without an alias, which is fine when viewing the data in Oracle SQL Developer because it will append the duplicate column name with "_1, _2 .. etc" in the Query Results table.
But KNEX is merging those duplicate columns and the only way around this is to manually edit the SQL query to include an alias, which is not a viable solution when we have thousands of potential charts with this issue.
Example:
SQL Query:
select
nat.AVG_CQI, nat.OLSM_RANK_1_PC, outliers.OLSM_RANK_1_PC
from
(select
AVG_CQI,
OLSM_RANK_1_PC
from msa.GC_OLSM_V_CQI@MNDB_PROD
) nat,
(
select alll.AVG_CQI,
...

Oracle SQL Developer Query Result:

AVG_CQI
OLSM_RANK_1_PC
OLSM_RANK_1_PC_1

0.69
0
0

0.82
53
53

1.1
14
14

1.3
0
0

Result returned by KNEX:
[
{ AVG_CQI: 0.69, OLSM_RANK_1_PC: 0 },
{ AVG_CQI: 0.82, OLSM_RANK_1_PC: 53 },
{ AVG_CQI: 1.1, OLSM_RANK_1_PC: 14 },
{ AVG_CQI: 1.3, OLSM_RANK_1_PC: 0 }
]

The 2nd and 3rd column become merged into one, we need to retain the third column even though it's a duplicate column name, it's not feasible to go through hundreds of charts and manually add an alias.
Does anyone know a good solution? I am thinking about trying wrapIdentifier but not sure. I have tried ".options({ nestTables: true, rowMode: 'array' })", ".options({ rowMode: 'array' })" and the returned data is still the same, they don't work because the particular database this SQL is querying is OracleDB (old version).
Here is the Knex query:
knex
        .transaction(trx => {
          return trx
            .raw(modifiedSqlWithAliasDatetime || modifiedOrderedSql || sql)
            .timeout(60000);
        })
        .then(result => {
	 console.log(result)
          result = postProcessResults(result, format, datasource.databaseType);
          resolve(resultHandler(datasource.databaseType, result));
        })
        .catch(error => {
	 reject(error)
	});

You should check if oracledb driver has a solution for this (from brief googling I did not find anything about that driver having rowMode option). There is nothing that knex can do for this. It is all about driver behavior and how it return the rows.

@elhigu
I am trying to change the underlining function that Knex uses to return the data retrieved from oracledb driver as an array of objects.
I want to rename/append '_1', '_2' etc to the column metaData before Knex parses the response, changing it to an array of objects. I am struggling to find where this is done in the NPM package, can you please advise?
This is the result returned by fetchAsync on line 200 in knex/lib/dialects/oracledb/index.js:
NOTE: options.resultSet = false, therefore the query goes directly into line 188, connection
SQL query has a duplicate column name PMPDCPVOLDLSRB, therefore the array of objects merges the two:
result: { metaData:    [ { name: 'DATETIME' },      { name: 'PMPDCPVOLDLDRB-NVL(PMFLEXPDCPVOLDLDRB,0)' },      { name: 'PMPDCPVOLDLSRB' },      { name: 'PMPDCPVOLDLSRB' },      { name: 'PMPDCPVOLDLDRB+PMPDCPVOLDLSRB' },      { name: 'PMPDCPVOLDLDRBTRANSPLMN0' } ],   rows:    [ { DATETIME: 2020-09-16T23:00:00.000Z,        'PMPDCPVOLDLDRB-NVL(PMFLEXPDCPVOLDLDRB,0)': 91761993,        PMPDCPVOLDLSRB: 12688,        'PMPDCPVOLDLDRB+PMPDCPVOLDLSRB': 91774691,        PMPDCPVOLDLDRBTRANSPLMN0: 91820603 },      { DATETIME: 2020-09-16T07:00:00.000Z,        'PMPDCPVOLDLDRB-NVL(PMFLEXPDCPVOLDLDRB,0)': 75355836,
I want to achieve this:
result: { metaData:    [ { name: 'DATETIME' },      { name: 'PMPDCPVOLDLDRB-NVL(PMFLEXPDCPVOLDLDRB,0)' },      { name: 'PMPDCPVOLDLSRB' },      { name: 'PMPDCPVOLDLSRB_1' },      { name: 'PMPDCPVOLDLDRB+PMPDCPVOLDLSRB' },      { name: 'PMPDCPVOLDLDRBTRANSPLMN0' } ],   rows:    [ { DATETIME: 2020-09-16T23:00:00.000Z,        'PMPDCPVOLDLDRB-NVL(PMFLEXPDCPVOLDLDRB,0)': 91761993,        PMPDCPVOLDLSRB: 12688,        PMPDCPVOLDLSRB_1: 12688,        'PMPDCPVOLDLDRB+PMPDCPVOLDLSRB': 91774691,        PMPDCPVOLDLDRBTRANSPLMN0: 91820603 },      { DATETIME: 2020-09-16T07:00:00.000Z,        'PMPDCPVOLDLDRB-NVL(PMFLEXPDCPVOLDLDRB,0)': 75355836,
Any help and advice on where Knex is setting the key/values for rows object would be appreciated.

@elhigu node-oracledb's query output can be changed to array format using oracledb.outFormat - is that the same as rowMode you speak about?  Are you saying that Knex understands both object and array formats?

AFAIK in most cases knex doesn't care if the result rows are arrays or objects.

@elhigu thank you

AFAIK in most cases knex doesn't care if the result rows are arrays or objects (knex does almost nothing to results returned from db).

Knex is hardcoding oracledb's output format as OBJECT.
const fetchAsync = promisify(function (sql, bindParams, options, cb) {
        options = options || {};
        options.outFormat =
          client.driver.OUT_FORMAT_OBJECT || client.driver.OBJECT;
        if (!options.outFormat) {
          throw new Error('not found oracledb.outFormat constants');
        }
.....

If I change options.outFormat to OUT_FORMAT_ARRAY, then will only return the result of rows and not the column names. I would have to create a pull request and add the ability to pass in options to set outFormat to either ARRAY or OBJECT and then change the way knex parses the data. I think it would be a fair bit of work.

@amroczeK sometimes to get features one needs requires a fair bit of work. I would happily merge PR that enables allowing to set oracledb outFormat.
Thought according to this http://oracle.github.io/node-oracledb/doc/api.html#queryoutputformats I don't know if it is possible with oracle to get array format like some other drivers has where results are like:
[
  [ [columnName1, value1], [columnName2, value2], [columnName3, value3], ... ], // row 1
  [ [columnName1, value1], [columnName2, value2], [columnName3, value3], ... ], // row 2
]

node-oracledb 5.1 adds a unique suffix to duplicate column names when using the OUT_FORMAT_OBJECT mode so this issue is resolved.

authors: amroczeK cjbj elhigu

repo: knex/knex


text:
ESM interop tests are failing with Node 14.13

NodeJS 14.13.0 changed how imports in CJS are handled. This caused esm-interop.spec.js#L164 and esm-interop.spec.js#L179 to fail.

@D10221 Any chance you could take a look?

... See https://github.com/knex/knex/pull/4055

Is this  ok to close now?

authors: D10221 elhigu kibertoad


text:
Token parsing issues in SWRL rules

I encountered a small issue with SWRL rules containing properties or classes with underscores in their names. The following rule is not correctly parsed:
my_class(?thing) -> Plan(?thing).

The problem seems to be the call to tokenize_atom inside the predicate swrl_phrase in the file parser.pl. I'm adding a screenshot of the debugger below. You can see how my_class has been split.

Thanks for the report! I'll have a look into this.

Hi Daniel,
Thanks for taking the time to look into this. I just found two more small issues related to the SWRL rules parsing. I'm gonna report them here in this comment, rather than opening a new issue if you don't mind.
Cannot write decimal numbers
It seems like decimal numbers are not correctly parsed. Consider the following rule:
hasDataValue(?thing, ?value), greaterThan(?value, 0.8) -> Person(?thing).

Parsing will stop at the point in the decimal number, as shown in the screenshot below (you can see how the RuleAtom variable appears to be incomplete):

I managed to make it work by modifying the rule to only stop at a point after a closing parenthesis. I'm not sure if it's the proper way to do it, though. I'm adding the modified predicate below:
swrl_file_rule_(NS,RuleTerm) -->
  blanks, string(RulesCodes), ")", blanks, ".",
  { atom_codes(RuleAtom1, RulesCodes),
    atom_concat(RuleAtom1, ')', RuleAtom), !,
    swrl_phrase(RuleTerm, RuleAtom, NS) }, !

Strings literals are not properly parsed
Strings containing characters treated as token delimiters are not properly parsed. Here's a rule that it's affected by this:
hasDataValue(?thing, ?value), contains(?value, "type.person") -> Person(?thing).

Assuming that points are properly parsed (otherwise parsing will stop at the point in "type.person"), you end up with the situation shown in the screenshot below, where parsing fails because the point in the middle splits the contents in two. I'm not sure how to handle this.

The first issue is indeed related to tokenize_atom/2 splitting atoms at underscore characters. I think best would be to use a different tokenizer, or to fix the token sequence after calling it by iterating once over all tokens and creating a modified token sequence on the way
I cannot reproduce the second issue. Parsing floats seems to work fine here, this I have tried: ['greaterThan(?age, 16.5)', '->', 'Adult(?p)'] and the parser output seems fine.
Hmm I see, I guess best would be again if this would be handled better in the tokenizer, such that "type.person" only yields one token. Probably it would be ok to handle quotations in the tokenizer.

So it seems most of the issues could be solved through a better tokenizer

repo: knowrob/knowrob


text:
Implement comparison operations for numeric constants

Adds support for the <, <=, >, >= operators when used with numeric constants, i.e. allows statements like:
@declare numbers(UnsignedInteger).
numbers(3) .
numbers(4) .

result(?X) :- numbers(?X), ?X <= 3 .

Yeah, merging in the online editor didnt go so well :D

repo: knowsys/nemo


text:
Black text on black overlay on gallery explorer

I thought this was already fixed 🥹
https://beta.kodadot.xyz/rmrk/explore?tab=GALLERY&page=1

👋

I don't see it there.

Hm I didn't have there anything like that

authors: DeluneClaire KngZhi yangwao

repo: kodadot/nft-gallery


text:
Sort popular collection alphabetically

Once done

#5384

added in this commit https://github.com/kodadot/nft-gallery/pull/5654/commits/5c663ea78d5fb4c2a49ce17e247960c2c5c35276

closed by #5654

authors: floyd-li roiLeo yangwao


text:
Collection preview not working on Twitter (again)

Our favorite issue is here again guys. 😅 This time it is a link to collections. It would be cool to have a nice preview. On Opengraph it is showing that it is supposed to look different.
Twitter post: https://twitter.com/KodaDot/status/1650511041871093762

idk where is problem this time

calling alchemist

Seems working by opengraph, maybe twitter bots are fetching something differently?

#5567

Our favorite issue is here again guys. 😅

oh no 😅
seems working now? afaik, there are no updates/changes/deployment from our side

closed as completed

authors: JustLuuuu preschian roiLeo yangwao


text:
chore: updated dependencies

Thank you for your contribution to the Koda - Generative Art Marketplace.
👇 __ Let's make a quick check before the contribution.
PR Type

[x] Refactoring

Needs QA check

@kodadot/qa-guild please review

Context

[ ] Closes 6982

Before submitting pull request, please make sure:

[x] My contribution builds clean without any errors or warnings
[x] I've merged recent default branch -- main and I've no conflicts
[x] I've tried to respect high code quality standards
[x] I've didn't break any original functionality

Did your issue had any of the "$" label on it?

[ ] Fill up your DOT address: Payout

^will update later
Community participation

[x] Are you at Koda Ecosystem Telegram?

I’ve manually updated most of the dependencies (only major and minor versions). Checked using build, test, lint commands.
Notable changes: eslint update (also deleted legacy config files), Transak, nuxt-gtag.
Exceptions: date-fns (because chartjs-adapter-date-fns hasn’t been updated), bulma (because v1 introduces different css), oruga (will probably also require visual checking).
I could also add a dependabot config but there already is renovate-bot so maybe it’s not needed.
Looking forward to your feedback.

eslint diff https://www.diffchecker.com/BZanY3bN/ (but I switched new errors to warns)

review please, @kodadot/internal-dev

@dvelikiy you have some conflicts

@vikiival updated, please check

authors: dvelikiy exezbcz vikiival


text:
🛑 clouflare ipfs is down

In 98a41ca, clouflare ipfs (https://cloudflare-ipfs.com/ipfs/bafybeidkhq7aynm2yuuvzimkqcabbqgg3w2uzvy2e7zq3vl5ojhf36kxea) was down:

HTTP code: 0
Response time: 0 ms

Resolved: clouflare ipfs is back up in b5ecd73.

repo: kodadot/uptime


text:
Get details of an app broken

Hi!
When retrieving info of an app the info is not displayed correctly.
[root@private admin]# serverpilot apps LHtfC4x4I4SMzlkacj datecreated         sysuserid           runtime             id                  autossl             name                serverid 1472809266          pG7ksUL3ngKQxrfzkN    php7.0              LHtfC4x4I4SMzlkacj    {                   "available":        false               }                   testiser            66vVcNcpQl02qCcOHs
With multiple domains:
[root@private admin]# serverpilot apps L9ccxpIPjAfMUc0jv datecreated         sysuserid           runtime             id                  autossl             name                serverid 1484480068          taBJdxhSDfLOWVbvJZ    php7.0              L9ccxpIPjAfMUc0jv    {                   "available":        true,               "domains":          [                   "www.testdomain.com","cdn.testdomain.com","cdn1.testdomain.com","cdn2.testdomain.com","testdomain.com",   "cdn3.testdomain.com"]                   }                   testuser          Wzisq7j9kvxMexlzX
Is this a problem in the serverpilot shell script?
Thanks,
Maarten

Thanks for letting me know! I'll look into it. Thanks!

Fixed!

authors: keurigonline kodie

repo: kodie/serverpilot-shell


text:
Issue #44 print fields in alphabetical order, like flags

this is some minor cut-n-paste on the map[string]... to []string, but I didn't feel it was worth writing a function.  Feel free to adjust.
regards,
n

Added fix for #46 as well.

oh awesome.
I can redo for clarity if you want.
Structs package has .Names() function where it returns the field names.!!

It wont clean up much code so not needed, thanks for asking.

repo: koding/multiconfig


text:
Wallpaper can't be changed anymore after installing/running yabai

I'm not sure if this is a yabai issue, but recently after installing yabai and trying to adjust layers (in particular with Deskpad) I can't edit any wallpapers on my mac at all (the "wallpaper" screen in System Settings just hangs with a spinner).
Here's what that looks like:

Here are some steps I've tried:

upgrade macos
restart, including a recovery restart
reinstall macos
uninstall yabai
unplug all monitors

In case it's helpful, I also got this coredump from a restart recently:
panic(cpu 0 caller 0xfffffe002bf9aa28): DCP PANIC - ASSERT!AppleDCPDPTXPowerController.cpp:538 No device added after powering on the rails. HPD=0 - dcpav(27)

which seems to be "a potential graphics/display-related kernel panic on a Mac system, specifically related to the Display Control Protocol (DCP)".
Note I filed the same issue with Deskpad (https://github.com/Stengo/DeskPad/issues/45), since I tried both pieces of software around the same time and could imagine either being implicated here.

Resolved my situation (notes in the linked issue), still unsure if yabai, deskpad, or something else was to blame.

repo: koekeishiya/yabai


text:
Feature Request: Position-based display selectors

When scripting keybindings with yabai, it's often the case that Mission Control's choice of display order is unrelated to the physical and logical positioning of the displays. If it were possible to select displays sorted by position, it would be straightforward to map, say, alt-{w,e,r} to always indicate leftmost, middle, and rightmost.
My proposal for the selectors would be something like:
yabai -m display x:1 // first display, sorted by x-coordinate of the display's centre point
yabai -m display x:2 // second display, as above
yabai -m display x:-1 // last display, as above

yabai -m display y:1 // first display, sorted by y-coordinate of the display's centre point (for vertically stacked monitors)
yabai -m display y:2
yabai -m display y:-1

I've been poking around the code in my spare time, and I think I've got enough info so I'd be able to hack on this if it seems like a useful direction. Thanks for yabai!

The argument against relegating this to a scripting layer is that querying and parsing out JSON replies from yabai is slow enough to be a problem, even on the newest most souped-up models.

I agree that having to query and re-parse JSON every time you want to focus a display is not optimal for something like this. However, I do think that an alternative solution could be to support labeling displays the way you can label spaces. By doing this you could simply query the list of active displays upon startup and filter/sort by whatever. If displays are added/removed during an active session you could hook up the same script to the display added/removed signals, and have it reconfigure the labels.
The reason that I prefer these kinds of solutions is simply that a lot of people have different preferences in their workflow, and so I want the core implementation to be as simple as possible while providing the ability to let users customize on their end, without having to necessarily go and  edit the source directly.
There are some related/similar issues on the board, althought not directly related; I'm linking them here for reference: #225, #372, #365

Okay! I do think sorting by horizontal/vertical position is a relatively common use case, though, however people decide to script around it - this patch would definitely allow something like #225 to be much easier to script, for example.

To put it another way, labelling is certainly powerful, but the overhead of making the user maintain a script that computes position parameters and syncs its state with yabai's internals feels out of proportion to the actual functionality.

Alternatively, this could be replaced with a config option like displays_sort_method={none,vertical,horizontal}, and then the usual {next,prev} etc commands would also be meaningful. It's unlikely a user will want to change their sort method in a dynamic way, but it's likely they'll want to say "just consider them in this order" and be done.

I'll give this issue some thought before I decide which way to proceed, but I do agree that we can definitely do better than the current situation.

I like this proposal! I already use a left first based indexing for my yabai scripts... this functionality would certainly simplify some of my scripts and potentially make things a little faster :)

This is an alternate proposal, just to keep things properly linked together: https://github.com/koekeishiya/yabai/pull/554

Just so I'm not missing anything. In practice, this specific implementation would be pretty much the same as if cardinal directions where available for targetting displays, as described in #225, yeah?

That's correct. Some navigate based on where they are, some on absolute numbers, and in both cases it's useful to use a position-based ordering. #554 accomplishes the cardinal directions use case by simply making the behaviour of "next" and "prev" position-based.

After thinking about this for some time I have to say that I''m not a huge fan of the kind of selector provided in the first alternative. The second alternative which allows for setting a display order seems more reasonable, but I'm not sold yet.

Implemented on master based on #554

display_arrangement_order [default|vertical|horizontal]

Specify how displays are ordered (determined by center point).
default: Native macOS ordering.
vertical: Order by y-coordinate (followed by x-coordinate when equal).
horizontal: Order by x-coordinate (followed by y-coordinate when equal).

authors: aiguofer jneen koekeishiya


text:
Possibly incorrect test assertions for min_likes and min_retweets

Hi there! I was working on a PR to address Issue 49.
However, I noticed some confusing discrepancies between the README and the test assertions, and wanted to clarify first before submitting PRs.
min_likes expectations:
https://github.com/koenrh/delete-tweets/blob/d4d9161addc25e953abef39507e522f912d370fa/test_deletetweets.py#L86
Shouldn't the expected value be [{"id_str": "21"}] ?
According to the docs, it seems like the TweetReader should exclude any tweets with at least one or more retweet.
If you take a look at the actual TweetReader list in that test case by dropping in a breakpoint.
actual = list(TweetReader(FakeReader(tweets), min_likes=1).read())
(Pdb) actual
=> [{'id_str': '21', 'favorite_count': 0}]

min_retweets expectations:
Should this line
https://github.com/koenrh/delete-tweets/blob/d4d9161addc25e953abef39507e522f912d370fa/test_deletetweets.py#L97
be expected = [{'id_str': '21', 'retweet_count': 0}]?
Just like the above example, inspecting the actual list in the test returns: => [{'id_str': '21', 'retweet_count': 0}]

Since the expected lists don't match the actual lists, both of those tests are false positives. Might want to add
self.assertEqual(len(expected), len(actual))

to avoid false positives.

Hi @lorainekv,
Apologies for the delayed response.
I think you are right! Feel free to submit the pull request.

authors: koenrh lorainekv

repo: koenrh/delete-tweets

license: ISC


text:
Support ordering in searches

As far as I can tell, there's no way to specify the order for a sort parameter in a search. See for example https://developer.github.com/enterprise/2.6/v3/search/#search-repositories.
Consider supporting order for all the types of searches in the link above.

Fixed toward 1.82

authors: davidxia kohsuke

repo: kohsuke/github-api


text:
Remove komoju gem

Please don't merge

tests all pass

This looks good to me aside from @rramsden's comment :+1:

Looks good to me, nice work :+1:

cherry-picked the commits. closing

authors: k2nr rramsden shioyama


text:
Better support for Bootstrap.

The theme has alot of unique clases that modify the base boostrap file. Would be positive to depend solely on bootstrap to enhance the personalization via custom.css file.
Ex:
Using "col-desktop-3" gives the element 16% width that is not consistent with boostraps original "col-md-3" that would give you 33% width. And theres a class called "rows-col-3" that does have the 33% width but the usage is not clear.

Hi Jorge,
You are right, we have modified a bit the bootstrap scss codes which you can check here
https://github.com/kondasoft/ks-bootshop/blob/master/src/bootstrap.scss
The most important changes are the spacing p-, m- and the responsive utilities that you have mentioned, and that's because we think the theme performs better that way. But since we provide the bootstrap source file you may adjust those options if you prefer.
Let me know if you have additional questions about this.

authors: alvinkonda jorgeepena

repo: kondasoft/ks-bootshop


text:
fix: Remove fla bull shits code

Description
TSIA.
Issue ticket number and link
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist:

[ ] I have performed a self-review of my code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added meaningful description with JIRA/GitHub issue key(if applicable), for example HASSuiteDescribe("STONE-123456789 devfile source")
[ ] I have updated labels (if needed)

It's not every day that a PR title in my mailbox makes me click instantly :clap:

lets see: who is the best.. openshift ci or konflux ci?

lets see: who is the best.. openshift ci or konflux ci?

we shouldn't be even triggering openshift-ci jobs on these kind of changes 🤷

authors: chmeliik flacatus psturc


text:
Compatibility with SwiftGen localized enums

When using Loco on a project that has SwiftGen's generated enums, Loco shows warnings that the localized keys are unused.
Feature Request:
it would be great if Loco could also detect, in addition to NSLocalizedString, SwiftGen's L10n enum generated from the strings file.
https://github.com/SwiftGen/SwiftGen#strings

Hi!
Thanks for feedback. I'll look into this. But it might take some days/week(s).
Do you use Localizable.strings or Localizable.stringsdict? Loco doesn't support dicts (yet).
Is your code open sourced or is It a closed source project? Would be great to be able to run it directly with a test, I haven't used swiftgen my self.

I am using Localizable.strings. The project I'm working on is closed source. From what I understand, SwiftGen takes in entries like this:
"test_Uppercase_underscore.lowerCaseFirstLetter.lowercasethroughout.TheFinalKeyword" = "some localization";
and generates enums in a file called Strings+Generated.swift like so:
internal enum L10n {
  internal enum TestUppercaseUnderscore {
    internal enum LowerCaseFirstLetter {
      internal enum Lowercasethroughout {
        /// this is a test localization
        internal static let theFinalKeyword = L10n.tr("Localizable", "test_Uppercase_underscore.lowerCaseFirstLetter.lowercasethroughout.TheFinalKeyword", fallback: "some localization")
      }
    }
  }
}

I am using Localizable.strings. The project I'm working on is closed source. From what I understand, SwiftGen takes in entries like this:
"test_Uppercase_underscore.lowerCaseFirstLetter.lowercasethroughout.TheFinalKeyword" = "some localization";
and generates enums in a file called Strings+Generated.swift like so:
internal enum L10n {
  internal enum TestUppercaseUnderscore {
    internal enum LowerCaseFirstLetter {
      internal enum Lowercasethroughout {
        /// this is a test localization
        internal static let theFinalKeyword = L10n.tr("Localizable", "test_Uppercase_underscore.lowerCaseFirstLetter.lowercasethroughout.TheFinalKeyword", fallback: "some localization")
      }
    }
  }
}

Could you try the latest version I pushed to the master now. I added support for this (I think)

Hi @konrad1977
Thanks for the useful tools!
Any Chance to add support to a custom function call?
e.g. I'm using a wrapper on top of NSLocalisedString so all my strings are being invoked through MyAppLocalisedString("key")
and I'm receiving a lot of warnign now

Hello, @konrad1977
I appreciate the update! however, the requirements and architecture of the project I'm working on has shifted, and we're no longer using swiftgen for translations, and unfortunately the branch with swiftgen translations has also been deleted so I can no longer test it. But thank you for your continued support for this repo! perhaps I will make use of it in a future project!

@romaHerman Can you please create a separate issue for this, I know that is worked before I need to test it again. If you could paste some sample code how you want it to use would be great. Not a whole project just a sample so I can run som tests on it.
@Thomas-ResG I am using swiftgen in a project now so I can confirm that it works in one project at least.

authors: Thomas-ResG konrad1977 romaHerman


text:
Svelte Typescript ConstructorOfATypedSvelteComponent error

Check that this is really a bug

[X] I confirm

Reproduction link
https://stackblitz.com/edit/konsta-svelte?file=App.svelte
Bug description
VS Code fires error only in Editor. Build works fine.
Argument of type 'typeof Page' is not assignable to parameter of type 'ConstructorOfATypedSvelteComponent'.
  Types of construct signatures are incompatible.
    Type 'new (options: ComponentConstructorOptions<any>) => Page' is not assignable to type 'new (args: { target: any; props?: any; }) => ATypedSvelteComponent'.
      Construct signature return types 'Page' and 'ATypedSvelteComponent' are incompatible.
        The types of '$on' are incompatible between these types.
          Type '<K extends never>(type: K, callback: (e: {}[K]) => void) => () => void' is not assignable to type '(event: string, handler: ((e: any) => any) | null | undefined) => () => void'.
            Types of parameters 'callback' and 'handler' are incompatible.
              Type '((e: any) => any) | null | undefined' is not assignable to type '(e: never) => void'.
                Type 'undefined' is not assignable to type '(e: never) => void'.

Possible causes:
- You use the instance type of a component where you should use the constructor type
- Type definitions are missing for this Svelte Component. If you are using Svelte 3.31+, use SvelteComponentTyped to add a definition:
  import type { SvelteComponentTyped } from "svelte";
  class ComponentName extends SvelteComponentTyped<{propertyName: string;}> {}ts(2345)

Expected Behavior
No response
Actual Behavior
No response
Konsta UI version
2.0.0
Platform/Target and Browser Versions
Linux
Validations

[X] Follow our Code of Conduct
[X] Read the docs.
[X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
[X] Make sure this is a Konsta UI issue and not a framework-specific issue

Would you like to open a PR for this bug?

[ ] I'm willing to open a PR

This same error is flagged by svelte-check --tsconfig ./tsconfig.json

repo: konstaui/konsta


text:
actions: bump node 20.11.0

Applied mkpr on .github/workflows/*.yml
sed s/20.10.0/20.11.0/

Pull Request Test Coverage Report for Build 7487748738

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 92.007%

Totals

Change from base Build 7448362732:
0.0%

Covered Lines:
911

Relevant Lines:
983

💛  - Coveralls

repo: konsumation/konsum-db


text:
Fix Devices readme

Append the user to the given group instead of removing all other groups not listed (including wheel) which can result in using sudo rights.
From the man page of the -G flag of usermod:

If the user is currently a member of a group which is not listed, the user will be removed from the group.

Thanks! I think I copied it from somewhere else. I noticed it stripped me from wheel, had to reinstall steamos, but I thought it was something else I had done. usermod seems like such a weird way to add a user to a group, coming from most other distros. I am a debian-guy, so I am very used to groupadd.

authors: konsumer ruffson


text:
Kontena agent cannot resolve service's local hostname (Name does not resolve)

I'm trying to setup AWS Cloudwatch forwarder according to this setup:
https://github.com/kontena/kontena-stacks/tree/master/fluentd#aws-cloudwatch-logs
Everything works fine except I don't see any logs in Cloudwatch except the initial one stating that the worker is running.
When I try to POST some data with curl from different service (eg. loadbalancer) to fluentd-cloudwatch.${GRID}.kontena.local:24224 it works fine and logs are forwarded. Also when I expose service to port 24224:24224 and try setup grid's to fluentd-address to public domain or direct IP it works as expected.
I checked kontena-agent and found errors stating:
Kontena::Workers::FluentdWorker: starting fluentd log streaming to fluentd-cloudwatch.${GRID}.kontena.local:24224
Failed to connect fluentd: getaddrinfo: Name does not resolve

It seems that kontena-agent cannot resolve grid hostnames. I've been able to reproduce this by trying to ping fluentd-cloudwatch.${GRID}.kontena.local from kontena-agent docker container which fails (stating the error above), but trying to ping it from grid service (eg. loadbalancer) container worked.
I'm using kontena 1.4.0 (server, agent, cli).
Is there anything wrong with my current setup, or the kontena-agent shouldn't see internal dns?

I'm assuming that's not literally ${GRID}, but you've edited the logs? Because a literal ping foo.${GRID}.kontena.local might actually work in a container shell, but not in the Kontena grid fluentd address.
How was the node provisioned? To be able to resolve grid DNS names from the agent or anything else on the host machine, you need to have the system resolver (/etc/resolv.conf) on the host configured to lookup names from Weave at the docker0 bridge IP address. For most kontena ... node create plugins, that means that the /etc/resolv.conf should look like:
nameserver 172.17.43.1
nameserver 8.8.8.8
nameserver 8.8.4.4

authors: SpComb jakubknejzlik

repo: kontena/kontena


text:
Upcloud support

https://www.upcloud.com/

Fixed in #748


text:
enable FIPS in 4.x by default

FIPS checks and details are here: https://issues.redhat.com/browse/OADP-63
As far as we can all of our 4.x projects will have to be FIPS compliant.

Is this still relevant and gtg?

oh my.. 12 months ago.. I've been here 12 months?
I suspect this patch doesn't do enough for it to be a problem.  Crazy no rebase is needed, low bandwidth repo

authors: jmontleon weshayutin

repo: konveyor/mig-agnosticd


text:
release 0.0.7.alpha

support APIs

POST /organizations/{uuid}/invitations
DELETE /organizations/{org_uuid}/invitations/{invitation_uuid}
DELETE /organization_memberships/{uuid}

Codecov Report

Merging #6 into master will increase coverage by 0.11%.
The diff coverage is 97.43%.

@@            Coverage Diff             @@
##           master       #6      +/-   ##
==========================================
+ Coverage   99.01%   99.12%   +0.11%
==========================================
  Files          14       16       +2
  Lines         712      802      +90
==========================================
+ Hits          705      795      +90
  Misses          7        7

Impacted Files
Coverage Δ

lib/calendly/client.rb
98.02% <95.23%> (+1.17%)
:arrow_up:

lib/calendly/api_error.rb
91.66% <100.00%> (ø)

lib/calendly/error.rb
100.00% <100.00%> (ø)

test/assert_helper.rb
100.00% <100.00%> (ø)

lib/calendly.rb
100.00% <0.00%> (+10.00%)
:arrow_up:

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 2390122...b2bad09. Read the comment docs.

authors: codecov-commenter koshilife

repo: koshilife/calendly-api-ruby-client


text:
feat: elevate adapter common configuration

#28
/cc @OrangeBao
/cc @xyz2277
/cc @wuyingjun-lucky

/lgtm

/cc @OrangeBao

/approve

/approve

repo: kosmos-io/kosmos


text:
Navbar

closes #20

What resolution are we building this site in ?
My Resolution is 1368*768
This is how it looks in my PC

[image: image.png]
Looks fine for me
Regards,
Rajiv Harlalka,
Department of Mathematics
20MA20073,
Phone: +918987966604
Indian Institute of Technology, Kharagpur
On Wed, Jul 12, 2023 at 12:22 PM Rohan Barsagade @.***>
wrote:

What resolution are we building this site in ?
My Resolution is 1368*768
This is how it looks in my PC
[image: image]
https://user-images.githubusercontent.com/82886259/252879620-150d3566-979b-4805-97fd-019fb6f1a2b1.png
—
Reply to this email directly, view it on GitHub
https://github.com/kossiitkgp/YAKW/pull/27#issuecomment-1631949261, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AQMMFH7NGGSFDLAARVTVBBDXPZCUPANCNFSM6AAAAAA2HAH5FQ
.
You are receiving this because your review was requested.Message ID:
@.***>

IDK much design but, doesn't it look too much bulky? (height wise..)

Let's discuss this in slack @rohan-b-84 @proffapt

Also would recommened different PR for different features, would be eadier to review stuff.

authors: chirag-ghosh proffapt rajivharlalka rohan-b-84

repo: kossiitkgp/YAKW

license: WTFPL


text:
editor.requestExit() not called when closing the editor frame

Hi,
When i close VisEditor with close button in window decoration, it doesn't call dispose()  method nor show a "confirm exit" dialogue.
But when i go to file->exit button, it works properly.
I think the problem is here
https://github.com/kotcrab/VisEditor/blob/master/Editor/src/com/kotcrab/vis/editor/ui/EditorFrame.java#L164

That's interesting. Looks like the LWJGL Timer thread is created only on Windows. I'll search for some other method. Thanks for reporting.

authors: SaeedMasoumi kotcrab

repo: kotcrab/VisEditor


text:
🚀[FEAT: ] Keyboard shortcuts for better UX.

Is your feature request related to a problem? Please describe.
When coding inflow, we usually don't prefer to leave our keyboard and use the mouse to do some repetitive action. Hence for the betterment of user experience let's introduce short-cut keys for various commands such as Run, download file, copy, etc.
Describe the solution you'd like
The solution is pretty easy with implementing a library like React Hotkeys
Motivation
Many famous online Coding IDE's provide this feature for better UX.
Are you willing to contribute to this issue? [Yes/No]
Yes, I am willing to contribute to this issue under GSSOC21
Describe alternatives you've considered
Alternatives may only vary in choosing different libraries for hotkeys, but the approach for this feature remains almost the same. Still open to suggestions as usual ✌
Additional context
Following is the screenshot of keyboard shortcuts from Leetcode

Hi @amaan-ahmad, First of all, thank you so much for taking out the time to create this issue.
Definitely, the short-cut keys will help to improve user experience 🙌, Please go forward to work on this issue. I am assigning this Issue to you 👍
And last but not least,
Keep Contributing 🙏🔥

Thanks @Akash-Salvi ✌💯

can I work on this

hey @kothariji, I am really apologetic, I was really caught up in my internship. Will continue working on it and make a PR in a day or two. Again apologies 🙏

Hey, no issues @amaan-ahmad ...... Sure 🙌

authors: Akash-Salvi Kumud-869231165 amaan-ahmad kothariji

repo: kothariji/SyntaxMeets


text:
Removing toStrictlyPositiveDouble builders

Description
Like discussed in #104, we would like to remove the deprecated toStrictlyPositiveDouble builders from the StrictlyPositiveDouble.kt and the Context.kt files.
Dependencies
This issue is blocked by the following ones:

[ ] #200

Checklist

[ ] Remove the deprecated builders.
[ ] Test.
[ ] Refactor.
[ ] Check the generated documentation.
[ ] Check and update the public API binaries.
[ ] Update the Unreleased section in changelog.

This issue will be implemented by #267 and #270.

repo: kotools/types


text:
Question on waypoints and jquery-circle-progress

Hi!
I wonder if it's possible to have the circle progress and animate it on waypoints. Because now the circle doesn't show and it appears when the offset is reach.
I've made a stackoverflow question here with the demo.
Thanks!

Hi!
I've answered you on SO.
Shortly:

Init the circle with value: 0 0 it will render it "empty"
do .circleProgress({value: realValue}) when the circle reaches the waypoint

Here's a working demo, and another demo (a bit different implementation), and one more demo (using jQuery Appear instead of jQuery Waypoints).
This issue is related to #8. As you can see, one of the first project issues/questions was about the lazy rendering :)

I hope I've helped you. I'm closing this ticket, but feel free to reopen.

@kottenator  you've helped me a lot thanks
I 've seen the demo you've made here but I wonder how you get multiple circles because I've trying to do it with jquery each like
  $( "#circle" ).each(function() {
    var el = $('#circle').circleProgress({value: 0});
  });

new Waypoint({
  element: el.get(0),
  handler: function() {
    el.circleProgress({
      value: el.data('value')
    });
    this.destroy();
  },
  offset: '50%'
});

but it doesn't seems to be right

In this link I use Waypoints with multiple circles.
If you want to make it in pure JS (though it'd be not 100% pure because of my plugin):
var elements = document.querySelectorAll('.circle');

Array.prototype.slice.apply(elements).forEach(function(el) {
  var $el = $(el);

  $el.circleProgress({value: 0});

  new Waypoint({
    element: el,
    handler: function() {
      $el.circleProgress({
        value: $el.data('value')
      });
      this.destroy();
    },
    offset: '50%'
  });
});

Here's a demo example.

authors: kottenator soniapello

repo: kottenator/jquery-circle-progress


text:
Training Data Download issue

Dear author,
I'm trying to download the Rladder and OpAmp pretraining data. Then I meet some problem here.
Rladder Data
In README, it said "You can download the tarball here and extract them in rdiv folder (size ~300MB)", which is a 404 page
OpAmp pretraining data
After environment configuration, I run the code in Jupyter notebook:
`from cgl.data.graph_data import CircuitInMemDataset
from torch_geometric.data import DataLoader
dset = CircuitInMemDataset(root='/tmp/dataset/opamp_pt', mode='train')
sample_data = dset[0]
splits = dset.splits
train_dset = dset[splits['train']]
valid_dset = dset[splits['valid']]
test_dset = dset[splits['test']]
train_dloader = DataLoader(train_dset, batch_size=16)`
Then it gives the error: BadGzipFile: Not a gzipped file (b'<!')

I figure out the problem for OpAmp dataset. When it try to download the file, google drive return a notification webpage, and said file is too large to scan virus. Then this web page will be downloaded, not the real file. So that's why python show the error:Not a gzipped file (b'<!').

I figure out the problem for OpAmp dataset. When it try to download the file, google drive return a notification webpage, and said file is too large to scan virus. Then this web page will be downloaded, not the real file. So that's why python show the error:Not a gzipped file (b'<!').

Dear,
I have the same issue. How did you solve it?

Also, the tarball Rladder Data is not working.

I figure out the problem for OpAmp dataset. When it try to download the file, google drive return a notification webpage, and said file is too large to scan virus. Then this web page will be downloaded, not the real file. So that's why python show the error:Not a gzipped file (b'<!').

Dear,
I have the same issue. How did you solve it?

You can check his code, there are google drive file ID for datasets in  graph-data.py.
Rladder datasets address was corrupted. It won't available, unless author fix it.

Hey @MohsenMokrian and @yihangyuan. I have the updated links to the file. Do you guys have a suggestion on how to share the dataset for free more permanently that would not need maintenance?

I added the links to the readme. The rladder one was anonymized before the submission. But for the other two datasets the IDs match with what I have, so I am not sure where the error is coming from.

Hey @MohsenMokrian and @yihangyuan. I have the updated links to the file. Do you guys have a suggestion on how to share the dataset for free more permanently that would not need maintenance?

Thanks a lot for adding the links.

I added the links to the readme. The rladder one was anonymized before the submission. But for the other two datasets the IDs match with what I have, so I am not sure where the error is coming from.

Thanks!

authors: MohsenMokrian kouroshHakha yihangyuan

repo: kouroshHakha/circuit-fewshot-code


text:
Implement server side event stream subscription

If you decide to merge, please let me know once the gem is updated so I can stop pointing my Gemfile to the repository.
Cheers,
Nino

Thanks!

@rubyengineer I published a new gem version for this -
https://github.com/kpheasey/shower/releases/tag/v0.1.0,
https://rubygems.org/gems/shower

@kpheasey you're fast, thanks!

authors: kpheasey rubyengineer

repo: kpheasey/shower


text:
Jeg får følgende fejl: Exception: <class 'simplejson.errors.JSONDecodeError'>

Jeg får følgende fejl:
Logger: custom_components.novafos
Source: custom_components/novafos/init.py:120
Integration: Novafos
First occurred: 10:50:30 PM (1 occurrences)
Last logged: 10:50:30 PM
Exception: <class 'simplejson.errors.JSONDecodeError'>
Alle sensorer kommer frem men med "Unknown".
Jeg benytter Ringkøbing Skjern Forsyning: https://minforsyning-2.kmd.dk/Login?plant=686&utility=4
Har du en idé om hvad det kan skyldes? På forhånd tak.

Hej @KevinToftegaard
Kan jeg få dig til at sætte lidt debugging information på i din configuration.yaml:
logger:
default: info
logs:
pynovafos.novafos: debug
Fejlen herover viser bare at et eller andet sted i modulet sker der en fejl.  Med linjerne herover kommer der forhåbentlig lidt mere information om hvor.

Beklager det lidt sene svar. Jeg er ikke verdensmester i det her, så det kan også være en eller anden dum fejl. Det er dog lykkedes mig, at installere dine andre integrationer :-).
Giver nedenstående mere mening?
2021-12-02 21:55:43 DEBUG (MainThread) [custom_components.novafos.sensor] Asked for state Novafos Water Total = None
2021-12-02 21:55:43 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.novafos_water_total, old_state=None, new_state=<state sensor.novafos_water_total=unknown; Metering date=None, metering_date=None, unit_of_measurement=m³, friendly_name=Novafos Water Total @ 2021-12-02T21:55:43.821210+01:00>>
2021-12-02 21:55:44 DEBUG (SyncWorker_4) [homeassistant.util.json] JSON file not found: /config/custom_components/novafos/translations/sensor.en.json

Næh, den der er interessant.  Der ligger en .../translations/en.json fil, men her ser det ud til at der ledes efter en "sensor.en.json".
Det er virkelig svært at følge med Home Assistants meget aggressive tilgang til at ændre kompatibilitet gennem versionerne.

Jeg kan ikke reproducere denne her med HA 2021.11.5. Hvilken version er du på?

Det sætter jeg meget pris på :-).
Home Assistant 2021.10.6
Det kan være, at jeg skal prøve at opdatere mit HA?

Ja, prøv det i første omgang. Jeg lavede en opdatering til at matche de nye ting med energi-panelet i denne uge, og den klager heller ikke over den der sprog-fil.

Jeg har samme fejl og er på core-2021.12.0b6
Har virket før men husker ikke i hvilken version.

Nu er jeg på Home Assistant 2021.11.5, og det virker desværre stadig ikke.
Jeg har prøvet at fjerne og installere det igen. Det er underligt for eloverblik og eforsyning virker fint.

Lidt noter til mig selv:
Denne her har "sensor..json
https://github.com/briis/hass-weatherflow/tree/main/custom_components/weatherflow/translations
Her tales om sensor-oversættelser:
https://community.home-assistant.io/t/how-to-send-translation-arguments-to-the-translation-custom-integration/143965/3
Denne her nævner i README at sensor.<>.json er der, men Git repo indeholder dem ikke:
https://github.com/CJNE/ha-myenergi?ref=pythonrepo.com
Det er meget forvirrende, specielt fordi eforsyning, eloverblik og denne, novafos, alle er skabt over den skabelon som eloverblik har oprindeligt.
"native_value" er under mistanke.
L. 327: https://github.com/home-assistant/core/blob/dev/homeassistant/components/sensor/init.py
og herfra "device_class" som måske trigger denne her "sensor.<>.json" fil skal eksistere.
To løsninger?

fjern device_class fra L49 i sensor.py
opret sensor.en.json med indhold (?)

{   "state": {       "???": {           "???": "???",       } }
Jeg aner ikke hvad der skal oversættes.  "native value" er en 'float', så der er ikke noget at oversætte.
@KevinToftegaard , kan jeg få dig til at kommentere linje 49 ud i sensor.py?
self._attr_device_class = DEVICE_CLASS_GAS
Det er lidt træls jeg ikke kan reproducere det her af gu'ved hvilken årsag.
Det fjerner efter sigende så sensoren fra energi-overblikket.  Det er måske så helt fint.

FYI:
Jeg kom i tanke om at jeg havde ændret base_url for at få det til at virke.
Den er jo selvfølgelig blevet overskrevet da der kom en ny version.
Så jeg ændrede den igen til
self._base_url = f'https://webtools.kmd.dk/wts/'
og nu virker alt igen :-)

Der ser ikke ud til at virke.
#self._attr_device_class = DEVICE_CLASS_GAS
Efter genstart.
Loggen:
2021-12-12 18:50:49 DEBUG (SyncWorker_2) [custom_components.novafos.sensor] Setting status for Novafos Water Total
2021-12-12 18:50:49 DEBUG (SyncWorker_2) [custom_components.novafos] Fetching data from Novafos
2021-12-12 18:50:49 WARNING (SyncWorker_2) [custom_components.novafos] Exception: <class 'simplejson.errors.JSONDecodeError'>

Jeg gjorde som Sdahl1234 og nu virker det :-).
Kan det måske ha' noget at gøre med:
"Vær opmærksom på at Ringkøbing-Skjern Forsyning pr. 1. august 2020 har skiftet til en ny version af minForsyning.".

Ah, ja det forklarer i hvert fald hvorfor jeg ikke kan reproducere fejlen. Men her er måske måden at gøre det på.
Næste udfordring er så at måske automatisere at finde den korrekte base_url. Hvordan kom I frem til den nye? Hvis det nu kan fiskes ud maskinelt..

Da jeg ikke kunne få det til at virke i sin tid så jeg i developertools i browseren og kunne se at de API kald havde et anden endpoint.

Ja, det er også sådan jeg fandt det oprindeligt.  Det er jo mest en god taktik når endepunktet er stabilt :-)
Jeg lukker issuet her.  Om ikke andet kan andre se løsningen ovenfor, og måske finder jeg en smart måde at håndtere det på engang.

authors: KevinToftegaard Sdahl1234 kpoppel

repo: kpoppel/homeassistant-novafos


text:
DataFrame has no attribute as_matrix()

Hi,
With python 3.69, pandas 1.0.1: the member function DataFrame.as_matrix() isn't available (I think it has been deprecated for awhile). This causes predict mode to fail. The issue is fixed by changing x_df.as_matrix() to x_df.values, in:
https://github.com/kern-lab/diploSHIC/blob/7d55417af438e321c374dadc2f7e58f56107443e/diploSHIC.py#L278-L281
I don't think this change will cause issues with older versions of pandas, as DataFrame.values has been around for a long time ...
Nate

hey @nspope! i'm gonna close this stale issue

authors: andrewkern nspope

repo: kr-colab/diploSHIC


text:
use more secure mkdtemp

during compilation, a message stating that mkdtemp is more secure than mktemp. Here's a patch to make that change.

Thanks! This has actually been fixed in the upstream source of ct. The best way to fix this is to update to the newest version.

repo: kr/beanstalkd


text:
TypeError: 'NoneType' object is not iterable when loading kubeconfig

Which project are you reporting a bug for?
kr8s
What happened?
When loading my kubeconfig, I get a TypeError:
In [1]: import kr8s

In [2]: api = kr8s.api()
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[2], line 1
----> 1 api = kr8s.api()

File ~/src/pc/pc-onboarding-pipelines/.direnv/python-3.10.10/lib/python3.10/site-packages/kr8s/_io.py:46, in run_sync.<locals>.wrapped(*args, **kwargs)
     44 with anyio.from_thread.start_blocking_portal() as portal:
     45     if inspect.iscoroutinefunction(coro):
---> 46         return portal.call(wrapped)
     47     if inspect.isasyncgenfunction(coro):
     48         return iter_over_async(wrapped)

File ~/src/pc/pc-onboarding-pipelines/.direnv/python-3.10.10/lib/python3.10/site-packages/anyio/from_thread.py:277, in BlockingPortal.call(self, func, *args)
    264 def call(
    265     self, func: Callable[..., Awaitable[T_Retval] | T_Retval], *args: object
    266 ) -> T_Retval:
    267     """
    268     Call the given function in the event loop thread.
    269
   (...)
    275
    276     """
--> 277     return cast(T_Retval, self.start_task_soon(func, *args).result())

File ~/mambaforge2/lib/python3.10/concurrent/futures/_base.py:458, in Future.result(self, timeout)
    456     raise CancelledError()
    457 elif self._state == FINISHED:
--> 458     return self.__get_result()
    459 else:
    460     raise TimeoutError()

File ~/mambaforge2/lib/python3.10/concurrent/futures/_base.py:403, in Future.__get_result(self)
    401 if self._exception:
    402     try:
--> 403         raise self._exception
    404     finally:
    405         # Break a reference cycle with the exception in self._exception
    406         self = None

File ~/src/pc/pc-onboarding-pipelines/.direnv/python-3.10.10/lib/python3.10/site-packages/anyio/from_thread.py:217, in BlockingPortal._call_func(self, func, args, kwargs, future)
    214             else:
    215                 future.add_done_callback(callback)
--> 217             retval = await retval
    218 except self._cancelled_exc_class:
    219     future.cancel()

File ~/src/pc/pc-onboarding-pipelines/.direnv/python-3.10.10/lib/python3.10/site-packages/kr8s/asyncio/_api.py:44, in api(url, kubeconfig, serviceaccount, namespace, _asyncio)
     41         return await list(_cls._instances[thread_id].values())[0]
     42     return await _cls(**kwargs, bypass_factory=True)
---> 44 return await _f(
     45     url=url,
     46     kubeconfig=kubeconfig,
     47     serviceaccount=serviceaccount,
     48     namespace=namespace,
     49 )

File ~/src/pc/pc-onboarding-pipelines/.direnv/python-3.10.10/lib/python3.10/site-packages/kr8s/asyncio/_api.py:42, in api.<locals>._f(**kwargs)
     36 if (
     37     all(k is None for k in kwargs.values())
     38     and thread_id in _cls._instances
     39     and list(_cls._instances[thread_id].values())
     40 ):
     41     return await list(_cls._instances[thread_id].values())[0]
---> 42 return await _cls(**kwargs, bypass_factory=True)

File ~/src/pc/pc-onboarding-pipelines/.direnv/python-3.10.10/lib/python3.10/site-packages/kr8s/_api.py:59, in Api.__await__.<locals>.f()
     58 async def f():
---> 59     await self.auth
     60     return self

File ~/src/pc/pc-onboarding-pipelines/.direnv/python-3.10.10/lib/python3.10/site-packages/kr8s/_auth.py:48, in KubeAuth.__await__.<locals>.f()
     47 async def f():
---> 48     await self.reauthenticate()
     49     return self

File ~/src/pc/pc-onboarding-pipelines/.direnv/python-3.10.10/lib/python3.10/site-packages/kr8s/_auth.py:59, in KubeAuth.reauthenticate(self)
     57     await self._load_service_account()
     58 if self._kubeconfig is not False and not self.server:
---> 59     await self._load_kubeconfig()
     60 if not self.server:
     61     raise ValueError("Unable to find valid credentials")

File ~/src/pc/pc-onboarding-pipelines/.direnv/python-3.10.10/lib/python3.10/site-packages/kr8s/_auth.py:122, in KubeAuth._load_kubeconfig(self)
    119 args = self._user["exec"].get("args", [])
    120 env = os.environ.copy()
    121 env.update(
--> 122     **{e["name"]: e["value"] for e in self._user["exec"].get("env", [])}
    123 )
    124 data = json.loads(await check_output(command, *args, env=env))["status"]
    125 if "token" in data:

TypeError: 'NoneType' object is not iterable

Here's that section of my kubeconfig:
     exec:
       apiVersion: client.authentication.k8s.io/v1beta1
       args:
       - get-token
       - --login
       - azurecli
       - --server-id
       - 6dae42f8-4368-4678-94ff-3960e28e3630
       command: kubelogin
       env: null

Notice that env is null. I think that line should be updated to something like (self._user["exec"].get("env") or []), to handle both the env value missing and the env value being present but null.
Anything else?
For now, you can work around this by deleting the null env from your kubeconfig.

Thanks for raising this @TomAugspurger. This looks like the bug that was fixed in #156, which version of kr8s are you using?

Seems like I had kr8s==0.8.16, thanks to an older version of dask-kubernetes in this environment.  Upgrading to 0.8.18 fixed the issue. Thanks!

Yeah we've been hard pinning in dask-kubernetes since kr8s==0.1.0 because we were iterating fast on the API and making lots of breaking changes. We are probably at the point where we can relax this a bit now.

authors: TomAugspurger jacobtomlinson


text:
Changing the mode of a unix domain socket

Mojolicious version: 7.29
Perl version: 5.20
Operating system: FreeBSD 10.3-STABLE

In using this new http+unix domain socket listening scheme, I don't see any way to change the mode (a la chmod) of the socket. Is this an oversight or deliberate?

@davehayes is there any reason you can't just change the socket mode with chmod? A unix socket is a file.

You can, but you can't do this easily in an automated fashion without having to write a Mojolicious::Command for the express purpose of doing just a chmod. The socket is created deep inside Mojo::Server::Daemon and there's no hook for changing the mode. I've had to do something like this. It's clearly not perfect but it works around the issue.
The use case I have here is a separate uid for each mojo app. In this case, you want the gid of the socket to match the nginx webserver's gid. You then want the permission of the domain socket to be rw-.
The default (and secure) umask is 022. In my case, I did not want to change the umask such that all other files my app may decide to write will have group write permissions turned on. I suspect some others will feel the same way.

There should be no need to fight with the listen locations when you have access to the Mojo::Server::Daemon instance.
my $daemon = Mojo::Server::Daemon->new(listen => ['http+unix://%2Ftmp%2Fmyapp.sock']);
chmod 0644, $daemon->start->ioloop->acceptor($daemon->acceptors->[0])->handle;
...
$daemon->run;

I had no earthly clue I could get at the handle in that way. I did not understand that "acceptor" is a listener that can accept() connections. So that's a much better solution than mine (which admittedly was not hard).
I assume that if, for some odd reason, I want to listen on multiple domain sockets, I'd do something like this?
for (@{ $daemon->acceptors }) {
   chmod 0660, $daemon->ioloop->acceptor($_)->handle;
}

I'm closing this issue because I now see two ways to change the socket mode without asking for mojolicious to change. I will comment that it might be nice for something more convenient and less opaque than the above ideas, but that's entirely up to you guys.

For those googling this, $daemon->ioloop->acceptor($daemon->acceptors->[0])->handle is an IO::Socket::UNIX glob which will not chmod. You'll need to do something like this:
chmod 0644, $daemon->ioloop->acceptor($daemon->acceptors->[0])->handle->hostpath;

Note that this assumes that the handle is an IO::Socket::UNIX.

authors: davehayes kraih marcusramberg

repo: kraih/mojo


text:
Keep tini alive when killing the main child process

I am working on a developer environment that runs directly on kubernetes.
I need to be able to kill and start again the main process, but to be able to do so I need a way of keeping tini alive when I send the kill command to the child.
Is it possible with the current implementation?

All Tini does is spawn a single child [...], and wait for it to exit

If the child exits, tini exits.  You likely need to use a "full" process supervisor (supervisord, systemd, etc) (or fairly complex script) or have a way for the application to "reload" without exiting (like nginx does with SIGHUP).

Alright thanks, I'll close this issue.

authors: gionapaolini yosifkit

repo: krallin/tini