Request for ps4 emulation for a ps4 controller

Hi, i'm using a ps4 controller in combination with PS now. the problem is that it only supports USB. this means that when someone connects with bluetooth it is only seen as a generic wireless controller. this results in that the controller not being supported and this means i can't use the ps4 controller with ps now as wireless. Could you perhaps make a profile that makes windows belief the "generic wireless controller"  is a ps4 controller?
much appreciated,
thalion987

Try the following fork, it's in active development: https://github.com/Ryochan7/DS4Windows/


Fix stock of gov't debt in initial period

Currently,  OG-USA fixes the debt/GDP ratio in the initial period to a value calibrated to the data.  However, GDP in that period varies across the baseline and reform, resulting in different initial stocks of debt (and subsequently capital) between the two simulations.
This issue is to suggest that the amount of debt be fixed between the baseline and reform runs.  This would happen by calibrating the D/Y ratio for the baseline run and then using the D[0] from the baseline run in the solution to the reform simulation.

This was addressed in PR #361


Create themes

As @tenleftfingers pointed out, there should be a way to theme stuff aka provide smaller colour palettes named after a popular tv series and movies.
what needs to happen:

color palettes be defined
appropriate lcars-COLONAME-SHIPNAME-bg classes need to be created

I would like to propose the idea of having a more semantic design (which, in-universe, is an obvious implied design principal, but in practice, I realize they just needed it to seem/feel that way and were not always consistent in the set building and decoration). Have a more abstract set of conceptually-named palette slots such as:

Primary (Element/Function)
Secondary
Tertiary
Information
Caution/Warning
Alert
Meta

Or perhaps even in an implied matrix of concept classes, each intersection/combination mapping to a color. Other UI concepts could be expressed as well (although some of these would be expressed also, or instead, in geometry and layout) : Input vs Output, sequence requirements/spec, Enabled vs Disabled, New vs Old, Target vs Actual
Then each "theme" could be a different css file, like:

css/lcars-tng-enterprise.css
css/lcars-voy-voyager.css
css/lcars-ds9-defiant.css

Which would handle mapping the specific colors to each of the conceptual classes above. This perhaps would have an added bonus of easily using diff tools to summarize and track differences between themes.

Then each "theme" could be a different css file, like:
* css/lcars-tng-enterprise.css
* css/lcars-voy-voyager.css
* css/lcars-ds9-defiant.css
Which would handle mapping the specific colors to each of the conceptual classes above.

One would actually need more than one stylesheet for some series. Especially TNG develops LCARS a lot and there are also changes within DS9 and Voyager.
For a start, much of TNG uses rather sober colours with husk for primary elements, with danub, periwinkle and blue-bell. But there are also lighter settings with atomic-tangerine or neon-carrot and some hopbush. LCARS tend to get bluer in later TNG with the yellow and orange colours as highlights.
DS9, however, introduces some really colourful LCARS setups with all combinations of red, pink and blue – while the Defiant sports a more blue/yellow theme akin to Voyager.

Yeah, basically one stylesheet needs one per season. I think there are 2
options.
First one is to create classes like lcars-tng-s1-light-blue.
Or create semantic classes like lcars-light-blue and then have different
options by important a stylesheet like lcars_tng_s01_colors.css which
defines them.
The first approach allows to mix the schemes, the second one to interchange
them easily. What do you guys think is more important?
Am Mo., 19. Okt. 2020 um 00:51 Uhr schrieb dthv<EMAIL_ADDRESS>
Then each "theme" could be a different css file, like:

css/lcars-tng-enterprise.css
css/lcars-voy-voyager.css
css/lcars-ds9-defiant.css

Which would handle mapping the specific colors to each of the conceptual
classes above.
One would actually need more than one stylesheet for some series.
Especially TNG develops LCARS a lot and there are also changes within DS9
and Voyager.
For a start, much of TNG uses rather sober colours with husk for
primary elements, with danub, periwinkle and blue-bell. But there
are also lighter settings with atomic-tangerine or neon-carrot and
some hopbush. LCARS tend to get bluer in later TNG with the yellow and
orange colours as highlights.
DS9, however, introduces some really colourful LCARS setups with all
combinations of red, pink and blue – while the Defiant sports a more
blue/yellow theme akin to Voyager.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/joernweissenborn/lcars/issues/17#issuecomment-711435817,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AARG7QMUPS6ZULDKZ7RSO4LSLNWPHANCNFSM4JINXG2Q
.

I think the method proposed by @jrwarwick would be best, as it is semantic. Just classes like lcars-primary-color, lcars-secondary-bg and so on that are defined with different stylesheets like, indeed lcars-tng-1-color.css. This stylesheet would then define the colours.
It would also be cool to make effects more or less configureable. Either by hardcoding 'partners' to each color or by introducing another class (lcars-tertiary-effect-bg), the latter being preferred.

Ok, thats ok with me, if @jwarwick is ok.
I suggest open a PR and implement the solution @dthv :D
Am Mo., 19. Okt. 2020 um 21:34 Uhr schrieb dthv<EMAIL_ADDRESS>
I think the method proposed by @jrwarwick https://github.com/jrwarwick
would be best, as it is semantic. Just classes like lcars-primary-color,
lcars-secondary-bg and so on that are defined with different stylesheets
like, indeed lcars-tng-1-color.css. This stylesheet would then define the
colours.
It would also be cool to make effects more or less configureable. Either
by hardcoding 'partners' to each color or by introducing another class (
lcars-tertiary-effect-bg), the latter being preferred.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/joernweissenborn/lcars/issues/17#issuecomment-712395518,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AARG7QL6C3DHHPQXLQVZKELSLSICRANCNFSM4JINXG2Q
.

Sadly, I do not have a glimpse of a clue on how to do that with stylus. Sorry. :-/

If you know CSS , then Stylus is easy. Just see it as CSS in a Python like
syntax. Then you run a program (in this case gulp) which translates stylus
files to CSS, It's really worth learning if you do web stuff.
Am Mo., 19. Okt. 2020 um 22:16 Uhr schrieb dthv<EMAIL_ADDRESS>
Sadly, I do not have a glimpse of a clue on how to do that with stylus.
Sorry. :-/
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/joernweissenborn/lcars/issues/17#issuecomment-712416895,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AARG7QJMNCFHFY5HA4KYBALSLSNAXANCNFSM4JINXG2Q
.

just look here: https://stylus-lang.com/
Am Mo., 19. Okt. 2020 um 22:42 Uhr schrieb Jörn Weißenborn <
<EMAIL_ADDRESS>
If you know CSS , then Stylus is easy. Just see it as CSS in a Python like
syntax. Then you run a program (in this case gulp) which translates stylus
files to CSS, It's really worth learning if you do web stuff.
Am Mo., 19. Okt. 2020 um 22:16 Uhr schrieb dthv<EMAIL_ADDRESS>
:

Sadly, I do not have a glimpse of a clue on how to do that with stylus.
Sorry. :-/
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/joernweissenborn/lcars/issues/17#issuecomment-712416895,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AARG7QJMNCFHFY5HA4KYBALSLSNAXANCNFSM4JINXG2Q
.

Yes, I definitely prefer the use of semantic css class names (more or less as in my prior post), and see that it makes sense to have the schemes (and thus the final compiled css files) named per series and season.
@dthv would you describe a little more your suggestion for the configureable effects? Do you mean the color briefly displayed by buttons while they are in a pressed/active state? And as far as configureability, the pairings would be defined differently just for each scheme, right?

It's really worth learning if you do web stuff.

I don't. But I'm willing to look into it. Please just don't expect quick results. There won't be. ;-)

Do you mean the color briefly displayed by buttons while they are in a pressed/active state? And as far as configureability, the pairings would be defined differently just for each scheme, right?

Yes, and yes. Yet, while we're at it, I'd like to introduce highlight as another, say, state, leading to the following list of possible states:

standard being how the element is normally displayed
highlight for when the element shall drag attention on itself
active to react on a user's input (e.g. pressing a button)

An implementation of this would involve JS to change classes etc. on highlight, but I think it's doable in priciple.
My take on it would be to use only the semantics from @jrwarwick above and then let the stylesheet define:

what the standard colour of a primary/secondary/etc. element would be
how such an element looks like when the system highlights it for ease of recognition (e.g. a send button highlighting when a user is filling in a form)
the element's colour when it's pressed

On that note: Is it possible to change the entire stylesheet on a moments notice to introduce an Enterprise E Red Alert effect, changing the whole appearance of the LCARS entirely (and paint it red, pun intended)?

Hmm, I personally like the fact that for most things LCARS is a stylesheet
only. When you add JS, like it was done with audio, please make sure it is
opt-in and people can continue to use it as just a stylesheet.
Am Di., 20. Okt. 2020 um 19:35 Uhr schrieb dthv<EMAIL_ADDRESS>
It's really worth learning if you do web stuff.
I don't. But I'm willing to look into it. Please just don't expect quick
results. There won't be. ;-)
Do you mean the color briefly displayed by buttons while they are in a
pressed/active state? And as far as configureability, the pairings would be
defined differently just for each scheme, right?
Yes, and yes. Yet, while we're at it, I'd like to introduce highlight
as another, say, state, leading to the following list of possible states:

standard being how the element is normally displayed
highlight for when the element shall drag attention on itself
active to react on a user's input (e.g. pressing a button)

An implementation of this would involve JS to change classes etc. on
highlight, but I think it's doable in priciple.
My take on it would be to use only the semantics from @jrwarwick
https://github.com/jrwarwick above and then let the stylesheet define:

what the standard colour of a primary/secondary/etc. element would
be
how such an element looks like when the system highlights it for
ease of recognition (e.g. a send button highlighting when a user is
filling in a form)
the element's colour when it's pressed

On that note: Is it possible to change the entire stylesheet on a moments
notice to introduce an Enterprise E Red Alert effect, changing the whole
appearance of the LCARS entirely (and paint it red, pun intended)?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/joernweissenborn/lcars/issues/17#issuecomment-713024753,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AARG7QM5OXEPMRCF35JE3HDSLXC6ZANCNFSM4JINXG2Q
.

Definetly. Nobody likes JS, anyway. ;)

@dthv I think I have you (at least partially) covered for that last request for Red Alert effect:
https://github.com/jrwarwick/lcars/tree/add-module-mode
As Joern said, this would strictly be an optional module, disabled by default. Implementation so far requires a modern enough browser to handle css filters. It worked pretty well on chrome on desktop and android for me. Not flawless, though. Try it out, if you like, and let me know if you have suggestions to improve. There is a RED ALERT button in the buttons demo section to toggle "red alert" "mode".

