Recurring yearly appointments created using Google API

I posted this question to StackOverflow (http://stackoverflow.com/questions/39966524/recurring-yearly-appointments-created-using-google-api) but got no reply with real solution.   Additionally I have tested that Google APIs Explorer gives correct results, so something could be wrong with .NET client
I am working on Open Source app to synchronize calendars between Google and Outlook. Some users reported some strange behavior for recurring appointments with start date years ago. Below there is sample code, all asserts are passing. My question is why for appointment starting 1970-10-14T08:00:00.000Z hour is shifted by API to 09:00:00+01:00 and if I shift start date to year 2000 it is shifted to 10:00:00+02:00 ? When I check how both events looks in Google they are starting on different hours, and in my opinion should start the same hour (as only year was changed)
        var e1 = new Google.Apis.Calendar.v3.Data.Event()
        {
            Summary = "Birthday 1",
            Start = new EventDateTime()
            {
                DateTime = new DateTime(1970, 10, 14, 10, 0, 0),
                TimeZone = "Europe/Warsaw"
            },
            End = new EventDateTime()
            {
                DateTime = new DateTime(1970, 10, 14, 11, 0, 0),
                TimeZone = "Europe/Warsaw"
            },
            Recurrence = new String[] { "RRULE:FREQ=YEARLY;BYMONTHDAY=14;BYMONTH=10" }
        };

        Assert.AreEqual("1970-10-14T08:00:00.000Z", e1.Start.DateTimeRaw);
        var c1 = service.Insert(e1, primaryCalendar.Id).Execute();
        Assert.AreEqual("1970-10-14T09:00:00+01:00", c1.Start.DateTimeRaw);

        var e2 = new Google.Apis.Calendar.v3.Data.Event()
        {
            Summary = "Birthday 2",
            Start = new EventDateTime()
            {
                DateTime = new DateTime(2000, 10, 14, 10, 0, 0),
                TimeZone = "Europe/Warsaw"
            },
            End = new EventDateTime()
            {
                DateTime = new DateTime(2000, 10, 14, 11, 0, 0),
                TimeZone = "Europe/Warsaw"
            },
            Recurrence = new String[] { "RRULE:FREQ=YEARLY;BYMONTHDAY=14;BYMONTH=10" }
        };

        Assert.AreEqual("2000-10-14T08:00:00.000Z", e2.Start.DateTimeRaw);
        var c2 = service.Insert(e2, primaryCalendar.Id).Execute();
        Assert.AreEqual("2000-10-14T10:00:00+02:00", c2.Start.DateTimeRaw);

And I would like to know what I need to do to save old recurring appointments correctly to Google? Should I have some separate logic which depends on year?
Many thanks for help!

The mixture of "Google .NET client libraries" and "date/time issues" is right up my street.
I don't have the cycles to look at this immediately, but I'll try to do so as soon as I can - probably answering the SO question as that'll have a wider audience.
The difference between the year 1970 and the year 2000 is easy to get started on. Looking at https://www.timeanddate.com/time/zone/poland/warsaw, we can see that on October 14th 2000, Warsaw was at UTC+2. On October 14th 1970, Warsaw was at UTC+1. So that's the difference involved, but it's not clear to me why the 1970 event would have been translated to 08:00 UTC. I'll need to dig into what's doing the time zone conversions in the client library.
(Of course, all of this would be better with Noda Time... if I ever do a hand-written Google Calendar client library, I would hope to use Noda Time all the way :)

October I wonder if they changed when they apply daylight savings time?

@LindaLawton: Yes, exactly. If you look at http://nodatime.org/tzvalidate/generate and search for "Europe/Warsaw" you can find all the time zone transitions until 2035 - you'll see there's a big gap:
1964-05-31 00:00:00Z +02:00:00 daylight CEST
1964-09-27 00:00:00Z +01:00:00 standard CET
1977-04-03 00:00:00Z +02:00:00 daylight CEST
1977-09-25 00:00:00Z +01:00:00 standard CET
1978-04-02 00:00:00Z +02:00:00 daylight CEST

So if that's what the time offset was then or lack there of one.  I am inclined to think that what the API and client library are doing is correct.

Typically those are bithdays ;).    Issue was reported by user here: https://sourceforge.net/p/googlesyncmod/bugs/866/    I think he is not from Poland, so problem could be not only for Warsaw time zone.
And just to repeat, If I create the same events in "Google API Explorer" everything works as it should....

Start date and end date need to be RFC3339 dates.
Code says:

Must be an RFC3339 timestamp with mandatory time zone offset.

Documentation says:

The time, as a combined date-time value (formatted according to RFC3339). A time zone offset is required unless a time zone is explicitly specified in timeZone.

@jskeet  can correct me if i am wrong but by doing this

DateTime = new DateTime(1970, 10, 14, 10, 0, 0),

Its just creating a date variable it in the default timezone or system timezone.    Its not actually in Warsaw time.
Still digging trying to figure out how we parse these to send them to the API.

No, if the API is converting new DateTime(1970, 10, 14, 10, 0, 0) to "1970-10-14T08:00:00.000Z", that's not right - it should be "1970-10-14T09:00:00.000Z" to be 10am local time.
That DateTime constructor will construct a DateTime with a kind of Unspecified. It shouldn't be assumed to be in the system local time zone, IMO. My guess is that it is being assumed to be in the system local time zone, unfortunately. It would be better represented in the raw API as "1970-10-14T10:00:00.000" (note the lack of Z). I'll look when I get a chance...

Looks to me like if its unspecified we are saying its universal casting it as a string and then sending it to the API.
if (date.Kind == DateTimeKind.Unspecified)
   {
   date = date.ToUniversalTime();
   }
return date.ToString("yyyy-MM-dd'T'HH:mm:ss.fffK", DateTimeFormatInfo.InvariantInfo);

No, if it's unspecified, we're assuming it's system local and converting it to UTC with ToUniversalTime.  That's ugly, IMO, but I don't think it's feasible to change that now.

@obelix30  any chance you know what time zone the calendar in question is set to i want to test this with some raw HTTP calls,  bothers me that Explorer works and client library doesn't.

My Google calendar time zone is set "(GMT+02:00) Berlin"

@jskeet any progress on this one?  I have learned there are other TZ impacted (for example Europe/Prague) they have probably the same gaps as Europe/Warsaw

@obelix30: As I mentioned earlier, basically you should pass in a DateTime with a Kind of UTC - work out the UTC instant you care about, and specify that. We won't be able to change the existing behaviour without breaking backward compatibility.

Looks like a using UTC DateTime's is the solution; so closing.


RFC: Image Controls in RGP Lua

Potential Image Control in RGP Lua
The Problem
Several of you have requested an image control that could be placed on FCCustomWindow dialog boxes. Adding the control itself may not be that difficult, but what becomes trickier is where the images come from. Normal applications use resources (that optionally can be different by locale) and place them in .bundle files (actually hidden folders in macOS) or embed them directly in .exe/.dll files (Windows). Lua scripts have neither of those options.
Possible Solutions
Based on preliminary research into creating image controls on both platforms, it appears that it may be possible to do either or both of the following:

Accept images from files (.bmp on Windows and a bunch of standard formats on Mac presumably including .bmp.)
Accept images from data buffers.

More Detailed Design Considerations
In addition to a putative FCCtrlStaticImage control, RGP Lua will need to add something like an FCImage class. I imagine this class either being initialized from a memory buffer or a filepath and then attached to the control. This process could be embedded in the control so that scripts did not have to do it themselves, but I would want them to be able to access the FCImage if they needed to. It would be loosely based on Apple's NSImage class (with far fewer options).
The question arises as to where to put image files that the script needs. As external dependencies they would create a headache for deployment and support, unless you were creating a completely self-contained "app" with an embedded copy of RGP Lua. But in the general case, external files are messy.
Another option would be to use a tool like xxd (macOS/Unix only, though I believe there are 3rd-party Windows versions). You could dump the image file as a .png/.bmp (i.e., pure RGB Data) and then embed it as a table of characters in your script that could be passed to the control. It would also be straighforward to create our own version of xxd to output the files in a more Lua-friendly format. Something like
local my_cool_image = [[
\x23x\3x\0x\234\23 ...
]]

