ios 11 Support

[x] I've read, understood, and done my best to follow the *CONTRIBUTING guidelines.

What did you do?
    let parameters: Parameters = ["token": token]

    Alamofire.request("someURL", method: .get, parameters: parameters)
          .responseJSON
      {
          response in
          let statusCode = response.response?.statusCode
          if(statusCode == nil || statusCode == 0 || response.result.isFailure)
          {
              return
      }
          }

What did you expect to happen?
get response with response code 200 or 201
What happened instead?
got 200 with response  = nil , and isFailure = true
Alamofire Environment
**Alamofire version: 4.4
**Xcode version: 9
**Swift version: 4
**Platform(s) running Alamofire: ios 11 iPhone 6s/iPhone 6Plus
**macOS version running Xcode: 10.12
Demo Project
cant provide project cause the request isn't some specific request , just any , I SAY ANY !! request may fail like this or may not , just in ios 11 , its working in postman , android , browser , no matter get,post or what ever , just Check the lib with ios 11 please and it was working just fine , the same request , not a single character is changed the same damn code , but its not working properly in IOS 11 , as u can see I opened issue and right after an hour there was someone else sayin the same problem , but u just close the issue asking for " be more specific " there isn't such thing ! the requests are Random , the webserver is fine the problem is with your Library

You need to investigate this further on your own and find out what has changed in your requests that may be causing these issues. Look at the raw request and response data and compare it to previous versions. Check server logs and see if different actions were taken. Because right now, all of our tests pass on all of our supported platforms, including iOS 11, so there's nothing for us to do here. You can't just say "something seems different" and

I just don't get it why you don't read the part that the requests are working fine on every other platform and browser or what ever . fine I'm gonna use another Library

