vips Command line vs sharp

The results for carrying out the same operation on an image (strip metadata and quality 80 jpeg) are significantly different.
Command Line = vips copy voonik.jpg voonik-sharp.jpg[Q=80,strip]
Sharp = pipeline.quality(80).jpeg() where pipeline is sharp(originalImageBuffer).
The difference in the two images using the identify command can be seen here https://drive.google.com/open?id=0B3CnCQhw6PquMmN4Z1JKVGNtUXM
The visual difference can be seen here
https://drive.google.com/open?id=0B3CnCQhw6PquQ1l6Z3FRYkRYNnc

The image generated with sharp https://drive.google.com/file/d/0B3CnCQhw6PquVHprRW1uOTB5MGs/view?usp=sharing
The image generated using vips cli
https://drive.google.com/file/d/0B3CnCQhw6PquQWh2UkNLS0hISFE/view?usp=sharing
The original image
https://drive.google.com/file/d/0B3CnCQhw6PquUUU0eTBDUkJQcWM/view?usp=sharing
Can anyone suggest what is that that is being done differently that the images have slightly varying colors, though sharp is using the same vips module internally?

Hello, the original image has an embedded RGB profile so the pixel values should be considered linear RGB.
sharp always uses such a profile to convert to non-linear sRGB (via libvips+lcms) then strips the profile.
vips copy voonik.jpg voonik-sharp.jpg[Q=80,strip] will strip the RGB profile but not perform any colour conversion. vipsthumbnail ... will perform the colour conversion.

So is there a way to convert the output from sharp (or vipsthumbnail) to the output of vips-cli?

sharp currently always converts to sRGB, which can reduce the gamut, but does ensure the same output on all devices and browsers.
See #218 for discussion about how we should best expose the use of other colourspaces and profiles.
Remove the strip flag from your vips copy ... example to retain the profile in the output.

As of now, the approach used is to strip all metadata except color profile and use .withMetadata() in sharp. Closing this for now as 218 is being tracked.


Set requests timeout

How can I set the request timeout when using the standard
I had this issue on one of my process yesterday :
Traceback (most recent call last):
  File "worker/0.2.1/venv/lib/python2.7/site-packages/worker/devices.py", line 134, in notify
    notifier.send_notification(self.token, message, data)
  File "worker/0.2.1/venv/lib/python2.7/site-packages/worker/devices.py", line 110, in send_notification
    self.json_request(registration_ids=[token], data=data)
  File "worker/0.2.1/venv/lib/python2.7/site-packages/gcm/gcm.py", line 317, in json_request
    response = self.make_request(payload, is_json=True)
  File "worker/0.2.1/venv/lib/python2.7/site-packages/gcm/gcm.py", line 189, in make_request
    proxies=self.proxy
  File "worker/0.2.1/venv/lib/python2.7/site-packages/requests/api.py", line 112, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "worker/0.2.1/venv/lib/python2.7/site-packages/requests/api.py", line 58, in request
    return session.request(method=method, url=url, **kwargs)
  File "worker/0.2.1/venv/lib/python2.7/site-packages/requests/sessions.py", line 518, in request
    resp = self.send(prep, **send_kwargs)
  File "0.2.1/venv/lib/python2.7/site-packages/requests/sessions.py", line 639, in send
    r = adapter.send(request, **kwargs)
  File "worker/0.2.1/venv/lib/python2.7/site-packages/requests/adapters.py", line 488, in send
    raise ConnectionError(err, request=request)
ConnectionError: ('Connection aborted.', error(110, 'Connection timed out'))

How can I set the timeout value on the requests query ?

https://github.com/geeknam/python-gcm/commit/733b5979448fc01295b73e94bc9de1f20f0b68da

My bad. I had version 0.2.0 installed. Thanks for the quick answer.

timeout (float or tuple) -- (optional) How long to wait for the server to send data before giving up, as a float, or a (connect timeout, read timeout) tuple.
http://docs.python-requests.org/en/master/user/advanced/#timeouts

Thanks, this parameter was not there on version 0.2.0 ;) I don't why the version of this package has been fixed at this value on this project I am working on. I am going to ask the creator.


Don't need to manually add packages if they're listed in the REQUIRE …

…file
And update Travis to test 0.4 and 0.5 separately, since release will change meaning soon.
Comment out the script, since the default does the same as what's left.

Coverage decreased (-0.001%) to 99.533% when pulling 5ba5b521ef8d6d3106698a0dfc9f70a72c159d10 on tkelman:patch-1 into 5230e44452570b1c75b6a98d2f46f86613a9b1e5 on MPF-Optimization-Laboratory:master.

Makes sense, thanks for fixing all my newb mistakes - merged.


Bring back debug.FreeOSMemory() call to prevent OOMKilled(s)

Brings debug.FreeOSMemory() call that originally added with:

https://github.com/up9inc/mizu/pull/277

then later removed with:

https://github.com/up9inc/mizu/pull/1026

Apparently these changes are still required despite the recent optimization efforts. Otherwise the tapper pod gets easily OOMKilled.
The removal of these changes didn't make into any stable releases.

@gadotroee I realized that only debug.FreeOSMemory() is necessary to prevent OOMKilled(s).


Add "recipes" for masking common sensitive data

Things like:

date of birth
social security numbers
phone numbers
credit card numbers

... so it's easy for new users to enable this, get it out of the box, and also add their own patterns, and so that it's easy to point to this from documentation.

How to: https://sematext.com/docs/logagent/how-to-gdpr_web_logs/


Catch BadDocID and log warning instead of throwing

Catch BadDocID and log warning instead of throwing to match this specific behavior with the other platform.

The failed test is due to the leak object and is not related to this PR.

I happen to also look into an issue of passing empty string as id into GetDocument(id). LiteCore will throw the exception, but I wonder if platform side should Log the exception or throw? @pasin  @borrrden

The other platforms should keep the current implementation as no exception will not thrown.

Seem like the PR's validation Mac Machine was wiped out?

I re-ran it then decided it wasn't worth it just to check a one line throw; addition.


Refactor clean up tool

All Submissions:

[x] Have you signed our CLA?
[ ] Put closes #XXXX in your comment to auto-close the issue that your PR fixes (if there is one).
[ ] Update docs/release-notes/release-notes.md if your changes should be included in the release notes for the next release.

Could we summarise in the description the refactor goals?


If column is showing field called 'id' its adding some weird artifacts

I do not care about sorting, it is disabled but whenever I am adding column that is showing field 'id' it is adding broken sorting arrays in column name.

const columns = [
{ label: 'Date', field: 'id', width: '1%' },
{ label: 'Message', field: 'message' },
{ label: 'Count', field: 'count' },
];

When set sortable to false. It is fixed


Add system to list of supported formats

We need support for SystemJS format because we would like to load generated bundle through SystemJS.
Hopefully, I haven't missed changing something. :blush:
I've tested just basic scenario and it seems okay. Not sure how to test it on some complex scenario.

Seems fine.

@allcontributors please add @mfolnovic for code, docs


Tomato Meeting Search enable by setting

Simple tomato meeting search setting - separate from helpline routing

Can you add a bullet about this in the release notes?

Sure - under version 3.6?

Yes.

On Dec 30, 2019, at 6:09 AM, spiritualtheory<EMAIL_ADDRESS>wrote:
Sure - under version 3.6?
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub https://github.com/bmlt-enabled/yap/pull/357?email_source=notifications&email_token=AAOD3O3CMCY4UW7OXWCMOIDQ3HJE3A5CNFSM4KBHN3DKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH2CJOY#issuecomment-569648315, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOD3O7GQ2ZCLSIWTA5MPODQ3HJE3ANCNFSM4KBHN3DA.

In addition please remove yap.iml and add to .gitignore.
On Mon, Dec 30, 2019 at 6:09 AM Danny Gershman<EMAIL_ADDRESS>wrote:

Yes.

On Dec 30, 2019, at 6:09 AM, spiritualtheory<EMAIL_ADDRESS>wrote:
Sure - under version 3.6?
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub <
https://github.com/bmlt-enabled/yap/pull/357?email_source=notifications&email_token=AAOD3O3CMCY4UW7OXWCMOIDQ3HJE3A5CNFSM4KBHN3DKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH2CJOY#issuecomment-569648315>,
or unsubscribe <
https://github.com/notifications/unsubscribe-auth/AAOD3O7GQ2ZCLSIWTA5MPODQ3HJE3ANCNFSM4KBHN3DA
.

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/bmlt-enabled/yap/pull/357?email_source=notifications&email_token=AAOD3O6WU2YNZ7DIC7DMRPLQ3HJGFA5CNFSM4KBHN3DKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH2CKEA#issuecomment-569648400,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAOD3O2PZJF7LB7WR2UY4K3Q3HJGFANCNFSM4KBHN3DA
.

Ok - will take care of this afternoon


proposal: x/sync/semaphore: Add TryAcquireAll function

Motivation
I use semaphore to guard a pool of objects. It other words tokens in the semaphore correspond to my items in the pool. The standard acquire function looks like this:
func (p*Pool[T]) Acquire(ctx context.Context) (*T, error) {
    err := p.semaphore.Acquire(ctx, 1)
    if err != nil {
        return nil, err
    }

    p.mux.Lock()
    defer p.mux.Unlock()

    // Pseudo-function abstracting away implementation details of the pool.
    return p.takeOne()
}