Jan Angermüller actually attaches a binary chunk of data to the end of one of his script files that he then reads from his own script file. (That's what the finaleplugin.LoadAsString option is for. RGP Lua loads the entire file but then passes it as a string to Lua. Because the separator of the script from the binary data is a null character, Lua stops processing the file when it encounters the null.) Images could be attached that way.
Additional Considerations.
So far this discussion is centered on static images. For those of you who have been asking for this, do static images address what you need? I have not investigated animated images.
cc: @Nick-Mazuk @jwink75 @CJGarciaMusic @CJGarciaMusic @ThistleSifter

I haven't personally needed images, but this should work. Few questions, though:

Would this support dark mode? I'd prefer to not have a repeat of Finale's "artistic" renditions of dark mode images if possible.

Would it be possible (or wise) to fetch images via a URL instead of storing it inside the script? If this were implemented, I think fetching via a URL should be an alternative of storing the actual bytes, not a replacement for the proposed API. I'm fine if this is never implemented. Just curious what the possibilities are.

Specific to this repo, my ideal developer experience would be one where developers can store the images directly in this repo as PNGs or Bitmaps, then have some sort of library function that can import the file from the outside file. Finally, when bundling it, the image data is inlined into the Lua file. That way, as we're doing code review or updating each other's scripts, we can see the image directly rather than a big blob of nonsense text (GitHub shows visual diffs for image changes, too). Additionally, then we won't have that big blob of nonsense text in the source files as we code. If possible, I'd like to find a way to support this use case. Luckily, it seems like the proposed API would allow this.

local image = require("library.image")
local image_a = image.import("image_a.png")

Thanks a lot, Robert, for having a look at this!
I use images in Perfect Layout for showing the effects of options ("Before"/"After").
Currently there is a tiny button next to the option which opens up a preview image from a URL in the standard web browser.
Not very comfortable for the user, but at least he already sees a preview.
The images are currently not standardized and some are pretty huge, so they won't fit into the standard dialog anyway.
Here are a few examples:
https://elbsound.studio/assets/img/ES/hairpinconnection.png
https://elbsound.studio/assets/img/ES/dynamics shifted up.jpg
https://elbsound.studio/assets/img/ES/preventbarlinecollisiondynamicsabovethestaff.jpg
https://elbsound.studio/assets/img/ES/hidegroupnamesinparts.jpg
If the images were somehow available directly to the plug-in, I would probably keep the same method and only open a new dialog window with the preview images instead of the web browser.
This is (slightly) more comfortable as it keeps the focus on RGP Lua.
In the longterm I might add more sub dialogs and reduce the images to give the user a better experience by showing a preview directly next to an option.
But this would mean a lot of redesign on the user interface with about 300 options and is currently not my top priority.
My problem is that Perfect Layout already includes more than 100 preview images, so encoding them in the \x23,... format based on .bmp that Robert suggests would yield in quite some overhead compared to compressed .jpg/.png.
However, if the plug-in only needs 2-3 images (as probably most plug-ins) this might be a good "offline solution".
Looking at one average example image to calculate the size for 100 images:
.jpg image:  42 KB
.bmp image: 110 KB
Size if one byte is encoded as 4-5 bytes (255=\xFF,): ca. 550 KB
100 images x 550 KB= 55000 KB = ca. 54 MB
Downloading the images from a URL ("Online solution") would be my alternative suggestion which brings up the issue of "Downloading Files" in RGP Lua. BTW I had been talking about this with Robert yesterday (I'll add another issue for this one...).
Reading the images on the fly during runtime from a given file name would be my second preferred solution - especially as in Perfect Layout the images are only shown "on demand" when the user clicks a preview image button.
My plug-ins also use other external files and an installer, so there is always a known folder structure where the images are available and I don't see a problem in loading these images.
Appending binary code at the end of the plug-in is possible, but requires scrips for attaching and for reading/decoding.
I think it's also only possible if the Lua script is already compiled (but I am not sure). At least the Perfect Layout script is first compiled and then the binary code is attached.
That's probably a too complex way for a simple plug-in with only one image.
Animated images are interesting:
it could save space in the dialog if you have a before/after image that only requires the space for one image (and not two).
But instead of supporting an animated format like .gif, maybe it's possible to simply show/hide two .bmp images at the same spot alternatively in a certain time interval.
My general suggestion/requirements would be:
-Add an image class that takes the binary code of an image as source (i.e. from a lua variable). Then downloading, reading files, decoding text arrays or reading attached binary code is possible and it's up to the developer how he puts the image into the variable.
-If possible, support multiple formats like .bmp, .png, .jpg. If too difficult (or as a first quick solution) only support .bmp or .png.
-Having more than 100 images of which maybe not even a single image is actually shown (if the user doesn't click a preview button) shouldn't slow down the startup performance of the plug-in significantly. Or in other words: if possible, the images should only be loaded just-in-time if a dialog needs them.
-If this works, then a second step could be a more developer-friendly interface which also accepts file names, URLs or .lua files (with Robert's encoded text arrays as described above) as input

I have no idea how to do animated images, so (just to be clear), I'm not offering them (at least not yet).
Same goes for Dark Mode. I haven't even begun to investigate if I can get this control to work, so until that happens I prefer to punt on worrying about Dark Mode. At a minimum I'm hoping that images with transparent backgrounds will be easy.
Loading images from a URL is not a bad idea, though it means the website has to be available in perpetuity for the script to work properly. (I don't think requiring a website is a great idea. Websites vanish all the time. I heard even Google search was down for a while over the weekend.)
macOS would allow you to bundle the whole thing in a folder that looks like an individual file. But on Windows it would still look like a folder.
images could be loaded as needed, even if in a text array, using the require statement. However that basically defeats the purpose of having them in a text array. My goal would be to support all common formats through a file loading API. This appears to be built in to macOS Cocoa, and I have to think there is a good open-source solution for Windows. If someone wants to suggest one, I'm listening. What's needed is a library that reads the file into an HBITMAP handle.

I have uploaded a prerelease version of 0.64 that contains FCCtrlImage. This control allows you to load images from a file, a url, or a Lua string that is a direct binary image of one of the supported file types. I've tested both Mac and Win versions with .jpeg, .giff, .ico. I expect it also works with .bmp, .png, and others as well, but I haven't (yet) tried them. In fact that's where I'm hoping for help.
In addition this version has numerous other improvements over the previous pre-release version including FCUI::GetUserLocaleName and FCCtrlRadioButtonGroup.
You can download it here.
You can get the latest PDK Framework docs that match this version on the master branch of the repository. I've added a fair amount of documentation of FCCtrlImage there.
I added a create_string_buffer_from_file.lua script to the creation tools in lua-testtoolkit. You can use this to create Lua strings that can be loaded into the image control.
This is a good time to offer feedback if you have it.

Just to let everyone know, I am going to remove the SetImageFromUrl api. This is because it is extremely dis-recommended to download file across the Internet in a synchronous routine. You can end up blocking all user interaction to the app. It is quite possible I could get pushback from MakeMusic against merging it into the PDK Framework repo.
As an alternative, I will be investigating how to include the full suite of luasocket tools into the Finale Lua environment. You'll be able to use the socket.http namespace to create asynchronous web call, perhaps using a Lua coroutine. (I have used a coroutine before and it is really easy and works quite well.)

Also, I will be adding a FCUI::IsDarkMode method that will allow you to select a different image if you are in Dark Mode.

This has been implemented for the next release of RGP Lua, including many of the ideas in this thread. I'm closing this issue. If someone wants to reopen it, feel free.

Even loading a single static image would be amazing in certain cases, I think. Even better would be multiple images - at that point maybe we could even programmatically add our own crude animations :) But seriously, even one would be great.
One interesting thing to check out might be how images interact with other elements. I know in messing about with my scripts with dialog boxes that Windows and Mac handle drawing the controls very differently. In addition to the differences between size, I’ve noticed that if I’m not proactive about , say, the width of checkboxes they get drawn in such a way that many of them get obscured and ‘covered’ up by the width of other elements and end up not getting drawn. It’s easy for the Windows dialogs to turn into an ugly mess. Since one potential use of a graphic might be adding a ’skin’ to a dialog, the Windows drawing issues are a potential concern.
But we’ve got to start somewhere, so I say again that just being able to add a single graphic would be amazing!
-Jake

On Aug 8, 2022, at 6:18 AM, rpatters1 @.***> wrote:
Potential Image Control in RGP Lua
The Problem
Several of you have requested an image control that could be placed on FCCustomWindow dialog boxes. Adding the control itself may not be that difficult, but what becomes trickier is where the images come from. Normal applications use resources (that optionally can be different by locale) and place them in .bundle files (actually hidden folders in macOS) or embed them directly in .exe/.dll files (Windows). Lua scripts have neither of those options.
Possible Solutions
Based on preliminary research into creating image controls on both platforms, it appears that it may be possible to do either or both of the following:
Accept images from files (.bmp on Windows and a bunch of standard formats on Mac presumably including .bmp.)
Accept images from data buffers.
More Detailed Design Considerations
In addition to a putative FCCtrlStaticImage control, RGP Lua will need to add something like an FCImage class. I imagine this class either being initialized from a memory buffer or a filepath and then attached to the control. This process could be embedded in the control so that scripts did not have to do it themselves, but I would want them to be able to access the FCImage if they needed to.
It would be loosely based on Apple's NSImage https://developer.apple.com/documentation/appkit/nsimage?language=objc class (with far fewer options).
The question arises as to where to put image files that the script needs. As external dependencies they would create a headache for deployment and support, unless you were creating a completely self-contained "app" with an embedded copy of RGP Lua. But in the general case, external files are messy.
Another option would be to use a tool like xxd (macOS/Unix only, though I believe there are 3rd-party Windows versions). You could dump the image file as a .png/.bmp (i.e., pure RGB Data) and then embed it as a table of characters in your script that could be passed to the control. It would also be straighforward to create our own version of xxd to output the files in a more Lua-friendly format. Something like
local my_cool_image = [[
\x23x\3x\0x\234\23 ...
]]
Jan Angermüller actually attaches a binary chunk of data to the end of one of his script files that he then reads from his own script file. (That's what the finaleplugin.LoadAsString option is for. RGP Lua loads the entire file but then passes it as a string to Lua. Because the separator of the script from the binary data is a null character, Lua stops processing the file when it encounters the null.) Images could be attached that way.
Additional Considerations.
So far this discussion is centered on static images. For those of you who have been asking for this, do static images address what you need? I have not investigated animated images.
cc: @Nick-Mazuk https://github.com/Nick-Mazuk @jwink75 https://github.com/jwink75 @CJGarciaMusic https://github.com/CJGarciaMusic @CJGarciaMusic https://github.com/CJGarciaMusic @ThistleSifter https://github.com/ThistleSifter
—
Reply to this email directly, view it on GitHub https://github.com/finale-lua/lua-scripts/issues/327, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMCBUQ6VLIVCPZQJZT4Z73DVYECJXANCNFSM555DG5OA.
You are receiving this because you were mentioned.

But we’ve got to start somewhere, so I say again that just being able to add a single graphic would be amazing!

It's there in RGP Lua 0.64. (the current release)


Can we address constituencies?

I'm thinking of a "constituency" as the group of people that have standing in an election. There are natural constituencies, like the residents of a county in a county election. There are ad-hoc constituencies, which may grow or change over time. And there are constituencies that might be more accurately described as "interested parties."  How do votes and constituencies relate, and how are constituencies addressed in the proposal?

I don't see that it is, which IMHO is a good thing: Including support for "constituencies", which I generally translate  as support for tribalism, is exactly the opposite of what we should be doing. Your proposal boils down to building in support for oligarchy which is fundamentally incompatible with democracy (if you haven't, I'd again recommend reading the help system for https://www.proxyfor.me to get some clue as to why this is).

@metamerman I disagress some nissues have to be fought on a local level. For instanc I may wish to delegate my vote on how best to deliver aid to people hit by natural disasters to an expert in that field, but if i may want to delegat my vote on wether the state should pay to dredge the local ditches to prevent flooding. There should at loeast be a '#local' or '#wherever_you_happen_to_live'. So not nessecerily preset constituincies but local groups banding together would be good.

Right: Locality != "constituency" except in the rare (non-existent?) case where the locality is completely homogeneous. Certainly some laws/policies and budgeting will only apply at the local level, but that's a completely unrelated issue to that of intentionally dividing even the local community up into different "tribes" who are expected to compete with each other. I note that the original poster never bothered to respond to the criticism that their proposal is designed to facilitate tribalism which is the single most broken thing in our existing governing systems because it effectively prevents cooperation from arising spontaneously (i.e., those who "don't have a dog in the fight" are effectively shut out of the decisionmaking process where they would naturally serve as a coordinating and moderating influence). Democracy only works when everybody participates in every decision, even if it doesn't affect them directly, and AFAIK https://www.proxyfor.me/ is the only decisionmaking system that supports this without imposing totally impractical demands on The People. Certainly no "Liquid Democracy" derivative can do this because the design of that delegation system is fatally flawed...


Rework Action placementPriority on iOS

Problem description
Currently, the Action's placementPriority presents different UI on Android, Windows and iOS. On Android and Windows, actions with low placement priority appear in an overflow menu, which is only shown when tapping on the ... icon, while actions on iOS appear in a bar on the bottom of the navigation view, which is always shown.
The iOS solution has several problems:

Placing the actions in a bar, which is always visible on the bottom of the page is conceptually different than hiding the actions in an overflow menu.
Left-alignment of toolbar icons makes the UI look asymmetrical, the buttons are hard to reach with the thumb and this alignment is untypical for iOS toolbars. Toolbar icons are usually evenly distributed.
It causes visual clutter when using a TabFolder based navigation (i.e. TabFolder with a tabBarLocation set to "bottom"), although this would work fine on Android when using an overflow menu. This is discouraged by Apple's UX guidelines: Toolbars and tab bars never appear together in the same view.

Expected behavior
Proposal 1:
Align behavior with Android. Show a ... button on iOS as well and use it to open an action sheet containing the low priority actions.
This pattern is used in some native iOS apps like Pages and the App Store:

Pages
App Store

Proposal 2:
Keep the bottom bar on iOS, but evenly distribute its icons.

While not necessarily a breaking change, if we implement this behavior we should do it for 3.0 so that we can remove the then outdated property bottomtoolbarheight.


more control over the appearance of the filter icon

Hi, I'm sorry for creating an issue on this -- please let me know if there is a better way to communicate questions or suggestions.
This is a feature request, or else a question, if the capability already exists.
I would like to be able to change the color of the filter icon that appears in the header of a filterable column.  I would also like to be able to change the icon itself.
The icon appears to be implemented as a .png bitmap.  Maybe it is generated dynamically, I don't know, and I can't find a way to configure the grid to change its color or appearance.
If the icon were implemented as a font character this ability would be easy (like one can do with font-awesome).
As a single font character, would be easy to override the color, or any other attribute via CSS, as well as the icon itself (by specifying a different character, which could be done either via an additional API or via CSS with no change to the API).

Yes, this is something I have in my backlog. The current filter is just an image, so if you want to change it you can repaint the current image and override it or use your own styling.
I will be changing it to some pure css solution (like styling a div into an icon). I didn't really want to have a dependency on other fonts just for a single icon.

You may already know this:    You can create your own custom SVG font with a whole set of icons in it and package the font files with the rest of your content.


Import Voices and VoiceSettings in generate() | No voice voice_id

Is there any way I can pull the voice from from elevenlabs import voices and still put VoiceSettings inside
voice=Voice(
                     voice=all_voices ,
                     settings=VoiceSettings(stability=0.71, similarity_boost=0.5, style=0.0, use_speaker_boost=True)
                 ),

My code keeps giving error
# This doesn't work
# Pull the voices from the voices which are names, Adam, Rachel, etc...

from elevenlabs import Voice, VoiceSettings, voices, generate

all_voices = voices()
audio = generate(
                 text=text_input_elevenlabs_api,
                 voice=Voice(
                     voice=all_voices , # Pull the voices from the voices which are names, Adam, Rachel, etc...
                     settings=VoiceSettings(stability=0.71, similarity_boost=0.5, style=0.0, use_speaker_boost=True)
                 ),
                 model="eleven_multilingual_v2",
                 api_key=id_api
             )

But if I put the indicated one, which is this
# Functional, but not practical

all_voices = voices()
from elevenlabs import Voice, VoiceSettings, voices, generate

audio = generate(
                 text=text_input_elevenlabs_api,
                 voice=Voice(
                     voice_id='EXAVITQu4vr4xnSDxMaL', # I wouldn't like to create a file and name it one by one, I wanted something practical like the voices but with an ID for here and in my interface there aren't several codes, I want the interface to return the names but the code identifies it as if it were the functional without settings=VoiceSettings

                     settings=VoiceSettings(stability=0.71, similarity_boost=0.5, style=0.0, use_speaker_boost=True)
                 ),
                 model="eleven_multilingual_v2",
                 api_key=id_api
             )

Below Functional but without settings=VoiceSettings
# This is what I'm using, but I miss the possibility of settings=VoiceSettings
from elevenlabs import Voice, VoiceSettings, voices, generate

audio = generate(
                text=text_input_elevenlabs_api,
                voice=all_voices ,
                model="eleven_multilingual_v2",
                api_key=id_api
            )

@RafaelGodoyEbert thanks for filing this error, we'll get back to you on how you can customize the setting for each voice and just identify with name.

But using name, the code does not identify, it returns an error.
Error generating audio: 1 validation error for Voice
voice_id
  field required (type=value_error.missing)

code updated according to message
            audio = generate(
                text=audio_input_elevenlabs_api,
                voice=Voice(
                    name=voice_model_input,
                    settings=VoiceSettings(stability=stability_elevenlabs, similarity_boost=similarity_boost_elevenlabs, style=style_elevenlabs, use_speaker_boost=use_speaker_boost_elevenlabs)
                ),
                model=modelos,
                api_key=id_api
            )

It's forcing me to have voice_id= inside voice to work
But if I put voice_id= it doesn't make sense to have name=

@RafaelGodoyEbert This is being fixed on https://github.com/elevenlabs/elevenlabs-python/pull/196

@RafaelGodoyEbert this is now fixed in v1.0.0b0. Please let us know if you have anymore issues!


onRefresh isn't working

Hi, Do you have a plan to support the onRefresh?

Hi @JinHoSo , no I don't plan to add additional features, probably you can use just RefreshControl.

One small notice. RefreshControl won't work by default, because it's disabled by bounces={false} in the code of library. To override just add bounces to component props.

Guys, can you try this... hope this solution works for you
For android you can use progressViewOffset for FlatList but it's only for Android. I tried it and it works fine on Android.
For example:
refreshControl={}
and for IOS, I havn't tried it but hope this work contentInset

Anyone have luck with this? Still looking for the right combo of props...


[SwipeableDrawer] disableDiscovery always false

hello
i'm using Material-UI  v4.1.1, after setting disableDiscovery to true touching the screen near the edge of the drawer still trigger the drawer

Please follow the issue template especially a minimal reproducible example and your device and browser would help alot.

i read about disableDiscovery  and it's the expected behaviour


virtualbox 5.0.0

Thank you for the contribution. It was merged directly as 26e291e1c3aebca2a52990702b92fbd4a1b8af14 to keep commit history cleaner. Your contribution is still credited to you.


2GP Package Version ID not added to local package registry

Describe the bug
2GP Package ID is not added to local package registry upon creation. The new task command create_package_version runs successfully but doesn't add the new package version ID to the sfdx-project.json registry. This makes usage of the new package version impossible without manual interaction in the CLI.
Reproduction steps
Steps to reproduce the behavior:

Open CCI project with local metadata
Run task command cci task run create_package_version --org dev -o package_type Unlocked

Context

Your CumulusCI version (3.20.1).
Your Python version (Python 2.7.16)
MacOS version 10.15.7
CCI installed via Brew

Gist
No gist available as command runs successfully but doesn't update local package registry.

This is by design: A key use case for us is building a package version for use in a continuous integration process. Since those builds will be triggered by commits, we don't want to make additional changes to the repository contents which then need to be committed.
Can you tell me more about the alternative to "manual interaction in the CLI" that you were hoping for? Are you using a non-command line tool that reads this info from sfdx-project.json?

This ties to the other issue relating to creating Unlocked packages in the sense that if a customer has developed more than one package, they need to easily be able to pull the Package Version ID of the latest package for the update_dependency command. Couple this with a decentralized development team and the package ID becomes more essential.
For example, a customer I am working with has the following model:

Package 1 (owned by central OIT)

private Git repo

Package 2 (owned by BU1)

private Git repo
contains dependency on Package 1

Package 3 (owned by BU2)

private Git repo

In this example, there are 2 main issues that lack of the ID is creating.

The update_dependency command struggles to poll the private git repo for any dependent information
The latest package version ID is not passed to the SFDX-Project.json requires complex workarounds or manual steps in order to get the latest version for usage.

The specific use case that I am working to test and implement for this customer would be as follows:

Package 1 released new package version
Package 2 is working on a new feature that is dependent on the new Package 1 version

Commit to feature__QA branch fires flow to create dev org with newly released Package 1 via MetaCI
If build is successful, fire a flow in Package 1 repo to promote new package for production release

The issue that I am having with the flows is that the Package Version ID is not substantiated or recorded anywhere within the project itself requiring additional steps to query / locate the package version. From my personal experience with CCI and SFDX packaging of any form, I have been unable to build cross-dependencies outside of production released packages.  Since these packages exist in separate Git repos, the dependency on the Package Version ID in the JSON string has been essential for cross repo workflows.
I could be going about this entirely wrong but as customers adopt 2GP Unlocked Packages more this becomes a larger pain point.

@anspaujd I am going to close this issue as a bug, because this is currently working as designed, but I would love to chat with you about ways in which the different approaches to package version management can be made more ergonomic.


Traceback on errors during the refresh process

On Hubs I get this traceback sometimes:
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/flask/app.py", line 1988, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/lib/python3.6/site-packages/flask/app.py", line 1641, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/lib/python3.6/site-packages/flask/app.py", line 1544, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/lib/python3.6/site-packages/flask/_compat.py", line 33, in reraise
    raise value
  File "/usr/lib/python3.6/site-packages/flask/app.py", line 1637, in full_dispatch_request
    rv = self.preprocess_request()
  File "/usr/lib/python3.6/site-packages/flask/app.py", line 1837, in preprocess_request
    rv = func()
  File "/usr/lib/python3.6/site-packages/flask_oidc/__init__.py", line 324, in _before_request
    self.authenticate_or_redirect()
  File "/usr/lib/python3.6/site-packages/flask_oidc/__init__.py", line 362, in authenticate_or_redirect
    credentials.refresh(httplib2.Http())
  File "/usr/lib/python3.6/site-packages/oauth2client/client.py", line 545, in refresh
    self._refresh(http)
  File "/usr/lib/python3.6/site-packages/oauth2client/client.py", line 749, in _refresh
    self._do_refresh_request(http)
  File "/usr/lib/python3.6/site-packages/oauth2client/client.py", line 786, in _do_refresh_request
    self.access_token = d['access_token']
KeyError: 'access_token'

I've printed the value of the variable d and it's {'error_description': 'Something went wrong refreshing', 'error': 'invalid_grant'}.

I'm experiencing this issue as well. @abompard did you manage to find a fix or a workaround?


Broken docs link....

@bstuder99 there's a very important link that is broken here: https://docs.kubecost.com/install
Can you fix? What lessons can we learn from this?
cc @chipzoller @kwombach12

The readme. What lessons can we learn from this? i.e. how many other broken links are out there and how can we address them?

Ahrefs has a feature called Broken Backlinks which identifies third party websites across the web linking towards the domain docs.kubecost.com, I've issued redirects where possible to mitigate near all of these. As for addressing content within public-facing Kubecost READMEs or other content, I can go through GitHub today and issue corrections where needed

This repo's README has had a single commit in the last year, so it sounds like the content does not need changes on a regular basis but is also not being maintained

Closed in #171


Fix Clippy warnings in core

The Clippy version of CI seems to have updated to warn about non-inlined arguments in format_arguments

This is a new lint in the most recent version of Rust.


ERROR: langchain 0.0.251 has requirement pydantic<2,>=1, but you'll have pydantic 2.1.1 which is incompatible.

System Info
Ubuntu
Who can help?
No response
Information

[ ] The official example notebooks/scripts
[ ] My own modified scripts

Related Components

[ ] LLMs/Chat Models
[ ] Embedding Models
[ ] Prompts / Prompt Templates / Prompt Selectors
[ ] Output Parsers
[ ] Document Loaders
[ ] Vector Stores / Retrievers
[ ] Memory
[ ] Agents / Agent Executors
[ ] Tools / Toolkits
[ ] Chains
[ ] Callbacks/Tracing
[ ] Async

Reproduction
pip install with the following requierments.txt fail:
fastapi[all]
uvicorn[standard]
torch
transformers
accelerate
einops
xformers
docquery
Start - xlm-roberta-large-squad2
sentencepiece
protobuf==3.20.*
End   - xlm-roberta-large-squad2
panel
hvplot
langchain==0.0.251
Expected behavior
langchain should work with latest pydantic

Dosu,
Thanks for your quick response.
I changed my requirements.txt to:
pydantic==1.8.2
fastapi[all]
uvicorn[standard]
torch
transformers
accelerate
einops
xformers
docquery
Start - xlm-roberta-large-squad2
sentencepiece
protobuf==3.20.*
End   - xlm-roberta-large-squad2
panel
hvplot
langchain
and now I get:
ERROR: pydantic-extra-types 2.0.0 has requirement pydantic>=2.0b3, but you'll have pydantic 1.8.2 which is incompatible.
ERROR: pydantic-settings 2.0.2 has requirement pydantic>=2.0.1, but you'll have pydantic 1.8.2 which is incompatible.
What version should I choose for pydantic-extra-types and pydantic-settings?
Thx,
Yohay

I also have issues because of Langchain is using an outdated version of pydantic.
Specifically, I use one of pydantic's more recent features (model_post_init method for BaseModels). Since installing langchain downgrades pydantic, I can't use langchain and I am resorting to using OpenAI directly.
Hoping Langchain will upgrade its requirements to a newer version of Pydantic soon.

This issue still persists, was there any resolution?
@dosubot


Parallel queries with useQueries

Hi, I was wondering if anyone has taken an attempt at using this package along with useQueries?
I have tried but I am running into a wall with an error:
React has detected a change in the order of Hooks called by Hierarchy. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks

I'm not entirely sure if this is stemming from this package but I wanted to seek advice on the best path of using useQueries along with connect-query

I was able to get to a solution with createQueryOptions! Thank you


configurable verbosity

some of the changes are just recommandations made by haskell-language-server, I saw it fit to make hie-bios follows the recommandation from the software it exists for.
I would like to make this change configurable on the CLI rather than hardcode it
https://github.com/mpickering/hie-bios/compare/master...teto:nix?expand=1#diff-268e4205229d03a6419924ecdf57a963794db10db21703878f4d22424f2c8b58R47
Do you think its a good idea ? or maybe we could just remove the
setVerbosity 0                       -- Set verbosity to zero just in case the user specified -vx in the options. ?
The user can set -v0 himself ? and is there any reason not to show a detailed log in the first place ?

Please avoid unnecessary changes unless there is a real benefit.
We do not follow hlint guidelines, so although this project is a foundation for hls, there is no reason to follow rules of some plugin, just because they are the default. (E.g., hie-bios existed when hls did not even have a hlint plugin)

Please avoid unnecessary changes unless there is a real benefit.
We do not follow hlint guidelines, so although this project is a foundation for hls, there is no reason to follow rules of some plugin, just because they are the default. (E.g., hie-bios existed when hls did not even have a hlint plugin)

sure for the hlint changes, gonna drop. Now I wonder about how to enable a more verbose hie-bios: should I:
1/  just disable the automatic verbisotiy0 to let a cradle's -v2 succeed
2/  just let the user pass some arbitrary args that override a default -v0
3/ add an arugment hie-bios --verbosity=1
I assume we want the feature (I found it very helpful).

sure for the hlint changes, gonna drop. Now I wonder about how to enable a more verbose hie-bios: should I:
1/  just disable the automatic verbisotiy0 to let a cradle's -v2 succeed
2/  just let the user pass some arbitrary args that override a default -v0
3/ add an arugment hie-bios --verbosity=1
I assume we want the feature (I found it very helpful).


Training specific agentflow subtaskoption

Is their an example showing how to train a specific option policy?
For example, from the agent flow tutorial, how can we setup training for the ExamplePolicy. The problem being that the output of step in the main_loop may have a different observation_spec and action_spec than the policy.
# Stubs for pulling observation and sending action to some external system.
observation_cb = ExampleObservationUpdater()
action_cb = ExampleActionSender()

# Create an environment that forwards the observation and action calls.
env = ProxyEnvironment(observation_cb, action_cb)

# Stub policy that runs the desired agent.
policy = ExamplePolicy(action_cb.action_spec(), "agent")

# Wrap policy into an agent that logs to the terminal.
task = ExampleSubTask(env.observation_spec(), action_cb.action_spec(), 10)
logger = print_logger.PrintLogger()
aggregator = subtask_logger.EpisodeReturnAggregator()
logging_observer = subtask_logger.SubTaskLogger(logger, aggregator)
agent = subtask.SubTaskOption(task, policy, [logging_observer])

reset_op = ExampleScriptedOption(action_cb.action_spec(), "reset", 3)
main_loop = loop_ops.Repeat(5, sequence.Sequence([reset_op, agent]))

# Run the episode.
timestep = env.reset()
while True:
  action = main_loop.step(timestep)
  timestep = env.step(action)

  # Terminate if the environment or main_loop requests it.
  if timestep.last() or (main_loop.pterm(timestep) > np.random.rand()):
    if not timestep.last():
      termination_timestep = timestep._replace(step_type=dm_env.StepType.LAST)
      main_loop.step(termination_timestep)
    break

We unfortunately don't have open-sourced code for training, but I'll try to explain the pieces of the system and how you can handle differing action/observation specs.
There are 3 layers to this setup:

The base environment, which is ProxyEnvironment in the example.
The subtask, which specifies a particular reward, observation, and action spec. ExampleSubTask in the example.
The policy/option which provides actions. subtask.SubTaskOption in the example.

If all 3 have the same action/observation spec, then this becomes a standard RL problem. For instance, you can push the actions and timesteps to a buffer and use your favorite off-policy RL algorithm to learn.
If, for whatever reason, your base environment has a different action and observation spec from the policy you are training, though, you can use the subtask to convert between the 2. The Subtask.agent_to_parent_action() and Subtask.parent_to_agent_timestep() methods allow for this ("parent" means base environment in here).
The ParameterizedSubTask class gives an easy way to build the correct subtask which does all the conversions you want. The action_space converts from the base environment action spec to your agent's action spec, and the timestep_preprocessor can modify the observation spec while also adding or changing the rewards/discounts you may need.
Does this answer your question?

Thanks for the prompt response! I understand the design choices here, but is pushing the data to a buffer and training in an off-policy way the only option?
To be more clear, here in order to train a policy I believe we will need to run the environment as a whole. So this is environment centric API. I am trying to think of a way to spawn multiple environments parallely for a single agent i.e. agent centric training.
Currently the agent/network lives inside the policy/option class.  The env.step() func returns outputs from all the options. If there could be a way to isolate data from the learned policy/option, maybe this could be done. How can we spawn multiple envs and gather data from all of them but just the learnable option data?
Does my question make more sense now? Thanks!

Maybe I understand what you're asking. Let me try to draw out an example, and you can correct me where I'm missing things.
First,

but is pushing the data to a buffer and training in an off-policy way the only option?

Nope, this was just an example I was giving. None of MoMa or Agentflow necessitate any particular agent-training style. It is generic, and should be able to support what you're hoping to do.
Take a look at the example environment built in the MoMa tutorial Colab. I'll use that as our example in this response since it is a bit more concrete than the one you pointed to above.
In it, we have a Sawyer arm with a parallel gripper and a small block to lift. You can see how the base environment (BaseTask) is built in the Colab.
That base environment has many sensors and a raw 7D joint velocity effector. Let's imagine the base environment provided all the following observations:
sawyer_joint_pos
sawyer_joint_vel
sawyer_joint_torque
gripper_pos
gripper_quat
gripper_finger_pos
gripper_finger_vel
block_pos
block_quat

And let's say, for your policy, you want (a) a smaller action space to make learning easier and (b) less observations to feed in. Then you can do both of these via the "subtask" abstraction. In your subtask, you can specify an ActionSpace to map your policy's acitons to the base environment and you can add a RetainObservations preprocessor to filter out only the observations you want. Again, the MoMa tutorial Colab shows how to do both of these.
So, now, with these changes, you should have an environment which exposes the exact action space your policy wants and the exact data you want to feed into your policy. For instance, this can be the new list of observations:
sawyer_joint_pos
sawyer_joint_vel
gripper_pos
gripper_quat
gripper_finger_pos
block_pos

Now, your policy does not necessarily need to be wrapped in an Option. This is a handy abstraction when you are dealing with multiple subtasks, but if you are just training one policy for one task, you don't necessarily need it (even if you are running multiple environments concurrently).
However, for the purposes of this answer, let's assume your policy network which you are training is at least wrapped in some class which has a step() function:
class MyPolicy:

  def step(timestep: dm_env.TimeStep) -> np.ndarray:
    # `timestep` is the output of the Sawyer environment.
    flattened_observations = ...  # do some processing to take the observations are merge them into a list of floats
    normalized_action = ...  # feed the floats into your network and get some output.
    unnormalized_action = ...  # scale the network output back to the environment action spec.
    return unnormalized_action

The example above is bare bones and missing some things you may need for concurrency, but you get my drift.
Now, if you want to run your policy with different environments, you could run the following lines in several threads:
env = MySawyerEnv()  # this is a SubTaskEnvironment
agent = MyPolicy()
for _ in range(num_episodes):
  timestep = env.reset()
  while not timestep.last():
    action = agent.step(timestep)
    timestep = env.step(action)

tl;dr: the Subtask abstraction, with it's ActionSpace and TimestepPreprocessor abstractions should give you the tools to change a base environment into what you want to expose to your policy.

Thanks for the explanation! this example would really help me put forth my point better now.
Suppose we divide this block lift scenario into 4 different parts. 3 of which are straightforward hard-coded options/policies and 1 is a learned policy. For eg, lets say:
Option 1 (hard-coded): Take gripper above the object,
Option 2 (learned policy): Given the observations, find the best grasp location,
Option 3 (hard-coded): Given the grasp location, execute grasp,
Option 4 (hard-coded): Take grasped object to location.
Now, when we start the simulator it starts in the initial state, and then when we execute env.step() it cycles through 1->2->3->4->reset and repeat. Given this, the observations we will now see inside the loop will not just belong to Option 2, but all the env episodes.
So my question is, how can I train Option 2 in this case? Other options dont need training, but in order to train Option 2 I need to get the simulator to a particular state by transitioning through 1-2-3-4-reset. I know one answer is just to get rid of all this modularity and simply make 1, 3, 4 part of the environment init and reset operations. But that kills the whole effort of your Agentflow API I feel. Their should be a smarter way to do this?
Thank you very much for your time and patience!

Ah, ok. I see your situation now. Yes! Agentflow actually is exactly designed for this, while MoMa's SubTaskEnvironment (a stricter version of Agentflow which adhere's to DeepMind's environment API) is not. So feel free to ignore pieces of my previous message, haha.
You rightly described each phase of the task as an "option". They would be SubTaskOptions, made of both a SubTask and the scripted or learned policy/option.
Again, like my last message, let's say the base environment exposes a 8D action space (7D for the arm joints and 1D for the gripper). And let's say it exposes the following observations again:
sawyer_joint_pos
sawyer_joint_vel
sawyer_joint_torque
gripper_pos
gripper_quat
gripper_finger_pos
gripper_finger_vel
block_pos
block_quat

Here is how you could compose the various SubTaskOptions you need:
base_env = ...

parent_spec = spec_utils.TimeStepSpec(
    base_env.observation_spec(),
    base_env.reward_spec(),
    base_env.discount_spec())

# Create a cartesian ActionSpace which projects 6D Cartesian actions to the 8D base environment action space.
cartesian_action_space = ...

# Phase 1 - Move the arm above the object.
# Create a TimestepPreprocessor which terminates when the gripper is above the object.
# You can terminate subtasks/options by setting the "pterm" (probability of termination) to 1.0.
# See subtask_termination.py for examples on how to write a terminating timestep preprocessor.
stop_above_obj_preprocessor = ...
move_gripper_above_obj_task = af.ParameterizedSubTask(
    parent_spec=parent_spec,
    # Assume your scripted motion outputs 6D Cartesian actions.
    action_space=cartesian_action_space,
    timestep_preprocessor=stop_above_obj_preprocessor)
move_gripper_above_obj_scripted_option = ...
move_gripper_above_obj = af.SubTaskOption(
    sub_task=move_gripper_above_obj_task,
    agent=move_gripper_above_obj_scripted_option)

# Phase 2 - Choose grasp location.
# This is the learned phased. Let's assume 2 things:
#   1: your learned policy operated in a smaller action space than the base env.
#   2: the policy reads a subset of the base env observations.
# You can still handle both of these via a ParameterizedSubTask.
move_to_grasp_loc_action_space = ...
move_to_grasp_loc_task = af.ParameterizedSubTask(
    parent_spec=parent_spec,
    action_space=move_to_grasp_loc_action_space,
    timestep_preprocessor=af.RetainObservations([
        'sawyer_joint_pos',
        'block_pos',
        'block_quat',
    ]))
move_to_grasp_location_learned_policy = ...
move_to_grasp_location = af.SubTaskOption(
    sub_task=move_to_grasp_loc_task,
    agent=move_to_grasp_location_learned_policy)

# Phase 3 - Execute grasp
...
grasp = af.SubTaskOption(...)

# Phase 4 - Move object to new location
...
move_to_new_loc = af.SubTaskOption(...)

full_procedure = af.Sequence([
    move_gripper_above_obj,
    move_to_grasp_location,
    grasp,
    move_to_new_loc
])

# Run an episode
timestep = base_env.reset()
while not timestep.last():
  action = full_procedure.step(timestep)
  timestep = base_env.step(action)

  # Terminate if the environment or main_loop requests it.
  if full_procedure.pterm(timestep) > np.random.rand():
    if not timestep.last():
      # Make sure the option sees a LAST timestep.
      termination_timestep = timestep._replace(step_type=dm_env.StepType.LAST)
      main_loop.step(termination_timestep)
    break

You can configure each SubTask to have the exact action space, set of observations, and rewards/discounts that you want for that particular phase. Different phases do not need to share the same observations.

Alright, so I can define each step as an SubtaskOption. Currently the termination condition for my tasks is MAX_STEPS. Maybe I am missing something subtle here. What I do not understand is within the loop-
# Run an episode
timestep = base_env.reset()
while not timestep.last():
  action = full_procedure.step(timestep)
  timestep = base_env.step(action)

  # Terminate if the environment or main_loop requests it.
  if full_procedure.pterm(timestep) > np.random.rand():
    if not timestep.last():
      # Make sure the option sees a LAST timestep.
      termination_timestep = timestep._replace(step_type=dm_env.StepType.LAST)
      main_loop.step(termination_timestep)
    break

when I call  timestep = base_env.step(action)  I observe all the timesteps belonging to the env cycling from 1-2-3-4, all the subtaskoptions. Given that I want to train only option 2 (i.e. move_to_grasp_location_learned_policy), I would hope to have a way in which I can expose observations belonging only for option 2.
TLdr: How can I train move_to_grasp_location_learned_policy , especially by spawning multiple envs?
Thank you!

The output of base_env.step() will not change, no matter which SubTaskOption is active at the moment. The thing that changes is what the af.Option sees within the SubTaskOption.
Let's say move_to_grasp_location_learned_policy  is an af.Option. So it will look something like:
class MyPolicy(af.Option):

  def step(timestep) -> np.ndarray:
    flattened_observations = ...  # do some processing to take the observations are merge them into a list of floats
    normalized_action = ...  # feed the floats into your network and get some output.
    unnormalized_action = ...  # scale the network output back to the environment action spec.
    return unnormalized_action

The timestep in MyPolicy.step() will only include the observations you want for training (assuming you set up the move_to_grasp_loc_task correctly). So, there is a difference. The base_env.step() will always return the full list of observations, but your policy will receive the subset you defined.
A bit of "how to train move_to_grasp_location_learned_policy" depends on, well, how you want to train it. At the end of the day though, you will be needing state-action trajectories. The relevant state-action trajectories, in this case, are not in the main run-loop you copied above. They are actually within the move_to_grasp_loc SubTaskOption.
Here are a couple ideas:

You do your learning within MyPolicy, either offline or online or however you want to. You can even make the step() threadsafe so if you decide to use the same policy object across all the threads with your environments, it will work fine.
You can use an af.SubTaskObserver and attach it to the subtask in order to observe the trajectories of Phase 2. Then save those trajectories somewhere and train your policy based on those. Again, the intermediate storage for your trajectories should be threadsafe.

Like I said, the specifics on how to train the policy depend on your approach. But the relevant trajectories are all accessible in the SubTaskOption, not in the main base_env-full_procedure run-loop. Stick your learning stuff within the subtask.
Does that make sense?

Thank you @araju ! that answers my question for a single learnable agent!
For thread reference, I used the af.SubTaskObserver to stack observations and pass this observer object to the main loop, popping observations from it whenever new obs are added to the learnable option.

Glad that worked! Closing the issue.


Having issues with implmentation of crop, with anything other than crop itself such as crop-right or crop-top.

So I implemented Glide, and I'm having an issue with the crop-right or any other crop other than crop. Any ideas what this could be? Crop works just fine oddly enough.
http://www.dramaguru.net/images/titles/humsafar_1.jpeg , http://www.dramaguru.net/images/titles/humsafar_1.jpeg?w=195&h=264&fit=crop-right vs http://www.dramaguru.net/images/titles/humsafar_1.jpeg?w=195&h=264&fit=crop

What version of Glide are you using? This changed between version 0.3 and 1.0.

I figured it out at the end but had a different "issue". Only with small
images I get this. Im on latest version.
http://dramaguru.net/images/titles/humsafar_1.jpeg?w=65&h=64&fit=crop-right
http://dramaguru.net/images/titles/humsafar_1.jpeg?w=265&h=164&fit=crop-right
Seeing jibberish.
On May 2, 2017 5:25 PM, "Jonathan Reinink"<EMAIL_ADDRESS>wrote:

What version of Glide are you using? This changed between version 0.3 and
1.0.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/thephpleague/glide/issues/189#issuecomment-298797270,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AZc3cPSA-ddl0_h5K-dmpw__CLLl96O5ks5r18l1gaJpZM4NJ6hx
.

@pokepud3 It's a mime-type issue, the images are being servers as HTML. You may want to check your server configuration.

@aleemb It's not a code thing, but a server side thing? You think my htaccess or apache config's are off?

@pokepud3 Probably best to start there. Could be related to output buffering settings but hard to say. Have no clue re your code or configuration.

@aleemb I checked the mime type and server config and it seemed fine... whats odd the large thumbs have the correct jpeg mime but the smaller ones switch to html... If you check the links above you'll see.

@pokepud3 Yeah hence my suspicion that it has to do with output buffering or similar configuration. I haven't used Apache in years so not sure but if you have any URL rewrite rules via mod_rewrite I'd also check there.

@aleemb I tried the script on my localhost and it seems like it's not the server afterall, tried it with nothing other than laravel essentials in it and same issue persists. Very odd. Dunno why it's like this since implementation seems to work for all images with a content-length of 4100 of higher. If the content-length is lower it'll revert to a content-type of text/html and show the gibberish.
@reinink Ever see anything like this?  On laravel 4.2.


Any CDN for Theme Settings

For those of us who have our own image hosts it would be cool to use our own? Would this be possible to add to themer?

no


resolving introspection queries

When having an ApolloCompiler with a schema, would it be possible to resolve an introspection query?
The ApolloCompiler has all information needed, no?
Is this is possible, is it a feature we should add to apollo-compiler? Or maybe to another crate using apollo-compiler?

@yanns In case the apollo team plans to push this back to the execution implementation (see Roadmap), I'd be interested in collaborate on that since my in-development python binding library could also make use of this. ☺

@yanns @erikwrede this is indeed scheduled to be implemented along with execution. It's a bit further down the immediate roadmap, and I am not entirely certain of the direction of our design (to the point where we don't even have an issue to track execution yet). I'll keep this issue open for introspection-specific resolving.

@yanns not sure what exactly your needs are but I started working on an executor on top of apollo-rs a few days ago that's capable of resolving introspection queries enough to power a graphiql UI: https://github.com/zackangelo/phoebus/tree/main/examples/http-axum
It's a bit messy and still missing some pretty big areas of the spec, though. Hope it helps.

https://github.com/apollographql/apollo-rs/pull/645 has a draft implementation of introspection and execution.
At first, execution will likely be a private implementation detail of introspection. There is a large design space full of tradeoffs around how an execution engine (provided by a library) can interface with field resolvers (provided by library users), so this would need discussion with actual would-be users before we commit to a public API.

congrats for the first PR!
If you need feedback about some API, I'd be happy to test it with our use-cases.

Yes, feedback as PR comments would be very welcome. Thanks!
tests/doc_example.rs in the PR shows an example of expected usage, to get you started.

I've tried to use it, but I first need to update other dependencies, and I have some issues I've put on discord:

https://discord.com/channels/1022972389463687228/1117957327216201758/1163481102049083483 (can found workaround)
https://discord.com/channels/1022972389463687228/1117957327216201758/1163487327226712235

I don't know if it's interesting for you, or just noise :D

Yes these are relevant but we’re not really on Discord for this project, please file futures on GitHub instead. I’ve created a Discord account to read these and filed https://github.com/apollographql/apollo-rs/issues/702 and https://github.com/apollographql/apollo-rs/issues/703.
As to https://github.com/apollographql/apollo-rs/pull/645, it’s based on apollo-compiler 1.0 so yes you’ll likely need to start by using that version. It also provides an AST which may replace the need to use apollo-parser directly even if you need low-level to manipulation of syntax elements. If you don’t, hopefully apollo_compiler::Schema and apollo_compiler::ExecutableDocument together should cover your needs. All three have Display and .to_string(), replacing the need for apollo-encoder.

Fixed in https://github.com/apollographql/apollo-rs/pull/758


Weigh-based routing for ServiceEntry not working

Bug description
For istio replicated control plane, the weighted load balancing ServiceEntry->Endpoint->weight seems not to be working.
[ ] Docs
[ ] Installation
[X] Networking
[ ] Performance and Scalability
[ ] Extensions and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure
Expected behavior
I expect requests to be routed to the service entries based on the assigned weights.
Steps to reproduce the bug
I have a setup with 3 clusters. I created a namespace called sample and enabled sidecar injection. Then I deployed helloworld-v1 in cluster1 and helloworld-v2 in cluster 3. Furthermore, I deployed sleep in cluster2.
Then I created a ServiceEntry to have access from sleep to the helloworld instances in the remote clusters by:
apiVersion: networking.istio.io/v1beta1
kind: ServiceEntry
metadata:
  name: helloworld-sample
  namespace: sample
spec:
  addresses:
  - <IP_ADDRESS>
  - <IP_ADDRESS>
  endpoints:
  - address: $IP_IGW_CLUSTER1
    ports:
      http1: 15443
    weight: 100
  - address: $IP_IGW_CLUSTER3
    ports:
      http1: 15443
    weight: 0
  hosts:
  - helloworld.sample.global
  location: MESH_INTERNAL
  ports:
  - name: http1
    number: 5000
    protocol: http
  resolution: DNS

When I call: kubectl exec --context=cluster2 -it -n sample -c sleep $(kubectl get pod --context=cluster2 -n sample -l app=sleep -o jsonpath='{.items[0].metadata.name}') -- curl helloworld.sample.global:5000/hello
I still can access to both versions, the one in cluster1 and the one in cluster3, even though the weights indicate to route all requests to the helloworld version in cluster1.
Version (include the output of istioctl version --remote and kubectl version --short and helm version if you used Helm)
istioctl version --remote:
client version: 1.5.10
control plane version: 1.5.10
data plane version: 1.5.10 (4 proxies)
kubectl version --short:
Client Version: v1.14.0
Server Version: v1.17.0
How was Istio installed?
Following https://istio.io/v1.5/docs/setup/install/multicluster/gateways/
Environment where bug was observed (cloud vendor, OS, etc)
Local deployment based on KinD

Load balancing weight should be at least one. Also you should be using STATIC resolution instead of DNS.

Load balancing weight should be at least one. Also you should be using STATIC resolution instead of DNS.

Good to know. So, now I'm using:
`apiVersion: networking.istio.io/v1beta1
kind: ServiceEntry
metadata:
name: helloworld-sample
namespace: sample
spec:
addresses:

<IP_ADDRESS>
<IP_ADDRESS>
endpoints:
address: $IP_IGW_CLUSTER1
ports:
http1: 15443
weight: 1
address: $IP_IGW_CLUSTER3
ports:
http1: 15443
weight: 9
hosts:
helloworld.sample.global
location: MESH_INTERNAL
ports:
name: http1
number: 5000
protocol: http
resolution: STATIC`

However, if I want to make changes to the weights I first need to do the change using DNS as resolution and then apply another change to STATIC. However, if I apply the weight change directly using STATIC. Then I get the following error:
`kubectl exec --context=cluster2 -it -n sample -c sleep $(kubectl get pod --context=cluster2 -n sample -l app=sleep -o jsonpath='{.items[0].metadata.name}') -- curl helloworld.sample.global:5000/hello -v

Trying <IP_ADDRESS>:5000...
Connected to helloworld.sample.global (<IP_ADDRESS>) port 5000 (#0)

GET /hello HTTP/1.1
Host: helloworld.sample.global:5000
User-Agent: curl/7.69.1
Accept: /

Mark bundle as not supporting multiuse
< HTTP/1.1 503 Service Unavailable
< content-length: 91
< content-type: text/plain
< date: Mon, 19 Oct 2020 05:00:20 GMT
< server: envoy
<
Connection #0 to host helloworld.sample.global left intact
upstream connect error or disconnect/reset before headers. reset reason: connection failure`

In this case, the output of the coredns logs is:
│ istio-coredns-plugin 2020-10-19T04:57:41.445726Z    info    DNS query  ;; opcode: QUERY, status: NOERROR, id: 39913                                                                                │
│ istio-coredns-plugin ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0                                                                                │
│ istio-coredns-plugin ;; QUESTION SECTION:                                                                                │
│ istio-coredns-plugin ;helloworld.sample.global.global.    IN     A                                                                                │
│ istio-coredns-plugin 2020-10-19T04:57:41.445789Z    info    Query A record: helloworld.sample.global.global.->{helloworld.sample.global.global. 1 1}                                                                                │
│ istio-coredns-plugin 2020-10-19T04:57:41.445805Z    info    Could not find the service requested                                                                                │
│ istio-coredns-plugin 2020-10-19T04:57:41.445845Z    info    DNS query  ;; opcode: QUERY, status: NOERROR, id: 40187                                                                                │
│ istio-coredns-plugin ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0                                                                                │
│ istio-coredns-plugin ;; QUESTION SECTION:                                                                                │
│ istio-coredns-plugin ;helloworld.sample.global.global.    IN     AAAA                                                                                │
│ istio-coredns-plugin 2020-10-19T04:57:41.445878Z    info    Could not find the service requested                                                                                │
│ istio-coredns-plugin 2020-10-19T04:57:41.446900Z    info    DNS query  ;; opcode: QUERY, status: NOERROR, id: 28996                                                                                │
│ istio-coredns-plugin ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0                                                                                │
│ istio-coredns-plugin ;; QUESTION SECTION:                                                                                │
│ istio-coredns-plugin ;helloworld.sample.global.sample.global.    IN     AAAA                                                                                │
│ istio-coredns-plugin 2020-10-19T04:57:41.447021Z    info    Could not find the service requested                                                                                │
│ istio-coredns-plugin 2020-10-19T04:57:41.447095Z    info    DNS query  ;; opcode: QUERY, status: NOERROR, id: 28652                                                                                │
│ istio-coredns-plugin ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0                                                                                │
│ istio-coredns-plugin ;; QUESTION SECTION:                                                                                │
│ istio-coredns-plugin ;helloworld.sample.global.sample.global.    IN     A                                                                                │
│ istio-coredns-plugin 2020-10-19T04:57:41.447130Z    info    Query A record: helloworld.sample.global.sample.global.->{helloworld.sample.global.sample.global. 1 1}                                                                       │
│ istio-coredns-plugin 2020-10-19T04:57:41.447142Z    info    Could not find the service requested                                                                                │
│ istio-coredns-plugin 2020-10-19T04:57:41.448002Z    info    DNS query  ;; opcode: QUERY, status: NOERROR, id: 17884                                                                                │
│ istio-coredns-plugin ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0                                                                                │
│ istio-coredns-plugin ;; QUESTION SECTION:                                                                                │
│ istio-coredns-plugin ;helloworld.sample.global.    IN     AAAA                                                                                │
│ istio-coredns-plugin 2020-10-19T04:57:41.448040Z    info    Could not find the service requested

If I want to make changes to the weights I first need to do the change using DNS as resolution and then apply the same change using STATIC as resolution; this way it works well. However, if I apply the weight change directly using STATIC resolution, then I get the following error

This does not make sense to me, service entry should have no side effect after deleting. I suspect there is some configuration error. Are you updating the same service entry? Can you get all service entry from sample namespace? Also can you dump proxy configuration before and after applying configuration that makes thing not working? https://github.com/istio/istio/wiki/Troubleshooting-Istio#diagnostics

This does not make sense to me, service entry should have no side effect after deleting. I suspect there is some configuration error.

Are you updating the same service entry?

Yes, to apply the weight change I am updating the already existing service entry, I guess an update on any Istio CRD is a supported functionality. Isn't it?

Can you get all service entry from sample namespace?

kubectl get se -n sample --context cluster2
NAME                   HOSTS                        LOCATION        RESOLUTION   AGE
helloworld-sample-c1   [helloworld.sample.global]   MESH_INTERNAL   STATIC       41h

Can you dump proxy configuration before and after applying configuration that makes thing not working? https://github.com/istio/istio/wiki/Troubleshooting-Istio#diagnostics

See attached files for the sidecar proxy configuration dump of the pod "sleep" before and after the change:
kubectl -n sample --context cluster2 exec sleep-f8cbf5b76-lxmzz -c istio-proxy -- curl 'localhost:15000/config_dump'
sleep_before_config_dump.txt
sleep_after_config_dump.txt


fix: always set origin_shield

what

always set origin_shield

why

fixes problem with aws provider

references

https://github.com/hashicorp/terraform-provider-aws/issues/24359

/terratest


Use lazy loading

meteor_angular2_bank/client/app.routes.ts
angular2 router has option to lazy load component use that
https://angular.io/docs/ts/latest/guide/router.html

i have tried to add lazy loading to my project.  changed code according to lazy loading pattern.  getting error core.umd.js:3257 EXCEPTION: Uncaught (in promise): ReferenceError: System is not defined. i have checked meteor forums ..  its not supported in angular meteor yet. https://forums.meteor.com/t/is-it-possible-to-lazyload-angular2-components-in-meteor/30534


feat(auth) convert boto error's into staxapp errors

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

What is the current behavior? (You can also link to an open issue here)

Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)

Requested changes have been made


Prepare for running scalability test on Jenkins

Change hack/jenkins/e2e.sh so that it support one additional env variable as its input.
Based on its (SCALABILITY) value it will set:

the size of the cluster (# nodes)
the size of the master
pass additional flag to ginkgo runner, which will result in running a different suite of tests

@ixdy @zmerlynn @quinton-hoole

Part of #6753

LGTM

As this is a pretty uncontroversial change, and only affects a new suite of scalability tests that nobody is using yet, I'm going to merge it to prevent delays.


Transactions are preforming an extra round trip

Run transaction starts with a call to BeginTransaction
https://github.com/googleapis/nodejs-firestore/blob/0dcea7f932383883aa8cc5f370b894a8ec99326f/dev/src/index.ts#L619
However, this requires an extra server around trip adding unnecessary latency.
All read operations allow you to create a transaction, so this could be deferred until the first read.
https://github.com/googleapis/googleapis/blob/eba92c8f27ef337c38ee65aecc905497ed9d92ce/google/firestore/v1beta1/firestore.proto#L353
/cc @samtstern @schmidt-sebastian

Thanks for letting us know! We'll address this in one of our upcoming releases.

Closing this due to low impact and limited engineering resources. We can revisit if needed.


Feature Suggest: Google Authenticator

Using google authenticator as a 2 step verification instead of emails and pins
example of some server https://forums.cosmicpe.me/threads/the-new-authentication-system.258/
there's also plenty of libraries to reference off (in PHP), it dose not rely on google API either
only problem would be how to show the code since there's no copy and pasting in MCPE yet and it would make quite a lot of device users difficult and how to generate the QR code and maps if we going that route

Perhaps you could send a mail to them?

sending a mail or PMing via twitter
or allow client to set the secret which in hindsight not it's not a very secure way if they will just set it to 16 X
(min is 16 char length afaik)


Avoid repositioning the buffer after formatting?

As titled, I noticed that when I invoke format-all's command to format the current buffer, the buffer will reposition itself (most likely because there are bits of code 'outside' of the buffer that have been formatted), resulting in an overhead to try to find my cursor position again.
Is there a way for format-all to remember the buffer position and the cursor position and restore that after the buffer is formatted?

I might have found a workaround. But there are some edge cases that behaves weirdly though.
(defun stable/format-all-buffer ()
  "Auto-format whole buffer without repositioning the buffer."
  (interactive)
  (let ((windowstart (window-start)))
    (format-all-buffer)
    (set-window-start (selected-window) windowstart)))

I found a better workaround based on your approach.
I'm sure this will work. The point is to remove and add the hook again.
I hope this approach will help the maintainer fix this bug.

;; remove hook initially assigned when autoload
(remove-hook 'before-save-hook 'format-all--buffer-from-hook t)

;; add hook with -format-all-buffer() again
(add-hook 'before-save-hook '-format-all-buffer))

(defun -format-all-buffer ()
  "format-all-buffer without jumps of cursor"
  (interactive)
  (let ((point (point)) (wstart (window-start)))
    (format-all-buffer)
    (goto-char point)
    (set-window-start (selected-window) wstart)))

Thanks for the snippet!

The point is to remove and add the hook again.

Can you kindly explain this part a bit? And why it might fix the edge cases I'm experiencing?

Nothing special. The problem was that your solution didn't work as well.
I assumed that there was something wrong with the hook. (Obviously, no other reasons to come up with)
And I tried replacing the hook (`remove' and 'add'), it worked well.
I'm suspicious of conflicts (if any) around the hook.
I'm not an Elisper like you :)
Please take a closer look based on this assumption.

I'm encountering this issue as well. My current solution based on the snipped above (probably very bad because i'm new to emacs/spacemacs):
  ;; Set up 'format-all' to format on save
  (use-package format-all
    :init
    (add-hook 'solidity-mode-hook
              (lambda ()
                (format-all-ensure-formatter)
                (add-hook
                 'before-save-hook
                 `format-all-buffer--no-bufferjump)))
    )

  ;; Custom 'format' function with fixed buffer jumping
  (defun format-all-buffer--no-bufferjump ()
    "format-all-buffer without jumps of cursor"
    (interactive)
    (let ((point (point)) (wstart (window-start)))
      (format-all-buffer)
      (goto-char point)
      (set-window-start (selected-window) wstart)))