I'm running into this too, I'm getting a lot of nil pointer crashes (caused by improper handling in my code similar to https://github.com/Alamofire/Alamofire/issues/1990 )
I was checking my server logs and it appears that many of the times my user (same user) experienced a crash, there was no corresponding activity on the server for the request. So it almost seems like the request isn't even going to the server.
My code is pretty much the same as Mahans above and i know why the actual crash is happening but what I'm trying to figure out is why is the response, response result returned as nil (with no server activity)
here are some crashes, all 100% on ios 11
http://crashes.to/s/c82fb3d3baf
http://crashes.to/s/7ad76bc169c
http://crashes.to/s/42f8c06e709
http://crashes.to/s/195449a7892
http://crashes.to/s/c82fb3d3baf

Actually they dont care , in my case the request is working on Android and postman and browser for get requests but they dont wanna check what's wrong with them and seems they believe its okey from their side

@iant2 Can you open a new issue with the code from one of those crashing closures and why it was crashing now? Also, details about your server's caching logic might be helpful. It's possible they changed the caching logic for iOS 11 or introduced a bug.

@jshier i will post a new issue. Not sure what you mean about "why it was crashing now?", do the logs I provided not answer this?
Also, there is no backend caching currently, everything pulls directly from the DB

@iant2 No, all of the crashes you posted were crashing in your code. If it wasn't crashing before it might be interesting to see why they were now, but nothing in there points to a direct issue with Alamofire. If output from the underlying networking framework has changed that may cause user's code to behave differently, then it would be good to see why. I'm guessing you were just force unwrapping things. Your note about there not being server activity may be interesting, which is why I asked about the caching.


Adding serverless-wsgi acceptance test

Closes #227
Signed-off-by: Michael Lavers<EMAIL_ADDRESS>

Awesome, thank you!


Command List keeps disappearing

I believe this started happening since https://github.com/AnidemDex/Blockflow/pull/126
I also noticed adding new custom commands from the project configuration causes it to disappear/reappear as if a timer keeps stacking on top of itself. Are we using a timer???

Can replicate. This is probably due
https://github.com/AnidemDex/Blockflow/blob/bd2e06bc0af5641d86b565bff46a00f63781c1d3/core/plugin_script.gd#L122-L123
and
https://github.com/AnidemDex/Blockflow/blob/bd2e06bc0af5641d86b565bff46a00f63781c1d3/core/plugin_script.gd#L163
We update the whole list intermediately after any change. An error happens silently in
https://github.com/AnidemDex/Blockflow/blob/bd2e06bc0af5641d86b565bff46a00f63781c1d3/editor/command_list.gd#L102-L114
So the builder stops and doesn't create anything until is valid or a request for a new rebuild happens.
Maybe we should rebuild only if the specific thing that we need changed (this means we will need some sort of cache to compare with?)

I can't replicate the timer thin


Error

expected ':' after key at line 1 col 5

This is an error emitted by the library when the json passed to it is not valid. You'll have to provide a bit more information if you're confused about how to use the library or if you suspect there is a bug in the library.


Avoid using private implementation details in the Swift tests

Explicitly wrap things creating Realms in setUp methods in autoreleasepool blocks to avoid the need to wrap all calls to setUp explicitly, and then just call super.invokeTest() in an autorelease pool rather than trying to replicate all of the work it does. Requires an obj-c helper to work around not being able to use super in a block in swift 1.1.
@segiddins @jpsim

:+1:

:+1:


rs-post-processing Sample - readme.md

No big thing, but there is a small difference between the code in readme against the cpp file.
 Line 37:   filter_options(const std::string name, rs2::filter& filter);
in https://github.com/IntelRealSense/librealsense/blob/master/examples/post-processing/rs-post-processing.cpp
    filter_options(const std::string name, rs2::process_interface& filter);
https://github.com/IntelRealSense/librealsense/tree/master/examples/post-processing

Thanks so much for your report!  I have labelled this post with the 'Documentation' tag so that it can be tracked by RealSense team members responsible for documentation.

Hi @PerceptMD  As the documentation change request that you made in 2020 is now 2 years old, can you confim whether you still believe that the requested change should be made, please?  Thanks!

Case closed due to no further comments received.


run tests also locally

Currently, all the tests are in the circle CI script. That's fine, but sometimes you want to run just one command locally and see if everything works. Perhaps this could be added to one script which can be called from circle?

+1


add network-only as fetch policy for all queries

Type of change

Bugfix

Description

add fetchPoilcy as network-only for all graphql query to avoid caching

Corrected milestone from 0.31.0 -> 0.31.1


builds arm images for tink actions

Issue #, if available:
Description of changes:
We started building bootconfig for arm so we should be able to build the arm versions of these images.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/lgtm
/approve


Metrics for message bytes received/sent per destination (inputhost)

This change attempts to add metrics for messages (in bytes) received by inputhost from publisher and messages (in bytes) sent by inputhost to the replicas. These metrics are scoped to the destination making it possible to track these values per destination.

Changes Unknown when pulling 649042e8f1d6fbda7706a4ed382001a7b3b1f4b2 on metrics-input-bytes into ** on master**.

Coverage increased (+0.3%) to 69.066% when pulling bc6f1225957d4a1e9aafae880e23b98ae48e4d14 on metrics-input-bytes into 642c87916b30ac44af69c7a73878ae0c6c0a7497 on master.

Coverage increased (+0.1%) to 68.889% when pulling d2b65bff1cbfd184b5a71f57a26c514a449fb91f on metrics-input-bytes into 642c87916b30ac44af69c7a73878ae0c6c0a7497 on master.


Edit to Defensive Person class, Add DeleteMember and Register Tests and add group tests to PersonTest

Pull Request Test Coverage Report for Build 617

23 of 23 (100.0%)  changed or added relevant lines in 5 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage increased (+1.6%) to 83.594%

Files with Coverage Reduction
New Missed Lines
%

src/main/java/seedu/address/logic/parser/AddressBookParser.java
1
73.33%

Totals

Change from base Build 616:
1.6%

Covered Lines:
2461

Relevant Lines:
2944

💛  - Coveralls


Adding Twitter Wall to Homescreen

Adding a wall to reflect the stream of Tweets about the event.
Similar to this.

Hey @GeekBoySupreme, go ahead and close this issue
PR: https://github.com/GeekBoySupreme/dscomg/pull/18


Can't knit HTML presentation

After creating a new RMarkdown file to generate a xaringan presentation from RStudio File -> New -> From Template -> HTML Presentation {AAGITemplates}, I'm unable to knit the presentation.
File assets/mathjax-eq-num.html not found in resource path
Error: pandoc document conversion failed with error 99
Execution halted

Am I missing something in the execution?
I note that the "Presentation Ninja" (default template provided by {xaringan} for English knits.

Yep confirmed, I've got the same behaviour on a virtual machine on my end (barebones RHEL9, with only tidyverse + TexLive installed before installing the AAGITemplates package and trying to immediately knit the new xaringan document):

I'll investigate.

Fixed, it was a line about ignoring .html files in the .Rbuildignore that caused the grief. That mathjax file never gets copied over to the package during the install, and thence never ends up in the assets folder for a new presentation.
I've taken the line out and it solves the issue (@rogerssam we should probably check that this fix hasn't resulted in unwanted html files being copied over though. It doesn't look like it has.)


[annoying] error 403

can you try to let it retry a couple times on error 403?

403 errors will be mostly fixed in the next update.

It seems to me that this has been fixed with ytdl-core here


imake failed to build on Ubuntu 12.04.5 LTS

From @ryants on May 25, 2016 17:7
I get the following output when attempting to install imake (an octave dependency):
Error: undefined method `/' for nil:NilClass
Gist Log
Copied from original issue: Linuxbrew/homebrew-core#349

Reproducible on my 14.04 machine as well.

/home/bob/.linuxbrew/Library/Homebrew/os/mac/xquartz.rb:130:in include' /home/bob/.linuxbrew/Library/Taps/homebrew/homebrew-x11/imake.rb:44:in block in install'

The line it's complaining about is
      # Fix for different X11 locations.
      inreplace "X11.rules", "define TopXInclude	/**/",
                "define TopXInclude	-I#{MacOS::X11.include}"

This is a regression caused by my addition of the X11 requirement. I'll try to get this fixed as soon as I can.

@ryants, this should be fixed now. Can you please do a brew update and try building again? Thanks!

imake installs perfectly, thanks!


DISTINCT ON requires matching ORDER clause

Per Postgres docs - and experimentation! ;) - specify that the DISTINCT ON clause must have a matching ORDER BY, such that the columns used in the distinct clause are the left-most in the ORDER clause. So you end up needing to do:
Model.distinct_on(:col).order(:col)
It would be nice (I think?) if this was handled automagically. (Or is this supposed to be automagically handled by AREL?)
Bonus - This plays weird with other things that apply ordering (ActiveAdmin). My guess (and hope) is that there's a way to say "no, this ordering always is left-most", so that when something like AA adds their ordering, it doesn't break the DISTINCT ON.

I think you could use a CTE to retain current order and then use distinct_on with the CTE rows:
cte      = Model.with(cte: Model.some_scope_not_ordered_by_col)
distinct = cte.from('cte as models').reorder(nil)
                                    .distinct_on(:col)


Association decorator not working for me

I have an entity called "Item"
Item has a collection of items called Children.  I have decorated it like so:
@association({collection: 'children'})
children: Array<Item>;

I have made sure that on the server side, the collection is called "children"  I have checked in the debugger and it shows the names are correct.
However, only the root object gets asObject() called it by the ORM.  The children are just POJO's.
When I look in the debugger, I can see properties such as __cleanValues on the root object, but not the items in the child collection.
Thus, I cannot call save on a child item.  I get an error message saying method save() is not defined.
This is the call the gets the data:
`this.repository.find("getTopLevelItemAndChildren");`

Is there something else I need to do?
Or should I be calling save only on the root object?

any entity must be of type Entity.

Item is of type Entity.   In other words, I have subclassed Entity in the class definition of Item.

both should do it (if set up that way). with save on that parent is saves on parent/id/child/id (resource parent) and with save on the child on child/id (resource child). the later accessed through the parent as well, since it was loaded into parent->[children]->child which is a different object from child loaded directly


Pipeline toolbar paste button always enabled

As pointed out in #758 paste button is always enabled, even when setting it to false in toolbarConfig.
Paste events on common canvas should be cleared after clearing a pipeline or when opening an empty pipeline.

As pointed out in #758 paste button is always enabled, even when setting it to false in toolbarConfig.
Is this an issue on canvas then? If so, do we have an open issue on the canvas repo?

Paste events on common canvas should be cleared after clearing a pipeline or when opening an empty pipeline.
Now I got confused. Is this a bug on our side?

Stepping back, what is the desired behavior? When I go to a well-stablished product like Word, the paste button is always on, and for example, if I cut the whole document (similar to clear) I can paste it back. You might also be copying something from another pipeline document, and we should be able to paste it.

i would think if you configured the parameter to false it should appear disabled.
in addition, if there is nothing in the clipboard i would expect it to appear disabled.
with that said, as you mentioned, i just noticed Paste is always on (even if clipboard is empty) in programs like Word so i guess that would be acceptable behavior.
however, quickly looking at the canvas code they do set the paste state based on clipboard being empty
https://github.com/elyra-ai/canvas/blob/b596b3c9c864331385921871935564a608671caa/canvas_modules/common-canvas/src/common-canvas/common-canvas.jsx#L394-L396
if (this.canvasController.isClipboardEmpty()) {
    pasteState = false;
}
...
if (this.state.toolbarConfig[i].action === "paste") {
     this.state.toolbarConfig[i].enable = pasteState;
}

in any case, i think this would be a canvas issue as it appears the paste button is never actually disabled. otherwise no point in checking/setting paste state.


Import Wallet attempts

Is your feature request related to a problem? Please describe.
My understanding is that all it takes to import an existing wallet and have access to the Nano is something like the 24 words mnemonic. So if someone wrote a script to try combinations of words, they could eventually brute-force their way into someone's wallet?
Describe the solution you'd like
A max login attempts per 24 hours for that IP? You may have a better solution.
Also, an advisory comment about how to make your Nano more secure? Could appear as a warning for anyone with a balance over a certain amount?
Additional context
My knowledge of what makes wallets secure and how to make them more secure is still fairly lacking, so I apologise if I've misinterpreted this.

It'll take someone a very very long time to crack your seed because of the amount of possible combinations. Say billions of years I think. Applies to like all cryptocoins.

Yeah putting a rate limit on Nault won't change anything since there are other methods that are million times faster.


Cannot consume twice

If I have two services consuming the same topic with the same consumer group, I get the following error:
[sarama] 2016/06/03 18:14:04 Connected to broker at <IP_ADDRESS>:9092 (unregistered)
[sarama] 2016/06/03 18:14:04 client/brokers registered new broker #1001 at <IP_ADDRESS>:9092
[sarama] 2016/06/03 18:14:04 Successfully initialized new client
ERRO[0001] The consumer returned the following error: read tcp <IP_ADDRESS>:62113-><IP_ADDRESS>:9092: i/o timeout
[sarama] 2016/06/03 18:14:05 cluster/consumer  rebalance
[sarama] 2016/06/03 18:14:05 client/coordinator requesting coordinator for consumergoup nx-eptica from <IP_ADDRESS>:9092
[sarama] 2016/06/03 18:14:05 client/coordinator coordinator for consumergoup nx-eptica is #1001 (<IP_ADDRESS>:9092)

Any idea what's wrong?

Looks like you hit a timeout during rebalancing, looks like a problem with your Kafka setup. Are you sure the cluster is up and the peers are in sync?


Fix kAtLeastN/kExactlyN fast path unicode input matching

Previously _ is matched to a byte, it should match a character instead.

@mbasmanova

Gentle ping.

@xumingming James, would you rebase in case you haven't already?

@xumingming James, would you rebase in case you haven't already?

@mbasmanova Already rebased.

Simplified isAsciiArg to use computeAndSetIsAscii directly and rebased.


[SUGGESTION] Notify - Within Radius

So I have a spawn point in my backyard because of the pond. However, what spawns is not usually something I want to be notified for (only dratini really). But I still want to catch a few of them, like slowpokes.
I don't however, want to be notified about slowpokes that are half a mile away (I do a 5 search radius to hit all of my neighborhood). A very non-essential, unimportant feature addition could be adding in a secondary notification for chosen pokemon, within a given radius. (Lets say 1 circle, or maybe 2, I would personally like it to be user defined).
If I am in the wrong by creating this suggestion, I apologize.

I would agree with this suggestion.


Unable to install on linux

Hey Sparkfuners - I am unable to install this in a few linux boxes that I tried they all fail around the gps driver:
equests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://pypi.org/simple/sparkfun-qwiic-ublox-gps/
pip or pip3 both throw the error, along with setup.py intstall.
Any help would be appreciated!
Thanks,
-Joe

I'm hitting this problem as well

Sorry about that, we were re-implementing the GPS package (due to the clock stretching issues) and the sub-module got renamed, which broke the installation. (Refer to the following commit: https://github.com/sparkfun/Qwiic_Py/commit/6fc1369283d59db989518f00248552852b339870)
(*I will be closing this issue as the installation should be working now.)


Face Estimation Landmark (model='small') does not show 5 points only 3 points

I think your imwrite and yield lines are indented one level too deep.

@ageitgey thank you sir it is working now


amqp-client version conflict between axon-amp and spring-boot-starter-amqp

With spring boot 1.5, the starter provides the amp-java api 4.0.2 while axon-amqp still includes 3.6.5
this leads to annoying problems when trying to use son message converters since the Jackson version changed internally.
idea: let axon use 4.x as well

It's already fixed on master.
Take look at this changeset: https://github.com/AxonFramework/AxonFramework/commit/98f97bcac39d8a69af8ec4b2ba7936f2457987af


FYI: e10s section can cause missing tab close icons

FYI: I have known this for a while, but did not bother tracking it down until now, while I was testing the clear scratchpad scripts
When I apply the user.js to a new profile (FF57) and restart, I get this

The close icon is not drawing properly or something. I came across the same thing when I tested resetting all the inactive prefs (I used my main everyday FF) - see https://github.com/ghacksuserjs/ghacks-user.js/tree/master/scratchpad-scripts. I have since fixed that script by removing the e10s section, which I think it best left alone - it will most likely have modified/user-set values set internally by FF.
I narrowed the issue down to these two prefs
   // user_pref("browser.tabs.remote.autostart", true);
   // user_pref("browser.tabs.remote.autostart.2", true); // (FF49+) (hidden pref)

and the solution was to set browser.tabs.remote.autostart to true and restart. However, these are inactive prefs, so I am yet to find the cause on a new profile.
I suspect it may have something to do with the fact that my nilla portable for testing has no system addons including the e10s rollout one.
So, scratchpad script is all good (just one script to go), but will investigate the new profile+user.js one later

I suspect it may have something to do with the fact that my nilla portable for testing has no system addons including the e10s rollout one.

That's exactly it. FF59 doesn't have that system addon anymore and e10s will be enabled by default.

Well, come 59 we could probably pull the e10s section (or leave it in until 61 for the ESR diehards). Still probably a good idea to leave e10s out of the clear scripts

Yeah, we could keep the prefs to change the number of processes but removing all of it is fine as well.

Still probably a good idea to leave e10s out of the clear scripts

Yes, I agree with your reasoning. ("likely set internally by FF")

Holy sh*t you're in an agreeable mood today ... should we discuss something contentious? xD

credit where credit is due :)

sorry about my not-so-nice comments about the wiki btw. I didn't mean to upset you and I didn't know that it means so much to you.
Regarding the Search engines stuff I now think we should only recommend DuckDuckGo. Based on my own experience I can no longer recommend Startpage and ixquick. I used SP for the longest time but I changed it to ixquick a couple days ago because Google is now actively censoring stuff that doesn't fit the narrative (Russia Today for example). Then yesterday I heard something about Glenn Greenwald and his alleged former involvement in the porn industry and since I'm not the kinda guy that trusts what people say without checking the sources myself, I started a search on ixquick and didn't find anything. I was almost ready to disregard what was said as pure rumours and bad-mouthing but then I decided to search with a couple other SEs and they actually found something about it. I don't know why ixquick didn't show these results but something doesn't seem quite right. Maybe they're just using shitty SEs in their searches or there's something more sinister going on with ixquick too. DDG on the other hand doesn't have any of these issues.
We could create a new Category "Further Hardening" or "Other Recommendations" and move the 2 SE pages into a single one with the links to 12bytes articles and a single recommendation to use DDG. And then move Extensions up under that new Category and maybe rename User Scripts to "User Scripts + Extension rules/filters". Then we could get rid of the empty placeholders for uMatrix, Redirector, etc. Something like this:

Other Recommendations

3.1 Extensions
3.2 Search Engines
3.3 User Scripts + Extension rules

Awww man .. I was gonna close this.
I just set up a new FF portable 57.0.1 (57.0.2 ain't out yet) with system addons and can confirm the missing close icon does not happen. I can also confirm the three suggest prefs do not get applied - will check the reverse if I only apply 0850a with the 3x850b at default which = true.

see #307


[Feature] Upgrade Dependencies

upgrade all dependencies in the package.json file (especially docusaurus core 2.2.0)

After several failed attempts, it seems that rebasing the entire repository on a freshly generated updated site is the way forward.
Ensure including dependabot to avoid such cases in the future.

Will try again tomorrow...

Had to rebuild the entire site using the presets for the latest docusaurus 2.x
Everything looks fine for now.

@SondosSaber , @MahmoudElSharkawy FYI, you will need a new fork. For you it'll be simple, just backup any .md files you're currently working on, make a new fork (or force pull) from the master branch if you're working inside the same repo. Then merge the .md files manually.
Note that I changed some file names and the menu structure.


CardNumberTextField delegate not passing CardValidationResult until all fields are filled

In the delegate function:
func cardNumberTextField(cardNumberTextField: CardNumberTextField,
                             didEnterCardInformation information: Card?,
                                                     withValidationResult validationResult: CardValidationResult?)

the CardValidationResult is only set once the CC number, expiration date and CVC code are set. The expected result is that the CardValidationResult will raise issues as they come up with every keystroke.
For example, if i am entering a CC number and enter 1111-11, on the next tap of 1, I expect that CardValidationResult will not be nil, because the text color changes to red, hinting that there is a validation issue.

Please see #9 for a fix.

works well, thanks for the fix


Adds check for SSH_AUTH_SOCK

Checks that the SSH_AUTH_SOCK env variable is set, and prompts to run
ssh-agent if not.  This should have no effect on anyone running
ocm-container locally for the most part, and provide a friendly prompt
for folks running ocm-container via ssh to another machine.
Signed-off-by: Chris Collins<EMAIL_ADDRESS>

This has no effect on an M1 Mac running podman machine, everything seems to line up properly here.
Though without the need to connect to bastions anymore I do wonder if this SSH agent passthrough functionality is even required anymore?
I won't LGTM this yet to give some time for other discussion or use cases to be tested, but I will LGTM this later this week if there's no other discussion needed for this - I have no problems with adding this and coming back to the discussions about it later.

/lgtm


migrate Schedule to ScheduleV2

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 remained the same at 81.445%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
417

Relevant Lines:
512

💛  - Coveralls


Added animated footer

Describe the project you want to add with tech stack

Adding animated footer which consists of social icons and wave animation
Expected behavior

Screenshots (optional)

Additional context (optional )

plz assign me under gssoc'23

@MohitGupta121 kindly assign this issue to me under gssoc'23

I want to work on the issue please assign it
Thank You!


Deploy Timer Trigger Function?

Do you have a function similar to the below for deploying timer triggers? I replaced the $props with a PS hashtable that defined the the Timer Trigger JSON. Then it failed on on the call to New-AzureRMResource.
https://github.com/davidebbo/AzureWebsitesSamples/blob/master/PowerShell/HelperFunctions.ps1#L367

Try simply changing the trigger to be a timer trigger. Exactly the same difference as what you see in functions.json in the two cases if you create functions from portal.
e.g. binding.json
  "bindings": [
    {
      "name": "myTimer",
      "type": "timerTrigger",
      "direction": "in",
      "schedule": "0 0 0 */3 * *"
    }
  ]

(just convert to PS syntax)

Thank you. Yeah, I tried that. The New-AzureRMResource threw an error. I'll try again.

Here is the error I get.
New-AzureRmResource : NotFound : System.IO.FileNotFoundException: Function (TimerTriggerPS) config does not exist or is invalid
   at Kudu.Core.Functions.FunctionManager.<GetFunctionConfigAsync>d__8.MoveNext()

And does the exact case I have in my sample file work for you?

Yes, that works. I'll keep digging.


chore: add metadata to partysocket for discoverability

Fixing discoverability on NPM
As of now, discoverability of the partysocket package on NPM is really poor as it won't show-up when searching for websocket and its description is not meaningful outside of PartyKit.
I tried to fix that by

filling description with the tagline from README.md
filling keywords with those used by reconnecting-websocket

Fixing pointing to source from package
In the same way, once the package is installed (or found on npmjs.com) nothing links to this repository or PartyKit's homepage.
Fixing that by adding

homepage pointing to the docs on PartyKit's homepage
bugs pointing on this repo's issues page
repository pointing to partysocket directory on this repo

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

Thanks so very much for this!


[Task]: Make anomalib PEP 561 compliant for mypy

What is the motivation for this task?
When installing anomalib as a package, mypy starts to complain about missing type stubs. Seeing that anomalib is mostly (if not fully) typed, it would be nice to make the package PEP561 compliant (currently I ignore anomalib for mypy)
Describe the solution you'd like
Make the package PEP 561 compliant. Could potentially be as easy as adding a py.typed at the root of the shipped package directory. Note that I am not an expert in building/shipping python packages, so I might also be wrong on this
Additional context
https://mypy.readthedocs.io/en/stable/installed_packages.html#creating-pep-561-compatible-packages

anomalib_Team3 working on this.

I just did an install of anomalib==0.5.0 from pypi and py.typed was not present in the anomalib folder, so it's not yet fully compliant.


Uncaught ReferenceError: err is not defined

[Enter steps to reproduce below:]

Create a coffeescript file
write some valid coffeescript & save
remove everyting inside the file (keep the file) & save

Atom Version: 1.0.7
System: Microsoft Windows 10 Pro
Thrown From: atom-compile-coffee package, v1.6.0
Stack Trace
Uncaught ReferenceError: err is not defined
At C:\Users\Admicos\.atom\packages\atom-compile-coffee\lib\atom-compile-coffee.coffee:27

ReferenceError: err is not defined
  at C:\Users\Admicos\.atom\packages\atom-compile-coffee\lib\atom-compile-coffee.coffee:27:11
  at fs.readFile.read (C:\Users\Admicos\.atom\packages\atom-compile-coffee\lib\atom-compile-coffee.coffee:16:5)
  at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:379:3)

Commands
     -2:26.2.0 core:backspace (atom-text-editor.editor.is-focused)
  2x -2:22.6.0 core:move-down (atom-text-editor.editor.is-focused)
     -2:21.7.0 core:move-up (atom-text-editor.editor.is-focused)
     -2:21.4.0 editor:select-to-beginning-of-word (atom-text-editor.editor.is-focused)
  2x -2:20.9.0 core:backspace (atom-text-editor.editor.is-focused)
     -2:20 core:move-down (atom-text-editor.editor.is-focused)
  3x -2:19.8.0 editor:move-to-beginning-of-word (atom-text-editor.editor.is-focused)
     -2:19.1.0 editor:select-to-beginning-of-word (atom-text-editor.editor.is-focused)
     -2:18.7.0 core:backspace (atom-text-editor.editor.is-focused)
     -2:16.9.0 core:move-left (atom-text-editor.editor.is-focused)
     -2:16.4.0 core:save (atom-text-editor.editor.is-focused)
     -2:03.2.0 tree-view:remove (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -1:56.7.0 core:save (atom-text-editor.editor.is-focused)
     -0:09.3.0 core:select-all (atom-text-editor.editor.is-focused)
     -0:08.7.0 core:backspace (atom-text-editor.editor.is-focused)
     -0:08.3.0 core:save (atom-text-editor.editor.is-focused)

Config
{
  "core": {
    "projectHome": "C:\\Users\\Admicos\\Projects\\GIT",
    "themes": [
      "one-dark-ui",
      "monokai-slate"
    ],
    "disabledPackages": [
      "autoflow",
      "wrap-guide",
      "background-tips",
      "bookmarks",
      "go-to-line",
      "image-view",
      "link",
      "metrics",
      "spell-check",
      "symbols-view",
      "welcome"
    ]
  },
  "atom-compile-coffee": {
    "compileBareJavascript": true
  }
}

Installed Packages
# User
atom-beautify, v0.28.11
atom-compile-coffee, v1.6.0
atom-compile-less, v0.12.0
atom-wordpress, v0.3.0
emmet-snippets-compatibility, v1.0.0
file-icons, v1.6.5
language-css, v0.33.0
language-gfm, v0.80.0
language-git, v0.10.0
language-gradle, v0.0.3
language-html, v0.41.0
language-java, v0.16.0
language-javascript, v0.88.0
language-json, v0.16.0
language-php, v0.29.0
language-todo, v0.26.0
less-compiler, v0.6.2
linter, v1.4.3
linter-bootlint, v0.0.6
linter-coffeescript, v1.0.0
linter-csslint, v1.0.5
linter-htmlhint, v0.1.1
linter-javac, v1.1.0
linter-jshint, v1.1.5
linter-jsonlint, v0.1.4
linter-less, v2.0.3
linter-lua, v1.0.0
linter-markdownlint, v1.0.1
linter-php, v1.0.3
linter-phpmd, v1.0.0
minimap, v4.12.3
minimap-git-diff, v4.1.8
minimap-highlight-selected, v4.3.0
minimap-linter, v1.0.0
minimap-selection, v4.3.0
monokai-slate, v0.5.0
wordpress-api, v1.2.1

# Dev
No dev packages

I countered the same issue and fixed it by commenting out line 27 in .atom\packages\atom-compile-coffee\lib\atom-compile-coffee.coffee.
Line 27: throw err if !content
It intentionally throws an error if the file content is empty. I'm not sure why that is necessary but there doesn't seem to be any issues without it.


URL display is wrong with multiple beamers after page refresh

Hello 👋
Describe the bug
In my app (with several beamers) and in the bottom_navigation_multiple_beamers example, I had an issue after refreshing the page. The url is updated to the wrong path.
Beamer version:
master
To Reproduce
Just refresh the page.
Here a screencast of the issue with the bottom_navigation_multiple_beamers example
Expected behavior
The path should be the same.
Desktop (please complete the following information):
Chrome 101.0.4951.64 on MacOS
Thank for your support and this great package ! 🤩

It seems the issue comes from the NotFound location use at this line in the example.
The actual implementation
/// Default location to choose if requested URI doesn't parse to any location.
class NotFound extends BeamLocation<BeamState> {
  /// Creates a [NotFound] [BeamLocation] with
  /// `RouteInformation(location: path)` as its state.
  NotFound({String path = '/'}) : super(RouteInformation(location: path));

  @override
  List<BeamPage> buildPages(BuildContext context, BeamState state) => [];

  @override
  List<String> get pathPatterns => [];
}

The implementation that works
class NotFound extends BeamLocation<BeamState> {

  NotFound([
    RouteInformation? routeInformation,
    BeamParameters? beamParameters,
  ]) : super(routeInformation, beamParameters);

  @override
  List<BeamPage> buildPages(BuildContext context, BeamState state) => [];

  @override
  List<String> get pathPatterns => [];
}

And, obviously, the  routeInformation and beamParameters should be passed by the locationBuilder.
Let me know if you have any question. I let you close the issue.

Hey @ygotthilf :wave:
Thanks for creating an issue and solving it :open_mouth:? :blue_heart:
I've also seen some strange behavior when using similar custom locationBuilders and have a feeling that it would work if BeamerLocationBuilder was used instead. I will take a closer look at the example and your solution tomorrow morning and will get back to you. If I verify that your solution solves the issue, would you be interested in making a PR?
Thanks again for everything!

@ygotthilf
This seems to be a deeper problem than NotFound implementation.
I'll need to work on this some more...

Hey @ygotthilf
This should be now fixed with https://github.com/slovnicki/beamer/commit/cc2c265a628717f636ebe9a772c48ad5eab57761


Disable periods for which no instances available

fixes #202

I tried the PR now and we need something more to improve the UX:
Disabling the links makes sense but now I see it brings some issues:

The mouse pointer still changes to a hand pointer (suggesting there is a link but nothing happens on click);
Nothing explains why the links don't work (i.e. we would have to use a tooltip for the disabled links explaning that there are no instances for that period);
We go into the group's extended view by using the default period of 24h, but it may have no instances, and then once we click in a valid link, the link to where we were is disabled which is inconsistent.
Out empty message still says no instances have registered yet, even if they have but for an older period.

I think we can use a simple fix for the moment (instead of touching many places):

Don't disable the links, just use the textSecondary color for them (so they suggest there is nothing interesting there).
Slightly change the empty message to:

No instances have registered with this group for the past PERIOD_HERE.

Instances will be shown here automatically the next time they request an update.

Updated the commit message. Will merge after CI succeeds.


Add tool to collect compilation statistics

Inspired by #9167, this tool parses the zip info of vmfb and the ninja build log to get the binary size (dispatch libraries) and the module compilation time.
There are 4 sizes to be retrieved:

Module file size
VM bytecode size in the module.
Const binary size in the module.
Total size of all dispatch libraries in the module.

The class BenchmarkCase now also parses the model name into the name and tags.

Kindly ping : )


go_away messages while connecting

Hi,
Getting go_away messages
3135663ms thread-0   net_plugin.cpp:1707           connect              ] Skipping connect due to go_away reason wrong version
3135663ms thread-0   net_plugin.cpp:1707           connect              ] Skipping connect due to go_away reason wrong version
3135663ms thread-0   net_plugin.cpp:1707           connect              ] Skipping connect due to go_away reason wrong version
3135792ms thread-0   net_plugin.cpp:838            send_handshake       ] Sending handshake generation 1 to <IP_ADDRESS>:7015
3135802ms thread-0   net_plugin.cpp:1755           operator()           ] connection failed to ctestnet.eosio.se:6602: Connection refused
3135965ms thread-0   net_plugin.cpp:1755           operator()           ] connection failed to eosbrazil.com:9873: Connection refused
Here is my config.ini relevant setting
max-reversible-block-time = -1
max-pending-transaction-time = -1
http-server-address = <IP_ADDRESS>:8888
p2p-listen-endpoint = <IP_ADDRESS>:9876
p2p-server-address = localhost:9876
access-control-allow-origin = *
I changed p2p-server-address  with server address and with IP also, but no luck

The net_plugin version code has been refactored since this issue and now uses a protocol version (instead of a git hash).  Closing this issue as no longer valid.


Existence of unused function causes launch failure for web

Steps to Reproduce

Execute flutter run on the code sample, using web
Observe that the app fails to load, with no error messages given. It's stuck on the loading screen in the attached image
Comment out the unused function
Observe that the issue does not occur.

Expected results:
The code compiles, and works correctly on an android emulator. The library that the example uses is one recommended by flutter.dev itself.
I would expect that correctly compiling, unused code should have no effect on whether the application should start.
The application can run and load on android, it appears that this issue is only for web.
Actual results:
The application hangs while loading. Flutter applications can have their web versions broken by adding an unused function that creates an instance of FakeFirebaseFirestore.

Code sample

import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:fake_cloud_firestore/fake_cloud_firestore.dart';
import 'package:flutter/material.dart'

fake() {
  return FakeFirebaseFirestore();
}

void main() async {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return Container(
      color: Colors.blue,
    );
  }
}

Logs

[  +87 ms] executing: [D:\src\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +112 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +2 ms] 135454af32477f815a7525073027a3ff9eff1bfd
[   +1 ms] executing: [D:\src\flutter/] git tag --points-at 135454af32477f815a7525073027a3ff9eff1bfd
[ +112 ms] Exit code 0 from: git tag --points-at 135454af32477f815a7525073027a3ff9eff1bfd
[        ] 3.3.10
[  +62 ms] executing: [D:\src\flutter/] git rev-parse --abbrev-ref --symbolic @{upstream}
[  +57 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{upstream}
[        ] origin/stable
[        ] executing: [D:\src\flutter/] git ls-remote --get-url origin
[  +58 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[ +119 ms] executing: [D:\src\flutter/] git rev-parse --abbrev-ref HEAD
[  +66 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[  +97 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +4 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +68 ms] executing: C:\Users\Third\AppData\Local\Android\sdk\platform-tools\adb.exe devices -l
[  +75 ms] List of devices attached
[   +8 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +6 ms] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +84 ms] Multiple devices found:
[  +43 ms] Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.21996.1]
[   +1 ms] Chrome (web)      • chrome  • web-javascript • Google Chrome 109.0.5414.75
[        ] Edge (web)        • edge    • web-javascript • Microsoft Edge 109.0.1518.55
[   +1 ms] [1]: Windows (windows)
[        ] [2]: Chrome (chrome)
[        ] [3]: Edge (edge)
[   +1 ms] Please choose one (To quit, press "q/Q")
[        ] :
[+3281 ms] 2
[  +17 ms] Skipping pub get: version match.
[  +41 ms] Found plugin cloud_firestore at C:\Users\Third\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\cloud_firestore-4.3.1\
[   +8 ms] Found plugin cloud_firestore_web at C:\Users\Third\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\cloud_firestore_web-3.2.1\
[  +17 ms] Found plugin firebase_auth at C:\Users\Third\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\firebase_auth-4.2.5\
[   +6 ms] Found plugin firebase_auth_web at C:\Users\Third\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\firebase_auth_web-5.2.4\
[   +3 ms] Found plugin firebase_core at C:\Users\Third\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\firebase_core-2.4.1\
[   +4 ms] Found plugin firebase_core_web at C:\Users\Third\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\firebase_core_web-2.1.0\
[ +128 ms] Found plugin cloud_firestore at C:\Users\Third\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\cloud_firestore-4.3.1\
[   +2 ms] Found plugin cloud_firestore_web at C:\Users\Third\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\cloud_firestore_web-3.2.1\
[  +10 ms] Found plugin firebase_auth at C:\Users\Third\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\firebase_auth-4.2.5\
[   +4 ms] Found plugin firebase_auth_web at C:\Users\Third\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\firebase_auth_web-5.2.4\
[   +2 ms] Found plugin firebase_core at C:\Users\Third\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\firebase_core-2.4.1\
[   +3 ms] Found plugin firebase_core_web at C:\Users\Third\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\firebase_core_web-2.1.0\
[  +55 ms] Found plugin cloud_firestore at C:\Users\Third\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\cloud_firestore-4.3.1\
[   +2 ms] Found plugin cloud_firestore_web at C:\Users\Third\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\cloud_firestore_web-3.2.1\
[   +6 ms] Found plugin firebase_auth at C:\Users\Third\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\firebase_auth-4.2.5\
[   +3 ms] Found plugin firebase_auth_web at C:\Users\Third\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\firebase_auth_web-5.2.4\
[   +2 ms] Found plugin firebase_core at C:\Users\Third\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\firebase_core-2.4.1\
[   +2 ms] Found plugin firebase_core_web at C:\Users\Third\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\firebase_core_web-2.1.0\
[  +78 ms] Generating D:\dev\min_bug\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[  +99 ms] Launching lib\main.dart on Chrome in debug mode...
[ +139 ms] Updating assets
[ +110 ms] Waiting for connection from debug service on Chrome...
[  +11 ms] Found plugin cloud_firestore at C:\Users\Third\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\cloud_firestore-4.3.1\
[   +2 ms] Found plugin cloud_firestore_web at C:\Users\Third\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\cloud_firestore_web-3.2.1\
[   +6 ms] Found plugin firebase_auth at C:\Users\Third\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\firebase_auth-4.2.5\
[   +2 ms] Found plugin firebase_auth_web at C:\Users\Third\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\firebase_auth_web-5.2.4\
[   +1 ms] Found plugin firebase_core at C:\Users\Third\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\firebase_core-2.4.1\
[   +3 ms] Found plugin firebase_core_web at C:\Users\Third\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\firebase_core_web-2.1.0\
[ +268 ms] <- reset
[   +7 ms] D:\src\flutter\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev D:\src\flutter\bin\cache\dart-sdk\bin\snapshots\frontend_server.dart.snapshot --sdk-root D:\src\flutter\bin\cache\flutter_web_sdk/ --incremental
--target=dartdevc --debugger-module-names --experimental-emit-debug-metadata -DFLUTTER_WEB_AUTO_DETECT=true --output-dill C:\Users\Third\AppData\Local\Temp\flutter_tools.c3c8b7bd\flutter_tool.32dce289\app.dill
--libraries-spec file:///D:/src/flutter/bin/cache/flutter_web_sdk/libraries.json --packages D:\dev\min_bug\.dart_tool\package_config.json -Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts
--track-widget-creation --filesystem-root C:\Users\Third\AppData\Local\Temp\flutter_tools.c3c8b7bd\flutter_tools.8f91a458 --filesystem-scheme org-dartlang-app --initialize-from-dill
build\b1b715402d823b7fd5c2b68d2edcb2ce.cache.dill.track.dill --platform file:///D:/src/flutter/bin/cache/flutter_web_sdk/kernel/flutter_ddc_sdk_sound.dill --verbosity=error --sound-null-safety
[  +12 ms] <- compile org-dartlang-app:/web_entrypoint.dart
[+26989 ms] Waiting for connection from debug service on Chrome... (completed in 27.3s)
[   +1 ms] Synced 39.6MB.
[        ] <- accept
[        ] Caching compiled dill
[ +625 ms] [CHROME]:
[  +41 ms] [CHROME]: DevTools listening on ws://<IP_ADDRESS>:64889/devtools/browser/8e1b0e4d-2087-4069-86ce-3a558654f7ac
[ +305 ms] DwdsInjector: Received request for entrypoint at http://localhost:64836/main_module.bootstrap.js
[   +4 ms] MetadataProvider: Loading debug metadata...
[   +7 ms] MetadataProvider: Loaded debug metadata for module: web_entrypoint.dart
[   +1 ms] MetadataProvider: Loaded debug metadata for module: web_plugin_registrant.dart
... Loads many debug metadatas
[        ] MetadataProvider: Loaded debug metadata for module: packages/fake_firebase_security_rules/src/gen/FirestoreRulesLexer.dart
[        ] MetadataProvider: Loaded debug metadata (sound null safety)
[  +20 ms] DwdsInjector: Injected debugging metadata for entrypoint at http://localhost:64836/main_module.bootstrap.js

Analyzing min_bug...

   info - The value of the local variable 'firebase' isn't used - lib\main.dart:26:11 - unused_local_variable

1 issue found. (ran in 3.0s)

[√] Flutter (Channel stable, 3.3.10, on Microsoft Windows [Version 10.0.21996.1], locale en-US)
    • Flutter version 3.3.10 on channel stable at D:\src\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 135454af32 (5 weeks ago), 2022-12-15 07:36:55 -0800
    • Engine revision 3316dd8728
    • Dart version 2.18.6
    • DevTools version 2.15.0

[√] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
    • Android SDK at C:\Users\Third\AppData\Local\Android\sdk
    • Platform android-33, build-tools 32.1.0-rc1
    • Java binary at: C:\Program Files\Microsoft\jdk-<IP_ADDRESS>-hotspot\bin\java.exe
    • Java version OpenJDK Runtime Environment Microsoft-25199 (build 11.0.12+7)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.1.4)
    • Visual Studio at D:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.1.32407.343
    • Windows 10 SDK version 10.0.19041.0

[!] Android Studio (version 2021.1)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    X Unable to determine bundled Java version.
    • Try updating or re-installing Android Studio.

[√] VS Code, 64-bit edition (version 1.73.1)
    • VS Code at C:\Program Files\Microsoft VS Code
    • Flutter extension version 3.56.0

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.21996.1]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 109.0.5414.75
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 109.0.1518.55

[√] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

Also, the scrollbar at the bottom of the loading page is doing this.

isn't that an issue with fake_cloud_firestore

@AngryVelociraptor Based on the report and above comment, it looks like an issue with third party package and not with flutter web platform. I suggest you to open this issue in dedicated repo: https://github.com/atn832/fake_cloud_firestore/issues.
Closing from here. If you disagree, write in comments and I'll reopen it.

Might be this bug is related https://github.com/firebase/flutterfire/issues/9689


Update v2.1 in README for publish profile containers

@aksm-ms why is it required to specify v2.1 explicitly?

@aksm-ms why is it required to specify v2.1 explicitly?

because it is a new tag. v2 and v2.1 are separate tags.

azure/webapps-deploy@v2 can be used for publish profile with containers web apps.


Updates website's snippet for useAsyncSchema

I'm creating this PR without an issue because it's a simply docs update
Description
The useAsyncSchema snippet at the website was the same used at the useSchema one. I've updated the snippet using the docs included at https://github.com/dotansimha/envelop/blob/main/packages/core/docs/use-async-schema.md

Thanks @danzanzini !


Error while deploying k8s

Description
I kept getting this error while trying to deploy K8s

Steps to reproduce

Choose node 124 for the master.

node 124 will not be available to be selected by the user as it's a dedicated node, but the network workload picks any random node with a public config to deploy on. So if node 124 is selected the deployment will fail.
the suggested solution is to add available_for option while filtering the access nodes

the suggested solution is applied

Devnet 2b364e9.
Deployed kubernete master on node 126 but it still failed.

Node 126 is not dedicated but from logs network contract was deploying on node 124.
playground.dev.grid.tf-1698858095293.log

the fix was done on grid client, so the changes didn't trigger the workflow. I'll trigger the deployment manually and put the issue back to verification.

Verified, Devnet.
I tried different Kubernetes deployments, and they all worked fine.


Improve Page Content when Fetching

For now the web page content is either polluted with html text, either a plain text (no tittle, links or anything).
To improve the quality of the results the goal is to manage to get a a web page content and format it in markdown. That way, OpenAI will have a better idea of what it's reading.

#18
We now have a good function to convert the HTML content of the web page into markdown.


Web - Split Bill - Displaying email address instead of user name in split detail

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:

Go to the split bill feature
Enter the amount and select a user, then click on the Split button
Open the split detail

Expected Result:
The user name should be displayed in the split detail
Actual Result:
Instead of displaying the user name, the email address is shown in the split detail
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: <IP_ADDRESS>
Reproducible in staging?: Yes
Reproducible in production?: n/a
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/93399543/e18ac51a-ae92-4555-8543-e3ca40bc32f1
https://github.com/Expensify/App/assets/93399543/869aaaa4-b832-4b78-a7f4-eaee81472b86
Expensify/Expensify Issue URL:
Issue reported by: @ayazhussain79
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1686216389868629
View all open jobs on GitHub

Proposal
Please re-state the problem that we are trying to solve in this issue.
On Split detail displaying email address instead of user name in split detail
What is the root cause of that problem?
The problem stems from the "OptionListUtils.js" file, specifically within the "getIOUConfirmationOptionsFromPayeePersonalDetail" function. The displayName variable is empty in this function, resulting in the addition of email addresses instead of user names.
What changes do you think we should make in order to solve the problem?
To resolve this issue, we suggest making the following changes in the "getIOUConfirmationOptionsFromPayeePersonalDetail" function:

Add the user name to the displayName variable. If the first name and last name are not empty, concatenate them and assign the value to displayName.
Utilize the trim function to remove any leading or trailing spaces in the displayName variable to ensure clean display.

What alternative solutions did you explore? (Optional)
NA

Proposal
Please re-state the problem that we are trying to solve in this issue.
Split Bill shows email address instead of user name in split detail page for payee. Aditionally, the avatar is also wrong for payee.
What is the root cause of that problem?
The root cause is that we use getIOUConfirmationOptionsFromPayeePersonalDetail for getting details of payee.
https://github.com/Expensify/App/blob/2a1c36d5bea964ee92ebfad11f92d8a22bbb7e4c/src/libs/OptionsListUtils.js#L811-L825
While, for other participants, we use getIOUConfirmationOptionsFromParticipants -
https://github.com/Expensify/App/blob/2a1c36d5bea964ee92ebfad11f92d8a22bbb7e4c/src/libs/OptionsListUtils.js#L834-L838
In OptionRow we show user name using fullTitle which is passed this.props.option.text -
https://github.com/Expensify/App/blob/2a1c36d5bea964ee92ebfad11f92d8a22bbb7e4c/src/components/OptionRow.js#L211-L213
But as we can see in getIOUConfirmationOptionsFromPayeePersonalDetail, we don't set text. In participants it is present since we don't change the participant object, we just add the amount to it.
This text prop is actually part of personalDetail in getIOUConfirmationOptionsFromPayeePersonalDetail but it is removed from there in this function and a new object is returned.
What changes do you think we should make in order to solve the problem?

We should not change the personalDetail prop in getIOUConfirmationOptionsFromPayeePersonalDetail, instead we should follow the same approach followed in getIOUConfirmationOptionsFromParticipants and just add the amount in the field descriptiveText.
To follow DRY, we can -

Either remove one function and change the other's name and body so that it works for an array in case of participants and for a single element in case of payee.
Change the function getIOUConfirmationOptionsFromPayeePersonalDetail to just return personalDetail object with a new field descriptiveText for amount. And then, we can reuse this function for participants. We can name this in a generic way so that it doesn't specify payee/participants.

What alternative solutions did you explore? (Optional)
NA

Proposal
Please re-state the problem that we are trying to solve in this issue.
Split Bill shows email address instead of user name in split detail page for payee. Aditionally, the avatar is also wrong for payee.
What is the root cause of that problem?
The participants in SplitBillDetailsPage use the function below to fetch participants which are then filtered to get payeePersonalDetails and participantsExcludingPayee. As you can see, we set text to displayName here but the key displayName is not part of object that is returned.
https://github.com/Expensify/App/blob/2a1c36d5bea964ee92ebfad11f92d8a22bbb7e4c/src/libs/OptionsListUtils.js#L213-L232
These are passed to MoneyRequestConfirmationList in SplitBillDetailsPage -
https://github.com/Expensify/App/blob/fa5e5509d28123fe8676ef2749ad41900e0536b3/src/pages/iou/SplitBillDetailsPage.js#L84-L94
Now inside MoneyRequestConfirmationList, we use getIOUConfirmationOptionsFromPayeePersonalDetail for getting details of payee with amount, in line 815 we try to set displayName to text but displayName is not available as text was set to displayName in getParticipantsOptions line 218.  So email is used as the fallback is personalDetail.login in line 815.
https://github.com/Expensify/App/blob/2a1c36d5bea964ee92ebfad11f92d8a22bbb7e4c/src/libs/OptionsListUtils.js#L811-L825
It is correct for other participants, because for other participants, we use getIOUConfirmationOptionsFromParticipants which doesn't change participant and only adds amount -
https://github.com/Expensify/App/blob/2a1c36d5bea964ee92ebfad11f92d8a22bbb7e4c/src/libs/OptionsListUtils.js#L834-L838
In OptionRow we show user name using fullTitle which is passed this.props.option.text which is wrong for payee -
https://github.com/Expensify/App/blob/2a1c36d5bea964ee92ebfad11f92d8a22bbb7e4c/src/components/OptionRow.js#L211-L213
What changes do you think we should make in order to solve the problem?

We should not change the personalDetail prop in getIOUConfirmationOptionsFromPayeePersonalDetail, instead we should follow the same approach followed in getIOUConfirmationOptionsFromParticipants and just add the amount in the field descriptiveText.
To follow DRY, we can -
Change the function getIOUConfirmationOptionsFromPayeePersonalDetail to just return personalDetail object with a new field descriptiveText for amount. And then, we can reuse this function for participants. We can name this in a generic way so that it doesn't specify payee/participants.
function getIOUConfirmationOptionFromSingleParticipant(participant, amountText) {
    return {
        ...participant,
        descriptiveText: amountText,
    };
}

Now, we can use this function for payee and in getIOUConfirmationOptionsFromParticipants we can reuse the new function above.
What alternative solutions did you explore? (Optional)
NA

Before and after comparison

Before -
https://github.com/Expensify/App/assets/31413407/a425ed2e-0196-4538-bd86-1a4a67312498
After -
https://github.com/Expensify/App/assets/31413407/718688a1-e5a3-4303-a2a5-0d2895a7e3a1

This is a dupe of https://github.com/Expensify/App/issues/20118. There is already a PR going on to fix this


SEO Optimize for 'Pulumi Insights' Keyword

We want to differentiate the title tags for the docs, product, and blog pages. Here's the current breakdown of title tags:

Product page: Pulumi Insights
Docs page: Pulumi Insights
Blog post: Pulumi Insights: Intelligence for Cloud Infrastructure

Could we please make the following updates to title tags:

Product page: Pulumi Insights: Intelligence for Infrastructure as Code
Docs page: Pulumi Insights Overview
Blog post: Announcing Pulumi Insights: Intelligence for Cloud Infrastructure

FYI @susanev

@lindsaymarolich do we need to say page or post in these? can we just do Product:, Docs:, Blog:?

on nevermind, i misread this. looks good


Malformed URL for downloading BioPAX model

Get some network using more than one gene name and then scroll down to click on "Download" -> Network(BioPAX).
It then tries with the malformed query URL, e.g.,
http://www.pathwaycommons.org/pc2//graph?source=SMAD3,MTOR,BRCA2&kind=neighborhood&format=BIOPAX

Whereas, this should be:
http://www.pathwaycommons.org/pc2//graph?source=SMAD3&source=MTOR&source=BRCA2&kind=neighborhood

(&format=BIOPAX is optional in this case too)

Hey everyone! Please update PCViz instances that we (PC) have at pathwaycommons.org/pcviz/ and sanderlab.org/pcviz/ and the BioJs component!


Packaged and updates charts.

Resolves https://github.com/kubernetes-sigs/federation-v2/issues/701
Currently uses repo as a base. Consider using Github pages or an existing bucket to host the chart? If so, before the merge, the chart would need to be updated with the new endpoint.

@sfxworks I've released v0.0.8 and proposed a corresponding PR that adds the repo index.  Please update this PR to reflect the new location of the repo index (charts instead of charts/federation-v2).

Updated PR based on comments.

Reviewed and reupdated PR based on comments.

@sfxworks Thank you for responding to my comments.  Please squash to a single commit and add back charts/federation-v2/Chart.yaml.

Readded and squashed! 👍

Readded and squashed 👍

Closing in favor of #793


Clean up: small improvements

Fix incorrect example code in the readme (fixes #98)
Improve error message to point to the .servicex file so user knows what to look at (fixes #113)
Fix up cached query error so user better understands what went wrong (fixes #99)
Improve docs around creating a .servicex file

Small improvments - like better error messages, etc.


Update huawei_vrp.yaml to support configuration functions

Changed the privilege-levels name for system-view to configuration and the name to configuration to work seamlessly with existing functions.
Also added special characters that's common in the NE40 VRP platform to match prompt more consistently.
Have tested this on my end towards actual routers and it seems to work fine.

I wont merge this because this would break things for whoever is using "system-view". you are more than welcome to load your own platforms anyway, so you dont need this merged in order to use it. if / when there is a 1.0 and there is consensus from at least a handful of Huawei users about what the "right" (obviously this is subjective!) privilege levels are we can set stuff however the general group wants at that time.

Totally fair.
I have another thought on how you might be able to solve this for this case and other potential future cases as well, but that probably involves bigger changes, but I'll just throw this idea out here.
Instead of looking for the specific privilege level called "configuration" can you add another field in the yamls that's called something like: " default-configuration-privilege-level: 'system-view' " and use that specified privilege level for configurations. This will make other systems that have different "names" for these views work as well, making the system a bit more agnostic.
This is just a thought, you do as you will with it :)

However the extra special characters in the regex is probably good to add, since it can't find the prompt without them.

yeah that sounds good to me -- if ya wanna update this one or close this one and make a new pr w/ that we can for sure get that merged.

have another thought on how you might be able to solve this for this case and other potential future cases as well

yeah, this is a pretty good idea. we can for sure keep this in mind for a future 1.0 kinda thing if/whenever that happens!

seems configuration is not support in all platform. it's totally a breaking change and not compatible for huawei products

sounds good. ill close this then. if you wanna add a pr to expand the pattern as you mentioned before that would be most welcome. thanks @wangxin688 !


Feat implement backup to storage deno

Fixes #1902

I have created the whole process of creating CSV files but I am unable to push to storage. I couldn't find how to convert to binary data. @Meldiron If you can help it will be great.

@aggmoulik  closing this PR for now since there has been no activity in quite a long time. Feel free to reopen it when you're ready to start working on it once again. 🙂


How to install beaconcontrol

I'm familiar with installing various application but I'm new to rubyonrails installation. The installation steps is not clear to me. Can you guide me on how to install beaconcontrol via shell on ubuntu or centos? Many thank in advance.

did you see the documentation?

I am getting lots or errors
when i tried bin/setup
An error occurred while installing pg (0.18.4), and Bundler cannot
continue.
Make sure that gem install pg -v '0.18.4' succeeds before bundling.


[joss] retworkx namespace is not clean

Information

retworkx version: 0.10.2

What is the current behavior?
The retworkx namespace contains things that do not belong to retworkx. These show up when using auto-completion (type retworkx., tab), which is a usual way to interactively explore the library. It would be nice to make sure that only those things show up which are actually means to be public retworkx symbols.
For example, rewtorkx.sys and retworkx.functools should probably not be present.

This is unfortunately an aspect of how python works and is not something we can really fix in retworkx. To make retworkx work we need to import some python standard library modules in the root of the package (in this case sys to add our generators submodule to the proper path and functools to do the dispatch for universal functions). The way python import works those imports get set as attributes on the module (which is itself a python object). So whichever tool you're using for tab completion (I assume jedi) is looking at the attribute lists on that module object (i.e. doing dir(retworkx)) and it's listing all of those local import attributes. You can see this in other libraries too, for example numpy if you run dir(numpy) or tab complete on it you'll see there are also things there like numpy.sys and numpy.warnings which are the standard library modules sys and warnings.

Thanks for the explanation and feel free to close this issue. I am far from a Python expert.


[WIP] Eval #597 and add unit test

Hello @holgern! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file skopt/utils.py:

Line 532:1: W293 blank line contains whitespace
Line 535:1: W293 blank line contains whitespace


Remove generic methods from ILogSink.

What does the pull request do?
Part of the push to remove generic virtual methods from Avalonia for performance reasons. Although this PR shouldn't affect performance, it will probably improve AOT compilation times slightly.
Generic methods were added to this interface in #3055 to prevent boxing before we added Logger.TryGet (#4135).
Given that since we added Logger.TryGet, only enabled logging levels will result in a call to the logger, we can move back to using params object[] and boxing; removing the generic interface methods.
Ran a few benchmarks and as expected this has no affect on performance in release mode as logging should not be enabled there.
Breaking changes
ILogSink has changed.

You can test this PR using the following package version. 0.10.999-cibuild0020221-beta. (feed url: https://nuget.avaloniaui.net/repository/avalonia-all/index.json) [PRBUILDID]

You can test this PR using the following package version. 0.10.999-cibuild0020245-beta. (feed url: https://nuget.avaloniaui.net/repository/avalonia-all/index.json) [PRBUILDID]


www/nginx: IP ACL empty on nginx.conf

With IP ACL defined and enabled in WebGUI, and assign it to a Location
there is only # IP ACL entry in the nginx.conf

It works on my machine - did you configure some rules?

I don't understand your question exactly. (roll on what ?)
To the understanding ....when i set IP ACL on HTTP Server the entries are shown in the nginx.conf

I also have this issue. I will attempt to find the root cause.
I am using 19.1.10 (I just saw there is 19.7 available, I'll upgrade to latest ASAP and report back if bug is still present).
I created a dummy IP ACL with default: deny and added an IP address to the allow list (e.g. <IP_ADDRESS>)
I created a dummy location for / and added the IP ACL to the location. (I tried both with and without a upstream assigned - same result each time)
I created a dummy http server and added the dummy location to it.
When I clicked "generate nginx.conf" from the UI, my resulting location does not have any entry under the IP ACL:
location  / {
    BasicRule wl:19;
    DeniedUrl "/waf_denied.html";
        # IP ACL
    autoindex off;
    http2_push_preload off;
    proxy_set_header Host $host;
    proxy_set_header X-TLS-Cipher $ssl_cipher;
    proxy_set_header X-TLS-Protocol $ssl_protocol;
    proxy_set_header X-TLS-SNI-Host $ssl_server_name;
    # proxy headers for backend server
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header X-TLS-Client-Intercepted $tls_intercepted;
    proxy_ignore_client_abort off;
    proxy_request_buffering on;
    proxy_max_temp_file_size 1024m;
    proxy_buffering on;
    proxy_pass http://upstreamd2be59635f4b4474865ac9e8f358e745;
    proxy_hide_header X-Powered-By;

can you run configctl template reload OPNsense/Nginx on cli to see if it has an error?

root@ah-fw-01:/ # configctl template reload OPNsense/Nginx
OK

Still the issue.....
location  /api {
    BasicRule wl:19;
    DeniedUrl "/waf_denied.html";
        # IP ACL
    autoindex off;
    http2_push_preload off;
    proxy_set_header Host $host;

I have added my IP ACL to any location again and ran that command. Gives no error, says "OK" as only output. IP ACL actually has an IP ACL entry for this location. Except, its not the correct entry. And no matter what IP ACL entry I set my location to, running configctl again does not change what gets put into the nginx config file.

Just tested again
Apparently, it looks that way now.

If an IP ACL is set in the HTTP server, it is inherited to the location IP ACL...
even if a different rule is set for the location.

If an IP ACL is only set in the location block, it does not appear at all

That's consistent with what I'm seeing. Thanks for tracking that down, @Oxima69 !

Seems like this is the cause: https://github.com/opnsense/plugins/blob/10727e31029e3138573345620b3688b3f29c30ee/www/nginx/src/opnsense/service/templates/OPNsense/Nginx/location.conf#L46

Ok, @fabianfrz . Because I really wanted this functionality, I have done the work to make a new package that I can confirm DOES work:

Note: I have NO IDEA how we do code tests because that was not mentioned in the workflow document. Steps take to create a new package and test it:

Install OPNSense to a new VM (I use hyper-V on windows 10v1909 pro). Install via SSH due to bug
pkg install git
git clone https://github.com/opnsense/plugins.git
cd plugins/www/nginx
nano src/opnsense/service/templates/OPNsense/Nginx/location.conf
Make needed change to line 46 (set to location.ip_acl instead of server.ip_acl) and exit
make package
pkg install work/pkg/os-nginx-devel-1.17.txz
Go to GUI, bypass wizard, go to nginx plugin, enable nginx
Create 2 IP ACLs (one with a <IP_ADDRESS> allow called 'serverACL', one with a <IP_ADDRESS> allow called 'locationACL')
Create a new location and apply the IP acl to it
Create a new http server and apply the location to the server
Click the 'build nginx.conf' gui button
Verify that the file at /usr/local/etc/nginx/nginx.conf only contains 1 # IP ACL block and that it contains the locationACL with <IP_ADDRESS>
Edit the HTTP server and add the siteACL
Click the 'build nginx.conf' gui button
Verify that the file at /usr/local/etc/nginx/nginx.conf only contains 2 # IP ACL blocks and that the server one contains <IP_ADDRESS> and that the location one still contains <IP_ADDRESS>
Success!

I hope that this comment will serve as a guide to anyone who wants to make changes to a plugin and test. I will now go submit the PR for this plugin.

PR: https://github.com/opnsense/plugins/pull/1653
How long after this PR gets approved will it take before @Oxima69 will be able to use the updated plugin? Should he build the same himself? Should I post my pkg somewhere and have him download+install (if he wants it)?

@Szeraax the fastest way is to use the OPNsense patch utility. You can pass your user repository to apply it. Since there was no release over the holidays I think there will be one soon and if that get accepted it will be included.

merged. Execute the following command to apply the patch:
opnsense-patch -c plugins 0b3b0be

is now working as expected !
thank you


Keeps showing "Roles are being retrieved from Kubernetes"

I get this on my GKE cluster:

Refreshing doesn't make it go away.
My kubectl works fine against the cluster at the moment.
I tried adding "-v 10" flag to get some logs, but didn't get anything.

Looks like a very cool plugin, waiting to try this out! 🙌

The loading can take several minutes, but there is also a bug where it does not check the KUBECONFIG env variable.
Can you give me details on your OS and where the kubeconfig is located?  Is there any output on the cli when you run the command, after waiting a few minutes?

This should be resolved for KUBECONFIG in #17


There should always be at least 1 piece of food.

In the discussions that led to #2 we agreed that having n(snakes)-1 food items seemed like a good way to force some competition. To get started let us just ensure 1 piece of food available.

Resolved at https://github.com/sirpent-team/sirpent-rust/commit/a03f916d611a813cda0ff29c82c10f504302f0cc#diff-42004c8854a106d9164860f21a76de45R182


Add help text for new System namespace option.

@Azrael808 if this is something that you'll use in the Infrastructure repo, then you could setup a rule for that too in these commands. See where $repo is being used and follow the pattern.
Thinking about this it looks like there is some repetition in these scripts. A downside of having separate subcommand scripts. At the same time I think we could probably extract the duplication into a libexec/cplus-param/_common file that could be automatically sourced by libexes/cplus before executing a subcommand. I suspect we would also need to add exceptions in cplus-commands and cplus-help. No need to deal with this now unless you're inclined to.


copr: Add more metrics for waiting stages

Signed-off-by: Breezewish<EMAIL_ADDRESS>
What problem does this PR solve?
Problem Summary:
Now we are not able to know the details of waiting stages.
What is changed and how it works?
What's Changed:
This PR adds more metrics for coprocessor waiting stages.
Related changes

Need to cherry-pick to the release branch

Check List
Tests

Manual test (WIP)

Release note

/run-all-tests

/bench +tpch +sysbench +tpcc

/run-all-tests

/bench +tpch

/merge

/merge


NOTE: the Wordnik wordlist does not include proper names, acronyms or abbreviations, or phrases.

NOTE: the Wordnik wordlist does not include proper names, acronyms or abbreviations, or phrases.
Add one word per line. Use {} to enclose any comments.
(example word—remove before committing)
splendiferazing {blend of splendiferous and amazing}
Originally posted by @jaderaejackson in https://github.com/wordnik/wordlist/issues/6

Hi! This is a great word, but it's not standardized enough to include in our games wordlist. I suggest you leave a comment defining it here, instead: https://www.wordnik.com/words/splendiferazing#discuss


How can I encode/decode an .rgb file or a .yuv file, please?

I tried to encode an .yuv file into .bin file, but I got the error.
the command I used is:
python ./codec.py encode ./dataset/video1_1.rgb --num_of_frames 1 --model bmshj2018-factorized --metric mse -q 1 -o ./test_rgb.bin --cuda

and I got the following error:
Traceback (most recent call last):
  File "./codec.py", line 608, in <module>
    main(sys.argv[1:])
  File "./codec.py", line 602, in main
    encode(argv)
  File "./codec.py", line 560, in encode
    _encode(
  File "./codec.py", line 381, in _encode
    out = encode_func[codec_type](input, codec_info, output)
  File "./codec.py", line 265, in encode_image
    img = load_image(input)
  File "./codec.py", line 105, in load_image
    return Image.open(filepath).convert("RGB")
  File "/root/miniconda3/lib/python3.8/site-packages/PIL/Image.py", line 3283, in open
    raise UnidentifiedImageError(msg)
PIL.UnidentifiedImageError: cannot identify image file './dataset/video1_1.rgb'

Then, I turned to encode a .yuv file by using:
python ./codec.py encode ./all_yuv/video1_1.yuv --num_of_frames 1 --model bmshj2018-factorized --metric mse -q 1 -o ./test_yuv.bin --cuda

and I got:
Traceback (most recent call last):
  File "./codec.py", line 604, in <module>
    main(sys.argv[1:])
  File "./codec.py", line 598, in main
    encode(argv)
  File "./codec.py", line 556, in encode
    _encode(
  File "./codec.py", line 382, in _encode
    out = encode_func[codec_type](input, codec_info, output)
  File "./codec.py", line 258, in encode_image
    org_seq = RawVideoSequence.from_file(input)
  File "/root/miniconda3/lib/python3.8/site-packages/compressai/datasets/rawvideo.py", line 292, in from_file
    info = get_raw_video_file_info(filename)
  File "/root/miniconda3/lib/python3.8/site-packages/compressai/datasets/rawvideo.py", line 169, in get_raw_video_file_info
    if info["bitdepth"] and info["bitdepth2"] and info["bitdepth"] != info["bitdepth2"]:
KeyError: 'bitdepth'

could you please figure that how can I encode/decode an .rgb file or a .yuv file?
Thank you very much.

Please check get_raw_video_file_info mentioned in the error. .yuv raw files don't contain any header to indicate resolution, bitdepth etc, so we usually try to include that in the filename which we parse.

@fracape thank you very much.

And another question is, if I wanted to encode an .rgb file directly, why I would get the afore mentioned error?
the command I used is:
python ./codec.py encode ./dataset/video1_1.rgb --num_of_frames 1 --model bmshj2018-factorized --metric mse -q 1 -o ./test_rgb.bin --cuda
and I got the following error:
Traceback (most recent call last):
File "./codec.py", line 608, in
main(sys.argv[1:])
File "./codec.py", line 602, in main
encode(argv)
File "./codec.py", line 560, in encode
_encode(
File "./codec.py", line 381, in _encode
out = encode_func[codec_type](input, codec_info, output)
File "./codec.py", line 265, in encode_image
img = load_image(input)
File "./codec.py", line 105, in load_image
return Image.open(filepath).convert("RGB")
File "/root/miniconda3/lib/python3.8/site-packages/PIL/Image.py", line 3283, in open
raise UnidentifiedImageError(msg)
PIL.UnidentifiedImageError: cannot identify image file './dataset/video1_1.rgb'

I don't know what .rgb is, we rely on PIL to read images, please look at their doc to check supported formats.

.rgb may refer to a .sgi file.
https://en.m.wikipedia.org/wiki/Silicon_Graphics_Image
Perhaps convert your sgi file to a more typical lossless format (e.g. PNG) via imagemagick. Alternatively, PIL may support sgi via a plugin: https://www.google.com/search?q=pil sgi

I think @YodaEmbedding's suggestion is safest. Closing for now


Add Bellman Ford (Python)

Bellman Ford is a graph traversal algorithm. Do enhance the repo by the python version of Bellman Ford!
The working branch should be python
The branch can be found here
The changes should be in /Graph Theory/Bellman Ford
Happy Open-Sourcing!

@ekdnam please assign this to me

Can I do this?

Sure. We are not assigning here right now. Go ahead and make a PR!


Updates for more generic discovery.

I have a ton of devices on my network so I'm trying to make this more generic.  Makes sure we search out just the players (I have a bridge).  Also adds some auto discovery for your local ip.  I need to test it on my raspberry pi to validate it (working on my osx laptop).  If you don't wanna merge this let me know I'll just keep my fork alive maybe rename it.  Gonna do some general cleanup too on this one.

Ya I wasn't considering windows at all as a valid target. I'll consider it
and either update or close the pr. Agree on prim_inet haven't had time to
figure out an alt
On Fri, Jan 6, 2017 at 6:01 PM Doug<EMAIL_ADDRESS>wrote:
@harmon25 requested changes on this pull request.
Thanks for the additions!
Got some feedback for ya...
I have done some development for this on Windows - is not really intended
to be deployed on Windows - but prefer it to be cross platform -
Win/Linux/OSX
The get_ip/0 function is going to fail for sure on Windows.
Also not keen on the use of :prim_inet as it is an internal erlang module, not
really supposed to be used
http://stackoverflow.com/questions/13187682/what-is-the-difference-between-gen-tcprecv-and-prim-inet-recv
...
Windows is what held me up on the auto ip selection stuff...alot easier to
do on *nix but making it work cross platform is a bit trickier...
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/harmon25/sonex/pull/2#pullrequestreview-15583478, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAEGHx0_BWOnR4DySgewU9yxt8SkZlkIks5rPsfbgaJpZM4LTI5p
.
--
Sent from Gmail Mobile

:inet has the same api.  I'll have to see if i wanna support windows since i have no access to a windows machine, so i'd have to find a decent vm..

This is the output from :inet.getifaddrs/0 on a Windows 10 laptop.
There are some  VirtualBox virtual interfaces there, why the list is so long...
Testing again with <IP_ADDRESS> as IP...hope it works.
Does not seem to be an elegant way to automagically choose the interface that the sonos players will be on.
On a raspberry pi, good chance i would use it with a wireless adapter - so the interface would be wlan0 not eth0... on *nix systems passing the interface name as a config param may be an option..but that is a mess on windows...
{:ok,
 [{'\\DEVICE\\TCPIP_{8FA98441-B91C-452F-A285-44619B9CDF7D}',
   [flags: [:up, :broadcast, :multicast],
    addr: {65152, 0, 0, 0, 43203, 29660, 26433, 44437},
    netmask: {65535, 65535, 65535, 65535, 0, 0, 0, 0}, addr: {192, 168, 137, 1},
    netmask: {255, 255, 255, 0}, broadaddr: {192, 168, 137, 255},
    hwaddr: [40, 210, 68, 114, 124, 246]]},
  {'\\DEVICE\\TCPIP_{BC973ECD-5FAD-4E9C-9B9C-86D26AE08435}',
   [flags: [:up, :broadcast, :running, :multicast],
    addr: {65152, 0, 0, 0, 62829, 28471, 39173, 56788},
    netmask: {65535, 65535, 65535, 65535, 0, 0, 0, 0}, addr: {192, 168, 56, 1},
    netmask: {255, 255, 255, 0}, broadaddr: {192, 168, 56, 255},
    hwaddr: [10, 0, 39, 0, 0, 21]]},
  {'\\DEVICE\\TCPIP_{2634A632-84BD-4489-A7B5-6EEFDC745A58}',
   [flags: [:up], addr: {65152, 0, 0, 0, 42165, 28026, 9786, 35279},
    netmask: {65535, 65535, 65535, 65535, 0, 0, 0, 0},
    addr: {169, 254, 137, 207}, netmask: {255, 255, 255, 255},
    hwaddr: [124, 122, 145, 182, 240, 24]]},
  {'\\DEVICE\\TCPIP_{E0952B0E-59CF-4EDD-86C9-64FECD14568C}',
   [flags: [:up], addr: {65152, 0, 0, 0, 35313, 2552, 9727, 60681},
    netmask: {65535, 65535, 65535, 65535, 0, 0, 0, 0}, addr: {169, 254, 237, 9},
    netmask: {255, 255, 255, 255}, hwaddr: [126, 122, 145, 182, 240, 24]]},
  {'\\DEVICE\\TCPIP_{BD6F7A52-2D4E-4BD7-BEA7-1B002FB187BF}',
   [flags: [:up], addr: {65152, 0, 0, 0, 25677, 42706, 44750, 5609},
    netmask: {65535, 65535, 65535, 65535, 0, 0, 0, 0},
    addr: {169, 254, 21, 233}, netmask: {255, 255, 255, 255},
    hwaddr: [126, 122, 145, 182, 240, 23]]},
  {'\\DEVICE\\TCPIP_{DA6C13EC-EEA3-476E-BE07-89F09DB54F20}',
   [flags: [:up, :broadcast, :running, :multicast],
    addr: {65152, 0, 0, 0, 12305, 43005, 21017, 60251},
    netmask: {65535, 65535, 65535, 65535, 0, 0, 0, 0}, addr: {192, 168, 19, 1},
    netmask: {255, 255, 255, 0}, broadaddr: {192, 168, 19, 255},
    hwaddr: [0, 80, 86, 192, 0, 1]]},
  {'\\DEVICE\\TCPIP_{3822E0AC-9D95-4BAC-B6F0-F3CE165D02FC}',
   [flags: [:up, :broadcast, :running, :multicast],
    addr: {65152, 0, 0, 0, 28812, 227, 39921, 56532},
    netmask: {65535, 65535, 65535, 65535, 0, 0, 0, 0}, addr: {192, 168, 234, 1},
    netmask: {255, 255, 255, 0}, broadaddr: {192, 168, 234, 255},
    hwaddr: [0, 80, 86, 192, 0, 8]]},
  {'\\DEVICE\\TCPIP_{762D8327-EF3F-4FA5-ABD4-A7B3D6CE8545}',
   [flags: [:up, :running], addr: {65152, 0, 0, 0, 8368, 36305, 41673, 54008},
    netmask: {65535, 65535, 65535, 65535, 0, 0, 0, 0}, addr: {192, 168, 0, 149},
    netmask: {255, 255, 255, 0}, hwaddr: [124, 122, 145, 182, 240, 23]]},
  {'\\DEVICE\\TCPIP_{66C6661A-92FA-4A74-9691-B4E5C92A74CC}',
   [flags: [:up, :broadcast, :multicast],
    addr: {65152, 0, 0, 0, 24911, 10631, 41038, 39191},
    netmask: {65535, 65535, 65535, 65535, 0, 0, 0, 0},
    addr: {169, 254, 153, 23}, netmask: {255, 255, 255, 255},
    broadaddr: {169, 254, 153, 23}, hwaddr: [124, 122, 145, 182, 240, 27]]},
  {'\\DEVICE\\TCPIP_{EDBA3988-5DBE-11E6-8832-806E6F6E6963}',
   [flags: [:up, :loopback, :running], addr: {0, 0, 0, 0, 0, 0, 0, 1},
    netmask: {65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535},
    addr: {127, 0, 0, 1}, netmask: {255, 0, 0, 0}]},
  {'\\DEVICE\\TCPIP_{D3129A8E-9D95-4F75-AD3F-D9DA3B3F7AB9}',
   [flags: [:up], addr: {65152, 0, 0, 0, 0, 256, 127, 65534},
    netmask: {65535, 65535, 65535, 65535, 0, 0, 0, 0},
    hwaddr: [0, 0, 0, 0, 0, 0, 0, 224]]},
  {'\\DEVICE\\TCPIP_{F45556FD-12D0-4764-8B77-9D121D0F8FDD}',
   [flags: [:up], addr: {65152, 0, 0, 0, 0, 24318, 49320, 14337},
    netmask: {65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535},
    hwaddr: [0, 0, 0, 0, 0, 0, 0, 224]]},
  {'\\DEVICE\\TCPIP_{5972CCAF-F287-4987-9D67-4B1FE5C4CEF4}',
   [flags: [:up], addr: {65152, 0, 0, 0, 0, 24318, 49320, 149},
    netmask: {65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535},
    hwaddr: [0, 0, 0, 0, 0, 0, 0, 224]]},
  {'\\DEVICE\\TCPIP_{37BEC0D6-A57F-4247-AD7A-BDFE61128A78}',
   [flags: [:up], addr: {65152, 0, 0, 0, 0, 24318, 49320, 59905},
    netmask: {65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535},
    hwaddr: [0, 0, 0, 0, 0, 0, 0, 224]]},
  {'\\DEVICE\\TCPIP_{2387180C-C721-496E-8E74-310894B47082}',
   [flags: [:up], addr: {65152, 0, 0, 0, 0, 24318, 49320, 4865},
    netmask: {65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535},
    hwaddr: [0, 0, 0, 0, 0, 0, 0, 224]]}]}

Ya it gets funky. en0 is my mac. i have my pi wired in right now so it's eth0.  so there's this crazy case tree.  what prolly is better is if the config has a value use it. if the config doesn't then try the common cases and if they fail bail out and tell the user to configure it.

take a look at master - am testing with <IP_ADDRESS> as the listen addr, which uses all interfaces i presume...
Am not having a timeout issue it appears, but maybe that was on linux or something that i noticed that issue before...
If it works with <IP_ADDRESS> we dont need to worry about selecting a specific IP..

Ya I was having all kinds of issues with master and 0.0. It would make
sense for 0.0 to work I'll test that again.
On Sat, Jan 7, 2017 at 7:14 PM Doug<EMAIL_ADDRESS>wrote:

take a look at master - am testing with <IP_ADDRESS> as the listen addr, which
uses all interfaces i presume...
Am not having a timeout issue it appears, but maybe that was on linux or
something that i noticed that issue before...
If it works with <IP_ADDRESS> we dont need to worry about selecting a specific
IP..
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/harmon25/sonex/pull/2#issuecomment-271119673, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAEGH1qpsbSX4bXQvtGA5O1pcTEmUt33ks5rQCpWgaJpZM4LTI5p
.
--
Sent from Gmail Mobile

So ya now <IP_ADDRESS> works. I bet you were having the same issue as me that was intermittent since udp is not guaranteed.  When devices were responding to discovery that it wasn't expecting it was just saying "screw it!" and bailing, which would be fine if it didn't nuke all discovery but in this case did.  In my case my Unbiquiti routers respond right away (1hop) so it blew up lots and prolly just appeared to work by ignoring things in certain cases.   Now the discovery looks for only players (needs more work to look for devices vs players).  might be better if i break this down into smaller pr's and issues so it's clear what things are solved vs still in a funky state.  Master just doesn't work at all for me on my mac or my Pi.

Remembered why the IP is necessary...
When subscribing to updates from a player, need to send it a URL to post subscription updates too...so need hosts IP in order to tell a Sonos devices where to post back SubData.
Test out the newest changes to master on OSX, will need to change config to:
config :sonex,
    dlna_listen_addr: nil,
    dlna_listen_int: "en0"

I tested on Debian using "eth0" as dlna_listn_int, should also work for wlan0 or something if using WiFi would think...

Ya that makes sense. I wanted less configure cause I'm using sonex in a
bigger home automation project width echos, google home etc so I wanted to
minimize setup. But I can port the auto detection to my config... kinda
thinking out loud here so sorry if it's spammy. I can update or tomorrow
for that if you haven't updated yet
On Sun, Jan 8, 2017 at 9:43 PM Doug<EMAIL_ADDRESS>wrote:

Remembered why the IP is necessary...
When subscribing to updates from a player
https://github.com/harmon25/sonex/blob/master/lib/sonex/subscriptions/sub_mngr.ex#L89,
need to send it a URL to post subscription updates too...so need hosts IP
in order to tell a Sonos devices where to post back SubData.
Test out the newest changes to master on OSX, will need to change config
to:
config :sonex,
dlna_listen_addr: nil,

dlna_listen_int: "en0"

I tested on Debian using "eth0" as dlna_listn_int, should also work for
wlan0 or something if using WiFi would think...
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/harmon25/sonex/pull/2#issuecomment-271202350, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAEGH9X6_WlC47PwFFFbl54TFMDpRAY5ks5rQZ7HgaJpZM4LTI5p
.
--
Sent from Gmail Mobile

Am going to close this for now, think I implemented most of the changes in master.
Shouldn't be much of an issue having to configure interface in a larger project...

Yup and with the other changes master now doesn't explode for me 👍 .


Functionals?

Hi,
Is it possible to compute functionals with MFEM?  For example, we are interested in evaluating the force on an object immersed in a fluid.
One approach that we are considering is to define a NonlinearForm whose output vector we can sum to get the desired functional; however, this seems inefficient, especially when we start taking derivatives of functionals (in the case of NonlinearForm, we would have to temporally store a sparse matrix which we then contract).
Alternatively, we will create a new class derived from Operator that can compute functionals.
Thanks,
Jason

Hi Jason,
Have you considered the interface of NonlinearFormIntegrator, in particular GetElementEnergy()? Won't that be sufficient?
Vladimir

Hi Vladimir,
I think GetElementEnergy would work for some functionals we would be interested in, but for lift and drag we would prefer an API that handles boundary faces.  It looks like this is anticipated but not yet implemented, correct?
Thanks,
Jason

Right, we don't have many examples of nonlinear forms on faces. I see that AssembleFaceVector() is implemented in ex18, but I don't know of any AssembleFaceGrad examples.

Hi Vladimir,
Just to make sure we are on the same page, this is how functionals and their derivatives should be implemented:

Define a functional as a NonlinearForm.
Use NonlinearForm::GetGridFunctionEnergy to evaluate the functional.
Use NonlinearForm::Mult to evaluate the partial derivative of the functional with respect to the states.

(I would really like to see the member function NonlinearForm::GetGridFunctionEnergy get renamed to something like GetFunctional, since the energy functional that arises in structural mechanics is just a special case.)
Would you like us to try adding the code to GetGridFunctionEnergy to include boundary and internal face integrators?  This seems like a potential enhancement that we might be able to help implement.
Best regards,
Jason

Yes, what you describe is a valid use of NonlinearForm (I happen to use it in exactly this way in a project). Note that the usual convention is to call GetEnergy that takes into account AMR and the use of parallel true dof vectors.
Of course, it would be great to implement the face and boundary contributions to GetGridFunctionEnergy, which are both left as TODO there.

Ok, I will create a branch and add it.
Thanks,
Jason


Partial[DTO] Exception: typing.ClassVar[bool] is not valid as type argument

Describe the bug
When creating a Partial[DTO], I get the following exception: Exception: typing.ClassVar[bool] is not valid as type argument
The exception appears to be thrown in the partials.py file, from the 3rd line copied here:
if item not in cls._models:
    if is_class_and_subclass(item, BaseModel):
        cls._create_partial_pydantic_model(item=item)

To Reproduce
Here's a minimal example to reproduce.  I'm using Python 3.10.6.
from sqlalchemy import Column
from sqlalchemy.dialects.postgresql import (
    INTEGER,
    JSONB,
    TIMESTAMP,
)
from sqlalchemy.orm import declarative_base
from starlite import DTOFactory
from starlite.plugins.sql_alchemy import SQLAlchemyPlugin
from starlite.types.partial import Partial

Base = declarative_base()
dto_factory = DTOFactory(plugins=[SQLAlchemyPlugin()])

class DTO_ORM(Base):
    __tablename__ = "some_table"

    id = Column(INTEGER, primary_key=True)
    value = Column(JSONB)
    logs = Column(JSONB)
    timestamp = Column(TIMESTAMP)

DTO_MODEL = dto_factory("DTO_MODEL", DTO_ORM)

partial_dto = Partial[DTO_MODEL]
data = {"id": 789}
partial_dto(**data)

Additional context
I believe I've implemented this code correctly, but there aren't a lot of examples for how to use DTOs or Partials, so please let me know if something is wrong with the code.
Docs: https://starlite-api.github.io/starlite/usage/11-data-transfer-objects/#partial-dtos

I just played with the code in the tests folder... it seems like this exception does not occur using DTO's created Pydantic models.  So maybe it's isolated to DTO's created by SQL Alchemy/ORM models.
This works:
import json
from dataclasses import dataclass as vanilla_dataclass
from enum import Enum
from typing import Any, Dict, List, Optional

import pytest
from pydantic import BaseModel, Field
from pydantic.dataclasses import dataclass as pydantic_dataclass
from pydantic_factories import ModelFactory
from starlette.status import HTTP_201_CREATED
from starlite import DTOFactory, post
from starlite.plugins.sql_alchemy import SQLAlchemyPlugin
from starlite.testing import create_test_client
from starlite.types.partial import Partial
from typing_extensions import TypedDict

# from tests import Person, TypedDictPerson, VanillaDataClassPerson
# from tests.plugins.sql_alchemy_plugin import Pet, WildAnimal

# Base = declarative_base()
dto_factory = DTOFactory(plugins=[SQLAlchemyPlugin()])

class Person(BaseModel):
    first_name: str
    last_name: str
    id: str
    optional: Optional[str]
    complex: Dict[str, List[Dict[str, str]]]
    pets: Optional[List[Pet]] = None

dto_person = dto_factory("dto_person", Person)
dto_partial_person = Partial[Person]
dto_partial_person(first_name="Bob")

Returns:
PartialPerson(first_name='Bob', last_name=None, id=None, optional=None, complex=None, pets=None)