WIP: september workshop

omero workshop to be added when it is announced

@jburel : do you want me to try the headline suggestion here? And if so, @lunson, do you have an idea on how to add an "Upcoming" icon/cutie (:smile:)/etc to clearly mark the newest entries on https://www.openmicroscopy.org/events/.

@joshmoore feel free to push to this branch to try it out on. It is now a good example since we have 4 upcoming workshops

@joshmoore Simplest way is to use an icon from fontawesome (the CSS is already in the repo). I recommend star (https://fontawesome.com/icons/star?style=solid) or a colored circle (https://fontawesome.com/icons/circle?style=solid) similar to what we see on phone apps when a new version is downloaded.

Thanks!

https://snoopycrimecop.github.io/www.openmicroscopy.org/events/ and main page updated. Stars might be a bit too subtle:

A color will add some pop and get it noticed: <i class="fa fa-star" style="color: #df283f;"></i>

https://snoopycrimecop.github.io/www.openmicroscopy.org/events/ updated with @lunson's color suggestion:

Maybe a big icon will make it even more noticeable
but that might break the "balance" of the page.
It certainly looks nice.
I will review the content of the text today following the adjustment to the announcement so we can deploy it later on

The standard resizing for FontAwesome is to use fa-2x, fa-3x, etc. Attached is what the next size up (2x) looks like.

I recommend we stay put at the default 1x. It serves its purpose in that it is noticeable without being obnoxiously so, and it distinguishes the upcoming from the past events.

Thanks @lunson. Let's go with your suggestion and keep it to the default size

Could we please make it very clear, that these workshops are not organized by OME and there is no public registration (apart from the Dundee one obviously). I just got another email yesterday from someone asking about where to sign up for the Freising workshop.

We have a row Organiser
Maybe a note indicating to contact organiser directly

Something for the future: it could be worth going down the idr website route of storing event information in a CSV and converting it for display in jekyll, https://github.com/IDR/idr.openmicroscopy.org/blob/master/_data/releases.tsv

@dominikl: last commit should address the issue

Longer-term (after this PR) I could see adding more context than "future" v. "past" to the /events page:

past
future: registration closed/full
future: registration open
future: registration not-yet open
future: external

The line-spacing mentioned in https://github.com/ome/www.openmicroscopy.org/pull/303#pullrequestreview-268412256 is still present

@manics thanks for the clarification. I misunderstood, I though you were talking about the space between the two red boxes since they were almost touching

@manics I have used 1.4 in CSS we might want to go to 1.3

I'd vote for getting this in and deployed now that the dev workshop announcement is out.

Looks good. Ready to merge FMPOV.

Thanks merging and deploying website


Add warning if requests take longer then 10 seconds to process

The bot has roughly 10-12 seconds to respond to a received activity before the channel times out. A channel timing out can result in some cases the message being re-delivered and in the case of cortana the skill being prematurely ended.
This feature would add a piece of middleware or sample that would log out that the bot is taking too long and the developer should investigate why. It could for instance log a warning for requests longer than 8 seconds and an error for requests longer then 12 seconds.

Once @cleemullins middleware M2 changes are in I am happy to pick this up and add a piece of middleware that can achieve the above (I am also working on ShowTyping, CatchException and ActivityFilter so makes sense that I pick this up as part of this - I have these ready, I am just waiting for the M2 bits to be merged). I propose we make the timeout period before the warning configurable when the middleware is added, with the defaults set to 8 second warning and 12 second error. @Stevenic how does that sound if you were to implement the equivalent in Node?

@cleemullins @Stevenic Also, I am planning to write a generic ConversationTimeout middleware which can allow the dev to prompt the user to continue or restart the conversation if they have not interacted with the bot for a given period of time.  This needs the state changes to be considered first - plus thought into how the developer can indicate if the prompt is required (i.e. it only makes sense if the user is in the middle of a conversation flow before the timeout). Ill put some thought into this and report back, but it feels like this is something that is a common enough requirement to be added to the core extensions.

@garypretty the configurable warning and error sounds reasonable.  In fact you could probably just get away with logging the warning.
@garypretty the I'm not sure about putting your ConversationTimeout middleware into core but it definitely sounds useful.  My hesitation around putting it into core is that it's planning to do dialog with the user which is something we've been trying to make the core components avoid.

@stevenic I get the general rule of not putting dialog with the user into middleware, but I think this might be an exception as I think middleware suits this scenario perfectly. The plan would be a handler approach so the developer would be responsible for implementing the conversation and the middleware just for taking the timeout. Does that make sense? I think it is a common enough car for inclusion. Based on that does that change your thinking?

Oh no... I think it's a good scenario I just meant that we've been avoiding putting that type of middleware into our core SDK.
I think letting the developer provide a handler is fine but I wonder how you would deal with the multi-turn nature of asking the user if they want to continue.   You'd also want to remember the original activity and play it back should they say "yes".  You could do all of that fairly easily if the dialog is internal to the plugin but its the dance between the plugin and the devs handler that seems tricky.

Yes, when you mention the multi turn nature that does make sense. I'll stick with the exception handler, show typing and activity filter middleware for the core extensions for now and maybe create a sample in my own repo for the conversation timeout then. Great to chat that through 👍

There's a PR sitting out there for this, but we decided to put this (for now) in a Toybox or similar - not in the core product.


Adds incremental support to the FHIR-search mode.

Description of what I changed

This fixes #494 by adding support for --since option to the FHIR-search mode of the pipeline.
It also fixes #532 by enabling FHIR-search mode in the controller.
E2E test

TESTED:
Beside unit/e2e tests, ran the controller locally with only fhirServerUrl set (i.e., no dbConfig) and tested both full and  incremental runs.
Checklist: I completed these to help reviewers :)

[x] I have read and will follow the review process.

[x] I am familiar with Google Style Guides for the language I have coded in.
No? Please take some time and review Java and Python style guides.

[x] My IDE is configured to follow the Google code styles.
No? Unsure? -> configure your IDE.

[ ] I have added tests to cover my changes. (If you refactored existing code that was well tested you do not have to add tests)

[x] I ran mvn clean package right before creating this pull request and added all formatting changes to my commit.

[x] All new and existing tests passed.

[x] My pull request is based on the latest changes of the master branch.
No? Unsure? -> execute command git pull --rebase upstream master

@chandrashekar-s please note that this is based on PR #679; so only the last commit belongs to this PR and needs your review; thank you.


Combining Entities

Hi there.
How to combine multiple entities/dimensions?
For example, supose I have a supermarket chain and I want to know:

The average money spent by customers in grossery items in California

Grossery items (product family) and State should be added to the features attributes of the customer_stream activity? What if I want to zoom in trough these dimensions (product name and city)?

Hey Gustav. Each activity only holds data specifically about that activity.
For example, a 'completed_order' event would have a total amount paid, but not necessarily the state it was purchased in.
To track the exact list of items purchased you could make a 'purchased_item' activity for each individual item in the order. That activity could have item sku, item name, item category (i.e. grocery).
It helps to also think about who is the customer for the activity stream too. In your case the customer could be a store instead of a person.
So the 'completed_order' event's 'customer' would be store_123. The store would have metadata saying its country / state. So from that you have all the pieces to put together the queries you mentioned.
Let me know if that makes sense!


Inconsistencies between browser instances

First of all: great idea, great project, apparently a great community.
Now: I'm having problems running a HubPress blog from more than one machine. An entry written on computer B, in Firefox, doesn't appear in the list of entries on computer A, in Google Chrome. It still is there in the repository and in the local clone on computer A. But when regenerating the pages from computer A, the entry disappears from the main index.html.
Emptying the cache on computer A doesn't help. Is there a way to sync a local browser instance of HubPress with the current HubPress fork in my GitHub account?

Hi @konstantinklein !
Thank you for trying HubPress :smile:
Actually, the only way to sync posts is to logout/login from HubPress.
I will add a button to sync your posts in a future version

Hi @anthonny ,
that's what I've tried before, and did again after reading your message. The bad news is: it doesn't work. Upon login I receive a message that all entries have been synced. A look into my GitHub repository, however, reveils that there are .adocs which I've written earlier with HubPress, which are not syncronized by the currently running instance of HubPress. In return, HubPress doesn't include them in the main index.html even when the appropriate HTML files are still accessible from a browser.
The page in question is http://blog.konstantinklein.com/2015/05/11/Lava-pffft.html, the _docs/2015-05-11-Lava-pffft.adoc is there as well, but HubPress won't recognize any of them. And I haven't edited any of them manually, i.e. locally and pushed them to GitHub afterwards.
Any ideas? Thanks a lot!

Hi @konstantinklein ,
I figured out the issue, its because the IndexedDB on chrome is a bit tricky to delete via the usual methods.
So just a work around :

Logout from hubpress, and close the tab ( just for safety, shouldn't matter if you don't ).
In a separate tab on chrome's address bar go to: chrome://settings/cookies
In the search box on the dialog, type your domain name, such as : yourusername.github.io, this is where your blog is hosted, it should be your custom domain in case you are using one.
Finally click the cross button ( 'X' ) to remove the cookies, IndexedDB, etc., relative to entries for your domain.

Then simply refresh and re-login to hubpress. Should do the job. While personally I think maybe a button as suggested by @anthonny should be a more viable option for the everyday user.
Refer below for details:
http://stackoverflow.com/questions/9384128/how-to-delete-indexeddb-in-chrome
Thanks.
regards,
raisedadead

Hi @raisedadead,
in a separate conversation on Gitter, @anthonny already talked me through the deletion of the IndexedDB in Chrome, which was particularly useful since deleting everything (cookies and anything elese) related to HubPress in Chrome's settings hadn't helped before.
Doing the same thing in Firefox (Windows) worked like a charm, though.
Thanks!
konstantin

I reckon we should add this great suggestion to the README/User Guide. I
also think that generic message I grammar checked "Check developer console
for details" needs to show folks how to actually get there. It displays
pretty regularly. I think because of the terseness of that message, a link
to the user guide might be worthwhile.
On Sun, May 24, 2015, 00:01 Konstantin Klein<EMAIL_ADDRESS>wrote:

Hi @raisedadead https://github.com/raisedadead,
in a separate conversation on Gitter, @anthonny
https://github.com/anthonny already talked me through the deletion of
the IndexedDB in Chrome, which was particularly useful since deleting
everything (cookies and anything elese) related to HubPress in Chrome's
settings hadn't helped before.
Doing the same thing in Firefox (Windows) worked like a charm, though.
Thanks!
konstantin
—
Reply to this email directly or view it on GitHub
https://github.com/HubPress/hubpress.io/issues/211#issuecomment-104900599
.

@konstantinklein and @jaredmorgs  I agree this should go into the user guide as a F.A.Q at least :+1:
thanks,
raisedadead

