CPU pegs to 100% while event streaming

Describe the bug
One CPU core pegs to 100% utilization while streaming events, even if nothing is being sent at the moment.
Expected Behavior
CPU utilization should remain low when idle while streaming.
Current Behavior
One CPU core pegs to 100% until streaming concludes.
Reproduction Steps
Run the AWSKinesis integration tests in the aws-sdk-swift project.
Observe CPU once the subscribeToShard streaming operation connects.
Possible Solution
No response
Additional Information/Context
No response
AWS SWIFT SDK version used
Latest / main branch
Compiler and Version used
Xcode 13.3
Operating System and version
macOS 13.3.1

Determine if the cause of the CPU spike is in Swift or C (crt)


#390 Move all members from the deleted team to the noTeamParticipants collection

nini, add the hashtag with the number at the beginning of your commits msgs as well.


TST: Add WithFutureDailyBarData and WithBcolzFutureDailyBarReader

Coverage decreased (-0.2%) to 87.512% when pulling b117d286ac973786812dfb2551e8c9f20fa5d9e2 on futures-daily-fixtures into e36876cbb98aa4468c8c2fbc8c772dbb22146ec9 on master.

Coverage decreased (-0.2%) to 87.516% when pulling 59d16ef27cea78a04a7686ff6bd5a9d2b886dd4a on futures-daily-fixtures into 5e6110e9e0f7ba10c8e7371688bb958a60e151e8 on master.


Add support 1.19;

To new branch plz;

Branch created, I'll review the PR either tomorrow or Thursday

Okay, thanks for the good mod!

I've been using this branch for a few days, it's well done and works perfectly. I was working on the same thing, so I was was VERY familiar on the changes required, and @HarvelsX nailed it.


Calibration using experiments for Matched Markets

In the calibration using experimental results example, we see the variable liftAbs as measuring the absolute lift in the response variable.
set_lift <- data.table(channel = c("facebook_I",  "tv_S", "facebook_I"),                        liftStartDate = as.Date(c("2018-05-01", "2017-11-27", "2018-07-01")),                       liftEndDate = as.Date(c("2018-06-10", "2017-12-03", "2018-07-20")),                     liftAbs = c(400000, 300000, 200000))
Let's say our response variable was measured at the national level. Some experiments were run for certain matched markets with the lift measured at the market level - a lower scale of magnitude than the national level. Would it be possible to somehow include the experiment market exposure size in order to normalize the measured lifts in calibration?
Hope that makes sense.

Hi, sorry for replying late. This is a bit tricky. Let's say you want to calibrate FB. Ideally you should have experimental result for the same spend as your FB variable in the model. Now you might have two options:

Splitting the FB variable in the Model from national to market Level and thus match the campaign scope on market level
Extrapolating the market level experimental results up to national level to match the scope on national level

I'd recommend the first option because by splitting variables, you will get more granular insights too. Hope it helps.

@gufengzhou Thank you for the recommended options. The data does not have reliable media spend information at the market level so at this point, the second option looks to be our only choice. Extrapolation can blow up the non-spend variables so we will have to think about the right way to do that.

please re-open if necessary


Make examples work in IE11

The full build works already in IE 11 (thanks to buble), so we only need to add babel transpilation to the examples.
Fixes #8356.

I'd like to include this in the v5.0.3 patch release. Thanks for any review!

The examples now also work in IE10 again.

