[HUDI-6785] Introduce a new File Group Reader

Change Logs
This PR introduces a new File Group Reader, HoodieFileGroupReader<T>, to unify Hudi-specific reader logic across all query types in a single class, while allowing plug-in HoodieReaderContext<T> for engine-specific implementation on reading data files, getting field values from a record, transforming a record, etc.  The type argument T denotes the type of engine-specific record representation, e.g., InternalRow in Spark, RowData in Flink, and ArrayWritable in Hive, etc.
The reader operates on the engine-specific record representation for reading and merging.  This includes reading the base file and log blocks into ClosableIterator<T>.  When merging, the engine-specific records are converted to HoodieRecord<T> and passed to HoodieRecordMerger#merge API.
This PR covers the basic file group reading logic with merging base and log files of parquet format.  Features including schema evolution across base and log files, different base and log file format, de-hadooping, etc., will be addressed as follow-ups.
This PR serves as a first step towards a public Hudi file group reader across engines.  There will be follow-ups to make sure the engine integration with Spark, Hive, and Flink can work on the new File Group Reader.  The goal is to remove Hudi-speicific query and merging logic as much as possible from the engine integration and have them in the common file group reader in the format layer.

Spark: replaces the read and merging logic in NewHoodieParquetFileFormat and Iterators
Flink: replaces the read and merging logic in MergeOnReadInputFormat and RecordIterators
Hive: replaces the read and merging logic in different implementation of AbstractRealtimeRecordReader (e.g., RealtimeCompactedRecordReader, RealtimeUnmergedRecordReader,  HoodieMergeOnReadSnapshotReader)

A detailed RFC will be put up once all details are figured out.
Impact
The new File Group Reader, HoodieFileGroupReader, aims to unify Hudi-specific reader logic across all query types in a single class, while allowing plug-in HoodieReaderContext<T> for engine-specific implementation on reading data files, getting field values from a record, transforming a record, etc.
There is no impact on existing readers as the new File Group Reader is not integrated in this PR.
Risk level
none
Documentation Update
N/A
Contributor's checklist

[ ] Read through contributor's guide
[ ] Change Logs and Impact were stated clearly
[ ] Adequate tests were added if applicable
[ ] CI passed

GH CI failures are irrelevant.  Merging this PR.


Replace http:// with protocol relative

The demo page has a mixed content error when viewed over HTTPS that makes the page unusable.
This change should resolve that issue, by replacing all previously http:// urls with // urls.
All https:// links have remained the same.

@thednp I looked at the change, it looks good to me. :)

I believe this is great (someone found and fixed the issue), but I don't think you would need that HTML anyways, it's just a showcase demo for the scripts. However I merged it, maybe would help other people.


Get rid of the schema validation entirely.

So this ends up being the issue quite often, because things can be really finicky.

I would prefer that we have a flag (if the user wants to disable it) since we do not know how much it protects or harm


fix: update amazon delivered subject for amazon.de

Proposed change

Update amazon.de subject search for delivered packages.
Type of change

[ ] Dependency upgrade
[x] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (which adds functionality)
[ ] Breaking change (fix/feature causing existing functionality to break)
[ ] Code quality improvements to existing code or addition of tests
[ ] Documentation update
[ ] Adds a new shipper
[x] Update existing shipper

Additional information

This PR fixes or closes issue: fixes #995

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 93.25%. Comparing base (8608d22) to head (52144df).
Report is 45 commits behind head on dev.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files

@@            Coverage Diff             @@
##              dev    #1009      +/-   ##
==========================================
- Coverage   95.07%   93.25%   -1.82%
==========================================
  Files           8        8
  Lines        1482     1616     +134
==========================================
+ Hits         1409     1507      +98
- Misses         73      109      +36

Files with missing lines
Coverage Δ

custom_components/mail_and_packages/const.py
100.00% <ø> (ø)

... and 3 files with indirect coverage changes

----
🚨 Try these New Features:

Flaky Tests Detection - Detect and resolve failed and flaky tests


Improving the Update-Stack Flow

What is the issue?
At the moment, you will have to delete a stack and create a new when you want to update to the newest version of the integration. This is far from ideal as this will introduce a gap in the logs received in Humio between when the integration was deleted to be replaced by a newer version.
Proposed solution
Adding versioning to the ZIPs containing the lambdas hosted and refer to specific versions with a parameter in the CloudFormation file. This will allow users to use the update feature in AWS CloudFormation normally to update the integration without having to delete it as they can choose which version of the lambdas they want to use.

Link to zendesk: https://humio.zendesk.com/agent/tickets/1925

The issue should be solved with the new release. :)

@Suzanna-Volkov Does this mean this works on 1.14.1 or that it WILL work in 1.15 or??


Importing existing PDF 'URL scheme "file" is not supported.'

What were you trying to do?
I'm trying to modify an existing PDF. I have previously used this library this way and have had no issue. I even copied and pasted the code from both the place where I know it was working, and from the installation instructions, as well as taken a demo code from a different GitHub issue and tried to run that right away and the same thing happens.
How did you attempt to do it?
Ways I've tried to do it is my using the PDF as a local file.
async function modifyPdf() {
      const url = 'camper.pdf'
      const existingPdfBytes = await fetch(url).then(res => res.arrayBuffer())

      const pdfDoc = await PDFDocument.load(existingPdfBytes)
      const helveticaFont = await pdfDoc.embedFont(StandardFonts.Helvetica)

      const pages = pdfDoc.getPages()
      const firstPage = pages[0]
      const { width, height } = firstPage.getSize()
      firstPage.drawText('This text was added with JavaScript!', {
          x: 5,
          y: height / 2 + 300,
          size: 50,
          font: helveticaFont,
          color: rgb(0.95, 0.1, 0.1),
          rotate: degrees(-45),
      })
      const pdfDataUri = await pdfDoc.saveAsBase64({ dataUri: true });
      const pdfBytes = await pdfDoc.save();
      document.getElementById('pdf').src = pdfDataUri;

  }

Take note of URL.
Another way I've tried is uploading the PDF onto a webhost
  async function modifyPdf() {
        const url = 'https://www.glmdfilehosting.com/camperorder/camper.pdf'
        const existingPdfBytes = await fetch(url).then(res => res.arrayBuffer())

        const pdfDoc = await PDFDocument.load(existingPdfBytes)
        const helveticaFont = await pdfDoc.embedFont(StandardFonts.Helvetica)

        const pages = pdfDoc.getPages()
        const firstPage = pages[0]
        const { width, height } = firstPage.getSize()
        firstPage.drawText('This text was added with JavaScript!', {
            x: 5,
            y: height / 2 + 300,
            size: 50,
            font: helveticaFont,
            color: rgb(0.95, 0.1, 0.1),
            rotate: degrees(-45),
        })
        const pdfDataUri = await pdfDoc.saveAsBase64({ dataUri: true });
        const pdfBytes = await pdfDoc.save();
        document.getElementById('pdf').src = pdfDataUri;

    }

Another thing I tried was the URL from the instructions on the main website for this library.
async function modifyPdf() {
        const url = 'https://pdf-lib.js.org/assets/with_update_sections.pdf'
        const existingPdfBytes = await fetch(url).then(res => res.arrayBuffer())

        const pdfDoc = await PDFDocument.load(existingPdfBytes)
        const helveticaFont = await pdfDoc.embedFont(StandardFonts.Helvetica)

        const pages = pdfDoc.getPages()
        const firstPage = pages[0]
        const { width, height } = firstPage.getSize()
        firstPage.drawText('This text was added with JavaScript!', {
            x: 5,
            y: height / 2 + 300,
            size: 50,
            font: helveticaFont,
            color: rgb(0.95, 0.1, 0.1),
            rotate: degrees(-45),
        })
        const pdfDataUri = await pdfDoc.saveAsBase64({ dataUri: true });
        const pdfBytes = await pdfDoc.save();
        document.getElementById('pdf').src = pdfDataUri;

    }

And this worked.... The only thing I changed was the URL.
What actually happened?
Using just the url of 'camper.pdf' produced the following error. 52 Fetch API cannot load file:///C:/URL/camper.pdf. URL scheme "file" is not supported.
However using the whole URL domain. 'https://www.glmdfilehosting.com/camperorder/camper.pdf' I get a CORS error...
If I upload the script files onto the same webhost and use the local url of camper.pdf I have no errors but the iframe source is just white and doesn't fetch the PDF correctly.
What did you expect to happen?
I expect that with the URL of 'https://www.glmdfilehosting.com/camperorder/camper.pdf' that it'll get the pdf document alter it and show it in the iframe.
How can we reproduce the issue?
Execute this code
const { degrees, PDFDocument, rgb, StandardFonts } = PDFLib

    async function modifyPdf() {
        const url = 'https://www.glmdfilehosting.com/camperorder/camper.pdf'
        const existingPdfBytes = await fetch(url).then(res => res.arrayBuffer())

        const pdfDoc = await PDFDocument.load(existingPdfBytes)
        const helveticaFont = await pdfDoc.embedFont(StandardFonts.Helvetica)

        const pages = pdfDoc.getPages()
        const firstPage = pages[0]
        const { width, height } = firstPage.getSize()
        firstPage.drawText('This text was added with JavaScript!', {
            x: 5,
            y: height / 2 + 300,
            size: 50,
            font: helveticaFont,
            color: rgb(0.95, 0.1, 0.1),
            rotate: degrees(-45),
        })
        const pdfDataUri = await pdfDoc.saveAsBase64({ dataUri: true });
        const pdfBytes = await pdfDoc.save();
        document.getElementById('pdf').src = pdfDataUri;

    }