I'm having the same issues, it would be nice to have just a general "sync" button

We've now got the resync function which fixes this issue.


Add Xcode 14 to CI

Going to convert to a draft for now, the watchOS and tvOS simulators aren't currently installed on this new GitHub image. Hopefully they'll add it soon...


Keep pinned tabs when project closes

It would be nice if you could keep tabs pinned when you close a project and/or close atom, instead of having to re-pin.

That means I'd have to persist pinned path, I'm not sure it's even possible.

This package keeps pinned tabs when closing Atom, maybe that helps? https://atom.io/packages/pinned-tabs


minor bug in Linux vm_config.sh?

Describe the bug
By inspection, there appears to be a minor bug in templates/workspace_services/guacamole/user_resources/guacamole-azure-linuxvm/terraform/vm_config.sh.
The end of the script has a "cleanup" which reboots the machine, but the script has code after that to prevent the screen timeout. That code is never going to be executed.
[...]
## Cleanup
echo "init_vm.sh: Cleanup"
sudo shutdown -r now

# Prevent screen timeout
echo "init_vm.sh: Preventing Timeout"
sudo touch /home/"${VM_USER}"/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-screensaver.xml
sudo chmod 664 /home/"${VM_USER}"/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-screensaver.xml
sudo chown "${VM_USER}":"${VM_USER}" /home/"${VM_USER}"/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-screensaver.xml
sudo tee /home/"${VM_USER}"/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-screensaver.xml << END
<?xml version="1.0" encoding="UTF-8"?>
<channel name="xfce4-screensaver" version="1.0">
  <property name="saver" type="empty">
    <property name="mode" type="int" value="0"/>
    <property name="enabled" type="bool" value="false"/>
  </property>
  <property name="lock" type="empty">
    <property name="enabled" type="bool" value="false"/>
  </property>
</ channel>
END

Hi @TonyWildish-BH that code does still get executed, I've checked the logs. There's a PR open to change how the system prevents the timeout.


callback function never gets called in CGDataProviderRef dataProvider = CGDataProviderCreateWithData(NULL, rawImagePixels, sizeTBytesForImage, dataProviderRelease);

