Raw queries exception error message do not include "code snippet"

Compare these error messages for prisma.$queryRaw and prisma.user.findMany():
C:\Users\Jan\Documents\throwaway\10141>node script.js
PrismaClientInitializationError:
Invalid `prisma.user.findMany()` invocation in
C:\Users\Jan\Documents\throwaway\10141\script.js:8:36

   5 async function main() {
   6
   7   try {
→  8     const data = await prisma.user.findMany(
  Can't reach database server at `example.org`:`123`

Please make sure your database server is running at `example.org`:`123`.
    at cb (C:\Users\Jan\Documents\throwaway\10141\node_modules\@prisma\client\runtime\index.js:38508:17)
    at async main (C:\Users\Jan\Documents\throwaway\10141\script.js:8:18) {
  clientVersion: '3.4.2',
  errorCode: undefined
}

and
C:\Users\Jan\Documents\throwaway\10141>node script.js
PrismaClientInitializationError:
Invalid `prisma.queryRaw()` invocation:

  Can't reach database server at `example.org`:`123`

Please make sure your database server is running at `example.org`:`123`.
    at cb (C:\Users\Jan\Documents\throwaway\10141\node_modules\@prisma\client\runtime\index.js:38508:17)
    at async main (C:\Users\Jan\Documents\throwaway\10141\script.js:8:18) {
  clientVersion: '3.4.2',
  errorCode: undefined
}

Note how the raw error does not include the "code snippet".
(The missing errorCode is reported in https://github.com/prisma/prisma/issues/10229)

(Might already have been fixed by a recent PR from @SevInf)

This is still the case, the stacktrace information for raw queries has no useful information because it is obstructed by the proxies we use for prisma.<model>.<method>.


Magic get is in Nette 2.4 deprecated. Changing to getter.

In Nette 2.4 is magic get deprecated. Changed it to getter.

Thanks!


log entry for failed log in logs to info and default

should only log to info

this references that the logger writes to the files info.log and default.log


backup-mysql.sh with success,while extra-mysql.sh excute failed due to the 'Invalid key length'

Hello @imchairmanm
Thanks for your work,I found this repo from a digitalocean blog.
I can regularly use backup-mysql.sh do backups.but when i try to extra the backups with the follow error.
+ for file in '"${@}"'
++ basename full-01-19-2018_00-06-09
+ base_filename=full-01-19-2018_00-06-09
+ restore_dir=./restore/full-01-19-2018_00-06-09
+ printf '\n\nExtracting file %s\n\n' full-01-19-2018_00-06-09.xbstream

Extracting file full-01-19-2018_00-06-09.xbstream

+ mkdir --verbose -p ./restore/full-01-19-2018_00-06-09
mkdir: created directory './restore'
mkdir: created directory './restore/full-01-19-2018_00-06-09'
+ xbstream -x -C ./restore/full-01-19-2018_00-06-09
+ xtrabackup_args=("--parallel=${processors}" "--decrypt=AES256" "--encrypt-key-file=${encryption_key_file}" "--decompress" "--R")
+ xtrabackup --parallel=1 --decrypt=AES256 --encrypt-key-file=/home/disk/backup/mysql/encryption_key --decompress --R --target-dir=./restore/full-01-19-2018_00-06-09
xtrabackup version 2.4.9 based on MySQL server 5.7.13 Linux (x86_64) (revision id: a467167cdd4)
180122 21:58:57 [01] decrypting and decompressing ./ib_buffer_pool.qp.xbcrypt
encryption: both encryption key and key file specified.
encryption: unable to set libgcrypt cipher key - User defined source 1 : Invalid key length
^M^M                                                          ^M^Mqpress: Unexpected end of source file -- try the -R flag to recover
Error: decrypt and decompress thread 0 failed.

The ^M^M sign in the log seems strange
I generate key use this command
echo -n $(openssl rand -base64 24) > encryption_key
And the key file
$ cat -A  encryption_key
b0E7yOAealJmGCWKqc4s5PR+9t1FL1Sp

This will help
Basically --encrypt-key-file=keyfile does not work
replace with
--encrypt-key=key in both file and it will work
Complete details given here.
https://www.digitalocean.com/community/tutorials/how-to-configure-mysql-backups-with-percona-xtrabackup-on-ubuntu-16-04?comment=66343

@the-yadu
Thanks so much,Actually i already write my encrypt-key in the script,just like you say.
The reference is very helpful.


Is it possible to access Pango GlyphItem fields?

Hi, I am currently trying to use pango for layout typography and get the data to render text with skia.
I think I need to access the struct GlyphItem which is returned by a proc
// The struct in Gtk docs
struct PangoGlyphItem {
  PangoItem        *item;
  PangoGlyphString *glyphs;
};

# pango.nim
# nim bindings I need that returns GlyphItem
proc getRun*(self: LayoutIter): GlyphItem =
  new(result, gBoxedFreePangoGlyphItem)
  result.impl = pango_layout_iter_get_run(cast[ptr LayoutIter00](self.impl))
  result.ignoreFinalizer = true

proc run*(self: LayoutIter): GlyphItem =
  new(result, gBoxedFreePangoGlyphItem)
  result.impl = pango_layout_iter_get_run(cast[ptr LayoutIter00](self.impl))
  result.ignoreFinalizer = true

# pango.nim
# typedefs
type
  GlyphItem00* {.pure.} = object

  GlyphItem* = ref object
    impl*: ptr GlyphItem00
    ignoreFinalizer*: bool
# ....
type
  Item00* {.pure.} = object
  Item* = ref object
    impl*: ptr Item00
    ignoreFinalizer*: bool
# ....
type
  GlyphString00* {.pure.} = object
  GlyphString* = ref object
    impl*: ptr GlyphString00
    ignoreFinalizer*: bool

Is it possible to obtain PangoItem and GlyphString from GlyphItem? How?
Sorry, maybe this is obvious but Im new to Nim and bindings

Thanks for testing.
Unfortunately I do know not much about Pango, and a short Google search does not really help. Pango seems to be complicated. We should be able to draw pango text on cairo contex with gintro, I think I have seen simple examples for that task somewhere. But advanced Pango stuff may be hard. Generally for most GTK related libs we do not have to access fields of structs directly, as procs are available for that access. In early versions of gintro we generated all the fields for structs, so low level access was basically possible, like myNimObj.impl.fielda. But such field access was generally   discouraged in API docs, and nobody used that, so we finally decided to not generate fields any more at all. For Pango that may be different. We can again generate fields for Pango or we can provide special, manually created procs for accessing these fields. Currently I can not do this, because I do not understand Pango well. (And well understanding is needed, as we have to care for memory management -- when we access a field which is again an object, do we make a copy, do we have to increase ref counter, how do we free allocated memory?)Google search provides no examples in higher level languages, so it may be mostly used from C only, and maybe Pango internals are only used by Pango core devs at all. So I would suggest you not using gintro for that now, maybe better use C. (There is also the oldgtk3 Nim module still available, I used that for my NEd texteditor years ago. That module is low level and allows field access.) When you have working C code, we should be able to understand it and do the same from Nim.
Generally I have seen a closer connection of Pango to Cairo than to Skia. Do you have Nim bindings for Skia already?
Generally for Glyph rendering you may contact an active Nim dev called treeform, he seems to work in this area, see
https://github.com/treeform

This is not a common task indeed, is rather an experiment Im doing. I want to use skia as it can draw using opengl and cario-opengl-backend seems not to be so fast. I got skia working on GtkGLArea with the bindings at https://github.com/mvenditto/nimskia, they are not finished but my plan is to contribute filling gaps if I can.
Skia does not provide text layouting, so the docs says its often used with HarfBuzz, but no examples, no bindings for nim either. I thought using pango might be ok because it gets the active config from gtk, but its not an easy task, at least not common, I only found a Proof of Concept in Rust and nothing more.
I think I will ask treefrom if I can resuse part of https://github.com/treeform/typography as it seems to cover also text rendering in the same module


Fix annotator field lookup

Previously, if a message had two fields with similar names, there was a risk that the annotator plugin would annotate both fields (with @Internal, @SPI, etc.) instead of only one field.
For example:
message Container {
    string spi_field = 1 [(SPI) = true];
    string not_spi_field = 2;
}

When annotating methods of Container class, both spi_field and not_spi_field accessors would be annotated with @SPI (since "not_spi_field".contains("spi_field")).
In this PR we fix this issue by specifying the method names explicitly.

@armiol, PTAL.

@armiol, PTAL again.


Add blockwise example with ragged size outputs

There aren't many examples of doing something to chunks of a dask array with a function that returns ragged size outputs. This example could help with that.

[x] Tests added / passed
[x] Passes black dask / flake8 dask / isort dask

Maybe this isn't a good example after all. Or, maybe I'm doing something silly when I try to extend this ragged example to 2D input chunks. Can someone anyone give me a hint for what I'd do for this kind of input?
x2 = da.from_array(np.random.randint(0, 3, size=(6, 9)), chunks=(3, 3))

My task graphs don't seem to have an independent task per chunk, which is why I think I'm doing something wrong.
I've tried adding .ravel() to the block input inside my greater_than_zero function, as well as trying to dump the output in a new axis with new_axes={'z': np.nan}`

I think this is a bad example, I can't show it generalizing well to ND arrays with multiple chunks along each dimension. (I'm not saying that can't be done, just that I haven't shown it well & so I think on balance it's better not to include in the docs)


Always set CONTENT_TYPE for non-GET requests

...even when no parameters are provided (or the provided parameters are nil)
The long story:

https://github.com/rack-test/rack-test/pull/132 changed the behavior for HTTP DELETE requests to behave like GET: put the parameters in the query string, and don't set the Content-Type. This change was merged in https://github.com/rack-test/rack-test/commit/d016695d84dd2e9b09eb77e5a89ffcbc1892921a
This broke rack-test for certain people, which was highlighted in https://github.com/rack-test/rack-test/issues/200. Arguably, the change incorporated in https://github.com/rack-test/rack-test/commit/d016695d84dd2e9b09eb77e5a89ffcbc1892921a was too brutal.
https://github.com/rack-test/rack-test/pull/212 tried to sort it out, by not setting Content-Type if params are nil, and also reverting the change to put DELETE parameters in the query string. The first part of this (params being nil) caused issues for certain people.

So this PR now tries to once and for all sort this out by:

Always setting env['CONTENT_TYPE'], even when params are nil.
Adding more tests for how CONTENT_TYPE and CONTENT_LENGTH should behave; some of this does not come from us, but from Rack upstream.
Settles with the discussion in https://github.com/rack-test/rack-test/pull/220: if you are using DELETE and must use query params, put them manually in there like this: delete '/foo?bar=baz'. Arguably not very clean, but better than changing back and forth. params are overloaded in rack 0.x and will be so in 1.0 also. I am thinking that we should go with the excellent suggestion provided by @malacalypse in #200 to use dedicated body and params parameters in the long run (and probably use keyword parameters instead, but that's definitely a 2.x feature since it breaks all existing usage.) For now, I think we'll live with the ugliness.

I encourage everyone to give this a try before we merge, to ensure we don't have to revert once more. I plan on waiting with the merge until sometime next week because of this.
Ping @mwpastore @junaruga @scepticulous @barthez @rafaelfranca @tpltn @joshashby et al.

Oh, and one more thing: if you need the behavior in #132, to not have the Content-Type set for DELETE requests - please change your code to check if Content-Length is zero. If it is, don't try to parse the request body. Because of the slight pain these changes have inflicted on the community, I will refuse further PRs that tries to reintroduce that behavior; if this causes problems for you, it's unfortunately your code or app that has to change. Each version of rack-test released gets downloaded hundreds of thousands of times, so it is actually good thing if it doesn't move too fast. (but, as implied above, I'm hoping we can release a clearly-marked-as-such version 2.0 at some point with some nice improvements that do break a bit of b/c)

I confirm this PR fix my issue.

This fixes things for me as well, although I originally came across these issues as a result of encountering these issues through the rspec_api_documentation gem. I am unable to get this to play nice with the latest rspec_api_docuementation (5.1.0), although version 0.7.0 works in case anyone else encounters this (otherwise follow this issue for it https://github.com/zipmark/rspec_api_documentation/issues/342).


Zstd decompression fails due to unknown frame content size

Neuroglancer appears to be having difficulty decompressing a Zstd compressed dataset:
https://neuroglancer-demo.appspot.com/#!https://s3proxy.janelia.org/shroff-public/shroff_20220523_Janelia_embryo2/20220523i_Janelia_embryo2_OTO_6x6x6nm_2xbin.zstd.zarr/s6/ng.json
The Google Chrome developer tools console reports the following error:
Error retrieving chunk [object Object]:0,0,0: Error: Invalid typed array length:<PHONE_NUMBER>

Raw or Gzip compressed Zarr v2 datasets seem to load just fine:
Raw compressed Zarr v2 dataset:
https://neuroglancer-demo.appspot.com/#!https://s3proxy.janelia.org/shroff-public/shroff_20220523_Janelia_embryo2/20220523i_Janelia_embryo2_OTO_6x6x6nm_2xbin.raw.zarr/s6/ng.json
Gzip compressed Zarr v2 dataset:
https://neuroglancer-demo.appspot.com/#!https://s3proxy.janelia.org/shroff-public/shroff_20220523_Janelia_embryo2/20220523i_Janelia_embryo2_OTO_6x6x6nm_2xbin.gzip.zarr/s6/ng.json
The value<PHONE_NUMBER> corresponds to the 32-bit value 0xFFFFFFBA. The 64-bit value 0xFFFFFFFFFFFFFFBA corresponds to the Zstd error code for "Destination buffer is too small".
The dataset was encoded by Tensorstore 0.1.62 via conda-forge package with build number py312h7e2185d_0 and zstd version 1.5.6 ha6fb4c9_0

This Zstandard compression works:
https://neuroglancer-demo.appspot.com/#!https://s3proxy.janelia.org/shroff-public/shroff_20220523_Janelia_embryo2/20220523i_Janelia_embryo2_OTO_6x6x6nm_2xbin.zstd.zarr.mark/s6/ng.json
The problem is that ZSTD_getFrameContentSize returns 0xffffffffffffffff for the chunk encoded by Tensorstore. This is because the streaming API is used and ZSTD_CCtx_setPledgedSrcSize is not used to hint the content size. Therefore, the content size is not encoded in the header. The following chunk at the URL contain does not have a encoded content size in the header.
https://neuroglancer-demo.appspot.com/#!https://s3proxy.janelia.org/shroff-public/shroff_20220523_Janelia_embryo2/20220523i_Janelia_embryo2_OTO_6x6x6nm_2xbin.zstd.zarr.mark/s6/0/0/0.bad
A chunk with a correctly encode content size in the header is located at the following URL:
https://neuroglancer-demo.appspot.com/#!https://s3proxy.janelia.org/shroff-public/shroff_20220523_Janelia_embryo2/20220523i_Janelia_embryo2_OTO_6x6x6nm_2xbin.zstd.zarr.mark/s6/0/0/0.good
numcodecs.js does not handle the return value of Zstd_getFrameContentSize properly. It passes the unchecked value directly to malloc.
https://github.com/manzt/numcodecs.js/blob/b9a8ca932240a6de9ad6c00f9820ab5e6bbca4c1/codecs/zstd/zstd_codec.cpp#L28-L29
Suggested actions for remediation:

Neuroglancer should communicate the expected chunk size to decoding codecs. Chunk data should not be able to dictate the destination buffer size without constraint.
numcodecs.js should correctly handle ZSTD_CONTENTSIZE_UNKNOWN and ZSTD_CONTENTSIZE_ERROR rather than just passing the result to malloc.
Tensorstore should encode the content size in the Zstd header by using ZSTD_CCtx_setPledgedSrcSize

This Zstandard compression works:
https://neuroglancer-demo.appspot.com/#!https://s3proxy.janelia.org/shroff-public/shroff_20220523_Janelia_embryo2/20220523i_Janelia_embryo2_OTO_6x6x6nm_2xbin.zstd.zarr.mark/s6/ng.json
The problem is that ZSTD_getFrameContentSize returns 0xffffffffffffffff for the chunk encoded by Tensorstore. This is because the streaming API is used and ZSTD_CCtx_setPledgedSrcSize is not used to hint the content size. Therefore, the content size is not encoded in the header. The following chunk at the URL contain does not have a encoded content size in the header.
https://neuroglancer-demo.appspot.com/#!https://s3proxy.janelia.org/shroff-public/shroff_20220523_Janelia_embryo2/20220523i_Janelia_embryo2_OTO_6x6x6nm_2xbin.zstd.zarr.mark/s6/0/0/0.bad
A chunk with a correctly encode content size in the header is located at the following URL:
https://neuroglancer-demo.appspot.com/#!https://s3proxy.janelia.org/shroff-public/shroff_20220523_Janelia_embryo2/20220523i_Janelia_embryo2_OTO_6x6x6nm_2xbin.zstd.zarr.mark/s6/0/0/0.good
numcodecs.js does not handle the return value of Zstd_getFrameContentSize properly. It passes the unchecked value directly to malloc.
https://github.com/manzt/numcodecs.js/blob/b9a8ca932240a6de9ad6c00f9820ab5e6bbca4c1/codecs/zstd/zstd_codec.cpp#L28-L29
Suggested actions for remediation:

Neuroglancer should communicate the expected chunk size to decoding codecs. Chunk data should not be able to dictate the destination buffer size without constraint.

Agreed in the typical case when the size is known, but with zarr v3 chained codecs, or future support for variable-length strings, that isn't always possible.

numcodecs.js should correctly handle ZSTD_CONTENTSIZE_UNKNOWN and ZSTD_CONTENTSIZE_ERROR rather than just passing the result to malloc.
Agreed.
Tensorstore should encode the content size in the Zstd header by using ZSTD_CCtx_setPledgedSrcSize
Agreed when possible.

https://github.com/manzt/numcodecs.js/pull/47 was merged earlier today and released as v0.3.2. This includes Zstd stream decompression capability that does not require a known frame content size in the Zstd header.

@jbms I helped to address point 2 above by implementing streaming decompression in numcodecs.js 0.3.2. Bumping the version as in #639 would help alleviate the immediate problem of neuroglancer not being able to read some datasets created by tensorstore.
Let me know if you think more needs to be done there. Next, I was going to try to dig into point 3 to figure out why the pledged size is not making it into the frame header when tensorstore uses Zstandard.

This issue actually exists in tensorstore only with zarr v2, and n5, but not with zarr v3.  The internal API in tensorstore used for zarr v2 codecs does not easily allow the pledged size to be set, but I am planning to refactor to eliminate the separate zarr v2 codec implementations and use the zarr v3 codec implementations instead (which provide a way to propagate the known size information); that will fix the issue for zarr v2 and n5.


ISSUE 26: Improve history entries saving

Currently, the way I handle how to save the fights works for a simple rendering, but when the app scales, it will get difficult to render doing several forEach and find to sort history entries by date.
So, after thinking about it for a while, I came with a plan to update the way I save the history entries.
This is the first of at least 3 issues related with making this update, for now, focus on:

Refactoring the way you save historyEntries to use a separated state, that will have this structure:

const historyEntries = {
	"2024-10-09": [
	      {
        date: "2024-10-09",
        rivalId: "a0c5d418-9894-4ecf-8b98-d5fcabc2aa25",
        character2: "Scorpion",
        character1: "Subzero",
        win: true,
      },
]
}

Do the update of the types related and just focus on fixing the errors when rendering existing fights (Not the new ones logic)

As a guide, you can use something like this to render the historyEntries values:
import React from 'react';

const HistoryComponent = ({ historyEntries, rivals }) => {
  return (

      {Object.keys(historyEntries).map(date => (

{date}

            {historyEntries[date].map(entry => {
              // Busca la información del rival usando su ID
              const rival = rivals.find(r => r.id === entry.rivalId);
              return (
                <li key={`${date}-${entry.rivalId}`}>

                  {rival.nickname} - {entry.character1} vs {entry.character2} - {entry.win ? 'Win' : 'Loss'}

              );
            })}

      ))}

  );
};

export default HistoryComponent;

This first issue is fixed in the linked PR


fix: 'jitter' caused by scrollbar of Dialog.

Description
This is react-remove-scroll-bar‘s issue, the page will be offset to the left due to the paddingRight:15px of the body when opening the dialog, this will give the user the feeling of page jitter.
https://user-images.githubusercontent.com/37520667/169689287-7bf80d8d-bb2f-4d7d-882d-7e1fa39dd367.mov
How
Set body padding-right 0 when opening Dialog.
Test
https://user-images.githubusercontent.com/37520667/169689304-f16d440b-b37e-45d5-960b-13f62724898a.mov

hey, thanks for that!
Yeah RainbowKit uses react-remove-scroll, which depends on react-remove-scroll-bar
so is this something that should be fixed by the dependency? i'm just curious because we also use react-remove-scroll on the Radix Dialog and this issue isn't present. It sets the padding-right: 0 on the body. Do we know when this issue was introduced?
Radix uses 2.4.0 and RainbowKit 2.5.3

Hey @peduarte!
this is a sequence issue, padding-right are updated when you open the Dialog, use react-remove-scroll v2.4.0 still has this issue, I tried.
Radix did some special treatment, you can see this, but I didn't try carefully.
I think setting the body paddingRightn:0 first can solve the current issue, react-remove-scroll's author is also currently working on this issue. ( It would be better if it could be the same as Redux)

thank you for looking into this!
let's wait for this.

This issue was fixed in react-remove-scroll v2.5.4, and we've just rolled out the update in RainbowKit v0.3.1.


add From/Into method for privatekey,publickey,signature

add From/Inot method for privatekey,publickey, signature


Groups of People

We should have a model for Groups of people. I guess users should also be allowed to indicate that individual Persons are part of a group.

Related to this: the Role model now accepts only one Person. It makes sense to make it accept multiple instances of Person and PersonGroup (or whatever we decide to call the groups of people.

It makes sense that Role only accepts one person - if multiple people are involved in an action, they each have their own Role (though the nature of the role can be the same for multiple actors).

We are going to keep the same Person model for this, but rename it to Agent. The model needs an additional field is_group. We can then also add another value for Gender (mixed), which should only be selected if is_group is set to True. Fields such as PersonDateOfBirth and PersonDateOfDeath are not relevant for groups.


Fix for "Access-Control-Allow-Credentials" is "true"

cors-anywhere does not work if credentials are passed in the requested:
If "Access-Control-Allow-Credentials" is "true" --> "Access-Control-Allow-Origin" cannot be "*"
https://github.com/Rob--W/cors-anywhere/issues/330

Coverage decreased (-0.4%) to 99.576% when pulling fac9031ea5eaf3f5ba275a8275df17bd72c17aab on msa0311:master into 9f1af8243463ab71b63b889fff5606bd908f36cc on Rob--W:master.

Thanks for the PR, but I'm closing it because it degrades security as explained in https://github.com/Rob--W/cors-anywhere/issues/330#issuecomment-790608931


Machine win-2 is dead.

Is there an existing issue for this?

[X] I have searched the existing infra issues

Type of Request
infra task
Infrastructure Environment
LUCI, Github, Cocoon scheduler, Autosubmit, etc...
What is happening?
Machine win-2 is dead.

Steps to reproduce
Step 1:
Step 2:
..
Step n:
Expected results
I expect to see X when Y is finished.

Machine win-2 was hung and required reboot.


h36m_mask.zip

Hi, I follow your link to download H36M dataset from I2L repo. But the h36m_mask.zip is not found there.
Could you please provide a link to the h36m_mask.zip?
Thanks

Hi, you can find it on Google drive given in README.


no buildable Go source files in gopacket/afpacket

I am trying to build https://github.com/bisrael8191/sniffer and it says:

no buildable Go source files in gopacket/afpacket

I have it included correctly, but as there is no main() in that package, i cannot build it. Whats the procedure here?

go get -d github.com/google/gopacket/afpacket
From the docs:

The -d flag instructs get to stop after downloading the packages; that is, it instructs get not to install the packages.

https://github.com/google/gopacket/blob/master/afpacket/afpacket.go#L7
afpacket is a Linux kernel feature, so we don't bother to build anything if you're not building on a Linux machine.  What OS are you building on?

The mentioned project directly depends on afpacket, and the error can only happen on non-linux (due to afpacket only supporting linux).


Calling Waku.stop does not clear all timers

This is a bug report
Problem

Calling Waku.stop does not clear all timers, thus preventing a process from exiting, or otherwise finishing, immediately and eventually allowing use of closed connections and throwing.
Source:
// example.js
/**
 * Source code example
 */

'use strict'

const { Waku } = require('js-waku')

;(async () => {
  const waku = await Waku.create({
    bootstrap: {
      default: true,
    },
  })
  await waku.waitForRemotePeer()

  await waku.stop()
})()

Run:
node example.js

js-waku: 0.24.0
node: 16.13.1
Proposed Solutions

On Waku.stop, call clearInterval for all pingKeepAliveTimers and relayKeepAliveTimers.
Notes

Relates to https://github.com/libp2p/js-libp2p/issues/939, as the peer:disconnect event is never emitted and a single peer's timer cannot be cleared. However, in case of multiple peers even that event would not help, because in that case it is supposed to be fired only for the last closed connection.

Thanks! How did you notice?

Thanks! How did you notice?

@D4nte
Tldr: debugger within vscode would not exit.
I was doing a small research on what events a client should implement in terms of connectivity (eg. connected, disconnected, errors), how it should indicate its states to users and how it should clean up after itself.
I'd expect Waku to handle and propagate some of those events, but that's something I'd like to discuss some other time. But about the cleanup, vscode's debugger nor node would exit, so I used wtfnode.dump() to see what was blocking.


update apktool.bat

to work even without java_home defined . i tested many times and all those options work.
i left uncommented the line to work with any jdk present.

i dont know why but in my pc im adding java_home to path but it does not get recognized. already restarted IDE's and cmd but no fix. i've also not restarted windows yet  because thats too much still open here. maybe thats the problem.
but anyway this makes it more resilient to work in enviroments that had java just installed, and because of that it may probably be more resilient to work in vm's, dockers and alike.

i just restarted the pc - actually energy fall , and its not working even with the changes now.

just saw that JAVA_HOME was not being set because it needed to be in "" for program files having space in the path


apply called after stopOnError

apply is called after stopOnError. Example:
highland([new Error('foo')])
  .stopOnError(function () {})
  .apply(function (x) {
    console.log('I should not be called.');
  });

In this case x comes through as undefined.

This isn't a bug. You're calling apply on an empty stream, so no arguments are begin passed to your callback function. This is the same situation as
_([]).apply(function () {
    console.log('I will be called.');
});

Maybe what you want is each?

Thanks, that makes sense. Do you think a note on the docs highlighting this use case would be helpful?

I'm always happy to add clearer docs. What do you have in mind? Something
like this?

f will always be called, even when the stream is empty.

Or are you talking about a pointer to each in the apply docs?
On Mon, Feb 9, 2015 at 10:44 AM, Joe Grund<EMAIL_ADDRESS>wrote:

Thanks, that makes sense. Do you think a note on the docs highlighting
this use case would be helpful?
—
Reply to this email directly or view it on GitHub
https://github.com/caolan/highland/issues/224#issuecomment-73554039.

Yes, the former.  Perhaps something like:

f will always be called when the nil token is encountered, even when the stream is empty.

I guess my confusion is I was thinking stopOnError would cause downstream consumers to not receive any data.
I understand that with collect sending it's internal array when it receives a nil token, and stopOnError sending nil downstream is what causes this behavior.
I guess I could use errors in this case to stop apply from being called as well.

Actually errors won't stop apply from being called. nil will always
be passed on even if you don't push through anything with errors. The
only way to stop apply from being called is to use consume to suppress
the nil.
I imagine what you want to do is to only call apply if the steam
completes with no error. This is pretty tricky to do with the current
transforms. You'd have to implement your own version of pick.
Example:
function applyOnNoError(f) {
    return function (s) {
        return s.collect().pull(function (err, x) {
            if (err) {
                // do nothing or handle error
            }
            else {
                f.apply(null, x);
            }
        });
    }
}

_(function (push, next) {
    push(new Error ());
    push(null, _.nil);
}).through(applyOnNoError(_.log));
// should log nothing

Your suggested doc change makes sense. Can you make a PR for it? I'm away
from my computer (typing this on my phone), so I can't do it myself.
Yes, the former. Perhaps something like:
f will always be called when the nil token is encountered, even when the
stream is empty.
I guess my confusion is I was thinking stopOnError would cause downstream
consumers to not receive any data.
I understand that with collect sending it's internal array when it receives
a nil token, and stopOnError sending nil downstream is what causes this
behavior.
I guess I could use errors in this case to stop apply from being called as
well.
—
Reply to this email directly or view it on GitHub
https://github.com/caolan/highland/issues/224#issuecomment-74502158.

Yes, you are correct. I was thinking how errors doesn't send nil explicitly the first time it receives an error. It will pass any upstream nil through though.
I'll send a PR.

@vqvu Pushed a pr for this doc fix.


[Bug] error: package org.apache.tvm does not exist when building app in Android Studio

🐛 Bug
When building the app in Android Studio, I get the following error:
D:\mlc-llm\android\library\src\main\java\ai\mlc\mlcllm\ChatModule.java:3: error: package org.apache.tvm does not exist
import org.apache.tvm.Device;

It turns out this is due to the following files not getting generated in the build/outputs folder when the file prepare_libs.sh is executed.
./build/output/arm64-v8a/libtvm4j_runtime_packed.so
./build/output/tvm4j_core.jar
I've followed the documentation, however, when I run the prepare_libs.sh file, I get the following error:

I've never worked with CMAKE before. I'm just following the documentation step-by-step.
What is possibly going wrong? Or what do I need to do to get the jar files generated?
To Reproduce
Steps to reproduce the behavior:

Cloned the mlc-llm repository in D: drive.
Installed Rust, CMake, TVM, Android NDK.
Set the system variables ANDROID_NDK, TVM_NDK_CC
Download the Gemma 2b-it model and copied the gemma-2b-it-q4f16_1-android.tar file to the project directory - D:\mlc-llm\dist\prebuilt_libs\gemma-2b-it
Executed the prepare_libs.sh file.
Got the error below:

Expected behavior
I'm expecting the prepare_libs.sh script to execute successfully in order to generate the following files:
./build/output/arm64-v8a/libtvm4j_runtime_packed.so
./build/output/tvm4j_core.jar
Without these files, the app in Android Studio doesn't build and throws the error below:

Environment

Platform (e.g. WebGPU/Vulkan/IOS/Android/CUDA): Android
Operating system (e.g. Ubuntu/Windows/MacOS/...): Windows 10
Device (e.g. iPhone 12 Pro, PC+RTX 3090, ...): OnePlus Nord CE 3 Lite 5G
How you installed MLC-LLM (conda, source): Yes
How you installed TVM-Unity (pip, source): Yes
Python version (e.g. 3.10): 3.10.5
GPU driver version (if applicable):
CUDA/cuDNN version (if applicable):
TVM Unity Hash Tag (python -c "import tvm; print('\n'.join(f'{k}: {v}' for k, v in tvm.support.libinfo().items()))", applicable if you compile models):

Any other relevant information:

Additional context

@Kartik14: I'd appreciate your assistance here.

It seems like your libraries are not built correctly. Can you share your output when you run the prepare_libs.sh script?

It seems like your libraries are not built correctly. Can you share your output when you run the prepare_libs.sh script?

sh prepare_libs.sh
+ rustup target add aarch64-linux-android
info: component 'rust-std' for target 'aarch64-linux-android' is up to date
+ mkdir -p build/model_lib
+ py prepare_model_lib.py
Creating lib from ['D:\\mlc-llm\\dist\\prebuilt_libs/gemma-2b-it/gemma-2b-it-q4f16_1-android.tar']..
+ cd build
+ touch config.cmake
+ '[' 0 -ne 0 ']'
+ cmake .. -DCMAKE_BUILD_TYPE=Release '-DCMAKE_TOOLCHAIN_FILE=C:\Users\tiwar\AppData\Local\Android\Sdk\ndk\26.2.11394342/build/cmake/android.toolchain.cmake' -DCMAKE_INSTALL_PREFIX=. -DCMAKE_CXX_FLAGS=-O3 -DANDROID_ABI=arm64-v8a -DANDROID_NATIVE_API_LEVEL=android-24 -DANDROID_PLATFORM=android-24 -DCMAKE_FIND_ROOT_PATH_MODE_PACKAGE=ON -DANDROID_STL=c++_static -DUSE_HEXAGON_SDK=OFF -DMLC_LLM_INSTALL_STATIC_LIB=ON -DCMAKE_SKIP_INSTALL_ALL_DEPENDENCY=ON -DUSE_OPENCL=ON -DUSE_CUSTOM_LOGGING=ON
CMake Error at CMakeLists.txt:3 (project):
  Failed to run MSBuild command:

    C:/Program Files/Microsoft Visual Studio/2022/Community/MSBuild/Current/Bin/amd64/MSBuild.exe

  to get the value of VCTargetsPath:

    MSBuild version 17.9.5+33de0b227 for .NET Framework
    Build started 27-02-2024 17:17:58.

    Project "D:\mlc-llm\android\library\build\CMakeFiles\3.29.0-rc2\VCTargetsPath.vcxproj" on node 1 (default targets).
    C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(839,5): error : The BaseOutputPath/OutputPath property is not set for project 'VCTargetsPath.vcxproj'.  Please check to make sure that you have specified a valid combination of Configuration and Platform for this project.  Configuration='Debug'  Platform='x64'.  You may be seeing this message because you are trying to build a project without a solution file, and have specified a non-default Configuration or Platform that doesn't exist for this project. [D:\mlc-llm\android\library\build\CMakeFiles\3.29.0-rc2\VCTargetsPath.vcxproj]
    Done Building Project "D:\mlc-llm\android\library\build\CMakeFiles\3.29.0-rc2\VCTargetsPath.vcxproj" (default targets) -- FAILED.

    Build FAILED.

    "D:\mlc-llm\android\library\build\CMakeFiles\3.29.0-rc2\VCTargetsPath.vcxproj" (default target) (1) ->
    (_CheckForInvalidConfigurationAndPlatform target) ->
      C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(839,5): error : The BaseOutputPath/OutputPath property is not set for project 'VCTargetsPath.vcxproj'.  Please check to make sure that you have specified a valid combination of Configuration and Platform for this project.  Configuration='Debug'  Platform='x64'.  You may be seeing this message because you are trying to build a project without a solution file, and have specified a non-default Configuration or Platform that doesn't exist for this project. [D:\mlc-llm\android\library\build\CMakeFiles\3.29.0-rc2\VCTargetsPath.vcxproj]

        0 Warning(s)
        1 Error(s)

    Time Elapsed 00:00:00.34

  Exit code: 1

-- Configuring incomplete, errors occurred!

@Kartik14: Could you please help? I'm using Windows 10. Do I need to change something in prepare_list.sh?

I am not really sure what the issue is. I don't have a windows machine to reproduce this.

I'm also getting this in Windows 11, could anyone possibly figure out the solution for it?

closing for now, please checkout the latest https://llm.mlc.ai/docs/deploy/android.html


Create Landing page

Create a general landing page to start the users experience

This was inherently completed by completing other aspects of the code


Error on creating invoice pdf using the Readme example

Hi,
I followed all the steps that you described and I ran the example that you have posted at Readme and I got the following error.
SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'invoicable_id' cannot be null
(SQL: insert into `invoices`
(`invoicable_id`, `invoicable_type`, `currency`, `status`, `reference`, `updated_at`, `created_at`)
 values (, App\Invoices, EUR, concept, 2018-06-24-3P2L4M, 2018-06-24 15:27:15, 2018-06-24 15:27:15))

Following is the code
       try {
                $order   = new Orders();
                $invoice = $order->invoices()->create([]);
            }
            catch (\Exception $exception){

                echo $exception->getMessage();
            }

Contexts
php 7.2
latest version of this library
laravel - 5.6
So I was wondering what is the correct procedure to create the invoice?

Hi @banstola ,
The $order doesn't seem to have an id set. This is generated on save.
In your example, try this:
$order   = new Orders();
$order->save();
$invoice = $order->invoices()->create([]);

A shortcut for this would be $order = Order::create();.
Another solution, if you don't want to use a related (Order) model, is to replace the $table->morphs(...) with $table->nullableMorphs(...) in the invoice migration. Don't forget to rerun the migration.

Hi @sandervanhooft ,
Thank you for the quick response. Will try it this evening and let you know. Maybe we need to improve the doc then. It would be easy for others to use that example and get an idea about it quickly.

@banstola Agreed! Feel free to submit a PR for the readme.

@sandervanhooft May I know the reason behind the need to create a separate Order model . Could it be that an invoice itself is an order . Invoice has invoice lines. What is the idea behind invoicable_id?

In every use case I have encountered with this package, the invoice was related to some other model. It could be a Order model, or the User model for example. That's why it has a polymorphic relationship by default.
Again, you can change this in the migration (this comment).
I am working on a v2 of this package, and I think it's interesting to use the nullableMorphs there by default. But it will probably take a few months.


i18n: Attempt to translate search suggestions

It addresses issue: #16779.
It is a continuation of pr #14519 and #13274 .
Testing plan:
Testing for this has been done manually using ./manage.py makemessages then checking in the development server to see if desirable translations occur. Related frontend tests have also been updated to ensure they handle the cases of translations.
GIFs or screenshots:

@timabbott can you please review this pr. Work on it has been complete for about a month.

Requested a review from @hackerkid since he's an expert on our i18n.
Mentioning @vinitS101 as well, since he worked in this area before as well.

@hackerkid I made changes to address most of your suggestions. Changes are:

Using __- stream__ for not escaping it.
Renaming highlighted_stream to highlighted_stream_name_in_html along with addition of a small comment to improve readability about why we do not escape it in translations.

For now I haven't addressed __prefix__ __name__ and Filter.js comments as I am not too sure about them and wanted to discuss.
So translating get_person_suggestions and get_group_suggestions appears a blocker for this as it appears that we they can be translated only if we merge Filter.get_operator_to_prefix with them which appears like a bad option. Any other suggestions for tagging them for translations. Or may be we should not tag get_person_suggestions and get_group_suggestions.
Remaining interpolation: {escapeValue: false} are those involving Filter.operator_to_prefix for which changes are yet to be decided.

@m-e-l-u-h-a-n can you rebase this following the recent i18n migration?  But I guess it's not clear to me that this is mergeable without more design work anyway.

Yeah, I'll update it. I think the only that is blocking this is concerns mentioned by @hackerkid in this comment. I could not find a reasonable way to mark the strings mentioned in that comment for translations. I'll look for more possibilities for that while re-basing it.

I think the only solution I see to the __prefix__ __name__ problem is to refactor how we construct these strings; for example, actually spelling out "private messages with name" as what we pass into i18n.t.


How do you create custom activation? I got an error.

This is what I tried to do.
def custom_activation(x):
    return (K.sigmoid(x) * 5) - 1

layer_3 = Dense(1, activation='sigmoid', init=lambda shape, name: normal(shape, scale=1e-4, name=name))(layer_2)

I got the following error:
Exception: Invalid activation function: custom_activation

Looks like you're setting activation='sigmoid' in layer_3.  If you're using your custom_activation function in layer_2 can you please share how the function is being passed?
A common construct in Keras for using custom_functions is to just use them in the argument.
For example:
Dense(activation=custom_activation)

or
model.add(Activation(custom_activation))

@abishekk92 Thanks. I actually put colons that prevented it from working well.

@ritchieng Where did you put colons? Even I am trying to use piecewise linear functions instead of sigmoid function as activation. I am stuck around the same issue. Thanks in advance.


RFC: variable naming code action on case tactic

Proposal
The new derive_functional_induction command produces helpful, but rather complex, eliminators, and leads to code like
case case1 val ks' vs i hi ks'' vs'' hfind IH =>

Filling in these variables is rather annoying: If I have
case case1 =>

I see the daggered variable names in the goal state, and I start copy the names, but because of case assigns them as a suffix, I fell stressed because I have to type in all of them at once. Sometimes I start typing it down in a comment after case case1 => --  so that the goal doesn’t change as I type.
We (sometimes) get a code action on induction … with that inserts all cases with variables at onces. But I find that as I am editing an existing proof, this isn’t very helpful.
So I could imagine that
case case1 =>

with no variable name to have a code action that inserts the “obvious” variable names. Then, for example, when I change the function and the induction principle changes, I can re-trigger the code action to get the new variable names and name order.
Community Feedback
(No Zulip discussions yet.)
Impact
Add :+1: to issues you consider important. If others benefit from the changes in this proposal being added, please ask them to add :+1: to it.

If you use the induction tactic the code action should help and fill out all the variables

Somehow the induction code action rarely pops up for me, not sure what I am doing wrong.
Even if it would: Would it be useful if I already have a proof with some cases etc, and now something has changed and I need to update some of the case variables?
Finally, when it works, doesn’t it produce induction … with | …  syntax? In that case for those who (for better or worse) prefer the case … =>  syntax, or who use case for independently of induction, the extra more convenience around case would still be nice.

Finally, when it works, doesn’t it produce induction … with | …  syntax? In that case for those who (for better or worse) prefer the case … =>  syntax, or who use case for independently of induction (e.g. refine), the extra convenience around case would still be nice, wouldn’t it?

Sure. My point is that the extra structure in the induction tactic that people dislike is actually the thing that allows it to give better quality suggestions. A case tactic code action is necessarily less helpful, at least assuming it only looks at the tactic context itself rather than applying heuristics to the rest of the proof to determine that actually this is one arm in an induction that was just not written that way for some reason.

Ah, I see, thanks for highlighting the fact that case can name more variables than just the ones introduced by the most recent induct/cases/refine. That may also explain the design decision to label variables from the right…
It seems one could argue that it’s a misfeature that case can even be used to give names to these variables. If case somehow knew which variables are there to be named, then such a code action would be less controversial.
But this is a hypothetical; with arbitrary changes to the goal in between (induction … ; (all_goals …); case), it seems hard to give a reasonable specification for which variables case should touch.
So I am convinced that such a code action for case is hard and possibly undesirable, and I know have more reasons to use the with syntax. I just tried and it seems the code action requires import Std, which is why I so far don’t have it in most of my code; presumably this will change with the current upstreaming efforts.
Even if I have it, there is still the remaining use case of updating the variable list of an existing case when something changes (e.g. the function from with the induction is derived from). I’ll edit the issue description to talk about the induction … with form instead. It’s not a super high priority in either case.

Actually, given that | con x => names the variables from the top, and thus the updating is arguably a bit less annoying, I’ll just close this for now. I might open another one if the itch becomes strong enough.


502 Bad Gateway

Hello,
Thank you so much for much needed work. When I am trying to access through the following link: http://asoptimizer.s-core.ai/
It is giving error:

Apologies for the delayed response.
The website link is scheduled to launch by the end of December.


FocusScope does not move VoiceOver virtual cursor

🐛 Bug Report

We have a modal built like:
<FocusScope autoFocus contain restoreFocus>
  {children}
</FocusScope>

But while keyboard focus is moved when the modal is rendered, VoiceOver context (virtual cursor) is not.
🤔 Expected Behavior

The VO virtual cursor should be moved to the first focusable element.
😯 Current Behavior

It is not, keyboard focus is moved but VO remains on the initial button trigger that opened the modal.
💁 Possible Solution

Something like this perhaps:
/**
 * Programmatically move voiceover focus with Javascript.
 * https://silvantroxler.ch/2016/setting-voiceover-focus-with-javascript/
 */
export const setA11yFocus = (element: HTMLElement) => {
  const focusInterval = 10 // ms, time between function calls
  const focusTotalRepetitions = 10 // number of repetitions

  element.setAttribute('tabindex', '0')
  element.blur()

  let focusRepetitions = 0

  const interval = window.setInterval(function () {
    element.focus()
    focusRepetitions++
    if (focusRepetitions >= focusTotalRepetitions) {
      window.clearInterval(interval)
    }
  }, focusInterval)
}

🔦 Context

This is preventing us from making a robust Modal implementation, focus management is only half the story of accessibility.
🧢 Your Company/Team
ButcherBox

Closing for now. Let us know if you have an example and we can reopen! 😄


not working in mac

Not working in mac, please help. my error "E492: Not an editor command: WhatColumn"
/Users/peter/.vim>cat ~/.vim/filetype.vim
if exists("did_load_csvfiletype")
finish
endif
let did_load_csvfiletype=1
augroup filetypedetect
au! BufRead,BufNewFile .csv,.dat	setfiletype csv
augroup END
/Users/peter/.vim>

how did you install the plugin?

closing for being unresponsive


Automate release process and install package building

Create a GH action to automate building assets for all target platforms upon tag/release.
Publish crate to crates.io.
Have it create packages for Mac/Linux/pi, and publish them to registries.
See if it can check version number in Cargo.toml and/or bump it to match release number!!!

for 0.4.0

Done


ddclient with ssl = true fails to connect

verify failed SSL connect attempt failed error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed

Exact same configuration with ssl = false does work.
NixOS 16.03

I am replying from Vietnam, with my smartphone, so please excuse terseness.
This error alone can mean many things.
It could happen that the certificate is invalid. Have you tried to access the underlying HTTPS URL ?
Now, the issue could be related to changes in providing the default trust store location. You can read the PR and issues related to that. You posted into one I think.
I assume you use NixOS.
Could you check that

You can reproduce the issue when running the service command in a shell (use systemd cat ddclient... )
Verify the server certificate using openssl directly (use the openssl command and a good search engine smile)

If, as I expect, you get the error with 1 but not with 2, then some perl module in the use chain is trying to outsmart another.
could you also report all the environment variables containing SSL ? Like env | grep SSL ?

@butterflya, I used to have this exact problem and managed to resolve it by fixing the IO::Socket::SSL Perl module to use the /etc/ssl/certs/ca-certificates.crt path for the SSL certificates (in the commit that @layus correctly identified above).
This change went in to the 16.03 branch on June 17 so perhaps you haven't updated your 16.03 installation for a while?

@butterflya, please confirm whether you still have the issue with an up to date 16.03 channel.

I do not.

Great, thanks!


Bug

I used Amarok on the usual Pictures folder and Amarok did nothing. Just the hide button turned gray
miui 12.0.5
android 12
ver. 0.8.2b4-foss
more info:
There were a lot of folders but not many pictures, no more than 200

Thanks for the report. It seems that Amarok was running properly - It takes a while to rename so many folders - and there should be a spinning process indicator to the right of the hide button.
If you are sure it really "did nothing", can you provide me with the logs? You can get them by logcat!

You absolutely need to increase the performance of the application. For one folder it's good and for several folders it's terrible

:disappointed: I've tried my best. Amarok does well in dealing with large files, but not lots of small files.
I also did some profiling. It shows the bottleneck is the file renaming.
If you get some awesome ideas to improve the performance, feel free to open an FR issue.
btw, I'm working on turning Amarok into an Xposed module. It can literally hide the file in instant, but a rooted device is a must.


Separate TestInfo to another module

Implemented status file creation
Implemented log upload to cloud storage
Rename SetUp to Setup and TearDown to Teardown

Jenkins job istio/presubmit passed

Jenkins job istio/presubmit passed

Jenkins job istio/presubmit passed

Jenkins job istio/presubmit passed


Created using Colab

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 70.83%. Comparing base (779e4df) to head (29ce211).

Additional details and impacted files

@@            Coverage Diff             @@
##             main      #21      +/-   ##
==========================================
- Coverage   70.88%   70.83%   -0.05%
==========================================
  Files          16       16
  Lines        2349     2349
==========================================
- Hits         1665     1664       -1
- Misses        684      685       +1

see 1 file with indirect coverage changes

Updated addressing 2 and 3. 1 was removed already with a previous update.


typo: Double word "by"

@nschonni : Thanks for your contribution! The author, @minewiskan, has been notified to review your proposed change.

@nschonni Thanks for finding.
#sign-off


rtl compatability

there are some bugs with right to left documents

horizontal autoscroll doesn't work at all. I didn't find a workaround yet.
with will-change: transform elements with negative left position don't work when horizontal scrolling is needed (the element jumps to another position when plain-draggable started) ,but there is an easy workaround for this with css body {   width: min-content; }
here is a code to demonstrate both bugs:

drag me

Hi @robert777robert777, thank you for the comment.
That is correct behavior.
The draggable element is  restricted in an element that is specified for containment option whether the document is rtl or not. The containment is parent element as default. That is, it is  element.
So,  element's width never be expanded than viewport by a wider child element. Maybe you know this and you added the width: min-content.
If you want a horizontal scrollable document, this may help you:
https://jsfiddle.net/f872vopa/
Note that the current version doesn't support negative scroll value. See direction property.

No reply came, then this abandoned issue is closed.

thanks for the jsfiddle example, it was helpful and eventually i've found a much easier workaround:
instead of using

i use

 all of my content goes here

and everything (including autoscroll) works as expected

Your idea is no good way because the direction should be decided by the document or the user agent.
You can use direction property instead of dir attribute to override that for  element, this is more simple and correct HTML that is better way than your code.
For example:
https://jsfiddle.net/Ld7xejk6/


Update week-05.md

Fix wrong dates in week-05.md
It seems that our dear TA wrongly calculated those dates.
Mar 23 -> Mar 21
Mar 25 -> Mar 23
Mar 28 -> Mar 26

@PKUFlyingPig

Oh, it's fixed


Dependency updates

This PR includes ~two~ three updates to resolve issues recently encountered when setting up a new debian:buster-image based installation:

Latest Flask library is no longer compatible with Werkzeug<1.0.0 (at least since Flask 2.0.0). The changes here remove the Werkzeug version pin from requirements, and make a small update to use cachelib for functionality extracted to its own library (ref).
Small change to migrate jinja2.Markup() usage to markupsafe.Markup() for similar library deprecations (ref).
Updates the MySQL connection string in README to specify using the pymysql driver included in the requirements file (ref).

It's also required to update send in scoreboard/attachments/file.py as due to download_name replacing Flask's attachment_filename: https://github.com/pallets/werkzeug/blob/d36aaf12b5d12634844e4c7f5dab4a8282688e12/src/werkzeug/utils.py#L400


refactor: drop v2 apis

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To complete the pull request process, please assign rawlingsj
You can assign the PR to them by writing /assign @rawlingsj in a comment when ready.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

let's plan release with other repos
/hold

/hold cancel

/approve

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: rawlingsj
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [rawlingsj]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


Add auto completions for record fields

type alias User = { name : String }

f : User -> String
f user = user.<cursor, press ctrl+space>

Basically the above should show name as a possible completion.

I believe this will be resolved by the following commit: https://github.com/Krzysztof-Cieslak/vscode-elm/commit/3cb3460475b868f45cb447be491683fb700a7939

👍


Add HyFetch

Adding in HyFetch and neowofetch.
HyFetch is a wrapper that runs neofetch or fastfetch and colorizes its outputs with LGBTQ+ flags.
neowofetch is an updated fork of neofetch inside the HyFetch repository, which I've been maintaining since neofetch hasn't received any updates in a while.

Thanks for contribute.


azure directory timeouts

What happened?
Occasionally when doing large sync calls with the Azure Microsoft Graph Delta API we are seeing timeouts:
{
  "level":"debug",
  "method":"GET",
  "authority":"[graph.microsoft.com](http://graph.microsoft.com/)",
  "path":"/v1.0/groups/delta",
  "duration":686.488539,
  "response-code":401,
  "idp":"azure",
  "response-body":"{\"error\":{\"code\":\"InvalidAuthenticationToken\",\"message\":\"Access token has expired or is not yet valid.\",\"innerError\":{\""
}

What did you expect to happen?
For large directory syncs to succeed.
Additional context
We should investigate a few different ideas here:

Why are the access tokens not refreshing as we expect? Each API call (even for thousands of delta API calls) should check if the token is valid before re-using it. Are we hitting an issue where the token is valid only for a few seconds before it expires, so we-reuse it, but then it fails?
Perhaps we should implement a simple retry mechanism to force a refresh of the access token when this error occurs and retry the API call
Is there something in the delta API we can use to resume where we left off? Maybe $skiptoken?
Can we increase the access token expiration timestamp somehow?

Locally we should be able to reproduce the behavior by adding an artifical lag to all requests. The default access token expiration is between 60 and 90 minutes.

We already implemented retries when access tokens expire.

Confirmed:
<nil> DBG http-request authority=graph.microsoft.com duration=129.826292 idp=azure method=GET path=/v1.0/users/delta response-body="{\"error\":{\"code\":\"InvalidAuthenticationToken\",\"message\":\"Access token has expired or is not yet valid.\",\"innerError\":{\"date\":\"2023-03-29T03:35:13\",\"request-id\":\"e5192c2d-960b-48ea-bc21-979ae759f671\",\"client-request-id\":\"e5192c2d-960b-48ea-bc21-979ae759f671\"}}}" response-code=401
<nil> DBG http-request authority=login.microsoftonline.com duration=430.282791 idp=azure method=POST path=/a0860b16-674e-426d-9165-f87469a8282d/oauth2/v2.0/token response-code=200

The token expires, we clear it and retry the next request, which succeeds.


Release 4.1.1

@bastelfreak @ekohl Hi, did something strange happen when you pushed this gem up to Rubygems yesterday? I'm getting a checksum mismatch when attempting to download this version:
# puppet-blacksmith not pinned in Gemfile, no gemfile lock
➜  puppetlabs-pe_install git:(hoyt) bundle install --force
The latest bundler is 1.16.0.pre.3, but you are currently running 1.15.4.
To update, run `gem install bundler --pre`
Fetching gem metadata from https://rubygems.org/...........
Fetching version metadata from https://rubygems.org/.
Resolving dependencies...
Unable to use the platform-specific (universal-darwin) version of facter (2.5.1) because it has different dependencies from the ruby version. To use the platform-specific version of the gem, run `bundle config specific_platform true` and install again.
Unable to use the platform-specific (universal-darwin) version of puppet (5.3.2) because it has different dependencies from the ruby version. To use the platform-specific version of the gem, run `bundle config specific_platform true` and install again.
Installing rake 12.1.0
Installing public_suffix 3.0.0
Using bundler 1.15.4
Installing safe_yaml 1.0.4
Installing diff-lcs 1.3
Installing unf_ext <IP_ADDRESS> with native extensions
Installing facter 2.5.1
Installing jgrep 1.5.0
Installing fast_gettext 1.1.0
Installing locale 2.1.2
Installing text 1.3.1
Installing hashdiff 0.3.6
Installing hiera 3.4.2
Installing hocon 1.2.5
Installing json 2.1.0 with native extensions
Installing stomp 1.4.4
Installing systemu 2.6.5
Installing metaclass 0.0.4
Installing spdx-licenses 1.1.0
Installing mime-types-data 3.2016.0521
Installing netrc 0.11.0
Installing parallel 1.12.0
Installing puppet-lint 2.3.0
Installing rspec-support 3.6.0
Installing vagrant-wrapper 2.0.3
Installing puppet-syntax 2.4.1
Installing addressable 2.5.2
Installing crack 0.4.3
Installing unf 0.1.4
Installing facterdb 0.3.12
Installing gettext 3.2.4
Installing mcollective-client 2.11.2
Installing mocha 1.3.0
Installing mime-types 3.1
Installing parallel_tests 2.16.0
Installing rspec-core 3.6.0
Installing rspec-expectations 3.6.0
Installing rspec-mocks 3.6.0
Installing json-schema 2.8.0
Installing webmock 3.0.1
Installing domain_name 0.5.20170404
Installing gettext-setup 0.28
Installing rspec 3.6.0
Installing metadata-json-lint 2.0.2
Installing http-cookie 1.0.3
Installing puppet 5.3.2
Installing rspec-puppet 2.6.9
Installing rest-client 2.0.2
Installing rspec-puppet-facts 1.8.0
Installing puppetlabs_spec_helper 2.3.2
Fetching puppet-blacksmith 4.1.1
Installing puppet-blacksmith 4.1.1
Bundler cannot continue installing puppet-blacksmith (4.1.1).
The checksum for the downloaded `puppet-blacksmith-4.1.1.gem` does not match the checksum given by the server. This means the contents of the downloaded gem
is different from what was uploaded to the server, and could be a potential security issue.

To resolve this issue:
1. delete the downloaded gem located at: `/Users/highb/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/puppet-blacksmith-4.1.1/puppet-blacksmith-4.1.1.gem`
2. run `bundle install`

If you wish to continue installing the downloaded gem, and are certain it does not pose a security issue despite the mismatching checksum, do the following:
1. run `bundle config disable_checksum_validation true` to turn off checksum verification
2. run `bundle install`

(More info: The expected SHA256 checksum was "7bec2418a4d85ccb747b4614ad2002697d39af7fc3126a3c5eb950498f0b4bc8", but the checksum for the downloaded gem was
"754eaf5edbcb3956064a14719c937ac6df84baceb5e2b39d0e4833dbca1c85b4".)

# Then I pin to 4.1.0 in the Gemfile...
➜  puppetlabs-pe_install git:(hoyt) bundle install --force
The latest bundler is 1.16.0.pre.3, but you are currently running 1.15.4.
To update, run `gem install bundler --pre`
Fetching gem metadata from https://rubygems.org/...........
Fetching version metadata from https://rubygems.org/.
Resolving dependencies...
Unable to use the platform-specific (universal-darwin) version of facter (2.5.1) because it has different dependencies from the ruby version. To use the platform-specific version of the gem, run `bundle config specific_platform true` and install again.
Unable to use the platform-specific (universal-darwin) version of puppet (5.3.2) because it has different dependencies from the ruby version. To use the platform-specific version of the gem, run `bundle config specific_platform true` and install again.
Installing rake 12.1.0
Installing public_suffix 3.0.0
Using bundler 1.15.4
Installing safe_yaml 1.0.4
Installing diff-lcs 1.3
Installing unf_ext <IP_ADDRESS> with native extensions
Installing facter 2.5.1
Installing jgrep 1.5.0
Installing fast_gettext 1.1.0
Installing locale 2.1.2
Installing text 1.3.1
Installing hashdiff 0.3.6
Installing hiera 3.4.2
Installing hocon 1.2.5
Installing json 2.1.0 with native extensions
Installing stomp 1.4.4
Installing systemu 2.6.5
Installing metaclass 0.0.4
Installing spdx-licenses 1.1.0
Installing mime-types-data 3.2016.0521
Installing netrc 0.11.0
Installing parallel 1.12.0
Installing puppet-lint 2.3.0
Installing rspec-support 3.6.0
Installing vagrant-wrapper 2.0.3
Installing puppet-syntax 2.4.1
Installing addressable 2.5.2
Installing crack 0.4.3
Installing unf 0.1.4
Installing facterdb 0.3.12
Installing gettext 3.2.4
Installing mcollective-client 2.11.2
Installing mocha 1.3.0
Installing mime-types 3.1
Installing parallel_tests 2.16.0
Installing rspec-core 3.6.0
Installing rspec-expectations 3.6.0
Installing rspec-mocks 3.6.0
Installing json-schema 2.8.0
Installing webmock 3.0.1
Installing domain_name 0.5.20170404
Installing gettext-setup 0.28
Installing rspec 3.6.0
Installing metadata-json-lint 2.0.2
Installing http-cookie 1.0.3
Installing puppet 5.3.2
Installing rspec-puppet 2.6.9
Installing rest-client 2.0.2
Installing rspec-puppet-facts 1.8.0
Installing puppetlabs_spec_helper 2.3.2
Fetching puppet-blacksmith 4.1.0
Installing puppet-blacksmith 4.1.0
Bundle complete! 12 Gemfile dependencies, 51 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
Post-install message from metadata-json-lint:

  ----------------------------------------------------------
      For the most accurate results, the semantic_puppet
      gem should be included within your Gemfile if you
      use Puppet <= 4.8.x
  ----------------------------------------------------------
  %

I also tried updating bundler to 1.16.0, which does not seem to help.

That's odd because I'm able to install it using bundler but also:
$ wget https://rubygems.org/downloads/puppet-blacksmith-4.1.1.gem > /dev/null
$ sha256sum puppet-blacksmith-4.1.1.gem
754eaf5edbcb3956064a14719c937ac6df84baceb5e2b39d0e4833dbca1c85b4  puppet-blacksmith-4.1.1.gem

That doesn't match 7bec2418a4d85ccb747b4614ad2002697d39af7fc3126a3c5eb950498f0b4bc8 as would be expected.
It does appear that all 4 jobs attempt to push the gem to rubygems (https://travis-ci.org/voxpupuli/puppet-blacksmith/builds/316635123) so possibly there's a problem there. I'll do a 4.1.2 release.

https://github.com/voxpupuli/puppet-blacksmith/pull/61


Adding WS2016 PIR image fails as local administrator

Adding WS2016 PIR image fails as local administrator
2017-02-26 02:02:24 [-DVM] [START] Usecase: AzureStack/ComputeAdmin: Download and add Windows/WS2016 image to platform image repository
2017-05-26 02:05:03 [-DVM] [EXCEPTION] Windows Storage Management Provider: An error was encountered while enumerating objects from subsystem "{81aab163-9b00-46c9-ad75-#######}:SS" on host "S-Cluster". Error encountered was MI_RESULT = "MI_RESULT_FAILED" (1).
.Exception
2017-05-26 02:05:03 [***-DVM] [END] [FAIL] Usecase: AzureStack/ComputeAdmin: Download and add Windows/WS2016 image to platform image repository

Fixed with PR #158


Any plans to make it available for angular version 4?

Any plans to make it available for angular version 4?

yeah, I just need to find time to do it

What are the issues for angular 4?? And where to look at the problem?  Is it documented?

@JoelParke there is no issues for angular 4 just update angular 2 dependencies in package.json to the angular 4 ones, or just copy socket-io.module.ts, socket-io.service.ts and socketIoConfig.tsinto your project and npm install socket.io --save.

now the module is Angular 4 compatible, I will close this issue, feel free to reopen it if you have a problem.


update contributing docs on url/query params

We pivoted to always using query parameters to accept server/instance/url type params, so I've updated this section in our Contributing guidelines to reflect that

Messages

:book:
:sparkles: Thanks for your contribution to Shields, @calebcartwright!

:book:

Thanks for contributing to our documentation. We :heart: our documentarians!

  Generated by :no_entry_sign: dangerJS against 70b77c1b8f7d8d1a1f6f84dee3cd8c2a48c75d9f


Skip systemd and file tasks in check mode to avoid failures

Closes #322

Could someone review?

O hai, thanks for raising attention to this as well. Also running into the same and already started to type similar changes.
Disappointing to see bots adding labels like wontfix and issues+PRs being completely ignored like this. 😕

This role has been deprecated in favor of a the prometheus-community/ansible collection.


Hot reloading

I am wondering if there is a possibility to run a local server via either firebase emulators:start or firebase serve that would also include hot reloading? I have tried prefacing both of those commands with npm run build --watch but that did not enable fast reloading.

Excuse me for the noob question. I am still relatively new to web development and the ecosystem can be sometimes overwhelming. I have found that I can achieve the hot reloading that I desire by serving the app locally with npm run dev which just runs svelte-kit dev command.
I thought that the serving should be done from firebase in order to make use of Firestore and of Cloud Functions, but both of those work without a problem.


Add topics and their description in the TOC file

Pls add topics and description. I am busy in some other work. It is urgent.

topic 2


Update Collection.php

Correcao ao concatenar Collections

Correcao em: function concat

Is this a bug fix?? If not then this is a breaking change

Please resubmit with title and description.


[Bug Report] mujoco.FatalError: gladLoadGL error while rendering Mujoco environments

Describe the bug
Hello,
I've run into this error while trying to render any Mujoco environments on a headerless machine with rgb_array render mode. My installation for the environment was pip install gymnasium and pip install mujoco. Does anyone know what might be the cause for this? Thanks.
>>> env = gym.make("Ant-v4", render_mode="rgb_array")
>>> env.render()
/nfs/nhome/live/gyin/miniconda3/envs/rl/lib/python3.10/site-packages/glfw/__init__.py:912: GLFWError: (65544) b'X11: The DISPLAY environment variable is missing'
  warnings.warn(message, GLFWError)
/nfs/nhome/live/gyin/miniconda3/envs/rl/lib/python3.10/site-packages/glfw/__init__.py:912: GLFWError: (65537) b'The GLFW library is not initialized'
  warnings.warn(message, GLFWError)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/nfs/nhome/live/gyin/miniconda3/envs/rl/lib/python3.10/site-packages/gymnasium/core.py", line 418, in render
    return self.env.render()
  File "/nfs/nhome/live/gyin/miniconda3/envs/rl/lib/python3.10/site-packages/gymnasium/wrappers/order_enforcing.py", line 70, in render
    return self.env.render(*args, **kwargs)
  File "/nfs/nhome/live/gyin/miniconda3/envs/rl/lib/python3.10/site-packages/gymnasium/wrappers/env_checker.py", line 63, in render
    return env_render_passive_checker(self.env, *args, **kwargs)
  File "/nfs/nhome/live/gyin/miniconda3/envs/rl/lib/python3.10/site-packages/gymnasium/utils/passive_env_checker.py", line 391, in env_render_passive_checker
    result = env.render()
  File "/nfs/nhome/live/gyin/miniconda3/envs/rl/lib/python3.10/site-packages/gymnasium/envs/mujoco/mujoco_env.py", line 379, in render
    return self.mujoco_renderer.render(
  File "/nfs/nhome/live/gyin/miniconda3/envs/rl/lib/python3.10/site-packages/gymnasium/envs/mujoco/mujoco_rendering.py", line 646, in render
    viewer = self._get_viewer(render_mode=render_mode)
  File "/nfs/nhome/live/gyin/miniconda3/envs/rl/lib/python3.10/site-packages/gymnasium/envs/mujoco/mujoco_rendering.py", line 686, in _get_viewer
    self.viewer = OffScreenViewer(self.model, self.data)
  File "/nfs/nhome/live/gyin/miniconda3/envs/rl/lib/python3.10/site-packages/gymnasium/envs/mujoco/mujoco_rendering.py", line 144, in __init__
    super().__init__(model, data, width, height)
  File "/nfs/nhome/live/gyin/miniconda3/envs/rl/lib/python3.10/site-packages/gymnasium/envs/mujoco/mujoco_rendering.py", line 61, in __init__
    self.con = mujoco.MjrContext(self.model, mujoco.mjtFontScale.mjFONTSCALE_150)
mujoco.FatalError: gladLoadGL error

Code example
import gymnasium as gym
env_name = "Ant-v4"
env = gym.make(env_name, render_mode="depth_array")

state, _ = env.reset()
img = env.render()

System info
Gymnasium is install within conda environment using pip:
(rl) gyin@hpc-gw1:~/repos/exploratory_projects$ conda list gymnasium
# packages in environment at /nfs/nhome/live/gyin/miniconda3/envs/rl:
#
# Name                    Version                   Build  Channel
gymnasium                 0.28.1                   pypi_0    pypi
gymnasium-notices         0.0.1                    pypi_0    pypi
(rl) gyin@hpc-gw1:~/repos/exploratory_projects$ conda list mujoco
# packages in environment at /nfs/nhome/live/gyin/miniconda3/envs/rl:
#
# Name                    Version                   Build  Channel
mujoco                    2.3.3                    pypi_0    pypi

Additional context
No response
Checklist

[X] I have checked that there is no similar issue in the repo

If you use a new virtual environment (not conda) and run pip install "gymnasium[mujoco]" does this still not work?

Thanks for your reply @pseudo-rnd-thoughts. I installed virtual environment from system python afresh and ran the code. Now I got a different error below:
Installation:
gyin@hpc-gw1:~/repos/exploratory_projects/locomotion_agent$ python3 -m venv env
gyin@hpc-gw1:~/repos/exploratory_projects/locomotion_agent$ source env/bin/activate
(env) gyin@hpc-gw1:~/repos/exploratory_projects/locomotion_agent$ pip install gymnasium[mujoco]

Running the code:
(env) gyin@hpc-gw1:~/repos/exploratory_projects/locomotion_agent$ python
Python 3.8.10 (default, Mar 13 2023, 10:26:41)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import gymnasium as gym
>>> env = gym.make("Ant-v4", render_mode="rgb_array")
>>> env.reset()
(array([ 8.38464470e-01,  9.95581305e-01,  1.62438436e-02, -9.08616692e-02,
        1.72673282e-02, -7.84957791e-02, -7.25393779e-04,  6.97520572e-02,
       -5.63103967e-02,  7.68487219e-02, -8.87238945e-02, -1.43015349e-02,
        7.96906579e-02, -2.27694935e-02, -4.05470203e-02, -9.00845252e-02,
        9.76482651e-02, -1.42370677e-01,  1.40744876e-01,  1.07789492e-01,
       -1.54321927e-01,  2.09253104e-02, -6.54008002e-02,  1.65583194e-01,
       -9.43582602e-02,  8.12992646e-02, -1.55947772e-01]), {})
>>> env.render()
/nfs/nhome/live/gyin/repos/exploratory_projects/locomotion_agent/env/lib/python3.8/site-packages/glfw/__init__.py:912: GLFWError: (65544) b'X11: The DISPLAY environment variable is missing'
  warnings.warn(message, GLFWError)
/nfs/nhome/live/gyin/repos/exploratory_projects/locomotion_agent/env/lib/python3.8/site-packages/glfw/__init__.py:912: GLFWError: (65537) b'The GLFW library is not initialized'
  warnings.warn(message, GLFWError)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/nfs/nhome/live/gyin/repos/exploratory_projects/locomotion_agent/env/lib/python3.8/site-packages/gymnasium/core.py", line 418, in render
    return self.env.render()
  File "/nfs/nhome/live/gyin/repos/exploratory_projects/locomotion_agent/env/lib/python3.8/site-packages/gymnasium/wrappers/order_enforcing.py", line 70, in render
    return self.env.render(*args, **kwargs)
  File "/nfs/nhome/live/gyin/repos/exploratory_projects/locomotion_agent/env/lib/python3.8/site-packages/gymnasium/wrappers/env_checker.py", line 63, in render
    return env_render_passive_checker(self.env, *args, **kwargs)
  File "/nfs/nhome/live/gyin/repos/exploratory_projects/locomotion_agent/env/lib/python3.8/site-packages/gymnasium/utils/passive_env_checker.py", line 391, in env_render_passive_checker
    result = env.render()
  File "/nfs/nhome/live/gyin/repos/exploratory_projects/locomotion_agent/env/lib/python3.8/site-packages/gymnasium/envs/mujoco/mujoco_env.py", line 379, in render
    return self.mujoco_renderer.render(
  File "/nfs/nhome/live/gyin/repos/exploratory_projects/locomotion_agent/env/lib/python3.8/site-packages/gymnasium/envs/mujoco/mujoco_rendering.py", line 646, in render
    viewer = self._get_viewer(render_mode=render_mode)
  File "/nfs/nhome/live/gyin/repos/exploratory_projects/locomotion_agent/env/lib/python3.8/site-packages/gymnasium/envs/mujoco/mujoco_rendering.py", line 686, in _get_viewer
    self.viewer = OffScreenViewer(self.model, self.data)
  File "/nfs/nhome/live/gyin/repos/exploratory_projects/locomotion_agent/env/lib/python3.8/site-packages/gymnasium/envs/mujoco/mujoco_rendering.py", line 144, in __init__
    super().__init__(model, data, width, height)
  File "/nfs/nhome/live/gyin/repos/exploratory_projects/locomotion_agent/env/lib/python3.8/site-packages/gymnasium/envs/mujoco/mujoco_rendering.py", line 61, in __init__
    self.con = mujoco.MjrContext(self.model, mujoco.mjtFontScale.mjFONTSCALE_150)
mujoco.FatalError: an OpenGL platform library has not been loaded into this process, this most likely means that a valid OpenGL context has not been created before mjr_makeContext was called

@rodrigodelazcano Any ideas?

Hey @ygrayson can you try running it with xvfb-run -a python your_script.py? When rendering mujoco headless GLFW will look for a non existing display. You can generate a virtual display buffer with xvfb (sudo apt install xvfb)

Hii @rodrigodelazcano, thanks a lot for your reply! I have tested running this on my Windows Subsystem for Linux (WSL) (which is also headerless, and it worked perfectly. I will also test it on server once I get administrative access to install xvfb, but I think the result should be the same. Thanks

Unfortunatelly, xvfb is not available in docker environments like paperspace.com. Any other work-arounds?

Hello and respect,
I use MuJoCo and I want to run the code below in my Conda environment in VS Code. I have read all your comments, but I can't understand what you mean. Could you please explain in more detail how to solve this problem?
Note: I am using Ubuntu.
xml = """

"""
Make model and data
model = mujoco.MjModel.from_xml_string(xml)
data = mujoco.MjData(model)
Make renderer, render and show the pixels
with mujoco.Renderer(model) as renderer:
media.show_image(renderer.render())

If you're using MuJoCo outside of gymnasium, Ask for help in the MuJoCo reposatory

If you're using MuJoCo outside of gymnasium, Ask for help in the MuJoCo reposatory

I appreciate it.


Click on sidebar category hides sidebar

[ ] and it shouldn't

I also had the same problem but found no solution.
By clicking on some link in the mobile mode, the whole menu hides

here it is
https://github.com/epicmaxco/vuestic-admin/pull/296


VM is provisioned as linked clone when set to false

Hello, I provisioned a VM from a recipe that had use_linked_clone: 'false', set within  the recipe.  I then did a VM/Storage Vmotion to our development ESXi hosts which do not have access to the storage of the template we use. The cloned VM wouldn't power on and I began to investigate the issue. I looked at the descriptor file for the vmdk and it has a ParentFilenameHint setting with the parent VMs VMDK referenced.

It appears to be happening regardless if I set use_linked_clone to true or false.
with_machine_options :bootstrap_options => {
use_linked_clone: 'False',
num_cpus: 2,
memory_mb: 8096,
As you can see in the screenshot above it is referencing W2K12STD2 which is the name of the template we clone from and not the name of the VM itself.

Have you tried not quoting 'False' ? ie.
use_linked_clone: false
'False' != false in the ruby world iirc.

That appears to have been the problem. Thanks Rob!


Please provide a powershell example.

[Enter feedback here]

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 53cf7c9c-480d-241e-a894-50179cf7d488
Version Independent ID: 90ed5485-f439-fd52-a7ff-6e8de8145b84
Content: VM Snapshot Windows extension for Azure Backup - Azure Virtual Machines
Content Source: articles/virtual-machines/extensions/vmsnapshot-windows.md
Service: virtual-machines
Sub-service: extensions
GitHub Login: @trinadhkotturu
Microsoft Alias: trinadhk

@ericcsinger - Thanks for brining this to our attention. We will investigate it further and update you shortly.


Implement transform utils?

Overview
We only need to wrap corresponding PETL's functions.

CLOSED in favour #1324


When will we bump version 3.0.0?

Summary
Hello,
When will we release version 3.0.0?
Do you have tasks to fix before the release?
Context & Motivation
Current cucumber latest stable version is 2.4.0 that uses cucumber-core ~> 1.5.0.
We also released cucumber pre version 3.0.0.pre.1 that uses cucumber-core latest version 2.0.0 (~> 2.0) at September 02, 2016.
Then 6 months has been passed.
Now I want to use cucumber-cure 2 from latest cucumber stable version.
It's time to bump version 3.0.0, isn't it?
Ref.
https://rubygems.org/gems/cucumber
https://rubygems.org/gems/cucumber-core

Wow, I didn't realise it had been that long!
I had been hoping for the event protocol to stabilise before we released, because I don't want us to have to introduce breaking changes again later, but I think that's an unrealistic expectation.
I do want us to write a blog post announcing the release and explaining the new events API, and I would like us to formally deprecate the old formatter API in this release.
Otherwise, I'm happy to release what we have. What do you think @cucumber/cucumber-ruby?

Several of us is coming to Cukenfest, so it seems premature to release before that, but we should come out from there with only a very short list of things to do before releasing 3.0.0.
Things I wish to be on such a short list would be https://github.com/cucumber/cucumber-ruby/issues/1044, and since I believe that the exit code should be based on the summary - I imagine a new flaky category in the summary (as in 6 Scenarios (1 Passed, 1 Failed, 1 Undefined, 1 Pending, 1 Skipped, 1 Flaky))

Totally agree with everything @brasmusson said.

Okay, @brasmusson the Cukenfest is June 21st - 25th. So maybe you want to release cucumber 3.0.0 during the event term, right?
I saw your guys' face photos in the event page. It is in London. It's close from my living country Czech Republic. :) Though I won't attend the event, I hope the event's success. 😄

v3.0.0 and v3.0.1 are out.


Add link to docs on how to run a local registry

Changes
Working with @binoue to setup a Tekton dev environment we realized that the docs don't explain how to actually run your own local docker registry (I thought you could just push to the daemon by default!)
(This is https://github.com/tektoncd/pipeline/pull/1597 with a fixed link!)
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:

[n/a] Includes tests (if functionality changed/added)
[x] Includes docs (if user facing)
[x] Commit messages follow commit message best practices

See the contribution guide for more details.
Double check this list of stuff that's easy to miss:

If you are adding a new binary/image to the cmd dir, please update
the release Task to build and release this image.

Reviewer Notes
If API changes are included, additive changes must be approved by at least two OWNERS and backwards incompatible changes must be approved by more than 50% of the OWNERS, and they must first be added in a backwards compatible way.

/test pull-tekton-pipeline-build-tests


api_code_examples: Fix buggy rendering of print statement in python examples.

This fixes the buggy rendering of the print statement in the
python code examples.
Introduced in 18b577f .

@timabbott Can you have a look ?

Thanks for fixing!


Face Landmarks transformation matrix to move 3D model in Unity

The idea I have is essentially to use the face transformation matrix in Unity to apply the transformation to the Canonical 3d mesh, so that I can parent GameObjects to the face and have them move along, or render custom shaders on the face mesh.
I've carefully read #1642 to try to understand how I can do this or if it is even possible, but I'm still having a hard time figuring it out. I'm aware that somewhere in this process I'd have to take into account the webcam/camera stream or image resolution/aspect ratio, but I'm unsure yet.
Has anyone tried this approach? Appreciate the support

@brunodeangelis,
MediaPipe does not offer any official support/library/module for mapping the face landmarks to Unity as such. However,
there are plugin from the community is quite up-to-date which might help in this context But We don't have a plan to support Unity yet and does not provide support in how to use them.
Thank you!!

Hi, I have a question about facial_transformation_matrixes from FaceLandmarkerResult.
I extracted translation x,y,z from facial transformation matrix.
But, I have no idea what the range of x,y,z is...
I just want to normalize [0,1], then how can I do...?


Add "No returns" as a suggestion for "Return policy"

One of the observed trends from the Duo Search data is that free-text fields lead to "messy" situations, despite the bulk of the cases being "organised". Return policy is a good example, presented below.
I've collected all the different return policies that Duo Search has scraped since the beginning. It's available here for your perusal. There are 1813 distinct return policies, but when you look into them there are literally hundreds of duplicates for "No return" (small sample shown below):
    "No Returns.",
    "no refunds.",
    "no returns.",
    "All sales final.",
    "No returns.",
    "There is no way back!",
    "There is no way back...!",
    "No Returns on digital items.",
    "Returns are a no-go.",
    "No returns. No tradeback. Nothing.",
    "no refunds, will resend once if not recieved",
    "no returns, if u dont recieve will resend once",
    "no returns, if you don't recieve will resend once.",
    "no returns, if you don't recieve, will resend once.",
    "No Returns",
    "No returns",
    "no refunds",
    "No returms",
    "No return",
    "No refunds on digital items",
    "No refund",
    "No warranty and no returns.",
    "No returns or refunds",
    "Returns accpeted.",
    "No returns on food items.",
    "No return policy",
    "No Refund",
    "NA",
    "N/A",
    "Non Refundable",
    "No Return",

In an effort to make free text fields more consistent across OpenBazaar stores (and more machine readable) having pre-set options for the return policy would help. My suggestion would be to a have few preset options, plus a "Custom" field for those that require free text. For example:

"No returns"
"Full refund available"
"Full refund available, minus shipping costs"
"Custom..."

This hybrid strategy could work for many fields, including condition, weight, refundPolicy and category.

The v2 designs call for a free form field:

@morebrownies Do you have any thoughts on this issue? Would it make sense to have a drop down with the most common options and then 'Other' would enable the free form text field?

I really like this suggestion. Thank you @JustinDrake for digging up the data.
@rmisio I can get you a design on this when I get a chance, but what you described sounds like a good solution. Add a drop down with the most common options and display a textarea when 'Other' is selected.
Don't forget we need to translate these choices into all languages as well. If the translations do not exist in a specific language, we may have to fallback to the textarea?

If the translations do not exist in a specific language, we may have to fallback to the textarea?

hmm.. In every other part of the app, if text is not translated, it appears as english. (which is a really good impetus for a translator to get on top of that)
I'm not sure I'd want to open up the can of worms of alternate behavior if translations are not available, when we don't do that anywhere else.
What do you think @jjeffryes ?

That actually should be fine.  It's not the best experience, but it should hopefully guide people to fill in the translations.

@morebrownies: I'm glad you like the suggestion. I think a similar dropdown also works brilliantly for "Condition":

New
Used, in good condition
Used, in bad condition
Refurbished
Other

That's already in place:

@rmisio I don't see "Other" in that screenshot. My suggestion is to add a free text "Other" for Condition.

out of curiosity, what is a condition that would not be encompassed by the non-other choices available?

I wouldn't underestimate the creativity/diversity of OpenBazaar. Off the top of my head:

New - With original unsealed packaging
New - With a factory defect
New - Non-original packaging
Refurbished - Excellent
Refurbished - Good
Frozen (referring to food)
Freshly baked on demand (referring to pastries)
Matured 10 years in oak barrels (referring to whisky)
Cut on demand (referring to hair for a wig)

Just chiming in that showing English for missing translations is fine IMHO.
Having a limited number of pre-defined options for the returns policy sounds good too. Between 3 and 5 seems right.
I think the current drop down options on condition are good, if there are specific details they can go in the description.

I think we should opt for simplicity for now. Description should suffice. But we'll keep the discussion open @JustinDrake

This issue hasn't seen activity for over a year, I think it's safe to conclude we're probably not going to be addressing it.


Use graphql-core-next instead of graphql-core + support async

I made some adaptions to use this library together with graphql-core-next
The usage of async / await may not be desired in this repo for reasons that start with 2.x. In that case, feel free to close/ignore.

Thank you @norman-thomas
Unfortunately, I saw it only today - I have also created a branch of graphql-server-core yesterday here that has similar changes.
graphql-server-core is actually a helper library for other libraries like flask-graphql. If we make any changes here, we must make sure that these libraries do not get broken or upgrade them as well.
In my branch I added tests so that we have 100% code coverage. But some things are still different due to the new API, and tools like flask-grapqhl will need some adaptation, too.
Before we proceed I think we need a general versioning policy for the graphql-python tools so that the full stack of tools stays compatible (see graphql-python/graphql-core/issues/241 for that discussion).

Closing as fixed on #36


Encoding display is incorrect in the web interface Postal

Hi, there.
After upgrade to version 2.1.4 I've catch some problems with web interface Postal.
The links "Plain text" and "HTML"
/org/dg/servers/dg/messages/609085/plain
/org/dg/servers/dg/messages/609085/html
Cyrillic symbols shows as "questions signs" like this ��������
But at destination email boxes all shows correct: And at the email clients like Thunderd, and at the web interfaces like Gmail.
Can you advice to me, how to trouble the situation?

is this a duplicate of #2494 ?

@willpower232 , yes
I caught this error after update 2.1.2 ->  2.1.4

Where is the solution to this problem?

Duplicate of #2494

After the update the bug was fixed . Thanks!


Doc: Add a link of how to build ow images regarding python action.

shall we add a link of how to build ow images doc besides https://github.com/apache/incubator-openwhisk/blob/master/docs/actions.md#creating-python-actions?

do you have a suggestion?


Region Language Field

In mkvmerge we can add a region to a language field, is it possible to add this information in mediainfo ?

this is planned but no ETA.

Nice, thanks

open as it is still relevant :-p. (so others can track if they want)


Replace boost::enable_if_c, boost::enable_if and boost:disable_if with std::enable_if

Summary
This PR is the final sequel of my boost cleanup trilogy. The changes are simple, there are 3 different cases:

replace boost::enable_if_c directly with  std::enable_if.

replace boost::enable_if with std::enable_if and add an additional ::value to the first parameter of the type trait

replace boost::disable_if with std::enable_if, add an additional ::value to the first parameter of the type trait and a negation

Tests
There are no new tests added.
Side Effects
/
Checklist

[x] Math issue #1126

[x] Copyright holder: Rok Češnovar, Univ. of Ljubljana

[x] the basic tests are passing

[x] the code is written in idiomatic C++ and changes are documented in the doxygen

[x] the new changes are tested

This is ready for review.

@rok-cesnovar, awesome!
I pushed an update to make/test-math-dependencies so no one can revert the changes you've made! (Rules are only as good as can be enforced.)
If you want to verify, just try sneaking in a use of one of boost functions in and you'll find that running make test-math-dependnencies will fail.
Want to take a look at the change I've made just to make sure I've put in enough rules?

Looks good. I will merge once this passes.


[WIP] Set up docs to release from Appveyor CI

Resolves part of: https://github.com/facebook/create-react-app/issues/5238

Turn on Appveyor for .md file changes
WIP: Add Appveyor continuous deployment
See:

https://help.appveyor.com/discussions/questions/2894-pushing-to-gh-pages
https://docusaurus.io/docs/en/publishing#automating-deployments-using-continuous-integration

AppVeyor has been very flaky for us and we've been thinking about moving to Azure.
Can we release from Travis instead?

Travis has Windows support now. I was considering making a PR to try it out. Is that something we want to consider? There are definitely pros and cons to having a single CI service.

If we can make it work sure.

Okay, I'll give it a try and we'll see what happens. Windows support on Travis is still in beta/preview but some other projects seem to be using it successfully.

Here's a couple issues I ran into when I set it up for a project last week:

The build will hang and never start if you have a secure environment variable configured.
The build will hang and never complete if you have the Yarn installer (that is automatically run for a repo with a yarn.lock) check GPG signatures, which it does by default (YARN_GPG=no to disable). I believe in this case the build never completes because it doesn't close the gpg-agent daemon.

Just thought I'd drop this here to hopefully help you avoid headaches. Apart from that it's been working well for me here.

Close in favor of using Travis on https://github.com/facebook/create-react-app/pull/5547, PR in progress

#5547 is just for setting up Windows on Travis. There are some bugs on Travis blocking that PR so I don't think we should combine these two things.

@iansu ok. Can I work on the continuous deployment on Travis instead, or is that not possible at this point? (I'm a bit confused by the Travis / Appveyor dual setup, but will dig into it more.)

Yes, feel free to work on it. Just ignore Appveyor for now. If you get stuck make a PR and we can help you with it.


P2P Code Review

@idungstanley

It was a really good job, according to the requirements.

@aliveGUY

Please consider making your code shorter and more readable.

@rskinnerc

It is a great job. I liked your approach.

Considered, thank you!


Add more R dependencies for Hector's tutorial in OHW-en-espanol event

ref https://github.com/oceanhackweek/Hub-Management/issues/6 and https://github.com/2i2c-org/infrastructure/issues/4883

Built image: https://ghcr.io/oceanhackweek/r:13f3be6


[Enhancement] Update regexp_extract function for trino parser

Why I'm doing:
In StarRocks, the regexp_extract function returns an empty string when there is no matching content. Trino returns NULL. The two behave inconsistently.
What I'm doing:
Function conversion in trino compatibility layer: regexp_extract -> if(regexp_extract(xxx)= ", null, regexp_extract(xxx))
Fixes #34026
What type of PR is this:

[ ] BugFix
[ ] Feature
[x] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Does this PR entail a change in behavior?

[x] Yes, this PR will result in a change in behavior.
[ ] No, this PR will not result in a change in behavior.

If yes, please specify the type of change:

[ ] Interface/UI changes: syntax, type conversion, expression evaluation, display information
[ ] Parameter changes: default values, similar parameters but with different default values
[x] Policy changes: use new policy to replace old one, functionality automatically enabled
[ ] Feature removed
[ ] Miscellaneous: upgrade & downgrade compatibility, etc.

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

[x] I have checked the version labels which the pr will be auto-backported to the target branch

[x] 3.2
[x] 3.1
[ ] 3.0
[ ] 2.5

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.