Are there any plans to fix this bug? Thanks.

i have the problem . but above solution not grace.  the author why not fix it. the problem very suffer pain

Sorry about the long delay. Does the above commit improve things?

Sorry about the long delay. Does the above commit improve things?

ye fixed it , but curror stay old position, why not keep stay old code line position?do u know my mean? do u have some choose ,people can config choose cursor pository mode

the effect like prettier-js format html. after format, the curror return old code line star position.like below:
https://user-images.githubusercontent.com/1551382/206868929-715c252f-70c3-44e3-a183-1bbc4b53b9a5.mov

May be we can put a invisible text property at the cursor point before format, after format, move the cursor to the new position with the text property.

Sorry, I'm very busy with other stuff and don't have time to look into this.
If you can send pull requests which improve some aspect of the problem without breaking anything, I'll merge them.

Bump because I am having the same problem


Not work EdgeSidebar with SSR

Example code:
 <Root scheme={preset}>
      <EdgeSidebar anchor={'left'}>
        {'content'}
      </EdgeSidebar>
    </Root>

@AkioSarkiz Depending on stack/framework you use you can fix this by importing EdgeSidebar in SSR disabled mode.
Eg. in Next.js you can import this component like this:
import dynamic from 'next/dynamic'
import { Root, Header, ..... } from '@mui-treasury/layout'