This is how I get a CORS error.
Or go to https://www.glmdfilehosting.com/camperorder/camper.pdf download the pdf and then perform
const { degrees, PDFDocument, rgb, StandardFonts } = PDFLib

    async function modifyPdf() {
        const url = 'camper.pdf'
        const existingPdfBytes = await fetch(url).then(res => res.arrayBuffer())

        const pdfDoc = await PDFDocument.load(existingPdfBytes)
        const helveticaFont = await pdfDoc.embedFont(StandardFonts.Helvetica)

        const pages = pdfDoc.getPages()
        const firstPage = pages[0]
        const { width, height } = firstPage.getSize()
        firstPage.drawText('This text was added with JavaScript!', {
            x: 5,
            y: height / 2 + 300,
            size: 50,
            font: helveticaFont,
            color: rgb(0.95, 0.1, 0.1),
            rotate: degrees(-45),
        })
        const pdfDataUri = await pdfDoc.saveAsBase64({ dataUri: true });
        const pdfBytes = await pdfDoc.save();
        document.getElementById('pdf').src = pdfDataUri;

    }

And this will produce the URL scheme "file" is not supported. error
Version
1.4.0
What environment are you running pdf-lib in?
Browser
Checklist

[X] My report includes a Short, Self Contained, Correct (Compilable) Example.
[X] I have attached all PDFs, images, and other files needed to run my SSCCE.

Additional Notes
I am just running straight vanilla javascript.

Hello @BBGun007! You're error is unrelated to pdf-lib itself. Looks like you're having trouble using the fetch API. I'd recommend doing some research on CORS, fetch, and loading local files into a script in a browser. In general, you'll need to use a HTTP server of some sort (unless you're writing a Node script).
Google is your friend, but here's a few links that might help get you started:

https://stackoverflow.com/questions/50007055/fetch-request-to-local-file-not-working
https://stackoverflow.com/questions/49971575/chrome-fetch-api-cannot-load-file-how-to-workaround/59925724#59925724

You can also check out pdf-lib's web integration tests to see how they're setup to load local files.


Move the ApplyNetwork back to init where dhcp can run, and fix the te…

…sts for scope global
Signed-off-by: Sven Dowideit<EMAIL_ADDRESS>

argh. doesn't seem quite enough. I'm doing more testing (this is the main v0.9.2 blocker)


chore(*): add make bootstrap

@grampelberg only using glide for the novendor command used here to list all the relevant Go paths that are not vendored


@justindavies additions of the Terraform on Azure SA workshops

I may move the shell script into the  subdir :)


Supports for PHP5.6