Most of the examples don't work for me in IE11. Take the very first one for example.
Looks like the ... / spread operator in index.es.js line 7944 is the problem:
function extend (output, ...inputs) {

Most of the examples don't work for me in IE11. Take the very first one for example.
Looks like the ... / spread operator in index.es.js line 7944 is the problem:
function extend (output, ...inputs) {

See #11866  There are working examples using the fixed dev version available via https://openlayers.org/en/main/examples/


ansible playbook /mnt/localdisk/enroot

Update ansible playbook to fix the permission issue when a node is coming up- about the opc:privileged usr:grp not having the correct permissions.

Would you be able to provide more information here please?
When you say that a node is coming up do you mean after a reboot or is this a new node that is getting to the cluster?


Add prometheus r-proxy

Hi, thanks for this fantastic code! It really makes our daily tasks more confortable.
I would add a new r-proxy with almost the same tasks for prometheus 9615 daemon port.

New task in firewall.yml
New var for prometheus public port
New nginx server block on proxy.conf.j2 template

I am not sure if this should also use the auth basic method or if we could allow a "From IP" at firewall level.

Thanks a lot @derfredy!! <3
We plan to include the ability to take into account bastion IPs shortly, for now we can start by leveraging the existing basic auth used in node-exporter endpoint. Will ping you in the PR :)


OSD Mount Type Support?

It looks like only directory mode is used for osds according to this code block:
https://github.com/vivint-smarthome/ceph-on-mesos/blob/master/src/main/scala/com/vivint/ceph/JobBehavior.scala#L103
    val taskInfo = launchCephCommand(
      taskId = taskId,
      jobId = job.id,
      role = job.role,
      offer = offer,
      location = taskLocation,
      templatesTgz = templatesTgz,
      command =
        runState match {
          case RunState.Running =>
            s"""
            |FS_TYPE="$$(df -T /var/lib/ceph | tail -n 1 | awk '{print $$2}')"
            |if [ "$${FS_TYPE}" != "xfs" ] && [ "$${FS_TYPE}" != "btrfs" ]; then
            |  echo "Cowardly refusing to OSD start on non-xfs / non-btrfs volume."
            |  echo "Cowardly refusing to OSD start on non-xfs / non-btrfs volume." 1>&2
            |  echo "Please see http://docs.ceph.com/docs/jewel/rados/configuration/filesystem-recommendations/#not-recommended for more information"
            |  sleep 60
            |  exit
            |fi
            |set -x -e
            |echo "Pulling monitor map"
            |ceph mon getmap -o /etc/ceph/monmap-ceph
            |
            |if [ ! -f /etc/ceph/my_osd_id ]; then
            |  ceph osd create > /etc/ceph/my_osd_id
            |fi
            |OSD_ID=$$(cat /etc/ceph/my_osd_id)
            |mkdir -p /var/lib/ceph/osd/ceph-$${OSD_ID}
            |chown ceph:ceph /var/lib/ceph/osd/ceph-$${OSD_ID}
            |
            |exec /entrypoint.sh osd_directory
            |""".stripMargin
          case RunState.Paused =>
            s"""
            |sleep 86400
            |""".stripMargin
        }
    )

Is there a way to change the directory used to be a volume mount like: /dcos/volume0
Is there a way to use a disk mount like the ceph-docker project explained here:
https://github.com/ceph/ceph-docker/tree/master/ceph-releases/jewel/ubuntu/14.04/daemon#ceph-disk

@fernandosanchezmunoz I followed that tutorial. The ceph cluster was showing the usage of the whole cluster instead of the mounted disks so I started to investigate the framework. I then found that the command the osd's run is ./entrypoint.sh osd_directory which means that only the osd directory config is used.

@nicgrayson I've ran it a good amount of times I'm fairly sure that the OSDs use the additional volumes provided as mounts. For example, if I have a cluster with three nodes running OSDs where the system volume is 16G, and the additional volume configured for Ceph and added to mesos-resources is 8G, my mesos dashboard shows that the cluster is using 24G, and I can see a total 24G available for Ceph in the ceph-dash. Can't provide an answer for that entrypoint question though.

To answer directly:

Is there a way to change the directory used to be a volume mount like: /dcos/volume0

Yes. This is the recommended way to deploy the framework. See this config option: https://github.com/vivint-smarthome/ceph-on-mesos/blob/v0.2.11/src/main/resources/deployment-config.conf#L28

Is there a way to use a disk mount like the ceph-docker project explained here:
https://github.com/ceph/ceph-docker/tree/master/ceph-releases/jewel/ubuntu/14.04/daemon#ceph-disk

While the framework supports Mesos mount disks, it does not support Ceph mount disks. This is because it is currently not possible to offer up a raw block device with Mesos as a resource. However, it should be possible to create a contiguous, grow-on-write file which spans the entire file system... and then mount a-la-loopback. See https://github.com/vivint-smarthome/ceph-on-mesos/blob/master/TODO.md#maybe .


Reduce logging in tests

Mainly need to remove Parquet logging when reading a file. Would be good to log only relevant classes in org.apache.spark.sql.

Fixed by 69a22524256ec2b24fd386b01ec585974e6bbccb


[NEW] Option to filter members list

Description
User should be able to filter the list by

All users
Online users

totally want this feature! react native already has this feature.


Check the given channel URL against the expected pattern

On channel homepage (ex.: https://www.youtube.com/@TimDillonShow), we can find more than one channelId match.
The user given channel URL needs to meet an expected pattern (ex.: https://www.youtube.com/@TimDillonShow/videos), on this specific page there is only one channelId occurence.
This a proposal to avoid #46.

This is nice but it could be more flexible, we want the ability to take a channel url in multiple formats and auto correct.
also the current list format show the channels using their channel id which might cause some confusion.
  id    count  channel_name         channel_url
----  -------  -------------------  ----------------------------------------------------
   5      265  The Tim Dillon Show  https://youtube.com/channel/UC4woSp8ITBoYDmjkukhEhxg

so our end goal would be to be able to take any youtube channel url and auto correct to
youtube.com/@[channel_name]/videos

Totally agree.
I'm goona work on this "auto correction" feature.
Just need to list possible "wrong" URLs and handle the correction behavior.
Thanks anyway and congrats for all the work you've done so far 👍


Show case status on case page

Show the current case status (closed and / or restricted) on the case pages.
Also took the opportunity to clean up the badge styles and improve spacing between them.
Desktop:

Mobile:

Will look when review app up but looks good in principle.


Fixing more warnings

I pulled this and ran dotnet build on the root directory with the solution .sln file and the test project failed to compile
jobs:
  publish-nuget:
    runs-on: ubuntu-latest
    timeout-minutes: 5
    steps:
    - uses: actions/checkout@v3
    - name: Setup .Net Core
      uses: actions/setup-dotnet@v2
      with:
        dotnet-version: '8.0.x'
    - name: Install Dependencies
      run: dotnet restore
    - name: Build
      working-directory: ./smartsheet-csharp-sdk <---- only builds sdk, not the tests or docs, which fail
      run: dotnet build --configuration Release --no-restore

you can switch this to working-directory: ./ in main.yml and see the pipeline fail


In the new version of OCAT file menu, there is a new "New Key Field", what is it for?

This function can be used to add one or more new fields to meet the needs of the OC configuration file if new options are added to the OC configuration file during the OC upgrade process, and OCAT does not have time to follow the upgrade.

When testing this feature, I added a new TestNewKey bool field to the configuration. It obviously works, but now this key shows up every time I open the app and I do not know how to get rid of it or where to delete it. Also OC Validate complains about my  new key:
OCS: No schema for TestNewKey at 6 index, context <Quirks>!
Serialisation returns 1 error!
Where is the file in which this change is configured, so I can reverse it?

It's great to see you trying out the new features of OCAT.
Please right-click on the newly created field and select "Delete".

@ic005k Wow, this is a great feature to future-proof the app!

Currently, this feature may no longer be needed, as OCAT has now added a module for intelligent recognition.

Currently, this feature may no longer be needed, as OCAT has now added a module for intelligent recognition.

So how would a new field be added?
Do we just add it to the Config.plist? What types of fields can be added in this way?

Currently, this ability to add new fields is almost useless, and it will probably be deprecated outright in a later release.
For OCAT, you don't need to add any new fields manually, because OCAT has added a smart module to do this.

So how would a New Key Field be added in the current version?

@chriswayg Currently, this ability to add new fields is almost useless, and it will probably be deprecated outright in a later release. For OCAT, you don't need to add any new fields manually, because OCAT has added a smart module to do this.

Well I am not sure, that this always works. When upgrading from 0.7.8 to 0.7.9 the LogModules was added automagically by OCAT. But in other cases when opening a Config.plist, I had an error from OCvalidate that LogModules was missing. What should we do in such cases inside OCAT?

What should we do in such cases inside OCAT?

Save the Config.plist and the error message will be corrected automatically.


feat: track drift access

closes #173

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

61 of 309 (19.74%)  changed or added relevant lines in 14 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-2.2%) to 74.107%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

core/resource/service.go
2
7
28.57%

plugins/providers/bigquery/model.go
0
9
0.0%

plugins/providers/bigquery/provider.go
6
17
35.29%

api/handler/v1beta1/adapter.go
13
27
48.15%

core/provider/common.go
0
18
0.0%

core/provider/service.go
6
24
25.0%

internal/store/postgres/grant_repository.go
0
19
0.0%

api/handler/v1beta1/provider.go
0
24
0.0%

plugins/providers/bigquery/client.go
0
52
0.0%

core/grant/service.go
1
79
1.27%

Totals

Change from base Build<PHONE_NUMBER>:
-2.2%

Covered Lines:
5853

Relevant Lines:
7898

💛  - Coveralls


Wrong Swift syntax

Hey,
in File ParallaxTableHeaderView.swift#L22 you have an syntax error. You use the Objective-C style of adding options together. In swift you should use the pipe for that:
self.subView.autoresizingMask = [.FlexibleLeftMargin, .FlexibleRightMargin, .FlexibleTopMargin, .FlexibleBottomMargin, .FlexibleHeight, .FlexibleWidth]

should be
self.subView.autoresizingMask = .FlexibleLeftMargin | .FlexibleRightMargin | .FlexibleTopMargin | .FlexibleBottomMargin | .FlexibleHeight | .FlexibleWidth

Greetings
Leo

Hello,
thanks for the info!
Im using Xcode 7.0 beta, the syntax has changed for Swift 2.0.
See also: http://www.rockhoppertech.com/blog/swift-2-optionsettype/


add support for extended glob features ({1..10} [a-z]) for patterns in URLs and File Paths.

Description
ubuntu@ip-172-31-38-111:~$ curl https://glaredb.com/install.sh | sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  2216  100  2216    0     0  25141      0 --:--:-- --:--:-- --:--:-- 25181
Detected Platform:
    Operating system: Linux
    Architecture:     x86_64

Downloading:
    https://github.com/GlareDB/glaredb/releases/latest/download/glaredb-x86_64-unknown-linux-gnu.zip
Into:
    /tmp/tmp.1CXE7X4rKv
And extracting to:
    /home/ubuntu/glaredb

######################################################################## 100.0%

Cleaning up temporary file:
    /tmp/tmp.1CXE7X4rKv

Successfully downloaded the GlareDB binary.
You can run it as:
    > ./glaredb
ubuntu@ip-172-31-38-111:~$ ./glaredb
GlareDB (v0.8.3)
Type \help for help.
> \help
\help           Show this help text
\mode MODE      Set the output mode [table, json, ndjson, csv]
\max-rows NUM   Max number of rows to display
\max-width NUM  Maximum width of the output table to display. Defaults to terminal size.
\open PATH      Open a database at the given path
\timing         Toggle query execution runtime display
\quit           Quit this session
> SELECT COUNT(*) FROM 'https://clickhouse-public-datasets.s3.eu-central-1.amazonaws.com/hits_compatible/athena_partitioned/hits_{0..99}.parquet';
Error: External error: Error during planning: Unexpected status code '404 Not Found' for url: 'https://clickhouse-public-datasets.s3.eu-central-1.amazonaws.com/hits_compatible/athena_partitioned/hits_%7B0..99%7D.parquet'

For comparison, ClickHouse works:
ubuntu@ip-172-31-38-111:~$ curl https://clickhouse.com/ | sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  2822    0  2822    0     0  10994      0 --:--:-- --:--:-- --:--:-- 11023

Will download https://builds.clickhouse.com/master/amd64/clickhouse into clickhouse

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  108M  100  108M    0     0  40.3M      0  0:00:02  0:00:02 --:--:-- 40.3M

Successfully downloaded the ClickHouse binary, you can run it as:
    ./clickhouse

You can also install it:
    sudo ./clickhouse install
ubuntu@ip-172-31-38-111:~$ ./clickhouse
Decompressing the binary....
ClickHouse local version <IP_ADDRESS> (official build).

ip-172-31-38-111.eu-central-1.compute.internal :) SELECT count() FROM url('https://clickhouse-public-datasets.s3.eu-central-1.amazonaws.com/hits_compatible/athena_partitioned/hits_{0..99}.parquet')

SELECT count()
FROM url('https://clickhouse-public-datasets.s3.eu-central-1.amazonaws.com/hits_compatible/athena_partitioned/hits_{0..99}.parquet')

Query id: e14ded26-438c-4f02-b7dc-b88dac70b1c9

┌──count()─┐
│ 99997497 │
└──────────┘

1 row in set. Elapsed: 0.757 sec. Processed 98.00 million rows, 3.60 KB (129.51 million rows/s., 4.75 KB/s.)
Peak memory usage: 4.99 MiB.

ip-172-31-38-111.eu-central-1.compute.internal :)

Hey! We pushed a change (on main) and now you should be able to:

file_{4..6}: file_4, file_5, file_6
file_{..2}: file_0, file_1, file_2 (start with 0 if start not provided)
file_{p..r}: file_p, file_q, file_r
file_{..c}: file_a, file_b, file_c (start with a if start not provided)
file_{x..}: file_x, file_y, file_z (end with z if end not provided)
file_{str1,str2,str3}: file_str1, file_str2, file_str3 (the strings can only have alphanumeric letters, underscore (_) and hyphen (-)

Here are some tests for more clarification:
https://github.com/GlareDB/glaredb/blob/4e8c2bc1a5d638baa72cf035ac00b7df2147aec8/crates/datasources/src/object_store/glob_util.rs#L217-L250


Wrong static_assert for function that should be a unique_function.

@Naios

Commit Hash
e3695b4b4fa3c672e25c6462d7900f8d2417a417
Expected Behavior
When trying to make a fu2::function with a move-only object, you get an assert_error with the message "Can't wrap a non copyable object into a fu2::function, try using fu2::unique_function instead."
Actual Behavior
You get an error with "Can't wrap a non copyable object into a unique function!", which is super confusing.
Code at https://github.com/Naios/function2/blob/master/include/function2/function2.hpp#L1262

Yes, you are right, the assertion message is misleading indeed.
Could you open a pull request with a message which would fit best in your opinion?


Adding in ESLint and fixing basic errors to match #104

Very nice !
Can you also:

use a symlink for eslintignore (-> .gitignore)
remove all trace of jshint and jscs (.rc + package.json refs)

That would be very cool.

Done.

Made the checks run the .gitignore like the jshint did before.
Removed the babel-eslint lines as just noise.
Removed mentions of jscs and jshint

Awesome ! Thanks a lot.


WIP: chore: integration tests

A first example of an integration test. I need a bit feedback to see if I should continue this way or if I should seek another way. It is based on https://medium.com/@zorrodg/integration-tests-on-node-js-cli-part-1-why-and-how-fa5b1ba552fe. Can somebody look over this? @bennypowers?

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

Let's try using mock-fs so we don't need to actually write to disk. I have a drop of work prepared in that direction, I'll share it when I get back on that machine.

I'm also having some problems with running directly (from src) the create.js file. Apparently node does not support imports in .js files. :( Any idea? Should I just rename everything to .mjs?

run node with -r esm to support import statements
esm

Hmmm, it fails to create a new process on circleci but works on local 😢.

I'm getting the same error locally that I'm seeing on CI. What command do you use to run this test locally?

The team discussed the issue of integration tests, and we've decided to start with a different approach (#976). We want to do that because it will let us get the tests out sooner while focussing output more than on input, i.e. at this stage we can avoid testing keyboard UI without impacting on the level of confidence we derive from the tests.
That being said, since you've invested time and have experience in that area, We'd happily review a PR which adds that capability on top of the other tests. If you like, you can open a new PR with your existing branch rebased on to the new tests.
We'd also value your input on the other questions of what #976 doesn't address, specifically, a handy way to generate snapshots and a sensible convention on where to save them.
Thanks again for the effort here and we look forward to reviewing future PRs.


To see achievements in personal cabinet

As a registered logged in user I want to see section with achievements so that I will enjoy of ways to receive them.
Mockup:

Acceptance criteria:

Achievements section is available in personal cabinet of user.

This section contains:
a. title "My achievements"
b. Tooltip text "Enjoy to receive an achievements of using the application. It is funny!"
c. Icons of achievements - 9 items

WHEN an user registers and log in for first time all achievements are inactive.

WHEN registered logged in user hovers on each of icons of achievement, tooltip with text how to receive it appears.

Not relevant.


Cli

Prototype for managing the distribution of various activitysim examples.
Problems this change solves:

easily distribute large example datasets without including them in the package
easily specify which folders/files belong in which example

The examples folder now contains a examples_manifest.yaml that describes each example. Using the --list arg shows these examples and some descriptions about them.
$ activitysim create --list
*** Available examples ***

description: 25-zone example for the MTC region
name: example_mtc
num_zones: 25

description: data and configs for the ActivitySim test system
name: example_test
num_zones: 25

description: full data set
name: example_mtc_full
num_zones: a lot

The include: field uses a list of file globs to specify which files get copied to the new folder. If this list contains an http url then the file is downloaded on the fly during the copy.
$ activitysim create -e example_mtc_full -d full_example
copying configs ...
copying configs_mp ...
copying data ...
downloading skims.omx from https://github.com/RSGInc/activitysim/raw/develop/activitysim/examples/example_mtc/data/skims.omx ...
copied! new project files are in /Users/blake.rosenthal/src/activitysim/full_example/example_mtc_full

Problems this change does NOT solve:

maintaining multiple override directories for a given region's setup
managing examples during development, not just for copying into a new directory

could use symlinks

Ideas:

use the override configs/data idea to have directories with the following structure

example_mtc/
  |--configs/
  |--data/  # this is the 25-zone data
  |--output/
  |--configs_mp/
  |--full_data/  # this is the full data
  |--configs_estimation  # configs for estimation, downloaded

Then using the manifest file we could decide which data folder to build for the user. The run command could be much leaner too by only specifying the override folders.
Example:

activitysim run runs the example using the default configs/data folders
activitysim run -c configs_mp uses the default configs/data and overrides with the mp settings
activitysim run -d full_data uses default configs/data and overrides with the full data

This would easily let us support multiple regions moving forward, since each region would have their own versions of these folders.

@blakerosenthal

please change num_zones: a lot to the actual number of zones.
please setup an activitysim org account with an activitysim_resources repository and create the actual data examples.  Then update the example_manifest.yaml to point to it.


Dev

Customize resize script for our needs.

New sizes
Deploy script to easily push the code to lambda

That was meant to be a PR on my fork, apologies.


Disable redirect shadowing for Commerce pages in navigation component

@vladbailescu how can this be tested/verified?


editor - images in markdown cards

Issue Summary
When using the markdown card there's no way to upload images whilst editing and after switching to the preview an image upload form is shown but it doesn't do anything.
Steps to Reproduce

Add a markdown card to a post
In the markdown content add empty image code ![]() (note there's no way to upload at this point)
Click the Save button for the markdown card
The empty image code is now converted to a file upload form but uploading doesn't work/save

Do we have any plans to make images uploadable in markdown cards? Considering the migration path will likely involve putting existing post markdown into a markdown card I expect it's something that will come up pretty often?

Thanks @kevinansfield, you can currently upload an image by dragging and dropping it into the markdown, similar to how github works. We also have plans to extend the toolbars for each card but not for the first beta.

upload an image by dragging and dropping it into the markdown

this is more than enough for markdown cards imo 👍

[ ] Remove useless upload form in preview.
[ ] Indicate to the user on drag that the markdown card is a drop target.
[ ] Fix the drop problems in Firefox.
[ ] Add an image upload tool into the markdown card toolbar (probably after the first beta).

I have a feeling that the drop issue in firefox is because the editor also accepts image drops and the event is being caught at the root rather than the drop target that we want.

Closing in favour of https://github.com/TryGhost/Ghost/issues/8314


Add Cookies to openbullet 2

Hey guys I was working with openbullet 1 i make config normally but i I wanted an experience openbullet 2 but i dont understand it i dont know how to add cookies on it
The cookies is : bsid

It's data.COOKIES["bsid"] please read the LoliCode documentation on the forum or inside the program itself by clicking on the icon in the lower left corner. Also this is the wrong repo for this :3


java.lang.ArrayIndexOutOfBoundsException: -1 when getting block id in chunk by cords

i try to use this methods to get block id:
public static int getIdv2(double cx, double cy, double cz) {
int x = (int) Math.floor(cx), y = (int) Math.floor(cy), z = (int) Math.floor(cz);
Chunk chunk = getChunk(x / 16, y / 16, z / 16);
return chunk.getBlocks().getBlock(x, y, z);
}
public static int getId(double x, double y, double z) {
    double cx = x / 16, cy = y / 16, cz = z / 16;
    Chunk c = getChunk((int) Math.floor(cx), (int) Math.floor(cy), (int) Math.floor(cz));
    int b = c.getBlocks().getBlock((int) x % 16, (int) y % 16, (int) z % 16);
    return b;
}

where method getChunk()->
public static Chunk getChunk(int x, int y, int z) {
for (ChunkColumn cl : Main.chunkColumns) {
if (cl.x == x && cl.z == z) {
if (cl.chunks[y] == null || cl.chunks[y].getBlocks() == null) {
continue;
}
return cl.chunks[y];
}
}
return null;
}
and cl.chunks is create from packet ServerMultiChunkDataPacket and ServerChunkDataPacket
what i do wrong first method return indexOutOfounds -1 and second return ~-210?

The first method, getIdv2, does not make sure the coordinates passed to getBlock are between 0 and 15 like the second one does. As for the return value, I'm not sure exactly how your chunk code is set up, but make sure you're not using the raw packed ID and data values.

i will paste more code, First time I use packects in minecraft and it's a bit hard for me xD
in PacketReceivedEvent
if (event.getPacket() instanceof ServerChunkDataPacket) {
ServerChunkDataPacket p = event.getPacket();
MinecraftBots.chunkColumns.add(new ChunkColumn(p.getX(), p.getZ(), p.getChunks()));
}
if (event.getPacket() instanceof ServerMultiChunkDataPacket) {
for (int i = 0; i < event.getPacket().getColumns(); i++) {
int chunkX = event.getPacket().getX(i);
int chunkZ = event.getPacket().getZ(i);
MinecraftBots.chunkColumns.add(
new ChunkColumn(chunkX, chunkZ, event.getPacket().getChunks(i)));
}
}
ChunkColumn (im use a bit code from https://github.com/phase/PhaseBot)
https://pastebin.com/Jun5PVuC
and i think it is all :)
and this is my stack when i use method getId()
java.lang.ArrayIndexOutOfBoundsException: -208
at org.spacehq.mc.protocol.data.game.ShortArray3d.get(ShortArray3d.java:22)
at org.spacehq.mc.protocol.data.game.ShortArray3d.getBlock(ShortArray3d.java:30)
at chunks.ChunkColumn.getId(ChunkColumn.java:42)
line 42:         int b = c.getBlocks().getBlock((int) x % 16, (int) y % 16, (int) z % 16);

Ahh, I think I might know what's going on. Make sure that if you're looking for a block at negative coordinates, the calculated chunk coordinates (0-15) do not end up negative.

You're right
on negative cords
My Position: -2.5,66.0,38.5
this is chunk pos: -2 1 6 Should I use Math.abs? to change -2 to 2? is good idea?

I would recommend using "& 15" instead of "% 16"

when i change this:
int b = c.getBlocks().getBlock((int) x % 16, (int) y % 16, (int) z % 16);
to:
int b = c.getBlocks().getBlock((int) x & 15, (int) y & 15, (int) z & 15);
id on postive cords is good but on negative now return bad id f.e
when stay on cobblestone return 0
when stay on "podzol"return good id: 3
when stay on "green stained clay" (id: 159) return id:3

I was guessing you were using my code ;)
Are you account for block change packets? I had a hard time getting all of this working.

@phase i don't understand your question but if you ask about seting block after get ServerMultiBlockChangePacket this packet, yes i do this with (your function)
https://pastebin.com/53P6js88
Btw. is any way to send pw to you about your bots?

Try using ">> 4" instead of "/ 16" for the chunk coordinates as well.

@Steveice10  when i change this /16 to >> 4
i have error: bad operand types for binary operator >>
Chunk d = getChunk((int) Math.floor(x >> 4), (int) Math.floor(x >> 4), (int) Math.floor(x >> 4));

Put the ">> 4" outside of floor, operating on the int result.

@Steveice10  with this code:
Chunk d = getChunk((int) Math.floor(cx) >> 4, (int) Math.floor(cy) >> 4, (int) Math.floor(cz) >> 4);
when bot stay on grass block i got id: 7 on negative cords

Can you try inserting a print out of the chunk coordinates + block coordinates within the chunk and verify that they match up with the position of the block in question?

@Steveice10  how can i do this? i try somethink like this:
for (int i = 0; i < chunks.length; i++) {
Chunk chunk = chunks[i];
for (Short s : chunk.getBlocks().getData()) {
System.out.println(x + " " + i + " " + z + " " + s);
}
}
but i don't have clue how to make this, i will check tomorrow answer now is too late for programing xD

In getId, print the results of values like "(int) Math.floor(x >> 4)" and "(int) x & 15".

@Steveice10
X|Y|Z: -2.5 65.0 40.5 <- bots cords -1 on Y
X|Y|Z & 15: 14 1 8
X|Y|Z >>4 :  -1 4 2
Block ID: 0 <- but stand on cobblestone
X|Y|Z: 8.5 65.0 40.5
X|Y|Z & 15: 8 1 8
X|Y|Z >>4 :  0 4 2
Block ID: 0 <- but stand on cobblestone
when i change
getChunk((int) Math.floor(x) >> 4, (int) Math.floor(y) >> 4, (int) Math.floor(z) >> 4);
to:
Chunk c = getChunk((int) Math.floor(cx), (int) Math.floor(cy), (int) Math.floor(cz));
where cx is x/16;
X|Y|Z: 8.5 65.0 40.5
X|Y|Z & 15: 8 1 8
X|Y|Z / 16 :  0 4 2
Block ID: 4 <- correct value
on negative:
X|Y|Z: -2.5 65.0 40.5
X|Y|Z & 15: 14 1 8
X|Y|Z >>4 :  -1 4 2
Block id: 0 <- stand on cobblestone :/

One thing I can think if is that you should make sure that, if you receive another chunk packet containing a column, make sure to remove the existing column you have stored for those coordinates to avoid duplicates. Otherwise, I'm not sure what the problem is.

@Steveice10 i start removing columns
if (event.getPacket() instanceof ServerChunkDataPacket) {
ServerChunkDataPacket p = event.getPacket();
ChunkColumn old = ChunkColumn.getChunkColumnByCords(p.getX(), p.getZ());
if (old != null) {
System.out.println("removing old chunk column");
MinecraftBots.chunkColumns.remove(old);
}
MinecraftBots.chunkColumns.add(new ChunkColumn(p.getX(), p.getZ(), p.getChunks()));
}
like this but still id is wrong on negative cords;/

@Steveice10 Have you any idea what i should do? or maybe you can write example code to check id block and add to examples in repo? i think many people can use this :)

