Suggestion: Preload some arrivals?

To balance arrivals and departures sooner would it be possible to provide an option to run at timewarp 100 with new departures disabled until the first time an arrival switches to our frequency.

I don't see how this would exactly work with the 'offset' aspect of arrivals. This would mean that some offsets would need to be edited in order to resolve a few issues with arrivals.
On 27 Dec 2016, 01:22 +0000, soundings<EMAIL_ADDRESS>wrote:

To balance arrivals and departures sooner would it be possible to provide an option to run at timewarp 100 with new departures disabled until the first time an arrival switches to our frequency.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub (https://github.com/zlsa/atc/issues/772), or mute the thread (https://github.com/notifications/unsubscribe-auth/ASgmWC75rGyHdKSmeZeveox5qcWpzSCWks5rMGhogaJpZM4LV955).

This would be awesome, but with all the different airports, knowing how long to allow it to simulate into the future isn't really practical. Since the sim has no ability to intelligently deal with the aircraft that are moving before the game would "start", they could end up splattered all over the place, and the player would have airplanes to play with immediately, but they'd kind of be cleaning up the mess. At this stage, I don't think this is something that will get added. Maybe way downstream when we have automated controllers working the traffic outside our airspace, but that's probably years away. :wink:
Closing.

The program need only timewarp - as suggested - until the first time an arrival switches to our frequency.
Arrivals would be in exactly the same position as if the game had been started without timewarp.
I'm not going to play the tagging game with you but I would ask you to consider reopening.

@soundings Oh! I must apologize. Full disclosure, I didn't fully re-read the original write-up when looking at this just now. :grimacing: Sorry about that.....
What you're saying is not that we should skip ahead until a bunch of aircraft are in the airspace, you're just saying we should fast forward until the first one enters.
That's a very reasonable and straightforward request, that we can and should absolutely implement. Reopening.
PS: thanks for following up. :+1:

How would that affect the clock in the upper left corner? This "real-time"-feature would be negated then - or would the time be set at the moment the first arrival occurs?

That is a good thing to point out. We can make sure that happens.

The ATC repository is being migrated to it's new home at https://github.com/openscope/openscope,
and thus, all issues are being closed. If this is still an issue with the latest version of the sim
(accessible at http://www.openscope.co), or is a feature you still think we are lacking,
please reopen the issue at the new repo.
Please note that the vast majority of these issues have been copied to the new repository, or else are covered by other issues created there. See the below screenshot for what it looks like when your issue is known in the new repo:

Thank you!
Closing this issue.


Suggestion for new version

Some personal opinions after having used this template for a new API.
For the new version of this BoilerPlate I would suggest not including so much "extras", at least not extras that are enabled by default. While it might be useful, it has the side effect of turning this boilerplate template more into a code sample/tutorial than something you can use to get a quick start. This as you would have to spend about as much time trying to understand how those extras work as well as removing them if you don't use it, as it would take to configure a new API from scratch and configure health checks etc.
I think this might turn away potential users of this excellent template, that really offers a lot of value. Well, that's my personal opinions, others might disagree :)

Thank you for the feedback! Could you please list the features that you think not necessary? The core features in the template are something that an API should have but you could customize it to however you like. I included them because others might find it useful. I also included a sample documentation how this template works for reference so users won't get lost.

Well, always opinionated of course but I would probably remove the OAuth/SampleAPI altogether, or perhaps make it an option when running the template. While it is useful to have for some, I think that most users of the template probably would not be calling any additional APIs with OAuth and instead end up with an API that might be a bit more complex than needed.
Now, I do appreciate that there is sample code for this provided, so its more if it should be included and enabled by default.
Thanks!

Thank you for your inputs. I appreaciate it. What interests me is that when I initially released the template - it just contain the basic stuff, but alot of people were requesting to include stuff like Auth, Healthchecks etc.. - main reason why v2 was created.
or perhaps make it an option when running the template
I'll see what I can do. :)

@proudmonkey - your template is packed with all the enterprise features.  It saves time when scaffolding a robust WebAPI project.  Many thanks.
Please consider integration with Ocelot to support API gateway.  Ocelot will communicate with IdentityServer instead of the individual API project.  For project code structure, it would make it easier to find source code using the structure of CleanArchitecture where source code is organized into Application, Domain, Infrastructure, and WebAPI projects.
Again thank you for your awesome template.

@workcontrolgit  Thank you for your interest on this project. I appreciate it. This template is another opinionated implementation for someone who want to spin up an API without using clean architechture. It's on my to-do list to create a separate API template that follows Clean Arch. Definitely, ocelot is a great feature to add.
Thanks!

I think that is better to not introduce other stuff. The Ocelot can be added by people if need.

I agree for the same reasons I created this ticket.

I started a project with a template but there was a lot of stuff that complicated the things and overload all. I found this one and it's near CleanArch...and it's clean. I like to have the control.

Use case:  suppose you have 5 API Resources and 10 client apps.  You can run one instant of Id4 and one instant of Ocelot to manage and control access to 5 API Resources and 10 client apps.   It will be great to have a template for rapid prototype Api Resources.   Ideally, there is an interface design to allow Api Resource to be quickly integrated with a token service such as Id4 and a web API gateway such as Ocelot.  It is not desirable to wire in additional code into the template to implement the token service or gateway functionalities.
@proudmonkey - I put together a skeleton Api Resource project  where source code is organized into four projects core, application, infrastructure, and web API (following clean architecture Onion view).   I would love to hear your thought on the architecture approach.   The template does not have all the enterprise extensions that your template generated.   I have evaluated several templates and found a clean architecture template  that has a good source code structure.  I adopted the structure, however, instead of using EF and CQRS, I implemented the project with  Dapper, SqlKata, and Repository/UnitofWork.


Stale lock file prevents dehydrated from running

https://github.com/dehydrated-io/dehydrated/blob/5c1551e946456f534cf46b6ebabe4353bf0b0530/dehydrated#L539-L541
dehydrated sometimes doesn't start because of stale lock files. I haven't investigated further, but I assume it happens when a server is restarted while dehydrated is running. Can be reproduced with a SIGKILL.

Locking is really crufty and lockfiles are the perhaps the best option unfortunately: https://apenwarr.ca/log/20101213
I haven't run into this yet, but can you adjust your server's update/reboot/whatever cycles to be opposite dehydrated's? And/or could you add a boot script that deletes stale lock files?

but can you adjust your server's update/reboot/whatever cycles to be opposite dehydrated's

There are several hundred servers with domains in the four-digit range, so it takes some time for dehydrated to finish, and the cron job is distributed on the servers throughout the day, and there are no planned reboots (keyword ksplice), so, no, I can't adjust that.
The problem isn't that big, as I'm also monitoring certificate expiry and we get a notification 29 days in advance.
A reboot script would be a workaround I don't want to use. Currently I've deployed my mentioned fork/PR.

That's cool, I hope it works out for you.
I don't have that many servers under dehydrated yet, so maybe I'll have to keep my eye out for this as I expand.

If this is a problem you only ever have on reboots you might want to configure dehydrated to put the lockfile into a directory that's mounted in memory (e.g. /dev/shm or /run), that way it can't persist over a reboot. Alternatively you could try running dehydrated using systemd services and timers, that way systemd should be able to wait for dehydrated to finish or at least stop it in a way that would trigger the exit trap.
I'm leaving your pull-request #814 open for now. This is something I really really need to test on lots of platforms before I can merge or implement something similar to it. Having a simple lockfile is just one of the easiest solutions that I'm quite sure will work on older and embedded Linux systems, weird WSL things, BSD systems, etc.

It also happens in low memory situations:
 + Checking domain name(s) of existing cert... unchanged.
 + Checking expire date of existing cert...
 + Valid till Jul  6 14:00:42 2021 GMT (Less than 30 days). Renewing!
 + Signing domains...
 + Generating private key...
 + Generating signing request...
 + Requesting new certificate order from CA...
/opt/dehydrated/dehydrated: line 964: /usr/bin/tr: Cannot allocate memory
/opt/dehydrated/dehydrated: fork: Cannot allocate memory
/opt/dehydrated/dehydrated: fork: Cannot allocate memory
/opt/dehydrated/dehydrated: fork: Cannot allocate memory
/opt/dehydrated/dehydrated: fork: Cannot allocate memory
/opt/dehydrated/dehydrated -c -g  23.13s user 3.86s system 9% cpu 4:39.88 total
254 root@server ~ # /opt/dehydrated/dehydrated -c -g
# INFO: Using main config file /opt/dehydrated/config
ERROR: Lock file '/opt/dehydrated/lock' present, aborting.

Imho it'd be better to close my PR when it's not suitable and let this issue open?


fix(go_indexer): check whether embedded type is Named

This seems like a reasonable change, but I'm curious to know what motivated it? Was something being indexed incorrectly without this check?

Go 1.17 tickles this long-standing bug (Embedded is deprecated and may return nil) and causes the indexer to crash.

This seems like a reasonable change, but I'm curious to know what motivated it? Was something being indexed incorrectly without this check?

When indexing code like:
type SampleInterface = interface {
        ReadSizeProvider
}

type ReadSizeProvider = interface {
	RemainingBytes() (numBytes uint64)
}

It got crashed.
I met this problem recently, and I'm happy to see this issue has been fixed, thanks.


Incorrect SVG rendering

reactor.zip
Incorrect SVG rendering of the attached SVG document in TSkSvg:

This is the correct rendering of the same SVG document in Edge browser:

Hi @PeterPanino!
This is not a bug, this is a limitation of skia svg.
Does not support style element and style attribute because skia does not support css.
However this is easily workable, just configure your image editor to embed the style in the attributes. We explain how to export in Adobe Illustrator embedding style in attributes.
I exported your svg again from Adobe Illustrator without the style and the output is attached, working perfectly.
reactor_fixed.zip


haskell.haskell is missing from marketplace

[x] Extension name: haskell.haskell
[x] Extension GitHub or homepage: https://github.com/haskell/vscode-haskell

@cmoog this is a humble request for an update on this request. thanks!

@cmoog this is a humble request for an update on this request. thanks!

cc @oxy

cc @oxy


Fastfile Parser - Option validator

as discussed in another PR:
see this GIST: https://gist.github.com/hjanuschka/fa7241a2462d36cb35ded66021188604 (POC)
Goal
Anon. the output of fastlane env - that no sensitive data is in the copy&paste markdown.

Parse Fastfile -> done in POC
keep track of sensitive options -> done in POC

later on replace them with ##### -> done in POC

Optional
Do a Linter/Pre-Flight-Checker

validate options

check for missing, conflicting...

/cc @milch

I'm not a big fan of parsing the Fastfile like this, as this adds lots of complexity and is an easy thing that might introduce issues in the future.

@KrauseFx It is using the builtin ruby parser, so as long as the Fastfile can be evaled  and is valid ruby this should continue to work

as said before - we can close it - or even do it as a plugin (not the env part) - but a linter/validator should be possible even as a plugin.
@KrauseFx  is right that it is probably hard to handle on the long run (ruby versions, gems)
i am also not sure if parser and parser/current are already a dependency (rubocop uses them) - or they would be introduced as new ones, which is not good ;)

or even do it as a plugin

Not sure how much sense a plugin would make, I'd wager the users who forget to redact values from their Fastfile are the same ones who wouldn't install a plugin to do that for them first. A linter/validator would still make sense as a plugin, though 👍

i am also not sure if parser and parser/current are already a dependency (rubocop uses them) - or they would be introduced as new ones, which is not good ;)