PHP 7 is relatively new to the world.
In development environment we can build with php7 easily, but maybe not on some existing infrastructure.
This PR is simply reverting php7 syntax into php5.6 in all the .php files, including tests/*.
I suggest you checkout a branch php56 and merge it, tag with 1.2.1-php56, probably.
Thank you for reading.

Hi,
thank you for contributing !
In our business we don't use PHP5.6 anymore. Therefore it makes zero sense for us to maintain PHP5.6 code anymore. Here's some more info on that decision.
So this PR won't get pulled.
Your options are:

maintain your own PHP 5.6 version of the package (this'll make other devs stuck on PHP5.6 happy)
just copy the code to your application and make it PHP5.6 compatible there.

Thank you Freek for the reply and your suggestions.


Customer IP is being passed in IPv6 format on localhost

In order to make payments on localhost I need to use http://<IP_ADDRESS>:3000. This is a bit annoying, if we're making purchases locally we should probably disable the fraud check.

Komoju now accepts IPv6 IP addresses for fraud_details


Automator: update proxy@master in istio/istio@master

Generated by Automator - 2023-06-25T00:20:48+00:00

@istio-testing: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

release-notes_istio
1659a7d9e5a97863a46a68007a8d2aa55fa1b800
link
true
/test release-notes

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/retest


Panic using a ColliderConstructor to create a collider from a Gltf mesh.

Attempting to create a mesh using my gltf blender export creates a panic:
Tried to add a collider to entity <unnamed entity 18> via TrimeshFromMesh that requires a mesh, but no mesh handle was found

Here is the following code that causes a panic:
commands.spawn(SceneBundle {
        scene: asset_server.load("maps/demo.gltf#Scene0"),
        transform: Transform::from_xyz(0.0, 0.0, 0.0),
        ..Default::default()
    }).insert((RigidBody::Static, ColliderConstructor::TrimeshFromMesh));

And here is a snippet from my Gltf file:
"nodes":[
		{
			"mesh":0,
			"name":"Plane",
			"scale":[
				11.705395698547363,
				11.705395698547363,
				11.705395698547363
			]
		},
		{
			"mesh":1,
			"name":"Cube",
			"scale":[
				1,
				2.6922757625579834,
				4.149056434631348
			],
			"translation":[
				-6.870007038116455,
				2.6396241188049316,
				0
			]
		}
	],
	"meshes":[
		{
			"name":"Plane",
			"primitives":[
				{
					"attributes":{
						"POSITION":0,
						"NORMAL":1,
						"TEXCOORD_0":2
					},
					"indices":3
				}
			]
		},
		{
			"name":"Cube.001",
			"primitives":[
				{
					"attributes":{
						"POSITION":4,
						"NORMAL":5,
						"TEXCOORD_0":6
					},
					"indices":7
				}
			]
		}
	],

It seems like there is a mesh defined in the Gltf file (I am unfamiliar with the format, so correct me if I'm wrong) and am clueless to what the issue is.

ColliderConstructor tries to generate a collider for the entity that the component is on, but your scene doesn't actually add a mesh to that entity. The glTF scene instead spawns a hierarchy of children for all the meshes in the scene.
To generate colliders for those descendants, you should use the ColliderConstructorHierarchy component instead of ColliderConstructor :)

Ok, thank you. I probably should have read the example.


[Bug] [cdc] Fix the bug that the schema name contains middleLine

Search before asking

[X] I had searched in the issues and found no similar issues.

What happened
CDCSOURCE task's source schema name contains middleLine.
What you expected to happen
How to deal?
How to reproduce
CDCSOURCE task's source schema name contains middleLine.
Anything else
No response
Version
dev
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

#1536

This is not the best solution.


Add delay, to prevent deleted showcases from being mirrored

We have moderation in place which deletes showcases matching some criterias:

Spam links
Messages without any images/links

The issue is the bot is too fast, causing these messages to be preserved in #showcase-discussion

https://github.com/Bedrock-OSS/webhook-showcase-bot/commit/a8f4f69b48f12e7521eb1f5ba5aed1c36ac93821


[vNext] Refactor the SpectatorView feature

The new SpectatorView feature should be considered for a refactor in Version Next as it contains components that:

are platform specific (we should consider moving them into the Device layer)
networking /sharing (we should consider moving into the sharing component)
feature code (should remain in the SpectatorView folder and namespace)

Care will be required to ensure we do not add undo cross component dependencies and/or complexity.

Moving forward this likely won't be the correct repo for tracking spectator view work. Please reopen this issue if that changes.


Save or Export to JSON

It Is possible to save or export the diagram created to JSON format? to save it in a database column ...

Hi @radikaledward1 !
I do not believe that we can have the graph directly in JSON format.
However, it is not complicated to create some functions to restructure your graph in the form you want, and thus be able to put it in a database.
Personally this is what I do for my application.
I hope I have been helpful.

Hi @radikaledward1, you can also use the toObject method on the react-flow instance for that. https://reactflow.dev/docs/api/react-flow-instance/

Hi @radikaledward1 !
I do not believe that we can have the graph directly in JSON format. However, it is not complicated to create some functions to restructure your graph in the form you want, and thus be able to put it in a database. Personally this is what I do for my application.
I hope I have been helpful.

Hi, Thanks for response, Could you share how you use that functions to save the graph structure? just to have a reference.

Hi @radikaledward1, you can also use the toObject method on the react-flow instance for that. https://reactflow.dev/docs/api/react-flow-instance/

Thank you for the response, so, "ToObject" method returns a JSON structure for each element right? i mean, Should I to use that method for each element in the graph or this method returns the whole graph structure to JSON? Could you give me a hint?

@radikaledward1 Check the example code that saves and restores the chart to localStorage


Add request body to addOrganization docs

API docs show no request body specification for https://docs.giantswarm.io/api/#operation/addOrganization

Solved in the PR linked above


⚠ Samsung has degraded performance

In ef97a6b, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 3240 ms

Resolved: Samsung performance has improved in c5730bd.


Hangs when parsing "x=1_2"

toml-0.8.2 hangs on either of these lines:
toml.loads("x=1_2")
toml.loads("x=2015-01-01T12:30:30") # no 'Z' at the end
toml.loads("x=2015-01-01_12:30:30Z")

I've managed to reproduce this issue in the current master.
For now I raise an Exception but the toml spec says that it should accept RFC 3339 dates so I need to be more flexible in the format strings I accept. For this reason, I am leaving this issue open for now.
On Thu, Feb 05, 2015 at 06:44:38AM -0800, Eugene wrote:

toml-0.8.2 hangs on either of these lines:
toml.loads("x=1_2")
toml.loads("x=2015-01-01T12:30:30") # no 'Z' at the end
toml.loads("x=2015-01-01_12:30:30Z")

Reply to this email directly or view it on GitHub:
https://github.com/uiri/toml/issues/31

Probably fixed this in #32.

I've just read why you tried to use underscores (this issue which is very likely to be implemented). Because they don't affect the number itself, I'd suppose to just remove them if the value is not in quotes and then check the data type.


Use columnize instead of wrap in using().

This is an attempt to fix #2136. Also added an integration test, couldn't find any existing.

Also added issue in docs repo: https://github.com/knex/documentation/issues/124

Oracle doesnt seem to like my insert query using
{
    id: 3,
    email: knex('accounts')
        .whereNot({ id: 3 })
        .select('email')
        .limit(1),
    testcolumn: 70,
},

begin execute immediate 'insert into "accounts_join_test" ("email", "id", "testcolumn") values ((select * from (select "email" from "accounts" where "id" = :1) where rownum <= :2), :3, :4)' using (select * from (select "email" from "accounts" where "id" = :1) where rownum <= :2), :3, :4; execute immediate 'insert into "accounts_join_test" ("email", "id", "testcolumn") values ((select * from (select "email" from "accounts" where not "id" = :1) where rownum <= :2), :3, :4)' using (select * from (select "email" from "accounts" where not "id" = :5) where rownum <= :6), :7, :8;end; - ORA-06550: line 1, column 198:

Does oracle not support subqueries in inserts or something?

Should be safe to merge now.


[Bug]: brave search json output should be parsed

📜 Description
Currently it returns:
{
  "result": "[{\"title\": \"London - Wikipedia\", \"link\": \"https://en.wikipedia.org/wiki/London\", \"snippet\": \"London is the capital and largest city of both England and the United Kingdom, with a population of 8,866,180 in 2022. The wider metropolitan area is the largest in Western Europe, with a population of 14.9 million. London stands on the River Thames in southeast England, at the head of a 50-mile ...\"}, {\"title\": \"Visit London - We are London's Official Visitor Guide\", \"link\": \"https://www.visitlondon.com/\", \"snippet\": \"Discover your ultimate guide to London. From the best activities in the city to top restaurants, bars and hotels, explore what's on in London today.\"}, {\"title\": \"Greater London Authority\", \"link\": \"https://www.london.gov.uk/home-page\", \"snippet\": \"Official website of Mayor of London, Sadiq Khan, and the 25 London Assembly Members. Policy, news, jobs, contacts.\"}]"
}

It should instead return a fully typed json object
👟 Reproduction steps
No response
👀 Have you spent some time to check if this bug has been raised before?

[X] I checked and didn't find similar issue

@creatorrr I worked on this in PR #779


Teku consumes 100% CPU during Ethereum consensus issues event

Description
Teku consumes 100% CPU during Ethereum consensus issues on May 11-12, 2023
Steps to Reproduce (Bug)
Java heap was set to 8GB.
Teku crashing on Java heap and consumes 100%.
Not syncing during consensus issues.
Attaching log.
teku_log_20230512.tar.gz
Versions (Add all that apply)

Software version: 2.4.0
Java version: 17.0.6
OS Name & Version: Ubuntu 22.04.1 LTS
Docker Version: N/A
Cloud VM, type, size: Dedicated server 73F3

Thanks. Yes, this is widespread. Related: https://github.com/ConsenSys/teku/pull/7137

I have encountered the same problem. When can this issue be fixed?

This should be fixed by release 23.5.0.
Closing for now, but if you find the issue recurs after upgrading to 23.5.0 then add a follow-up and we will re-open.


Add YouTube social button in header and footer

This adds a YouTube social button in the header and footer. The button links to https://www.youtube.com/kubernetescommunity

Closes #10226

/lgtm
Thanks for the suggestion @hvaara

Thanks for the review @sftim!
/assign @bradamant3

Rebased on master, fixed merge conflict

@hvaara , LGTM.
Page previews:
https://deploy-preview-16838--kubernetes-io-master-staging.netlify.com/
https://deploy-preview-16838--kubernetes-io-master-staging.netlify.com/blog/
https://deploy-preview-16838--kubernetes-io-master-staging.netlify.com/community/
https://deploy-preview-16838--kubernetes-io-master-staging.netlify.com/docs/tutorials/

Thanks a lot for reviewing @kbhawkey!
@Bradamant3 Friendly ping 😃 Do you have time to take a look?

@zacharysarah do you think it's a good idea for me to continue working on this? I'd be happy to update again so it reflects the changes merged in #17325

@hvaara It sounds like a cool improvement, so go for it!

@hvaara 👋 Please feel free to /reopen this when you're ready to resolve merge conflicts and continue.
/close

Hi @zacharysarah 👋 I am currently working on this
/reopen

@zacharysarah Just pushed my changes. PTAL when you have time
/assign @zacharysarah

/assign @Rajakavitha1


New Network Request: Scroll

Network information

Name: Scroll
ChainId: 534352
RPC http/s address: https://scroll-mainnet.chainstacklabs.com/
Link to https://chainlist.org/: https://chainlist.org/chain/534352
(Optional) Blockexplorer: https://scrollscan.com/
[x] I have run RPC='https://scroll-mainnet.chainstacklabs.com/' yarn estimate
[x] I have sent requiredFunds to 0xE1CB04A0fA36DdD16a06ea828007E35e1a3cBC37

Happy Monday @Uxio0!
Please take a look at this issue :pray:
Thanks in advance!

Hi, since the factory isn't deployed yet, my hardhat-deploy accidentally sent some balance to the deployer address there.
Could you please send them back to the sender address (wallet) after the contract is deployed (beware contract needs to be deployed first so that nonce is the same for the contract and contract address stays the same)?
Txns (6): https://blockscout.scroll.io/tx/0x10f69eed54a922852a6a90e568ef9a2065d5344af99880cbdb758ef1bd3e2841 https://blockscout.scroll.io/tx/0x7edd28dec122a5e2f9322914eaa7f4d42be99a2ab2c793fec8e34f504dc94aaf https://blockscout.scroll.io/tx/0x58de654b958d8326466969e1da94285d518e326baec5200093c1b50edee53fd9 https://blockscout.scroll.io/tx/0x0523359b2ac1e384752373b77c652fde492971b137403def2b0d8594163aef85 https://blockscout.scroll.io/tx/0x3e25f9d46af4a78994dbcfac04a91971a235cdc2fe78dd9f5d5b8bfdf768a853 https://blockscout.scroll.io/tx/0x95181635d0b38bdd9d47c6dd8a3bfb8896e48060195b92c6c3d07ac2a777313b

Hey, as this key is security-critical (including the nonce), we do not execute arbitrary transactions (including ether transfers) from this account, therefore we cannot help you with this request. I'm sorry

Done https://blockscout.scroll.io/tx/0x9976d118aceec759eb6461ce2dca2330186f08c31ec8e400ab8ee14c528025d5


array slicing with multiple dimensions is broken

Hi,
I can run the following code in numpy just fine:
import numpy as np

data = np.arange(1e6).reshape((1e6/4, 4))
print(data.shape)

data_reshaped = data[:50, 1].reshape((2, 25))
print(data_reshaped.shape)

### prints out:
# (250000, 4)
# (2, 25)

but in dask, it throws an exception:
import numpy as np
import dask.array as da

data = np.arange(1e6).reshape((1e6/4, 4))
print(data.shape) # this prints ok

dask_array = da.from_array(data, chunks=(100, ))
data_reshaped = dask_array[:50, 1].reshape((2, 25))
print(data_reshaped.compute().shape)

and the traceback:
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-10-0a3ca0ea6699> in <module>()
      7 dask_array = da.from_array(data, chunks=(100, ))
      8 data_reshaped = dask_array[:50, 1].reshape((2, 25))
----> 9 print(data_reshaped.compute().shape)
     10

/Users/jeremy/anaconda/lib/python3.5/site-packages/dask/base.py in compute(self, **kwargs)
     32
     33     def compute(self, **kwargs):
---> 34         return compute(self, **kwargs)[0]
     35
     36     @classmethod

/Users/jeremy/anaconda/lib/python3.5/site-packages/dask/base.py in compute(*args, **kwargs)
    100                 for opt, val in groups.items()])
    101     keys = [arg._keys() for arg in args]
--> 102     results = get(dsk, keys, **kwargs)
    103     return tuple(a._finalize(a, r) for a, r in zip(args, results))
    104

/Users/jeremy/anaconda/lib/python3.5/site-packages/dask/threaded.py in get(dsk, result, cache, num_workers, **kwargs)
     55     results = get_async(pool.apply_async, len(pool._pool), dsk, result,
     56                         cache=cache, queue=queue, get_id=_thread_get_id,
---> 57                         **kwargs)
     58
     59     return results

/Users/jeremy/anaconda/lib/python3.5/site-packages/dask/async.py in get_async(apply_async, num_workers, dsk, result, cache, queue, get_id, raise_on_exception, rerun_exceptions_locally, callbacks, **kwargs)
    481                 _execute_task(task, data)  # Re-execute locally
    482             else:
--> 483                 raise(remote_exception(res, tb))
    484         state['cache'][key] = res
    485         finish_task(dsk, key, state, results, keyorder.get)

ValueError: total size of new array must be unchanged

Traceback
---------
  File "/Users/jeremy/anaconda/lib/python3.5/site-packages/dask/async.py", line 263, in execute_task
    result = _execute_task(task, data)
  File "/Users/jeremy/anaconda/lib/python3.5/site-packages/dask/async.py", line 245, in _execute_task
    return func(*args2)
  File "/Users/jeremy/anaconda/lib/python3.5/site-packages/numpy/core/fromnumeric.py", line 225, in reshape
    return reshape(newshape, order=order)

Can anyone help me understand what is going wrong here?

After some debugging, it seems like the problem is in ravel. Test code:
import numpy as np
import dask.array as da

data = np.arange(1e6).reshape((1e6/4, 4))
print(data.shape)

dask_array = da.from_array(data, chunks=(100, ))
dask_array[:50, 1].ravel().compute()

and the result:
--------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-4-6500ef76d5a3> in <module>()
      6
      7 dask_array = da.from_array(data, chunks=(100, ))
----> 8 dask_array[:50, 1].ravel().compute()
      9

/Users/jeremy/anaconda/lib/python3.5/site-packages/dask/base.py in compute(self, **kwargs)
     32
     33     def compute(self, **kwargs):
---> 34         return compute(self, **kwargs)[0]
     35
     36     @classmethod

/Users/jeremy/anaconda/lib/python3.5/site-packages/dask/base.py in compute(*args, **kwargs)
    101     keys = [arg._keys() for arg in args]
    102     results = get(dsk, keys, **kwargs)
--> 103     return tuple(a._finalize(a, r) for a, r in zip(args, results))
    104
    105

/Users/jeremy/anaconda/lib/python3.5/site-packages/dask/base.py in <genexpr>(.0)
    101     keys = [arg._keys() for arg in args]
    102     results = get(dsk, keys, **kwargs)
--> 103     return tuple(a._finalize(a, r) for a, r in zip(args, results))
    104
    105

/Users/jeremy/anaconda/lib/python3.5/site-packages/dask/array/core.py in finalize(arr, results)
    593 def finalize(arr, results):
    594     if arr.shape:
--> 595         return concatenate3(results)
    596     else:
    597         return unpack_singleton(results)

/Users/jeremy/anaconda/lib/python3.5/site-packages/dask/array/core.py in concatenate3(arrays)
   2482             while arr.ndim < ndim:
   2483                 arr = arr[None, ...]
-> 2484         result[idx] = arr
   2485
   2486     return result

ValueError: could not broadcast input array from shape (50,4) into shape (50)

And turns out, the problem is neither, because the following code has the same problem:
import numpy as np
import dask.array as da

data = np.arange(1e6).reshape((1e6/4, 4))
print(data.shape)

dask_array = da.from_array(data, chunks=(100, ))
dask_array[:50, 1].compute()

More debugging shows that the resulting graph generated by the above code ignores the second dimension. So the problem appears to be in the slicing.
(PdB) dsk
{('getitem-53735434f2afd704d21f48b61e1a663c', 0): (<function getarray at 0x107a9ebf8>, array([[  0.00000000e+00,   1.00000000e+00,   2.00000000e+00,
          3.00000000e+00],
       [  4.00000000e+00,   5.00000000e+00,   6.00000000e+00,
          7.00000000e+00],
       [  8.00000000e+00,   9.00000000e+00,   1.00000000e+01,
          1.10000000e+01],
       ...,
       [  9.99988000e+05,   9.99989000e+05,   9.99990000e+05,
          9.99991000e+05],
       [  9.99992000e+05,   9.99993000e+05,   9.99994000e+05,
          9.99995000e+05],
       [  9.99996000e+05,   9.99997000e+05,   9.99998000e+05,
          9.99999000e+05]]), (slice(0, 50, None),))}

I'd be happy to try to patch this myself, but I'm still struggling to understand the slice generation logic and the exact meaning of the function arguments.

Hi Jeremy, sorry for the long delay in responding to this.
The issue here is that you've supplied a chunks= argument of only length one while your array is of dimension two.  You should supply a chunks argument like (100, 4) or (100, None).
Ideally dask.array would have informed you of this error sooner and in a more direct way.  I've added a quick check to the from_array function in #870 to help resolve this.

In [1]: import numpy as np
In [2]: import dask.array as da

In [3]: data = np.arange(1e6).reshape((1e6/4, 4))

In [4]: data.shape
Out[4]: (250000, 4)

In [5]: dask_array = da.from_array(data, chunks=(100, 4))  # changed line

In [6]: dask_array[:50, 1].compute()
Out[6]:
array([   1.,    5.,    9.,   13.,   17.,   21.,   25.,   29.,   33.,
         37.,   41.,   45.,   49.,   53.,   57.,   61.,   65.,   69.,
         73.,   77.,   81.,   85.,   89.,   93.,   97.,  101.,  105.,
        109.,  113.,  117.,  121.,  125.,  129.,  133.,  137.,  141.,
        145.,  149.,  153.,  157.,  161.,  165.,  169.,  173.,  177.,
        181.,  185.,  189.,  193.,  197.])

New behavior
In [7]: dask_array = da.from_array(data, chunks=(100,))
ValueError: Input array has 2 dimensions but the supplied chunks has only 1 dimensions

fantastic, thank you! I will leave this to you to close.

Closed.  Thanks for the bug report @jeremyherbert !


Loading just one particular split is not possible for imagenet-1k

Describe the bug
I'd expect the following code to download just the validation split but instead I get all data on my disk (train, test and validation splits)
`
from datasets import load_dataset
dataset = load_dataset("imagenet-1k", split="validation", trust_remote_code=True)
`
Is it expected to work like that?
Steps to reproduce the bug

Install the required libraries (python, datasets, huggingface_hub)
Login using huggingface cli
Run the code in the description

Expected behavior
Just a single (validation) split should be downloaded.
Environment info
python: 3.12.2
datasets: 2.18.0
huggingface_hub: 0.22.2

+1


Kindle Fire Tablets HD 6, 7 & HDX 8.9 all crash when using Cordova with Phaser

The code seems to crash in Phaser.Canvas.addToDOM on this line:
target.appendChild(canvas)
It works fine on Kindle Fire Phone.
This was tested using the Kindle Fire emulator at https://developer.amazon.com/tya/dashboard.html using an apk created from build.phonegap.com
The auto-detect chose WebGL mode.
I am not specifying an element when calling new Phaser.Game. The target for the canvas element is document.body
The specific line of code was found through console.log statements. window.onerror also had a console.log, but it was never called.
A console.log on the Canvas & Body variables shows they have valid values. Also, a console.log on appendChild says "native code".
I'm not sure why this statement would cause the game to crash.

Do they actually support WebGL mode? What happens if you force it to use Canvas?

Switching it to Canvas fixed the problem! I guess Phaser.AUTO isn't able to correctly identify WebGL functionality on Kindle Fire Tablet with Cordova WebView (or Kindle Fire Cordova WebView claims to support WebGL but it's broken?).
Probably could be fixed by modifying device.webGL function in _checkFeatures
The easy way I can think of is checking UserAgent strings, but that probably isn't a great solution.
I can come up with a workaround in my code, so you can close this issue if you want. However, if you'd like me to test any alternative versions of the device.webGL function so that it can be incorporated back into the library, let me know.
Phaser is an awesome library!
Thanks for your help!

To be honest I think this might be a PhoneGap issue - the Kindles we've got here don't incorrectly report WebGL support when run via Silk.
Am wondering how we might build a more robust "inside PhoneGap WebGL test".

Good point. I haven't noticed any issues on other devices with PhoneGap, but so I wonder if it's specific to PhoneGap+Kindle.
I did some debugging in the device.webGL function under _checkFeatures.
canvas.screencanvas was undefined, but that didn't matter since you're setting it to false, not reading it. window.WebGLRenderingContext, canvas.getContext('webgl'), & canvas.getContext( 'experimental-webgl' ) all returned valid objects. I might have to enumerate the properties on the context objects to see if there's some property that would notify me that it won't work.
For now I think I'm just going to MonkeyPath Phaser with a Cordova+KindleUserAgent=ForceCanvas. It seems a better approach would have been to use CrossWalk or Cocoon :(
Thanks for your help.

Here's another thought:
Create a super-simple project. Like just 1 image being loaded and try it in WebGL mode. Does it still crash when it starts-up? If so then I wonder if Pixi might be setting something on the WebGL context that PhoneGap doesn't support (like premultipliedAlpha)

I didn't try out the super simple project. I think it's a good idea, but haven't had time. However, it makes sense that Kindle Fire shouldn't have WebGL on Cordova/PhoneGap, because it uses the internal WebView (rather than chromium embedded in the apk like Crosswalk/Cocoon). On versions before 5 (Lolipop) the WebView was built into the Android OS and couldn't be modified (As of v5 it's an updateable component through GooglePlay). The WebView didn't start supporting WebGL until Android OS v5, so Kindle Fire's WebView couldn't support it (unless there's been a major Kindle update recently).

Here's the code I'm using on Cordova to fix this issue (Kindle/Cordova's fault, not Phaser's), in case any one else finds it useful:
//monkey patch Phaser.Device._initialize to override this.webGL on Android versions before 5
var oldPhaserDeviceInitialize = Phaser.Device._initialize;
Phaser.Device._initialize = function () {
oldPhaserDeviceInitialize.call(this);
if (this.webGL && window.cordova) {
if (device.platform.toLowerCase().indexOf('android') != -1) {
var majorVersion = parseFloat(device.version.split('.')[0]);
if (majorVersion < 5) {
this.webGL = false; // some devices incorrectly claim to support WebGL, but Cordova on Android always uses the internal WebView which is built into the OS & never supported WebGL until version 5
}
}
}
};

The Device type has a useful signal to handle this case, Phaser.Device.onInitialized
Use it as so:
Phaser.Device.onInitialized.add(function (device) {
  if (this.webGL && window.cordova) {
    var platform = device.platform.toLowerCase();
    if (platform.indexOf('android') != -1 || platform.indexOf('amazon-fireos') != -1) {
    var majorVersion = parseFloat(device.version.split('.')[0]);
    if (majorVersion < 5) {
    this.webGL = false;
});

Am going to close this one off as a weird-ass PhoneGap issue, because that's a nice clean fix approach above there.


use msgpack>=0.6.1

this package use msgpack==0.6.1 in requirements.txt，it's possible to use msgpack>=0.6.1?
this may have a compatibility problem with other package ,e.g locust need msgpack>=0.6.2

msgpack 1.0.0 is latest

This seems to be fixed in #818 already, but unpublished yet. Could someone publish a new version?

@sebito91 any news on this ?

Please note, using pip install --use-feature=2020-resolver (which is soon to become the default, as far as I understand) does result in breaking builds in case of a conflict, with no real way to resolve it

Tagging @russorat to see if he can get some traction...


Reduce allocations in ByteBuffersDataOutput.writeString

Saw this in the nightly benchmark indexing run profiling:
There's no need to allocate a byte array when serializing to heap buffers and the string fits the remaining capacity without further bounds checks. If it doesn't fit we could technically do better than the current writeLongString and avoid one round of copying by chunking the string but that might not be worth the complexity.
In either case we can calculate the utf8 length up-front. While this costs extra cycles (in the small case) for iterating the string twice it saves creating an oftentimes 3x oversized byte array, a BytesRef, field reads from the BytesRef, copying from it to the buffer and the associated GC with cleaning it up. Theory and some quick benchmarking suggests this version is likely faster for any string length than the existing code.

Sounds good @jpountz , reverted the DataOutput stuff for now :)

Thanks Adrien!


WEB3-213: add SteelVerifier to verify Steel commitments in the guest

Need to clean-up the way preflight is factored on the host


[Rust] Fix OnWeaponFired hook

The December 15th updates caused the OnWeaponFired hook to become injected inside a null check.

Thanks, manually merged with the DLL. :)


[ Taking different formats as input data {#4}] Load data from different file formats

new file formats which are added are:
.txt
.json
.xlsx
.sqlite
changes are made on ClassificationDataset in datasets.py
One input is added to get table name from the sqlite in the
.sqlite file format

Thanks, @Tihsrah, happy contributing!!! 🔥

Issue #4 tagged.


Use instant-glicko-2's improvements

See https://github.com/gpluscb/instant-glicko-2 and https://gist.github.com/gpluscb/302d6b71a8d0fe9f4350d45bc828f802

See 14ef656


add xpd stack updates

we need to put this at recipes-tag folder.

It will be tagged via a separate PR in a few days once it's tested at PDF.

If a pkg is built based on a given version number, we need to put the recipe at recipe-tag folder. recipe-dev folder is used to build pkg on each update of master branch. You can compare the bluesky folder under -tag and -dev.


Issue #143 minor docs update

Simple update to the list of python versions the package is tested at.


Update README.md

Added Nmap to the Servers list

Sorry but nmap.org is just the website for the CLI tool nmap, it's not an online service and it cannot be included in this list


Prevent memory leaks in staging by adding env var

Summary
clearModuleCache is causing memory leaks in staging. Added optional env var to prevent it.
Test plan

I would ask you to open the issue first.
It is absolutely not clear what you gonna fix, why it is a problem and why this change is a solution.
smartRequire is expected to clear module cache in dev mode to support hot module replacement, which never happens in the "non-dev" mode.
Adding extra constant(LOADABLE_KEEP_CACHE) which has to be enabled in order to clean cache will break the internal "contract" for all existing users and is a breaking change.
There is no way this PR can be merged as is.

Made a change and opened an issue as well.

Then #733 should have been explicitly mentioned in this PR

While bounding logic to module.hot seems to be right and as can move forward with it - there is still no information about the leak itself and why this is a fix.

Adding module.hot did work, i checked it today. What kind of information should i provide about the memory leak? Would screenshots work? Without this our staging environment is crashing every 20 minutes or so.

Sounds like there is a memory leak in clearModuleCache, probably related to removing self from the children, creating an orphan -> https://github.com/gregberge/loadable-components/blob/4fb7d6dba5d97d22fade7f8a794b50d6506645af/packages/server/src/util.js#L12

so should we move forward with module.hot logic fix?

Yes. That sounds as a must-have in any case


feat(checkout): CHECKOUT-7837 Optimize loadCheckout and loadExtensions for Parallel Execution

What?
Remove isExtensionEnabled flag and load extensions in parallel to load checkout.
Why?
Since the extension is rolled out to 100% now and extensions can be now loaded concurrently to checkout settings.
Testing / Proof

CI checks
Manual testing

Just curious, is the performance improvement by concurrent request measurable? 🤔

Just curious, is the performance improvement by parallel loading measurable? 🤔

There will be some benefit in checkout load, since as of now it's a separate blocking call. So moving this with checkout load call will give some benefit straight away. Somewhere between 500ms-1s.


VS Code sends inconsistent Source object in setBreakpointsRequest

VSCode Version: alpha
OS Version: OS X 10.11.4

It is not possible to clear or disable breakpoints in inlined source. The reason for this is that a different Source object is passed to setBreakpointsRequest when clearing or disabling the breakpoint.

set a breakpoint in inlined source

restart debug session and inspect Source object passed to setBreakpointsRequest:

as you can see the Source object has all the information to set the breakpoint in the inlined source

delete (or disable) the breakpoint and again inspect Source object passed to setBreakpointsRequest:

here the Source no longer has the adapterData which makes it impossible to correctly disable the breakpoint in node

VS Code must always send the same Source object to setBreakpointsRequest.

Fixed via f56ccb0


Change Icon

Hi,
Just a little bit question. I can not find, where i can change the icons of navbar ?
What mean :
.fa-subscript:before {
content: "\f12c";
I'm beginner.
Thank you

Hello,
It's a CSS rule. It means that HTML elements that have the .fa-subscript class will be prepend by the content of "\f12c" (unicode) that correspond to the subscript icon.

The icons being used via CSS are the unicodes that correspond with the fonts. You can find more info at fontawesome.io.


Small change

Description

Moves pd_save_options to regular attribute instead of class attribute to fix failing tests.

Never mind this error is caused since we are using a string for 'torch.nn.Module' instead of the class. This is fixed by PR https://github.com/lf1-io/padl/pull/419 in PADL.
Closing


Replace misc. occurrences of whitelist/blacklist

As part of #25381
[ ] Configuration Infrastructure
[ ] Docs
[ ] Installation
[ ] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[X] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure

@tbarrella: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

integ-ipv6-k8s-tests_istio
27de293eb3408701c4180ee8f4b776c5a7cae237
link
/test integ-ipv6-k8s-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/retest


[Feature Request] Record option to save network requests as HAR

Would it be possible to provide additional options in the "Record" feature to save the associated network requests (HAR) that are executed while generating the test commands?
Having the test commands autogenerated while the associated fixtures (HAR) are saved at the same time would be a huge time save for both creating and updating tests. We can do this via playwright's cli, but replicating that functionality here would make it so much more accessible.
--
I apologize if there is a better forum for this type of request.

Found that I can get a similar behavior by creating a custom project definition and set the contextOptions.recordHar params there. Then, run that profile via the extension and it does the same thing.


release 0.1.2

fix rubocop warnings.

Codecov Report

Merging #12 into master will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master       #12   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           23        24    +1
  Lines         1121      1131   +10
=========================================
+ Hits          1121      1131   +10

Impacted Files
Coverage Δ

lib/calendly/models/organization.rb
100.00% <ø> (ø)

lib/calendly/models/user.rb
100.00% <ø> (ø)

lib/calendly/api_error.rb
100.00% <100.00%> (ø)

lib/calendly/client.rb
100.00% <100.00%> (ø)

lib/calendly/error.rb
100.00% <100.00%> (ø)

lib/calendly/loggable.rb
100.00% <100.00%> (ø)

lib/calendly/models/event.rb
100.00% <100.00%> (ø)

lib/calendly/models/event_type.rb
100.00% <100.00%> (ø)

lib/calendly/models/invitee.rb
100.00% <100.00%> (ø)

lib/calendly/models/model_utils.rb
100.00% <100.00%> (ø)

... and 4 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 8e9540d...c105cec. Read the comment docs.


re-organize the files and dirs

e.g for the docs dir, there are also assests like images (jpeg, png etc).
Please mkdir an assets or images dir in the root dir of repo, and move them to that dir.
Thanks a lot :)

The remaining 2 images will be cleared out when @farrahfazirah is back to work. she is in holiday

Closing because as #26 closes there will be no remaining images.


shaded dependency

HI,
How do you capture shaded dependencies? What are all not captured under this shaded dependency?
Only jars in maven repo captured?
Ref : Vulnerable dependencies not found on shaded jars on some cases #2324
Thanks.

It depends on how the fat/uber/shaded jar is built. For those built with the Maven Shade Plugin - we extract the POM from the resulting JAR files. Howecer, fat and uber jars (built with other plugins) do not carry the pom.xml documents for the included JAR files - as such, ODC likely won't flag anything.
The best bet is to scan the project that is building the shaded jar using the Maven plugin.

If possible kindly share the document regarding shaded dependency capturing in OWASP dependency checker.

From this doc  https://github.com/jeremylong/DependencyCheck/wiki/How-does-it-work%3F

For instance, the JarAnalyzer will collect information from the Manifest, pom.xml, and the package names within the JAR.

your answer was contradict with the above lines(package names within the JAR)

What about Binary scanning option in ODC?

See the discussion here: https://github.com/jeremylong/DependencyCheck/issues/5084


THRIFT-5237 Implement MAX_MESSAGE_SIZE and consolidate limits into a TConfiguration class (cpp)

[X] Did you create an Apache Jira ticket?  (not required for trivial changes)
[X] If a ticket exists: Does your pull request title follow the pattern "THRIFT-NNNN: describe my issue"?
[X] Did you squash your changes to a single commit?  (not required, but preferred)
[X] Did you do your best to avoid breaking changes?  If one was needed, did you label the Jira ticket with "Breaking-Change"?
[ ] If your change does not involve any code, include [skip ci] anywhere in the commit message to free up build resources.

Hi @Jens-G , can you help me review this PR?

Hi @Jens-G , can you help me review this PR?

Sure, need to find some time

[3/333] [BISON][thrifty] Building parser with bison 3.0.4
[4/333] Building CXX object lib/cpp/CM...ansport/TNonblockingServerSocket.cpp.o
FAILED: lib/cpp/CMakeFiles/thriftnb.dir/src/thrift/transport/TNonblockingServerSocket.cpp.o
/usr/bin/g++  -DBOOST_ALL_DYN_LINK -DBOOST_TEST_DYN_LINK -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Dthriftnb_EXPORTS -Ilib/cpp -I../lib/cpp -I. -I../lib/cpp/src -Wall -Wextra -fmax-errors=1 -O2 -g -DNDEBUG -fPIC   -std=c++11 -MD -MT lib/cpp/CMakeFiles/thriftnb.dir/src/thrift/transport/TNonblockingServerSocket.cpp.o -MF lib/cpp/CMakeFiles/thriftnb.dir/src/thrift/transport/TNonblockingServerSocket.cpp.o.d -o lib/cpp/CMakeFiles/thriftnb.dir/src/thrift/transport/TNonblockingServerSocket.cpp.o -c ../lib/cpp/src/thrift/transport/TNonblockingServerSocket.cpp
In file included from ../lib/cpp/src/thrift/transport/TSocket.h:25:0,
from ../lib/cpp/src/thrift/transport/TNonblockingServerTransport.h:23,
from ../lib/cpp/src/thrift/transport/TNonblockingServerSocket.h:23,
from ../lib/cpp/src/thrift/transport/TNonblockingServerSocket.cpp:48:
../lib/cpp/src/thrift/transport/TTransport.h:24:10: fatal error: thrift/TConfiguration.h: No such file or directory
#include <thrift/TConfiguration.h>
^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

Still broken
C:\projects\thrift\lib\cpp\src\thrift\transport\TPipe.cpp: In member function 'virtual uint32_t apache::thrift::transport::TWaitableNamedPipeImpl::read(uint8_t*, uint32_t)':
C:\projects\thrift\lib\cpp\src\thrift\transport\TPipe.cpp:157:3: error: 'checkReadBytesAvailable' was not declared in this scope
157 |   checkReadBytesAvailable(len);
|   ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated due to -fmax-errors=1.
mingw32-make[2]: *** [lib\cpp\CMakeFiles\thrift.dir\build.make:483: lib/cpp/CMakeFiles/thrift.dir/src/thrift/transport/TPipe.cpp.obj] Error 1

Still broken
C:\projects\thrift\lib\cpp\src\thrift\transport\TPipe.cpp: In member function 'virtual uint32_t apache::thrift::transport::TWaitableNamedPipeImpl::read(uint8_t*, uint32_t)':
C:\projects\thrift\lib\cpp\src\thrift\transport\TPipe.cpp:157:3: error: 'checkReadBytesAvailable' was not declared in this scope
157 | checkReadBytesAvailable(len);
| ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated due to -fmax-errors=1.
mingw32-make[2]: *** [lib\cpp\CMakeFiles\thrift.dir\build.make:483: lib/cpp/CMakeFiles/thrift.dir/src/thrift/transport/TPipe.cpp.obj] Error 1

Resolved.

[3/333] [BISON][thrifty] Building parser with bison 3.0.4�[K
[4/333] Building CXX object lib/cpp/CM...ansport/TNonblockingServerSocket.cpp.o�[K
FAILED: lib/cpp/CMakeFiles/thriftnb.dir/src/thrift/transport/TNonblockingServerSocket.cpp.o
/usr/bin/g++ -DBOOST_ALL_DYN_LINK -DBOOST_TEST_DYN_LINK -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Dthriftnb_EXPORTS -Ilib/cpp -I../lib/cpp -I. -I../lib/cpp/src -Wall -Wextra -fmax-errors=1 -O2 -g -DNDEBUG -fPIC -std=c++11 -MD -MT lib/cpp/CMakeFiles/thriftnb.dir/src/thrift/transport/TNonblockingServerSocket.cpp.o -MF lib/cpp/CMakeFiles/thriftnb.dir/src/thrift/transport/TNonblockingServerSocket.cpp.o.d -o lib/cpp/CMakeFiles/thriftnb.dir/src/thrift/transport/TNonblockingServerSocket.cpp.o -c ../lib/cpp/src/thrift/transport/TNonblockingServerSocket.cpp
In file included from ../lib/cpp/src/thrift/transport/TSocket.h:25:0,
from ../lib/cpp/src/thrift/transport/TNonblockingServerTransport.h:23,
from ../lib/cpp/src/thrift/transport/TNonblockingServerSocket.h:23,
from ../lib/cpp/src/thrift/transport/TNonblockingServerSocket.cpp:48:
../lib/cpp/src/thrift/transport/TTransport.h:24:10: fatal error: thrift/TConfiguration.h: No such file or directory
#include <thrift/TConfiguration.h>
^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

Hi @Jens-G ,  I am very confused about this problem. File thrift/TConfiguration.h does exist, and most of the CI is passed except this.
Any suggestions from you?

Try "make dist", that's what CI does here. Is it reproducible?

tardir=thrift-0.14.0 && tar --hard-dereference --format=ustar -chf - "$tardir" | eval GZIP= gzip --best -c >thrift-0.14.0.tar.gz
make[1]: Leaving directory '/thrift/src'
if test -d "thrift-0.14.0"; then find "thrift-0.14.0" -type d ! -perm -200 -exec chmod u+w {} ';' && rm -rf "thrift-0.14.0" || { sleep 5 && rm -rf "thrift-0.14.0"; }; else :; fi
tar xvf thrift-*.tar.gz
thrift-0.14.0/
thrift-0.14.0/README.md
......

@Jens-G , I look through the CI log , I found that thrift-*.tar.gz doesn't  contains the file which I new added, but I don't know how to cram them into  thrift-*.tar.gz, and why this CI doesn't use the content from git clone directly.

[3/333] [BISON][thrifty] Building parser with bison 3.0.4�[K
[4/333] Building CXX object lib/cpp/CM...ansport/TNonblockingServerSocket.cpp.o�[K
FAILED: lib/cpp/CMakeFiles/thriftnb.dir/src/thrift/transport/TNonblockingServerSocket.cpp.o
/usr/bin/g++ -DBOOST_ALL_DYN_LINK -DBOOST_TEST_DYN_LINK -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Dthriftnb_EXPORTS -Ilib/cpp -I../lib/cpp -I. -I../lib/cpp/src -Wall -Wextra -fmax-errors=1 -O2 -g -DNDEBUG -fPIC -std=c++11 -MD -MT lib/cpp/CMakeFiles/thriftnb.dir/src/thrift/transport/TNonblockingServerSocket.cpp.o -MF lib/cpp/CMakeFiles/thriftnb.dir/src/thrift/transport/TNonblockingServerSocket.cpp.o.d -o lib/cpp/CMakeFiles/thriftnb.dir/src/thrift/transport/TNonblockingServerSocket.cpp.o -c ../lib/cpp/src/thrift/transport/TNonblockingServerSocket.cpp
In file included from ../lib/cpp/src/thrift/transport/TSocket.h:25:0,
from ../lib/cpp/src/thrift/transport/TNonblockingServerTransport.h:23,
from ../lib/cpp/src/thrift/transport/TNonblockingServerSocket.h:23,
from ../lib/cpp/src/thrift/transport/TNonblockingServerSocket.cpp:48:
../lib/cpp/src/thrift/transport/TTransport.h:24:10: fatal error: thrift/TConfiguration.h: No such file or directory
#include <thrift/TConfiguration.h>
^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

@Jens-G ,  Resolved.

Is this now dead or just replaced by another PR?

Is this now dead or just replaced by another PR?

https://github.com/apache/thrift/pull/2319

https://github.com/apache/thrift/pull/2319

Hi, there is no way to pass the Tconfiguration class into a TBufferedTransportFactory to produce a TBufferedTransport with correct config.

Hi, I have some suspicions this change introduced thrift instability, amongst which the reported THRIFT-5492 issue.
I encountered long running connections unexplained disconnect.
After analysis, this was due to incremental call to TTransport::countConsumedMessageBytes without resetConsumedMessageSize calls, leading to an exception thrown after (default) 100MB of received messages. Applying THRIFT-5492 proposed patch solved the issue, but I'm not comfortable with it. Implementing a virtual function to actually reset the consumed message size might be a bit fragile and needs to be implemented in every TTransport derived classes !
I am not fluent with TVirtualTransport implementation, and I would like to be sure this will fix the issue without risks (inherited classes implementations).
Wouldn't it be possible to implement this functionality (Message Size validation) in a more generic way, without the need to call specific functions in inherited virtual ones ?


cli banner

don't log which files were / were not written
replace marginally useful logs on startup with a banner

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 1 (0.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.04%) to 82.591%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/typescript-generator/repository.js
0
1
0.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.04%

Covered Lines:
2339

Relevant Lines:
2900

💛  - Coveralls


image upload issue on android-24

image is fail to upload on android nougat

hi @ahmetcj4 , could you please be more specific on what error you were getting?

i assume he gets eaccess errors -
above v23 you need to ask for permissions inside the activity or fragment as well (stating the permission inside the manifest aint enough)
add this and call the function from the activity
// Storage Permissions
	private static final int REQUEST_EXTERNAL_STORAGE = 1;
	private static String[] PERMISSIONS_STORAGE = {
	        Manifest.permission.READ_EXTERNAL_STORAGE,
	        Manifest.permission.WRITE_EXTERNAL_STORAGE
	};
  /**
	     * Checks if the app has permission to write to device storage
	     *
	     * If the app does not has permission then the user will be prompted to grant permissions
	     *
	     * @param activity
	     */
	    public static void verifyStoragePermissions(Activity activity) {
	        // Check if we have write permission
	        int permission = ActivityCompat.checkSelfPermission(activity, Manifest.permission.WRITE_EXTERNAL_STORAGE);

	        if (permission != PackageManager.PERMISSION_GRANTED) {
	            // We don't have permission so prompt the user
	            ActivityCompat.requestPermissions(
	                    activity,
	                    PERMISSIONS_STORAGE,
	                    REQUEST_EXTERNAL_STORAGE
	            );
	        }
	    }