const EdgeSidebar = dynamic(() => import('@mui-treasury/layout').then(mod => mod.EdgeSidebar), { ssr: false })

Then you can use EdgeSidebar like regular React component in your layout.
Not sure if there is a better way to fix this. Probably there is something wrong in lib and @siriwatknp don't have time to fix this. Sometimes these kind of hacks are the only way to proceed with projects.


state of bintray?

i'm super new to all of this ie. using CI to setup the auto bottling for homebrew packages, and started working through your guide yesterday, and came across this blog post today?
https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/
does mean an alternative bintray will have to be used for hosting the .tar.gz bottles when install a homebrew package from a bottle?

@ipatch I should archive this repo as there is a much better and easier way to setup tap/bottle workflow.
Homebrew has greatly improved support for custom taps' bottles see:

Homebrew tap with bottles uploaded to GitHub Releases

osx-cross/avr now makes full use of this with Github Actions, you can look into .github/workflows for details.

thank you. will look into it, and thanks for sharing. 🙏


no hover while using tab button in the navbar.

Describe the bug
there is no hover while using the tab button.
for better accessibility.
To Reproduce

Go to https://ccsearch.creativecommons.org/
Click on 'tab key'
See error

Expected behavior
there should be hover like when you place the cursor
Screenshots

Additional context
if really its a bug i would like to take this up.

