Asymmetric encryption for chat messages

Idea
Allow the option to use asymmetric encryption for chat messages. Each player will have their own public private key pair, where the public key is shared to all other members of the server. Each player configures a list of public keys, corresponding to each other player who should be able to read messages that this player sends.
Reasoning
One benefit of this approach is that it allows each individual to set their "own" key, which can be used among multiple groups and multiple servers. Two servers may have different groups of people on it, and thus different key configurations. With an asymmetric approach, you can communicate the same public key to all members of all servers.
This technically could also be automated, where each client broadcasts its public key to all other modded clients, though this obviously does pose some risk.
Note: as the length of recipients increases, so does the length of the encrypted message. This perhaps makes this approach not viable for very large servers?
Other Information
No response

Like I suggest here: https://github.com/Aizistral-Studios/No-Chat-Reports/issues/235#issuecomment-1288010176
X25519 is a pretty good key exchange algorithm, considering its small size and pretty good security for in-game chat. I got a rough idea:
Every NCR user sends their message along with their public key along with the encrypted message, and each NCR client caches that public key. The private message would be easy, just calculate the common secrets (or shared secrets) and use that as AES-256 things (as a nerd, I'd prefer AES-256-GCM-SIV, but Mojang has already handled the HMAC things, I think any modern AES encryption would be sage enough for in-game chat unless FBI agents are in the server).
The public message would be messy. First, you don't know new players' public keys, so they don't know how to decrypt the message. But they do get your public key after receiving an undecryptable message from you. And the same thing happens to you. Your target must send at least one message so that you can get his public key.
Since I infer there is no way to know who use NCR or not in all possible server, we can't just broadcast public every time new players join. Symmetric pre-shared key encryption wouldn't suffer from this, but an asymmetric one would.
For message format, I suggest:
{
    "message": "encrypted message using a random key",
    "keys": {
        "A's public key": "the random key encrypted for this guy",
        "B's public key": "the random key encrypted for this guy"
    }
}

Encrypting a message multiple times would be bad in performance, but you can encrypt the key multiple times. It's called envelope encryption. To save more space, you can use some binary encoding like protobuf instead of JSON.
Here I have a simple demo program written in Kotlin:
https://gist.github.com/hurui200320/f86833eaaf0d33574562024f290ae861#file-x25519withpurebc-kt

My concern with assymetric encryption is that it drastically increases message length, even before we factor in things like trying to broadcast your public key as part of every message. Using binary encoding doesn't help that much, because in the end we still have to transmit messages over plaintext medium encoded with something like Base64.
I view this as an interesting idea nonetheless, but it is my opinion that it will only become practical when we have some kind of external service to handle relaying of keys (and perhaps even whole messages).

Makes me wonder if we should skip MC chat entirely and make the chat instead just a in game matrix client 😛

Minecraft in-game chat is text-only, so using matrix would be an overkill. Also, the matrix needs some server to operate, it's federation, not decentralization.
So I would suggest we pack something like I2P or Briar into a mod and use that to implement a P2P in-game chat.
Although this conversation is not related to this mod, it's definitely interesting to see one. 😄

This mod is becoming too much, these things should be in a separate mod. I want to disable reporting, that's it.

yeah supporting a completely custom chat layer not related to minecraft's built in chat system should be a separate mod, but this is not the worst place to discuss this.
I bring up matrix as it could an interesting way to combine chat in and outside of minecraft, since some modded servers already have a minecraft-discord bridge, perhaps all chat could be centralized on a per-server, self-hosted matrix instance?

but this is not the worst place to discuss this.

But also not the best place to discuss. I noticed there is a new github feature called "discussions", which seems like a good place for general discussions.
Why don't we close this issue when the contributor already said this mod is becoming too much, and move to the discussion area to continue those creative but not super related ideas?


Feature Request: Expose text measurement function to translator

Working on a project with a background element that changes size (using one of two different image files) depending on the text it's supposed to be surrounding, which is currently difficult to express without manually selecting it for every card.
Ideally I'd like to be able to pick the image automatically based on the size of the text in question, but that's not currently possible as far as I can tell. The closest I can get is using the javascript translator to count the characters and base the decision on that.

Is it fair to assume that the text you want to measure is always on 1 line? Or are you looking for the height of the text?

In this particular instance the intent is to keep it on one line, so yea only horizontal measurement would be needed. I'm sure vertical measurement could be handy too but I don't know how much harder that is.

Rough version has been submitted with zero instructions 🤣 -- https://github.com/nhmkdev/cardmaker/commit/d194332c192a6fc5271283d564d0f3d8d7d25d6f?diff=unified

Currently only available if you're using the Incept translator (not JS) -- guessing you wanted it in JS?
Usage: #strw[Arial;27;0;0;0;0]measure this# will result in the numeric width of "measure this" with the font specified in the brackets.

It would definitely be preferable if it was available in both. :)
I imagine the method sharing groundwork I in for override fields would help for getting this into JS as well?