VERY nice! I'd love to see that implemented (again, as optional and disabled by default). Worked good on Firefox as well (not flawless, though, as within red alert mode there appeared a red box downmost of the page).
Still, even in red-alert mode one should be able to see which element is primary/secondary/tertiary function and so on. One would need different hues of red (and white/grey, cf Nemesis). :slightly_smiling_face:

Here is a more proper CSS-only red alert: https://htmlpreview.github.io/?https://github.com/jrwarwick/lcars/blob/add/red-alert-css/lcars/index.html
To activate, click the snippet of code at the bottom of the Colors section, or click the red-alert class name in the SVG feature guidance. It doesn't have the bugs you mentioned, allows for more control over accents and grades of red, and straight greys.
Works strictly on red-alert class on the body tag (and also "disable/stand-down" is just removing the class).

When I click said links in your preview, the page reloads and shows True. Using Firefox 83.0 (64bit) on Linux.

I just took a look and got a dffierent set of errors, but it looks like that htmlpreivew feature has reached some resource consumption rate limits :(  I suppose that will eventually reset and the page load will work. Otherwise you will have to just download and serve locally. Perhaps someday we can set up our own preview tool or maybe github actions can help with this.


Fix typos and optimize images

What does this do / why do we need it?
Fix typos in code and docs. Optimize images with ImageOptim and lint Markdown with Prettier

The CLA is signed now.

whew, that's quite a pile! thanks!


VSP not able to change speed

Just installed and it detected my equipment ok.  I am able to turn the pump on and off without issue.  When I press the High, med, Low speed settings Home Assistant shows the speed change but on the next polling it reverts to whatever the speed setting is currently set to.    The pump starts up  and then the polling picks up the previous speed setting.
I did test Temperature and my Chlorinator and the settings and they are able to adjust the value of temperature or the ammount of Chlorination happening.  It just appears to be the pump speed adjustment.
I have a VSP model: Tristar VS 900 in case that makes a difference.  If you need logs or other information I am happy to contribute just let me know where I can get the details you need.

Ok so it seems that this isn't an issue.  It suddenly started working.   The only reason I can think of as to why it didn't function earlier is that I had the web portal open trying to view the updates but it was overriding the pump speed by leaving it open.   The Android app doesn't seem to cause this issue, only the omnilogic portal seems to do this.

See above


duplicate content

This page is duplicated, one of painpoint I found with azure doc is, there a lot of duplicated content, and new user feel like the amount of doucment to read is huge. please try to keep single article/section.

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

ID: 542c2bdc-5868-71d5-1d1a-a2c6d61744b0
Version Independent ID: 1bba15a0-227a-8137-a023-90b8df19881b
Content: Create a Python function using Visual Studio Code - Azure Functions
Content Source: articles/azure-functions/create-first-function-vs-code-python.md
Service: azure-functions
GitHub Login: @ggailey777
Microsoft Alias: glenga

@xiongyu0523 Thanks for the feedback! We are currently investigating and will update you shortly.

@xiongyu0523 Thanks again for the feedback and reaching out here! Could you please specify the duplicate content in the mentioned document to help you better on this.

@xiongyu0523 Since we have not heard back from you we will now proceed to close this thread. If there are further questions regarding this matter, please let us know. We will gladly reopen the issue and continue the discussion.


Add blog post about recording seccomp profiles in edge scenarios

PTAL @jhrozek @JAORMX @pjbgf @ccojocar
Targeted for April 6.

@kubernetes/sig-docs-blog-owners would a release date this week work for us?

/lgtm
Awesome stuff @saschagrunert! :clap:

Hey, we didn't get round to assigning a publication date. Would mid-May work OK for this?

@sftim sure, which date exactly? I’m happy with anything.

Thanks.
/lgtm
/approve


Call prepare to reconfig method before starting new server instance

at least on Windows

related to the #868

core/pull-requests/1226
fixed along with #868

no need to test it separately from #868


Update fields.md

Fix a code block under the "VSCode and Pyright users" section
Trivial change to the documentation
Selected Reviewer: @Kludex

please review

What's the issue for this PR?

@etrotta What's the issue for this PR?
I do remember something about this...

I was hoping it would be just a trivial change to the documentation so did not open one, but from that section of the documentation it mentions https://github.com/pydantic/pydantic/issues/5893

this conflicts with main since #7322 was merged. please update.


List Visual Block

List Block
Define a new block in convoworks with name List Block which will make it easier to work with lists on Amazon Alexa, Google Assistant, Facebook Messenger and Viber.
Block Properties itself:

list title  -> displays the title of the list
list template -> offers selection between carousel view and list view if possible
items -> this is the object which contains the contents of the list items
offset ->
limit ->user defined limit which can be overridden by platform upper limit
list item name -> under which name to store list item name
list item title -> title of the item which is in the list
list item description -> description of the item which is in the list
list item image url -> link to the image of an item in the list
list item image text -> accessibility text of the image of an item in the list (Required if you want to display the image!)

Block Containers:

Read Phase -> display the list itself and support is added for other convoworks responses such as text response, set parameter, if and so on
On No Screen Supported -> will be executed instead if the device has no support for a screen
On List Item Selected -> will be executed when an item of the list was selected
Additional Processors -> will be executed of another things of other processors are matched

Additional specifications:

Define new request interfaces IConvoListRequest which will make it easier to get values from those requests from each platform and implement them in each PlatformRequest
Define new response interfaces IConvoListResponse which will make it easier to define the final response for each platform and implement them in each PlatformResponse

Please also refer to the Dummy representation of the List Block.
Dummy representation of the List Block:

Here is an quick overview of the interface infrastructure for the List Visual Element.
IConvoListRequest makes it easier to detect any selected list item after a list response was sent.
interface IConvoListRequest extends IConvoRequest
{
    /**
     * @return int
     */
    public function getSelectedItemIndex() : int;
}

IConvoListResponse makes it easier to declare an list response.
interface IConvoListResponse extends IConvoResponse
{
    public function getListResponse(IVisualList $listDefinition) : array;
}

IVisualList is used in IConvoListResponse ->getListResponse(IVisualList $listDefinition)  list response. This definition makes it clearer how the ListResponse should be formed.
interface IVisualList {
    public function getListTitle() : string;
    public function getListType() : string;
    public function getListItems() : array;
}

IVisualItem is part of ListItems in IVisualList.
interface IVisualItem
{
    public function getTitle() : string;
    public function getSubtitle() : string;
    public function getDescription() : string;
    public function getImageURL() : string;
    public function getImageText() : string;
}


doesn't work with custom fastify-multipart

buildRouter already setup it's own fastify-multipart, so i can't do it again on my own, because it throws an error:
FastifyError [Error]: The decorator 'multipartErrors' has already been added!
that's alright, but in that way i can' pass my custom params. my solution is to add a param disableMultipart or something like that

+1 same problem. If I try to add code like this
fastify.register(multipart);

await AdminJSFastify.buildRouter(
	admin,
	fastify,
)

I will have error:
FastifyError [FST_ERR_DEC_ALREADY_PRESENT]: The decorator 'multipartErrors' has already been added!
but after disabling fastify.register(multipart); all is good

One of possible hack-solution if you really need adminjs is disabling your own multipart and using multipart in adminjs.
Because in this line of buildRouter func is using multipart plugin like:
https://github.com/SoftwareBrothers/adminjs-fastify/blob/04d94160fb05add1a30ab4e00a0030deee3555fe/src/buildRouter.ts#L38
What you need to know:

You can't use your own options for multipart
By default is only attach Fields To Body: true
Default limits for file uploads is (from  fastify-multipart documentation)

fastify.register(require('@fastify/multipart'), {
  limits: {
    field Name Size: 100, // Max field name size in bytes
    field Size: 100,     // Max field value size in bytes
    fields: 10,         // Max number of non-file fields
    file Size: 1000000,  // For multipart forms, the max file size in bytes
    files: 1,           // Max number of file fields
    header Pairs: 2000,  // Max number of header key=>value pairs
    parts: 1000         // For multipart forms, the max number of parts (fields + files)
  }
});

For fixing the bug need something as issue-starter says disableMultipart option. Or extra-check of existing multipart plugin in fastify[Symbol.for('registered-plugin')] and set disablingMultipart automatically underhood

+1 same problem. Is there any update on this issue?

If anyone else is running into this problem, you can work around it by registering adminjs as part of a different fastify scope:
const fastifyApp = fastify({})

fastifyApp.register(async (server) => {
  // Register routes here with their own multipart handlers
})

fastifyApp.register(async (server) => {
        const admin = new AdminJS({
          databases: [],
          rootPath: '/admin'
        })

        // Using the server instance received in the callback is important!
        await AdminJSFastify.buildRouter(admin, server)
})

// Start fastify app


FIX: Retain newlines in corrected LTA files

To sketch out a test, you could probably just create a temporary directory with >=255 characters in the path, create a trivial NIfTI image, and use lta_convert to create an identity LTA with too-long filenames. Then you should be able to reproduce the segfault with mri_vol2vol, run a stub interface that uses this mixin to simply copy (and implicitly fix) the bad LTA file, and then successfully run mri_vol2vol with the result.

Um sure I can try, what code exactly am I trying to replace? Do you mean try to catch the exception here https://github.com/poldracklab/niworkflows/blob/e77e1ab0b01fc6f563d970314e1924ca83c8d81f/niworkflows/interfaces/registration.py#L235 maybe? Not sure exactly what you're saying.

So the (my) idea is:

Strip this block off of _post_run_hook() to a new function:

https://github.com/poldracklab/niworkflows/blob/65f70c5dfbcce6f6f5b8624895917e58f341ea66/niworkflows/interfaces/freesurfer.py#L203-L220

Add two LTA files to the project (one with a short filename and one with a long filename)

Write doctests for this new functions checking the two LTA files. The one with a short filename should remain untouched.


Loader Idea: Linear

https://linear.app/

I'm working on it

This issue request been done https://llamahub.ai/l/linear


Kubernetes pr

@leseb @elsonrodriguez  @hunter
I finally found the time on the weekend to rebase my branch to master and then adapt it to the new project structure. @leseb I hope that I got the new structure right, can you review this?
The current state of this pr is that I merged every thing and I checked if all the images are still building.
I did not find the time to do any functional testing yet, but I will try to do tomorrow.
@leseb form which ceph-release are the official https://hub.docker.com/r/ceph/daemon/ images build? If I understand it right it is the jewel ubuntu 16.04? If so I will focus my integration tests on this image.

Wow @cornelius-keller a big thank you!
Yes you got the new structure right, currently we still have 14.04 has the default supported image.
That's a big patch, I'm out next week for the Red Hat summit, so I'm not sure if I'll have the time to review it. So if nothing happens next week, no worries :).
Thanks again!