i think we can also add hover for the elements under collection in browse by collection page.what are your views @akmadian

@coderbabu10 We already have a focus property using Tab Key, and thats more than enough for screen readers and also the nav bar has hover property already and I guess again adding Hover inside hover is a bit confusing and not suitable for responsiveness. What are your views @akmadian

i don't think it is enough having just a dotted line box, we can add same hover like while using cursor i think it will be much better for the user.

@coderbabu10 see the comments we made in https://github.com/creativecommons/cccatalog-frontend/issues/737
This appears to all be one issue, browser-specific, and you're welcome to move forward with working on it, but we'll keep all of the work in https://github.com/creativecommons/cccatalog-frontend/issues/737
Closing this issue.


[gardening] Clean up many String computed vars

@swift-ci please test

Build failed
Swift Test OS X Platform
Git Sha - 84e3a1e4505748e4e9b99ef49be889257314fc84

Build failed
Swift Test Linux Platform
Git Sha - 84e3a1e4505748e4e9b99ef49be889257314fc84

@swift-ci please test

@swift-ci please benchmark

Build failed
Swift Test OS X Platform
Git Sha - 84e3a1e4505748e4e9b99ef49be889257314fc84

@swift-ci please test

@swift-ci please benchmark

Build failed
Swift Test OS X Platform
Git Sha - 416b1c7b1ce7f818c60c36e4c11224b6f360b4f4