Looking into ruby docs, it seems that the parser is included by default?

for env its not an option to do a plugin - and actually that is my main intend - linter is just a followup thing i think.
@parser - thats nice, so no problem from that point?
how do you think should we try it? make a PR  - so you have write acess too there?
or what is the workflow for that kind of thing.

@milch have a look at this branch: https://github.com/fastlane/fastlane/compare/master...hjanuschka:fastfile_parser
you can run it with:
bundle exec fastlane validate-fastfile fastlane/fastlane/Fastfile
result:

using a broken (unkown option xxx in crashlytics action) fastfile
lane :d do
        echo "asdads"
        crashlytics(xxx: "1234")
end

gives:

@hjanuschka Wow, that looks pretty great! I just tried it on a couple projects, and it worked on almost all of them. The only issue I've found was that it doesn't seem to set the workdir correctly before executing the Fastfile, so that it complains about missing project files in gym for example.

@milch ahhh you mean the verify block expects another cwd?
tbh. i think we have serious cwd problem et-all in fastlane (sometimes its ., sometimes ./fastlane)
can you share a fastfile - or the gym() params, i can test with?
should i do a PR - no matter if it will ever get merged, for easier code sharing (so you could commit too)

Consider the following dir structure:
testproj
├── RemoveShenzhenTestProject
│   ├── RemoveShenzhenTestProject
│   └── RemoveShenzhenTestProject.xcodeproj
├── fastlane
│   ├── Fastfile

And the lane from the Fastfile:
lane :remove_shenzhen_test do
  gym(
    project: "RemoveShenzhenTestProject/RemoveShenzhenTestProject.xcodeproj",
    scheme: "RemoveShenzhenTestProject",
    clean: true
  )
end

Then, from my local checkout of your branch (~/fastlane/), I'm running the following:
be fastlane validate-fastfile ../testproj/fastlane/Fastfile

Resulting in the errors here:
[12:03:05]: Error setting value 'RemoveShenzhenTestProject/RemoveShenzhenTestProject.xcodeproj' for option 'project'
[12:03:05]:  * 75:gym - Project file not found at path '~/fastlane/RemoveShenzhenTestProject/RemoveShenzhenTestProject.xcodeproj'

tbh. i think we have serious cwd problem et-all in fastlane (sometimes its ., sometimes ./fastlane)

True, I agree. In my opinion, it should always be one directory up from the fastlane directory, since that makes the most sense for almost all actions.

Re: CWD - we should open a new issue and discuss that there.

should i do a PR - no matter if it will ever get merged, for easier code sharing (so you could commit too)

Usually I'd say "go for it", but we have way too many open PRs right now. I'm working on it, though!

little update :)

@milch  about the CWD, you mean that i should detect if the path includes a "fastlane/" folder, if this is found chdir to the folder above?, if there is no folder, or no "fastlane/" in it stay at current cwd? - right?

another update:

detect lane names, and check if those are actions
fix CI
suppress $stderr,$stdout
use emoji's (@KrauseFX any idea on how to fix terminal table having problems with ⚠ emoji?
.counters returns counters(deprections, errors, infos)
.data  returns a hash with:

  {:lanes=>
  [:sensitive,
   :testflight,
   :powerlift,
   :tvos,
   :cmd_tool,
   :cmd_lib,
   :cmd_framework,
   :macapp,
   :touch_library,
   :touch_framework,
   :touch_app],
 :notices=>
  [{:state=>:error,
    :line=>5,
    :msg=>
     "Name of the lane `testflight` already taken by action `testflight`"},
   {:state=>:error,
    :line=>20,
    :msg=>"do not use this option 'use_legacy_build_api'"},
   {:state=>:deprecated,
    :line=>20,
    :msg=>
     "Use of deprecated option - 'provisioning_profile_path' - `Use target specific provisioning profiles instead`"},
   {:state=>:deprecated,
    :line=>24,
    :msg=>
     "Use of deprecated option - 'provisioning_profile_path' - `Use target specific provisioning profiles instead`"}],
:actions=>
  [{:action=>"crashlytics",
    :result=>
     {:args=>{:api_token=>"DEMO"},
      :configuration=> FastlaneCORE::Configuration}],

@hjanuschka This is so great, thanks for doing this!
@KrauseFx Any thoughts? I think we could even run this on the users' Fastfile by default if the run fails or if they use --capture-output/--verbose (etc.) to make it easier to spot problems immediately.

I love the idea and the output. The table is probably too wide, so it will look very broken on smaller terminals. Where can I check the code? 👍

here is the PR https://github.com/fastlane/fastlane/pull/7448
there is currently a problem with sh - since it got more options, but i ll have  a look at this.
@table it actually has a wrapper based on terminal width 👍  (taken from the responsive table PR )

PR has been closed, therefore no issue needed 😞

So sad ☹

So polite to the bot 👍

i try to be polite - i am just sitting arround with a 💔


Clarify the Promise.all situation in the "await is not enough" blog post

This section has caused some confusion, so I've written an explanation of what's happening.

I believe the reason that the checks are failing is because this is on a fork and so doesn't have the deployment credentials to fetch our podcasts from SimpleCast, so I'm going to go ahead and merge since all other checks are go.


FIX [mqtt-tcp] use emqx broker to aviod timeout.

Codecov Report
Patch coverage: 2.80% and project coverage change: -0.03 :warning:

Comparison is base (af7cfad) 54.74% compared to head (b8d5207) 54.72%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #540      +/-   ##
==========================================
- Coverage   54.74%   54.72%   -0.03%
==========================================
  Files         120      120
  Lines       36471    36567      +96
==========================================
+ Hits        19967    20010      +43
- Misses      16504    16557      +53

Impacted Files
Coverage Δ

src/mqtt/protocol/mqtt/mqtt_client.c
67.02% <ø> (-0.15%)
:arrow_down:

src/mqtt/transport/tls/mqtt_tls.c
0.65% <0.00%> (-0.01%)
:arrow_down:

src/sp/protocol/mqtt/nmq_mqtt.c
45.04% <ø> (ø)

src/supplemental/mqtt/mqtt_codec.c
54.72% <ø> (ø)

src/supplemental/nanolib/acl_conf.c
0.00% <0.00%> (ø)

src/supplemental/nanolib/conf.c
8.19% <0.00%> (-0.65%)
:arrow_down:

src/supplemental/nanolib/conf_ver2.c
0.00% <0.00%> (ø)

src/mqtt/transport/tcp/mqtt_tcp.c
55.87% <100.00%> (+1.73%)
:arrow_up:

... and 13 files with indirect coverage changes
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


[$500] Workspace - In #announceroom, split bill reports display as loading for workspace members.

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Login with user A's account.
Open workspace
Invite user B to the workspace.
Open the #announceroom chat.
Spilt bill with workspace members
Login with user B's account.
Open the #announceroom chat in B's workspace.
Notice that the split bill reports are stuck on the loading screen for workspace members.

Expected Result:
after splitting bills, the split bill report should not be displayed as loading for workspace members.
Actual Result:
after splitting the bill, the split bill report is displayed as loading for workspace members.
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android / native
[ ] Android / Chrome
[ ] iOS / native
[ ] iOS / Safari
[x] MacOS / Chrome / Safari
[ ] MacOS / Desktop

Version Number: v1.3.67-1
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://github.com/Expensify/App/assets/115492554/95fb7e7c-18e2-4046-8b3d-9f01a36bc3d8
https://github.com/Expensify/App/assets/115492554/d21c0e7c-cd3d-4310-b845-5a2e016b0c4f
Expensify/Expensify Issue URL:
Issue reported by: @Ad-eeb
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1693924728887059
View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~01100fea2e9b78b3b8
Upwork Job ID:<PHONE_NUMBER>739500032
Last Price Increase: 2023-09-25
Automatic offers:

situchan | Contributor | 26874200
Ad-eeb | Reporter | 26874202

Backend is not sending transaction data.
Here inside originalMessage there is a IOUTransactionID but this data is not sent from pusher.

@abdulrahuman5196 should this be internal?

@abdulrahuman5196 bump on the above

I looked into this issue and it seems like there needs to be changes in BE as well.
Here is an explanation:
When Person1 create split bill for 2 persons(Person1 and Person2), 3 transaction ids are there in total:

Split transaction id representing the overall split
https://github.com/Expensify/App/blob/5ec6105d3b849565c48f1187c78c051fda5e02c6/src/libs/actions/IOU.js#L1013-L1018
Transaction id for person1 - As person1 only created the split, we dont create the transaction id in the client side. BE returns the transaction id for person1 in response.
https://github.com/Expensify/App/blob/5ec6105d3b849565c48f1187c78c051fda5e02c6/src/libs/actions/IOU.js#L880
Transaction id for person2 - For all other persons involved in split, we add all the data including transaction id:
https://github.com/Expensify/App/blob/5ec6105d3b849565c48f1187c78c051fda5e02c6/src/libs/actions/IOU.js#L994-L1007

When we send the API.write request, as response BE sends a new transaction id for person1 but incorrectly marks the split transaction id as the original transaction id of person1. Split transaction id is lost in BE because of this corruption. Here is snippet of example request payload and response which shows this problem:
REQUEST:

reportID:<PHONE_NUMBER>704124
amount: 130000
splits: [{"email":"545saloni+3@gmail.com","accountID":15694778,"amount":65000},{"email":"545saloni+4@gmail.com","accountID":15705003,"amount":65000,"iouReportID":"6189850050239895","chatReportID":"7536945066043077","transactionID":"1898044165078485633","reportActionID":"4880171455368989281","createdChatReportActionID":"7280778505637454476","createdIOUReportActionID":"3788054532130349476","reportPreviewReportActionID":"6883759768728262211"}]
currency: GBP
transactionID:<PHONE_NUMBER>516133750
reportActionID:<PHONE_NUMBER>821823958
policyID: 57A98B2EBCCAEEAD
apiRequestType: write
email<EMAIL_ADDRESS>
and:
RESPONSE:

{
    "jsonCode": 200,
    "requestID": "809bd0a7fc3e886e-LHR",
    "onyxData": [
        {
            "onyxMethod": "merge",
            "key": "transactions_1898044165078485633",
            "value": {
                "amount": 65000,
                "category": "",
                "comment": {
                    "comment": "",
                    "originalTransactionID": "2381798152516133750",
                    "source": "split"
                },
                "created": "2023-09-20 17:33:43",
                "currency": "GBP",
                "filename": "",
                "merchant": "Request",
                "modifiedAmount": 0,
                "modifiedCreated": "",
                "modifiedCurrency": "",
                "modifiedMerchant": "",
                "receipt": [],
                "reportID": "6189850050239895",
                "tag": "",
                "transactionID": "1898044165078485633"
            }
        }
    ]
}

Other clients never gets the split transaction id. Even the same person1 when logs out and logs in, they will no longer see split transaction id. Announce rooms shows the overall split transaction. So we see the issue in announce room.

added the engineering label by mistake - at ease @dangrous

bumped in Slack

It seems no C+ assigned here. I can help this move forward.

just assigned you @situchan

@situchan I think we only have the one proposal above to review

I don't see any former proposal yet.
@salonikumawat28 can you please follow proposal template so you should re-state title, explain the correct root cause and suggest solution.
I don't think this happens only on #announce room but all group chats where split bill is applicable.

@situchan I didn't give formal proposal because I think the changes needs to be in backend. I explained the reasoning behind it in my comment above. I have updated my comment above to make it more clear.
Either the changes should be in backend and if so, the issue should be internal. Otherwise, its possible that we are not creating the API request as backend expects. For the latter case, can you point me where to find the API schema of SplitBill so that I can make sure we are making correct API request.

update above

@salonikumawat28 are you still able to reproduce this?

@salonikumawat28 are you still able to reproduce this?

bump ^

@situchan Sorry for late response. I can still reproduce this. I tried it on staging.new.expensify.com

Still is reproducible, but @situchan re-reading this how big of a problem is this? There's been so little movement here I think we should close and pay out some percentage for reviewing proposals

I think this bug cannot be be simply ignored.
@youssef-lr should backend send transaction data in pusher?

@youssef-lr bump on the above!

@adelekennedy sorry I missed your ping.

I think this bug cannot be be simply ignored.
@youssef-lr should backend send transaction data in pusher?

Correct @situchan, this is a duplicate of https://github.com/Expensify/App/issues/27200 which I have created a backend PR for. So I'll be closing this one.


Small documentation update for 0_9_15.rst

Added the command needed to check the Django version from the CLI.

I'm not sure I agree with this addition. There are other locked dependency versions (e.g. django-tagging) and we have the mechanisms in place (e.g. requirements.txt) to help enforce these. I appreciate the contribution but I'm going to politely decline this one for now.
P.S. FWIW I think a better approach would be to use something like pip freeze.


DLIB SQL return Auto increment

Hi Its my once again.
Does executing a insert statement return the created row?
(so does move_next() work after insert or update statement?)
And if so how is it possible to access the created row.
If you cant do this its problematic. Image following situation:
TableA : id (primary index with auto increment), name(text)
Query:
INSERT INTO TableA (name) VALUES("test");
Now we created a new entry. But if you want to keep track of this entry you need the id.
So i'm asking myself if dlib supports this or if there is no way of doing that?

Dlib's API is just a type safe and RAII interface to sqlite's C API.  So you should refer to the sqlite documentation.  As I recall, sqlite has special query you can use to find the rowid of the most recently created row.  Conveniently, dlib provides a function, last_insert_rowid() to do this query.  Although, as I was saying, you should in general refer to the sqlite documentation to find out the capabilities of a sqlite database.


Fix Orchard implementation, refactor, and add more test vectors

Motivation

We want our Orchard code in zebra-chain to conform to the independent Python implementation in zcash-hackworks, for confidence in the correctness (or at least agreement in implementation) of our implementation.
Solution

Pull in generated test vectors for:

empty note commitment  tree roots
non-empty note commitment trees
key components
sinsemilla

Resolves https://github.com/ZcashFoundation/zebra/issues/2079
Review

@conradoplg @upbqdn @jvff @teor2345
Reviewer Checklist

[ ] Code implements Specs and Designs
[ ] Tests for Expected Behaviour

Follow Up Work
Wallet/transaction/proof-creation test vectors are out of scope until we build Zebra Client / wallet functionality.

It looks like this PR contains bug fixes or refactors, as well as tests.
Can you rename this PR so the changelog is accurate?

I renamed the PR.


[WIP] Use hashtable for resource manager to achieve strong consistency

close #1195

This pr is under regression testing by @tiannan-sr

Better to provide more explanation for this change.

We'd better get to the root of the problem


Add k-d tree index

It would be interesting to test/benchmark the ball tree + haversine approach versus the kd-tree + conversion lat/lon spherical -> xyz cartersian.
The second approach is also used by libpysal, see here.
Since we already rely on scikit-learn for the ball tree, would it make sense to reuse scikit-learn's KDTree instead of Scipy's cKDTree?

would it make sense to reuse scikit-learn's KDTree instead of Scipy's cKDTree?

Yes, definitely!

It would be interesting to test/benchmark the ball tree + haversine approach versus the kd-tree + conversion lat/lon spherical -> xyz cartersian.

I'm not sure I understand why we should not also do the ball tree benchmark with lat/lon to spherical and the kd-tree with haversine. I'd go for a matrix like

would it make sense to reuse scikit-learn's KDTree instead of Scipy's cKDTree?

Yes, definitely!

It would be interesting to test/benchmark the ball tree + haversine approach versus the kd-tree + conversion lat/lon spherical -> xyz cartersian.

I'm not sure I understand why we should not also do the ball tree benchmark with lat/lon to spherical and the kd-tree with haversine. I'd go for a matrix like
tree:
  - ball tree
  - kd-tree
transform_metric:
  - (deg2rad, haversine)
  - (to sphere, euclidian)

(Sorry, hit send to early.)

I don't think we can use k-d tree with lat/lon haversine: https://news.ycombinator.com/item?id=9281998
The rest of the matrix is valid. Ball tree works with any metric that respects the triangle inequality.

Actually, there is already detailed comparison + benchmarks in Jake's blog post. But it'd still be interesting to see it applied to NEMO/FESOM spatial data patterns and the metrics/conversions used here.

Mmm now I'm confused about the validity of kd-tree + haversine. I'm wondering why haversine is not in the list of valid metrics for scikit-learn's KDTree.
We should also consider the implementation in pykdtree.


[DiscoveryPlus] videos that require a subscription not working

Checklist

[X] I'm reporting a broken site
[X] I've verified that I'm running yt-dlp version 2022.01.21. (update instructions)
[X] I've checked that all provided URLs are alive and playable in a browser
[X] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[X] I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue
[X] I've read about sharing account credentials and I'm willing to share it if required

Region
United Kingdom
Description
When trying to download shows on DiscoveryPlus i'm getting the following error message
[DiscoveryPlus] how-its-made/paving-asphaltmarshmallow-cookiesloudspeakers: This video is only available for registered users. You may want to use --cookies.
I can confirm that i am using cookies and have tried the solutions in the similar issue #2233 with no success. My account is registered and i've tried both the --cookies flag and the --cookies from browser flag to get cookies and got the same result with both
Verbose log
[debug] Command-line config: ['--cookies-from-browser', 'chrome', 'https://www.discoveryplus.com/gb/video/how-its-made/paving-asphaltmarshmallow-cookiesloudspeakers', '-vU']
[Cookies] Extracting cookies from chrome
[debug] Extracting cookies from: "C:\Users\nicho\AppData\Local\Google\Chrome\User Data\Default\Network\Cookies"
[Cookies] Extracted 3216 cookies from chrome
[debug] cookie version breakdown: {'v10': 3216, 'other': 0, 'unencrypted': 0}
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, err utf-8, pref cp1252
[debug] yt-dlp version 2022.01.21 [f20d607] (win_exe)
[debug] Python version 3.8.10 (CPython 64bit) - Windows-10-10.0.19043-SP0
[debug] exe versions: ffmpeg 4.1.3, ffprobe 4.1.3
[debug] Optional libraries: Cryptodome, mutagen, sqlite, websockets
[debug] Proxy map: {}
Latest version: 2022.01.21, Current version: 2022.01.21
yt-dlp is up to date (2022.01.21)
[debug] [DiscoveryPlus] Extracting URL: https://www.discoveryplus.com/gb/video/how-its-made/paving-asphaltmarshmallow-cookiesloudspeakers
[debug] Using fake IP <IP_ADDRESS> (US) as X-Forwarded-For
[DiscoveryPlus] how-its-made/paving-asphaltmarshmallow-cookiesloudspeakers: Downloading JSON metadata
ERROR: [DiscoveryPlus] how-its-made/paving-asphaltmarshmallow-cookiesloudspeakers: This video is only available for registered users. You may want to use --cookies.
  File "yt_dlp\extractor\common.py", line 612, in extract
  File "yt_dlp\extractor\dplay.py", line 369, in _real_extract
  File "yt_dlp\extractor\dplay.py", line 92, in _get_disco_api_info
  File "yt_dlp\extractor\dplay.py", line 50, in _process_errors

Duplicate of https://github.com/yt-dlp/yt-dlp/issues/2138


Use copyFrom instead of deprecated copy

Description of change

copy is deprecated, but was still used in AnimatedSprite
Pre-Merge Checklist

[ ] Tests and/or benchmarks are included
[ ] Documentation is changed or added
[ ] Lint process passed (npm run lint)
[ ] Tests passed (npm run test)

Codecov Report

Merging #6053 into dev will not change coverage.
The diff coverage is 0%.

@@           Coverage Diff           @@
##              dev    #6053   +/-   ##
=======================================
  Coverage   71.06%   71.06%
=======================================
  Files         208      208
  Lines       10564    10564
=======================================
  Hits         7507     7507
  Misses       3057     3057

Impacted Files
Coverage Δ

packages/sprite-animated/src/AnimatedSprite.js
52.58% <0%> (ø)
: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 9b15446...7cb0d0b. Read the comment docs.


Updates to BookmarkSerializer and API Documentation

This pull request includes three changes to the project.
🐛 Firstly, a bug was fixed in the BookmarkSerializer by adding missing fields such as favicon_file and web_archive_snapshot_url.
✨  Secondly, new fields is_mine and owner were added to the BookmarkSerializer to indicate whether the bookmark belongs to the authenticated user, and the name and id of the owning user is included.
📝 Finally, the shared bookmarks endpoint is now documented in the API documentation. These changes aim to improve the functionality and usability of the project.

Closing as stale


Adds support for JSONB datatype

Minor addition of JSONB (binary json) recognition as a distinct type from JSON. Supported by a number of mainstream databases, such as PostgreSQL^1 and SQLite (for which JSONB is currently in pre-release ^2, landing soon in 3.45.0).

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.005%) to 87.817%

Totals

Change from base Build<PHONE_NUMBER>:
0.005%

Covered Lines:
18749

Relevant Lines:
21350

💛  - Coveralls


Nested layout are re-initilized even if i navigate to a deeper router if i don't come from root route

Describe the bug
i have a server with a possible route of /server/[serverid]/library/[libraryid]
under /server/[serverid] i have a nested layout (initializing a store that depends on the serverid)
if i navigate from / to /server/[serverid]/ then to /server/[serverid/library/[libraryid]
my store in nested layout is only initialized once
now if i start navigaton from /server/[serverid]/
my nested layout is initialized a second time when i navigate to /server/[serverid/library/[libraryid]
Reproduction
checkout repo:
git@github.com:neckaros/svelte-nestedlayouts-issue.git
( https://github.com/neckaros/svelte-nestedlayouts-issue )
npm install
npm run dev
First what works:
go to: http://localhost:3000/
click go to server
then click go to library
==> in the console you only see "INIT LAYOUT SERVER toto" once
now start your navigation at 'http://localhost:3000/server/toto' (refresh once at this url to make sure you are starting here
click go to library
you can now see in the console that 'INIT LAYOUT SERVER toto' is printed twice
Logs
No response
System Info
Chrome / windows / sveletekit@next

Severity
blocking all usage of SvelteKit
Additional Information
blocking my usage of sveltekit because it reinitialize store on each page navigation

Probably related to SSR, where the first page you load is being server-side rendered. I followed your instructions and can't reproduce the error you're describing where you see "INIT LAYOUT SERVER toto" twice in the console logs. But I do see it once in the server logs and once in the browser console logs. Generally you don't want to run store initialization code in the server, as every client would then see the same store. So you might want to wrap your store initialization in if (browser) { ... } (see https://kit.svelte.dev/docs#modules-$app-env for details) to make sure it won't run during SSR.

@rmunn thanks for taking the time of testing it out.
You are right about the SSR part. Weird that you cannot reproduce. I will close the issue an reopen if i'am able to reproduce on another PC.


Fix missing argument on Window.set_size in docs

Thanks for the typo fix :point_right: :point_right:


Add required commands to allowlist_externals in tox.ini

Fixes the :sdks:python:test-suites:direct:py:hdfsIntegrationTest failing due to tox upgrade

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

[ ] Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
[ ] 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.

Run Python 3.10 PostCommit

Run Python 3.9 PostCommit

Run Python 3.10 PostCommit

Run Python 3.11 PostCommit

Run Python 3.10 PostCommit

Run Python 3.8 PostCommit

R: @Abacn @tvalentyn
tests with these changes are passing. Look at 3.10 and 3.8 PostCommits

Thanks, LGTM

Run Python PreCommit


Update operator CRDs

Description

Adds in some new fields:

spec.calicoNetwork.bgp
spec.cni.type

Related issues/PRs

Todos

[ ] Tests
[ ] Documentation
[ ] Release note

Release Note

None required

Deploy preview for calico ready!
Built with commit 5d2eea2db218fa1394fed8e4dd8fbdba1ceda5ad
https://deploy-preview-3844--calico.netlify.app


generate dynamic_slice rather than slice for simple indexing/slicing

Followup to #11867, fixes #12198

Want to add a benchmark to api_benchmarks.py so we don't regress this performance issue in the future?

Hmm, since this is an XLA cacheing thing, I don't think our benchmark framework as currently written can catch it, because after the first execution subsequent executions will be fast.

We might be able to follow the pattern in these benchmarks to foil caching.

I'm not following  – does state.__iter__ do some sort of XLA-level cache clear?

I don't see any easy way to benchmark this in our benchmark framework, because (if my understanding is correct) it would require clearing XLA's internal cache on each iteration, and I don't know how to do that short of restarting the runtime, which cannot easily be done here. I'm going to proceed with landing this change without the benchmark.

We're blocked by two jax.experimental.jet issues:

https://github.com/google/jax/issues/12263
missing jet rule for dynamic_update_slice_p

Benchmark runs, before:
name                            cpu/op
bench_repeated_static_indexing  11.1s ±37%
bench_repeated_static_slicing   9.68s ±39%

name                            time/op
bench_repeated_static_indexing  11.2s ±38%
bench_repeated_static_slicing   9.72s ±40%

name                            allocs/op
bench_repeated_static_indexing   0.00 ±NaN%
bench_repeated_static_slicing    0.00 ±NaN%

name                            peak-mem(Bytes)/op
bench_repeated_static_indexing   0.00 ±NaN%
bench_repeated_static_slicing    0.00 ±NaN%

After:
name                            cpu/op
bench_repeated_static_indexing  206ms ± 3%
bench_repeated_static_slicing   152ms ± 2%

name                            time/op
bench_repeated_static_indexing  208ms ± 3%
bench_repeated_static_slicing   153ms ± 3%

name                            allocs/op
bench_repeated_static_indexing   0.00 ±NaN%
bench_repeated_static_slicing    0.00 ±NaN%

name                            peak-mem(Bytes)/op
bench_repeated_static_indexing   0.00 ±NaN%
bench_repeated_static_slicing    0.00 ±NaN%


Get rid of annoying harmless bpf tunnel errors

During bootstrap, we print these harmless but annoying errors which should be avoided:
time="2017-10-31T01:45:14Z" level=error msg="bpf: Unable to delete <IP_ADDRESS>/16 in tunnel endpoint map: Unable to delete element: invalid argument"

@tgraf is this just something that should sit at debug level, or are we concerned about why we get in this situation in the first place?

@tgraf is this just something that should sit at debug level, or are we concerned about why we get in this situation in the first place?

It is supposed to be a legitimate error so we may be trying to update the map too early. We should avoid the error in the first place.

This can be turned into a debug message to relieve this instantly.

I wonder if the following FIXME has any impact on this:
https://github.com/cilium/cilium/blob/aee4d25b8c9acb15e6a359459ba23cb278137c91/pkg/node/manager.go#L270-L280


Confusing symfony-bin-dir parameter

Recently we wanted to move to new directory structure in our app and I found symfony-bin-dir little confusing.
In our apps we almost always have custom binaries, stored in bin (and handled with CVS) so in order to not mix it with vendor's binaries and for simpler ignoring these in CVS, we configure Composer to install those files to bin/vendor directory (easily excluded by bin/vendor/*).
We wanted to move console binary into bin, but when symfony-bin-dir is configured as bin, also security-checker and symfony_requirements files are dumped there. Since we don't want external binaries next to our binaries, we tried to configure symfony-bin-dir as bin/vendor but then Composer's postInstall and postUpdate hooks does not work:
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache
Could not open input file: bin/vendor/console
Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the post-install-cmd event terminated with an exception

We don't want to move console binary to bin/vendor because of CLI usage and of course it has to be versioned in CVS.
For now, we ignore bin/security-checker and bin/symfony_requirements in CVS, but what if Symfony will install another binaries? This is not good if we need to remember to not commit those files, but add them to ignore file.
Or maybe this is wrong approach and those files should be commited?

Symfony 3.0 doesn't use "config": { "bin-dir": "bin"} anymore. So vendor bins and project bins are not mixed anymore. bin/symfony_requirements should currently be added to the CVS because the idea was to be able to run it without vendors being installed. I tried to improve this with #97. But for now it's not a big deal.
So this issue can be closed.

Ok, thanks for the answer. Just to be clear: Symfony 3.0 uses symfony-bin-dir for determining console binary and for installing/using security-checker and symfony_requirements, so is distinguished from bin-dir used by Composer?

symfony-bin-dir is only used for console and symfony_requirements (the files that are also in https://github.com/symfony/symfony-standard/tree/master/bin)

security-checker is just a normal composer bin, so it will depend on your composer bin-dir config (but be aware that changing this setting will leave the existing bins in place, until you delete them manually)

@stof Ah right. I know about manually deleting/moving - I think I've overlooked security-checker in some way so it was my mistake. Now it seems clear. Thanks!


installation error without installing zlib1g-dev

Tried "gem install gitrob" on a kali 2.0 machine.
Got the error: "zlib is missing;necessary for building libxml2"
Did "apt-get install zlib1g-dev , installation worked fine after. FYI.

Thank you! Fixed the error for me as well.


Error processing 'plugin_name' vundle

I put these lines in my .vimrc file
Bundle 'Shougo/unite.vim'
Bundle 'Shougo/vimproc.vim'
Bundle 'm2mdas/phpcomplete-extended'
when I run the installation with :BundleInstall, I get errors Error processing 'plugin_name' for all three bundle. And I don't understand. Help please !!!

@Alioukahere maybe your .vim folder is not writable, check this issue https://github.com/VundleVim/Vundle.vim/issues/273


[Bug] crashes on start TypeError: devices.forEach is not a function

*Describe the bug
did a fresh install of the plugin,configureed it, restart homebridge and gets an error in the log which crashes homebridge as a whole.
To Reproduce
Steps to reproduce the behavior:

Go to ' plugin->install '
fil in settings
rstart home bridge
See error

Expected behavior
expect the plugin to work or at least give some pointers one what went wrong.
MQTT messages
If possible, please provide the following messages:

The device identification from zigbee2mqtt/bridge/config/devices
Status update from zigbee2mqtt/[FRIENDLY_NAME]
Messages published by this plugin that might be to your issue (can also be seen in the homebridge logs)

Versions used
Please provide the version of the following pieces of software:

This plugin 0.0.6
Homebridge 1.2.3
Zigbee2mqtt
Homebridge Config UI X (if applicable)

  {
            "mqtt": {
                "base_topic": "zigbee2mqtt",
                "server": "mqtt://<IP_ADDRESS>:1883",
                "user": "user",
                "password": "password",
                "client_id": "",
                "reject_unauthorized": false,
                "keepalive": 60,
                "version": 3
            },
            "platform": "zigbee2mqtt"
        }

`9/30/2020, 10:06:02 AM] Homebridge v1.2.3 is running on port 52624.
[9/30/2020, 10:06:02 AM] [zigbee2mqtt] Connected to MQTT server
[9/30/2020, 10:06:06 AM] TypeError: devices.forEach is not a function
at Zigbee2mqttPlatform.handleReceivedDevices (/homebridge/node_modules/homebridge-z2m/src/platform.ts:125:13)

at Zigbee2mqttPlatform.onMessage (/homebridge/node_modules/homebridge-z2m/src/platform.ts:103:12)

at MqttClient.emit (events.js:315:20)

at MqttClient._handlePublish (/homebridge/node_modules/homebridge-z2m/node_modules/mqtt/lib/client.js:1271:12)

at MqttClient._handlePacket (/homebridge/node_modules/homebridge-z2m/node_modules/mqtt/lib/client.js:410:12)

at work (/homebridge/node_modules/homebridge-z2m/node_modules/mqtt/lib/client.js:321:12)

at processTicksAndRejections (internal/process/task_queues.js:79:11)`

fixred this. by manually changing mqtt protocol to 3 as mosquitto supports 3.1, the default 4 is not changeable through gui.

I wasn't aware that zigbee2mqtt also supports 3 (I based my configuration of of theirs).
I'll update the range of that setting, and see if I can add some log message (something like "No devices found or invalid message received. Maybe check the MQTT version?")

I'll probably make a release this week which will include the changes I've suggested above.

The next release will include additional logging and a try/catch to prevent the crash.
I've also extended the range of the MQTT version setting in the config UI.


remove copyright from xml

Related Issue:  open-cluster-management/backlog/issues/11890
Description of changes

Removed comment from Red Hat favicon file
Updated deps


Requeue the reconcile request on async update error

Description of your changes

Fixes #176
Fixes #180
This PR employs the new DesiredStatusChanged predicate predicate from the crossplane-runtime as an event filter to prevent too-frequent reconciles on error conditions or on updates to the external create pending/failed annotations. It also allows the async callback functions to requeue a reconcile request with an exponential back-off, when the async operation fails.
I have:

[x] Read and followed Crossplane's contribution process.
[x] Run make reviewable to ensure this PR is ready for review.
[ ] Added backport release-x.y labels to auto-backport this PR if necessary.

How has this code been tested

Testing the PR with https://github.com/upbound/provider-aws/pull/789.
We have also done some performance tests and those results can be found here.

Done a set of measurements with this PR. While this PR mainly decreases the resource utilization in case of especially when the external connector (or client) fails fast in the Connect call by properly doing exponential back-off, I'm posting the measurements with index.docker.io/ulucinar/provider-aws:v0.38.0-rc.0.18.gca9398d9 below for reference.
------------------------------------------------------------
INFO[0040] Experiment Duration: 40.048828 seconds
INFO[0100] Average Time to Readiness of Repository: 12.800000 seconds
INFO[0100] Peak Time to Readiness of Repository: 16.000000 seconds
INFO[0100] Pod: provider-aws-8d35452277a1-5c48fd696d-wklhf
INFO[0100] Average Memory: 661039894.811881 Bytes
INFO[0100] Peak Memory:<PHONE_NUMBER>.000000 Bytes
INFO[0100] Pod: provider-aws-8d35452277a1-5c48fd696d-wklhf
INFO[0100] Average CPU: 12.935712 Rate
INFO[0100] Peak CPU: 16.035185 Rate
------------------------------------------------------------
INFO[0039] Experiment Duration: 39.268071 seconds
INFO[0099] Average Time to Readiness of Repository: 13.400000 seconds
INFO[0099] Peak Time to Readiness of Repository: 16.000000 seconds
INFO[0099] Pod: provider-aws-8d35452277a1-5c48fd696d-jkc4g
INFO[0099] Average Memory: 402984069.565217 Bytes
INFO[0099] Peak Memory: 545832960.000000 Bytes
INFO[0099] Pod: provider-aws-8d35452277a1-5c48fd696d-jkc4g
INFO[0099] Average CPU: 16.826778 Rate
INFO[0099] Peak CPU: 19.651389 Rate
------------------------------------------------------------
INFO[0040] Experiment Duration: 40.004987 seconds
INFO[0100] Average Time to Readiness of Repository: 12.600000 seconds
INFO[0100] Peak Time to Readiness of Repository: 16.000000 seconds
INFO[0100] Pod: provider-aws-8d35452277a1-5c48fd696d-9wkpm
INFO[0100] Average Memory: 536236977.230769 Bytes
INFO[0100] Peak Memory: 793706496.000000 Bytes
INFO[0100] Pod: provider-aws-8d35452277a1-5c48fd696d-9wkpm
INFO[0100] Average CPU: 17.463247 Rate
INFO[0100] Peak CPU: 20.957870 Rate

Thanks, @ulucinar. These are my comments. According to the results in the description, deletion times seem to be getting longer. How would you like to handle this?

Did some refactoring and repeated the tests here. I think the experiments with 5 MRs have high variance but still the total experiment times are around the expected values.

Some performance test results. There are improvements with this PR.
v0.37.0 AWS Monolithic Test Results
(1) INFO[0683] Results - v0.37.0 - AWS - 100 ECR Repository
INFO[0683] Experiment Duration: 683.665586 seconds
INFO[0744] Average Time to Readiness of Repository: 158.760000 seconds
INFO[0744] Peak Time to Readiness of Repository: 449.000000 seconds
INFO[0744] Average Memory Working Set:<PHONE_NUMBER>.011050 Bytes
INFO[0744] Peak Memory Working Set:<PHONE_NUMBER>.000000 Bytes
INFO[0744] Average CPU Utilisation: 74.995274 Rate
INFO[0744] Peak CPU Utilisation: 96.572685 Rate
(2) INFO[0776] Results - v0.37.0 - AWS - 100 ECR Repository
INFO[0776] Experiment Duration: 776.977605 seconds
INFO[0837] Average Time to Readiness of Repository: 171.840000 seconds
INFO[0837] Peak Time to Readiness of Repository: 512.000000 seconds
INFO[0837] Average Memory Working Set:<PHONE_NUMBER>.894988 Bytes
INFO[0837] Peak Memory Working Set:<PHONE_NUMBER>.000000 Bytes
INFO[0837] Average CPU Utilisation: 77.289236 Rate
INFO[0837] Peak CPU Utilisation: 97.487037 Rate
(3) INFO[0783] Results - v0.37.0 - AWS - 100 ECR Repository
INFO[0783] Experiment Duration: 783.135806 seconds
INFO[0844] Average Time to Readiness of Repository: 170.790000 seconds
INFO[0844] Peak Time to Readiness of Repository: 514.000000 seconds
INFO[0844] Average Memory Working Set:<PHONE_NUMBER>.086643 Bytes
INFO[0844] Peak Memory Working Set:<PHONE_NUMBER>.000000 Bytes
INFO[0844] Average CPU Utilisation: 87.594181 Rate
INFO[0844] Peak CPU Utilisation: 97.258333 Rate
AWS Monolithic Test Results from this branch
(1) INFO[0351] Results - index.docker.io/ulucinar/provider-aws:v0.38.0-rc.0.43.g24291c953 - AWS - 100 ECR Repository
INFO[0351] Experiment Duration: 351.023854 seconds
INFO[0411] Average Time to Readiness of Repository: 118.950000 seconds
INFO[0411] Peak Time to Readiness of Repository: 158.000000 seconds
INFO[0411] Average Memory Working Set:<PHONE_NUMBER>.766990 Bytes
INFO[0411] Peak Memory Working Set:<PHONE_NUMBER>.000000 Bytes
INFO[0411] Average CPU Utilisation: 58.053456 Rate
INFO[0411] Peak CPU Utilisation: 95.928241 Rate
(2) INFO[0361] Results - index.docker.io/ulucinar/provider-aws:v0.38.0-rc.0.43.g24291c953 - AWS - 100 ECR Repository
INFO[0361] Experiment Duration: 361.475772 seconds
INFO[0422] Average Time to Readiness of Repository: 124.750000 seconds
INFO[0422] Peak Time to Readiness of Repository: 164.000000 seconds
INFO[0422] Average Memory Working Set:<PHONE_NUMBER>.052133 Bytes
INFO[0422] Peak Memory Working Set:<PHONE_NUMBER>.000000 Bytes
INFO[0422] Average CPU Utilisation: 58.469990 Rate
INFO[0422] Peak CPU Utilisation: 94.883796 Rate
(3) INFO[0370] Results - index.docker.io/ulucinar/provider-aws:v0.38.0-rc.0.43.g24291c953 - AWS - 100 ECR Repository
INFO[0370] Experiment Duration: 370.100280 seconds
INFO[0430] Average Time to Readiness of Repository: 125.030000 seconds
INFO[0430] Peak Time to Readiness of Repository: 171.000000 seconds
INFO[0430] Average Memory Working Set:<PHONE_NUMBER>.222738 Bytes
INFO[0430] Peak Memory Working Set:<PHONE_NUMBER>.000000 Bytes
INFO[0430] Average CPU Utilisation: 58.346910 Rate
INFO[0430] Peak CPU Utilisation: 91.258796 Rate


MI Air Condition support

Similar to
https://github.com/LASER-Yi/homebridge-mi-acpartner/blob/master/doc/README_EN.md#

Thanks for opening an issue! Looks like it should be quite possible to implement support for this. It's not a device that I have access to, what specific functions are important to make it work for you?


print scheduler error and add max-retry

Issue:
A customer has encountered scheduler return nil error and restarts after a period of time.
Solution:
print scheduler error and add max-retry

From China Life:
https://github.com/rancher/rancher/issues/24317


Document configuration management contract for child device agents

Write a user-facing document on how to write a child device agent to work with c8y-configuration-plugin explaining the following contracts:

Child device bootstrap contract
How to handle config_snapshot requests?
How to handle config_update request?
How to use the file-transfer repository for config file exchanges?

Our child device agent sample written in Python can be linked for reference.

Documentation available at https://thin-edge.github.io/thin-edge.io/html/howto-guides/child_device_config_management_agent.html

This document can be created according the new structure implemented by Hans. I will send to Albin my proposal document


[UI] Blue theme, text not clear.

When we change to Blue theme, the main text is not clear and visible(feeble), may be a bolder text will do I guess.

Do we have a blue theme? 🤣

May i help?

Need any changes

We can change the text to be a bit more bolder.

Done!

Seemed to be solved. Good job :)


[Feature] Allow jsonschema 4 as dependency

Is this your first time submitting a feature request?

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

Describe the feature
I wanted to install dbt-core together with Airflow 2.6.3, using their constraints file. However the pinned usage of jsonschema 3 in this project prevented me from this, as the constraints require version 4:
The conflict is caused by:
    apache-airflow[amazon,cncf-kubernetes,statsd] 2.6.3 depends on jsonschema>=4.0.0
    flask-appbuilder 4.3.1 depends on jsonschema<5 and >=3
    apache-airflow 2.6.3 depends on jsonschema>=4.0.0
    connexion[flask] 2.14.2 depends on jsonschema<5 and >=2.5.1
    dbt-semantic-interfaces 0.2.0 depends on jsonschema~=3.0
    The user requested (constraint) jsonschema==4.18.0

jsonschema 4 has been out for ~2 years and this project is quite new, so I don't know why it's relying on old software.
Describe alternatives you've considered
No response
Who will this benefit?
No response
Are you interested in contributing this feature?
yes
Anything else?
No response

Hey @der-eismann! Thanks for flagging this! We're using jsonschema 3 because dbt-core depends on dbt-semantic-interfaces, and on hologram which depends on jsonschema~=3.0. This rather messy dependency chain means we had to use jsonschema~=3.0 for dbt-semantic-interfaces.
I chatted with @QMalcolm about what it would take to upgrade. We're not sure how much of lift this will be, because we don't yet know what will break when we upgrade. We'll do some investigation on our side and get back to you.

That sounds great, thank you very much!

So I tried upgrading to jsonschema 4 locally for this project to see what would break, and it was unfortunately quite a few things. More details in the github actions of #136. It looks like we'll have to do more than just allow for jsonschema 4, but we'll have to migrate to jsonschema 4. I.e. jsonschema~=4.0 instead of jsonschema>=3.0,<5.0

What will break in dbt-core >= 1.6.0 if we do not include this dependency? In nixpkgs, we only package the latest version of jsonschema, and, because we do not use a constraint solver, we don't package earlier versions. I'm exploring if updating is possible (perhaps with some minor degradation), or if we should hold off until this is addressed.

Ran against this issue where I was not able to run dbt-core >= 1.6.0 with Cloud Composer 2.5.3. I pinned requirements to specific dbt-bigquery 1.5.6 (which needs dbt-core 1.5.6, which does not depend on dbt-semantic-interfaces).
airflow-dbt
dbt-bigquery==1.5.6
agate==1.6.3

Hello, I also have a similar problem while installing dbt-core under the constraints https://raw.githubusercontent.com/apache/airflow/constraints-2.6.3/constraints-3.11.txt.
The conflict is caused by:
    dbt-semantic-interfaces 0.2.0 depends on jsonschema~=3.0
    The user requested (constraint) jsonschema==4.18.0

FWIW: pinning jsonschema>=4.0<4.18 passes tests successfully.
4.18 and above deprecate some functionality that seems to cause tests to fail.

Sorry for abandoning the PR, but I need to get authorization from my employer.

This issue seems to revolve around the deprecation of the jsonschema.RefResolver in jsonschema 4.18.
See release notes for 4.18 for warning of this deprecation: https://github.com/python-jsonschema/jsonschema/releases/tag/v4.18.0
If this library is pinned to use >=4.0<4.18 and airflow users tweak their constraints to be permissive of 4.17.3, it should be good to go for airflow>=2.6.3 and higher.

I believe I may have resolved this compatibility issue in #160 by following the jsonschema migration guide from RefResolver to referencing.Registry
https://python-jsonschema.readthedocs.io/en/latest/referencing/#migrating-from-refresolver
I'll get the rest of the stuff for the PR completed, but I have passing tests locally using jsonschema 4.19.1

Awesome, thanks!


Condition == evaluation fix

Added missing condition ==  evaluation for text expressions.
For example, the layout section can now contain the condition
as follows:
"condition": "model.name=='abc'"
In order to show certain property base on the name property value.
Fixes: Condition with == does not work #98 [https://github.com/hamzahamidi/Angular6-json-schema-form/issues/98]

@hamzahamidi
I did a cognitive complexity refactoring, however, 10 issues with similar blocks of code remained. Nevertheless, these are from my tests only. Please advise how to overcome this as I think it is the purpose of the tests to have similar blocks of code in order to be well readable. Or shall I move the tests somewhere else?
Thank you

Any plans to merge this fix ?

I don't think so. This seems to be a dead project. I didn't even commit any of my other changes.

Sorry I was sick & I finally got a vacation to focus on this project.


Support URL(file/http/https) imports

It seems that http/https import cannot be resolved and may result in an error.
https://github.com/mizdra/happy-css-modules/blob/a14cc666690e7e94279c81552be3fb516b30801c/src/transformer/less-transformer.test.ts#L125

I implemented http/https import support below.

https://github.com/mizdra/happy-css-modules/compare/6e5e239cc6ad25017050644a06302a25dd8fb584...support-url-imports-in-emitter

However, the implementation is very complex. Additionally, code jumps to http/https files are not supported.

https://github.com/mizdra/happy-css-modules/pull/131/files#diff-e44079a8f2ca79b81ecfcf86b90e5a121e6746256a3a5fa51d6a27646fc5f5e2R259

Perhaps a simpler approach should be used to solve the problem.


Check for 0 modulus in BN_RECP_CTX_set.

The function BN_RECP_CTX_set did not check whether arg d is zero, in which case an early failure should be returned to the invoker. This is a similar fix to the cognate defect of CVE-2015-1794.
Fixes #21111

Checklist

[ ] documentation is added or updated
[ ] tests are added or updated

This would be eligible for CLA: trivial. If you're OK with it, please amend the commit message body (git commit --amend) to include CLA: trivial on a separate line in the commit message and call git push --force.

24 hours has passed since 'approval: done' was set, but as this PR has been updated in that time the label 'approval: ready to merge' is not being automatically set.  Please review the updates and set the label manually.

Merged to all three.  Thanks for the contribution.


SNS utils doesn't like an empty subject

An error occurred (InvalidParameter) when calling the Publish operation: Invalid parameter: Subject: InvalidParameterException
Traceback (most recent call last):
File "/var/task/xml_to_json_run_task.py", line 56, in main
cmd
File "/var/task/wellcome_lambda_utils/sns_utils.py", line 36, in publish_sns_message
Subject=subject
File "/var/task/botocore/client.py", line 253, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/var/task/botocore/client.py", line 557, in _make_api_call
raise error_class(parsed_response, operation_name)
botocore.errorfactory.InvalidParameterException: An error occurred (InvalidParameter) when calling the Publish operation: Invalid parameter: Subject

Fixed by @alicefuzier


minLength makes the property required

{
  '$id': '/mySchema',
  'type': 'object',
  'properties': {
    name: {type: 'string'},
    uri: {type: 'string', minLength: 15}
  },
  'required': ['name']
}

uri is required. (Getting error: should NOT be shorter than 15 characters)
Is this an intended behavior?

I think the problem is somewhere else - could you please post the whole code sample to runkit.com?
See https://runkit.com/esp/5b5f5f9932208d0013b23b1d
My guess is that in your case property "uri" is present and is an empty string.

Yeah my fault.
It was an empty string.
Thanks


File Attachment issue

Hello,
First of all, great library.
I have a problem when attaching a file to an email. When those 2 lines
writeToFile(file_data,mContext);
email.addAttachment("questio.csv",readFromFile(mContext));

are comment out the app send the email normally.
When they are on, I receive  no mail.
Below is my whole code.
       try {
            SendGrid sendgrid = new SendGrid("*******", "**********");
            SendGrid.Email email = new SendGrid.Email();
            email.addTo(********);
            email.addTo(********);
            email.setFrom(********);
            email.setSubject(subject);
            email.setText(text);

           writeToFile(file_data,mContext);
            email.addAttachment("questio.csv",readFromFile(mContext));

            SendGrid.Response response = sendgrid.send(email);
            String mMsgResponse = response.getMessage();

            Log.d("SendAppExample", mMsgResponse);

        } catch (Exception e) {
            Log.e("SendAppExample", e.toString());
        }

   private InputStream readFromFile(Context context) {

        String ret = "";
        InputStream inputStream=null;
        try {
            inputStream = context.openFileInput("questions.csv");

            if ( inputStream != null ) {
                InputStreamReader inputStreamReader = new InputStreamReader(inputStream);
                BufferedReader bufferedReader = new BufferedReader(inputStreamReader);
                String receiveString = "";
                StringBuilder stringBuilder = new StringBuilder();

                while ( (receiveString = bufferedReader.readLine()) != null ) {
                    stringBuilder.append(receiveString);
                }

                inputStream.close();
                ret = stringBuilder.toString();
                Log.e("ret",ret);
            }
        }
        catch (FileNotFoundException e) {
            Log.e("login activity", "File not found: " + e.toString());
        } catch (IOException e) {
            Log.e("login activity", "Can not read file: " + e.toString());
        }

        return inputStream;
    }

    private void writeToFile(String data,Context context) {
        try {
            OutputStreamWriter outputStreamWriter = new OutputStreamWriter(context.openFileOutput("questions.csv", Context.MODE_PRIVATE));
            outputStreamWriter.write(data);
            outputStreamWriter.close();
        }
        catch (IOException e) {
            Log.e("Exception", "File write failed: " + e.toString());
        }
    }

I've abandoned this library and is no longer active, I would suggest you try SendGrid's Java Library instead, https://github.com/sendgrid/sendgrid-java


Include runningUnitTests in Application Contract

I could not come up with alternative implementations of this interface not requiring this extra method signature, and currently it's annoying to type-hint the contract because my IDE will complain about non-existing method.

Can't update interfaces on a minor release.


Dashboard and WMStats reporting different error codes

SeangChan asked me to open an example of when Dashboard and WMStats are reporting different error codes.
Here is one good example that is showing right now:
pdmvserv_task_HIG-RunIISummer15wmLHEGS-01737__v1_T_171012_121755_352
Dashboard is showing 40's, when I look at WMStats I see:
PerformanceError
PerformanceKill (Exit Code: 50660)
Error in CMSSW step cmsRun1
Job has exceeded maxRSS: 3225600
Job has RSS: 3320520
cmsRun1
CMSSWStepFailure (Exit Code: 40)
Adding last 25 lines of CMSSW stdout:
2274 XrdAdaptorInternal   pre-events       pre-events       pre-events
2275 FailedPropagation    1/25179792
2276 FailedPropagation    1/171323814      1/171324455
2277 FailedPropagation    1/171323814
2278 GsfMultiStateUpdator 1/13445307       1/13445307       1/171325765
2279 GsfMultiStateUpdator 1/171323935
2280 InvalidState         1/13445307       1/13445307       1/171325765
2281 InvalidState         1/171323935
2282 PosteriorWeightsCalculator 1/13445307       1/13445307       1/171325765
2283 PosteriorWeightsCalculator 1/171323935
2284 TimeReport           PostEndRun
2285 MemoryReport         PostEndRun
2286 fileAction           1/13444075       1/13444069       1/13444071
2287 fileAction           pre-events       pre-events       pre-events
2288 fileAction           PostEndRun       PostEndRun       PostEndRun
2289 fileAction           PostProcessEvent PostProcessEvent PostEndRun
2290 fileAction           pre-events       pre-events       PostProcessEvent
Severity    # Occurrences   Total Occurrences

Warning             54384               54384
Error                  20                  20
System                 48                  48
Complete
process id is 85483 status is 40
<@========== WMException Start ==========@>
Exception Class: CmsRunFailure
Message: Error running cmsRun
{'arguments': ['/bin/bash', '/home/tmp/87318762.pbs04.pic.es/glide_7j74mW/execute/dir_85133/job/WMTaskSpace/cmsRun1/cmsRun1-main.sh', '', 'slc6_amd64_gcc530', 'scramv1', 'CMSSW', 'CMSSW_8_0_21', 'FrameworkJobReport.xml', 'cmsRun', 'PSet.py', '', '', '']}
Return code: 40
ModuleName : None
MethodName : __init__
ClassInstance : None
FileName : /data/srv/wmagent/v1.1.6.patch4/sw/slc7_amd64_gcc630/cms/wmagent/1.1.6.patch4/lib/python2.7/site-packages/WMCore/WMSpec/Steps/WMExecutionFailure.py
ClassName : None
LineNumber : 18
ErrorNr : 40

Traceback:
<@---------- WMException End ----------@>
ErrorLoggingAddition (Exit Code: 99999)
Adding extra error in order to hold error report
Adding last ten lines of CMSSW stderr:
WARNING: In non-interactive mode release checks e.g. deprecated releases, production architectures are disabled.
WARNING: There already exists /home/tmp/87318762.pbs04.pic.es/glide_7j74mW/execute/dir_85133/job/WMTaskSpace/cmsRun1/CMSSW_8_0_21 area for SCRAM_ARCH slc6_amd64_gcc530.
logArch1
stageOut1

Job Name: 994adf84-b366-11e7-bce9-02163e01877e-8
WMBS job id: 870441
Workflow: pdmvserv_task_HIG-RunIISummer15wmLHEGS-01737__v1_T_171012_121755_352
Task: /pdmvserv_task_HIG-RunIISummer15wmLHEGS-01737__v1_T_171012_121755_352/HIG-RunIISummer15wmLHEGS-01737_0/HIG-RunIISummer16DR80Premix-03845_0
Status: jobfailed
Input dataset:
Site: T1_ES_PIC
Agent: vocms0250.cern.ch
ACDC URL: https://cmsweb.cern.ch/couchdb/acdcserver
State Transition

Also merging it into a single issue


[REQ] usersdrive.com delay timer bypass

Domain
https://usersdrive.com/
Link
https://usersdrive.com/tj8k1kazfjfg.html
Version
0.0.0
What browsers are you seeing the problem on?
Microsoft Edge
What OS are you seeing the problem on?
Windows
(Optional) Anything else?
Site has a 17sec countdown/ delay timer and CAPTCHA.
Any way to bypass/remove the delay?
Thanks in advance.
Code of Conduct

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

domainBypass("usersdrive.com", () => {
	ensureDomLoaded(() => {
		document.getElementsByClassName('seconds')[0].innerHTML = 0;
	})
})

try adding this code in custom bypasses if it works tell me (works for me) and if somebody is good in js please modify this and share the stable code i am not that pro in JS
this code will reduce the seconds to 0 and enabled the download button and only thing to do is recaptcha solve


Add dummy user workload parameter to KUDO Kafka

This PR adds a parameter named RUN_USER_WORKLOAD which has a default value false, when made true will result into deployment of two additional tasks: producer and consumer which generates some dummy user workload data over Kafka brokers.
Also, added a runbook to deploy KUDO Kafka with some dummy user workload including all steps required for successful demonstration purpose.

@vibhujain Suggested some changes to the documentation, apart from that LGTM! :tada: :trophy:

@shubhanilBag Thanks for the review. I have addressed all the changes suggested by you.

@shubhanilBag Thanks for the review. I have addressed all the changes suggested by you.

thanks :smile: :+1:


Fix mark/unmark bug

Codecov Report

Merging #159 (7d530ae) into master (d5204cd) will decrease coverage by 0.09%.
The diff coverage is 0.00%.

@@             Coverage Diff              @@
##             master     #159      +/-   ##
============================================
- Coverage     28.33%   28.23%   -0.10%
  Complexity      409      409
============================================
  Files           147      147
  Lines          3247     3258      +11
  Branches        378      382       +4
============================================
  Hits            920      920
- Misses         2262     2273      +11
  Partials         65       65

Impacted Files
Coverage Δ

...java/seedu/address/logic/commands/MarkCommand.java
0.00% <0.00%> (ø)

...va/seedu/address/logic/commands/UnmarkCommand.java
0.00% <0.00%> (ø)

...ava/seedu/address/model/classgroup/ClassGroup.java
0.00% <0.00%> (ø)

...c/main/java/seedu/address/model/lesson/Lesson.java
0.00% <0.00%> (ø)

...du/address/model/studentattendance/Attendance.java
0.00% <ø> (ø)

...ess/model/studentattendance/StudentAttendance.java
0.00% <0.00%> (ø)

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 d5204cd...7d530ae. Read the comment docs.


support for default behavior when merging into Mu2eII branch

This should be merged before the related codetools merge.

Changes look harmless to me 👍


mimeparse vs python-mimeparse

Howdy,
While doing some packaging work for Fedora, I noticed that both mimeparse and python-mimeparse are available on PyPI.  After digging through the commit history, I see that python-mimeparse was originally forked from mimeparse.  Mimeparse only has one commit after the fork happened.
To reduce the confusion, would it be possible for the projects to be merged back together?  Or put another way, what would it take for this module to claim the mimeparse name on PyPI and become the single official source?

Hey @carlwgeorge, thanks for pointing that out.
It seems that the other package has quite a bit of issues (at least on GitHub: https://github.com/jcgregorio/mimeparse/issues) and isn't in active development.
@carlwgeorge could you link to that one commit that was was added to mimeparse after the fork happened? I'll take a look at it and see if it's breaking any logic. If not, it might be worth adding it here, so that this package is a complete, extended version of mimeparse.
There's probably plenty of projects in the wild relying on both mimeparse and python-mimeparse, so we can't just pick one name and abandon another one. We could, however, add a deprecation warning to mimeparse and suggest moving to python-mimeparse.

Cool, I didn't realize the original project had been migrated to GitHub.  Here is the commit I mentioned previously.
Just from my own OCD perspective, I would prefer to use the mimeparse name, which is why I suggested merging the projects and/or taking over the mimeparse name on PyPI.  If that is possible, how about adding the deprecation warning to python-mimeparse?
CC @jcgregorio

@jcgregorio, just following up. Would you consider weighing in here?

@jcgregorio ping?

FYI, I was able to switch the Fedora package to use this source instead of the old one.

@dbtsai you should ask to take over https://pypi.python.org/pypi/mimeparse
See: https://www.python.org/dev/peps/pep-0541/#abandoned-projects

Awesome @dbtsai !
I'm not sure how the process looks like either...
I guess you could add me and @kgriffs on PyPi to start with:

https://pypi.org/user/vytas/
https://pypi.org/user/kgriffs/

I found this, but I haven't tried it this way I think where the recipient is from another organization... https://docs.github.com/en/repositories/creating-and-managing-repositories/transferring-a-repository#transferring-a-repository-owned-by-your-user-account

I think @dbtsai needs to make a new organisation and move this project there, then add @vytas7 to that new org, who can transfer the project to the final destination

Thank you @vytas7 & @dbtsai for maintaining this project. I first only found the original one, with broken 0.1.4 release.
It would be nice if you could release it under mimeparse name. Did you try to contact @jcgregorio by email?
Also, PyPI has a procedure in case when the original author is unreachable.
I find it weird that someone left that broken release for years...

I can try to reach out to @jcgregorio, but I think this avenue has been explored before.


For the opened file, the service stops running when dragging left and right

Open any two editing pages, sort left and right, and drag to sort. The service stops running

/needsMoreInfo


Pull request checks

Github actions workflow on pull requests that

Checks formatting using rescript format
Checks types

Done in #16


All Windows on another desktops

How can I use comething like GetAltTabList() to get the windows of another desktop (like with a parameter).
I want that to make a hotkey that skips desktops with no windows.

sorry for the late reply, i just saw this
I don't understand very much but...maybe im talking about something completely different, you never explain right :(
The problem is that I copied the GetAltTabList() function from somewhere and i don't know how it works, so i can't modify it sadly
If you manage to find in google a function that returns a list of windows of ALL desktops, tell me and I add it(looks possible because in the configuration of alt tab you can choose between make alt tab show the windows of the current desktop or make it show the windows of all desktops)
The function then would look like: GetAltTabList("from_all_desktops") or GetAltTabList("from_this_desktop") and it will give you one list or another depending on the parameter
Once you have that list you can do:
someKey::ActivateLastWindowRegardingTheDesktop()

ActivateLastWindowRegardingTheDesktop(){
    all_windows := GetAltTabList("from_all_desktops")
    the_last_window_focused := all_windows[1]
    the_desktop_where_the_last_focused_window_is := InWichDesktopThisWindowIs(the_last_window_focused)
    GoToDesktop(the_desktop_where_the_last_focused_window_is)
}

oh man, that actually looks so convenient


RPC Authentication returns an "invalid params"

Hello,
I am trying to authenticate my client on the JSON-RPC API using the following method, but I get an error back.
Request;
curl -i -X POST -d '{"jsonrpc": "2.0", "method": "login", "params": { "user": "root", "password":"xxxx"}, "id": 1}' http://<IP_ADDRESS>/cgi-bin/luci/rpc/auth

Response;
HTTP/1.1 200 OK
Connection: close
Transfer-Encoding: chunked
Content-Type: application/json
Cache-Control: no-cache
Expires: 0

{"id":1,"error":{"message":"Invalid params.","data":"/usr/lib/lua/luci/controller/rpc.lua:53: attempt to index global 'luci' (a nil value)","code":-32602},"jsonrpc":"2.0"}

I based my request on a comment made in this topic; https://forum.openwrt.org/viewtopic.php?pid=211763#p211763
What did I do wrong?
I am using Chaos Calmer 15.05-rc2

I fixed it, so this issue can be closed! The error was partially my fault and bug in the RPC module.
The request should have been
{
    "jsonrpc": "2.0",
    "method": "login",
    "params": {
        "username": "root",
        "password": "xxx"
    },
    "id": 0
}

And the bug in the RPC module I fixed by setting the timeout to a fixed value of 3600.
Before:
local sdat = util.ubus("session", "create", { timeout = luci.config.sauth.sessiontime })

After:
local sdat = util.ubus("session", "create", { timeout = 3600 })

I've seen your message in IRC but you already left when I was about to respond. I believe the issue is fixed with 16047d03c54df4474cb675a9ce98d06aad5a656b

Even tho this issue is closed, I just wanted to let you know that I tried this fix and it didn't fix the problem.

Same here. Still getting the same error.
(Using Python shell)
>>> res.text
'{"id":1,"error":{"message":"Invalid params.","data":"/usr/lib/lua/luci/controller/rpc.lua:55: attempt to index global \'luci\' (a nil value)","code":-32602},"jsonrpc":"2.0"}'
>>> res.request.body
'{"method": "login", "id": 1, "jsonrpc": "2.0", "params": ["root", "passw"]}'
>>>

I too am having this issue...
{"id":1,"error":{"message":"Invalid params.","data":"/usr/lib/lua/luci/controller/rpc.lua:53: attempt to index global 'luci' (a nil value)","code":-32602},"jsonrpc":"2.0"}
please reopen this ticket

Same here, using Package luci (git-15.248.30277-3836b45-1)
and
Package luci-mod-rpc (git-15.248.30277-3836b45-1)

So,  I found the issue:
https://github.com/openwrt/luci/issues/576
Fix; set luci timeout in config, or set the timeout hard in the luci-mod-rpc line 55

The fix in 16047d03c54df4474cb675a9ce98d06aad5a656b was incomplete and has been corrected with fff7c6c5188ff7a82b5d9f46a6f2c143288b5ed1.

I also cherry-picked fff7c6c5188ff7a82b5d9f46a6f2c143288b5ed1 into the for-15.05 branch now.


Accessing variables and modules from the function with decorator in Windows

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

[x] bug report
[ ] feature request
[] support request

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

What is the current behavior?
if I try to use a variable or module in the function with the decorator, it tells me that it does not exist. In linux or mac it does works.

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

from time import sleep
from wrapt_timeout_decorator import *

name="my_var_name"

@timeout(5, use_signals=False)
def mytest():
    print("Start ", name)
    for i in range(1,10):
        sleep(1)
        print("{} seconds have passed".format(i))
    return i

if __name__ == '__main__':
    mytest()

output: name 'name' is not defined
(the same occurs with sleep function)

What is the expected behavior?
i want to have access to modules and vars

Please tell us about your environment:

Version of wrapt-timeout-decorator : 1.0.1 (master)
Python Version :  3.7.2
OS, OS Version :  Windows Server 2016

its not a bug its a feature ;-)
On Windows the main module is imported again (but with name != 'main') because Windows is trying to simulate a forking-like behavior on a system that doesn't have forking. multiprocessing has no way to know that you didn't do anything important in you main module, so the import is done "just in case" to create an environment similar to the one in your main process. So the variable "name" and all functions You defined in the "main" are new objects - but the decorator refers to the "old" objects of the main process, so they cant be found.
It is more a problem of Windows, because the Windows Operating System does not support "fork".
here You can find more information on that :
https://stackoverflow.com/questions/45110287/workaround-for-using-name-main-in-python-multiprocessing
https://docs.python.org/2/library/multiprocessing.html#windows
In general (especially for windows) , the main() program should not have anything but the main function, the real thing should happen in the libraries.
I am also used to put all settings or configurations in a different file - so all processes or threads can access them (and also to keep them in one place together, not to forget typing hints and name completion in Your favorite editor)
here an example that will work :
my_program_main.py:

from multiprocessing import freeze_support
import lib_test

def main():
    lib_test.mytest()

if __name__ == '__main__':
    freeze_support()
    main()

conf_my_program.py:

class ConfMyProgram(object):
    def __init__(self):
        self.name:str = 'my_var_name'

conf_my_program = ConfMyProgram()

lib_test.py:

from wrapt_timeout_decorator import *
from time import sleep
from conf_my_program import conf_my_program

@timeout(5, use_signals=False)
def mytest():
    print("Start ", conf_my_program.name)
    for i in range(1,10):
        sleep(1)
        print("{} seconds have passed".format(i))
    return [{"id": 1}]

hope it helps, let me know.

and thanks for the input - I put clarification into the README

Thank you so much @bitranox. Excellent explanation.


Child sum treelstm with less than 2 child

Fix #3680
ChildSumTreeLSTM should have been able to accept link(x) and link(c, h, x). But, they were not allowed, while only link(c1, c2, ..., h1, h2, ..., x) (with more than 1 children) was allowed.
This PR fixed it.

jenkins, test this please.

LGTM!


0032-always-use-local-new-tab-page.patch appears to only apply to Android

Comments added:
 #if !defined(OS_ANDROID)
   return DefaultSearchProviderIsGoogle(profile);  // returned when NOT on Android (all platforms relevant for Hexavalent)
 #else
-  return false;
+  return true;  // returned on Android
 #endif

My initial build of Hexavalent is still compiling. Once I have a successful build and if this patch has the behavior I expect, I am willing to send a pull request to address this.

Correct.

sorted, thanks!


Make the AppRegistry conditional

Make the AppRegistry conditional, but default to being on,so this solution can be deployed to a region where the AWS Service Catalog AppRegistry is not available.
Issue # 253
Description of changes: Add a condition so that the AppRegistry integration can be left out when AppRegistry is not available (or if the user does not want it).
Using this change a a private deployment of all the resources into S3 I was able to launch the stack in il-central-1 where AppRegistry is not available (at least not at present).
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Thanks for the PR. We have added it to our backlog to consider the possibility of making AppRegistry optional in the future.


Fluid width Navbar?

Summary
To allow fluid width of navbar to fill outer container instead of using container class. The design I am building requires the header to be 100% width of the viewport.
Basic example

Motivation
To be more diverse in the layout design of the designer's choice.

Thank you for your issue.
I think you can ask this to Flowbite issue.

'container' is just user preference? For example, in their own docs page, they omitted it..

@jjagielka Any thoughts?

Looking at the component, seems we can just:
<Navbar let:hidden let:toggle fluid={false}>
Seems like it's the wrong way though - I would say fluid=true should be the 100% width.

Yes, you're right. It should be reversed. I'll correct it in the minute.


[Datagrid]: Filtering with nested rows does not work as expected

Package
Carbon for IBM Products
Description
There are a few issues with filtering / search capability with nested rows in Datagrid. This can be easily reproducible with the storybook example: https://carbon-for-ibm-products.netlify.app/?path=/story/ibm-products-components-datagrid-nestedrows--single-level-nested-rows-usage-story.
Using the storybook example:

If I search for a string appearing in the parent row, I see only the parent row to appear. I would expect the children rows should be appeared as well since they are part of the hierarchy.
Continue from (1) above, if I clear the search text, I would expect the filtered children rows to reappear, but they do not. Those children rows are simply lost and I have no way to bring them back unless I do a page reload on the storybook example.
If I search for a string appearing only in the children row, I am not seeing that row appeared in the filtered results. I would expect I will see the filtered rows in the children rows with its parent showing up.

Component(s) impacted
This is an issue with Datagrid component. And here are some screenshots of what I have tried.

First and second issue:

Start with the following Datagrid rows

Enter "weight" in the filter search box. Only the parent row appears. Would expect the children to be there as well.

Clear "weight" from the filter search box. Now the children rows from the "weight" row are not gone.

Third issue:

Start with the following Datagrid rows

Enter "shade" in the filter search box. Nothing appear in the table. Would expect the first parent row with its child row containing the "shade" text to appear in the table.

Browser
No response
@carbon/ibm-products (previously @carbon/ibm-cloud-cognitive) version
v1.73.1
Severity
Severity 2 = Aspects of design is broken, and impedes users in a significant way, but there is a way to complete their tasks. Affects major functionality, has a workaround.
Product/offering
IBM Cloud Projects
CodeSandbox or Stackblitz example
https://carbon-for-ibm-products.netlify.app/?path=/story/ibm-products-components-datagrid-nestedrows--single-level-nested-rows-usage-story&globals=viewport:basic
Steps to reproduce the issue (if applicable)
No response
Release date (if applicable)
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct
[X] I checked the current issues for duplicate issues

Hey @flannanl, this sounds like a duplicate of https://github.com/carbon-design-system/ibm-products/issues/4652. Can you confirm? Thanks!

@matthewgallo I think the core problem is the same. But mine requests for a behavioural change to the filtering as well, which I think it's not fully related to the core problem.

We experience same issue, search doesn't work for nested rows.

for design consideration: how add & select works when filtering

This seems to be a similar issue that was reported in #4652, see the appropriate fix here.


Gooey, pythonw.exe and Popen

Hi.
I'm operating on Windows 10, with Python 3.7.1 and Gooey-1.0.2.
When I run pythonw main.py and I start execution a program that usues Popen, the stdout of it's printed in a new console window.  On the contrary, python main.py gets the stdout printed nicely in Gooey logs widget.
main.py:
import subprocess
import gooey

@gooey.Gooey()
def main():
    parser = gooey.GooeyParser()
    args = parser.parse_args()

    process = subprocess.Popen(["ping", "<IP_ADDRESS>", "-n", "5", ])
    process.wait()
    if process.returncode != 0:
        print("An error occurred :", process.returncode)
        exit(1)

if __name__ == '__main__':
    main()

pythonw main.py:

python main.py:

This seems to be a quick of pythonw and Popen in general. Checkout this StackOverflow issue
If you take a dash of the suggestion above, and sprinkle on a little manual Subprocess piping as seen in this issue, you can get your Popen calls displaying in Gooey even under pythonw
Full example:
import subprocess
import gooey

@gooey.Gooey
def main():
    parser = gooey.GooeyParser()
    args = parser.parse_args()

    startupinfo = subprocess.STARTUPINFO()
    startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
    process = subprocess.Popen(["ping", "<IP_ADDRESS>", "-n", "5", ],
        startupinfo=startupinfo,
        stdout=subprocess.PIPE,
        stdin=subprocess.PIPE,
        stderr=subprocess.STDOUT)

    for line in process.stdout:
        print(line.decode('utf-8'))
    process.wait()
    if process.returncode != 0:
        print("An error occurred :", process.returncode)
        exit(1)

if __name__ == '__main__':
    main()


correct documentation of 'dilated'

The documentation for dilated currently reads:
A picture scaled by these factors.

The plural in there is strange, as dilated only takes one factor as argument. So the documentation should read:
A picture scaled by this factor.

Thanks for the report.  Rather than asking you to sign a CLA, I've rewritten the documentation myself to fix the issue.

Oops; fixed in commit 921ce29c0f8511c8d9fd93895bb3642dbdbe7e46, but I mistyped the issue number.

Thanks. Very welcome. I was wondering whether to do the CLA for such a small issue.


Hard coded platform style?

Why does the component has these hard coded style? Example:
<button (tap)="onDone($event)" ion-button=""  class="button button-clear button-small disable-hover button button-ios button-default button-default-ios">       {{config.okText || 'OK'}}

 </button>

Legit answer: I did not know how to make it just ion-button.
It wouldn't add the styles dynamicly when I tested it so I just copy pasted
the styles I had.
If I probably try nowdays and remove all of them it would work fine.
On Sep 23, 2017 5:21 PM, "Rafael Franco"<EMAIL_ADDRESS>wrote:
Why does the component has these hard coded style? Example:
<button (tap)="onDone($event)" ion-button="" class="button button-clear
button-small disable-hover button button-ios button-default
button-default-ios"> {{config.okText ||
'OK'}}
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/misha130/ion-datepicker/issues/48, or mute the thread
https://github.com/notifications/unsubscribe-auth/AGV4LPUKGIeVvxvf0_dTsFrFd0gPDJNLks5slXZfgaJpZM4PhsCv
.

Fair enough. I've done some testing and it doesn't quite work with just ion-button. Not sure why though.

Closed in 2.7.2 5 months later.


No clean edges on output image

Hello, i am trying to convert a 300x300 .jfif image. When i use the cli progamm using this command
climage .\befine.jfif --truecolor --unicode
i am getting a few pixels on the edge like this:

However my actuall goal is to do this in python but i am also getting the same weird edges there just a lot worse using this code output = climage.convert('befine.jfif', is_unicode=True) print(output)

Is this a known error?
I am usingPowerShell in the Windows Terminal climage version is 0.1.3.

I've not worked with jfif files before, can I get you to convert that file to a jpeg and then try convert it using climage please?
I recommend using something like imagemagick, photoshop, gimp, or Photopea.
For posterity, could you also attach the files (both jfif and jpeg) to your reply?
Thanks!

I've upgraded the package but still have the same issue. I have also tried converting it to a .jpg but that didn't fix it too.
But i have just found out that this only happens when i use is_unicode=True it works fine without unicode but also makes the quality worse.
Also i am attaching the images here as jpg (jfif is not supported to upload) hope this extra info helps

Here is an external Link to the jfif image: https://ibb.co/9rBCPcR

Hmm, I don't seem to be able to reproduce on a mac (iterm2.app):

With the first being the github jpg, and the second being the file downloaded from ibb.co:
❯ file ~/Desktop/test.jpg
/Users/pnappa/Desktop/test.jpg: JPEG image data, JFIF standard 1.01, resolution (DPCM), density 59x59, segment length 16, baseline, precision 8, 640x640, components 3
❯ file ~/Desktop/269346076-4807b834-f4d7-47a3-916d-f176abb19629.jpg
/Users/pnappa/Desktop/269346076-4807b834-f4d7-47a3-916d-f176abb19629.jpg: JPEG image data, JFIF standard 1.01, resolution (DPCM), density 59x59, segment length 16, Exif Standard: [TIFF image data, little-endian, direntries=7, orientation=upper-left, xresolution=98, yresolution=106, resolutionunit=3, software=GIMP 2.10.32, datetime=2023:09:20 17:43:44], progressive, precision 8, 640x640, components 3

I suspect this is a unicode display problem in the windows terminal, but it's odd how it's manifesting. In your first image (truecolor), one of the "pixels" in the middle of the screen is duplicated:

Can you try this out a few things for me:

Try this on command prompt
Save the output to file and upload it, e.g. climage .\befine.jfif --truecolor --unicode > test.txt, and upload the test.txt file here

Thank you!

I've run it on my WSL since its a bit of a hassle to get Unicode support on cmd. On WSL it worked fine i will upload an outputfile of the corrupted version and one that ran fine on WSL.
Maybe this is just an issue with the PowerShell since i heard that the same things sometimes happen when running other libaries that do the same.
wsl.txt
Seems like i cant even save the image as an outputfile on Windows 😅
UnicodeEncodeError: 'charmap' codec can't encode character '\u2584' in position 22: character maps to <undefined> (cant even write it to a variable 🥲)
I am running on exactly the terminal version mentioned in the GitHub Issue so maybe its best to just wait until the come up with a fix 🤔

Ah, shame! Sounds like it's an unavoidable problem here with unicode, unrelated to climage (its only relation here is that we output unicode).
I cat'd your file, and again, looks good on my machine. I'm afraid because the problem is internal to Windows' UI layer, I am unable to track it here, so the best action I have is to close this issue, as there's no action I can do here.
Unfortunately, the only things to do is either run without using unicode (omit the --unicode flag), wait for the fix for Windows Terminal, or use a more functional terminal. There's a bunch available on windows (https://stackoverflow.com/questions/60950/is-there-a-better-windows-console-window https://stackoverflow.com/questions/17349022/alternative-windows-shells-besides-cmd-exe etc).
Good luck with the project!