Issue/41: Add win38 support

Continuation of the great work in #85 (couldn't continue his branch, unfortunately).
I've merged the current version and applied additional fixes to make the tests run.
Changed version to 2.9.0-alpha.3
This seems to be working for my team's usage for the last 2 weeks.
Might be a good idea to squash my commits.

@samj1912 I'm free to change the code if needed. Able to run the ci?

Weird, alright I'll check it :)

@samj1912 Done.
Notice that @juhuebner added pytest-repeat and repeats all tests 5 times in the windows gh-actions.
It's because as he stated previously windows have permission errors that don't always appear. It does take 5 minutes for the CI to run the tests, but I agree as well that windows problems might not appear in only one run.

Any ETA about releasing this feature?

@samj1912 Done 👍🏻

@jonzarecki Thank you so much for this PR and your contributions :)!

@samj1912  Do we need to bump the version or re-publish to pypi?


fix http response header (#2924)

Which problem is this PR solving?

Resolve #2924

Short description of the changes

@Ashmita152 this is an interesting example where many GH actions fail because the source branch of the fork is also master, and it's confusing the scripts into thinking they need to do Docker release as if it was on real master.

@logeable do you mind re-creating this PR from a named branch in your fork?  In general, I do not recommend doing PRs from master even in your own fork, it's best to keep master in sync with upstream.

Thanks!
In the future, please add Resolve #1234 to the description to link & close the respective ticket.

Thanks for reminding.

@logeable do you mind re-creating this PR from a named branch in your fork? In general, I do not recommend doing PRs from master even in your own fork, it's best to keep master in sync with upstream.

Ok, I'll create a new pr.


[Bug Report]: Able to open keys on any chest/shulker type

Spark link
No response
Server Version
1.20.2
Server Platform
Purpur
Describe the bug
I'm on the quick crate setting and I can open any key on any chest type or shulker type, instead of the specific crate type.
CrazyCrates version 1.20.2
https://github.com/Crazy-Crew/CrazyCrates/assets/63335629/0112929c-5431-478b-a432-0b595bd070f2
Crate Type
QuickCrate
Steps to reproduce
Purpur 1.20.2
Added in crazy crates 1.20.2
Open a crate with key in hand on any chest or shulker type
Additional context
No response
Agreements

[X] I have searched for and ensured there isn't already an open issue regarding this.
[ ] I ticked all the boxes without actually reading them
[X] My version of Minecraft is supported by CrazyCrew.

Can't reproduce

https://hastebin.com/share/tadiwevoqu.less
https://hastebin.com/share/xaguvayofi.yaml

Its not actually QuickCrate but crate on the go

That's normal, CrateOnTheGo is a portable crate you can open anywhere.
The key is the crate

Oh okay that makes sense. Sorry for the trouble. I edited the configs to be quickcrate.


Sliding window java

Have you read the Contributing Guidelines on Pull Requests?
Yes, I have.
Description
Added Java programs for the following 'Sliding Window Technique' questions:
Fixed Window Problems

Count Occurrences of Anagrams
First Negative Number in Every Window of Size K
Maximum of All Subarrays of Size K
Maximum of Minimum for Every Window Size
Maximum Sum Subarray of Size K

Variable Window Problems

Longest Substring with K Distinct Characters
Length of Longest Substring Without Repeating Characters
Longest Subarray Having Sum K
Minimum Window Substring

Checklist

[x] I've read the contribution guidelines.
[x] I've checked the issue list before deciding what to submit.
[x] I've edited the README.md and link to my code.

Related Issues or Pull Requests
#2304 (Java)

Please don't push various changes in a same PR, please break this PR according to individual programs.

@atarax665 Actually, the issue that this relates to had all these programs under it. So, shall I make 9 separate PRs (one per program)?

I have made all the 9 separate PRs :+1:

Please don't push various changes in a same PR, please break this PR according to individual programs.


Add commands

Adds command handling to the API and updates the default message to remove details.
The new default message is very simple:
Air quality near <CITY> <ZIPCODE> is <AQI_LEVEL> (AQI: <AQI>).

Respond with "m" to get a full list of commands.

The commands are:
<zipcode> - aqi for the zipcode
r - aqi for the last zipcode you checked
d <zipcode> - aqi details for the zipcode
d - aqi details for the last zipcode you checked
m - display this menu

Using d <ZIPCODE>, you get:
Air quality near <CITY> <ZIPCODE> is <AQI_LEVEL> (AQI: <AQI>).

Try these other places near you for better air quality:
- <CITY> <ZIPCODE>: <AQI_LEVEL>
- <CITY> <ZIPCODE>: <AQI_LEVEL>
- <CITY> <ZIPCODE>: <AQI_LEVEL>

Average PM2.5 from <NUMBER> sensor(s) near <ZIPCODE> is <READING> µg/m³.

Respond with "m" to get a full list of commands.

What do you think of this approach @wdanfort ?

This is a big step! For better usability, I would just send the menu along with any command.
This is kind of a rough sketch of wha tI am thinking:
First text with zip:
Air quality near   is <AQI_LEVEL> (AQI: ).
Reply SAFE for locations near you with better air quality, DETAIL for in-depth AQI data, LAST for AQI for previous Zip, and ABOUT for information on hazebot
SAFE:
Air quality near   is <AQI_LEVEL> (AQI: ).
Try these other places near you for better air quality:

 : <AQI_LEVEL>
 : <AQI_LEVEL>
 : <AQI_LEVEL>

press MENU for a full list of actions
DETAIL:
Average PM2.5 from  sensor(s) near  is  µg/m³.
##THIS CAN BECOME MUCH MORE EXPANSIVE
LAST
Air quality near   is <AQI_LEVEL> (AQI: ).
press MENU for a full list of actions
ABOUT
hazebot runs on PurpleAir sensor data and is a free text service designed to provide actionable and accessible air quality information. Questions comments or concerns? Visit hazebot.org
press MENU for a full list of actions
MENU
Reply SAFE for locations near you with better air quality, DETAIL for in-depth AQI data, LAST for AQI for previous Zip, and ABOUT for information on hazebot

How about this (only 1 segment):
Air quality near is <AQI_LEVEL> (AQI: ).
Reply R for places with better air quality, D for details, L for previous Zip, and ? for information on hazebot


refactor(frontend): remove fallback from ic-token derived stores

Motivation
The derived store tokenWithFallback falls back on ETH (or SepoliaETH) and consequently even the store tokenWithFallbackAsIcToken.
However, it is unnecessary for the derived stores that checks if a particular token is a ck-token, since ETH will never have a prop ledgerCanisterId (and the util functions checks for a non-nullish token).
So we remove that particular usage from the code substituting tokenWithFallbackAsIcToken with tokenAsIcToken.

On another note, could you first provide a test in a separate PR for the existing derived stores modified in this PR?

You mean the utils inside the stores? Or the whole logic of the derived stores?

Or the whole logic of the derived stores?

I meant the all logic - like starting testing derived stores


GEting device bandwidth for upload streaming

Hi Pedro,
How can i get the upload bandwidth available at the device

https://github.com/pedroSG94/rtmp-rtsp-stream-client-java/wiki/Adaptative-video-bitrate.

Yes, in your case you can use bandwidth variable and skip parser of you don't want change video bitrate on fly

Hi Pedro,
If possible please share sample code

You have example code in wiki link.
https://github.com/pedroSG94/rtmp-rtsp-stream-client-java/wiki/Adaptative-video-bitrate.
If you don't understand something let me know how I can help you.

Thank You Pedro!!!


ASAP-Alchemy : enable prep run with a pre-prepped PDB

ideally without an OE spruce dependency

current behavior is with a pre-prepped JSON


No login prompt on serial

I have set the cmdline.txt and config.txt so I see serial prints from kernel initialization via UART. However, I do not see a login prompt on serial, only on the HDMI screen. How do I get the login prompt on serial as well?
target: raspberrypi3-64
image: core-image-base
cmdline.txt:
dwc_otg.lpm_enable=0 console=serial0,115200 console=ttyS0 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait

config.txt includes:
enable_uart=1

set
ENABLE_UART = "1"

in local.conf

Not knowing better, I did originally build without ENABLE_UART being set and of course had no serial. After googling the issue, I learned about the ENABLE_UART flag. Trying to avoid another lengthy build and save time, I looked in this repo as to what that flag did, and I only saw the config.txt and cmdline.txt file changes, so I manually made them myself. I got serial output during boot, but of course no login prompt.
I went ahead and rebuilt with ENABLE_UART set in local.conf, and now I do get the login prompt on the serial.
Clearly I missed something that flag does. Does poky also do something with that flag? I'd like to learn to avoid issues in the future.
Thanks for your help!

@meisteg there shouldn't be any other changes needed - maybe you didn't actually action the cmdline? My guess would be that somehow you didn't end up with the right console kernel argument.


Proxy issue

Have tried many proxy providers but haven't been able to get a single one to work with TWScrape. I receive no errors, just the scripts never do anything and sit there.
I have been adding proxies as so (have tried socks5, HTTP, and HTTPS):
async def add_proxy_to_account(api, account, proxy):
    username, password, email, email_password, cookie = account.split(':')
    proxy_url = proxy
    # print(proxy)
    await api.pool.add_account(username, password, email, email_password, cookies=cookie, proxy=proxy_url)
    print(f"Added proxy to account: {username}")

Thanks!

fwiw, i've been able to use a proxy server without a problem. have you tried to do it globally. something like:
tw_scrape_db = os.path.join(os_path, "accounts.db")
token_pool = AccountsPool(db_file=tw_scrape_db)
tw_scrape_api = API(pool=token_pool, proxy=proxy_url)

fwiw, i've been able to use a proxy server without a problem. have you tried to do it globally. something like:
tw_scrape_db = os.path.join(os_path, "accounts.db") token_pool = AccountsPool(db_file=tw_scrape_db) tw_scrape_api = API(pool=token_pool, proxy=proxy_url)

Sorry for the delayed response. What provider do you use and what type of proxy are you using (HTTP, HTTPS, SOCKS5)? Thanks again!

I've used royal and stormproxies. I settled on stormproxies residential as it's cheap, unlimited bandwidth and twitter doesn't seem to ban it so quickly. Http

@takabinance thank you so much and storm does rotating residential? So every request is randomized or are you just buying one singular static resi?

I think it rotates every 5 mins.
They have a data center service that rotates on every request but felt like that was getting banned too often.


ref(ci): remove travis, update build status

ref https://github.com/deis/jenkins-jobs/issues/343

You had me at +1, -28 LOC.

Codecov Report

Merging #511 into master will increase coverage by 0.25%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #511      +/-   ##
==========================================
+ Coverage   56.28%   56.53%   +0.25%
==========================================
  Files          29       29
  Lines        1242     1240       -2
==========================================
+ Hits          699      701       +2
+ Misses        505      501       -4
  Partials       38       38

Impacted Files
Coverage Δ

pkg/gitreceive/k8s_util.go
71.17% <0%> (-0.34%)
:arrow_down:

pkg/sshd/server.go
57.22% <0%> (+2.22%)
:arrow_up:

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 85725b2...270f168. Read the comment docs.


[ade] Update to v0.1.2

Update ade package to v0.1.2

[x] Changes comply with the maintainer guide
[x] SHA512s are updated for each updated download
[x] The "supports" clause reflects platforms that may be fixed by this new version
[x] Any fixed CI baseline entries are removed from that file.
[x] Any patches that are no longer applied are deleted from the port's directory.
[x] The version database is fixed by rerunning ./vcpkg x-add-version --all and committing the result.
[x] Only one version is added to each modified port's versions file.

@Jimmy-Hu  Please run vcpkg x-add-version ade to update the git-tree.
Note: I will be converting your PR to draft status. When you respond, please revert to "ready for review". That way, I can be aware that you've responded since you can't modify the tags.

Hi @Adela0814,
I ran the command vcpkg x-add-version ade and the file "ade.json" is updated. Thank you.


Add mockito configuration to support static mocking without mockito-i…

…nline
Following the tips here: https://stackoverflow.com/questions/65986197/difference-between-mockito-core-vs-mockito-inline
Removing extra dep added here: https://github.com/apache/beam/pull/17753/

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Add a link to the appropriate issue in your description, if applicable. This will automatically link the pull request to the issue.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

hm this seems to definitely have broken something, hah.


Fix cat state function array type (#554)

Context:
Issue XanaduAI#554
Description of the Change:
Changed numpy array types in cat state functions to float.

I think casting a to float would be preferable bu wonder if this has any possible side effect.


[Epic] Provide an AMI image of the VM used by CRC

Assigned: @gbraad, @praveenkumar

[ ] disk layout (can conversion work or is install from the current base image necesary)
[ ] handle cluster name change

Note: internal routes are static

[ ] cloud-init settings provisioning

[Spike] [Stretch goal] [important]

As pointed out by @bbrowning a straight conversion is not possible due to the way AWS uses the a simpler disk layout than what the curent Libvirt-based images uses (partitioned)

Some of the challenges which we will face for AMI side as pointed out by @bbrowning

The partitioning layout (among other things) used by RHCOS isn't supported for import by AWS. Both the EFI bootloader partition and the GPT partitioning scheme integral to CoreOS's disk layout (https://coreos.com/os/docs/latest/sdk-disk-partitions.html inspired from the x86 EFI layout at http://www.chromium.org/chromium-os/chromiumos-design-docs/disk-format) is integral to how CoreOS works.

If running the single node directly on the aws then several places where OCP expects to continue controlling resources in the AWS account that will be hard to decouple in order to create a generic AMI image.

A viable path forward here is a UPI install on AWS of a single node cluster where no cloud credentials are given to any pods in the bootstrap or master nodes. Once that single node cluster is up without any AWS-specific integrations enabled inside of it, it should be possible to then save it off as a reusable AMI in a spirit similar to what the createdisk.sh script in code-ready/snc does for libvirt.

Something will still need to do the equivalent of crc start to configure everything inside the AMI when a user starts an instance of it. And, because these are not running on a local laptop, additional steps will need to be taken to rotate the ssh keys, kube admin password, and all certificate / certificate authorities (or at least kubeadmin client-cert auth blocked) so that the clusters spun up are not easily "rooted".

Never expose a CRC instance to the internet at large without a reverse proxy sitting in front of its API server because all CRC installs share the same set of certificate authorities which means any API server client cert valid for one is valid for all. Thus, you have to not use TLS client certs and explicitly not allow it, which means putting a TLS-terminating reverse proxy in front of the API server.

I think that nicely sums up all the challenges I'm aware of - thanks @praveenkumar . One thing I have not looked into is how the existing RHCOS AMIs get uploaded to begin with. How are they building the AMI to get around the EC2 limitations around importing VM images?

@ashcrow Can you perhaps explain how the AMI is generated to deal with the EC2 limitations with regards to the MBR/GPT?

I think there may be some misunderstanding. The link referenced is for Container Linux which is not FCOS or RHCOS.
For RHCOS the AMI is generated off the qemu image and uploaded via cosa's internal ore. Before we upload it we do convert the qcow into a vmdk with specific options.

@guillaumerose these detail the needed changes

@anjannath Please have a look at some of those issues.

I think now this is the scope of crc-cloud project so closing it from here.


add a better gif in readme.md

Add a gif following the same commands given in readme.md

sure @luizbaldi  go ahead.

PR opened on #3

thanks for PR @luizbaldi

@luizbaldi  you can also go ahead with https://github.com/Rupeshiya/FunPacketCli/issues if you want .


Move prices to configuration options

Codecov Report

Merging #15 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #15      +/-   ##
==========================================
+ Coverage   99.82%   99.83%   +<.01%
==========================================
  Files          46       47       +1
  Lines         584      598      +14
==========================================
+ Hits          583      597      +14
  Misses          1        1

Impacted Files
Coverage Δ

app/helpers/pricing_helper.rb
100% <100%> (ø)

app/models/charge.rb
100% <100%> (ø)
:arrow_up:

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 6334aed...de24c26. Read the comment docs.


Analyzer reporting that successful requests failed

See the command line output and parquet file below:
$ python3 analysis.py -sf ../submitter/sends.parquet -rf ../submitter/responses.parquet
The request type sent is  https11$200$OK$((b'content-length',
+----------------+----------------+----------+----------+--------------------+
| Total Requests | Total Time (s) | Pass (%) | Fail (%) | Throughput (req/s) |
+----------------+----------------+----------+----------+--------------------+
|       16       |     0.068      |   0.0    |  100.0   |       236.6        |
+----------------+----------------+----------+----------+--------------------+
+--------------+----------------------+-------------------+-------------------+-------------------+-------------------+---------------------+
| Latency (ms) | Average Latency (ms) | Latency 80th (ms) | Latency 90th (ms) | Latency 95th (ms) | Latency 99th (ms) | Latency 99.9th (ms) |
+--------------+----------------------+-------------------+-------------------+-------------------+-------------------+---------------------+
|    2.447     |        4.227         |       2.549       |       2.767       |       6.158       |       13.964      |        15.72        |
+--------------+----------------------+-------------------+-------------------+-------------------+-------------------+---------------------+

 --------------------  Start plotting   --------------------

 -------------------- Finished plotting --------------------

And the responses.parquet as json (as you can see the requests actually succeeded):
{"index":0,"messageID":0,"receiveTime":1665075582.6589582,"rawResponse":"https11$200$OK$((b'content-length', b'4'), (b'content-type', b'application/json'), (b'x-ms-ccf-transaction-id', b'2.12'))"}
{"index":1,"messageID":1,"receiveTime":1665075582.6628385,"rawResponse":"https11$200$OK$((b'content-length', b'4'), (b'content-type', b'application/json'), (b'x-ms-ccf-transaction-id', b'2.13'))"}
{"index":2,"messageID":2,"receiveTime":1665075582.6667314,"rawResponse":"https11$200$OK$((b'content-length', b'4'), (b'content-type', b'application/json'), (b'x-ms-ccf-transaction-id', b'2.14'))"}
{"index":3,"messageID":3,"receiveTime":1665075582.6702425,"rawResponse":"https11$200$OK$((b'content-length', b'4'), (b'content-type', b'application/json'), (b'x-ms-ccf-transaction-id', b'2.15'))"}
{"index":4,"messageID":4,"receiveTime":1665075582.6738105,"rawResponse":"https11$200$OK$((b'content-length', b'4'), (b'content-type', b'application/json'), (b'x-ms-ccf-transaction-id', b'2.16'))"}
{"index":5,"messageID":5,"receiveTime":1665075582.677234,"rawResponse":"https11$200$OK$((b'content-length', b'4'), (b'content-type', b'application/json'), (b'x-ms-ccf-transaction-id', b'2.17'))"}
{"index":6,"messageID":6,"receiveTime":1665075582.680584,"rawResponse":"https11$200$OK$((b'content-length', b'4'), (b'content-type', b'application/json'), (b'x-ms-ccf-transaction-id', b'2.18'))"}
{"index":7,"messageID":7,"receiveTime":1665075582.6836762,"rawResponse":"https11$200$OK$((b'content-length', b'4'), (b'content-type', b'application/json'), (b'x-ms-ccf-transaction-id', b'2.19'))"}
{"index":8,"messageID":8,"receiveTime":1665075582.686811,"rawResponse":"https11$200$OK$((b'content-length', b'4'), (b'content-type', b'application/json'), (b'x-ms-ccf-transaction-id', b'2.20'))"}
{"index":9,"messageID":9,"receiveTime":1665075582.6906433,"rawResponse":"https11$200$OK$((b'content-length', b'4'), (b'content-type', b'application/json'), (b'x-ms-ccf-transaction-id', b'2.21'))"}
{"index":10,"messageID":10,"receiveTime":1665075582.6939461,"rawResponse":"https11$200$OK$((b'content-length', b'4'), (b'content-type', b'application/json'), (b'x-ms-ccf-transaction-id', b'2.22'))"}
{"index":11,"messageID":11,"receiveTime":1665075582.6972837,"rawResponse":"https11$200$OK$((b'content-length', b'4'), (b'content-type', b'application/json'), (b'x-ms-ccf-transaction-id', b'2.23'))"}
{"index":12,"messageID":12,"receiveTime":1665075582.700498,"rawResponse":"https11$200$OK$((b'content-length', b'4'), (b'content-type', b'application/json'), (b'x-ms-ccf-transaction-id', b'2.24'))"}
{"index":13,"messageID":13,"receiveTime":1665075582.7037277,"rawResponse":"https11$200$OK$((b'content-length', b'4'), (b'content-type', b'application/json'), (b'x-ms-ccf-transaction-id', b'2.25'))"}
{"index":14,"messageID":14,"receiveTime":1665075582.7072544,"rawResponse":"https11$200$OK$((b'content-length', b'4'), (b'content-type', b'application/json'), (b'x-ms-ccf-transaction-id', b'2.26'))"}
{"index":15,"messageID":15,"receiveTime":1665075582.7106793,"rawResponse":"https11$200$OK$((b'content-length', b'4'), (b'content-type', b'application/json'), (b'x-ms-ccf-transaction-id', b'2.27'))"}

You most probably produced this parquet file from the python submitter which I can see I have left the "$" sign as a separator, which I changed in C++. It should be fixed after the PR


cgroup-bin required for vagrant-lxc

Problem (It was detected on Ubuntu 14.04 + vagrant-lxc plugin):
There was an error executing ["sudo", "/home/[YOUR_NAME]/.vagrant.d/gems/gems/vagrant
-lxc-1.1.0/scripts/pipework", "lxcbr0", "tickalert_default_[HASH]", "
[VAGRANT_IP_ADDR]/24"]

Solution:
apt-get install cgroup-bin

Please add this package to the list of mandatory in the description of the installation

I don't think this is needed. Which command from cgroup-bin does your vagrant-lxc plugin use? I see none of them:
dpkg -L cgroup-bin | while read FILENAME; do test -f $FILENAME || continue; git grep $(basename $FILENAME); done


adding type transformation of cluster type MOA to ROSA

https://github.com/open-cluster-management/backlog/issues/12751


Is there a way to make Macy responsive?

Hi,
When I resize my browser, I see that the images are becoming weird until they "reload" in the good position when the browser stopped resizing. Is there a way to prevent that from happening?
thank you

Hey @Nic787, try adding event listener on window object to listen for resize event, then run macyInstance.recalculate(true);


Just a simple vue init webpack install doesnot load in IE. throws syntax error

mark

From webpack-dev-server 2.11.2 this seems to be fixed


Refresh IG Group file POST addition

This pull request covers the following changes:

Refresh IG POST expanded to include other resources such as group files.
Duplicate bundle files during refresh fixed.
added -x as possible argument during Refresh IG to show expanded reporting for errors, warnings, and information messages.

Boolean "verboseMessaging" can be found throughout methods and when true, extra information is appended to output such as cql translation.

Bundle Test Cases enhanced with multithreading optimizations.
General enhancements to message output for readability.
Renamed AbstractResourceProcessor to AbstractBundler.

Decoupled MeasureProcessor from AbstractBundler, extends BaseProcessor

Created MeasureBundler, extends AbstractBundler

Renamed PlanDefinitionProcessor to PlanDefinitionBundler

Renamed QuestionnaireProcessor to QuestionnaireBundler

Improved readability and complexity behind IGBundleProcessor instantiation.
Adjusted CqlTranslatorException to use List
-Cql translation results adjusted for output such as:

Github Issue:
[ ] I've read the contribution guidelines
[ ] Code compiles without errors
[ ] Tests are created / updated
[ ] Documentation is created / updated

By creating this PR you acknowledge that your contribution will be licensed under Apache 2.0

Logger is now used over System.out


EurekaReactiveDiscoveryClient.getInstances() assumes vipAddress.

Hi,
I'm using Spring Cloud Gateway (v 2.2.2 release) and activated eureka discovery (eureka server v 2.1.0.RELEASE)
I have a spring application (not spring boot) registered into Eureka : we used Eureka Client library (v 1.9.18) for the registration
For the registration, i set :
eureka.secureVipAddress=customer-api-transcap
eureka.port.enabled=false  # because application is over https
eureka.securePort=443
eureka.securePort.enabled=true

The registration is ok into eureka (i see app and instance UP)
But in spring cloud gateway, the route for the service is NEVER created.
By debugging Spring cloud gateway, i've noticed that only the instance defined with vipAdress in Eureka are taken (not the instance with ONLY secureVipAdress)
For me it's a bug
Please see below :
Into Eureka :
Only secureVipAddress is set :
<application>
		<name>CUSTOMER-API-TRANSCAP</name>
		<instance>
			<instanceId>xl11lsrv0545.bnet.luxds.net</instanceId>
			<hostName>xl11lsrv0545.bnet.luxds.net</hostName>
			<app>CUSTOMER-API-TRANSCAP</app>
			<ipAddr><IP_ADDRESS></ipAddr>
			<status>UP</status>
			<overriddenstatus>UNKNOWN</overriddenstatus>
			<port enabled="false">80</port>
			<securePort enabled="true">443</securePort>
			<countryId>1</countryId>
			<dataCenterInfo class="com.netflix.appinfo.InstanceInfo$DefaultDataCenterInfo">
				<name>MyOwn</name>
			</dataCenterInfo>
			<leaseInfo>
				<renewalIntervalInSecs>10</renewalIntervalInSecs>
				<durationInSecs>90</durationInSecs>
				<registrationTimestamp>1585718912043</registrationTimestamp>
				<lastRenewalTimestamp>1585744377083</lastRenewalTimestamp>
				<evictionTimestamp>0</evictionTimestamp>
				<serviceUpTimestamp>1585718912043</serviceUpTimestamp>
			</leaseInfo>
			<metadata>
				<startup>750209327</startup>
			</metadata>
			<appGroupName>UNKNOWN</appGroupName>
			<homePageUrl>https://bil1ih66d/</homePageUrl>
			<statusPageUrl>http://xl11lsrv0545.bnet.luxds.net:80/Status</statusPageUrl>
			<secureHealthCheckUrl>https://xl11lsrv0545.bnet.luxds.net:443</healthcheck>
</secureHealthCheckUrl>
			<secureVipAddress>customer-api-transcap</secureVipAddress>
			<isCoordinatingDiscoveryServer>false</isCoordinatingDiscoveryServer>
			<lastUpdatedTimestamp>1585718912043</lastUpdatedTimestamp>
			<lastDirtyTimestamp>1585718911328</lastDirtyTimestamp>
			<actionType>ADDED</actionType>
		</instance>
	</application>

In spring cloud gateway : /actuator/gateway/routes is empty :
[]

When i registered the application with both secureVipAdress and vipAdress, the route is created by Spring Cloud Gateway
In Eureka :
<application>
	<name>CUSTOMER-API-TRANSCAP</name>
	<instance>
		<instanceId>xl11lsrv0545.bnet.luxds.net</instanceId>
		<hostName>xl11lsrv0545.bnet.luxds.net</hostName>
		<app>CUSTOMER-API-TRANSCAP</app>
		<ipAddr><IP_ADDRESS></ipAddr>
		<status>UP</status>
		<overriddenstatus>UNKNOWN</overriddenstatus>
		<port enabled="true">80</port>
		<securePort enabled="true">443</securePort>
		<countryId>1</countryId>
		<dataCenterInfo class="com.netflix.appinfo.InstanceInfo$DefaultDataCenterInfo">
			<name>MyOwn</name>
		</dataCenterInfo>
		<leaseInfo>
			<renewalIntervalInSecs>10</renewalIntervalInSecs>
			<durationInSecs>90</durationInSecs>
			<registrationTimestamp>1585753201828</registrationTimestamp>
			<lastRenewalTimestamp>1585754578144</lastRenewalTimestamp>
			<evictionTimestamp>0</evictionTimestamp>
			<serviceUpTimestamp>1585753201828</serviceUpTimestamp>
		</leaseInfo>
		<metadata>
			<startup>1560134096</startup>
		</metadata>
		<appGroupName>UNKNOWN</appGroupName>
		<homePageUrl>https://bil1ih66d/</homePageUrl>
		<statusPageUrl>http://xl11lsrv0545.bnet.luxds.net:80/Status</statusPageUrl>
		<healthCheckUrl>http://xl11lsrv0545.bnet.luxds.net:80/healthcheck</healthCheckUrl>
		<secureHealthCheckUrl>
https://xl11lsrv0545.bnet.luxds.net:443/healthcheck
</secureHealthCheckUrl>
		<vipAddress>customer-api-transcap</vipAddress>
		<secureVipAddress>customer-api-transcap</secureVipAddress>
		<isCoordinatingDiscoveryServer>false</isCoordinatingDiscoveryServer>
		<lastUpdatedTimestamp>1585753201828</lastUpdatedTimestamp>
		<lastDirtyTimestamp>1585753201082</lastDirtyTimestamp>
		<actionType>ADDED</actionType>
	</instance>
</application>

In Spring cloud gateway (routes) :
[
  {
    "predicate": "Paths: [/customer-api-transcap/**, /ms/customer-api-transcap/**], match trailing slash: true",
    "metadata": {
      "startup": "1560134096"
    },
    "route_id": "ReactiveCompositeDiscoveryClient_CUSTOMER-API-TRANSCAP",
    "filters": [
      "[[RewritePath /(?:.*?/)?customer-api-transcap/(?<remaining>.*) = '/${remaining}'], order = 1]",
      "[com.bil.transversal.isp.filters.AuthenticationFilter$$Lambda$804/1662797699@227947f6, order = 20000]"
    ],
    "uri": "lb://CUSTOMER-API-TRANSCAP",
    "order": 0
  }
]

And finally, in the spring application, I've to set these properties :
eureka.secureVipAddress=customer-api-transcap
eureka.vipAddress=customer-api-transcap
eureka.port.enabled=true  # required for having vipAddress into Eureka instance
eureka.securePort=443
eureka.securePort.enabled=true

I must activate non secure port. The eureka client lib don't send vipAddress information if non secure is not activated
I think the problem comes from the code below :
class org.springframework.cloud.netflix.eureka.reactive.EurekaReactiveDiscoveryClient
Method: getInstances
@Override
	public Flux<ServiceInstance> getInstances(String serviceId) {
		return Flux
				.defer(() -> Flux.fromIterable(
						eurekaClient.getInstancesByVipAddress(serviceId, false)))
				.map(EurekaServiceInstance::new);
	}

Only the instances registered with VipAdress are taken
Regards

Transferred to spring-cloud-netflix as that is where the issue lies. There would have to be some decision made on how to do this as getInstancesByVipAddress() takes a boolean, so you would get secure or not.

Ok thanks you
Yes actually, only false is passed to the method

Hello everyone,
is there a plan to fix this issue anytime soon?
Thank you


Fixed scroll behavior

Added smooth scroll behavior, added correct spacing so when clicking on link it goes to the correct position, ordered the nav-bar correctly

this pull request is for issue #87

Hi @faid0 please show me the preview video of the changes u have made.

https://github.com/gauravsingh1281/Rentalog-Rent-Management-Web-App-For-Landlords/assets/122060842/690fbdd6-12c6-4d63-8be7-9fbb0e91758c
It now has "smooth" scrolling and doesnt cut off the header

@faid0 Thank you for your contribution 🚀


Bug in flex-basic challenge (CSS Flexbox curriculum)

Describe your problem and - if possible - how to reproduce it
I type all the arguments needed to pass this challenge, but it shows me the error.
Add a Link to the page with the problem
https://learn.freecodecamp.org/responsive-web-design/css-flexbox/use-the-flex-basis-property-to-set-the-initial-size-of-an-item/
Tell us about your browser and operating system

Browser Name: Google Chrome
Browser Version:
Operating System: macOS, High Sierra

If possible, add a screenshot here

Are you sure you are using the correct property? In your screenshot you are using a property titled "flex-basis", it should be "flex-basic".


Don't add base path for webmanifest <link> element

Describe the bug
web manifest should is some origin document.
When I add WebManifest in public dir and index.html add <link> element:
<link rel="manifest" href="/manifest.webmanifest" />

The manifest itself looks like this:
{
	"name": "App",
        "start_url": "/",
        ...
}

vite.config.js use base: 'https://asdf.asdf.asf/',
bundle file:
<link rel="manifest" href="https://asdf.asdf.asf/manifest.webmanifest" />

Finally lead to WebManifest read errors
Reproduction
not need
System Info
"vite": "^2.3.8"

  System:
    OS: macOS 11.6
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Memory: 55.26 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 16.2.0 - ~/.nvm/versions/node/v16.2.0/bin/node
    Yarn: 1.22.10 - ~/.nvm/versions/node/v16.2.0/bin/yarn
    npm: 7.19.0 - ~/.nvm/versions/node/v16.2.0/bin/npm
    Watchman: 2<IP_ADDRESS> - /usr/local/bin/watchman
  Browsers:
    Chrome: 96.0.4664.55
    Chrome Canary: 98.0.4743.0
    Firefox Nightly: 96.0a1
    Safari: 15.1
    Safari Technology Preview: 15.4

Used Package Manager
yarn
Logs
No response
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/vue-next instead.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
[X] The provided reproduction is a minimal reproducible example of the bug.

As far as I know, web manifest can serverd be from another domain (with proper CORS settings), it's just the start_url property that must be of same origin of the document.

@mantou132 Can you explain what the read errors are? From @sodatea's explanation, this seems to be working as expected.

Vite prepending the URL for the webmanifest link still feels like the right thing to do for me. I think the start_url here needs to be configured to handle that following the warnings you showed. If there's something we've missed, please provide a repro instead. Closing this for now.


add type_neq test

Codecov Report

Merging #8 into master will increase coverage by 1.52%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master       #8      +/-   ##
==========================================
+ Coverage   95.93%   97.46%   +1.52%
==========================================
  Files           9        9
  Lines         197      197
==========================================
+ Hits          189      192       +3
+ Misses          8        5       -3

Impacted Files
Coverage Δ

py_hcl/firrtl_ir/tpe.py
100% <0%> (+1.36%)
:arrow_up:

py_hcl/firrtl_ir/width.py
100% <0%> (+4.76%)
:arrow_up:

py_hcl/firrtl_ir/field.py
95% <0%> (+5%)
:arrow_up:

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 f0baa02...7ab0dde. Read the comment docs.


Any plans for filtering Google fonts made available?

The complete Google fonts catalogue can be a bit overwhelming, not to mention the atrocities some users will make given that possibility. Is there a way, or any plans for adding filtering capability of the available fonts?

That would require you to add a multicheck control for font types (serif, sans-serif, display, handwriting, monospace), and then 3 more slider controls for thickness, slant & width.
Then, we'd have to load the filtered list of fonts in a 4th select control etc...
It's possible.... but instead of 1 control we'd then have 5 and a lot of extra functionality that is not really necessary...
Instead, you can simply add a description to the field that will instruct users to visit http://www.google.com/fonts/ in order to preview and select the font they want. :)

I see your point, although im not sure if I explained my self clearly.
The ideia was to just output the font list available to user, not make that list dependable on multiple factors such as types and weights.
That is, imagine that for body copy I say the theme supports "Lato", "Open Sans" and "Merryweather". Then only those would be listed.
Maybe im being too strict about what to allow users, anyway I feel this could be useful.

Oh!
Sorry, I misunderstood what you meant!
Yeah, you can do that already.....
Right now to add all fonts you do this:
	$controls[] = array(
		'type'     => 'select',
		'setting'  => 'base_typography_font_family',
		'label'    => __( 'Font Family', 'minishop' ),
		'section'  => 'base_typography',
		'default'  => 'Roboto',
		'priority' => 20,
		'choices'  => Kirki_Fonts::get_font_choices(),
		'output' => array(
			'element'  => 'body',
			'property' => 'font-family',
		),
	);

if you want to add specific fonts, you could simply define a custom array:
	$controls[] = array(
		'type'     => 'select',
		'setting'  => 'base_typography_font_family',
		'label'    => __( 'Font Family', 'minishop' ),
		'section'  => 'base_typography',
		'default'  => 'Roboto',
		'priority' => 20,
		'choices'  => array(
			'Lato'          => 'Lato'
			'League Script' => 'League Script'
			'Leckerli One'  => 'Leckerli One'
			'Ledger'        => 'Ledger'
		),
		'output' => array(
			'element'  => 'body',
			'property' => 'font-family',
		),
	);

You can see the full list of fonts here: https://gist.github.com/aristath/1f01fa624bede53464a9 (I just did print_r( Kirki_Fonts::get_font_choices() ); to get those :wink:

Ohh nice!!! Kirki just keeps getting better and better :D


Any recommendation to port this project to ARM64?

Thanks!

May I ask why you want to port it to arm?

I have an Oracle Cloud instance that I want to use for this server that is based in Ampere. I guess that would be also interesting for the people using the new Apple M1 processors.

Any updates on this? I'm also using an Oracle Cloud instance

It's not possible afaik, the base game needs to be ported first. Translation or emulation to the correct architecture would perform very very poorly. I would love it if you could prove me wrong, but this isn't feasible at this time.

There is zero realistic possibility of the game server being ported to ARM32/64. The game server would need to be significantly overhauled to change architecture, and that is definitely out of scope for this project. Plus Keen would see no realistic value in doing that for Space Engineers. If they were to do it (and they probably won't, because game servers do not have any tangible market share in ARM32/64 space), they would do it for the VRAGE3 engine, and not waste any time on Space Engineers/VRAGE2 being ported to ARM32/64.
It is absolutely, positively, a large task to port something like this to ARM64. This ticket really should just be closed as it's adding clutter.

Sorry @aborroy , didn't want to rain on your parade, more I didn't want you to hope for something I really don't see as happening. :( Have a nice day!


Conflicts with Inventory HUD+

This should be a specification. If you want to work around this problem, you will need to address it either in a layer below this or elsewhere, but that is not a good solution.


[Shell] Const's are not available for /vars

Description:
$subject
Consider the following.

Suggested Labels (optional):
Area/Shell

Here x is a constant right? why should we consider listing x down in /vars?

IMO const specifies that a variable value is constant. Except for the facts that const is immutable and known at the compile time(yes, those can be used to say that const is not a variable as well - so there's a bit of ambiguity), const can be used like a variable.

Fixed by https://github.com/ballerina-platform/ballerina-lang/pull/36653


calicoctl node run hangs without warning if it needs to download image

The new calicoctl node run command hangs for a long time while the image is being downloaded, without telling the user why.
We should just  always print an info message that states Pulling calico/node:xyz if it doesn't exist locally...

And we need to make sure it doesn't hang indefinitely.


403 Forbidden

Hi TamirMa,
Thx for the code. Im a beginner with python and google. I have a little issue and maybe you now the solution.
Mastertoken succesful --> Yes
Generate a new access token --> Yes
See the camera device --> yes
Change de timezone --> yes Time is now the same as the computer time and google doorbell time.
But when de code exucute def get_events a 403 forbidden pop-up.
def get_events(self, end_time: datetime.datetime, duration_minutes: int):
    start_time = end_time - datetime.timedelta(minutes=duration_minutes)
    params = {
        "start_time" : start_time.astimezone(pytz.timezone("UTC")).isoformat()[:-9]+"Z", # 2024-02-07T19:32:25.250Z
        "end_time" : end_time.astimezone(pytz.timezone("UTC")).isoformat()[:-9]+"Z", # 2024-02-08T19:32:25.250Z
        "types": 4,
        "variant" : 2,
    }
    return self.__parse_events(
        self._connection.make_nest_get_request(
            self._device_id,
            NestDoorbellDevice.EVENTS_URI,
            params=params
        )
    )

403 Client Error: Forbidden for url: https://nest-camera-frontend.googleapis.com/dashmanifest/namespace/nest-phoenix-prod/device/DEVICE
Do you now what i am doing wrong? Thx

In the URL you have shared, there's something wrong with the device ID ("DEVICE" instead of "DEVICE_XXXXXX..").
Can you share the console logs when running the script?
What are the devices you are getting when running "google_connection.get_nest_camera_devices()"?

Thx for the fast anwser.
I get result from the google nest doorbell with the master token. The access token is different any time but that is normal.
I put some logger info in the script. Hope it helps.
2024-02-24 20:02:18,824 - tools - INFO - Welcome to the Google Nest Doorbell <-> Telegram Syncer
2024-02-24 20:02:18,825 - tools - INFO - Initializing the Google connection using the master_token
2024-02-24 20:02:18,825 - tools - INFO - Getting Camera Devices
2024-02-24 20:02:20,529 - tools - INFO - Found 1 Camera Device
2024-02-24 20:02:20,622 - tools - INFO - Sending request to: 'https://nest-camera-frontend.googleapis.com/dashmanifest/namespace/nest-phoenix-prod/device/DEVICE_64166600607C228A' with params: '{'start_time': '2024-02-24T20:02:20.622Z', 'end_time': '2024-02-24T23:02:20.622Z', 'types': 4, 'variant': 2}'
2024-02-24 20:02:21,622 - tools - INFO - {<Response [403]>}
File "C:\Scripts\nest_api.py", line 57, in get_events
self._connection.make_nest_get_request(
File "C:\Scripts\google_auth_wrapper.py", line 57, in make_nest_get_request
res.raise_for_status()
File "C:\Python\Python312\Lib\site-packages\requests\models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://nest-camera-frontend.googleapis.com/dashmanifest/namespace/nest-phoenix-prod/device/DEVICE_64166600607C228A?start_time=2024-02-24T20%3A02%3A20.622Z&end_time=2024-02-24T23%3A02%3A20.622Z&types=4&variant=2
Process finished with exit code 1

You are right, I rechecked it on my side and there was a bug when getting an access token for the Nest service.
My get_access_token patch for glocaltokens was not working so I re-wrote it.
Please git pull the latest version and keep me updated if the problem is resolved.

Hi,
I pulled the new files.
024-02-25 14:05:30,307 - tools - INFO - Welcome to the Google Nest Doorbell <-> Telegram Syncer
2024-02-25 14:05:30,307 - tools - INFO - Initializing the Google connection using the master_token
2024-02-25 14:05:30,307 - tools - INFO - Getting Camera Devices
2024-02-25 14:05:30,307 - tools - INFO - There is no access_token stored, or it has expired, getting a new one...
2024-02-25 14:05:30,809 - tools - INFO - Access token: y********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************, datetime 2024-02-25 14:05:30.809059
2024-02-25 14:05:32,172 - tools - INFO - Found 1 Camera Device
2024-02-25 14:05:32,267 - tools - INFO - Sending request to: 'https://nest-camera-frontend.googleapis.com/dashmanifest/namespace/nest-phoenix-prod/device/DEVICE_64166600607C2XXX' with params: '{'start_time': '2024-02-25T14:05:32.267Z', 'end_time': '2024-02-25T17:05:32.267Z', 'types': 4, 'variant': 2}'
2024-02-25 14:05:32,267 - tools - INFO - There is no access_token stored, or it has expired, getting a new one...
2024-02-25 14:05:32,741 - tools - INFO - Access token: y*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************, datetime 2024-02-25 14:05:32.741835
Traceback (most recent call last):
File "C:\Scripts\testcam.py", line 28, in
events = nest_device.get_events(end_time=pytz.timezone("Etc/GMT+3").localize(datetime.datetime.now()),
File "C:\Scripts\nest_api.py", line 56, in get_events
self._connection.make_nest_get_request(
File "C:\Scripts\google_auth_wrapper.py", line 84, in make_nest_get_request
res.raise_for_status()
File "C:\Python\Python312\Lib\site-packages\requests\models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://nest-camera-frontend.googleapis.com/dashmanifest/namespace/nest-phoenix-prod/device/DEVICE_64166600607C2XXX?start_time=2024-02-25T14%3A05%3A32.267Z&end_time=2024-02-25T17%3A05%3A32.267Z&types=4&variant=2
In your how to post you are using:
https://nest-camera-frontend.googleapis.com/dashmanifest/namespace/nest-phoenix-prod/device/{DEVICE_ID}?start_time={ISO_FORMAT_8601_Z}&end_time={ISO_FORMAT_8601_Z}&types=1&types=2&types=4&variant=2
In the url i am missing --> &types=1&types=2 maybe is that te problem?
Thx!!

That's so weird! Type 2 and 3 are not an issue on my side, actually, I just tried to drop the parameters completely and it's still working. The two errors getting me 403 unauthorized errors are when the access_token is incorrect or when the camera is not related to my account.
A few questions:

Just for making sure, the device ID not really "DEVICE_64166600607C2XXX", right? The XXX is just for privacy, right?
What type of camera are you using?
Can you take the second access token and use curl "https://oauth2.googleapis.com/tokeninfo?access_token={TOKEN} to check what type of token it is? Please share the "scope" you get back?
Would you share testcam.py so I will make sure everything is okay over there?

Hi,
Thanks for the effort!!
1. Just for making sure, the device ID not really "DEVICE_64166600607C2XXX", right? The XXX is just for privacy, right?
Yes is for privacy

2. What type of camera are you using?
nest doorbell battery --> https://store.google.com/nl/product/nest_doorbell_battery?pli=1&hl=nl

3. Can you take the second access token and use curl "https://oauth2.googleapis.com/tokeninfo?access_token={TOKEN} to check what type of token it is? Please share the "scope" you get back?

curl "https://oauth2.googleapis.com/tokeninfo?access_token=ya29.a0AfB_byDdLeDLmQFFXvhAiefzMp9pRuY2I58rjFuSAlP0fdwh6LizroAVza3tGiZ2ZKaqo2rketCty2utBF0FaIQ__rFSbYf1eOMPB2-YDhQPheNpSyl_q2b0_kjk7TY8Jx3r_x6X720pjA2MI32f1s8ineFzIrkgbhrY5Gkwmv2Z7l2HBiRL3PfJPj3-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
{
"azp": "498579633514-vipn56bj423ufpht3gm6bd23fjl74a06.apps.googleusercontent.com",
"aud": "498579633514-vipn56bj423ufpht3gm6bd23fjl74a06.apps.googleusercontent.com",
"scope": "https://www.googleapis.com/auth/nest-account",
"exp": "1708973703",
"expires_in": "3571",
"access_type": "offline"
}
4. Would you share testcam.py so I will make sure everything is okay over there?

from google_auth_wrapper import GoogleConnection
import pytz
import datetime
from tools import logger
GOOGLE_MASTER_TOKEN = "aas_et/AKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
GOOGLE_USERNAME =<EMAIL_ADDRESS>google_connection = GoogleConnection(
GOOGLE_MASTER_TOKEN,
GOOGLE_USERNAME
)
logger.info("Welcome to the Google Nest Doorbell <-> Telegram Syncer")
logger.info("Initializing the Google connection using the master_token")
google_connection = GoogleConnection(GOOGLE_MASTER_TOKEN, GOOGLE_USERNAME)
logger.info("Getting Camera Devices")
nest_camera_devices = google_connection.get_nest_camera_devices()
logger.info(f"Found {len(nest_camera_devices)} Camera Device{'s' if len(nest_camera_devices) > 1 else ''}")
nest_camera_devices.
nest_camera_devices = google_connection.get_nest_camera_devices()
for nest_device in nest_camera_devices:
# Get all the events
events = nest_device.get_events(end_time=pytz.timezone("Etc/GMT+3").localize(datetime.datetime.now()),
duration_minutes=3 * 60)  # 3 Hours

I suggest that the API for your local Google Home app is different in your country. I've looked at how the Google Home App chooses the right URL for Nest API and found out it's using a "GetTraits" command to the Google Home Graph API. The following piece of code in testcam.py will discover the right API for your device:
from google_auth_wrapper import GoogleConnection
import pytz
import datetime
from tools import logger

GOOGLE_MASTER_TOKEN = "aas_et/AKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
GOOGLE_USERNAME = "[xxxx@gmail.com](mailto:xxxx@gmail.com)"

google_connection = GoogleConnection(
GOOGLE_MASTER_TOKEN,
GOOGLE_USERNAME
)

logger.info("Welcome to the Google Nest Doorbell <-> Telegram Syncer")

logger.info("Initializing the Google connection using the master_token")

##
## Replace the rest of the file with:
##

import requests
GET_TRAITS_BODY = b'\x00\x00\x00\x00D\nB\n$xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\x12\x1a\n\x18nest-home-assistant-prod'
GET_TRAITS_URL = 'https://googlehomefoyer-pa.googleapis.com/google.internal.home.foyer.v1.HomeControlService/GetTraits'
for device in google_connection._google_auth.get_homegraph().home.devices:
    if "action.devices.traits.CameraStream" in device.traits and "Nest" in device.hardware.model:
        logger.info("Found a camera device, check for its traits")
        res = requests.post(
            GET_TRAITS_URL,
            data=GET_TRAITS_BODY.replace(b"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", device.device_info.device_id.encode("utf-8")),
            headers={"Authorization":f"Bearer {google_connection._google_auth.get_access_token()}", "Content-Type":"application/grpc"}
        )
        res.raise_for_status()
        logger.info(f"Got device traits: {res.content}")

Feel free to DM me: https://www.linkedin.com/in/tamir-mayer/

Hi Tamirma,
Thx for the code. That was the solution for me. Your code works perfectly.
What was wrong:

I had created a second gmail account and add it to google home as admin.
The code above give me a access denied on the token. hhmmmmmm wierd
I installed blue stack and installed google home with my 2second account, than i tipped the camera. Google came with a message the nest and google are together now. I accecpted that en then i get access.

Yes i moddiefed the code a little bit so i can download the mp4 to my local drive. I sync it later to my private cloud.
Thx for your time and effort!!!


Correctness of API Simulator

I read the paper and it says in the virtual API system, when real API(RapidAPI) is not available, the system will call simulated API. So how to ensure the correctness of the result from simulated API?
Or do we actually want a result that "looks" right so that we can evaluate LLM's ability to use tools and not care the correctness of its result?

Thank you for your question.
We believe that exact replication of real API outputs is not necessary for API simulators; rather, the focus should be on providing rational responses. For instance, when querying today's weather, an API simulator need not fetch the actual temperature. Instead, it should produce a plausible temperature number. The term "correctness" may not be entirely appropriate here since any reasonable temperature can be deemed correct.
In our paper, we conduct a "Turing test" to illustrate that outputs from LLM-based simulations are virtually indistinguishable from real API responses, and that the diversity of these simulations mirrors that of actual APIs.
I concur that evaluating the tool learning capabilities of LLMs is crucial as a benchmark. Nevertheless, it is also important to ensure that these simulations operate within a realistic—or nearly realistic—and reliable framework. Hence, we carefully test the verisimilitude of our simulations.


Redesign of the blog card

Make hover effect on the image and title should be the mid of the image and small button just near end the card.

assign me this issue

assign me this issue

I would like to see the progress of the previous issue assigned to you before that. #2


Failed to load config value of type class java.lang.String for: karavan.environment

Deploying karavan in kubernetes fails.
image from:ghcr.io/apache/camel-karavan:3.18.5
kubectl logs karavan-857f8d4d5-5kb6k -n karavan,
show error message：
2022-12-15 12:20:19,316 INFO  [io.qua.sma.ope.run.OpenApiRecorder] (main) CORS filtering is disabled and cross-origin resource sharing is allowed without restriction, which is not recommended in production. Please configure the CORS filter through 'quarkus.http.cors.*' properties. For more information, see Quarkus HTTP CORS documentation
Failed to load config value of type class java.lang.String for: karavan.environment

Do you deploy using Operator? Could you please add Operators log

Is it still the case with Karavan 3.20.0?

Karavan operator is deprecated in favour of installer


Automatic PR of restapi_auto_dmakwana_capabilities-in-properties into master

Created to sync https://github.com/Azure/azure-rest-api-specs/pull/2392

Codecov Report

Merging #1874 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1874   +/-   ##
=======================================
  Coverage   52.65%   52.65%
=======================================
  Files        4642     4642
  Lines      114292   114292
=======================================
  Hits        60176    60176
  Misses      54116    54116

Impacted Files
Coverage Δ

...smosdb/models/database_account_patch_parameters.py
57.14% <ø> (ø)
:arrow_up:

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 60b0726...af7a6cd. Read the comment docs.


Add debug flag to include delve

Picking up the awesome work from https://github.com/ko-build/ko/pull/1148, just resolving current conflicts and seeing if we can get this merged.
I've tested this running the built container in Docker Desktop on macOS, using GoLand (running natively on macOS), and it appears to work great.
If there's anything further this PR needs, I'm happy to help out. I'd love to see this --debug flag in ko! 😃
cc: @imjasonh

Awesome @luhring,
thanks for fixing the merge conflicts (last week I didn't see any when I rebased #1148 :see_no_evil: ) and giving this some push again.


CASMINST-5609: Refine and clarify NCN personalization procedures

Description
CASMINST-5609 was opened because for the CSM install case, the Getting Started Guide and the CSM docs were not synched up when it came to NCN personalization. There are some gaps and also some needless duplications. Other than some minor housekeeping tasks, this PR primarily does the following:

Updates the Configure NCNs with CFS procedure to add language to cover both the install and upgrade cases, to make it clearer the different paths that may be followed.
Same for NCN Node Personalization procedure.
Removes a confusing callback to the GSG from stage 0.3 of the upgrade path, because there is nothing in the GSG that needs to be done at that point. The mention just adds confusion for no benefit.

This is not a thing of beauty. I had to restrain myself from more drastic reorganization and editing, because of the urgency of this and the lateness in the release. And because some of this content is going to be changing anyway because of IUF and other work. Please keep this in mind when reviewing this PR. The goal is to improve what we have without requiring a massive re-write that risks breaking links or introducing other issues. More significant suggestions will likely be documented in new tickets, rather than addressed in this one.
Testing
I tested the changes made to apply_csm_configuration.sh on surtur.
Checklist Before Merging

[X] If I added any command snippets, the steps they belong to follow the prompt conventions (see example).
[X] If I added a new directory, I also updated .github/CODEOWNERS with the corresponding team in Cray-HPE.
[X] My commits or Pull-Request Title contain my JIRA information, or I do not have a JIRA.

/backport main

Testing complete. Now ready for merge, pending approvals.


Split openpype lib into 2 or more parts

Description
We have to split content of openpype lib into core lib and all other lib parts. Only core lib should be imported on start before any logic in OpenPype is used to be able do validations and have ability in real library parts to use all imports without wrappers.

also thing like otio (editorial.py) should be imported elsewhere, not in core or lib I think. That would solve some headaches from wrong builds of otio wheels and so on.

also thing like otio (editorial.py) should be imported elsewher

Agree, core should have real minimum that would not call or use on import. That would give us ability to run validations on start and catch them properly.

So I moved files here and there trying to find out what should be and what should not be in core. Will try to sum up what I think about it.
would split current lib into these parts

openpype core - with these parts you can use OpenPype as software

mongo connection
logging definition
settings

pipeline core - without these pipeline logic of OpenPype won't work

anatomy
applications
modifications of avalon and pyblish (currently in plugin_tools.py)
...

openpype core utils - handy functions to get information from or about core

pype info
execute commands
vendored binaries
...

pipeline utils - handy functions that can be used across multiple places in pipeline logic

profiles
avalon context functions (make sence to use it only in host where context is known and set in avalon.Session
...

specific pipeline utils - functions that care about one specific pipeline part

editorial
abstract implementations

Regarding the editorial and its otio import: I believe the otio import could be hidden in decoration function and passed into a function as function argument. So during importing of lib from anywhere otio will not be imported until the time you will need to use any of editorial.py functiuons. Just an idea..
def import_otio(func):
    def inner():
		import opentimelineio as otio
        func(otio=otio)
    return inner

@import_otio
def any_function(input_object, otio=None):
	if otio:
		otio_object = otio.create_object(input_object)
    	return otio_object

Regarding the editorial and its otio import: I believe the otio import could be hidden in decoration function and passed into a function as function argument.

That is actually different issue (and there is a better solution). The problem is that in openpype.lib is used a lot of crutial parts from inside of openpype.lib which should be validated before usage. For example PypeLogger is created on many places on import which may cause crash before it is possible to validate if mongo logging can and should be used. Same for avalon repository and many others...


Support for RS512 algorithm

Hi,
When I tried to decode a token signed using RS512, I get the following error.
terminate called after throwing an instance of 'std::runtime_error'
  what():  Invalid input
Abort trap: 6

Does it support that.? I could see this library is marked as RS512 supported in jwt.io

Yes RS512 is supported.
The exception you are seeing does not look like one thrown by jwt-cpp. If you can it might help if you share some source code.
I added same test cases for rs512 to guide you with implementation.
Also you can try your token here to make sure it is actually a valid token.

I took a look at it today and this exception gets thrown when there is invalid base64 input (a jwt token is basically a series of base64 encoded JSON strings).
To be precise the error is thrown in the following cases:

There are more than 2 padding characters
The number of characters (including fill) does not add up to multiples of 4
The base64 string contains invalid characters
Personally, I suspect your error is caused by the last one, but I can only be sure if I get a sample token.
Make sure your token only contains
lowercase ASCII chars
uppercase ASCII chars
numbers
underscore and minus symbols
(and exactly 2 dots separating the three parts)

Is this still relevant ?

Closing due to inactivity.


Buy BTC

The Buy BTC box needs to be smaller to align with the edge of the boxes above.

Now the Buy BTC button is not aligned with above currency convertor button.
Tested on dev app v2.0(349)

Verified this issue on dev app v2.0(351)


remove use of feature specific to cassandra-proto fork

Simplifies the implementation
Removes dependency on feature added in our cassandra-proto fork (in upstream Row.metadata and Row.row_content are private)
Less allocation

Are we able to test that function?

We already have test_result_codec, which sends a return value decodes and encodes a return value.
That should cover this function.

Can we remove dependence on our fork altogether or is this just one part.

This is just step one on our side. I've also made some PRs for things we need on their side


 It will be removed on or after 2019-12-01.
Gem::Specification#rubyforge_project= called from /Users/patrick/.gem/ruby/2.7.1/bundler/gems/resque-status-bb9a46e3d3f5/resque-status.gemspec:46.

seems like we need to branch off tag 0.4.5, instead of master


Add files via upload

lifeMEDeasy - An all in 1 Healthcare Companion Seeking to Automate Healthcare Facilities !

@all-contributors please add @sohampatil17  for documentation

@all-contributors please add @sohampatil17 for ideas


xWebVirtualDirectory Fails to create a virtual directory if it already exists

xWebVirtualDirectory Services
{
Name =  "Services"
Website = $Node.WebsiteName
WebApplication = $WebApplication
PhysicalPath = "F:\docs\tfs"
Ensure =  "Present"
DependsOn       = '[xWebsite]NewWebSite'
}
Desired Behavior : The resource should detect the virtual directory exists, and skip it.
*Actual Behavior: It attempts to create the virtual directory, and throws an error saying to use the 'force' parameter.
Error :
VERBOSE:[SERVERNAME]: [[xWebVirtualDirectory]Services] Creating new Web Virtual Directory "Services".
Destination element already exists, please use "force" parameter to override.
+ CategoryInfo          : InvalidArgument: (:) [], CimException
+ FullyQualifiedErrorId : Destination element already exists, please use "force" parameter to override.,Microsoft.IIs.PowerShell.Provider.NewVirtualDirectoryCommand

Thanks for reporting this! Labeled this issue as help wanted so that someone in the community can run with it.

Hi all,
I made some tests
If you leave WebApplication blank, it works as expected
       xWebVirtualDirectory Services
        {
        Name = "Services"
        Website = "Default Web site"
        WebApplication = ""
        PhysicalPath = "C:\web\"
        Ensure = "Present"
        }

It creates the virtual directory if not present, update it if needed or do nothing if the VD exists.
If you add a WebApplication, if the VD is not present it creates it under Webapplication name (ie /myApp/MyVD), but if this VD exists it throws an error.
The problem seems to be in the way the resource test the existence of the virtual directory
it uses
$virtualDirectory = Get-WebVirtualDirectory -Site $Website `
                                                -Name $Name `
                                                -Application $WebApplication

Where it should use something like
$virtualDirectory = Get-WebVirtualDirectory -Site $Website `
                                                -Name /$WebApplication/$Name `
                                                -Application

May I try to send a solution?

bump... still hitting this bug. Any progess? Or easy work around? My VD needs to exist under the web app

Theory: Use parameter WebApplication only if an application by that name exists in your site.

Not properly tested
Recreated in integration tests:
# Only relevant properties included
WebVirtualDirectory WebVirtualDirectory_WithProblem
{
	WebApplication = 'DummyApp'
	Name = 'dummy'
}

<!-- C:\Windows\System32\inetsrv\config\applicationHost.config -->
<site name="WebsiteForVirtualDirectory" id="2" serverAutoStart="true">
	<application path="/" applicationPool="DefaultAppPool">
		<virtualDirectory path="/" physicalPath="C:\inetpub\wwwroot" />
		<virtualDirectory path="/DummyApp/dummy" physicalPath="C:\inetpub\virtualdirectory" />
	</application>
	<application path="/WebApplication" applicationPool="DefaultAppPool">
		<virtualDirectory path="/" physicalPath="C:\inetpub\webapp" />
	</application>

# Only relevant properties included
# This results in identical applicationHost.config, but does NOT have the problem
WebVirtualDirectory WebVirtualDirectory_WorksFine_1
{
	WebApplication = ''
	Name = 'DummyApp/dummy'
}

# This puts the VirtualDirectory under the application "/WebApplication" in applicationHost.config
# This does NOT have the problem
WebVirtualDirectory WebVirtualDirectory_WorksFine_2
{
	WebApplication = 'WebApplication'
	Name = 'dummy'
}


413 Entity Too Large Error when feature and model classifier files are added

When I add the pageclassifier.models file to Model in Memex Explorer for Model and the the pageclassifier.features file to Features in Memex Explorer I get a 413 Entity Too Larger Error
413 Request Entity Too Large
nginx/1.4.6 (Ubuntu)

Fixed by changing nginx conf.


jsTree delete the created node by calling create_node option when calling data.instance.refresh();

I am using jsTree to create tree structure of data I am adding certain operation on tree using context_menu option list create, rename, delete. I applied the code for create_node and rename_node.After create_node I call rename_node but if the person cancel the operation I call refresh by calling data.instance.refresh(); to get back the last state but it always deleted the newly created node. Here is the code which I used. please suggest what I am doing wrong```
.
$('#jstree1').jstree({"
"core" : {"
"check_callback" : true,"
'themes' : {"
'responsive' : true"
"}"
"},"
"'force_text' : true,"
"plugins" : [ "contextmenu", "dnd","wholerow" ]"
"}).on('create_node.jstree', function (e, data) {"
"$.get("createNode.action?operation=create_node", {'baseId' : data.node.id, 'parentId' : data.node.parent, 'categType': data.node.li_attr.catgtype, 'text' : data.node.text, 'nodeSubType':nodeSubTypeVlaue })"
".done(function (d) {"
"data.instance.set_id(data.node, d.id);"
"data.instance.set_Parameters(data.node, d, data);"
"})"
".fail(function () {"
"data.instance.refresh();"
"});"
"}).on("rename_node.jstree", function (e, data) {"
"var previousValue =data.node.text; "
"$('#contextMenuRename')"
".modal({ backdrop: 'static', keyboard: false })"
".one('click', '#renameBtn', function (e) {"
"$.get("createNode.action?operation=rename_node", {'baseId' : data.node.id, 'parentId' : data.node.parent, 'categType': data.node.li_attr.catgtype, 'text' : data.node.text })"
".done(function (d) {"
"$('#contextMenuRename').modal('hide');"
"})"
".fail(function () {"
"$('#contextMenuRename').modal('hide');"
"data.instance.refresh();"
"});"
"}).one('click','#renameCancelBtn,#renmCrossBTN', function(e){"
"data.instance.refresh();"
"});"
"});

If the node disappears that means that you either are not reading the data directly from the server, or that you failed to persist it. Either way - it is not a problem with jstree but with your data. From what I see you are using HTML as your data, which means calling refresh will revert the tree to what it was when the DOM loaded. Read the docs on hooking up data directly from the server - if that is not what you need - then don't call .refresh.

Thanks for the reply.
Actually I am creating new node. I fallow the flow as I called create_node.jstree for creating node using jstree and then I call createNode.action?operation=create_node", {'baseId' : data.node.id, 'parentId' : data.node.parent by passing following values to the server to create new node in data base that was done successfully but after receiving the response from the server by ".done(function (d)  I call data.instance.set_id(data.node, d.id);" "data.instance.set_Parameters(data.node, d, data); to set the values received form the server that was also done successfully. but when I called refresh on rename call it clears the created node. what else I can use in place of refresh to get last state of node?


Infinite loading in Firefox

Im on the latest Firefox 96.0.3 and when I try to play a video using this player it infinite loads and gives me a
[Error] (204): [FP_ERROR] Timeout error. Failed to play video?
and
Error Code: NS_ERROR_DOM_MEDIA_FATAL_ERR (0x806e0005)
Details: mozilla::MediaResult __cdecl mozilla::WMFVideoMFTManager::ValidateVideoInfo(void): Can't decode H.264 stream because its resolution is out of the maximum limitation
On Edge works but not on Firefox, any fix?

You may be better helped if you provide an online example using the font you are having problems with.
using the same source but with a different player, does the same thing happen?

It's NSFW, should I share it? if yes, how?
Edge works but on Firefox it doesn't, i can't choose a different player

I am not sure if it can be sent nsfw
you could send an email to<EMAIL_ADDRESS>to test it.
although as it says in the error, the resolution of the video is out of the limit, is it 4k or more?

@Kimarnic since this is quite old, are you still having this issue?

@Kimarnic Is this still and issue? Can I close this? Thank you!


Support for distinct formulations (physics) in different spatial regions?

Dear MFEM team,
first we want to state that we are truly impressed by the scope and amazing quality of your library, which has already established itself as a major framework for the development, at high level of abstraction, of massively scalable high performance physical simulation codes.
However, while in the process to learn and start using MFEM, we have been struggling to locate a proper abstraction for specifying different physics (meaning different set of equations controlling different fields) in different (possibly overlapping) spatial regions of a mesh.
To give a first (non-overlapping case) example for this class of problem, let say that we would like to solve a simple steady state fluid-structure interaction problem, considering (pressure, velocity) fields obeying Stokes equation in the exterior region with appropriate BCs at the outer boundary, coupled at an inner boundary with an anchored solid region supporting a  displacement field obeying linear elasticity equations.
A second more involved (spatially overlapping case) example, would be to solve an EM wave scattering problem on a metallic region whose (conduction) electron gas dynamic is described by a fluid like type equation. Now we have some formulation of Maxwell equations (time or frequency domain) to solve everywhere (surrounding vacuum + metal region) with some absorbing BC at the outer vacuum boundary, coupled in the inner metallic region with electron gas fields (density, velocity) obeying some forced electron gas hydrodynamics.
Other FEM platforms that we are aware of, for instance GetDP (http://getdp.info/), deal.ii (https://www.dealii.org/ - see in particular https://www.dealii.org/current/doxygen/deal.II/step_46.html), libMesh (https://libmesh.github.io/index.html - see in particular https://libmesh.github.io/examples/subdomains_ex1.html) or DUNE (https://www.dune-project.org/ -  see in particular https://www.dune-project.org/modules/dune-pdelab/), all provide some level of support for this broad class of problems; while of course presenting some limitations in other areas better supported by MFEM.
Without any preconception about the best possible design choices/implementation, and purely from a (naive ?) user perspective, we were somewhat expecting MFEM finite element space and(or?) form integrator classes to have domain of definition/integration optionally restricted to a (list of) subset(s) of the mesh, as tagged by volume/boundary cell attributes naturally inherited through mesh refinement/coarsening/deformation and/or parallel partitioning. Nothing of that nature or functionally equivalent appears available.
- Are we missing something obvious?
- Is this currently somewhere to be found in the latest released or development versions?
- If not there directly, would it be easily achievable with some tricks or minor extension to the code, and if yes, could you outline an avenue for enabling it?
- If none of the above, is this on your road map at some time horizon you can share with us ?
We are looking forward to learn more about MFEM capabilities in relation with what is, in our opinion, an absolutely core requirement for multi-physics FE solver development.
Best regards,
MPhysX development team.

Dear MPhysX development team,
Thank you for your interest in MFEM.
We are certainly interested and have been discussing supporting different physics in different domains for some time now, but we have not found a way to implement an efficient abstraction for it without significant development effort.
If you are willing to have global variables that are zero in the physics domain where they are not present, then in principle a "coupling" could be implemented now by providing Coefficients to the different BilinearForms that are nonzero only in their physics domain. That will be quite inefficient though, especially if some variables live only in small portion of the domain.
A better approach will be to have variables that are local to their physics domain and there is some sort of coupling on the domain interfaces. Currently MFEM does not support GridFunctions on subdomains of the mesh, so handling this on a single mesh will require significant changes.
An alternative could be to use different Mesh objects for the different physics domains where somehow you provide the coupling operator between the different fields on the different meshes.
Hope this helps. We are open to other suggestions how to handle this.
Tzanio

Dear Tzanio,
thanks for your in depth answer and confirmation that you are actively interested in this feature.
We understand the possibility of a work around by using Heaviside type factors in Coefficients, but concur with your assessment of inefficiency.
As you mention that you are open to other potential suggestions as how to handle this, may we point you again to the way the deal.ii (https://www.dealii.org) library is dealing with this, see in particular https://www.dealii.org/current/doxygen/deal.II/step_46.html.
As far as we understand it, it seems to be an approach allowing to add an abstraction for multiple physics in different regions of the mesh in a rather general way, while being also possibly minimally disruptive to the overall framework architecture. In their approach this appears unified with the abstraction of local p-refinement, since all function spaces are defined over the whole mesh but are interpolated with "zero order" (and no associated dofs) in regions where they are not intended to be physically defined. The treatment of surface integrals over inner boundaries between regions supporting distinct physics (something which is often, but not always, required to define coupling terms in BilinearForms) seems however a bit more "ad hoc"...
It is our understanding that local p-refinement is not currently supported by MFEM (we are writing under your control here). However, it may well be already in your roadmap, and the above outlined approach could then be a way to kill two birds with (almost) the same stone...and possibly warrant accelerated development ? ;)
We are looking forward reading your further thoughts on this.
Best regards,
MPhysX development team.

Thank you, this is an interesting suggestion and we will consider it. General p-refinement is indeed on our roadmap, but not in the immediate future.
I will leave this issue open for a while in case folks have additional comments or suggestions.
Tzanio


fix(tsconfig): typo in tsconfig

It's embarrassing, but yes I made typo error and this pr will fix it.

@jedmao Sorry 🙏
I made typo but when I run the build command locally (even now) it's generating proper output even with typo. However, the same is not true for npm publish.
Request you to approve this 🙏

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

@jedmao  Still it's not generating util.js in npm source, can you please take a look ? as package is broken in absence of required imports

@jedmao https://github.com/jedmao/redux-mock-store/pull/61
Never published npm package before, I was not aware that it requires to add entry in to files property in package.json


math pi statement

the store pi in <var> statement is kind of useless in my opinion.
why not just have a const called math.pi or std.math.pi that holds the value of pi?
what value is gained from turning this into a sentence? in my opinion this sets a very bad precedent that everything needs to have a sentence, which is absolutely not true.

You are absolutely right. This should be changed into a constant.

Fixed


Validate that size for PVC is set.

There are two ways how to set requested size for PVC in kedge
using size shortcut
name: storage
volumeClaims:
- size: 500Mi

or regularly via requests
name: storage
volumeClaims:
- resources:
    requests:
      storage: 500Mi

without resource.request.storage  PVC can't be created, we need to check that size or resources.requests.storage is set.
see https://github.com/kedgeproject/kedge/pull/544

Current Status:

if both size and request are provided:

$ kedge generate -f app.yml
unable to perform controller operations: unable to transform data: unable to create Persistent Volume Claims: persistent volume "persistent", cannot provide size and resources at the same time

If both size and request is not present:

$ kedge generate -f app.yml
unable to perform controller operations: unable to transform data: unable to create Persistent Volume Claims: persistent volume "persistent", please provide size or resources, none given


METRON-532 Define Profile Period When Calling PROFILE_GET

This PR builds on top of @nickwallen 's work in METRON-529, which has already been committed to master.  It adds an optional argument to PROFILE_GET, allowing run-time overrides of the profiler client global configuration parameters.  The primary use case is when historical profiles have been created with a different profile configuration than is currently configured, and the analyst needing to access them does not want to change the global client configuration so as not to disrupt the work of other analysts working with current profiles.
The proposed placement of the optional Map argument is before the group sequence, so as not to disrupt the current usage of a variable-length sequence of 'group' arguments.  Example:
// Retrieve all values for 'entity1' from 'profile1' that occurred on 'weekdays' over the past month,
// overriding the usual global client configuration parameters for window duration.
PROFILE_GET('profile1', 'entity1', 1, 'MONTHS', {'profiler.client.period.duration' : '2', 'profiler.client.period.duration.units' : 'MINUTES'}, 'weekdays')

An alternative would be to change the 'groups' argument into a List, rather than a variable-length sequence of Strings, then put the config_override Map after the groups List.  Let me know if you think this would be a better implementation, as I can change it very quickly.  Of course the original usage would be retained for backward compatibility, but perhaps deprecated.
Testing:  This change is restricted to the Stellar function implementation, so the expanded junit test is largely sufficient.  Also, a previous version of this code passed Travis in a preview PR against Nick's work branch.

Apologies, but I'm going to be offline for a couple days, due to a surgery.  I will fix this when I get back. --Matt

@mattf-horton No worries, get better, man.

@mattf-horton I like the approach.  I would agree with @cestella 's suggestion.  After that update, I think it will be a good improvement.

Thanks @cestella and @nickwallen .  Suggestion implemented.

Awesome!  Did you run this up and test out the profiler in vagrant?

Hey @mattf-horton, there is an outstanding question from @cestella on testing.  Once we get that addressed, I'd love to get your work merged in.  Thanks!

@nickwallen , I can't satisfactorily run the quick dev platform on my workstation, so I'm working on bringing up a 16GB test platform in the cloud.  Doing a brief side trip to enable the Mpack to do a single-node install, then will test this properly.


Fix DB session cleanup

The DB session clean up needs to check expiry not created_unix.
Signed-off-by: Andrew Thornton<EMAIL_ADDRESS>

Codecov Report

Merging #15697 (e1c268a) into master (ae6d786) will increase coverage by 0.00%.
The diff coverage is 0.00%.

@@           Coverage Diff           @@
##           master   #15697   +/-   ##
=======================================
  Coverage   43.90%   43.91%
=======================================
  Files         678      678
  Lines       81827    81827
=======================================
+ Hits        35926    35931    +5
+ Misses      40051    40043    -8
- Partials     5850     5853    +3

Impacted Files
Coverage Δ

models/session.go
0.00% <0.00%> (ø)

modules/queue/workerpool.go
58.77% <0.00%> (-1.23%)
:arrow_down:

services/pull/pull.go
43.93% <0.00%> (+0.45%)
:arrow_up:

modules/notification/mail/mail.go
41.83% <0.00%> (+3.06%)
:arrow_up:

modules/util/timer.go
85.71% <0.00%> (+42.85%)
:arrow_up:

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 ae6d786...e1c268a. Read the comment docs.


Fix slow points #2

Description
Alternative fix to #5133. This is probably a lot better, since it tackles the real problem: reset() being called way too much than necessary. @andy-sweet and @hanjinliu, please check this out!

Type of change

[x] Bug-fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

References

How has this been tested?

[ ] example: the test suite for my feature covers cases x, y, and z
[ ] example: all tests pass with my change
[ ] example: I check if my changes works with both PySide and PyQt backends
as there are small differences between the two Qt bindings.

Final checklist:

[ ] My PR is the minimum possible work for the desired functionality
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] If I included new strings, I have used trans. to make them localizable.
For more information see our translations guide.

Assuming you can fix the failing tests, I'd be fine with this going into main after the release. But including such a large change in the release makes me pretty nervous - I feel like there are potentially a lot of ways we may have relied on reset that might become exposed now.

I've not tested #5133 but this fixes points speed regression for me too, without need to change the BLAS library https://github.com/napari/napari/issues/5040

Blas is for speedup Linear algebra computation in code (for example numpy one). It is not for speedup GPU things. So I think that it was masking of some other performance related problem in napari codebase.

I had to readd the matrix calculation to _on_set_data, because when the dims order changes, this has to happen or the order of dimensions would be wrong. Ideally, you'd want the matrix update to only be fired when necessary... However, I'm not sure it's worth trying to figure this out now, since the async work will probably change dramatically how this information comes to the vispy layer side.

Closing in favor of #5133.


Unable to use email or session token

In config im setting email, password, session token doesn't it work without API.

ERROR:
Traceback (most recent call last):   File "/usr/share/pycharm/plugins/python-ce/helpers/pydev/pydevd.py", line 1496, in _exec     pydev_imports.execfile(file, globals, locals)  # execute the script   File "/usr/share/pycharm/plugins/python-ce/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile     exec(compile(contents+"\n", file, 'exec'), glob, loc)   File "/home/vino/Documents/AiArtly/chatgpt_midjourny.py", line 37, in <module>     promptGenerator = PromptGenerator(config)   File "/home/vino/Documents/AiArtly/lib/python3.10/site-packages/chatGPTMidJourneyPrompt/mjPrompt.py", line 18, in __init__     if config["api_key"]: KeyError: 'api_key'

Don’t remove the ‘api_key’ from the config file. That should work.


NotImplementedError Cannot convert a symbolic Tensor when running the training

Very nice project and demo! Just when trying to do the training:
python3 neural_complete.py github-keras token
getting a:
NotImplementedError: Cannot convert a symbolic Tensor (lstm/strided_slice:0) to a numpy array. This error may indicate that you're trying to pass a Tensor to a NumPy call, which is not supported
Would you have the version via pip freeze of the https://github.com/kootenpv/neural_complete/blob/master/backend/requirements.txt ? (maybe we need older ones or port the code)
pip3 freeze | grep tensorflow
tensorflow==2.4.0
tensorflow-estimator==2.4.0

@romainr do you get know issue solution

tensorflow==1.14.0
Keras == 2.2.4
is ok
However, i have another error 'AttributeError: 'generator' object has no attribute 'values''


carbu_com.get_lowest_fuel_price_coor Broken?

I dont get any outpute when used...
Is it still broken?

Event is triggered, see readme which has full example of usage.

Hi
I always get an error or no response

The from - to parameters are required when searching for a station in between two location. Then the action/service carbu_com.get_lowest_fuel_price_on_route or carbu_com.get_lowest_fuel_price_on_route_coor should be used.
The action you are using requires other parameters, see below. In the developer page you can test services/actions and example parameters with info are shown.

action: carbu_com.get_lowest_fuel_price_coor
data:
  fuel_type: diesel
  latitude: 50.8503
  longitude: 4.3517
  max_distance: 5
  filter: Shell

hmm, I now see your second screenshot is using the correct action/service. I'll further check this

Are you sure a valid GEO_API_KEY is set? I've added some validation in R11.2.4 to throw an ServiceValidationError if services are used that require a valid GEO_API_KEY while not set.

Oops; its still GEO_API_KEY

I added api key, error is gone now and it is triggering, however i dont get any notification

did you setup an automation to trigger on the specific event? see example code on the reamde

I didnt set up an automation, i tried it first using development tools ... using the code from the readme and it doesnt work,.
The other does work ! (carbu_com.get_lowest_fuel_price_on_route)

the issue isn't clear to me. Which part is not working? If you don't setup an automation to trigger based on the event, no notification will be shown.
So before testing using the development tools, you'll need to setup an automation to show a notification.
if that's not the issue, you'll need to share some more details or screenshot
alias: Carbu event
description: ""
trigger:
  - platform: event
    event_type: carbu_com_lowest_fuel_price # or carbu_com_lowest_fuel_price_coor
condition: []
action:
  - service: notify.persistent_notification
    data:
      message: >-
        {{ trigger.event.data.supplier_brand }}: {{ trigger.event.data.price }}€
        at {{ trigger.event.data.distance }}km, {{ trigger.event.data.address }}
mode: single

Hi,
My friend has the same issue
see https://community.home-assistant.io/t/rest-sensor-needs-to-get-latest-element-of-list/404882/20

I'll try to look into into it next week

HI added some fix to cover sub-municipality, not sure if this would also fix your issue. Please try again. If still an issue, please provide details of the parameters or part of the log file to allow furhter debugging.


Collateral

If ever I reset my nami wallet? Does it automatically remove the collateral?

Yes collateral is always part of your balance actually. It's only seperated in the current Nami instance you have. Whenever you reimport the wallet or use another one, you see the whole balance again.


fix: remove upper limit for required terraform version

/run pipeline

Error: [ERROR] Error when creating resource instance: Please contact the Service Provider for this error. [422, Unprocessable Entity] This account reached the number of Trial plan instances that are allowed. To proceed, you must select the Standard plan or delete an existing Trial instance. If you delete the Trial plan instance, you must also delete its reclamation by using the IBM Cloud CLI. Learn more: https://ibm.biz/BdPa49 with resp code: {

/run pipeline

:tada: This PR is included in version 1.2.2 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


[SPARK-48175][SQL][PYTHON] Store collation information in metadata and not in type for SER/DE

What changes were proposed in this pull request?
Changing serialization and deserialization of collated strings so that the collation information is put in the metadata of the enclosing struct field - and then read back from there during parsing.
Format of serialization will look something like this:
{
  "type": "struct",
  "fields": [
    "name": "colName",
    "type": "string",
    "nullable": true,
    "metadata": {
      "__COLLATIONS": {
        "colName": "UNICODE"
      }
    }
  ]
}

If we have a map we will add suffixes .key and .value in the metadata:
{
  "type": "struct",
  "fields": [
    {
      "name": "mapField",
      "type": {
        "type": "map",
        "keyType": "string",
        "valueType": "string",
        "valueContainsNull": true
      },
      "nullable": true,
      "metadata": {
        "__COLLATIONS": {
          "mapField.key": "UNICODE",
          "mapField.value": "UNICODE"
        }
      }
    }
  ]
}

It will be a similar story for arrays (we will add .element suffix). We could have multiple suffixes when working with deeply nested data types (Map[String, Array[Array[String]]] - see tests for this example)
Why are the changes needed?
Putting collation info in field metadata is the only way to not break old clients reading new tables with collations. CharVarcharUtils does a similar thing but this is much less hacky, and more friendly for all 3p clients - which is especially important since delta also uses spark for schema ser/de.
It will also remove the need for additional logic introduced in #46083 to remove collations before writing to HMS as this way the tables will be fully HMS compatible.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
With unit tests
Was this patch authored or co-authored using generative AI tooling?
No

@cloud-fan please take a look when you have the time

@cloud-fan all checks passing, can we merge this?

thanks, merging to master!

@cloud-fan I looked into HMS a bit, and it seems that we can't save column metadata there, so I guess we will still have to keep converting schema with collation to schema without when creating a table in hive even though collations are no longer a type?

I think so. String type with collation should be normal string type in the Hive table schema, so that other engines can still read it. We only keep the collation info in the Spark-specific table schema JSON string in table properties.


Install extension to all existing profiles

A "Install - All Profiles"  dropdown option when installing an extension will be a great addition

/assign @sandy081

Let's say you have a "Base" profile and a "Python" profile already created. While using the Python profile, you had the need to install an extension, for this example let's say the XML extension, but this extension can also be used by other profiles so you install the extension to the current profile (Python), then switch to the Base profile and install the extension again.
If this feature is available, there will be no need to switch profiles if the extension you want to install is applicable to all existing profiles.

@sandy081 where should I start if I want to help?

I think a better approach would be a tree-like structure:

Base

Python

AI
CV

C++
Whatever

Each line represents a profile. The child profile only tracks the difference between itself and the parent. So installing any extension or changing settings to the parent profile automatically applies to the child profiles.

Hello @sandy081, I just find a problem about this feature: when make an extension pack "Apply Extension to all Profiles", its containing extensions aren't applied to all profiles. For example, I've make GitHub Markdown Preview "Apply Extension to all Profiles",

But these extensions are not.

In my opinion it should be consistent. Thanks for you!

Can you please file a separate issue for this usecase?

@sandy081 I've open the issue #190992. Thanks!


Include the generated dependency files

Prior to this change, touch src/Parser.h would only cause Parser.o to
recompile, but Compile.cpp should also have been recompiled since it
includes Parser.h. The deps were created, just not included in the
Makefile.

Thanks! That has been bugging me.


solving the error of not finding caffe in matlab

by making a symlink, the warning and error of matlab concerning not finding caffe folder can be solved.

How do i start MATLAB being in R-CNN directory , when I cd i can't find matlab


Updated #L58 in test.html

The example was showing I'm a small tooltip but In Code Example it was Hover me!
Ref. :

Nice catch!
But actually, this typo is in branch gh-pages (website) on index.html. Would you mind changing there too so I can accept this PR?

okay, as I was making changes through the GitHub website only (patch branches ), so closing this PR and created #160 for that.


Async components files are not returned in preloadFiles

If a component is defined as an async component like this:
app.component('HelloWorld', defineAsyncComponent(() => import(/* webpackChunkName: "hello-world" */ './components/HelloWorld.vue')));

Component resources (js, css) are not included in the result of renderToString().preloadFiles().
Here is example: https://github.com/juvirez/test-async-components

async component definition
renderToString call

It looks like here is the code responsible for this:
https://github.com/nuxt-contrib/vue-bundle-renderer/blob/d01cf4e0565e64b2932fd6277eb6c2c076d63fa0/src/renderer.ts#L160-L166
But in my case _registeredComponents is undefined. How can I define this variable for ssrContext?

This needs to be added manually. Previously vue-loader did this and it's still planned for v16: https://github.com/vuejs/vue-loader/issues/1887
Here's how we do it in Nuxt for webpack: https://github.com/nuxt/framework/blob/4712e994112a97feba447b3edb4afb65e968ed63/packages/nuxt/src/app/plugins/preload.server.ts#L1-L12

@danielroe do you know where __moduleIdentifier param is set? It is missing in my case
https://github.com/nuxt/nuxt/discussions/29747


Add comment and test for API of a parameter to grpc_call_cancel_with_status

per conversation in https://github.com/grpc/grpc/pull/10636

[trickle] No significant performance differences

done - added a comment around in call.c around the slice creation

[microbenchmarks] No significant performance differences

test failures:

basic tests windows PR - https://github.com/grpc/grpc/issues/11188
interop cloud-to-prod (kokoro) - https://github.com/grpc/grpc/issues/11967, https://github.com/grpc/grpc/issues/11994, https://github.com/grpc/grpc/issues/11996, https://github.com/grpc/grpc/issues/11995
msan C - https://github.com/grpc/grpc/issues/11997


iMac assets folder is named lowercase

The images is requested with (../device-mockups/iMac/portrait_black.png); but the folder named 'imac'. Doesn't work on case sensitive systems.

#49