Merged in a quick hack to expose the method in JavaScript:
MeasureStringWidth('Arial;36;0;0;0;0', 'sample text');
It should return a number. I need to look into making all the fields on the element available (if they aren't already). I almost never use the JavaScript functionality in CardMaker (and very few people ever ask about it!).

I was just looking to see if I could throw it together real quick myself and you beat me to it, pretty much wrote exactly the same function I was too.

Did a quick test replacing my existing string length check with this and it works perfectly. 👍

I'll be updating the docs with information. Closing this out.


Save to a non existing folder

When saving if the folder doesn't exist it fails

done !

Please reference the PR using # and the number

PR #109 ;)


Using Keyboard Shortcut for "New Inherited Scene" instead opens "New Text File..."

Godot version
4.1.3.stable.official [f06b6836a]
System information
Godot v4.1.3.stable - Windows 10.0.19045 - Vulkan (Mobile) - dedicated NVIDIA GeForce RTX 3080 (NVIDIA; <IP_ADDRESS>42) - 11th Gen Intel(R) Core(TM) i7-11700KF @ 3.60GHz (16 Threads)
Issue description
Creating New Inherited Scenes attempting to use the keyboard shortcut CTRL+SHIFT+N pops up the wrong window and instead opens the window for "New Text Files..."
https://imgur.com/a/mGHiUKw
What it does vs what its suppose to do.
Steps to reproduce
Ctrl+Shift+N simple as.
Minimal reproduction project
Ctrl+Shift+N simple as.

@AThousandShips Yes, it does work outside of the script editor.  No fix then?

Me personally, I used inherited far more then new file, I don't actually use new file at all.

If you don't use the text editor shortcut at all, you can unbind it ("New Text File...") in the Editor Settings.

If you don't use the text editor shortcut at all, you can unbind it ("New Text File...") in the Editor Settings.

That's a great answer.  Thank you.


need/want  squashfs tools 7zip

FROM 32bit/debian:jessie make that ALPINE 32.
MAINTAINER Gentoo Docker Team
ADD http://www.busybox.net/downloads/binaries/latest/busybox-i686 /busybox
# This one should be present by running the build.sh script
ADD build.sh /
RUN apt-get update && apt-get install -y
wget bzip2  <RUN  Emerge -v sys-fs/squashfs-tools app-arch/p7zip (apt get p7zip , squashfs tools) dump REALY Large iso , run updater (fork of gentoo)
VOLUME /usr/portage , ie PACKAGES
ADD in Sabayon-Linux BOSONS Wreaker circle CI , pull the now empty container but retained Binaries pull bins into local host or webhost rinse repeat. and or on github push. new package build it!!
RUN /build.sh x86-hardened  Gentoo I've tried to tweak their script and docker file 70 ways till sunday no dice.
ANYhow 1st goal is a CHROOT jail , thats loadable on demand.
OF late the poor BIN server just isnt keeping up with user demand.
as well CHROOT/sandbox for testing stability of packages on local host.
I'm getting sick of casting spells and chanting as the drive recovery tools spin...paying to the disk drive gods , after testing that one "Harmless" version bump --KERBLEWY .
3rd nd would be to abuse all the hacker tools in the distro , laptop + Rainbow tables ZZZZZZZ
docker Cluster +Rainbow tables , cloud security pen-testing , and or some other crazy use of security sciences , cytpto studies etc.
My FURY:
FROM 32bit/debian:jessie or the built Gentoo images (which i could overlay haven't the tools, and having to make a nested container to unpack a 3 or 4 container oh joy... )
and trying to stuff them into debian32  and or Busy-box 64 is also an EPIC FAIL.
Dockerhub dies on build.  A: is too Light , B CAN be done to gentoo but I have to make 4 more containers or so. IE AMD64 /I686 Default or HARDENED sub Flavors. Less I add ARM or ARM 64
** C: Minimal light but JUST RIGHT and slightly extendable when needed **
so far trying to add to the Gentoo containers apt-get packages = Spectacular FAIL adding to the base unpacker Image. >/my-distro-temp  , KILL debian/busybox move distro to root /
Setup the (virtually) current runlevel
RUN echo "default" > /run/openrc/softlevel
Setup the rc_sys
RUN sed -e 's/#rc_sys=""/rc_sys="lxc"/g' -i /etc/rc.conf
Setup the net.lo runlevel
RUN ln -s /etc/init.d/net.lo /run/openrc/started/net.lo
Setup the net.eth0 runlevel
RUN ln -s /etc/init.d/net.lo /etc/init.d/net.eth0
RUN ln -s /etc/init.d/net.eth0 /run/openrc/started/net.eth0
#Add Layman
Run emerge --sync
RUN emerge -v =dev-lang/python-2* =dev-lang/python-3*
RUN Emerge -v git layman potage
RUN  Emerge -v sys-fs/squashfs-tools app-arch/p7zip

I'm not sure what your question is. Are you looking for the https://pkgs.alpinelinux.org/package/main/x86_64/p7zip and https://pkgs.alpinelinux.org/package/main/x86_64/squashfs-tools packages?

Also please make sure to wrap your output within ```

namely I Want to add 7zip  & Squash tools
https://github.com/gentoo/gentoo-docker-images/blob/master/x86/Dockerfile
RUN apt-get update && apt-get install -y
wget bzip2 p7zip squashfs-tools            Gentoo's debian precursor fails so miserably.
(tried slipping it in FAIL)
hardened I had to do from scratch , however
unsquashfs -f -d /newworldorder/    newworldorder/filesystem.squashfs
then stuffing into tarball ie dropbox upload at every Quarter quell of a change on 4 iso's is Tedious.
Pentoo.ch 4 iso's     (Gentoo based) also more SECURITY toys  a number of things one could do besides a build-farm docker-esq chroot for packages being built.
Symlink-latest-.iso's
adding back portage via volume container , laymans in image so resyning the overlays tree is trivial.
A: do like Gentoo's debian precursor alpine? if it will easily Add packages I want might make life easier.
B: fetch the iso's
C: chainsaw open iso & Nuke the iso file  newworldorder/tmp2
D: crack open into ./ of newworldorder the squashfs files content.
E: self destruct , rflap move of files and dirs from newworldorder/
To many steps dockerhub will DIE.

How is this related to the Alpine Linux Docker image? Are you trying to move to Alpine? Unfortunately, I still don't understand your question. If you are looking to add 7zip and squashfs support in Alpine, you just need to do apk -U add suqashfs-tools p7zip to get the utilities.

I Will try to use alpine instead its smaller , will build a 32 bit and 64 bit root.fs seed.
as its small light minimal but not as so too minimal to hang myself.
apk -U add suqashfs-tools p7zip  add in tools  ,
http://www.pentoo.ch/isos/latest-iso-symlinks/
** my question is simply to find  better means of doing doing much the same as below **, but with an ISO
squashfile and not having a remote build die from time out.
alpine loads fast so I might be able to do thus, and seems better suited for the job.  many thanks.
** FROM 32bit/debian:jessie (adding more tools deps seams to choke and die) **
** 64 bit  FROM busybox,  (not yet in tools aint yet in busybox )**
Alpine As a base per-container is rather a means to the same end, however more tools. but with less bloat, than using ubuntoo or debian. re-using the gentoo containers is well not working much as builds are slow , and time out and die.
https://github.com/gentoo/gentoo-docker-images/blob/master/amd64-hardened/build.sh
as i need a few tools to crack a 2 gig iso open , dump the squash into temp root , prior to alpine die , mv root step.
Debian bootstrap still yields a 256 meg tarballs.
and from scratch Pentoo  2 gig tarballs. no fun plus i have to constantly update by dumping iso sqashfs >>> tar.bz
no its a Gentoo base but for the main containers Gentoo uses currently however building onto a container with 2-4 gigs worth of build steps not exactly good. or having to layer them up with 4 supported arches.  x88-default & hardened.  or AMD64 default &hardened
Basically Package build containers.  but against a full-er kit and or usable for advance crypto studies.
https://github.com/gentoo/gentoo-docker-images/blob/master/amd64-hardened/build.sh

suffix=$3 # e.g. -hardened
arch=$1
busybox_version=$2
dist="http://distfiles.gentoo.org/releases/${arch}/autobuilds/"
stage3="$(wget -q -O- ${dist}/latest-stage3-${arch}${suffix}.txt | tail -n 1 | cut -f 1 -d ' ')"
##(replace with iso's instead)
mkdir newWorldOrder; cd newWorldOrder  (append mkdir /isotemp)
echo "Downloading and extracting ${stage3}..." ##(make that iso)
wget -q -c "${dist}/${stage3}" get the iso.
bunzip2 -c $(basename ${stage3}) | tar --exclude "./etc/hosts" --exclude "./sys/*" -xf -
rm -f $(basename ${stage3}) ### replace with 7zip & squashfs unpack /newWorldOrder
##sleep 120 going to need a min or 2 to unpack kill iso unpacksquashfs to /"nWO"
permit Self Distruct to commence.
wget -q -O /busybox "http://www.busybox.net/downloads/binaries/latest/busybox-${busybox_version}"
chmod +x /busybox
/busybox rm -rf /lib* /usr /var /bin /sbin /opt /mnt /media /root /home /run /tmp
/busybox cp -fRap lib* /
/busybox cp -fRap bin boot home media mnt opt root run sbin tmp usr var /
/busybox cp -fRap etc/* /etc/
cd /
#commit suicide
/busybox rm -rf newWorldOrder /busybox /build.sh /linuxrc
{stage3 convert to iso reference. )
latest_stage3=$(curl "${base_url}/latest-stage3-amd64-hardened.txt" 2>/dev/null | grep -v '#' | awk '{print $1}')
stage3=$(basename "${latest_stage3}")
Self destruct
rm -f /Dockerfile /build.sh
echo "Bootstrapped ${stage3} into /:"
ls --color -lah


RFC 5 coordinate transformations

It would be great to start implementing some of the data structures defined in the coordinate transformations proposal, assuming there won't be too much churn in those data structures. I think the models we create should be based on the proposed spec changes in this PR, @bogovicj please correct me if I'm looking in the wrong place.
in terms of scope, we should only aim to model the structure of the transformations, not their behavior.

Yup, that's the place to look.
Looking forward to watching this repo!


Add explanation of how to add a new handler to the stack to readme.

2 files need to be edited (docker-compose.yml, config.json)
jenkins job needs to be created for the new handler repo

updated and awaiting review


Update simp-master to current master

@jeefberkey Can you stick a ticket on the commit message?

@trevor-vaughan Done. 👍


Added support for PlantUML

This resolves #3288.

Frankly, I don't like what I created. PlantUML is such an incredibly complex and context-sensitive language that Prism will likely never be able to highlight it correctly. I focused on a few diagram types and tried my best. It's not good but it's better than no highlighting at all.

Awesome. Good enough for most purposes. Typically you will find a rendered image close to the PlantUML source, so basic highlight suffices. Love your work!


Smart Escrow Contract

Contract to handle transfer of OP tokens over vesting period

Closing this - code pulled in to #51


Sortable displayobjects

some times we need that display object to be rendered in a certain order to preserve the z-index.
it'd be good if we can have a way to choose the ordre of the drawn children, even with a sort method or by allowing a separate reder method for individual DisplayObjects so the developer can build it's ordered list, iterate throught objects and render them.

var mapContainer = new PIXI.DisplayObjectContainer(),
    unitsContainer = new PIXI.DisplayObjectContainer(),
    menuContainer = new PIXI.DisplayObjectContainer();

mapContainer.zIndex = 5;
unitsContainer.zIndex = 10;
menuContainer.zIndex = 20;

/* adding children, no matter in which order */
stage.addChild(mapContainer);
stage.addChild(menuContainer);
stage.addChild(unitsContainer);

/* call this function whenever you added a new layer/container */
stage.updateLayersOrder = function () {
    stage.children.sort(function(a,b) {
        a.zIndex = a.zIndex || 0;
        b.zIndex = b.zIndex || 0;
        return b.zIndex - a.zIndex
    });
};

stage.updateLayersOrder();

Children array are readonly

@glebmachine doesnt mean that you cant call "sort"

@glebmachine doesnt mean that you cant call "sort"

@tengotengo Thank you! Your solution is simple yet elegant.

Is @tengotengo's solution really the final solution for this?  Being able to change z-index seems to be a primary feature to me.  Imagine, in an isometric game where depending on your y-axis one sprite could be considered behind of in front of another sprite.  Doing z-index is the traditional way of handling this, and in that case you'd just map the sprites bottom y position to their z-index and done.  For now I'll do the sort hack, but seems this should have an official solution.

@bluefeet Take a look at https://github.com/pixijs/pixi-display
I think it'd give you the functionality you require

If you're here looking for this feature in 2017; it's been implemented in Pixi as zOrder.
https://pixijs.github.io/examples/#/display/zorder.js

@loadedsith pixi-display is updated to latest version, rewritten on TS and there'll be huge patch with a lot of examples this week.


Fix redirect

For some reason the redirect on this repo doesn't work: https://github.com/TeachBooks/files-and-folders
two branches EN and NL. Primary branch set to EN. For some reason you're always redirected to files-and-folders/main

Issue disappeared magically after action rerun


[6.0] LocalVariableUtils: add support for temporary enum initialization.

Fixes rdar://121612548 (🏅[nonescapable] Create a working ~Escapable Optional-like type)
(cherry picked from commit fc60925a38ca4f40955549247de85eec3206b256)
--- CCC ---
Explanation: LocalVariableUtils: add support for temporary enum initialization.
Scope: Required to build an conditionally ~Escapable Optional type.
Radar/SR Issues: rdar://121612548 (🏅[nonescapable] Create a working ~Escapable Optional-like type)
Original PR: #73015
Risk: This has zero effect on code that doesn't use the experimental feature.
Testing: A standalone implementation of stdlib Optional was added as a unit test.
Reviewer: TBD

@swift-ci test

@swift-ci test


[WIP] Metrics on canvas

Fixes #1074

The hover on highlight with this seems to also highlight all connected nodes...

Feature!
But will play with that. I guess its not stuff you might necessarily really be interested in, so, distracting.

Need to figure out a better way to do the pruning for the websocket diff. Maybe RenderableNode.Diff(other RenderableNode)?
The js seems to go a bit wonky when the websocket updates arrive. There's a metric on every node with the value NaN after..

[ ] Fix metric formatting, either w/ BE support from a metric.format, or a local mapping.
[ ] Keep a node's metrics in-line somehow, e.g. having details panel open shows the metrics in a diff state than to the canvas. Perhaps a more global store here.
[ ] Figure out what metrics are actually available to display by re-scanning [node].metrics onAdd/onUpdate.

Questions

How often do we want the metrics to update? It sounded good to have every changed pushed onto the WS, but thats a lot of stuff perhaps.
How often does the server get a new value for a metric? every 15s or 3s?
We could do something similar to the details panel where we build a buffer up from the BE and stream it out slowly to give the (false) impression of "live" metrics.

How often does the server get a new value for a metric? every 15s or 3s?

Everytime there's a new report so every 3s.

Figure out how we should handle max. at the mo:

cpu: max is 100. (is it 200 w/ 2 cores?)
load/memory/open fds: the max value in the 15 samples the BE stores?

Does it make sense to try and figure out other values for max, e.g.

Total available memory on the system for memory.
ulimit for open files?

(is it 200 w/ 2 cores?)

yes

Total available memory on the system for memory. ulimit for open files

Probably, yeah

Nice! #1149 would be pretty great.
I'm not sure about load.

Take the global max of the topo
Choose a very large value like 100 and use a log scale for the fill/bar.

A log scale could work for open files too as the max is probably something v.large.

Upon reflection, I'm not convinced the PruneWithMetrics hack will work for this. Needs revisiting.

[ ] Figure out how to send the metric summaries in deltas and topologies updates
[ ] Only send the last/latest value for metrics in the summaries

rfr @davkal
Just the JS code in this branch in the end.

All works well and looks good.
My personal nit would be the fill color. I feel it's too strong. Maybe use getNodeColorDark for more consistent coloring and try a lower opacity for a lighter feel. Or add a new getNodeColorLight that corrects lightness in the manner getNodeColorDark, just the towards consistent lightness.


Factor Files unit test failing

Expected Behavior

No unit test fails on master

Actual Behavior

FactorFiles_CanBeGenerated_Accurately unit test is failing on master at https://github.com/QuantConnect/Lean/blob/master/Tests/Common/Util/FactorFileGeneratorTests.cs#L70

Potential Solution

fix unit test

Reproducing the Problem

Run FactorFiles_CanBeGenerated_Accurately unit test

System Information

N/A
Checklist

[x] I have completely filled out this template
[x] I have confirmed that this issue exists on the current master branch
[x] I have confirmed that this is not a duplicate issue by searching issues

[x] I have provided detailed steps to reproduce the issue

Closed by https://github.com/QuantConnect/Lean/pull/3833


Binder error

Hi, I'm replacing SQLite with DuckDB and I got a binder error from a previously working query .
The (simplified) table is CREATE TABLE attribute(id BIGINT, object_id INTEGER, type INTEGER, value BLOB, time BIGINT);
The query is SELECT type, value, MAX(time) FROM attribute WHERE object_id = #MY_ID# AND time <= #MY_TIME# GROUP BY type;
The error is: Binder Error: column must appear in the GROUP BY clause or be used in an aggregate function.
My intent is to retrieve, for a given object_id and time, the last value of each different type.
If I change the query this way GROUP BY type, value the binder works but the result is not correct (many duplicates rows).
I cannot figure out the solution.
Thanks.

If the query originates from SQLite, semantically it is equivalent to using the FIRST aggregate over the value clause:
SELECT type, FIRST(value), MAX(time) FROM attribute WHERE object_id = #MY_ID# AND time <= #MY_TIME# GROUP BY type;

DuckDB is more strict on ungrouped columns in aggregates by default, like e.g. Postgres. This is because for ungrouped/unaggregated columns the semantics of which value to return is unclear. We offer the aggregate FIRST which essentially means "the first value we encounter that belongs to this group". This is more or less what SQLite would do in this situation, but might not be exactly what you are looking for.
If you want to fetch the value that corresponds to the max time for each group (i.e. the latest value), you could use a correlated subquery, such as:
SELECT type, value
FROM attribute
WHERE object_id = #MY_ID# AND time <= #MY_TIME#
  AND time = (SELECT MAX(time) FROM attribute a1 WHERE a1.type=attribute.type)

Alternatively, there is also the (very recently merged, only available on master) argMax function you can use:
SELECT type, argMax(value, time)
FROM attribute

Mark thank you very much!
Sorry for my questions, DBs are not my favorite topic..
argMax function is an optimized path or performance aren't the point?
The solution with the subquery seems to me non correct for the job.
The table attribute contains a "timed series". The software receives many "attributes" updates for an "object" (e.g. temperatures for a building).
value is the raw data, type describes the attribute, but also depends from object (e.g. type 1 can be temperature for object 3 but lux for object 4).
So the query have to fetch the latest value for each type with time <= of a certain timestamp.
Why you think the query SELECT type, FIRST(value), MAX(time) FROM attribute WHERE object_id = #MY_ID# AND time <= #MY_TIME# GROUP BY type; is not correct? Perhaps FIRST(value) will be the first value encountered but not for sure the one with MAX(time)?
Cheers

argMax function is an optimized path or performance aren't the point?

It should be faster than the subquery since it can be computed in a single scan over the table without doing a join; the point of it is indeed performance and readability. It should give the same result as the subquery.

The solution with the subquery seems to me non correct for the job.
The table attribute contains a "timed series". The software receives many "attributes" updates for an "object" (e.g. temperatures for a building).
value is the raw data, type describes the attribute, but also depends from object (e.g. type 1 can be temperature for object 3 but lux for object 4).
So the query have to fetch the latest value for each type with time <= of a certain timestamp.

This is exactly what the subquery is doing, but it is doing it in two parts. First, it finds the maximum time for each of the different attribute types for the given object ID. This is the subquery:
SELECT MAX(time)
FROM attribute a1
WHERE a1.type=attribute.type AND object_id = #MY_ID# AND time <= #MY_TIME#

Then, for every observation, it finds the corresponding value by looking this back up in the main table using a (implicit) join:
SELECT type, value
FROM attribute
WHERE object_id = #MY_ID# AND time <= #MY_TIME#
  AND time = (...)

Why you think the query SELECT type, FIRST(value), MAX(time) FROM attribute WHERE object_id = #MY_ID# AND time <= #MY_TIME# GROUP BY type; is not correct? Perhaps FIRST(value) will be the first value encountered but not for sure the one with MAX(time)?

Exactly; if there are multiple observations with time <= #MY_TIME#, the result is not defined. It returns the first value encountered, which is likely the observation with the lowest time (but again, this depends on what your data looks like in the physical system, it is not defined).

Mark, needless to say you were right :)
Sometimes also a copy&paste can be difficult :D
Now the binder error is fixed and the query fetches correctly the data.. but.. performaces aren't so good.
Sure the subquery is heavy when the table gets bigger (I'm testing with 5million entries).
I would try master code for the argMax() function but a the moment I cannot compile it cause a problem with pcg128_t
I added the amalgamation version (duckdb.cpp/hpp) to my project without linking the dll.
Maybe it's my mistake but the amalgamation, also version 0.2.4, give errors cause some #include are still there.
Another error is the multiple declaration of typedef uint64_t idx_t;
If useful (and if isn't my mistake), I can give you much details.

I would say the binder error has been resolved. If you're unable to compile, open another issue please. Also have a look at the binaries from the master branch here: https://github.com/cwida/duckdb/releases/tag/master-builds


Support distributing security policies via KVstore

For those who may be hitting this from the documentation, most users are running K8s, which handles this via the K8s watcher for NetworkPolicy / CRDs; as such, we have closed this.


Using TileSet.TileSetRegion() causes TileMap collisions to not be reported through Raycast

Godot version
v3.5.stable.mono.official
System information
Windows 10
Issue description
Using TileSet.TileSetRegion() to set the region of a TileSet tile causes collisions to not be reported (I only tested with Raycast nodes) even though the collision does seem to function.
I'm using this snippet (C#) in my TileSet resource and calling it from the TileMap to change the tile region for animated tiles.
public void AdvanceAnimation()
    {
        foreach (var tile in animatedTiles)
        {
            Rect2 currentRegion = TileGetRegion(tile.Key);
            int currentFrame = (int)currentRegion.Position.y / (int)currentRegion.Size.y;
            int nextFrame = (currentFrame + 1) % tile.Value;
            Rect2 nextRegion = new Rect2(0, nextFrame * currentRegion.Size.y, currentRegion.Size.x, currentRegion.Size.y);
            TileSetRegion(tile.Key, nextRegion); // <--
        }
    }

Calling this method every process frame causes the collisions to be completely unreported to Raycasts (GetCollider() returns null). Calling this method once every few frames causes collisions to only be ignored for 1 frame. Removing the method call solves the issue altogether.
Experiment 1 (Calling the method every few frames, printing the GetCollider() result of my ground raycast node):

Experiment 2 (Calling the method every frame, printing the GetCollider() result of my ground raycast node):

Steps to reproduce

Create a TileMap and a corresponding TileSet with a tile that is big enough to move the region.
Create a Raycast node (haven't tested if it works with raycasts via code) and point it towards any Tile from the TileMap so that it should report a collision.
Use TileSetRegion() to set the region of the Tile.
Observe that the collisions are not reported for 1 frame.

Minimal reproduction project
No response

Please upload a minimal reproduction project to make this easier to troubleshoot.

Here for 3.x
New Game Project.zip
Just encountered this issue, i'm using tile_set_region to achieve drawcall free tile animation(like for water or tree). If you change tileset region at runtime you sometime can't get collider from intersect_point (in attachment this happends rarely, but in main project i can't get collider at all).
Looks like tile texture region somehow used to return collider
extends TileMap

onready var timer := Timer.new()

func _ready() -> void:
	add_child(timer)
	timer.connect("timeout", self, "_on_Timer_timeout")
	_on_Timer_timeout()

func _on_Timer_timeout() -> void:
	var id := 2  # red one
	var region := tile_set.tile_get_region(id)
	region.position.x += 16
	if region.position.x > 64:
		region.position.x = 0
	tile_set.tile_set_region(id, region)
	timer.start(0.1)

func _input(event: InputEvent) -> void:
	if event is InputEventMouseButton:
		if event.pressed:
			var state := get_world_2d().direct_space_state
			print(state.intersect_point(event.position))

@boruok's MRP in action, with added overlay drawing for intereseted cells (updated each physics step):

It flickers for each region/cell change because of the no intersection being reported (GIF above has just too low FPS).
A workaround which works in the MRP (in v3.5.1.stable.official [6fed1ffa3]): set the timer to process in physics (timer.process_mode = Timer.TIMER_PROCESS_PHYSICS) and defer the tile_set.tile_set_region(id, region) call within its timeout callback (change it to tile_set.call_deferred("tile_set_region", id, region)). No flickering at all:

@kleonc thanks! this did the trick.


CamelCaseValidator should ignore auth and protocol definition traits

The CamelCaseValidator currently emits on traits with invalid lower camel casing.
It should ignore shapes with authDefinition or protocolDefinition traits.

Fixed on 0.10


Bump to minecraft 1.20.4

Bump to minecraft 1.20.4 (loom -> 1.5-snapshot, loader-> 1.15.7, fabric -> 0.96.3+1.20.4, mod version -> 1.2-SNAPSHOT). Updated gradle to 8.6, and re-included gradle wrapper which was missing.

Thanks :D


The big move to pytest.

Done as a PR as I want to check coverage paranoidly before I merge.

Coverage decreased (-1.9%) to 98.07% when pulling 654b8ab7ee11484addf04141fedfb9792bb3b674 on cjw296:pytest into 84cf6207978d1440d89625abed921dafc1ed4d4e on Simplistix:master.

Coverage decreased (-0.6%) to 99.41% when pulling dd88c82c62f75097bdee6699bd728fb9aa0b33f5 on cjw296:pytest into 84cf6207978d1440d89625abed921dafc1ed4d4e on Simplistix:master.

Coverage remained the same at 100.0% when pulling 6237302d1934913d83a7f50ef4d74ece987926e8 on cjw296:pytest into 84cf6207978d1440d89625abed921dafc1ed4d4e on Simplistix:master.


Idea: Making a book and splashy website about proptest

Some inspiration:

serde.rs <-- for books
tokio.rs
rocket.rs <-- this just looks amazing.

Closing this one as the book is published here: https://altsysrq.github.io/proptest-book/intro.html
and we don't have any immediate plans for a website. If there are additional suggestions feel free to open a new issue


Kernel doesn't start

Kernel fails to start. I have ijava 1.3.0, jupyter core 4.5.0 and java 10 installed.

Hi @uvlad7, sorry to hear about the issues you are having with the kernel. Do you have an error, stack trace, or log that you get when trying to start? Without some more information in that regard this is difficult to debug.

 C:\"Program Files"\Java\jdk-9.0.4\bin\java.exe -jar c:\users\samsung\appdata\local\programs\python\python38-32\share\jupyter\kernels\java\ijava-1.3.0.jar D:\Untitled.ipynb Exception in thread "main" org.zeromq.ZMQException: Errno 43 : errno 43         at org.zeromq.ZMQ$Socket.mayRaise(ZMQ.java:3533)         at org.zeromq.ZMQ$Socket.bind(ZMQ.java:2987)         at io.github.spencerpark.jupyter.channels.HeartbeatChannel.bind(HeartbeatChannel.java:42)         at io.github.spencerpark.jupyter.channels.JupyterConnection.lambda$connect$0(JupyterConnection.java:48)         at io.github.spencerpark.jupyter.channels.JupyterConnection.forEachSocket(JupyterConnection.java:73)         at io.github.spencerpark.jupyter.channels.JupyterConnection.connect(JupyterConnection.java:48)         at io.github.spencerpark.ijava.IJava.main(IJava.java:104)


jq error when genesis new with haproxy installed with Cf

The following error occurred when running genesis new with haproxy installed with CF.
jq: error: syntax error, unexpected $end (Unix shell quoting issues?) at <top-level>, line 1:
. |= (.[] |= (.values[] |= (if .skip_ssl_validation == false then .skip_ssl_validation = true else . end ))
jq: 1 compile error
malformed JSON string, neither array, object, number, string or atom, at character offset 1 (before "(end of string)") at /usr/local/bin/genesis line 1970.

Fixed by #10


Delete Machine when BareMetalHost is deleted

This is to ensure a new Machine is created by the MachineSet
controller and that it will contain the latest ProviderSpec.
Signed-off-by: Richard Su<EMAIL_ADDRESS>

/ok-to-test

/test-integration


fixed bad link.

targeted correct doc in quickstart.

I have signed the CLA, and await the PR reflecting this. My github account is associated with my LF account.

Ah.... there it goes. Nice.


update opencensus

we need this bug fix: https://github.com/census-instrumentation/opencensus-go/pull/989
found from https://github.com/fnproject/fn/pull/1373
this is all automated changes from running 3 commands:
$ go mod edit -require<EMAIL_ADDRESS>
$ make build
$ go mod vendor

thank you!


On Windows, calling build() multiple times on the same sphinx.application.Sphinx instance will multiply sphinx-needs css and js entries.

On windows:
Calling build() multiple times on the same sphinx.application.Sphinx instance will add additional sphinx-needs css and js each time, resulting in multiplication of entries in produced html.
Root cause is the usage of pathlib.Path in environment.py  safe_add_file (environment.py#L34), which will cause a WindowsPath to be rendered.
Forward slashes (/) should be used for src= and href= html entries also on windows.
The problem can bee seen in the debug output:

Thanks for reporting.
Looks like a bug in the correct calculation of the web path (used local path) and the comparison to what is stored inside app.builder.script_files.

I have implemented a fix.
Not sure if it works on windows, as CI is not configured to use windows.
Will fix this with a new ticket.

Reopened. Reasons explained here: https://github.com/useblocks/sphinxcontrib-needs/commit/33734dbc9477dc217ff4ee7a4ba85d5541a30c50

Nice, the added test case in #510 detected the above-described problem on windows builds.
Linux looks good.
See log: https://github.com/useblocks/sphinxcontrib-needs/runs/5397544111?check_suite_focus=true
That's promising and I will take a look soon to fix it finally.
Short hint: The is an identical problem with Sphinx-Data-Viewer, which is used by Sphinx-Needs.
This extension also registers stuff multiple times. Fix for it is on the related main branch, but without any test.
So I'm not sure for the fix works also on windows.


Capslock light not working. Configuration disappeared (only once) under Mojave.

Today I updated to macOS Mojave and now Karabiner Elements does not work anymore with my internal keyboard. I have no external keyboard to try it.
If I try to add a new modification or complex modification, after quitting and reopening Karabiner Elements, the modification are not fond anymore.
I am not sure, but I think that right after installing Mojave Karabiner Elements was still working.
Then, all of the sudden (or at least I do not know what the cause could have been), I noticed that the Caps Lock light stopped working.
After a while the light started working again (maybe after awaking from sleep) but now Karabiner Elements is broken. I will try to reboot now.

Rebooting Karabiner Elements started working again and the modifications now are kept when quitting the program. Anyway the caps lock light does not work again.
If I close Karabiner Elements it starts working again.
If I reopen Karabiner Elements the modifications keep working, but the not the light anymore.

I am using the beta version 12.1.5, I updated from the previous stable version when I experienced the problems that I have listed in my first post

#1502

Duplicate of #1502

About non working LED light is duplicate of #1502


feat: add brand color options

Alaska Airlines Pull Request
Added brand color options: goldcoast-200, breeze-100, atlas-100, tropical-300
Fixes: #16
Summary:
Designers have been using the color options (goldcoast-200, breeze-100, atlas-100, tropical-300) for purposes other than alerting the user. The addition of "brand colored" badges will support designers that are using badge for marketing/content.
Type of change:
Please delete options that are not relevant.

[ ] New capability
[x] Revision of an existing capability
[ ] Infrastructure change (automation, etc.)
[ ] Other (please elaborate)

Checklist:

[x] My update follows the CONTRIBUTING guidelines of this project
[x] I have performed a self-review of my own update

By submitting this Pull Request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Pull Requests will be evaluated by their quality of update and whether it is consistent with the goals and values of this project. Any submission is to be considered a conversation between the submitter and the maintainers of this project and may require changes to your submission.
Thank you for your submission!
-- Auro Design System Team

Discussed PR with @leeejune. The resolution is to close this PR for now and rethink the solution.


Reenable graphql query and subscription tests

-Update graphql query for entities and models
-Update graphql subscription for entities and models
Solves #1021
This PR is not finished yet. ToDo:

There is one test that is ignored for now
https://github.com/gianalarcon/dojo/blob/16aae95a8557b8f9fd3e23f03f7c98fff2408d09/crates/torii/graphql/src/tests/models_test.rs#L125

  async fn test_model_ordering(pool: SqlitePool) {

This test depends on https://github.com/gianalarcon/dojo/blob/16aae95a8557b8f9fd3e23f03f7c98fff2408d09/crates/torii/graphql/src/query/data.rs#L55
pub async fn fetch_multiple_rows()

I think we have to update/refactor above function because it uses column_name external_vec to perform ordering, but it should use external_x  and external_y
@broody What do you think about it. any suggestions?

Right, a current limitation is not being able to filter/order on nested types because subqueries are used to retrieve their data. It's related to this issue, once it's resolved I can enable those tests again.

Hi @broody. I enabled most of the test, I think I can deliver these tests now. After the issue that you mentioned is solved I can deliver the last test.

Hi @broody. I enabled most of the test, I think I can deliver these tests now. After the issue that you mentioned is solved I can deliver the last test.

Yeah agreed, thx!


.... is not clickable at point (943, 933)

Hi folks,
just wanted to tell about a problem i got and fixed:
i got this error:
Traceback (most recent call last):
  File "./crawl_profile.py", line 30, in <module>
    information = extract_information(browser, username)
  File "/home/pi/instagram/instagram-profilecrawl/util/extractor.py", line 102, in extract_information
    load_button.click()
  File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webelement.py", line 78, in click
    self._execute(Command.CLICK_ELEMENT)
  File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webelement.py", line 499, in _execute
    return self._parent.execute(command, params)
  File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 297, in execute
    self.error_handler.check_response(response)
  File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/errorhandler.py", line 194, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: Element ... is not clickable at point (943, 933). Other element would receive the click:
...

  (Session info: headless chrome=60.0.3112.113)
  (Driver info: chromedriver=2.29 (8e8216e581c512667203931f81c1a1ead47222e5),platform=Linux 4.9.50-v7+ armv7l)

Solution:
the problem is that the page seems to be not fully loaded, so just go ahead and raise the sleep before this statement in utils/extractor.py:
      :
      load_button = body_elem.find_element_by_xpath\
        ('//a[contains(@class, "_1cr2e _epyes")]')
      body_elem.send_keys(Keys.END)
>>>sleep(3)
      load_button.click()
      :

Also having this issue all of a sudden.

@timgrossmann can be closed


Feature/taxonomy endpoint

(cherry-picked commits from original pull request - https://github.com/terroni/osf.io/pull/1 - which had unnecessary merge commits)
Purpose
Add taxonomies/plos endpoint for getting PLOS subjects
Changes
Add view, initialization, model, and serializer for reading in PLOS subjects. Add .json file for storing flat taxonomy locally, to be read in ensure_taxonomies()
Side effects
None
Ticket
https://openscience.atlassian.net/browse/PREP-4

Superseded by https://github.com/CenterForOpenScience/osf.io/pull/6084.


Alignment problem?

Considering the following AC program (no-sense):
val result = aggregate {
    neighbouring(10) // path -> [neighbouring] = 10
    sharing(0) {
        neighbouring(20) // path -> [sharing, neighbouring] = 20
    } // path -> [sharing] = Field(...)
    neighbouring(30) // path -> [neighbouring] = 30
    5
}

In this program we have 4 points of alignment, right?
If so, the output result from the aggregate computation is wrong.
The produced output is the following:
AggregateResult(
    result=5,
    toSend={Path(path=[neighbouring])=30, Path(path=[sharing, neighbouring])=20, Path(path=[sharing])=FieldImpl(...), messages={IntId(...)=20})},
    newState={Path(path=[sharing])=FieldImpl(...), messages={IntId(...)=20})}
)

In particular, the toSend attribute (which is used to align with the neighbors, right?) has only 3 paths:

Path(path=[neighbouring])=30
Path(path=[sharing, neighbouring])=20
Path(path=[sharing])=FieldImpl(...)

As can be seen, the first alignment on neighbouring(10) is lost. This is due to the fact that the key of the map is the same for the first and the last neighbouring
The expected result should be:

Path(path=[neighbouring-1])=10
Path(path=[sharing, neighbouring])=20
Path(path=[sharing])=FieldImpl(...)
Path(path=[neighbouring-2])=30

Is it right?
Generalizing, having the same operator without a nested aggregate operator, only the last call is aligned due to the same key determined by the path.
Another thing not clear to me is why we have Path(path=[sharing])=FieldImpl(...) which aligns on a Field instead of a value.
Is this right or a bug?
@DanySK @cric96 @ElisaTronetti could you provide me some feedback about the above considerations? Am I right, or I have missed something?

this is a bug.
Result should be like:
val result = aggregate {
    neighbouring(10) // path -> [neighbouring] = 10
    sharing(0) {
        neighbouring(20) // path -> [neighbouring, sharing, neighbouring] = 20
    } // path -> [neighbouring, sharing] = Field(...)
    neighbouring(30) // path -> [neighbouring, neighbouring] = 30
    5
}

Ok.
The following can be also a valid representation? Because I think is more feasible to implement it in the compiler plugin.
val result = aggregate {
    neighbouring(10) // path -> [neighbouring.1] = 10
    sharing(0) {
        neighbouring(20) // path -> [sharing.1, neighbouring.2] = 20
    } // path -> [sharing.1] = Field(...)
    neighbouring(30) // path -> [neighbouring.3] = 30
    5
}

yes it is -- even a better one


Add usdhc to v0.1

I'm currently working (learning) on an uSDHC implementation for the imxrt-hal using a teensy 4.1
I struggling to get it working and split into hal and driver as nice as possible, but I think it could be helpful to have those pins already defined as a first step.

FYI: I don't have an SVD file. I defined that using the docs.


[HOLD] Preserve files when creating / updating a work version with > 250 files.

closes #3392
Why was this change made? 🤔
Per ticket.
How was this change tested? 🤨
⚡ ⚠ If this change involves consuming from or writing to another service (or shared file system), run integration test create_object_h2_spec.rb and/or test manually in [stage|qa] environment, in addition to specs. ⚡
Local, stage
Does your change introduce accessibility violations? 🩺
⚡ ⚠ Please ensure this change does not introduce accessibility violations (at the WCAG A or AA conformance levels); if it does, include a rationale. See the Infrastructure accessibility guide for more detail. ⚡

It doesn't look like the QA object has been tested since it's still on version 1. I can test with this deployed to QA.

I tested on QA and this partially works.

if you edit and press deposit without saving a draft, it does not work

this results in the same prompt to attach a file

if you edit and save a draft, then go back and reopen that draft, then deposit, it works


SpreadsheetRowInsertAfterHistoryToken without count should show modal to prompt user

Closed by https://github.com/mP1/walkingkooka-spreadsheet-dominokit/pull/1731


mappollard: make sure to remove dangling empty root on add

On add, when we're on hashing against a zombie root, sometimes that zombie root would stay dangling around and overwrite other nodes on moveUpDescendents. We make sure that we remove the zombie root to avoid this bug.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

3 of 3 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.01%) to 82.023%

Totals

Change from base Build<PHONE_NUMBER>:
0.01%

Covered Lines:
3089

Relevant Lines:
3766

💛  - Coveralls


String manipulation

String reverse
Common prefix
Common suffix

This will resolve the issue #12

Summary by CodeRabbit

New Features

Introduced new string manipulation functions:

Reverse to reverse strings.
CommonPrefix to find the longest common prefix among multiple strings.
CommonSuffix to identify the longest common suffix among multiple strings.

Tests

Added unit tests for the Reverse, CommonPrefix, and CommonSuffix functions to ensure accuracy with various input cases.

@coderabbitai review


Microsoft data

Currently Using My Client ID Info and will pull the last 15 hours or so.

Updates to accommodate for delivered features.


Add links to higher-resolution images

A suggestion from Eddie on [decam-chatter]:
It would be great to be able to conveniently get higher resolution versions.  The viewer makes individual chips available as follows http://legacysurvey.org/viewer/ccd/decals-dr7/decam-723820-S22-r

The number 723820 appearing in the sample URL above is encoded as EXPNUM in one of the FITS headers (presumably HDU[0]).

Extracting EXPNUM from the .fits.fz files is painfully slow (almost 1 sec per file), presumably because of the decompression overhead.
@schlafly @dstndstn @moustakas Any idea if the CP output <-> EXPNUM mapping is already written out to a file somewhere?
For example:
CP20140810_g_v2/c4d_140815_235550_ooi_g_v2.fits.fz <-> EXPNUM 348225

You can use the survey-ccds*.fits files from a DR to find this mapping; the columns are image_filename and expnum.

And unfortunately the only CCDs files we have right now (based on an old, incomplete image list) are split by per-band, but can be found here:
/global/project/projectdirs/cosmo/work/legacysurvey/dr8-attic-2/DECaLS
Calibs are top priority and then we'll have the definitive survey-ccds file.

The -ondisk files you're working from also have the expnum-file name mapping; that's the easiest route forward.
On Apr 1, 2019 17:43, Moustakas<EMAIL_ADDRESS>wrote:
And unfortunately the only CCDs files we have right now (based on an old, incomplete image list) are split by per-band, but can be found here:
/global/project/projectdirs/cosmo/work/legacysurvey/dr8-attic-2/DECaLS
Calibs are top priority and then we'll have the definitive survey-ccds file.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/dkirkby/legacyQA/issues/6#issuecomment-478798368, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABWicZTn10QpY4OtSYkvYvp65-cJNpIUks5vcqeXgaJpZM4cWz4M.

Is the naming of CP outputs documented somewhere?  For example, in /global/project/projectdirs/cosmo/work/legacysurvey/dr7/survey-ccds-dr7.fits.gz I see names like:
decam/DECam_CP/CP20160107/c4d_160103_082125_ooi_g_v1.fits.fz

In /global/project/projectdirs/cosmo/work/legacysurvey/dr8-attic-2/DECaLS/survey-ccds-decam-g.fits.gz I see names like:
decam/DECam_CP/CP20180318/c4d_180319_022328_ooi_g_v1.fits.fz

Finally, in /global/project/projectdirs/cosmo/work/legacysurvey/dr8b/image-lists/image-list-decam-dr8.txt, I see:
decam/DECam_CP/CP20140810_g_v2/c4d_140815_235550_ooi_g_v2.fits.fz

I guess the 8 digits after CP are a date and v1 and v2 are version numbers, but then why is v2 associated with 2014 and v1 associated with both 2016 and 2018?
Presumably v2 is what will be used for DR8, so is what I should be using to create full focal-plane thumbnails?

This looks like it's what you want:
http://ast.noao.edu/sites/default/files/File_Naming_Conventions_v12.pdf
But here's my summary...
c4d: CTIO 4 meter DECam
160103_082125: image taken on 2016-01-03:08:21:25---I can't remember the time zone, etc., used for computing this time.
ooi: three letters indicating what type the file has.  Initial 'o' is 'object', the second 'o' means 'InstCal' (the stage of processing we usually use); the final letter is one of 'iwd' for the images we use, corresponding to image, weight, dq mask.
The next letter is the filter.  The 'v1', etc., prefix has no consistent meaning---something of a problem.  It gets added by hand to distinguish between different processing versions, and will have different meaning depending on year/camera/....
For DR8 you should use whatever files are in the image list; we're using all of those.  I don't know why that particular image from 2014 got reprocessed and a v2 got appended.  Reviewing my email, it looks like a bunch of CP improvements were recommended for this early data, and after these were incorporated the data was reprocessed through the CP with those improvements.

And to elaborate here:

Any idea if the CP output <-> EXPNUM mapping is already written out to a file somewhere?

I think the easiest thing is to use
/global/project/projectdirs/cosmo/work/legacysurvey/dr8b/image-lists/dr8-ondisk-decam-v4.fits
for this mapping.

Let's start using
 /global/project/projectdirs/cosmo/work/legacysurvey/dr8/image-lists/
please, and freeze the dr8b directory.

I am almost done with adding this feature.  I guess for now the high-resolution image will have to be from DR7 since http://legacysurvey.org/viewer/ccd/decals-dr8 is not up yet?

Yes, we'll need to do DR7; it will be a while before DR8 is fully in the viewer.


About implementation of Affine GLO

Hi there, @SuLvXiangXin!
First of all, I wanted to thank you for sharing your implementation. I appreciate the work you've done.
I did notice some floaters in the demo video and wanted to bring it to your attention. I believe that the issue may be related to GLO.
After reading through Appendix A of the paper, I noticed that the authors did not concatenate GLO at the bottleneck vector, as you did in this part. Instead, they used an mlp to map GLO to affine transform vectors.
I hope this information is helpful in improving the quality of your implementation. Thank you so much for your hard work and dedication.
Best regards,
Sang Min Kim.

Thanks for reminder, I have implemented it just now, you can find it in the lastest commit. And a more comprehensive experiment will be conducted.

Thank you!


[MINOR][ML] Fix wrong @since version in KMeans

What changes were proposed in this pull request?
fix wrong version in KMeans.fit
there were two import GeneralizedLinearRegression._ in trait GLR.GeneralizedLinearRegressionBase
How was this patch tested?
existing tests

Test build #69227 has started for PR 16029 at commit 2e01a62.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/69227/
Test FAILed.

This is too trivial to bother with.

@srowen I found a small bug, and merge it in.

Test build #69289 has started for PR 16029 at commit 9a87cbb.

Test build #69289 has finished for PR 16029 at commit 9a87cbb.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/69289/
Test PASSed.


Setup CUDA on Ubuntu 20.04 with secure boot enabled doesn't work

The instructions on page Install CUDA driver on Ubuntu with Secure Boot enabled  do not work, first the version it finds is cuda-drivers-535, but when you try and install that it complains about a dependency having the wrong version (nvidia-modprobe), I found the latest nvidia-modprobe is version 465, so I was able to install cuda-drivers-465, but even then I still get this prompt which leaves the machine in an unconnectable state:

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

ID: 0e03790a-1bf9-146d-704b-6816d475064b
Version Independent ID: ad5f6be7-e089-161f-306c-39d10e7ab0a0
Content: Azure N-series GPU driver setup for Linux - Azure Virtual Machines
Content Source: articles/virtual-machines/linux/n-series-driver-setup.md
Service: virtual-machines
Sub-service: sizes
GitHub Login: @vikancha-MSFT
Microsoft Alias: vikancha

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

@lovettchris
I'm sorry to hear that you're having trouble with the instructions for installing the CUDA driver on Ubuntu with Secure Boot enabled. It sounds like there may be some issues with the dependencies and the version of the driver.
To ensure that you have the correct version of the driver and dependencies, you can try the following steps:
Remove any existing NVIDIA drivers and CUDA installations:
sudo apt-get remove --purge '^nvidia-.'
sudo apt-get remove --purge '^cuda-.'
Install the NVIDIA driver:
sudo apt-get install nvidia-driver-465
Install the CUDA toolkit:
sudo apt-get install cuda-toolkit-11-3
Reboot your system to ensure that the new driver and CUDA installation are loaded correctly.
If you still encounter issues with the installation, you can try disabling Secure Boot temporarily to see if that resolves the issue. You can re-enable Secure Boot after the installation is complete.
I hope this helps! Let me know if you have any other questions.


Fix for sheet name containing xml escape sequence

As reported in issue #143 , the following is my approach towards solving this. Kindly look into this

Another approach is to use worksheet.set_name(convert_character_reference(&name_value)); instead of explicitly calling quick-xml again.

@agentjill
Thank you for your consideration.
I think this modification is smart and good.
Please release Draft and we will merge it.
https://github.com/MathNya/umya-spreadsheet/pull/145/files#diff-f0f4f74f345f6f1fa8641d024663826eefc687ba2f3bea48d3415e455f366adfR44

@MathNya thanks for the consideration.

@agentjill
We will merge them.


Module undefined

With the latest version of react native, the module import of Thread returns undefined. Any advise?

Problem was solved, no clue what went  wrong..

glad to hear you got it working!


Deploy smart contract locally failed

I was trying to deploy a smart contract locally by truffle, command as below:
truffle migrate

results:
E:\polymath-token-15-1-18_airdrop_script>truffle migrate
Using network 'development'.
Network up to date.

results in ganache-cli prompt:
Listening on <IP_ADDRESS>:8545

net_version
eth_accounts

Expected results if deploy  successfully

From the output of my prompt  it does't appeared a obvious error , just blocked in somewhere
E:\polymath-token-15-1-18_airdrop_script>node -v
v8.11.4

E:\polymath-token-15-1-18_airdrop_script>truffle version
Truffle v4.1.14 (core: 4.1.14)
Solidity v0.4.24 (solc-js)
'''

Ok I found a solution ,  when you seeing a out put in the terminal likes
Using network 'development'.

Network up to date.

that means deploy failed,
typpe "truffle migrate --reset" in  your prompt to redeploy your smart contract then should solved the problem.


set cookie with json response

Hello, how can i return a json response to the client and also add a header with Set-Cookie?

Did you try to do something similar as in https://github.com/ipkn/crow/blob/49edf898a5b9a39a0d69072cc2434c4f23692908/examples/example_chat.cpp#L51 and add res.add_header("Set-Cookie", "")?


Use custom preview screen to avoid showing black screen

JIRA:  https://openedx.atlassian.net/browse/MOB-1391
This prevents showing of black screen by showing white background which matches with the background of splash screen. This is a standard way of having custom preview screen where preview screen is supposed to match the theme of the splash screen so that user doesn't feel a disconnect between preview and splash.
cc @nasthagiri @aleffert @shahidtamboli

The change looks fine to me. Just want to check: Will this show through during activity transitions or anything weird like that?

@akuryla  This preview will only be shown once when MainApplication is being created. After that, it will not show up unless app is completely destroyed. Will not show during transitions or if app is minimized and opened again.
So there is no effect on any existing behavior except the black screen during a fresh app launch.
cc @shahidtamboli

:+1:

Hi @rohan-dhamal-clarice , just fyi my github name is lamagnifica. There is another Alison at edx, whose name is akuryla.


crash: '/id-in?fu=1&rcn=4'

development branch only, works in master:
5190046203486207, permission: 32, selfPrivileges: False                                    SecurityManager.py:66
           DEBUG    5902 - Retrieve resource: acp3119621421175847417                                                                                Dispatcher.py:172
           DEBUG    5902 - Permission granted                                                                                SecurityManager.py:118
           DEBUG    5902 - Retrieve resource: id-in                                                                                Dispatcher.py:172
           DEBUG    5902 - <== Response (RSC: 2000):                                                                                HttpServer.py:231
                    [<resources.FCNT_LA.FCNT_LA object at 0x7f923202fd00>, <resources.FCNT_OL.FCNT_OL object at 0x7f923202f3d0>]
[12:09:04] ERROR    5902 - Exception on /id-in [GET]                                                                                app.py:2450
                    Traceback (most recent call last):
                      File "/home/me/.local/lib/python3.8/site-packages/flask/app.py", line 2447, in wsgi_app
                        response = self.full_dispatch_request()
                      File "/home/me/.local/lib/python3.8/site-packages/flask/app.py", line 1952, in full_dispatch_request
                        rv = self.handle_user_exception(e)
                      File "/home/me/.local/lib/python3.8/site-packages/flask/app.py", line 1821, in handle_user_exception
                        reraise(exc_type, exc_value, tb)
                      File "/home/me/.local/lib/python3.8/site-packages/flask/_compat.py", line 39, in reraise
                        raise value
                      File "/home/me/.local/lib/python3.8/site-packages/flask/app.py", line 1950, in full_dispatch_request
                        rv = self.dispatch_request()
                      File "/home/me/.local/lib/python3.8/site-packages/flask/app.py", line 1936, in dispatch_request
                        return self.view_functions[rule.endpoint](**req.view_args)
                      File "acme/HttpServer.py", line 110, in handleGET
                        return self._prepareResponse(request, resource, rc)
                      File "acme/HttpServer.py", line 232, in _prepareResponse
                        resp = make_response(r)
                      File "/home/me/.local/lib/python3.8/site-packages/flask/helpers.py", line 223, in make_response
                        return current_app.make_response(args)
                      File "/home/me/.local/lib/python3.8/site-packages/flask/app.py", line 2127, in make_response
                        raise TypeError(
                    TypeError: The view function did not return a valid response. The return type must be a string, dict, tuple, Response instance, or WSGI callable, but it was a
                    list.
           DEBUG    5902 - "GET /id-in?fu=1&rcn=4 HTTP/1.1" - 500                                                                                HttpServer.py:298

Thanks for reporting. This should be solved.
Sorry, we merged a lot of changes today.


added little sample code to use

Still needs improvement

Decided to close this for now. It's not important currently and there are too many changes required. Will write an issue/specs once the package is more stable :)


Unable to use localization despite feature branding is already subscribed

While I was able to use localization till now, but once I upgraded to 1<IP_ADDRESS>2 i started getting error to "Configure the feature branding to use the translation memory."
I am already subscribed to feature branding but still getting error.
UI version: 1<IP_ADDRESS>2
Microservice version: 1<IP_ADDRESS>2

@rahultalreja11  Hope this is resolved and we can close this now ?

@rahultalreja11 can this be closed ?

Yes please close


Execute System Management Operations Asynchronously

The current implementation processes operations sequentially when more than one service is provided.  Refactor the current implementation to execute operations via executor asynchronously -- i.e. execute executor for each requested service simultaneously, aggregate the results, and return them as a single HTTP response.  This should not change the existing executor contract; e.g. that each invocation only processes a single operation for a single service.
This is intended to resolve HTTP timeout when operations are requested from more than two services.

Relevant, related issue: Issue-272
Relevant, related PR: PR277
In addition to the reference each above (to blackbox test issue and related PR), this is to note that I have commented-out an individual (system-management) blackbox test, and that it will need to be uncommented and pass as part of the issue.


MNT: Added replace existing to lat an lon and if statement for grids with 1 level.

Added replace existing to lat and lon and if statement for grids with 1 level. Also did pep8 changes to common.py and doc fixes etc.

Thanks Zac


querybase

Hi,
This is my code
import querybase from 'querybase';
import firebase from 'firebase';
getfirebase(id)
{
const databaseRef = firebase.database().ref().child('chats');
const querybaseRef = querybase.ref(databaseRef, ['sender', 'receiver']);
const queriedDbRef = querybaseRef
.where({
sender: id,
receiver: id
});
// Listen for realtime updates
queriedDbRef.on('value', snap => console.log(snap));
}
I am getting ref is undefined
How to fix this issue
Kindly Advice me,
Thanks & Regards

Querybase and Firebase do not have default exports.
Try instead:
import * as querybase from 'querybase';
import * as firebase from 'firebase';


Add MetadataControl documentation

Docs for Toolkit PR #3686
What changes to the docs does this PR provide?
Add the documentation page for the new MetadataControl.
PR Checklist
Please check if your PR fulfills the following requirements:

[x] Correctly picked the right branch to base the change off (dev for new features, master for typos/improvements)
[x] For new pages, used the provided template
[x] For new features, added an entry in the Table of Contents
[x] Ran against a spell and grammar checker
[x] Contains NO breaking changes

Docs Build status updates of commit 5920b8b:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/controls/MetadataControl.md
:bulb:Suggestion
View
Details

docs/toc.md
:white_check_mark:Succeeded
View

docs/controls/MetadataControl.md

Line 4, Column 14: [Suggestion-duplicate-descriptions] Attribute 'description' with value 'UIElementExtensions provides a simple way to extend the UIElement class' is duplicated in 'controls/MetadataControl.md(4,14)', 'extensions/UIElementExtensions.md(4,14)'.

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Docs Build status updates of commit 0ca90ee:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/controls/MetadataControl.md
:white_check_mark:Succeeded
View

docs/toc.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Quora Answer Capture Bug #2

Answers cannot be ordered chronologically. If you click on the up or down arrow for Date, it changes the order in some way but not in strictly date order--the dates skip around all over the place.

I may be overlooking something, but when I look at your recently uploaded answers and click the date arrows, it sorts correctly for me. On first click, it sorts oldest first:

March 5, 2014
February 11, 2016
January 4, 2017
January 6, 2017
...

On second click, it sorts newest first:

July 21, 2017 (several answers)
July 20, 2017
July 16, 2017
...

Are those not the results you're getting, or am I missing something obvious?

Oh, I see! I thought the little arrow to the left of the date was what you
clicked to get ascending date order, but it's actually related to ordering
answers (however that's determined). So if I click on the little arrow to
the right, it works fine.
Sorry!

From: Erik Moeller<EMAIL_ADDRESS>Sent: Friday, July 21, 2017 1:11 PM
To: eloquence/freeyourstuff.cc
Cc: BobRedCo; Author
Subject: Re: [eloquence/freeyourstuff.cc] Quora Answer Capture Bug #2 (#74)
I may be overlooking something, but when I look at your recently
https://freeyourstuff.cc/view/quora/597258f0dca98f5c66fb5254  uploaded
answers and click the date arrows, it sorts correctly for me. On first
click, it sorts oldest first:

March 5, 2014
February 11, 2016
January 4, 2017
January 6, 2017
...

On second click, it sorts newest first:

July 21, 2017 (several answers)
July 20, 2017
July 16, 2017
...

Are those not the results you're getting, or am I missing something obvious?

You are receiving this because you authored the thread.
Reply to this email directly, view
<https://github.com/eloquence/freeyourstuff.cc/issues/74#issuecomment-317101
164>  it on GitHub, or mute
<https://github.com/notifications/unsubscribe-auth/AbriV-H2YU-YHGxCD2PKFI-xZ
4g9Jyi1ks5sQQXugaJpZM4Of1S9>  the thread.
<https://github.com/notifications/beacon/AbriV-NPADHY3y_q2lnRy9i0KrNCNmzMks5
sQQXugaJpZM4Of1S9.gif>

No worries, I can see how it's a bit confusing given how wide the middle column is. Closing for now. Thanks for the reports!


CI ( new version )

Hi @dwarring ! Sparrow CI now uses pipelines, and this repo uses old .sparky.yaml way, for that reason builds are failing . If you are interesting in keep using SparrowCI - here the patch

Sorry for too many commits , could they be squashed ?

Build example - https://ci.sparrowhub.io/report/2637

Thanks.


Update README.md

Hi,
This small PR adds a button to get your app on F-Droid. You can later add a button for Google Play the same way :
[<img src="https://play.google.com/intl/en_us/badges/images/generic/en-play-badge.png"       alt="Get it on Google Play"       height="80">]()
It also adds a link to get the latest APK from the Releases Section.
You can now eventually add the fdroid and/or f-droid tags that will appear on the right side of the repo.

May replace the APK link line with a "Get it on GitHub" button at some point, but a good idea regardless. Thanks.


Reserved slots

Hi guys, im being notice that happens in my server, i have a 5 reserved slots to some players, and my server supportrs 20 slots. So it should have 15players + 5 vips playing. but this doens happen... i have for example 15/20 players playing including in this 15, some of the vip players, and people can join because of the 15 reserved slots.

I confirm this on my server as well, got down from 18 to 16 because of 2 reserved since last update

Not a bug, intended functionality


angular-cli: 1.0.0-beta.26 is not pointing on parameters fixed in ember-cli

Please provide us with the following information:

OS?
Linux x64
Ubuntu 14.04 LTS
Versions.
angular-cli: 1.0.0-beta.26
node: 7.4.0
Repro steps.
Once I'd upgraded my angular-cli to the above mentioned version, it would not recognize the parameters fixed in ember-cli when running ng serve as usually. So, I could not run my application on a specific domain name different from the basic http://localhost:4200. Here is how my ember-cli file looks like:
{
  "ssl": true,
  "open": true,
  "port": 3000,
  "liveReload": true,
  "host": "dev.dev.com",
  "ssl-key": "./key.pem",
  "ssl-cert": "./cert.pem",
  "checkForUpdates" : false
}

The log given by the failure.
There is no failure, except the mentioned issue

Thanks! We'll be in touch soon.

It is recommended to not rely on ember-cli specific functionality.  There is no guarantee it will be available in a future release.
Augmenting the npm start script with your options and using npm start instead of ng serve  is a currently viable alternative for your use case.

ember-cli file functionality was fully removed in one of the last releases, but tbh it was never really supported since beta.12 I think.
@clydin's advice is solid.

Well, it was supported actually with beta.24, anyway Thank you both indeed for the swift feedbacks @clydin  & @filipesilva .


E712 : Wrong fix suggested in presence of numpy.bool_

Using ruff 0.0.265.
In this code, the two if-blocks are NOT equivalent:
def f(x):
    # x is a np.ndarray with at least 2 dimensions
    return x[0, 0] > 0

x = np.eye(2)
a = f(x)
if a == True:
    print("a==True")
if a is True:
    print("a is True")
    assert(False)

What's going on is type(a)==numpy.bool_ which can be compared to True/False via == but it is not referentially the same.

Duplicate of https://github.com/charliermarsh/ruff/issues/2443


Could not install Package Microsoft Ml 1.5.5

System Information (please complete the following information):

Model Builder Version (available in Manage Extensions dialog): Version:<IP_ADDRESS>1904
Visual Studio Version16.10.2

Describe the bug

On which step of the process did you run into an issue:After Doing a Training at finalizing Model
Clear description of the problem:

To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

I think .NET Framework 4.6 is not supported, and we will need to create .NET Core project to use the model builder.
Related to: https://github.com/dotnet/machinelearning-modelbuilder/issues/1511

@torronen will i be  able to add the model to the .net mvc project after?

@mrrcomp Good question. I don't know. Probably at least .NET Framework 4.7.2 is needed because it supports .NET Standard 2.0. Microsoft.ML seems to be available for it.

@mrrcomp Have you tried updating your project from net462 to net472 (or other frameworks that work with netstandard2.0) and see if it resolve this issue? Otherwise it's expected that the installation package fails.

@mrrcomp
I'm going to close this as there's no reply, feel free to reopen it and @ me if you have any other questions


[Bug]: Timeout has no effect if test is successful

Version
27.5.1
Steps to reproduce
Steps:

Clone https://github.com/mrenit/timeout-bug
Run npm test

Expected behavior
 FAIL  src/App.test.tsx
  ✕ renders learn react link timeout raises (37 ms)
  ✕ renders learn react link timeout not raises (7 ms)

  ● renders learn react link timeout raises

    thrown: "Exceeded timeout of 1 ms for a test.
    Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

      3 | import App from './App';
      4 |
    > 5 | test('renders learn react link timeout raises', async () => {
        | ^
      6 |   render(<App />);
      7 |   const linkElement = await screen.findByText(/learn react7/i);
      8 |   expect(linkElement).toBeInTheDocument();

      at Object.<anonymous> (src/App.test.tsx:5:1)
      at TestScheduler.scheduleTests (node_modules/@jest/core/build/TestScheduler.js:333:13)
      at runJest (node_modules/@jest/core/build/runJest.js:404:19)

  ● renders learn react link timeout not raises

    thrown: "Exceeded timeout of 1 ms for a test.
    Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

      10 |
      11 |
    > 12 | test('renders learn react link timeout not raises', async () => {
         | ^
      13 |   render(<App />);
      14 |   const linkElement = await screen.findByText(/learn react/i);
      15 |   expect(linkElement).toBeInTheDocument();

      at Object.<anonymous> (src/App.test.tsx:12:1)
      at TestScheduler.scheduleTests (node_modules/@jest/core/build/TestScheduler.js:333:13)
      at runJest (node_modules/@jest/core/build/runJest.js:404:19)

Test Suites: 1 failed, 1 total
Tests:       2 failed, 2 total
Snapshots:   0 total
Time:        0.856 s, estimated 1 s
Ran all test suites.

Watch Usage: Press w to show more.

Actual behavior
FAIL  src/App.test.tsx
  ✕ renders learn react link timeout raises (31 ms)
  ✓ renders learn react link timeout not raises (8 ms)

  ● renders learn react link timeout raises

    thrown: "Exceeded timeout of 1 ms for a test.
    Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

      3 | import App from './App';
      4 |
    > 5 | test('renders learn react link timeout raises', async () => {
        | ^
      6 |   render(<App />);
      7 |   const linkElement = await screen.findByText(/learn react7/i);
      8 |   expect(linkElement).toBeInTheDocument();

      at Object.<anonymous> (src/App.test.tsx:5:1)
      at TestScheduler.scheduleTests (node_modules/@jest/core/build/TestScheduler.js:333:13)
      at runJest (node_modules/@jest/core/build/runJest.js:404:19)

Test Suites: 1 failed, 1 total
Tests:       1 failed, 1 passed, 2 total
Snapshots:   0 total
Time:        0.804 s, estimated 1 s
Ran all test suites.

Watch Usage: Press w to show more.

Additional context
I created this project with npx create-react-app my-app --template typescript. Afterwards I only modified the test App.test.tsx to:
import React from 'react';
import { render, screen } from '@testing-library/react';
import App from './App';

test('renders learn react link timeout raises', async () => {
  render(<App />);
  const linkElement = await screen.findByText(/learn react7/i);
  expect(linkElement).toBeInTheDocument();
}, 1); // <-- Timout of 1ms

test('renders learn react link timeout not raises', async () => {
  render(<App />);
  const linkElement = await screen.findByText(/learn react/i);
  expect(linkElement).toBeInTheDocument();
}, 1); // <-- Timout of 1ms

The first test behaves like expected. The second test does not behave as expected, since the test with an execution time of 8 ms passes instead of failing cause of the timeout of 1ms.
Environment
System:
    OS: Linux 5.15 Ubuntu 20.04.5 LTS (Focal Fossa)
    CPU: (16) x64 AMD Ryzen 7 PRO 4750U with Radeon Graphics
  Binaries:
    Node: 16.18.1 - /usr/bin/node
    Yarn: 1.22.18 - /usr/local/bin/yarn
    npm: 8.3.0 - /usr/local/bin/npm

It is still an issue

I don’t think this is a bug.  The first test fails, because you expect to find a string matching /learn react7/. The method .screen.findByText, is async, so it keeps trying to find this string on the dom, till it reaches the timeout.
Your second test though, searches for different string /learn react/.  And the test succeeds before the timeout. I’m not sure, but I think Jest adds the time of setup and teardown to the test. So this 8 ms you see in the passing test is setup + your test + teardown.
Also, as an argument as to why I think this is not  a bug, you can try the following code:
const delay = ms =>  new Promise((resolve) => setTimeout(resolve,ms));

 test("fails on timeout", async () => {
    await delay(10);
  }, 9); // This should fail


feat: allow notification response catch

I think it can be better to return a DTO, we'll be doing that soon.


Crashlytics reports come in, but are not shown in FB Dashboard

[REQUIRED] Please fill in the following fields:

Unity editor version: 2019.4.12f1 (LTS)
Firebase Unity SDK version: 6.16.0
Source you installed the SDK: Unity Package Manager
Problematic Firebase Component: DB
Other Firebase Components in use: Auth, Crashlytics, Analytics
Additional SDKs you are using: none
Platform you are using the Unity editor on: Mac
Platform you are targeting: iOS
Scripting Runtime: IL2CPP

[REQUIRED] Please describe the issue here:
I deployed a mobile app to iOS and Android user base. On both platforms a few issues are reported in the FB dashboard/console, but only iOS actually shows according data. For Android, the dashboard still just shows the "Welcome" initial screen saying it's waiting for the first reports to come in. I've waited more than 48h now, but still no data. I don't see anything I could have missed on Android. Any advice what could be missing for Android?
(Screenshots in German, sorry. But you should know those patterns... ;-) )
Android

iOS

Steps to reproduce:
n/a
Relevant Code:
Code is the same for both platforms, so as it works for iOS (and also Android reports incoming issues) it should not be related to coding.

So as of today, 24h later, the Dashboard made up its mind and is now not showing any more issues for Android (which would then now be consistent with the Crashlytics entry screen and also with the Playstore console, which doesn't show any crashes).
Is there any indication at what point in time certain data is reliable? Especially when it comes to crash reporting I think it would be important to alway have the right data (per platform and per app version).

I also recently changed from Firebase Unity SDK 6.14.0 to 6.16.0
I'm having a similar problem.
Looking at my android log
I'm getting the error "FirebaseCrashlytics: Failed to retrieve settings from ..."
In FirebaseApp.CheckAndFixDependenciesAsync() function
"Disable module'crashlytics' for'Firebase.Crashlytics.FirebaseCrashlytics, Firebase.Crashlytics' "
This log is showing up.
Android_Fabric_6_16_0.txt

Even though I haven't edited any further
Android DashBoard, which was not available all week, has been activated today.
I no longer see the "FirebaseCrashlytics: Failed to retrieve settings from ..." message on the same build from which I extracted the logs last time.
However, if you directly access the file path in the message, the json format is displayed as "{}" the same as the last time.
"Disable module'crashlytics' for'Firebase.Crashlytics.FirebaseCrashlytics, Firebase.Crashlytics' "
The message is still being printed.
Test Exception is received successfully.

@habitoti We discovered a backend issue late last week that was preventing new Unity Android apps from getting registered properly in our system, which is why you saw the green screen with the spinner even after causing a crash as instructed. That issue was resolved late Friday, so you can finish onboarding your Android app by sending a crash. Please let us know if you are still experiencing the issue.
@kairi81 it appears you may have had the same issue? Based on your most recent message it seems the problem is resolved, correct?

@mrichards
Crashlytics Dashboard has been activated.
Reporting is also being confirmed normally.
But "Disable module'crashlytics' for'Firebase.Crashlytics.FirebaseCrashlytics, Firebase.Crashlytics"
The log is still being printed.
Is there any problem even if this log is printed?

Hi @kairi81
In short, this message is harmless, but this message is incorrectly generated.
A longer explanation: When CheckAndFixDependenciesAsync() is called, it would try to "initialize" each module, like database or analytics, and try to prepare the requirements of the module. It is actually mostly doing nothing with some exceptions:

Analytics will try to initialize itself so that it can be used in anytime.
https://github.com/firebase/firebase-cpp-sdk/blob/1d13237b37dcecdc3a48ccd882337e03d4ac5bf0/analytics/src/analytics_common.cc#L33
Some modules, like Database and Storage, would try to make sure Play Services is available on the device.
https://github.com/firebase/firebase-cpp-sdk/blob/1d13237b37dcecdc3a48ccd882337e03d4ac5bf0/database/src/common/database.cc#L46

Crashlytics is actually doing absolutely nothing right now.  (Unfortunately that part of the code is not public yet so that I cannot show it to you.
CheckAndFixDependenciesAsync() try to initialize module based on checking if the C# class exist.  In this case, it checked Firebase.Crashlytics.FirebaseCrashlytics.  However, this class actually does not exist because the correct class name is Firebase.Crashlytics.Crashlytics.  Therefore you saw this message.
This seems to be a minor issue and will not affect the functionality of Crashlytics.

Hi @mrichards
I tried the lastest version of Firebase Unity SDK(6.16.1). Firebase initialises but we dont see any error logs in the firebase console. Attached are my logs for the app run.
Crashlytics-log.txt

We are stuck at this problem since past two days. Help would be much appreciated.

Same here, with newest SDK 6.16.1 and Unity 2019.4.12.
log.txt

Install the unity package download will resolve this problem. That issue only occurs if we use the package manager from Unity

Same issue and we use Package Manager, can you reopen this bug?
6.16.1 (other issues with 7.xx)

Hi folks, I'm cleaning up old tickets and I am fairly sure this issue was due to the the version of OkHttp used by Crashlytics being incompatible with an OkHttp dependency pulled in by the app or another SDK. Crashlytics recently removed the dependency on OkHttp entirely, so the issue should be resolved for customers on the latest version of the Firebase Unity plugin.
I'm going to close this issue; please reopen if the problem persists with the latest version.


Add example for accessing router in a store

This PR adds an example for how to access the vue router once you have added it as a plugin.

Thanks but how to use properties is already shown at the very beginning of the plugins section


Trouble installing backend

I ran into an issue trying to install the backend using instructions:
git clone https://github.com/Dronecode/DronecodeSDK --recursive
cd DronecodeSDK
make BUILD_BACKEND=1
Then when trying to run:
./build/default/backend/src/backend_bin
I get the error message
joe@joe-VirtualBox:~/DronecodeSDK$ /build/default/backend/src/backend_bin
bash: /build/default/backend/src/backend_bin: No such file or directory
I searched through all directories and did not find the file backend_bin.
Any idea what went wrong?
Thanks
Joe

Did the build actually work? Sounds like the build failed.
On which system are you running?

@JonasVautherin , I am running the PX4 SITL on ubuntu 16.04.  I have the GUI running and can input individual commands OK.  What I want to do is install the DronecodeSDK-Python wrapper, so installing the backend is a prerequisite.  Evidently is did not install, but I don't know what went wrong.
Joe

My guess would be that the gRPC build failed because you don't have go (go-lang) installed on your system. Can you check if go-lang is installed on your system? If not, install it and run the build again.
If it still fails, I will need to see the compiler output, because it probably says why it failed :-).

Is that the Go language?  If so how do I download it?

Joe

I am not on Ubuntu, but what about apt install golang?

That is worth trying, but there may be no official packet. I haven't done this, but see https://github.com/golang/go/wiki/Ubuntu for an alternative.
@JonasVautherin When this is resolve, we need a "Building the backend" section added here: https://sdk.dronecode.org/en/contributing/build.html for all platforms. Are there any other dependencies? What about how to do this on macOS and Windows?

I believe golang exists on Ubuntu (tried in a docker just now :-)).
@hamishwillee: you're perfectly right, I'll do that when I find time! I have Linux and macOS, no idea about Windows, though ;-).

OK, this command worked and Go installed:
sudo apt-get install golang
However when I ran
make BUILD_BACKEND=1
it gave this message, which was the same as before loading golang.
Build dir: build/default
ninja: no work to do.
So I don't think it installed the backend yet.
Another clue is that the directory DronecodeSDK/build/default/backend  does not exist, ie, the default folder does not contain a backend folder.
Joe

Do you have something at all in DronecodeSDK/build/default?
Would you mind running a clean build, again, with:
make distclean
make BUILD_BACKEND=1

@JonasVautherin , the cleanup and re-make worked like a charm.  I now have all the dependencies for loading the Python wrapper.  BTW, that was a huge build, took almost a half hour.
Thanks for the very quick response.
Joe

Yes, what's taking time is mainly cloning the dependencies actually :confused:. I'd like to work on improving that in the future.

@JonasVautherin: is it added to the Python readme?

Better: I improved the build so that the build fails fast (see PR here).
I wouldn't put instructions about building the backend in the Python readme.

I wouldn't put instructions about building the backend in the Python readme.

But then they need to be linked. It's just that all info needs to be there, otherwise it's not useable.

I added build instructions you can link to here: https://github.com/dronecore/sdk_docs/pull/146 ... once you have reviewed/merged. Feel free to merge and iterate yourself if you need to create the link target.

Hello again, I have another issue.
when installing the Python wrapper everything appeared to install OK.  But when I tried to run the takeoff_and_landing script it threw this error:
joe@joe-VirtualBox:~/src/Firmware/DronecodeSDK-Python$ examples/takeoff_and_land.py
Traceback (most recent call last):
File "examples/takeoff_and_land.py", line 5, in
from dronecode_sdk import connect as dronecode_sdk_connect
ModuleNotFoundError: No module named 'dronecode_sdk'
What next?
Joe

@joe-marrone Raise a new issue in DronecodeSDK-Python - this issue is closed. Normally I'd say use the support channels but this could well be a bug.


Add pan, zoom, selection toggle to toolbar

Button added to toggle between pan & wheel zoom, select to zoom and select region modes.

Is it possible to use icons and tooltips for the zoom buttons?

As in to change the cursor to different icons in the different modes and tooltips to explain the modifier key combinations?

Is it possible to use icons and tooltips for the zoom buttons?

As in to change the cursor to different icons in the different modes and tooltips to explain the modifier key combinations?

No, use icons instead of text for the buttons. Can change the mouse pointer in another PR.

Yes, there are react-icons here that we could use.

TbZoomInArea and TbZoomPan seem suitable


Add paths for macos

Since I will be in london for the next few days, I will be working on a
macbook instead of my day to day gaming laptop and thus I need this app
working on macos.
So here it is!
I have tested it and it works.

Awesome. I'm glad it's working on mac and I appreciate the commit.


[Emhancement] Remove a duplicate Filter definition

What type of PR is this：

[ ] bugfix
[ ] feature
[x] enhancement
[ ] refactor
[ ] others

Which issues of this PR fixes ：
Fixes #
Problem Summary(Required) ：

Filter already defined in https://github.com/StarRocks/starrocks/blob/main/be/src/column/vectorized_fwd.h#L100, so remove the duplicated definition in Column.
Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] I have added user document for my new feature or new function

run starrocks_be_unittest

Compile failed
 /root/starrocks/be/src/column/fixed_length_column_base.h:169:39: error: 'Filter' in 'class starrocks::vectorized::Column' does not name a type
22:57:53   169 |     size_t filter_range(const Column::Filter& filter, size_t from, size_t to) override;
22:57:53       |                                       ^~~~~~
22:57:53 /root/starrocks/be/src/column/fixed_length_column_base.h: In instantiation of 'class starrocks::vectorized::FixedLengthColumnBase<unsigned char>':
22:57:53 /root/starrocks/be/src/column/column.h:371:7:   required from 'class starrocks::vectorized::ColumnFactory<starrocks::vectorized::FixedLengthColumnBase<unsigned char>, starrocks::vectorized::FixedLengthColumn<unsigned char>, starrocks::vectorized::Column>'
22:57:53 /root/starrocks/be/src/column/fixed_length_column.h:8:7:   required from 'class starrocks::vectorized::FixedLengthColumn<unsigned char>'
22:57:53 /root/starrocks/be/src/column/nullable_column.h:10:44:   required from here
22:57:53 /root/starrocks/be/src/column/fixed_length_column_base.h:169:12: error: 'size_t starrocks::vectorized::FixedLengthColumnBase<T>::filter_range(const int&, size_t, size_t) [with T = unsigned char; size_t = long unsigned int]' marked 'override', but does not override

Fixed by #16815


Escape key should close the overlay

Esc key should close the currently opened overlay.

Implemented in website-search-integration.


WIP: Estree compatibility as plugin

Q
A

Bug fix?
no

Breaking change?
no

New feature?
yes

Deprecations?
no

Spec compliancy?
yes

Tests added/pass?
yes

Fixed tickets
Fixes #278

License
MIT

New plugin to enable estree compatible output.
A new test runner was added, which runs all tests which are throwing tests with the estree plugin. All tests that should throw in non-estree should still throw in estree mode.

[ ] Add compare test between babylon-estree and other parser (flow and/or espree)
[ ] https://github.com/estree/estree/issues/6

Current coverage is 96.94% (diff: 100%)

Merging #277 into master will decrease coverage by 0.52%

@@             master       #277   diff @@
==========================================
  Files            21         22     +1
  Lines          3996       4030    +34
  Methods         476        497    +21
  Messages          0          0
  Branches       1178       1175     -3
==========================================
+ Hits           3895       3907    +12
- Misses           44         69    +25
+ Partials         57         54     -3

Powered by Codecov. Last update cd9aaf2...bed1cde

This is great, thank you @danez! Any idea when this could be released? I'm happy to help getting this out sooner rather than later.

I'm currently working on getting ObjectMethod/ObjectProperty back to Property.
That should be already everything that is left, as far as I can see right now.
So I don't want to give any estimates, that I can't hold, but I think it should be ready next week.

That is great, thank you. I will wait then 😃

This is such a big deal!

Quick update, it already works as expected (with some minor things missing, see top) but I'm still working on doing cross-testing with flow and espree, which already revealed some issues.

I did not commit the comparison tests between babylon with estree and espree/flow as there are a lot of mismatches. Most of them are that espree/flow cannot parse the fixture (and yes all experimental stuff excluded). I need to go through this at some point and fix on our end or report to the other parsers.


main key not specified in package.json

Just wanted to mention that I had a little trouble using this library with spine recently b/c the "main" key isn't listed in the package.json file for d3. This would probably be the correct value?
{
"name": "d3",
"version": "2.3.2",
"description": "A small, free JavaScript library for manipulating documents based on data.",
"keywords": [
"dom",
"w3c",
"visualization",
"svg",
"animation",
"canvas"
],
"homepage": "http://mbostock.github.com/d3/",
"main": "d3.js",
"author": {
"name": "Mike Bostock",
"url": "http://bost.ocks.org/mike"
},
"repository": {
"type": "git",
"url": "http://github.com/mbostock/d3.git"
},
"dependencies": {
"uglify-js": "1.0.6",
"jsdom": "0.2.3",
"vows": "0.5.10"
}
}

Thanks for the report. I expect we'll be able to fix this. :)

lol, I thought it was something you all could handle. A freebie is nice every now and then, no?

Fixed in 2.5.0.


chore(LinearAlgebra/TensorProduct/Tower): remove superfluous porting notes

The porting note was introduced in the generalisation from def uncurry : (M →ₗ[R] N →ₗ[R] P) →ₗ[R] M ⊗[R] N →ₗ[R] P to def uncurry : (M →ₗ[A] N →ₗ[R] P) →ₗ[B] M ⊗[R] N →ₗ[A] P in #6035 by @eric-wieser.
Actually I'm unsure if there is still a use for these porting notes describing the ₓ in #align. If so, they could be categorised instead...

I don't see why these porting notes are useful and removing them is fine. I would appreciate a second opinion... so let's
maintainer merge
Thanks for doing all these small clean-ups around porting notes!

I could be wrong, but I believe these notes are not necessary. I'll just go ahead and merge...
bors r+

The idea was that this note might help someone using mathport to convert their project, but removing it now almost a year later is probably fine.
Generally I'd be inclined to just leave these and remove them alongside the aligns.


Individual files under additional files should support descriptions

Ex, a group of files which has one general description where one or more files within that group could use an additional annotation.
Gave an example "additional files" listing in Discord earlier:
Has 2 additional files:
  Sheet Music: Contributed by (user)!
    - vol5_plague_doctor.pdf (1.0 MB)
    - vol5_homestuck.pdf (1.1 MB)
    etc

If sheet music were contributed by various people, we would need to use separate file groups for each contributor to provide appropriate credits - we should be able to annotate per file to avoid this (and enable other uses of per-file annotations).

This is a soon-to-do for additional files, but not a blocker for release.