About camera pose for Replica

Thanks for your great work!
I tried to use your trained model on a scene of Replica, which is used in iMAP and NICE-SLAM. I noticed that the estimated camera pose is not on a real scale. I also visualized the sparse point cloud, which is smaller than the ground truth mesh. I would like to know if there are any mistakes I made in using your code.
Thanks for your help!
sparse point cloud

ground truth mesh

iMAP and NICE-SLAM use RGB-D input, so they obtain the scene scale from the depth input. DPVO only uses RGB so the scale is unknown. If you have a depth map from Replica, you can compute a rescaling factor by aligning one of the DPVO depth maps to a Replica depth map.

Thanks for your reply. That makes sense. But I have no idea about how to get a DPVO depth for a specific frame because I noticed here you just use some patches, which include the inverse depth information,  in your pipeline.

The center of each 3x3 patch contains an inverse depth, and a pixel location (at 1/4 resolution). If you sample the associated replica depth map at this pixel location and multiply by the dpvo inverse depth, you will get the scale difference. The predicted patch depths may be somewhat noisy, so it would be best to do this for many patches and take the median.

I will try this. Thanks for your detailed illustration!

I will try this. Thanks for your detailed illustration!

Hello, have you found a way to calculate the depth map? I would be very grateful.


Not working since official API?

Hello there,
after upgrading to Ubuntu 16.04 the package wasn't working anymore. After some hours of digging around i found that godaddy now has an official API that can be used to completely manage accounts. This is likely the cause for it not working.
It may be a good idea to point people to the usage of that API instead or to change the library to use it.
Guide:
http://teanazar.com/2016/05/godaddy-ddns-updater/
Official:
https://developer.godaddy.com/
Specific documentation for the needed API:
https://developer.godaddy.com/doc#!/_v1_domains/list

In case you're interested I have a fork of this script at AndreasLoow/godaddy-dyndns, and it uses the official API (I did not know that it existed before reading your post -- thank you).


Issue running OpenAPI tools

Description
LangChain throws error when running OpenAPI tools.
Steps to reproduce

Create a Klarna OpenAPI tool.
Run it
Following error observed:

File "/Users/ismailpelaseyed/Projects/superagent/.venv/lib/python3.11/site-packages/langchain/chains/openai_functions/openapi.py", line 274, in get_openapi_chain
    raise ValueError(f"Unable to parse spec from source {spec}")

Acknowledgements

[X] My issue title is concise, descriptive.
[X] I have searched the existing issues to make sure this bug has not been reported yet.
[X] I am using the latest version of superagent.
[X] I have provided enough information for the maintainers to reproduce and diagnose the issue.

Issue was mitigated by running a function calling model with OpenAI


[ENH] cdef class __hash__ should handle integer overflow gracefully

Calling __hash__ on a cdef class with a too large value can lead to exceptions - specifically this can happen when returning id(self) which is an obvious choice for classes that are equal by identity.
For Python classes the default behaviour is just to truncate the hash value:

Note: hash() truncates the value returned from an object’s custom __hash__() method to the size of a Py_ssize_t. This is typically 8 bytes on 64-bit builds and 4 bytes on 32-bit builds.

Describe the solution you'd like
Cython should probably do the same. In practice Python accomplishes the truncation by just calling PyObject_Hash on the oversized integer, and that's probably the easiest way for Cython to work too.
Describe alternatives you've considered
The main alternative would be to do nothing - the user is responsible for feeding a correct sized integer. This has the advantage of not trying to second-guess the user. Note that Cython already second-guesses the user to an extent and converts -1 to -2 (to avoid signalling an exception.
Other thoughts
It isn't completely obvious where to put this. One option would be in CPyHashTType's from_py_function = "__Pyx_PyInt_AsHash_t". That might affect code outside __hash__ though?

My first intuition is to do nothing. Isn't this really only an issue with Python 2, where Py_hash_t is not defined?
And, was this really an issue with __hash__ and not with the id() call in #3840? As long as 'id()returns a C integer, and we return just that asPy_hash_tfromhash`, I don't see an issue here.

I don't think it's a specifically Python 2 issue.
The issue with id() was that Py_hash_t is a signed int while id() returns an unsigned int with the same number of bits. Therefore about half of the numbers that can be returned for id() aren't valid hashes. For 64 bit systems this doesn't seem to be a problem practically but for 32 bit systems it looks like it's pretty common for pointers to be in the upper half of the range.
The more general point is that the Python wrapper for __hash__ does accept any integer however large and truncates it to fit in Py_hash_t and therefore Cython might want to do the same. Maybe. Obviously cdef class isn't a Python language feature so they're allowed to behave differently though.
It's clearly not a big issue and it's easily worked around, so doing nothing may be a sensible option.


header exchange throws store already initialized error

After the syncer is enabled for aggregator nodes, there exists two workflows that tries to initialize the header store using the genesis block which causes the 2nd to fail with error store already initialized. A simple fix of skipping the initialization if already initialized should fix the issue, however need to ensure that fix will work as expected.
10:36AM ERR failed to start syncer after initializing header store error="store already initialized" module=HeaderExchangeService

current behavior of aggregator is that, it does not run syncer, but it will append the created headers directly to the header store. currently the syncer.go in the go-header package does not allow both self append and syncer to work concurrently, hence the aggregator does not run syncer. see the error below:
2023-05-22T18:06:48.718-0500	ERROR	header/sync	sync/sync.go:211	syncing headers	{"from": 2, "to": 2, "err": "header/store: non-adjacent: head 2, attempted 2"}
6:06PM DBG retrieved potential blocks daHeight=158 module=BlockManager n=1

@Wondertan can syncer check if the header store is already updated and skip syncing in that case?
if the aggregator has to do both 1) append the created headers directly to header store and 2) run the syncer in case to support multiple aggregator settings, the syncer has to allow this. note that, directly appending the self created headers is necessary to prevent withholding attacks (if we don't directly append and simply broadcast and hope that gossip will eventually append it).

@Wondertan can syncer check if the header store is already updated and skip syncing in that case?

Do you mean complete skip of syncing or skip appending the particular header that is already in the store?
When you directly append headers to the Store, does Syncer additionally re-requests from elsewhere the same direct headers?

same

we need syncer to skip the syncing of headers which are directly appended to store by the node. in terms of code, it has to hit the line: https://github.com/celestiaorg/go-header/blob/main/sync/sync.go#L190, but from the error logs (i added couple of more), we can see that storeHead (https://github.com/celestiaorg/go-header/blob/main/sync/sync.go#L184) is getting stale value. not sure why.
its two different go-routines: while the syncer is running in the background, the node is also creating headers, appending to its store and broadcasting it. https://github.com/rollkit/rollkit/blob/main/node/full.go#L244 in a different go-routine.


Update to HttpClient breaks images with CORS restrictions on iOS with WKWebView

See #125.
This merge appears to break image loading on iOS with WKWebView. It happens because there is no way to disable CORS when you are using WKWebView.
In my case, the images I would like to cache for offline use are user avatars, which means that I do not control the remote server and cannot work around the issue that way.
Downgrading to 4.2.1 fixes the issue for now.

I confirm.

See https://ionicframework.com/docs/wkwebview/#xhr-requests-do-not-work
Looks like we have to revert the HttpClient change, or seek an alternative.  I'm leaning more towards my WIP native http plugin, but I'm not sure when I'll have time to finish developing it.

I have the same issue displaying an image from a remote server on an iOS device. Do we know when this fix will be implemented. I tried downgrading to v4.2.1 but was still getting the issue. What's the correct procedure for downgrading?

@Boldonglen change the version of the package in your package.json, then run npm install.
If it's still doesn't work then you should look into the configuration of the server serving your pictures.

Hi @glemiere, Thanks for the advice ill try that. I have full control of the server and I use NGINX to host my PHP (Laravel) backend that serves up the images. Could you give me any advice on how the it should be configured?

@Boldonglen you can enable CORS in PHP using the following header : <?php
header("Access-Control-Allow-Origin: *");

same here.
My pictures are on amazon S3, i tried to change the CORS config but wasn't successful. Had to downgrade to 4.2.1.

@matheusdavidson you have no CORS issues on your server as long as downgrading to 4.2.1 works. If it doesn't, only then you might have a real CORS issue ;)

Also had to downgrade to 4.2.1 to get this to work with S3 (CORS config is correct). However, periodically, images not loading - probably because of other issues with WKWebView compatibility(?).
This is a dealbreaker for me - I would rather let users sit and wait for images to reload rather than not show anything! Hasten to say, I've dropped this plugin :-(
Totally agree with @ihadeed on reverting/finding an alternative to HttpClient.

I am getting this issue on 4.2.1 as well...

@Ross-Rawlins maybe you have an actual CORS misconfiguration server side ?

@wis3ape yes the image get corrupted when you navigate while it's loading, I recommend you to use the preload function of the library. I built a preloader running after user authentication in my app to work around this problem, you should do the same ;-)

I am pulling in images from external sources ike linked in using an RSS
feed so I am pretty sure I cant resolve this as I have no access to the
server. Older version of this library worked.
On Tue, 31 Jul 2018 at 18:07, Guillaume Le Mière<EMAIL_ADDRESS>wrote:

@wis3ape https://github.com/wis3ape yes the image get corrupted when
you navigate while it's loading, I recommend you to use the preload
function of the library. I built a preloader running after user
authentication in my app to work around this problem, you should do the
same ;-)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/zyra/ionic-image-loader/issues/131#issuecomment-409276602,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADMeUCFACgmCs7wG3VG_j0Xw6iGKkFFEks5uMIDGgaJpZM4RwsbZ
.

--
Ross Rawlins
Tel:<PHONE_NUMBER>
Cell:<PHONE_NUMBER>
Skype: ross.rawlins
Email<EMAIL_ADDRESS>http://www.duovili.co.za
https://plus.google.com/113781084234234096576/posts
https://www.facebook.com/Duovili
http://www.linkedin.com/company/duovili/ https://twitter.com/Duovili
This e-mail message and all attachments contain the CONFIDENTIAL AND
PROPRIETARY information of DUOVILI DEVELOPMENTS. and may contain LEGALLY
PRIVILEGED information. If you are not the intended recipient, you are
hereby notified that any disclosure, distribution, or use of this e-mail,
its attachments or any information contained therein is unauthorised and
prohibited. If you have received this in error, please contact the sender
immediately and delete this e-mail and any attachments.

@Ross-Rawlins have you tried to set up a proxy ?

Cant you explain this a bit more so I can try implement it.
On Wed, 1 Aug 2018 at 21:15, Guillaume Le Mière<EMAIL_ADDRESS>wrote:

@Ross-Rawlins https://github.com/Ross-Rawlins have you tried to set up
a proxy ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/zyra/ionic-image-loader/issues/131#issuecomment-409688706,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADMeUHq_pJBdB-Ke9bGD_nDvy250o3Wdks5uMf5kgaJpZM4RwsbZ
.

--
Ross Rawlins
Tel:<PHONE_NUMBER>
Cell:<PHONE_NUMBER>
Skype: ross.rawlins
Email<EMAIL_ADDRESS>http://www.duovili.co.za
https://plus.google.com/113781084234234096576/posts
https://www.facebook.com/Duovili
http://www.linkedin.com/company/duovili/ https://twitter.com/Duovili
This e-mail message and all attachments contain the CONFIDENTIAL AND
PROPRIETARY information of DUOVILI DEVELOPMENTS. and may contain LEGALLY
PRIVILEGED information. If you are not the intended recipient, you are
hereby notified that any disclosure, distribution, or use of this e-mail,
its attachments or any information contained therein is unauthorised and
prohibited. If you have received this in error, please contact the sender
immediately and delete this e-mail and any attachments.

@Ross-Rawlins Basically you need to fetch your picture with a server that serves them back to your app. You can implement this anyway you want, you don'y even need another physical machine to do that ;)

A possible solution is that you may need to remove the content src reference in your ./config.xml file:
<content original-src="index.html" src="http://<IP_ADDRESS>:8100" />
Then rebuild your project:
ionic cordova build ios
Then test on your phone using XCode.
Basically, it seems that for this plugin, it's not possible to use livereload on your physical iOS device and simulate an XCode iOS device at the same time.


External injection interacts poorly with workspaces

The external-injection branch implements a Cargo subcommand to inject the audit data without requiring a build script and avoiding several issues associated with that.
It currently assumes that only one binary artifact is being built, and handles cases where several binaries or an entire workspace is being built very poorly. Cargo doesn't make the information about which binary artifacts are being built readily available to subcommands.
According to @tofay:

You can get info on binaries built in an external tool, but you have to enable cargo json messages and then parse them (https://doc.rust-lang.org/cargo/reference/external-tools.html#artifact-messages). we have a wrapper at work that does this to do some post-processing of binaries, and that's the approach I've proposed for cargo-spdx at https://github.com/alilleybrinker/cargo-spdx/pull/9

This will probably have to be implemented before cargo auditable can be actually used in the wild for arbitrary projects.

This might be solvable using RUSTC_WORKSPACE_WRAPPER. Further discussion of this issue can be found on Zulip.

An approach based on RUSTC_WRAPPER that fixes this has landed in #40.


Split

What is the purpose of the change
(For example: This pull request makes task deployment go through the blob server, rather than through RPC. That way we avoid re-transferring them on each deployment (during recovery).)
Brief change log
(for example:)

The TaskInfo is stored in the blob store on job creation time as a persistent artifact
Deployments RPC transmits only the blob storage reference
TaskManagers retrieve the TaskInfo from the blob cache

Verifying this change
(Please pick either of the following options)
This change is a trivial rework / code cleanup without any test coverage.
(or)
This change is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)

