Error: The getter 'scriptCode' isn't defined for the class 'dart.ui::Locale'

just updated
-version
Flutter 0.11.7-pre.17 • channel master • https://github.com/flutter/flutter.git
Framework • revision 9c3754d92f (16 minutes ago) • 2018-11-14 17:15:00 -0800
Engine • revision 289de46d3e
Tools • Dart 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)

--error
Compiler message:
file:///D:/flutter/packages/flutter/lib/src/widgets/app.dart:868:61: Error: The getter 'scriptCode' isn't defined for the class 'dart.ui::Locale'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'scriptCode'.
      allSupportedLocales['${locale.languageCode}_${locale?.scriptCode}_${locale.countryCode}'] ??= locale;
                                                            ^^^^^^^^^^
file:///D:/flutter/packages/flutter/lib/src/widgets/app.dart:869:65: Error: The getter 'scriptCode' isn't defined for the class 'dart.ui::Locale'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'scriptCode'.
      languageAndScriptLocales['${locale.languageCode}_${locale.scriptCode}'] ??= locale;
                                                                ^^^^^^^^^^
file:///D:/flutter/packages/flutter/lib/src/widgets/app.dart:886:84: Error: The getter 'scriptCode' isn't defined for the class 'dart.ui::Locale'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'scriptCode'.
      if (allSupportedLocales.containsKey('${userLocale.languageCode}_${userLocale.scriptCode}_${userLocale.countryCode}')) {
                                                                                ^^^^^^^^^^
file:///D:/flutter/packages/flutter/lib/src/widgets/app.dart:890:22: Error: The getter 'scriptCode' isn't defined for the class 'dart.ui::Locale'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'scriptCode'.
      if (userLocale.scriptCode != null) {
                     ^^^^^^^^^^
file:///D:/flutter/packages/flutter/lib/src/widgets/app.dart:891:96: Error: The getter 'scriptCode' isn't defined for the class 'dart.ui::Locale'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'scriptCode'.
        final Locale match = languageAndScriptLocales['${userLocale.languageCode}_${userLocale.scriptCode}'];

solution:
flutter clean

I doubt there will be a way to reproduce with the available information.
I'm going to close. Please reopen if you run into this again and perhaps have more information.

i also need this solution


[top_earlgrey,pinmux] Enable pull-down for TAP strap 0 at reset

TAP strap 0 is sampled after reset (and only once for life cycle states
that are not TEST_UNLOCKED* or RMA).  To ensure it gets sampled as 0
unless driven to 1 from an external source (and specifically that it
gets sampled as 0 when left floating / not connected), this enables the
pull-down of the pad at reset.
This resolves issue #24576 on master.

@andreaskurth , I just noted that this PR is directly into the release branch. Do first want to fix this on master and then just do a cherry pick (including reference to master commit)?

Pinmux-related TLTs chip_padctrl_attributes and chip_sw_spi_device_pinmux_sleep_retention still pass 100% after this change (even with -rx 10).
I'm now running pinmux block-level FPV to complete confirmation of this change.

@andreaskurth , I just noted that this PR is directly into the release branch. Do first want to fix this on master and then just do a cherry pick (including reference to master commit)?

Yes, I'll retarget this PR to master.

CHANGE AUTHORIZED: hw/ip/pinmux/rtl/pinmux.sv
This PR touches one single RTL file to implement a confirmed ECO. This is okay.

@andreaskurth this PR currently fails lint:
E   RESET_ONLY:   pinmux.sv:170   'mio_pad_attr_q[0]' is asynchronously reset but has no other assignments in this block

Can you please update it once more?

@andreaskurth this PR currently fails lint:
E   RESET_ONLY:   pinmux.sv:170   'mio_pad_attr_q[0]' is asynchronously reset but has no other assignments in this block

Can you please update it once more?

Thx @vogelpi, as we just discussed this gets waived

CHANGE AUTHORIZED: hw/ip/pinmux/rtl/pinmux.sv
This PR touches one single RTL file to implement a confirmed ECO. This is okay.

The chip_csr_hw_reset TLT fails because we changed the reset value of one register but the DV environment isn't aware of this. To be fixed.

We need to move forward with this change, so the automated test that fails because the DV env isn't aware of the changed reset value will have to be excluded for the moment. I'm creating an issue to track this.

CHANGE AUTHORIZED: hw/ip/pinmux/data/pinmux.hjson.tpl


added HumanError interface to the AppOutdatedError

@max is this enough to ensure that the frontend can handle this properly?

wrong max above ^. I need a lot more context

i can't answer with confidence, you should test it

the error is not directly shown to the user. closing.


feat: anon-aadhaar specs raw

This PR is adding the technical specifications for the Anon Aadhaar protocol.

@dmpierre once you approve feel free to merge @Meyanis95 (also see comment above)


Fixes loading problem with future textures

Synchronized access to internal texture table in GVRMaterial
Do not set a texture key to null if it exists
This fixes issue #967
GearVRF DCO signed off by: Nola Donato<EMAIL_ADDRESS>

Doesn't fix #967. The platform disappears in gvr-physics if the MainHelper:createGround:groundObject.getRenderData().getMaterial().setMainTexture(texture) is commented out.

Does fix #801.

Looks good. Will merge Monday afternoon.


The links points to ADF sdk instead of Synapse SDK

[Enter feedback here]

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

ID: 70754c7c-a557-5683-bb58-b2fd0409e09f
Version Independent ID: e91ceff6-8314-c9af-973c-d434c178fc0c
Content: Linked services in Azure Data Factory - Azure Data Factory
Content Source: articles/data-factory/concepts-linked-services.md
Service: data-factory
GitHub Login: @djpmsft
Microsoft Alias: daperlov

@ramanagarwal2005 Could you please share more details on "The links points to ADF sdk instead of Synapse SDK"?

@@ramanagarwal2005 , Thanks for bringing this to our attention, we have reached out to internal team to get confirmation about the appropriate link. We will update you once we have a response from the product team.
Thank you for your patience.

Hi @djpmsft,  Could you please have a look at the above feedback, looks like the links are referring to ADF API's? - Thank you

Hey @KranthiPakala-MSFT ,
This is an ADF Article so the link is correct. For any shared page, ADF and Synapse have the same doc link. The APIs in question should be the same, just change the resource to the Synapse workspace vs an ADF. Is there a use case that isn't working?
As no changes need to be made, I will go ahead and close.
Thanks,
Daniel
#please-close


Changing over time like the web api

I'm working on a project where when i score in the game "Rocket League" i trigger my lights into a matching team color. So far i've succefully made it using the web api, though it's a bit slow, so i want to get it going over lan.
In the web api i can call a function that changes the hue over time smoothly, though i can't seem to find anything like that with your library.
This is what it looks like in action, it changes slowly back to the color it was before scoring: https://imgur.com/a/FjoSa

SetColorAsync() has a TimeSpan parameter which can be passed to it. This is probably what you’re looking for.
https://www.dotnetperls.com/timespan

This was exactly what i was looking for :)


Alignment with respect to the calendar entry field

Sometimes field calendar last item on a page, and in this case falls when the calendar page body is increased by the height of the calendar. It would be desirable that in such cases, the calendar dropped the top, not the bottom.

@triplustri, If you think you've found a bug, please follow these instructions.
When you have updated this issue with the requisite requirements, we will reopen.  Thanks.
Also, if my understanding of your issue is correct, you may want to keep a very close eye on #4762 as we intend to support smart/fixed positioning in a much more robust fashion.


Proto compiler needs an protos_pb.erl src_out_dir option

protos_pb.erl comes handy when one tries to parse a stack trace. I have prepared https://github.com/rebar/rebar/pull/552 with a possible fix for it.
Thanks,
Doru

/cc @tomas-abrahamsson @lrascao

Hi, this issue was closed in an attempt to do quick basic filtering. All tickets prior to March 2017 were closed and will be reopened on a per-request basis, please give rebar3 a try and feel free to reopen if it's a pressing issue that is still unresolved.


Document better that RCP method names are camelCase even if original service method is snake_case

This is nice, but it is really surprising. It should be documented and clearly (large visible box) stated that this is happening.

Addressed https://github.com/oasislabs/oasis.js/pull/285.


implement Clone for Node

Clearly it's inefficient to do a clone on a deep node but sometimes it's useful for example
let dom = parse(html);
let expected = dom.children.clone();

// do stuff with dom

assert_eq!(dom.children, expected)

Might this example doesn't provide a plain explanation why it may be useful, but it is?

Implementation could be done by derive

Thanks for submitting this issue! I've been away on vacation but I'll try to find some time this weekend. Pr's are of course always welcome :)

added support for cloning in 0.5.0


Storybook integration

Resolved dependency issues, usable Storybook documentation system. Need to add documentation to most components on the fly when props passed into each components are finalized.

It does not serve as a testing framework as of now (although it is useful for debugging). It provides a structure for documentation now and for testing in the future.


how dialogflow handle unsupervised learning query

If I enter the query in dialogflow which is out of the scope, then how the dialogflow will handle it?
Is there any unsupervised learning is there in dialogflow or not?
Thanks!

I believe that falls under the Default Fallback Intent
Also having more Training Phrases should help as well.
Does that help answer the question? :)

You can also create Fallback Intents with is_fallback in a Intent


[2.6]display errors from project create/edit

Backport of https://github.com/rancher/dashboard/pull/3582

#3342


Option to disable vendor prefixes

Hi,
These days front-end development often times takes advantage of automated tasks such as Autoprefixer.
It would be great hence to have an option to disable automatic vendor prefixes insertion, as shown in Emmet docs:

This is why Emmet has css.autoInsertVendorPrefixes preference enabled by default. With this preference enabled, all CSS properties defined in vendor catalogs will be automatically supplied with matched vendor-prefixed variants.

How is it possible to disable css.autoInsertVendorPrefixes inside the Sublime Text plugin?
Thanks!

Oh, I found out how it can be done  :)
This should be included in the user settings file of the SublimeText Emmet plugin:
{
  "preferences": {
    "css.autoInsertVendorPrefixes": false
  }
}


Remove duplicate fields

Fixes https://github.com/sparrc/go-ping/issues/25

Can this be merged to master please?

Thank you, but this was fixed by #27 already


doc refers to bad URL

[Enter feedback here]
The doc refers to the following URL which is not valid:  https://api-luna.securitycenter.windows.com/api/remediationtasks/

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

ID: aef23eda-5f78-cdcf-ec94-ea5db4734a84
Version Independent ID: 8b5f28a6-e988-e992-a49e-1d99b3d3687e
Content: List all remediation activities
Content Source: microsoft-365/security/defender-endpoint/get-remediation-all-activities.md
Product: m365-security
GitHub Login: @jweston-1
Microsoft Alias: v-jweston

