Question - How to build DBeaver as an RPM from the source code?

Question:

How to build DBeaver as an RPM from the source code?  mvn clean package only creates the zip file.
https://github.com/dbeaver/dbeaver.git

And where is the spec or script that is responsible to create dbeaver RPM? can't seems to find that in the source code.

Thanks!

We use redline-rpm packager but you could you any rpm packager including native Linux ones.
It is quite simple as binaries built by Maven are passed into Linux package with just a few changes.
Unfortunately DBeaver packaging scripts are not public domain. Besides other things they include code sign procedures, certificates and other non-public stuff.

Appreciate your turn around. That helps.. thank you.


backport to 2.x for PR 1529

Description
backport pr for https://github.com/opensearch-project/ml-commons/pull/1529
Issues Resolved
backport pr for https://github.com/opensearch-project/ml-commons/pull/1529
Check List

[ ] New functionality includes testing.

[ ] All tests pass

[ ] New functionality has been documented.

[ ] New functionality has javadoc added

[ ] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Make the commit message more readable
[Backport 2.x] Read function Name from pretrained model (#1529) ?

After merging 2.11 backport PR, the commit history is not readable https://github.com/opensearch-project/ml-commons/commits/2.11
From the message backport to 2.11, it's hard to tell what's this commit for.

Make the commit message more readable [Backport 2.x] Read function Name from pretrained model (#1529) ?

Ok. Will do so. Sorry for the mistake.

Force push to make commit readable.


[Bug]: Stripe not working

I have an issue integrating stripe payment. It is showing error when I am opening the app on localhost.
I want you to find out what is wrong with the integration.

can you assign this task for me?

Yes, go on and work on this issue.

i get this error with the config server js


BIGTOP-4108. Add support for openEuler to the manifest of bigtop-deploy to set up Bigtop Yum repository

https://issues.apache.org/jira/browse/BIGTOP-4108

Currently openEuler is not supported in the bigtop_repo class for setting up repository of Bigtop.
The manifests is required for the CI job for release process.
yumrepo is a part of the module hosted in forge in recent puppet. It must be installed by puppet module since puppet is installed by gem instead of RPM in openEuler.

+1, tested as follows (specifying a dummy repo URL in running docker-hadoop.sh).
Thanks @iwasakims.
$ curl -sL https://github.com/apache/bigtop/pull/1270.diff | git apply
$ (cd docker/bigtop-puppet && ./build.sh trunk-openeuler-22.03)
$ docker run -it bigtop/puppet:trunk-openeuler-22.03 puppet module list
/etc/puppetlabs/code/modules
├── puppetlabs-stdlib (v4.12.0)
└── puppetlabs-yumrepo_core (v2.1.0)
$ (cd docker/bigtop-slaves && ./build.sh trunk-openeuler-22.03)
$ ./gradlew allclean bigtop-utils-pkg-ind repo-ind -POS=openeuler-22.03 -Pdocker-run-option="--privileged"

...

BUILD SUCCESSFUL in 1m 51s
40 actionable tasks: 40 executed
$ cd provisioner/docker
$ ./docker-hadoop.sh -d -dcp -C config_openeuler-22.03.yaml -F docker-compose-cgroupv2.yml -G -L -k bigtop-utils -c 1 -r 'http://repos.bigtop.apache.org/releases/3.2.1/centos/7/$basearch'
$ ./docker-hadoop.sh -dcp -e 1 dnf info bigtop-utils
Last metadata expiration check: 0:03:17 ago on Sun Jun  2 03:17:24 2024.
Installed Packages
Name         : bigtop-utils
Version      : 3.4.0
Release      : 1
Architecture : noarch
Size         : 21 k
Source       : bigtop-utils-3.4.0-1.src.rpm
Repository   : @System
From repo    : bigtop-home_output
Summary      : Collection of useful tools for Bigtop
URL          : http://bigtop.apache.org/
License      : ASL 2.0
Description  : This includes a collection of useful tools and files for Bigtop

Merged into master.


Fix sink docs

The docs for sinks incorrectly say that they are for sources :)

@piosz PTAL

@k8s-bot test this

LGTM, thanks!

Failure unrelated.


MediaInfo and FFMpeg disagree on number of audio channels

MediaInfo and FFMpeg dissagree on number of audiochannels.
For media file: https://we.tl/t-rCoWScLZfC , MediaInfo says there are 9 audio channels (6 PCM and 3 Dolby-E) and FFMpeg says there are 8 audiochannels (by lack of a Dolby-E decoder all considers them as PCM).
There is something strange about the streamorder. All Doly-E channels are streamorder 5 and stream 6 is absent. So Streamorder is 0,1,2,3,4,5,5,5,7,8.
I am using MediaInfo to set parameters for FFMpeg conversion like audio channels , framerate conversion etc. The conversion fails because of this dissagrement
So who is right? Is there a 'Dark' audio channel?
MediaInfo=24.05.1 / FFMpeg=version 6.1.1-full_build-www.gyan.dev

Duplicate of https://github.com/MediaArea/MediaInfo/issues/874.


S60TPF plug and power meter problems

Installed a few days ago two S60TPF sonoff plugs with power consumption and even they work correctly in eWelink and from HA commands, i get these errors:
Cloud ERROR: {'error': 504, 'reason': 'Request Timeout', 'deviceid': '1002271022', 'apikey': 'XXXXX', 'sequence': '1725040709185'}
Cloud ERROR: {'error': 504, 'reason': 'Request Timeout', 'deviceid': '100226eeda', 'apikey': 'XXXXX', 'sequence': '1725040709286'}
If I check the entities they are OK, I can command them, check sensors logs that look ok.
But also in Energy Dashboard i cannot make them show the correct values as they have if i open the sensor history.

Your device not respond to cloud. Maybe WiFi issue. Not related to work of this integration.


[Backport] [2.x] Modify to not use URLEncodedUtils (#999)

Backport of https://github.com/opensearch-project/opensearch-java/pull/999 to 2.x

Seems like backport job didn't trigger :(


Default editor for nbdistribute

When asking the user for a commit message we check the EDITOR and VISUAL environment variables to try and figure out what (command-line?) editor the user prefers. If we can't find anything vi is used. There is no particularly good reason to use vi as fallback.
There are two things to do:

are there more variables or places we can check to find out what editor the user would like us to use?
decide what the default editor should be

oh gosh that would be great. i was good for me as it forced me to learn vim this weekend. But i have atom set as my default editor. we can't assume all users will have atom installed but it would be nice if it would find our default editor rather than defaulting to vim!


feat: Add support category tag functionality

The additional tagging of Support category (or multiple categories) mapped to Service Desk categories is available for non-PGDME Local Office and Technical Support email enquiries.
The chosen categories are included in the Support email subject (in alphabetical order) next to the tisId and GMC plus a bit of prompt text in the body to encourage users to detail their issues plus any screenshots.
TICKET TIS21-4646

Running on my local looks good to me.
I like the multi-categories the users can select.

Running on my local looks good to me. I like the multi-categories the users can select.

Let's hope the users do too 😁


Added some extra methods to be compatible with tokio_util::codec

Added methods for accessing to codec:

Framed::codec
Framed::codec_mut
FramedRead::decoder
FramedRead::decoder_mut
FramedWrite::encoder
FramedWrite::encoder_mut

Added methods for accessing to read buffer:

Framed::read_buffer
FramedRead::read_buffer

Added methods for releasing stream only:

Framed::into_inner
FramedRead::into_inner
FramedWrite::into_inner

This looks good thanks for adding!


⚠ Bofrost.de has degraded performance

In bc416cd, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1184 ms

Resolved: Bofrost.de performance has improved in 832f95d after 21 minutes.


Chart for Comparison Range

Chart for range of frame size.

logic implemented

Please review because not working!

done and merged.


2024 template styling adjustments

Not sure if it's something on my computer, but CMP newsletter on 12/25 looks as expected, but if you test hcp on 12/25 for example there is an error being thrown 2024-promo-block which is pulling from NativeX

 PW, CMP, HCP, OEM, PFW, Mundo Newsletters & PW Weekly NL 2024

@jwade1327

It appears one of the campaign URLs is https://packworld.dragonforms.com/loading.do?pk=190&omedasite=pwbilibrary2021 which doesn't match the campaignTypeMatch RegEx of /(youtube\.com|pmmi\.dragonforms\.com)|app.credspark.com/ and therefore campaignTypeMatch[1] is attempting to pull an array value off of null hence the error. This will likely need to be corrected below to the following:

Do insure that whatever these pieces of code are intended to do still works as I wasn't able to vet that in the little testing I did.


Video > Sequence > Depth (Uneven Render)

So basically what I’ve tried doing is converting a 2D video into a 3D video with anaglyph.

I render a video clip into a PNG sequence using Adobe Media Encoder
I run the PNG sequence using MiDas
I insert the both DepthMap and the normal sequence in after effects as PNG sequence
I Displace Map the depth and Right shift +5 and left shift -5 on another copy, creating 2 different perspectives
I color the right one Cyan and the left one Magenta and apply Multiply blending mode
Color correcting using adjustment layer
Then render to final result

the issue is that the Depth sequence rendered with MiDas is uneven, it’s flickering and it’s slight light changes, although the original clip has a flat exposure throughout the video.
I’m using the Large MiDas file to render. Was wondering if there is another more ”accurate” way to do this? It seems to me the results other people are getting is way more on-point whilst mines is kind of blurry and uneven throughout the sequence!

Is it still the case? 3.1 ?


add luci-uvc library from fon-ng (patch included)

Reported by reporter on 29 Aug 2009 11:19 UTC
Here is a patch to add the luci-uvc library from fon-ng (http://trac.fonosfera.org/fon-ng/browser/trunk/luci/libs/uvc). No idea if this is the right way of doing it. The uvc library builds but on the router I get:
root@OpenWrt:~# lua test.lua
lua: error loading module 'uvc' from file '/usr/lib/lua/uvc.so':
        File not found
stack traceback:
        [?
        [C](C]:): in function 'require'
        test.lua:3: in main chunk
        [C]: ?
root@OpenWrt:~# ls -ahl /usr/lib/lua/uvc.so
-rwxr-xr-x    1 root     root        11.7K Aug 28 20:11 /usr/lib/lua/uvc.so
root@OpenWrt:~# cat /root/test.lua
#!/usr/bin/lua

local uvc = require("uvc")
local i = 0
if uvc then
        while true do
                local res
                os.execute("sleep 1")
                i = i + 1
                if i % 2 == 1 then
                        res = uvc.grab()
                else
                        res = uvc.dump("abc.jpg")
                end
                if res == false then
                        print("no cam attached")
                elseif res == true then
                        print("got snapshot")
                elseif type(res) == "string" then
                        print("got raw data")
                else
                        print("Error, cam was removed")
                end
        end
end
root@OpenWrt:~#

ancient. should be re-done as a pull request, if the code still works.
closing this to clean up the issue queue.


Add type hierarchy support to vscode-clangd

Clangd has server-side support for the proposed textDocument/typeHierarchy extension.
It would be nice if vscode-clangd had corresponding client side support.
Eventually this may be implemented in vscode itself (possibly along with a revised API), but to my knowledge that hasn't happened yet.

Proposed fix.
(Uhh... should the issue be migrated to the other repo as well?)

yeah that makes sense, migrating the issue


How to specify between icons that have the same name?

node, npm, react-native, react and native-base version
Node: v8.5.0
npm: 6.2.0
react-native: 0.55.4
react: 16.3.1
native-base: 2.7.2
Expected behaviour
I want to use the Google icon from MaterialCommunityIcons.
Actual behaviour
Invalid prop 'name' of value 'google'.
There are multiple icons name "Google" in the various icon libraries provided.
Steps to reproduce should include code snippet and screenshot
import {Icon} from 'native-base';
<Icon name='google' />

Is the bug present in both iOS and Android or in any one of them?
Both
Any other additional info which would help us debug the issue quicker.

Did you try the snippet from docs?
https://docs.nativebase.io/Components.html#icon-def-headref

Did you eject native-base theme, injected platform.js into StyleProvider and then edit platform.js?

Did you try?

Closing this today in case of no response


Partition different data based on different timestamps?

The processing chain works file-by-file, so that later stages follow the same partitioning scheme as this one, which is based on the source header (TMHeader) time. This is probably OK in most cases, but for instance CCD data and PM data have their own timestamps that it would be more convenient to partition by. The difference should not be very large between these times and the source header times, but still.
Should we adapt the partitioning to be on data specific times where available?

Andreas says: Bad idea.


Usage section of README

Guys, I've created account, installed gem and created workspace directory (why you went that way?) and I read Usage section of README
Yet, I have no idea how to create 'hello world' app with stdlib

Hey @andriytyurnikov : You can only write functions in Node.js right now (more support coming soon).
Use https://github.com/stdlib/lib for instructions on how to do so.
This gem is for accessing deployed functions from within a Ruby environment. :) Hope that helps.


chore: update SCC profile_id to fe96bd4d-9b37-40f2-b39f-a62760e326a3

:tada: This PR is included in version 1.0.5 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Unexpected results when using escapes

Example using backslash escape:
a=\(
-> {'a': '\\('}

Expected:
{'a': '('}
Example using tilde escape:
a=~(
-> {'a': '~('}

Expected:

error if tilde not set as escape char, since ( should be reserved; or
if tilde used as escape char, then: {'a': '('}

Fixed in https://github.com/NUMtechnology/compactdata-python/commit/f536f3bbc54e353118a96f622cc0ea57e3743ca7.


Allow increasing log verbosity for KubeVirt components

What this PR does / why we need it:
This PR aims to make the debugging process of KubeVirt's components easier.
Administrators will be able to modify the KubeVirt CR and set the logging verbosity of all KubeVirt components cluster-wide.
It's also possible to override the verbosity of all components running on specific nodes, by providing a list of nodes and the corresponding verbosity in nodeVerbosity
For example:
  configuration:
    developerConfiguration:
      logVerbosity:
        nodeVerbosity:
          node01: 5
          node02: 5
        virtAPI: 3
        virtController: 3
        virtHandler: 3
        virtLauncher: 2

Virt-Launcher

With this PR, only the newly created VMIs will be affected by the altered verbosity level.
Setting the verbosity level above 5 will also enable the verbose libvirt logging.
To override the cluster-wide verbosity level a logVerbosity: "5" label can be set on the VMI

Release note:
allow increasing logging verbosity of infra components in KubeVirt CR

/cc @rmohr @davidvossel

/assign jean-edouard

How about something like this:
type LogVerbosity struct {
    Global uint
    VirtAPI uint
    VirtHandler uint
    VirtLauncher uint
}

Yea, thanks. Switching to verbosity levels looks better.

```go
type DebugVirtStack struct {
    NodeList []string
}

It may also be that we need verbosity for virt-handler and virt-launcher per node configurable and not just libvirt/qemu logs.

I'm not sure what's the purpose of this.
Originally,
DebugNodeList []string `json:"debugNodeList,omitempty"`
}	}

Was intended to enable debug (high verbosity level) for virt-handlers on a specific nodes.
Did you have something else in mind with the NodeList ?

I think it is fine to use Debug for debugging libvirt/qemu, but for the rest we should stick with verbosity levels

maybe enabling a certain verbosity level triggers libvirt/qemu debug logs? or is that not intuitive enough?

Was intended to enable debug (high verbosity level) for virt-handlers on a specific nodes. Did you have something else in mind with the NodeList ?

I was under the impression the per node verbosity would target all our "infra" components (handler, launcher, libvirt, qemu, etc..) per a node.
I like the idea of setting verbosity level for a component cluster wide, and then having the ability to target specific nodes for increased verbosity.
something like this?
  configuration:
    developerConfiguration:
      logVerbosity:
        virtOperator: 2
        virtApi: 2
        virtController: 2
        virtHandler: 2
        virtLauncher: 2
        nodeList:
        - name: "node02"
          verbosity: 5
        - name: "node01"
          verbosity: 5

maybe enabling a certain verbosity level triggers libvirt/qemu debug logs? or is that not intuitive enough?

That was my main concern, since we log always what libvirt/qemu gives us. And  for these we basically just have "default" verbosity and "debug".

/test pull-kubevirt-unit-test

/test pull-kubevirt-unit-test

/test pull-kubevirt-unit-test

/test pull-kubevirt-unit-test

/retest

/retest

@davidvossel @rmohr could you please take a look, does it make sense this way?

@davidvossel @rmohr could you please take a look, does it make sense this way?

/retest

/retest

@jean-edouard any thoughts on this PR? Speak can you review?

@jean-edouard any thoughts on this PR? Speak can you review?


Update 'english' and 'russian' translation

The order is overridden according to the position on the settings screen (key registration).
Comments have been added to the original file to ease third-party translation (it's a good tone).
Added positions for changing the description on the mod menu screen (at the beginning of the file).
Many positions in the Russian translation have been revised. Tooltips, items, tags and other. There is no limit to perfection, but it is definitely better.
Found an redundant item "key.emi.set_default" at line 245 - tagged with question marks.

English tooltips for the config are intentional left untranslated. The translations here seem to additionally differ than what currently exists. The resort makes it pretty difficult to reasonably audit. I'm willing to merge the russian updates but you'll need to revert the changes to english.

English tooltips for the config are intentional left untranslated. The translations here seem to additionally differ than what currently exists. The resort makes it pretty difficult to reasonably audit. I'm willing to merge the russian updates but you'll need to revert the changes to english.

Got the English translation back

I appreciate the translation. As noted, the changes to english need to be reverted. A more widespread misconception is the use of question marks in tooltips, the phrases are not "Where to display status effects in the inventory?" it's the implied "{[The setting] is} where to display status effects in the inventory" construction. This may make less sense in other languages, but it's frequent here and I assume it may be a misinterpretation.

In this case, the question in Russian sounds good and logical quite well. I have enough experience in writing texts of various kinds to say this with confidence. Maybe I'll come back to check the translation in a week to take a fresh look at it, but I'm convinced that my version is already much better than the existing one for two reasons:

There were obvious logical errors in the names of the settings, because it's almost impossible to translate them without context from English
And this leads to the second reason - translation of the tooltips, which were also very difficult to translate because of their double interpretation in some cases.

I will definitely need to play around with this translation to fix minor bugs and mistakes, but for now I'm happy with it.


Adds mcrypt extension for PHP 5.6.40

Adds missing mcrypt ext from php-src.

Fixes this issue https://github.com/fossar/nix-phps/issues/337

Also when ready, please combine the changes into a single commit titled php56.extensions.mcrypt: init

Just force-pushed the squash

Looks like it also needs a check definition https://github.com/fossar/nix-phps/blob/d40b1a19f521b1c495f60af2a9ac40e5c27d0925/checks.nix#L32-L36

Looks like it also needs a check definition
https://github.com/fossar/nix-phps/blob/d40b1a19f521b1c495f60af2a9ac40e5c27d0925/checks.nix#L32-L36

Just add mcrypt into checks.

Thanks.


The getter 'last' was called on null

Hi!
In a widget in an onPressed i use
DatePicker.showDatePicker(context,
dateFormat: 'HH/mm/ss');
When I press the button I get this error:
The following NoSuchMethodError was thrown building DatePickerWidget(dirty, state: _DatePickerWidgetState#7c286):
The getter 'last' was called on null.
Receiver: null
Tried calling: last
The relevant error-causing widget was
MaterialApp
When the exception was thrown, this was the stack
#0      Object.noSuchMethod  (dart:core-patch/object_patch.dart:53:5)
#1      _DatePickerWidgetState._renderDatePickerColumnComponent
#2      _DatePickerWidgetState._renderDatePickerWidget.
#4      _DatePickerWidgetState._renderDatePickerWidget

没有指定pickerMode，默认是 DateTimePickerMode.date，dateFormat 的值不合法，H、m、s 之间的分隔符不包括 "/"，v1.0.23版本新增了pickerMode的校验，并且添加了分隔符 "/"
No pickerMode is specified, the default is DateTimePickerMode.date, the value of dateFormat is invalid, and the separator between H, m, and s does not include "/", pickerMode verification is added in v1.0.23, and a separator is added  /.


The patch command should not require a KUBECONFIG when using --local

The kubectl patch command currently fails when there is no kubeconfig present, no --config flag is provided, and --local is given:
# ensure no kubeconfig exists
$ rm ~/.kube/config
# run patch without hitting the server
$ kubectl patch /path/to/obj.yaml --local --type=json -o json
error: Missing or incomplete configuration info.  Please login or point to an existing, complete config file:

  1. Via the command-line flag --config
  2. Via the KUBECONFIG environment variable
  3. In your home directory as ~/.kube/config

To view or setup config directly use the 'config' command.

Since we are not hitting the server, no kubeconfig should be needed.
This error occurs here when attempting to retrieve a namespace in the command's Complete method.
We should be looking up the namespace much later in the command, and only if not running as --local.
We could consider adding a NamespaceFunc field to the command's options struct that is called when needed in the Run method.
cc @deads2k @soltysh
/sig cli

This is fixed in https://github.com/kubernetes/kubernetes/pull/67399.


Allow any file extension

Riot's extension must be '.tag' ?  Cannot be '.jsx' or '.cjsx' or other
shell: 'riot test.cjsx'  not compile

Good point. Will fix

Here you go: https://github.com/muut/riotjs/commit/a10c662305f89edd106c452cee21103bec6a2ca1
Will be a part of next release.


Embeddable figures out of Vizlab

Re-think this. object instead? SVG crowbar?

[ ] Add a property to the figures (or sections?) to make them embeddable. Then, in the publish phase, figures will get published in two places.

[ ] In the UI, have an Icon and popup that gives the text to copy to embed

I woulda uploaded an SVG but GitHub doesn't accept that file type. But what do you think of either of these @jiwalker-usgs?  Got any other ideas that portray embedding?

Also they can be any color we want, just using black and white for simplicity

I like it (probably prefer the second).  Do you have a preferred dialog method after they click to embed (model, popup, expanded div)?

probably a model or popup with the code in it. I like the code to only be around when we need it and not cluttering the file.

Closing this issue so the torch can be carried on by #188


Accept multi-token interchange launch commands

Description
We now accept a string or a list of strings for interchange_launch_cmd to support multi-token commands.
We also no longer encode the interchange launch command before passing it to subprocess.Popen() because strings are sufficient.
Type of change

Bug fix

this is repeatedly failing in CI with failures that look race-condition like to me - for example, like #3540
Maybe it's bad luck, maybe this change happens to stir up those race conditions a bit more.

I don't have any strong opinions either way -  security wise from a pure Parsl perspective the config is trusted, although I appreciate that in Globus Compute multi-user land that might not be so (and there you have to make your own arguments).
I do feel that the Parsl test suite should be resilient to this kind of change though - it's shouldn't be breaking just because of some irrelevant process related administrivia like this.

I agree, but I think we should address that longstanding issue in a subsequent PR.

could make this only take a sequence of strings, and remove the before-this-PR accept-one-string behaviour? I don't think backwards compatibility matters too much here and it would remove the complexity of having two options option that isn't very interesting and is probably confusing for a user trying to specify "my-interchange --myopt" as a string, which doesn't work but does typecheck.

If we aren't worried about backwards compatibility, then I definitely agree. Just pushed an update.

i don't think it's a concern -- this only appears in #3514 released earlier this month and I haven't heard of or imagined anyone wanting to use it apart from the specific use case you are trying to address with Globus Compute.


Using (computed) getter to access this.$refs.child, Child.$refs.xxx will become undefined after second time of mounting of Child via v-if

Using (computed) getter to access this.$refs.child, Child.$refs.xxx will become undefined after second time of mounting of Child via v-if.
Version
Confirmed in:

2.6.11
2.6.12

Reproduction link
https://codesandbox.io/s/upbeat-jepsen-fhw1r?file=/src/App.vue
Steps to reproduce
Parent.vue
.parentRoot
  div(v-if="showChild")
    Child(ref="child")

{
  computed: {
     child () { return this.$refs.child },
  },
}

Child.vue
div
  input(ref="inputEl")

{
  methods: {
    /** call from App.vue */
    debug() {
      console.log("[Child] v-if => this.$el ===", this.$el);
      console.log("[Child] v-if => this.$refs.inputEl ===", this.$refs.inputEl);
    },
  },
}

What is expected?
Can always get correct Child.$el and Child.$refs.inputEl
What is actually happening?
At the first time of Child.mounted(), everything goes OK.
From the second time of Child.mounted():
Child.$el is printed, but detached from DOM.
Child.$refs.inputEl becomes undefined.
Console output:
# First time mounting of Child.vue
v-if => this.$el ===
…

v-if => this.$refs.inputEl === <INPUT></INPUT>
# First time mounting of Child.vue
v-if => this.$el ===
…
     ### ← this is printable in console, but not found in DOM.
v-if => this.$refs.inputEl === undefined    ### ← becomes undefined

v-show also has some different strange behaviours under such context.
Why on Earth make a getter instead of access this.$refs.XXX directly?
This is very useful for making DRY type-awared this.$refs.XXX  in TypeScript:
{
  computed: {
    child (): InstanceType<typeof Child> {
      // @ts-ignore
      return this.$refs.child
    }
  }
}

See https://github.com/vuejs/vue/issues/3842#issuecomment-514981401


spec: add '0' as valid decimal_lit

Since each of octal_lit, hex_lit and binary_lit
specify a mandatory prefix (e.g. 0o, 0x and 0b),
we extend decimal_lit to allow for the decimal
literal zero.

Also included a fix of syntax highlighting in this PR.
Prior to 8216e79, data types were highlighted as follows:

Thanks!


Merge plain objects within Array

var deepmerge = require('deepmerge');
var isPlainObject = require('is-plain-object');

const target = {
	'series': [
		{
			'innerSize': '75%',
		}
	]
};

const source = {
	'series': [
		{
			'data': 'bla'
		}
	]
}

var obj = deepmerge(target, source, {
	'isMergeableObject': isPlainObject
})

console.log(obj);

Is it somehow possible at the moment to get the series[0] object merged such that innerSize and data is available on it, while still having isMergeableObject defined?

Oh sry it is answered within the documentation. Use 'arrayMerge': combineMerge, but sadly this does not work in conjunction with 'isMergeableObject': isPlainObject

I used thw following instead of isPlainObject, then the problem from the last comment also got solved.
function isMergeableObject(o) {
	return isPlainObject(o) || o.constructor.name === 'Array';
}


Can't run winget from WSL

I have installed Debian and can't run winget.exe using bash:

The winget install ... command also doesn't install the App in Windows.

Isn't winget Windows only?


Default dtype for torch.randint is int64

https://pytorch.org/docs/stable/generated/torch.randint.html#torch.randint
P.S. does not actually seem to be affected by torch.set_default_tensor_type, the default returned type is int64 regardless.

@lostmsu -- thanks for noticing this. I think there's a tutorial over in dotnet/TorchSharpExamples that I'll have to update when this fix is in... :-)


Allow promise in payload

Allows to pass a promise in the payload.
Especially useful if you need to pass in the refresh token in the body of the refresh request as a promise.
payload: {
    refreshToken: storage.get('refresh_token')
}

Closes #4
@leonardobazico feel free to suggest changes and to test everything again to make sure I didn't forget something

@emroussel that's great!
This isn't test if set a payload with a promise.
I has a error in the code that I suggested. I saw this because I made a new test.
So I'll accept and make the changes.
I hope this help you!


Installation Step List for Win10 users

This looks like a very outstanding project, thanks for your great job.
For some users like me, Newcomers to the field of artificial intelligence, it is still difficult to deploy this .
Can directly provide the installation Step List for Windows 10 users?
my path "main_v1\app.py" equivalent to "lollm_webui\app.py".
This is one of the big problems I have encountered ( when I run "python main_v1\app.py"):
  a few lines about: ' xxx connect : OK '

  Personalities zoo found in your personal space.
  Pulling last personalities zoo ⠇  fatal: unable to access 'https://github.com/ParisNeo/lollms_personalities_zoo.git/': OpenSSL SSL_r
  Models zoo found in your personal space.
  Pulling last Models zoo ⠧  fatal: unable to access 'https://github.com/ParisNeo/models_zoo.git/': Failed to connect to github.com po
  server
  No binding selected
  [[[ app.py lollms_path ]]]  Global paths configuration Path: global_paths_cfg.yaml
  Personal Configuration Path: D:\Projs\LLM_LoUI\main_v1\configs\configs
  Personal Data Path: D:\Projs\LLM_LoUI\main_v1\configs\data
  Personal Databases Path: D:\Projs\LLM_LoUI\main_v1\configs\discussion_databases
  Personal Skills Path: D:\Projs\LLM_LoUI\main_v1\configs\skill_databases
  Personal Models Path: D:\Projs\LLM_LoUI\main_v1\configs\models
  Personal Uploads Path: D:\Projs\LLM_LoUI\main_v1\configs\uploads
  Personal Log Path: D:\Projs\LLM_LoUI\main_v1\configs\logs
  Personal outputs Path: D:\Projs\LLM_LoUI\main_v1\configs\outputs
  Bindings Zoo Path: D:\Projs\LLM_LoUI\main_v1\configs\zoos\bindings_zoo
  Personalities Zoo Path: D:\Projs\LLM_LoUI\main_v1\configs\zoos\personalities_zoo
  Personal user infos path: D:\Projs\LLM_LoUI\main_v1\configs\user_infos
  Personal trainers path: D:\Projs\LLM_LoUI\main_v1\configs\trainers
  Personal gptqlora trainer path: D:\Projs\LLM_LoUI\main_v1\configs\trainers\gptqlora
  Personal services path: D:\Projs\LLM_LoUI\main_v1\configs\services
  Personal STT services path: D:\Projs\LLM_LoUI\main_v1\configs\services\stt
  Personal TTS services path: D:\Projs\LLM_LoUI\main_v1\configs\services\tts
  Personal TTI services path: D:\Projs\LLM_LoUI\main_v1\configs\services\tti
  Personal TTM services path: D:\Projs\LLM_LoUI\main_v1\configs\services\ttm
  Applications zoo path: D:\Projs\LLM_LoUI\main_v1\configs\apps_zoo
  Couldn't load personality. Please verify your configuration file at D:\Projs\LLM_LoUI\main_v1\configs\configs or use the next menu t
  Binding returned this exception : The 'lollms' distribution was not found and is required by the application
  Traceback (most recent call last):
    File "D:\Projs\LLM_LoUI\main_v1\lollms\app.py", line 711, in mount_personality
      personality = PersonalityBuilder(self.lollms_paths, self.config, self.model, self, callback=callback).build_personality(id)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "D:\Projs\LLM_LoUI\main_v1\lollms\personality.py", line 5334, in build_personality
      self.personality = AIPersonality(
                         ^^^^^^^^^^^^^^
    File "D:\Projs\LLM_LoUI\main_v1\lollms\personality.py", line 156, in __init__
      self._version = pkg_resources.get_distribution('lollms').version
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "D:\Projs\LLM_LoUI\env\Lib\site-packages\pkg_resources\__init__.py", line 542, in get_distribution
      dist = get_provider(dist)  # type: ignore[assignment]
             ^^^^^^^^^^^^^^^^^^
    File "D:\Projs\LLM_LoUI\env\Lib\site-packages\pkg_resources\__init__.py", line 424, in get_provider
      return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
                                              ^^^^^^^^^^^^^^^^^^^^^^^^^
    File "D:\Projs\LLM_LoUI\env\Lib\site-packages\pkg_resources\__init__.py", line 1062, in require
      needed = self.resolve(parse_requirements(requirements))
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "D:\Projs\LLM_LoUI\env\Lib\site-packages\pkg_resources\__init__.py", line 889, in resolve
      dist = self._resolve_dist(
             ^^^^^^^^^^^^^^^^^^^
    File "D:\Projs\LLM_LoUI\env\Lib\site-packages\pkg_resources\__init__.py", line 930, in _resolve_dist
      raise DistributionNotFound(req, requirers)
    ( Omit the remaining part )

Thaznks for your message.
To install lollms on windows, you can just use the provided .bat installer.
make sure you have already installed git.
put the .bat file inside an empty folder where you want to install lollms then run it. it should clone the repo and install dependancies etc.
The other way would be to clone the repo with 👍
git clone --recurse-submodules https://github.com/ParisNeo/lollms-webui.git

make sure you have python 3.11 installed, or you can create a conda environment with python 3.11 and activate it.
install requirements
pip install --upgrade requirements.txt

then you can run it wiuth:
python app.py

Best regards


Dynamically sized arrays with maximum length

Jax doesn't seem to like dynamically sized arrays when jiting, which is reasonable, because I suppose static shapes make it easier for the compiler? e.g. the following yields an error:
import jax.numpy as jnp
from jax import random
from jax import jit

rng = random.PRNGKey(0)
K = random.randint(rng, (1,), 1, 100)

def dynamic_array(K):
   return jnp.arange(K)

# Raises an error
jit(dynamic_array)(K)

Similar considerations exists if using lax.iota or linspace.  Is there a way to specify some maximum array size and getting away with creating an array of dynamic length below this maximum size? I thought about allocating an array of maximum length and using lax.dynamic_slice, but this throws a similar error, and seems pretty wasteful, moreover.
Right now I get around this by specifying the size K as a static argnum to jit:
@partial(jit, static_argnums=(0,))
def dynamic_array(K):
    return jnp.arange(K)

but then this recompiles for each different value of K, if I understand correctly, and seems pretty wasteful if there can be many different sizes K.
For some context, I'm doing this in the context of Russian Roulette estimators - (https://projecteuclid.org/euclid.ss/1449670853), where one can obtain an unbiased estimate of some infinite series by randomly truncating the series and weighting terms appropriately. So here K would be how many terms to evaluate in the series.

Any progress on this? This would also be useful for Bayesian nonparametric modelling.

@mattjj Would love to hear some update if u have any 🍨

AFAICT this also applies for graph NNs without padding a la https://github.com/google/flax/blob/84674691f91c210dcdbe0c144f7b37c3800fd22a/examples/graph/train.py#L60

Sorry for not providing any useful updates. Actually I didn't notice until now that this issue was getting pinged! My GitHub notifications are not organized, to say the least.
We've worked on a couple prototypes in this direction, but no solutions so far. Momentum is picking back up on this front so I hope to provide a substantial update in the next several months. (I'd love to detail and discuss all our work-in-progress ideas here, but we're pretty bandwidth-maxed right now!)
So I don't have a useful update right now, but we haven't forgotten!

Any updates? I was trying to re-implement IRM with CMNIST in Jax but kind of impossible to reproduce the original version because of this issue.

May I know if there is any update? This is a blocking issue of using JAX in dynamic environment.

One solution I ended up using is to make the shape as an additional parameter with static argname/argnum. If the number of shapes is constant, it will just recompile the function for each unique shape.


Resaving an allDay event causes error

Describe the bug
After creating an all day event you cannot save it again.
To Reproduce
The following code which just creates an event, and then saves is again works fine:
Event ev = Event(DM.defaultWriteCalendar?.id,
title: 'Test',
start: TZDateTime(DM.location, 2023, 4, 13, 12),
end: TZDateTime(DM.location, 2023, 4, 13, 13),
allDay: false
);
var createEventResult = await DM.deviceCalendarPlugin
.createOrUpdateEvent(ev);
ev.eventId = createEventResult!.data;
if (createEventResult!.isSuccess) {
print('Save successful');
} else {
String errors =
createEventResult.errors[0].errorMessage;
for (int i = 1; i < createEventResult.errors.length; i++) {
errors =
'\n- ' + createEventResult.errors[i].errorMessage;
}
print('Errors: ' + errors);
}
await Future.delayed(Duration(seconds: 2));
createEventResult = await DM.deviceCalendarPlugin
.createOrUpdateEvent(ev);
if (createEventResult!.isSuccess) {
print('Save successful');
} else {
String errors =
createEventResult.errors[0].errorMessage;
for (int i = 1; i < createEventResult.errors.length; i++) {
errors =
'\n- ' + createEventResult.errors[i].errorMessage;
}
print('Errors: ' + errors);
}
...but just changing the 'allDay: false' in the code to 'allDay: true' results in the error
Device calendar plugin ran into an issue. Platform specific exception [500], with message :"The start date must be before the end date.", has been thrown.
So trying to save a previously saved all day event does not work.
Expected behavior
That the event will be saved without error.
Screenshots
Optional, add screenshots if it helps explain your problem.
Device(s) tested
Device: iPhone 13 mini
OS: iOS 16.1.2
Plugin version 4.3.1
Flutter doctor
flutter doctor -v
[✓] Flutter (Channel beta, 3.9.0-0.2.pre, on macOS 13.2.1 22D68 darwin-arm64, locale sv-SE)
• Flutter version 3.9.0-0.2.pre on channel beta at /Library/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 0df8557c56 (3 veckor sedan), 2023-03-23 22:02:01 -0500
• Engine revision 1cc4b2d280
• Dart version 3.0.0 (build 3.0.0-290.3.beta)
• DevTools version 2.22.2
✓] Xcode - develop for iOS and macOS (Xcode 14.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 14E222b
• CocoaPods version 1.12.0
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2022.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)
[✓] Connected device (3 available)
• EnSE (mobile) • XXXXXXXX-XXXXXXXXXXXXXX • ios • iOS 16.1.2 20B110
• macOS (desktop) • macos • darwin-arm64 • macOS 13.2.1 22D68 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 112.0.5615.49
[✓] Network resources
• All expected network resources are available.
• No issues found!
Additional context
Most likely related to the issue

Proposal:
In the file device_calendar.dart, in the method Future<Result?> createOrUpdateEvent(Event? event) , add Platform.isAndroid as a condition to the line if (event.allDay == true) { so it instead reads if (event.allDay == true && Platform.isAndroid) {, because it seems this check is not necessary for iOS.

Been a while since I worked on my calendar project, and I can no longer reproduce this issue even though I have not changed the part of the code that is involved in this matter. Perhaps something fixed with the 4.3.2 update? Anyway, closing this issue.


When 'nuxt build nuxt start'  ,some browsers open pages that are garbled.

The content of the page is in Chinese,but this is not the case in the development environment.How to solve?
ps:
Browers ver:Chrome/50.0.2661.102.
nuxt ver:1.0.0-alpha.3

hi @gg343917542
Can you provide your repo or simple error example ?
thanks.
I don't have this issue in Chinese .


Problem to continue to a label

> cat t95.java
class t95 {
    public static void main(String[] args) {
        char[] c = {78, 105, 103, 101, 108, 32, 105, 115, 32, 98, 101, 115, 116};
        outer :
        for (int i = 0; i < 13; i++)
            for (int j = 0; j < 13; j++) {
                if (j > i) {
                    System.out.println();
                    continue outer;
                }
                System.out.print(c[j]);
            }
        System.out.println();
    }
}

Process cat exited with code 0
Compiled and executed in Java produces:
> javac t95.java
Process javac exited with code 0
> java t95
N
Ni
Nig
Nige
Nigel
Nigel
Nigel i
Nigel is
Nigel is
Nigel is b
Nigel is be
Nigel is bes
Nigel is best
Process java exited with code 0
BeanShell has problems with the continue:
> java -classpath /opt/bsh-2.0b5.jar bsh.Interpreter
t95.java
N
Ni
Nig
Nige
Nigel
Nigel
Nigel i
Nigel is
Nigel is
Nigel is b
Nigel is be
Nigel is bes
Nigel is best
Process java exited with code 0
Reported by: nigel_galloway
Original Ticket: "beanshell/bugs/241":https://sourceforge.net/p/beanshell/bugs/241

Confirmed still exists in 3.0.0-snapshot (a36bd52b5037ae9b442a077888a5e4874ac03ce0)

Changed to feature request, labels are not implemented yet

Tagging #377 as related

Something like this: =)
BeanShell 3.0.0-SNAPSHOT.3450
bsh % class t95 {
    public static void main(String[] args) {
        char[] c = {78, 105, 103, 101, 108, 32, 105, 115, 32, 98, 101, 115, 116};
        outer :
        for (int i = 0; i < 13; i++)
            for (int j = 0; j < 13; j++) {
                if (j > i) {
                    System.out.println();
                    continue outer;
                }
                System.out.print(c[j]);
            }
        System.out.println();
    }
}
--> $0 = class t95 :Class
bsh % t95.main({""});
N
Ni
Nig
Nige
Nigel
Nigel
Nigel i
Nigel is
Nigel is
Nigel is b
Nigel is be
Nigel is bes
Nigel is best
--> void


ImportError: cannot import name 'force_unicode'

ImportError: cannot import name 'force_unicode'
installed in my virtualenv:
bbcode==1.0.21
Django==1.8.3
django-annoying==0.8.3
django-mutant==0.1.2
django-picklefield==0.3.1
django-polymodels==1.3.1
django-registration-redux==1.2
Pillow==2.9.0
psycopg2==2.6.1
six==1.9.0
sorl-thumbnail==12.3
South==1.0.2
Unidecode==0.4.18
wheel==0.24.0
and using Python3.4.3
I just put it in the installed apps and ran pip install django-mutant; However I'm not sue if there are supposed to be other requirements?

Mutant doesn't support Django 1.8 yet. Please refer to #33.


Fix: Get copilot refresh token asynchronously

Getting copilot refresh token will freeze the process if response takes too much time.

@yetone I think this PR potentially re-introduces this bug https://github.com/yetone/avante.nvim/issues/809

If this was merged I'm pretty sure this bug is back.

https://github.com/yetone/avante.nvim/pull/935
I submitted a PR here addressing these issues. I setup a timer and a lockfile to keep the token up to date in the background in a ginle nvim instance


OnDisconnectedAsync(Exception exception) not fired (LongPooling)

Server NuGets: Microsoft.AspNetCore.App (2.1.1) include Microsoft.AspNetCore.SignalR (1.0.1)
Client NPM Packages: "@aspnet/signalr": "^1.0.4"
Client: TypeScript (Angular7)
Server: IIS Express
Operating System (Client and Server): Windows 7
Browser: Chrome
Problem: Hub method  OnDisconnectedAsync(Exception exception) not fired when:

User close Browser (or Tab)
User lost connection with internet (Chrome: F12->Network->Offline)
User refresh page

Expected behaviour: OnDisconnectedAsync(Exception exception) fired
Actual behaviour: OnDisconnectedAsync(Exception exception) not fired

Code to reproduct error (Front Agnular7) https://github.com/NightAngell/SignalRErrorReproductionFront

Code to reproduct error (Backend Asp.NET Core 2.1): https://github.com/NightAngell/SignalRErrorReporductionBackend

Steps to reproduction:
Backend

Create new Asp.Net core 2.1 project
In Startup.cs add services.AddSignalR(); and

app.UseSignalR(options =>
            {
                options.MapHub<YourHub>("/yourHub");
            });

Create YourHub : Hub
In YourHub override Task OnDisconnectedAsync(Exception exception)
Make breakpoint in OnDisconnectedAsync  (For Debugging purpose)

Frontend

Connect to server (transport:  LongPolling)
.then(()=>{ console.log("Connected!") });
Close browser or close tab or or refresh page or (Chrome) F12->Network->Offline

*Resolve CORS problem if required

Logs:
Chrome.log
ChromeNetwork.har.log
ASPNETCOREBUG.log

All logs from "Code to reproduct error"

We changed how some of this worked in 2.2 which will most likely resolve the issues you're seeing. Can you try out the nightly bits on the client and server?

I use WebSockets instead of LongPooling (on Windows 10 instead of 7 [WebSockets transport not available on win7 IIS Express]) and it work (Chrome: F12->Network->Offline dont work, but this is probably bug related to chrome tools and localhost (client and server are on localhost)*, I test it better when I deploy project to external hosting in the future [For now i write project for studies and I dont plan deploy]). I just want notify about problem, but I see this problem is known and probably resolved, then I think this issue can be closed.
*Because when is set Client as offline using chrome tools, client still can send and receive messages from server


Support [hash], [contenthash] and etc from loader-utils

Using filename: "[name]-[contenthash].css" in extract-text-webpack-plugin, i have file like app-6f8bbde7c2.css, but after using cssnano content changed and [contexthash] now is invalid.
Can we add filename option as in extract-text-webpack-plugin for changing hash or passassetName in onEnd callback (also support async callback or promise)?

You want the ability to change the assets name, is that it?

@NMFR In theory yes, in practice change content hash, because we have changed file content

OK. last-call-webpack-plugin should be abstracted from that, but changing the asset's name is a feature that makes sense.

Version v2.1.1 added this :)
var cssnano = require('cssnano');
var LastCallWebpackPlugin = require('last-call-webpack-plugin');
module.exports = {
  module: {
    loaders: [
      { test: /\.css$/, loader: ExtractTextPlugin.extract("style-loader", "css-loader") }
    ]
  },
  plugins: [
    new ExtractTextPlugin("styles.css"),
    new LastCallWebpackPlugin({
      assetProcessors: [{
        regExp:  /\.css$/,
        processor: (assetName, asset, assets) => {
          assets.setAsset(assetName + '.map', null); // Delete the <assetName>.map asset.
          assets.setAsset(assetName + '.log', 'All OK'); // Add the <assetName>.log asset with the content 'All OK'.
          return cssnano
            .process(asset.source())
            .then(r => r.css)
        }
      }],
      onStart: () => console.log('Starting to process assets.'),
      onEnd: (err) => console.log(err ? 'Error: ' + err : 'Finished processing assets.'),
      canPrint: true
    })
	]
}

I think this is related to https://github.com/NMFR/optimize-css-assets-webpack-plugin/issues/56?!
So I don't think the real issue has been solved yet, or what do you think @NMFR ?


Fix for Fortnite 11.11

I added handling for the new player type value, also added separate tracking for human/bot players

Awesome, thanks for the PR. Really like the idea of the is_player bool, but right now this information is lost because it is not read anywhere. So I'd say, lets add a model for players to models.py with 3 properties: name, guid and is_player boolean.
Then we return a new instance of that model in the read_player function, and we maintain all information we have (and need).
That do you think @stevegee58 ?

Hey @Shiqan I like your way better.  Check out the latest changes on my fork.
Also I added some weapon numbers to the enum to get rid of the pesky error messages.


(TK-250) Add 'simple' API for basic use cases

@nwolfe @dankreek curious if you have any thoughts on this?

:+1:

:+1: @nwolfe - looks like there were a couple of minor things @cprice404  still wanted to do with this - remove the one dissoc, the comment on gen-cert about the idea of adding a new arity supporting an options map, and the one typo I found.  With @cprice404 out, would you be good with us just merging this and doing a follow-up MAINT PR with the other cosmetic changes?  If so, would you have some time to do that?

...would you be good with us just merging this and doing a follow-up MAINT PR with the other cosmetic changes?

Sure, I can do that.  Remove the dissoc, fix the typo, and then add some TODO-style code comments about the options map?  Not sure it makes sense to put them in a docstring or anything, but at least the next time a developer is in there they can get the idea.
Or a JIRA ticket might be in order since the extensions support would be non-trivial.
@camlow325 preferences?

Remove the dissoc, fix the typo, and then add some TODO-style code comments about the options map? Not sure it makes sense to put them in a docstring or anything, but at least the next time a developer is in there they can get the idea.

Sounds good.  Just as a comment seems fine to me.

Or a JIRA ticket might be in order since the extensions support would be non-trivial.

Yeah. I wasn't thinking of actually implementing anything toward the options map at this point, just the TODO comment indicating that we could do that later.  Could submit a JIRA ticket about the options map idea and reference the ticket number in the TODO comment.  Not sure I'd bother with that for now, though.  Whatever you think, I'm good with.


security/acme-client: Auto Renewal of ECC certificate fails

[+] I have read the contributing guide lines at https://github.com/opnsense/plugins/blob/master/CONTRIBUTING.md
[+] I have searched the existing issues and I'm convinced that mine is new.
[+] The title contains the plugin to which this issue belongs
Describe the bug
I have two ECC certificates. One of them can be renewed without issues using either Auto Renewal, the 'Issue/Renew Certificates Now’ button or the 'Issue/Renew' button in the Commands column.
The other one can only be renewed using the 'Issue/Renew' button in the Commands column. Auto Renewal as well as the 'Issue/Renew Certificates Now’ button fail with this error message:
The domain 'example.com' seems to have a ECC cert already, please add '--ecc' parameter if you want to use that cert.
The only significant difference seems to be that the one which fails to auto renew has 'OCSP Must Staple' enabled.
Does this seem plausible?
To Reproduce
See bug description.
Additional context
Forum thread: https://forum.opnsense.org/index.php?topic=21085.0
Environment
OPNsense 21.1.r_96 (amd64, OpenSSL).
os-acme-client-devel 2.3

Auto Renewal as well as the 'Issue/Renew Certificates Now’ button fail with this error message:

@maurice-w I need some more information to understand what's happening here. Please enable debug logging in Services: Let's Encrypt: Settings. Once a new attempt was made to run auto renewal for this cert, please provide the log entries from System: Log Files: General (search for "AcmeClient"). It should include the full list of acme.sh command line arguments.
Additionally a screenshot of the cert config (Services: Let's Encrypt: Certificates) may be useful.
(Feel free to obfuscate sensitive information.)

OK, I think this is fixed in https://github.com/opnsense/plugins/pull/2226/commits/3e72b0f5b7d9d10a62e1d29e5887abce1e9d8ef2.
@maurice-w You may give it a try:
opnsense-patch -c plugins 3e72b0f5b7d9d10a62e1d29e5887abce1e9d8ef2

Thanks @fraenki, I applied the patch and we'll see what happens!
After a deep dive into the logs and config history, I now think that this issue affects all ECC certificates, is unrelated to OCSP Must Staple and was introduced with os-acme-client 2.x. Looking at your fix this seems plausible, would you agree?
The last successful auto renewal of both certificates was on 2020-11-11, a few days before the release of 2.0. At the next auto renewal on 2021-01-11, one certificate renewed while the other one failed with the ecc parameter error. Well, so I thought. Turns out the certificate which seemed to renew actually didn't. This originally was an RSA certificate which was later switched to ECC. It has since been renewed successfully multiple times. But /var/etc/acme-client/home still had a directory with the old RSA certificate (in addition to the current _ecc directory). The auto renewal on 2021-01-11 only "succeeded" because of this leftover RSA certificate with the same name. This was renewed instead of the actual ECC certificate.
(/var/etc/acme-client/home also had many certificates which have long been deleted in the GUI. Might it be a good idea to clean this up when a certificate gets removed?)

Looking at your fix this seems plausible, would you agree?

I fully agree. The bug caused all ECC cert renewals to fail.

Might it be a good idea to clean this up when a certificate gets removed?

Yes, we were not doing any cleanups for a pretty long time. os-acme-client version 1.25 added a removal feature, but it does not cleanup older certificate data. All "new" removals should not leave any traces anymore. (Well, there is one notable exception: the Let's Encrypt plugin will never remove a certificate from System: Trust: Certificates.)

The fix will be released in os-acme-client 2.4.


Enable Optimization and fix the createmindbug command, change the max…

…_length for name and Power

fix: #14


Fix titles and headings

The If statements to decide the page title and header seemed incorrect. This fixes these.

Thanks for the contribution. Which exact issue does this PR fix?

{{ site.title }} was never getting used as the title and heading. The condition if site.title == blank was never true, because blank was not in quotes. In addition, {{ site.title }} is the wrong value to use in this case.
To see the problem, try using the theme with title set as blank.

@rogerthat94, thanks for pointing this out. Looks like the bug was introduced in this commit. If that's the case, then _layouts/about.html probably has the same issue. Could you please confirm that?
On a stylistic note, how about we switch from {% if site.title == "blank" %} to just {% if site.title %} and flip the true and false branches? I just find it weird that liquid evaluates "" == "blank" to true.
And thanks again for spotting this!

We don't want to look for site.title being undefined. We want to check if it's specifically the string "blank"
See https://github.com/alshedivat/al-folio/blob/9229f7d881d215969378fdc287fdad51936037f9/_config.yml#L5
If you'd rather check {% if site.title %}, we should change _config.yml to comment out the title and say "the website title (if undefined, full name will be used instead)"


Need a way to specify timeout and retry for transaction.

Currently the entire transaction is continually retied for 24 hours according to https://github.com/googleapis/java-spanner/pull/1009.
I think this could get dataflow jobs to stuck or run for long time. Also if the transaction finally get retried successfully after 23 hours, it doesn't give any error or information for customer to debug the issue from their end.
For example, I have saw one case, transactions have been retried for 24 hours again and again due to following error and dataflow jobs gets stuck due to this :
Error message from worker: com.google.cloud.spanner.AbortedException: ABORTED: io.grpc.StatusRuntimeException: ABORTED: Transaction was aborted. Idle for over 10 seconds. retry_delay { seconds: 254 nanos: 433062132 }

Does it make sense support custom retry and timeout settings on the transaction retry?

Any latest update on this?

@yuanyuan-gl @siddharth-anvekar We've added a sample for how you can set a transaction timeout here: https://github.com/googleapis/java-spanner/blob/465df7bad12fbea7dbcf6dbabb1b29d088c42665/samples/snippets/src/main/java/com/example/spanner/TransactionTimeoutExample.java#L49
Does that work for your use case?

Please feel free to re-open if issue still persists.


feat: Organise SMP Spec according to prototool and google style guide

Description
Organise SMP Spec according to proto tool and google style guide
fixes #32
fixes #46
fixes #44
Notes to Reviewers:

All protos are made up of Google & Prototool standards.
CI has been added for protobufs.
SMP can now support languages other than go like java, ruby and objective-c.
Standard lint error and naming conventions are fixed and revamped.
Metadata is merged with traffic and application metadata.
Protos live under proto folder and spec goes into spec folder.
Prototool has been completely integrated, so now you can run commands like prototool generate, compile, lint, format and etc

Signed commits

[x] Yes, I signed my commits.

Do prototool provides breaking change detector?

Does prototool provide breaking change detector?

Yes, it is full fledged swiss army knife for protocol buffers. You may read about the commands it provides here https://github.com/uber/prototool

Every ENUM should have 0 as an unspecified field.
Reference - Protobuf style guide

Nice catch, yes enum 0 should be unspecified or invalid. Modifying the protos


Allow URLs as input to configs and checkpoints

Is your feature request related to a problem? Please describe.
Currently only system file paths are accepted for checkpoints. For inference it might be useful to have remote checkpoints
Describe the solution you'd like
Allow URLs as file paths.

I am preparing a PR.


Dry-runs: checkout the base ref and merge the head ref

All workflows will fail because the referenced merge action is not present in the main branch yet.
I'm conducting some tests and will remove the wip label once this PR is ok for merging.

Alright, this is ready!


Video play back issue on Moto G6 - [DRAFT]

User Report

By the way I found another bug @ecency, I can't full screen videos, if I do the app crashes. Using Moto G6 play)

...awaiting more issue details

Here is the details:
https://ecency.com/hive-125125/@yayogerardo/re-ecency-2021414t20550591z
above comment includes details about black screen issue on editor as well, which we should be checking.

Landscape is not currently supported on ecency mobile app. This bug is also mentioned here https://github.com/ecency/ecency-mobile/issues/2093.


GPU requirement

Do you have any recommendation on GPU requirement? What type of NVIDIA GPU and what should be the minimum GPU memory requirement?

Hi,
The type/amount of GPUs depends on the model you are trying to train. The baselines present in our README were trained on a single node with 8 NVIDIA A100 GPUs.
For participation in the challenge, there is no limit to the amount/type of GPUs which can be used.


Documentation link broken for Custom Learning tasks

I was going through the documentation of FastAi.jl and i found out Custom Learning tasks page is broken.
Looks like it should point to https://fluxml.ai/FastAI.jl/dev/docs/learning_methods.md.html, which works perfectly fine.
Currently it is pointing to https://fluxml.ai/FastAI.jl/dev/docs/learning_tasks.md.html which seems to be not correct.

Are you using the new documentation system? The docs are in the process of being moved and some old pages still remain. Can you try this link: https://fluxml.ai/FastAI.jl/dev/documents/docs/learning_methods.md/ and let me know if it works?


Added CONTRIBUTING document, dev requirements

Hello again.
I have did some further changes to make this repo look more user friendly.

Added requirements_dev.txt - it call requirements.txt under the hood, so still only one place to adjust modules for release
Added .gitattributes file - ignored requirements_dev.txt for release zip archive - the rest of repo remain zipped for a release, including all images and readmes
Added CONTRIBUTING.md guide
Referenced CONTRIBUTING.md within main README.md
Removed prospector from requirements.txt. Added prospector to requirements_dev.txt

I came to a realisation that it is better to keep readmes attached to release - what if new breaking change is introduced? For less experienced users it will be complicated to figure out which readme to use or which commands/arguments to run.

I agree with your considerations, I'm going to merge the MR.


"Get a Heart Container!" Music Doesn't Play When Collecting 4th Heart Piece

[x] I have checked checked the known issues and searched Github to ensure this issue has not already been reported.

Description of the inaccuracy:
When you collect a 4th heart piece to fill a heart container, I expect to hear the "Get a Heart Container!" music rather than the "Small Item Catch" music that ordinarily plays when getting heart pieces 1-3.
Screenshots or videos of 2Ship's behavior:
Screenshots or videos of the original hardware's behavior:

System Information:

OS: Windows 11
GFX Backend: DirectX
Game Version: 1.1.1
Rom Version: N64 USA

Additional Information:
I was looking through the code and saw this in z_player.c which appears to imply that "Get a Heart Container!" should be playing when collecting the 4th container.
            if ((this->getItemId == GI_HEART_CONTAINER) ||
                ((this->getItemId == GI_HEART_PIECE) && EQ_MAX_QUEST_HEART_PIECE_COUNT)) {
                seqId = NA_BGM_GET_HEART | 0x900;
            }

Yes, this is an authentic bug with the US version of mm, and the US version is what was decomped.
The problem happens because by the time this check is hit, the game has already given the player the heart piece, and so the quest count is already reset to 0.
I'm going to turn this into a feature request since its not a 2Ship bug.
We could add a "Fix" toggle to address this by changing the check to look for a quest count of 0 using our GameInteractor_Should hook pattern.

@Archez I decided to look into fixing this myself. So I put up a PR doing what you have suggested.


[DNS] Update link in dnssec-states.md

Related to #12653.

PCX-9632 and #12740 as well
Thanks all 👍


Apple M1 architecture

Zstd builds and seems stable on Apple M1. I'd like to provide a PR.
What would the logistics need to be? (No Actions for M1 yet on Github.)

Thanks for confirming there are not problems on M1. The current issue is the lack of M1 support on Github actions - I use the build artifacts from the GH actions (and GCC compile farm) and include them in the final jars.
Let's hope the M1 build problems get resolved sooner: https://github.com/actions/virtual-environments/issues/2187, https://github.com/actions/runner/issues/805
Another option is to cross-compile it. I have to research a little bit about this, though the latest installed xcode (12.2) should support it.

Seems like cross-compile is going to be the only option for a while, even after Github fixes that one - sbt (and most things JVM) are mostly broken. Same thing for golang and therefore Docker.

I have a build script that uses just the cc and produces the binary, I use it for cross-compiling and building on more exotic architectures. Downside is that I don't run the test suite on them.

Could you put it up on a new branch?
My exotic architecture is a 2015 MBP (sdkman -> JVMs, SBTs, scala-langs...) and a 2020 MBA ("native" homebrew -> cmake zstd))
Could it be adapted to run the sbt tests on an sbt-container image prior to packaging up the dylibs from an as-yet-nonexistent m1 action?

@jasonnerothin , looks I was able to cross-compile it with Xcode using github actions. One question, can you check the architecture folder in the JAR you compiled on M1? It should be darwin/arm64 or darwin/aarch64 or something similar. As I am cross-compiling it I don't know what will be the value for architecture in the JVM.

This program prints this output:
OS: mac_os_x arch: aarch64
Note: I'm running Azul Systems' JVM. It is the only one that runs, last time I checked.

Great, thanks. So next release should support M1.

Hmm, I will wait for https://github.com/facebook/zstd/issues/2428 to be resolved as it looks dangerous.

@jasonnerothin pushed v1.4.7-1 to maven-central,  it also contains the fix for the above bug. Can you test it?

Better try 1.4.7-3

Thank you for 1.4.7-3, but Facebook seems to release a hot fix 1.4.8.

https://github.com/facebook/zstd/commit/7c495e8ea2fd8ef39084c44e24c2f854aff2b68e

@dongjoon-hyun , yes I already have the same fix. Doesn't hurt to release also 1.4.8

Nice! Thanks for confirming, @luben !

@dongjoon-hyun , I just pushed v1.4.8-1  the only functional change is adding an assert for the buffer alignment.

This is what I'm seeing: Unsupported OS/arch, cannot find /darwin/aarch64/libzstd-jni.dylib or load zstd-jni from system libraries. Please try building from source the jar or providing libzstd-jni in your system.

Hmm, let me doublecheck

Another thing that may help is to extract the library from the jar, e.g. 'jar -xf zstd-jni.jar' and find if there is some break in the linking with ldd libzstd-jni.dylib (I hope it works the same on Mac).

created: darwin/
created: darwin/x86_64/
inflated: darwin/x86_64/libzstd-jni.dylib
...
created: linux/
created: linux/aarch64/
inflated: linux/aarch64/libzstd-jni.so

jasonnerothin@wibble x86_64 % pwd
/tmp/darwin/x86_64
jasonnerothin@wibble x86_64 % otool -L libzstd-jni.dylib
libzstd-jni.dylib:
	/Users/runner/work/zstd-jni/zstd-jni/target/classes/darwin/x86_64/libzstd-jni.dylib (compatibility version 0.0.0, current version 0.0.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1281.100.1)

@jasonnerothin , any help with the error message? It should at least have line number, but also there may be another error messages before the Unsupported OS/arch, cannot find /darwin/aarch64/libzstd-jni.dylib ... line

^^ two comments back is partial output of jzr xvf zstd-jni-1.4.5-12.jar: The dylib is going to the linux directory and the so file is ending up in the darwin directory.
^ last comment says that the dylib file is pointing to a non-existent directory.

zstd-jni-1.4.5-12 is not build for M1. I stated including the M1 native binary in the  1.4.7 (thought it was fast followed by 1.4.8).
I don't think the dylib is going the the linux directory:
$ jar tf zstd-jni-1.4.8-1.jar | grep dylib
darwin/aarch64/libzstd-jni.dylib
darwin/x86_64/libzstd-jni.dylib

I am not sure about the link to "/User/runner/..." : I don't think this is an issue as 1.4.5 was build using the old gcc toolchain and it's working. With 1.4.7 I switched the toolchain to use the xcode compiler in order to support the cross-compilation to M1.
Can you try with v1.4.8-1?

Okay, so it looks like the issue is that Apple has moved its "User Cache" to somewhere else.
otool is reporting that the darwin dylib is looking for /usr/lib/libSystem.B.dylib. find / -type f ...etc turns nothing up in the default OS.
However, installing XCode installs one for each of tvOS, iOS, watchOS.
I am symlinking to see if I can get the scala tests to run from IntelliJ.

Seems to be working with latest 1.4.9-1 - can this issue be closed?

Thanks for confirming. I am not sure where the fix came from - most probably something changed on the GH workers.
@jasonnerothin , can you confirm 1.4.9-1 is working for you also?


Space Empty Rests

A lot of my work is creating new parts from existing scores. One of Jari Williamson's plug-ins that I find extremely useful is "space empty rests" which spaces multi-measure rests proportional to their length for a more logical and visually pleasing result.
Is it possible to create a Lua script to accomplish this?
I can still use the JW plugin on Rosetta but at some point that's probably not going to be an option.
Thanks,
David
MacOS Monterey Finale 27.2

First of all, I wouldn't give up hope that at least some of the JW plugins will be updated to have Silicon support.
But if you want to play around with a script to edit multimeasure rest lengths, here is a start on one:
for mmrest in loadall(finale.FCMultiMeasureRests) do
    mmrest.Width = 192 + 12*(mmrest.EndMeasure - mmrest.StartMeasure + 1)
    mmrest:Save()
end

Salt the Width formula to taste.

Thank you, Robert! I’ll give it a go.
David

On 8 Jun 2022, at 9:45 pm, rpatters1 @.***> wrote:
First of all, I wouldn't give up hope that at least some of the JW plugins will be updated to have Silicon support.
But if you want to play around with a script to edit multimeasure rest lengths, here is a start on one:
for mmrest in loadall(finale.FCMultiMeasureRests) do
mmrest.Width = 192 + 12*(mmrest.EndMeasure - mmrest.StartMeasure + 1)
mmrest:Save()
end
Salt the Width formula to taste.
—
Reply to this email directly, view it on GitHub https://github.com/finale-lua/lua-scripts/issues/204#issuecomment-1149810243, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYGLJKMGSNIRTC2PCSST5Q3VOCBWFANCNFSM5YFQSPVA.
You are receiving this because you authored the thread.

Hey @longdistancedrummer, welcome to the repo! That's a great idea.
If you need help writing the script or adding it to this repository, let us know. We're here to help.

Hey Nick, thanks for getting in touch. I am indeed just beginning my Lua learning curve so I thought I would do your youtube tutorials and start to learn the language. But any help along the way would be greatly appreciated!

On 10 Jun 2022, at 4:01 am, Nick Mazuk @.***> wrote:
Hey @longdistancedrummer https://github.com/longdistancedrummer, welcome to the repo! That's a great idea.
If you need help writing the script or adding it to this repository, let us know. We're here to help.
—
Reply to this email directly, view it on GitHub https://github.com/finale-lua/lua-scripts/issues/204#issuecomment-1151435259, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYGLJKIWMNS52SIEEBECCZDVOIWOVANCNFSM5YFQSPVA.
You are receiving this because you were mentioned.

Hey @longdistancedrummer, I noticed it's been a month since there was an update on this thread. Everything going ok? Any issues you've run into that we can help with?

Hey Nick! Yes, thanks for reaching out. Sorry, I’ve been really busy the last month and I haven’t had time to look at it yet. And I've just noticed the next release of Finale is finally including some of the JW plugins including space empty rests, so I’m somewhat off the hook so to speak. But I am very interested to learn about Lua. Thank you for the Finale Lua website, it’s a treasure trove!

On 17 Jul 2022, at 2:16 pm, Nick Mazuk @.***> wrote:
Hey @longdistancedrummer https://github.com/longdistancedrummer, I noticed it's been a month since there was an update on this thread. Everything going ok? Any issues you've run into that we can help with?
—
Reply to this email directly, view it on GitHub https://github.com/finale-lua/lua-scripts/issues/204#issuecomment-1186393725, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYGLJKOKDVG54STJPYBFVCTVUOCIXANCNFSM5YFQSPVA.
You are receiving this because you were mentioned.

No worries! We all get really busy at times and this is a labor of love without any deadlines or required commitments. Just wanted to circle back to make sure you didn't quit because you got stuck and needed help (which it sounds like wasn't the case)!
If at any time you'd like to contribute, feel free to reach out for help! In the meantime, it is great that Finale is including several JW Plugins natively in the upcoming release.


Option for observations as RGB array

It would allow for a greater range of use cases if there was an option that could be passed to train using RGB arrays instead of only the image encodings. The readme describes a way to do this with get_obs_render, but it would be nice if it could be included as an argument.
Would you consider adding something like this?
https://github.com/planetceres/gym-minigrid/commit/9c2ae3c7a8614a69f6f22e5c86ac2c6731b03af2

I think that the cleanest way to do this would be to create a separate wrapper that just produces an RGB image, and maybe also drops the text string if you don't need it. I would create a separate wrapper rather than setting some boolean variable on the environment. If you create that, I would merge it.

Optionally dropping the text string for baseline comparisons was another priority for me, so I'm glad you mentioned that. I had started with the wrapper approach and agree it makes more sense, but I was trying to avoid creating multiple wrappers for each variant of image type along with optional text. This may not be a concern though if the observation wrappers are more meant as a temporary solution to deal with dict observations.

This makes sense to me based on the current wrapper syntax, although could use some refactoring later at some point:
https://github.com/planetceres/gym-minigrid/commit/b16c3f68a42bc973fd3851d13d3f2f1d7089b16f

I don't think the wrappers are just a temporary solution. I think different people will want different inputs for their use cases. I think it's just cleaner to separate the environment from wrappers that format the output however you want it.
I would just create an RGBImageWrapper, which doesn't flatten the image and doesn't include the text (no boolean argument).


Move phpunit back to the require-dev section

It was sneakily moved back to require in #61, without any explanation.
Also see #47, #28.

Please review @matthiasnoback @xabbuh @Soullivaneuh @pamil

I keep forgetting that PHPUnit sometimes doesn't get added as a project dependency. Since this is the case, it makes sense to have phpunit/phpunit as a dev dependency, although it's totally against the package design principles ;)

I keep forgetting that PHPUnit sometimes doesn't get added as a project dependency

Too bad comments are not allowed in json :frowning_face:

Since this is the case, it makes sense to have phpunit/phpunit as a dev dependency, although it's totally against the package design principles ;)

Couldn't agree more, I wouldn't use phpunit like that either but I have to

Cool @greg0ire, thanks for helping out and sorry for the inconvenience.

My pleasure, thanks for the new release!


Fix versioneer settings

Update _version.py to be in sync with setup.cfg so that cohorts.__version__ will show tagged releases.
Thanks to @arahuja for help debugging this.
Also adding a RELEASING.md.

@arahuja addressed comments and will merge on 🍏

Coverage remained the same at 58.788% when pulling f94c427be7199e46b5383a88db83295e6e59bc17 on fix_version into c69a3b0cac7abab380a611c082ab2a9faebe9e12 on master.

Coverage remained the same at 58.788% when pulling f94c427be7199e46b5383a88db83295e6e59bc17 on fix_version into c69a3b0cac7abab380a611c082ab2a9faebe9e12 on master.


More extensive standard framework

The goal of this task is to implement more standard functions in the STEP framework.
Currently, there are these functions:

print: prints something to StdOut
println: same as print, but appends an OS-dependent new line at the end
readline: reads from StdIn until a new line is read
typename: returns a string containing the type name of a variable (number, string, null, etc)
parse: converts between different built-in types
jsonDecode/jsonEncode: de-/encodes STEP types to and from JSON

The language could benefit greatly by providing more functions to manipulate and work with the various data types. Some of these functions include:
Proposed functions
All proposed functions need to be evaluated and discussed before they can be implemented.
For this purpose, all functions are categorized into the following categories:

mutating: functions that mutate the given subject
pure: functions that don't mutate the given subject
converting: functions that convert the given subject to another type
other: functions that don't fit into any of the above categories

Mutating functions

Function
Arguments
Return Type
Description

doReverse
string subject
void
Reverses the given string in place.

doReverse
list subject
void
Reverses the given list in place.

doSort
list subject, function compare
void
Sorts the elements in the given list using the given comparison function.

doAdd
list subject, any element
void
Adds the given element to the end of the list.

doRemove
list subject, any element
void
Removes the first occurrence of the given element from the list.

doPop
list subject
any
Removes the last element from the list and returns it.

doShift
list subject
any
Removes the first element from the list and returns it.

doUnshift
list subject, any element
void
Adds the given element to the front of the list.

doRemoveAt
list subject, number index
void
Removes the element at the given index from the list.

doRemoveAt
map subject, string key
void
Removes the element at the given key from the map.

doInsertAt
list subject, number index, any element
void
Inserts the given element at the given index in the list.

doSwap
list subject, number index1, number index2
void
Swaps the elements at the given indices in the list.

doSwap
map subject, string key1, string key2
void
Swaps the values at the given keys in the map.

Pure functions

Function
Arguments
Return Type
Description

substring
string subject, number start, number length
string
Returns a portion of the given string, starting at start and ending at end.

length
string subject
number
Returns the length of the given string.

length
list subject
number
Returns the length of the given list.

length
map subject
number
Returns the number of elements in the given map.

indexOf
string subject, string search
number
Returns the index of the first occurrence of search in subject.

indexOf
list subject, any search
number
Returns the index of the first occurrence of search in subject.

contains
string subject, string search
bool
Returns true if subject contains search.

contains
list subject, any search
bool
Returns true if subject contains search.

startsWith
string subject, string search
bool
Returns true if subject starts with search.

endsWith
string subject, string search
bool
Returns true if subject ends with search.

convert
list subject, function converter
list
Returns a new list with the results of calling the given function on each element in the given list.

filter
list subject, function predicate
list
Returns a new list with all elements in the given list that pass the given predicate.

sin, cos, tan
number subject
number
Returns the sine/cosine/tangent of the given number.

min, max
number subject, number value
number
Returns the minimum/maximum of the given number and value.

clamp
number subject, number min, number max
number
Returns the given number clamped between the given minimum and maximum.

random
number min, number max
number
Returns a random number between the given minimum and maximum.

interpolate
number min, number max, number d
number
Returns the linear interpolation of the given minimum and maximum by the given delta.

abs
number subject
number
Returns the absolute value of the given number.

floor
number subject
number
Returns the floor of the given number.

ceil
number subject
number
Returns the ceiling of the given number.

round
number subject
number
Returns the rounded value of the given number.

sqrt
number subject
number
Returns the square root of the given number.

print
any subject
void
Prints the given subject to StdOut.

println
any subject
void
Prints the given subject to StdOut and appends a new line.

readline

string
Reads a line from StdIn and returns it.

clone
any subject
any
Clones the given subject.

Converting functions

Function
Arguments
Return Type
Description

toKeys
map subject
list
Returns a list of all keys in the given map.

toValues
map subject
list
Returns a list of all values in the given map.

toJSON   (previously jsonEncode)
any value
string
Converts the given value to a JSON string.

fromJSON (previously jsonDecode)
string value
any
Converts the given JSON string to a STEP type.

toString
any subject
string
Converts the given subject to a string.

toRadix
number value
string
Converts the given number to a string in the given radix (base).

toNumber
string value, [number radix = 10]
number
Converts the given string to a number.

toBool
any value
bool
Converts the given value to a bool.

toTypename
any subject
string
Returns the type name of the given subject.

sorts the elements in a list using a comparison function

Does this sort in-place, or return a new sorted list? In the first case, it seems to clash with the behavior of reverse.
(shift and unshift also strike me as quite… specific for a standard lib.)

smoothly transitions between two numbers

I don't understand what this means.

converts a number to a given radix representation (e.g. hex)

How does this actually work? If I pass 16, does it give me a string?

(shift and unshift also strike me as quite… specific for a standard lib.)

They allow using a list as a stack/queue without adding more data types. The same functionality can be implemented with loops, but I think they are quite useful.

I don't understand what this means.

coerce is not the correct name for what I meant. interpolate would be the correct term. The function should take two numbers as bounds and a third to determine where in between the two bounds the result should lie. That is,

interpolate(0, 1, 0.5) => 0.5
interpolate(0, 100, 0.3) => 30
interpolate(-50, 50, 0.1) => -40

How does this actually work? If I pass 16, does it give me a string?

Yeah, the function only converts to string. Maybe a corresponding fromRadix function would also be useful.

They allow using a list as a stack/queue without adding more data types. The same functionality can be implemented with loops, but I think they are quite useful.
coerce is not the correct name for what I meant. interpolate would be the correct term.

These seem… useful, but quite specific for a beginner's language.

Yeah, the function only converts to string.

Gotcha.
My overall main concern here — other than how novice/advanced some of these function are — is consistent behavior based on method naming.
My guesses regarding the behavior:

mutates/in-place
returns different type

print

println

readline

typename

x

parse

x

jsonDecode/jsonEncode

x

substring

length

x

reverse

indexOf

x

contains

x

startsWith/endsWith

x

length

x

reverse

sort
x

apply

contains

x

indexOf

x

add
x

remove
x

shift
x

unshift
x

removeAt
x

insertAt
x

length

x

values

x

keys

x

contains

x

containsKey

x

sin/cos/tan

min/max/clamp

coerce

toRadix

x

In some cases, this seems straightforward to me; in others, I'm not so sure. E.g.:

if sort, add, etc. mutate, why doesn't reverse mutate?
perhaps toRadix should be toRadixString (although that's arguably quite long)

Wow, thanks for taking the time to gather all the different classifications! Looks like you guessed everything as I imagined them.
You are correct that its probably easier for new programmers if all methods either mutate the existing value or return a new value, not some mix between them.
I think the default behavior should be that a new value is returned with the requested modification. Obviously types like map or list are usually modified in place (sort, add, removeAt, etc.).
On the one hand, the language should be self-consistent and not modify with the one function but return a new value with another one, on the other hand, it should prepare and train new programmers to use functions as they appear in other languages. Maybe we should look towards other languages and how they handle these kinds of problems.

length and contains exist for multiple types. Do we
a. have the function itself check the type
b. add a disambiguation mechanism (almost like overloads) a different function is called depending on the input?

Technically its easier to have one function and simply check what was passed to it.
Argument count is checked the same way, currently.
Functions are nothing different than a simple variable, that means the first time a functions parameters are checked (count & type) is when it is invoked.

I added a printf and a readfile function.

Added a debugPrint function


Inconsistent Handling of Numeric-Looking Keys in Patch Operations

Description:
I am encountering an issue with Azure Cosmos DB where using numeric-looking keys as property names in patch operations leads to unexpected errors. This problem seems to have arisen recently and is affecting the functionality of my application.
To Reproduce

Initial Document Structure: The document structure is any JSON object where numeric-looking keys are used. For example:

{
    "MyDocument": "test",
    "123456789123456789123456789": null
}

Patch Operation: When attempting to perform a patch operation using the following code, an error occurs:

PatchOperation.Add($"/123456789123456789123456789", "test");
Error Message: The operation fails with the message:

"Token('123456789123456789123456789') has length longer than expected."

If adding any sort of letter to the patch patrh it works fine. For example works as expected
PatchOperation.Add($"/TEST_123456789123456789123456789", "test");

Expected behavior
Patch operations using both numeric-looking strings and prefixed strings as property names should work consistently without errors, similar to other string keys.
Actual behavior
The patch operation fails with an error when the key appears numeric, while it succeeds as long as there is at least 1 non number character in the string
Environment summary
SDK Version: 3.44.1
OS Version Windows development and Linux container. Both experience same issue
Additional context
This was working previously (24-48 hours ago)

Hi @mrcameron999 thank you for bringing this to our attention. We will investigate and try to resolve your issues as soon as possible.

Hi @mrcameron999 thank you for your patience. What is happening here is a result of you document structure and how patch operations work. Partial document update operations are based on the JSON Patch RFC and the property names need to include the proper escape character. However, if the target path is a valid array index, a new element is inserted into the array at the specified index. In your case, the JSON serializer thinks that your path<PHONE_NUMBER>23456789123456789 is an index not the name of the path, giving you the error. For your case you can change your Patch Operation to:
PatchOperation.Add($"/\"123456789123456789123456789\"", "test");
or
PatchOperation.Add($"/~123456789123456789123456789", "test");
Which should solve your issue. You can also read this article which should give more information about partial document updates in Azure Cosmos DB.
Please feel free to re-open this issue if the solution I gave does not solve your issue.


Make extensions theme specific

Desired path for src/extensions is src/{theme}/extensions.
Right now we have one global place for extensions which is ok for developing single themes but doesn't work good with multiple themes since it requires all of them to support all extensions so they should be theme specific

I think we should have support for both: global extensions and theme level extensions

Done with https://github.com/pkarw/vue-storefront/commit/8911093e986fb41b931a7525eaa3e324e88e1218


Need help with loading...

No matter what I do it still says loading...

Is the database and Steam API setup in all places?
Are you using the password file code or inputting the actual password? If you are using the file, make sure the file location is right.


support exit code for custom commands

I was experimenting with adding a set of validation commands to my cue configuration, in _tools.cue files. The commands they exec out to will return non-zero exit codes when those commands fail, but running them via the cue <cmd> runner eats those exit codes and always returns 0. Checking the code this doesn't appear to be something I can add to the print task.
https://github.com/cuelang/cue/blob/2b0e7cd9f63a190e762d7c802b98528ff80dcb7c/cmd/cue/cmd/custom.go#L299-L310
Is there a way of achieving this at present? Supporting passing through the exit codes would make integration of cue commands into pipelines easier.

Yes, it makes sense to at least return a non-zero error code on failure. To what extent does it need to be the same code? As there may be multiple tasks executed concurrently, returning the code of the failed first task may result in indeterministic behavior, so simply returning 1, for instance, may be a better approach.

Agreed, returning 1 makes sense in all the cases I have in mind.

Thanks, just tested this out and this works for me. Appreciated.

This issue has been migrated to https://github.com/cue-lang/cue/issues/30.
For more details about CUE's migration to a new home, please see https://github.com/cue-lang/cue/issues/1078.


taze.config.js no longer working since v0.13.9

Describe the bug
Since v0.13.9 (also v0.14.0) taze does no longer pick up my config file. Downgrading to v0.13.8 resolves this issue. I'm running it in a monorepo using yarn workspaces.
UPDATE: Seems to be caused by the bump of unconfig to v0.4, adding the resolution fixed it for me:
  "resolutions": {
    "unconfig": "0.3.13"
  }

package.json
{
  "name": "root",
  "workspaces": [
    "apps/*",
    "packages/*",
    "backend",
    "infra"
  ],
  "scripts": {
    "deps:upgrade": "taze -w",
  },
  "devDependencies": {
    "taze": "0.13.9"
  },
  "packageManager"<EMAIL_ADDRESS>}

taze.config.js
import { defineConfig } from 'taze'

export default defineConfig({
  exclude: ['@aws-sdk/*', '@types/node'],
  install: false,
  packageMode: {
    typescript: 'major',
  },
  recursive: true,
})

Reproduction
install v0.13.9 or 0.14.0
System Info
System:
  OS: Windows 11 10.0.22631
  CPU: (20) x64 12th Gen Intel(R) Core(TM) i7-12700K
  Memory: 15.03 GB / 31.75 GB
Binaries:
  Node: 20.14.0 - C:\Program Files\nodejs\node.EXE
  Yarn: 4.3.1 - ~\AppData\Roaming\npm\yarn.CMD
  npm: 10.7.0 - C:\Program Files\nodejs\npm.CMD
  pnpm: 7.26.3 - ~\AppData\Local\pnpm\pnpm.EXE
  bun: 1.1.8 - ~\.bun\bin\bun.EXE
Browsers:
  Edge: Chromium (126.0.2592.81)
  Internet Explorer: 11.0.22621.3527

Same issue in Linux GitHub Actions Runner using node v20.12.1

Used Package Manager
yarn
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guide.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
[X] The provided reproduction is a minimal reproducible of the bug.

Contributions

[ ] I am willing to submit a PR to fix this issue
[ ] I am willing to submit a PR with failing tests (actually just go ahead and do it, thanks!)

Could you share a minimal reproduction (after trying the latest version)? I couldn't help without knowing that's the error and what causes it.

Reproduction repo

Seems to be an upstream issue of tsx which is dependent by importx for importing TS file.
tsImport results are various from whether type: "module" is set or not.
I filed an issue against it.
https://github.com/privatenumber/tsx/issues/611
And there is a minimal reproduction for this issue:
https://github.com/ntnyq-dev/repro-tsx-esm-api

yup broken for us too , on the latest version
really awesome tool btw!!! @antfu

v0.16.2 should fix it - let me know if it doesn't. Thanks.

legend 🙏  thanks!!


merge package template from Kronos-Tools/npm-package-template

.travis.yml

chore(travis): merge from template .travis.yml

Coverage remained the same at 80.22% when pulling b16a5640717982ecdc13b0316bb2e846154dcd2e on template-sync-1 into 60c620bbbab5f0b13f3a20e9daba4038fbf39e8d on master.

Codecov Report

Merging #171 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #171   +/-   ##
=======================================
  Coverage   84.21%   84.21%
=======================================
  Files           1        1
  Lines          57       57
=======================================
  Hits           48       48
  Misses          9        9

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 60c620b...b16a564. Read the comment docs.


[FEATURE] App Header Cleanup

Detailed description
New design mocks to simplify header

Context
Simplifies navigation and strip outs some of the antd in favor of Tailwind
Possible implementation
No response
Additional information
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

Closing this issue now. Thanks for your contributions 🎉


fix processing text and remove deleting catalog

fix typo and remove deleting of catalog for development tooling

/lgtm


Add notification for burners going into random timer phase

Closes #11229
Added a notification that fires for each burner 5 seconds before they go into the random timer phase.
Positions added to all config items so that I could group the burner related bits together.

This is finally ready :)


nsc-event-android-2-67-Homepage-UI

resolves #67

I'm getting an error when attempting to run the code. It's coming from this page. I think since you added eventVisibility in the Event data class, the line where the error is thrown is expected a boolean value for the eventVisibility parameter

you can disregard my comment. I just noticed you fixed this in a later pr

@TroyFPV48 What's the status of this PR? If it is ready, I think we should resolve the conflicts and mark it as ready for review.
Here's a helpful doc for resolving conflicts just in case:
https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/addressing-merge-conflicts/resolving-a-merge-conflict-on-github

sorry the recent commit was supposed to be pushed on another branch for issue 50, please ignore this code for now.

sorry the recent commit was supposed to be pushed on another branch for issue 50, please ignore this code for now.

@TroyFPV48 Should we revert this back to a draft? Will you continue to work on this PR and make another push at some point?

@TroyFPV48 @Robel-003 sorry to keep bringing this one up but the more I look at, the more I think we should just close this unless there is a major update for it. My reasoning is that it already has conflicts and reverts the variable names we just changed. It's only 7 lines of code so I think we would be better off just making a new branch from main if we wanted to use those lines or pursue the issue that this accomplishes.

@TroyFPV48 It looks like we have 1 CodeFactor issue that we have to take care of:

and then we just have to resolve the merge conflicts.
helpful doc for resolving merge conflicts: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/addressing-merge-conflicts/resolving-a-merge-conflict-on-github

@TroyFPV48 This PR looks like it is targeting the entire user story #67 but doesn't appear to target either of the issues that are within that user story. For instance, navigation bar is not possible yet because it has not been implemented. The only issue that can be worked on for now is the one for better visuals for the heading and font. I suggest we close vs. merge this PR and create separate issues and PR's that relate back to user story #67. @Robel-003 @Seiyaroo

Closing this PR with @TroyFPV48's permission. We will create new issues and PR's to relate to user story #67.


Fix dependency documentation

The input should be a list of strings, not a single string.
JIRA: PDC-1029

looks good~, +1


Porting to CMake + MSVC

I started porting lacenet to CMake and MSVC. Everything compiles under Visual Studio 2015 and I get a resulting lacenet.lib, but I still haven't gotten the test client/server executables to link - I'm pretty sure it's just a matter of linking all the right libraries. I'll keep trying and let you know when I get them to work.
I had to make a few awkward adjustments to the code to get it to compile under MSVC in C++ mode, and I haven't checked that it all still compiles properly on other platforms. Let me know what needs to be fixed.

Thanks, much appreciated - it looks good so far!  I've had no time at all to work on lacewing/lacenet recently so it's great to see some effort to get it all up and running again.


[Microsoft.StorageSync] Update 2020-09-01 API version with change enumeration details.

@anpint, could you please address above comments?

@anpint, could you please address above comments? We'll close this PR if there's no response from your side within two weeks, thanks.