Weirdest "bug"

When i have opera's dev tools open, i get this error
Warning: session_start(): Failed to read session data: user (path: N;D:/UwAmp/bin/apache/sessions) in D:\UwAmp\www\slim\vendor\adbario\slim-secure-session-middleware\src\SessionMiddleware.php on line 157

and when i close the bar the page works, now if i delete the session while having the dev tools open and refresh the page, the page works, but as soon as i close dev tools and refresh, i get the same session_start bug @_@ no idea whats going on

This has definitely something to do with Opera then, sorry I have no help for this. Maybe try Chrome, there's pretty awesome dev tools.

opera is chrome n_nU
no idea what could be going on?
these are my settings:
'session' => [
	'name' => 'appSession',
	'lifetime' => 60*24,
	'path' => '/',
	'domain' => null,
	'secure' => true,
	'httponly' => true,
	'cookie_autoset' => true,
	'save_path' => '../temp/sessions',
	'cache_limiter' => 'nocache',
	'autorefresh' => true,
	'encryption_key' => 'FheU&jy#gcyTHuqMyG!YnYjM3CqarP^pJ!Y7!9Pm6ez!k^^$t6%R5A&W$&kQ2$2uBP*e$gwPM&A4^TDJFE3AKNCz8KsZAQ%dQujp',
	'namespace' => null,
],

No idea really, if you're using https-connection as you have 'secure' => true and ir your save_path is correct. Also try other browser just to find out if this is something related to Opera. Opera shares the same engine with Chrome, but there definitely are some differencies on background as well.


Skipping YouTube ads

I have implemented my own control buttons and hidden those in the player. The app works well and supports a playing queue; you can skip forwards and backwards through the queue and pause and play as you would expect.
If I tap my "next video" button whilst a pre-roll ad is playing the desired video is played but the overlay is still shown saying "Visit advertiser" in the top right and "Ad * " in the bottom left and a progress bar. I don't know where the overlay is coming from but the duration and progress bar are for the selected video, not the ad. If I then wait for the video to finish, the next video is shown and the overlay disappears.

Is this a bug or does it sound like I'm doing something wrong? Is there a recommended strategy for dealing with pre-roll videos?

@martinlockett leave me some Video IDs that have pre-rolls and I'll test this behavior. I have yet to experience a pre-roll and also AFAIK Vevo videos are not playable in this component so maybe it's something new that is about to be fixed in YouTube's iFrame

@davidohayon669 Thanks for the response. Firstly, TroyeSivanVEVO is the YouTube channel name in the above example. As we provide videoIds and not URLs to this component I am not aware of the video being of a special type.
The adverts I'm referring to are 15 second adverts that appear before the video that we have requested. This is not repeatable each time so I do not believe the adverts are associated with specific videoIds. Perhaps my understanding of pre-roll is incorrect or I have used the wrong terminology. To significantly increase the chances of seeing the adverts in an app having this component, delete your app, clear the IDFA (on iOS this is done via Settings -> Privacy -> Advertising), re-install your app and play a video by providing a videoId to the component.

@martinlockett I'll take a look soon

Is there a way to deal with preroll ads? Or at least know when the player is playing an ad?


adding PL & lite with torch

Before submitting

[x] Was this discussed/approved via a GitHub issue? (no need for typos and docs improvements)
[x] Did you create/update your configuration file?
[x] Did you set runtimes in config for GitHub action integration?
[x] Did you add your config to CI in Azure pipeline (only projects with 100+ GitHub stars)?
[ ] Are all integration tests passing?

What does this PR do? [optional]
Adding compatibility check for future PyTorch release
Did you have fun?
Make sure you had fun coding 🙃

pending on https://github.com/Lightning-AI/lightning/pull/15904

pending on https://github.com/Lightning-AI/lightning/pull/15904


python310Packages.adlfs: 2022.7.0 -> 2022.9.1

