Timestamp and Snapshot meta field stores role name with extension

In the spec, the METAFILES object defined in section 4.4 states that the metadata path includes the suffix, such as "snapshot.json". rust-tuf, however is only storing "snapshot" in the generated files.

Unfortunately this is a little difficult because at the point in time where we are serializing/deserializing MetadataPath, we don't know what the target DataInterchange extension. The two approaches I can see to fix this are:

try to thread the interchange down to the merkle paths. I think little tricky to do while preserving the notion that the metadata is interchange independent.
just hardcode in ".json" in the right places. This ties us to a specific implementation, but since we don't support multiple interchanges yet, it might not be a big deal.

My preference is that we do the latter hardcoding approach, and circle around and do the proper interchange-independent approach later on down the road when we want to support multiple target formats. It'd be ugly, but this does unblock my migration from go-tuf. What do you think?


Tag latest not found in repository docker.io/library/hello-world

Upon installation, docker run hello-world always shows me x509: certificate signed by unknown authority..
So I fix this by doing the following:
ln -s /etc/pki/tls/certs/ca-bundle.crt /etc/docker/certs.d/docker.io
ln -s /etc/pki/tls/certs/ca-bundle.trust.crt /etc/docker/certs.d/docker.io

Running docker run hello-world or docker pull hello-world produce the following errors:
# docker run hello-world

Unable to find image 'hello-world:latest' locally
Trying to pull repository docker.io/library/hello-world ...
Pulling repository docker.io/library/hello-world
Tag latest not found in repository docker.io/library/hello-world
docker: Tag latest not found in repository docker.io/library/hello-world.
See '/usr/bin/docker-current run --help'.

If you get such an error after installation it is likely an indicator that your system certificates are not up to date. First ensure you system certificates are correct.
As for /etc/docker/certs.d, that directory holds certificates for private registries and each private registry will have a folder which can hold a .crt for roots. By default when no directory is there it will use the system certificates. Since docker.io is signed by a common authority your system certificates should be sufficient and you should not add a sub-directory in /etc/docker/certs.d.

Using the solution described here, I reset my OS certificates. I removed the links from /etc/docker/certs.d/, too.
Now, I get Error while pulling image: Get https://index.docker.io/v1/repositories/library/centos/images: x509: certificate signed by unknown authority

You might want to contact your os support since this is a problem with the os certificates. If you have cleared out /etc/docker/certs.d/ and still getting an error with index.docker.io then I suspect something else is going on.
Can you curl -v "https://index.docker.io/v1/_ping" from your machine and see what you get in the logs. This is what I see on my fedora 23 machine.
$ curl -v "https://index.docker.io/v1/_ping"
*   Trying <IP_ADDRESS>...
* Connected to index.docker.io (<IP_ADDRESS>) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
*   CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none
* ALPN/NPN, server did not agree to a protocol
* SSL connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
* Server certificate:
* 	subject: CN=*.docker.io,OU=Domain Control Validated - RapidSSL(R),OU=See www.rapidssl.com/resources/cps (c)15,OU=GT98568428
* 	start date: Mar 19 17:34:32 2015 GMT
* 	expire date: Apr 21 01:51:52 2018 GMT
* 	common name: *.docker.io
* 	issuer: CN=RapidSSL SHA256 CA - G3,O=GeoTrust Inc.,C=US