At the same time, I'd love to have a function AcquireAll that acquires all available resources in my pool at once. The problem is that because the current number of available resources is represented by the semaphore state (i.e. free semaphore tokens), I don't know how many tokens should I try to acquire from the semaphore.
I for sure can do semaphore.TryAcquire(1) in a loop as long as it succeeds, but this would require linear time. Another solution is to call semaphore.TryAcquire(n) with n = 2^k. By doing this, I could acquire all available tokens in 64 steps (because int64 has 64 bits). This is better but not yet ideal.
Proposed solution
Add TryAcquireAll function that acquires all available tokens atomically and returns the number of tokens acquired. This allows to implement the AcquireAll function from an example above using single call to the semaphore.
Proposed implementation of this method is available here:

GitHub
Googlesource

CC @jba

It feels that this issue is not moving anywhere. Is there something I can do to push it forward?

This proposal is in the incoming queue, along with over 200 other proposals (see https://github.com/orgs/golang/projects/17).  We'll get to it.  Sorry for the delay, but there are lots of proposals.  You can follow the proposal process in general at #33502.


Use sudo only in the scripts instead of the invocation

I think something that would make this project even awesome-r is if the sudo ./install.sh was replaced with just ./install.sh and instead sudo gets used when it's needed within the scripts themselves. The reason for this is because not only does it look more trustworthy to new users, but it also acts as insurance in case some numbskull adds something of their own to the script that they don't know runs as root. The downside is that sudo will appear a lot in the scripts, but that only happens once.

Sounds good. That way downloading and building of the Shairport Sync libraries could also happen as user, and only installation (make install) will be run with sudo.


Broken with ComfyUI: 2856ab885b

Broken with comfy version
ComfyUI: 2856ab885b

Could you please provide steps to reproduce? With a fresh install of ComfyUI ComfyUI v0.3.9-21-g73e0498 I experience no issues.


added aarch64 (arm 64 bit) detection

Signed-off-by: Matthias Lohr<EMAIL_ADDRESS>What I did
Added "support" for ARM 64 bit architectures (by adding detection of aarch64 as architecture string)
Related issue: 64 bit arm not supported #86
How to verify it

Use it on ARM. Sorry, no CI test available for that due to lack of aarch64 runners.

Checklist

[x] I have confirmed that my PR passes all linting checks
[ ] I have included test cases (no aarch64 runners)
[ ] I have updated the documentation (README.md)
[x] I have added an entry to the changelog

I'm not sure if there is a need for updating the README. Additionally, no idea how to test it. How to deal with that?

Yeah, not really sure how it can be tested :(  but it seems like fairly straightforward code.


How to import Then global

I want use then in global

What I think you are looking for is this: How to import a Swift framework globally?
@_exported import Then


1.3.9 WebServer already started.

Since the 1.3.9 Version i sometimes get the error that the webserver already started. Don't know what the Problem is since the new version

Are you using the Disconnect function of the client at any point?

For the time being, I would recommend reverting back to 1.3.7 . There were some issues with the built in websocket class we were using. Moving over to websocket-sharp in 1.4.0 and it should resolve a lot of these issues.
Sorry :(

Alright guys, 1.4.1 NuGet package was just pushed. Should rectify parsing issues. Still not totally sure about the WebServer already started. Will look into that.

Yeah I already went back to 1.3.7 but  I will try the newest version. Thanks for the information!
Keep up the good work!

I'll go ahead and close this, feel free to reopen if you think the issue hasn't been resolved :)


Track 'Blueconic'

Vendor Site - https://www.blueconic.com/
Example Site - https://shopplanetblue.com/
Category - 10 (Analytics)
Detection - Check for scripts from domain //cdn.blueconic.net/
- Check for JS object 'blueConicClient'

added as Customer data platform


Update dependencies and refactor code for Auth0 management models

Updated the dependencies for more accurate types and better performance. Refactored the code in the management modules and providers to accommodate the changes in the updated dependencies. The management client now has more precise typing for options.

Amazing job mate!


1st Kiss Manga

Source name
1st Kiss Manga
Source link
https://1st-kissmanga.net
Source language
English
Other details
1st kiss manga lost most of its websites and this is the new one. Needs an update and probably remove all the dead one's from the repo. Attached is an image of the website:
Old version used to be named 1stKissDashManga now its 1st-KissManga

Acknowledgements

[X] I have checked that the extension does not already exist by searching the GitHub repository and verified it does not appear in the code base.
[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
[X] I have written a meaningful title with the source name.
[X] I will fill out all of the requested information in this form.

Bumping for attention, none of my comics update anymore


feat(carla_autoware): add interface to easily use CARLA with Autoware

Description

The interface between CARLA and Autoware aims to bridge both systems.
Required this launch PR: https://github.com/autowarefoundation/autoware_launch/pull/924
Related links

Main Repositories with instruction (https://github.com/mraditya01/autoware.universe/tree/updated_version/simulator/carla_autoware)
CARLA Lanelet2 Maps (https://bitbucket.org/carla-simulator/autoware-contents/src/master/maps/)
Update to e2e launch files (https://github.com/mraditya01/autoware_launch/tree/updated_version)
Issues related to CARLA Autoware Bridge

https://github.com/autowarefoundation/autoware.universe/issues/6487
https://github.com/autowarefoundation/autoware.universe/issues/5701

Tests performed

Tested on Town01 map from Link.

Environment Setup:
CARLA 0.9.15
Autoware.universe Main Branch
ROS2 Humble
Python 3.10
Ubuntu 22.04

Testing:

Tested the interface on the Town01 map provided by the CARLA simulator.
Verified the accuracy of vehicle localization within the simulated environment.
Checked that the vehicle's estimated position matches the ground truth position provided by CARLA.
Verified that the localization module in Autoware correctly interprets data received from CARLA.
Tested the perception module's ability to detect obstacle within the scene.
Tested vehicle control under various scenarios, including lane following, obstacle stop, and intersection.

Issues Related

Tested velocity limit issue:

Confirmed the functionality of limiting vehicle velocity to 30 km/h by providing input via Autoware.
Verified that the vehicle's velocity did not exceed the specified limit during the test.

Tested vehicle stopped issue on particular path:

Replicated the reported issue by recreating the same path on the same map used in the initial observation.
Monitored the vehicle's behavior and trajectory during the test.
Confirmed that no issues occurred, indicating that the reported problem was not reproducible or no longer exists after further testing and investigation.
Video Working Example:
Video
Notes for reviewers

Interface changes

Effects on system behavior

Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.

[x] I've confirmed the contribution guidelines.
[x] The PR follows the pull request guidelines.

In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.

[ ] The PR follows the pull request guidelines.
[ ] The PR has been properly tested.
[ ] The PR has been reviewed by the code owners.

Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.

[ ] There are no open discussions or they are tracked via tickets.
[ ] The PR is ready for merge.

After all checkboxes are checked, anyone who has write access can merge the PR.

@Kim-mins can I ask you to test this PR ? I think you are using CARLA a lot so I am very interested in your feedback.

@maxime-clem Absolutely!
I read the instruction of the bridge, and I got some questions.
Q1. Spawning the ego vehicle
I could build and run the latest Autoware with the modified autoware_launch and autoware universe, but I cannot know how to spawn the ego vehicle with the bridge. (seems it works differently what I've used).
First I ran Carla 0.9.15, and it was loaded with Town10. I also ran the latest Autoware with Town01(not 10), but nothing happens.
There seem some logics for changing world and spawning the ego vehicle, but I cannot how to use it.
Q2. Building the bridge
I also tried to build the bridge with the following commands,
cd colcon_ws
colcon build --symlink-install

but the log is as below, which seems the build was unsuccessful:
Starting >>> carla_autoware
--- stderr: carla_autoware
/usr/lib/python3/dist-packages/setuptools/command/easy_install.py:158: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
package init file 'src/carla_autoware/__init__.py' not found (or not a regular file)
---
Finished <<< carla_autoware [1.48s]

Actually, I could not know where to run the command. I didn't know where the colcon_ws is.
Thank you for all your hard work! I've been really looking forward to it.

And this could be minor, README.md's content Supported Environment might be changed to the Environment Setup of this PR (I found it also supports the latest version after building and running 2024.04 :smiling_face_with_tear:)

@Kim-mins Thank you very much for the Feedback! We have updated the README file to provide more detailed explanation regarding the code and parameter used.
I will also answer some of the questions,
Q1. Spawning the Ego vehicle
Ego vehicle should have been spawned automatically at random location by default as you run the bridge. You can change the  location  to any specific coordinates (x, y, z) and orientation (roll, pitch, yaw)  by setting the spawn_point parameter in the carla_autoware.launch.xml file.
Same as the world map for CARLA, it should load automatically based on carla_map parameter on carla_autoware.launch.xml, with the default value set to Town01. If the map is not loaded on CARLA, there may be some error during the bridge initialization, such as timeout.
Q2. Building the bridge
I apologize for the confusion. I neglected to update the instructions for building the bridge individually, which still referenced the old cd colcon_ws command, which no longer exists. The README has now been updated with the correct instructions.
Q3. Frequency Annotation
By default, our bridge operates in synchronous mode with a 0.05-second timestep. The performance is not negatively impacted because the annotated frequency only affects the publishing rate of ROS messages, not the sensor tick rate within CARLA itself. In fact, reducing the publishing frequency can improve simulation time performance, as fewer computationally intensive functions during CARLA -> Autoware data conversion, such as create_cloud, are called.
Additional Question

And this could be minor, README.md's content Supported Environment might be changed to the Environment Setup of this PR (I found it also supports the latest version after building and running 2024.04 🥲)

Thank you for testing the latest version! I'll update the supported versions once the 2024.05 version is released so we have more stable version. Small updates can occasionally disrupt the bridge. (Happens before when Autoware required the traffic_signal message as input for initialization and the bridge suddenly not working 😓).

Thank you for the response and modifications @mraditya01!
Actually, I'm not familiar to ros2. Could you please provide me more details?
Here are the commands I executed:
# Build bridge
colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release
# Run Carla
./CarlaUE4.sh -prefernvidia -quality-level=Low -RenderOffScreen
# Run Autoware
ros2 launch autoware_launch e2e_simulator.launch.xml map_path:=$HOME/autoware_map/Town01 vehicle_model:=sample_vehicle sensor_model:=awsim_sensor_kit simulator_type:=carla carla_map:=Town01

and I got RViz with no pose initialization, and Carla with Town10.
At this state, I guess I should run carla_ros.py, but I could not run it.
I ran the command python3 -m src.carla_autoware.carla_autowareat the path autoware.universe/simulator/carla_autoware, but I got the error below:
Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/workspace/src/universe/autoware.universe/simulator/carla_autoware/src/carla_autoware/carla_autoware.py", line 21, in <module>
    from .carla_ros import carla_interface
  File "/workspace/src/universe/autoware.universe/simulator/carla_autoware/src/carla_autoware/carla_ros.py", line 20, in <module>
    from autoware_auto_control_msgs.msg import AckermannControlCommand
ModuleNotFoundError: No module named 'autoware_auto_control_msgs'

It seems I should install dependencies, but I have no idea to. Could you please help me?
Thank you!

@Kim-mins

Did you also checkout the autoware_launch PR ?
Did you setup the "Python Package for CARLA 0.9.15 Ros2 Humble communication" ?

If yes to the above, then can you share your logfile ? I want to make sure there is no issue with the carla_autoware node.
(If you want we can discuss your issues on Discord. It will be easier to help you that way)

@maxime-clem
I did not noticed your mention on Discord. I think we can continue the discussion there.
Thanks!


Add missing tests for the traceable cache adapters

I just noticed that somehow I missed to make the unit tests for the traceable cache adapters, so here they are 😃

CI is broken though... does #487 fix it?

That PR helps fixing the build here by fixing the conditions needed to auto-enable the tracing instrumentation for the Cache component, which in turn allows me to safely require the symfony/cache-contracts package used in the unit tests without affecting whether the enablement status of the tracing feature. TL;DR: partially, yes


[CT-1749] [Feature] Let Snowpark telemetry know that dbt is creating the sproc

Is this your first time submitting a feature request?

[X] I have read the expectations for open source contributors
[X] I have searched the existing issues, and I could not find an existing issue for this feature
[X] I am requesting a straightforward extension of existing dbt-snowflake functionality, rather than a Big Idea better suited to a discussion

Describe the feature
Snowflake is requesting that the below line of code be added to the body of user-created python functions used to create python UDFs on behalf of users behind the scenes and have PartnerName_ToolName="dbt"
sys._xoptions['snowflake_partner_attribution'].append("PartnerName_ToolName")

Below is where our template of sproc creation is implemented. It seems the implementation would be to somehow modify the function definition in compiled_code to also include the sys._xoptions call?
https://github.com/dbt-labs/dbt-snowflake/blob/e18c501175c84d5b08d66244533e636a5a04dba1/dbt/adapters/snowflake/impl.py#L199-L210
This is an example provide by the Snowflake team
create function python_udf_usage_tracking(c1 int, c2 int)
returns double
language python
runtime_version='3.8'
handler = 'PartnerTrackingTest'
as $$$$
import sys

def sum(a,b):
    sum=a+b
    sys._xoptions['snowflake_partner_attribution'].append("PartnerName_ToolName")
    return sum
$$$$;

Describe alternatives you've considered
We do nothing
This is one idea
We add a session parameter to connection creation?
Not sure if this would be helpful for the Snowpark team, that wants to track consumption...
https://github.com/dbt-labs/dbt-snowflake/blob/main/dbt/adapters/snowflake/connections.py#L284-L285

Who will this benefit?
No response
Are you interested in contributing this feature?
No response
Anything else?
No response

Do we have to call sys._xoptions inside user's function? can we just do it at the very end or very beginning right after import sys?

agreed we should move it if possible to below the import instead of in user code
I don't see any reason we couldn't/shouldn't do this, would definitely check w/ @jtcohen6 to be sure

@dataders can you please expand on the alternate solution linked? Are you suggesting dbt python models will be able to add a specific query tag, say "snowpark_python" ?

@sfc-gh-ripu If I understand right, we're awaiting confirmation from folks on your side that it's possible to do something similar to sys._xoptions['snowflake_partner_attribution'] (which works in UDFs) in stored procedures as well, since that's how we're currently creating + calling dbt Python models on Snowpark.
@dataders My hesitation with the query_tag approach is, that's something we've opened up fully to user-space configuration. Users can add/remove whatever query_tag they want, and it's fully visible within their own query histories. Whereas application or snowflake_partner_attribution are just for use by Snowflake + partners.

@sfc-gh-ripu amazing! just opened up #383 as a draft. @ChenyuLInx @colin-rogers-dbt wanna take a look?


Configure Service Provider:

This will allow the type of service provider to be selected when installing Vault.

Thanks for the PR! I believe poise-service allows you to override most poise_service properties through attributes. Would you mind trying? I've done something similar for when we needed to override a service template.
override['poise-service']['vault']['provider'] = 'sysvinit'

Thanks, I didn't know I could override settings using attributes. I can get it to override the template with the following:
node.override['poise-service']['vault']['template'] = 'my-cookbook:test.erb'

But it doesn't work when I try to change the provider:
node.override['poise-service']['vault']['provider'] = :upstart

Hi, do you still want this PR? I know it will need updated but removing "service.provider(:sysvinit)" in https://github.com/johnbellone/vault-cookbook/pull/51 fixed the problem I was having.


Start animation tree at reset state

This PR changes the initial state of the player animation tree to RESET, so that it can cleanup the state before starting the idle animation (this fixes the issue the sword was initially visible when starting the game)

Looks good, merging.


New version: Tencent.QiDian version <IP_ADDRESS>10

[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?

[ ] Have you tested your manifest locally with winget install --manifest <path>?
[X] Does your manifest conform to the 1.5 schema?

Microsoft Reviewers: Open in CodeFlow

@wingetbot waivers Add Validation-Domain


[question] unused variable in TextureTintPipeline

In the consturctor I think this._tempMatrix4 = new TransformMatrix(); is never used in the whole code?

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

It's not. But it is used by some of the Game Objects render functions.

var GraphicsWebGLRenderer = function (renderer, src, interpolationPercentage, camera, parentMatrix)
{
    if (src.commandBuffer.length === 0)
    {
        return;
    }

    var pipeline = this.pipeline;

    var camMatrix = pipeline._tempMatrix1;
    var graphicsMatrix = pipeline._tempMatrix2;
    var currentMatrix = pipeline._tempMatrix4;


Bump jackson-core and jackson-databind from 2.13.2 to 2.14.0

Pull Request Etiquette

[x] I have checked the PRs for upcoming features/bug fixes.
[x] I have read the contributing guidelines.

Changes

[ ] Internal code
[ ] Library interface (affecting end-user code)
[ ] Documentation
[x] Other: Dependencies Update

Closes Issue: NaN
Description
CVE-2022-42003 7.5 Deserialization of Untrusted Data vulnerability pending CVSS allocation
CVE-2022-42004 7.5 Deserialization of Untrusted Data vulnerability pending CVSS allocation

Neither of these vulnerabilities affect JDA, since it only deserializes trusted data.

https://github.com/FasterXML/jackson-databind/issues/3665 issue was fixed in 2.14.1>=, so it would be great to bump the version to 2.14.2.

Could you also please update the versions in the README?


add secret_scope to notebooktask base params

Add's a parameter to the notebook job called "secret_scope", which will allow the notebooks to access the scope

#48


rapids_cpm_libcudacxx handle CPM already finding libcudacxx before being called

Consider the following example CMake example:
CPMFindPackage(libcudacxx ..... )
rapids_cpm_libcudacxx()
target_link_libraries(... PRIVATE libcudacxx::libcudacxx)

The first line will check out libcudacxx from source. This will result in the second line not checking out libcudacxx, and therefore not creating the libcudacxx::libcudacxx target, causing downstream failures.
On first pass this seems to be an impossible state to get into as all RAPIDS projects should be using rapids_cpm_libcudacxx. The problem was that before this PR, rapids-cmake would generate the above CPMFindPackage call when rapids_cpm_libcudacxx was called with a BUILD_EXPORT_SET.

@gpucibot merge


[WIP] Support RDMA namespace changing and generate CNI config with RDMA isolation support

Can one of the admins verify this patch?

@Mmduh-483 are you still interested in this PR?

Closing this PR,
if/when this becomes relevant it can be re-opened.


Add page for 'GBIF network webinar'

Request's come down to create a central location for information on the webinars to-date. Probably a combination of linking to events and surfacing the archived recordings. Intro text also needed.
Should be completed within the next two weeks, well ahead of GB24. We also need to consider preparing summary statistics on the webinars.
Ready…go!

I already did this: https://www.gbif.org/webinars
Let me know if it needs more work...


Broken links in docs

This page - https://docs.influxdata.com/influxdb/v1.7/administration/config/#collectd-settings
contains a few broken links.
There are 3 places on the page where it says "see the README on github" each time the page they link to gives a 404 error
URL for relevant page?
https://docs.influxdata.com/influxdb/v1.7/administration/config/#collectd-settings
What products and version are you using?
influx enterprise 1.7.4
Where did you look before opening the issue?

Thanks, @martinrw, for letting us know!
All links fixed and pointing to the docs versions of the UDP, OpenTSDB, and Graphite pages.
Also, added the links to the data node configuration settings documentation.
Fixed in master and published.

There are still a lot of broken links in the /content section.


vscode does not understand "~" refer to home directory

Does this issue occur when all extensions are disabled?: N/A, cannot really run jupyter notebook if disable all extension

VS Code Version: 1.64.2
OS Version: Windows 10 21H2 x64

Steps to Reproduce:

Run some python codes that will raise error
Attempt to open one of the file in trace (e.g. click on the number 267 below to open constant_op.py ). Since VSCode seems to treat ~ literally ~, it will fail to open the file. If select "create file", a folder ~ will literally be created under C drive.

Please file against the jupyter extension: https://github.com/microsoft/vscode-jupyter, I do not know why it is displaying POSIX styler paths on Windows.


feat: link creation form

@Michael-Liendo please remember to run: pnpm run format, and turn the PR "open" if you consider we are ready here!


No coverage of Linux

This page does not indicate how users of the PowerShell Core snap package are to install the Az module, since PSGallery is not available.

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

ID: 71ec5ae0-0434-376c-a781-da1ae031017b
Version Independent ID: 0fed6194-5f6b-b400-7d56-a0f6552c4cff
Content: Install Azure PowerShell on Windows with PowerShellGet
Content Source: docs-conceptual/azurermps-6.13.0/install-azurerm-ps.md
Service: azure-powershell
GitHub Login: @sptramer
Microsoft Alias: sttramer

@jasper-zanjani My install of PowerShell came with the NuGet package installed as part of it, which is what provides Install-Module. Can you please give some information about how you installed PowerShell on your system and the uname -a output, along with lsb_release -a if running a Debian- or Ubuntu-derived distribution?

Regardless of how you install PowerShell, it comes with the NuGet package manager as part of it. Once you start a powershell session, all you need to do is follow the installation instructions.


Fix/dumb asp support

Use tcp mode if a database name is selected
Show dropdown of available databases/iASP

Works like a champ!
Thank ya.


command exit code 1. "Finding free!!!"

Describe the bug
Command failed with exit code 1 Failed to set up loop device: No such file or directory.
To Reproduce
Steps to reproduce the behavior:

Attempt murkmod
See error

Expected behavior
Murkmod installing
Screenshots

System (please complete the following information):

octopus
v130
VT2

Additional context
Add any other context about the problem here.

I'm gonna assume this is related to the fix implemented previously.
Can you send the output of losetup -f?

I'm gonna assume this is related to the fix implemented previously.
Can you send the output of losetup -f?

FINDING FREE!!!
/dev/loop13

hmm. Are you sure you are using the most current version? To make sure everything is working try losetup -f | tail -1. It is possible we have forgotten to fix a losetup somewhere, but if you are using a different link than tinyurl.com/murkmod, then please make sure you use that.

hmm. Are you sure you are using the most current version? To make sure everything is working try losetup -f | tail -1. It is possible we have forgotten to fix a losetup somewhere, but if you are using a different link than tinyurl.com/murkmod, then please make sure you use that.

oh i'm using bit.ly/murkmod but the tinyurl link is down.

oh yeah, that's what I meant. Can you try running it now?

oh yeah, that's what I meant. Can you try running it now?

Nope didn't work. Same issue

In a fork of this repo, there is a workaround that uses the busybox losetup. Perhaps that's the route we should go?

I used KVS to set my kerver to 0 to downgrade to v109 and for some reason it didn't enroll me. Instead I have my school profile with murkmod installed but also my personal account. It didn't even wipe any data

Downgrading to v107 seemed to have fixed the issue as now murkmod works as expected


starter.go: make apply function private

turns out these functions are used in multiple places.
/close


Translations update from Hosted Weblate

Translations update from Hosted Weblate for Maccy/Settings / Pins.
Current translation status:

Hello, could you make [Appearance] available for translation?

Merged in 40d6f67


Re-enable InPlace NodePool upgrade test for kubevirt (CNV-36608)

Reverts openshift/hypershift#3547
The fix for the inplace upgrade has been fixed on MCO side and merged at https://github.com/openshift/machine-config-operator/pull/4190
Re-enabling the test to validate kubevirt provider can now perform NodePool InPlace upgrades.

/test e2e-aws

/test e2e-aws

Verifying stability:
/test e2e-kubevirt-aws-ovn

Verifying stability, 3rd time:
/test e2e-kubevirt-aws-ovn

last run:
             --- FAIL: TestAutoscaling/PostTeardown/EnsureAPIBudget/hypershift-operator_read (0.00s)

/test e2e-kubevirt-aws-ovn

last run:
                 --- FAIL: TestCreateCluster/Main/break-glass-credentials/sre-break-glass/CSR_flow (0.14s)

/test e2e-kubevirt-aws-ovn


Parallel Async Execution for Performance Boost 🚀

Hello, this pull request introduces performance improvements by executing asynchronous tasks in parallel using Promise.all. This enhancement not only enhances performance but also optimizes the efficient utilization of hardware resources.
Reference to the old pull request: Old PR Link

Thanks, but I am not convinced this is worth it.


Support unix:// paths for pilot xDS webhook

Signed-off-by: Spike Curtis<EMAIL_ADDRESS>

@spikecurtis: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-pilot-e2e.sh
8099f7f133676e6dab120057e3b812e72ce5ab3b
link
/test istio-pilot-e2e

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.


view.h uses std::exchange but  not included

impl/winmd_reader/view.h uses std::exchange but <utility> has not been explicitly included. It fails to build on GCC 12 / libstdc++ with error: 'exchange' is not a member of 'std'.

Feel free to contribute a fix, although this library doesn't get updated often so it may not be worth the effort when the workaround is pretty simple.


[BUG:dstserver] DST has been updated and no longer works with your script.

The update that came out today has borked my server. Will you be updating your scripts to work with this new update?

This needs to be fixed

I hope they don't mess with the layout much more, they're really making a hash of this game right now. Good luck fixing the scrip to work, and thanks for someone who appreciates your hard work and dedication to this project.  Cheers :+1:

Can confirm, no longer works with the new DST System.
http://forums.kleientertainment.com/topic/64441-dedicated-server-quick-setup-guide-linux/

What a pain this is. Might take some time for me to fix. However if there is a DST server admin who wants to have a go they are welcome to

Now works. This is the most complicated server I have ever seen. I was considering removing support for it as it is simply not worth the hassle of working with this. However it does now work but will require the server admin to configure it correctly.
Only a minor update in the development branch.


Renovate Dependencies

This (WIP) PR updates a lot of dependencies: Next to 14@latest, React to 18@latest and many more…
It also removes a lot of dead deps that where still present from the before nextjs times.
Urgent Problems:

build is failing due to some eslint problem (update: Should be fixed)

./src/components/App/index.tsx
Error: Parsing error: DeprecationError: 'originalKeywordKind' has been deprecated since v5.0.0 and can no longer be used. Use 'identifierToKeywordKind(identifier)' instead.

./src/components/TreesMap/TreesMap.tsx
Error: Parsing error: DeprecationError: 'originalKeywordKind' has been deprecated since v5.0.0 and can no longer be used. Use 'identifierToKeywordKind(identifier)' instead.

info  - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
   Linting and checking validity of types  .

react-map-gl 6 to 7 Generally we should review https://visgl.github.io/react-map-gl/docs/upgrade-guide#upgrading-to-v70 and check if we should do this in this sprint.

Nice to have but neglect-able for the sprint

One problem is that storybook is broken at the moment. This can be fixed with some elbow grease
msw update does not play nice with jest, maybe we need to move to vitest https://mswjs.io/docs/faq/#requestresponsetextencoder-is-not-defined-jest

Already Fixed

A more pressing problem is the following: deck.gl with ssr fixed:

When we follow the breadcrumbs we land at this github issue from deck.gl. Which in a nutshell tells us to use dynamic imports and is also referenced here https://deck.gl/docs/get-started/using-with-react#using-deckgl-with-ssr.
// in src/components/TreesMap/TreesMap.tsx
import DeckGL, {TextLayer} from 'deck.gl';

export default function Map() {
  return <DeckGL ... />
}

Needs to be imported using dynamic imports like this
import dynamic from 'next/dynamic';
const Map = dynamic(() => import('../components/map'), {ssr: false});

export default function App() {
  return <Map />;
}

The export needs to be a default export.

@ff6347 I just looked into the locate me/unclickable tree bug and I can't locate myself anymore. I think this is due to the newest mapbox version vs react-map-gl still being an older version. I think we might need a newer version of react-map-gl to fix the bug. I'll look into the link you posted figure out if we might face an issue.

@ff6347 I just looked into the locate me/unclickable tree bug and I can't locate myself anymore. I think this is due to the newest mapbox version vs react-map-gl still being an older version. I think we might need a newer version of react-map-gl to fix the bug. I'll look into the link you posted figure out if we might face an issue.

I merged all the tests. I have one test that is failing which  I skipped and some unhandled errors. I'll be AFK for an hour or so.


SQLPackage using AD MFA Authentication

Don't know if this would be useful addition for someone else reading this document but I got this working for Synapse Serverless using AD MFA Authentication using "Authentication=Active Directory Interactive;" in the connection string: and the on-demand endpoint.
/SourceConnectionString:"Server=tcp:{SynapseInstance}-ondemand.database.windows.net,1433;Initial Catalog={DatabaseName};Authentication=Active Directory Interactive;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;
Thanks,
Luke
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: 5e7c27cb-6f5e-4732-7258-766afb93b26e
Version Independent ID: a9ffa884-9fa5-3cff-a5bb-c4e1f5aca197
Content: SqlPackage Extract - SQL Server
Content Source: docs/tools/sqlpackage/sqlpackage-extract.md
Service: sql
Sub-service: tools-other
GitHub Login: @dzsquared
Microsoft Alias: drskwier

#assign:dzsquared

@lpargiter We are closing this issue because we are tracking it internally.
You can also engage with the engineering team directly at https://github.com/microsoft/dacfx.
AB#203362


K9 8B1-3 email attachments problem

Checklist

[X] I have used the search function to see if someone else has already submitted the same bug report.
[X] I will describe the problem with as much detail as possible.

App
K-9 Mail
App version
8.0 beta1, beta 2 and beta3
Where did you get the app from?
None
Android version
10
Device model
No response
Steps to reproduce
app download from github, install is normal, email list is normal, all other functions are normal.
however, attachments in any emails cannot be opened and displayed correctly.
after downloading, the attachements (e.g., pdf, doc, or other formats) are opened by the defaul app, but all are empty (with a warning, "path error")
should note that K9 6.904 works well for the same emails and the same attachments in the same phone.
have tried this many times. always the same results: the three beta versions of 8.0 do not work, while 6.904 version works normally.
Expected behavior
attachments in any emails cannot be opened and displayed correctly.
after downloading, the attachements (e.g., pdf, doc, or other formats) are opened by the defaul app, but all are empty (with a warning, "path error")
should note that K9 6.904 works well for the same emails and the same attachments in the same phone.
Actual behavior
attachments in any emails cannot be opened and displayed correctly.
after downloading, the attachements (e.g., pdf, doc, or other formats) are opened by the defaul app, but all are empty (with a warning, "path error")
should note that K9 6.904 works well for the same emails and the same attachments in the same phone.
Logs
No response

it seems this has problem been seen by others -- there is a post in the k9 forum about the same issue

I can't reproduce this problem. Can you please record a video demonstrating what this looks like on your Android device?

some screenshots are shown here, the same mobile the same email server the same email and document
for 8.0b1-b5 and the recent 8.0, it always like in the attahced: file path error! while in 6.904 and earlier versions, there was no problem with the document. the same for any attached documents in emails. so I am using 6.904 now

the same mobile, and the same android and the same hardware, and also the same pdf browser for downloading and opening the same document in the same email

A recent bugfix changed the way attachment URIs look like. See https://github.com/thunderbird/thunderbird-android/issues/8045. However, the new URI is still in a format that every Android app should support.
I installed "Yozo Office" and can confirm that it doesn't open an attachment from K-9 Mail. I don't think there's anything our app is doing wrong. It looks like a bug in the Yozo viewer to me. Please contact them to look into this. Other document viewers work fine.


Solution Nov 8

Dear Thomas,
Solution from my side

add support for the Quantum Fourier Transform (QFT) gate in the OpToMemberFuncPtr.hpp file

Add the Struct: Add a new specialization of the GateOpToMemberFuncPtr template for the QFT gate.
Implement member
/**
* @brief Pointer to apply the Quantum Fourier Transform (QFT) operation.
*/
template <class PrecisionT, class ParamT, class GateImplementation>
struct GateOpToMemberFuncPtr<PrecisionT, ParamT, GateImplementation,
                             GateOperation::QFT> {
    using Type = void (GateImplementation::*)(std::complex<PrecisionT> *);
    constexpr static Type value = &GateImplementation::template applyQFT<PrecisionT>;
};

update the list of supported gates to include the QFT gate in the lightning_qubit.py

_operations = frozenset(
    {
        "Identity",
        "QubitUnitary",
        "MultiControlledX",
        "DiagonalQubitUnitary",
        "PauliX",
        "PauliY",
        "PauliZ",
        "MultiRZ",
        "GlobalPhase",
        "Hadamard",
        "S",
        "Adjoint(S)",
        "T",
        "Adjoint(T)",
        "SX",
        "Adjoint(SX)",
        "CNOT",
        "SWAP",
        "ISWAP",
        "PSWAP",
        "Adjoint(ISWAP)",
        "SISWAP",
        "Adjoint(SISWAP)",
        "SQISW",
        "CSWAP",
        "Toffoli",
        "CY",
        "CZ",
        "PhaseShift",
        "ControlledPhaseShift",
        "RX",
        "RY",
        "RZ",
        "Rot",
        "CRX",
        "CRY",
        "CRZ",
        "C(PauliX)",
        "C(PauliY)",
        "C(PauliZ)",
        "C(Hadamard)",
        "C(S)",
        "C(T)",
        "C(PhaseShift)",
        "C(RX)",
        "C(RY)",
        "C(RZ)",
        "C(Rot)",
        "C(SWAP)",
        "C(IsingXX)",
        "C(IsingXY)",
        "C(IsingYY)",
        "C(IsingZZ)",
        "C(SingleExcitation)",
        "C(SingleExcitationMinus)",
        "C(SingleExcitationPlus)",
        "C(DoubleExcitation)",
        "C(DoubleExcitationMinus)",
        "C(DoubleExcitationPlus)",
        "C(MultiRZ)",
        "C(GlobalPhase)",
        "C(QubitUnitary)",
        "CRot",
        "IsingXX",
        "IsingYY",
        "IsingZZ",
        "IsingXY",
        "SingleExcitation",
        "SingleExcitationPlus",
        "SingleExcitationMinus",
        "DoubleExcitation",
        "DoubleExcitationPlus",
        "DoubleExcitationMinus",
        "QubitCarry",
        "QubitSum",
        "OrbitalRotation",
        "ECR",
        "BlockEncode",
        "C(BlockEncode)",
        "QFT",  # Add this line to include QFT
    }
)

add C++ tests for the QFT gate in the Test_GateImplementations_Nonparam.cpp file

Use PENNYLANE_RUN_TEST Macro, implement test function, and add test case
QFT(∣000⟩)= 1/sqrt(8) * (∣000⟩+∣001⟩+∣010⟩+∣011⟩+∣100⟩+∣101⟩+∣110⟩+∣111⟩)
so each amplitude is approximately 0.353553
template <typename PrecisionT, class GateImplementation> void testApplyQFT() {
    using ComplexT = std::complex<PrecisionT>;
    const std::size_t num_qubits = 3;

    auto st = createZeroState<ComplexT>(num_qubits);
    GateImplementation::applyQFT(st.data(), num_qubits, {0, 1, 2}, false);

    // Expected result of QFT(|000>) for a 3-qubit system
    std::vector<ComplexT> expected_result = {
        ComplexT{0.353553, 0.0}, ComplexT{0.353553, 0.0}, ComplexT{0.353553, 0.0},
        ComplexT{0.353553, 0.0}, ComplexT{0.353553, 0.0}, ComplexT{0.353553, 0.0},
        ComplexT{0.353553, 0.0}, ComplexT{0.353553, 0.0}
    };

    CHECK(st == approx(expected_result).margin(1e-7));
}
PENNYLANE_RUN_TEST(QFT);

implement QFT

template <class PrecisionT>
    [[nodiscard]] static auto applyQFT(
        std::complex<PrecisionT> *arr, std::size_t num_qubits,
        const std::vector<std::size_t> &wires, bool inverse = false) {
        auto local_wires = wires;
        for (std::size_t i = 0; i < local_wires.size(); ++i) {
            applyHadamard(arr, num_qubits, {local_wires[i]}, inverse);
            for (std::size_t j = i + 1; j < local_wires.size(); ++j) {
                PrecisionT angle = M_PI / (1U << (j - i));
                if (inverse) {
                    angle = -angle;
                }
                applyControlledPhaseShift(arr, num_qubits, {local_wires[j], local_wires[i]}, inverse, angle);
            }
        }
        std::reverse(local_wires.begin(), local_wires.end());
    }

add pytest qft

@pytest.mark.parametrize("num_qubits", [2, 3, 4])
def test_qft_gate(num_qubits):
    dev = qml.device("lightning.qubit", wires=num_qubits)
    @qml.qnode(dev)
    def circuit():
        qml.QFT(wires=range(num_qubits))
        return qml.state()
    output_state = circuit()
    expected_matrix = qml.QFT.compute_matrix(num_qubits)
    initial_state = np.zeros((2**num_qubits,), dtype=np.complex128)
    initial_state[0] = 1
    expected_state = expected_matrix @ initial_state
    assert output_state.shape == expected_state.shape, "State dimensions mismatch"
    assert np.allclose(output_state, expected_state, atol=1e-6), "QFT state does not match expected state"

@gzquse I just triggered the CI

review required

Thanks @gzquse
Please link the PR to the issue and give the PR a name that describes the feature.
I was wondering about the benchmark script and results. Have I missed them?

Hi @tomlqc ,
You are right. I have some issues using a local apple chip to do the benchmark and I also tried to use our uni HPC to do the experiment but seems the CMake is not the same.
May I ask if it is possible to get a test environment from Pennylane's HPC? Therefore, I can test it a bit further.

Benchmark Jupyter notebook for reference
import pennylane as qml
from pennylane import numpy as np
import time

dev = qml.device("default.qubit", wires=10)

def benchmark_qft(num_qubits):
    results = {"num_qubits": [], "QubitUnitary_time": [], "qml_QFT_time": []}

    for n in range(1, num_qubits + 1):
        @qml.qnode(dev)
        def qft_with_qubit_unitary():
            qft_matrix = qml.QFT.compute_matrix(n)
            qml.QubitUnitary(qft_matrix, wires=range(n))
            return qml.state()

        @qml.qnode(dev)
        def qft_with_qml_gate():
            qml.QFT(wires=range(n))
            return qml.state()

        start_time = time.time()
        qft_with_qubit_unitary()
        unitary_time = time.time() - start_time

        start_time = time.time()
        qft_with_qml_gate()
        qml_gate_time = time.time() - start_time

        results["num_qubits"].append(n)
        results["QubitUnitary_time"].append(unitary_time)
        results["qml_QFT_time"].append(qml_gate_time)

    return results

num_qubits = 10  # Adjust based on desired range
benchmark_results = benchmark_qft(num_qubits)

print(benchmark_results)

import pandas as pd
results_df = pd.DataFrame(benchmark_results)

results_df.to_csv("qft_benchmark_results.csv", index=False)
print("Benchmark results saved to qft_benchmark_results.csv.")

Hi @gzquse,
You don't need to scale up to a very large number of qubits. Using your local laptop for this is perfectly fine. Please just show the results that you were able to generate. For this create some plots and share them with you analysis in this PR.
To share files or larger chunks of code, as e.g. the jupyter notebook, prefer using https://gist.github.com/, it will be rendered nicely.
Please also check again my previous message about link and title.
Thanks

Benchmark QFT result

Hi @tomlqc ,
Could you help me manually to link the issue?

Fix issue #975 : Implement QFT in lightning.qubit and benchmark

Thanks

Gist
script

Could you help me manually to link the issue?
https://www.google.com/search?q=how+to+link+github+pr+to+issue
Doesn't it work with using a keyword in the description?

Benchmark QFT result
Is your laptop already struggling with >10 qubits?

Hi @tomlqc,
As expected, I fired up 10 rounds and 14 qubits benchmark scripts, which burn 99% of the memory of my MacOs.
a 14-qubit QFT matrix is 2^14×2^14 > 4 GB in memory.
https://docs.google.com/spreadsheets/d/1Jj-uHv-e42XTPd2RgM6tSz6J7sOS5o1w8RbNINUED24/edit?usp=sharing

Could you help me manually to link the issue?

https://www.google.com/search?q=how+to+link+github+pr+to+issue Doesn't it work with using a keyword in the description?

I assume the original pr was under the forked branch. So the "Fix" does not work?

Thanks @gzquse for the update

a 14-qubit QFT matrix is 2^14×2^14 > 4 GB in memory

Is the data in the Google sheet of the same kind as in the "Benchmark QFT result" plot but just a different representation?
Does that mean that you would be able to extend the plot to 13 or even 14 qubit? If so, please update these results.

So the "Fix" does not work?

I added the line to the description (not the title) and it worked fine.

Thanks for pointing out

Thanks @gzquse


Support use of CSS variables for font-family names

Hi :)
I define my font families using CSS variables / tokens, and it seems the module won't parse it.
Given:
:root {
  --font-family-base: Lexend, sans-serif;
  --font-family-heading: Quicksand, sans-serif;
}

and usage:
html,
body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: 1.6;
}

fonts are not loaded. However, if i add lets say Lexend to the font-family before the variable, everything works.
I have no idea of the "doability" of this, just wanted to point that out as it doesnt seem someone did already.
I'll stay with fontaine only for now 😄 cheers

For anyone like me, not careful enough to read the docs in full. Here is how to make it work.
In nuxt.config.ts
fonts: {
  experimental: {
    processCSSVariables: true
  }
}

https://fonts.nuxt.com/get-started/usage#v4-experimental


Update incominglistener.go

#9
Action： add check the data format of Payload by Geoffrey
Reason：
If the Payload is  "testmest" or {"run":"100"}···, it will make the device-mqtt-goservice exit by the panicpanic: interface conversion: interface {} is nil, not string. Because these non-standard formats cannot be converted to map[string]interface{}. Even though the Payload could be converted to map[string]interface{}, it must hava map["name"] and map["cmd"]. If not, the  the device-mqtt-goexit by the panicpanic: interface conversion: interface {} is nil, not string.       As a DeviceService, the wrong data type can be left unprocessed, but should not cause the service to be unavailable.       Therefore, we should verify the data format of Payload to prevent the device-mqtt-gofrom exiting abnormally due to data format problems. In addition, the availability of thedevice-mqtt-go` is guaranteed. Maybe the way I deal with is not elegant enough, but I hope to attract attention to this kind of problem.
By Geoffrey

fix #12

@AhaEdgar
Thanks for the change you made, but #11 has covered this one.
Could you please help try again and see whether we can close this PR?

@cloudxxx8 @AhaEdgar - is this resolved and can this PR be closed?

@jpwhitemn I believe this can't be closed because the corresponding issue has been closed by @AhaEdgar

Associated issue has been closed and seems to be resolved.  Closing this PR per comment exchange.


Log error message on connection errors (fixes #399)

This PR should fix issue #399.

These errors seem unrelated to my changes, am I missing something?
Thanks!

Thanks for the PR @rcoedo, I think it's just flakiness. I will re-run the failing group.


Set options in constructor?

I have this generated class:
class Service extends AbstractSoapClientBase
The tutorial code calls for setting options on each call.  Is there a reason not to add a constructor to Service:
  public function __construct(array $wsdlOptions = array(), $resetSoapClient = true) {
    $defaults = array(
      \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_URL => 'https://path/myframework.asmx?wsdl',
      \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_CLASSMAP => \path\to\Soap\Orders\ClassMap::get(),
    );
    $wsdlOptions = array_merge($defaults, $wsdlOptions);
    parent::__construct($wsdlOptions, $resetSoapClient);
  }

I'm not a big fan of such duplicated code as if you have dozens of Service classes, you'll have dozens of places where you'll have to change the default options. In addition, for me, the options are variables meaning that the WSDL could be changed whereas the code would be still working (dev and prod environment for example).
I understand your point but maybe it would then be good to create a class that takes care of instanciating the Service class you need with the common options:
use WsdlToPhp\PackageBase\AbstractSoapClientBase;

class Service
{
    private static $options = array(
        AbstractSoapClientBase::WSDL_URL => 'https://path/myframework.asmx?wsdl',
        AbstractSoapClientBase::WSDL_CLASSMAP => \path\to\Soap\Orders\ClassMap::get(),
    );
    /**
     * Ideally we should use singleton
     */
    public static function getServiceCreate($resetSoapClient = true, array $options = array())
    {
        return new ServiceType\Create(array_merge(self::$options, $options), $resetSoapClient);
    }
}

My other advice would be to:

create a class that extends the AbstractSoapClientBase class,
override the constructor in the new class as you did,
generate the package by using the --soapclient option specifying your own class.

What do you think?

First off, I think I should think longer before posting an issue, especially on Friday afternoons!
I was reacting to the tutorial code, which of course is very minimal, and thinking, "I don't want to hard code that endpoint everywhere I intend to use this!" Especially since the particular endpoints I'm working with only generate one Service class each.  Like you I don't want to change a value in dozens of lines of code.
Of course I have a configuration system, and today I'm thinking a factory class that leverages that configuration system to return the service, especially since I also have a service system, so I can reuse that instantiation.
Thanks for the ready response and prodding me to get up to architectural altitude. :-)

Another "Don't Repeat Yourself" question...  The library generated 18 implementations of AbstractStructBase that extend another implementation of AbstractStructBase - all of them are have names that begin WSArgOf however, there are a larger number of other Structs that also extend that base class. The 18 subclasses would all benefit to having some configuration set at instantiation.  But I only see the option to use one custom class for Structs in your configuration.

--struct (default: \WsdlToPhp\PackageBase\AbstractStructBase): sets the class from which StructType classes inherit, see StructInterface

Am I also not catching something here about how your generator works?  If not, perhaps I'll think about a strategy to instantiate these as well.
I want future maintainers of this code to be able to regenerate this code if the third-party service changes without having to then rewrite a bunch of code.
Thank you for offering and maintaining this package.  Your open source commitment is a real gift!

Structs classes are one type of class and currently can only extend one class. If I understand well, you would need to be able to extend a different class depending on the struct:

if the struct has no parent class from the generated classes, use one class
if the struct has a parent class from the generated classes, use another one class

Is this it?

--struct (default: \WsdlToPhp\PackageBase\AbstractStructBase): sets the class from which StructType classes inherit, see StructInterface

This means that you can create your own class (that should implement at least implement the StructInterface interface or extend the \WsdlToPhp\PackageBase\AbstractStructBase (so you ensure the generated classes work well). Then you can implement your own features/behavior in your proper class.
Feel free to get back to me, if I can improve again the generator... :wink:

Great, thanks!


Write documentation

A plain-english high-level description of runes, similar to the current inscription handbook.
A non-normative lower-level specification. The specification must explicitly state that it is non-normative, and that the behavior of the reference implementation is the normative spec. The consequence of this is that the spec may be amended to match the implementation, if they differ.

Include a description of fraud proofs

Include description of runes vs BRC-20, counterparty, RGB, and Taproot Assets.


Feature Request: Export other query types like ShapeQuery

Hi! Pretty simple feature, I want to have access to the ShapeQuery because I'll apply sift only to objects and I would like to have stricter type safety to the inputs that will be given to sift.
By extension, I suppose it would be useful to export the other constituent types as well such as BasicValueQuery for a keyof BasicValueQuery etc! Since it's just slapping export on a few types, I can PR this! 😂

I can PR this

That would be awesome 🙏 . Feel free to do that and I'll merge it in!


Add Deep Learning Education

https://github.com/guillaume-chevalier/awesome-deep-learning-resources
Hi there! I have built an "awesome list" on how to learn to do Deep Learning learning. I also give this list a more "personal" flavor where users can take my list as a template. By personalized, I mean that they put their name on it in a way that they have very carefully reviewed (and found useful) all the content they have listed on their own sub-list (like I did - only awesome things are found in my list). I encourage forks and contribution to the awesome ecosystem. Also, on top of all I believe that the subject of deep learning is important, just take a look at how much "Machine Learning" and "Deep Learning" are trendy compared to "Computer Programming" on the Google Trends, it's through the roof! And it is promising (see link below). You could probably soon even have a complete section dedicated to Artificial Intelligence (that is including Machine Learning, Quantum Machine Learning, Deep Learning, Computer Vision, Speech and Natural Language Processing, and also this almost includes Data Science) - in fact the Computer Science title (under which I have put my new awesome list) could almost be renamed Artificial Intelligence if it wasn't of a few of those sub-lists which are not exactly about that. See https://www.google.ca/trends/explore?date=all&q=machine learning,deep learning,data science,computer programming
By submitting this pull request I confirm I've read and complied with the below requirements.

I have read and understood the contribution guidelines and the instructions for creating a list.
This pull request has a descriptive title.For example, Add Name of List, not Update readme.md or Add awesome list.
The entry in the Awesome list should:

Include a short description about the project/theme of the list. It should not describe the list itself.Example: - [Fish](…) - User-friendly shell., not - [Fish](…) - Resources for Fish..
Be added at the bottom of the appropriate category.

The list I'm submitting complies with these requirements:

Has been around for at least 30 days.That means 30 days from either the first real commit or when it was open-sourced. Whatever is most recent.
It's the result of hard work and the best I could possibly produce.
Non-generated Markdown file in a GitHub repo.
Includes a succinct description of the project/theme at the top of the readme. (Example)
The repo should have awesome-list & awesome as GitHub topics. I encourage you to add more relevant topics.
Not a duplicate.
Only has awesome items. Awesome lists are curations of the best, not everything.
Includes a project logo/illustration whenever possible.

Placed at the top-right of the readme. (Example)
The image should link to the project website or any relevant website.
The image should be high-DPI. Set it to maximum half the width of the original image.

Entries have a description, unless the title is descriptive enough by itself. It rarely is though.
Has the Awesome badge on the right side of the list heading,
Has a Table of Contents section.

Should be named Contents, not Table of Contents.
Should be the first section in the list.

Has an appropriate license.

That means something like CC0, not a code licence like MIT, BSD, Apache, etc.
If you use a license badge, it should be SVG, not PNG.

Has contribution guidelines.

The file should be named contributing.md. Casing is up to you.

Has consistent formatting and proper spelling/grammar.

Each link description starts with an uppercase character and ends with a period.Example: - [AVA](…) - JavaScript test runner.
Drop all the A / An prefixes in the descriptions.
Consistent and correct naming. For example, Node.js, not NodeJS or node.js.

Doesn't include a Travis badge.You can still use Travis for list linting, but the badge has no value in the readme.

Go to the top and read it again.

Not followed:

Has an appropriate license.
Includes a succinct description of the project/theme at the top of the readme.

Suggestions:

To make your own personalized awesome list (or to make a general list where everyone can contribute to) on GitHub from this template, please read contributing.md carefully.

Delete this
Also, improve the descriptions.

Very worth reading.

That is not a good description

I followed your suggestions and changed the required things. I removed the sentence linking to contributing.md and I edited the bad description to " - Thought provoking article about the future of the brain and brain-computer interfaces".
Could you detail more about "Has appropriate license"? I have the CC0 license located in the "LICENSE" file of the repo and which is recognised by GitHub in the license section of my repo (see header on top of the file) : https://github.com/guillaume-chevalier/awesome-deep-learning-resources/blob/master/LICENSE
I believe the license is right.

Yup, it has the appropriate license. @legodude17 probably didn't see it in the README and thought otherwise.
I'm still seeing some descriptions that I'm not satisfied with, like:

Awesome videos

...and some content that I don't see how it belongs there, like a link to Quora's homepage. I also couldn't figure out why I should click on this:

Siraj's YouTube Channel - Siraj has some entertaining videos

...and how does it relate to the topic. Something more descriptive would be appreciated.
Other than that, I'd say that this is really useful. In fact, it seems even more useful to me than the one listed here at the moment. :+1:

I would suggest you at least put a link to the LICENSE or just the text "CC0 1.0 Universal" on the README. If it is already there, can you point me too it?

Thanks for the suggestions, I reviewed every single description and I changed most just to be sure that it relates properly, this did a good clean. I also added the license badge like it is in some of the other awesome repositories. I am thinking about keeping my list rather than merging with another one. In fact, this list really reflects how I have learned deep learning from scratch as an undergrad student. The resources listed there got me from complete noob to someone up to date with actual research and I only listed what I experienced to be the best content.
To not repeat what's contained in other awesome lists, I would suggest that we link to my list as Trends, or something like that under the Deep Learning title. We could also probably link to my list with a name referring more to Learning how does deep learning work, or a name like Roadmap to Deep Learning. The content added to my list will be reviewed by me for sure in the future. What I like about my list is that it is concise in terms of how picky I have been about choosing everything listed.
Would you have any idea of a title that could be good for the current pull request? I would say that my list is really about learning resources for trendy deep learning, so finding a proper title has not been easy considering the nature of the list.
By the way, I think that the Computer Science title in https://github.com/sindresorhus/awesome could be split into a "true" computer science section and also into a new Artificial Intelligence section since most of the awesome-lists under Computer Science already refers to AI. Else the few links not about AI could be moved to the Miscellaneous so much the new Computer Science section would be tiny. The field of Artificial Intelligence is growing at a fast exponential rate so I think a section deserved to that would be something worth to have. What do you think?

Maybe call it "Deep Learning Education"? There are some other sub-lists called this for other themes that also focuses on learning.

Each link description starts with an uppercase character and ends with a period.
Example: - [AVA](…) - JavaScript test runner.

:arrow_up:

If you use a license badge, it should be SVG, not PNG.

:arrow_up:

The image in the Trends section should be set to half its real size so it looks good on high-DPI screens.

I'm O.K. with "Deep Learning Education". I would not change the URL of the list since it has many inbound links already, except if there is a permanent way to redirect the traffic.
I edited each link description to start with an uppercase character and to end with a period.
I added a backlink to the main awesome list on the SVG badge.
I have set a different size for the image in the trends section. Making it smaller would make the text too small on regular displays. At least now the text size should be the same as the text size in the image.

By the way @sindresorhus , I would suggest that you make compulsory to have a backlink on the badge for everyone. Or it could be on anything else than the badge, such as specific, targeted text. All links in GitHub's readme files generated with the []() syntax are links that do count for SEO (they are not "nofollow" links if you inspect the HTML code generated), so your "main" list would be even more visible on search engines with the page rank algorithm, making it more central.
If this is O.K. to you I will finalize things by changing the list's title and changing the commit to be ready for merging the pull request.

except if there is a permanent way to redirect the traffic.

GitHub automatically redirects renamed repos.

I would suggest that you make compulsory to have a backlink on the badge for everyone. Or it could be on anything else than the badge, such as specific, targeted text.

I assumed it was a given since I provide the copy-paste-able Markdown code for the badge, but I've made it more explicit: https://github.com/sindresorhus/awesome/commit/817989930b505a633779bd29042a762bde88d5d7

Thinking twice, I think I will not rename the list. Limiting the title to "Education" would be limiting for this list that - yes contains educational stuff - but has a wider reach. Thought, I would be O.K. with having my list named as being for "Education", "Resources" or maybe something else in your repository.

Thinking twice, I think I will not rename the list. Limiting the title to "Education" would be limiting for this list that - yes contains educational stuff - but has a wider reach. Thought, I would be O.K. with having my list named as being for "Education", "Resources" or maybe something else in your repository.

I'm ok with that too.

If you use a license badge, it should be SVG, not PNG.

:arrow_up:

:arrow_up:

Has contribution guidelines.
The file should be named contributing.md. Casing is up to you.

:arrow_up:

Hi Sindre, I added the changes you asked for.
I also updated the picture for the trends, which is now neatly taken at a regular 100% zoom. For the SVG badge, it was already in SVG format. I link to the SVG badge the very same way other recently accepted lists already do (for example, like the most recent one on action script 3). Thanks.

For the SVG badge, it was already in SVG format.

It is clearly not. You're linking to http://i.creativecommons.org/p/zero/1.0/88x31.png, which is a PNG.

I also updated the picture for the trends, which is now neatly taken at a regular 100% zoom.

Images should be high-DPI, meaning they should be set to half the width of their actual width. That means either taking the screenshot on a computer with a Retina screen or zooming in 200%.

I see. I had the pink glasses badge in mind all the time: https://github.com/sindresorhus/awesome/blob/master/media/badge.svg
Fixed - thanks for noticing. The DPI issue too. This is neat.

Thank you :)


receive hangs with empty file

I've noticed that the special case of the empty file often exposes interesting bugs in stuff, and it seems to have with wormhole:
joey@kite:/tmp>touch bob
joey@kite:/tmp>wormhole send /tmp/bob
Sending 0 byte file named 'bob'
On the other computer, please run: wormhole receive
Warning: errors may occur unless both sides are running the same version
Server claims 0.8.2 is current, but ours is 0.8.1
Wormhole code is: 2-souvenir-retouch
Sending (<-<IP_ADDRESS>:47154)..
0.00B [00:00, ?B/s]
File sent.. waiting for confirmation
In another terminal:
joey@kite:~>wormhole receive
Warning: errors may occur unless both sides are running the same version
Server claims 0.8.2 is current, but ours is 0.8.1
Enter receive wormhole code: 2-souvenir-retouch
Receiving file (0 bytes) into: bob
ok? (y/n): y
Receiving (->tcp:<IP_ADDRESS>:41551)..
0.00B [00:00, ?B/s]
Seems to have hung indefinitely at this point.

Heh.. good catch. I bet there's something that checks for completion status after the transfer of each chunk of data, but if there never were any chunks, it never gets called, and then never gets a chance to declare success.
I'll look to see how hard it is to fix this properly. If it's too much of a hassle, I'll just special-case the 0-length file and have it skip the Transit setup or something.


feat: max price filtering

Description

Improves filtering by allowing a supplied MAX_PRICE in .env.  Will help skip price gouging sellers and is an alternate to having to specifically list banned sellers
Addresses issues such as:  Let us set price ranges to avoid 3rd party sellers/price gouging #310

Testing

Tested with test card on amazon, amazon-ca, and newegg-ca.  Test card is skipped if MAX_PRICE in .env is set below test card price.

Max price container must be set in store model (WIP).
maxPrice: {
			container:
				'#priceblock_ourprice',
			text: ['']
		}

Note:  maxPrice is of Element type, therefore required text: [''] must be supplied, but not utilized in code.  (Room for improvement here.)

@jef sorry for all the commits in this branch...  I'm definitely not a git-guru by any means ¯\_(ツ)_/¯
Hope it wasn't too early for a PR, as testing on other pages hadn't been done (aside from amazon/-ca and newegg/-ca), but the framework is there now.  My intent of max price should really only apply to sites with 3rd party  marketplace sellers anyhow...  I wouldn't imagine a need for max price on the manufactures sites?

I had accomplished something similar by looking at the "Sold and shipped by Amazon.ca" but it can result in cases where a cheap 3rd party reseller listing might get missed! Price is definitely the way to go

Good question about the containers, what I was finding was that the price returned from the original/simple selectors were sometimes returning a completely different value... It appeared some js would modify prices and containers after load, likely bot protection 🤖  The more complex container matching helped ensure to grab the final result for the actual price 🏆 😁

Hey there, I was just testing this out against amazon.ca where the TUF OC has a scalper trying to sell it for $1,879.99 CDN and it wasn't working.
This is what a price span looks like on amazon.ca:
CDN$ 1,879.99
I looked into it, and in the cardPriceLimit function, at the return statement, the cardpriceNumber is showing as 1.879 instead of 1879

Hey there, I was just testing this out against amazon.ca where the TUF OC has a scalper trying to sell it for $1,879.99 CDN and it wasn't working.
This is what a price span looks like on amazon.ca:
CDN$ 1,879.99
I looked into it, and in the cardPriceLimit function, at the return statement, the cardpriceNumber is showing as 1.879 instead of 1879

Thanks for letting me know about this! - I'll take a look.  Perhaps the regex parsing needs some tweaking.  Do you have a link to the item still?
As for the price container - for amazon currently using span[class*="PriceString"]' as a selector.  It has wildcard matching, as sometimes the id changes to something like span id="priceblock_saleprice" while other times it's like what you posted here.  The selector seems to have picked the correct container, but regex is not parsing the decimal place correctly now.

Hey there, I was just testing this out against amazon.ca where the TUF OC has a scalper trying to sell it for $1,879.99 CDN and it wasn't working.
This is what a price span looks like on amazon.ca:
CDN$ 1,879.99
I looked into it, and in the cardPriceLimit function, at the return statement, the cardpriceNumber is showing as 1.879 instead of 1879

Thanks for letting me know about this! - I'll take a look. Perhaps the regex parsing needs some tweaking. Do you have a link to the item still? EDIT: I found the card on amazon. will test.
As for the price container - amazon currently using span[class*="PriceString"]' as a selector. It has wildcard matching, as sometimes the id changes to something like span id="priceblock_saleprice" while other times it's like what you posted here. The selector seems to have picked the correct container, but regex is not parsing the decimal place correctly now.

Glad you found the card, the scalper has been putting it up and taking it down repeatedly, so it’s not always there with that price.
And yes, I was using the selector as you had it with the wildcard matching. I threw in some log statements and saw that it was grabbing that whole string of CDN$ 1,879.99. I didn’t break apart your one line that did the regex matching and joining after to see exactly where this was occurring.
It’s possible I messed something up, as I more or less manually copied your changes into my locally cloned master, for some reason git wouldn’t let me pull in your forked branch. So maybe I missed something when I was doing that, not sure.

Glad you found the card, the scalper has been putting it up and taking it down repeatedly, so it’s not always there with that price.
And yes, I was using the selector as you had it with the wildcard matching. I threw in some log statements and saw that it was grabbing that whole string of CDN$ 1,879.99. I didn’t break apart your one line that did the regex matching and joining after to see exactly where this was occurring.
It’s possible I messed something up, as I more or less manually copied your changes into my locally cloned master, for some reason git wouldn’t let me pull in your forked branch. So maybe I missed something when I was doing that, not sure.

Ok, found the issue.
After I changed to passing the regex as a variable into the parser (instead of hard-coded), I must have missed re-testing with prices that contains commas (or contains periods for euro format). 🤦♂
By removing the quotations around the regex stored into the priceSeperator variable, everything began to work again.
Should be: const priceSeperator = query.euroFormat ? /\./g : /,/g; <note no quotes around regex
Thank-you @HickTrick for pointing this out - big save!
(incoming commit soon)
Test on the amazon-ca scalper card

Test on Euro laptop

Ok, found the issue.
(incoming commit soon)

Awesome, glad you found it and figured out the solution! Glad to help!


Usage of ACDC, SCD, STARE, SpineWeb

Hi there, I noticed that the paper mentioned that the datasets like ACDC, SCD, etc., are also being used in the project. Would you mind sharing the part of code of processing these datasets? Thank you very much.

Perfect! Thanks a lot for working on that I'm eagerly to see your awesome work :)


Minor Enhancements

Added MIT license
Added .editorconfig for convenience
Added .npmignore to slim what's in the published package
Added some badges to the README.md to visualize version, license & download count
Added some more fields to the package.json

Published as v3.1.3 🎉


[V2] Clean up utils file

Proposed changes
This PR removes the custom min and max functions for the time.Duration type. Go v1.21 introduced built-in functions so we can rely on them. This PR also adds a simple test case for the existing exactlyOneOf function.

Were the min/max functions not being used in the stack controller?

min and max are used in the reconcile function to determine the requeue after time:
https://github.com/pulumi/pulumi-kubernetes-operator/blob/096b8462db56324347cbb04a967705b898d75824/operator/internal/controller/pulumi/stack_controller.go#L705-L713


exuberant-ctags can't create tempfile

Issue description
I want to use (universal-)ctags in my shell but it can't create its required temporary files.
Steps to reproduce
Run on any C header (or any file I suppose):
$ ctags -x --c-kinds=fp my_C_headerl.h
ctags: cannot open temporary file : No such file or directory

if you do the same in a nix-shell it works because TMPDIR is defined.
The strace of a failure gives:
11056 open("/nix/store/mp62sgmr741sjglbpxi3yf3yav380hvr-universal-ctags-2017-09-22/etc/ctags/preload", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
11056 lstat("ctags", 0x7ffd85f54e00)    = -1 ENOENT (No such file or directory)
11056 getpid()                          = 11056
11056 openat(AT_FDCWD, "/build/tags.aYZmOm", O_RDWR|O_CREAT|O_EXCL, 0600) = -1 ENOENT (No such file or directory)
11056 write(2, "ctags: ", 7)            = 7
11056 write(2, "cannot open temporary file", 26) = 26
11056 write(2, " : No such file or directory", 28) = 28
11056 write(2, "\n", 1)                 = 1
11056 exit_group(1)                     = ?
11056 +++ exited with 1 +++

The universal ctags code involved in the error is
extern MIO *tempFile (const char *const mode, char **const pName)
{
	char *name;
	FILE *fp;
	MIO *mio;
	int fd;
#if defined(HAVE_MKSTEMP)
	const char *const pattern = "tags.XXXXXX";
	const char *tmpdir = NULL;
	fileStatus *file = eStat (ExecutableProgram);
# ifdef WIN32
	tmpdir = getenv ("TMP");
# else
	if (! file->isSetuid)
		tmpdir = getenv ("TMPDIR");
# endif
	if (tmpdir == NULL)
		tmpdir = TMPDIR;
	name = xMalloc (strlen (tmpdir) + 1 + strlen (pattern) + 1, char);
	sprintf (name, "%s%c%s", tmpdir, OUTPUT_PATH_SEPARATOR, pattern);
	fd = mkstemp (name);
	eStatFree (file);
#elif defined(HAVE_TEMPNAM)
	const char *tmpdir = NULL;
# ifdef WIN32
	tmpdir = getenv ("TMP");
# endif
	if (tmpdir == NULL)
		tmpdir = TMPDIR;
	name = tempnam (tmpdir, "tags");
	if (name == NULL)
		error (FATAL | PERROR, "cannot allocate temporary file name");
	fd = open (name, O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR);
#else
	name = xMalloc (L_tmpnam, char);
	if (tmpnam (name) != name)
		error (FATAL | PERROR, "cannot assign temporary file name");
	fd = open (name, O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR);
#endif
	if (fd == -1)
		error (FATAL | PERROR, "cannot open temporary file");
	fp = fdopen (fd, mode);
	if (fp == NULL)
		error (FATAL | PERROR, "cannot open temporary file");
	mio = mio_new_fp (fp, fclose);
	DebugStatement (
		debugPrintf (DEBUG_STATUS, "opened temporary file %s\n", name); )
	Assert (*pName == NULL);
	*pName = name;
	return mio;
}

the nix derivation contains,
  autoreconfPhase = ''
    ./autogen.sh --tmpdir
  '';

@mimadrid  Any reason not to set --tmpdir=/tmp ?
Technical details
I am on nixos-unstable with sandbox on.

@teto My fail, but with that change, I still reproduce the error

What do you advise then ? maybe wrap the binary to set TMPDIR if it's not set ?


needs a way to load queries encoded in URL

playgrounds with lots of data can/will break the URL length limits, which leads to #5

avoiding this in favor of #5