Hi,
I have build the ubuntu 14.04 jewel daemon image locally and pushed it to quay.io/cornelius/ceph-daemon-test:latest . I get an healthy ceph cluster on kubernetes using this image.
Once this pr is merged into the oficial docker images this should work the same with ceph/daemon.

In my quick testing I found that the OSDs are not starting. I'm investigating further since it could be environment related (lazy testing in GKE) but for reference the error in the logs I'm getting is:
k8s: config is stored as k8s secrets.
k8s: does not generate admin key. Use secrets instead.
*** Running /etc/rc.local...
*** Booting runit daemon...
warning: /etc/service/ceph-1: unable to open supervise/ok: file does not exist
*** Runit started as PID 21
*** Runit exited with status 127
*** Killing all processes...

Hi @hunter,
I was testing before with my own automated cluster setup which is using an osd_disk. Right now I was testing the Readme and ran in the same issue.

The first run of the osd pod gives a bit more output:
k8s: config is stored as k8s secrets.
Creating osd with ceph --cluster ceph osd create
OSD created with ID: 0
created folder /var/lib/ceph/osd/ceph-0
2016-06-27 10:45:09.826183 7faca8d06800 -1 filestore(/var/lib/ceph/osd/ceph-0) WARNING: max attr value size (1024) is smaller than osd_max_object_name_len (2048).  Your backend filesystem appears to not support attrs large enough to handle the configured max rados name size.  You may get unexpected ENAMETOOLONG errors on rados operations or buggy behavior
2016-06-27 10:45:09.973129 7faca8d06800 -1 journal FileJournal::_open: disabling aio for non-block journal.  Use journal_force_aio to force use of aio anyway
2016-06-27 10:45:10.153369 7faca8d06800 -1 filestore(/var/lib/ceph/osd/ceph-0) WARNING: max attr value size (1024) is smaller than osd_max_object_name_len (2048).  Your backend filesystem appears to not support attrs large enough to handle the configured max rados name size.  You may get unexpected ENAMETOOLONG errors on rados operations or buggy behavior
2016-06-27 10:45:11.183140 7faca8d06800 -1 journal FileJournal::_open: disabling aio for non-block journal.  Use journal_force_aio to force use of aio anyway
2016-06-27 10:45:11.208473 7faca8d06800 -1 filestore(/var/lib/ceph/osd/ceph-0) could not find #-1:7b3f43c4:::osd_superblock:0# in index: (2) No such file or directory
2016-06-27 10:45:12.341580 7faca8d06800 -1 created object store /var/lib/ceph/osd/ceph-0 for osd.0 fsid 638d58c3-6d78-4b6e-b4e4-d2126a83e2a2
2016-06-27 10:45:12.341616 7faca8d06800 -1 auth: error reading file: /var/lib/ceph/osd/ceph-0/keyring: can't open /var/lib/ceph/osd/ceph-0/keyring: (2) No such file or directory
2016-06-27 10:45:12.341747 7faca8d06800 -1 created new key in keyring /var/lib/ceph/osd/ceph-0/keyring
HEALTH_WARN 1 mons down, quorum 1,2 ceph-mon-3444449050-ojfel,ceph-mon-3444449050-tso5k
added key for osd.0
done adding key
create-or-move updating item name 'osd.0' weight 2.64 at location {host=ceph-osd-1n0s5,root=default} to crush map
*** Running /etc/rc.local...
*** Booting runit daemon...
*** Runit started as PID 142
*** Runit exited with status 127
warning: /etc/service/ceph-0: unable to open supervise/ok: file does not exist
*** Killing all processes...

The subsequent restarts show less output, as @hunter has seen it before

Somehow the runit runsvdir command seem to be broken when it is called from inside the my_init python script. If it is called directly it is working, so i replaced the my_init by a direct call, as this is the only thing that is needed to be done by the my_init script in our case.
Also I had to adjust the osd_max_object_name_len to 256, otherwise it was not starting on my nodes with an ext4 filesystem.
while the custer is starting up, it remains in an unhealthy condition. Maybe there are more things to tweak.
    cluster fbe3f73b-88de-4c4d-86b3-e1653b7d9542
     health HEALTH_WARN
            80 pgs degraded
            80 pgs stuck unclean
            80 pgs undersized
            recovery 40/60 objects degraded (66.667%)
     monmap e1: 3 mons at {ceph-mon-3444449050-6svam=<IP_ADDRESS>:6789/0,ceph-mon-3444449050-8qdhr=<IP_ADDRESS>:6789/0,ceph-mon-3444449050-kyd91=<IP_ADDRESS>:6789/0}
            election epoch 6, quorum 0,1,2 ceph-mon-3444449050-kyd91,ceph-mon-3444449050-6svam,ceph-mon-3444449050-8qdhr
      fsmap e5: 1/1/1 up {0=mds-ceph-mds-2334162849-drmyv=up:active}
     osdmap e8: 1 osds: 1 up, 1 in
            flags sortbitwise
      pgmap v195: 80 pgs, 3 pools, 2068 bytes data, 20 objects
            10620 MB used, 2583 GB / 2705 GB avail
            40/60 objects degraded (66.667%)
                  80 active+undersized+degraded

Finally got some time to test this, here's what I found:
So the create_ceph_cluster.sh script works, and I get this
 get pods --namespace=ceph
NAME                              READY     STATUS    RESTARTS   AGE
ceph-mds-2861661940-ri1yj         1/1       Running   1          4m
ceph-mon-1273699218-0gsnq         1/1       Running   1          4m
ceph-mon-1273699218-5e94n         1/1       Running   1          4m
ceph-mon-1273699218-y8da4         1/1       Running   1          4m
ceph-mon-check-2629606323-ifcjs   1/1       Running   0          4m
ceph-osd-04m5q                    1/1       Running   1          4m
ceph-osd-cdmlh                    1/1       Running   1          4m
ceph-osd-jxtpv                    1/1       Running   1          4m
ceph-osd-ln4h4                    1/1       Running   1          4m
ceph-osd-m1fsg                    1/1       Running   1          4m
ceph-osd-sxk8n                    1/1       Running   1          4m
ceph-osd-z47xi                    1/1       Running   1          4m

Status looks ok:
#ceph status
    cluster 438117f1-9374-42cd-8bf5-e9accc62d9d0
     health HEALTH_OK
     monmap e1: 3 mons at {ceph-mon-1273699218-0gsnq=<IP_ADDRESS>:6789/0,ceph-mon-1273699218-5e94n=<IP_ADDRESS>:6789/0,ceph-mon-1273699218-y8da4=<IP_ADDRESS>:6789/0}
            election epoch 6, quorum 0,1,2 ceph-mon-1273699218-0gsnq,ceph-mon-1273699218-y8da4,ceph-mon-1273699218-5e94n
      fsmap e5: 1/1/1 up {0=mds-ceph-mds-2861661940-ri1yj=up:active}
     osdmap e9: 7 osds: 7 up, 7 in
            flags sortbitwise
      pgmap v115: 80 pgs, 3 pools, 3398 bytes data, 24 objects
            51312 MB used, 145 GB / 205 GB avail
                  80 active+clean

I can even create an RBD:
# rbd ls
ceph-rbd-test

But the test pod never mounts it, ever.
The host is claming some activity:
[ 4877.631294] libceph: client4121 fsid 438117f1-9374-42cd-8bf5-e9accc62d9d0
[ 4877.643294] libceph: mon1 <IP_ADDRESS>:6789 session established
[ 4881.337841] libceph: client4124 fsid 438117f1-9374-42cd-8bf5-e9accc62d9d0
[ 4881.343040] libceph: mon1 <IP_ADDRESS>:6789 session established
[ 4885.538558] libceph: client4261 fsid 438117f1-9374-42cd-8bf5-e9accc62d9d0
[ 4885.544106] libceph: mon2 <IP_ADDRESS>:6789 session established
[ 4890.738406] libceph: client4264 fsid 438117f1-9374-42cd-8bf5-e9accc62d9d0
[ 4890.745402] libceph: mon1 <IP_ADDRESS>:6789 session established
[ 4897.938322] libceph: client4127 fsid 438117f1-9374-42cd-8bf5-e9accc62d9d0

And the kubelet is forever spamming:
Jul 01 05:04:23 ip-172-20-0-36 kubelet[380]: I0701 05:04:23.447010     380 rbd.go:105] ceph secret info: ceph-client-key/AQD29nVXAAAAABAAW9m9qJ7H1ye1JjQ0xAEndw==
Jul 01 05:04:23 ip-172-20-0-36 kubelet[380]: I0701 05:04:23.647033     380 rbd.go:105] ceph secret info: ceph-client-key/AQD29nVXAAAAABAAW9m9qJ7H1ye1JjQ0xAEndw==
Jul 01 05:04:23 ip-172-20-0-36 kubelet[380]: I0701 05:04:23.846938     380 rbd.go:105] ceph secret info: ceph-client-key/AQD29nVXAAAAABAAW9m9qJ7H1ye1JjQ0xAEndw==

But the storage never mounts.
Also, all the daemons are spamming some variation of this:
2016-07-01 05:06:24.782833 7f442c1c6700  0 -- <IP_ADDRESS>:6800/185 >> :/0 pipe(0x7f4443adc800 sd=17 :6800 s=0 pgs=0 cs=0 l=0 c=0x7f4443b8dd80).accept failed to getpeername (107) Transport endpoint is not connected
2016-07-01 05:06:34.782477 7f442c1c6700  0 -- <IP_ADDRESS>:6800/185 >> :/0 pipe(0x7f4443adc800 sd=17 :6800 s=0 pgs=0 cs=0 l=0 c=0x7f4443b8c880).accept failed to getpeername (107) Transport endpoint is not connected
2016-07-01 05:06:44.782450 7f442c1c6700  0 -- <IP_ADDRESS>:6800/185 >> :/0 pipe(0x7f4443adc800 sd=17 :6800 s=0 pgs=0 cs=0 l=0 c=0x7f4443b8d480).accept failed to getpeername (107) Transport endpoint is not connected
2016-07-01 05:06:44.782864 7f442c1c6700  0 -- <IP_ADDRESS>:6800/185 >> :/0 pipe(0x7f4443adc800 sd=17 :6800 s=0 pgs=0 cs=0 l=0 c=0x7f4443b8dd80).accept failed to getpeername (107) Transport endpoint is not connected

And when I try to mount a CephFS volume, the cluster goes nuts:
 kubectl  get pods --namespace=ceph