godep cleanup

removing unused godeps
\cc @vishh @mvdan

Travis complained on the googleapi dependency at #478 so I'm guessing this cleanup is not actually required


1.0.0-rc.3 regression error - backgroundColor: null doesnt make canvas background transparent

Bug reports:
Transparent background works just fine in 1.0.0-rc.2. In 1.0.0-rc.3 it's rendering out a canvas with a white bg.
Repro:
https://codepen.io/glomotion/pen/JgyMdK

html2canvas version tested with: 1.0.0-rc.3
Browser & version: Chrome 76
Operating system: MacOS 10.14.6 (18G84)

it same to me. set backgroundColor: transparent is ok, but Uncaught ReferenceError: transparent is not defined. set backgroundColor: null is not work

@glomotion
I resolved this way.
html2canvas(node, { backgroundColor: 'transparent' })

@RyoheiTomiyama thanks! that works. :)

Or this strange way:
html2Canvas(elem, { backgroundColor: 'null' })


Bug in times under temperature graph

Expected behavior
Different times under the temperature graph
Actual behavior
All the times under the temperature graph are the same. e.g. 21:00, 21:00, 21:00
ESPaper Weather Station version
master
Hardware
https://thingpulse.com/product/espaper-plus-kit-wifi-epaper-display/

This actually isn't a classical bug - more a GUI that displays information in a non-obvious manner. See https://github.com/ThingPulse/espaper-weatherstation/issues/15#issuecomment-413747079 for details.