Build failed
Swift Test Linux Platform
Git Sha - 416b1c7b1ce7f818c60c36e4c11224b6f360b4f4

Performance: -O

TEST
OLD
NEW
DELTA
RATIO

Improvement

EqualStringSubstring
42
38
-9.5%
1.11x (?)

EqualSubstringString
42
38
-9.5%
1.11x

LessSubstringSubstring
43
39
-9.3%
1.10x

EqualSubstringSubstring
41
38
-7.3%
1.08x (?)

EqualSubstringSubstringGenericEquatable
41
38
-7.3%
1.08x (?)

LessSubstringSubstringGenericComparable
42
39
-7.1%
1.08x

Performance: -Osize

TEST
OLD
NEW
DELTA
RATIO

Improvement

LessSubstringSubstring
43
39
-9.3%
1.10x (?)

EqualSubstringString
43
39
-9.3%
1.10x (?)

LessSubstringSubstringGenericComparable
43
39
-9.3%
1.10x (?)

EqualSubstringSubstring
42
39
-7.1%
1.08x (?)

EqualStringSubstring
42
39
-7.1%
1.08x (?)

Performance: -Onone

TEST
OLD
NEW
DELTA
RATIO

Improvement

EqualSubstringSubstringGenericEquatable
48
44
-8.3%
1.09x (?)