I get the following:
curl -v "https://index.docker.io/v1/_ping"
* About to connect() to index.docker.io port 443 (#0)
*   Trying <IP_ADDRESS>...
* Connected to index.docker.io (<IP_ADDRESS>) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
*   CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none
* SSL connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
* Server certificate:
*       subject: CN=*.docker.io,OU=Domain Control Validated - RapidSSL(R),OU=See www.rapidssl.com/resources/cps (c)15,OU=GT98568428
*       start date: Mar 19 17:34:32 2015 GMT
*       expire date: Apr 21 01:51:52 2018 GMT
*       common name: *.docker.io
*       issuer: CN=RapidSSL SHA256 CA - G3,O=GeoTrust Inc.,C=US
> GET /v1/_ping HTTP/1.1
> User-Agent: curl/7.29.0
> Host: index.docker.io
> Accept: */*
>
< HTTP/1.1 200 OK
< Server: nginx/1.6.2
< Date: Tue, 06 Sep 2016 18:09:14 GMT
< Content-Type: application/octet-stream
< Content-Length: 4
< X-Docker-Registry-Version: 0.6.3
< X-Docker-Registry-Standalone: False
< Content-Type: application/json
< Strict-Transport-Security: max-age=31536000
<
* Connection #0 to host index.docker.io left intact

Can you send the output of docker version and docker info

docker version:
Client:
 Version:         1.10.3
 API version:     1.22
 Package version: docker-common-1.10.3-46.el7.centos.10.x86_64
 Go version:      go1.6.3
 Git commit:      d381c64-unsupported
 Built:           Thu Aug  4 13:21:17 2016
 OS/Arch:         linux/amd64

Server:
 Version:         1.10.3
 API version:     1.22
 Package version: docker-common-1.10.3-46.el7.centos.10.x86_64
 Go version:      go1.6.3
 Git commit:      d381c64-unsupported
 Built:           Thu Aug  4 13:21:17 2016
 OS/Arch:         linux/amd64

docker info
Containers: 2
 Running: 0
 Paused: 0
 Stopped: 2
Images: 3
Server Version: 1.10.3
Storage Driver: devicemapper
 Pool Name: docker-253:1-41943262-pool
 Pool Blocksize: 65.54 kB
 Base Device Size: 10.74 GB
 Backing Filesystem: xfs
 Data file: /dev/loop0
 Metadata file: /dev/loop1
 Data Space Used: 578.9 MB
 Data Space Total: 107.4 GB
 Data Space Available: 4.306 GB
 Metadata Space Used: 1.061 MB
 Metadata Space Total: 2.147 GB
 Metadata Space Available: 2.146 GB
 Udev Sync Supported: true
 Deferred Removal Enabled: false
 Deferred Deletion Enabled: false
 Deferred Deleted Device Count: 0
 Data loop file: /var/lib/docker/devicemapper/devicemapper/data
 WARNING: Usage of loopback devices is strongly discouraged for production use. Either use `--storage-opt dm.thinpooldev` or use `--storage-opt dm.no_warn_on_loop_devices=true` to suppress this warning.
 Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
 Library Version: 1.02.107-RHEL7 (2016-06-09)
Execution Driver: native-0.2
Logging Driver: json-file
Plugins:
 Volume: local
 Network: bridge null host
Kernel Version: 3.10.0-327.28.3.el7.x86_64
Operating System: CentOS Linux 7 (Core)
OSType: linux
Architecture: x86_64
Number of Docker Hooks: 2
CPUs: 1
Total Memory: 1.907 GiB
(Removed Name)
ID: ML3Q:OW7R:SWJG:45JJ:V24R:IKXM:BHE3:PIAG:VMFN:WAGJ:A2SX:UIYE
Debug mode (server): true
 File Descriptors: 13
 Goroutines: 18
 System Time: 2016-09-09T00:59:42.119653865-04:00
 EventsListeners: 0
 Init SHA1: 8a3129d2a388166b88b65d72b6047ce9d4e86eef
 Init Path:
 Docker Root Dir: /var/lib/docker
WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled
Registries: docker.io (secure)

I'm judging from inactivity, that this issue was resolved and I'm closing it accordingly. Let me know if you still have a question.

Dear Community,
I am getting error when trying to pull docker images through kolla-ansible pull. Some images pulled from docker hub. I am stuck now please help to resolve the issue.
Please find below the error while kolla-ansible pull.
failed: [localhost] (item={'value': {u'haproxy': {u'placement_api_external': {u'mode': u'http', u'enabled': True, u'external': True, u'listen_port': u'8780', u'port': u'8780'}, u'placement_api': {u'mode': u'http', u'enabled': True, u'external': False, u'listen_port': u'8780', u'port': u'8780'}}, u'group': u'placement-api', u'dimensions': {}, u'volumes': [u'/etc/kolla//placement-api/:/var/lib/kolla/config_files/:ro', u'/etc/localtime:/etc/localtime:ro', u'kolla_logs:/var/log/kolla/', u''], u'container_name': u'placement_api', u'image': u'kolla/centos-source-placement-api:rocky', u'enabled': True}, 'key': u'placement-api'}) => {
"changed": false,
"invocation": {
"module_args": {
"action": "pull_image",
"api_version": "auto",
"auth_email": null,
"auth_password": null,
"auth_registry": null,
"auth_username": null,
"cap_add": [],
"command": null,
"detach": true,
"dimensions": {},
"environment": {
"KOLLA_CONFIG_STRATEGY": "COPY_ALWAYS"
},
"graceful_timeout": 10,
"image": "kolla/centos-source-placement-api:rocky",
"labels": {},
"name": null,
"privileged": false,
"remove_on_exit": true,
"restart_policy": "unless-stopped",
"restart_retries": 10,
"security_opt": [],
"state": "running",
"tls_cacert": null,
"tls_cert": null,
"tls_key": null,
"tls_verify": false,
"tty": false,
"volumes": null,
"volumes_from": null
}
},
"item": {
"key": "placement-api",
"value": {
"container_name": "placement_api",
"dimensions": {},
"enabled": true,
"group": "placement-api",
"haproxy": {
"placement_api": {
"enabled": true,
"external": false,
"listen_port": "8780",
"mode": "http",
"port": "8780"
},
"placement_api_external": {
"enabled": true,
"external": true,
"listen_port": "8780",
"mode": "http",
"port": "8780"
}
},
"image": "kolla/centos-source-placement-api:rocky",
"volumes": [
"/etc/kolla//placement-api/:/var/lib/kolla/config_files/:ro",
"/etc/localtime:/etc/localtime:ro",
"kolla_logs:/var/log/kolla/",
""
]
}
},
"msg": "Unknown error message: Tag rocky not found in repository docker.io/kolla/centos-source-placement-api"
}


Example doesn't work when using protobuf

I have tried quite a bit to get the example to work using eg HoneyComb - but without success.
Finally I have tracked it down to a question of whether the protocol is grpc or protobuf, when using a local Jaeger in Docker.
Using grpc works as expected, with the addition of the env var OTEL_TRACES_SAMPLER=always_on .
Call:
OTEL_TRACES_SAMPLER=always_on OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4317" OTEL_SERVICE_NAME=axum-otlp-4317 RUST_LOG="warn,axum_tracing_opentelemetry=info,otel=debug" cargo run

and traces appear.
Changing it to:
OTEL_TRACES_SAMPLER=always_on OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4318" OTEL_SERVICE_NAME=axum-otlp-4318 RUST_LOG="warn,axum_tracing_opentelemetry=info,otel=debug" cargo run

This complains about a missing client in the log.
Adding:
  opentelemetry-otlp = { version = "=0.11", features = [
    "reqwest-client",
    "reqwest-rustls",
    "http-proto",
    "tls",
  ] }

to Cargo.toml removes the missing client error, but still does not let any tracing through to Jaeger.
Any idea what I can do to debug this further?

Sorry, I miss your message. Did you find a solution ?

With OTLP over gRPC:
cd examples/axum-otlp; OTEL_TRACES_SAMPLER=always_on OTEL_EXPORTER_OTLP_TRACES_ENDPOINT="http://localhost:4317" OTEL_SERVICE_NAME=axum-otlp-4317 cargo run

I got 1 trace with 2 spans.
But with OTLP over HTTP

http://localhost:4318 I got 404 from jaeger
http://localhost:4318/v1/traces I got 1 trace with 1 span or 2 spans in jaeger (1.49)

cd examples/axum-otlp; OTEL_TRACES_SAMPLER=always_on OTEL_EXPORTER_OTLP_TRACES_ENDPOINT="http://localhost:4318/v1/traces" OTEL_SERVICE_NAME=axum-otlp-4318 cargo run


About the implementation of in the cumulative learning stage

I'm confused about the implementation of fusing features from two branches. In the combiner.py of your code, it seems that features from two branchs are mixed by concatenating. (Related codes are as follows)
        mixed_feature = 2 * torch.cat((l * feature_a, (1-l) * feature_b), dim=1)
        output = model(mixed_feature, classifier_flag=True)
        loss = l * criterion(output, label_a) + (1 - l) * criterion(output, label_b)

However, in the section 4.1 of your paper, it's said that the two features are integrated by element-wise addition.

Is the feature fusing conducted by concatenating or element-wise addition? Or am I misunderstanding anything?(Correct me if I'm wrong) Looking forward to your reply.

The article and code are consistent, and the two classifiers are combined into one classifier in the code.

How time flies. It was posted almost three years ago.


Sailor not installing on Linux Mint 17.1

Tried to install Sailor in Mint 17.1 Cinnamon 32bit. I was able to install luarocks after making a sudo apt-get update. But then when calling luarocks install sailor I ran into something different:
(...)
cp: cannot stat ‘valua.lua’: No such file or directory
Error: Failed installing dependency: http://luarocks.org/repositories/rocks/valua-0.3-1.src.rock - Failed copying valua.lua

As mentioned here, your luarocks version is 2.0.8, please update it before we narrow this down :)

@Etiene configure gave a lot more info: ~/luarocks $ ./configure
Lua interpreter found: /usr/bin/lua...
Lua version detected: 5.1
lua found in $PATH: /usr/bin
Checking Lua includes... lua.h found in /usr/include/lua5.1/lua.h (Debian/Ubuntu)
wget found at /usr/bin
md5sum found at /usr/bin
Configuring for system... Linux
Configuring for architecture... i686
Using unversioned rocks dir: /usr/local/lib/luarocks/rocks
Writing configuration...
Installation prefix: /usr/local
LuaRocks configuration directory: /usr/local/etc/luarocks
Using Lua from: /usr
Done configuring.

Type 'make build' and 'make install':
to install to /usr/local as usual.
Type 'make bootstrap':
to install LuaRocks in /usr/local as a rock.

Nothing unusual with that. Have you updated the version now?

Nope, after make install I get ~/luarocks $ luarocks
lua5.1: /usr/local/share/lua/5.1/luarocks/help.lua:14: attempt to call field 'this_program' (a nil value)
stack traceback:
/usr/local/share/lua/5.1/luarocks/help.lua:14: in main chunk
[C]: in function 'require'
/usr/bin/luarocks:10: in main chunk
[C]: ?

Before this I tried upgrading with ap-get but it would say that 2.0.8 was the latest release

apt-get version is very outdated and I think it won't let you do luarocks install luarocks to update it. Self update was introduced after that... So downloading and compiling it is. But I am not sure why you are unable to do make install, I have not got this error before, maybe you should try opening an issue within luarocks. Are you running it with sudo?

Yes, I used sudo.

Submit an issue to luarocks itself like I mentioned, then :)

Worked after following Hisham instructions at https://github.com/keplerproject/luarocks/issues/505 o/
Updating manifest for /usr/local/lib/luarocks/rocks
sailor 0.5-4 is now built and installed in /usr/local (license: MIT)


Changed MediaType from byte to int to handle extended vendor type

IETF is specifying MediaType codes beyond 255:
https://www.iana.org/assignments/core-parameters/core-parameters.xhtml
As such, the type of the field needs to change to something larger and able to handle the other protocols (such as the OMA-LWM2M vendor codes).

Thanks you @bocajim for the contribution; looks code.
Can you please add a short unit tests that encodes and decodes a message with a Content-Type bigger than 255? (just pick one of those OMA-LWM2M types)


Implementing support for Azure Storage

Added support for targeting Azure Storage services for persistent storage

@rguthriemsft @spinnaker/netflix-reviewers

forgot an importance piece: PTAL
@rguthriemsft @spinnaker/netflix-reviewers @duftler

LGTM

@spinnaker/netflix-reviewers @Duftler, any chance we can get this merged today?

@scotmoor can you rebase today and so this can get merged?

@rguthriemsft Done.

@duftler - just rebased. Would you mind merging?

removed extra lines.
@ewiseblatt @robzienert - I see there is a PR to remove the loadObjectVersion method. Do you have an ETA on when that will go in? One these two PRs is going to need to address that method in the Azure code. I'm fine with doing it in my PR if the other PR is going to be accepted soon but if not, I'd like to get this PR in and finished and then include those changes in the other PR.

@scotmoor Merged.


chore: remove repetitive words

Motivation

Solution

Hi!
Thank you for your contribution, however at this time we do not accept PRs related to grammar or spelling
I will roll these changes into a new PR
Sorry


Release 1.0.0-alpha.5

release alpha5

I'd suggest closing this branch since #465 achieves the same without the revert commit history


graph_executor.cc, Line 1086

  hey, i download the mxnet source code and build it all follow the instructions here  http://mxnet.readthedocs.io/en/latest/how_to/build.html.  i get the right libmxnet.dll and libmxnet.lib.
  but when i run the python example train_mnist.py, it always crash at graph_executor.cc, Line 1086, indicting that the iterator is not dereferenceable.

i changed this line to "if (wit != write_vars.end() && *wit != *rit) { ",  and then it works well.

@tqchen

This issue is closed due to lack of activity in the last 90 days. Feel free to reopen if this is still an active issue. Thanks!


Added option in Image Resizer to use the "High Quality" scaling

New option in the Image Resize function in the Editor that will use the "High Quality" scaling option while rendering.  This is arguably "high quality", but for some types of images this does produce more readable results and for other's it doesn't.  They are at least more anti-aliased. It defaults to off so the current behavior is preserved.
In the code, I found the creating a DrawingGroup is the only way to engage the SetBitmapScalingMode.  When I profiled it, it did take more ram, but then so does the "Fant" scaling mode so...
I am not in love with the term "Use high quality scaling." but didn't know a better term.
I only entered the string resource for English.  I can get Russian and Chinese from native speakers if you'd like, but I'll only do that if you like the PR.

Thanks.
What about using "Use a higher quality scaling." instead?
Btw, the ID of the text resource has a typo (qality).

By the way, Chinese and Russian translations are well maintained, meaning that the translators are quick to add translations to new texts.
So there's no need for you contact others to translate the sentence.

Also, have you though about adding a ComboBox instead?
Method:  🔽
Fant (higher quality)
Linear (lower quality)
Nearest neighbor (lower quality and faster)

Nicke,
Typo's make me feel old.  Guess I need to increase the text size in VS.
Good idea on the combo.  I'll change to a ComboBox and add all the options
with the default to Linear.
Nathan
On Thu, Aug 27, 2020 at 9:19 AM Nicke Manarin<EMAIL_ADDRESS>wrote:

Also, have you though about adding a ComboBox instead?
Method: 🔽
Fant (higher quality)
Linear (lower quality)
Nearest neighbor (lower quality and faster)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/NickeManarin/ScreenToGif/pull/704#issuecomment-681944181,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEJXPWEXEE75NUGEZNN637LSCZMPLANCNFSM4QJYN6XQ
.

Update to a ComboBox.
A few things:
The actual BitmapScalingMode enum has several enum items with the same value so I created the enum "ScalingMethod" in Util with only the options that should be exposed.
I used the Tag property for the ComboBox Scaling options:

I'm not sure how you feel about that.  I can easily create a class or data bind to some property in Editor class to hold these options if you would prefer.
I also move this into it's own group with a LabelSeparator because I think this makes it look a little better and more like the other tool.

Using Tag is fine and separating the option into another group was a nice move. :)
Thanks!


Validate total sum of psid-map fields

Currently, psid-map's fields: psid-length + shift + reserved-ports-bit-count > 16.
The total sum of these fields must be 16. reserved-ports-bit-count default value is zero, according to ietf-softwire (equivalent field is psid-offset):
    leaf psid-offset {
      type uint8 {
        range 0..16;
      }
      mandatory true;
      description
        "The number of offset bits. In Lightweight 4over6, the default
        value is 0 for assigning one contiguous port range. In MAP-E/T,
        the default value is 6, which excludes system ports by default
        and assigns distributed port ranges. If the this parameter is
        larger than 0, the value of offset MUST be greater than 0.";
    }

Fixed in https://github.com/Igalia/snabb/pull/795


Interactive Render Mode Crashes Gaffer when Moving Camera At All

See here:
https://github.com/GafferHQ/gaffer/issues/2790

There is already an issue in Gaffer's repository to track this.


server side tests

Intro
I am opening this issue to keep track of this pull request https://github.com/ForbesLindesay/matches-selector/pull/1 which should solve it.
Minimal example
I am testing a Root React component which contains a component that do a new Clipbloard.
The test is something like
import React from 'react'
import reactDom from 'react-dom/server'
import dom from 'cheerio'
import Root from 'components/Root'

const render = reactDom.renderToStaticMarkup

import test from 'tape'

const noop = () => {}

const props = {
  goal: { list: [] },
  isEditing: {
    goal: false,
    postback: false
  },
  onChange: {
    goal: {}
  },
  onClick: {
    goal: {}
  },
  onClickGoal: noop,
  onClickNew: noop,
  onMount: noop
}

test('Root component', (t) => {
  const el = (
    <Root
      {...props}
    />
  )

  const $ = dom.load(render(el))
  const $h1 = $('h1')

  t.equal($h1.html(), 'My app')

  t.end()
})

Expected behaviour
Run tests server side with no error.
Actual behaviour
When I run tests server side, since Clipboard uses ForbesLindesay/matches-selector, I get this error
var proto = Element.prototype;
            ^

ReferenceError: Element is not defined

Browsers affected
None

with angular universal

I think this is finally fixed in v1.5.14, could you please test it @fibo and @thebarada?

ok, thanks!
I opened an issue on a component using Clipboard.js (maybe you do not see it cause it is private), so it is in my todo list.

Awesome! I basically got rid of the dependency that caused that problem and rewrite that piece of code. Now I have control to change anything if needed.

here it the issue on the private repo


Telemetry does not contain required channels 'Time' and 'Speed'  for Azerbaijan Grand Prix - Qualifying

I get the following error when trying to compare best Q laps of LEC and HAM. Other sessions work correctly:
core        WARNING 	Ergast API lookup failed. The session is very recent and not yet available or does not exist.
core           INFO 	Loading laps for Azerbaijan Grand Prix - Qualifying [v2.1.5]
api            INFO 	Using cached data for timing_data
api            INFO 	Using cached data for timing_app_data
core           INFO 	Processing timing data...
api            INFO 	Using cached data for session_status_data
api            INFO 	Using cached data for track_status_data
api            INFO 	Using cached data for car_data
api            INFO 	Using cached data for position_data
core           INFO 	Loaded data for 20 drivers: ['77', '31', '10', '4', '9', '63', '99', '6', '33', '44', '7', '47', '3', '55', '22', '14', '16', '5', '18', '11']
Traceback (most recent call last):
File "/home/andreak/src/Python/F1data/F1data_compare2pilots_speeds_bestLap.py", line 25, in
ax.plot(lec.telemetry['Distance'], lec.telemetry['Speed'],
File "/usr/lib/python3.9/functools.py", line 969, in get
val = self.func(instance)
File "/home/andreak/.local/lib/python3.9/site-packages/fastf1/core.py", line 1772, in telemetry
return self.get_telemetry()
File "/home/andreak/.local/lib/python3.9/site-packages/fastf1/core.py", line 1793, in get_telemetry
car_data = car_data.add_distance().add_relative_distance().add_driver_ahead()
File "/home/andreak/.local/lib/python3.9/site-packages/fastf1/core.py", line 797, in add_driver_ahead
drv_ahead, dist = self.calculate_driver_ahead()
File "/home/andreak/.local/lib/python3.9/site-packages/fastf1/core.py", line 889, in calculate_driver_ahead
drv_tel = self.session.car_data[drv].slice_by_lap(relevant_laps).add_distance() \
File "/home/andreak/.local/lib/python3.9/site-packages/fastf1/core.py", line 735, in add_distance
return self.join(pd.DataFrame({'Distance': self.integrate_distance()}), how='outer')
File "/home/andreak/.local/lib/python3.9/site-packages/fastf1/core.py", line 827, in integrate_distance
ds = self.calculate_differential_distance()
File "/home/andreak/.local/lib/python3.9/site-packages/fastf1/core.py", line 809, in calculate_differential_distance
raise ValueError("Telemetry does not contain required channels 'Time' and 'Speed'.")
ValueError: Telemetry does not contain required channels 'Time' and 'Speed'.

This is a slightly weird bug caused by a combination of things.
You are accessing the lap.telemetry property to get the car's speed and distance. lap.telemetry in the background merges car data and position data  and adds all computed data channels (like 'Distance' for example). The problem is, that it also adds 'DistanceToDriverAhead'. To calculate this, telemetry of all drivers needs to be evaluated. Stroll crashing on his first and only lap causes some bug here.
To get the data you want, you should do the following:
lec_tel = lec.get_car_data()
lec_tel = lec_tel.add_distance()

ax.plot(lec_tel['Distance'], lec_tel['Speed'])

(I'm guessing that's about what you want to do?)
You should use this method all the time anyways because it will give you more accurate data. The merging of car data and position data done in .telemetry requires interpolation which reduces the accuracy slightly. If you don't want to use the position data (x,y coordinates of the car on track), you should just use .get_car_data()
I'll look into fixing this properly, but it probably won't be soon.

I've done as you suggested and it works perfectly.Thanks!!!

Hi there. I'm doing some work that requires the [X, Y] coordinates of the position channel alongside the telemetry data from the car channel. Normally I just use the .get.telemetry() function because it is merged already however it is throwing up an error for the Azerbaijan GP (as discussed here already). Is there a workaround I can use or will I need to wait for you to do the fixes you mentioned? Thanks in advance for your time to respond and thank you in general for your work on this package.


Research: Exporting GlobalPost Stories

GBH made a deal with the previous owner of GlobalPost to get the domain and a copy of the archived content. Therefore, we will need to provide the new GP folks an export of GP content. They use Wordpress. We have all the GP stories in Wordpress now.
Options discussed thus far:
Option A:
Use the default WP exporter. The trick is that the exporter doesn't allow you to export against custom taxonomy like Programs. Only specific categories or authors. So we either need to get a list of all authors and export those OR export all stories, and then write and run a script against the XML file to remove all non-GP stories.
Option B:
Pay $99 for the WP All Export plugin. I think would allow us to get exactly what we need to them quickly. We can filter against content types
Option C:
Create a multi-dev environment where we use SQL queries to cut out any Non-GP stories, then export all.

There may be other options, open to all of them

Tying a bow on this. We went with Option B, got the export working and Kai is sending it off to the Chatter (GP) folks today.
CLOSING


Synthesis failed for oslogin

Hello! Autosynth couldn't regenerate oslogin. :broken_heart:
Here's the output from running synth.py:
\n]{0,})\\n\\s{5}\\*/\\n\\s{4}protected \\$' in src/V1beta/ImportSshPublicKeyResponse.php.
2021-01-28 09:55:18,081 synthtool [INFO] > Replaced 'Generated from protobuf field ([^\\n]{0,})\\n\\s{5}\\*/\\n\\s{4}protected \\$' in src/V1beta/DeleteSshPublicKeyRequest.php.
INFO:synthtool:Replaced 'Generated from protobuf field ([^\\n]{0,})\\n\\s{5}\\*/\\n\\s{4}protected \\$' in src/V1beta/DeleteSshPublicKeyRequest.php.
2021-01-28 09:55:18,081 synthtool [INFO] > Replaced 'Generated from protobuf field ([^\\n]{0,})\\n\\s{5}\\*/\\n\\s{4}protected \\$' in src/V1beta/LoginProfile.php.
INFO:synthtool:Replaced 'Generated from protobuf field ([^\\n]{0,})\\n\\s{5}\\*/\\n\\s{4}protected \\$' in src/V1beta/LoginProfile.php.
2021-01-28 09:55:18,082 synthtool [INFO] > Replaced 'Generated from protobuf field ([^\\n]{0,})\\n\\s{5}\\*/\\n\\s{4}protected \\$' in src/V1beta/GetLoginProfileRequest.php.
INFO:synthtool:Replaced 'Generated from protobuf field ([^\\n]{0,})\\n\\s{5}\\*/\\n\\s{4}protected \\$' in src/V1beta/GetLoginProfileRequest.php.
2021-01-28 09:55:18,082 synthtool [INFO] > Replaced 'Generated from protobuf field ([^\\n]{0,})\\n\\s{5}\\*/\\n\\s{4}protected \\$' in src/V1beta/ImportSshPublicKeyRequest.php.
INFO:synthtool:Replaced 'Generated from protobuf field ([^\\n]{0,})\\n\\s{5}\\*/\\n\\s{4}protected \\$' in src/V1beta/ImportSshPublicKeyRequest.php.
2021-01-28 09:55:18,082 synthtool [INFO] > Replaced 'Generated from protobuf field ([^\\n]{0,})\\n\\s{5}\\*/\\n\\s{4}protected \\$' in src/V1beta/GetSshPublicKeyRequest.php.
INFO:synthtool:Replaced 'Generated from protobuf field ([^\\n]{0,})\\n\\s{5}\\*/\\n\\s{4}protected \\$' in src/V1beta/GetSshPublicKeyRequest.php.
2021-01-28 09:55:18,082 synthtool [INFO] > Replaced 'Generated from protobuf field ([^\\n]{0,})\\n\\s{5}\\*/\\n\\s{4}protected \\$' in src/V1beta/UpdateSshPublicKeyRequest.php.
INFO:synthtool:Replaced 'Generated from protobuf field ([^\\n]{0,})\\n\\s{5}\\*/\\n\\s{4}protected \\$' in src/V1beta/UpdateSshPublicKeyRequest.php.
2021-01-28 09:55:18,083 synthtool [INFO] > Replaced 'Generated from protobuf field ([^\\n]{0,})\\n\\s{5}\\*/\\n\\s{4}protected \\$' in src/V1/DeletePosixAccountRequest.php.
INFO:synthtool:Replaced 'Generated from protobuf field ([^\\n]{0,})\\n\\s{5}\\*/\\n\\s{4}protected \\$' in src/V1/DeletePosixAccountRequest.php.
2021-01-28 09:55:18,083 synthtool [INFO] > Replaced 'Generated from protobuf field ([^\\n]{0,})\\n\\s{5}\\*/\\n\\s{4}protected \\$' in src/V1/ImportSshPublicKeyResponse.php.
INFO:synthtool:Replaced 'Generated from protobuf field ([^\\n]{0,})\\n\\s{5}\\*/\\n\\s{4}protected \\$' in src/V1/ImportSshPublicKeyResponse.php.
2021-01-28 09:55:18,084 synthtool [INFO] > Replaced 'Generated from protobuf field ([^\\n]{0,})\\n\\s{5}\\*/\\n\\s{4}protected \\$' in src/V1/DeleteSshPublicKeyRequest.php.
INFO:synthtool:Replaced 'Generated from protobuf field ([^\\n]{0,})\\n\\s{5}\\*/\\n\\s{4}protected \\$' in src/V1/DeleteSshPublicKeyRequest.php.
2021-01-28 09:55:18,084 synthtool [INFO] > Replaced 'Generated from protobuf field ([^\\n]{0,})\\n\\s{5}\\*/\\n\\s{4}protected \\$' in src/V1/LoginProfile.php.
INFO:synthtool:Replaced 'Generated from protobuf field ([^\\n]{0,})\\n\\s{5}\\*/\\n\\s{4}protected \\$' in src/V1/LoginProfile.php.
2021-01-28 09:55:18,084 synthtool [INFO] > Replaced 'Generated from protobuf field ([^\\n]{0,})\\n\\s{5}\\*/\\n\\s{4}protected \\$' in src/V1/GetLoginProfileRequest.php.
INFO:synthtool:Replaced 'Generated from protobuf field ([^\\n]{0,})\\n\\s{5}\\*/\\n\\s{4}protected \\$' in src/V1/GetLoginProfileRequest.php.
2021-01-28 09:55:18,084 synthtool [INFO] > Replaced 'Generated from protobuf field ([^\\n]{0,})\\n\\s{5}\\*/\\n\\s{4}protected \\$' in src/V1/ImportSshPublicKeyRequest.php.
INFO:synthtool:Replaced 'Generated from protobuf field ([^\\n]{0,})\\n\\s{5}\\*/\\n\\s{4}protected \\$' in src/V1/ImportSshPublicKeyRequest.php.
2021-01-28 09:55:18,085 synthtool [INFO] > Replaced 'Generated from protobuf field ([^\\n]{0,})\\n\\s{5}\\*/\\n\\s{4}protected \\$' in src/V1/GetSshPublicKeyRequest.php.
INFO:synthtool:Replaced 'Generated from protobuf field ([^\\n]{0,})\\n\\s{5}\\*/\\n\\s{4}protected \\$' in src/V1/GetSshPublicKeyRequest.php.
2021-01-28 09:55:18,085 synthtool [INFO] > Replaced 'Generated from protobuf field ([^\\n]{0,})\\n\\s{5}\\*/\\n\\s{4}protected \\$' in src/V1/UpdateSshPublicKeyRequest.php.
INFO:synthtool:Replaced 'Generated from protobuf field ([^\\n]{0,})\\n\\s{5}\\*/\\n\\s{4}protected \\$' in src/V1/UpdateSshPublicKeyRequest.php.
2021-01-28 09:55:18,086 synthtool [INFO] > Replaced 'Generated from protobuf field ([^\\n]{0,})\\n\\s{5}\\*/\\n\\s{4}protected \\$' in src/Common/PosixAccount.php.
INFO:synthtool:Replaced 'Generated from protobuf field ([^\\n]{0,})\\n\\s{5}\\*/\\n\\s{4}protected \\$' in src/Common/PosixAccount.php.
2021-01-28 09:55:18,086 synthtool [INFO] > Replaced 'Generated from protobuf field ([^\\n]{0,})\\n\\s{5}\\*/\\n\\s{4}protected \\$' in src/Common/SshPublicKey.php.
INFO:synthtool:Replaced 'Generated from protobuf field ([^\\n]{0,})\\n\\s{5}\\*/\\n\\s{4}protected \\$' in src/Common/SshPublicKey.php.
2021-01-28 09:55:18,090 synthtool [WARNING] > No replacements made in ['src/**/V*/**/*.php', 'src/Common/**/*.php'] for pattern final class, maybe replacement is no longer needed?
WARNING:synthtool:No replacements made in ['src/**/V*/**/*.php', 'src/Common/**/*.php'] for pattern final class, maybe replacement is no longer needed?
2021-01-28 09:55:18,094 synthtool [WARNING] > No replacements made in ['src/**/V*/**/*.php', 'src/Common/**/*.php'] for pattern public function ([s|g]\w{3,})Unwrapped, maybe replacement is no longer needed?
WARNING:synthtool:No replacements made in ['src/**/V*/**/*.php', 'src/Common/**/*.php'] for pattern public function ([s|g]\w{3,})Unwrapped, maybe replacement is no longer needed?
2021-01-28 09:55:18,152 synthtool [WARNING] > No replacements made in src/**/V*/**/*.php for pattern (.{0,})\]\((/.{0,})\), maybe replacement is no longer needed?
WARNING:synthtool:No replacements made in src/**/V*/**/*.php for pattern (.{0,})\]\((/.{0,})\), maybe replacement is no longer needed?
2021-01-28 09:55:18,153 synthtool [DEBUG] > Wrote metadata to synth.metadata.
DEBUG:synthtool:Wrote metadata to synth.metadata.
2021-01-28 09:55:18,243 autosynth [INFO] > Changed files:
2021-01-28 09:55:18,243 autosynth [INFO] > M OsLogin/synth.metadata
2021-01-28 09:55:18,243 autosynth [DEBUG] > Running: git log 93cf8bda3a07bed78a0232abf0a652fa07b3a449 -1 --no-decorate --pretty=%s
2021-01-28 09:55:18,247 autosynth [DEBUG] > Running: git log 93cf8bda3a07bed78a0232abf0a652fa07b3a449 -1 --no-decorate --pretty=%b%n%nSource-Author: %an <%ae>%nSource-Date: %ad
2021-01-28 09:55:18,251 autosynth [DEBUG] > Running: git add -A
2021-01-28 09:55:18,293 autosynth [DEBUG] > Running: git status --porcelain
2021-01-28 09:55:18,338 autosynth [DEBUG] > Running: git commit -m ci: add project id for Datastore tests