Description of changes
https://github.com/fsspec/adlfs/blob/main/CHANGELOG.md#202291

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.11 Release Notes (or backporting 22.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 192322 run on x86_64-linux 1

2 packages built:

python310Packages.adlfs
python39Packages.adlfs


Disable X=0, Y=0, Z=0 as coordinate

Hi, I'm a PMMP server admin who is using TapToDo. - Could you revise your TapToDo plugin to disable/ignore X=0,Y=0,Z=0 as coordinate ? - Some player set X=0, Y-0, Z=0 as coordinate into blocks.yml file of TapToDo plugin then commands has been processed (they set warp command at this time) right after any blockes or signs were touched by players.

I don't understand what you mean

@hiropon7 Please be more descriptive.

☆∂єvєlσρєя☆
кєνιи αи∂яєωѕ


Syntax error on v1.0.4

Hi Giles!
This is a fantastic package and I 've begun taking my classnotes with your setup.
I've yet to be able to setup the figures because of the following error.
Cheers!
Ubuntu 16.04
mrg@mrg-> sudo pip install inkscape-figures
...

mrg@mrg~> inkscape-figures
Traceback (most recent call last):
  File "/usr/local/bin/inkscape-figures", line 3, in <module>
    from inkscapefigures import cli
  File "/usr/local/lib/python2.7/dist-packages/inkscapefigures/__init__.py", line 1, in <module>
    from .main import cli
  File "/usr/local/lib/python2.7/dist-packages/inkscapefigures/main.py", line 28
    rf"    \incfig{{{name}}}",
                            ^
SyntaxError: invalid syntax

Fixed it by deleting the f in the formatting strings on those 3 or 4 lines.
Feel free to close.

Please check your version of python, the script needs version >= 3.7. Simply removing the f will make the code run using older versions of Python, but it won't work as expected.

Ah, thought it would run with Python 3.5. PRing the README.

Thanks! I've merged your PR.


SetAvailablePageLayouts / GetPageLayoutListItemByName doesn't behave as expected

I'm writing a console app that calls SetAvailablePageLayouts(). This uses GetPageLayoutListItemByName() internally. I'm finding some unexpected behaviour in the latter:

Information about the page layout file is read from the file system
The page layout has to be located in a certain place on the file system, and this behaviour can't be overridden/changed with a different parameter

Unfortunately these restrictions mean I can't use this method. (Possibly it is designed to work with the provisioning template XML engine?)
Is it necessary to read from the file system or could the method be rewritten to remove this dependency?

Hi Alex,
Thanks for your feedback. The SetAvailablePageLayouts() method creates an XML excerpt that is stored in a property bag item, accordingly to the out of the box behavior of SharePoint. Within the generated XML we store the site relative URL of the Page Layouts, with a URL like "_catalogs/masterpage/file.aspx", and we do not reference the file system but we simply play around the file name and path using the System.IO.Path type. I will close this item, but if you need any further help, please do not hesitate to ask a question on Yammer: aka.ms/OfficeDevPnPYammer. Thanks.


Support the evil model names keys, values, items

Codecov Report

Merging #25 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master      #25   +/-   ##
=======================================
  Coverage   98.15%   98.15%
=======================================
  Files          61       61
  Lines        7532     7544   +12
=======================================
+ Hits         7393     7405   +12
  Misses        139      139

Impacted Files
Coverage Δ

iommi/form.py
99.09% <100.00%> (ø)

iommi/member.py
96.80% <100.00%> (ø)

iommi/query.py
98.89% <100.00%> (ø)

iommi/sort_after.py
100.00% <100.00%> (ø)

iommi/table.py
98.09% <100.00%> (ø)

iommi/traversable.py
96.68% <100.00%> (ø)

tests/models.py
99.22% <100.00%> (+0.03%)
:arrow_up:

tests/test_41_form_create_or_edit.py
94.20% <100.00%> (+0.12%)
:arrow_up:

tests/test_60_table.py
99.87% <100.00%> (+<0.01%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4bb0a59...b7cf760. Read the comment docs.

Fixed in another commit.


is this a bug? changes not visible when using AsNoTracking

Steps to reproduce
var entity = await context.SomeEntity.Where(Q => Q.Id == Id).FirstOrDefaultAsync();
entity.SomeField = "changed value";
await context.SaveChangesAsync();

// same query, except without tracking
entity = await context.SomeEntity.AsNoTracking().Where(Q => Q.Id == Id).FirstOrDefaultAsync();

// assertion fails unexpectedly
Assert.Equal(entity.SomeField, "changed value");

Further technical details
EF Core version: 1.0.0-preview2-final
Operating system: windows 10
Visual Studio version: VS 2015 Community

@opensrcken This does not repro for me. Executing those statements in that order will result in the assertion passing. Could you provide a full repro, perhaps in a console application?

EF Team Triage: Closing this issue as the requested additional details have not been provided and we have been unable to reproduce it.


Support iPadOS?

Is there a possibility to support iPadOS?
I realize that this is tricky or maybe even useless with touch keyboards, but I use my iPad with an external keyboard as well as the MagicKeyboard Folio which function very much the same as they do on macOS, so the META + NUMBER keys would work the same way?
I think this would make Obsidian a lot more useful, thank you.

Thanks for bringing this scenario to my attention @chrisspiegl.
Originally I thought of adding a setting to allow on mobile, but that would've meant it also applied to touch devices.
Instead, I've removed the desktop only restriction, but check for the presence of a keyboard to inject functionality.
Release v1.1.5 contains this functionality!

Thanks for the quick response and action.
I installed the plugin & verified that it was 1.1.5, but I could not get it to work on my iPad.
It does not show the numbers in the quick select command plate (CMD + P) and pressing META + 1/2/3 does not trigger that action.
I am not sure what kind of changes would be necessary to make it work… but I am happy to test for you if that helps to figure this out.

Unfortunately that means iPad does have the keyboard navigator property.
I had emulated mobile on desktop Obsidian but that's likely not a true simulation.
Your involvement in testing would be great, it would mean I would not have a bunch of releases that do nothing different.
I will attempt another fix and draft a release for you to check.

So there's no nice way to do this, although I have landed on, what I consider to be, a decent solution.
Mobile, being android, iPhone, and others, are all disabled. Desktop is based on the keyboard object existing. Whereas tablet uses a new setting Enable Quick Select for iPads/tablets.
Check out this pre-release: https://github.com/itsonlyjames/obsidian-quick-select/releases/tag/iPad-beta. Throw main.js and manifest.json into the quick-open plugin folder, and reload. Enable the setting, and see if it works.
Failing that, I'll add some debugging and get your to send that through. But let's see how this goes!

I installed the files in my plugin folder, synced to the iPad and opened Obsidian.
There, I confirmed the option "Enable for iPad" was enabled.
Opened the command plate and the numbers do not show / Meta + Number does not do anything.
On my MacBook it does work.

Thanks for your assistance testing this @chrisspiegl.
What i've done is simply disabled functionality on mobile, and on tablet (whcih as I found out iPad emulates Macintosh) as well as desktop. The numbers may show on tablets without keyboards, and the listener may be active, but the user cannot press meta+number unless they have a keyboard, so this may be an efficient solution.
Check out this pre-release and let me know if it works for you: https://github.com/itsonlyjames/obsidian-quick-select/releases/tag/iPad-beta

I updated my code (since I already had 1.1.6 as the version through the beta file).
Then I synced, and it works as expected and described.
Aka: the numbers are there even when no keyboard is attached (but that for me is a worth wile tradeoff).
I wonder if there is some way to tell if there is an external keyboard precent (even for iPhones). Just becuase we are on this topic; some people may use their iPhone for writing in a coffee ship and use an external keybaord… then this quick select would be powerful as well.
I care most about my iPad… so I am thankful for all the adjustments you made to support it on iPadOS. But I do have a foldable keyboard I sometimes use for my iPhone.
Anyway, all to say: right now, on iPad I see the numbers and they work as expected.
The numbers are visible when no external keyboard is connected (as described by you above).
I think this can either be closed, or kept open to improve and make it work only when an external keyboard is recognized (if such a mechanism exists in some way).

Thanks again for your support @chrisspiegl . I greatly appreciate your time in testing this.
I wholeheartedly agree, and I've decided while the useragent approach does in fact work, it's not an ideal solution, especially in light of the points you raise.
I was simply disabling if any mobile presence was detected in the useragent. However I have now explored an alternative approach.
There is no direct method for detecting the presence of a physical keyboard, however there is an experimental feature that exposes some keyboard functionality. Luckily, in Obsidian, it's a consistent rendering engine—chromium—so this will consistently return results across platforms.
What I have attempted to do is utilise the getLayoutMap function to see if there is any response. If there is, then we inject the functionality, else, we do not. This should mean that if you open up the quick switcher with a keyboard attached, it injects the listener. Then if you disconnect the keyboard, and open the quick switcher again, it does not inject functionality, and does not display the ordered numbers.
Should this not work, my next idea is to attach a listener to the document for any key press, which would enable us to know if a key was pressed to open the quick switcher, thus detecting a keyboard. This approach however is not ideal again, as I would need to handle a few edge cases to clear it, so my fingers are crossed that this aforementioned approach works!
Please download the code from this beta release and test it: https://github.com/itsonlyjames/obsidian-quick-select/releases/tag/1.1.6-beta.1

I tested the beta, and as far as I can see the iPad does not recognize the presence of the keyboard at all again. So, not with or without the MagicKeyboard Folio. On macOS it still does show the select numbers & works.
Thoughts:
I have a feeling that iPadOS / iOS is not actually chromium based. If I recall correctly, on the iOS variants, the web browser thing is always Safari/WebKit based… I may be wrong about this, though. I find conflicting arguments when googling.
I tried coding a keyboard detection just in a html file with javascript & tested it on my iPad. I found out that the navigator.keyboard.getLayoutMap is not supported in Safari at this time on iPadOS 18.1.
The check I used:
if (!navigator.keyboard || !navigator.keyboard.getLayoutMap) {
    console.warn('Keyboard Layout API is not supported in this browser.');
    document.getElementById('log').innerHTML += '\nKeyboard Layout API is not supported in this browser.'
    return false;
  }

Solution Idea:

Make the number display an option in the settings. User chooses to display them or not and when they are enabled, they show up no matter what.
Implement the Meta + Number listener no matter what (as long as the plugin is active).

This would mean: the user has control about having the numbers visible. Generally speaking, this also helps for someone who does not want the numbers but wants to keep the functionality.
And then by just having the listener, the listener will only work on meta alt + number… so it would be universal without any hoops you have to jump through.

 I was optimistic this approach would work. Thanks for your debugging.
In response to your solutions, I like them. My overly-optimised brain said originally that I really didn't want to attach redundant listeners as this would be a (entirely negligable) performance hit on devices that are not utilising the plugin and would receive no extra functionality. However, to achieve the intended outcome, it is necessary.
Now, how to go about it is the question. I think it can be evaluated through 2 lenses. Do we

add a toggle for the numbers to show/hide them, or potentially look into a solution similar to raycast (the original plugins inspiration; when you open raycast there is no numbers, it is not until you press cmd do they show up)?
do we listen for a keypress upon activation of the modal, injecting the functionality and showing the numbers by default with no setting, and then when we close the modal, reset the variable assigned to isKeyboardPresent. This would have the added benefit of only attaching the functionality were a keyboard present.

Either way another listener will be required, however it will be beneficial for my overly-optimised brain to only inject functionality when it can actually be utilised.
There is also potential to rearchitect the entire plugin now I think about it.. rather than injecting the functionality when opening a modal, when I press the modifier key and a modal is already open, only then do I inject the functionality to listen to the number pressed and select the nth item. This would mean that, on mobile etc, even if a modal is open, you can never press the meta key thus it would never inject functionality. However, if you attach a keyboard, open a modal, then press the meta key, it would listen to following number... this would both appease my overly-optimised brain, as well as achieving the intended outcome to work on mobile/tablet with a keyboard.
I will need a bit of time to achieve this, bear with me.

I am looking forward to a different solution.
I like the idea to only show the numbers upon META being pressed. That sounds like it actually would solve a lot of issues.

Now when a modal is opened, a keypress listener is activated. Once the meta key is pressed, the numbers slide in indicating the order of results, and then once the number is selected, that item is clicked. So only on devices with keyboards that can press the meta key will receive the functionality. On mobile devices it's simply listening to keypresses that will never run true. One event listener for the functionality. Happy with that.
Please download from this beta release and test it, let me know your thoughts. There is room for customisation on the transition, maybe no transition, fade-in-out, or slide-in-out as it currently is. Once we've solidified this I will prepare an official release!
https://github.com/itsonlyjames/obsidian-quick-select/releases/tag/1.1.6-beta.2

Happy to hear it exceeds your expectations! I'm also very pleased with the end result.
I have added a permanent transition style as per your suggestion.
Version 1.2.0 is the official release with all of this functionality!
I do expect some styling bugs with different themes due to the new counter styles, but will tackle those as they come up.
Closing this now, thanks for your assistance.

Wonderful. Thank you for your work on this plugin. This makes navigating the command plates much more focused when already working with the keyboard.


Remove @sanity/client from dependencies

@sanity/image-url only actually needs the project ID and dataset configuration in order to function. By dropping @sanity/client as a dependency, we get a smaller bundle size, faster install and less warnings (currently it'll warn about not specifying an API version). Also updated the image-url module to the latest version.
I didn't have a local installation to test this on, so please give it a go before blindly trusting me not to make any mistakes here ;)
Note: This could be considered a breaking change, as the client was exported from this module - but I didn't find it documented anywhere, and it seemed somewhat odd to me why it would be exported in the first place.

Thank you for this, Espen!


Shrinking the vscode window at tqdm runtime will cause tqdm to create new lines

I am using tqdm in my code to display the progress bar. If I keep the vscode window maximized, it works fine.
However, if I shrink the vscode window while tqdm is running a progress bar, tqdm will create new lines before the end of the current progress bar, resulting in the very weird phenomenon shown in the figure below

Is there any way to adjust the output string format of tqdm when changing the window size, so that it still maintains the regular display?

We closed this issue because it is a question about using VS Code rather than an issue or feature request. Please search for help on StackOverflow, where the community has already answered thousands of similar questions. You may find their guide on asking a new question helpful if your question has not already been asked. See also our issue reporting guidelines.
Happy Coding!


Allow users to create Namespace Config Templates

Is this a BUG REPORT or FEATURE REQUEST?:
FEATURE REQUEST
What happened:
We should provide an option to administrator to create a TEMPLATE to control what resources needs to be added as part of the namespace creation.
Templates can be based on environment, compliance (PCI or non-PCI) or based on teams. Also, Templates also should provide a way to configure "dynamic" properties so that values can be replaced during the namespace creation/runtime. i.e, if administrator wants a label with cluster name, template should be able to support that. i.e,
host.cluster: ${clusterName} and clusterName can be replaced at the runtime based on namespace create request.
What you expected to happen:
Administrator can configure a template so that every namespace creation doesn't have to include the resources to be part of that namespace instead just pass the template name.
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:

manager version
Kubernetes version :

$ kubectl version -o yaml

Other debugging information (if applicable):
- controller logs:

$ kubectl logs

NamespaceTemplate provides following in high level
exportedParams
NamespaceResources
Namespace
Resources
- Name
Type
DependsOn:
CreateOnly
OneOf{
ServiceAccount
Role
RoleBinding
ResourceQuota
}
- Name
Type
DependsOn:
CreateOnly
OneOf{
ServiceAccount
Role
RoleBinding
ResourceQuota
}
ExportedParams: Params which can to be replaced runtime and should use ${param} in the manifests
DependsOn: By default, Namespace will be created first and any resources under Resources section will be created in parallel. To control the dependency structure one can use DependsOn parameter to force the execution only once its dependent resource has been created.
CreateOnly: If any resource needs to be created only once and should not be overwritten can use CreateOnly parameter to enforce it.
Resource: Type should dictate what Resource being included in the resource section and any other resource manifests included in that resource section will be ignored. For ex: To create a service account,   Type should be ServiceAccount and should include serviceAccount: section

Sample Template:
apiVersion: manager.keikoproj.io/v1alpha1
kind: NamespaceTemplate
metadata:
  name: namespacetemplate-sample
spec:
  exportedParamName:
    - registry
    - env
    - name
  nsResources:
    namespace:
      apiVersion: v1
      kind: Namespace
      metadata:
        annotations:
          imageregistry.com: ${registry}
          something.com/permitted: some-role
        labels:
          environment: ${env}
        name: ${name}
    resources:
      - name: local_service_account1
        type: ServiceAccount
        dependsOn: local_role
        serviceAccount:
          apiVersion: v1
          kind: ServiceAccount
          metadata:
            name: ${env}-sa
            namespace: ${name}
      - name: local_service_account2
        type: ServiceAccount
        serviceAccount:
          apiVersion: v1
          kind: ServiceAccount
          metadata:
            name: ${env}-sa2
            namespace: ${name}
      - name: local_role
        type: Role
        role:
          apiVersion: rbac.authorization.k8s.io/v1
          kind: Role
          metadata:
            name: ${env}-role
          rules:
            - apiGroups:
                - ""
              resources:
                - pods/attach
                - pods/exec
                - pods/portforward
                - pods/proxy
                - secrets
                - services/proxy
              verbs:
                - get
                - list
                - watch
                - create
            - apiGroups:
                - ""
              resources:
                - serviceaccounts
              verbs:
                - impersonate
      - name: local_role_binding
        type: RoleBinding
        dependsOn: local_service_account1
        roleBinding:
          apiVersion: rbac.authorization.k8s.io/v1
          kind: RoleBinding
          metadata:
            name: ${env}-rolebinding
          roleRef:
            apiGroup: rbac.authorization.k8s.io
            kind: Role
            name: ${env}-role
          subjects:
            - kind: ServiceAccount
              name: ${env}-sa
              namespace: ${name}
      - name: pod_count_quota
        type: ResourceQuota
        createOnly: "true"
        resourceQuota:
          apiVersion: v1
          kind: ResourceQuota
          metadata:
            name: ${env}-pod-quota
          spec:
            hard:
              pods: "3"


Cycle KubeCon info on landing page

Ref #15170.

/assign @alexbrand @oussemos @rlenferink

/lgtm
/approve

/lgtm
/approve

/assign @raelga

Applied the suggestions. PTAL.

/lgtm

/approve

/lgtm

This will need approvals from all the localizations it touches.
It's good to keep things up to date I think, so:
/priority important-soon

:+1: to the Spanish localization.

/lgtm

/approve


Update create-private-endpoint-powershell.md

Added note at line 58 to warn about a common gotcha, confusing PrivateEndpointNetworkPoliciesFlag with PrivateLinkServiceNetworkPoliciesFlag.

@findingorder : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@Jak-MS : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@Jak-MS : Thanks for your contribution! The author(s) have been notified to review your proposed change.


Update pub.dev package?

Relying on github hosted repo with hash works in the interim, but pub.dev updates would be more desirable.
Thanks.

Updated Latest Version on pub.dev


 Mirror sync in progress? [IP: <IP_ADDRESS> 443]
  Hashes of expected file:
   - Filesize:200914 [weak]
   - SHA512:a91d388504b56c875620f73b618813be1c127d6bfe96406cc6e9a39fdf33f1dd2c8ecbda4a636f0c86bc18005e4f5d0683da0c02ba13c555cef8d11eb83412fe
   - SHA256:1d39334cb2779572dd17869a05d3ed3f1d57992cc9755a34a4d2622132b19f57
   - SHA1:d5224a98d6adfb4ab65d66aa803f9688a6503080 [weak]
   - MD5Sum:2fc601c3aa23f067ef305bfb7f7086e7 [weak]
  Release file created at: Mon, 28 Sep 2020 06:53:06 +0000
Fetched 215 kB in 1s (153 kB/s)
Reading package lists... Done
E: Failed to fetch https://packages.microsoft.com/repos/vscode/dists/stable/main/binary-amd64/Packages.bz2  File has unexpected size (201047 != 200914). Mirror sync in progress? [IP: <IP_ADDRESS> 443]
   Hashes of expected file:
    - Filesize:200914 [weak]
    - SHA512:a91d388504b56c875620f73b618813be1c127d6bfe96406cc6e9a39fdf33f1dd2c8ecbda4a636f0c86bc18005e4f5d0683da0c02ba13c555cef8d11eb83412fe
    - SHA256:1d39334cb2779572dd17869a05d3ed3f1d57992cc9755a34a4d2622132b19f57
    - SHA1:d5224a98d6adfb4ab65d66aa803f9688a6503080 [weak]
    - MD5Sum:2fc601c3aa23f067ef305bfb7f7086e7 [weak]
   Release file created at: Mon, 28 Sep 2020 06:53:06 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.
user@laptop:/etc/apt/sources.list.d$

Environment

OS Version: Kubuntu 20.04
Current location: Europe, Austria. Just in case this is a CDN / proxy issue.

Steps to Reproduce:

Add the following repository to your apt sources: deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main.
Run $ sudo apt update.

Duplicate of #107793.


BBS Animation Support & PMO Tools

This PR includes several things:
Engine:

Support for the PAM format (Birth by Sleep animations)
Very superficial support for bones on Birth by Sleep Models
Fixes to Vertex Color in PMP & PMO (Maps and Models)

Tools:

Fully working FBX to PMO converter. Currently only supports static meshes.
Prototype PAM to FBX converter (Not working at the moment)

Maps are displayed flawlessly 🥺

One test is failing:
OpenKh.Tests.Bbs.PamTests.ReadCorrectData
Assert.Equal() Failure
          ↓ (pos 0)
Expected: p01ex00001a
Actual:   OpenKHAnim
          ↑ (pos 0)


Evaluating trained model with KTH fails

when i run test_kth.py, it is show AttributeError: 'module' object has no attribute 'compute_ssim'. it seems

something is wrong with it

Did you install pyssim?
pip install pyssim
If you did, then it's a problem of the version

thanks for you replay, i install pyssim, and i solved it！！


Migrate Octokit.NET to Octokit.GraphQL.NET

Additional context
Add any other context about the problem here.
Before you start...

[X] Have you updated the FluentHub? You might be using an old version.
[X] Have you checked if similar issue have already been reported?

What windows are you seeing the problem on?
Windows 11
What FluentHub version/architecture are you seeing the problem on?
None
Description
As the title
Steps To Reproduce
No response
Expected behavior
No response
Relevant Assets
No response

most of that, migrated by #74. but still have, so still open this.

80% done.

There are features in V3 that are not present in V4. so, it must be used.


fix(curriculum): fix broken HTML in Calorie Counter

Checklist:

[x] I have read and followed the contribution guidelines.
[x] I have read and followed the how to open a pull request guide.
[x] My pull request targets the main branch of freeCodeCamp.
[x] I have tested these changes either locally on my machine, or GitPod.

Closes #57163

Can you also fix that if someone writes <input type="text" id="${entryDropdown.value}-${entryNumber}-name" placeholder="Name" the test response is "Your input element should have a type attribute set to text." instead of saying that the input should have the closing >?


ERROR P2P  [p2p-in]: Could not read buffer.

Description
ERROR P2P appearing frequently in kernel output since v1.6
20-12-10 15:26:28.225 ERROR P2P  [p2p-in]: Could not read buffer.
java.io.IOException: Connection reset by peer
	at java.base/sun.nio.ch.FileDispatcherImpl.read0(Native Method)
	at java.base/sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)
	at java.base/sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:276)
	at java.base/sun.nio.ch.IOUtil.read(IOUtil.java:245)
	at java.base/sun.nio.ch.IOUtil.read(IOUtil.java:223)
	at java.base/sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:358)
	at org.aion.p2p.impl1.P2pMgr.readBuffer(P2pMgr.java:738)
	at org.aion.p2p.impl1.P2pMgr.checkSelector(P2pMgr.java:593)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:834)