NAME                              READY     STATUS              RESTARTS   AGE
ceph-cephfs-test                  0/1       ContainerCreating   0          6m
ceph-mds-2861661940-ri1yj         1/1       Running             1          23m
ceph-mon-1273699218-0gsnq         1/1       Running             1          23m
ceph-mon-1273699218-5e94n         1/1       Running             1          23m
ceph-mon-1273699218-g8alf         0/1       Pending             0          3m
ceph-mon-check-2629606323-ifcjs   1/1       Running             0          23m
ceph-osd-04m5q                    1/1       Running             1          23m
ceph-osd-0tbhk                    0/1       ContainerCreating   0          1m
ceph-osd-cdmlh                    1/1       Running             1          23m
ceph-osd-jxtpv                    1/1       Running             1          23m
ceph-osd-ln4h4                    1/1       Running             1          23m
ceph-osd-m1fsg                    1/1       Running             1          23m
ceph-osd-sxk8n                    1/1       Running             1          23m
ceph-osd-z47xi                    1/1       Running             1          23m
ceph-rbd-test                     0/1       ContainerCreating   0          14m

I didn't have time to dive deep tonight but figure maybe this info will be useful.
I'll dig in to it soon.

Turns out the cluster going crazy when trying to mount a CephFS volume is due to a kernel panic loop.

Didn't think to check. The kernel Debian 3.16.7-ckt25-2+deb8u2, debian version is 8.5
This was working with Cornelius's old Hammer containers, I'm now using the images in the k8s object definition, which appears to be jewel.
I'll try again with a newer distro.

@hunter Using a newer kernel solved the panic (switched to ubuntu 15.10).
Still can't mount cephfs or rbd. Will keep troubleshooting.
New rbd mount errors are:
[36763.552597] libceph: mon0 <IP_ADDRESS>:6789 socket closed (con state CONNECTING)
[36773.569029] libceph: bad fsid, had 3b3d279c-05ec-42e2-ab6e-28adcbfc3ce5 got 2e220e3f-e216-40b2-910d-b8f43d3606af
[36773.578661] libceph: auth method 'x' error -1

Good to hear a kernel update solved the panic. I think there were a few bugs with that backported kernel.
Regarding the rbd mount error, are the secrets up to date? Could the fsid referring to an old version?

I'm kinda catching up at the moment with emails and stuff since I was at the Red Hat summit last week, will try to find time this week to try this out.

@hunter The CephFS issues cleared up for reasons I think were related to the machine I launched the cluster from. Gonna do some cleaner testing to see if I can isolate the difference.
The RBD mounting issues were resolved after reading the release notes. Older kernel modules don't support newer RBD features, so I had to run this before the RBD volume would mount:
rbd feature disable  ceph-rbd-test fast-diff
rbd feature disable  ceph-rbd-test deep-flatten
rbd feature disable  ceph-rbd-test object-map
rbd feature disable  ceph-rbd-test  exclusive-lock

There's a setting somewhere to disable those features by default, I'm going to send in a PR to this PR to set that by default, as well as updating the documentation to highlight the fact that these are disabled, and also indicating which OSes are broken.
Looking better.

@cornelius-keller @hunter I clarified the requirements a bit based on my issues, and changed the defaults for RBD volumes: https://github.com/cornelius-keller/ceph-docker/pull/5
Are you guys still having problems with the OSDs not starting?
Can you describe your K8s cluster setups (OS, provisioning method, etc)?

Hi @elson,
I will try to retest everything tomorrow or during the weekend. My clusters
are based on coreos and kubernetes 1.2.4 or 1.3.0.
The ceph
2016-07-07 19:19 GMT+02:00 Elson Rodriguez<EMAIL_ADDRESS>
@cornelius-keller https://github.com/cornelius-keller @hunter
https://github.com/hunter I clarified the requirements a bit based on
my issues, and changed the defaults for RBD volumes: cornelius-keller#5
https://github.com/cornelius-keller/ceph-docker/pull/5
Are you guys still having problems with the OSDs not starting?
Can you describe your K8s cluster setups (OS, provisioning method, etc)?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ceph/ceph-docker/pull/318#issuecomment-231146907, or mute
the thread
https://github.com/notifications/unsubscribe/ABrRN1WX6vs8HbPmHgzCEWo0iF07rQ6Cks5qTTUzgaJpZM4I-c2B
.

... (sorry mail got send accidentally before it was fineshed) ...
I was not able to test the cephfs part because I have to figure out how to
mount this on coreos. The binaries for doing this are missing and I have to
find a proper way to provide them first.
2016-07-07 19:43 GMT+02:00 Cornelius Keller<EMAIL_ADDRESS>
Hi @elson,
I will try to retest everything tomorrow or during the weekend. My
clusters are based on coreos and kubernetes 1.2.4 or 1.3.0.
The ceph
2016-07-07 19:19 GMT+02:00 Elson Rodriguez<EMAIL_ADDRESS>
@cornelius-keller https://github.com/cornelius-keller @hunter
https://github.com/hunter I clarified the requirements a bit based on
my issues, and changed the defaults for RBD volumes: cornelius-keller#5
https://github.com/cornelius-keller/ceph-docker/pull/5
Are you guys still having problems with the OSDs not starting?
Can you describe your K8s cluster setups (OS, provisioning method, etc)?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ceph/ceph-docker/pull/318#issuecomment-231146907,
or mute the thread
https://github.com/notifications/unsubscribe/ABrRN1WX6vs8HbPmHgzCEWo0iF07rQ6Cks5qTTUzgaJpZM4I-c2B
.

@cornelius-keller One of our internal teams has a formula for getting CoreOS configured to mount Ceph volumes, but it is pretty convoluted.
I'm working on getting clearance to share the pattern, but based on the complexity I'm not sure we should recommend running this on CoreOS.

Hi Elson,
Rbd mounting works fine. For cephfs i'll try to use a containerized
hypercube kublet this wekend. If i understood it right the binaries should
be in the container. I'll keep you up to date how it works.
Am 08.07.2016 7:41 nachm. schrieb "Elson Rodriguez" <
<EMAIL_ADDRESS>
@cornelius-keller https://github.com/cornelius-keller One of our
internal teams has a formula for getting CoreOS configured to mount Ceph
volumes, but it is pretty convoluted.
I'm working on getting clearance to share the pattern, but based on the
complexity I'm not sure we should recommend running this on CoreOS.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ceph/ceph-docker/pull/318#issuecomment-231423753, or mute
the thread
https://github.com/notifications/unsubscribe/ABrRN5acP2zxL3dID8HH-IV8UTwfvIpQks5qTosQgaJpZM4I-c2B
.

@cornelius-keller sorry I just pushed some patches last week, would you mind rebasing?
Thanks!

Hi @leseb, I rebased and rebuilded the test containers.
I did not have the time to do further testing though :worried:.

@cornelius-keller thanks a lot, sorry that this is taking so long.
I might have time next week. I'll keep you informed.
Thanks again for your patience.

I didn't have the time to test yet, however it seems that both @cornelius-keller, @elsonrodriguez and @hunter tested it.
So I'll trust you on this one since I don't want to hold this one for too long.


Adds 1 sec delay between voice channel delete

Discord's API runs on CloudFlare, and there's a global 50 requests per second limit. I guess this is possible? Maybe? If a handful of people, across ALL servers, are: running /lfg, pressing join/leave buttons, running any other commands + SpellBot itself is maybe cleaning up old voice channels (it can do a handful of these within a second)... that could all add up to CloudFlare itself rate limiting ALL bot activity. This is exactly what we see. When SpellBot goes down, ALL of it goes down.
There is a process to ask Discord Support to raise your CloudFlare rate limit. I opened a new trouble ticket with them asking them to do this. They still haven't responded to my original trouble ticket from 4 months ago. So 🤷♀
I'm adding some delay in the cleanup for old voice channels. The bot will wait 1 second between deleting things.

Codecov Report

Merging #843 (849a8f5) into main (272ac46) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #843   +/-   ##
=======================================
  Coverage   99.37%   99.37%
=======================================
  Files          71       71
  Lines        3218     3220    +2
  Branches      332      332
=======================================
+ Hits         3198     3200    +2
  Misses          8        8
  Partials       12       12

Impacted Files
Coverage Δ

src/spellbot/interactions/task_interaction.py
100.00% <100.00%> (ø)

src/spellbot/settings.py
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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


1098 bind different integrators for python

Changes and Information
Please briefly list the changes (main added features, changed items, or corrected bugs) made:

Bind IntegratorCore
Expose 3 often used Types of IntegratorCores to python
Update Simulation and model specific simulate bindings

If need be, add additional information and what the reviewer should look out for in particular:

Merge Request - Guideline Checklist
Please check our git workflow. Use the draft feature if the Pull Request is not yet ready to review.
Checks by code author

[ ] Every addressed issue is linked (use the "Closes #ISSUE" keyword below)
[ ] New code adheres to coding guidelines
[ ] No large data files have been added (files should in sum not exceed 100 KB, avoid PDFs, Word docs, etc.)
[ ] Tests are added for new functionality and a local test run was successful (with and without OpenMP)
[ ] Appropriate documentation for new functionality has been added (Doxygen in the code and Markdown files if necessary)
[ ] Proper attention to licenses, especially no new third-party software with conflicting license has been added
[ ] (For ABM development) Checked benchmark results and ran and posted a local test above from before and after development to ensure performance is monitored.

Checks by code reviewer(s)

[x] Corresponding issue(s) is/are linked and addressed
[x] Code is clean of development artifacts (no deactivated or commented code lines, no debugging printouts, etc.)
[x] Appropriate unit tests have been added, CI passes, code coverage and performance is acceptable (did not decrease)
[x] No large data files added in the whole history of commits(files should in sum not exceed 100 KB, avoid PDFs, Word docs, etc.)
[ ] On merge, add 2-5 lines with the changes (main added features, changed items, or corrected bugs) to the merge-commit-message. This can be taken from the briefly-list-the-changes above (best case) or the separate commit messages (worst case).

Closes #1098

Please tick the check boxes if they are fullfilled


Feat:Add web scraping script for boat-lifestyle.com

Describe the feature
I would like to propose adding a web scraping script for the boat-lifestyle.com website to this  project. The script allows us to scrape product information, such as product names, prices, image URLs, and ratings, from the boat-lifestyle.com website.
Features:

Retrieves all products from a specific category.
Retrieves detailed information about a specific product.
Retrieves the image URL of a specific product.
Retrieves the price of a specific product.
Retrieves the rating of a specific product.