Thanks, it is quite unintuitive


Wouldn't install ipdb==0.10.3 on Mac. Used 0.10.2

Note: for support questions, please use the cookiecutter-django tag on stackoverflow. This repository's issues are reserved for feature requests and bug reports. If you need quick professional paid support for your project, contact<EMAIL_ADDRESS>

**I'm submitting a ... **

[x ] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, see note at the top of this template.

Do you want to request a feature or report a bug?
Report a bug

What is the current behavior?
Wouldn't install ipdb==0.10.3. Kept getting the following error:
Command python setup.py egg_info failed with error code 1 in .../project/environment/build/ipdb

And:
error in ipdb setup command: Invalid environment marker: python_version >= "3.3"
I changed the requirements file to include version 0.10.2 and it installed.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

What is the expected behavior?

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)

Did you file a corresponding issue with ipdb?

Also, thanks for the report 😃

This is an IPDB issue and not a Cookiecutter Django problem. Please open your issue with that project.


CDS API is not called when setting up cluster manager

Im attempting to setup the CDS API with envoy. I have succeeded with static config first and see my static configs work fine.
Version: /usr/local/bin/envoy  version: 3bc959c440a7e6903110faf4fd53942ca2ac8a07/Clean/RELEASE
I have confirmed that SDS and RDS API both make requests to service.
Please see the following config as what I am using:
{
  "listeners": [
    {
      "address": "tcp://<IP_ADDRESS>:443",
      "filters": [
        {
          "type": "read",
          "name": "http_connection_manager",
          "config": {
            "codec_type": "auto",
            "stat_prefix": "ingress_http",
            "access_log": [
              {
                "path": "/var/log/envoy.log"
              }
            ],
            "rds": {
              "cluster": "sds",
              "route_config_name": "envoyCluster"
            },
            "filters": [
              {
                "type": "decoder",
                "name": "router",
                "config": {}
              }
            ]
          }
        }
      ]
    }
  ],
  "admin": {
    "access_log_path": "/dev/null",
    "address": "tcp://<IP_ADDRESS>:8001"
  },
  "cluster_manager": {
    "clusters": [
      {
        "name": "MyService",
        "service_name": "MyService",
        "connect_timeout_ms": 250,
        "type": "sds",
        "lb_type": "round_robin",
        "features": "http2",
        "ssl_context": {
          "alpn_protocols": "h2,http/1.1",
          "private_key_file": "/etc/ssl/private/some_pkey.pem",
          "cert_chain_file": "/etc/ssl/certs/some_cert.pem"
        }

      }
    ],
    "cds": {
      "cluster": {
        "name": "cds",
        "connect_timeout_ms": 250,
        "type": "strict_dns",
        "lb_type": "round_robin",
        "hosts": [
          {
            "url": "tcp://some.host:8085"
          }
        ]
      },
      "refresh_delay_ms": 2
    },
    "sds": {
      "refresh_delay_ms": 2000,
      "cluster": {
        "name": "sds",
        "connect_timeout_ms": 250,
        "type": "strict_dns",
        "lb_type": "round_robin",
        "hosts": [
          {
            "url": "tcp://<IP_ADDRESS>:8085"
          }
        ]
      }
    }
  }
}```

The use case I am after is to dynamically modify the cluster as new services are made available. SDS gets me half way there with host:ip membership but knowledge of the cluster I am after.

As a second issue I notice I can not use CDS with zero clusters:[]. I actually had to define 1 to get the RDS and SDS api's to call.

Any guidance or examples or suggestions on what is wrong and how to effectively enable / debug CDS API queries.

Thanks and awesome project here!

I'm guessing tcp://some.host:8085 is not the host you want for the CDS server. /clusters and /stats admin output will typically help you debug.

Ok thanks. I removed actual host. I tried with "static" and "<IP_ADDRESS>:8085" as well and see requests made. In my desired config RDS , SDS, CDS all point at same server. I tried "static" "<IP_ADDRESS>:8085" for all. Again the RDS and SDS properly request. I can't seem to get CDS to make any requests.

Sorry don't know. Will need complete final config, and admin output of /clusters and /stats to help further. Or you can ask for help in gitter.

Thanks! /clusters helped. For completeness here is the final config that worked for me to get SDS,RDS,CDS all working.
{
  "listeners": [
    {
      "address": "tcp://<IP_ADDRESS>:9443",
      "filters": [
        {
          "type": "read",
          "name": "http_connection_manager",
          "config": {
            "codec_type": "auto",
            "stat_prefix": "ingress_http",
            "access_log": [
              {
                "path": "/var/log/envoy.log"
              }
            ],
            "rds": {
              "cluster": "cds",
              "route_config_name": "envoyCluster",
              "refresh_delay_ms": 2000
            },
            "filters": [
              {
                "type": "decoder",
                "name": "router",
                "config": {}
              }
            ]
          }
        }
      ]
    }
  ],
  "admin": {
    "access_log_path": "/dev/null",
    "address": "tcp://<IP_ADDRESS>:8001"
  },
  "cluster_manager": {
    "clusters": [],
    "cds": {
      "cluster": {
        "name": "cds",
        "connect_timeout_ms": 250,
        "type": "static",
        "lb_type": "round_robin",
        "hosts": [
          {
            "url": "tcp://<IP_ADDRESS>:8085"
          }
        ]
      },
      "refresh_delay_ms": 2000
    },
    "sds": {
      "refresh_delay_ms": 2000,
      "cluster": {
        "name": "sds",
        "connect_timeout_ms": 250,
        "type": "strict_dns",
        "lb_type": "round_robin",
        "hosts": [
          {
            "url": "tcp://<IP_ADDRESS>:8085"
          }
        ]
      }
    }
  }
}

time="2017-05-02T17:23:35Z" level=info msg="ListRoutes for: serviceCluster:"envoy_cluster" serviceNode:"envoy_node" routeConfigName:"envoyCluster"
time="2017-05-02T17:23:35Z" level=info msg="Got request for: /v1/clusters/envoy_cluster/envoy_node"
time="2017-05-02T17:23:35Z" level=info msg="ListClusters for: serviceCluster:"envoy_cluster" serviceNode:"envoy_node" "
time="2017-05-02T17:23:38Z" level=info msg="Got request for: /v1/clusters/envoy_cluster/envoy_node"
time="2017-05-02T17:23:37Z" level=info msg="Got request for: /v1/registration/MyService"
time="2017-05-02T17:23:37Z" level=info msg="ListHosts for: serviceName:"MyService" "


Kv firewall

Description
During deploy, terraform requires access to a KV to retrieve secrets. Said KV has to update its firewall rule to only "Allow public access from specific virtual networks and IP addresses".
The current changes are meant to authenticate as an Azure Service Principal and include the current runner public IP into the KV's firewall allow list.
Once the task is done, the IP is removed.
The KV name and it's RG name are set as env variables over the docker-compose.yml.
Fixes # Security Scanning Services - Compliance: Key Vault must have public access disabled.
Type of change
Please delete options that are not relevant.

[x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How Has This Been Tested?
TBD
Checklist:
Please delete options that are not relevant.

[x] I have performed a self-review
[ ] Changelog has been updated
[ ] Documentation has been updated
[ ] Unit tests pass locally (./scripts/test)
[ ] Code is linted and styled (./scripts/format)

Closing in favor of #161


Fatal error: Uncaught Error: Class ‘UPS\OAuthClientCredentials\Configuration’ not found in /

after composer install:
composer require abantecart/ups-php
i successfully installed everything and adjusted the credentials in
getAccessToken.php
and copy getAccessToken.php in root
unfortunately I only get:
Fatal error: Uncaught Error: Class ‘UPS\OAuthClientCredentials\Configuration’ not found in /var/www/getAccessToken.php
that's the simplest example, what's wrong with it?

Did you include the Composer autoloader at the top of your file? require_once 'vendor/autoload.php';

yep.

PHP version is  8.2.12

@jav666 I can reproduce on my end. I'll do some research and see if I can fix it.

but there is no "autoload.php" under this path '/vendor/abantecart/ups-php/vendor/autoload.php' ... and no "vendor" dir to

just copy & paste?

no, that doesn't work

Hmm, there is for me.  Give it a try and see if that works.

yes. works. ok, thank you very much!

@abolabo If I may ask, what's the logic behind closing this as completed? It seems like there's some kind of bug in the autoloading logic, since you need to manually run composer update inside the package and include the nested autoloader file if you want to use this package.
The examples in their current form are broken.

ok, I had a look under ‘closed’ ... apparently everyone had the problem, because it didn't work from start to finish

I have the same issue.


Print type of object

Hello,
It's possible in the print function  return the type of object?
exemple when I make
local a={}
local b=true
local c = 12
print(a,0,10)
print(b,0,20)
print(c,0,30)

should display
Table
true
12

Except if you a tip for return type with the print function.
thanks

I'm not sure if I understand your problem, but lua has in its standard library function type() which return string containing type of object.
local a={}
local b = true
local c = 12
print(type(a),0,10)   -- prints "table"
print(type(b),0,10)  -- prints "boolean"
print(type(c),0,10)  -- prints "number"

There's also the tostring(object) function.

Thanks,
The method tostring is most near what I look for.

closing then


Tgstation.Server version 6.1.2

Automated Pull Request
This pull request was generated by our deployment pipeline as a result of the release of tgstation-server-v6.1.2. Validation was performed as part of the process.
The user account that created this pull request is available to correct any issues.

[x] Have you signed the Contributor License Agreement?
[x] Have you checked that there aren't other open pull requests for the same manifest update/change?

This PR is generated as a direct result of a new release of tgstation-server this should be impossible

[x] This PR only modifies one (1) manifest
[x] Have you validated your manifest locally with winget validate --manifest <path>?

Validation is performed as a prerequisite to deployment.

Manifest installation and uninstallation is performed as a prerequisite to deployment.

[x] Does your manifest conform to the 1.5 schema?

Microsoft Reviewers: Open in CodeFlow

I'm unable to reproduce this issue locally using Windows Sandbox and I can't seem to locate the validation logs to diagnose the problem. Could someone point me to them please?

Automatic Validation ended with:

Installation failed with exit code -1978334972

(Automated response - build 530.)

Are there download links for the .msi logs available somewhere? I feel like there used to be.

Are there download links for the .msi logs available somewhere? I feel like there used to be.

There are, many links away. I wrote some automation to gather them, pull out any lines with "fail" or "error" in them, and add them to the PR.

@wingetbot waivers Add Validation-Installation-Error


Exporting to numpy changes the order of dimensions

Hi,
Maybe this is not an issue, but I am not aware of this behaviour, so I'm just asking why it happens like this :
import SimpleITK as sitk
import numpy as np

img = sitk.ReadImage('random nifti image')
img.GetPixel(12, 13, 14) # print 0
img.SetPixel(12, 13, 14, 666)
sitk.WriteImage(img, 'my nifti file')

img = sitk.ReadImage('same nifti image')
img.GetPixel(12, 13, 14) # print 666
sitk.GetArrayFromImage(img)[12, 13, 14] # returns 0

# looking for the index of value 666
np.where(sitk.GetArrayFromImage(img) == 666)
#returns (array([14]), array([13]), array([12]))

# I conclude that during exporting to numpy, the 1st and 3rd dimensions are swapped

There is all details about the image :
Pixel Type is scalar
Component Type is short
Image Dimension is 3
Image (0x1be8570)
  RTTI typeinfo:   itk::Image<short, 3u>
  Reference Count: 2
  Modified Time: 339
  Debug: Off
  Object Name:
  Observers:
    none
  Source: (none)
  Source output name: (none)
  Release Data: Off
  Data Released: False
  Global Release Data: Off
  PipelineMTime: 0
  UpdateMTime: 0
  RealTimeStamp: 0 seconds
  LargestPossibleRegion:
    Dimension: 3
    Index: [0, 0, 0]
    Size: [182, 218, 182]
  BufferedRegion:
    Dimension: 3
    Index: [0, 0, 0]
    Size: [182, 218, 182]
  RequestedRegion:
    Dimension: 3
    Index: [0, 0, 0]
    Size: [182, 218, 182]
  Spacing: [1, 1, 1]
  Origin: [-90, 126, -72]
  Direction:
1 0 0
0 -1 0
0 0 1

  IndexToPointMatrix:
1 0 0
0 -1 0
0 0 1

  PointToIndexMatrix:
1 0 0
0 -1 0
0 0 1

  Inverse Direction:
1 0 0
0 -1 0
0 0 1

  PixelContainer:
    ImportImageContainer (0x1be9240)
      RTTI typeinfo:   itk::ImportImageContainer<unsigned long, short>
      Reference Count: 1
      Modified Time: 331
      Debug: Off
      Object Name:
      Observers:
        none
      Pointer: 0x7fc105d7c010
      Container manages memory: true
      Size: 7221032
      Capacity: 7221032

Thanks !

I got some kind of answer here :
http://insightsoftwareconsortium.github.io/SimpleITK-Notebooks/01_Image_Basics.html
Still not sure why it is that way. Anyway if it's official, I am ok with it. closing

The SimpleITK point is represented as (x,y,z) and simularly the index is (i,j,k). This directly maps to the ITK index and point types. The the sitk Image [] operators can be done img[(i,j,k)] or img[i,j,k]. This provides a consistent interface. Here the x point and i index are the fast axis for the buffer layout.
For numpy's ndarra it is indexed nda[k,j,i] with i being the fast axis. There are ways to manipulate the ndarray image so that the index order is reversed. nda are default indexed by [slice, row, column].
Hope this helps.

Thanks ! good to know


The given template  could not be found or is not readable

Hi, according with the documentation: https://www.phpdoc.org/docs/latest/getting-started/changing-the-look-and-feel.html I could use more than one template but when I do for example --template="zend,responsive-twig or --template="checkstyle,clean" I get the error

The given template zend,responsive-twig could not be found or is not readable

but if I use for example --template zend --template responsive-twig phpdoc takes only the last one template parameter.
I am using phpDocumentor v2.8.5
Regards

Hello @NestorAcevedo,
I have resolved the issue on master and it will be included in the next release. Thanks for mentioning this to us!


U - Finish the article "Privacy, permissions, and information security"

This article, located at https://wiki.developer.mozilla.org/en-US/docs/Web/Privacy, is intended to be an introduction to concepts around privacy and data security. Terminology, basic descriptions of concepts, that sort of thing.
Tasks

[ ] Review the previously existing material to ensure it's accurate and up to date.
[ ] Write the section "Personal and private information"; this should detail what kinds of information are personal or could be used against the user in some way, either by direct attack or as a means to obtain further access.
[ ] Finish the section "Privacy risks." This section lists ways that private or personal information could be obtained by bad actors.
[ ] Write the section "Keeping personal data safe," which should cover things users should do while using browsers to ensure their data is secure from bad actors.
[ ] Write the section "Managing site permissions" to cover how permissions are managed for individual web sites in modern browsers. This will be about things like the Permissions API but also permissions that are managed separately from this API still.
[ ] Finish the section "Bringing it all together," which needs to cover how to to ensure privacy and data security by using all the available APIs and settings available within a web app.

Acceptance criteria

Article is complete and accurate
Submitted to the security team for their review

Please be sure to check for overlap with other articles, so we don't end up with similar content (e.g., "keeping personal data safe") in multiple places.

Yep. Was planning to but good reminder! The idea is to get this stuff into one place finally.
Eric "Sheppy" Shepherd
Senior Technical Writer
MDN Web Docs
Mozilla
On Jun 24, 2020, 6:01 PM -0400, Janet Swisher<EMAIL_ADDRESS>wrote:

Please be sure to check for overlap with other articles, so we don't end up with similar content (e.g., "keeping personal data safe") in multiple places.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub, or unsubscribe.

We de-prioritized this.


ESO PushSecret with Vault - audit logs filling at enormous rate

We are slowly migrating to ESO and I observed that it seems like there are only ESO requests in vault audit logs, and at high volume rate of over 30 messages per second!
I am wondering how are others dealing with this? I know that there is apparently no filtering feature for Vault audit logs, and those requests and responses look like something I could filter easily and save enormous log storage space.
Upon further inspection, I found few projects that are using PushSecret and it causes message rate of 15-20k messages per hour, per project :)

We are slowly migrating to ESO and I observed that it seems like there are only ESO requests in vault audit logs, and at high volume rate of over 30 messages per second!
I am wondering how are others dealing with this? I know that there is apparently no filtering feature for Vault audit logs, and those requests and responses look like something I could filter easily and save enormous log storage space.
Upon further inspection, I found few projects that are using PushSecret and it causes message rate of 15-20k messages per hour, per project :)

@tuttheking81 did you want to write something?

There is something wrong with PushSecret definitely. Vault version used is 1.7.2, ESO is v0.9.11. I noticed there is pushsecret fix  for vault added to v0.9.14 so will try that one.
Currently increasing refreshInterval parameter of pushsecret helped decrease amount of messages a little, but not as much as I expected.


Support for dynamic items

Hi,
This is a feature request rather than an issue ticket.
I would love to have the possibility to dynamically add items to a contextmenu at runtime.
The scenario: A contextmenu gets triggered and the menu items are created depending on info from the trigger element.
Like 'Add to' > [bunch of dynamic elements]
I tried to alter the opt.commands and opt.items objects in the show event of the contextmenu but with no effect.
One way to achieve this would be a beforeRender event where it's possible to replace the items created at registration with new ones.
Another way (seen at jjmenu plugin) is instead of a hardcoded item object literal one can use a function which provides context (of the trigger element) and returns a dynamically created item.
As a workaround (haven't tested this yet) it should be possible to register a click event with jQuery which then (functions as wrapper and) creates a  $.contextMenu with items in the context of the click event.
But this could get messy really quick with a lot of different trigger events.
I don't know if this functionality is within the designated scope of jQuery-contextMenu,
but it would greatly enhance the overall very good experience with this plugin. :)
Thanks.

Please have a look at http://medialize.github.com/jQuery-contextMenu/demo/dynamic-create.html and tell me if this suits your needs. If so, I'd update the docs and release the fix.

Oops, shortly after posting the response I realized I didn't use the latest jquery.contextMenu.js. :)
After playing around with the new code code a bit I have to say this is exactly what I wanted to achieve.
Thanks again for your outstanding support!
Make sure to update the docs as there are definitely others out there who'd appreciate runtime generated menus.
Your plugin is now the best contextmenu plugin for jQuery, no doubt. :)

Followup: After using the new code and runtime generated items quite extensively in a project I had no issues whatsoever.
Everything is working smoothly, events (show/hide) are working flawless.

Hi,
I'm trying to dynamically initialize menu from json data.
I've tried following html:
02/26/2014

and following javascript:
var globalName = "";
        function loadme() {
            return {
                "edit": { name: globalName },
            }
        };
        function setGlobalName(obj) {
            var id = obj.id;
            $.get(<url to json >, function (data) {
                var json = JSON.parse(data);
                globalName = json["<SomeField>"];
            });
        };
        $(function () {
            $.contextMenu({
                selector: '.Acceptance',
                build: function ($trigger, e) {
                    return {
                        items: loadme()
                    };
                }
            });
        });

I'm getting on first click empty menu:

and only on the second click the right one:

Could you advice me please why I'm getting this effect and how to correct it?
Thanks a lot in advance,
Alexander

My solution for generation of context menu for each row getting option from other drop down menu (clone options)
`$(function(){
$.contextMenu({
selector: '.fileManagerTable tbody tr',
build: function($trigger, e) {
var setup= {
callback: function(key, options) {
var m = "clicked: " + key;
window.console && console.log(m) || alert(m);
},
items:{}
};
console.log($trigger);
        $('.row-group-actions li',$trigger).each(function () {
            var item=$(this);
            var actionText=item.text();
            if(item.data('icon')){
                setup.items[actionText]={name: actionText,icon:item.data('icon')};
            }
            else{
                setup.items[actionText]={name: actionText};
            }

        });

        return setup;
    }
});

});`