The thing is, you're using an outdated version of MCProtocolLib, so none of this would apply to the library as it is now. The chunk format is different now from how it used to be.

Going to close this since it applies to an outdated library version.


Support adding a requirements.txt file in feedstock dir

If a requirements.txt file is found in the feedstock directory (same place meta.yaml is), it'll be just passed to apache beam which will install all packages from it in each container before starting work

We currently still need to make sure the environment where pangeo-forge-runner itself is running from matches this environment accurately.


[FEATURE] Add ability to change hostname without also having to change the port

--api-port seems the only way to change the clusters.cluster.server: server name in the kubeconfig.  However, the port is forced and server name is optional.  I'd like the ability to set the  hostname without having to also set the port.  This would be to preserve the random port created.

Hi @yamlCase , thanks for opening this issue!
I think we could easily solve this without changing to much logic in k3d by simply honoring a k3d.host.override label when pulling the kubeconfig :thinking:

This works now in v 4.0 by using the configuration file

This works now in v 4.0 by using the configuration file

@yamlCase , is the config file a good option for this case? It helps us keep the CLI clean.

I think this would be good enough to unblock our particular issue.  A lot of us are coming from the "docker" way of building a command by concatenating  options so ideally it would be best that every config parameter has a corresponding argument. Introducing a config file means mixed config unless people switch over to a docker-compose style.  I'm not opposed to this approach if the shift is well thought out.
Thank you for all the hard work put in to k3d and k3s!  This little project has made it very easy to do app/chart development anywhere on anything and know I won't have to fiddle with prod cluster at all.  Just merge to master and log off for the day.

You're right there :thinking:
Maybe --api-host would be an option to specifically only override the part that goes into the kubeconfig and is unrelated to the actual port mapping. Then this flag and --api-port are combined in the kubeAPI field in the config file. WDYT?
Thanks for the awesome feedback :)

I think that will work.

@yamlCase actually you can already do this by using e.g. --api-port my.host.localhost:random (random keyword as the port).
We could simplify this to e.g. only have to specify the name and as we detect that no port is given, we default to random. That way, we don't have to touch much code or change any existing functionality.


Lift and Photon search for database in different folders

Given a schema
datasource db {
  provider = env("PRISMA_PROVIDER")
  url      = env("PRISMA_URL")
}

generator photon {
  provider = "photonjs"
}

model Role {
  id    String @default(cuid()) @id
  role  String @unique
}

and package.json
{
  "private": true,
  "scripts": {

    "dev": "PRISMA_PROVIDER=sqlite PRISMA_URL=file:./dev.db prisma2 dev",
    "seed": "PRISMA_PROVIDER=sqlite PRISMA_URL=file:./dev.db ts-node prisma/seed.ts"
  },
  "dependencies": {
    "prisma2": "^2.0.0-preview-6.1",
    "ts-node": "^8.3.0",
    "typescript": "^3.5.3"
  }
}

and seeding script
import Photon from "@generated/photon";

new Photon().roles
  .create({
    data: {
      role: "DEFAULT"
    }
  })
  .then(console.log)
  .catch(console.error)
  .finally(() => process.exit());

when I run prisma2 dev and seed script
yarn dev
yarn seed

I see an error
Invalid `photon.()` invocation in /Users/roman.paradeev/workspace/photon-tslint-bug/prisma/seed.ts:4:4
Reason: Error in connector: Error querying the database: no such table: dev.Role

and I see two databases created.

<project root>/prisma/dev.db created by prisma2 dev
<project root>/dev.db created by ts-node prisma/seed.ts

When I change PRISMA_URL for seed script
    "dev": "PRISMA_PROVIDER=sqlite PRISMA_URL=\"file:./dev.db\" prisma2 dev",
    "seed": "PRISMA_PROVIDER=sqlite PRISMA_URL=\"file:./prisma/dev.db\" ts-node prisma/seed.ts"

seeding script runs without errors.

I can confirm this.
Reproduction: https://github.com/harshit-test-org/issue-prisma2-356

@pantharshit00 : Does the usage of sqlite from Photon create another DB? (which is normal SQLite connector behavior)
I am interested in knowing when does the first DB gets created (probably during lift up?) and when does the 2nd one get created (probably during yarn seed).

I am also not sure how the database was created here via the seed script.
I think photon should not perform any kind of database creation or migration operations.
cc @timsuchanek

Thanks, so, you confirm that indeed the seed script creates the SQLite file right? I guess that is normal behavior of SQLite connectors (at least in Python), maybe node does the same.
Which essentially boils this down to a path issue, where the expected path is counter-intuitive.

Lift is working with Prisma schema file as the CWD. Photon works with the process CWD.

@pantharshit00 Do you agree with this?

Yes, I agree with this

The provided env("PRISMA_URL") value should always be relative to the schema.prisma file.

Still broken for me.

I can confirm this is still an issue.

My apologies, a package wasn't updated properly. It's fixed now in<EMAIL_ADDRESS>

I can reproduce a variation of this with<EMAIL_ADDRESS>binary version: f39ee6664e1d7cf5054e351f3f1dfcaf52402712
With this in my schema file (located in <root>/prisma/dev.db)
datasource db {
  provider = "sqlite"
  url      = "file:dev.db"
}

Lift performs migrations in prisma/dev.db
However, running Photon query creates a new DB in <root> folder.

Fixed in latest alpha.


Firebase Adapter Error Module not found: Can't resolve '@next-auth/firebase-adapter'

https://next-auth.js.org/adapters/firebase#options
I'm Following These Step and got Error Message Like This.
Please Help.

please use the search before opening an issue
https://github.com/nextauthjs/adapters/issues/99


:bug: Enhance ddd exceptions

:tada: This PR is included in version 1.9.4 :tada:
The release is available on:

v1.9.4
GitHub release

Your semantic-release bot :package::rocket:


CI: detect flakes due to packagemanifest not found and cluster unreachable

83693b8 - CI: run: Remove old single-worded entrypoint definitions

af9948c - CI: run: detect when cluster became unreachable during the testing

6c9b3d0 - toolbox: expose 'artifact_dir' as ansible variable

And ensure it is set in 'check_deps' role.

9a51d1a - gpu_operator_deploy_from_operatorhub: mark packagemanifests/gpu-operator-certified not found as flake

6d4b600 - nfd_operator_deploy_from_operatorhub: mark packagemanifests/nfd not found as flake

dd01e42 - docs: introduce 'ci' section and document special files

/lgtm other than a few typos
/hold

/lgtm other than a few typos
/hold

thanks for the proof reading @omertuc , all comments have been addressed.
(I think the number of typo betrays that I forced myself into writing these documentation lines ;-)

/test gpu-operator-e2e

/test gpu-operator-e2e
On Wed, Jun 30, 2021 at 1:51 PM openshift-ci[bot] @.***>
wrote:

@kpouget https://github.com/kpouget: The following test failed, say
/retest to rerun all failed tests:
Test name Commit Details Rerun command
ci/prow/gpu-operator-e2e a3800c0
https://github.com/openshift-psap/ci-artifacts/commit/a3800c0c55fd565b32b3f297260538ab9caa6859
link
https://prow.ci.openshift.org/view/gs/origin-ci-test/pr-logs/pull/openshift-psap_ci-artifacts/205/pull-ci-openshift-psap-ci-artifacts-master-gpu-operator-e2e/1410189929161428992 /test
gpu-operator-e2e
Full PR test history
https://prow.ci.openshift.org/pr-history?org=openshift-psap&repo=ci-artifacts&pr=205.
Your PR dashboard
https://prow.ci.openshift.org/pr?query=is:pr+state:open+author:kpouget.
Instructions for interacting with me using PR comments are available here
https://git.k8s.io/community/contributors/guide/pull-requests.md. If
you have questions or suggestions related to my behavior, please file an
issue against the kubernetes/test-infra
https://github.com/kubernetes/test-infra/issues/new?title=Prow issue:
repository. I understand the commands that are listed here
https://go.k8s.io/bot-commands.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/openshift-psap/ci-artifacts/pull/205#issuecomment-871336533,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABZVQIUPXQFJ3NIAIVDQHLLTVMANHANCNFSM47R2PP2Q
.

/lgtm other than a few typos
/hold

@omertuc good for merging this one?
all the comments (typos) have been addressed

/lgtm

/approve
On Thu, Jul 1, 2021 at 2:42 PM Omer Tuchfeld @.***>
wrote:

/lgtm
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/openshift-psap/ci-artifacts/pull/205#issuecomment-872214060,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABZVQIUTJNMVMAZTDGRMWKLTVRPETANCNFSM47R2PP2Q
.

/hold cancel

/test images
On Thu, Jul 1, 2021 at 5:54 PM openshift-ci[bot] @.***>
wrote:

@kpouget https://github.com/kpouget: The following test failed, say
/retest to rerun all failed tests:
Test name Commit Details Rerun command
ci/prow/images 46fc281
https://github.com/openshift-psap/ci-artifacts/commit/46fc2812fca0edb5c95a0765819f20f420c7870f
link
https://prow.ci.openshift.org/view/gs/origin-ci-test/pr-logs/pull/openshift-psap_ci-artifacts/205/pull-ci-openshift-psap-ci-artifacts-master-images/1410625234737827840 /test
images
Full PR test history
https://prow.ci.openshift.org/pr-history?org=openshift-psap&repo=ci-artifacts&pr=205.
Your PR dashboard
https://prow.ci.openshift.org/pr?query=is:pr+state:open+author:kpouget.
Instructions for interacting with me using PR comments are available here
https://git.k8s.io/community/contributors/guide/pull-requests.md. If
you have questions or suggestions related to my behavior, please file an
issue against the kubernetes/test-infra
https://github.com/kubernetes/test-infra/issues/new?title=Prow issue:
repository. I understand the commands that are listed here
https://go.k8s.io/bot-commands.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/openshift-psap/ci-artifacts/pull/205#issuecomment-872359509,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABZVQIRZQCKP6HYL53YC3X3TVSFTFANCNFSM47R2PP2Q
.