Script Details:
The script utilizes the requests library to send HTTP requests and the BeautifulSoup library to parse the HTML response. It has been tested and provides example usage for each functionality.
Example Usage:
# Create an instance of the BoatScraper class
boat_scraper = BoatScraper()

# Get all products from a specific category
category_num = 1
products = boat_scraper.get_all_category_products(category_num)

# Print the details of each product in the category
for product in products:
    print('Product:', product['product_name'])
    print('Price:', product['price'])
    print('Image URL:', product['image_url'])
    print('---')

# Get the details of a specific product
product_name = 'airdopes-381-masaba-edition'
product_details = boat_scraper.get_product_details(product_name)
print('Product Details:', product_details)

# Get the image URL of a specific product
image_url = boat_scraper.get_product_image(product_name)
print('Image URL:', image_url)

# Get the price of a specific product
price = boat_scraper.get_product_price(product_name)
print('Price:', price)

# Get the rating of a specific product
rating = boat_scraper.get_product_rating(product_name)
print('Rating:', rating)

Please review and provide your thoughts on adding this web scraping script to your project.
Add ScreenShots

Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC 23 contributor
[X] I want to work on this issue

Hey @Nishitbaria | We are looking to add modules that are common, in a more generalize way. Not specific to be precise.


Async usage is broken as of 0.29.0 for client.messages.create

tl;dr AsyncAnthropic is broken as of 0.29.0 for messages.create. If I roll back to to the previous release 0.28.1, it does not have this issue. I think this commit might be a possible culprit but I'm not sure.
Observed while running a test suite today. After running 2 tests that make 2 async client.messages.create calls (successfully), the 3rd call (in the 3rd test) hangs every time. Note, the first 2 calls don't include tools and the 3rd call does. The tests all use the async client, but they run one after another (very quickly, minimal gap between each one).
This is consistently reproducible with 0.29.0. The same flow doesn't hang at all when using the previous release 0.28.1.
I've included the trace that dumps when I kill the hanging test below, in case that has any hints towards a fix.