Similar error notice looks to have been suppressed previously, as per closed issue https://github.com/aionnetwork/aion/issues/357
Log config is default:
<log>
    <!--Enable/Disable logback service; if disabled, output will not be logged.-->
    <log-file>true</log-file>
    <!--Sets the physical location on disk where log files will be stored.-->
    <log-path>log</log-path>
    <DB>WARN</DB>
    <GEN>INFO</GEN>
    <VM>ERROR</VM>
    <SYNC>INFO</SYNC>
    <CONS>INFO</CONS>
    <TXPOOL>WARN</TXPOOL>
    <API>INFO</API>
    <ROOT>WARN</ROOT>
    <P2P>INFO</P2P>
    <TX>WARN</TX>
</log>

System Information
I'm running:

Which Aion version?: <IP_ADDRESS>8110
Which operating system?: Linux
Which distributor and version?: Ubuntu 20.10
How installed?: via binaries
Are you fully synchronized?: yes
Did you try to restart the node?: yes

Thanks for the report. We will suppress the log to the DEBUG level.


This library have docs file???

Does this library have documentation to display it in IDE?

yes its part of the maven artifact
MrBlawex<EMAIL_ADDRESS>schrieb am Mi. 23. Mai 2018 um 16:24:

Does this library have documentation to display it in IDE?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/RuedigerMoeller/fast-serialization/issues/253, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AF0MDM9lS5dS20ETONkrDY-fPC_W8_Uzks5t1XEDgaJpZM4UKjlr
.

--
sent from iphone


feature request: apply topics to multiple repositories at a time

Applying topics to multiple repositories is slow and cumbersome. Functionality to apply a topic to multiple repositories would be very helpful.

Sorry how do I take it back please won't do it again

Plz kick me

？？？

Hi @spdegabrielle  ,
This repository is for creating and editing content on github.com/topics and github.com/collections. If you have feature requests please consider opening a thread on https://github.community/.
Thanks!


How to specify explicit stream requests during Multicam Usage

Hi,
I'm trying to use multi-camera set up of tracking and d435.
Been following the example tutorial on multicam setup but there is no information on how I can specify an explicit stream request for each rs camera.
I am currently using the following code:
// Capture serial numbers before opening streaming
std::vectorstd::string              serials;
for (auto&& dev : ctx.query_devices())
serials.push_back(dev.get_info(RS2_CAMERA_INFO_SERIAL_NUMBER));
// Start a streaming pipe per each connected device
for (auto&& serial : serials)
{
    rs2::pipeline pipe(ctx);
    rs2::config cfg;
    cfg.enable_device(serial);
    pipe.start(cfg);
    pipelines.emplace_back(pipe);
    // Map from each device's serial number to a different colorizer
    colorizers[serial] = rs2::colorizer();
}

How should I add the following stream request just for my D435 pipeline?
cfg.enable_stream(RS2_STREAM_COLOR, 640, 480, RS2_FORMAT_RGB8, 30);
cfg.enable_stream(RS2_STREAM_DEPTH, 640, 480, RS2_FORMAT_Z16, 30);
Thank you.
BR,

Hi @mshong0320  I recall that in a past case - https://github.com/IntelRealSense/librealsense/issues/1735#issuecomment-390840337 - a RealSense user with two cameras took the approach of defining two separate pipelines, each with their own config_1 and config_2 configurations instead of having the pipelines created automatically like in the rs-multicam approach.
The code in the linked script is in Python rather than C++ but can act as a general guide for structuring a C++ equivalent.


 Try to switch to main branch to see if there is still this error.

It is fixed on main. Thanks.


Is it possible to have more than one autocomplete?

I have a words_controller with:
autocomplete :word, :name, full: false, limit: 12

I added a second autocomplete:
autocomplete :words_with_pictures, :name, full: false, limit: 12

I also added a route for the second autocomplete:
  resources :words do
    get :"autocomplete_words_with_pictures_name", :on => :collection
  end

I added a method in the controller:
  def autocomplete_words_with_pictures_name
    term = params[:term]
    words = Word.has_pictures.where('words.name LIKE ?', "%#{term}%").order(:name).all
    render :json => words.map { |word| {:id => word.id, :label => word.name, :value => word.name} }
  end

The following works now (it generates JSON):
/words/autocomplete_words_with_pictures_name?term=ala

But this doesn't work:
/words/autocomplete_word_name?term=ala

If I remove the route for words_with_pictures
  # resources :words do
  #   get :"autocomplete_words_with_pictures_name", :on => :collection
  # end

then it still doesn't work, but if I reverse the order of the autocomplete statements in the controller:
  autocomplete :words_with_pictures, :name, full: false, limit: 12
  autocomplete :word, :name, full: false, limit: 12

then this works:
/words/autocomplete_word_name?term=ala

Obviously, the other one doesn't work since there is no route for it anymore.
My questions:

Can have two autocompletes in the same controller?
If not, how can I define the scope (or any other behaviour) in the view?
For instance, something like

        <%= autocomplete_field_tag :add_word, '', send("autocomplete_word_name_words_path"), :placeholder => 'buska palabra...', :id => 'input_search', :scope => :has_pictures %>

I now tried something different.
On the words_controller, I have
autocomplete :word, :name, full: false, limit: 12

On the memory_games_controller, I have
autocomplete :word, :name, full: false, limit: 12, scopes: [:has_pictures]

In routes.rb, I added
resources :memory_games do
  get :"autocomplete_word_name", :on => :collection
end

rake:routes give both routes:
autocomplete_word_name_words GET      /words/autocomplete_word_name(.:format)                     words#autocomplete_word_name
autocomplete_word_name_memory_games GET      /memory_games/autocomplete_word_name(.:format)              memory_games#autocomplete_word_name

In the view, I can use:
<%= autocomplete_field_tag :add_word, '', send("autocomplete_word_name_words_path"), :placeholder => 'buska palabra...', :id => 'input_search' %>

and this works, but of course it is showing all words, not just the one with pictures.
When I change it to:
<%= autocomplete_field_tag :add_word, '', send("autocomplete_word_name_memory_games_path"), :placeholder => 'buska palabra...', :id => 'input_search' %>

I get the error:
"GET /memory_games/autocomplete_word_name?term=ala HTTP/1.1" 404 15077

I'm lost.

Well, I moved the route up, above the one that declares /words/autocomplete_word_name, and now it works
autocomplete_word_name_memory_games GET      /memory_games/autocomplete_word_name(.:format)              memory_games#autocomplete_word_name
autocomplete_word_name_words GET      /words/autocomplete_word_name(.:format)                     words#autocomplete_word_name

I am still lost, but hey! it works.


Added Carmel High School

https://carmeltechengineering.wordpress.com/courses/
https://chs.carmelschools.org/

@Connorcrafts21 First stage of verification passed, official domain for Carmel High School is students.carmelschools.org as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision.

Philip,
Yes, please add carmelschools.org to the list. Thank you very much for your help!


[TOPI][CUDA] Remove FLOP computation when calling 3rd party library

This is a quick fix to solve the crash problem when computing the flop of fused ops.
As pointed out by @soiferj, the added flop computation for 3rd party library such as cuBLAS deos not deal with the fusion ops. Although it can be resolved by traversing the graph and add all flops together, I prefer to remove it. The reason is that the flop information is only used by AutoTVM, but AutoTVM has nothing to do with cuBLAS. In addition, traversing the graph may introduce more unnecessary overhead when calling cuBLAS.

@Huyuwei could you help review and merge this PR? Thanks.

Thank you very much for the quick fix :)


assign buffer reuse

Before we can write the JIT, we need assignment to work inside the optimizers.

Closes #546


Regroup byron commands

Issue

Group byron commands similarly to the shelley commands.

This PR results in breaking changes to upstream dependencies.

Checklist

[x] I have added the appropriate labels to this PR.

LGTM,works, however README needs to be updated so all those commands have node part in them as it is currently missing:
cabal exec cardano-cli -- byron node create-update-proposal
cabal exec cardano-cli -- byron node submit-update-proposal
cabal exec cardano-cli -- byron node create-proposal-vote
cabal exec cardano-cli -- byron node submit-proposal-vote

bors merge


[Tests-Only] fix configuration variables for ui test in CI

Fix UI test failure in CI.

The upload tests were skipped but now they are enabled, we need to set an extra env var for upload to work correctly
'REVA_STORAGE_OC_DATA_SERVER_URL': 'http://ocis-server:9164/data',
more info  https://github.com/owncloud/phoenix/pull/3457#issuecomment-630638999


Better visual distinction between --pretty --watch recompile results?

TypeScript Version:  2.7.0-dev.20171126
While running tsc --pretty --watch, there's not much visual distinction between different rounds of failures. Other than a few blank lines on the right half of the screen, they look very similar. When I have a lot of files I'm going through refactor errors through it can be hard to tell what's fixed or fresh.

For comparison, this is what TSLint's stylish formatter outputs...

...and this is what gulp outputs:

A few suggestions to make this display easier to read (replace "grey" with any non-white color):

Use grey text for line/column numbers and/or grey+bold text for TS2451-style identifiers
Use grey text for times
Use grey and/or italic text for File change detected. lines
In the Compilation complete. lines:

Say whether compilation failed or succeeded
Use green or red text appropriately

Add a CLI option to clear the console when a new run starts

Would https://github.com/Microsoft/TypeScript/pull/17756 address the issue?

Console clearing would make things much better!...
...but it would still be nice to have the more readable colors. This issue would just be much less important.

#17756 is waiting on one small change, if you want to pick it up and get it in would be happy to merge it.

Also PRs for additional colors for errors message with --pretty are welcomed.

I'll try to add the colors in ASAP! :)


Feature/update unit tests for assets

Detailed description:
Updating tests for service.Assets and adding token clients interface to be able to mock it. Initializing all token clients on start so to be reused everywhere.
Which issue(s) this PR fixes:
Fixes #457
Special notes for your reviewer:
Checklist

[ ] Documentation added
[x] Tests updated

E2E fails with null pointer exception


Root refs in components should use component viewmodel not context