I should be able to get to this today.
From: Yogesh Kumar @.>
Sent: Thursday, February 10, 2022 1:01 AM
To: MicrosoftDocs/microsoft-365-docs @.>
Cc: Brit Weston (Aquent LLC) @.>; Mention @.>
Subject: Re: [MicrosoftDocs/microsoft-365-docs] doc refers to bad URL (Issue #7646)
@jweston-1https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjweston-1&data=04|01|v-jweston%40microsoft.com|ca21f14fa7b4489e0d3e08d9ec73ced2|72f988bf86f141af91ab2d7cd011db47|1|0|637800804416448036|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000&sdata=LGgGqSyPfT26MAdxpAK7pVN8nP0v0h96tJ2%2BATSrQjo%3D&reserved=0 Please help us in resolving this issue. Thanks

Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fmicrosoft-365-docs%2Fissues%2F7646%23issuecomment-1034659726&data=04|01|v-jweston%40microsoft.com|ca21f14fa7b4489e0d3e08d9ec73ced2|72f988bf86f141af91ab2d7cd011db47|1|0|637800804416448036|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000&sdata=2hqnFPHTLv6rGvPL5xCXnFdgV0iHYvSTpJdVZ8BX23o%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FATPOEXOGVTG4TTVO7UVPTJDU2N5DNANCNFSM5NZC7GEA&data=04|01|v-jweston%40microsoft.com|ca21f14fa7b4489e0d3e08d9ec73ced2|72f988bf86f141af91ab2d7cd011db47|1|0|637800804416448036|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000&sdata=Q9l5oU2RaaioAehIawxg2Wj95DZ7puxzhXvv%2BETwXFw%3D&reserved=0.
Triage notifications on the go with GitHub Mobile for iOShttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04|01|v-jweston%40microsoft.com|ca21f14fa7b4489e0d3e08d9ec73ced2|72f988bf86f141af91ab2d7cd011db47|1|0|637800804416448036|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000&sdata=WCf7YEOAiN6COVRRuAcOK%2B%2BnGavApalgsA9jWA96%2FD0%3D&reserved=0 or Androidhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26referrer%3Dutm_campaign%253Dnotification-email%2526utm_medium%253Demail%2526utm_source%253Dgithub&data=04|01|v-jweston%40microsoft.com|ca21f14fa7b4489e0d3e08d9ec73ced2|72f988bf86f141af91ab2d7cd011db47|1|0|637800804416448036|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000&sdata=LLJets3%2FZ06BSIiEvbnDU2E8PisCw2w8Vhkp6QHslis%3D&reserved=0.
You are receiving this because you were mentioned.Message ID: @.***>

Resolve as "won't fix"
This is an example URL, is labeled as "Example URL" and is provided to illustrate syntax. We do not provide URLs to microsoft-owned test systems.


**Error sending POST, retry 2, result: [Gone] System.Net.Http.StringContent

The error response when not able to POST is not helpful.
The current method System.Net.Http.StringContent.ToString() does not unmarshal the response body, but simply prints the class name.

Thanks for the information.
It's true, should give you more information. Our design criteria is not to output full info on the events transmitted as they may contain private information, but in this case more context and not the String class name should be provided.
This error may be caused because the Sysdig agent is not found in the default URL and port, or it hasn't been installed yet (the installation scripts tries to check for that). Let me know if I can provide more help in that regard also.

@ludydoo @vicenteherrera I'm facing the same issue, can you please help to fix the issue?

We have the same issue , anybody able to resolve this?


prefixLink unnecessary in profilePic

I am new to Gatsby, so taking a hunch at this.
I could not get the profilePic to work without first removing prefixLink here.
So,

// becomes

See Gatsby's config. It seems to be accounting for the prefixLink there.

Hey @charandas,
I also think the prefixLink() can be removed, because the image is not linked but just "inline-dumped".
What kind of image did you use to break it? Did the default image also not work?

@abisz My image was a jpeg 102K in size. Gatsby's webpack config caps inline-dumping at 10K.
The default image is 4.3K, so it works just fine.

@charandas or we just change it not to inline it with the data url (which is a bad practice anyway) and just display it as a normal asset.
@wpioneer Is there a particular reason the image is included in that way?

@abisz @charandas In the gatsby, inline-dumping is used by default for small images. (https://github.com/gatsbyjs/gatsby/blob/master/lib/utils/webpack.config.js#L260)
You can override this in gatsby-node.js, if you want. On an example of how to overriden SVG - https://github.com/wpioneer/gatsby-starter-lumen/blob/master/gatsby-node.js#L16 Also here you can change the limit.
(SVG is overridden, since it was a forced necessity to display the icons).
====
If the image is larger than 10K, then it should not be loaded inline.
I checked it and do not understand why it works differently for you.

That's cool, I didn't know there was this mechanism to load it based on the size.
I tested it as well, works fine for me.
@charandas did you have this problem when developing or only when building the site?

@abisz I had this problem when deploying. My prefixlink is "/blog", I see
the image url become baseURL/blog/blog/hash.jpeg which is incorrect.
As I said above, Gatsby now includes prefixLink in its base webpack config;
so we need not do that for assets, like currently in SiteSideBar template.
On Wed, Mar 8, 2017 at 10:41 AM Simon Reinsperger<EMAIL_ADDRESS>wrote:

That's cool, I didn't know there was this mechanism to load it based on
the size.
I tested it as well, works fine for me.
@charandas https://github.com/charandas did you have this problem when
developing or only when building the site?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/wpioneer/gatsby-starter-lumen/issues/32#issuecomment-285076015,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAhF2FhEmv72BgI4KIrbuSh8Z8J56h8iks5rjswkgaJpZM4MUjV2
.

@charandas Thank you for noticing, now it is clear. Can you send PR for the SiteSidebar component?

Sure @wpioneer. Done.


Return API for Scaper.generate

The sequence of changes discussed in #105 contains in it an option to return something from Scaper.generate. After offline discussion, we realized this would be better served in its own issue, and in a PR that get's merged post #105.

Pulling in latest relevant comment so we can continue here:

Regarding return API, it should be the same regardless of how the options are set.
Focusing on the most common use case, I'd start with:

soundscape_audio, soundscape_jam

But we also have the text file... I wonder if we should return the list that's used to create it. Then we's return:

soundscape_audio, soundscape_jam, soundscape_list

Only then would I return isolated events, so now we get:

soundscape_audio, soundscape_jam, soundscape_list, event_audio_list

thoughts @pseeth ?

Based on offline discussion:

This return API looks good: soundscape_audio, soundscape_jam, soundscape_list, event_audio_list
The soundscape_list will be a python list - the one used to created the CSV file right now. @pseeth this means only foreground events will be registered in this objects. Thoughts?
event_audio_list - will contain only FG events, yes?

This also means we'll probably have up update the call API, which is currently this:

https://github.com/justinsalamon/scaper/blob/master/scaper/core.py#L1901-L1904

def generate(self, audio_path, jams_path, allow_repeated_label=True,
                 allow_repeated_source=True,reverb=None, save_isolated_events=False,
                 isolated_events_path=None, disable_sox_warnings=True, no_audio=False,
                 txt_path=None, txt_sep='\t', disable_instantiation_warnings=False):

In particular, we'll have to think about audio_path, jams_path and no_audio.
The least disruptive would be to change the first two into option args with defaults=None, same as txt_path. This way if the user provides them everything works the same as before. If the user doesn't, then nothing gets saved to disk. We could, in theory, leave no_audio the same, in which case the function returns None for the soundscape audio and the event audio list.
@pseeth thoughts/comments?

I like turning everything into an optional arg with =None as the default. Returns look good!

Hmm, on second thought, if we make audio_path optional it suggests that if it's left set to None then the audio should not be generated, at which point no_audio becomes redundant and it'd make sense to remove it, which in turn would break the API.
Options:

keep audio_path and jams_path positional (non-optional), and just update what the function returns
Make audio_path and jams_path optional and keep the redundant no_audio option such that if audio_path is None then no audio is returned, if it's not None but no_audio is True then still no audio is return. Feels messy to me.
Make  audio_path and jams_path optional, remove no_audio, and only integrate this change as part of a new, API-breaking release.

It may sound "extreme", but I am actually partial to option 3. You?

Hmm, I think audio_path=None implies that the audio won't be saved, rather than be generated. Whereas no_audio implies it's not going to be generated at all. So I think they should co-exist. When no_audio is True, then, what should the return API be? Return soundscape_audio = None, and event_audio_list = None?

When no_audio is True, then, what should the return API be? Return soundscape_audio = None, and event_audio_list = None?

Yes, I think when no_audio is True we should return None for all items that are expected to contain audio.
Given this API though, I don't love the term "no_audio", because it's a little vague. But I can live with that and then when we break the API we can consider renaming this too.
OK, I think we have a path forward for this now. I'll work on a PR.

Awesome, yeah I agree that no_audio should be changed to something else in a future release.

Addressed via #121. Some missing functionality moved over to new issue #122. Closing this one out.


Support wider gamuts & device-independent colors

-- | - Colors outside the sRGB gamut which cannot be displayed on a typical
-- |   computer screen can not be represented by Color.

This ain't true anymore. DCI-P3 is quite common on phones and increasingly in monitors and laptops (such as my own). CSS4 opened up to color gamuts beyond sRGB https://www.w3.org/TR/css-color-4/#icc-colors. By choosing a device-independent color representation without gamma correction or color space clipping, device-dependent colors could be derived.
I would then suggest doing something like using CIELAB which W3 shows as the underlying color representation and convert to sRGB, P3, et.al. when needed. Alternatively LCH is another reasonable default.

Because LCH is both perceptually uniform and chroma-preserving, and because the axes correspond to easily understood attributes of a color, LCH is a good choice for color manipulation.

This would likely be a very breaking change, but I think is 100% necessary as it frees the library from color spaces. As it is, this is not a general-purpose library if colors are limited to sRGB.

If I'm missing something, please inform me.

-- | - Colors outside the sRGB gamut which cannot be displayed on a typical
-- |   computer screen can not be represented by Color.

This ain't true anymore. DCI-P3 is quite common on phones and increasingly in monitors and laptops (such as my own). CSS4 opened up to color gamuts beyond sRGB https://www.w3.org/TR/css-color-4/#icc-colors. By choosing a device-independent color representation without gamma correction or color space clipping, device-dependent colors could be derived.
I would then suggest doing something like using CIELAB which W3 shows as the underlying color representation and convert to sRGB, P3, et.al. when needed. Alternatively LCH is another reasonable default.

Fully agreed. This library already supports CIELAB and LCh... but it's unnecessarily limited to the sRGB gamut.

This would likely be a very breaking change,

Right. Unfortunately, the Color datatype publicly exposes the default representation. I could also imagine that we would run into a few floating point inaccuracy problems when switching to another default representation.
Note1: I'm not actively using this library anymore so I'm almost certainly not going to work on this myself.
Note2: Since writing this library, I have started another project (in Rust) that 'suffers' from a similar problem

Gotcha. Perhaps if I have some cycles, I'll come back and look at this. I only understand this at a higher level (photography), but not the math behind it (though it'd be good to learn).

btw, I have restored deleted schemes and scales https://github.com/purescript-open-community/purescript-open-colors-scales-and-schemes


fixes for summer update 2023

Don't destroy on load, in Start, prevents the bepinex manager gameobject from getting destroyed, so all mods work.
fixed nullref from a new UnityEvent field added to GorillaPressableButton, being invoked on press.
add the custom gamemodes to the new network prefab pool system.

Thanks

noice, i guess this means mine isn't necessary anymore


NSL with TF 2.5 custom loss

Just checking if this is possible
to wrap a custom loss model
using @tf.function  into NSL.
TF is 2.5
what are the constraints ?

Could you clarify where do you want to add the custom loss?
The base model used in either GraphRegularization and AdversarialRegularization can use any loss function, so I assume you want to add a custom loss function for the graph regularization loss.
If this is the case, you can add it to the lib/distances.py similar to jensen_shannon_divergence, and add another option in DistanceType in the configs/configs.py.

We have a model
wichi cannot use keras fit
because of custom loss.
We want onadd graph regu on top.
Thanks

On Jul 23, 2021, at 8:18, chunta-lu @.***> wrote:

Could you clarify where do you want to add the custom loss?
The base model used in either GraphRegularization and AdversarialRegularization can use any loss function, so I assume you want to add a custom loss function for the graph regularization loss.
If this is the case, you can add it to the lib/distances.py similar to jensen_shannon_divergence, and add another option in DistanceType in the configs/configs.py.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Could you provide the example you of your model and the custom loss?
It sounds like your base model cannot fit with your custom loss. Could you solve this issue first?
The custom loss function should have the same arguments as the other Keras loss function, e.g.,
@tf.function
def custom_loss(y_true, y_pred):
 ...

Sure.
Technically:
custom_loss with @tf.function
custom train step with gradient_tape
with @tf.function
Manual epoch loop
Should I plug the logits output
into the graph regularizer low level API ?
Thanks

On Jul 23, 2021, at 10:31, chunta-lu @.***> wrote:

Could you provide the example you of your model and the custom loss?
It sounds like your base model cannot fit with your custom loss. Could you solve this issue first?
The custom loss function should have the same arguments as the other Keras loss function, e.g.,
@tf.function
def custom_loss(y_true, y_pred):
...
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Hi @arita37, it looks like you are using a custom training loop. (Please correct me if this is not the case.)
To add graph regularization in a custom training loop, you can call nsl.keras.layers.PairwiseDistance to compute the graph regularization term and add it to your loss tensor in the gradient_tape scope. Alternatively, you can also call nsl.lib.pairwise_distance_wrapper or other distance functions to calculate the graph regularization term.
The inputs to the distance layer/function are a batch of "embeddings" of seed and neighbor examples, where the "embedding" can be logits or any intermediate layer's output (which your model exposes).

Hello,
Thanks, exactly custom training loop.
Also, do we need to provide
the static graph node,vertex in tsv flat file format too ?
(list of neightbors )
Thanks

On Jul 24, 2021, at 3:51, CS.Ferng @.***> wrote:

Hi @arita37, it looks like you are using a custom training loop. (Please correct me if this is not the case.)
To add graph regularization in a custom training loop, you can call nsl.keras.layers.PairwiseDistance to compute the graph regularization term and add it to your loss tensor in the gradient_tape scope. Alternatively, you can also call nsl.lib.pairwise_distance_wrapper or other distance functions to calculate the graph regularization term.
The inputs to the distance layer/function are a batch of "embeddings" of seed and neighbor examples, where the "embedding" can be logits or any intermediate layer's output (which your model exposes).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

Both nsl.lib.pairwise_distance_wrapper() and  nsl.keras.layers.PairwiseDistance().call() assume the graph is already processed, and require two parameters sources and targets representing the embeddings/logits of seed and neighbor nodes.
One typical way to preprocess the graph for graph regularization is to augment training examples with their neighbor features before training. The function nsl.tool.pack_nbrs can help achieve this. This function reads a TSV-formatted graph and two TFRecord files and generates a combined TFRecord file. Then in the modeling code you can use nsl.lib.unpack_neighbor_features or nsl.keras.layers.NeighborFeatures to separate seed and neighbor features in order to compute the embeddings/logits of them.
Please see this tutorial for a concrete example of this workflow. Note that in this tutorial the wrapper nsl.keras.GraphRegularization is used for unpacking neighbor features and computing graph regularization.

Closing this issue for now. Please feel free to reopen if you have any follow-up questions.


Mystic bug in polygon command

Describe the bug:
Some kind of problem with “polygon” command in Norway.Amos
its part of collection of AMOS programs made by LiveForIt / Kjetil, in the 1990’s

This bug was found in retroMode.library, some functions did not support double buffering.
problem solved.


Not working on API 28/ Android Pie

The slider doesn't load any images on this version.

do you find the solution ?

do you find the solution ?

Nope.

i use this its good too
https://github.com/smarteist/android-image-slider

You can check this library https://github.com/OpenSooq/Pluto
1- no memory leaks
2- not depending on any image loader

So the problem was actually from Picasso and Glide themselves when loading network images.
And adding android:usesCleartextTraffic="true" to the manifest solved this issue.


operator cnvrg (v4.3.17)

New operator bundle
Name: cnvrg
Version: v4.3.17
Certification project: 62d007ac6f95823e514b49e1
Test result URL: https://catalog.redhat.com/api/containers/v1/projects/certification/test-results/id/62e2f7f3e01d67f8728742d9
Test logs URL: https://catalog.redhat.com/api/containers/v1/projects/certification/artifacts/id/62e2f7f118981fc6b5f9ce6f

IIB job 283201 died with a 503 Service Unavailable:
2022-07-28 17:38:39,460 iib.workers.tasks.utils ForkPoolWorker-1 request-283201 ERROR utils.run_cmd The command "buildah bud --no-cache --format docker --override-arch amd64 --arch amd64 -t iib-build:283201-amd64 -f /tmp/iib-q0qczjdf/index.Dockerfile" failed with: Trying to pull registry.redhat.io/openshift4/ose-operator-registry@sha256:d189e54c93c2463bf0d38775a75c406b6d06c5b9872e55ed3547d78f9ac4036b...
error creating build container: Source image rejected: Error reading signature from https://registry.redhat.io/containers/sigstore/openshift4/ose-operator-registry@sha256=0265b1f948182df0c37c08a06155ce989e5d1f5a701d862adc973a806e582cd5/signature-7: status 503 (Service Unavailable)
time="2022-07-28T17:38:39-04:00" level=error msg="exit status 125"


Keystore based vault SPI

Add parameters that allow to configure keystore-based vault SPI:
Role Defaults

Variable
Description
Default

keycloak_quarkus_ks_vault_enabled
Whether to enable the vault SPI
false

keycloak_quarkus_ks_vault_file
The keystore path for the vault SPI
{{ keycloak_quarkus_config_dir }}/keystore.p12

keycloak_quarkus_ks_vault_type
Type of the keystore used for the vault SPI
PKCS12

Role Variables

Variable
Description
Required

keycloak_quarkus_ks_vault_pass
The password for accessing the keystore vault SPI
no

See: https://www.keycloak.org/server/vault#_configuring_the_java_keystore_based_vault
Also see molecule/quarkus/converge.yml for usage
Fix #172

@guidograzioli acc. to the docs, I guess you'd also need to notify and adapt rebuild_config.yml accordingly. In my experience, not rebuilding the configuration does the trick just as well, but sometimes (looking at you, ispn cache) it behaves weird. So best to rebuild and be safe.

@guidograzioli acc. to the docs, I guess you'd also need to notify and adapt rebuild_config.yml accordingly. In my experience, not rebuilding the configuration does the trick just as well, but sometimes (looking at you, ispn cache) it behaves weird. So best to rebuild and be safe.

Any keycloak.conf change will trigger the rebuild afaics (https://github.com/ansible-middleware/keycloak/actions/runs/8735278501/job/23967743420#step:5:333) using the updated properties. Do you mean it is not enough?

You're right, I forgot/didn't check my own code, sry...

lmao, merging, thx


ERROR: in verify_node_modules_ignored

I had this working yesterday but now its not working.
Getting this error:
ERROR: no such package '@npm//':
ERROR: in verify_node_modules_ignored:
pnpm install will create nested node_modules, but not all of them are ignored by Bazel.
We recommend that all node_modules folders in the source tree be ignored,
to avoid Bazel printing confusing error messages.

Either add line(s) to //:.bazelignore:

node_modules

or disable this check by setting 'verify_node_modules_ignored = None' in `npm_translate_lock(name = "npm")

My .bazelignore:
node_modules
bazel-out
bazel-bin
bazel-next.js
bazel-testlogs

My WORKSPACE.bazel:
http_archive(
    name = "aspect_rules_js",
    sha256 = "515277ae357e62f52e29e0bfb60b73d2d062b8d00d21351d31f37c5bb275d4f5",
    strip_prefix = "rules_js-1.5.3",
    url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v1.5.3.tar.gz",
)

http_archive(
    name = "aspect_rules_swc",
    sha256 = "313307136cb6369f3c9d2992209c1e354b3e2c9989877ee67c688917320fba1f",
    strip_prefix = "rules_swc-0.17.1",
    url = "https://github.com/aspect-build/rules_swc/archive/refs/tags/v0.17.1.tar.gz",
)

http_archive(
    name = "aspect_rules_ts",
    sha256 = "743f0e988e4e3f1e25e52c79f9dc3da1ddd77507ae88787ae95b4e70c537872b",
    strip_prefix = "rules_ts-1.0.0-rc4",
    url = "https://github.com/aspect-build/rules_ts/archive/refs/tags/v1.0.0-rc4.tar.gz",
)

load("@aspect_rules_js//js:repositories.bzl", "rules_js_dependencies")

rules_js_dependencies()

load("@rules_nodejs//nodejs:repositories.bzl", "DEFAULT_NODE_VERSION", "nodejs_register_toolchains")

# Fetches the rules_ts dependencies.
# If you want to have a different version of some dependency,
# you should fetch it *before* calling this.
# Alternatively, you can skip calling this function, so long as you've
# already fetched all the dependencies.
load("@aspect_rules_ts//ts:repositories.bzl", "rules_ts_dependencies")

rules_ts_dependencies(
    ts_version_from = "//:package.json",
    ts_integrity = "sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==",
)

nodejs_register_toolchains(
    name = "nodejs",
    node_version = DEFAULT_NODE_VERSION,
)

load("@aspect_rules_js//npm:npm_import.bzl", "npm_translate_lock")

npm_translate_lock(
    name = "npm",
    pnpm_lock = "//:pnpm-lock.yaml",
    verify_node_modules_ignored = "//:.bazelignore",
)

load("@npm//:repositories.bzl", "npm_repositories")

npm_repositories()

# Fetches the rules_swc dependencies.
# If you want to have a different version of some dependency,
# you should fetch it *before* calling this.
# Alternatively, you can skip calling this function, so long as you've
# already fetched all the dependencies.
load("@aspect_rules_swc//swc:dependencies.bzl", "rules_swc_dependencies")

rules_swc_dependencies()

# Fetches a pre-built Rust-node binding from
# https://github.com/swc-project/swc/releases.
# If you'd rather compile it from source, you can use rules_rust, fetch the project,
# then register the toolchain yourself. (Note, this is not yet documented)
load("@aspect_rules_swc//swc:repositories.bzl", "swc_register_toolchains")

swc_register_toolchains(
    name = "swc",
    swc_version = "v1.2.141",
)

That is surprising. That code that checks the bazelignore is really straight forward. Your bazelignore looks a lot like this one, https://github.com/aspect-build/bazel-examples/blob/main/next.js/.bazelignore.
Is the bazelignore you're referring to in the root of your WORKSPACE or are you working in a subdirectory?
Setting verify_node_modules_ignored = None, in npm_translate_lock in your WORKSPACE should make the error go away tho I'm curious how you got into this state.

That is surprising. That code that checks the bazelignore is really straight forward. Your bazelignore looks a lot like this one, https://github.com/aspect-build/bazel-examples/blob/main/next.js/.bazelignore.
Is the bazelignore you're referring to in the root of your WORKSPACE or are you working in a subdirectory?
Setting verify_node_modules_ignored = None, in npm_translate_lock in your WORKSPACE should make the error go away tho I'm curious how you got into this state.

Yeah my .bazelignore is in my root folder and I am following the nextjs example. When I tried setting it to None the first time it didn't work but I guess its working now 🎉
Any methods of debugging the original issue? I'm curious what the cons are to setting it to None.

To debug you could inject some print statements into the rules_js code. You can find it under $(bazel info output_base)/external/aspect_rules_js:
$ ls $(bazel info output_base)/external/aspect_rules_js
BUILD.bazel		MODULE.bazel		docs			js			platforms		renovate.json
CONTRIBUTING.md		README.md		e2e			npm			pnpm-lock.yaml		workspace_status.sh
LICENSE			WORKSPACE		examples		package.json		pnpm-workspace.yaml

Setting break points and stepping through starlark code is not possible as there are no tools for this but with a few print statements you could get to bottom of where the code has gone wrong.
The relevant code to inspect is here: https://github.com/aspect-build/rules_js/blob/42b19d19611d307e959aab957a5c80da5d53d753/npm/private/npm_translate_lock.bzl#L584
Otherwise if you can come up with a minimal repro then I could TAL.

Otherwise if you can come up with a minimal repro then I could TAL.

That would be great! Here is a minimal set up of the rules I currently have, https://github.com/Jaskerv/simple-rules-js.
I'll also look into those print statements.

❯ bazel version
Bazelisk version: development
Build label: 5.3.2
Build target: bazel-out/k8-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Wed Oct 19 18:22:12 2022<PHONE_NUMBER>)
Build timestamp:<PHONE_NUMBER>
Build timestamp as int:<PHONE_NUMBER>

I fixed this resetting my WSL environment. I'm closing this issue as we have no idea what went wrong. Thanks for the help 🎉

I ran into this recently on Windows. It was because my .bazelignore had windows line endings. By changing the line endings to UNIX line endings, it worked for me.

Thanks for the info @jacobgardner. That makes sense given the split on \n here: https://github.com/aspect-build/rules_js/blob/main/npm/private/npm_translate_lock_generate.bzl#L461. cc @alexeagle


Object Reference

I'm getting an object reference error trying to authenticate:
var Api = new RingCentral.RestClient(ClientId, ClientSecret);

                var AuthUri = Api.AuthorizeUri(new AuthorizeRequest() {
                    response_type = "code",
                    client_id = ClientId,
                    redirect_uri = RedirectUri
                });
//Launch the AuthUri and get the Code
...

//This throws an object reference error:
                var Token = await Api.Restapi().Oauth().Token().Post(new GetTokenRequest() {
                    grant_type = "authorization_code",
                    code = Code,
                    redirect_uri = RedirectUri,
                });

What should I do differently?

Please post the full stack trace. object reference error, which object does it mean?
Is it Api? Maybe you didn't initialize it before using it.
You did initialize it in your first line of the code snippet above. But I am not sure that the last line of your code is in the same scope of your first line.
Overall this is just C# programming issue.
Feel free to re-open if you think it is an issue of this SDK.


Trivy image scan on private ACR

Description
The current documentation for the MicrosoftSecurityDevOps@1 task does not include instructions on how to perform Trivy image scans on private Azure Container Registries (ACR). This functionality is crucial, as not all users build their images on VMs with Docker; many utilize containerized agents alongside the ACR build task for image creation. Despite Trivy's documented ability to scan remote/private container registries, the MicrosoftSecurityDevOps@1 task appears to only support scanning local image locations. This discrepancy has left me unable to configure the task to target a remote repository, even though I have successfully set up remote registry scanning using Trivy in a standalone configuration.
Problem Statement
Lack of documentation and apparent functionality for scanning images in private ACRs using the MicrosoftSecurityDevOps@1 task.
The task defaults to scanning local image locations, ignoring the capability of Trivy to scan remote/private container registries.
Importance
This issue is significant for workflows that rely on containerized agents and ACR build tasks for image creation, as it limits the usability of the MicrosoftSecurityDevOps@1 task for security scanning in such environments. Enabling this functionality would greatly enhance security measures for Azure DevOps pipelines that utilize private ACRs.
Expected Behavior:
Environement variable documentation should be more descriptive and informational on how to use it, because it is not clear what Envs to use to target a remote ACR.
- task: MicrosoftSecurityDevOps@1
  displayName: 'Microsoft Security DevOps'
  inputs:
    command: 'run'
    policy: 'microsoft'
    tools: 'trivy'
  env:
    TRIVY_ACTION: 'image'
    TRIVY_TARGET: 'image
    TRIVY_AUTH_URL:
    TRIVY_USERNAME:
    TRIVY_PASSWORD:
    TRIVY_IMAGE_SRC:
    TRIVY_REGISTRY_TOKEN:
    TRIVY_INPUT:
    TRIVY_IMAGEPATH:

I've tried just about every mix of environment variables, even switching between uppercase and lowercase, to get remote scanning to work, but the documentation doesn't really help make sense of how to use Trivy's environment variables with this task. It looks like the task actually does support Trivy's own environment variables, which was a surprise since it's not mentioned anywhere in the docs. This makes setting everything up for remote scanning a bit of a guessing game.
The error encountered suggests a failure to recognize the remote image location, indicating an issue with how the task is configured to interact with private container registries. The task fails to initialize a scanner for the remote image, suggesting a possible misconfiguration or lack of support for scanning images located in private ACRs.
General Error Message:
Microsoft.Guardian.TrivyRedist_linux_amd<IP_ADDRESS>/tools/trivy image --exit-code 100 --format sarif --input <registryURL>/my-image:tag --output /agent/_work/1/s/.gdn/.r/trivy/001/trivy.sarif <registryURL>/my-image:tag

FATAL image scan error: scan error: unable to initialize a scanner: unable to initialize the archive scanner: 2 errors occurred:
	* unable to open <remote image> as a Docker image: unable to open the file: open <remote image>: no such file or directory
	* unable to open <remote image> as an OCI Image: stat <remote image>/index.json: no such file or directory

Working Behavior for standalone task
- task: Bash@3
  displayName: 'Trivy scan - Generate report'
  inputs:
    targetType: 'inline'
    script: |
      trivy image --skip-db-update --exit-code 0 --severity LOW,MEDIUM,HIGH,CRITICAL registryURL/my-image:tag
  env:
    TRIVY_AUTH_URL: "https://registryURL"
    TRIVY_USERNAME: "00000000-0000-0000-0000-000000000000" # Dummy username for ACR token authentication
    TRIVY_PASSWORD: $(ACR_TOKEN)

I am getting the acr_token with acr login task like this:
az acr login --name ContainerRegistryName --expose-token --output tsv --query accessToken

Question is why this similiar setup does not work using the MicrosoftSecurityDevOps@1 task?
Could the documentation be updated to include this scenario, or could the task be enhanced to support this use case?
Has anybody else gotten this to work, in that case how?

I have been doing some testing and found that this scenario does work in the current setup. You can see the environment variable overrides that are supported for Trivy on this wiki page: https://github.com/microsoft/security-devops-azdevops/wiki#trivy-environment-variables
From there, the --input parameter from your initial command line appears to be causing the problem. For my tests, I set only two environment variables to get the desired behavior:
GDN_TRIVY_ACTION = 'image'
GDN_TRIVY_TARGET = 'repoName.azurecr.io/imageName:tagName'
Please give this a try and let us know if it resolves your issue.


slsrv_errors - Non English characters converted to '?'

Trying to use driver php_sqlsrv_7_ts.dll instead of php_sqlsrv_53_ts_vc9. Code page 1251. All is working good except one thing - function sqlsrv_errors, returning error, produced by SQL server, converts all non-english letters to '?'. Is it possible to correct this somehow? Not sure is this a problem of sqlsrv driver or ODBC driver 11 (Which replaces SQL Server Native Client 10.0, as I understand)...

@Nick74k The ‘?’ occurs when the driver cannot translate a character from one encoding into another.  In this case, the target encoding is CP1252 (which is the default ACP / Windows locale) and it seems likely that the characters you refer to cannot be represented by CP1252 (to give you an idea, [these] (https://en.wikipedia.org/wiki/Windows-1252) are the supported characters).  If the characters you are expecting should be able to be translated, can you give us an example of the expected error message?
And for more details on how the driver works, the best resource is our MSDN documentation. According to our Constants page:
| Contant      | Description           |
| ------------- |:-------------:| -----:|
| SQLSRV_ENC_CHAR      | Data is returned in 8-bit characters as specified in the code page of the Windows locale that is set on the system. Any multi-byte characters or characters that do not map into this code page are substituted with a single byte question mark (?) character. This is the default encoding. |
This means that you could try to change the active code page to match the desired code page, or use UTF8 as was suggested.  You can find more details on how to use UTF8 here.
Does this help? Feel free to let us know if you have follow up questions.
Cheers,
Meet

meet-bhagdev well, any character from the last four rows of this table. Meet, THE ONLY function which cannot work now with cp1251 in SQLSRV_ENC_CHAR mode is sqlsrv_errors. All other functions work perfect. I can fetch data with 1251 symbols, I can execute SQL with cp1251 symbols and the only problem - getting error message, written with cp1251. E.g. message, passed from trigger with RAISERROR ('Русский текст', 16, 1) would be replaced with '??????? ?????'.

@Nick74k this issue is no longer reproducible with the latest sqlsrv in Windows.
If on the other hand this problem still exists on your side, please provide a repro script if possible.

@Nick74k Closing the issue for now as we can't repro it. Feel free to reopen if you still need help :)


Fixed getting exception on admin interface when setup using webinstaller #4564

BUGS:
https://github.com/bagisto/bagisto/issues/4564

@devansh-webkul
Getting the encryption key issue

Note: Run php artisan key:generate to fix above issue then getting the below issue

Ok! I am working on it.

@vaishaliwebkul,
Mentioned changes have been done.


Preprocessing

This PR now uses t1-linear pipeline from Clinica instead of ClinicaDL.
The parser is prepared for t1-extensive pipeline (Issue #31).

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

In the file clinicadl/clinicadl/cli.py:

Line 527:37: E127 continuation line over-indented for visual indent
Line 528:5: E306 expected 1 blank line before a nested definition, found 0

Hi @mdiazmel,
Now that tests regarding CLI pass, this can be reviewed :)
Alex


select all/replace causes playground completion popup to appear in wrong place

If you do a select all and then type a character to replace the text in a playground, the completion popup can appear at the wrong location:

It seems to work.


support s3 static website, add s3 bucket lifecycle rules + versioning support

fixes #14
also adds s3 bucket lifecycle rules and versioning support.
a lot of this was taken from:
https://github.com/cloudposse/terraform-aws-s3-website
happy to split up the PR if you would rather not merge it all.
Definitely would appreciate an in depth review. I was unsure on some aspects. For example, I made cors_rule dynamic because it complained about malformed XML when I didn't have cors_allowed_origins set.

this is ready, you cant restrict access using custom origin identities when using s3 static websit endpoints. This can only be accomplished using headers
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-overview.html#forward-custom-headers-restrict-access
https://aws.amazon.com/premiumsupport/knowledge-center/cloudfront-serve-static-website/
il reopen it when i have it working


Getting "undefined symbol" error when importing nv_wavenet_ext

I'm getting "undefined symbol" error when importing nv_wavenet_ext as follows:
In [1]: import torch

In [2]: torch.__version__
Out[2]: '1.1.0'

In [3]: import nv_wavenet_ext
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-3-831f7004cefb> in <module>
----> 1 import nv_wavenet_ext

ImportError: /usr/local/lib/python3.6/site-packages/nv_wavenet_ext-0.0.0-py3.6-linux-x86_64.egg/nv_wavenet_ext.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN2at19UndefinedTensorImpl10_singletonE

Did you solve it? I have the same problem

I solved it by cleaning up the repo, re-clone it and rebuild it. Also remember to always import torch before import nv_wavenet_ext


[Sema] Suggest #selector(self.foo) instead of #selector(TypeName.foo) when possible.

When inside a declaration or extension of TypeName, humans usually don't write
the full typename like #selector(TypeName.foo), but instead prefer the neater
form #selector(self.foo). The compiler has enough information to do this too.
Fixes rdar://problem/25284692 .

@swift-ci Please smoke test

I think humans don't even write the self most times.

Rebased and shepherded in #28194


glfw-3.3.4 error on apple bazel project

I add glfw-3.3.4 to my bazel project, and met some problems. what i do like this:
1, Bazel WORKSPACE
http_archive(
name = "glfw",
build_file = "@//third-party:glfw_.build",
strip_prefix = "glfw-3.3.4",
sha256 =  "bbd2c42c660b725e9755eb417e40b373f0d4c03138c9b2e210d02cd308bd99cd",
urls = [
"http://localhost/glfw-3.3.4.zip",
]
)
2, glfw_.build
cc_library(
name = "glfw",
hdrs = [
"include/GLFW/glfw3.h",
"include/GLFW/glfw3native.h",
"src/egl_context.h",
"src/internal.h",
"src/osmesa_context.h",
"src/mappings.h",
"src/xkb_unicode.h",
"src/cocoa_joystick.h",
"src/cocoa_platform.h",
"src/glx_context.h",
"src/nsgl_context.h",
"src/null_joystick.h",
"src/null_platform.h",
"src/posix_thread.h",
"src/wl_platform.h",
],
srcs = [
"src/context.c",
"src/egl_context.c",
"src/init.c",
"src/input.c",
"src/osmesa_context.c",
"src/monitor.c",
"src/vulkan.c",
"src/window.c",
"src/xkb_unicode.c",
"src/cocoa_time.c",
"src/posix_thread.c",
],
defines = [
"_GLFW_COCOA",
"_GLFW_NSGL",
"_GLFW_NO_DLOAD_WINMM",
"_GLFW_USE_OPENGL",
],
linkopts = [
"-framework OpenGL",
"-framework Cocoa",
"-framework IOKit",
"-framework CoreFoundation"
],
visibility = ["//visibility:public"],
)
when i build the project, it comes some error:
Use --sandbox_debug to see verbose messages from the sandbox
Undefined symbols for architecture x86_64:
"__glfwLoadLocalVulkanLoaderNS", referenced from:
__glfwInitVulkan in libglfw.a(vulkan.o)
"__glfwPlatformCreateCursor", referenced from:
_glfwCreateCursor in libglfw.a(input.o)
"__glfwPlatformCreateStandardCursor", referenced from:
_glfwCreateStandardCursor in libglfw.a(input.o)
"__glfwPlatformCreateWindow", referenced from:
_glfwCreateWindow in libglfw.a(window.o)
"__glfwPlatformCreateWindowSurface", referenced from:
_glfwCreateWindowSurface in libglfw.a(vulkan.o)
"__glfwPlatformDestroyCursor", referenced from:
_glfwDestroyCursor in libglfw.a(input.o)
"__glfwPlatformDestroyWindow", referenced from:
_glfwDestroyWindow in libglfw.a(window.o)
"__glfwPlatformFocusWindow", referenced from:
_glfwCreateWindow in libglfw.a(window.o)
_glfwShowWindow in libglfw.a(window.o)
_glfwFocusWindow in libglfw.a(window.o)
"__glfwPlatformFramebufferTransparent", referenced from:
_glfwGetWindowAttrib in libglfw.a(window.o)
"__glfwPlatformFreeMonitor", referenced from:
__glfwFreeMonitor in libglfw.a(monitor.o)
"__glfwPlatformGetClipboardString", referenced from:
_glfwGetClipboardString in libglfw.a(input.o)
"__glfwPlatformGetCursorPos", referenced from:
_glfwSetInputMode in libglfw.a(input.o)
_glfwGetCursorPos in libglfw.a(input.o)
"__glfwPlatformGetFramebufferSize", referenced from:
_glfwGetFramebufferSize in libglfw.a(window.o)
"__glfwPlatformGetGammaRamp", referenced from:
_glfwGetGammaRamp in libglfw.a(monitor.o)
_glfwSetGammaRamp in libglfw.a(monitor.o)
"__glfwPlatformGetKeyScancode", referenced from:
__glfwInputWindowFocus in libglfw.a(window.o)
_glfwGetKeyName in libglfw.a(input.o)
_glfwGetKeyScancode in libglfw.a(input.o)
"__glfwPlatformGetMonitorContentScale", referenced from:
_glfwGetMonitorContentScale in libglfw.a(monitor.o)
"__glfwPlatformGetMonitorPos", referenced from:
_glfwGetMonitorPos in libglfw.a(monitor.o)
"__glfwPlatformGetMonitorWorkarea", referenced from:
_glfwGetMonitorWorkarea in libglfw.a(monitor.o)
"__glfwPlatformGetPhysicalDevicePresentationSupport", referenced from:
_glfwGetPhysicalDevicePresentationSupport in libglfw.a(vulkan.o)
"__glfwPlatformGetRequiredInstanceExtensions", referenced from:
__glfwInitVulkan in libglfw.a(vulkan.o)
"__glfwPlatformGetScancodeName", referenced from:
_glfwGetKeyName in libglfw.a(input.o)
"__glfwPlatformGetVersionString", referenced from:
_glfwGetVersionString in libglfw.a(init.o)
"__glfwPlatformGetVideoMode", referenced from:
_glfwGetVideoMode in libglfw.a(monitor.o)
"__glfwPlatformGetVideoModes", referenced from:
_refreshVideoModes in libglfw.a(monitor.o)
"__glfwPlatformGetWindowContentScale", referenced from:
_glfwGetWindowContentScale in libglfw.a(window.o)
"__glfwPlatformGetWindowFrameSize", referenced from:
__glfwInputMonitor in libglfw.a(monitor.o)
_glfwGetWindowFrameSize in libglfw.a(window.o)
"__glfwPlatformGetWindowOpacity", referenced from:
_glfwGetWindowOpacity in libglfw.a(window.o)
"__glfwPlatformGetWindowPos", referenced from:
_glfwGetWindowPos in libglfw.a(window.o)
"__glfwPlatformGetWindowSize", referenced from:
__glfwInputMonitor in libglfw.a(monitor.o)
_glfwGetWindowSize in libglfw.a(window.o)
__glfwCenterCursorInContentArea in libglfw.a(input.o)
"__glfwPlatformHideWindow", referenced from:
_glfwHideWindow in libglfw.a(window.o)
"__glfwPlatformIconifyWindow", referenced from:
_glfwIconifyWindow in libglfw.a(window.o)
"__glfwPlatformInit", referenced from:
_glfwInit in libglfw.a(init.o)
"__glfwPlatformMaximizeWindow", referenced from:
_glfwMaximizeWindow in libglfw.a(window.o)
"__glfwPlatformPollEvents", referenced from:
_glfwPollEvents in libglfw.a(window.o)
"__glfwPlatformPollJoystick", referenced from:
_glfwJoystickPresent in libglfw.a(input.o)
_glfwGetJoystickAxes in libglfw.a(input.o)
_glfwGetJoystickButtons in libglfw.a(input.o)
_glfwGetJoystickHats in libglfw.a(input.o)
_glfwGetJoystickName in libglfw.a(input.o)
_glfwGetJoystickGUID in libglfw.a(input.o)
_glfwJoystickIsGamepad in libglfw.a(input.o)
...
"__glfwPlatformPostEmptyEvent", referenced from:
_glfwPostEmptyEvent in libglfw.a(window.o)
"__glfwPlatformRawMouseMotionSupported", referenced from:
_glfwSetInputMode in libglfw.a(input.o)
_glfwRawMouseMotionSupported in libglfw.a(input.o)
"__glfwPlatformRequestWindowAttention", referenced from:
_glfwRequestWindowAttention in libglfw.a(window.o)
"__glfwPlatformRestoreWindow", referenced from:
_glfwRestoreWindow in libglfw.a(window.o)
"__glfwPlatformSetClipboardString", referenced from:
_glfwSetClipboardString in libglfw.a(input.o)
"__glfwPlatformSetCursor", referenced from:
_glfwSetCursor in libglfw.a(input.o)
"__glfwPlatformSetCursorMode", referenced from:
_glfwSetInputMode in libglfw.a(input.o)
"__glfwPlatformSetCursorPos", referenced from:
__glfwCenterCursorInContentArea in libglfw.a(input.o)
_glfwSetCursorPos in libglfw.a(input.o)
"__glfwPlatformSetGammaRamp", referenced from:
_terminate in libglfw.a(init.o)
_glfwSetGammaRamp in libglfw.a(monitor.o)
"__glfwPlatformSetRawMouseMotion", referenced from:
_glfwSetInputMode in libglfw.a(input.o)
"__glfwPlatformSetWindowAspectRatio", referenced from:
_glfwSetWindowAspectRatio in libglfw.a(window.o)
"__glfwPlatformSetWindowDecorated", referenced from:
_glfwSetWindowAttrib in libglfw.a(window.o)
"__glfwPlatformSetWindowFloating", referenced from:
_glfwSetWindowAttrib in libglfw.a(window.o)
"__glfwPlatformSetWindowIcon", referenced from:
_glfwSetWindowIcon in libglfw.a(window.o)
"__glfwPlatformSetWindowMonitor", referenced from:
__glfwInputMonitor in libglfw.a(monitor.o)
_glfwSetWindowMonitor in libglfw.a(window.o)
"__glfwPlatformSetWindowOpacity", referenced from:
_glfwSetWindowOpacity in libglfw.a(window.o)
"__glfwPlatformSetWindowPos", referenced from:
__glfwInputMonitor in libglfw.a(monitor.o)
_glfwSetWindowPos in libglfw.a(window.o)
"__glfwPlatformSetWindowResizable", referenced from:
_glfwSetWindowAttrib in libglfw.a(window.o)
"__glfwPlatformSetWindowSize", referenced from:
_glfwSetWindowSize in libglfw.a(window.o)
"__glfwPlatformSetWindowSizeLimits", referenced from:
_glfwSetWindowSizeLimits in libglfw.a(window.o)
"__glfwPlatformSetWindowTitle", referenced from:
_glfwSetWindowTitle in libglfw.a(window.o)
"__glfwPlatformShowWindow", referenced from:
_glfwCreateWindow in libglfw.a(window.o)
_glfwShowWindow in libglfw.a(window.o)
"__glfwPlatformTerminate", referenced from:
_terminate in libglfw.a(init.o)
"__glfwPlatformUpdateGamepadGUID", referenced from:
_parseMapping in libglfw.a(input.o)
"__glfwPlatformWaitEvents", referenced from:
_glfwWaitEvents in libglfw.a(window.o)
"__glfwPlatformWaitEventsTimeout", referenced from:
_glfwWaitEventsTimeout in libglfw.a(window.o)
"__glfwPlatformWindowFocused", referenced from:
_glfwGetWindowAttrib in libglfw.a(window.o)
_glfwSetCursorPos in libglfw.a(input.o)
"__glfwPlatformWindowHovered", referenced from:
_glfwGetWindowAttrib in libglfw.a(window.o)
"__glfwPlatformWindowIconified", referenced from:
_glfwGetWindowAttrib in libglfw.a(window.o)
"__glfwPlatformWindowMaximized", referenced from:
_glfwGetWindowAttrib in libglfw.a(window.o)
"__glfwPlatformWindowVisible", referenced from:
_glfwGetWindowAttrib in libglfw.a(window.o)
ld: symbol(s) not found for architecture x86_64
the libglfw.a is produced under bazel-bin/external/glfw. why so many error ???

Your list of source files is missing the Objective-C files cocoa_init.m, cocoa_joystick.m, cocoa_monitor.m, cocoa_window.m and nsgl_context.m. Those contain the functions you are missing.
A static library is essentially just a non-compressed archive of object files. It doesn't undergo any linking at creation so it won't notice functions being missing.

Your list of source files is missing the Objective-C files cocoa_init.m, cocoa_joystick.m, cocoa_monitor.m, cocoa_window.m and nsgl_context.m. Those contain the functions you are missing.
A static library is essentially just a non-compressed archive of object files. It doesn't undergo any linking at creation so it won't notice functions being missing.

and then I try another method:
1, build the glfw3-3.3.4, and get the lib: libglfw3.a, it can be worked correctlly in cmake project(imgui-1.83/examples/example_glfw_opengl3)
2, WORKSPACE：
new_local_repository(
name = "glfw",
build_file = "@//:third-party/glfw.BUILD",
path = "/Users/fuhaosheng/local/glfw3",
)
3，glfw.BUILD:
cc_import(
name = "glfw",
hdrs = [
"include/GLFW/glfw3.h",
],
static_library = "lib/libglfw3.a",
)
The wrong message is showing no differenceI with the first one, I don't know what is the problem ?

I'm not familiar enough with Bazel to be sure of what the issue is, sorry. You may get more help from a Bazel focused forum or channel.


ImportError: cannot import name HTTPSConnection

Hello,
After installing this plugin from Package Control on a Ubuntu 11.10 system, I get this in the console:
Reloading plugin /home/nchambrier/.config/sublime-text-2/Packages/sublime-github/gist.py
Traceback (most recent call last):
  File "./sublime_plugin.py", line 62, in reload_plugin
  File "./gist.py", line 10, in <module>
    import requests
  File "/home/nchambrier/.config/sublime-text-2/Packages/sublime-github/lib/requests/__init__.py", line 26, in <module>
    from . import utils
  File "/home/nchambrier/.config/sublime-text-2/Packages/sublime-github/lib/requests/utils.py", line 19, in <module>
    from .compat import parse_http_list as _parse_list_header
  File "/home/nchambrier/.config/sublime-text-2/Packages/sublime-github/lib/requests/compat.py", line 86, in <module>
    from .packages.oreos.monkeys import SimpleCookie
  File "/home/nchambrier/.config/sublime-text-2/Packages/sublime-github/lib/requests/packages/__init__.py", line 3, in <module>
    from . import urllib3
  File "/home/nchambrier/.config/sublime-text-2/Packages/sublime-github/lib/requests/packages/urllib3/__init__.py", line 16, in <module>
    from .connectionpool import (
  File "/home/nchambrier/.config/sublime-text-2/Packages/sublime-github/lib/requests/packages/urllib3/connectionpool.py", line 22, in <module>
    from httplib import HTTPConnection, HTTPSConnection, HTTPException
ImportError: cannot import name HTTPSConnection

The thing I don't understand is that I have only one version of Python installed, and when I run python REPL I can see the import working:
$ python
Python 2.7.2+ (default, Oct  4 2011, 20:03:08)
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from httplib import HTTPConnection, HTTPSConnection, HTTPException
>>> HTTPSConnection
<class httplib.HTTPSConnection at 0x8cdee9c>

Thanks for the report. I think the problem is the version of python that Sublime Text uses doesn't have SSL support. I worked around this before by using curl; guess I'll have to do that again.

Yep I checked out closed issues after, but it's highly probable that #2 is
related to this issue ;)
On 14 February 2012 17:01, Brad Greenlee <
<EMAIL_ADDRESS>
wrote:

Thanks for the report. I think the problem is the version of python that
Sublime Text uses doesn't have SSL support. I worked around this before by
using curl; guess I'll have to do that again.

Reply to this email directly or view it on GitHub:
https://github.com/bgreenlee/sublime-github/issues/6#issuecomment-3963694

--
Nicolas Chambrier, aka naholyr
Blog : http://naholyr.fr
Formateur Clever Institut :
http://clever-institut.com/formateur/nicolas-chambrier

Ok, I've pushed a fix--re-adding the curl fallback (so you need to have curl installed). Upgrade to version 2.0.2 and let me know if it works for you. I've only tested it on OS X; if you have issues, I'll set up a Ubuntu VM to test with.

Upgraded to 2.0.3 and still the same :(
Here are the startup errors:
Reloading plugin /home/nchambrier/.config/sublime-text-2/Packages/sublime-github/gist.py
Traceback (most recent call last):
  File "./sublime_plugin.py", line 62, in reload_plugin
  File "./gist.py", line 7, in <module>
    import sublime_requests as requests
  File "./sublime_requests.py", line 5, in <module>
    import requests
  File "/home/nchambrier/.config/sublime-text-2/Packages/sublime-github/lib/requests/__init__.py", line 26, in <module>
    from . import utils
  File "/home/nchambrier/.config/sublime-text-2/Packages/sublime-github/lib/requests/utils.py", line 19, in <module>
    from .compat import parse_http_list as _parse_list_header
  File "/home/nchambrier/.config/sublime-text-2/Packages/sublime-github/lib/requests/compat.py", line 86, in <module>
    from .packages.oreos.monkeys import SimpleCookie
  File "/home/nchambrier/.config/sublime-text-2/Packages/sublime-github/lib/requests/packages/__init__.py", line 3, in <module>
    from . import urllib3
  File "/home/nchambrier/.config/sublime-text-2/Packages/sublime-github/lib/requests/packages/urllib3/__init__.py", line 16, in <module>
    from .connectionpool import (
  File "/home/nchambrier/.config/sublime-text-2/Packages/sublime-github/lib/requests/packages/urllib3/connectionpool.py", line 25, in <module>
    from httplib import HTTPConnection, HTTPSConnection, HTTPException
ImportError: cannot import name HTTPSConnection
Reloading plugin /home/nchambrier/.config/sublime-text-2/Packages/sublime-github/sublime_requests.py
Traceback (most recent call last):
  File "./sublime_plugin.py", line 62, in reload_plugin
  File "./sublime_requests.py", line 5, in <module>
    import requests
  File "/home/nchambrier/.config/sublime-text-2/Packages/sublime-github/lib/requests/__init__.py", line 26, in <module>
    from . import utils
  File "/home/nchambrier/.config/sublime-text-2/Packages/sublime-github/lib/requests/utils.py", line 19, in <module>
    from .compat import parse_http_list as _parse_list_header
  File "/home/nchambrier/.config/sublime-text-2/Packages/sublime-github/lib/requests/compat.py", line 86, in <module>
    from .packages.oreos.monkeys import SimpleCookie
  File "/home/nchambrier/.config/sublime-text-2/Packages/sublime-github/lib/requests/packages/__init__.py", line 3, in <module>
    from . import urllib3
  File "/home/nchambrier/.config/sublime-text-2/Packages/sublime-github/lib/requests/packages/urllib3/__init__.py", line 16, in <module>
    from .connectionpool import (
  File "/home/nchambrier/.config/sublime-text-2/Packages/sublime-github/lib/requests/packages/urllib3/connectionpool.py", line 25, in <module>
    from httplib import HTTPConnection, HTTPSConnection, HTTPException
ImportError: cannot import name HTTPSConnection

I'll check out if I can fix it myself and git you a patch, so you don't have to bother with a VM.

I think it will still be hard after that. I naively removed "HTTPSConnection, " from "urllib3.connectionpool", and I then get other errors:
Reloading plugin /home/nchambrier/.config/sublime-text-2/Packages/sublime-github/gist.py
Traceback (most recent call last):
  File "./sublime_plugin.py", line 62, in reload_plugin
  File "./gist.py", line 7, in <module>
    import sublime_requests as requests
  File "./sublime_requests.py", line 5, in <module>
    import requests
  File "/home/nchambrier/.config/sublime-text-2/Packages/sublime-github/lib/requests/__init__.py", line 26, in <module>
    from . import utils
  File "/home/nchambrier/.config/sublime-text-2/Packages/sublime-github/lib/requests/utils.py", line 19, in <module>
    from .compat import parse_http_list as _parse_list_header
  File "/home/nchambrier/.config/sublime-text-2/Packages/sublime-github/lib/requests/compat.py", line 86, in <module>
    from .packages.oreos.monkeys import SimpleCookie
  File "/home/nchambrier/.config/sublime-text-2/Packages/sublime-github/lib/requests/packages/__init__.py", line 3, in <module>
    from . import urllib3
  File "/home/nchambrier/.config/sublime-text-2/Packages/sublime-github/lib/requests/packages/urllib3/__init__.py", line 16, in <module>
    from .connectionpool import (
  File "/home/nchambrier/.config/sublime-text-2/Packages/sublime-github/lib/requests/packages/urllib3/connectionpool.py", line 42, in <module>
    from .request import RequestMethods
  File "/home/nchambrier/.config/sublime-text-2/Packages/sublime-github/lib/requests/packages/urllib3/request.py", line 12, in <module>
    from .filepost import encode_multipart_formdata
  File "/home/nchambrier/.config/sublime-text-2/Packages/sublime-github/lib/requests/packages/urllib3/filepost.py", line 15, in <module>
    from io import BytesIO
  File ".\io.py", line 63, in <module>
ImportError: No module named _fileio
Reloading plugin /home/nchambrier/.config/sublime-text-2/Packages/sublime-github/sublime_requests.py
Traceback (most recent call last):
  File "./sublime_plugin.py", line 62, in reload_plugin
  File "./sublime_requests.py", line 5, in <module>
    import requests
  File "/home/nchambrier/.config/sublime-text-2/Packages/sublime-github/lib/requests/__init__.py", line 26, in <module>
    from . import utils
  File "/home/nchambrier/.config/sublime-text-2/Packages/sublime-github/lib/requests/utils.py", line 19, in <module>
    from .compat import parse_http_list as _parse_list_header
  File "/home/nchambrier/.config/sublime-text-2/Packages/sublime-github/lib/requests/compat.py", line 86, in <module>
    from .packages.oreos.monkeys import SimpleCookie
  File "/home/nchambrier/.config/sublime-text-2/Packages/sublime-github/lib/requests/packages/__init__.py", line 3, in <module>
    from . import urllib3
  File "/home/nchambrier/.config/sublime-text-2/Packages/sublime-github/lib/requests/packages/urllib3/__init__.py", line 16, in <module>
    from .connectionpool import (
  File "/home/nchambrier/.config/sublime-text-2/Packages/sublime-github/lib/requests/packages/urllib3/connectionpool.py", line 42, in <module>
    from .request import RequestMethods
  File "/home/nchambrier/.config/sublime-text-2/Packages/sublime-github/lib/requests/packages/urllib3/request.py", line 12, in <module>
    from .filepost import encode_multipart_formdata
  File "/home/nchambrier/.config/sublime-text-2/Packages/sublime-github/lib/requests/packages/urllib3/filepost.py", line 15, in <module>
    from io import BytesIO
  File ".\io.py", line 63, in <module>
ImportError: No module named _fileio

I'm not sure yet it those errors are due to the fact I removed HTTPSConnection from connectionpool, or if it's yet another missing component from my system :-\

You definitely don't want to remove HTTPSConnection entirely--that will break OS X. But it does sound like there might be other things missing. It shouldn't be hard to work around, since Linux doesn't need any of that anyway. I'm downloading Ubuntu 11.10 now, so I'll have a fix soon.

Ok, give it a shot. Remember you need curl installed, so apt-get install curl if you haven't already.

I had a similar problem where the issue was openssl was updated but python was not recompiled, basically whenever you update openssl you have to recompile python.
https://github.com/jarun/googler/issues/312


Deprecate legacy publishing plugins (maven and ivy)

They are superseded by the maven-publish and ivy-publish plugins.

We should be relatively confident that we can do so before. For example, the Spring team somehow sorts dependencies before writing the POM files (apparently to make diffs easier). While we don't encourage this (because ordering is important), this is a use case which is not covered by the new publishing plugins.

Once the legacy maven plugin has been removed, we should be able to remove a bunch of 3rd-party dependencies from the maven subproject:
    implementation(library("pmaven_common"))
    implementation(library("pmaven_groovy"))
    implementation(library("maven3_wagon_file"))
    implementation(library("maven3_wagon_http"))
    implementation(library("plexus_container"))
    implementation(library("aether_connector"))

Also check existing @Deprecated in the ivy and maven projects. If they concern the new plugins, remove the deprecated part for Gradle 6. If they concern the old plugins, just leave them in and deprecate everything else in addition.

There are also some samples left in docs/src/sample that use :uploadArchive instead of maven- or ivy-publish. We should update them.


Upgrade Google Java Format 1.18.0 -> 1.18.1

This PR contains the following updates:

Package
Type
Update
Change

Google Java Format
compile
patch
1.18.0 -> 1.18.1

Release Notes

google/google-java-format (Google Java Format)
v1.18.1
Compare Source
Changes

Fixed version number for Eclipse plugin (#744)

Full Changelog: https://github.com/google/google-java-format/compare/v1.18.0...v1.18.1

[ ] If you want to rebase/retry this PR, check this box

Suggested commit message:
Upgrade Google Java Format 1.18.0 -> 1.18.1

See:
- https://github.com/google/google-java-format/releases/tag/v1.18.1
- https://github.com/google/google-java-format/compare/v1.18.0...v1.18.1


[10.x] Fix return type of until method in NullDispatcher

A failed test is not about my changes

Not sure if this matches the parent contract:
https://github.com/laravel/framework/blob/7c707a1f9e5cdb569f006702106324e3a8942e8e/src/Illuminate/Contracts/Events/Dispatcher.php#L39

In patch release, we can't change contracts!


chore(deps): update common-dev-assets digest to af18d9b

This PR contains the following updates:

Package
Update
Change

common-dev-assets
digest
472db52 -> af18d9b

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.

[ ] If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by Renovate Bot.

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


Add a wiki: LifeWiki

An anonymous user has submitted a new wiki via our submission form.
Link to origin wiki: https://conways-game-of-life.fandom.com
Link to destination (independent) wiki: https://conwaylife.com/wiki

Added in commit https://github.com/KevinPayravi/indie-wiki-buddy/commit/3cb3317c650294bb9fbbb3af65881f2fa715fdf9, will be in next release


Feature/doc

Make the doc autodoc work

Codecov Report

Merging #214 into 2.0 will not change coverage.
The diff coverage is n/a.

@@         Coverage Diff         @@
##            2.0   #214   +/-   ##
===================================
  Coverage   100%   100%
===================================
  Files        17     17
  Lines       410    410
===================================
  Hits        410    410

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 d71014b...adcd7e3. Read the comment docs.


initial support for installconfigtemplate in clusterpool

Please consider this pull request to enhance clusterpool to take a install-config.yaml as a secret in a similar fashion to the ClusterDeployment.
This will allow Clusterpool to accept an object like this
apiVersion: hive.openshift.io/v1
kind: ClusterPool
metadata:
  name: hktest
  namespace: hive
spec:
  baseDomain: hive.mytests.io
  imageSetRef:
    name: openshift-v4.5.13
  installConfigSecretRef:
    name: my-install-config-template
  platform:
    aws:
      credentialsSecretRef:
        name: global-aws-creds
      region: eu-west-1
  size: 1

Right now it works similar to supplying a installconfig directly to clusterdeployment, with the only exception that baseDomain and metadata.name is merged with info from the clusterpool (and pull-secret which is merged downstream already)
This should mean that hive should be quite agnostic to the target cloud and install-config.yaml content.
A couple of implementation details and questions

Initially I'm disabling machinepools when installconfigtemplate is provided. An alternative would be to get the worker spec from the install-config.yaml template when unmarshaling, but this might throw up a question of long term support and version alignment as discussed in #1182

Initially I've placed InstallConfigTemplate struct and handling in pkg/clusterresource/installconfigtemplate.go. I'm not sure if this is the best location for this, but unsure what location would be most consistent?

In this implementation I am still calling the cloudbuilder when a InstallConfigTemplate is provided, not sure if this is actually required for the
functioning of the deployment controller or any downstream processes. I'm assuming so, as ClusterDeployment seems to need the platform section which cloudbuilder seems to provide.

@dgoodwin as discussed in #1182

My team is in need of this PR as well.

@rayashworth it's encouraging to see that we're not the only ones needing this feature. I'm planning to finish implementing the input to the PR this week.

Let us know when ready and we'll jump back in on it, thanks so much for contributing this!

I've added test cases mergeInstallConfigTemplate, some unit tests for json marshal/unmarshal (maybe not the most elegant, but easy for folks at my go-level to reason with).
Also added some doc to describe the new feature.
Note, make test fail at the moment, but doesn't seem to be associated with code added in this PR, as the same tests fail on main branch.
Should be good for review now.

/lgtm
Thanks for all this effort, sounds like it will be a popular feature.

Thanks for the patience and the guidance @dgoodwin


Issue6198

Fix ^M line endings, https://help.github.com/en/github/using-git/configuring-git-to-handle-line-endings
Update MacOS and Linux support, since it's preview products and subject to change, link to the Mac and Linux documentation. Closes #6198.

@konstruktoid : I trust you will take care of the file merge conflict. Looks very good otherwise.

@JohanFreelancer9 - kindly do the copy editor review for this PR. Thanks.

Unfortunately, the TVM support for MacOS and Linux are not available at this point. For MacOS and Linux, we have Microsoft Defender ATP (which is the next gen protection, antivirus, and other capabilities). But at this point in time, Threat and Vulnerability Management for these platforms is not yet available.

Hi konstruktoid, according to our TVM PM, there's no TVM for Mac/Linux workflows yet so we can't merge this.
Thanks!

My bad, I understood it as Threat and Vulnerability Management was part of the Microsoft Defender ATP.

The document linting is nice, so if you would be so kind as to go ahead with a document linting PR, I think that will be good.


Term2-PID: speed value is always positive, even in reverse.

While messing around with the bonus parts, i was going to try and handle the case where I apply a negative throttle (break) long enough, that the car ends up going in reverse. What I expected was that the speed value would go negative, but instead it just increases again.

Technically speed can't be negative - it has to have a positive or zero value, regardless of which direction it is occurring in. I do think a lot of simulators/games show this as negative to make things easier, but we'll pass on this for now.


feat(all)!: upgrade Slurm charms to Noble

This PR upgrades the Slurm charms to Noble from Jammy. We get several benefits from this such as access to a newer base and package versions + more recent hardware support.
BREAKING CHANGES:

The Slurm charms no longer use the PPA ppa:ubuntu-hpc/slurm-wlm-23.02 to install Slurm. Instead Slurm is pulled directly from the Ubuntu Archive. This enables us to use Slurm 23.11. Newer versions of Slurm should be published to the experimental PPA ppa:ubuntu-hpc/experimental rather than create a separate PPA for the Slurm packages.
Speeds up charm builds by using the charm-binary-python-paclages directive in charmcraft.yaml. This pulls in pre-built versions of Rust-based packages such as cryptography and pydantic rather than compile them from source with rustc. This should drastically reduce the amount of time it takes to run integration tests.
Deactivates mysql-router in the integration test suite. The mysql-router subordinate charm does not yet support Noble, so instead we integrate directly with the mysql charm in the integration tests. mysql-router supporting Noble will likely not come until after the 25.04 cycle.
charmcraft.yaml now uses the new base, platforms syntax that was introduced with charmcraft v3 for charms that support<EMAIL_ADDRESS>and greater.

Hmm... re-running doesn't seem to refresh the state, so I might need to manipulate the branch protection rules for a hot second.

+1 Nice!!!!


[Suggestion] Open (daily) notes in new pane

Hi there, thanks for the superb workflow - lovin' it!
Just a brief suggestion: it'd be great if the new notes can be opened in a new pane (and/or introduce an option to).
Thanks!

Thanks! By default, it might not be possible to open notes in a new pane (see options here). Though it might be possible with community plugins like this one, but it means this Alfred workflow will require dependencies. But perhaps I can make that optional...

Dear sender,
Subject: Change of Email Domain
Starting from Friday, 3 January 2020, my personal email domain will gradually move to czhang.uk (from vpchris.com). Please save my new email address (same @.*** (e.g., @.***), and remove the current one from your system to avoid future disappointment.

Nevertheless this email has been forwarded, rest assured that you do not need to resend your message.
Gracias.

C.


Captain Toad Treasure Tracker

Game Name (and version if necessary)
Captain Toad Treasure Tracker
Hardware Specs (If necessary)
No response
Operating System
All
Game State
Works fine with some graphics glitches (Messed up positional lighting, missing hardware shadow mapping)
Screenshots
No response
Additional information
No response

Also where there's supposed to be a ripple effect is just a garbled image.


Various tweaks for readability

Hello :slightly_smiling_face:
I haven't got so much time to refactor everything but I thought I could do a couple of quality of life tweaks in the packer code. If we decide to do a major version bump we'll probably want to use the native fromEntries instead of the utility I added here.
Hope you're doing well!

If we decide to do a major version bump we'll probably want to use the native fromEntries instead of the utility I added here.

Nope. I can’t afford major bump :D. People are still migrating to PostCSS 8 :disappointed:


Google's enshittification of Chrome reached unbearable levels for me, finally pushing for a switch to Firefox. I need to use different profiles for work and personal stuff, and having all links open in one profile was driving me properly mad - almost had to switch back until I found your brilliant utility. And this is just perfect: cross platform, easy install, no further setup needed, and way better UX than any jank I had thought up as a solution to my problem. Thank you!

Hi Joeli, sorry for never replying - I wasn't sure if I want to accept donations.
First of all, I'm happy you got a good experience!
I do have some donation accounts setup, but I also realize I probably don't want to feel the obligation of "people paid for it" and still keep it as a fun sideproject. But maybe one day.


typo error on charts readme

What this PR does / why we need it:
It is a typo error for README.md for charts.
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] PR is based off the current tip of the main branch.
[ ] Changes are documented under the "Unreleased" header in CHANGELOG.md
[ ] New or modified sections of values.yaml are documented in the README.md
[x] Commits follow the Kong commit message guidelines

 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.


Reinstate deleted dependency diagram

In #640, we removed the Mermaid generated dependency diagram  b/c adding Kayenta broke it.
Try again to make it work.

#688


sc.pp.scale returning matrix of nan?

import scanpy as sc
print(sc.__version__)  #  1.4+222.gdd052ed
a = sc.datasets.pbmc3k()
b = sc.pp.scale(a, copy=True)
# /Users/isaac/github/scanpy/scanpy/preprocessing/_simple.py:1105: RuntimeWarning: invalid value encountered in true_divide
#  X /= scale
a.X.data
# array([1., 1., 2., ..., 1., 1., 3.], dtype=float32)
b.X
# array([[nan, nan, nan, ..., nan, nan, nan],
#        [nan, nan, nan, ..., nan, nan, nan],
#        [nan, nan, nan, ..., nan, nan, nan],
#        ...,
#        [nan, nan, nan, ..., nan, nan, nan],
#        [nan, nan, nan, ..., nan, nan, nan],
#        [nan, nan, nan, ..., nan, nan, nan]], dtype=float32)

Seems off. Even if I've log-ed it or do it inplace the same thing happens.

Hm. Strange. This shouldn't have been touched. Let me look into this. Presumably due to non-filtering...

Probably is, I think the nans are for all zero genes. But I think there's a better solution than a procedural warning and data that causes errors downstream.

The nans (with a proper warning) would be the right way but having data that causes downstream is not an option. As an intermediate solution, I added a note to the docs and made them zeros:
https://github.com/theislab/scanpy/commit/dce2be194a6ff865ecaeb939f3c990f6c3b0e244

Quick question to you @ivirshup, can't we simply replace all the adata_neighbors stuff with scanpy.datasets.pbmc68k_reduced? It already has the neighbor graph etc. in it and is smaller, that is, would speed up tests considerably.

Yeah, I was thinking even an error. Something that says "this operation doesn't really make sense with genes with no counts, so we're doing {}". On the other hand, I figure you can't go that wrong just doing what sklearn does, which is zeroes.
For sure! I'm trying to remember why I went with pbmc3k in the first place. I think I was getting a failure for pbmc3k but not the smaller one? In any case, this should be covered by test_pbmc3k.py notebook now.
Two quick related asides:

It would be good to have tests that actually hit the parts of neighbors where non-pairwise distances are found (>4096 cells I think).
I've been pretty successful at speeding up the tests by just running them in parallel. Stuff like this might be good to have in some dev docs. Is there a place for that kind of thing right now?

Great!
I'll replace the dataset in the tests in that case.

It would be good to have tests that actually hit the parts of neighbors where non-pairwise distances are found (>4096 cells I think).

We're just completely migrating to a shallow wrapper of umap there, where this is tested. I talked to Leland and he said it should be stable. At some point, we might move to pynndescent (when it get's introduced into umap). Long story short, I don't think we need to test the neighbors module within scanpy beyond testing the interface.

I've been pretty successful at speeding up the tests by just running them in parallel. Stuff like this might be good to have in some dev docs. Is there a place for that kind of thing right now?

No, happy to have you put some dev docs in a location that you find sensible. :)

OK, the large dataset and processing is gone in test_clustering: https://github.com/theislab/scanpy/commit/fc24dfc62c049a0d0c9cc491d4647d03b52bfb10


Audit and improve the documentation we have around making schema changes

The idea here is to have a CI step to throw an error if we have differences on the schema X db
https://github.com/Stand-With-Crypto/swc-web/actions/runs/12184647244/job/33989032029
https://www.prisma.io/docs/orm/reference/prisma-cli-reference#migrate-diff
"db:check": "prisma migrate diff --from-schema-datasource=./prisma/schema.prisma --to-schema-datamodel=./prisma/schema.prisma --exit-code",

@travisbloom-cb we should sync to update the DATABASE_URL variable on github actions if they're not up to date so we can test this out again


Upgrade to latest aws-load-balancer-controller helm chart

Community Note

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment

What is the outcome that you are trying to reach?
Use the latest aws-load-balancer-controller helm chart version.
At the time of creating this issue, this repository installs 1.4.8 and the latest version is 1.7.1.

Describe the solution you would like

Install an upgraded aws-load-balancer-controller helm chart version version.
Describe alternatives you have considered
None.
Additional context
None.

hello! the default chart version is currently 1.7.1 https://github.com/aws-ia/terraform-aws-eks-blueprints-addons/blob/f28ce287d944743f885537f9663571741063780d/main.tf#L1419

@bryantbiggs oh, I'm so sorry... I've mistakenly used https://github.com/aws-ia/terraform-aws-eks-blueprints-addons/releases/tag/v1.1.1 instead of https://github.com/aws-ia/terraform-aws-eks-blueprints-addons/releases/tag/v1.16.0. sorry for wasting your time, and thanks for pointing this out!

no worries at all, thats what we're here for!


[2710] - Add timecop to request spec

Context

This is to fix the intermittent failures that happen on CI

Checklist

[ ] Make sure all information from the Trello card is in here
[ ] Attach to Trello card
[ ] Rebased master
[ ] Cleaned commit history
[ ] Tested by running locally

 Fix flaky spec on CI

why is there so many whitespaces changes?

Because the Vim decided they required correction :-)
Seems like correct changes to me ( see https://github.com/DFE-Digital/manage-courses-backend/blob/master/spec/requests/api/v1/course_spec.rb#L41)


Added draft editor. Use VSCode as a draft window

Use an editor, by default VSCode, as a draft window.
in Firefox/slack/word etc..

"draft this" / "draft all" / "draft line"
Switches to vscode and opens a new untitled file
Make changes
"Draft submit"
Switches back to original window and pastes over the draft content with the changes

Only supports vscode for now, but would be easy to add support for additional editors

Some updates:

use a @mod.scope to set draft_editor_running. Now global draft commands are only active if the draft editor is running.
editor names is configurable via a csv setting. Settings doesn't support lists.
Updated switcher to support focusing on app or window with wait for switch.
Global draft commands are disabled in the editor itself. ie you cant draft from the draft editor.


Upgrading YourKit.app to 2014 build 14116

Thank you for the contribution. It will be merged in a different pull request due to some simple recommended alterations. Your contribution is still included (and still credited to you), with the appropriate modifications, when applicable.
Changes:

Facilitated future updates.


Remove unused scale config options

The following scale options are not used. They should either be used or removed.

ticks.minRotation

This has been fixed.

Hey, I'd actually like to be able to use this feature, and it's mentioned in the documentation, is there a reason it was removed?

@cgsawtell it got removed because it wasn't actually used in the code. I'd happily merge a PR for it


 	It looks like something went wrong :/

WARNING: There are 0 hosts up on you network.
It looks like something went wrong :/
The script keep crashing on me. It worked fine few times on the same network but than all of a sudden it started crashing. Before it crashes everytime it ask for the gateway IP. After I type the GW Ip it just crashes.

Hi there. We are currently working on this issue. Please follow Issue #20 for updates.


community: add document transformer for extracting links

Description: Add a DocumentTransformer for executing one or more LinkExtractors and adding the extracted links to each document.
Issue: n/a
Depedencies: none

looks good -- pending questions from author. It would be good to fix up the mutation of content in place since that will likely lead to bugs in users code. We can do a shallow copy of the metadata dict if we're just mutating the root of the namespace, and that shouldn't have too much of a performance consequence