LessSubstringSubstringGenericComparable
48
44
-8.3%
1.09x

How to read the data
The tables contain differences in performance which are larger than 8% and
differences in code size which are larger than 1%.
If you see any unexpected regressions, you should consider fixing the
regressions before you merge the PR.
Noise: Sometimes the performance results (not code size!) contain false
alarms. Unexpected regressions which are marked with '(?)' are probably noise.
If you see regressions which you cannot explain you can try to run the
benchmarks again. If regressions still show up, please consult with the
performance team (@eeckstein).

Hardware Overview
  Model Name: Mac Pro
  Model Identifier: MacPro6,1
  Processor Name: 12-Core Intel Xeon E5
  Processor Speed: 2.7 GHz
  Number of Processors: 1
  Total Number of Cores: 12
  L2 Cache (per Core): 256 KB
  L3 Cache: 30 MB
  Memory: 64 GB

@swift-ci please test

Build failed
Swift Test OS X Platform
Git Sha - c71343371adc259caa90baaa0ea7a590b9a338f5

Build failed
Swift Test OS X Platform
Git Sha - c71343371adc259caa90baaa0ea7a590b9a338f5

Build failed
Swift Test Linux Platform
Git Sha - c71343371adc259caa90baaa0ea7a590b9a338f5


Heading needs to be updated