Added integration tests for end-to-end deployment with large payloads (100MB)
Extended integration test for recovery after master (JobManager) failure
Added test that validates that TaskInfo is transferred only once across recoveries
Manually verified the change by running a 4 node cluser with 2 JobManagers and 4 TaskManagers, a stateful streaming program, and killing one JobManager and two TaskManagers during the execution, verifying that recovery happens correctly.

Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (yes / no)
The public API, i.e., is any changed class annotated with @Public(Evolving): (yes / no)
The serializers: (yes / no / don't know)
The runtime per-record code paths (performance sensitive): (yes / no / don't know)
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: (yes / no / don't know)
The S3 file system connector: (yes / no / don't know)

Documentation

Does this pull request introduce a new feature? (yes / no)
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

API Expressions 加Expression后缀
枚举变量用 API expression 里面的
原先的 expression 包名不变
API Expression 包路径是否要改成 api.expression ?
visitor 模式里面的 case FunctionDefinitions.TRIM 改成 case TRIM
remove DistinctAgg

public interface ExpressionVisitor<R> {

	R visitCall(CallExpress call);

	R visitTypeLiteral(TypeLiteralExpression typeLiteral);

	R visitSymbol(SymbolExpression symbolExpression);

	R visitValueLiteral(ValueLiteralExpression literal);

	R visit(Expression other);

	R visitFieldReference(FieldReferenceExperssion fieldReference);

}


Idea: Setup routes to remove the vm ip annoyance

On my personal docker setup I use something similar to the following command to directly expose my docker container's ip's to my mac.  It has made playing with docker on mac much similar to how it feels on linux when you can pretty much treat a container as a lightweight vm.
sudo route -n add DOCKER_SUBNET DOCKER_VM_IP

The subnet is usually something like <IP_ADDRESS>/16 by default but check first.
The route is removed when you restart and can be removed by a mirror command like so:
sudo route -n delete DOCKER_SUBNET

I love this tool you have put together, and I think this feature would get it that much closer to "just using" docker on a mac.  :)

@carlsverre, I'm trying to setup routes myself but I cannot get the vm host to forward the packets to the container.
It worked for me flawlessly on my docker-machine/virtualbox-setup so any advice on how you achieve this would be appreciated.
@nlf, dlite looks really nice!

Whoops - totally forgot that I have forwarding rules setup on my docker vm.  Not sure if docker server is supposed to do that or if its the responsibility of the server admin.  Anyways, here is what works for my docker-machine vm:
docker@dmachine:~$ sudo iptables -S
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT
-N DOCKER
-A FORWARD -o docker0 -j DOCKER
-A FORWARD -o docker0 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -i docker0 ! -o docker0 -j ACCEPT
-A FORWARD -i docker0 -o docker0 -j ACCEPT

I have the same on my dlite vm and haven't been able to spot any other differences from my docker-machine vm either. But no working packet routing ...
I'll keep on digging ... something must be different!

this is an interesting idea for sure. let me know if you figure out how to get the routes working! also it may be of use to go through old issues in the xhyve repo where i feel like this has been brought up before

Bingo, @nlf!
Your advice let me to ailispaw/boot2docker-xhyve/issues/7 and that works for me as well.
$ sudo route -n add <IP_ADDRESS>/16 local.docker
add net <IP_ADDRESS>: gateway local.docker
$ ifconfig bridge100
bridge100: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	options=3<RXCSUM,TXCSUM>
	ether ba:e8:56:63:23:64
	inet <IP_ADDRESS> netmask 0xffffff00 broadcast <IP_ADDRESS>
	Configuration:
		id 0:0:0:0:0:0 priority 0 hellotime 0 fwddelay 0
		maxage 0 holdcnt 0 proto stp maxaddr 100 timeout 1200
		root id 0:0:0:0:0:0 priority 0 ifcost 0 port 0
		ipfilter disabled flags 0x2
	member: en12 flags=3<LEARNING,DISCOVER>
	        ifmaxaddr 0 port 17 priority 0 path cost 0
	Address cache:
		a6:84:b2:34:cf:32 Vlan1 en12 1170 flags=0<>
	nd6 options=1<PERFORMNUD>
	media: autoselect
	status: active
$ sudo ifconfig bridge100 -hostfilter en12
$ ping <IP_ADDRESS>
PING <IP_ADDRESS> (<IP_ADDRESS>): 56 data bytes
64 bytes from <IP_ADDRESS>: icmp_seq=0 ttl=63 time=0.513 ms
64 bytes from <IP_ADDRESS>: icmp_seq=1 ttl=63 time=0.324 ms
^C
--- <IP_ADDRESS> ping statistics ---
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.324/0.418/0.513/0.095 ms

And as a shell one-liner (although not pretty):
INTERFACE=$(route get local.docker  | grep interface: | cut -f 2 -d:); echo ifconfig ${INTERFACE} -hostfilter $(ifconfig ${INTERFACE} | grep member: | cut -f 2 -d: | cut -f 2 -d\ )

Wow good find! Would be sweet if xhyve was able to set that up on the bridge automatically. But for now the one liner works perfect. Maybe we should add this to a faq somewhere?

Nice one @arnested! :) I'm also a converted docker-machine user and routing was half of the experience. What would be the best way of automating this step?

+1 for enabling this!

It looks like it's safe to add the route and set the hostfilter repeatedly, so I'm gonna go ahead and implement this (and the dnsdock feature) within DLite automatically, but behind a configuration option so it's opt-in and runs when the daemon is launched.

I don't know how often routes change on OSX, but I do know that they are reset upon certain events (WiFi connect/disconnect? VPNs?). Since I believe monitoring by DLite is outside its scope, perhaps a "route" command could be used to refresh routes?

yeah, that might be necessary

looking at your modified instructions that loop and add the hostfilter for every interface that's a member of the bridge interface, are there any negative side effects of adding the hostfilter for the incorrect interface?
if so, for simplicity i'm thinking i just set the hostfilter for every member of the bridge and call it a day rather than attempting the pings

closed via 94751cc5c6807fdce70de33864d38799d9d74615


[issue] solar generator crazy ticking

Minecraft Version:1.7.10
Forge Version:1.7.10-<IP_ADDRESS>4-1.7.10
Advanced Rocketry Version:1.2.4
LibVulpes Version:0.2.6
Explain issue in detail:
After some hours the solar generator get crazy high ticking near 480 000 us each. (checked in OPIS)
Server restart fix it for some hours, remove them solve the issue.
Thanks

Can you run a VisualVM profile and upload the results of that?

Hello,
My server is an unbuntu with no GUI. Htop show 1 vCPU at 100% when i have this issue. Then Opis helped me to find the entities that generate this. My dedicated server has 6 vCPU and 16Gb of ram and is not very loaded .
After removing solar generators no more issue.

@choum33 Can you open a port on your ubuntu and give yourself the ability to run a Visual VM profile from your server. As zmaster asked above.

Is this still a issue? Please comment if it is and i will reopen if if you are unable? We are closing old issues to see what is still relevant and needs to be fixed.


Added support for new Java 8 LocalDate and LocalDateTime

Both JSONWriter and the JSONPopulator now treat LocalDate and LocalDateTime as "primitive" dates.
Note that tests for Date conversions for the JSONPopulator were missing so I've added them together with the ones for LocalDate and LocalDateTime.

Please re-open this PR against master branch


Update to pax-logging 1.11.13

This patch updates pax-logging to version 1.11.13. This fixes CVE-2021-44832. The issue is unlikely to hit Opencast
adopters since the affected appender is not configured by default and not commonly used in our community.
Your pull request should…

[x] have a concise title
[x] close an accompanying issue if one exists
[x] be against the correct branch
[x] include migration scripts and documentation, if appropriate
[x] pass automated tests
[x] have a clean commit history
[x] have proper commit messages (title and body) for all commits

Thanks for the review


[fix] Cursor jumping when editing chart and dashboard titles

Before: When editing dashboard and chart title, after enter a space, the cursor always jump to the end of editing text:

After

@williaster @kristw @michellethomas @mistercrunch

Codecov Report

Merging #7038 into master will increase coverage by 0.01%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master    #7038      +/-   ##
==========================================
+ Coverage   64.45%   64.46%   +0.01%
==========================================
  Files         421      421
  Lines       20524    20519       -5
  Branches     2245     2243       -2
==========================================
- Hits        13229    13228       -1
+ Misses       7168     7164       -4
  Partials      127      127

Impacted Files
Coverage Δ

superset/assets/src/components/EditableTitle.jsx
81.53% <0%> (+4.39%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0782e83...812586a. Read the comment docs.

LGTM

@williaster  see my After gif: i tested editing tab title.

🙌🙌 🙌 I just didn't watch long enough 🤦♂
nice work!


Add component name to scheduler job name before dispatching

Lifecycle debug becomes hard without component name information

New architecture will be deployed, not applicable.


Signature verification issue

When trying to build my Dockerfile, I get this error.  It seemed to build fine as recently as a few days ago:

Step 19 : RUN curl -SL "$TOMCAT_TGZ_URL" -o tomcat.tar.gz       && curl -SL "$T&& rm tomcat.tar.gz*ar.gz --strip-components=1
---> Running in xxxxxxxx
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
100   351  100   351    0     0    908      0 --:--:-- --:--:-- --:--:--  1244
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
100   262  100   262    0     0    505      0 --:--:-- --:--:-- --:--:--   678
gpg: no valid OpenPGP data found.
gpg: the signature could not be verified.
Please remember that the signature file (.sig or .asc)
should be the first file given on the command line.
INFO[0017] The command [/bin/sh -c curl -SL "$TOMCAT_TGZ_URL" -o tomcat.tar.gz && rm tomcat.tar.gz*] returned a non-zero code: 2 z.asc

That sounds like it might have failed to fetch some of the keys in the previous step.  If you have the image ID of the previous gpg step, you can try doing docker rmi <image-id> and building again, or just build with --no-cache.


Add option to add additional directories to generate.cache snapshot

Is your feature request related to a problem? Please describe.
We often use nuxt in a yarn workspace based monorepo like:
/library
/nuxt-app
  /nuxt.config.js
/shopify-theme
yarn.lock

When we push a commit up to Netlify and there is only changes to the library directory, we'll see a message like this in the deploy log:
11:03:26 AM: [success] Skipping webpack build as no changes detected

When nuxt-app depends on those changes to library, this means that the new build doesn't contain the fresh code change.
Describe the solution you'd like
I think this could be fixed with a nuxt.config.js option to provide our own patterns to globby here:
https://github.com/nuxt/nuxt.js/blob/853439ddf945b6ee358d5912e6e5a68009633c27/packages/cli/src/utils/generate.js#L162-L167
Since globby supports an array for its first argument, I think we could pass a value like:
await globby(['**/*.*', '../library/**/*.*'], {
  ...
}

Describe alternatives you've considered
We could move the rootDir out to the parent.

This is needed specially for monorepo applications. Could be great to be able to specify other folders from the nuxt.config.js file.
@weotch have you found an alternative? I have been dealing with this for a while now.

This is needed specially for monorepo applications. Could be great to be able to specify other folders from the nuxt.config.js file.
@weotch have you found an alternative? I have been dealing with this for a while now.

@weotch and others, I solved this issue by adding a symlink to that external folder. You can either do it manually or create it from a module:
  const coreCacheFolder = this.nuxt.options.srcDir + '/_libcache';

  this.nuxt.hook('generate:cache:ignore', () => {
    if (!fs.existsSync(coreCacheFolder))
      fs.symlink(path.resolve(__dirname, '../'), coreCacheFolder, 'dir', () => {});
  });

I have tested this on Netlify and it works perfectly!

@weotch and others, I solved this issue by adding a symlink to that external folder. You can either do it manually or create it from a module:
  const coreCacheFolder = this.nuxt.options.srcDir + '/_libcache';

  this.nuxt.hook('generate:cache:ignore', () => {
    if (!fs.existsSync(coreCacheFolder))
      fs.symlink(path.resolve(__dirname, '../'), coreCacheFolder, 'dir', () => {});
  });

I have tested this on Netlify and it works perfectly!

We are approaching the Nuxt 2 EOL date (June 30, 2024) - see this article for more information. I'm closing this issue as it's marked as a Nuxt 2 related enhancement and it's not a critical issue.
That doesn't mean it might not be relevant for Nuxt 3. If it is, please feel free to open a new issue (or just comment, and I can reopen it). 🙏
Thank you for your understanding and for your contribution to Nuxt! 🎉


Allow the intword filter in humanize to accept negative numbers

Thanks @jay20162016, have you created a [ticket]https://code.djangoproject.com/newticket for this change?
It would be good to take a look at Django Contribution doc.

I just created one: https://docs.djangoproject.com/en/dev/internals/contributing/triaging-tickets/

Thanks! Could you please add tests, as well as a versionchanged note in the intword documentation?

Sorry, I don't know how to create a test or a versionchanged note, as I simply patched this because I needed to use it in my site. :-(

Here you can find how to document new features.
And here you can find tests for intword.

By the way, where are the doc files where i put the versionchanged note into?

By the way, where are the doc files where i put the versionchanged note into?

Here is the intword documentation.

What should I replace the versionchanged block with?
In addition, I already added a test for negative values.

@jay20162016 Thanks :+1: Welcome aboard :boat:
I simplified tests and added release notes.


ReferenceField is sending wrong request

I'm using feathers ^3.2.3 and the <ReferenceField /> is apparently sending the wrong request.
Currently query[idKey] = { $in: ids }; is being used but that returns an empty array. Changing  it to query[idKey] = ids; does work for me.
I'm pretty new to feathers but I would assume this is a feathers v2 vs v3 thing?
Happy to make a PR if this makes sense toy you guys.

@josx Thank you so much for clarifying. i'll close this since it appears to be a problem with my code.

no problem, if i can help you just write me.


New Package Not Showing In Search Results

Describe the bug
I uploaded https://pypi.org/project/RandomX/ to wrap a library with active maintenance, and it does not show in search results for me.
Instead, https://pypi.org/search/?q=randomx gives me only  this list of packages:

pyqrandomx 0.3.1 May 6, 2021 QRL RandomX library
pyrandx 0.0.6 Feb 23, 2020 Python RandomX hashing module

Expected behavior
Given the package name is the same as the search term, I would expect it to show in search results, or for me to be informed somehow if I did not package it properly.
To Reproduce
https://pypi.org/search/?q=randomx
My Platform
n/a
Additional context
https://github.com/xloem/RandomX

Closing this as a duplicate of https://github.com/pypa/warehouse/issues/10718.


Fix build for VS2019

Old version has build and runtime errors when use lib in  VS2019

Did you make it work ? I actually can't compile. I'm sorry but this project is a little bit old now

It worked in my solution. Did not check in new cloned repo. My bad. It's now fixed.


C/C++ Preprocessor #if and #endif should have distinct colors just like brackets

Noticed that SourcePawn extension has this feature, it should be enabled for built-in C/C++ preprocessor #if and #endif, just like for brackets [] () {}
SourcePawn:

C/C++:

Could probably be done for other languages that have keywords rather than braces for opening and closing a block, e.g. Lua's if-then-end:

Not sure if this is editor or C/C++ language config / text mate.

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

Hello there,is this issue open?If so,could i work on this?

Should make request to https://github.com/jeff-hykin/better-cpp-syntax/issues
Just add #if as brackets to languageconfiguration.json
"brackets": [
	[ "#if", "#endif" ]
]

This change should be reverted if it can't be made work with all the other preprocessor statements that match the endif: #if, #ifdef, #ifndef, #else, #elif, #elifdef, #elifndef, see https://github.com/microsoft/vscode/issues/160744 .

it'll work fine with the rest of the #if's
just #else won't work
as vscode doesn't support triple brackets
but it won't cause any issues

ah.....
one thing I forgot about

bit of a deal breaker
vscode would have to support 'transcendent' brackets
similar problem to https://github.com/microsoft/vscode/issues/160803

Oh -- that seems like a different bug?

-- The red }, not sure how you got the red {.
It doesn't repro with VS Code. Repro code is
#if __cplusplus
extern "C" {
#endif

#if __cplusplus
}
#endif

Should someone file a new bug on that or is the same issue?

@OtherHorizon Yeah, looks like the PR at https://github.com/microsoft/vscode/pull/161192 fixes it though.

Thanks @sean-mcmanus for reporting this!
We will revert the PR as it causes too many unexpected issues.

@hediet Okay, I figured it out via
    "editor.language.colorizedBracketPairs": [
        [
            "#ifdef", "#endif"
        ],
        [
            "#ifndef", "#endif"
        ],
        [
            "#if", "#endif"
        ]
    ]

The #else directives remain the unmatched color.

We closed this issue because we don't plan to address it in the foreseeable future. If you disagree and feel that this issue is crucial: we are happy to listen and to reconsider.
If you wonder what we are up to, please see our roadmap and issue reporting guidelines.
Thanks for your understanding, and happy coding!


How to make sure meffil matches the newly added EPIC b5 manifest

Hi Perishky,
I am trying to add the EPIC b5 manifest (released in Mar 2020) to meffil and did the following:
In the load-epic-manifest.r script

update of filename <-<EMAIL_ADDRESS>
add snp exclusions (re issue #17 )
manifest$snp.exclude <- manifest$Name %in% with(manifest, Name[which(as.numeric(as.character(SNP_MinorAlleleFrequency)) > 0.01)])

Then add EPIC annotation/updated manifest (ref. meffil/data-raw/globals.r) by sourcing the above script and use load.epic.manifest(), the following warning comes up (Is it okay to proceed?):
In which(as.numeric(as.character(SNP_MinorAlleleFrequency)) > 0.01) :
  NAs introduced by coercion

After meffil.add.chip("epic", manifest.epic), what else should be done to ensure meffil now is matching the meffil objects to the newly added manifest? Is it automatic? or any other steps to enforce it to work on meffil objects (something like guess.chip())?
Thank you very much, as I couldn't find tutorial materials for this bit (if I overlook it, sorry for opening the question here; reference to the tutorial would be very much appreciated).
Thanks

I've updated the epic to the file you listed.  If you reinstall meffil, everything should be up to date.  I've also fixed issues #17.
There's no tutorial for updating the chip annotations. Here is what I did:

updated the link to the new annotation file in in data-raw/load-epic-annotation.r
started R with working directory in data-raw/
ran the following code
library(devtools)
library(meffil)
source("load-epic-manifest.r")
manifest.epic <- load.epic.manifest()
meffil.add.chip("epic", manifest.epic)
meffil:::save.globals("../inst") ## this saves the new annotation to your R installation so that it is loaded by default next time you start R and load meffil  (otherwise you have run meffil.add.chip with the new annotation each time you start R and load meffil)


can't read websocket buffer with lambda

Hello,
I try to do an asynchronous read into a websocket, using lambda. But I get read : Operation Canceled
So I don't read the right socket I think.
I can connect to my websocket server, I have no error.
Here my code :
  template <typename Handler>
    void do_read(boost::beast::multi_buffer &buffer, Handler callback)
    {
	auto self(shared_from_this());
	m_ws.async_read(buffer,
                [self, buffer](boost::system::error_code ec, std::size_t /*length*/)
                {
                        if (!ec)
                        {
				 std::cout<< "message : " << boost::beast::buffers_to_string(buffer.data())<< std::endl;
                        }
                        else
                 	       std::cout<<"read : " << ec.message()<<std::endl;
                });
    }

I call do_read like this
m_websocket->do_read(buffer,
		[buffer](boost::system::error_code ec)
 		{
			std::cout<<"mess : " << buffer.data()<<std::endl;
		});

Looks like the socket is beyond destroyed, which is causing the pending read operation to become canceled. You likely have lifetime issues.

I start to create a websocket_session instance
websocket_session_ptr new_websocket(new websocket_session(std::move(socket)));
        new_websocket->run();
        chatwebsocketsessionpointer session = chat_websocket_session::create(room, new_websocket);
        room->join(session);
        wait_for_connection();

Into run()  I accept the incoming connection
m_ws.async_accept(
            boost::asio::bind_executor(
                strand,
                boost::bind(
                    &websocket_session::on_accept,
                    shared_from_this(),
                    boost::asio::placeholders::error)));

After i create a chatpointersession
static chatwebsocketsessionpointer create(chatroompointer room, websocket_session_ptr websocket )
        {
                chatwebsocketsessionpointer session (new chat_websocket_session(room, websocket));
                session->wait_for_data();
                return session;
        }

The async_read function is into wait_for_data ,
So I keep the same socket.
I don't understand why I have lifetime issue.
I read the socket right now the websocket connection

I try to read the socket before I connect to it.
I fix it


Test jobs not completing on test-macstadium-macos11-arm64-2 with ChannelClosedException

Raising this to monitor it, in case it starts being a recurring problem.
Recent occurrences of test jobs failing with ChannelClosedException:
15:26:38  Cannot contact test-macstadium-macos11-arm64-2: hudson.remoting.ChannelClosedException: Channel "hudson.remoting.Channel@4dfa7683:test-macstadium-macos11-arm64-2": Remote call on test-macstadium-macos11-arm64-2 failed. The channel is closing down or has closed down
...
15:35:34  wrapper script does not seem to be touching the log file in /Users/jenkins/workspace/Test_openjdk11_hs_extended.system_aarch64_mac@tmp/durable-bcf35e03
15:35:34  (JENKINS-48300: if on an extremely laggy filesystem, consider -Dorg.jenkinsci.plugins.durabletask.BourneShellScript.HEARTBEAT_CHECK_INTERVAL=86400)

To make it easy for the infrastructure team to repeat and diagnose, please
answer the following questions:

test suite/name (e.g, BUILD_LIST, TARGET, CUSTOM_TARGET)? not specific to test suite
a link into recent Test_ job on https://ci.adoptium.net which showed the failure

https://ci.adoptium.net/job/Test_openjdk11_hs_extended.system_aarch64_mac/111
https://ci.adoptium.net/job/Test_openjdk11_hs_sanity.openjdk_aarch64_mac/112/

Hyperlink to re-run in Grinder:
Is there an existing issue elsewhere covering this?
Which machine(s) does it work on?
Which machine(s) does it fail on?  test-macstadium-macos11-arm64-2

Any other details:
Maybe this is a two-off failure from the recent jdk11 2282 build pipeline, will keep monitoring to see if it recurs:
https://trss.adoptium.net/searchResult?buildId=63fe453317052c6715e8d8ee&searchText=ChannelClosedException

We have no fixed aarch64 macs any more so only orka nodes are available:

10 iterations of jdk_util_0
100 iterations of jdk_util_0
10 iterations of LangLoadTest_5m_0
100 iterations of LangLoadTest_5m_0

All failed due to an orka node provisioning issue - leaving links above to allow future re-runs.


New Item Attachments unable to add modifiers/descriptions

Not sure if I'm doing something wrong here, but I cannot seem to add modifiers on weapon attachments. Base mods, or additional mods. On the base mod when I click the add button, nothing happens at all. On the add modifier when I click the add button, it throws the error in the console.

I can drag an drop stuff from the compendiums, that appears to work. I just can't manually edit. If that makes sense
Also unable to add description. When I click save, it resets, and get this in the console.

On the vanilla theme, that console message is not there, it just doesn't save the text.

To verify what you've done.

You opened a weapon.
Clicked on the plus in the header of the attachments to create a new attachment
Then clicked on the Add Mods tab and clicked the plus to add a new modification
Then clicked on the modifiers tab and tried to add a new modifier.

Fixed in dev branch will be in next alpha-5


[SITE] Character tester?

Would there be any interest in an interface that lets you explore one single character?

See axes changes in detail
See precisely where metrics are

Needs a way to handle glyphs composed of multiple characters (ligatures).
Or is this straying too much from webfont into hardcore typography?

Closing this, as there's other tools like Samsa that do this very well, and it's outside the scope of WF.


$serverinfoservices is null

First of all, thank you for your power shell script. I am using you it but, it is giving me error.
$serverinfoservices is null

I've just updated the README.MD with some info about modifying the script for different languages.

Thank you. My issue is solved.


elastalert-test-rule with --data still tries to connect to the elasticsearch server

When you run elastalert-test-rule --data data.json myrule.yaml it will still try to hit the elasticsearch instance defined in myruyle.yaml's es_host setting, resulting in
No handlers could be found for logger "elasticsearch"
Traceback (most recent call last):
...
File "elastalert/elastalert/config.py", line 235, in load_modules
    raise EAException('Error initializing rule %s: %s' % (rule['name'], e))
elastalert.util.EAException: Error initializing rule Osquery - new kext: Error searching for existing terms: ConnectionError(
('Connection failed.', gaierror(-2, 'Name or service not known'))) caused by: ConnectionError(('Connection failed.', gaierror
(-2, 'Name or service not known')))

The current work-around I'm using is to simply comment out the es_host in the rule file.  Instead, elastalert-test-rule should be smart enough to simply override bothering to connect to elasticsearch and just use the file data since it's not getting any data from elasticsearch anyway.

Same behavior here:
bash-4.4# cat rule.yml
index: my-index
name: Sample rule
type: any
filter:
- term:
    foo: "bar"
alert:
- command
command: [ "touch", "/tmp/alert" ]

bash-4.4# cat data.json
[
  {"foo": "bar", "_id": "hello", "@timestamp": "2018-11-13T10:00:00"}
]

bash-4.4# elastalert-test-rule --data data.json rule.yml
Successfully loaded Sample rule

INFO:elastalert:Note: In debug mode, alerts will be logged to console but NOT actually sent.
                To send them but remain verbose, use --verbose instead.
WARNING:elasticsearch:GET http://localhost:14900/ [status:N/A request:0.001s]
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/elasticsearch/connection/http_requests.py", line 76, in perform_request
    response = self.session.send(prepared_request, **send_kwargs)
  File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
ConnectionError: HTTPConnectionPool(host='localhost', port=14900): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f5adbbc0390>: Failed to establish a new connection: [Errno 111] Connection refused',))

Does that mean that there's actually no way to run elastalert-test-rule without an actual connection to an ES cluster?

Hello,
I'm still hitting the issue with Elastalert 0.1.39. What's more, it seems like the parameter passed to --data is simply ignored?
Any insights? This whole thing seems to totally defeat the whole purpose of elastalert-test-rule to me.


Add minimal documentation on hk versions of JAX transforms

See #14.

Oh wow, I didn't even know we had a readthedocs. It's not very discoverable in my opinion. I think we should feature the link more prominently in the README and move parts of it into the docs.

I've moved all of the new docs into RTD.

BTW I've updated our project URL on GitHub to the RTD page to make it more discoverable. +1 to making these more complete and discoverable. I plan to add an internals guide there too in the next few weeks.

Should be all done now.


Any plans to make it work with .NET Core?

Hi,
As far as I can see the provided CLI's only work with OWIN Web.
Are there any plans to make the CLI .NET Core compatible and even better make the sources of the CLI open source?

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

ID: 45cb3eec-7693-4e22-bcde-3f85d5a4be14
Version Independent ID: 506c3302-e823-8f1e-d547-083ef0b664df
Content: SCIM user provisioning with Azure Active Directory
Content Source: articles/active-directory/manage-apps/use-scim-to-provision-users-and-groups.md
Service: active-directory
Sub-service: app-mgmt
GitHub Login: @msmimart
Microsoft Alias: mimart

@sven73a
Thanks for your feedback! We will investigate and update as appropriate.

@sven73a right now there is no ETA on this, but you can make a feature request in User Voice for this. https://feedback.azure.com/forums/169401-azure-active-directory
If you link it I will upvote it.
I have also passed your feedback along to the product team and will update this thread as soon as I have news from them.
@msmimart

I'm closing this out but am actively keeping an eye on updates from the product team and will comment on this thread when they respond.

@sven73a What are you trying to accomplish with it?

I'm closing this out but will update the thread as I hear back from the PG. They said that as of yet there are no plans for this.

Hi we are building some SCIM reference code using .Net core.  We can share the reference code in progress if so.

Hi,
Thanx for the replies.
We are upgrading our SCIM API, which are using your CLI. With the upgrading work I tried to transfer it to an .NET core application, because that is our standard.
I am not a Microsoft employee. I am working for Sogeti Netherlands. But I am definitely interested in code which is in progress :)
Kind regards,
Sven Ansem


Verify TestNG parameters in worker

Previously we would load up the test runtime claspath in TestNGTestFramework, then load some TestNG classes to verify which version we are running. Based on the version we performed verification to ensure the user set the test options correctly relative to the version of TestNG they are running.
We were caching this ClassLoader even after the build was complete, thus production jars could have had their files held open after the build was complete. To avoid this, we move the verification to inside the test worker -- when the application classloader already has TestNG on the path. This allows us to not construct the test ClassLoader in the main Gradle daemon, and thus avoid creating a ClassLoader which points at the test runtime classpath and thus the production jars.

@bot-gradle test qfl

OK, I've already triggered the following builds for you:

QuickFeedbackLinux build

@bot-gradle test this

@bot-gradle test this

OK, I've already triggered the following builds for you:

PullRequestFeedback build

@bot-gradle test and merge

Your PR is queued. See the queue page for details.

OK, I've already triggered a build for you.


request body

@rultor merge

@rultor merge

@h1alexbel OK, I'll try to merge now. You can check the progress of the merge here


Error: spawn ENOENT with node v0.10.2

hey,
i have a testsuite that works on mac os box with node v0.8.20 . my box is archlinux with node v0.10.2 a it fails. even this simple example does not work:
$ ./bin/mocha-phantomjs ./test/bad.html

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: spawn ENOENT
    at errnoException (child_process.js:948:11)
    at Process.ChildProcess._handle.onexit (child_process.js:739:34)

it looks like i am not the only one [1], who gets error like this
[1] http://net.tutsplus.com/tutorials/javascript-ajax/testing-javascript-with-phantomjs/#comment-829198059
maybe it is connected to some node internals [2], but i am not sure..
[2] https://github.com/joyent/node/issues/4674

In my case, add a .cmd  extension to mocha-phantonjs, which like:
spawn('mocha-phantomjs.cmd', ['xxx.html', '-R', 'json'])


Draw building influence when no building is selected

This PR should fix #166.
There is a new option above the canvas and when toggled, the influence (range/radius) of every object in the layout is rendered.
There are also some tests for the new setting. To make the tests work I needed to introduce an interface for AnnoCanvas. This should also be useful in the future.

PR #179 needs to be merged into this change first.

PR is merged with master and merge conflict was resolved.
The new web editor on GitHub is pretty cool.


[iOS] Picker lablel's character is displaced when using combination of single and double byte characters

Summery
When using combination single and double byte character sentence as Picker dialog label, double byte characters are shifted up a little compared to single byte character in iOS.
On Android work fine and perfect!
Reporoduce example
Exmample snack is here
In snack, this year is 2017 is correctly displayed.
The other hand 今年は2018年です and 올해는 2016 년입니다 are displaced.
Double-byte characters 今年は are shifted up a little compared to single-byte characters 2018.
Is there a solution to fix it?
P.S.
react-native-material-dialog is awesome and very useful! Thanks! :+1:

Hi @sasurau4,
This is caused by a bug in the lineHeight property, see example snack here. It only happens after Expo SDK v25.0.0 (React Native 0.54).
There is an issue on the react-native repo for this (https://github.com/facebook/react-native/issues/19193) but I'll also leave this issue open so we can keep track of it.
Thanks for taking your time explaining the issue so well and for your words 🙂


changelog for app frontend v 3.0.0

https://github.com/Altinn/altinn-studio/issues/5869

covered by https://github.com/Altinn/altinn-studio-docs/pull/215, closing this without merge.


Bug with backslash at the end of a string

Hi,
first of all, thanks for the great module!
A little bug that I encountered lately: If a property ends with a backslash, then this last backslash is not escaped correctly:
Reproduce:
<JSONPretty json={{a: "b\\"}}></JSONPretty>
results in
{
  "a": "b\"
}

but should result in
{
  "a": "b\\"
}

Also the colors are not right in this case

Roger，the bug will fixed as soon as possible!
2016-12-23 21:09 GMT+08:00 marcata<EMAIL_ADDRESS>
Hi,
first of all, thanks for the great module!
A little bug that I encountered lately: If a property ends with a
backslash, then this last backslash is not escaped correctly:
Reproduce:
<JSONPretty json={{a: "b\"}}>
results in
{
"a": "b"
}
but should result in
{
"a": "b"
}
Also the colors are not right in this case
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/chenckang/react-json-pretty/issues/2, or mute the
thread
https://github.com/notifications/unsubscribe-auth/ABqF0Uiq9MvpVigX3Hskz8kgreO-qw7hks5rK8gFgaJpZM4LUzuz
.

Hi：
Thx for your report, the bug has been solved, and bug-fixed version is
1.2.2.
We hope you like it.
O(∩_∩)O~
2016-12-29 13:56 GMT+08:00 Kang Chen<EMAIL_ADDRESS>
Roger，the bug will fixed as soon as possible!
2016-12-23 21:09 GMT+08:00 marcata<EMAIL_ADDRESS>
Hi,
first of all, thanks for the great module!
A little bug that I encountered lately: If a property ends with a
backslash, then this last backslash is not escaped correctly:
Reproduce:
<JSONPretty json={{a: "b\"}}>
results in
{
"a": "b"
}
but should result in
{
"a": "b"
}
Also the colors are not right in this case
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/chenckang/react-json-pretty/issues/2, or mute the
thread
https://github.com/notifications/unsubscribe-auth/ABqF0Uiq9MvpVigX3Hskz8kgreO-qw7hks5rK8gFgaJpZM4LUzuz
.

Wow, I didn't expect such a quick response. Thanks again!


Improve coverage report for remote mode if local sources can be found

karma
TN:
SF:webapp/controller/AssetCreate.controller.js
ui5-test-runner
TN:
SF:.nyc_output/sources/controller/AssetCreate.controller.js

Changed the usage of webapp, try to map sources locally before downloading them


[Snyk] Security upgrade jupyter-server from 1.24.0 to 2.7.2

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to fix one or more vulnerable packages in the `pip` dependencies of this project.
Changes included in this PR

Changes to the following files to upgrade the vulnerable dependencies to a fixed version:

notebooks/requirements.txt

⚠ Warning
notebook 6.5.5 has requirement pyzmq<25,>=17, but you have pyzmq 25.1.1.

Vulnerabilities that will be fixed
By pinning:

Severity
Priority Score (*)
Issue
Upgrade
Breaking Change
Exploit Maturity

516/1000  Why? Recently disclosed, Has a fix available, CVSS 4.6
Access Control Bypass SNYK-PYTHON-JUPYTERSERVER-5862881
jupyter-server:  1.24.0 -> 2.7.2
No
No Known Exploit

501/1000  Why? Recently disclosed, Has a fix available, CVSS 4.3
Open Redirect SNYK-PYTHON-JUPYTERSERVER-5862882
jupyter-server:  1.24.0 -> 2.7.2
No
No Known Exploit

(*) Note that the real score may have changed since the PR was raised.
Some vulnerabilities couldn't be fully fixed and so Snyk will still find them when the project is tested again. This may be because the vulnerability existed within more than one direct dependency, but not all of the affected dependencies could be upgraded.
Check the changes in this PR to ensure they won't cause issues with your project.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
🛠 Adjust project settings
📚 Read more about Snyk's upgrade and patch logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Access Control Bypass
🦉 Open Redirect

Replaced by #23


Show Result with Virtualization

When I have 10k+ eval results, npx promptfoo view --yes show a page that renders too long.
I found that promptfoo is using mui, and there is Data Grid Virtualization feature in mui, so this could improve the result page in an order of magnitude.

#649 adds pagination, which should solve the immediate problem of pages too large to render

@typpo thank you, that sounds wonderful!

Pagination released in 0.52.0


Hover text for QuickPickItem description doesn't show angle brackets

Type: Bug
We have an extension that sets the description of a QuickPickItem to the name of a method. (We used description instead of label because it comes with hover text, which is helpful if the method name is very long.) When the method name, or QuickPickItem description, contains angle brackets, they aren't shown in the hover text.

 You can see it clearly with:

await vscode.window.showQuickPick([{ label: 'foo', description: 'foo <bar> $(globe) baz'}])

This happens here:
https://github.com/microsoft/vscode/blob/6c3a7141c7be4a980076e14395ba2c3b5a76c971/src/vs/platform/quickinput/browser/quickInputTree.ts#L444-L450
where we take the description and create an IManagedHoverTooltipMarkdownString that we pass to the IIconLabelValueOptions as the descriptionTitle and that's how the tooltip works.
We need to escape the string before it gets rendered, otherwise it'll try to scrub these things out. Fix out.

Thank you @TylerLeonhardt!

@gewarren are you able to confirm if this is fixed?

Verification:

have a quick pick with an item that has a description property and detail property that includes angle brackets (it may need to be really long)
hover over the description & the detail individually

The hover that is shown should include the angle brackets


How to run webhook demo ?

Hi,
can you tell me how to run webhook demo for ZLMediaServer ?

You should configure ZLMediaKit->config.ini-> WebHook = 1.
You can configure the route of the listening by referring to  Startup .
services.AddMediaKitWebHook(new APIRouteOptions(routePrefix : "app/api/zlhook"));
The routing address configured in Step 2 should be consistent with ZLMediaKit's confi.ini.

[hook]
enable=1
on_flow_report=http[s]://your_host/app/api/zlhook/on_flow_report
on_play=http[s]://your_host/app/api/zlhook/on_play
on_publish=http[s]://your_host/app/api/zlhook/on_publish
more...

Refer to HookService To listen for Web Hook events.

Thanks,
I will try


MoveIt Hand Eye Callibration Package for ROS2 HUMBLE

I have been reading the documention on moveit2 humble page for Hand Eye Callibration Package
I found it is from ros1 and havent yet updated and i tried building it using ros2 but it didnt builded properly
Can you please let me know if hand eye callibration is available for ros2 and if yes why docuemtnation isnt updated yet

I use easy_handeye2 because I didn't find anything supported by MoveIt for ROS2. Related: https://github.com/moveit/moveit_calibration/issues/99

@abhishek47kashyap  How accurate does easy hand eye package . I am using intel realsense for eye to base callibration

You are probably looking for this:
https://github.com/moveit/moveit_calibration/pull/118
Check this one out:
https://github.com/AndrejOrsula/moveit2_calibration/tree/ros2_port

oh wow thank you so much @Danilrivero . I never know that it existed

https://github.com/moveit/moveit_calibration/pull/118 is really the place to track this - since moveit_calibration isn't part of this repo


Pinning CI scripts to Bundler 1.17.3

Description
Bundler 2.0 messes up a bunch of stuff, so we cannot upgrade to it now.
This should be an easy find/replace for '1.17.3' when we want to
revert it.
Issues Resolved
N/A
Check List

[x] ~New functionality includes tests~
[ ] All tests pass
[x] RELEASE_NOTES.md has been updated if required (not required for bugfixes, required for API changes)
[x] All commits have been signed-off for the Developer Certificate of Origin. See https://github.com/chef/chef/blob/master/CONTRIBUTING.md#developer-certification-of-origin-dco

Closing this because it is no longer needed. I think an update to Bundler 2 fixed this backwards incompatible change, and our Expeditor builds are no longer failing in master


Consider providing an encypted cookie PHP Session implementation

sphere is proposing stateless frontends very strongly, but there are practical reasons for session data (e.g. logged in status, current items in cart etc. ).
The sphere java frontends use encrypted cookies, which is a stable feature in Play Framework, but there seems to be no "authoritative" implementation for PHP and the discussion about it is on a confusingly low level unfortunately.  We could take the Play Framework crypto logic as a template.
Stuff to consider / options / input

http://suhosin.org/stories/configuration.html#suhosin-cookie-encrypt
http://dev.af83.com/2010/02/15/encrypted-session-cookies-in-php.html
https://www.marcus-povey.co.uk/2013/03/18/encrypted-client-side-php-sessions/
lots of qualified and not so qualified stuff on stackoverflow

could be a separate repo, too.

Will not be provided by the SDK. As frameworks implement the cookie and session handling different


FeatureRequest/6720 Support for Headless Chrome added

Requested Feature under Ticket- 6720 for Headless Chrome Support,added.

Closing the PR till Prateek will finilize all realted changes to it


Include instructions for enabling Ubuntu Universe

I needed to enable the Universe repository before I could install ~gnupg2~ any ros-rolling-* debian package inside a container. This PR adds instructions for that.

we should instead change the install command to gnupg instead of gnupg2 and non of this is necessary.

That gets a little further, but it's still not enough to install Rolling from debian packages.
After running the following in a root shell on a fresh container
$ apt update && apt install curl gnupg lsb-release
...
$ curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key  -o /usr/share/keyrings/ros-archive-keyring.gpg
...
$ echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/ros2.list > /dev/null
...
$ apt update
...
$ apt install ros-rolling-desktop

I see this output
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 ros-rolling-desktop : Depends: ros-rolling-action-tutorials-cpp but it is not going to be installed
                       Depends: ros-rolling-action-tutorials-interfaces but it is not going to be installed
                       Depends: ros-rolling-action-tutorials-py but it is not going to be installed
                       Depends: ros-rolling-composition but it is not going to be installed
                       Depends: ros-rolling-demo-nodes-cpp but it is not going to be installed
                       Depends: ros-rolling-demo-nodes-cpp-native but it is not going to be installed
                       Depends: ros-rolling-demo-nodes-py but it is not going to be installed
                       Depends: ros-rolling-depthimage-to-laserscan but it is not going to be installed
                       Depends: ros-rolling-dummy-map-server but it is not going to be installed
                       Depends: ros-rolling-dummy-robot-bringup but it is not going to be installed
                       Depends: ros-rolling-dummy-sensors but it is not going to be installed
                       Depends: ros-rolling-examples-rclcpp-minimal-action-client but it is not going to be installed
                       Depends: ros-rolling-examples-rclcpp-minimal-action-server but it is not going to be installed
                       Depends: ros-rolling-examples-rclcpp-minimal-client but it is not going to be installed
                       Depends: ros-rolling-examples-rclcpp-minimal-composition but it is not going to be installed
                       Depends: ros-rolling-examples-rclcpp-minimal-publisher but it is not going to be installed
                       Depends: ros-rolling-examples-rclcpp-minimal-service but it is not going to be installed
                       Depends: ros-rolling-examples-rclcpp-minimal-subscriber but it is not going to be installed
                       Depends: ros-rolling-examples-rclcpp-minimal-timer but it is not going to be installed
                       Depends: ros-rolling-examples-rclcpp-multithreaded-executor but it is not going to be installed
                       Depends: ros-rolling-examples-rclpy-executors but it is not going to be installed
                       Depends: ros-rolling-examples-rclpy-minimal-action-client but it is not going to be installed
                       Depends: ros-rolling-examples-rclpy-minimal-action-server but it is not going to be installed
                       Depends: ros-rolling-examples-rclpy-minimal-client but it is not going to be installed
                       Depends: ros-rolling-examples-rclpy-minimal-publisher but it is not going to be installed
                       Depends: ros-rolling-examples-rclpy-minimal-service but it is not going to be installed
                       Depends: ros-rolling-examples-rclpy-minimal-subscriber but it is not going to be installed
                       Depends: ros-rolling-image-tools but it is not going to be installed
                       Depends: ros-rolling-intra-process-demo but it is not going to be installed
                       Depends: ros-rolling-joy but it is not going to be installed
                       Depends: ros-rolling-lifecycle but it is not going to be installed
                       Depends: ros-rolling-logging-demo but it is not going to be installed
                       Depends: ros-rolling-pcl-conversions but it is not going to be installed
                       Depends: ros-rolling-pendulum-control but it is not going to be installed
                       Depends: ros-rolling-pendulum-msgs but it is not going to be installed
                       Depends: ros-rolling-quality-of-service-demo-cpp but it is not going to be installed
                       Depends: ros-rolling-quality-of-service-demo-py but it is not going to be installed
                       Depends: ros-rolling-ros-base but it is not going to be installed
                       Depends: ros-rolling-rqt-common-plugins but it is not going to be installed
                       Depends: ros-rolling-rviz-default-plugins but it is not going to be installed
                       Depends: ros-rolling-rviz2 but it is not going to be installed
                       Depends: ros-rolling-teleop-twist-joy but it is not going to be installed
                       Depends: ros-rolling-teleop-twist-keyboard but it is not going to be installed
                       Depends: ros-rolling-tlsf-cpp but it is not going to be installed
                       Depends: ros-rolling-topic-monitor but it is not going to be installed
                       Depends: ros-rolling-turtlesim but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

After trying to manually apt install depth-first I come to
$ apt install ros-rolling-rosidl-cli
...
The following packages have unmet dependencies:
 ros-rolling-rosidl-cli : Depends: python3-argcomplete but it is not installable
E: Unable to correct problems, you have held broken packages.
$  apt install python3-argcomplete
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package python3-argcomplete is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Which means, ros-rolling-* cannot be installed because python3-argcomplete is only available in universe. I didn't check any of the other packages, but this is enough to justify enabling Universe.

I'm just wondering if there isn't some existing Ubuntu-supplied documentation we can point to for enabling it, rather than explicitly documenting it ourselves. It isn't ROS 2-specific, after all.

What I found is pretty outdated. The instructions are for Ubuntu Saucy (13.10), and the commands need to be edited to work for focal. It seems easier on users to explain it ourselves.
https://help.ubuntu.com/community/Repositories/CommandLine#Adding_the_Universe_and_Multiverse_Repositories

What I found is pretty outdated. The instructions are for Ubuntu Saucy (13.10), and the commands need to be edited to work for focal. I think it would be easier on users to explain it ourselves.

Makes sense, thanks for taking a look.  I'm fine with our own instructions, then.


change tolerance for mosek on Ubuntu16

e-mail chain leading to this (newest to oldest):
Units don’t affect that at all; looks like most of the tolerances for mosek default to 1e-8 or smaller, although MSK_DPAR_INTPNT_NL_TOL_REL_GAP  defaults to 1e-6.
http://docs.mosek.com/7.0/capi/The_optimizers_for_continuous_problems.html#ch-lin-opt-tab-nlo-term-cri

I’ll begrudgingly try turning ndigits on that test to 6.

On Aug 6, 2016, at 9:31 AM, Marshall C. Galbraith wrote:

I presume the solver is iterative and has a convergence tolerance. How do unit impact that tolerance?
From: Warren W Hoburg
Sent: Saturday, August 06, 2016 9:27 AM
To: Marshall C. Galbraith
Cc: Edward (Ned) Burnell
Subject: Re: Ubuntu 16

How can we possibly be passing test_call (which has a 10 digit tolerance!) and failing test_call_units?

    def test_call(self):
        A = Variable('A', '-', 'Test Variable')
        prob = Model(A, [A >= 1])
        sol = prob.solve(verbosity=0)
        self.assertAlmostEqual(sol(A), 1.0, 10)

    def test_call_units(self):
        # test from issue541
        x = Variable("x", 10, "ft")
        y = Variable("y", "m")
        m = Model(y, [y >= x])
        sol = m.solve(verbosity=0)
        self.assertAlmostEqual(sol("y")/sol("x"), 1.0)
        self.assertAlmostEqual(sol(x)/sol(y), 1.0)

On Aug 6, 2016, at 9:26 AM, Marshall C. Galbraith wrote:

The pint version is printed as part of the script right before the tests are run.

Yeah looks like your 7 places is right on the threshold. Either relaxing the tolerance on the test or tightening the tolerance on the solver should fix this.

Thanks,
Marshall
From: Warren W Hoburg
Sent: Saturday, August 06, 2016 9:22 AM
To: Marshall C. Galbraith
Cc: Edward (Ned) Burnell
Subject: Re: Ubuntu 16

Hmm, I ran the test below on my machine and it also fails. I don’t understand the ndig cutoff, but at least it’s consistent.

Not sure why this answer comes out further from 1.0 on this particular platform. Probably the best solution is for us to relax the cutoff slightly.

##### test I just ran on my machine

import unittest

class TestUnittestFramework(unittest.TestCase):

    def test_assert_almost_equal(self):
        self.assertAlmostEqual(0.99999990700595875, 1.0)

if __name__ == "__main__":
    suite = unittest.TestSuite()
    loader = unittest.TestLoader()
    for t in [TestUnittestFramework]:
        suite.addTests(loader.loadTestsFromTestCase(t))
    unittest.TextTestRunner().run(suite)

On Aug 6, 2016, at 9:08 AM, Warren Hoburg wrote:

Actually never mind, I don’t think this is a pint issue; it’s simply the

Traceback (most recent call last):
  File "/home/jenkins/workspace/gpkit_PullRequest_Unit/buildnode/reynolds-ubuntu16/optimizer/mosek/gpkit/tests/t_solution_array.py", line 26, in test_call_units
    self.assertAlmostEqual(sol("y")/sol("x"), 1.0)
AssertionError: 0.99999990700595875 != 1.0 within 7 places

I disagree: 1 - 0.99999990700595875 is 9.299404124529786e-08! How is that not within 7 places?

On Aug 6, 2016, at 9:05 AM, Warren Hoburg wrote:

What version of pint is on that machine?

On Aug 6, 2016, at 9:01 AM, Warren Hoburg wrote:

Thanks!  Yes it does… hmm.

On Aug 5, 2016, at 11:42 AM, Marshall C. Galbraith wrote:

I added the ubuntu 16 VM to test gpkit, and this pint failure looks eerily familiar...

https://acdl.mit.edu/csi/job/gpkit_PullRequest_Unit/buildnode=reynolds-ubuntu16,optimizer=mosek/1380/console

ready for review and merging

I'll update the gpkit_push to also test on Ubuntu 16 once this has been merged.

Hearing no objections, I'm going to merge this.

++


Enforce usage of standard hooks

For example, we want people to use the usePrevious hook from frontend-js-react-web instead of rolling their own. I am testing a PR that removes some instances in https://github.com/wincent/liferay-portal/pull/123, but we should enforce this at the lint level, kind of like we do with the "liferay-portal/no-metal-plugins", "liferay-portal/no-react-dom-render" and "liferay-portal/no-side-navigation" rules, which all steer the developer away from UIs that we want to deprecate.
A dumb version of the check would just detect something like:
// error
import {usePrevious} from 'anything-except-frontend-js-react-web';

// error
function usePrevious(...) { /* ... */ }

// error
const usePrevious = // ...

Just to clarify, this is similar but not identical to https://github.com/liferay/eslint-config-liferay/issues/116
That one is about not using APIs (eg. setTimeout) for which we have hook-based replacements (eg. useTimeout).
This one is about stopping people from re-creating hooks that we already have.


delete eventgrid

azure-eventgrid CI failed and it stops release of azure-mgmt-eventgrid.
We will revert the PR soon.

/check-enforcer override

@msyyc @BigCat20196 going forwards, please use 'BuildTargettingString' on the pipeline to skip packages - it's a little scary to get the packages deleted :)
https://github.com/Azure/azure-sdk-for-python/blob/main/doc/eng_sys_checks.md#targeting-a-specific-package-at-build-time


gcrs_to_cirs() bad if input and output vectors are the same

When gcrs_to_cirs() is used to overwrite the input, thning did not go according to plan. Will fix for v1.1, and on the main branch before...

Fix is on main branch at 6bf1b47696335fa72f8af52c0c76a8e973abec5a


Numbers not allowed in repo name

When adding my repo "elm-web3", I get error:   Invalid repo name... must be like: your-user-name/your-repo-name

I assuming that you are executing grove init. When you name your repo it must be in the correct form as specified by the error message, e.g. a valid name would be panosoft/elm-grove whereas grove would NOT be.

Indeed, cmditch/elm-web3 is considered invalid.

Might be affecting this as well,

#10

Both issues mentioned here are fixed in 1.2.0.


Search indices can become out-of-sync with the SQL state

Describe the bug
There seem to be a couple scenarios where the search/graph indexes can become out-of-sync with the SQL database:

If the MCL publish fails, it seems entityService increments a metric and moves on without rolling back the SQL persist

https://github.com/datahub-project/datahub/blob/master/metadata-dao-impl/kafka-producer/src/main/java/com/linkedin/metadata/dao/producer/KafkaHealthChecker.java#L34

If something fails during elasticsearch updates, the mae-consumer increments a metric and skips past the MCL event

https://github.com/datahub-project/datahub/blob/c074d2fdc1fefec1369a9af49da5b713e270b7da/metadata-jobs/mae-consumer/src/main/java/com/linkedin/metadata/kafka/MetadataChangeLogProcessor.java#L87C19-L87C19

To Reproduce
These scenarios seem like they could happen anytime there is a transient/network level error with the ElasticSearch or the Kafka cluster, which is not uncommon
Expected behavior

In the 1st case, I would expect entityService to rollback the SQL update and return a failure code to the client.  If the client was the mce-consumer, I would expect mce-consumer to keep retrying the failed message (dont commit offsets) until the transient issue goes away and processing succeeds.  Ideally the entire persist+MCL publish is atomic (both succeed or both fail)

In the 2nd case, I would expect the mae-consumer to keep retrying the failed message (dont commit offsets) until the transient issue goes away and processing succeeds

Alternatively, an easier solution might be to automatically call the restoreIndices GMS endpoint when one of these failures is detected

Screenshots
N/A
Desktop (please complete the following information):
N/A
Additional context
N/A

For the first case, the kafka producer callback was a community submission to track/log these failures, but it is an async callback after the transaction was committed. Rollback at that point is too late, immediately calling restoreIndices (if there is a kafka issue) would not succeed since it ultimately also writes to kafka. Logging to a failure topic would not succeed if there is a kafka issue as well. I agree that ideally the database transaction and the production of the message are tied together. With some possible performance implications, the transaction could be rolled back if producing the message was synchronous. - @RyanHolstien  thoughts?
Second case, there is retry logic with exponential backoff options for the write to elasticsearch, however they are not infinite so ultimately there may be missing document updates in elasticsearch. Each hook is responsible for handling their own exceptions prior to throwing them. It is possible that there is a mix of hooks that succeed and fail and each one may need to be handled differently. An argument could be made that the hooks should be separate consumers and then this is better handled.

I think as long as it's configurable it will work to make the producer function synchronously and rollback the transaction. Note: it's still not perfect as if we're planning for uncommon scenarios the rollback itself could also fail.

Thanks for taking a look at this...you both bring up good points.
For #1 - brainstorming here and this could start to get complex... one idea is to write an extra row/column as part of the SQL transaction indicating there is a Pending MCL publish to complete.  This way we can ensure the entity and pending flag are both persisted atomically.  Once the Kafka produce succeeds, it could remove that pending flag.  If the Kafka produce fails, then some background process could periodically check for entities in a pending status and restore indices on those?
For #2 - I suppose configuring numRetries to a really large number effectively accomplishes what we want.  Would you have any concerns with allowing a -1 value in that field to indicate we want to keep retrying indefinitely until successful ?

I believe this is still an issue


Notifications plugins

Notifications should be standardized defining plugins.
It will contribute to #2 make it more hackable, and will simplify the possibility to support new channels without added complexity
Think about the possibility to

[ ] provide SMTP notification plugin
[ ] provide Telegram notification plugin
[ ] provide Twitter notification plugin
[ ] provide WebHooks

I take this issue.
https://hackmd.io/KKWiYEVJRNWAYG4Aoj7nTA?view

Related with #38


Add redux type defs

This is a long overdue TODO fix for adding redux typedefs. Also includes types for react router, react-dom, and redux-logger.

Clsoes part of https://github.com/konveyor/mig-ui/issues/824 - Still need to refactor plans/cluster/storage/hooks slices to use redux hooks api & make redux actions serializable.


Provide additional allocation tests for default and extended hints

I will add additional cross NUMA unittest after I will introduce the new kubelet flag for cross-numa-groups.

Wrong branch


feat(app): create new odd tabbed button component

Overview
This adds an atom for the "Tabbed Button" component
https://www.figma.com/file/OIdG64Q5cgvEw82ish5Eee/Design-System-(ODD)?node-id=530%3A14951&t=ZGCK3IIeTOmjsvk5-0
Closes RAUT-367
Test Plan
Added storybook story and unit tests
Changelog

Added new typography sizes
Added new shade of purple
Created story book story for new tabbed button
Added new tabbed button in foreground and background flavors

Review requests
The storybook story shows it all
Risk assessment
None

@ewagoner Mel pointed out this url for tabbed button.

this url

I'll make a new ticket for the SubNavigation components you link to. I will need those, yes, but this work is for the TabbedButton designs linked in the ticket. Thanks for pointing those out!

Adjusted styling to match new SubNavigation button design and changed the associated Jira ticket number.

@ewagoner
One request, could change the folder name from ODD to OnDeviceDisplay?
We use that name in pages and organisms

One request, could change the folder name from ODD to OnDeviceDisplay?

Done!

@ewagoner
Once we get a response from Mel, this PR should be good to go.
Sorry for the back-and-forth request.

Made tweaks to clear up the Figma misunderstandings yesterday. This is ready to go!


Setting mediaType suffix to "" leaves dot

In upgrading from Hugo 0.17 to 0.20.7 I had to make a few modifications to the RSS generation. The RSS on my site resides at /rss.
Thanks to https://discuss.gohugo.io/t/how-can-i-change-the-rss-url/118/17 I was able to find the missing fields in my toml to get it to properly generate only a single rss.xml file. However when I try to set the suffix to "" the generated file is rss.
[outputs]
  home = [ "RSS"]

[outputFormats]
[outputFormats.RSS]
  mediatype = "application/rss"
  baseName = "rss"

[mediaTypes]
[mediaTypes."application/rss"]
  suffix = ""

That is by design, and for the RSS it may have been a breaking change since 0.17. We should print an ERROR about this, at least, that this isn't supported, but why is keeping the URL at /rss? important? It sounds a little odd to not wanting to indicate the media type in the URL.

For many years the rss for my site has been located at /rss so if I were to change it to rss.xml I'd  have to setup a redirect, which wasn't necessary before because I could set the rssuri to just rss.
Using post aliases and renaming of rssuri gave an elegant no-server-changes-required way to port the blog over which also makes it easily portable between hosts now.
I agree it's a little odd to set the suffix of all rss files to "" however I wasn't able to find another way to rename just the rss file (without a post-build mv). Is there a better way?

As another issue linked to the trailing "." is the netlify "_redirects" and "_headers", I tried to follow the tutorial here: https://gohugo.io/news/http2-server-push-in-hugo/
First it was missing the mediatype definition for text/netlify
Second it was adding a trailing . even if I put suffix = ""
It generates _headers. and _redirects.

OK, I forgot to close this, but this is fixed in Hugo >= 0.25.
You can set
[mediaTypes]
[mediaTypes."application/rss"]
  suffix = ""
  delimiter = ""

Which should get yu what you want.


get_config() doesn't work as expected when trying to load a model with custom objects

I saved a model with a custom layer, AnchorBoxes. In the implementation of the custom layer, I implemented the get_config() method like so:
def get_config(self):
        config = {
            'img_height': self.img_height,
            'img_width': self.img_width,
            'this_scale': self.this_scale,
            'next_scale': self.next_scale,
            'aspect_ratios': self.aspect_ratios,
            'two_boxes_for_ar1': self.two_boxes_for_ar1,
            'limit_boxes': self.limit_boxes,
            'variances': self.variances,
            'n_boxes': self.n_boxes
        }
        print(config) # Print out this dict to see what it looks like.
        base_config = super(AnchorBoxes, self).get_config()
        return dict(list(base_config.items()) + list(config.items()))

I now create a model and save it. When saving the model, thanks to the print statement in the code above, I can see that the config dictionary looks like this:
{'two_boxes_for_ar1': True, 'limit_boxes': False, 'variances': array([ 0.1,  0.1,  0.2,  0.2]), 'this_scale': 0.1, 'n_boxes': 4, 'img_height': 300, 'next_scale': 0.2, 'aspect_ratios': array([ 0.5,  1. ,  2. ]), 'img_width': 300}
All good so far.
Now, when I try to load the model using keras.models.load_model('model.h5', custom_objects={'AnchorBoxes': AnchorBoxes}) and print the values that the constructor is receiving from the config dictionary, they look like this:
Just to give two examples, this is what is being passed as the value for the variances argument:
{'type': 'ndarray', 'value': [0.1, 0.1, 0.2, 0.2]}
and this is what is being passed as the value for the aspect_ratios argument:
{'type': 'ndarray', 'value': [0.5, 1.0, 2.0]}
I.e. the values passed to the AnchorBoxes constructor by keras.models.load_model are not simply the values for the respective variables, but dictionaries containing two items each.
Naturaly, loading the model fails.
Why is this happening?
The dictionary that get_config() produces looks correct. Yet, keras.models.load_model can't seem to use this config correctly to load the custom layers.

Solved:
Apparently Numpy arrays as dictionary values are no bueno. Converting aspect_ratios and variances to Python lists solves the issue.
There should really be more documentation around writing and loading custom objects.

Is this still the recommended way to deal with numpy arrays in config?
Shall we add ndarray support to keras's JSON Serializer / Deserializer?


Introduction notebook and pyscf added to environment

Updated the introduction notebook to include a brief introduction and coding example for the following packages:

Numpy
Scipy
Matplotlib
Psi4Numpy
PySCF

Additionally, the environment is now set up to install PySCF through conda's pip.
For those who have already set up the environment, it can be updated with the command:
conda env update -f environment.yml

Looks good


Windows: pydub permissions error

Heads up I was getting permissions errors running this on windows, and was able to resolve it using the solution found here (manually editing the pydub module's playback.py file):
https://stackoverflow.com/a/74968568
Looks like there's a PR from last month to patch this in pydub:
https://github.com/jiaaro/pydub/pull/740

I have rewritten the text_to_speech function to use the Elevenlabs Python library so PyDub is no longer necessary. Give it a try in a new env and let me know if it solves the problem.


FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory

ESMongoSync: Oplog tailing connection successful.

<--- Last few GCs --->
6182 ms: Scavenge 1412.6 (1457.8) -> 1412.6 (1457.8) MB, 4.5 / 0 ms (+ 6.4 ms in 1 steps since last GC) [allocation failure] [incremental marking delaying mark-sweep].
6360 ms: Mark-sweep 1412.6 (1457.8) -> 1412.6 (1457.8) MB, 178.4 / 0 ms (+ 21.1 ms in 7 steps since start of marking, biggest step 6.4 ms) [last resort gc].
6544 ms: Mark-sweep 1412.6 (1457.8) -> 1412.6 (1457.8) MB, 184.5 / 0 ms [last resort gc].

<--- JS stacktrace --->
==== JS stack trace =========================================
Security context: 0x2aecf56e3ac1
1: /* anonymous /(aka / anonymous */) [/home/abhilash.bolla/Learning/elasticsearch_query_example/node_modules/mongodb/node_modules/bson/lib/bson/parser/deserializer.js:~39] [pc=0x1c5ae0e609d2] (this=0x2aecf5604189 ,buffer=0x25ef6ed1ec91 <an Uint8Array with map 0x36a53f052e1>,index=2393118,options=0x25ef6ed1ece1 <an Object with map 0x36a53f1b549>,isArray=0x2aecf5604231 )
...
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory
Aborted (core dumped)
Getting this error.

How big are the documents in your database and what version of node are you using?

And I believe that error was thrown due to node running out of memory. You can increase the memory allocated to node and try again. This might help.

node v5.12.0.
Size of each document is around 44.122 Kb. and there are 10k documents in the collection.
I have elasticsearch, mongo, node all running on JVM and my RAM is only 8GB, of which I have allocated 4GB heap size for elasticsearch itself

I do this.. and its get stuck. Why does the console have "undefined" logged?

$ node --max-old-space-size=2048 elastic-sync.js
ESMongoSync: Connected to ElasticSearch successfully!
ESMongoSync: Connected to MONGO server successfully.
ESMongoSync: Beginning batch creation
ESMongoSync: Processing watchers on priority level  0
ESMongoSync: Processing  patents  collection
ESMongoSync: Oplog tailing connection successful.
ESMongoSync: Batch creation complete. Processing...
ESMongoSync: Number of documents in batch -  500
undefined

Create a gist with your code that uses the package and let me try and reproduce the error.

https://gist.github.com/abhilashbolla-innoplexus/7ccd7d4e67d3ec3d6874880559e42b33
here you go.!!

So I used you exact config but changed some things like database name, etc. And here are my results...

Below is the config I used...

As you can see, it works as it should, without throwing undefined.
One thing to note though, the process won't exit unless you exit it yourself as it is meant to listen to any CRUD event in mongoDB, so it will keep running for as long as required.


Thank you dannys42!

@dannys42
Kitura is the easiest to understand and use web framework in Swift.
Thank you for not giving up on Kitura and continuing to update.

@diuming Thank you!  Let me know if there's anything you'd like to work on as well!


Predict stop sequence matches during streaming

When streaming using mlx_lm/server.py we should predict potential stop sequence matches, and generate tokens until we know that there is no match. This prevents the server from sending parts of a stop sequence to the client before it finds the match.
Fixes #524
My implementation adds a new function called "sequence_overlap" which checks how much sequence 1 has overlap with sequence 2. It checks for larger overlaps first, and returns the overlap as an integer.
The server checks for overlaps, and generates more tokens before allowing the server to send them.
if any((sequence_overlap(tokens, sequence) for sequence in stop_id_sequences)):
    continue

The sequence_overlap implementation can be tested with this example:
from typing import Sequence

def sequence_overlap(s1: Sequence, s2: Sequence) -> int:
    """
    Check how much overlap two sequences have.
        Only checks the end of s1 overlapping the start of s2

    Args:
        s1 (Sequence): The first sequence, which end is checked
        s2 (Sequence): The second sequence, which beginning is checked

    Returns:
        int: The amount of overlap between s1 and s2
    """
    # Count down from the length of the smaller list -> Checks for larger overlaps first
    for index in range(min(len(s1), len(s2)), 0, -1):
        # Check if they have index amount of overlap
        if s1[-index:] == s2[:index]:
            return index
    return 0

stop_sequence = [27, 28, 29]

tokens = []
new_tokens = []

for token in range(50):
    tokens.append(token)
    new_tokens.append(token)

    # This should always be the first check, since it needs to be performed on every token
    if len(tokens) >= len(stop_sequence) and tokens[-len(stop_sequence):] == stop_sequence:
        print("Contains stop sequence:", new_tokens)
        tokens = tokens[:len(tokens) - len(stop_sequence)]
        new_tokens.clear()
        break

    # Generate tokens until we know that tokens does not contain stop sequence
    if sequence_overlap(tokens, stop_sequence):
        print("Found a possible start to a stop sequence:", new_tokens)
        continue

    # Process new tokens
    print("Processing new tokens:", new_tokens)
    new_tokens.clear()

# In the case that the generation ends with the start of a stop sequence
# We need to process leftovers, since it would call continue until a break
if new_tokens:
    print("Processing leftover new tokens", new_tokens)
    new_tokens.clear()

print("Full sequence:", tokens)

Oh much better, thank you 😄

What about adding your test (modified for unittest) as a test case to a new test file test_server.py in the tests directory: https://github.com/ml-explore/mlx-examples/tree/main/llms/tests ?

Yeah, I'll have a look into writing a unittest

Hi! Is this ready to be reviewed again?

@awni yes


Label for AM/PM in TimePicker Modal Component doesn't follow moment locale setting

[o ] The issue is present in the latest release.
[o] I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯
TimePicker Component with ampm=true always shows AM/PM label in english but translated locale format.
I set my global moment's locale to "ko". Textfield component of TimePicker shows AM/PM to 오전/오후 which is correctly translated terms of AM/PM in Korean, but AM/PM Label on TimePicker Modal still shows AM/PM as AM/PM only.
I looked over API document and found that there's no option to modify AM/PM label too.
Expected Behavior 🤔
AM/PM labels inside TimePicker Modal should translated to selected locale. or at least the component itself should expose props to customize these labels.
Your Environment 🌎
"@material-ui/core": "^4.11.0"
"@material-ui/pickers": "^3.2.10"
"@date-io/moment": "1.x"

Found that this issue is related with MomentUtils and not this library. Thus closing this issue.


Static-proxy: Support head request remote indy listing content rewriting

Closed this pr by accident, so restore it here.

This pr has been reviewed in closed one https://github.com/Commonjava/indy/pull/1677, so here merged directly.

LGTM

Aha, sorry my page is a while ago.


Add more maintainers

Solution to issue cannot be found in the documentation.

[X] I checked the documentation.

Issue
@raybellwaves @gjoseph92 @TomAugspurger any of you up for being a maintainer with merge rights here? I am also willing to be listed. Would be nice to have a few more hands on deck to merge things https://github.com/conda-forge/stackstac-feedstock/pulls
Installed packages
n/a

Environment info
n/a

just added myself in https://github.com/conda-forge/stackstac-feedstock/pull/6
Others can open an issue with @conda-forge-admin, please add user @USER (your username)

added myself in #8

added myself in #9

You're in

@conda-forge-admin, please add user @TomAugspurger

Hi! This is the friendly automated conda-forge-webservice.
I just wanted to let you know that I added user @TomAugspurger in conda-forge/stackstac-feedstock#14.

Closing as everyone mentioned was added


Fail occured after executing "cf install-plugin cfdev" in ubutnu 18.04.2

Hi!
 I do not know whether it is right to ask here, if not, please criticize me lightly...
 I have tried many times with PCF Dev in my Win10 PC. I downloaded "pcfdev-v0.29.0+PCF1.11.0-windows.exe" and "pcfdev-v0.548.0.ova" to set my local environment up, but it stuck on "Waiting for services to start...", I have no way to solve it with no success...
 So I turned to cfdev, but it seems bad start to me also.
 This is the capture after executing "cf install-plugin cfdev"

 I could install it successfully on my Win10 PC, but it failed in my virtualbox with Ubuntu 18.04.2. Hope anyone could help me to start my cfdev once! :)

CF Dev spins up a VM on your local machine. This is a fairly intensive process and attempting perform the start process inside another VM is not recommended nor supported.


add support for anonymous mode

would be nice to add anonymous mode

do you mind please updating the mez file

@djouallah Sure thing, here you go: https://github.com/MotherDuck-Open-Source/duckdb-power-query-connector/releases/download/v0.1.1/DuckDBPowerQueryConnector.mez