hi, Brad,
In GPUImageFilter.m file, through Instruments profiling, I can see significant memory leaks with -[GPUImageFilter imageFromCurrentlyProcessedOutput] as listed below.
Bytes Used  Count       Symbol Name
65.87 MB     100.0%   28805       * All Allocations *
60.96 MB      92.5%   2       Malloc 30.48 MB
60.96 MB      92.5%   2        -[GPUImageFilter imageFromCurrentlyProcessedOutput]
60.96 MB      92.5%   2         -[GPUImageFilter imageByFilteringImage:]
60.96 MB      92.5%   2          -[imageViewViewController makeGPUImageToonFilter:]
It turns out that the callback function of "CGDataProviderCreateWithData" never gets called to free rawImagePixels. Could you give it a try and set up a brkpt inside this callback function on your bench to see if it's getting called?
I am using ios5.0.1 on iphone4s. thanks a bunch in advance.
Andrew
GLubyte *rawImagePixels = (GLubyte *)malloc(totalBytesForImage);
CGDataProviderRef dataProvider = CGDataProviderCreateWithData(NULL, rawImagePixels, sizeTBytesForImage, dataProviderRelease);
void dataProviderRelease (void *info, const void *data, size_t size)
{
[[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:NO];
NSLog(@"before: free malloc in GPUImageFilter");

free((void *)data);

 NSLog(@"after: free malloc in GPUImageFilter");
//free((void *)data);

}

Isn't there supposed to be an ampersand before the callback (&dataProviderRelease)?

Oh, one more thing: whether the callback gets called or  not is moot in a multithreaded environment.
malloc doesn't free when whatever it allocates on one thread is deallocated on another. Wrap your code in this:
dispatch_async(dispatch_get_main_queue(), ^{
// malloc and whatever other code goes here...

});


How to access the domain out of class AppModuleShared in app.module?

Hello,
I want to get the domain out of class and can't inject it in some constructor. How I can get the domain? The case is:
In app.module.ts I have to set one config object which have to be set in imports ->  NgcCookieConsentModule.forRoot(cookieConfig) which is the part of class decorator. So I want to have the object before class declaration and add this code:
const cookieConfig: NgcCookieConsentConfig =    {     "cookie": {       "domain": ${ORIGIN_URL}     },   "palette": {     "popup": {       "background": "#efefef",         "text": "#404040"     },     "button": {       "background": "#8ec760",         "text": "#ffffff"     }     },   //"type": "opt-out",   "theme": "classic", //'edgeless',     "position": "bottom-right"   };
But ORIGIN_URL is injector and I haven't access to the domain.
How I can access the domain in this case?
Thank you
GetTaxSolutions

We need to see how your code is actually setup, in full... I can't really gather much from what you have described here... My only suggestion I can come up with, is to replace ${ORIGIN_URL} with just plain old ORIGIN_URL as, that text is actually just a variable, that you can throw into places... For an example, see how it is used in the TranslateModule:

In app.module.ts
const cookieConfig: NgcCookieConsentConfig =    {     "cookie": {       "domain": ${ORIGIN_URL}`
},
"palette": {
"popup": {
"background": "#efefef",
"text": "#404040"
},
"button": {
"background": "#8ec760",
"text": "#ffffff"
}
},
"theme": "classic",
"position": "bottom-right"
};
console.log("===========AppModuleShared===============");
console.log(JSON.stringify(cookieConfig));
console.log("===========End AppModuleShared===============");
.....
@NgModule({
....
imports: [
NgcCookieConsentModule.forRoot(cookieConfig),
.....
]
})
export class AppModuleShared {
}`
The result in console is:
'{"cookie":{"domain":"InjectionToken ORIGIN_URL"},"palette":{"popup":{"background":"#efefef","text":"#404040"},"button":{"background":"#8ec760","text":"#ffffff"}},"theme":"classic","position":"bottom-right"}'
The domain property is not actually domain. How I can get the domain and pass it here? That was my question.
The result in consol


Fix the bug that layers got updated in the middle of the picking cycle

@Pessimistress
please take a look and see if I understand your request correctly
@ibgreen

@Pessimistress

#443


⚠ Panoramas has degraded performance

In 034503c, Panoramas ($SITE_URL_PANORAMAS) experienced degraded performance:

HTTP code: 200
Response time: 6873 ms

Resolved: Panoramas performance has improved in 36db484 after 6 minutes.


sensory

I have a rasberry pi 3 and get as far as the  sudo bash setup.sh config.json -s 1234 command
however when the install gets to the section
=================>CLONING AND BUILDING SENSORY<=======================
I get this message :
Cloning into 'alexa-rpi'...
fatal: unable to connect to github.com:
github.com[0: <IP_ADDRESS>]: Connection timed out
github.com[0: <IP_ADDRESS>]: Connection timed out
I have tried cloning the sensory rpi git as suggested in issue  #94 but it leads to the smae message
has anyone got a fix for this or is there a way to manually install this sensory software package ?

Hello, I will be closing this thread due to inactivity, but feel free to reopen if you need further assistance.


Fixed #35159 -- Fixed dumpdata crash when base querysets use prefetch_related().

Regression in<PHONE_NUMBER>50ed6aaaf4c755b82c3bd43f2b8f51 following a deprecation in edbf930287cb72e9afab1f7208c24b1146b0c4ec.
Thanks Andrea F for the report.
ticket-35159

@drefrome Does it work for you?

@drefrome Does it work for you?

Looks great. Thank you so much!

Thanks y'all for checking :+1:


[admin] merge to live

update links

Docs Build status updates of commit 43c8b1d:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

api/Excel.Workbook.ExportAsFixedFormat.md
:white_check_mark:Succeeded
View

api/PowerPoint.Presentation.ExportAsFixedFormat.md
:white_check_mark:Succeeded
View

api/PowerPoint.presentation.exportasfixedformat2.md
:white_check_mark:Succeeded
View

api/Word.Document.ExportAsFixedFormat.md
:white_check_mark:Succeeded
View

api/Word.Document.ExportAsFixedFormat2.md
:white_check_mark:Succeeded
View

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


flow-typed react

Hi, I tried to convert the d.ts of react library to flow-typed but I failed as flow has less constructs. Is there any typing available for react? Thanks!

I think React is officially supported by Flow. See https://flowtype.org/docs/react.html

Exactly, for now the react libdef is in the flow project itself.
You can find the definitions here (if you are interested in the internals): https://github.com/facebook/flow/blob/master/lib/react.js

Thanks.

Hmmm, this does not seem to work. The moment I put node_modules into [ignore] part. React no longer recognises React.Component. Is that normal?
I even tried to copy that definition into my libs folder to no avail.
What I noticed is that they defined the lib as declare react. In m experience this does not work and needs to be defined as declare 'react'. Anyone managed to solve this?

React no longer recognises React.Component

Do you have a repo to show the faulty code? Usually you don't need to do configure anything.
In case it is useful, here is a working example of mine: https://github.com/runtastic/flow-guide/blob/master/tutorial/01-react/00-intro.js

@ryyppy Thanks for your kind answer.
I have nailed the culprit but it looks like a big in flow. I have created a reproducible repo here: https://github.com/tomitrescak/flow-crash-example.git
I know its a bit of files, but the only file one needs to focus on is the "declarations/semanticui-react.js".
When you compile the project now you will see no errors (only eslint crashes on the declaration of the class), but when you try to make eslint happy and you change
import React from 'react';

to
import { Component } from 'react';

Flow stops to recognise Component in React and throws several errors. Any idea what could be going wrong?


How to plot attention matrix

1-How can I plot the transformer attention matrices of the translated text in sockeye?
2-How can I translate a test file containing about 10 lines of a language after training my model with sockeye?
3-How can I plot my BLEU score, loss, perplexity, learning rate scores after training?
4-can sockeye do Minimum risk training for neural machine translations using transformers? if so how can I do it?
I have already looked at the documentation not much info if you can specify the exact command for me it will be helpful
how can I view the list of parameters/ description of sockeye-train, sockeye-prepare-data, sockeye-translate, sockeye-average and sockeye-embedding?

For more information on training, monitoring, and evaluating Sockeye models, you can take a look at our tutorials: WMT German to English news translation and Large data: WMT English-German 2014.
To see a detailed list of arguments for any command, you can add the -h flag. For example: sockeye-train -h
Sockeye 3 does not implement minimum risk training or attention visualization.


not easy to remove background on challenge

I do not want an image as the background to my challenge screen but rather a plain color.  since a default image is inserted into the elements style definition, i cannot override it with css.

how do i specify no background image in either the .yaml file or in css.  the following does not work...
#pro-background {
    background-color: #37A806;
    background-image: none;
}

for example something like this would be useful in the .yaml.
pro-background : none

i worked around this issue by just creating a simple 1x1 px image (http://www.1x1px.me/) with the solid color i wanted.  this works for now but maybe worth coming up with a cleaner solution.

I have pushed some experimental new support to give you better control over the background rendered by the GitPitch Publishing Confidential Mode challenge screen.
The default challenge screen renders as shown here:

Per your suggestion you can now specify none on the pro-background setting:
pro-background : none

When none is set on this property the default background image is hidden as shown here:

As you can see the default background color is black. A new setting pro-background-color is now provided that gives you a quick and easy way to activate a custom background color. For example:
pro-background : none
pro-background-color : "#3686E4"

These sample settings render as shown here:

The new pro-background-color setting can also be used to activate a background color gradient using any valid CSS linear-gradient value, for example:
pro-background : none
pro-background-color : "linear-gradient(to right top, #051937, #004d7a, #008793);"

These sample settings render as shown here:

This support has been added to GitPitch Desktop so you can test there using the special http://localhost:9000/gitpitch/confidential url in your browser. This also can be tested live on gitpitch.com.
As this needs real world testing so I will await your feedback before moving ahead with formal docs. Thanks, David.

changes look great locally!

This feature has been implemented and documented here. Closing RFE.


Update examples-using-path-mode.md

@igorradovanov : Thanks for your contribution! The author, @douglaslMS, has been notified to review your proposed change.

#sign-off


feat: can fetch properties from ClassPacket

During development of rustynet I intend to leverage the ClassPackage implementation in this crate to identify the devices. However, although properties are wrapped by the structs here, they are not accessible publicly.
This adds a very simple implementation to allow external crates to access this data.
Note that this is probably not very idiomatic. It can probably be done better using traits and/or macros, but this gets the job done.

I honestly wonder if it is not even better to extend mra_reader to auto generate this code from the specification. Given that json file also contains the data type definition, it might be a good way to abstract directly into an API that we can add on top later.


Show op and asmop in the DebugOutput

We don't show op: Option<Operation> or asmop: Option<AsmOpInfo> in the output. We cannot simply return Operation or AsmOpInfo, but we might be able to deserialize it.
This is not super complicated but we need to decide how we want to show it.

@Dominik1999 could you elaborate a bit, what do you mean by show and why is that currently not possible?

Yes, will do. This was more less a placeholder issue. Will do tonight

Will close this now because in #79 it works


Workaround for Paket.Push 500 error on VSTS + Linux

Solves #2037.
This is a simple fix that shouldn't cause any issues (seeing as we're already using CLRF from windows previously).

thx


Improve max of BatchedTensor(Seq)

Codecov Report
Patch coverage: 100.00% and no project coverage change.

Comparison is base (f8cc426) 100.00% compared to head (d3c43b8) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #396   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           19        19
  Lines         1777      1770    -7
  Branches       186       185    -1
=========================================
- Hits          1777      1770    -7

Files Changed
Coverage Δ

src/redcat/tensor.py
100.00% <100.00%> (ø)

src/redcat/tensorseq.py
100.00% <100.00%> (ø)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Correction for raw affiliation MoISA, Université Montpellier, CIHEAM-IAMM, Cirad, INRAE,

Correction needed for raw affiliation MoISA, Université Montpellier, CIHEAM-IAMM, Cirad, INRAE,
raw_affiliation_name: MoISA, Université Montpellier, CIHEAM-IAMM, Cirad, INRAE,
new_rors: 0005r2j17;011xg1225
previous_rors: 0005r2j17
works_examples: W4389442223
contact: 8b4ddfa66741be4757d37fffb7d38877:6f82e1575d478980 @ supagro.fr

This issue was accepted and ingested by the OpenAlex team on 2024-12-19. The new affiliations should be visible within the next 7 days.


Web theme does not work (6.0.0.-nightly Build fb56607d)

As user of AMOLED i'd like to use a dark mode render.
With menu "Web theme - force dark mode" the page is rendered dark as expected. But surfing to next site, the render mode is back to normal (e.g. white background).  Also just enter the "Web theme" menu and go back to page, force the "force dark mode" of the actual page.
Second option in "Web theme" the  "dark mode" does not work at all, at least white backgrounds remains white (e.g. google).
Side question: How to change then menu language to english?

@hazuki0x0
Please add either "force to use English" or "language selection" option.

It did not reproduce in my environment. Please add more information (ex. Device environment, settings).
"dark mode" is only enabled if it is set on the site side, so it will be displayed normally (white background) on most sites.
You can change the language in the debug settings in the overflow menu in the settings. However, since this setting is a debug setting, there is no guarantee of normal operation.

Using Android 9; LG V30

Web Theme is set to "force dark mode".
browse to https://github.com/hazuki0x0/YuzuBrowser the page background is white
Enter YUZU settings and leave it by back button (app or android) and page background is rendered dark as expected
reload page keep background dark, surfing to next page e.g. by clicking issues, background is white. Open/leave settings dark again.

Same can be observed by using "Prefere web theme over force dark mode" in Web Theme menu.
Seem as the setting is not processed at page loading, just triggered by leaving the setting menu
Page mode where night, inverted, grey,... can be configured, is set to normal (honestly I would expect there the force dark mode). Design is set to dark. Changes of these settings does have no impact of the "force dark mode" behaviour.
Hope you can reproduce and make "force darke mode" happen.
Set language to english in debug menu without any changes, also after restart. Menu language remain in same as after installation.

Language control works now with build f0faa63 (20210217). Great!
"Page mode where night, inverted, grey,..." menu called "Rendering mode"


Provides additional settings and debug messages to DS MBP installation.

What's this PR do?

Sets additional Drupal message during dosomething_mbp install stage to ensure its execution
Specifies explicit message_broker_producer  dependency
Automatically sets rabbitmq password from env variable

:+1:


[Anime|Manga] better relation types handling

Proposed for version: 4.0
Currently they're dynamically parsed strings from MAL. Which include spaces and non-linear schema patterns.
Update 14/2/2019
No need for snake case. Going for this schema:

Added in branch v4

Added in branch v4


Add lcsd.ms

@Yeahimbrody lib/domains/us/ms: this request has an incorrect file path format, please ensure that you are familiar with     this repository rules located at the bottom of this page and change     your request accordingly. If you don't know how to change request, close it and open a new one.     If you are not able to make the pull request according the instructions, please send us an email to<EMAIL_ADDRESS>Please mention this request URL in the message.

@Yeahimbrody I am sorry, I have to close the request without merging, because you made a mistake in a request and did not specify any valid filepath. Please ensure that you are familiar with this repository rules located at the bottom of this page and make a new correct request. Thank you for the understanding!


k8s audit logs dont see to have a maxage or maxsize configuration.

k8s audit logs dont see to have a maxage or maxsize configuration. causing massive amounts of log files
https://github.com/rancher/rancher/issues/6119

the issue might be we're launching the docker containers without max-size max-file options.

Workaround could be to upgrade the k8s service within the k8s stack and provide max-size and max-file under the log options in the security/host tab.

With the release of Rancher 2.0, development on v1.6 is only limited to critical bug fixes and security patches.


Grid paint activity issue.

When I right click on screen it doesn't emulate right click instead it just works like if I clicked on it or something which doesn't feel right.

Right click is not a good practice, specifically because Sugarizer could be use on touch screen.
What you expect to do with a right click?

Sorry, I couldn't able to put my point across last time but I'd still argue this, in fact, is a bug. When I right click on any page, I except my chrome (or other browsers) native dialog to be open.
Like this:

If it doesn't emulate this native dialog on right click and just works like a normal click, is , in fact, a bug.
You are right, right click is not a good practice for the app. That is why this is a bug.

No you're wrong, the good practice is to not count on right click.
So considering right click like left click is not a bug.

Maybe you right, but still, might want to inspect page or translate the page or something like that by clicking right. I just can't imagine why emulating click would be good practice.

Is this discussion for GridPaint or for any Sugarizer activity?
I tested right-click on the Markdown activity through dev.sugarizer.org and I get the usual context window from Firefox 57.  Which makes sense here: it is useful to be able to copy and paste text in a text application, whether I use it on a smartphone or on the web.
If the discussion is general, perhaps who should have it activity by activity instead?
I agree that with @satyamchaudharydev that always considering right-clicking as left-clicking in all activities would be confusing.

Left click and Right click events in JavaScript are handle in the same way: by onmouse events. It doesn't do distinction between left/right click. I don't find pertinent to specialize the source code to do a differentiation because the right click is a legacy feature: most systems tend to totally remove it (written from a MacBook without right button).
Regarding Markdown activities - or other activities with input/text fields - the right click event is handle by the browser, not into the activity.

Regarding Markdown activities - or other activities with input/text fields - the right click event is handle by the browser, not into the activity.

Okay, then it's fine for those activities.
But just to be sure I understand: in other activities, what does the right-click event? Is it ignored? Considered as a left-click event? My expectactions would be that the right-click event consistently triggers the usual browser context menu.

Other activities (Paint, Maze, Physics, ...) process mouse click in the same way because as I said it depends of JavaScript. So for all activities right click = left click.
So yes, it's consistent but not necessarily in the way you expect :-)


Intermittent ProviderNotFound Exception

I have the firewall cookbook in my base cookbook repo and a resource that configures the firewall for my centos nodes. I've been getting these at random points, usually when the base cookbook is specified in the run list before the node's recipes. If I reverse the order and have the base last in the order in the run list, I don't get this Exception. I want to be able to specify the base cookbook first in the run list for obvious reasons. What's going on with this?
       ================================================================================
       Error executing action `enable` on resource 'firewall[centos-firewall]'
       ================================================================================

       Chef::Exceptions::ProviderNotFound
       ----------------------------------
       Cannot find a provider for firewall[centos-firewall] on centos version 7.0.1406

       Resource Declaration:
       ---------------------
       # In /tmp/kitchen/cache/cookbooks/discogs-base/recipes/default.rb

        91:   firewall 'centos-firewall' do
        92:     action :enable
        93:   end
        94:

       Compiled Resource:
       ------------------
       # Declared in /tmp/kitchen/cache/cookbooks/discogs-base/recipes/default.rb:91:in `from_file'

       firewall("centos-firewall") do
         action [:enable]
         retries 0
         retry_delay 2
         default_guard_interpreter :default
         subresources [firewall_rule[consul], firewall_rule[consul400], firewall_rule[consul500], firewall_rule[consul600], firewall_rule[nrpe], firewall_rule[ssh], firewall_rule[mysql], firewall_rule[app], firewall_rule[http]]
         declared_type :firewall
         cookbook_name "discogs-base"
         recipe_name "default"
       end

Hi @jslusher - I wonder if it has to do with your platform version 7.0.1406? I'm not used to seeing a bugfix release in that string. Could you share with us your chef version, contents of /etc/redhat-release (where ohai gets version from), and the output of ohai | grep platform?
The current mapping statement seems like it would satisfy your version:
Chef::Platform.set platform: :centos, version: '>= 7.0', resource: :firewall, provider: Chef::Provider::FirewallFirewalld

Here's what I get on our test CentOS 7.0 images for ohai | grep platform:
# ohai | grep platform
  "platform": "centos",
  "platform_version": "7.0.1406",
  "platform_family": "rhel",

  ohai | grep platform
  "platform": "centos",
  "platform_version": "7.0.1406",
  "platform_family": "rhel",

cat /etc/redhat-release
CentOS Linux release 7.0.1406 (Core)

       Starting Chef Client, version 12.4.1

Hmm. Everything there looks correct. Do you have depends 'firewall' in the base cookbook's metadata?

depends 'firewall', '~> 1.6.0'

I just got it to work on Chef version 12.2.1

I'm not sure about intermittent behavior, but I was able to converge on our centos-7.0 test suite with chef chef-12.4.1 just fine.

Yeah, I don't know what to say. It recently started doing this, and like I said, if the base cookbook isn't the first item in the run list of a chef node, it work every time. It's only when the base cookbook is listed as the first in the list. I'll lock the Chef version to 12.2.1 and update this if it ends up happening on that version. Thanks for responding to this. It's a really strange issue.

If your testing were to use a role that called it from a cookbook that had the lwrps in the default recipe, I wonder if it would reproduce the problem. It seems pretty consistent using chef 12.4.1 when in this configuration.
My role file looks like this:
https://gist.github.com/jslusher/5a38a97ac9d964ce86ad
The firewall section in recipes/default.rb of my base cookbook looks like this:
https://gist.github.com/jslusher/d465875d75830d69774e

@jslusher the CI testing we do is actually very, very similar. The only major difference is not using a role, and calling include_recipe 'firewall' from the test fixture (what would be your 'base' recipe in this analogy). Can you see if you can reproduce by no longer adding firewall to the runlist, but including it from base?
Also, it seems like you're enabling the firewall in base, and then running firewall::default which enables the firewall again under a different resource name. While the provider is capable of detecting it is already running (and hence, idempotent to some degree), maybe that's some part of the issue?

@martinb3 it looks like i might be seeing the same issue, i'm not sure what i might be missing. This happens on every attempt, I haven't gotten the cookbook to work at all.
Here are the debugging details:
vm

# chef-client -version
Chef: 12.4.1

# ohai | grep platform
  "platform": "centos",
  "platform_version": "6.6",
  "platform_family": "rhel",

# cat /etc/redhat-release
CentOS release 6.6 (Final)

workstation
⇒  grep "firewall" metadata.rb
depends "firewall"

My Cookbook
include_recipe 'firewall'

Error

       Recipe: firewall::default
         * firewall[default] action enable

           ================================================================================
           Error executing action `enable` on resource 'firewall[default]'
           ================================================================================

           Chef::Exceptions::ProviderNotFound
           ----------------------------------
           Cannot find a provider for firewall[default] on centos version 6.6

           Resource Declaration:
           ---------------------
           # In /tmp/kitchen/cache/cookbooks/firewall/recipes/default.rb

            20: firewall 'default' do
            21:   action :enable
            22: end
            23:

           Compiled Resource:
           ------------------
           # Declared in /tmp/kitchen/cache/cookbooks/firewall/recipes/default.rb:20:in `from_file'

           firewall("default") do
             action [:enable]
             retries 0
             retry_delay 2
             default_guard_interpreter :default
             subresources [firewall_rule[allow world to ssh]]
             declared_type :firewall
             cookbook_name "firewall"
             recipe_name "default"
           end

       Running handlers:
       [2015-07-31T19:41:58+00:00] ERROR: Running exception handlers
       Running handlers complete
       [2015-07-31T19:41:58+00:00] ERROR: Exception handlers complete
       Chef Client failed. 0 resources updated in 12.246211079 seconds
       [2015-07-31T19:41:58+00:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out
       [2015-07-31T19:41:58+00:00] ERROR: firewall[default] (firewall::default line 20) had an error: Chef::Exceptions::ProviderNotFound: Cannot find a provider for firewall[default] on centos version 6.6
       [2015-07-31T19:42:00+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
rake aborted!

Stacktrace log:
Chef::Exceptions::ProviderNotFound: firewall[default] (firewall::default line 20) had an error: Chef::Exceptions::ProviderNotFound: Cannot find a provider for firewall[default] on centos version 6.6
/opt/chef/embedded/apps/chef/lib/chef/platform/provider_mapping.rb:179:in `find_provider'
/opt/chef/embedded/apps/chef/lib/chef/platform/provider_mapping.rb:106:in `find_provider_for_node'
/opt/chef/embedded/apps/chef/lib/chef/provider_resolver.rb:129:in `maybe_chef_platform_lookup'
/opt/chef/embedded/apps/chef/lib/chef/provider_resolver.rb:62:in `resolve'
/opt/chef/embedded/apps/chef/lib/chef/resource.rb:1205:in `provider_for_action'
/opt/chef/embedded/apps/chef/lib/chef/resource.rb:584:in `run_action'
/opt/chef/embedded/apps/chef/lib/chef/runner.rb:49:in `run_action'
/opt/chef/embedded/apps/chef/lib/chef/runner.rb:81:in `block (2 levels) in converge'
/opt/chef/embedded/apps/chef/lib/chef/runner.rb:81:in `each'
/opt/chef/embedded/apps/chef/lib/chef/runner.rb:81:in `block in converge'
/opt/chef/embedded/apps/chef/lib/chef/resource_collection/resource_list.rb:83:in `block in execute_each_resource'
/opt/chef/embedded/apps/chef/lib/chef/resource_collection/stepable_iterator.rb:116:in `call'
/opt/chef/embedded/apps/chef/lib/chef/resource_collection/stepable_iterator.rb:116:in `call_iterator_block'
/opt/chef/embedded/apps/chef/lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
/opt/chef/embedded/apps/chef/lib/chef/resource_collection/stepable_iterator.rb:104:in `iterate'
/opt/chef/embedded/apps/chef/lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
/opt/chef/embedded/apps/chef/lib/chef/resource_collection/resource_list.rb:81:in `execute_each_resource'
/opt/chef/embedded/apps/chef/lib/chef/runner.rb:80:in `converge'
/opt/chef/embedded/apps/chef/lib/chef/client.rb:654:in `block in converge'
/opt/chef/embedded/apps/chef/lib/chef/client.rb:649:in `catch'
/opt/chef/embedded/apps/chef/lib/chef/client.rb:649:in `converge'
/opt/chef/embedded/apps/chef/lib/chef/client.rb:688:in `converge_and_save'
/opt/chef/embedded/apps/chef/lib/chef/client.rb:269:in `run'
/opt/chef/embedded/apps/chef/lib/chef/application.rb:270:in `block in fork_chef_client'
/opt/chef/embedded/apps/chef/lib/chef/application.rb:258:in `fork'
/opt/chef/embedded/apps/chef/lib/chef/application.rb:258:in `fork_chef_client'
/opt/chef/embedded/apps/chef/lib/chef/application.rb:224:in `block in run_chef_client'
/opt/chef/embedded/apps/chef/lib/chef/local_mode.rb:39:in `with_server_connectivity'
/opt/chef/embedded/apps/chef/lib/chef/application.rb:212:in `run_chef_client'
/opt/chef/embedded/apps/chef/lib/chef/application/client.rb:402:in `block in interval_run_chef_client'
/opt/chef/embedded/apps/chef/lib/chef/application/client.rb:392:in `loop'
/opt/chef/embedded/apps/chef/lib/chef/application/client.rb:392:in `interval_run_chef_client'
/opt/chef/embedded/apps/chef/lib/chef/application/client.rb:382:in `run_application'
/opt/chef/embedded/apps/chef/lib/chef/application.rb:60:in `run'
/opt/chef/embedded/apps/chef/bin/chef-client:26:in `<top (required)>'
/opt/chef/bin/chef-client:55:in `load'
/opt/chef/bin/chef-client:55:in `<main>'

@dev-head @jslusher Could you give the current master a try? I think it should resolve this.

@martinb3 I have just tried the current master on CentOS 7.1.1503 with the same error:
  * firewall[default] action install

    ================================================================================
    Error executing action `install` on resource 'firewall[default]'
    ================================================================================

    Chef::Exceptions::ProviderNotFound
    ----------------------------------
    Cannot find a provider for firewall[default] on centos version 7.1.1503

    Resource Declaration:
    ---------------------
    # In /var/chef/cache/cookbooks/firewall/recipes/default.rb

     22: firewall 'default' do
     23:   action :install
     24: end
     25:

    Compiled Resource:
    ------------------
    # Declared in /var/chef/cache/cookbooks/firewall/recipes/default.rb:22:in `from_file'

    firewall("default") do
      action [:install]
      retries 0
      retry_delay 2
      default_guard_interpreter :default
      declared_type :firewall
      cookbook_name "firewall"
      recipe_name "default"
    end

Our platform data is as follows:
[root@vm-centos-test-03 ~]# ohai | grep platform
  "platform": "centos",
  "platform_version": "7.1.1503",
  "platform_family": "rhel",
[root@vm-centos-test-03 ~]# cat /etc/redhat-release
CentOS Linux release 7.1.1503 (Core)
[root@vm-centos-test-03 ~]# chef-client -version
Chef: 12.4.1

My best guess here is that the Chef 11 ways for setting providers are slowly being broken in Chef 12. I think I'm going to go ahead and do a major release and bump the required version of Chef to 12.

Hi folks -- I've done the work to make it chef-12 only going forward, and that invokes an entirely new mechanism for choosing providers. Please give that a try if you're on chef 12. Going to release v2.0 with that change. Please ping this issue and I'll reopen if it's still a problem after using the v2.0.0 cookbook version.

@martinb3 this seems to have fixed the issue.  Thanks for your help.

I'm getting this same issue with chef-client 12.16.42, Server2012R2 machines.
Example below. Should I open a new ticket on this?
------------------------------------------------------
                      EXCEPTION
------------------------------------------------------
Chef::Exceptions::ProviderNotFound: dsc_resource[NetFramework35Core] (SQLServer::default line 15) had an error: Chef::Exceptions::ProviderNotFound: ["You must have Powershell version >= 5.0.10018.0 to use dsc_resource."]
------------------------------------------------------
                     STACK TRACE
------------------------------------------------------
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.16.42-universal-mingw32/lib/chef/mixin/why_run.rb:240:in `run'
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.16.42-universal-mingw32/lib/chef/mixin/why_run.rb:321:in `block in run'
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.16.42-universal-mingw32/lib/chef/mixin/why_run.rb:320:in `each'
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.16.42-universal-mingw32/lib/chef/mixin/why_run.rb:320:in `run'
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.16.42-universal-mingw32/lib/chef/provider.rb:155:in `process_resource_requirements'
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.16.42-universal-mingw32/lib/chef/provider.rb:133:in `run_action'
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.16.42-universal-mingw32/lib/chef/resource.rb:622:in `run_action'
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.16.42-universal-mingw32/lib/chef/runner.rb:69:in `run_action'
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.16.42-universal-mingw32/lib/chef/runner.rb:97:in `block (2 levels) in converge'
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.16.42-universal-mingw32/lib/chef/runner.rb:97:in `each'
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.16.42-universal-mingw32/lib/chef/runner.rb:97:in `block in converge'
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.16.42-universal-mingw32/lib/chef/resource_collection/resource_list.rb:94:in `block in execute_each_resource'
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.16.42-universal-mingw32/lib/chef/resource_collection/stepable_iterator.rb:114:in `call_iterator_block'
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.16.42-universal-mingw32/lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.16.42-universal-mingw32/lib/chef/resource_collection/stepable_iterator.rb:103:in `iterate'
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.16.42-universal-mingw32/lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.16.42-universal-mingw32/lib/chef/resource_collection/resource_list.rb:92:in `execute_each_resource'
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.16.42-universal-mingw32/lib/chef/runner.rb:96:in `converge'
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.16.42-universal-mingw32/lib/chef/client.rb:669:in `block in converge'
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.16.42-universal-mingw32/lib/chef/client.rb:664:in `catch'
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.16.42-universal-mingw32/lib/chef/client.rb:664:in `converge'
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.16.42-universal-mingw32/lib/chef/client.rb:703:in `converge_and_save'
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.16.42-universal-mingw32/lib/chef/client.rb:283:in `run'
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.16.42-universal-mingw32/lib/chef/application.rb:276:in `run_with_graceful_exit_option'
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.16.42-universal-mingw32/lib/chef/application.rb:252:in `block in run_chef_client'
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.16.42-universal-mingw32/lib/chef/local_mode.rb:44:in `with_server_connectivity'
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.16.42-universal-mingw32/lib/chef/application.rb:235:in `run_chef_client'
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.16.42-universal-mingw32/lib/chef/application/client.rb:464:in `sleep_then_run_chef_client'
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.16.42-universal-mingw32/lib/chef/application/client.rb:451:in `block in interval_run_chef_client'
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.16.42-universal-mingw32/lib/chef/application/client.rb:450:in `loop'
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.16.42-universal-mingw32/lib/chef/application/client.rb:450:in `interval_run_chef_client'
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.16.42-universal-mingw32/lib/chef/application/client.rb:434:in `run_application'
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.16.42-universal-mingw32/lib/chef/application.rb:59:in `run'
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.16.42-universal-mingw32/bin/chef-client:26:in `<top (required)>'
C:/opscode/chef/bin/chef-client:65:in `load'
C:/opscode/chef/bin/chef-client:65:in `<main>'

Hi @rayterrill -- I'm not sure what your error has to do with this cookbook... since dsc_resource is a core resource in Chef, you could probably open an issue on that project: https://github.com/chef/chef/issues/new

You're right - my bad. Somehow I missed that this wasn't in Chef core - just that it was the same error. :(


No error message when setting an option that doesnt exist

General Information:
If you use the set function of profiler options, you will not get an error if you try to set something that doesn't exist. You should be getting an error or at least a warning.

Need to validate if this is still an issue with the changes to options recently.

Appears to have been fixed

I still believe this can occur if someone were to choose a random text to start the option followed by any sub-level option pattern e.g.
'fake.is_enabeled'
'fake.......text'

Not sure worth pursuing so not going to reopen it right now.


[Feature]Add application checkbox

Search before asking

[X] I had searched in the feature and found no similar feature requirement.

Description
In our production, there are often cases where the same program deploys multiple applications, so when the code is upgraded, it is necessary to start or stop multiple applications. I suggest if it is possible to add checkboxes to support search and multi-select applications, and to batch start and stop selected applications. This is very beneficial to improve efficiency and user experience.
Usage Scenario
Select multiple applications to support batch operation of applications
Related issues
[Feature] Quickly copy an application #983
Are you willing to submit a PR?

[X] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

good idea.

您好，我是王云朋，您的邮件我已经收到。

@wolfboys  Has this similar question been discussed before.


Add a settings button to Cody pane header

There's lots of goodies hidden away in our settings menu that you can only access via the statusbar. This adds a settings icon to the main title bar to help people discover these more easily. You can also now access it via the VS Code command palette.

Test plan

Opened Cody
Clicked the button

What do you think @abeatrix? I left it thinking it was good to include, but you could make an argument that it's confusing and it exists in the quickpick version.

I guess we can remove it if someone complains lol?

Now you've pointed it out, I think it's best we remove it and have the one settings button. Have updated!


Refactor Open Configurations/tabs Across Modules (Global-view & Workspace)

As an ECMPS user, I want to retain any configurations I open across modules so I can access them from anywhere
Scope:

Retain the selections for any open Configuration tabs across the modules/options available in the left-hand menu (MP, QA, Emissions, Export etc.)
Retain the selections made for any dropdowns (Locations, Sections, Test Type Group etc.)

Notes:

User shall stay in the same Configuration/tab when navigating between different modules/functionality
When user is navigating between modules/functionality, then the user shall remain on the same tab but the options/data applicable for the selected module shall be updated

This ticket is ready for testing and can be located in MP/ QA 508 Testing- PI 10 #4150 epic @aprematta


Warning labels for undefined localized strings

About the PR

Added warning labels for undefined localization strings.
Why / Balance

https://github.com/space-wizards/space-station-14/issues/30363
Technical details

Just comments.
Media

Requirements

[x] I have read and I am following the Pull Request Guidelines. I understand that not doing so may get my pr closed at maintainer’s discretion
[x] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Breaking changes

Changelog

add: comments

Can't you just add the localisations?

Are you coming back to this?

Probably not, sorry


Using ReChart for Chart Design

https://github.com/DLabbate/stock-dashboard?tab=readme-ov-file

Date Filter:

Rather than using rechart which is fairly limited and does not appear to have step charts, it seems like we should use:
https://github.com/AnyChart/AnyChart
re:
https://docs.anychart.com/Basic_Charts/Step_Line_Chart#:~:text=A step line chart is,or interest rates are visualized.
https://www.npmjs.com/package/anychart

Alternatively, d3 step chart:
https://codepen.io/vkbansal/pen/QjJXOe

Speaks to potential interactivity;
https://d3-graph-gallery.com/area

Ok, here is what I was able to implement. How important is it to have:

Tooltip which allows user to see exactly what the probability was at any given time?
Capability to zoom in on past day, past week, past month, past year, all time?

What do you mean by, "ticks" ?
Yes, I could add a change in resolution button, understood.
The step graph communicates that the probability changes instantaneously at the time of bet, which is effectively true.
FYI, here is the raw data from which this graph was derived:
https://github.com/openpredictionmarkets/socialpredict/blob/stylepage/frontend/src/tests/TestData.js#L23
    "probabilityChanges":[
        {"probability":0.5,"timestamp":"2023-11-11T04:59:00Z"},
        {"probability":0.9761904761904762,"timestamp":"2023-11-11T05:59:00Z"},
        {"probability":0.6612903225806451,"timestamp":"2023-11-11T06:14:00Z"},
        {"probability":0.7941176470588235,"timestamp":"2023-11-11T06:59:00Z"},
        {"probability":0.6639344262295082,"timestamp":"2023-11-11T07:14:00Z"}
    ],

So the graph is 100% reflecting that json array...e.g. the steps are not at the, "midpoint," but rather at the time of change.
Contrast this to our current graph which uses a rechart line graph, showing sloped changes between points. These sloped changes are misleading because they imply that the probability gradually changed over time rather than instantly.

If you are used to seeing a chart with a ton of volume, then it would look more like gradual changes over time, as the step functions from a zoomed out perspective look more, "smooth," ... if you would like I could generate data which shows this effect with our new step function chart here.

Ticks = markers at the bottom, currently "11 Nov on repeat."
The flat style is accurate but crumbles when there are too many trades; it just becomes impossible to load.
The usual solution is to compute summary statistics and stick' em in line plot or area plot.
Or to use financial charts like Candle sticks or Heiken Ashi.

This was implemented but reverted to CanvasJS for the time being because 3ds has performance issues with larger datasets (over ~10000 points or so) and requires further calculations on the back end to be able to average out bins over time. Basically to make this scalable requires a lot more both back and front end design time.


[BUG] Alerts per bucket duplicated and notification frequency broken when too many buckets

What is the bug?
Alerts per bucket duplicated and notification frequency broken when too many buckets
Actually, we observe 2 issues with Alert per buckets:

Monitor Action throttling is ignored when more than 50 buckets
Alerts (and actions and notifications) are duplicated when more than 500 buckets

How can one reproduce the bug?
Steps to reproduce the behavior:

Define a "per bucket monitor" run every 1min
The monitor should observe items generating more than 500 buckets
Define a trigger action notification with "enable action throttling" ticked and value set to 60min

What is the expected behavior?

Same alert notification every 60min (not every 1min)
No duplicated alert notification

What is your host/environment?

tested on Opensearch 2.8 and 2.12

Do you have any screenshots?
no
Do you have any additional context?
no
If the bug is confirmed, can you suggest any configuration to solve or workaround this behavior?
This issue is criticall for us (email spamming or integration issues with third-party systems)

My issue is the same as #6710
https://github.com/opensearch-project/OpenSearch-Dashboards/issues/6710

Any opinion, any suggestion? Receiving too many alert notifications fills the mailboxes and end-users complain.

Thanks @dblock .
This is very impactful in our system. Maybe we're the only ones experiencing these issues as a side effect of a setup or performance issues. If anyone would like to check specific logs from us, please ask.


DNS service should self-register a host's own certificate as well

Lighthouses are not able to resolve their own host name when queried.

As far as I understood, it is a feature.
The root problem is lighthouses do not report to each other, so, although a lighthouse knows about itself, it has no glue about other lighthouses.
That means a good practice is to run either lighthouse or edge (with tun).
If you need both on a machine - run 2 nebula processes.
That implies lighthouses IPs are fake and not accessible, thus there is no reason to show them in DNS

As far as I understood, it is a feature.
The root problem is lighthouses do not report to each other, so, although a lighthouse knows about itself, it has no glue about other lighthouses.
That means a good practice is to run either lighthouse or edge (with tun).
If you need both on a machine - run 2 nebula processes.
That implies lighthouses IPs are fake and not accessible, thus there is no reason to show them in DNS

For anyone who's wondering, I think I've implemented the solution recommended by @kvtb with the following:
$ ./nebula-cert ca -name "Foo CA"
$ ./nebula-cert sign -name lighthouse -ip <IP_ADDRESS>/24
$ cat lighthouse.yml
---
pki:
  ca: ca.crt
  cert: lighthouse.crt
  key: lighthouse.key
listen:
  host: <IP_ADDRESS>
  port: 4242
tun:
  disabled: true
lighthouse:
  am_lighthouse: true
  serve_dns: true
  dns:
    host: <IP_ADDRESS>
    port: 53
$ cat host.yml
---
pki:
  ca: ca.crt
  cert: lighthouse.crt
  key: lighthouse.key
listen:
  host: <IP_ADDRESS>
  port: 0
tun:
  dev: nebula1
static_host_map:
  <IP_ADDRESS>: <LIGHTHOUSE PUBLIC IP>:4242
lighthouse:
  hosts:
    - <IP_ADDRESS>

Run two Nebula processes. One configured as a lighthouse but with tun disabled (lighthouse.yml) and another configured as a host/client that is configured to connect to this lighthouse (host.yml).
$ sudo ./nebula -config lighthouse.yml
$ sudo ./nebula -config host.yml

Note that root access is still required for the lighthouse Nebula instance even though tun is disabled as we're binding DNS to a privileged port (53).
Now if we query the lighthouse DNS for the hostname set when issuing the certificate (which is just "lighthouse") it should work:
$ nslookup lighthouse <IP_ADDRESS>
Server:         <IP_ADDRESS>
Address:        <IP_ADDRESS>#53

Non-authoritative answer:
Name:   lighthouse
Address: <IP_ADDRESS>

As I understand it, this works because the node is acting as a lighthouse but also connecting to itself as a regular Nebula client, meaning it "learns" about itself.
Using systemd template units would make this pretty easy to manage (e.g<EMAIL_ADDRESS>and<EMAIL_ADDRESS>

@bcrisp4 I tried your configuration, but I got the following error on the lighthouse: Refusing to handshake with myself. I couldn't query the lighthouse itself in the DNS.

@bcrisp4 I tried your configuration, but I got the following error on the lighthouse: Refusing to handshake with myself. I couldn't query the lighthouse itself in the DNS.

I didn't test it, but probably the reason is you must start the real lighthouse process first, so that it can catch the port 4242.

Is this a conscious choice to disable this functionality? What are the downsides of this?

Is this a conscious choice to disable this functionality? What are the downsides of this?

As noted earlier by kvtb:

The root problem is lighthouses do not report to each other, so, although a lighthouse knows about itself, it has no glue about other lighthouses.

The DNS server creates entries for hosts which have handshaked with the DNS-serving host. Lighthouses work well for this because in a general sense, "all" hosts connect to Lighthouses. Except themselves and other Lighthouses that is.
See the suggestion above for a workaround: https://github.com/slackhq/nebula/issues/271#issuecomment-789166831


Please Help Me?!

I want to know how to create the account for the vm_main.py file....is there some procedure that i miseed?

There are some technical issues so I am disabling all user_host.exe operations. ping me on Instagram regarding all problems with user_host.exe i will do those actions manually for you


fix lost param in _ExtrudeShapeGeneric

Fixed a forgotten param in the shape extrusion process

you're on fire :)

hi hi, and it's not finished, we'll probably have other array iteration to patch, I'll fix when I notice them


Update v3 branch to use latest pre-release of GOV.UK Frontend

What
Create a new pre-release of GOV.UK Frontend and update the Design System to use it.
Fix any changes that have broken the Design System. Note that removing any baseline adjustments which are no longer needed because of the revised font is represented as a separate issue.
Why
The v3 branch is currently using a pre-release from the end of May. This pre-release does not include the new version of the font, nor any of the other changes made since the end of May.
Details
These changes should be made against the v3 branch. The v3 branch will then be merged to master and released once v3 of GOV.UK Frontend has been released.

This has been done.


Locol SIG Monthly: Wed, Nov 13 @ 10am PST | 1pm EST | 6pm UTC

Mark your calendars! (We're veering off of our typical 3rd-Wednesday-of-the-month schedule for this one due to a scheduling conflict, and the change in daylight savings is a bit confusing, so please take note!)
The next monthly call of the IPFS Local Offline Collaboration SIG (Special Interest Group) will take place on Wednesday, November 13 at 10am PST | 1pm EST | 6pm UTC.  (Note the time change in UTC; still at the same time for most of our attendees!)

See when this is in your local timezone
View this event on the IPFS Community Calendar
Join us on Zoom when the time comes

Do you have a project in the Offline First or local networking space that you'd like to share with us? Please let me know so we can add you to our agenda!
Our tentative agenda so far:

YOUR ITEM HERE!
@nicopace & @lidel, you've both mentioned potential topics recently; please let me know if this date is convenient for you!

Want to catch up on past conversations? Review our past meeting notes or check out our video archive, with lots of awesome demos.
Everyone is welcome: @creationix @Jorropo @onggunhao @Gozala @raulk @terichadbourne @whyrusleeping @djdv @jedahan @jimpick @nicopace @raulk @yiannisbot @momack2 @JustMaier @vrortvedt @autonome @parkan@nicopace @canadaduane @arkadiy @monteslu @arecvlohe @davidhernandeze @meiqimichelle  and others

Our next monthly meeting of the IPFS Local Offline Collaboration SIG is scheduled for next Wednesday, November 13 at 10am PST | 1pm EST | 6pm UTC (see when this is in your local timezone).
@nicopace & @lidel, you've both suggested topics for demos/discussions recently. Would this be a good time for either of you to share. Suggestions from others are also welcome!

I won't have bandwidth to prepare, but can demo (5-10m) ideas behind ipfs-shipyard/cohosting using  the ipfs-cohost command-line tool.

I won't have mental bandwidth either for this one... december will be different I believe.

No worries, @nicopace. I'll check in with you as the December meeting approaches.

Looking forward to seeing all those who are available on the IPFS Local Offline Collaboration SIG (Special Interest Group) call today, November 13 at 10am PST | 1pm EST | 6pm UTC.  (Note the time change in UTC; still at the same time for most of our attendees!)

See when this is in your local timezone
View this event on the IPFS Community Calendar
Join us on Zoom when the time comes

Today we'll have a demo from @lidel on  the ideas behind ipfs-shipyard/cohosting using  the ipfs-cohost command-line tool. 🎉
We have space for more discussions on the agenda, so please feel free to come with other topics in mind. We're excited to hear about other projects in the Offline First or local networking space!


Document lib keys modifying ufo2ft's behavior

Tackle https://github.com/googlei18n/ufo2ft/issues/240.
Stub stub.

[ ] Write explanation, example and when (not) to use blurb for every filter.
[ ] Include explanation of feature writer modification in https://github.com/googlei18n/ufo2ft/issues/280#issuecomment-425389168.
[ ] Maybe turn this into Sphinx documentation if it grows too unwieldy?

PS: You can copy-paste it into e.g. https://livesphinx.herokuapp.com/ to get a rendered preview.

Oops, missed conversionError and reverseDirection. I think I was looking for conversionError actually (https://github.com/googlei18n/cu2qu/issues/158). The setup of the filter chain is... convoluted. compileTTF shadows TTFPreProcessor shadows CubicToQuadraticFilter...

Oops once more, pre and post mean:
    Custom filters can be applied before or after the default filters.
    These are specified in the UFO lib.plist under the private key
    "com.github.googlei18n.ufo2ft.filters".

This is really helpful; thanks for starting it!
I have a question that I’m unsure about, even after looking at your docs and the UFO spec:
How would I add multiple ufo2ft filters?
For example, I’d like to add both the flattenComponents filter to nested components and the decomposeComponents filter to a specific list of glyphs.
This seems to work, mostly (but has a partially unexpected result for the flattenComponents filter, whether or not I use the decomposeComponents filter):
<key>com.github.googlei18n.ufo2ft.filters</key>
<array>
    <dict>
        <key>name</key>
        <string>flattenComponents</string>
        <key>pre</key>
        <integer>1</integer>
    </dict>
    <dict>
        <key>name</key>
        <string>decomposeComponents</string>
        <key>include</key>
        <array>
          <string>quotesingle</string>
          <string>quotedbl</string>
          <string>quoteleft</string>
          <string>quoteright</string>
          <string>quotedblleft</string>
          <string>quotedblright</string>
          <string>quotesinglbase</string>
          <string>quotedblbase</string>
        </array>
    </dict>
</array>

In Python:
    font.lib["com.github.googlei18n.ufo2ft.filters"] = [
            {
            'name': 'flattenComponents',
            'pre': 1
            },
            {
            'name': 'decomposeComponents',
            'include': "quotesingle quotedbl quoteleft quoteright quotedblleft quotedblright quotesinglbase quotedblbase".split()
            },
    ]

Right on the money, except 'include' should be a ["list", "of", "str"]. I don't know how filters interact with each other. I think they are run in order?

I think they are run in order?

yep

Does it matter that pre key is defined with:
Stephen's approach
<key>pre</key>
<integer>1</integer>

instead of:
documentation approach
<key>pre</key>
<true />

?

Don't think so. Both evaluate to True

'include' should be a ["list", "of", "str"].

I ended my string with .split() and ran this in a RoboFont script, so it seems to work, though I am surprised by two things:

include gets sorted before the name. Should it?
The order I place things in my Python doesn’t get preserved in the lib.

		<key>com.github.googlei18n.ufo2ft.filters</key>
		<array>
			<dict>
				<key>include</key>
				<array>
					<string>quotesingle</string>
					<string>quotedbl</string>
					<string>quoteleft</string>
					<string>quoteright</string>
					<string>quotedblleft</string>
					<string>quotedblright</string>
					<string>quotesinglbase</string>
					<string>quotedblbase</string>
				</array>
				<key>name</key>
				<string>decomposeComponents</string>
			</dict>
			<dict>
				<key>name</key>
				<string>decomposeTransformedComponents</string>
				<key>pre</key>
				<integer>1</integer>
			</dict>
			<dict>
				<key>name</key>
				<string>flattenComponents</string>
				<key>pre</key>
				<integer>1</integer>
			</dict>
		</array>

My RoboFont script, in case it’s relevant (Click to expand)
from vanilla.dialogs import *

inputFonts = getFile("select UFOs", allowsMultipleSelection=True, fileTypes=["ufo"])

# prop = 'Sans'

for fontPath in inputFonts:
    font = OpenFont(fontPath, showInterface=False)

    # for other font info attributes, see
    # http://unifiedfontobject.org/versions/ufo3/fontinfo.plist/

    print("family: ", font.info.familyName, "\n ", "style: ", font.info.styleName)

    font.info.openTypeOS2VendorID = "ARRW"

    font.info.copyright = "Copyright 2017-2020 Arrow Type"

    font.info.familyName = "Name Sans"

    # un-nest nested components # https://github.com/googlefonts/fontbakery/issues/296
    font.lib["com.github.googlei18n.ufo2ft.filters"] = [
            {
            'name': 'decomposeComponents',
            'include': "u b q d p arrowleft arrowup arrowright arrowdown arrowrighttail arrowlefttailfeather arrowlefttriangle \
                        nine Adieresis.titl Odieresis.titl Udieresis.titl Odieresis.RECT_titl Udieresis.RECT_titl \
                        quotesingle quotedbl quoteleft quoteright quotedblleft quotedblright quotesinglbase quotedblbase".split()
            },
            {
            'name': 'decomposeTransformedComponents',
            'pre': 1
            },
            {
            'name': 'flattenComponents',
            'pre': 1
            },
    ]

    print("changed to:")
    print("family: ", font.info.familyName, "\n ", "style: ", font.info.styleName)
    print("")

    font.save()
    font.close()

Plists keys are sorted alphabetically.

Plists keys are sorted alphabetically.

right, but an array (of dicts, or whatever) should keep the order.And the filter order matters

But looking at the script the filters are in order?


Add known production users to the README

It would be great to have something to point towards. Bloomberg, Gojek, etc
/assign @animeshsingh

/close


Indicate which tile was clicked on

Hey team! Please add your planning poker estimate with ZenHub @ChristopherSterza @Donovanphenry @JMBeresford @sedwardsmarsh


How to remove/replace the swagger icon on the top left of swagger tool

Hi,
Is there any way that I can change the logo to my favorite one (attached image)? Also I need to customize the green background of that logo. I am currently using swagger-tools.

Hi, I think you should open this in the swagger-tools repo


upgrade to ember/ember-cli 2.18.2

Pretty much just a straight ember init upgrade of the addon, with two exceptions:

I left the .eslintrc alone because it caused addon/ code to fail eslint and I wasn't sure if we wanted the latest eslint settings or not. If we do, it should be pretty simple to update .eslintrc and then fix the addon/ code to pass.
I upgraded to a bit newer ember-try config, which removes the need for bower entirely since the oldest version we support (2.12) is available on npm.

Thanks!


Use unicode for internal processing?

Firstly, many thanks for putting this up - I think it's brilliant. In addition to code refactoring this is tremendously useful for people editing and revising books (with LaTeX, markdown and/or reStructured Text sources). For this purpose it would be very helpful to have repren deal also with non-ascii characters (e.g. accented characters in foreign words).
Would you consider adding an  --encoding option to enable users to specify file encoding? repren could then decode the inputs read from pattern and input files to unicode, do all the internal processing in unicode and then encode again when writing output.

Never mind... it already works fine for non-ascii - I forgot to switch off expandtabs when editing my pattern file.

I actually avoided giving the program knowledge of encodings since then binary files, weird encodings, malformed UTF8, etc would cause random Python encoding exceptions. By working at byte level it should work on anything. (Well, case insensitive matching on non-ascii chars would require encoding knowledge -- but it doesn't handle that.) I've used it on Unicode files without problems, but if you have issues with encodings -- or ideas/PRs to improve it in general -- do let me know.
And thanks for the kind words -- glad it's useful!


User permissions to edit content blocks

Running dnadesign/silverstripe-elemental dev-master 674a160a79
#415 has been raised to handle graphql errors such as where the user is not permitted to view or edit a page, but while testing it seems there is a bug with edit permissions.
When a user has full 'Content permissions', and they are viewing a blocks page with existing blocks within the CMS, they are only presented with a loading indicator when the should be presented with the list of blocks for editing:

Permissions:

@sachajudd This might be of interest to you.


As a SRE, I want a running cluster with Elastic Search on AKS

As a:
SRE
I want:
running cluster with Elastic Search on AKS
So that:
I can monitor for any issues with prod cluster and have a resilient system
Describe the solution you'd like:
Deploy elastic search cluster and have it up and running
Describe alternatives you've considered:
None
Additional context:
Does this require updates to documentation?:
May be
Acceptance Criteria
Running prod like cluster with Elastic Search on AKS deployed with GitOps and basic monitoring in place.

I think we need to elaborate more on what we mean by "prod like":

What type of nodes
How many nodes
Do we some dummy data/jobs running on it?
etc...

Placing back in backlog until clear tooling is identified to simulate epi's workflow


Keep only last one deploy comment for staging container CI/CDs

Many comments are annoy.
Hide as outdated will be better than just removing

Hide as outdated will be better than just removing

There is no option in gh command yet https://github.com/cli/cli/issues/8409

MIT: https://github.com/yumemi-inc/comment-pull-request/blob/f88bc8ea55caf3fde03390297feebec3869192a6/action.yml#L86-L96
ISC: https://github.com/mskelton/changelog-reminder-action/blob/d5e3b89d9f6764f18b49e56cdb04a12fecc245ca/src/minimizeComment.ts#L4-L15


Update and add instructions on connect to hub page.

Rephrase some of the descriptions to not be specific to the ansible-galaxy client.
Connect Private Automation Hub section

Nav:Connect to Hub > I assume Connect to private Automation Hub won't fit but to the best of my knowledge we don't have confirmed short-form names for these services yet, but I'd try to stick with 'Sync to ...' since everywhere else we use 'sync' and not 'connect' as the primary action.

Offline token - consider replacing the second sentence with "This is a secret token used to protect your content. Store your API token in a secure location."  Not sure about purposefully telling people it works for all apps is best practice.
Connect Private Automation Hub - consider moving this to the top of the page since it parallels the nav item.  Also follow the construction of your descriptions under Server URL and SSO URL, since both are ideally prescriptive. Ex, "Use the Repository Management page to sync collections curated by your organization to the Red Hat Certified repository in your private Automation Hub."
If the last sentence applies to the same persona then just start it off with "You can use the sync toggle ...." - if not then its fine as it stands.

but I'd try to stick with 'Sync to ...' since everywhere else we use 'sync' and not 'connect' as the primary action

This page is also meant for connecting the ansible-galaxy client to hub, so sync isn't really the right term.
Since this page is also used for connecting the galaxy client, should there be a section for that as well?

One more - if the last bit about syncing can be broken out into its own header it makes the flow of information about using the toggle->create sync list its own unique activity thats performed separately from syncing to private hub.

but I'd try to stick with 'Sync to ...' since everywhere else we use 'sync' and not 'connect' as the primary action

This page is also meant for connecting the ansible-galaxy client to hub, so sync isn't really the right term.
Since this page is also used for connecting the galaxy client, should there be a section for that as well?

I'd say that's its own activity so its own header would help differentiate things.

How does this look?

One quick fix : "Documentation on how to configure ..."
New layout is much easier to read and understand what you're trying to do.


Add comment on disassembling OpName

When working in code manipulating SPIR-V with raw IDs it's useful to have the spirv-dis output to one side so I can see what is going on in the module. Unfortunately it can be annoying sometimes to match up IDs that have been named, because the disassembler shows up as this:
               OpName %push "push"
               OpName %param_0 "param"
               OpName %param_1 "param"
...
        %135 = OpLabel
        %138 = OpLoad %uint %push
               OpStore %param_0 %138

Which doesn't give me any clues about what %push or %param_0 are as IDs. I can use --raw-ids but then I lose a lot of readability and I end up having to try and ping-pong back and forth.
Would it be possible (even under an option) to output an additional comment no each OpName line showing what ID was for what name?
               OpName %push "push"            ; %push = %50
               OpName %param_0 "param"        ; %param_0 = %71
               OpName %param_1 "param"        ; %param_1 = %72
...
        %135 = OpLabel
        %138 = OpLoad %uint %push
               OpStore %param_0 %138

@dneto0 Do you have any opinion on this?


Add timeout to worker start

Fixes #5
This is more hacky than I'd like but I'm not sure if there's a better way to ensure that the worker doesn't emit the running event before the Once handler is registered. If we could somehow add the handler atomically to the channel during construction, that would probably be optimal.
Also fixes a data race encountered when closing a worker on a separate thread.

Thanks, I go your point, but we need a more elegant way to handle it. I will fix it soon.

fixed on 1224b5a, c5f8384


Some properties aren't there(Collection[Class]) [I'm using PHPStorm]

/**
 * @property Collection[User]               $mentions         A collection of the users mentioned in the message.
 * @property Collection[Embed]              $embeds           A collection of embed objects.
 * @property Collection[Role]               $mention_roles    A collection of roles that were mentioned in the message.
 * @property Collection[Channel]            $mention_channels Collection of mentioned channels.
 * @property Collection[Reaction]           $reactions        Collection of reactions on the message.
 */

d9ae50b58e89fe942bbba1a323e0f9d2ac6defca


CamelCase Serializer

I have an use case right now where I need to autoload certain relationships and transform all fields to camelcase before sending them to the API consumer. I'm already autoloading the relationships using .addGlobalScope and it works fine, but I don't understand how to serialize my data as camelcase.
For example, when making an API call I get:
{
  "id": 1,
  "name": "John",
  "last_name": "Doe",
  "posts": [{
    "id": 3,
    "title": "Hey!",
    "created_at": "..."
  }]
}

When I want:
{
  "id": 1,
  "name": "John",
  "lastName": "Doe",
  "posts": [{
    "id": 3,
    "title": "Hey!",
    "createdAt": "..."
  }]
}

What is the most general way to achieve this result?

Rolling out a serializer is the only way do it. Lemme share some code for that.
'use strict'

const _ = use('lodash')
const VanillaSerializer = require('@adonisjs/lucid/src/Lucid/Serializers/Vanilla')

class JsonSerializer extends VanillaSerializer {
  _getRowJSON (modelInstance) {
    const json = _.transform(modelInstance.toObject(), (result, value, key) => {
      result[_.kebabCase(key)] = value
      return result
    }, {})
    this._attachRelations(modelInstance, json)
    this._attachMeta(modelInstance, json)
    return json
  }
}

module.exports = JsonSerializer

Save it inside app/Models/Serializers/JsonSerializer.js
And use this as the serializer for your models.
class User extends Model {
  static get Serializer () {
    return use('App/Models/Serializers/JsonSerializer')
  }
}

Closing since the answer was given and there's no answer from issue reporter.

@thetutlage your solution works when returning data to the client, but how do you do the same transformation on your model, for example:
const User = use('App/Models/User')
const user = await User.find(1)

// Would like to access fields like this:
user.userName

// Instead of:
user.user_name

Also, would be nice to do the inverse.
const user = new User()

user.userName = 'test' // Transform it to 'user_name'
await user.save()

We write everything with JS: mobile, desktop, web, server. Using snake case on properties is uncomfortable when everything else in our stack is camel case. So I believe what @walbertoibarra pointing out is a valid concern in many use cases.

How about naming fields as camelCase within SQL?
It is going to be much pain in transforming fields on fly before and after every SQL query for Lucid.

@thetutlage I think many things in Lucid kind of expect snake case structure to work out of the box.

I don't think Lucid should enforce casing for SQL. If there are hardcoded strings like that, I am happy to fix them

@thetutlage I think my question is relevant to this thread:
It's not even about converting different cases, but different names - Is there equivalent to columnName of Sails.Js attributes in Adonis/Lucid?
I couldn't find a proper workaround for this issue:
I can use computed properties as an alias for the field (getter) + hook beforeCreate/beforeUpdate for a setter (I haven't tried it yet, so I'm not sure it will work)
As I wrote, this is not a proper workaround and make it too complicated for maintenance.
Thanks!

@gweizi I think @thetutlage's solution is the most appropiate. Just name your fields with camelCase. I haven't tried it but it should work. The only thing that may require some extra work may be relationships as they expect a particular structure for foreign key fields by default, but you can provide your own.

@sebasgarcep Probably I didn't explain my issue that well.
I give an example to make it more clear. Assume I have an exist database with a table called foo, this table has a column called "bad_name_666". I would like to create a model with a field called good_name that refer to the db column "bad_name_666". Is there any option to do that? or I must change the db scheme (in this case the column name bad_name_666 to good_name)?
Thanks again!

No there is no way to do that, since it adds a complexity layer on top of your database schema and also I have no plans to introduce anything like this.
The attributes should be 100% same as the database schema, since it's easier to reason about them

Objection.js, which is built top on knex.js, has a tranform fields function. Adonis Lucid is also built on knex.js, so you can use this feature from objection.js

Install objection

npm i objection

Add in top of config/database.js

const { knexSnakeCaseMappers } = require("objection");

Add mappers to your connection. For example, change this

  pg: {
    client: 'pg',
    connection: {
      host: Env.get('DB_HOST', 'localhost'),
      port: Env.get('DB_PORT', ''),
      user: Env.get('DB_USER', 'root'),
      password: Env.get('DB_PASSWORD', ''),
      database: Env.get('DB_DATABASE', 'adonis')
    },
    debug: Env.get('DB_DEBUG', false)
  }

To this
  pg: ({
    ...{
      client: 'pg',
      connection: {
        host: Env.get('DB_HOST', 'localhost'),
        port: Env.get('DB_PORT', ''),
        user: Env.get('DB_USER', 'root'),
        password: Env.get('DB_PASSWORD', ''),
        database: Env.get('DB_DATABASE', 'adonis')
      },
      debug: Env.get('DB_DEBUG', false)
    },
    ...knexSnakeCaseMappers()
  })

That's all, now you can use .where('createdAt', ...) instead of .where('created_at', ...) and SomeModel.createdAt instead of SomeModel.created_at. This conversion also works for SomeModel.toJSON()

Thanks @xxxwww , great solution ~

I was originally using this @xxxwww's solution, but found it causes Lucid's child population to fail silently.  I haven't delved into it, but my guess is it is not assigning the ids correctly due to the property name mismatch to do the load.
let user = await User.query().where('email', email).with('role').fetch()
and
let user = await User.find(1)
user.load('role')

both fail silently, leaving role null.  I've had to revert back to a custom serializer.

@skrenek looks like the conversion works for the foreign key in relationships too. Therefore, you need to explicitly specify the key if it is stored in a database in a format other than camelCase

Can you elaborate on what you mean by specifying the key?  I thought the point of the workaround was to allow db columns to be specified in snake case and properties in code in camel case.

Any update on this guys? Since my whole table's name are in camelCase.
Please help with answer how can i change the default behavior of table.timestamps() which create table name in snack_case. I want it to be in camelCase.

@xxxwww per @skrenek could you elaborate on what you meant by specifying the key?

there is a library for knex.js that does exactly this conversion of snake_case to camelCase.
https://github.com/Kequc/knex-stringcase
is there a way in adonis to use setup knex connection?

@xxxwww's fix works lika a charm except when you return a newly created record. Adonis saves a DB query by just appending created_at and updated_at in snake_case to the record when created which means it will not go through the knexSnakeCaseMapper.
This will then give you this when returning a created record:
// Creating record and returning
const user = new User()
user.firstName = 'Foo'
await user.save()

return response.json({ user })

// Returned response
{
  "id": 1,
  "firstName": "Foo",
  "created_at": "<timestamp>", // <-- snake_case
  "updated_at": "<timestamp>", // <-- snake_case
}

and this when retrieving existing record:
// Finding existing record and returning
const user = await User.find(1)
return response.json({ user })

// Returned response
{
  "id": 1,
  "firstName": "Foo",
  "createdAt": "<timestamp>", // <-- camelCase
  "updatedAt": "<timestamp>", // <-- camelCase
}

knexSnakeCaseMappers

This solution makes Adonis unable to load relations.

@e200 I am going to have to look into that. I have been unable to load relations (probably since adding this) and couldn't figure out why for the life of me. Also, I have been looking for a solution to accomplish this outside of models / serializers. Even with knexSnakeCaseMappers, it doesn't seem to convert snake_case to camelCase in the instance of running raw sql statements via Database.raw(). Is there any way to intercept responses in AdonisJS and run that logic there?

@e200 have you figured a workaround for this? I am having a hard time finding a cleaner solution than knexSnakeCaseMappers, but it's a bummer that the Lucid relations don't work with it.

@amakarenko-sumy I am not positive, but try to camelCase your pivotTable 'userRole' instead of 'user_role'


Register Write Limitation

Moved from stm32-rs-nightlies
I ran into an issue when writing to a register where I wanted to return a value from the write, like this:
let val = reg.write(|w| {
    T::set(w.field())
});

But, the signature of write forbids this:
pub fn write<F, T>(&self, f: F)
    where
        F: FnOnce(&mut REG::Writer) -> &mut W<REG>,

So I'm curious, why not change the signature to:
pub fn write<F, T>(&self, f: F) -> T
    where
        F: FnOnce(&mut REG::Writer) -> T

By implementing it like this:
pub fn write<F, T>(&self, f: F) -> T
where
    F: FnOnce(&mut W<REG>) -> T,
{
    let mut writer = W {
        bits: REG::RESET_VALUE & !REG::ONE_TO_MODIFY_FIELDS_BITMAP
            | REG::ZERO_TO_MODIFY_FIELDS_BITMAP,
        _reg: marker::PhantomData,
    };
    let result = f(&mut writer);

    self.register.set(writer.bits);

    result
}

Is there a drawback to this?

https://github.com/rust-embedded/svd2rust/pull/738#issuecomment-1624819353

I don't believe my proposal is related to that. I don't want to return the writer, in fact, the proposed body of write forbids T ever being W or &mut W since bits is moved out of the writer for register.set, no?

Ok yes I believe I set up an analogous setup in rust playground:
#[derive(Debug)]
struct Bits(u32);

#[derive(Debug)]
struct W {
    bits: Bits,
    _reg: (),
}

fn consume_bits(Bits(num): Bits) {
    println!("bits: {}", num);
}

fn write<F, T>(f: F) -> T
where
    F: FnOnce(&mut W) -> T,
{
    let mut writer = W { bits: Bits(0), _reg: () };

    let result = f(&mut writer);

    consume_bits(writer.bits);

    result
}

fn main() {
    let outside = write(|_w| 0xaa);
    // let outside = write(|w| w); <- does not compile
    println!("outisde: {:?}", outside);
}

So I don't believe this introduces any complications as mentioned in #738.

Sorry for waiting. Looks interesting. I think you could nominate it for next meeting: https://github.com/rust-embedded/wg/discussions/800

No problem, you have a lot oh your hands. I've never done that before but sure why not.

Do your suggestion require changing of signatures of write/modify only or field writers too?

Just write and modify, all the field writers work as is!

I'm going to turn this issue into a PR so exactly what I'm proposing is visible.

Resolved by #874.

@AdinAck I've released current state of stm32-rs G4 as stm32g4-staging
You could use it as:
[dependencies.stm32g4]
package = "stm32g4-staging"
version = "0.17.0"


fix(Link): Set focus back to the body element

Follow up to #3545.
Fixes #7681.
TL;DR: document.activeElement.blur() reliably moves the keyboard focus back to the body element.
Approach & changes
Turns out my solution from 2 years ago didn't do anything. The focus moved back to the body element automatically if the link element was removed from the DOM, which often happens when navigating to a new page.
However, if the link persisted on the new page, e.g. because it is inside _app.js, then the focus stays on the link element. The body element cannot be focused with .focus(), because it's simply not a keyboard-focusable element. We could fix that with tabindex="-1", but that would cause other issues.
document.activeElement.blur() unfocuses the current (link) element and the focus then moves back to the default focus element – the body element.

About the TypeScript issues: document.activeElement is an Element type, not HTMLElement, so it doesn't technically support blur(). Does anyone have an idea how to get around this?

Hi thanks for the PR, can you add a test for this making sure the correct activeElement is focused after a client transition? This will help make sure we maintain the correct behavior moving forward.

@ijjk I'll add the tests asap. Currently a bit swamped at work 😬

@connor-baer I went ahead and added the tests and added an additional check to the blurring logic since you're busy and we want to make sure this is handled. Thanks for the taking the time to submit the PR!

Hey @ijjk, thanks for adding the tests and finishing the PR 🙌
I saw that you reverted the changes in #7753 — I assume because it broke something? Could you please elaborate on the issue? I have more free time this week and would love to fix this.


Update members.txt

@rosecers @saswatnayak1998

Hey Caleb,
Can you do this within your other PR? You should make the same changes on your cjyoungwerth:patch-2 branch and push there.


Fix replset not working on mongo 3.x

Fix replset not working on mongo 3.x due to the output containing an ObjectID

Thanks @serverbiz !


Always include PATH environment variable in Posix OS cmds

Presumably this covers https://github.com/flutter/flutter/pull/25240 ?

Yeah.  If you're able to confirm locally, I'll wait for that confirmation to merge.

Does not seem to fix it


Missing CMakeLists.txt

The file seems to be missing from the repo. It is necessary for building the code.

If you follow the instructions given, this file is created automatically, with details on the modifications needed to use it. I have added a copy of this file now.