Added force_load for Darwin libgrpc dynamic libraries resolves missing _gpr_cpu_num_cores (#5219)

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

@ctiller what do you think of this approach?  the other alternative I could think of is create another variable like darwin_common to limit the places where force_load related logic ends up.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok to test.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok to test.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.


Eclat-BFC

Hello! I don't really know what I need to submit a ent request, but here's the login page:
https://cas.eclat-bfc.fr/login?service=https:%2F%2F0250007X.index-education.net%2Fpronote%2Feleve.html
I tried to implement it on my own but I don't really get how i'm supposed to do it

Looks like it uses the same base as the Occitanie ENT, you might wanna try to use it. And if it doesn't work, try implementing the code I sent on #62

It in fact does use ATEN to login. But right now I did not implemented any other way of logging in. So you will have to die it yourself, or wait for the ENT update I'm working on.


Need to support various port numbers changed dynamically for webOSTVService

webOS is applying to various areas such as Auto, OSE. Although webOS TV is using fixed port number 3001, it can be changed dynamically In the other device platforms. So it is needed to support various port numbers changed dynamically for webOSTVService by detecting them during service discovery procedure.

Merged in c4ec9071567f977929d18bec696b486694ddc4cc


Include a link to a list of images

We have a list of images using at least one label-schema label on MicroBadger - would be nice to link to it from the label-schema.org page

@mhausenblas I didn't want to just go ahead and link to our own site without some independent approval! You think this is OK?


Influencer sign up page

We need to capture the following:

Full name
Image
email
Bio
login name
password

Create a sign-up page view with functionality that POSTs an object with this data to endpoint /signup. Expect POSTs to endpoint /signup to create a new influencer object in mongo.  Mockup forthcoming, but feel free to prototype a simple form until we have one.
When a user is forwarded to this page after an unsuccessful signup attempt, we will send an error message to the client-side which needs to be displayed.

We have a signup page, but we're missing a lot of these elements.


Input type fields that are not set are serialized with null

Given the schema:
type Movie {
  title: String
}

input MovieOptions {
  limit: Int
  skip: Int
}

type Query {
  movies(options: MovieOptions): [Movie!]!
}

And the request builder:
GraphQLQueryRequest(
    MoviesGraphQLQuery(options = MovieOptions(skip = 1)),
    MoviesProjectionRoot().title()
)

will generate the request:
query {movies(options: {limit:null,skip:1){ title } }

Since the server interprets null differently than an unset value in certain cases, we need a way to distinguish these states in the builder.
Expected query:
query {movies(options: {skip:1}){ title } }

As there are use-cases where a null argument is desired. I would suggest to generate an additional method to reflect these explicit null values.
E.g.
GraphQLQueryRequest(
    MoviesGraphQLQuery(options = MovieOptions(skip = 1, limitNull = true)),
    MoviesProjectionRoot().title()
)

Thanks for reporting this. Have you tried this with the latest version of GraphQLClient from the framework? The behavior has been modified to avoid serializing null values altogether. That might address your original use case. However, as you pointed out, we do need a way to specify the option to serialize values as null, so will look into adding that as a new feature.

In this PR of the DGS Client we changed the behavior as follows:

When a field is explicitly set to null by calling the field's builder method, it's serialized as null.
For fields that are null and not explicitly set, they are not serialized at all.


Update Helm chart metadata for recent changes

This PR is made as a follow-up to the additions added in PR #13945, which added the functionality to override livenessProbe and readinessProbe in our Helm chart.
This PR just updates Chart.yaml and CHANGELOG.md to reflect these changes.

Codecov Report

Merging #13964 (ca5966c) into master (4dc41e8) will decrease coverage by 25.89%.
The diff coverage is n/a.

@@              Coverage Diff              @@
##             master   #13964       +/-   ##
=============================================
- Coverage     43.26%   17.36%   -25.90%
+ Complexity     9151     2681     -6470
=============================================
  Files          1413     1413
  Lines         81879    81879
  Branches       9913     9913
=============================================
- Hits          35427    14222    -21205
- Misses        43497    66403    +22906
+ Partials       2955     1254     -1701

Impacted Files
Coverage Δ

...mon/src/main/java/alluxio/shell/CommandReturn.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...mon/src/main/java/alluxio/util/ExceptionUtils.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...n/src/main/java/alluxio/wire/AlluxioProxyInfo.java
0.00% <0.00%> (-100.00%)
:arrow_down:

.../src/main/java/alluxio/wire/AlluxioMasterInfo.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...src/main/java/alluxio/job/meta/JobIdGenerator.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...n/src/main/java/alluxio/stress/BaseParameters.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...src/main/java/alluxio/client/UnderStorageType.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...main/java/alluxio/underfs/options/ListOptions.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...main/java/alluxio/worker/block/io/BlockReader.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...main/java/alluxio/worker/block/io/BlockWriter.java
0.00% <0.00%> (-100.00%)
:arrow_down:

... and 663 more

Continue to review full report at Codecov.

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

@jiacheliu3 I'll wait for your approval before merging ;)

oops there's a conflict, could you take a look? @ZhuTopher

alluxio-bot, merge this please

alluxio-bot, merge this please


support skip_rows for CsvFormat

Is your feature request related to a problem or challenge?
Some tools generate CSVs that contain some extra data at the top or bottom, such as bank statement exports
"Account Name : REDACTED"
"Account Number : REDACTED"
"Date Range : 01/01/2023-12/31/2023"
Transaction Date,Posted Date,Category,Debit
2023-01-01,2023-01-01,Payment/Credit,100.0

I'd like a way to skip the first n rows
Describe the solution you'd like
add a new option to CsvFormat for skipping rows
CsvFormat::default().with_skip_rows(2)

Describe alternatives you've considered
none that I can think of.
Additional context
https://github.com/GlareDB/glaredb/issues/2035

It might also make sense to add this upstream to arrow-rs (though we can add it first to DataFusion and then upstream it)

Likely there is a support on Seek::StartFrom on a file level
                let decoder = if is_whole_file_scanned {
                        // Don't seek if no range as breaks FIFO files
                        file_compression_type.convert_read(file)?
                    } else {
                        file.seek(SeekFrom::Start(result.range.start as _))?;
                        file_compression_type.convert_read(
                            file.take((result.range.end - result.range.start) as u64),
                        )?
                    };

But imagine if there is parallel read for the source containing multiple csv files, how skip_rows should work in this case? 🤔

I am interested in it.
If there is not someone working with it, you can assigned it to me @alamb

I am interested in it.
If there is not someone working with it, you can assigned it to me @alamb

@alamb Do not forget it ~~~~

Thanks @Tangruilin I think we need to find out how to deal with parallel reads and multiple files prior to development

I don't know of anyone working on it @Tangruilin  -- I have assigned it to you; As @comphead  says, this is probably a task that needs some design prior to code

I think the idea of skipping N rows on the file level doesn't make much sense. What we can probably do is to skip N rows on dataframe level, but again there is no guarantee which exactly 2 rows will be skipped because ordering, shuffling, etc. IMHO it looks more a user task than DataFusion task as the user has more context when executing the query
I checked Spark but I haven't found the embedded functionality probably because of concerns above
@universalmind303 what is your vision as the ticket owner?

I think the idea of skipping N rows on the file level doesn't make much sense. What we can probably do is to skip N rows on dataframe level, but again there is no guarantee which exactly 2 rows will be skipped because ordering, shuffling, etc. IMHO it looks more a user task than DataFusion task as the user has more context when executing the query

If I understand the issue correctly, skipping rows at the DataFrame level would not work as the file wouldn't even be able to be parsed into a DataFrame in the first place, due to the initial rows being not CSV rows.
Is it possible to specify to skip specific file lines, instead of the first N rows of a file, perhaps? Though I'm not sure if that might be any simpler than trying to skip the first N rows.

I think you can skip lines as I posted the code above https://github.com/apache/arrow-datafusion/issues/8824#issuecomment-1907167127
But my concern is for reading multiple files, is it expected to skip lines for all the files? but what if the format is mixed so the user'll lose some of data silently.
We can think of lets skip unparseable rows, but this solution has tons of nuances

I don't know of anyone working on it @Tangruilin -- I have assigned it to you; As @comphead says, this is probably a task that needs some design prior to code

Maybe I can write a draft which do not think about parallel read, and then we discuss about it.

I don't know of anyone working on it @Tangruilin -- I have assigned it to you; As @comphead says, this is probably a task that needs some design prior to code

Maybe I can write a draft which do not think about parallel read, and then we discuss about it.

This task still has some unclear parts, I would happy if you describe your proposal in comments

I came across this issue since I was looking for a way to deal with CSV files containing comments (in my case: lines starting with # ). Please let me know if I should open a new issue for that.
I was originally looking for a way to replace the reader or hook after the builtin one, but from reading above comments this probably does not fit datafusion's input handling.
Skip first n rows wouldn't help in my case, but if there was a way to hook into the CSV reader by providing a line-based filter function it might (naively: a CsvOptions field like filter: FnOnce(&str) -> bool). Maybe something like this could even be generalized to a line-based transformer function a la filter_map (probably would need to return some Option<Cow> to not penalize use cases which only filter, but do not transform). If OP's lines to skip can be clearly identified this might be able to address their use case as well.

I came across this issue since I was looking for a way to deal with CSV files containing comments (in my case: lines starting with # ). Please let me know if I should open a new issue for that.

I think a new issue would be good as this one describes something different

I was originally looking for a way to replace the reader or hook after the builtin one, but from reading above comments this probably does not fit datafusion's input handling.

I think you would have to provide your own TableProvider / format for the ListingTable provider if you wanted to do this today

Skip first n rows wouldn't help in my case, but if there was a way to hook into the CSV reader by providing a line-based filter function it might (naively: a CsvOptions field like filter: FnOnce(&str) -> bool). Maybe something like this could even be generalized to a line-based transformer function a la filter_map (probably would need to return some Option<Cow> to not penalize use cases which only filter, but do not transform). If OP's lines to skip can be clearly identified this might be able to address their use case as well.

Since the readers are based on streams of data, I do wonder if we could implement some sort of filtering that happened prior to parsing that would let you transform the input however you wanted 🤔


Dual Write System Requirements

On the system requirements DOCS page for Dual Write there's a line stating - "Dual-write setup is not supported on trial instances of Finance and Operations apps". Can you clarify trial in this context please? Does a trial instance include Demo environments for F&O Partners?

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

ID: 4cdfc828-1858-2f25-2a41-524da2577ea0
Version Independent ID: 2955b17e-f122-1f22-5380-1e7467af71d2
Content: System requirements for dual-write - Finance & Operations | Dynamics 365
Content Source: articles/fin-ops-core/dev-itpro/data-entities/dual-write/dual-write-system-req.md
Service: dynamics-ax-platform
Product: ****
Technology: ****
GitHub Login: @RamaKrishnamoorthy
Microsoft Alias: ramasri

@simondudding, thanks for the feedback.
@RamaKrishnamoorthy, please review.

Bug #479878 logged to track this issue.

Trial refers to the F&O trial experience you get through LCS. Trial does not refer to Dev/Test instance that comes with valid license.

Trial is the well know term used for non-licensed instance. We cannot explain it more on the documentation.


Describe the enhancement
This is a workflow test
Dependencies
No response
Additional Context
No response
Acknowledgment

[X] I have reviewed the existing enhancements and confirm that this suggestion is unique.

Fixed it - eassssyyy


HSEARCH-2076 Upgrade to Hibernate ORM 5.0.6 & other WildFly 10.0.0.CR…

…5 upgrades

https://hibernate.atlassian.net/browse/HSEARCH-2076

for master and 5.5

I didn't check the versions, but it seems right ;) Can you merge it yourself, please? Thx!

@gunnarmorling sure, thanks


Add build for use in nodejs environment

This builds as a node module leaving the index.js as the entry point otherwise.  WebSocket is native to the browser but the ws package is imported for node

Going to the brute-force mode with https://github.com/fiatjaf/nostr-tools/commit/d355bbead48651ad2e304ff43409f8bd8bb4d0dd. I think that's what everybody does. Adding this polyfill for everybody. Let's hope the library authors know what they're doing. Should fix this.


ARROW-15300: [C++] Update Skyhook for async dataset interfaces

After the synchronous dataset interfaces were removed in ARROW-13554, we need to update Skyhook to use the async interfaces. For now, we just use the same synchronous path as before, but on an I/O thread.

@github-actions crossbow submit -g test-skyhook-integration

@github-actions crossbow submit test-skyhook-integration

@github-actions crossbow submit test-skyhook-integration

@JayjeetAtGithub I'm trying to update this since we removed an API for 7.0.0, do you have any idea about the failure here? https://github.com/ursacomputing/crossbow/runs/4778154378?check_suite_focus=true
Running main() from /build/cpp/googletest_ep-prefix/src/googletest_ep/googletest/src/gtest_main.cc
[==========] Running 5 tests from 1 test suite.
[----------] Global test environment set-up.
[----------] 5 tests from TestSkyhookCLS
[ RUN      ] TestSkyhookCLS.SelectEntireDataset
[       OK ] TestSkyhookCLS.SelectEntireDataset (287 ms)
[ RUN      ] TestSkyhookCLS.SelectFewRows
[       OK ] TestSkyhookCLS.SelectFewRows (98 ms)
[ RUN      ] TestSkyhookCLS.SelectFewColumns
[       OK ] TestSkyhookCLS.SelectFewColumns (120 ms)
[ RUN      ] TestSkyhookCLS.SelectRowsAndColumnsOnPartitionKey
[       OK ] TestSkyhookCLS.SelectRowsAndColumnsOnPartitionKey (96 ms)
[ RUN      ] TestSkyhookCLS.SelectRowsAndColumnsOnlyOnPartitionKey
[       OK ] TestSkyhookCLS.SelectRowsAndColumnsOnlyOnPartitionKey (84 ms)
[----------] 5 tests from TestSkyhookCLS (687 ms total)

[----------] Global test environment tear-down
[==========] 5 tests from 1 test suite ran. (688 ms total)
[  PASSED  ] 5 tests.
malloc_consolidate(): invalid chunk size
/arrow/ci/scripts/integration_skyhook.sh: line 135: 16922 Aborted                 (core dumped) debug/skyhook-cls-test

(I'm also having trouble with it locally, as it just hangs in TestSkyhookCLS.SelectEntireDataset, but that seems to be a problem with my own setup.)

Hmm, I can get it running locally now, interestingly that crash doesn't happen all the time. Under gdb, it appears this happens during thread shutdown…during which there's not much info left about what's going on, unfortunately.
AddressSanitizer does report a heap-use-after-free after test exit. I compared to the commit prior to 2e8b8365d602d8cb14a37ea4f349824549e28e8f and saw that it also has a heap-use-after-free, so it seems unrelated to what's going on here. (Or possibly, it's just that the changes here are just exposing it.)

@github-actions crossbow submit test-skyhook-integration

Ok, a little CMake tweak appears to fix it! Should be ready for review now.

@lidavidm Thanks a lot for working on this. Sorry for the late reply. Let me take a look.

Looks like the tests are passing. Please let me know if I can help with something. Thanks.

Ah, yes, I managed to fix the tests later on. Does the implementation look reasonable to you @JayjeetAtGithub? It's mostly the same code ported to the new interfaces.

@github-actions crossbow submit test-skyhook-integration


Broker re-places orders when gRPC stream is unavailable

Description
A few sentences describing the overall goals of the pull request's commits.
Related PRs
List related PRs if applicable
Todos

[x] Tests
[x] Documentation
[x] Link to Trello

https://trello.com/c/EyhaVmbL/901-re-place-orders-that-are-cancelled-by-the-relayer-going-down

 Re-place orders that are cancelled by the Relayer going down

 Re-place orders that are cancelled by the Relayer going down


Improve the policy template details card on large screens

On large screens, the policy template details card now spans 4 rows instead of 6 rows. This reduces the awkward space between the columns.

/cc @yiraeChristineKim

/override ci/prow/unit-tests-sonarcloud


modification of the importance to make it a bubble

Sorry didn't see the code, so I changed it so that it will make a bubble instead of just important text. Hope this works.

Fair enough, it may take a little while getting used to if you have not seen much of the source text formatted in MarkDown before. Also, ref. #5709 for the previous PR where the formatting got overlooked.


how to adapt synlig

I need to use the synlig plugin to read SystemVerilog files. However, I also require my own custom Yosys 0.13 version. Is there a way to adapt the synlig plugin to work with my custom Yosys 0.13?
/----------------------------------------------------------------------------
|                                                                            |
|  yosys -- Yosys Open SYnthesis Suite                                       |
|                                                                            |
|  Copyright (C) 2012 - 2020  Claire Xenia Wolf<EMAIL_ADDRESS>       |
|                                                                            |
|  Permission to use, copy, modify, and/or distribute this software for any  |
|  purpose with or without fee is hereby granted, provided that the above    |
|  copyright notice and this permission notice appear in all copies.         |
|                                                                            |
|  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES  |
|  WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF          |
|  MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR   |
|  ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES    |
|  WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN     |
|  ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF   |
|  OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.            |
|                                                                            |
----------------------------------------------------------------------------/
Yosys 0.13+15 (git sha1 UNKNOWN, gcc 9.4.0-1ubuntu1~20.04.2 -fPIC -Os)

Unfortunately there is no easy way to do this, yosys changes quite a lot between releases, supporting even a few recent versions is quite hard, adjusting to such an old release (like 0.13) would probably require a lot of work.
I assume you might already know this if you maintain your custom fork?
You are of course welcome to try, start by checking out the yosys submodule at the release you need and try to compile. Then start resolving all the API changes to make it compile. Once it compiles, we have quite an extensive regression tests suite which you are welcome to use to make sure everything still works as expected after your changes.
In the end it might be easier to port your custom changes to a more recent yosys version.


Workflow stored in private repository no longer works

What happened?
Recently, within the last three days, this plug-in reports incorrect parameters for included workflows. Previously it did not report any errors. Nothing has changed in either the parent or included workflows.
I have my private repo authenticated in Rider, no changes there.
I'm not sure whether the Rider 2023.2.2 release or the 3.0.0 release of this extension broke this functionality as they came out the same day.
Relevant log output
Unsure how to get logs
Operating System
Ubuntu
Plugin Version
3.0.0
IDE Name and Version
Rider 2023.2.2
Example of parent file include (see the position of the # ERROR SQUIGGLES ON THE BELOW comment):
  test:
    uses: user/repo/.github/workflows/sub-dotnet-test-simple.yaml@master
    permissions:
      contents: read
      packages: read
    with:
      # ERROR SQUIGGLES ON THE BELOW
      TEST_PROJECT: 'MyProj.Tests'

example of user/repo/.github/workflows/sub-dotnet-test-simple.yaml@master:
name: .NET Simple Test

on:
  workflow_call:
    inputs:
      TEST_PROJECT:
        required: true
        type: string

@erichiller thanks for reporting the issue. 👍
You are the first reporter 🥇 after a huge refactoring.
I can confirm, its cause of the big 3.0.0 release. I am sorry for that.
The fix is on the way. You can update as soon as the version 3.0.1 gets published.
Regarding logs: this plugin has no logs. But it has a cache where you can see what the plugin knows:

Windows: %APPDATA%\JetBrains\<JETBRAINS_PRODUCT >\options\githubActionCache.xml
MacOs: ~/Library/Application Support/JetBrains/<JETBRAINS_PRODUCT>/options/githubActionCache.xml

See also JetBrains Plugin Cache Directories

@erichiller Version 3.0.1 is now published. Can you check if the issue is fixed for you?
You might have to click on refresh for the loaded private workflows, as the cache refreshes every two weeks.

@YunaBraska All is working great now. Thank you for the speedy fix!


Test on dask stream

I run this simple test code on dask stream, it appears that the dask stream doesn't run parallel but still serial, like the basic stream, I'm not sure if I was making a mistake on the usage of dask stream:
from dask.distributed import Client
from streamz import Stream
import time

client = Client(processes=False)

def inc(x):
    time.sleep(1)
    return x + 1

source = Stream()
a = source.scatter().map(inc).gather().sink(print)

source.visualize(rankdir='LR')

client

%%time
for i in range(5):
    source.emit(i)

1
2
3
4
5
CPU times: user 495 ms, sys: 64 ms, total: 559 ms
Wall time: 5.11 s

You need to use a buffer node see the documentation here https://streamz.readthedocs.io/en/latest/dask.html#parallel-execution

Thank you @CJ-Wright , it really works!
But the buffer method seems a little confusing, from the API document it's not very clear this method should be called following scattering. Would you please give some more detailed description or some example code?
Another question: suppose if I have 2 forked streams from the source basic stream now, each stream holds different kinds of data, and I need to handle this 2 streams  using 2 or more threads/processes separately, because I want different threads/processes deal with different data, and importantly, I want the 2 streams be handled sequentially. What is your suggestion to this scenario? Below is my code, do you think it's all right?
from dask.distributed import Client
from streamz import Stream
import time

client = Client()

def inc(x):
    time.sleep(1)
    return x + 1

def double(x):
    time.sleep(1)
    return x * 2

source = Stream()
a = source.filter(lambda x: x%2 == 0).scatter().buffer(1).map(inc).gather().sink(print)
b = source.filter(lambda x: x%2 != 0).scatter().buffer(1).map(double).gather().sink(print)

%%time
for i in range(10):
    source.emit(i)

The buffer goes right before the gather.
The pipeline in your example should handle each piece of data in its own worker, so long as the buffer node is moved.

If there is a buffer node in the pipeline, the data will be handled concurrently:
...
a = source.filter(lambda x: x%2 == 0).scatter().buffer(1).map(inc).gather().sink(print)
b = source.filter(lambda x: x%2 != 0).scatter().buffer(1).map(double).gather().sink(print)
...

But if I remove the buffer node as below, the result seems like only 1 worker could be executed at the same time:
...
a = source.filter(lambda x: x%2 == 0).scatter().map(inc).gather().sink(print)
b = source.filter(lambda x: x%2 != 0).scatter().map(double).gather().sink(print)
...

You need the buffer right before the gather step.
a = source.filter(lambda x: x%2 == 0).scatter().map(inc).buffer(10).gather().sink(print)
b = source.filter(lambda x: x%2 != 0).scatter().map(double).buffer(10).gather().sink(print)

Thanks @CJ-Wright ! I test the code and it works fine!
But I found another problem: after scatter() is called and the current stream turns into a dask stream, filter() can never be called, or it will report an error (seems like we couldn't filter on future). What is the proper way to do some filtering work in a dask stream? or do I have to avoid this kind of things?
a = source.filter(lambda x: x % 2 == 0)
                    .scatter()
                    .map(inc)
                    .filter(lambda x: x % 3 == 0)
                    .buffer(10).gather().sink(print)

...

<ipython-input-2-3a40c70eb1bd> in filter_func(x)
     12
     13 def filter_func(x):
---> 14     if x % 3 == 0:
     15         return True
     16     return False

TypeError: unsupported operand type(s) for %: 'Future' and 'int'

Parallel filtering is not implemented in streamz. If you want you could use rapidz which has some support, although there are some corner cases with zip and filter that do not work.

I haven't looked at the implementation in rapidz, but you could hack a solution right now, but using the dask-stream map with a function like
.map(lambda x: True if x%2 == 0 else None)

and then using the regular, non-dask filter
.filter(lambda x: x.type is bool)   # this works on the futures

Alternatively, and probably better, you can filter batches by mapping
.map(lambda x: [y for y in x if condition(y)])

(this is a lot like working with dask.bag).

Clarification here: dask will work nicely to filter when you are passing around batches rather than individual events - you cannot know the truthiness of a future, but you can iterate over its contents in a task. Sure, you can end up with empty batches sometimes, but that would probably achieve what is required.
My previous comment (now deleted, because the detail was wrong) about polling the status of a Future could be made to work with a little careful thought (using async wait on future or add_done_callback?).
In any case, whilst the question on filtering is valid, the original issue here has been resolved, so I am closing this.


Spiking processor load

When I switch to a keyboard in the extension, there's intermittent high 'processor load' (fan comes on, keyboard unresponsive, pointer moving randomly across screen). This lasts for about 20 sec, and then go away again. Happens irregularly, very few minutes. (HP Chrombook x360 14)

Actually this was with the esperanto full-map keyboard, that does say "not intended for use". Apologies!


Release grok 0 weights

I as a hobbyist am not able to run a 300B model realistically, and fine tuning such a large model is likely even harder. I think Grok 0 weights should be released for people that want to still experiment with Grok but cannot run Grok 1

I understand, but at least a explanation as to why would be appreciated. Thanks


Added unit capsule and ellipsoid

Created unit ellipsoid and capsule
Related with:

https://github.com/ignitionrobotics/ign-rendering/pull/203
https://github.com/ignitionrobotics/ign-rendering/pull/200

Signed-off-by: ahcorde<EMAIL_ADDRESS>

Declined PR


fix: Adjust min/max item to valid lengths for Set[Enum] fields

Description
For Set[Enum] fields with a limited maximum length, adjust min_items and max_items to be within the range of valid lengths.

Closes
Fixes #565

The question from #565 about whether this should raise an error instead or warn in addition remains open.

I am not really sure whether this is sufficient for handling all possible ways of defining fields with enums? Or whether isinstance(..., EnumMeta) is the best way to check?

What if we just don't handle this?  It might be due to the default set by polyfactory, but this way we can tell the user to change it themselves. I don't really like the idea of us just changing a value without them knowing. I don't think it would be a breaking change either since it currently results in an infinite loop anyway.

Thanks for the review! I think I addressed all the individual suggestions, although handling Literal seemed clunkier than I expected, so maybe there's a better way to do that?
In terms of raising an error or not, I'm not particularly familiar with polyfactory so it might just be my understanding, but it seems difficult to configure the min/max length on a per-item basis. How would you (easily) set the intended lengths for a model like this?
class WithSetEnum(BaseModel):
    letters: Set[Enum("Letters", ["a", "b", "c", "d", "e", "f"])]
    colors: Set[Enum("Colors", ["red", "green"])]

Thanks for the review! I think I addressed all the individual suggestions, although handling Literal seemed clunkier than I expected, so maybe there's a better way to do that?
In terms of raising an error or not, I'm not particularly familiar with polyfactory so it might just be my understanding, but it seems difficult to configure the min/max length on a per-item basis. How would you (easily) set the intended lengths for a model like this?
class WithSetEnum(BaseModel):
    letters: Set[Enum("Letters", ["a", "b", "c", "d", "e", "f"])]
    colors: Set[Enum("Colors", ["red", "green"])]

Yeah this is a bit tricky since you'd have to set the min val as 0 and max val as 2. I'm not sure what the best way to go about this would be. You could also have a classmethod for generating the values for that specific field and manually call handle_constrained_collection.


fatal error [tagui] ACTION - read REGION

fseek(data_file_, static_cast<size_t>(offset_table_[tessdata_type]), SEEK_SET) == 0:Error:Assert failed:in file ../ccutil/tessdatamanager.h, line 173
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f036fa9a60b, pid=28137, tid=0x00007f03f8333700
#
# JRE version: OpenJDK Runtime Environment (8.0_352-b08) (build 1.8.0_352-b08)
# Java VM: OpenJDK 64-Bit Server VM (25.352-b08 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libtesseract.so+0x23b60b]  ERRCODE::error(char const*, TessErrorLogCode, char const*, ...) const+0x16b
#
# Core dump written. Default location: /home/rpa/Downloads/TagUI_Linux/tagui/src/core or core.28137
#
# An error report file with more information is saved as:
# /home/rpa/Downloads/TagUI_Linux/tagui/src/hs_err_pid28137.log
#
# If you would like to submit a bug report, please visit:
#   https://github.com/corretto/corretto-8/issues/
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
IDE terminated: returned: 134

hs_err_pid28137.log

same error using Sikulix

Hi @marcelocecin can you share what is your use case and why reading to region does not work for you? You can try this:
read (300,400)-(500,550) to a
echo `a`

https://tagui.readthedocs.io/en/latest/main_concepts.html?#region

hi @ruthtxh, here we go:
ocr.tag
vision TextOCR.start().setLanguage('por')
snap (540,267)-(605,283) to test.png
read (540,267)-(605,283) to test1
read test_frame.png to test2
echo TEST1: `test1`
echo TEST2: `test2`
vision begin
import org.sikuli.script.TextRecognizer as TR
Settings.OcrReadText = True
Settings.OcrLanguage = "por"
TR.reset()
ocr_text = Region(605, 540, 283, 267).text()
tagui_text = open('tagui.sikuli/tagui_sikuli.txt','w')
tagui_text.write(ocr_text); tagui_text.close()
vision finish
vision_result = fetch_sikuli_text()
echo TEST3: `vision_result`

Hi @marcelocecin I tested your code and I am unable to replicate the error (on Windows). I would suggest you to re-install TagUI again and see if error persists.

Also, this portion of SikuliX code in your vision block might conflict with the code above it, and you may want to remove it when you test:
Settings.OcrReadText = True
Settings.OcrLanguage = "por"
TR.reset()


Malformed XML causes silent crash.

Outside of cmd: Notify user of malfored XML instead of crashing silently

Fixed, Error displayer to the user, with an option to continue packing.


Location of the errorToString function

First of all, I try to find the implementation details of the function errorToString, which is used in the example usage program. But I can't find it. I think there is something wrong with this function, and the reason is as follows...
I connected a Micro SD Card Adapter (which has an SD card in it) and an SCD41 sensor with the Arduino Uno board, and I confirmed all the wires were correctly connected. I tried to run the program below but failed. Only after I commented out the two lines errorToString(error, errorMsg, 256);, the program ran smoothly. I was shocked, but I couldn't find the reason. I hope someone who has the same devices can try the program below, and I wonder if you will find the same error as me. I am very free to talk with you about this very odd bug, which has confused me for three days.
(p.s. Plus, I can confirm this odd error only happens when we want to read data from the sensor scd41 and write it to the sd card. If we only read it or write it, this would be completely fine.)
#include <Arduino.h>
#include <SensirionI2CScd4x.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>

SensirionI2CScd4x scd4x;
File dataFile;

void setup() {
    Serial.begin(115200);
    while (!Serial) {
        delay(100);
    }

    Serial.println("Initializing SD card...");
    if (!SD.begin(4)) {
        Serial.println("SD card initialization failed!");
        while (1) {};
    }
    Serial.println("done.");

    dataFile = SD.open("c_data.csv", O_WRITE | O_APPEND);
    if (dataFile) dataFile.println("CO2, Temperature, Humidity");

    Wire.begin();
    scd4x.begin(Wire);

    uint16_t error; char errorMsg[256];

    error = scd4x.stopPeriodicMeasurement();
    if (error) {
        Serial.print("Error trying to execute stopPeriodicMeasurement(): ");
        errorToString(error, errorMsg, 256); // comment out this line
        Serial.println(errorMsg);
    }

    error = scd4x.startPeriodicMeasurement();

    if (error) {
        Serial.print("Error trying to execute startPeriodicMeasurement().");
        errorToString(error, errorMsg, 256);  // comment out this line
        Serial.println(errorMsg);
    }

    Serial.println("Data collection started...");
}

void loop() {}

errorToString is in arduino-core
see SensirionErrors.h

Thanks for the link @qfisch
Can u also share some ideas on why this odd error will happen when the errorToString function is not commented out? I am completely using the same code from the example usage.

Are you running the example without modification or the code you provided above ?
What is the error message ?

Yes, exactly the same code as I showed above. And actually what I've done was just combine the example code of both (from SD module and SensirionI2CScd4x module).
The weirdest thing is I cannot observe any error msg from the serial monitor. The program just didn't print anything, which looked like it was stuck. Sometimes, it kept printing Initializing SD card... again and again. After removing the errorToString lines, it prints everything normally (all the data from the sensor). But I just can't see there is anything wrong with the call of errorToString function here. I'm kind of stuck.

Can you test with the stock example from this repo ? without anything related to your sd card.

Are u referring to this example? I've tried the example from this repo, without anything related to sd card, and it works perfectly. Also, I've tried the example from the sd card repo, and it goes very well.

Okay. it could be that your board is running out of memory.
You could try reducing the size allocated to the error message char errorMsg[16];

Sure. I'll try that later after my board is idle. Thank you for your patience and instructions.


extraAttributes on bulk actions not working correctly

Package
filament/filament
Package Version
v2.17.32
Laravel Version
v10.9.0
Livewire Version
No response
PHP Version
PHP 8.1.18
Problem description
Trying to add extraAttributes to a bulk action but it is not rendered in the HTML.
Expected behavior
It should render correctly in the HTML like in single actions.
Steps to reproduce
->bulkActions([
    Tables\Actions\BulkAction::make('groupCalculation')
        ->icon('heroicon-o-calculator')
        ->action(function (Collection $records) {
            // Doing something...
        })
        ->extraAttributes(['some' => 'attribute'])
])

Reproduction repository
https://github.com/daerentis/bulk-action-extra-attributes
Relevant log output
No response

Fixed by #6582.


EST parser and Cedar parser return different ASTs on policies with functions named "unknown"

Before opening, please confirm:

[X] I have searched for duplicate or closed issues.
[X] I have read the guide for submitting bug reports.
[X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.

Bug Category
Cedar Parser
Describe the bug
The following policy EST fails this check in convert-policy-json-to-cedar.
{
    "effect": "permit",
    "principal": {  "op": "All"  },
    "action": {  "op": "All"   },
    "resource": {  "op": "All"  },
    "conditions": [
        {
            "kind": "when",
            "body": {
                "unknown": [
                    {
                        "Value": ""
                    }
                ]
            }
        }
    ]
}

This is due to the difference in AST expression kind built when parsing the EST (Unknown) vs parsing Cedar (ExtensionFunctionApp).
Also related to cedar-policy/cedar#891
Expected behavior
.
Reproduction steps
.
Code Snippet
No response
Log output
No response
Additional configuration
No response
Operating  System
No response
Additional information and screenshots
No response

Closing here and resolving at cedar-policy/cedar#1061


Bombproofify build against switching compilers

As of PR #93 the README states:

Sometimes when switching between compilers, CMake doesn't seem to fully reset on the first attempt of the build. It is not clear why this is the case, but the issue seems to be resolved by running the spack install command again.

It would be nice to not have this problem.

I believe I have identified the source of this issue. I think it was related to the existence of the filesystem view on the CMAKE_PREFIX_PATH, causing CMake to find a lingering version of MKL rather than FFTW as it should have. I'm going to change the configurations so there isn't a filesystem view on CMAKE_PREFIX_PATH (or any other environment variables, for that matter).

Might this change have side effects?

Not really, no. It somewhat changes one of the ways you can build NESO (using the filesystem view rather than spack install), but that wasn't a good way to go about building anyway.


Allow specifying HTTP request timeout

It looks like when sending an HTTP request, the default timeout is 5 sec.
Is it possible to specify the timeout?

Hello Hans! It's not currently possible for Loop Authors to configure the httpRequest timeout.
This is something we'd like to add in the near future. We have created SIDE-2574 to track this feature internally. Thanks for your suggestion!

This is now HELPS-112

It's resolved in the new LDK. Thanks.


Verify Ingress controller conformance

https://github.com/kubernetes-sigs/ingress-controller-conformance is a new test suite for Ingress conformance. I suspect we don't pass this. We should run it and see where we are today and what would be needed to pass

Breakages:

rule is /foo, call is /foo/  - we generate exact match for /foo
rule is /bar/, call is /bar//bershop we make it exact match
rule is / on host *, I think we filter it due to conflicts

Its not clear if the first 2 area "real" tests: https://github.com/kubernetes-sigs/ingress-controller-conformance/issues/31

Only the last one is valid, apparently the other two are just example tests


Refactoring on how etcd raft replica is driven

Remove redundant states saved in metadata storage, change the way how raft replica is driven in the event loop.

Mostly done in the threading model refactoring branch.


OBF and OPFF ingredient analysis support

This PR tries to enable ingredient analysis support on Open Beauty Facts and Open Pet Food Facts, since we now parse ingredients there, and vegan, veggie and palm oil status make sense for both.
I'm also pondering enabling additional ingredient detections for Open Beauty Facts.

@VaiTon regarding the changes you made. Should I undraft the PR. It wasn't yet working on my last commit

@VaiTon regarding the changes you made. Should I undraft the PR. It wasn't yet working on my last commit

What doesn't work?

I didn't see the Vegan/Vegetarian analysis squares.

@teolemon what needs to be done here now that analysis is displayed?

Nothing. We can merge if the modals appear correctly on clicking on the grey buttons. The rest of the work will be server side.


gradle build with 0.2.0 but I get many dependencies error, how can i resolve it?

A problem occurred configuring root project 'spring-authorization-server'.

Could not resolve all artifacts for configuration ':classpath'.
Could not resolve org.apache.xerces:xercesImpl:2.9.1.
Required by:
project : > io.spring.gradle:spring-build-conventions:0.0.38 > io.spring.gradle:docbook-reference-plugin:0.3.1
Could not resolve org.apache.xerces:xercesImpl:2.9.1.
Could not get resource 'https://repo.spring.io/plugins-snapshot/org/apache/xerces/xercesImpl/2.9.1/xercesImpl-2.9.1.pom'.
Could not GET 'https://repo.spring.io/plugins-snapshot/org/apache/xerces/xercesImpl/2.9.1/xercesImpl-2.9.1.pom'. Received status code 401 from server: Unauthorized
Could not resolve org.apache.xerces:resolver:2.9.1.
Required by:
project : > io.spring.gradle:spring-build-conventions:0.0.38 > io.spring.gradle:docbook-reference-plugin:0.3.1
Could not resolve org.apache.xerces:resolver:2.9.1.
Could not get resource 'https://repo.spring.io/plugins-snapshot/org/apache/xerces/resolver/2.9.1/resolver-2.9.1.pom'.
Could not GET 'https://repo.spring.io/plugins-snapshot/org/apache/xerces/resolver/2.9.1/resolver-2.9.1.pom'. Received status code 401 from server: Unauthorized

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

@Lvbuqing 0.2.0 release is quite old now and is no longer supported.
Please checkout the latest releases or supported branches 0.4.x or main.


Google sheet set up

Create 3 google sheets - one per priority. Each google sheet has two tabs - one for legislators and one for third parties.

Done. All 3rd party info is in one sheet - seperated by tab