Source-Author: Alexey Andreev<EMAIL_ADDRESS>Source-Date: Tue Jan 19 20:46:24 2021 +0300
Source-Repo: googleapis/google-cloud-php
Source-Sha: 93cf8bda3a07bed78a0232abf0a652fa07b3a449
Source-Link: https://github.com/googleapis/google-cloud-php/commit/93cf8bda3a07bed78a0232abf0a652fa07b3a449
[autosynth-oslogin-0 19b46b4d] ci: add project id for Datastore tests
 1 file changed, 1 insertion(+), 1 deletion(-)
2021-01-28 09:55:18,366 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 19b46b4d ci: add project id for Datastore tests
2021-01-28 09:55:18,409 autosynth [DEBUG] > Running: git checkout autosynth-oslogin
Switched to branch 'autosynth-oslogin'
2021-01-28 09:55:18,436 autosynth [DEBUG] > Running: git diff --binary autosynth-oslogin-0..autosynth-oslogin-302 -- . :(exclude)synth.metadata
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 354, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 189, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 334, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 104, in synthesize_loop
    return synthesize_loop_single_pr(toolbox, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 126, in synthesize_loop_single_pr
    synthesize_inner_loop(toolbox, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 152, in synthesize_inner_loop
    synthesize_range(toolbox, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 173, in synthesize_range
    toolbox.sub_branch(old), toolbox.sub_branch(young)
  File "/tmpfs/src/github/synthtool/autosynth/synth_toolbox.py", line 193, in git_branches_differ
    return git_branches_differ(branch_a, branch_b, self._metadata_path)
  File "/tmpfs/src/github/synthtool/autosynth/synth_toolbox.py", line 342, in git_branches_differ
    proc = executor.run(diff_cmd, stdout=subprocess.PIPE, universal_newlines=True)
  File "/tmpfs/src/github/synthtool/autosynth/executor.py", line 23, in run
    return subprocess.run(command, **args)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 425, in run
    stdout, stderr = process.communicate(input, timeout=timeout)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 850, in communicate
    stdout = self.stdout.read()
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/codecs.py", line 321, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x9b in position 8938: invalid start byte

Google internal developers can see the full log here.

Autosynth passed, closing! :green_heart:

Autosynth passed, closing! :green_heart:


fix aws/aws-sdk-cpp#702 expose tts buffer size

I used a simple constexpr as that is supported in C++11 compilers and most importantly the value can be used as a template argument. Making it a static const in a header file would have restricted it to only runtime usage. I need compile time. constexpr provides it also at compile-time for C++11 template goodness.

Will merge it. Thanks

Can you do me a favor, rebase and fix the typo in the commit message.

There's only one line of commit message. I don't see a typo in it. Please assist.
fix aws/aws-sdk-cpp#702 expose tts buffer size

I don't see a typo. The text up to 'expose' is Github specific so that the commit, issue, and PR are linked together. "tts" is short for text-to-speech.
???🤔

haha tts was little confusing to me. Do you mind spelling it out in the commit message?

adjusted it

So, some bad news, when I merged this PR, it didn't build on one of the compilers we still support VS2013. They don't support constexpr. So, unfortunately, I have to revert it using static const size_t

Should be a fairly easy fix to enable. Your SDK codebase already uses the perfect macro to detect and specially handle compiler versions. For example...
https://github.com/aws/aws-sdk-cpp/blob/bacce5952061503537fca2ee96bb5cb4f2e41a74/aws-cpp-sdk-transfer/source/transfer/TransferManager.cpp#L112
That same define can be used to detect VS2013. _MSC_VER == 1800 for VS2013.
I can adjust the code such that if that macro is present (msft compiler) and its value is less than 1900 (its value for VS2015), then it should use static const. Otherwise, it can use constexpr.
Would your team accept compiler handling like that?

We try to limit our use of #ifdef macros as much as we can.
In this case you, you can still use a const size_t as a template parameter. https://godbolt.org/g/BQsoQa

Mmm, undesired merge?
I have approach number 3 ready for a spin. Basically changing constexpr to static const while keeping it in the header file so it is accessible to others.
What should I do?
Thanks for the 411 on using static const's in templates. I would not have expected the compiler to recognize a runtime during compile time given the (remote) possibility of altering the constant at runtime.

 You don’t have to update the PR.


handle filename suffixes in different cases

Fail to load a csv file using load_table() when the suffix is upper case, e.g. "demo.CSV" should be correctly identified as a "csv" file.

I'm reserving this for a SRI student as a good example.

@GavinHuttley Could you please assign this issue to me?


complete feat/stack_data_structure

Closes #58
🛠 Implementation of MemoryVec in Cairo
Description
A MemoryVec structure has been implemented in Cairo to efficiently manage in-memory vectors. This structure uses a Felt252Dict with Nullable elements to store data and provides methods that replicate typical vector functionalities, such as adding, accessing, and removing elements.
Key Features

Initialization: new method to create an empty vector.
Access:

get: Returns an optional element by index.
at: Returns an element directly; throws an error if the index is out of bounds.

Modification:

push: Adds an element to the end of the vector.
set: Updates the value at a specific position.
pop: Removes and returns the last element.
peek: Returns the last element without removing it.

Properties:

len: Returns the current length of the vector.
is_empty: Checks if the vector is empty.

Destruction: Destruct implementation ensures proper resource release by "squashing" the data.

Use of Traits
The implementation uses the following traits:

MemoryVecTrait: Defines the main operations for the vector.
NullableTrait: Handles null values within the dictionary.
WrappingAdd: Ensures safe length increments without overflow.

@KevinMB0220 can you add a small example using this data structure? It's to validate the functionality and provide a brief context for new devs who want to use it.

@KevinMB0220 can you add a small example using this data structure? It's to validate the functionality and provide a brief context for new devs who want to use it.

Ready

@KevinMB0220 can you add a small example using this data structure? It's to validate the functionality and provide a brief context for new devs who want to use it.

ready

Some files need an extra line at the end, can you please add it?

Ready


Updating includes will not trigger recompile

Because I'm doing such a rudimentary check for template changes to trigger recompile, we can't tell if a specified @included view has changed since the last compile. This means that when cache is enabled, your view won't change if you edit what it includes, which is a problem.
Easiest fix is to add a recursive check to the recompilation step to see if includes have been modified since the last cache of the view.

Completed with commit d7c49238f467ab14665f981d9c1dd53df69b992d


Outdated content

At the rate Blazor has changed over the last few previews, much of the content is out dated.
I've noticed community members warning newcomers not to visit the site.
What are the future plans for learn-blazor? It's constantly listed in search results, but fairly unreliable content at this point.

I have to apologize that I don't have more time providing updates to learn-blazor. I have been doing Blazor work continously (e.g. this presentation and sample) but I had not enough time to keep topics up to date. Additionally, I don't see much value given that Microsoft has Blazor docs available. When I created learn-blazor, there was no MS docs on that project.
Today, I have replaced many pages of learn-blazor with links to chapters in Microsoft docs and added statements that Microsoft docs are the preferred source of information about Blazor.

We all get busy. There's no need to apologise. The project started with the best of intentions.
I wanted to share what I was experiencing with the community so you could make changes as you see fit.
Best wishes!


Improve loading state for code block

Problem solved
Short description of the bug fixed or feature added

PR-Codex overview
This PR primarily focuses on refactoring the CodeClient and related components to improve code readability, enhance functionality, and streamline the user interface for code display and copying.
Detailed summary

Removed unnecessary props and loading states from CodeClient.
Introduced CodeBlockContainer for handling code display and copy functionality.
Simplified PlainTextCodeBlock to use CodeBlockContainer.
Updated various components to utilize the new structure, enhancing consistency.
Cleaned up the code by removing redundant imports and code blocks.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

#5520  👈 (View in Graphite)
main

This stack of pull requests is managed by Graphite. Learn more about stacking.


Increment versions for networkanalytics releases

Increment package versions for networkanalytics releases

API change check
API changes are not detected in this pull request.


switch between normal and geeky styles!

Styles are now in external style sheets
Created a "geeky" style sheet
User can click button to toggle between geeky vs. normie styles

I know this isn't one of the current issues, but I love the site and wanted to contribute something fun to it. And, we all know programmers/geeks prefer dark theme websites :)

Hey @sjconnor, sorry to say that your PR was not addressed. We appreciate your work but this PR can't be merged 😞.


Update Rancher docs for new Resources menu

In : 2.3
The project level main menu has changed in 2.3.  We added Resources menu that contains:
Workloads
HPA
Pipeline
Secrets
Config

Workloads now only contain: Workloads, Load Balancing, Service Discovery & Volumes

Secrets now contain: Secrets, Certificates, Registry Credentials

From the main navigation bar, choose **Resources**. In versions prior to v2.3.0, choose **Workloads** on the main navigation bar.


Close picker when clicking off input

Do you recommend a way to do this with your API? As of right now it only toggles when clicking the input field.

It does this by default at the moment as you can see in the webpackbin demo.
You must have some conflicting event listeners or markup.


Feature: Check permissions on Projection queries / filters

I’m going to work on adding permission support to projections.  Currently, I’m thinking there are three possible locations on where to add permissions support, at the query level, at the filter lever, or at the projection level.  Any preference?  It’s basically just a boolean value called RespectPermissions or maybe CheckPermissions…
My first thought is to put it at the Query level and edit the ProjectionManager.cs to check permissions when it gets the content items.  Content Items are pulled using
            foreach(var contentQuery in GetContentQueries(queryRecord, queryRecord.SortCriteria.OrderBy(sc => sc.Position))) {
                contentItems.AddRange(contentQuery.Slice(skip, count));
            }

So perhaps adding the boolean at the Filter level may be the best option here (for customizability)?
The other question is, this would require adding a reference to Orchard.Roles and the appropriate dependency in Module.txt.  My goal is to make this not be a breaking change, obviously... so is this even an option?  On upgrading, will it enable the dependency if required?  Perhaps adding this as a feature, where the feature requires the dependency, and then the site admin can enable the feature - triggering the dependency....Unfortunately, my experience with creating features within modules is minimal (as in 0) so this would be a good way to learn how to do that, but will also take some time and possibly lead to less than optimal code.
Is this something that the Orchard community would even entertain?

https://github.com/Jetski5822/Orchard.Projection.RoleSecurity :)

omg I want to cry

@Jetski5822 any reason why this is not included in Orchard by default?

@Jetski5822 just tried out your module and it doesn't seem to filter projection content items based on the permissions assigned to the CI.  I've re-plublished all content items but the projection still displays every content item, event the protected ones.

Hmmm... I wrote it for version 1.7 a while ago... Might need some tweaking.

I tested with 1.9.x after changing the framework to 4.5.1...but that was the only tweaking I did.

Heres the branch with the module added to an otherwise vanilla 1.9.x https://github.com/dcinzona/Orchard/tree/Module/Orchard.Projections.RoleSecurity

Cool. I will check when I'm home, just on the train!
-----Original Message-----
From: "Gustavo Tandeciarz"<EMAIL_ADDRESS>Sent: 26/08/2015 18:15
To: "OrchardCMS/Orchard"<EMAIL_ADDRESS>Cc: "Nicholas Mayne"<EMAIL_ADDRESS>Subject: Re: [Orchard] Feature: Check permissions on Projection queries /filters (#5695)
Heres the branch with the module added to an otherwise vanilla 1.9.x https://github.com/dcinzona/Orchard/tree/Module/Orchard.Projections.RoleSecurity
—
Reply to this email directly or view it on GitHub.

Sounds good! Thanks!

push some updates. Did you and the filter to your projection?

Will try again - didn't realize it was creating a new filter to add to the projection either.  I'll do that as well.

Yup its an opt in on the projection
On Wed, Aug 26, 2015 at 8:10 PM, Gustavo Tandeciarz <
<EMAIL_ADDRESS>wrote:

Will try again - didn't realize it was creating a new filter to add to the
projection either. I'll do that as well.
—
Reply to this email directly or view it on GitHub
https://github.com/OrchardCMS/Orchard/issues/5695#issuecomment-135142818
.

Running the updated code now

Random question... why wouldn't the migration be running?  I added this:
        public int UpdateFrom2() {

            SchemaBuilder.CreateTable("RolesSecuritiesRecord",
                table => table
                    .Column<int>("Id", column => column.PrimaryKey().Identity())
                    .Column<int>("Role_id")
                    .Column<int>("RoleSecurity_id")
                    .Column<int>("RoleRecord_Id")
                    .Column<int>("RoleSecurityRecord_id")
                );
            return 3;
        }

because of the table rename since I didn't want to have to reset the entire test DB, but the migration never runs, even on disabling or re-enabling the

doesnt it need to be UpdateFrom1 ? and return 2?

HA...sorry, clearly I'm very tired...

Hm..., so it's definitely doing something, just not what is expected.
So, I published the projection again after adding the filter.  I have pages with mixed permissions, some are not protected at all, some allow authenticated, some allow specific roles, etc.
When authenticated as Admin, I see all items in the projection.
When not authenticated or authenticated as another user with a role that has access to some of the pages, I see no items.
Here's my pages export:
<!--Exported from Orchard-->
<Orchard>
  <Recipe>
    <Name>Generated by Orchard.ImportExport</Name>
    <Author>admin</Author>
    <ExportUtc>2015-08-26T19:37:16.5857035Z</ExportUtc>
  </Recipe>
  <Metadata>
    <Types>
      <Page ContentTypeSettings.Creatable="True" ContentTypeSettings.Listable="True" ContentTypeSettings.Securable="True" ContentTypeSettings.Draftable="True" TypeIndexing.Indexes="Search" ContentPermissionsTypeSettings.SecurableContentItems="False" DisplayName="Page">
        <CommonPart DateEditorSettings.ShowDateEditor="True" OwnerEditorSettings.ShowOwnerEditor="True" />
        <PublishLaterPart />
        <TitlePart />
        <AutoroutePart AutorouteSettings.AllowCustomPattern="True" AutorouteSettings.AutomaticAdjustmentOnEdit="False" AutorouteSettings.PatternDefinitions="[{"Name":"Title","Pattern":"{Content.Slug}","Description":"my-page"}]" AutorouteSettings.DefaultPatternIndex="0" AutorouteSettings.PerItemConfiguration="False" />
        <LayoutPart LayoutTypePartSettings.IsTemplate="False" LayoutTypePartSettings.DefaultLayoutData="{"elements":[{"typeName":"Orchard.Layouts.Elements.Canvas","data":"","exportableData":"","index":0,"elements":[{"typeName":"Orchard.Layouts.Elements.Grid","data":"","exportableData":"","index":0,"elements":[{"typeName":"Orchard.Layouts.Elements.Row","data":"","exportableData":"","index":0,"elements":[{"typeName":"Orchard.Layouts.Elements.Column","data":"","exportableData":"","index":0,"elements":[],"isTemplated":false,"htmlId":null,"htmlClass":null,"htmlStyle":null}],"isTemplated":false,"htmlId":null,"htmlClass":null,"htmlStyle":null}],"isTemplated":false,"htmlId":null,"htmlClass":null,"htmlStyle":null}],"isTemplated":false,"htmlId":null,"htmlClass":null,"htmlStyle":null}]}" />
        <TagsPart />
        <LocalizationPart />
        <MenuPart />
        <ContentPermissionsPart ContentPermissionsPartSettings.View="Administrator,Author,Contributor,Editor,Moderator,TestRole" ContentPermissionsPartSettings.ViewOwn="Administrator,Anonymous,Authenticated,Author,Contributor,Editor,Moderator,TestRole" ContentPermissionsPartSettings.Publish="Administrator,Editor" ContentPermissionsPartSettings.PublishOwn="Administrator,Author,Editor" ContentPermissionsPartSettings.Edit="Administrator,Editor" ContentPermissionsPartSettings.EditOwn="Administrator,Author,Contributor,Editor" ContentPermissionsPartSettings.Delete="Administrator,Editor" ContentPermissionsPartSettings.DeleteOwn="Administrator,Author,Editor" ContentPermissionsPartSettings.Preview="Administrator,Editor" ContentPermissionsPartSettings.PreviewOwn="Administrator,Author,Contributor,Editor" ContentPermissionsPartSettings.DisplayedRoles="Administrator,Anonymous,Authenticated,Author,Contributor,Editor,Moderator,TestRole" />
      </Page>
    </Types>
    <Parts>
      <CommonPart ContentPartSettings.Attachable="True" ContentPartSettings.Description="Provides common information about a content item, such as Owner, Date Created, Date Published and Date Modified." ContentPartLayoutSettings.Placeable="True" />
      <PublishLaterPart ContentPartSettings.Attachable="True" ContentPartSettings.Description="Adds the ability to delay the publication of a content item to a later date and time." />
      <TitlePart ContentPartSettings.Attachable="True" ContentPartSettings.Description="Provides a Title for your content item." ContentPartLayoutSettings.Placeable="True" />
      <AutoroutePart ContentPartSettings.Attachable="True" ContentPartSettings.Description="Adds advanced url configuration options to your content type to completely customize the url pattern for a content item." />
      <LayoutPart ContentPartSettings.Attachable="True" ContentPartSettings.Description="Adds a layout designer to your content type." />
      <TagsPart ContentPartLayoutSettings.Placeable="True" ContentPartSettings.Attachable="True" ContentPartSettings.Description="Allows to describe your content using non-hierarchical keywords." />
      <LocalizationPart />
      <MenuPart ContentPartSettings.Attachable="True" ContentPartSettings.Description="Provides an easy way to create a ContentMenuItem from the content editor." />
      <ContentPermissionsPart ContentPartSettings.Attachable="True" ContentPartSettings.Description="Provides access control configuration on a per content item level." />
    </Parts>
  </Metadata>
  <Data>
    <Page Id="/alias=" Status="Published">
      <CommonPart Owner="/User.UserName=admin" CreatedUtc="2015-08-26T14:27:25.4370213Z" PublishedUtc="2015-08-26T14:27:25.4370213Z" ModifiedUtc="2015-08-26T14:27:25.2741953Z" />
      <AutoroutePart Alias="/" CustomPattern="/" UseCustomPattern="true" />
      <TitlePart Title="Welcome to Orchard!"


Anchors having id are treated as different urls

Consider following URLs.
            "https://www.xyz.org/c-programming-language/#DataTypes",
            "https://www.xyz.org/c-programming-language/#StorageClasses",
            "https://www.xyz.org/c-programming-language/#InputOutput",

This kind of URLs should be treated as a single URL and visited only once.

Implemented.


cannot build OpenBLAS-0.2.6 with TARGET=GENERIC

Hi
I need to build openblas version 0.2.6 without any cpu optimization so it can run in any intel or amd x86_64 cpu. I tried to compile it with "TARGET=GENERIC" and "TARGET=SSE_GENERIC" but I always get this error
sgemm_kernel.o: No such file or directory

I have read that this problem is fixed in latest release but I need to use version 0.2.6. Is there any way I can compile a generic version of openblas-0.2.6?
thanks

@pescobar , I think you need to back port some codes to 0.2.6.

Hi @xianyi thanks for your reply
I think I don´t have knowledge enough to do such a modification. Is there any patch available or any documentation about the required commits which need to be backported?
In case there is no available patch could you recommend me which is the "most generic" target which I can use in version 0.2.6 without requiring code changes?
thanks

Why do you focus on 0.2.6 version?
I think you can use NEHALEM target. make TARGET=NEHALEM.

I would like to use 0.2.6 because I am using easybuild to build all the software in my cluster and I have a huge software stack using the toolchain goolf-1.4.10 (https://github.com/hpcugent/easybuild-easyconfigs/blob/master/easybuild/easyconfigs/g/goolf/goolf-1.4.10.eb) which uses openblas-0.2.6. My intention is to rebuild my complete software stack but making it as much portable as possible so I can execute it in any x86_64 cpu from intel or amd.
@xianyi to make openblas as much portable as possible (without taking care about performance) I supposed the right choose was "TARGET=CORE2" which I thought it's the oldest x86_64 target, isn't it? why do you recommend nehalem?

You may use NORTHWOOD on x86:  make TARGET=NORTHWOOD that uses SSE2 instructions. It's very hard to find non-SSE2 x86 CPUs today. For x86-64 use the PRESCOTT target.
Nehalem needs at least SSE4.1 instructions and is less generic.

Best is to link against netlib BLAS (preferably one shipped with your system, libblas.so.3/liblapack.so.3), and then replace/redirect to faster library where actually using it.


Add 'pull-request created' event

Extend the plugins Api with 'pull-request created' event

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

Hey @vinokurig, thanks for submitting a PR! Can you give some more context about this change? Do you plan to consume this event in another extension?

@RMacfarlane I am going to create a plugin that would be used in Eclipse-Che. The plugin would catch the event and add a special link to the PR's description.

Hello. any updates?


SYN-4026: Add optional port field to http tests

Resolves SYN-4026

Before the change?
The request and response body for http tests did not support a port field.

After the change?
Adds optional port field to request and response for http tests. I also noticed that createHttpCheckV2Body was actually a body for a browser test, so I changed it to reflect an http test.

Pull request checklist

[ ] Acceptance Tests have been updated, run (make testacc), and pasted in this PR (for bug fixes / features)
[x] Docs have been reviewed and added / updated if needed (for bug fixes / features)

Acceptance Test Output

Does this introduce a breaking change?

[ ] Yes
[x] No

I have read the CLA Document and I hereby sign the CLA

I have read the Code of Conduct and I hereby accept the Terms


Documentation on GPU backend and host communication

Description
I encountered the  behavior that the GPU of my code heavily employing a lot of jax operations is around 3x slower than running the code CPU-only. I know that this problem has been reported before but I want to ask in this report if you could provide a general guideline how to debug and fix such problems.

More specifically, I can see a lot of Host-Device Memcpy in the jax.profiler output of my code but I cannot really assign that calls to parts of my code since they are surrounded of a lot of internal calls...
In https://github.com/google/jax/issues/9259#issuecomment-1018008102 was noted that XLA's loops needs CPU calls for controlling the loop. Is this true for all loops (XLA while, scan, fori)? If not, is there somewhere a reference for that so I could debug my code (which is heavy on loop usage)?

I would be happy if people could point me out how to improve my code. If the important points could be spelled out here, I would offer to help to add some docs about this CPU<->GPU usage in jax. Thanks in advance
What jax/jaxlib version are you using?
jax-0.3.25 jaxlib-0.3.25+cuda11.cudnn82
Which accelerator(s) are you using?
GPU
Additional system info
Python 3.9, Debian Bullseye
NVIDIA GPU info
NVIDIA Geforce RTX 3090
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 510.85.02    Driver Version: 510.85.02    CUDA Version: 11.6     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  Off  | 00000000:01:00.0 Off |                  N/A |
|  0%   57C    P8    33W / 350W |    402MiB / 24576MiB |      1%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

loop is a big topic that I don't master in JAX/XLA.
One quick information, if you have a for loop with a fixed number of iteration, this should be faster. XLA will skip some communication. But even in that case, there is still copies that aren't optimized.
This needs works at the XLA level. Nothing that can be done easily outside (except having a fixed iteration count)


'Page Not Found' for a Terraform-related page that is showing up in Google search

What's wrong?

Google "aiven terraform change plan"

This is the search result.

Clicking the link results in:

URL of affected page, and any other information
The link changed from https://developer.aiven.io/docs/tools/terraform/upgrade-provider-v1-v2 to https://developer.aiven.io/docs/tools/terraform/howto/upgrade-provider-v1-v2.html based on restructuring folder
via this PR
However, this is not a migration work (i.e. the previous document existed on DevPortal already).
Is Google storing the old link in cache?

Some quick googling shows these options:

we keep it as it is and it will take some time (30-60 days) for Google to give up on those pages
to speed up process we change error to 410 to indicate that it is a not temp 404 situation (not clear to me yet how this can be achieved)
we can consider adding robots.txt to have granular control on what is indexed. However, this means additional maintenance step

Do we have someone who has knowledge on these topics? If not - I can dive deeper and look at what option is better alternative for our case.

Thanks for these additional info @anelook
In case we don't have experts on the topics you mentioned, I'll be interested to learn these alongside.
Copying @lornajane for her thoughts.

We left it and the index should catch up


Layout Change: Queue View Widget

This is addressing #476 on creating a new layout and this is a draft PR so that  @jacksongoode is able to collaborate with me.
Features:

[x] Fix sizing on the left and right panel
[x] A sidebar on the right which hides with depending on the window size
[x] A new divider for the left and right sides as that was brought in by the split view which I changed to be a flex row so then the left and right bars don't take up too much space
[ ] Queue handling functions
- Clear queue
- Remove from queue

Questions:

Is it worth aligning some of the dividers for aesthetic purposes?
Should we have a function which skips to the place in the user queue where the user clicks, I would advocate for this?
What should we do after the song has been played from the queue, should it be removed from the view, or should we implement some sort of auto scroll?
I think we should have an option to disable this queue somewhere, maybe in settings or maybe in the top right of the title bar like here:

Current look of this PR:
https://github.com/jpochyla/psst/assets/77629938/e1d097dc-89ab-4cdb-8585-583db7b69625

I'll have a look at this tonight! Very excited!

Just made a few cleanups just to get consistency, however, it might be better to use reuse objects rather than recreate them.

@SO9010 Hey Sam, just curious if you've had the time to look over the visual changes so far?

Hey @jacksongoode, sadly I don't have access to my computer! Your changes look great to me. That bug where the separator is off by 1px is very annoying! I will take a look when can and try to maybe hack a fix for it. But it still looks a ton better than with just a small separator bar.
Also, I'm thinking of implementing some sort of hover function to the close button to make it dimmer when not needed as it seems a bit intrusive and bulky right now.
I think the Ul is looking really good! I'm happy to take any suggestions. :)

Okay so an update. I have been working on this today and have come up with a solution for the off by one pixel issue and that was to fix the height. Additionally I added the ability to add dividers between the left and right sides! I also aligned the bottom player with the left controller section!

However, I am a bit stuck on how I get the position of the song in the queue to get removed after the button has been hit! Any suggestions @jacksongoode ??

I thought it helped with consistency and ensuring that it doesn't become unreasonably large. Feel free to change it!On 14 Jul 2024 13:18, Jackson @.***> wrote:
@jacksongoode commented on this pull request.
In psst-gui/src/ui/mod.rs:

let split = Flex::row()

   .with_child(sidebar)

   .with_flex_child(main, 1.0)

   .with_child(queued::queue_widget())

   .background(theme::BACKGROUND_DARK);

Ah, so the side bar (with playlists) now doesn't follow a split ratio. Was there a reason that this logic was implemented as a fix or more so a preference?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

@SO9010 Just noticed this little overlap with the widgets of the section selectors overlaying the border.

I have fixed the overlapping issue by reintroducing the split widget between the left sidebar and the main section. Additionally, I have created a new section called the right sidebar. Now, we have both a left sidebar and a right sidebar. This change ensures that the queue widget no longer has problems with disappearing, which occurred when it was dynamically resizeable.
I have a question now, how should we deal with it when a song has been played from the queue? Should we remove it from the widget, or should we have it, so the user is able to essentially skip backwards?

I have made it so the user can essentially skip backwards in the queue, as that feels quite fluid.

Hi @jacksongoode,
Could you please take a look at the program? I'd like to outline a few things:
The reason for not reusing the widget for the tracks is that we need to have an iterator method. I found this a bit complex to do, so I think it's best to just leave it as a new widget, you are welcome to change this of course.
There is currently an issue that is very similar to issue #477. I need some help with this because I can't figure out how to single out the position of a track in the list view, as right now it just removes the first song with the same ID, but we could remove it using the index.
I'm thinking that we need some sort of indication for which song from the queue is currently playing. What do you think?
I have made it so that the queue hides if there are no items added by the user, which helps maintain the aesthetics of the program nicely.
There is also an issue of what happens when a user clicks on the queue widget before playing anything from a playlist, which I still need to solve!
Here is a video of how it currently looks:
https://github.com/user-attachments/assets/e938f076-a278-4587-bb55-4165090e2098

Yes makes sense!

There is currently an issue that is very similar to issue https://github.com/jpochyla/psst/issues/477. I need some help with this because I can't figure out how to single out the position of a track in the list view, as right now it just removes the first song with the same ID, but we could remove it using the index.

I do think we should probably fix this as it's own issue. The way's ID's should exist should contain their index in the list.

Ok makes sense, I think I'm starting to understand the issue more so will be able to work on it after this has merged!

https://github.com/jpochyla/psst/pull/499 This should fix the duplicate ID track issue.

Now that https://github.com/jpochyla/psst/pull/499 is merged, we can rebase and the fix should be here.

I had to implement it slightly differently because I was unable to reuse the normal view widget, which has to take an iterable track. The queue works through a vector of QueueEntry's. However, I have started implementing a similar way of collecting the song index, which is working very well :)

Okay, here's a pleasing update: the end is near! I have implemented the remove by index, which has worked very well and removed the big issue, and now I have implemented the method which skips to a certain part of the
There are very few things I have to do: remove the first song after it has been played, trigger audio playback when a song is clicked from the queue, and add a little section in the settings to keep the queue view hidden.

@jacksongoode, how should we do it with clearing the queue? I have a button to the right of the title, but it looks wrong. What do you suggest?

Yes, but I have quickly added a few bits to the context menu!

There is, in fact, another issue!! When the user clicks on the first item in the queue, it doesn't do anything!

Alright, @jacksongoode, I have a question! Do you think we should do something slightly different to how it currently functions and follow Spotify more? Currently we have two places where it shows the currently playing song, at the top of the queue, and in the playcontrol section, but this doesn't need to be. We could remove it as it gets played, as the user will see it going to the now-playing section at the bottom with all the controls.

Right, I noticed that! Yeah I do think we should pop the queued item the moment it gets played - that's how Spotify does it. So when a new queued item gets promoted to play, we immediately remove it from the queue list.

Ok, so progress again today; I have managed to make it so the first song gets popped after it played. Now, all that is needed is to initiate playback from the queue!

With these recent changes, it seems like the cue that gets added to the sidebar, even after being exhausted, does not reflect the internal cue. It doesn't seem like the internal cue gets removed in the same way.

Okay so could you possibly check this out for me :P thank you

It seems like there might be a bug around how the items in a queue get triggered when they change from a selected item into the queue. I get a really long spinning wheel and the track plays, but I think that indicates the method that triggered the playback might be wrong.

To reproduce:

Open
Queue a song from context #1
Play a random song in a different context #2
Click next or finish song, queued item will have spinning wheel

@jacksongoode I think I have fixed this; I had to introduce a new vector, the display vector, which shows only the queued items left to play and another one, which is almost like a catalogue for it to look through.
The initial issue was that I was removing the song while the program still needed it.

@jacksongoode This should be good now. Could you please check it for me?
I found the issue. It came from the fact I was deleting the first song from the queue when it was being played, but it needs this to know where the playback origin is, so I added a display vector for this.

Checking it out now! Thanks!

Ugh unfortunately I cant login since my config was delete and Spotify has revoked the user/pass method. So I'll need to make a PR to address that.

Ok I'm halfway done with that auth PR, just enough to get a good token.
So I see two issues here:

Queuing a song and then click on that item at the top of the queue should just pop the song and play it. Currently only clicking on items after the first will trigger them to play.

Clicking pops wrong song:

Queue 3 songs
Play a random song to start playback
Skip 3 songs
Queue 3 more songs
Click 2nd queued item from top
See that song played is not the clicked track

Hello, thank you so much for checking it out! These issues should be relatively easy to sort out! :) I'll let you know when I've sorted that out. Sometimes these bugs slip as I've been looking at the same thing for a while :)

I think this PR may need to be rebased but I could be wrong - I recently merged a fix to the builds and the oauth implementation.

Ok so Ive had an other look at this, in my opinion it is almost done, just that there is an issue where when removing the song that is currently playing, it removes it if someone clicks on the song that is about to play then it registers as the song that was queued.:

it removes it if someone clicks on the song that is about to play then it registers as the song that was queued:

Oh I think the solution here is the context. Queued items should have some position or label that makes it clear that on clicking on items that are present in the queue should remove those queued items? It seems like a design bug if clicking anywhere else has any interaction with the queue's poping off the stack.

Heya, thanks for this; I don't think I get the bug where clicking anywhere else pops the top of the stack. Could you please send a video or something of this happening?

Yes I agree but annoyingly there will probably need to be some big refractoring needed as currently the way that the origin of a currently playing song is done through this function:
pub fn queued_entry(&self, item_id: ItemId) -> Option<QueueEntry> {

        if let Some(queued) = self
            .added_queue
            .iter()
            .find(|queued| queued.item.id() == item_id)
            .cloned()
        {
            Some(queued)
        } else if let Some(queued) = self
            .playback
            .queue
            .iter()
            .find(|queued| queued.item.id() == item_id)
            .cloned()
        {
            return Some(queued);
        } else {
            None
        }
    }

I added the top bit, which forces it to assume that if the items are in the added queue when that song ID is playing, it must be from the queue. However, this is where the issue comes in. I think I could possibly change this but this is quite core logic so id like to avoid completely changing this function.
I've been looking at the idea of having a variable which says whether it is playing from the queue, much like I have done with the actual queue code. But I'm struggling with the implementation.
Is there maybe a way to get a function to parse through a value in things like this section:
fn handle_command(&mut self, cmd: PlayerCommand) {
        match cmd {
            PlayerCommand::LoadQueue { items, position } => self.load_queue(items, position),
            PlayerCommand::LoadAndPlay { item } => self.load_and_play(item),
            PlayerCommand::Preload { item } => self.preload(item),
            PlayerCommand::Pause => self.pause(),
            PlayerCommand::Resume => self.resume(),
            PlayerCommand::PauseOrResume => self.pause_or_resume(),
            PlayerCommand::Previous => self.previous(),
            PlayerCommand::Next => self.next(),
            PlayerCommand::Stop => self.stop(),
            PlayerCommand::Seek { position } => self.seek(position),
            PlayerCommand::Configure { config } => self.configure(config),
            PlayerCommand::SetQueueBehavior { behavior } => self.queue.set_behaviour(behavior),
            PlayerCommand::SkipToPlaceInQueue { item } => self.queue.skip_to_place_in_queue(item),
            PlayerCommand::ClearQueue => self.queue.clear_user_items(),
            PlayerCommand::AddToQueue { item } => self.queue.add(item),
            PlayerCommand::RemoveFromQueue { item } => self.queue.remove(item),
            PlayerCommand::SetVolume { volume } => self.set_volume(volume),
        }
    }

As then for example we could have a player command GetIfPlayingUserItem, then from there, this would all be streamlined and could even be placed in the Appdata section to be more easily accessible.

I think this needs to be on a branch? It seem like there's some weird conflict I'm getting by this being on your master branch? Generally every PR should be on a branch with its name.

So, before I think this is possible, I think we need to find a way to give the playback origin without just having it detected after it's been played.

@SO9010 I would love to merge this, but I did test this a bit last night. I think there is still some issues around adding to queue and switching context, adding more items, and then clicking on an item in the queue and getting the wrong track playing. Could you see if that's reproducible on your end?

I can't lie I started to give up on it, but I will have a look soon if I can't get it in a better working order :) I would also love it to be part of the program.


Lookup arg optimizations

We've been using lookups downstream for a while, with tables of size 2^16 (for u16 range checks) and hundreds of thousands of lookups in a circuit. This PR addresses the main bottlenecks that were at first producing poor building/proving times (around 100x/10x overall vs. baseline, respectively) at this scale.
Changes:

using a linear-time pass to count multiplicities vs. the current O(n^2) implementation
precomputing the RE poly evaluations, which were being re-computed redundantly. This sped up the compute quotient polys step of proving by about 10x for our circuits (size 2^21 with width ~200, using the aforementioned size 2^16 tables)

The remaining significant bottleneck we encountered was also at build time, owing to the fact that the id() of LookupGate and LookupTableGate includes the full table, and this id is hashed every time another gate gets added to the circuit builder. However, our fix for this was hacky so I didn't include it here—a good solution might have some overlap with the serialization stuff mentioned here.
Also, for future reference, I identified here and here as routines that may also have some unneeded performance bloat due to lookups—they are probably worth taking a look at for anyone who wants to improve lookup performance further.
Thanks to @Nashtare and the others who implemented this feature, it's been super helpful :)

Thanks, that's amazing!
As for the fact that the id() of LookupGate and LookupTableGate includes the full table, and this id is hashed every time another gate gets added to the circuit builder., I was wondering for a while whether we wanted to have ids of gates and generators be deeply binding to their underlying specification. For instance, the PoseidonGate id is just having the width as extra parameter, while all the parameters defining the permutation can be arbitrary (and in particular the MDS matrix coefficients have been changed from the reference implementation). We could go for something similar, sort of middle-ground identifier that doesn't require having the entire table listed in the id.

For the suggestion of hashing the table to use as an ID when adding Lookup-related gates, although I see that it does improve the build time, I don't think it addresses the fundamental problem and we'll still see very poor build times for large tables/many lookups, since you're still paying the cost of hashing the entire table every time you add a LookupGate or LookupTable Gate, (since new_from_table is called each time you do this). I was wondering for a while whether we wanted to have ids of gates and generators be deeply binding to their underlying specification this is more what is needed here IMO; the gate id just shouldn't have a dependency on the actual contents of the table, which I think is fine if there's a bit of extra bookkeeping. If I were to go for a refactor, I would identify a lookup table using a user-defined string that is provided when a table is created and use that as the id, replacing this Vec<LookupTable> with a HashMap<String, LookupTable>. In addition to solving the performance problem, it'd also be nice to be able to identify tables by readable strings rather than indices when adding lookups.
Also, are you storing the entire table as the current impl does? yeah, this hasn't been an issue though, even for "large" tables I don't think it's a big deal since we're only storing it once and sharing it through an Arc thanks to your guys' implementation.

@npwardberkeley, are these changes in a good state to merge once CI passes? I pushed changes to fix CI but it looks like you need to approve the workflow again, sorry about that.

Looks good!

For the suggestion of hashing the table to use as an ID when adding Lookup-related gates, although I see that it does improve the build time, I don't think it addresses the fundamental problem and we'll still see very poor build times for large tables/many lookups, since you're still paying the cost of hashing the entire table every time you add a LookupGate or LookupTable Gate, (since new_from_table is called each time you do this).

I definitely agree, but I have taken this approach as gates are currently storing in their IDs all their internal information. If we were to remove it, and have just basic information as we do with generators ID, then your suggestion of having a HashMap with table names does indeed make more sense


Is the package able to extract top gainers via Yahoo API?

Is the package able to extract top gainers via Yahoo API? Thanks!

You can also use pandas therefore.
import pandas as pd
gainers = pd.read_html('https://finance.yahoo.com/gainers')

is there away of getting top gainers for a specific index? Like DAX or FTSE100 or Nikkei?

This is an awful solution.  If you're interested in porting to yfinance, post in #1546

screener = yf.Screener()
 screener.set_predefined_body(predefined_key='day_gainers')
 dict = screener.response

The OP didnt mention what gainers he wants. I dont see an api of how to get 52 week gainers.
@ValueRaider any idea? (sorry I am very new to it)

Is 52 weeks gainers on website?

Is 52 weeks gainers on website?

Yes: https://finance.yahoo.com/markets/stocks/52-week-gainers/

Firefox -> F12 network tab -> refresh -> manually inspect urls

Already done, thats how I have got other urls. There is no summary url, the data is in the HTML on request.

I see, thanks. Any suggestion besides BeautifulSoup or scraping?

There is no summary url

I assure you all, there is a screener url for 52-week gainers.

This isn't it?
https://query1.finance.yahoo.com/v1/finance/screener/predefined/saved?count=25&formatted=true&scrIds=FIFTY_TWO_WK_GAINERS&sortField=&sortType=&start=0&useRecordsResponse=false&fields=ticker%2Csymbol%2ClongName%2Csparkline%2CshortName%2CregularMarketPrice%2CregularMarketChange%2CregularMarketChangePercent%2CregularMarketVolume%2CaverageDailyVolume3Month%2CmarketCap%2CtrailingPE%2CfiftyTwoWeekChangePercent%2CfiftyTwoWeekRange%2CregularMarketOpen&lang=en-US&region=US

Yes, that is it. I can't find that anywhere in the requests (even when looking for it). I will open a PR to add this and change some screener functionality as all the other predefined screeners can be put into that url.

@ValueRaider
I also didnt see it in the requests so I used scraping, how did find that query (out of curiosity )?


gamescope: 3.14.26 -> 3.14.29

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for gamescope is: SteamOS session compositing window manager
meta.homepage for gamescope is: https://github.com/ValveSoftware/gamescope
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 3.14.29 with grep in /nix/store/qbqv7x9qd6qv1qndl80lq22y403jf070-gamescope-3.14.29
found 3.14.29 in filename of file in /nix/store/qbqv7x9qd6qv1qndl80lq22y403jf070-gamescope-3.14.29

Rebuild report (if merged into master) (click to expand)

5 total rebuild path(s)

5 package rebuild(s)

First fifty rebuilds by attrpath

bottles
bottles-unwrapped
gamescope
gamescope-wsi

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/qbqv7x9qd6qv1qndl80lq22y403jf070-gamescope-3.14.29 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A gamescope https://github.com/r-ryantm/nixpkgs/archive/a36371c97d82e5ba08d6e3951a890e9573d3d99b.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/a36371c97d82e5ba08d6e3951a890e9573d3d99b#gamescope

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/qbqv7x9qd6qv1qndl80lq22y403jf070-gamescope-3.14.29
ls -la /nix/store/qbqv7x9qd6qv1qndl80lq22y403jf070-gamescope-3.14.29/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

4 packages built:

bottles
bottles-unwrapped
gamescope
gamescope-wsi

Maintainer pings
cc @nrdxp @PedroHLC @Scrumplex @zhaofengli @K900 for testing.

Add a :+1: reaction to pull requests you find important.

https://github.com/ValveSoftware/gamescope/compare/3.14.26...3.14.29
Upstream changes look good

Result of nixpkgs-review pr 333755 run on x86_64-linux 1

4 packages built:

bottles
bottles-unwrapped
gamescope
gamescope-wsi


Save SnackVar result

Currently, to save our result, we take a screenshot of SnackVar window. It would be possible to implement a function in SnackVar to print the alignments and the variant calling results.
Thank you by advance.

I guess I could work on that soon, probably during the upcoming holidays.
Thank you for the good suggestion!

Would you try using newer version, V2.3.0?
You will see the 'Generate Report' button at the bottom.
You can print the report or make PDF using 'Print' button.

Thank you for this option, I have just one more request, Is it possible to add the name of imported trace files to the report

Thank you for this option, I have just one more request, Is it possible to add the name of imported trace files to the report

Thank you, this is perfect

Thank you, this is perfect


[Try-it] Cannot invoke APIs with enum field types

Description:
Swagger UI doesn't seem to allow selecting a value for the parameters with a list of enum values.
Steps to reproduce:

Create an API using http://petstore.swagger.io/v2/swagger.json
Try to invoke GET /pet/findByStatus resource

We are not allowed to select the value for the status field from the list of items on the box.

this seems to be fixed in public branch therefore closing issue


Customise the PDF layout

Is there any way to modify or provide a custom layout to the PDF generated by ReadTheDocs ?
In particular I would need to change the text formatting in the source code blocks.

The PDF is created by compiling the rst files into LaTeX files and then converting those into a PDF. So you can adjust the Sphinx latex options in order to customize the outcome, see here: http://sphinx-doc.org/config.html#latex-options

Thanks, for your quick reply. However in that link I'm unable to find any way to manage the style of Literal code blocks. Any clue about that ?

I'm afraid that will require LaTeX knowledge to change the style. I'm not good with that, but I think it would go into the latex_elements in the preamble section. Also examine the files emitted when you run "make latex" for your Sphinx project. These will be the source file used to convert into PDF. You will see the markup that wraps the code block. Based on that you will probably be googling around a lot about LaTeX :( sorry that I can't help more on that end.

Thanks for the tip. I will try to investigate that.


Remove runtime param from manifest

Summary
Removing runtime from the manifest as it's no longer used by the builder as of https://github.com/slackapi/deno-slack-builder/pull/15

Got my answered cleared up! Runtime removed from manifest in favor of slack.json


how to transform the map to utm frame?

Hi koide3,
how to transform the map to UTM frame? or how to get the origin of the map frame in UTM?

Hi @liuyf5231 ,
You can use "hdl_graph_slam/dump" service which saves all the internal map data. It yields a file "zero_utm" which describes the position of the origin of the map in the UTM coordinate. You can just add these values to each point in the map.

Hi @liuyf5231 ,
You can use "hdl_graph_slam/dump" service which saves all the internal map data. It yields a file "zero_utm" which describes the position of the origin of the map in the UTM coordinate. You can just add these values to each point in the map.

yes, I know zero_utm.
but send a static transform between map frame and utm frame,   yaw pitch roll or quaternion is also needed.
If I want to use the map generated by hdl graph slam, first I need to transform my init gps to map frame.

The map is optimized so that XYZ axes match with easting-nothing-altitude axes. So, you don't need to consider orientation and just add zero_utm to the points.

ok, thank you.


[engine] Some rollers are not triggering all the builders

Some PRs are triggering a single build, this is an example:

https://github.com/flutter/engine/pull/20021

@godofredoc What's the status of this bug?

I'm adding more logging to understand what is happening. From reviewing the code and the current logs we haven't found the bug.

We finally got logs for a repro:

2020-07-31 15:34:38.001 PDT
Creating check run for PR: 62445, Commit: ca71cbbb12cc53be4ae3d3f48d995365b940bd2a, Owner: flutter and Repo: flutter
2020-07-31 15:34:38.302 PDT
Trigger build for: Windows
2020-07-31 15:34:38.302 PDT
Creating check run for PR: 62445, Commit: ca71cbbb12cc53be4ae3d3f48d995365b940bd2a, Owner: flutter and Repo: flutter
2020-07-31 15:34:38.365 PDT
GitHub Error: Access Forbidden
#0      GitHub.handleStatusCode (package:github/src/common/github.dart:403:9)
#1      GitHub.request (package:github/src/common/github.dart:372:7)
<asynchronous suspension>
#2      GitHub.requestJson (package:github/src/common/github.dart:268:28)
#3      GitHub.postJSON (package:github/src/common/github.dart:194:7)
#4      _CheckRunsService.createCheckRun (package:github/src/common/checks_service.dart:67:19)
#5      GithubChecksUtil.createCheckRun (package:cocoon_service/src/foundation/github_checks_util.dart:78:42)
#6      LuciBuildService.scheduleTryBuilds (package:cocoon_service/src/service/luci_build_service.dart:176:65)
<asynchronous suspension>
#7      GithubWebhook._scheduleIfMergeable (package:cocoon_service/src/request_handlers/github_webhook.dart:167:28)
<asynchronous suspension>
#8      GithubWebhook._handlePullRequest (package:cocoon_service/src/request_handlers/github_webhook.dart:137:15)
<asynchronous suspension>
#9      GithubWebhook.post (package:cocoon_service/src/request_handlers/github_webhook.dart:73:17)
<asynchronous suspension>
#10     RequestHandler.service.<anonymous closure> (package:cocoon_service/src/request_handling/request_handler.dart:49:28)
<asynchronous suspension>
#11     RequestHandler.service.<anonymous closure> (package:cocoon_service/src/request_handling/request_handler.dart)
#12     _rootRun (dart:async/zone.dart:1184:13)
#13     _CustomZone.run (dart:async/zone.dart:1077:19)
#14     _runZoned (dart:async/zone.dart:1619:10)
#15     runZoned (dart:async/zone.dart:1539:10)
#16     RequestHandler.service (package:cocoon_service/src/request_handling/request_handler.dart:39:12)
#17     main.<anonymous closure>.<anonymous closure> (file:///app/bin/server.dart:127:23)
<asynchronous suspension>
#18     main.<anonymous closure>.<anonymous closure> (file:///app/bin/server.dart)

The build succeeded running the first builder but failed in the second one with a permission problem. This is most likely related to the enhanced authentication workflow for the flutter dashboard where we are using short lived tokens and the token expires in the middle of a request.

Fixed by https://github.com/flutter/cocoon/pull/888


Fixing inverse

Changing inverse of covariance matrix to pseudo inverse to increase numerical stability. Also robust when errors are zero.

:+1:


Support legacy code layout

A lot of projects in the wild have two characteristics that create a lot of attrition while porting them to .NET Core and EF:

the directory structure can be different from the classic NS/SUBNS;
a database already exists, so scaffolding the entities using the ef tool is almost mandatory.

Specifically, ef infers the namespaces from the project structure and while this is good and easy for new projects, it makes almost mandatory to edit the generated files by hand (which if bad).
It would be extremely useful to be able to decouple the naming of the generated classes (in particular the namespace) from the output directory.
Will the project accept a small patch to add a new option --namespace to override the value automatically inferred from the -o parameter?

Have you tried my GUI tool, it allows you to set the default namespace. https://twitter.com/ErikEJ/status/834452863380250624

@ErikEJ no, I didn't know about it and I'll surely have a look. But I was thinking about different backends (we use at least 3: SQLite, PostgreSQL via Npgsql and MS-SQL) on different platforms using only command line tools (no UI). I think this is a little bit different from what you're proposing. In the end, EF Core is very good but trying to use it in a workflow with legacy code/database-first still creates a bit of attrition.

@bricelam @lajones @smitpatel Do you know if we are already tracking something for namespaces on reverse engineering? If so, is this sufficiently different to keep it open as a separate issue?

@ajcvickers #3988 comes to mind. There was another bug that explicitly discussed all the options for output directory structure / namespace / database schemas - but I can't find that right now. Scaffold-DbContext originally had a --namespace arg that you could use to override the namespace for any given run, but it was scoped out in v1.

Another related issue https://github.com/aspnet/EntityFramework/issues/4524

Closing this as a dupe of #3988 which has been re-purposed to cover the general question of namespaces in reverse enineering.


Incompatible with Java 8 lamda expressions

Compilation fails for Java 8 with lamda expressions

Scannotations is from 2011 and had a dep on Javassist from same period incompatible with Java 8 lamdas


A0 needs to be defined or just removed.

          `A0` needs to be defined or just removed.

Originally posted by @steven-bellock in https://github.com/chipsalliance/Caliptra/pull/98#discussion_r1328100470

A0 can be replaced with initial.

There is a dependency to update the contents of the figure, so I believe AO is an accurate reflection of diagram for now. Assigning to myself for if/when figure is updated.


Support iterating with user-supplied callbacks

This PR adds a feature to Scenario.solve() iteratively, with some user-supplied callback.
This is to generalize and support model variants like MESSAGE-Access and MESSAGE-Transport.
PR checklist:

[x] Tests added
[x] Documentation added
[x] Description in RELEASE_NOTES.md added

@MiguelPobleteCazenave would you mind taking a first pass in reviewing? Happy to do a second after the first round.

sure, i'll give it a look later today

Wouldn't be desirable to pass more than just one argument for the callback (in case you want to have different versions of the other models, e.g., different levels of access targeted, different regions or in transport, different types of vehicles targeted)?

Ah, good call. I will add this now.
The user can also do this in a bunch of other ways, because the callback function will usually be defined in the same scope where solve() is called:
myparam1 = 10.2

def cb(scenario):
    # Use a global variable
    global myparam1

    # Retrieve data stored with the callback
    myparam2 = cb.data['myparam2']

    # Read a file
    with open('myparam3.txt') as f:
        myparam3 = f.read()

    # do some calculations
    return convergence

# Store data with the callback after it has been defined
cb.data = {'myparam2': 23.5}

# Callback will have access to myparam[123]
scenario.solve(callback=cb)

@MiguelPobleteCazenave done

Per our in person conversation, we will leave test as is and let future devs deal with it if it becomes an issue.