File "/Users/user/workspace/project/.venv/lib/python3.12/site-packages/anthropic/resources/messages.py", line 1866, in create     return await self._post(            ^^^^^^^^^^^^^^^^^   File "/Users/user/workspace/project/.venv/lib/python3.12/site-packages/anthropic/_base_client.py", line 1804, in post     return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/Users/user/workspace/project/.venv/lib/python3.12/site-packages/anthropic/_base_client.py", line 1502, in request     return await self._request(            ^^^^^^^^^^^^^^^^^^^^   File "/Users/user/workspace/project/.venv/lib/python3.12/site-packages/anthropic/_base_client.py", line 1536, in _request     response = await self._client.send(                ^^^^^^^^^^^^^^^^^^^^^^^^   File "/Users/user/workspace/project/.venv/lib/python3.12/site-packages/httpx/_client.py", line 1661, in send     response = await self._send_handling_auth(                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/Users/user/workspace/project/.venv/lib/python3.12/site-packages/httpx/_client.py", line 1689, in _send_handling_auth     response = await self._send_handling_redirects(                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/Users/user/workspace/project/.venv/lib/python3.12/site-packages/httpx/_client.py", line 1726, in _send_handling_redirects     response = await self._send_single_request(request)                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/Users/user/workspace/project/.venv/lib/python3.12/site-packages/httpx/_client.py", line 1763, in _send_single_request     response = await transport.handle_async_request(request)                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/Users/user/workspace/project/.venv/lib/python3.12/site-packages/httpx/_transports/default.py", line 373, in handle_async_request     resp = await self._pool.handle_async_request(req)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/Users/user/workspace/project/.venv/lib/python3.12/site-packages/httpcore/_async/connection_pool.py", line 216, in handle_async_request     raise exc from None   File "/Users/user/workspace/project/.venv/lib/python3.12/site-packages/httpcore/_async/connection_pool.py", line 196, in handle_async_request     response = await connection.handle_async_request(                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/Users/user/workspace/project/.venv/lib/python3.12/site-packages/httpcore/_async/connection.py", line 99, in handle_async_request     raise exc   File "/Users/user/workspace/project/.venv/lib/python3.12/site-packages/httpcore/_async/connection.py", line 76, in handle_async_request     stream = await self._connect(request)              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/Users/user/workspace/project/.venv/lib/python3.12/site-packages/httpcore/_async/connection.py", line 122, in _connect     stream = await self._network_backend.connect_tcp(**kwargs)              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/Users/user/workspace/project/.venv/lib/python3.12/site-packages/httpcore/_backends/auto.py", line 30, in connect_tcp     return await self._backend.connect_tcp(            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/Users/user/workspace/project/.venv/lib/python3.12/site-packages/httpcore/_backends/anyio.py", line 116, in connect_tcp     stream: anyio.abc.ByteStream = await anyio.connect_tcp(                                    ^^^^^^^^^^^^^^^^^^^^^^^^   File "/Users/user/workspace/project/.venv/lib/python3.12/site-packages/anyio/_core/_sockets.py", line 214, in connect_tcp     async with create_task_group() as tg:   File "/Users/user/workspace/project/.venv/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 690, in __aexit__     raise cancelled_exc_while_waiting_tasks   File "/Users/user/workspace/project/.venv/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 670, in __aexit__     await asyncio.wait(self._tasks)   File<EMAIL_ADDRESS>line 464, in wait     return await _wait(fs, timeout, return_when, loop)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File<EMAIL_ADDRESS>line 550, in _wait     await waiter asyncio.exceptions.CancelledError

Can you share a reproduction script?

Hi @akashkashyap can you share any more details?
A script like this works as expected for me
import asyncio
from anthropic import AsyncAnthropic

async def main() -> None:
    client = AsyncAnthropic()

    for i in range(10):
        await make_request(client)
        print(f"success {i}")

async def make_request(client: AsyncAnthropic) -> None:
    await client.messages.create(
        max_tokens=1024,
        messages=[
            {
                "role": "user",
                "content": "Hello, Claude",
            }
        ],
        model="claude-3-opus-20240229",
    )

asyncio.run(main())


fix(logseq 10.5): Automatic link on pressing enter with Logseq 10.5

Problem
The automatic linking of pages didn't work. The Logseq team probably change the insertBlocks variable to insert-blocks. So the if condition stopped working.
Solution
change the comparison string

#71

Fix works for me (with 0.10.5) as well.
Would also fix #64.

Thanks a lot. How to easily install this version of the plugin?

Works for me too 🚀

Should this be marked as a breaking change? I haven't tested it on a previous version (so the change might work with older versions). However, looking at the change, it looks like this won't be backwards compatible - and so users still on an older version of logseq will not be able to use the newest version of the plugin.
Otherwise, the condition can be amended to include both strings to make this fix backwards compatible

this looks great, but I think that it would be useful to preserve backwards compatibility by adding an OR check for both of the conditions.


Making validation call configurable

Things I suggest:

Use :hackney as a default HTTP-server
Create new macro to handle the verifications (Recaptcha.Validator)
Rewrite verify/2 to works with tuples {:ok, _} and {:error, _} and not with bang versions.
Create an overridable function to be used like so:

defmodule MyApp.RecaptchaValidator do
  use Recaptcha.Validator

  def verify_request(verify_url, body, headers) do
    # Old signature:
    # HTTPoison.post!(@site_verify_url, body, headers, timeout: timeout)
    {:ok, response} = MyHttpServer.post(verify_url, body, headers)
  end
end

And then test all the things.
What do you think of it?

Why hackney? Httpoison uses it under the hood anyway.
Yeah, we could do that
Could you please explain what is the use case for the overridable function?

hackney is faster, as I see a lot of projects using it directly. And since we don't have any complicated logic, this might be a good usecase with no disadvantages.
Today the idea with custom verification function does not seem very good to me. At first I thought that it is nice and clean solution. But now it seems as overcomplicated peace. Now I think that just hackney is fine.
p.s. Do you live in Moscow? We are scheduling a meetup in Moscow and looking for speakers. Contact me by email, if it is possible and you are interested.

As far as I understand,  httpoison is pretty much a wrapper around hackney so the performance is probably not gonna improve significantly but we'll have to dive into Erlang. To my knowledge hackney is faster than ibrowse,  which is used by httpotion so if we used httpotion that would make sense. We could use hackney only as a way to get rid of httpoison as a dependency though.

So, because this lib doesn't seem to get much attention at the moment, I'm working on building something like this myself as another lib with tests etc. (coming soon 😄) @JustMikey I'd be happy to discuss whether you'd want to hand over this repo to someone with a bit more time (or not if you're happy with there being another recaptcha lib out there, I don't really mind)
@sobolevn I'll be implementing simple ok/error tuples for responses and no bang version.
I looked at implementing my version with hackney, but honestly I don't think its worth it. For example here's the HttpPoison wrapper around hackneys request and body processing: https://github.com/edgurgel/httpoison/blob/master/lib/httpoison/base.ex#L410 If I was to use hackney I'd probably end up reimplementing this (at minimum), and for what benefit? reducing dependencies isn't a good reason to copy paste code in this case I don't think. I'm glad I investigated this but.. yeah I don't think its worthwhile.

@samueljseay thanks for the feedback!
I have spent a little bit of time to play around hackney and httpoison, I do also agree with you: there's no need in working with hackney directly.
Considering new repo, is it really worth it? Maybe we should cooperate to make this one better? The v2 branch has just a little bit of work to be done. I would really appreciate your help on this one! You can count on me on easy and quick tasks.

@samueljseay Yeah I would be glad to hand it over and I apologize for irresponsibility.

@JustMikey no worries at all, I totally understand things get busy! Thanks for the transfer! Happy to continue making this little lib great. :smile:
@sobolevn so I got ahead of myself and rewrote the verification stuff. and some of what I've done seems similar to the v2 branch. How set are we on being strictly backwards compatible?
For example I've made remote_ip optional in my rewrite.. Would it be worth having a look at what I've got in a PR and discussing?
One other thing that bugs me is the template side of this library.. it almost feels like the templates should be a separate dependency... e.g. something like recaptcha_phoenix or something?

@samueljseay ok, looking forward to see your changes!
Templates is a good question, why do you think it should be a separate project?
When it comes to templates, recaptcha widget is suggested to be used like: <%= raw Recaptcha.display %>, I guess the main problem is here. Since raw/1 is a part of Phonix.HTML. So, I guess, the docs should cover the case with phoenix and the case with just eex.

@sobolevn I guess I just feel like not everyone using this lib is going to have any need for the templating side of it (for my current use of it I don't use the template stuff at all).
I feel like providing templating and mentioning "Phoenix" will attract some developers and put others off.
Having said all that, if you feel strongly about keeping the templating in the library I'd be ok with that and maybe we could remove all mention of Phoenix and cover the non-Phoenix case for rendering the template?
I'd probably also be keen to move the templating into a separate module like Recaptcha.Template or something?

@JustMikey I was wondering if you could add me as a package owner on Hex? https://hex.pm/docs/tasks#hex_owner looks like its fairly straightforward<EMAIL_ADDRESS>

hey @JustMikey pinging you, hoping you'll get this, I haven't found any other way to get in touch with you.
I was wondering if you could add me as a package owner on Hex?https://hex.pm/docs/tasks#hex_owner my email is<EMAIL_ADDRESS>

@samueljseay Hi, sure, I will do it tonight. Sorry for the long reply.

Done. Sorry it took me again so much time, had problems with the internet connection.

No worries! Thanks so much @JustMikey . I'll be able to do a new release very soon! :clap:

@samueljseay @JustMikey thank you guys for a new release!
Will test it out on this project


fix SHIFT-Insert on Windows command prompt

This is fixing for a bug which vim.exe doesn't accept SHIFT-INSERT.
https://groups.google.com/forum/#!topic/vim_use/G1hB7FJbyAo/discussion
When patch 7.4.852 was included, combination of K_NUL & ANSI keys was not handled. And it was converted to unicode.
https://groups.google.com/forum/#!topic/vim_dev/Gu7pDIjS1UE/discussion
		if (ch2 != NUL)
		{
		    typeahead[typeaheadlen + n] = 3;
		    typeahead[typeaheadlen + n + 1] = (char_u)ch2;
		    n += 2;
		}

For example, following part use K_NUL & ANSI key to handle SHIFT-INSERT.
https://github.com/vim/vim/blob/bdb8139098d170ede2bc79dd4f62e4ed5e778d3e/src/os_win32.c#L989-L1013
This change handle K_NUL in leading-character.

Codecov Report

Merging #2381 into master will increase coverage by <.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #2381      +/-   ##
==========================================
+ Coverage   74.52%   74.53%   +<.01%
==========================================
  Files          91       91
  Lines      132415   132416       +1
  Branches    29083    29083
==========================================
+ Hits        98686    98695       +9
+ Misses      33700    33696       -4
+ Partials       29       25       -4

Impacted Files
Coverage Δ

src/gui_beval.c
62.66% <0%> (-0.43%)
:arrow_down:

src/gui.c
47.45% <0%> (-0.21%)
:arrow_down:

src/terminal.c
64.85% <0%> (-0.07%)
:arrow_down:

src/term.c
50.72% <0%> (-0.06%)
:arrow_down:

src/message.c
68.67% <0%> (-0.05%)
:arrow_down:

src/syntax.c
77.51% <0%> (-0.03%)
:arrow_down:

src/libvterm/src/screen.c
72.79% <0%> (-0.03%)
:arrow_down:

src/ex_docmd.c
75.58% <0%> (+0.02%)
:arrow_up:

src/os_unix.c
54.28% <0%> (+0.04%)
:arrow_up:

src/channel.c
82.44% <0%> (+0.08%)
:arrow_up:

... and 3 more

Continue to review full report at Codecov.

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

Sorry, this break something. For example, <up> key doesn't work.

@brammool This should not be merged since this PR is still wrong. As I mentioned in above, <Up> doesn't work.

@chrisbra @k-takata Could please reopen this?

Fixed. I checked this on vim.exe with utf-8 and cp932.


feat: import package 'abcmidi' from AUR

Yeah, its a bit wierd. The version number shows up in the help message, but is used nowhere else importnant. And in the interest of keeping the package versioning scheme compatible with the AUR package, I think this is best.


Moved: Vivaldi.Vivaldi version 5.2.2623.39

This pull request is automatically generated by 🥟 Dumplings
Microsoft Reviewers: Open in CodeFlow

/AzurePipelines run

@wingetbot run


Serial send fix

When the Uploader window is not in focus, the thread priority changes and packets in the serial port buffer are not send immediately. As we're sending and receiving packets in parallel instead of sequentially, this means we have to wait a bit longer before trying to send the packet again. This PR implements a backoff algorithm when a serial port send is pending.

 review JC's changes to binary search in Tandem driver and handle merge conflicts with current tandem-mvp branch

Closing this PR, as the merge target is now wrong.


Frame data is not correct when converting from SWF to CCB

when converting some of the flash files, I found that the ccb animation the tool generate is not as same as when it viewing in Flash. some of the parameters or key frames have missed or adjusted:
see screenshots:

It'd be really great if there's a solution to this, cause I'm having the same issue.
@NickyWeber any update?

Sorry this lay dormant way too long. Adding @cocojoe the master of SWFs.

@NickyWeber thank you!

having the same issue with sprite builder 1.3

OK I'll take a look at this tomorrow.  Thanks

In the mean time, this may help some people:
https://www.sagas-playground.com/2015/01/using-flash-animations-with-spritebuilder/

@cocojoe Let me know if there's anything I can help or provide you (maybe sample animation files that failed the converter?)

here it is - it is the blue beast :-)
notice that in SB the origin of each image seems to move
On Tue, Jan 20, 2015 at 8:56 PM, Thanakron Tandavas <
<EMAIL_ADDRESS>wrote:

@cocojoe https://github.com/cocojoe Let me know if there's anything I
can help or provide you (maybe sample animation files that failed the
converter?)
—
Reply to this email directly or view it on GitHub
https://github.com/spritebuilder/SWF-Importer/issues/4#issuecomment-70710396
.

--
בברכה,
מתן פורה,
0545-541748
<EMAIL_ADDRESS>

@mporeh The issue is most likely you are using it incorrectly, I've just tried this using the provided tutorial content:

If you are exporting at tablet-hd 4x there should be no issues as this is the SB default project settings.  Your issue looks like exporting at 4x and using 2x project settings or some combination issue.

I was trying it with an iPhone only project , maybe that was the problem. Is there a solution for such cases?
Sent from my iPhone

On 27 בינו׳ 2015, at 13:12, cocojoe<EMAIL_ADDRESS>wrote:
@mporeh The issue is most likely you are using it incorrectly, I've just tried this using the provided tutorial content:
If you are exporting at tablet-hd 4x there should be no issues as this is the SB default project settings. Your issue looks like exporting at 4x and using 2x project settings or some combination issue.
—
Reply to this email directly or view it on GitHub.

I wouldn't have thought so, when you say iPhone only do you mean you are using 2x only assets in SpriteBuilder or....?

iPhone only means that I only need retina and it retina-hd
So just x2
Sent from my iPad

On 27 בינו׳ 2015, at 17:31, cocojoe<EMAIL_ADDRESS>wrote:
I wouldn't have thought so, when you say iPhone only do you mean you are using 2x only assets in SpriteBuilder or....?
—
Reply to this email directly or view it on GitHub.

So if you export in SWFImporter and change the format to 2x.
Then in SB open up Project Settings and change default scaling to be 2x.

Hi @cocojoe!
(and CC @NickyWeber)
Thank you so much for making this tool! I see this thread is recently active and I just wanted to check to see how progress is going with the original problem?
I work at MakeSchool in the Appportable office in SF and several of our students are anxiously awaiting the fix so they can finish their games!
Thank You!


Textfield stroke color when without focus

Which platform(s) does your issue occur on?

iOS/Android/Both:      Android
iOS/Android versions:     API 29
emulator or device. What type of device?     emulator

Please, provide the following version numbers that your issue occurs with:

CLI: 6.5
Cross-platform modules<EMAIL_ADDRESS>Runtime(s): 6.5
Plugin(s):

"dependencies": {
    "@angular/animations": "~8.2.0",
    "@angular/common": "~8.2.0",
    "@angular/compiler": "~8.2.0",
    "@angular/core": "~8.2.0",
    "@angular/forms": "~8.2.0",
    "@angular/platform-browser": "~8.2.0",
    "@angular/platform-browser-dynamic": "~8.2.0",
    "@angular/router": "~8.2.0",
    "@nativescript/theme": "~2.3.3",
    "nativescript-angular": "~8.21.0",
    "nativescript-material-textfield": "^3.1.15",
    "nativescript-ui-sidedrawer": "~8.0.0",
    "reflect-metadata": "~0.1.12",
    "rxjs": "^6.4.0",
    "tns-core-modules": "~6.5.0",
    "zone.js": "~0.9.1"
  },
  "devDependencies": {
    "@angular/compiler-cli": "~8.2.0",
    "@ngtools/webpack": "~8.2.0",
    "codelyzer": "~4.5.0",
    "nativescript-dev-webpack": "~1.5.1",
    "node-sass": "^4.7.1",
    "tns-platform-declarations": "^6.5.0",
    "tslint": "~5.19.0",
    "typescript": "~3.5.3"
  },

Please, tell us how to recreate the issue in as much detail as possible.
I'm trying to assign a color to the textfield when it has no focus
Is there any code involved?
<StackLayout class="form">
	<MDTextField
		#usuario
		hint="Usuário"
		variant="outline"
		formControlName="usuario"
		strokeColor="#FFFFFF"
		placeholdercolor="#FFFFFF"
		autocorrect="false"
		[isEnabled]="!loging"
		keyboardType="url"
		returnKeyType="next"
		autocapitalizationType="none"
		marginTop="10"
		(returnPress)="senha.requestFocus()"
		class="user"
	>
	</MDTextField>

	<MDTextField
		#senha
		hint="Senha"
		variant="outline"
		formControlName="senha"
		autocorrect="false"
		strokeColor="#FFFFFF"
		placeholdercolor="#FFFFFF"
		[isEnabled]="!loging"
		keyboardType="email"
		returnKeyType="next"
		autocapitalizationType="none"
		marginTop="10"
		(returnPress)="onLoginTap()"
	>
	</MDTextField>

</StackLayout>

same with strokeInactiveColor doesn't work

I have the same issue.

Not supported yet. PR are welcome

Does style: border-color work @lerroux @PabloPG ?

@diegovincent no it wont work. Need to be "handled" in the plugin. PR are welcome ;)

@farfromrefug I have not gotten experience with Android or iOS, even though I do know a bit of Java, Typescript and have done a tiny modification in ObjC. If you can explain a bit how everything works, I'd love to maintain this repository, this is huge for {N}!

@diegovincent i would first advise you to look for Nativescript tutorials on how to write plugins.
Then you would need to look at google material libs for iOS and Android to see the APIs. Then when you have all that, you can look at my plugin code and try to add the new property to handle the border color.


vite-plugin: Whitelist vite-plugin-svelte

Add explicit exception for when plugins includes vite-plugin-svelte.
Add a user configurable override

Resolves #937
I'm not sure how this plays into #851, that PR seems dead/invalid?
This fixes SSR support in sveltekit, at least, and provides an override for other framework users to use before built-in support is added.

FWIW I also added an option for forceEmitCssiInSsrBuild here, which show it's needed

FWIW I also added an option for forceEmitCssiInSsrBuild here, which show it's needed

Nice, I do disagree with you about "would probably allow removing the hard-coded checks", the point of these is to reduce friction in cases where it's definitely required. This is good DX.
Let's home something gets merged soon.

ah yes you're right, it makes sense for the DX !

What does this need to be merged?

@michaeltaranto @mattcompiles @markdalgleish
What needs to be done here? This fixes VE usage for SvelteKit and probably others. VE is practically unusable on non-whitelisted frameworks right now as SSR FOUC is a problem.

Discussed this one at the maintainers meeting this morning and we are going to split this into two so we can get sveltekit out the door. We will look at adding the forceSSR flag in a separate PR along with documentation.


Adding human input example to README and docs

One can easily use human input as tool by using the langchain tool but would be nice to add proper docs around it as it seem a usual use case
from langchain.agents import load_tool
tools = load_tools(["human"])

Sure thing, just did! Maybe we start just adding a section on the readme with a small example and a link on top.
Also something we could add to the wiki.
@greysonlalonde is working on a new docs so he might be able to help as well :)

Hey quick question
from langchain.agents import load_tool
tools = load_tools(["human"])

after doing this we just have add this as tool in our agent right?

Example

```python
researcher = Agent(
  role='Senior Research Analyst',
  goal='Uncover cutting-edge developments in AI and data science in',
  backstory="""You are a Senior Research Analyst at a leading tech think tank.
  Your expertise lies in identifying emerging trends and technologies in AI and
  data science. You have a knack for dissecting complex data and presenting
  actionable insights.""",
  verbose=True,
  allow_delegation=False,
  tools=tools,
  llm=ChatOpenAI(temperature=0.7, model_name="gpt-4") #It uses langchain.chat_models, default is GPT4
)

Hi @siddartha-10 , tools are located in langchain.agents.load_tools in  langchain v0.0.354:
from langchain.agents.load_tools import load_tools

Hey @greysonlalonde  This an example of using human as an agent.
from langchain.agents import load_tools
from langchain_community.chat_models import ChatOpenAI
from langchain_community.llms import OpenAI
import os
from crewai import Agent, Task, Crew, Process

os.environ["OPENAI_API_KEY"] = "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"

llm = ChatOpenAI(temperature=0.0,model="gpt-3.5-turbo")
tools = load_tools(
    ["human"]
)

agent = Agent(
  role='Human',
  goal='Provide context when the Agents need me',
  backstory="I am a human, I am here to help the Agents",
  tools=tools
)

task1 = Task(
  description="""Give me a hook to write a story? and ask the human to give you a hook to write a story""",
  agent=agent
)

task2 = Task(
  description="""what is the name of the characters? you should ask the human to give you the name of the char""",
  agent=agent
)

task3 = Task(
    description="""Include the character names and involve them in your story.""",
    agent=agent,
)

crew = Crew(
  agents=[agent],
  tasks=[task1,task2,task3],
  verbose=3, # Crew verbose more will let you know what tasks are being worked on, you can set it to 1 or 2 to different logging levels
  process=Process.sequential # Sequential process will have tasks executed one after the other and the outcome of the previous one is passed as extra content into this next.
)

print(crew.kickoff())```

I have cloned the wiki pages locally and do you want me to add this to the document?

Added, thanks @siddartha-10 for prompting us to do it and coming up with an initial version!

Hey @joaomdmoura I am learning a lot these days and interested in using agents for different applications and use cases,
I am a master's student, It would be great if you can mentor and help me be on the right path.


fix(event_processor.go): existing-ip-annotion bug

Issue Description
When using the cloudscale-slb-controller together with the existing-ip annotation, we never get past the point where the IP is reassigned to the correct node. This happens if we do not use the annotation and let the controller create the ip.
Creation of IP by controller:
time="2022-02-11T14:41:08Z" level=debug msg="event implies that an ip needs to be created" event_type=ADDED service=default/nginx-deployment service_ip=
time="2022-02-11T14:41:08Z" level=debug msg="[createIp] default/nginx-deployment: getting target node for new floating ip"
time="2022-02-11T14:41:08Z" level=debug msg="[getFloatingIpTargetServerForNewIp] default/nginx-deployment: fetching endpoints"
time="2022-02-11T14:41:08Z" level=debug msg="[getFloatingIpTargetServerForNewIp] default/nginx-deployment: no endpoints object found; using node-0.example.com"
time="2022-02-11T14:41:08Z" level=debug msg="[CreateFloatingIp] creating floating ip on server xxx-xxx-xxx-xxx on cloudscale.ch"
time="2022-02-11T14:41:08Z" level=debug msg="[ListFloatingIps] listing floating ips on cloudscale.ch"
time="2022-02-11T14:41:08Z" level=debug msg="[CreateFloatingIp] calling cloudscale.ch API"
time="2022-02-11T14:41:11Z" level=info msg="ip address xxx.xxx.xxx.xxx for service default/nginx-deployment created successfully and attached to node-0.example.com"
time="2022-02-11T14:41:11Z" level=info msg="load balancer ingress for service default/nginx-deployment updated successfully and attached to node-0.example.com"
time="2022-02-11T14:41:11Z" level=debug msg="[GetFloatingIp] loading floating ip xxx.xxx.xxx.xxx on cloudscale.ch"
time="2022-02-11T14:41:11Z" level=debug msg="[verifyIp] default/nginx-deployment: checking if floating ip is attached to a node with a running pod"
time="2022-02-11T14:41:11Z" level=debug msg="[GetServerNameForServerId] returning server name node-0.example.com for server with id xxx-xxx-xxx-xxx"
time="2022-02-11T14:41:11Z" level=debug msg="[verifyIp] default/nginx-deployment: floating ip xxx.xxx.xxx.xxx is attached to node node-0.example.com"
time="2022-02-11T14:41:11Z" level=debug msg="[verifyIp] default/nginx-deployment: first node with ready pod is node-2.example.com"
time="2022-02-11T14:41:11Z" level=debug msg="[verifyIp] default/nginx-deployment: floating ip xxx.xxx.xxx.xxx not attached to a node with a running ready pod"
time="2022-02-11T14:41:11Z" level=debug msg="[verifyIp] default/nginx-deployment: looking up server id xxx-xxx-xxx-xxx node node-2.example.com"
time="2022-02-11T14:41:11Z" level=debug msg="[GetServerIdForNode] returning server id xxx-xxx-xxx-xxx for server with name node-2.example.com"
time="2022-02-11T14:41:11Z" level=debug msg="[verifyIp] default/nginx-deployment: re-attaching floating ip xxx.xxx.xxx.xxx to node-2.example.com"
time="2022-02-11T14:41:11Z" level=debug msg="[UpdateFloatingIp] updating floating ip xxx.xxx.xxx.xxx with new server id xxx-xxx-xxx-xxx on cloudscale.ch"
time="2022-02-11T14:41:13Z" level=info msg="successfully verified ip xxx.xxx.xxx.xxx for service default/nginx-deployment attached to node-2.example.com"

If using existing-ip annotation. Specially the lines
time="2022-02-11T14:39:35Z" level=debug msg="[GetFloatingIp] loading floating ip xxx.xxx.xxx.xxx on cloudscale.ch"
time="2022-02-11T14:39:35Z" level=info msg="successfully verified ip xxx.xxx.xxx.xxx for service default/nginx-deployment attached to "

made as wondering, why it was finishing with attached to" and not continuing.
time="2022-02-11T14:16:22Z" level=debug msg="processing service on initial load" svc=infra-ingress/ingress-controller
time="2022-02-11T14:16:22Z" level=debug msg="[GetFloatingIp] loading floating ip xxx.xxx.xxx.xxx on cloudscale.ch"
time="2022-02-11T14:16:22Z" level=info msg="successfully verified ip xxx.xxx.xxx.xxx for service infra-ingress/ingress-controller attached to "
time="2022-02-11T14:16:22Z" level=debug msg="[DefaultRetryManager:Start] starting retry manager"
time="2022-02-11T14:39:34Z" level=debug msg="event implies that an ip needs to be created" event_type=ADDED service=default/nginx-deployment service_ip=
time="2022-02-11T14:39:34Z" level=debug msg="[createIp] default/nginx-deployment: getting target node for new floating ip"
time="2022-02-11T14:39:34Z" level=debug msg="[getFloatingIpTargetServerForNewIp] default/nginx-deployment: fetching endpoints"
time="2022-02-11T14:39:34Z" level=debug msg="[getFloatingIpTargetServerForNewIp] default/nginx-deployment: no endpoints object found; using node-0.example.com"
time="2022-02-11T14:39:34Z" level=debug msg="[GetFloatingIp] loading floating ip xxx.xxx.xxx.xxx on cloudscale.ch"
time="2022-02-11T14:39:34Z" level=info msg="ip address xxx.xxx.xxx.xxx for service default/nginx-deployment created successfully and attached to node-0.example.com"
time="2022-02-11T14:39:34Z" level=info msg="load balancer ingress for service default/nginx-deployment updated successfully and attached to node-0.example.com"
time="2022-02-11T14:39:34Z" level=debug msg="event implies that the service already has an ip" event_type=MODIFIED service=default/nginx-deployment service_ip=xxx.xxx.xxx.xxx
time="2022-02-11T14:39:34Z" level=debug msg="[GetFloatingIp] loading floating ip xxx.xxx.xxx.xxx on cloudscale.ch"
time="2022-02-11T14:39:34Z" level=info msg="successfully verified ip xxx.xxx.xxx.xxx for service default/nginx-deployment attached to "
time="2022-02-11T14:39:34Z" level=debug msg="[GetFloatingIp] loading floating ip xxx.xxx.xxx.xxx on cloudscale.ch"
time="2022-02-11T14:39:34Z" level=info msg="successfully verified ip xxx.xxx.xxx.xxx for service default/nginx-deployment attached to "
time="2022-02-11T14:39:35Z" level=debug msg="[GetFloatingIp] loading floating ip xxx.xxx.xxx.xxx on cloudscale.ch"
time="2022-02-11T14:39:35Z" level=info msg="successfully verified ip xxx.xxx.xxx.xxx for service default/nginx-deployment attached to "

Solution
We analyzed the code and found out, that verifyIp() was never being called to attach the Floating IP to the correct node.
We gave it a try by removing line 250-253 from event_processor.go, build the container image on adfinissygroup/cloudscale-slb-controller:dev and tried it out on a cluster.
This worked like a charm, and the Floating IP was being allocated on the correct node and also switching it in case the respective endpoint was starting somewhere else.
Can you please look at this, also why this piece of code was inside the function? Special reason for it?
Regards -- Adfinis
Thanks to @isantospardo for the help debugging this!

Signed-off-by: Toni Tauro<EMAIL_ADDRESS>

ping @msiegenthaler

Hey @eyenx
I agree that the current code is wrong, not sure why the short-circuit is there. With the fix there might still be an edge case when the 'existing-ip' annotation is changed, but I'll be better than now, no let's merge it.


No network device when mirrored network is enabled

Windows Version
Microsoft Windows [Version 10.0.22631.3374]
WSL Version
<IP_ADDRESS>
Are you using WSL 1 or WSL 2?

[X] WSL 2
[ ] WSL 1

Kernel Version
<IP_ADDRESS>-2
Distro Version
Ubuntu-22.04
Other Software
No response
Repro Steps

Add such config to .wslconfig

[wsl2]
networkingMode=mirrored

wsl --shutdown then wsl
ifconfig output is like this:

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet <IP_ADDRESS>  netmask <IP_ADDRESS>
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 76  bytes 6824 (6.8 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 76  bytes 6824 (6.8 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

There is no eth0 or other device, no matter there is or no proxy in windows.
Remove config above just works well.
Expected Behavior
There exist some network devices other than lo when mirrored network is enabled.
Actual Behavior
There is no network device other than lo when mirrored network is enabled.
Diagnostic Logs
No response

Closing since the issue is resolved.


Make RichFile a value class

Why are we making this a value class?

It's an enrich-my-type/syntax class, so we can avoid allocation.

I get that it tries but I'm not sure if it's worth it for non primitive
types given JITing.
Now you have code gen by the compiler.
On Mon, Jun 26, 2017 at 07:01 Dale Wijnand<EMAIL_ADDRESS>wrote:

It's an enrich-my-type/syntax class, so we can avoid allocation.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/sbt/io/pull/50#issuecomment-311028248, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AALRa4fjM02WLXmMFygOTVdo1HIeEwP0ks5sH49vgaJpZM4OEjp1
.

It's a 1 line source code change, that has the effect of transforming
new RichFile(f).exists

into
RichFile.extension$exists(f)

Looks like a good trade-off, to me.

I was wondering why sbt/sbt couldn't just bump IO to latest, and realized that this change broke bincompat, so it needs to propagate to all modules first.

Yes, that is expected.


Fix problems in msr_sqa

The last version has many problems,

Errors in table load-in. Split by a single comma instead of using pandas is wrong.
id reduplicated in _generate_examples function.
Missing information of history questions which make it hard to use.

I fix it refer to https://github.com/HKUNLP/UnifiedSKG. And we test it to perform normal.

It shows below when I run test:
FAILED tests/test_dataset_common.py::LocalDatasetTest::test_load_dataset_all_configs_msr_sqa - ValueError: Unknown split "validation". Should be one of ['train', 'test'].
It doesn't make no sense for me.

@albertvillanova Does this PR has some additional fixes compared to https://github.com/huggingface/datasets/pull/3771 or we can close it?

@mariosasko besides the fix of the DuplicatedKeysError, this PR:

changes the reading of one of the files: use pandas instead of splitting by comma
adds some extra logic in the processing of the data: adding a new field "question_and_history"

We should decide whether validating these additional changes.

for example, if we accept as pertinent the addition of the field "question_and_history", this should be added as feature to the info, and the matadata should be regenerated...

Hi guys, anything we can do to fix that bug👀? @mariosasko @albertvillanova @lhoestq

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.


Release WordPressCS 3.1.0

:warning: DO NOT MERGE (YET) :warning:
Please do add approvals if you agree as otherwise we won't be able to release.
PR for tracking changes for the 3.1.0 release. Target release date: Monday March 25, 2024.
Release checklist
General

[x] Verify, and if necessary, update the allowed version ranges for various dependencies in the composer.json - PR #2437
[x] PHPCS: check if there have been releases since the last WordPressCS release and check through the changelog to see if there is anything WordPressCS could take advantage of - PR #2429
[x] PHPCSUtils: check if there have been releases since the last WordPressCS release and update WordPressCS code to take advantage of any new utilities - PR #2437
[x] PHPCSExtra: check if there have been releases since the last WordPressCS release and check through the changelog to see if there is anything WordPressCS could take advantage of - PR #2409
[x] Check if the minimum WP version property needs updating in MinimumWPVersionTrait::$default_minimum_wp_version and if so, action it - PR #2436
[x] Check if any of the list based sniffs need updating and if so, action it.
:pencil2: Make sure the "last updated" annotation in the docblocks for these lists has also been updated!
List based sniffs:

[x] WordPress.WP.ClassNameCase - PR #2436
[x] WordPress.WP.DeprecatedClasses - PR #2436
[x] WordPress.WP.DeprecatedFunctions - PR #2436
[x] WordPress.WP.DeprecatedParameters - N/A
[x] WordPress.WP.DeprecatedParameterValues - N/A

[x] Check if any of the other lists containing information about WP Core need updating and if so, action it.

[x] $allowed_core_constants in WordPress.NamingConventions.PrefixAllGlobals -  N/A
[x] $pluggable_functions in WordPress.NamingConventions.PrefixAllGlobals - PR #2436
[x] $pluggable_classes in WordPress.NamingConventions.PrefixAllGlobals -  N/A
[x] $target_functions in WordPress.Security.PluginMenuSlug -  N/A
[x] $reserved_names in WordPress.NamingConventions.ValidPostTypeSlug - PR #2436
[x] $wp_time_constants in WordPress.WP.CronInterval -  N/A
[x] $known_test_classes in IsUnitTestTrait - PR #2407
[ ] ...etc...

Release prep

[x] Add changelog for the release - PR #2438
:pencil2: Remember to add a release link at the bottom!
[x] Update README (if applicable) - N/A
[x] Update wiki (new customizable properties etc.) (if applicable)

Release

[x] Merge this PR.
[x] Make sure all CI builds are green.
[x] Tag and create a release against main (careful, GH defaults to develop!) & copy & paste the changelog to it.
:pencil2: Check if anything from the link collection at the bottom of the changelog needs to be copied in!
[x] Make sure all CI builds are green.
[x] Close the milestone.
[x] Open a new milestone for the next release.
[x] If any open PRs/issues which were milestoned for this release did not make it into the release, update their milestone.
[x] Fast-forward develop to be equal to main.

After release

[x] Open a Trac ticket for WordPress Core to update.

Publicize

[ ] Tweet, toot, etc about the release.
[ ] Post about it in Slack.
[ ] Submit for "Month in WordPress".
[ ] Submit for the "Monthy Dev Roundup".

Target release date: Monday March 22, 2024.

I'm guessing this is a typo and should be Monday March 25, 2024?

Correct. Glad to see I didn't make the typo in the actual changelog 😁

Core ticket: https://core.trac.wordpress.org/ticket/60840

Release tweet: https://twitter.com/jrf_nl/status/1772308372349440306
Release toot: https://phpc.social/@jrf_nl/112157406276126311


Optimize /openid-endpoint call for token requests

Address customer feedback on optimizing token request turnaround times:
/openid-configuration endpoint: Per guidance from the AAD/STS server team, we will continue making this network call everytime a network call for a token is needed (and rely on cache headers to have the browser cache this call accordingly).
Use cases:

SSO with another client library: Ask from SPO to improve their performance. For SSO cases similar to them can we  provide an option for them to skip this and have them pass msal js the needed info (authority and logout URL etc.,)

Standalone msal js:

Customer feedback:

This adds somewhere between 70ms and 200ms to the token fetch time based on some profiles I just made. This is especially important when users to return to our app for the first time in a while and the 24 hour TTL on this file has expired. It ends up adding a significant delay to our first (and most important) token fetch. I'll leave the specifics up to the area experts, but here are some thoughts from an outside observer:

Is this file coming from a CDN? The network times are quite slow.
Can we have a longer TTL on this file?
If you fetch multiple tokens at the same time, each fires an openid-configuration call rather than sharing the first call. Can we make them share the same request?
Can we make this request early in the MSAL instantiation flow rather than waiting for the first token fetch?

Caching openid-configuration in local storage: it has to do with the fact that it is already cacheable for 24 hours. Caching it in local storage is useful because it removes asynchronicity and this is key to make things execute faster in high CPU contention scenario. Basically the ultimate goal is to get to /authorize call as quickly as possible in synchronous manner. Usual approach for something like is still to make network call but make it non-blocking and use only to update local cache so new value is used for next token fetch. Maybe I am over-simplifying things but it seems to me that there is an opportunity here for optimization.

Before we think about shipping our own caching mechanism for this call, we should do some in depth performance tests to compare local storage versus built-in browser caching. I'm not convinced yet that it will be worth the work, given it may only meaningfully benefit a relatively small percentage of users. I would hypothesize that the better approach would make it so we don't make that call at all, then to reinvent the wheel for how its cached.

Note that currently config response is being cached for limited amount of time so depending on how frequently app is being used you might end up taking a hit more often than you think. Even when response being cached by browser you end up taking a hit due to the fact that XHR is being used to fetch config and that results in queueing separate task to handle response which can result in significant delays in case of CPU contention which is common during app boot sequence.
The frustrating thing is that the config response is usually exactly the same. For instance in our case we use default authority (https://login.microsoftonline.com/common) and config request (https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration) always returns the following three pieces of info:
"issuer": https://login.microsoftonline.com/{tenantid}/v2.0
"authorization_endpoint": https://login.microsoftonline.com/common/oauth2/v2.0/authorize
"end_session_endpoint": https://login.microsoftonline.com/common/oauth2/v2.0/logout
This info may change but in practice it does not happen too often hence the suggestion to cache it locally. Local cache is almost guaranteed to be faster than hitting browser cache but most importantly it is synchronous which allows token fetching code to hit /authorize endpoint as quickly as possible.
I realize that library has to worry about many scenarios and understand the reluctance to support elaborate caching mechanism.
When do you expect to provide support for the case when client app is responsible for supplying authority configuration? At the very least this would open an opportunity for apps that really care about optimizing this flow to do their own caching implementation.

@AndreiZe Thanks for the feedback. Since we released<EMAIL_ADDRESS>today, this is the next task we are focused on. I would like to get a nod from the service team before finalizing our approach.
CC @hpsin. (I also added you in an email)

#1578 will allow you to provide your configuration object to skip this call. This will be included in the next release.