In a component, in {{#with some.mapped.path}}{{~/local}}{{/with}}, local is trying to resolve using the mapped context root instead of the component root. I believe the correct behavior would be to use the component root instead, right?

LGTM


Community member profile

Is this the same as the community member user stories? or specific descriptions of the types of community members and their roles?


Acquisitions Report: Evans open orders report

Evans Acq. Monographs unit requires a report of all open orders. The general model for the report is: https://voyagermis.tamu.edu/acq/open_orders.php. In FOLIO, the "group" takes the place of the "cluster" defined in the VoyagerMIS report. Note that the current report supports both screen display and download.
Here is the sql for the report. I have asked Shannon Burke to do an initial review and she says it looks good, at least for a first pass:
select	groups.name AS group,
ftpo.transaction_from_fund_name AS fund,
poinst.po_number AS po_number,
poinst.requester AS requester,
poinst.title AS title,
poinst.vendor_code AS vendor,
locations.location_name AS location,
ftpo.transaction_encumbrance_initial_amount::real AS encumbrance,
cast(poinst.created_date as date) AS order_date,
current_date-cast(poinst.created_date as date) AS days_open,
lines.description AS note
from  	folio_reporting.po_instance poinst
inner join public.po_purchase_orders orders on poinst.po_number = orders.po_number
inner join public.po_lines lines on orders.id = lines.purchase_order_id
inner join folio_reporting.po_lines_cost pol_cost on lines.id = pol_cost.pol_id
inner join folio_reporting.po_lines_locations locations on lines.id = locations.pol_id
inner join folio_reporting.finance_transaction_purchase_order ftpo on lines.id = ftpo.po_line_id
inner join public.finance_group_fund_fiscal_years fgffy on ftpo.transaction_from_fund_id = fgffy.fund_id
inner join public.finance_groups groups on fgffy.group_id = groups.id
where  	orders.workflow_status != 'Closed'
and   	orders.order_type = 'One-Time'
and   	lower(groups.name) not like '%msl%'
order by groups.name, fund, cast(poinst.created_date as date)
;

When formatting for download, I think it'll be necessary to change the linefeeds stored in the lines.description field into a 'period space' sequence so that each row of the output creates a single row in the output file. They want to be able to re-sort in different ways, which will require that cleanup.


Design Review of STLT Dashboard MVP on Production

Problem statement
With the new STLT Dashboard MVP now accessible on production, Design needs to provide feedback before it goes live to users.
What you need to know

New STLT Dashboard can be found here: https://staging.reportstream.cdc.gov/data-dashboard

Acceptance criteria

[x] Review Data Dashboard page
[x] Review Report Details page
[x] Review All Facilities page
[x] Consolidate feedback and link in this ticket
[x] Review with PO (Chris Kuryak) to determine what needs to happen before launch, near term post launch, or long term.

To do

[ ] ...

Data Dashboard AND All Facilities pages

[ ] Header background color should extend the full width of the page
[ ] Date filter field should show MM/DD/YYYY by default (currently shows 01/01/2000 and 01/01/3000)
[ ] Date range should maximize on current day (currently no max, and allows users to select into the 3000s)
[ ] Bottom of pagination UI cut off by container: Screenshot
[ ] Page content (i.e. table) should expand to the full width of its container

Report Details

[ ] Download button is missing
[ ] Remove info icon tooltip next to Report ID (for now - capture in backlog)

@jillian-hammer Just checking on one item, the "download button is missing" feedback, can you confirm you were on a report that was less than 30 days old?
If it is older than 30 days, then the download button disappears as it is not available to be downloaded.

@chris-kuryak thanks for reviewing, and yes sorry my mistake. it must have been an old download. I've removed it from the list. however after finding a download button, I noted some style issues that may be rectified in the near-term post launch – added to list above.
Private Zenhub Image


Add Corrections to https://github.com/wso2/analytics-apim/pull/649

Purpose
This PR adds corrections to https://github.com/wso2/analytics-apim/pull/649

 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.


shift Github info from PC guidelines to resources repo

shouldn't PC guidelines remain a separate repo because it only for the lab rather than general public :sweat_smile:?


#14 Exception during direct invocation

Pulling the Bugfix for #14 into master:

Only non-empty python path extensions are added to the SystemState

Coverage increased (+0.2%) to 94.521% when pulling 4b36d6f2609c9244d36fceeb296857255f066667 on edelbluth:Bug_#14 into 37e5ca6a82befb4b0d7212c794a3e324dbbcd72e on juergen-rocks:master.


Fixup interaction layer

@SylvainCorlay I can close this right? I merged related PR by @maartenbreddels. Please confirm.

@SylvainCorlay please confirm if I can close this?

Sure, closing now.


Alexa doesn't find devices, with esp32, please help.

_This is my code, everything is just fine. But when i tell alexa to search for devices, she literally can't find nothing, i've tried the debug method too, but i don't understand the problem. Please, @Aircoookie , you're an amazing programmer i know you can help me with this problem, let me know if there is any solution.
Everything boots just fine, my code is basically for turning on basic lights, with 8 relays.
My Alexa is a 2nd generation DOT._
#ifdef ARDUINO_ARCH_ESP32
#include <WiFi.h>
#else
#include <ESP8266WiFi.h>
#endif
#include <Espalexa.h>
//variables
int relay1 = 4;
int relay2 =15;
int relay3 = 2;
int relay4 = 5;
int relay5 = 13;
int relay6 = 14;
int relay7 = 12;
int relay8 = 27;
// prototypes
boolean connectWifi();
//callback functions
void port1(uint8_t brightness);
void port2(uint8_t brightness);
void port3(uint8_t brightness);
void port4(uint8_t brightness);
void port5(uint8_t brightness);
void port6(uint8_t brightness);
void port7(uint8_t brightness);
void port8(uint8_t brightness);
// Change this!!
const char* ssid = "NETLIFE-60";
const char* password = "25212612";
boolean wifiConnected = false;
Espalexa espalexa;
EspalexaDevice* device3; //this is optional
void setup()
{
Serial.begin(115200);
pinMode(relay1, OUTPUT);
pinMode(relay2, OUTPUT);
pinMode(relay3, OUTPUT);
pinMode(relay4, OUTPUT);
pinMode(relay5, OUTPUT);
pinMode(relay6, OUTPUT);
pinMode(relay7, OUTPUT);
pinMode(relay8, OUTPUT);
// Initialise wifi connection
wifiConnected = connectWifi();
if(wifiConnected){
// Define your devices here.
espalexa.addDevice("one", port1);
espalexa.addDevice("two", port2);
espalexa.addDevice("three", port3);
espalexa.addDevice("four", port4);
espalexa.addDevice("five", port5);
espalexa.addDevice("six", port6);
espalexa.addDevice("seven", port7);
espalexa.addDevice("eight", port8);

espalexa.begin();

} else
{
while (1) {
Serial.println("Cannot connect to WiFi. Please check data and reset the ESP.");
delay(2500);
}
}
}
void loop()
{
espalexa.loop();
delay(1);
}
//our callback functions
void port1(uint8_t brightness)
{
Serial.print("RELAY1 - ");
if (brightness)
{
  digitalWrite(relay1, HIGH);
  Serial.println("ON");
}
else
{
  digitalWrite(relay1, LOW);
  Serial.println("OFF");
}

}
void port2(uint8_t brightness)
{
Serial.print("RELAY2 - ");
if (brightness)
{
  digitalWrite(relay2, HIGH);
  Serial.println("ON");
}
else
{
  digitalWrite(relay2, LOW);
  Serial.println("OFF");
}

}
void port3(uint8_t brightness)
{
Serial.print("RELAY3 - ");
if (brightness)
{
  digitalWrite(relay3, HIGH);
  Serial.println("ON");
}
else
{
  digitalWrite(relay3, LOW);
  Serial.println("OFF");
}

}
void port4(uint8_t brightness)
{
Serial.print("RELAY4 - ");
if (brightness)
{
  digitalWrite(relay4, HIGH);
  Serial.println("ON");
}
else
{
  digitalWrite(relay4, LOW);
  Serial.println("OFF");
}

}
void port5(uint8_t brightness)
{
Serial.print("RELAY5 - ");
if (brightness)
{
  digitalWrite(relay5, HIGH);
  Serial.println("ON");
}
else
{
  digitalWrite(relay5, LOW);
  Serial.println("OFF");
}

}
void port6(uint8_t brightness)
{
Serial.print("RELAY6 - ");
if (brightness)
{
  digitalWrite(relay6, HIGH);
  Serial.println("ON");
}
else
{
  digitalWrite(relay6, LOW);
  Serial.println("OFF");
}

}
void port7(uint8_t brightness)
{
Serial.print("RELAY7 - ");
if (brightness)
{
  digitalWrite(relay7, HIGH);
  Serial.println("ON");
}
else
{
  digitalWrite(relay7, LOW);
  Serial.println("OFF");
}

}
void port8(uint8_t brightness)
{
Serial.print("RELAY8 - ");
if (brightness)
{
  digitalWrite(relay8, HIGH);
  Serial.println("ON");
}
else
{
  digitalWrite(relay8, LOW);
  Serial.println("OFF");
}

}
// connect to wifi – returns true if successful or false if not
boolean connectWifi(){
boolean state = true;
int i = 0;
WiFi.mode(WIFI_STA);
WiFi.begin(ssid, password);
Serial.println("");
Serial.println("Connecting to WiFi");
// Wait for connection
Serial.print("Connecting...");
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
if (i > 20){
state = false; break;
}
i++;
}
Serial.println("");
if (state){
Serial.print("Connected to ");
Serial.println(ssid);
Serial.print("IP address: ");
Serial.println(WiFi.localIP());
}
else {
Serial.println("Connection failed.");
}
return state;
}

Assuming the same issue as me #142
Please include #define ESPALEXA_DEBUG and your serial monitor output! Hopefully, @Aircoookie Responds to us.

I solved it! Well i believe it was just luck but i restarted my alexa dot and the arduino ide, then upload it again and it worked!

Same with me!!! Thank you. Dumb of me to not think of that haha.


Create a skeleton for my Project Portfolio Page (PPP)

As required in tP Task 4 (Week 7).

Codecov Report

Merging #29 (f912fed) into master (0b3878f) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master      #29   +/-   ##
=========================================
  Coverage     72.15%   72.15%
  Complexity      399      399
=========================================
  Files            70       70
  Lines          1232     1232
  Branches        125      125
=========================================
  Hits            889      889
  Misses          311      311
  Partials         32       32

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0b3878f...f912fed. Read the comment docs.

LGTM


Preserve type parameter constraint in emitted mapped types while preserving their distributivity

fixes https://github.com/microsoft/TypeScript/issues/54560
The idea behind this PR is that:

a different emit has to be done when a homomorphic mapped type has a non-homomorphic instantiation because distributivity has to be preserved
the mappedType.target is the homomorphic one so it feels like it can be used to create a proper instantiation
we only need to create type params for both K and T and instantiate the target's template type with them properly

@typescript-bot test this
@typescript-bot run DT
@typescript-bot user test this
@typescript-bot test top100
@typescript-bot perf test this

@typescript-bot test this
@typescript-bot run DT
@typescript-bot user test this
@typescript-bot test top100
@typescript-bot perf test this

This looks ok to me, but I don't fully understand the code, so I'll defer to @weswigham.

is this still planned to be shipped with 5.7?

is this still planned to be shipped with 5.7?

No. I believe this PR is stalled for the moment.


usage 'v-model' in vue-multiselect

when I use 'v-model' in vue-multiselect ,there will be a warning,   "v-model does not support element type: DIV". this is why?
                   <multi-select
                      v-model="selectedCountries"
                      id="ajax"
                      label="userName"
                      track-by="code"
                      placeholder=""
                      :options="userNames"
                      :multiple="true"
                      :searchable="true"
                      :loading="isLoading"
                      :internal-search="false"
                      :clear-on-select="false"
                      :close-on-select="false"
                      :options-limit="300"
                      :limit="2"
                      deselect-label=""
                      select-label=""
                      :hide-selected="true"
                      @search-change="asyncUserFind"
                      @update="updateUserSelected8">

                  </multi-select>

Could you elaborate? Provide a JSFiddle maybe?

This fiddle generates the same warning: https://jsfiddle.net/04jvjuv3/43/

This generates the same warning https://jsfiddle.net/04jvjuv3/44/

@G2linkweb @stesi561 Please make sure you have version 2.0 of multiselect. The support for v-model was added in that version. In the jsfiddle, v1.1.4 is loaded, so it won't work.


[Refactor] Distinguishing external "stages" from internal "phases"

Features

"Stages" can be controlled by users via hooks and by calling .resolve() or .reject() on a ModuleStatus object. Stages are "fetch", "translate" and "instantiate".
"Phases" (or Evaluation Phases) are internals, and users can't affect or inspect them in any way. Phases are "satisfy", "link" and "ready".
"Satisfy" phase is triggered before resolving the "instantiate" stage, these is, for now, the last piece that is async in the pipeline, after that, linking and evaluation is sync, but that might change in the future with top level async calls.
Module.evaluate(ns) is now specced, and it is async to guarantee future proof.
readiness can only be achieve by invoking loader.import("name") or Module.evaluate(ns).

Invariants

the namespace of a source text module record can only be accessed in user-land after finishing SatisfyInstance() via await loader.import(), await Module.evaluate() or get entry.module.
the namespace of a dynamic module record is "satisfied" by definition (it can only be created via new Module()), which guarantees that all namespace exotic from module records in user-land are "satisfied".
new ModuleStatus(loader, key, ns) can be used to synchronously populate the registry because all namespace objects in user-land are "satisfied".

Rationale
The primary motivation is to enable synchronous registration of pre-instantiated modules. This is important for use cases like polyfills in the browser and for Node compatibility.
But we would need to be sure that such an API cannot add a not-fully-satisfied module. If we did, there would be no way for the ModuleStatus object in the registry to know where it stands in the loading pipeline. We'd have to keep back-pointers to module namespace objects' ModuleStatus objects in order to know when they are safe to be synchronously added. But there's a many-to-one relationship between ModuleStatus objects and module instances -- and it'd be nonsense to allow different ModuleStatuses to fight with each other about how to satisfy the dependencies of a module.
The way to make this coherent is to have an invariant that by the time a module instance is exposed to userland, all its dependencies have been satisfied. This keeps the roles and responsibilities of module namespace objects and ModuleStatus objects distinct, and ensures that synchronous registration is rational.
ASCII graph for this pipeline refactor
fetch    translate   instantiate
 [ ] ------- [ ] ------- [*]
                        / | \
                       /  |  \
                      /   |   \
                     /    |    \
                    /     |     \
                   /      |      \
                 [*]     [ ]     [ ]
               satisfy   link   ready

Just had a couple nits I left in line notes. r+ with those addressed. Thanks!!


Trace storage blob

For reviewers, there are two things to look for.

I add the @distributed_trace or @distributed_trace_async for every function that will lead to a network call.
I have added the DistributedTracingPolicy to the correct place.
I propagate the context with tracing_context.with_current_context any time a new thread is created. This should work with both threading and ThreadPoolExecutor. An example is the following:

future = executor.submit(tracing_context.with_current_context(uploader.process_chunk), chunk)

Can one of the admins verify this patch?

/azp run python - client - ci


[PLAYER] when then are alot of players, players movement are a little weird & have some sort of delay and is not tweening correctly

the reason for this is the server sends an update 10 per seconds and each time the clients receives the new position, I lerp from old to new position. looks like i could do some sort of prediction and correct position when I receive info from server

a few tweaks on the lerping values seems to have remove that issue, but it is highly dependant on the speed of the character. this is not a big issues and can be closed for the moment.


What's about Modbus TCP and Huawei Fusion Charge charger?

Discussed in https://github.com/evcc-io/evcc/discussions/10929
There are some people having trouble connect the charger via Modbus TCP.
Is there any news?
best Mike.

Originally posted by michaelhahn112 November 26, 2023
Hallo,
ich bin hier am verzweifeln, ich bekomme evcc nicht zum laufen.
Ich habe einen Huawei Wechselrichter Sun, eine Huawei Batterie Luna und eine Huawei Wallbox.
Da der Wechselrichter nur eine Modbusverbindung zulässt , will ich den MOdbus Proxy von evcc nutzen.
Ich poste mal meine Config und das Logfile.
HA Ip: <IP_ADDRESS>
Wechselrichter IP: <IP_ADDRESS>
Wallbox IP: <IP_ADDRESS>
network:
  # schema is the HTTP schema
  # setting to `https` does not enable https, it only changes the way URLs are generated
  schema: http
  # host is the hostname or IP address
  # if the host name contains a `.local` suffix, the name will be announced on MDNS
  # docker: MDNS announcements don't work. host must be set to the docker host's name.
  host: <IP_ADDRESS>
  # port is the listening port for UI and api
  # evcc will listen on all available interfaces
  port: 7070

interval: 10s # control cycle interval

# sponsor token enables optional features (request at https://cloud.evcc.io)
sponsortoken: XXX

# telemetry enables aggregated statistics
#
# Telemetry allows collecting usage data (grid and green energy, charge power).
# Data is aggregated, no individual charging sessions are tracked. The collected,
# anonymous data can be retrieved using https://api.evcc.io.
#
# See https://github.com/evcc-io/evcc/pull/4343 or details.
#
# For time being, this is only available to sponsors, hence data is associated with
# the sponsor token's identity.
#
# telemetry: true

# log settings
log: info
levels:
  site: debug
  lp-1: debug
  lp-2: debug

modbusproxy:
  - port: 5200
    uri: <IP_ADDRESS>:502

# meter definitions
# name can be freely chosen and is used as reference when assigning meters to site and loadpoints
# for documentation see https://docs.evcc.io/docs/devices/meters
meters:

    - name: grid
      type: template
      template: huawei-dongle
      usage: grid

      # Modbus TCP
      modbus: tcpip
      id: 1
#      host: <IP_ADDRESS> # Hostname
#      port: 5200 # Port

    - name: pv
      type: template
      template: huawei-dongle
      usage: pv

      # Modbus TCP
      modbus: tcpip
      id: 1
#      host: <IP_ADDRESS> # Hostname
#      port: 5200 # Port

    - name: battery
      type: template
      template: huawei-dongle
      usage: battery

      # Modbus TCP
      modbus: tcpip
      id: 1
#      host: <IP_ADDRESS> # Hostname
#      port: 5200 # Port

# charger definitions
# name can be freely chosen and is used as reference when assigning charger to vehicle
# for documentation see https://docs.evcc.io/docs/devices/chargers

chargers:
  - name: charger
    type: template
    template: huawei-ac

    # Modbus TCP
    modbus: tcpip
    id: 255
#    host: <IP_ADDRESS> # Hostname
#    port: 5200 # Port

# vehicle definitions
# name can be freely chosen and is used as reference when assigning vehicle to loadpoint
# for documentation see https://docs.evcc.io/docs/devices/vehicles
vehicles:
  - name: car
    type: template
    template: dacia
    title: Dacia Spring # Wird in der Benutzeroberfläche angezeigt (optional)
    user: XXX # Benutzerkonto (bspw. E-Mail Adresse, User Id, etc.)
    password: XXX # Passwort des Benutzerkontos (bei führenden Nullen bitte in einfache Hochkommata setzen)
 #   vin: WREN... # Erforderlich, wenn mehrere Fahrzeuge des Herstellers vorhanden sind (optional)
    capacity: 27 # Akkukapazität in kWh (optional)

# site describes the EVU connection, PV and home battery
site:
  - title: Zuhause # display name for UI
    meters:
      grid: grid # grid meter reference
      pv: pv
      battery: battery

    residualPower: 200

# loadpoint describes the charger, charge meter and connected vehicle
loadpoints:
  - title: Garage # display name for UI
    charger: charger # charger
    vehicle: car
    mode: "off" # set default charge mode, use "off" to disable by default if charger is publicly available
    # vehicle: car1 # set default vehicle (disables vehicle detection)
    resetOnDisconnect: true # set defaults when vehicle disconnects
    soc:
      # polling defines usage of the vehicle APIs
      # Modifying the default settings it NOT recommended. It MAY deplete your vehicle's battery
      # or lead to vehicle manufacturer banning you from API use. USE AT YOUR OWN RISK.
      poll:
        # poll mode defines under which condition the vehicle API is called:
        #   charging: update vehicle ONLY when charging (this is the recommended default)
        #   connected: update vehicle when connected (not only charging), interval defines how often
        #   always: always update vehicle regardless of connection state, interval defines how often (only supported for single vehicle)
        mode: charging
        # poll interval defines how often the vehicle API may be polled if NOT charging
        interval: 60m
      estimate: true # set false to disable interpolating between api updates (not recommended)
    phases: 1 # electrical connection (normal charger: default 3 for 3 phase, 1p3p charger: 0 for "auto" or 1/3 for fixed phases)
    enable: # pv mode enable behavior
      delay: 1m # threshold must be exceeded for this long
      threshold: 0 # grid power threshold (in Watts, negative=export). If zero, export must exceed minimum charge power to enable
    disable: # pv mode disable behavior
      delay: 3m # threshold must be exceeded for this long
      threshold: 0 # maximum import power (W)
    guardDuration: 5m # switch charger contactor not more often than this (default 5m)
    minCurrent: 6 # minimum charge current (default 6A)
    maxCurrent: 16 # maximum charge current (default 16A)

Und hier das Logfile:
[lp-1  ] ERROR 2023/11/26 12:38:24 charge meter: dial tcp :502: connect: connection refused
[site  ] ERROR 2023/11/26 12:38:24 pv 1 power: read failed: dial tcp :502: connect: connection refused
[site  ] DEBUG 2023/11/26 12:38:24 pv power: 0W
[site  ] ERROR 2023/11/26 12:38:25 battery 1 power: read failed: dial tcp :502: connect: connection refused
[site  ] DEBUG 2023/11/26 12:38:25 battery soc: 0%
[site  ] DEBUG 2023/11/26 12:38:25 battery power: 0W
[site  ] ERROR 2023/11/26 12:38:25 grid meter: read failed: dial tcp :502: connect: connection refused
[site  ] ERROR 2023/11/26 12:38:25 grid meter: read failed: dial tcp :502: connect: connection refused
[site  ] DEBUG 2023/11/26 12:38:34 ----
[lp-1  ] ERROR 2023/11/26 12:38:34 charge meter: dial tcp :502: connect: connection refused
[site  ] ERROR 2023/11/26 12:38:34 pv 1 power: read failed: dial tcp :502: connect: connection refused
[site  ] DEBUG 2023/11/26 12:38:34 pv power: 0W
[site  ] ERROR 2023/11/26 12:38:35 battery 1 power: read failed: dial tcp :502: connect: connection refused
[site  ] DEBUG 2023/11/26 12:38:35 battery soc: 0%
[site  ] DEBUG 2023/11/26 12:38:35 battery power: 0W
[site  ] ERROR 2023/11/26 12:38:35 grid meter: read failed: dial tcp :502: connect: connection refused
[site  ] ERROR 2023/11/26 12:38:35 grid meter: read failed: dial tcp :502: connect: connection refused
[site  ] DEBUG 2023/11/26 12:38:44 ----
[lp-1  ] ERROR 2023/11/26 12:38:44 charge meter: dial tcp :502: connect: connection refused
[site  ] ERROR 2023/11/26 12:38:44 pv 1 power: read failed: dial tcp :502: connect: connection refused
[site  ] DEBUG 2023/11/26 12:38:44 pv power: 0W
[site  ] ERROR 2023/11/26 12:38:45 battery 1 power: read failed: dial tcp :502: connect: connection refused
[site  ] DEBUG 2023/11/26 12:38:45 battery soc: 0%
[site  ] DEBUG 2023/11/26 12:38:45 battery power: 0W
[site  ] ERROR 2023/11/26 12:38:45 grid meter: read failed: dial tcp :502: connect: connection refused
[site  ] ERROR 2023/11/26 12:38:45 grid meter: read failed: dial tcp :502: connect: connection refused
[site  ] DEBUG 2023/11/26 12:38:54 ----
[lp-1  ] ERROR 2023/11/26 12:38:54 charge meter: dial tcp :502: connect: connection refused
[site  ] ERROR 2023/11/26 12:38:54 pv 1 power: read failed: dial tcp :502: connect: connection refused
[site  ] DEBUG 2023/11/26 12:38:54 pv power: 0W
[site  ] ERROR 2023/11/26 12:38:55 battery 1 power: read failed: dial tcp :502: connect: connection refused
[site  ] DEBUG 2023/11/26 12:38:55 battery soc: 0%
[site  ] DEBUG 2023/11/26 12:38:55 battery power: 0W
[site  ] ERROR 2023/11/26 12:38:55 grid meter: read failed: dial tcp :502: connect: connection refused
[site  ] ERROR 2023/11/26 12:38:55 grid meter: read failed: dial tcp :502: connect: connection refused
[site  ] DEBUG 2023/11/26 12:39:04 ----
[lp-1  ] ERROR 2023/11/26 12:39:04 charge meter: dial tcp :502: connect: connection refused
[site  ] ERROR 2023/11/26 12:39:04 pv 1 power: read failed: dial tcp :502: connect: connection refused
[site  ] DEBUG 2023/11/26 12:39:04 pv power: 0W
[site  ] ERROR 2023/11/26 12:39:05 battery 1 power: read failed: dial tcp :502: connect: connection refused
[site  ] DEBUG 2023/11/26 12:39:05 battery soc: 0%
[site  ] DEBUG 2023/11/26 12:39:05 battery power: 0W
[site  ] ERROR 2023/11/26 12:39:05 grid meter: read failed: dial tcp :502: connect: connection refused
[site  ] ERROR 2023/11/26 12:39:05 grid meter: read failed: dial tcp :502: connect: connection refused
```</div>

Unklar, was hier das Issue sein soll.


Update Vocalink data sets to v660 valid as of 14/04/2021

Hey @jesus-s-sanzo I just started maintaining a package for performing the uk modulus validation, which uses the latest version of vocalink dataset (790). Let me know if you have any feedback.
https://www.npmjs.com/package/uk-modulus-check
https://github.com/oli5679/uk-modulus-check


Installation \ ???? \ HOW to? \ Please \ Rookie Problem

ERROR: Could not install packages due to an OSError: [WinError 5] Accesso negato: 'c:\programdata\anaconda3\lib\site-packages\joblib-1.0.1.dist-info\direct_url.json'
Consider using the --user option or check the permissions.
--> Using Anancoda Jupyter \
Why not possible?
Why not possible with PyCharm?
Thanks
Valo

You should have the right permissions: https://stackoverflow.com/a/27801762


Core should take file-like objects instead of file names

In my experimentation with this library, I have found it frustrating that, if I have a file-like object, for example a StringIO, I am forced to write the data to a file before validating it.
This does not conform with Python's standard practices, and the fact that this lengthy process is only for validating the file type makes things even more difficult.
My proposal is:

The source_file argument now takes a file rather than a string filename.
Add a new optional argument validation_type, with possible values yaml or json
If validation_type is not None, use YAML or JSON resp6ctively to parse the file.
Else, try setting self.source to yaml.load(source_file), then to json.load(source_file); if neither work, you can just fall back to the source_data argument as you do now. If people have issues with this automatic parsing attempt, they can use the new argument to force it.

As a bonus, this fix also resolves #89.

Together with the functionality described above, it would be nice if there was a clear way how to re-use the same scheme multiple times to validate data sets against it:
In the moment, it seems that both have to be parsed "together" into a "core object" core = Core( scheme_files, data_file ) which then features the core.validate() function.
However, it would be more practical the state something a la scheme = Scheme( scheme_files ) and then  scheme.validate( data_file_A ) and scheme.validate( data_file_B ) and so forth ...

@brownberry I have not yet analyzed how much this would change in the code but it feels like that would require some major rework of the code and i am not ready to commit to that one yet. If you want to probe the idea to see what would be required for this to work i would love to see some WIP MR that shows the scope/size of that kind of feature.

@MasterEric @brownberry a1919fa614c637e31d0f9bd4d1bb2e6cb092957e Feature implemented in next major release where you can now accept file like objects, specially designed for StringIO to be used.
The feature you suggested @brownberry you have to open up a new issue feature request for to reimplenet Schema as a object instead of how it is parsed right now.

The following example script shows how the new feature will work
schema = """
allowempty: True
mapping:
  intents:
    type: !!python/str "seq"
    sequence:
    - type: !!python/str "str"
"""

data = """
intents:
 - greet
 - default
 - goodbye
"""

import pykwalify
pykwalify.init_logging(4)

from pykwalify.core import Core

try:
    from StringIO import StringIO ## for Python 2
except ImportError:
    from io import StringIO ## for Python 3

s = StringIO()
s.write(schema)
s.seek(0)

d = StringIO()
d.write(data)
d.seek(0)

c = Core(schema_file_obj=s, data_file_obj=d)
c.validate()


Refactor functions with update syntax

For example code in https://github.com/zeyla/serenity/blob/d925f926c0f9f5b8010a998570441258417fc89a/src/framework/standard/command.rs#L74-L94 could be done like
Command {
    exec: CommandType::Basic(Box::new(f)),
    help_available: true,
    required_permissions: Permissions::empty(),
    .. Default::default(),
}

I'm sure there are other places where this can be used
** derive Default first

Could I take this?

Absolutely, thanks


Cli complete

Changes here include fixes for Issues #15, #18, and #19.
It became too difficult to make all the changes indpendent, so felt more efficient to combine them in one branch, rather than on independent ones.
I've updated setup.py to be ready for PyPI with the new package name (sif_reader, as discussed in Issue #15), pandas as a dependency (as discussed in Issue #18), and updated the README to refect these changes.
I've added some tests for the CLI as discussed in Issue #19 , and cleaned up some of the other test files, reflecting the name change of the package.

I believe the build is failiing due to the name change of the package. Is it possible to update the build script, or perhaps better to create a new sif_parser repository?

However, I'm hesitating to rename the package name without any transition term. Some more people are using this package. Maybe better to make more gradual transition.
I think it would be great to keep both names at this stage, but for import sif_reader, we can make a deprecation warning. Do you have any idea to enable this?

One solution is to create a new repository for it.
If we do not want to create a new repository with the new name, we can duplicate the code base within this repository, creating both a sif_reader and sif_parser version. Then in the sif_reader version of the package we can add a deprication warning. I've reflected this is the newest commit. (If we decide to go this route we should remember to create an Issue that is linked to in the DepricationWarning for users to posr comments, as described in PEP 387.)

One solution is to create a new repository for it.

Sounds good. I made a repository https://github.com/fujiisoup/sif_parser.
Could you send the same pull request to the above repo?
Tha same tests will run automatically.


Inventory path character limit of 255

Due to autopkg being on my machine it has some long path names to applications like "/Users/eholtam/Library/AutoPkg/Cache/com.github.poundbangbash.eholtam-recipes.pkg.SuspiciousPackageApp/SuspiciousPackageAppPkg/Applications/SuspiciousPackage.app/Contents/Library/QuickLook/SuspiciousPackage.qlgenerator/Contents/SharedSupport/UpdateCheckerHost.app" which is 266 characters.  With that in my home directory I get the following when munkireport tries to report the inventory back in.
 Munkireport: Server info: starting: reportdata
Server An error occurred while processing: Inventory_model
Server Error: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'path' at row 1
Server info: starting: inventory

As a workaround I've added $conf['bundlepath_ignorelist'] = array('.*/Library/AutoPkg.*'); to config.php but it may be worth looking at increasing the path character limit and if it impacts db speeds.

I ran the following command on my MySQL db to fix it:
ALTER TABLE inventoryitem MODIFY path VARCHAR(512);


feat: add implementation option

The implementation option is used to modify the actual bundler runtime version.
When working with Module Federation, the runtime is responsible for handling the loading and sharing of remote modules. By default, the bundler uses a specific version of the runtime that is compatible with its version. However, in some cases, you might need to use a different version of the runtime or a custom implementation.
By specifying the implementation option, you can provide a path to the desired runtime implementation.
This is particularly useful if you need to use features from a newer or older version of the runtime that are not available in the default version provided by the bundler.
https://module-federation.io/configure/implementation.html

Hey there,
implementation has been added in version 1.1.7. Or am I wrong?
This issue can be closed.

Yep, thanks @RobinBomkamp for your help


chore: allow to fail if unavailable

About the changes
On synchronous initialization, we were not failing in case of an invalid response code but still marking the client as ready. With this change, we're making sure we have a valid features collection before marking the client as ready and we're not going to throttle in case of asynchronous initialization.

I see our tests that test that we increment failure count when we fail to connect is failing.


E000295 is empty

https://github.com/unitedstates/contact-congress/blob/master/members/E000295.yaml

all senator yamls for the new congress are empty right now because they lack websites (and thus contact forms).

What is the value in having the empty files?

They were algorithmically created for everyone elected in the new congress. They will be filled once the senators have websites. For now, they stand as placeholders, and I guess accurately represent the state of that senator's webform...


Ensure task scope doesn't inherit breadcrumbs

During process startup, several things may get logged (for example by
imports) and subsequently get collected by sentry as breadcrumbs.
Since breadcrumbs are inherited in nested scopes, any task that raises a
sentry error will include breadcrumbs since the process started.
This commit ensures that each task's sentry scope is started without any
preexisting breadcrumbs. It adds a test that fails without the change
that clears the scope's breadcrumbs.
Related issue & PR in sentry's SDK:

https://github.com/getsentry/sentry-python/issues/207
https://github.com/getsentry/sentry-python/pull/297

Hi @dimrozakis,
I've retriggered the master build and it seems to fail on the same tests.
Also, please see #10

@dimrozakis I'll be going through this shortly


Update auto unmask to support escape character in the middle

This is to make auto unmask to support escape character in the middle.
Example:
Escape pattern: aaa\9999
Input value: aaa9
autoUnmask: true
Before PR result: aaa9
After PR result: aaa99
Changes:

Remove lvp == -1 from the condition.
Add unit test case

@zeskysee ,
Can you send a cleaner PR, with only the change.  Refork, make the change & PR.
Thx
Robin


Integrate with Windows credentials dialog

I.e.

So users can choose different credentials or get proper 2-factor or smartcard auth

As I recall, we will get this if we start using CredUIPromptForWindowsCredentials instead of CredUIPromptForCredentials.
The problem is that it doesn't automatically give us support for other fancy types of auth. That function is more generic, and it doesn't just return you a username/password pair - it returns a generic blob that contains credential payload that is specific to the provider that user chose. Since right now we use HTTP basic to pass credentials, we can only handle username/password, so those other types won't work until we plumb through the whole thing to the server (and possibly to user profile service).
There's also the question of what happens if the server isn't Windows. In this case username/password is really the best we can do. And the old-style dialog doesn't really care if that username isn't a Windows username. I'm not sure whether it'll still be true for the new one.
So this is potentially a very huge item, with plenty of investigations, and likely a lot of code. I doubt it'd fit in RTM, unless we explicitly support username/password input only and nothing else; but then the new dialog doesn't actually offer any advantages, except for styling, and in fact will be deceptive in that some options offered won't even work.

It looks like we can use the new dialog but tell it that we need credentials in clear text via CREDUIWIN_GENERIC. In this case I expect it to omit any providers that cannot service that request from the list. Then we can assume that CredUnPackAuthenticationBuffer can be used to extract data from the blob.
Remains to be seen which providers (PIN, smartcard etc) will actually remain available with this flag though.

CredUnPackAuthenticationBuffer  ?

Oh, saw you comment after

For the User Profile service, there is a way we can eliminate the need to send username/password entirely. I'l do that as a part of the Broker as a service change. I agree with @int19h, I try a prototype and see which providers  are supported with generic.


Can't open files from within Acode (even after reading similar issues and FAQ)

It seems like Android 12 permissions changed folder access a lot... I saw a few other issues about this, and some suggestions how to work around it. Unfortunately those suggestions aren't working for me.
In the Files menu I can open up the add path option, choose the folder, and confirm that I want to "Allow Acode to access files in folder name". Now I can see the folder and the files inside it in the Acode "file browser". If I select the folder and press the tick, now the folder and its contents show up in the left menu, below the list of Active files. But when I try opening any of the files, nothing happens. I've tried opening them from either the left menu or the Acode file browser, neither is working for me.
I am able to open the files from the Android file manager, if I use open with and select Acode. I can edit and save them. The only problem seems to be opening them from within Acode.
Do you have any suggestions what else I could try? I'm on version 1.8.3.

@deadlyjack here's a screen recording:
https://www.dropbox.com/s/5ifoxl9xpnf6wc5/Screen_Recording_20230607_211414_Acode.mp4?dl=0

I tried reinstalling now... There was no change. Do you have any other
ideas?
This is on Android 13, security patch from May 1st 2023.
On Thu, 8 Jun 2023, 06:18 Ratul Hasan, @.***> wrote:

probably app crashed (no options showing ). tried reinstalling?
—
Reply to this email directly, view it on GitHub
https://github.com/deadlyjack/Acode/issues/714#issuecomment-1581300610,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABGAOFRFPH3VPK4UBVRNWE3XKDAZFANCNFSM6AAAAAAY2WH7OM
.
You are receiving this because you authored the thread.Message ID:
@.***>

Acode is android of the only vscode

That's weird. Try updating the app, it may fix it.

@deadlyjack I had already tried uninstalling and re-installing, but I gave it another try... still no luck. When you say "update", I see 1.8.4 here on github, but only 1.8.3 in the Google Play Store, so I think I'm on the newest version available to me.
It's a Samsung Galaxy S23. Compatibility says "Works on your device".
Could it be an obscure permissions issue? I have allowed "Music and audio", "Photos and videos" and "Notifications". There is nothing listed under "Not allowed".

Try clearing app data once. I'll try it on the s23 and see what's wrong. Thank you, for reporting.

Clearing the app data removed all my configurations, so the app looks like your demo screenshots again. Unfortunately, it hasn't fixed the bug. I can still open folders, but not files.

I'm on v1.8.3 from the Google Play Store.

Warning

@chrisrapson are you using some kind of theme ?
Try clear data and uninstall app.
Reinstall latest GitHub version.
Go to app settings and give it all files access.

music and audio
photos and videos
Uncheck- remove permission if app is unused.

Try making that acode folder in different location (sd card).
*Check accessibility some times app revokes app permission and background usage.


Styling / Branding

There is a logo and there are some colours. There is also a "tone" to the documentation (examples / tutorials). Are they all sufficient for reuse? Should we revisit these things, and if so:

what does a modernized colour scheme look like?
what does a modernized logo concept look like?
what does a modernized tone for the project look like?
let's describe a roadmap for evaluating the current state of the "look" of C4
let's define a roadmap for re-inventing the look of C4

I got some interesting results from the survey I sent out, 4 more did the full survey. I will post the answers in a legible format.

closing this here, the slack channel is a better place to have this conversation, plus this is outdated.


Support for Polyline Line Types

SUMMARY
Support for polyline line types.
DETAILS
Would like to be able to add different polyline line types such as dotted,  double line, perhaps other styles and patterns as mentioned here https://github.com/amay077/Xamarin.Forms.GoogleMaps/issues/470).
PLATFORMS

[x] Android
[x] iOS

Prs are welcome

closed by #50


fix: mcs-api guarantee the forked endpointslices' ports and services‘ ports are same

fix: mcs-api guarantee the forked endpointslices' ports and services‘ ports are same

What type of PR is this?
Fix mcs-api
What this PR does / why we need it:
The imported service can’t find the corresponding endpointslices.
Which issue(s) this PR fixes:

Usage: Fixes #508
Special notes for your reviewer:

This modification does not seem very sensible.
But the purpose is to keep the service port name matching the field in the endpointslice.


modularity and middleware with proxies

i've been wondering about what decisions can and should be made by proxy-based libraries for playing nice with other proxy-based libraries. proxies are pretty well suited for modularity, as you can extend the proxy you're working with by wrapping it with another proxy (though, i am curious how performant this is for many layers of proxies).
for instance, a logger proxy could easily be implemented separately from observer-util that lives below observables: observable(logger(state)). this is the first problem solved in redux by middleware. with proxies, there may be useful patterns to help with interoperability that don't require commitment to a particular library.
in playing with immutator and morphable, for example, i found that i needed to unwrap the immutator and observable proxy layers (i ended up choosing a different interface for accessing the underlying target than you did in observer-util). line 4 in the example for immutator is residual of this.
do you have thoughts on this broader question of the interfacing between libraries?

I see you have been busy the last couple of days 😄 I will check out your libs tomorrow (going to sleep now).
Double wrapping with Proxies is not that bad and I used in my previous projects. I can't find my related JSPerf snippets, but once you use Proxies it doesn't really matter how many times you wrap from my experience. We should make a new JSPerf test with double and triple wrapping though to make sure.
Also the only thing that may be problematic with double wrapping is the receiver argument in some traps, but I think it won't cause any problems. I will add some double wrapping tests to this lib later this week.

I checked your libs and they are pretty awesome and I love they fit together 👍 I am not sure I understand this part though.

in playing with immutator and morphable, for example, i found that i needed to unwrap the immutator and observable proxy layers (i ended up choosing a different interface for accessing the underlying target than you did in observer-util). line 4 in the example for immutator is residual of this.

Where did you use raw in your code after you defined it?
Another side note: I would always use the matching Reflect method in Proxy traps with all the arguments - including receiver. It makes sure to correctly forward the trapped operation (even in exotic cases of double Proxy wrapping and prototypal inheritance).

Thanks for the rec, I'll read up on Reflect.
_.raw is used internally by morphable to access raw state. Normally it just uses the observer-util raw function. The trouble is, by double wrapping, morphable needs to know how to unwrap the immutator proxy first. line 4 is my inelegant solution to this -- configuration for the two libraries to work together. Without it, morphable doesn't get back the raw object it expects and doesn't work properly.

Oh I get it! Your solution might be more elegant actually  😄 Storing the raw object in a property instead of a WeakMap might solve the raw() - double wrapping interaction issue.
Thanks for the discussion btw 🙂 This is something that should be solved.


[11.x] Adds JSON (transport) helper class

What?
I'm tired of dealing with JSON strings with Arr and data_* all over the place, plus replicating the array across plethora of functions waiting for to reach memory limit because the array is copied on each function.
So I decided to make a PR to include a JSON utility to manage JSON data.
use Illuminate\Support\Json;

$json = new Json(['items' => /* Somewhat a large piece of data */ ])

$json->set('foo', 'bar');

$json->when(true)->set('baz' => 'quz');

$json->dd();

It's made to handle arrays and Arrayable objects. It works like the Config Repository, in terms of retrieving and setting data. The main idea for this class is for developers to build JSON from their application, rather than push an array and a call it a day. This way, we can avoid the spiral of multiple Arr and data_* calls all over the place and passing the same object around.
Also, it includes everything except the kitchen sink: Reponsable (if symfony/http-foundation is installed, added to composer suggestions), Stringable, JsonSerializable, and Arrayable.
This object also paves the way for incorporating it into other parts of the framework where JSON is required to be manipulated.

Why no using Fluent? Only top-level keys are supported.
Why not config's Repository? It's more config-oriented than json-oriented.
Why not Collection? It's very cool for lists, but not multidimensional arrays.

Is this what Arr class would look like if it could hold state and was serializable to JSON?
There is already this concept with Stringable, maybe do a similar thing so that:
$data = Arr::of(['whatever' => 'is this']);

$data->set('yoo.multi.demensional.array.is.easy.to.set', 42);

$data->toJson();

Is this what Arr class would look like if it could hold state and was serializable to JSON?
There is already this concept with Stringable and Str::of, maybe do a similar thing so that:
$data = Arr::of(['whatever' => 'is this']);

$data->set('yoo.multi.demensional.array.is.easy.to.set', 42);

$data->toJson();

You know, that sounds like something better. I'll wait for maintainers word about this: shoot it down, push it to Arr::of (and change the name to something Arrayable with naming collision or else), or just keep it as Json and, may be, use Arr::json().


DiscussionNewCommentViewController change

Something that came up while i was going through the code with the new guy. The item enum is either .Post or .Response. So, it made sense to rename it.

@aleffert pl review

:+1:


PPI use question

I am trying to render a bitmap to be printed at 300 dpi.
Setting the PPI of the svgDocument to 300 produces a bitmap 96/96 dpi (my monitor resolution), not 300/300.
I am using the following VB code with SVG ver:3.2.3:
Public Function getResourceBitmapTest2(resource As Byte(),
size As SizeF) As Bitmap
Dim svgDoc As SvgDocument
Using stream = New MemoryStream(resource)
Dim xmlDocument As New XmlDocument()
xmlDocument.Load(stream)
svgDoc = SvgDocument.Open(xmlDocument)
End Using
svgDoc.Width = size.Width
svgDoc.Height = size.Height
svgDoc.Ppi = 300
Dim bitmap = svgDoc.Draw()
Console.WriteLine("HorizontalResolution:{0} VerticalResolution:{1}", bitmap.HorizontalResolution, bitmap.VerticalResolution)
Return bitmap
End Function
Am I not understanding how to do this?
Many thanks,
Kingman

I think you can do it by setting resolution of bitmap.
var bitmap = svgDoc.Draw();
bitmap.SetResolution(300.0f, 300.0f);


NIMSDK_LITE   pod install warning

[!] 'NIMSDK_LITE' uses the unencrypted http protocol to transfer the Pod. Please be sure you're in a safe network with only trusted hosts in there. Please reach out to the library author to notify them of this security issue.
pod install 成功之后, 每次看到这个警告, 希望能修改一下。

这个不影响的


multi-cluster alerting

i have several clusters, and a heapster plugin is installed in each cluster, i hope all clusters use one alert system , is hawkular can meet my needs?

It is an interesting question.
By default, Hawkular is designed with multitenancy, so, if you have a single installation, you may define hard partitioning between domain, also for metrics and alerting.
Also, if you want to have a strong physically partition (as you pointed out in your comment) that design suits better with Alerting 2.x (version we are working on), as we can get federated alerting from several sources (even different technologies involved, Hawkular Metrics or others like PrometheusIO, Elasticsearch, Kafka, or your custom source sending directly data or events).
Would you like to describe your scenarios and requeriments ?
That could be an interesting input for us to work on for .next version.
Thanks


Easier (un)nesting

Hi,
I'm evaluating shale for a project, and was wondering if there's an easier way to get from flattened JSON to nested models.
Example:
class Person < ApplicationRecord
  belongs_to :address

  # attribute :id
  # attribute :name
end

class Address < ApplicationRecord
  # attribute :street
  # attribute :city
end

class PersonMapper < Shale::Mapper
  model Person

  attribute :id,     Shale::Type::Integer
  attribute :name,   Shale::Type::String
  attribute :street, Shale::Type::String
  attribute :city,   Shale::Type::String

  json do
    map :street, to: { address: :street }
    map :city,   to: { address: :city }
  end

  def address_from_json(model, key, value)
    model.build_address unless model.address
  end
end

… something like this. I could create a method for every single attribute that's "delegated" to address, but it gets verbose and tedious.

The "to: with hash" api is just an example, there's probably a better way
Could there also be a way to initialize the nested relation properly (model.build_address)
Is there an existing way that I overlooked?

Hey, currently there's no other way to do it - you have to use method for every attribute.
I wonder if something like this could solve most of this kind of use cases:
class PersonMapper < Shale::Mapper
  model Person

  attribute :id,     Shale::Type::Integer
  attribute :name,   Shale::Type::String

  json do
    map ['street', 'city'], using: { from: :address_from_json }
  end

  # hash would be { 'street' => 'foo', 'city' => 'bar' }
  def address_from_json(model, hash)
    model.build_address(hash)
  end
end

I'll have to think about all the use cases that can be solved by this. I just don't want to add something that's tight to a single domain specific use case.

I just released a new version that allows you to map group of elements using methods e.g.
class Person < Shale::Mapper
  attribute :name, Shale::Type::String

  json do
    group from: :name_from_json, to: :name_to_json do
      map 'first_name'
      map 'last_name'
    end
  end

  def name_from_json(model, value)
    model.name = "#{value['first_name']} #{value['last_name']}"
  end

  def name_to_json(model, doc)
    doc['first_name'] = model.name.split(' ')[0]
    doc['last_name'] = model.name.split(' ')[1]
  end
end

person = Person.from_json(<<~DATA)
{
  "first_name": "John",
  "last_name": "Doe"
}
DATA

Release notes are here: https://www.shalerb.org/releases.html#v080
I'm closing the issue, if you have more questions feel free to create a new one. Thanks.