The heading "Hpw to run this sample" has a typo. Should be "how" now "hpw"

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

ID: c3c1cb6f-a374-79b1-e8b6-8f1f9a868245
Version Independent ID: 9789741c-9d55-fdf8-1704-209010b16ecf
Content: Web API Query Data Sample (C#) (Common Data Service) - PowerApps
Content Source: powerapps-docs/developer/common-data-service/webapi/samples/query-data-csharp.md
Service: powerapps
GitHub Login: @brandonsimons
Microsoft Alias: jdaly

Didn't realize this was hosted on Github. I created a PR:
#424

@pard68 Thanks for correcting the typo. PR #424 has been merged.


Added link to key vault tutorial

Docs Build status updates of commit 4347665:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs-conceptual/azps-8.2.0/toc.yml
:white_check_mark:Succeeded
View (azps-8.2.0)

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


[2020 mnt] third-party components were added to licence file

Description
Please include a summary of the change. For large or complex changes please include enough information to introduce your change and explain motivation for it.
Changes proposed in this pull request:

bzip2

zlib

Intel® Integrated Performance Primitives (Intel® IPP) Library

Intel® Math Kernel Library (Intel® MKL)

Intel® Threading Building Blocks (Intel® TBB)

prism

make test

restarted checks - http://intel-ci.intel.com/ea4dbe4a-0380-f1f8-9745-8cdcd4b723a1


how to use weight init？

Does anyone know how to use weight init? My error message is: AttributeError: 'NoneType' object has no attribute 'data'

This error typically occurs when you attempt to access an attribute of an object that hasn’t been properly initialized or defined. You could try this:
class Classifier(nn.Module):
    def __init__(self):
        super(Classifier, self).__init__()
        ...

        # Initialize weights
        self._initialize_weights()

    def _initialize_weights(self):
        for m in self.modules():
            if isinstance(m, nn.Conv2d):
                ...
            elif isinstance(m, nn.BatchNorm2d):
                ...
            elif isinstance(m, nn.Linear):
                ...


First-Class support for @stream/@defer in strawberry

First-Class support for @stream/@defer in strawberry
This issue is going to collect all necessary steps for an awesome stream and defer devX in Strawberry 🍓
First steps collected today together in discovery session with @patrick91 @bellini666
ToDos for an initial support:

[ ] Add support for [async/sync] generators in return types
[ ] Make sure GraphQLDeferDirective, GraphQLStreamDirective, are in the GQL-Core schema
Flag in Schema(query=Query, config={enable_stream_defer: False}) - default true
[ ] Add incremental delivery support to all the views
[ ] FastAPI integration -> Maybe in the Async Base View?
[ ] Explore Sync View Integration

long term goals
incomplete list of problems / design improvement potential of the current raw implementation
Problem: streaming / n+1  -> first-level dataloaders are no longer working as every instance is resolved 1:1
Possible solutions

dig deeper into https://github.com/robrichard/defer-stream-wg/discussions/40
custom query execution plan engine
Add @streamable directive to schema fields automatically if field is streamable, including custom validation rule

Some playground code: https://gist.github.com/erikwrede/993e1fc174ee75b11c491210e4a9136b

Funding

You can sponsor this specific effort via a Polar.sh pledge below
We receive the pledge once the issue is completed & verified

Hey @erikwrede what's the latest updates for this?

@owen-zora this will probably be blocked on GraphQL core (unless we are ok with people using the alpha release)
and this PR #3076 which has some building blocks for adding support for incremental delivery

Got it, thanks! Will we be able to merge this PR as soon as the GraphQL core is unblocked?

Got it, thanks! Will we be able to merge this PR as soon as the GraphQL core is unblocked?

Not sure, when I tried implementing it was quite a bit of work (because we need to adapt our integrations and our execution code to support incremental responses)
Do you have a use case for this? ☺

@patrick91 , yes! We are doing a lazy backfill for video processing. E.g. when a user requests a video in a graphql field, if we haven't processed this video yet, we will need to trigger a job to process the video then give the response back to the client. Without @defer, it might take up to 20 seconds to give all response back to the client. We are currently only able to run periodical polling. The @defer will help us a lot!

@owen-zora thanks for the context, I'll see if I can merge the PR for adding http subscriptions (which I'm pretty sure will help with incremental delivery too)
Not sure when we can get to this issue next (unless you want to sponsor some dedicated time), I'm trying to work on older issues at the moment, since I've been pretty busy on other stuff :D

Got it, how can I sponsor some time for this?

Any updates on this?


QueryableByName not working with string fields

Versions

Rust: 1.34.2
Diesel: 1.4.2
Database: sqlite3
Operating System  ArchLinux

Feature Flags

diesel: sqlite

Problem Description
QueryableByName doesn't work for structs that contain strings and which are not annotated with #[table_name].  The compile error indicates that SqlQuery doesn't implement LoadQuery in that use case.
What are you trying to accomplish?
I'm trying to run a complex SQL query that returns some custom columns not related to any predefined table, including some strings.  Then I'm trying to execute it with sql_query() and get_result().
I made a crate to demonstrate:  See https://github.com/mikedilger/demoissue
It compiles fine if I take the string field out.
What is the expected output?
Expected it would compile.
What is the actual output?
  Compiling demoissue v0.1.0 (/tmp/demoissue)
error[E0277]: the trait bound `diesel::query_builder::sql_query::UncheckedBind<diesel::query_builder::SqlQuery, i32, diesel::sql_types::Integer>: diesel::query_dsl::LoadQuery<_, Ages>` is not satisfied
  --> src/main.rs:37:10
   |
37 |         .get_result::<Ages>(conn)
   |          ^^^^^^^^^^ the trait `diesel::query_dsl::LoadQuery<_, Ages>` is not implemented for `diesel::query_builder::sql_query::UncheckedBind<diesel::query_builder::SqlQuery, i32, diesel::sql_types::Integer>`
   |
   = help: the following implementations were found:
             <diesel::query_builder::sql_query::UncheckedBind<Query, Value, ST> as diesel::query_dsl::LoadQuery<Conn, T>>

error: aborting due to previous error

For more information about this error, try `rustc --explain E0277`.
error: Could not compile `demoissue`.

To learn more, run the command again with --verbose.

Are you seeing any additional errors?
no
Steps to reproduce
$ git clone https://github.com/mikedilger/demoissue
$ cd demoissue
$ cargo build
Checklist

[X] I have already looked over the issue tracker for similar issues.
[X] This issue can be reproduced on Rust's stable channel. (Your issue will be
closed if this is not the case)

This issue here is that a sql type is never a rust type like String. If you change the SqlType of somestuff to Text (the same type you used in your table! definition) this just works fine.

Thank you.


Stuck when used in parallel

If i make two calls in parallel the last call always gets stuck forever.
Working
cos.listBuckets((err, data) => {     console.log('l');     cos.listBuckets((err, data) => {         console.log('l');     }) })
Not working
cos.listBuckets((err, data) => {     console.log('l'); }) cos.listBuckets((err, data) => {     console.log('l'); })
Can somebody confirm this?

Can confirm. It was caused by IAM authentication token requests getting coalesced so that only one was made, except that callbacks weren't being called afterwards properly.
It's been fixed in release 1.1.0. You may need to npm install<EMAIL_ADDRESS>if your package.json is set to not go up minor releases.


[BLD-770] pmm-client upgrade fails on wheezy

 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.


GetJobState not working

Contact Details
No response
Version
8.x (develop, pre-release)
On which operating system(s) are you experiencing the issue?
Windows
Using which broker(s) did you encounter the issue?
In-Memory
What are the steps required to reproduce the issue?
1.Clone the repository from https://github.com/MassTransit/Sample-JobConsumers
2.Change PostgreSQL to SQLServer
3.Run the service
4.Call POST /ConvertVideo/filename.ext and copy the jobId
5.Call GET /ConvertVideo/jobId

What is the expected behavior?
The endpoint should return the state of the job
What actually happened?
I get a 404 error
Related log output, including any exceptions
I tried to use GetResponse<JobState> instead of GetJobState but same result.

Link to repository that demonstrates/reproduces the issue
No response

Did you review the logs? What errors do you see? Did you recreate the migrations for SQL server instead of Postgres for the job saga storage?


[desktop_webview_window][Linux] Webview missing required files

Note: I did run 'sudo apt install webkit2gtk-4.0' but the package could not be resolved so nothing got installed

I did run sudo apt install webkit2gtk-4.0 but the package could not be resolved so nothing got installed

So here is an error: A required package was not found.  looks OK

I did 'sudo apt-get install libwebkit2gtk-4.0-dev' instead as suggested [here](sudo apt-get install libwebkit2gtk-4.0-dev), but that didn't do anything

@boyan01 ...

same

is there any update, i am getting same error.