[SCD] Build data generation pipeline

estimate 4

[ ] Extra: What inputs does a graph network expect?
[ ] Format the Gaia data to be suitable for the graph network
[ ] Visualize the input data

https://github.com/tensorflow/datasets/blob/311280c12f8b4aa9e5634f60cd8a898c3926c8e5/tensorflow_datasets/core/dataset_builder.py#L1009
example: https://github.com/tensorflow/datasets/blob/master/tensorflow_datasets/question_answering/web_questions.py

Reading:
https://arxiv.org/pdf/2003.09011.pdf
https://ui.adsabs.harvard.edu/abs/2003ARA%26A..41...57L/abstract
https://ui.adsabs.harvard.edu/abs/2020arXiv201106105C/abstract
https://ui.adsabs.harvard.edu/abs/2013ApJ...777..173B/abstract
https://arxiv.org/pdf/2011.10788.pdf

done


hepatic progenitor cell

Note - please check that the term does not already exist (check OLS: https://www.ebi.ac.uk/ols/ontologies/cl)
Preferred term label:
hepatic progenitor cell
Synonyms
adult hepatic progenitor cell
Definition (free text, please give PubMed ID in format PMID:XXXXXX)
It is a progenitor cell that is part of the adult human liver and is capable of differentiating only in hepatocyte or cholangiocyte
Parent cell type term (check the hierarchy here https://www.ebi.ac.uk/ols/ontologies/cl):
progenitor cell
What is the anatomical structure that the cell is a part of? Please check Uberon: https://www.ebi.ac.uk/ols/ontologies/uberon
adult liver
Your nano-attribution (ORCID)
0000-0003-1940-6740
Any additional notes or concerns

Thank you for this ticket, @masciam. Would you kindly add the reference (PMID, DOI, etc) to support adding this cell type?

@bvarner-ebi @masciam
Here are several DOI to support adding cell type; needed urgently for HuBMAP
https://doi.org/10.1038/s12276-020-0483-0
https://doi.org/10.7554/eLife.47313
https://doi.org/10.1016/B978-0-12-385233-5.00008-8
http://dx.doi.org/10.1136/gut.2007.143321
Thanks

This cell type appears to be the same as CL:0002196 'hepatic oval stem cell'.
In https://doi.org/10.1038/s12276-020-0483-0 it states: "... [biliary epithelial cells] are able to dedifferentiate into liver progenitor cells (LPCs), also known as oval cells.'
In PMID:17901986 it states: "Hepatic stem/progenitor cells also known as “oval cells” in rodents have been implicated in liver tissue repair, ..."
The comment here proposes adding this term as a synonym to 'hepatic oval stem cell'. There is a concern regarding the multipotent categorisation of stem cell, but based on the literature and in line with the definition of 'hepatic oval stem cell', this progenitor cell can differentiate into more than one cell.
Proposal:

[ ] add exact synonyms 'hepatic progenitor cell', 'hepatic stem/progenitor cell' and 'liver progenitor cell' to CL:0002196 'hepatic oval stem cell' with appropriate dbxrefs

I am fine with having the hepatic progenitor cell as synonym of the Oval cell. My only concern is that the hepatic progenitor cell are only present in adult human can only differentiate in 2 specific cell types and they are different from hepatic stem cell that derived from bone marrow.  I will not change 'hepatic oval cell' with 'haptic oval stem cell' this will create more confusion.  I have some concerns on the fact that in CL progenitor cell are parent of stem cell instead to be the reverse. Stem cell can differentiate in many cell types and are reserve cells that have the ability to change into many different types of cells and grow indefinitely. They have the potential to create many new different cells that can help replace dying and/or damaged cells. .Progenitor cell can only hey are already more specific than stem cells and can only be pushed to differentiate into its "target" cell.

Thanks for the feedback, @masciam.

My only concern is that the hepatic progenitor cell term is only use in adult human terminology and refer to a rodent counter part (oval cell) that can only differentiate in 2 specific cell types and they are different from hepatic stem cell that derived from bone marrow.

These terms are not species restricted in the ontology, so I don't expect it should cause an issue. The few papers I scanned suggest only bipotency of hepatic progenitor cell, so that seems in line with oval cell. We won't call it 'hepatic stem cell', but I have seen 'hepatic stem/progenitor cell' used to seemingly refer to the progenitor cell.

I have some concerns on the fact that in CL progenitor cell are parent of stem cell instead to be the reverse.

I don't see the relationship you noted above. Do you have a screen shot?
The equivalence axiom for 'progenitor cell' is:
'precursor cell'
 and ('develops from' some 'stem cell')

Thanks for the feedback, @masciam.

My only concern is that the hepatic progenitor cell term is only use in adult human terminology and refer to a rodent counter part (oval cell) that can only differentiate in 2 specific cell types and they are different from hepatic stem cell that derived from bone marrow.

These terms are not species restricted in the ontology, so I don't expect it should cause an issue. The few papers I scanned suggest only bipotency of hepatic progenitor cell, so that seems in line with oval cell. We won't call it 'hepatic stem cell', but I have seen 'hepatic stem/progenitor cell' used to seemingly refer to the progenitor cell.

I have some concerns on the fact that in CL progenitor cell are parent of stem cell instead to be the reverse.

I don't see the relationship you noted above. Do you have a screen shot? The equivalence axiom for 'progenitor cell' is:
'precursor cell'
 and ('develops from' some 'stem cell')
``you are right  stem cell is not a child of progenitor, my mistake.  But hepatic oval cell is a child of stem cell not progenitor how we deal with that?  should the oval cell moved under progenitor cell? From the practical point the hepatic progenitor cell are the corresponding adult human of rodent oval cell so this should make the terms clearly synonyms . My first concern when I started this request is about the consistency with the hierarchy but if you do not se

e the issue here I am fine with having the synonym .

@masciam, I think confusion may stem from (pun intended) how it has been referred to in papers, using both progenitor and stem in the terminology (see below).
In CL I see several classes with 'stem' in the label as sublclasses of 'progenitor cell', so we could consider moving 'hepatic oval stem cell' to a subclass under 'progenitor cell'. @dosumis, what do you think?
For reference, the text definition of 'hepatic oval stem cell' in CL is:
"A transient hepatic stem cell observed after liver injury with a high nuclear to cytoplasm ratio that can differentiate into mature hepatocytes and bile duct cells. Arises from more than one tissue."
CL definition of 'stem cell':
A relatively undifferentiated cell that retains the ability to divide and proliferate throughout life to provide progenitor cells that can differentiate into specialized cells.
CL definition of 'progenitor cell':
A precursor cell that has a tendency to differentiate into a specific type of cell. They are descendants of stem cells, only they are more constrained in their differentiation potential or capacity for self-renewal, and are often more limited in both senses.
In PMID:17901986: "Hepatic stem/progenitor cells also known as "oval cells" in rodents have been implicated in liver tissue repair, ..."
In PMID:12468240 :"Bone marrow stem cells have recently been shown to be a potential source of the hepatic oval cells..."
In PMID:12468240, they put 'stem' inside quotes.
Title of paper: Hepatic oval 'stem' cell in liver regeneration
Text from paper: "Hepatic oval cells display a distinct phenotype and have been shown to be a bipotential progenitor of two types of epithelial cells found in the liver, hepatocytes and bile ductular cells."

The difference in terminology between adult hepatic progenitor cell and hepatic oval cell seems to be human vs rat.  From PMID: 28135758:
"In this scenario, adult hepatic stem/progenitor cells, termed hepatic progenitor cells (HPCs) in humans4 and oval cells in rodents,5 emerge and become activated.6,7"
Stem cell vs progenitor cell are blurred into "stem/progenitor cell" in many source papers because they are talking about the transitional state from one to the other.

@masciam, I think confusion may stem from (pun intended) how it has been referred to in papers, using both progenitor and stem in the terminology (see below). In CL I see several classes with 'stem' in the label as sublclasses of 'progenitor cell', so we could consider moving 'hepatic oval stem cell' to a subclass under 'progenitor cell'. @dosumis, what do you think? My question is- if we do that, would the parent class 'hepatic stem cell' also be moved under 'progenitor cell'?
For reference, the text definition of 'hepatic oval stem cell' in CL is: "A transient hepatic stem cell observed after liver injury with a high nuclear to cytoplasm ratio that can differentiate into mature hepatocytes and bile duct cells. Arises from more than one tissue."
CL definition of 'stem cell': "A relatively undifferentiated cell that retains the ability to divide and proliferate throughout life to provide progenitor cells that can differentiate into specialized cells."
CL definition of 'progenitor cell': "A precursor cell that has a tendency to differentiate into a specific type of cell. They are descendants of stem cells, only they are more constrained in their differentiation potential or capacity for self-renewal, and are often more limited in both senses."
After looking at the different definitions that  Hepatic oval cell are progenitors. A different thing are the hepatic stem cell those can differentiate in several cell types as well as the Human liver stem cells (HLSC) that are different from the hepatic cell progenitor (the the human counterpart of oval cell in rat). https://pubmed.ncbi.nlm.nih.gov/33981703/

-**__I agree on

move the hepatic oval cell under progenitor cell
make the hepatic progenitor cell a synonym of hepatic oval cell
leave the hepatic stem cell under stem cell_**

From OLS:

In PMID:17901986: "Hepatic stem/progenitor cells also known as "oval cells" in rodents have been implicated in liver tissue repair, ..."
In PMID:12468240 :"Bone marrow stem cells have recently been shown to be a potential source of the hepatic oval cells..."
In PMID:12468240, they put 'stem' inside quotes. Title of paper: Hepatic oval 'stem' cell in liver regeneration Text from paper: "Hepatic oval cells display a distinct phenotype and have been shown to be a bipotential progenitor of two types of epithelial cells found in the liver, hepatocytes and bile ductular cells."

Proposal:
[ ] change the parent of CL:0002196 'hepatic oval stem cell' from 'hepatic stem cell' to 'progenitor cell'
[ ] add 'hepatic progenitor cell' as an exact synonym to 'hepatic oval stem cell'
[ ] do not edit 'hepatic stem cell'

@masciam, the changes discussed above have been merged via PR #1625 and will be reflected in the next CL release.
Thank you for your contribution!

Thank you :)


Imports pollute global namespace

someFile.du
def test() {
    print("Hello");
}

main.du
import "someFile.du";

test(); // Available via global namespace

someFile.test(); // We should prefer something like this

This would be better suited as an include statement for simple file includes, and then the import statement to import specific classes/functions from files :v:

There's a couple of routes we could go down with this, not quite decided yet. Your suggestion is one route, another is similar to Pythons where it's imported as a module. Another would be to introduce something like a namespace keyword. Unsure of the best option at this moment in time, however i do appreciate the input!


Removes an extra exist call and removes the spinner around it

Currently Checking component is shown two times as a exists call still remains. This PR removes it.

/approve


Fixing dpath to work for any type of leaf nodes

from decimal import Decimal
ts = {
    "foo" :{
        "dude": Decimal(1.5)
    }
}
>>> dpath.util.get(ts, "foo/dude")
TypeError: object of type 'decimal.Decimal' has no len()

Given that leaf checks for a finite number of types any kind of odd type such as a function or custom object will simply not work in this dictionary. I've suggested an approach based on duck-typing, in which I check if the object has a __getitem__ instead of checking particular type (though I do that too for the case of string)
I have a couple of places I wasn't sure about and would love some opinions.

When you have an object with a __getitem__ but no items or len the kvs method breaks. I've kind of just returned an empty iterator here, but it should be accessible via keys and doesn't really need to have a walk run on it if there is no glob for that field. I currently just treat it as a leaf, but maybe this might be addressed with some kind of warning?
I also was worried about catching a generic Exception in thing[0] since it could easily be either an indication the object is mappable, but just uses a custom Exception and might have a len/items implemented. I've let it stand right now, but am open to change.

Another point of concern I had was the fact that we could have an object that implemenets getitem but not items or len.
Arguably since obj["key"] works, doing dpath.utils.get(obj, "key") should work, but it won't since it has to do a walk despite having no globs in the path.
I've left this unfixed, but added an expected fail test in the meantime. I think it's fair to require some iteration protocol when there's a glob for the current part, but otherwise it should be able to work.

Closing this since there is another PR fixing the base issue.


Added drag and drop pdf file function to the software

Please add function: drag and drop files directly into the software.
This will reduce the time spent opening and searching for files.
Hopefully the above function will be updated soon. Thank you very much !

you can try https://github.com/raydac/pdf-image-remover/releases/tag/1.1.1-S

It works fine. Thank you very much


[WIP] Feature/for root async

#12 Added a forRootAsync method for adding roles from a persisted database. Should be able to create an injectable to return roles

I have no idea how you've set build up :P


Home assstan home page unavailble on ios Safari and Firefox

I,m runnig  the latest version of custom ui and HASS.
The Homepage is correctly displayed on a pc using Firefox but sadly it's not rendered on ios (Safari or Firefox) browser.
I've only done the installation but no custom configuration done already.
Checklist

[x] I'm running the latest version of CustomUI (Update guide) or using a specific release that is not marked as "Broken".
[x] I tried to force-refresh (Ctrl+Shift+R / Ctrl+F5) the browser
[ ] (Optional, but recommended) I'm using Chrome or tried to reproduce the feature on Chrome.

Browser + Version:

CustomUI version:
Home Assistant release (hass --version):
Problem-relevant configuration.yaml entries:

Problem-relevant Home Assistant log entries:

Any errors from browser Javascript console:

HA version? Errors in the log? What does it mean "not rendered"?

Any chance this is on iOS 9? Then this issue is probably caused by Home Assistant (Polymer) itself, not Andrey's Custom UI. Check out home-assistant/home-assistant-polymer#851 (and the closed issue linked in it) for more info.

I'm on iOS 10.2 and home assistant without custom extension is working good. For not rendered I mean the web page does not show anything on the screen. For the log I need some time to reinstall the extension.

From: Andrey<EMAIL_ADDRESS>Sent: venerdì, febbraio 9, 2018 21:30
Subject: Re: [andrey-git/home-assistant-custom-ui] Home assstan home page unavailble on ios Safari and Firefox (#100)
To: andrey-git/home-assistant-custom-ui<EMAIL_ADDRESS>Cc: Mr_Orange<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>HA version? Errors in the log? What does it mean "not rendered"?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/andrey-git/home-assistant-custom-ui/issues/100#issuecomment-364556448, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AAqt1D0rDpx61CLp8Ne99WW6IFHbmWu-ks5tTKrdgaJpZM4SAclk.


New theme: hugo-theme-CleanWhite

Hi,
I created a new Hugo theme called hugo-them-cleanwhite: https://github.com/zhaohuabing/hugo-theme-cleanwhite/
I'd like to add this theme to the hugo showcase, please help me review the theme and let me know if there's anything to be worked on for inclusion in the theme repo.
Thanks!

Hello @zhaohuabing
thank you for sharing this theme with the Hugo community. Excuse the long delay. I took off a few days from GitHub.
Nonetheless, I tested your theme with the build script for the Hugo theme site and noticed a few 404 errors in the developer tools' console. Those occur because all assets like JS and CSS files are referenced as follows:
{{ "/path/to/file" | absURL }}

Websites that are hosted in a subdir, i.e. have a baseurl like example.com/blog/. In those cases absURL makes urls not relative to example.com/blog/path/to/file as you might expect. Because of the leading slash the paths are made relative to the root directory, not the base url. Hence the ressources are tried to be fetched from example.com/path/to/file instead of example.com/blog/path/to/file.
You can fix this by removing the leading slash in all urls. This affects mainly the head.html partial. Also remove the trailing slash from all paths (to images) in the example config file.
You should be able to test this by setting the url to example.com/blog or something where the base url contains a subdir.
Regards,
Digitalcraftsman

@digitalcraftsman Thanks a lot for taking the time to review my submitted theme, I really appreciate it. I fixed the URL path issues according to your comments and tested locally.
Thanks,
Huabing

Your theme should appear soon on Hugo's theme site. Next, I'll promote your theme on Hugo's official Twitter account.

That's awesome!
Thanks for creating this amazing Hugo project and giving me the opportunity
to contribute!
On Sun, Jul 8, 2018, 6:59 PM digitalcraftsman<EMAIL_ADDRESS>wrote:

Your theme should appear soon on Hugo's theme site. Next, I'll promote
your theme on Hugo's official Twitter account
https://twitter.com/gohugoio.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/gohugoio/hugoThemes/issues/374#issuecomment-403279559,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABQrIhpnrjevtFXj2GDtBl8HVic4R6trks5uEeYbgaJpZM4Ut0HE
.


Hot fix for controller admin health check API

Codecov Report

Merging #1791 into master will decrease coverage by 0.02%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1791      +/-   ##
==========================================
- Coverage   65.84%   65.82%   -0.03%
==========================================
  Files         866      866
  Lines       41973    41973
  Branches     5528     5528
==========================================
- Hits        27638    27628      -10
- Misses      12468    12476       +8
- Partials     1867     1869       +2

Impacted Files
Coverage Δ

...ller/api/resources/PinotControllerHealthCheck.java
0% <ø> (ø)
:arrow_up:

...in/pinot/core/query/pruner/ValidSegmentPruner.java
57.14% <0%> (-28.58%)
:arrow_down:

...not/common/segment/fetcher/HttpSegmentFetcher.java
28.57% <0%> (-19.05%)
:arrow_down:

...m/linkedin/pinot/common/utils/FileUploadUtils.java
45.58% <0%> (-7.36%)
:arrow_down:

...impl/dictionary/DoubleOnHeapMutableDictionary.java
75.55% <0%> (-6.67%)
:arrow_down:

...not/core/query/pruner/DataSchemaSegmentPruner.java
53.65% <0%> (-4.88%)
:arrow_down:

...m/linkedin/pinot/common/metrics/MetricsHelper.java
68.83% <0%> (-2.6%)
:arrow_down:

...regation/function/customobject/QuantileDigest.java
46.99% <0%> (-2.15%)
:arrow_down:

.../filter/predicate/InPredicateEvaluatorFactory.java
78.35% <0%> (-1.04%)
:arrow_down:

...lter/predicate/NotInPredicateEvaluatorFactory.java
81.73% <0%> (-0.97%)
:arrow_down:

... and 8 more

Continue to review full report at Codecov.

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


404s on staging

I'm seeing these 3 404s on staging right now, none of which should happen afaict:
GET https://mozillathimblelivepreview.net/bramble/dist/thirdparty/filer-dialogs/style/style.css
GET https://mozillathimblelivepreview.net/bramble/dist/thirdparty/filer-dialogs/bower_components/font-awesome/css/font-awesome.min.css
GET https://mozillathimblelivepreview.net/bramble/dist/styles/bramble_overrides.css

@gideonthomas, @JordanTheriault can you two look, these are things from your recent bugs.

Filer-dialogs was never corrected, but there's a WIP patch I wrote that got lost. It needs lazy loading of font-awesome once to be shared between any extensions that need. it.

bramble_overrides.css is the firefox fix, but hasn't been forced to be included in the build step which is why it can't find it on staging.

In fact, @JordanTheriault has a patch for the bramble_overrides stuff here: https://github.com/humphd/brackets/pull/310/files

The filer-dialogs stuff got changed yesterday, see https://github.com/humphd/brackets/pull/309.  @gideonthomas, why is it 404ing?

looking into it


Hello World crash with UE BOOM 2 speaker

The Hello World example crashes with UE BOOM 2 speaker as detailed here:
https://stackoverflow.com/questions/57004135/audiokit-macos-helloworld-fails-with-ue-boom-2-speaker

I posted a comment on stack overflow.

From what I gather, this may only be supported in Catalina, and AudioKit for macOS might need to be updated for that too.

For now, there's not much I can do.

Thank you for looking into it.


How to make difft the default git log tool?

Hi, difftastic looks... well, fantastic! I've just installed it and am playing around.
Now, basically I want difftastic to  handle git show and git log -p automatically—besides just git diff.

I've managed to get git diff to use difftastic with the following .gitconfig
And it works with git log -p --ext-diff too
But how can I get rid of the --ext-diff argument and always use difftastic by default?

Thanks in advance,
Gunar

[diff]
  tool = difft
  external = difft
[difftool]
  prompt = false
[difftool "difftastic"]
  cmd = difft "$LOCAL" "$REMOTE"
[pager]
  difftool = true
# `git dft` is less to type than `git difftool`.
[alias]
  dft = difftool

Related to https://github.com/Wilfred/difftastic/issues/280


Metadata Directed Sorting

@szeke said:
I’ve been thinking on adding metadata to properties to specify how to sort the values of a property, as sometimes we want alphabetical, and sometimes the sorting should be based on qualifiers. We can attach new properties to properties. The fist Psort_criterion can have value value or qualifier. For the qualifier case, Psort_qualifier has value the Pnode of the qualifier property to use for sorting, P585 . Finallt, Psort_order can have values ascending or descending. For example, in http://ckg07.isi.edu:3008/browser/P1027 we want to sort the entity types used based on quantity,  descending. This metadata goes in the kgtk.properties.tsv file, currently in GitHub.
@CraigMiloRogers  said:
I'd like to do something like this.  Let's add some default behaviors:  if Psort_criterion is absent, the default is value. If Psort_order is absent, the default is ascending.  If Psort_criterion is qualifier but Psort_qualifier is absent, the value sorting is once again assumed.  Finally, if Psort_criterion is qualifier, Psort_qualifier is present, but the qualifier mentioned by Psort_qualifier is not present in some or all instances, then ones for which it is missing will be sorted by value after the instances for which it is present. I think that covers all the cases.

We should implement the scheme in the back end, build a few examples by hand, eg for population and some of the other statistical properties. We can then think of a way to create useful defaults based on the data.


iOS 15.1.1 picker not showing the month field

Environment
iOS - OS version 15.1.1 didn't get the error proper wheel picker response

Platforms
iOS

Versions
15.1.1

-- react-native- iOS:

react-native-modal-datetime-picker:
react-native-community/datetimepicker:

Description
Please check the below-attached image below this is occurring on ios 15.1.1 device iphone 13 pro max
only showing date and year month is not displaying in this picker and also the font color is dull.

Reproducible Demo

@mmazzarolo why are you closing this any solution on this issue..?

I am having the same problem on iOS after version 15 release.

Why this is closed without any solution? I am facing same issue in iOS 15

@mmazzarolo To dig further It's not working in dark mode only.

Reproducible when setting Appearance set to Dark in iOS Settings > Display & Brightness
const colorScheme = Appearance.getColorScheme();
const isDarkModeEnabled = colorScheme === 'dark';
console.log(isDarkModeEnabled) // false

<DateTimePickerModal
    isVisible={isDatePickerVisible}
    mode="date"
    display="spinner"
    onConfirm={handleDateConfirm}
    onCancel={hideDatePicker}
    isDarkModeEnabled={isDarkModeEnabled}
/>

The issue is colorScheme will alway return 'light' in debugging mode.
The issue is not reproducible when I turn Stop Debugging from the React Native Debug Menu. I think it is related to this issue: https://github.com/facebook/react-native/issues/29144


Only run pyfontaine codepage check if the font has glyphs in the unicode range

In the current implementation, every pyfontaine check will be run, regardless of whether the font contains a single glyph in the codepage's unicode range.
https://github.com/googlefonts/fontbakery/blob/master/Lib/fontbakery/specifications/googlefonts.py#L4099-L4267
This is causing a lot of bloat and is related to #1537

Per https://github.com/googlefonts/fontbakery/issues/1537#issuecomment-324040991 we should not run pyfontaine, so I'm closing this


undefined symbol: EVP_idea_cbc, version OPENSSL_1_1_0

This has the same title as #9 mentioned by @dehann because I have the same problem. I found a work around and I can probably submit a patch...when we can figure out how and where it's actually happening. Read through the linked issue for background, which I won't repeat here.
The players:

OpenSSL
OpenSSL_jll
PyCall
py-julia

Base OS is Ubuntu 20.04 but I'm also testing it on Alpine Linux to build inside a docker container via a CI system. Let's stick with Ubuntu for this example. On my computer, here's all the things with the name libssl.so in them.
/home/lee/.julia/artifacts/3a83c270789c2c05ff731923907ab1ccac10dfeb/lib/libssl.so
/home/lee/.julia/artifacts/3a83c270789c2c05ff731923907ab1ccac10dfeb/lib/libssl.so.1.1
/home/lee/.julia/artifacts/3a83c270789c2c05ff731923907ab1ccac10dfeb/logs/OpenSSL/update_linkage_libssl.so.1.1_libcrypto.so.1.1.log.gz
/home/lee/.julia/artifacts/3a83c270789c2c05ff731923907ab1ccac10dfeb/logs/OpenSSL/update_linkage_openssl_libssl.so.1.1.log.gz
/home/lee/.julia/artifacts/3a83c270789c2c05ff731923907ab1ccac10dfeb/logs/OpenSSL/update_rpath_libssl.so.1.1_libcrypto.so.1.1.log.gz
/home/lee/.julia/artifacts/53037ac9d528ee46c3526799b407ee52b7c224f3/lib/libssl.so
/home/lee/.julia/artifacts/53037ac9d528ee46c3526799b407ee52b7c224f3/lib/libssl.so.1.1
# ... some stuff in snapcraft we can ignore
/usr/lib/x86_64-linux-gnu/libssl.so
/usr/lib/x86_64-linux-gnu/libssl.so.1.1

The last two on the list seem important, as those are what the OS distributes but it looks like the Julia binary is pulled from this package on install time and it is distributing its own C shared lib. That's the one that throws the EVP_idea_cbc symbol error. I suspect because it was compiled differently. What if...I just replace the Julia one? Let's try!
lee@MS3ZRMZ-LT:~$ ls -l /home/lee/.julia/artifacts/53037ac9d528ee46c3526799b407ee52b7c224f3/lib/libssl.so
lrwxrwxrwx 1 lee lee 13 Dec 18 21:33 /home/lee/.julia/artifacts/53037ac9d528ee46c3526799b407ee52b7c224f3/lib/libssl.so -> libssl.so.1.1
lee@MS3ZRMZ-LT:~$ rm /home/lee/.julia/artifacts/53037ac9d528ee46c3526799b407ee52b7c224f3/lib/libssl.so
lee@MS3ZRMZ-LT:~$ ln -s /usr/lib/x86_64-linux-gnu/libssl.so.1.1 /home/lee/.julia/artifacts/53037ac9d528ee46c3526799b407ee52b7c224f3/lib/libssl.so
lee@MS3ZRMZ-LT:~$ ls -l /home/lee/.julia/artifacts/53037ac9d528ee46c3526799b407ee52b7c224f3/lib/libssl.so
lrwxrwxrwx 1 lee lee 39 Jan 14 01:21 /home/lee/.julia/artifacts/53037ac9d528ee46c3526799b407ee52b7c224f3/lib/libssl.so -> /usr/lib/x86_64-linux-gnu/libssl.so.1.1

That removes the symbol error!
 We're doing earth orbital simulation through custom Julia packages (some planned to be open source!) which are then called from Python data APIs using py-julia, which uses PyCall behind the scenes.
All three bug reports I've found in these projects mention either PyCall or py-julia. In my case, I suspect libssl is being called because I have some initialization function that downloads planetary body data models. That's pure speculation and really difficult to debug due to this data passing back and forth through eval().
PyCall has quite an essay under the installing section devoted to how a python interpreter is picked from Julia. I suspect this might be my problem and/or close to the other people's problems.
In my case I'm using pyenv and I have many python interpreters. I'm also using the poetry dependency manager, which does some python path tricks that I don't fully understand.
but I digress
It seems like it could be helpful for this library to search through the base OS for libssl.so before using the binary from the JLL package. That's the best I can do for now. I expect to reference this issue across the other projects, get thrown around from one project to the next and perhaps post on the Julia discourse. But I'm starting here.

cc: @giordano in case he has any insights here

There isn't much to do when you mix up libraries from different sources: if they're incompatible you're out of luck.

I don't think this has anything to do with luck. It looks like all the players are in this room and given some time and attention we can fix this. I'll look into removing the custom compiled libssl.so in the OpenSSL_jll package later this week. @giordano are you the maintainer of this package?

UPDATE! with good news
Downgrading to a version of OpenSSL_jll from around the same time as the system library fixed the problem. The source of this problem is that the Julia binary wrapper for the C openssl code is too new to work with many versions of python, which needs to be compiled as a shared library to maintain compatibility with py-julia.
After installing all my dependencies I just ran julia -e 'using Pkg; Pkg.add(name="OpenSSL_jll", rev="OpenSSL-v1.1.1+2")' and the undefined symbol: EVP_idea_cbc error stopped. My tests pass once again! It seems the latest release from Nov 2022 removed this symbol, thus the scarcity of bug reports.
 That might be interesting to understand better.


macos support

Had a few bits of trouble trying to test the readme example code on MacOS. Besides #10 it looks like the macOS/chx86_analyze_mac path doesn't exist.
It's also not clear the difference between https://github.com/static-analysis-engineering/CodeHawk-Binary/blob/master/chb/bin/binaries/chx86_analyze_linux and https://github.com/static-analysis-engineering/CodeHawk-Binary/blob/master/chb/bin/binaries/linux/chx86_analyze but simply copying the chx86_analyze_mac file to macOS/chx86_analyze fails with some argument differences so there's clearly more to it than just a wrong file path.

Looks like this is resolved with some previous and it works out of the box now, thanks.


Tonic Support / Example

Hi there. Thanks for this library. I've used similar algorithms in other languages/frameworks and find them incredibly useful.
I've spent a lot of time integrating this with a simple tonic project. I suspect it should be as simple as adding the layer and mapping the error to a tonic::Status - but I can't seem to get the type system to be happy. It always seems to think the inner type of the LoadShedError::Inner won't play nicely with a tonic::Status.
I'm probably missing something self-evident here, but it would be great to have an example of how to integrate this with tonic.
Thanks!

Hmmmmmmm, this is more painful than I expected. I suspect the issue you're having is because of poll_ready. Specifically this code doesn't work:
#[tokio::main]
async fn main() -> Result<(), Box<dyn Error>> {
    Server::builder()
        .layer(MapResultLayer::new(|resp| match resp {
            Ok(resp) => Ok(resp),
            Err(LoadShedError::Overload) => Err(Status::resource_exhausted("overloaded")),
            Err(LoadShedError::Inner(inner)) => Err(Status::internal(inner.to_string())),
        }))
        .layer(LoadShedLayer::new(0.1, Duration::from_millis(100)))
        .add_service(Greeter)
        .serve("<IP_ADDRESS>:50051".parse().unwrap())
        .await?;
    Ok(())
}

because even though the error is being adapted in the response case, it's not being adapted for a simple poll_ready. You can do something like this:
#[tokio::main]
async fn main() -> Result<(), Box<dyn Error>> {
    Server::builder()
        .layer(layer_fn(|service| {
            let mut load_shed = LoadShed::new(service, 0.1, Duration::from_millis(100));
            service_fn(move |req| {
                let resp: BoxFuture<'static, _> = load_shed.call(req);
                async move {
                    match resp.await {
                        Ok(resp) => Ok(resp),
                        Err(LoadShedError::Overload) => {
                            Ok(Status::resource_exhausted("overloaded").to_http())
                        }
                        Err(LoadShedError::Inner(inner)) => Err(inner),
                    }
                }
            })
        }))
        .add_service(Greeter)
        .serve("<IP_ADDRESS>:50051".parse().unwrap())
        .await?;
    Ok(())
}

but that only works correctly because I know that the LoadShed service is always ready.
I think this has highlighted that I'm returning the wrong thing, I think the load shed service needs to return a response that might be overload rather than an error that might be overload. That design means that you can do this:
#[tokio::main]
async fn main() -> Result<(), Box<dyn Error>> {
    Server::builder()
        .layer(MapResponseLayer::new(|resp| match resp {
            LoadShedResponse::Inner(inner) => inner,
            LoadShedResponse::Overload => Status::resource_exhausted("overloaded").to_http(),
        }))
        .layer(LoadShedLayer::new(0.01, Duration::from_millis(200)))
        .add_service(Greeter)
        .serve("<IP_ADDRESS>:50051".parse().unwrap())
        .await?;
    Ok(())
}

Which looks much more sensible to me.

There you go, hopefully that's better: https://github.com/Skepfyr/little-loadshedder/releases/tag/v0.2.0


How to achieve synchronous request

When i use AFN3.0
How to achieve synchronous request
same
NSMutableURLRequest *request = [requestSerializer requestWithMethod:@"GET" URLString:urlString parameters:requestParms error:nil];
AFHTTPRequestOperation *requestOperation = [[AFHTTPRequestOperation alloc] initWithRequest:request];
AFHTTPResponseSerializer *responseSerializer = [AFJSONResponseSerializer serializer];
[requestOperation setResponseSerializer:responseSerializer];
[requestOperation start];
[requestOperation waitUntilFinished];

I no find a methods to achieve

AFN has no plans to support synchronous network requests.
🍻

I wrote a category for this:
https://github.com/paulmelnikow/AFNetworking-Synchronous


Neural network as selector

I plan to deploy a neural network(CNN, or whatever) to model the judgement of user about pictures in later version. It will make the classification more adaptive.

Quick, pip install TensorFlow.

@BorisPolonsky Tensorflow was installed just now.
But ETA of this feature remains uncertain.


Add additional documentation for the command line tools

The README now discusses the two tools that live in cmd. It also make the --help output for these commands more informative and readable. Specifically:
> get_key --help
get_key - Write PEM formatted TPM public keys to stdout

  -hierarchy string
    	Hierarchy of the requested key. Valid options are endorsement,
    	platform, owner, and null. (default "endorsement")
  -template-index uint
    	NVRAM index of the key template. If this flag is not given,
    	the default RSA EK/SRK template is used.
  -tpm-path string
    	Path to a TPM character device or socket. (default "/dev/tpm0")

> flush_handles --help
flush_handles - Flush active TPM handles from the device

  -flush-all-types
    	Flush handles of all handle types. If enabled,
    	settings for other handle types are ignored.
  -flush-loaded-session
    	Flush all loaded session handles.
  -flush-saved-session
    	Flush all saved session handles.
  -flush-transient
    	Flush all transient handles. (default true)
  -tpm-path string
    	Path to a TPM character device or socket. (default "/dev/tpm0")

Obsoleted by https://github.com/google/go-tpm-tools/pull/18


Why add a new plugin to hallo editor so hard?

I was follow the documents but never success.I suspect the documents was wrong or some detail was hidden

Adding new hallo plugins isn't something we particularly recommend - almost all potential uses of them are about giving editors direct control over the page design, which is discouraged (editors should ideally be providing pure informational content, and leaving design to be handled in the template).
If there's a specific problem you want to solve, please open a question on the Wagtail tag on Stack Overflow with full details of what you've tried and what's failing.


Rough pass at pulling out react specific utils into dedicated package

Follow up from the related discussion (https://github.com/ariakit/ariakit/discussions/1723) I've started working on this rough draft PR for how pulling out the React-specific utilities from the base ariakit-utils package might work.
This approach will not currently build, I think, due to ariakit-react-utils and the new version of ariakit-utils not being published. Is there some monorepo configuration I'm maybe missing here? :thinking:
cc @visualjerk

You can keep the old versions (and ariakit-react-utils with the same version as ariakit-utils). Just add it to https://github.com/ariakit/ariakit/blob/main/.changeset/pre.json
I published ariakit-react-utils to npm (looks like npm fails if the npm doesn't exist in the registry).

Let's see if I did it right :sweat_smile:

Okay, looks like this could be ready to review :slightly_smiling_face: I'll update the PR description with suggestions for how to review this.
I was wondering if it'd be okay to add a readme.md to ariakit-utils with a note about not including any React imports in the package? Just wanting to make sure the reason for the split there is documented outside just this PR, if that's something you'd like, Diego.

I was wondering if it'd be okay to add a readme.md to ariakit-utils with a note about not including any React imports in the package? Just wanting to make sure the reason for the split there is documented outside just this PR, if that's something you'd like, Diego.

I think we could add an entry to the advanced part of the contributing guide. I'm trying to centralize all the contributing-related stuff there. Maybe Writing utils or something.


New settings after INFN-CLOUD-BARI site re-installation

Fix

keystone endpoint
info about currently supported VOs/projects

Thanks @maricaantonacci, cf the test error, I think that the new VO should also be added to https://github.com/EGI-Federation/fedcloud-catchall-operations/blob/main/vo-mappings.yaml, can you take care of this?

Both errors can be safely ignored. I will update the test to avoid the noise


There are many bad lines in the results

There are many bad lines in the result png.

@HyperGroups
Would you like to try again with the latest version?

@HyperGroups
I want to add an issue file to the test case.
Could you please share the file that caused the problem?

I have a problem installing and getting started, is there a demo I can use? Could you please help?
I enter this in command :
$ pip install git+https://github.com/cpederkoff/stl-to-voxel.git
$ stltovoxel input.stl output.png
and this in return:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional>$ pip install git+https://github.com/cpederkoff/stl-to-voxel.git
'$' is not recognized as an internal or external command,
operable program or batch file.
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional>$ stltovoxel input.stl output.png
'$' is not recognized as an internal or external command,
operable program or batch file.
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional>pip install git+https://github.com/cpederkoff/stl-to-voxel.git
Fatal error in launcher: Unable to create process using '"c:\python\python.exe"  "C:\python\Scripts\pip.exe" install git+https://github.com/cpederkoff/stl-to-voxel.git': The system cannot find the file specified.
I tried this from forum as well with no proress: https://stackoverflow.com/questions/67380124/voxelization-of-stl-file-writing-into-np-array
import stl_reader
import stltovoxel
import numpy as np
import copy
import os
import sys
input=r"C:\Users\user\Example.stl"
output=r"C:\Users\user\Test.xyz"
resolution = 50 #Resolution, into how many layers the model should be divided
stltovoxel.doExport(input, output, resolution)
I think Im doing something wrong, Im using google colab.

Hi @RSMpy I've moved your comment to this issue https://github.com/cpederkoff/stl-to-voxel/issues/34, and I can help over there.

@HyperGroups @RSMpy
Could you please share the stl file in question?
Also, can you attach the error screen as well?


Required gstreamer plugin 'srtp' not found

I built gstreamer from source on Ubuntu 16.04
after building the sendrecv/gst/webrtc-sendrecv.c program, executing it results in an error
Required gstreamer plugin 'srtp' not found

There doesn't seem to be an 'srtp' plugin on this page https://gstreamer.freedesktop.org/documentation/plugins_doc.html?gi-language=c
Is there a simple solution that I'm missing?

You need the srtp plugin (and various others) from gst-plugins-bad. It's apparently not part of your build results and because of that not found by the application.
Check the output of configure (or meson) of gst-plugins-bad to see why it was not built, you're probably missing the development package for libsrtp.


Remove unused dart:async import

Since Dart 2.1, Future/Stream have been exported by dart:core

Thanks!


Remove space from link of category headers on issue page

I'll just merge this one as tests have passed and it's obviously a simple bugfix


Size of PersonCard in Others panel & Empty space in Me panel

Currently, there is empty space in the Others panel (due to hidden information) and empty space in the Me panel (due to there being only 1 PersonCard in it).

Do you think this is better?

Looks good to me

I'll fix this together with the other panels and push it together as 1 pr for v1.4 (final hopefully)

Do you think this is better?

Sick la Pual, proud of you. it legit looks good


Icon

Type
No response
Info
Here are some icons some are for web page. Feel free to keep or discard.
Dogpile Search Engine
Icon(s)

Another


Does this handle textures?

For example, if I take a model that has a texture map, and subtract a cube from it, will the remaining model still have texture?
EDIT: Oh, I see https://github.com/manthrax/THREE-CSGMesh does, so this may inherit that if the fork happened at the time after the former had the feature.

Yes, it does.


Error in installation using pip --user

Hi, I get this error when I try to install your module through pip using --user

Platform/operating system (i.e. Raspberry Pi with Raspbian operating system,
Windows 32-bit, Windows 64-bit, Mac OSX 64-bit, etc.):  Computer with Linux Mint

Python version (run python -version or python3 -version):  python3.6.2

Error message you are receiving, including any Python exception traces:

Collecting Adafruit-PN532
Collecting Adafruit-GPIO>=0.9 (from Adafruit-PN532)
  Downloading Adafruit_GPIO-1.0.3.tar.gz
Collecting adafruit-pureio (from Adafruit-GPIO>=0.9->Adafruit-PN532)
Collecting spidev (from Adafruit-GPIO>=0.9->Adafruit-PN532)
  Using cached spidev-3.2.tar.gz
Building wheels for collected packages: Adafruit-GPIO, spidev
  Running setup.py bdist_wheel for Adafruit-GPIO ... done
  Stored in directory: /home/user/.cache/pip/wheels/b3/9c/46/979f3d85515bc2cc73b7ec36eba4310d7b5e1d915b6489995d
  Running setup.py bdist_wheel for spidev ... error
  Complete output from command /usr/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-8b_u4o1s/spidev/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpfl_0z7kgpip-wheel- --python-tag cp36:
  running bdist_wheel
  running build
  running build_ext
  building 'spidev' extension
  creating build
  creating build/temp.linux-x86_64-3.6
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -c spidev_module.c -o build/temp.linux-x86_64-3.6/spidev_module.o
  spidev_module.c:20:20: fatal error: Python.h: No such file or directory
  compilation terminated.
  error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

  ----------------------------------------
  Failed building wheel for spidev
  Running setup.py clean for spidev
Successfully built Adafruit-GPIO
Failed to build spidev
Installing collected packages: adafruit-pureio, spidev, Adafruit-GPIO, Adafruit-PN532
  Running setup.py install for spidev ... error
    Complete output from command /usr/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-8b_u4o1s/spidev/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-ep684f24-record/install-record.txt --single-version-externally-managed --compile --user --prefix=:
    running install
    running build
    running build_ext
    building 'spidev' extension
    creating build
    creating build/temp.linux-x86_64-3.6
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -c spidev_module.c -o build/temp.linux-x86_64-3.6/spidev_module.o
    spidev_module.c:20:20: fatal error: Python.h: No such file or directory
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

    ----------------------------------------
Command "/usr/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-8b_u4o1s/spidev/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-ep684f24-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-8b_u4o1s/spidev/

List the steps to reproduce the problem below (if possible attach code or commands
to run):
pip3.6 install Adafruit-PN532 --user

hiya - we've re-written this library to support circuitpython/python, i2c and uart as well! we'll have the new library on pypi shortly which should solve a lot of this kind of problem
thanks! https://github.com/adafruit/Adafruit_CircuitPython_PN532


switch-to-configuration.pl: fix inverted dry-activate logic for swap

Description of changes
Things done

Built on platform(s)

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

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

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

@GrahamcOfBorg test switchTest

It goes to show I should finally add the remaining test cases for fstab parsing…


php prereq error messages changed to red for easier visibility

https://github.com/newrelic/newrelic-php-agent/issues/202


Fake feature test: Summarise results

One of the earliest and most effective ways to quickly gauge user interest for a new feature is using what's called a Fake feature test.
It involves doing minimal development, combined with Google analytics, to generate some on paper proof that a feature might prove useful to users.
I propose we create an additional KnetMiner view: Summarise results/ GPT Summary. The button should only appear once the user has generated a graph. When a user clicks on it, the viewport will simply display: "Coming soon!" or maybe somewhere to sign up for updates at most.
This then needs to be connected to GA to track clicks and should give us early insight into the viability of such a GPT summary feature in KM, without much development at all...
Open to comment

Better suited in 6.0 or beyond.


VHDL syntax bug fixes

Description

Fixes for #14

Hi @ruck314,
Really sorry this got left waiting for so long! Looks good to me so I'll get it merged.


Freeze the tooltip through a property

This pull request introduces an ability to "freeze" the tooltip through external prop change, which is meant to happen through the React component lifecycle. When the tooltip is frozen, the updates (show, move, disappear) do not happen and instead get stored, and the last of these updates happens when the tooltip is unfrozen.
Demo
The feature lets you put interactive features in your tooltip, like buttons.
In Expression Atlas we wanted to use the UX pattern of hovering over an element displaying the tooltip, and clicking on the element stabilising it so that you can interact with it.

I personally don't want to add this feature to the library, because:

It is somewhat custom and it needs to think about more custom situations. For example, I'm using a chrome plugin called Vimium which will bind keys for user to operate the website, so I'm not able to use f to freeze the tooltip until I stop the plugin.
User can use delayHide to achieve same purpose(I'm trying to optimize it so that others can easy understand and use it).

Thanks for your PR and idea, it looks good for your team, but maybe not suit to be an option of the library. I'm closing the PR.


using import()

It seems that the following code
await import("zxcvbn")

is transformed to
await import("~/lib/main.js")

This is a kind of issue that @mattoni had mentioned last time.
So after a debug, I figure out that "zxcvbn" is a npm module and fuse automatically replace it to the main entry point in the package.json of this module.
For me this is a side effect because the Fuse API Loader is not able to map "~/lib/main.js" when using code splitting.
Either fuse should throw an exception or warning to say that import("xxx") doesn't support with npm module.
If it should be supported, this is a BUG then.

I forget to mention that if you do a Code-Spitting with bundle name like a npm module, you are dead.

@leon-andria I guess it should have been transformed into import("zxcvbn/lib/main.js")
But it won't work I guess, and imports are for dynamic loading, It should automatically split with the new code splitting in 3.0

Thanks @nchanged
It's also related to https://github.com/fuse-box/fuse-box/issues/933
We should really tackle this in the 3.0 with a clear path how to make it. Today, the way how the code splitting is executed is so closed in term of implementation and combining with Quantum becomes like we need to be smart and blocking for contribution.
Either you listen my advice or not, trust me, you have to review all of this implementation because it's a nightmare. Full proof of that is that how much time people are blocked or confused with Code-Splitting and Quantum ?
For me, the 3.0 would be a nice catchup to review fusebox API with more transparency, so people can contribute with less technical debts to start with.

@leon-andria I am with the community on this one, you will be able to try out the new smart code splitting soon enough (with 3.0)
We start with full automation first and then go for customisation.

https://github.com/fuse-box/fuse-box/blob/55bc66b3f756dfe87fc839610fe100e7d4489993/src/tests/dynamic_imports_test/ImportAutoSplitModules.test.ts#L33-L51


Kotlin lazy properties breaks @Embedded column type

Hello,
first thanks for a great library!
I encountered following problem. I have a Money data class in Kotlin and when I try to use it in my
DB entity as an @Embedded as follows:
data class Money(val value: BigDecimal, val currency: String) {
    val foo by lazy { 123 }
}

interface CardsRepositoryV1 : CrudRepository<CardsRepositoryV1.CardRow, Long> {
    @Table(value = "cards_v1")
    data class CardRow(
        ...,
        @Embedded(prefix = "effective_amount_", onEmpty = Embedded.OnEmpty.USE_NULL)
        val effectiveAmount: Money
    )
}

repository.deleteAll()

Then I get this error:
org.springframework.data.relational.core.conversion.DbActionExecutionException: Failed to execute DbAction.DeleteAll(propertyPath=effectiveAmount.foo$delegate)
Caused by: org.h2.jdbc.JdbcSQLSyntaxErrorException: Table "LAZY" not found; SQL statement:
DELETE FROM "LAZY" WHERE "LAZY"."CARDS_V1" IS NOT NULL [42102-224]

Am I doing something wrong?
PS: I'm using Spring Boot 3.2.5
Thanks,
Marian

Please provide a Minimimal Reproducable Example, preferable as a Github repository. Make sure to include the database, either as an in memory database or if that is not possible using Testcontainers.

Thanks for quick reply. Here is the repository: https://github.com/maio/repro-jdbc-kotlin-lazy-embedded-problem.
./gradlew test

Kotlin lazy introduces a delegate field that we discover as property. We already have precedence for Groovy's MetaClass as an exclusion rule. However, Kotlin never ceases to surprise in how they generate bytecode to achieve their goals while breaking framework support.


Broker update semantics

See: https://docs.cloudfoundry.org/services/managing-service-brokers.html
In particular I think we need to discuss:

purging brokers, instances and bindings - meaning deleting them w/o calling the broker
re-getting a broker's marketplace and services/plans vanish - need to deal with the case of existing instances/bindings of those removed resoures (see "Catalog Validation Behaviors" section)

CF has the notion of marking things as "inactive" - this allows for services and instances to still be known to the system but additional uses of the resources are banned. Then as those uses are deleted, when no one else is using it, the system will eventually delete the resource.
I'm marking this as v0.1.0 because I think we need to have some initial design discussions around these prior to locking down the resource model in case we think the changes need to support these flows are not just additive.  It could be as simple as adding an "inactive" flag to plans (and perhaps to services), but we should discuss.

Note this one is about updating and removing plans/services. I'm opening another one to focus on name changes.

This issue recalls our discussion in our last face-to-face meeting in Boulder, about what kubectl delete broker or kubectl delete instance should do. Here's what we decided, for reference:

kubectl delete broker $BROKER should fail by default if there are any bindings to Instances of ServiceClasses for the broker in question

Users can force deletion, however, which triggers an unbind on all of the bindings in question

kubectl delete instance $INSTANCE should fail by default if there are any bindings on that instance

Similar to the broker case, users can force deletion, which triggers unbinds on all bindings in question

We did not discuss what happens if a user deletes a ServiceClass

I believe we can adapt these decisions to the two cases. When a plan or service is removed (either by the broker or an operator), we can simply "fail" as above, but still delete (or soft-delete, and then garbage collect) it from the in-cluster catalog (i.e. a list of ServiceClasses) so that users can't create new bindings or instances on the removed services/plans.
I also believe there should be a command-line flag on the controller to trigger cascading unbinds (i.e. the "force" model from above) that automatically shuts down access to all apps that are bound to an instance of a service/plan that is removed. This would be especially useful for dev clusters.

In general I agree, but a couple of points:  we can't "fail" a delete from a broker - its a done deal. The broker removed it from its catalog so we need to take an appropriate action.  And yes I agree the appropriate action is the soft-delete, or marking it as inactive.  As for a delete from the user, I think failing if its in-use is best, not a soft-delete - unless they specify "--force" then we cause havoc :-)

we can't "fail" a delete from a broker - its a done deal. The broker removed it from its catalog so we need to take an appropriate action

I'd like to allow the service-catalog operator to specify what the appropriate action is. For example, some brokers may remove services/plans from their catalogs, but don't actually "delete" (i.e. shut down access to) the resource, so in that case we'd want to leave the binding alone. That overall behavior would be more appropriate for a prod cluster.

As for a delete from the user, I think failing if its in-use is best, not a soft-delete - unless they specify "--force" then we cause havoc :-)

:+1:

See https://docs.cloudfoundry.org/services/managing-service-brokers.html#catalog-validation - the last row- I think it makes sense.  So yeah we don't touch existing instances/bindings we just block new ones from being created.

Related to https://github.com/kubernetes-incubator/service-catalog/issues/705

marking as 'api' so we can have an initial design discussion to make sure we plan on solving this via additive things.  I'm hoping we can agree on something as simple as adding an "inactive" flag to plans and serviceClasses.

For the case of:

re-getting a broker's marketplace and services/plans vanish - need to deal with the case of existing instances/bindings of those removed resoures (see "Catalog Validation Behaviors" section)

my proposal is:

upon the refresh of a broker's catalog if a plan vanishes then:

if there are no instances using that plan then delete it
if there are instances using that plan then mark the plan as "inactive" so that no new uses of that plan will be allowed.  Existing bindings using that plan are not impacted and should still work as before.

when a new instance is created check to see if the plan is marked as "inactive" and if so then fail the request.

upon the refresh of a broker's catalog if a service vanished then:

if there are no instances of that service then delete it
if there are instances using that service then mark the service as "inactive" so that no new uses of that service will be allowed. Existing instances/bindings related to that service are not impacted and should still work as before.

when a new instance is created check to see if the service is marked as "inactive" and if so then fail the request.

Based on previous design sessions the "inactive" flag might actually be the "deleted timestamp" field since that will just mark it for deletion w/o actually doing so until all uses of that resource are also removed.  But I'll leave that as an impl detail for now.
Related: https://github.com/kubernetes-incubator/service-catalog/issues/820

I am basically supportive of @duglin's comment here: https://github.com/kubernetes-incubator/service-catalog/issues/801#issuecomment-317755962
I would suggest that we have a flag on the spec for Inactive - there is similar precedent in other API resources ('paused' in deploymentspec).

also, I would be happy to have a porcelain command that you ran manually to clean up classes/plans that are inactive but no longer have instances created.

@eriknelson has expressed interest in writing up a design proposal on this.

I meant to indicate I was looking at a proposal for #705, which was published yesterday as #1086, so I'm not actively working on this currently if someone else is interested.

On Aug7th we agreed with the design proposal.


Custom Domain Error [ERR_NAME_NOT_RESOLVED] for subdomain

Before opening, please confirm:

[X] I have checked the custom domains troubleshooting guide.
[X] I have read the guide for submitting bug reports.
[X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.

App Id
db5obs13i7dsc
Region
eu-central-1
Step
Subdomain hosting
Status
Availiable
Issue or question
Subdomain is not reachable, even though Status: Availiable and no Errors in the Dashboard.
Setup:

disabled root domain
dns records setup with wint global

The domain activation is successful, but the app cannot be reached via the given subdomain.
Error message
DNS_PROBE_FINISHED_NXDOMAIN
Additional information
The App is reachable if the setup is done for the root domain instead.
The check on https://www.whatsmydns.net/ is also successful.

Hi @mhollenbeckMykori it appears that your app is reachable via the subdomain now. Please re-open if you run into this issue again. Thank you.


Update documentation

Basic initial reference for README and CONTRIBUTING

Since there are many suggestions, and many of them allow me to improve on missing sections, I'm just going to close the PR and create a new one with all changes at once. Thanks for the feedback!

Looking good some nits and suggestions


Vercel  hostname doesn't correspond items configuration

It looks like an infrastructure issue rather than this project itself, but as it is reproducible on this project, I report it here.
The hostname configuration on Vercel and Sitecore for the Basic website is different. The Sitecore configuration has a —basic suffix, while the Vercel configuration has a —website suffix.

2024-12-10T17:18:09.121Z sitecore-jss:multisite response in 753ms: {
  site: {
    siteInfoCollection: [
      {
        name: 'Basic',
        hostName: 'deployment-4nu2c4veudc0r9aare0a-basic.vercel.app',
        language: 'en'
      },
      {
        name: 'Financial',
        hostName: 'deployment-4nu2c4veudc0r9aare0a-financial.vercel.app',
        language: 'en'
      },
      {
        name: 'Services',
        hostName: 'deployment-4nu2c4veudc0r9aare0a-services.vercel.app',
        language: 'en'
      },
      { name: 'website', hostName: '', language: 'en' }
    ]
  }
}

It is a minor issue that doesn't affect demo functionality but can potentially cause problems in the multisite environment if the default website is other than Basic.

Thanks, we'll change the hostname to "-website" for the Basic site.


Docker compose mac m1 fixes

I updated the docker-compose.yml file to clarify the platform for the docker image. On Mac M1, leaving this off assumes the new M1 architecture (which is incorrect). With this change Mac M1 machines are now working for MySQL docker instances.

@kevin-at-datical build in this PR wasn't pulling github secrets with licence because it was made from fork. I re-pushed your branch in this repo directly and opened PR from there. Closing this one


Fix a few typos on flame/backend.ex

Awesome work! thanks for the library!

:green_heart: :blue_heart: :purple_heart: :yellow_heart: :heart:


Phonegap Build issue

I keep getting the attached errors whenever I try to use this plugin in Phonegap Build for iOS. It seems to me that it is not finding the Bridging Header file, even though I have followed the installation directions in the wiki. Does anybody have any ideas?

https://github.com/rodneyworkman291/PhoneGapPhoneRTC.git
I created a public git for the files we are sending to PGB.  This is a clean phonegap project with the  npm plugin "cordova-plugin-phonertc".  This project is producing the errors reported by Elliot above.
Anyone who uses PGB have a solution?

Anyone else want to contribute to this project?

On Nov 24, 2015, at 10:29 AM, Rodney<EMAIL_ADDRESS>wrote:
https://github.com/rodneyworkman291/PhoneGapPhoneRTC.git
I created a public git for the files we are sending to PGB. This is a clean phonegap project with the npm plugin "cordova-plugin-phonertc". This project is producing the errors reported by Elliot above.
Anyone who uses PGB have a solution?
—
Reply to this email directly or view it on GitHub.


Missing resource.h

Thanks for sharing this!
I tried compiling it in Visual Studio 17.3 (Community Edition 2022) and I end up with "cannot open include file 'resource.h'."
Did that file just get omitted from the Git repo?

Actually, yes. Thanks for spotting this - just pushed the missing file.

So quick, thanks!


Clarify case with pre-configured Intel RDT closID

System administrators can pre-configure set of closIDs that can
be assigned to containers. If closID is specified and present,
runtime can just assign container to it.

LGTM

LGTM


"sha256:33892118b165401f291070100d6d09359ca74addda679b60390b09f8ef325ffe",
                "sha256:33c6e81d7bd55b468d2e793517c909b139960b6c790a60b7991b9b6b76fb9791",
                "sha256:3447475585bae2e77ecb832fc0300c3695516a47d46cefa0528181a34c5b9d3d",
                "sha256:34ca2dac9e4d7afb0bed4677512e36a52f09caa6fded70b4e3e1c89dbd92c326",
                "sha256:3e63498f680547ed24d2c71e6497f24bca791aca2fe116dbc2bd0ac7f191691b",
                "sha256:548430be2740e327b3fe0201abe471f314741efcb0067ec4f2d7dcfb4825f3e4",
                "sha256:6196a5c39286cc37c024cd78834fb9345e464525d8991c21e908cc046d1cc02c",
                "sha256:61b32d06ae8a036a6607805e6720ef00a3c98207038444ba7fd3d169cd998910",
                "sha256:6286efab1ed6e74b7028327365cf7346b1d777d63ab30e21a0f4d5b275fc17d5",
                "sha256:65d98939f1a2e74b58839f8c4dab3b6b3c1ce84972ae712be02845e65391ac7c",
                "sha256:66324e4e1beede9ac79e60f88de548da58b1f8ab4b2f1354d8375774f997e6c0",
                "sha256:6c77c9937962577a6a76917845d06af6ab9197702a42e1346d8ae2e76b5e3675",
                "sha256:70dec29e8ac485dbf57481baee40781c63e381bebea080991893cd297742b8fd",
                "sha256:7250a3fa399f08ec9cb3f7b1b987955d17e044f1ade821b32e5f435130250d7f",
                "sha256:748290bf9112b581c525e6e6d3820621ff020ed95af6f17fedef416b27ed564c",
                "sha256:7da13da6f985aab7f6f28debab00c67ff9cbacd588e8477034c0652ac141feea",
                "sha256:8f959b26f2634a091bb42241c3ed8d3cedb506e7c27b8dd5c7b9f745318ddbb6",
                "sha256:9de9e5188a782be6b1ce866e8a51bc76a0fbaa0e16613823fc38e4fc2556ad05",
                "sha256:a48900ecea1cbb71b8c71c620dee15b62f85f7c14189bdeee54966fbd9a0c5bd",
                "sha256:b87936fd2c317b6ee08a5741ea06b9d11a6074ef4cc42e031bc6403f82a32575",
                "sha256:c77da1263aa361938476f04c4b6c8916001b90b2c2fdd92d8d535e1af48fba5a",
                "sha256:cb5ec8eead331e3bb4ce8066cf06d2dfef1bfb1b2a73082dfe8a161301b76e37",
                "sha256:cc0ee35043162abbf717b7df924597ade8e5395e7b66d18270116f8745ceb795",
                "sha256:d14d30e7f46a0476efb0deb5b61343b1526f73ebb5ed84f23dc794bdb88f9d9f",
                "sha256:d371e811d6b156d82aa5f9a4e08b58debf97c302a35714f6f45e35139c332e32",
                "sha256:d3d20ea5782ba63ed13bc2b8c291a053c8d807a8fa927d941bd718468f7b950c",
                "sha256:d3f7594930c423fd9f5d1a76bee85a2c36fd8b4b16921cae7e965f22575e9c01",
                "sha256:dcef026f608f678c118779cd6591c8af6e9b4155c44e0d1bc0c87c036fb8c8c4",
                "sha256:e0791ac58d91ac58f694d8d2957884df8e4e2f6687cdf367ef7eb7497f79eaa2",
                "sha256:e385b637ac3acaae8022e7e47dfa7b83d3620e432e3ecb9a3f7f58f150e50921",
                "sha256:e519d64089b0876c7b467274468709dadf11e41d65f63bba207e04217f47c085",
                "sha256:e7229e60ac41a1202444497ddde70a48d33909e484f96eb0da9baf8dc68541df",
                "sha256:ed3ad863b1b40cd1d4bd21e7498329ccaece75db5a5bf58cd3c9f130843e7102",
                "sha256:f0ba29bafd8e7e22920567ce0d232c26d4d47c8b5cf4ed7b562b5db39fa199c5",
                "sha256:fa2ba70284fa42c2a5ecb35e322e68823288a4251f9ba9cc77be04ae15eada68",
                "sha256:fba85b6cd9c39be262fcd23865652920832b61583de2a2ca907dbd8e8a8c81e5"
            ],
            "markers": "python_version >= '3.5'",
            "version": "==6.1"
        },
        "tqdm": {
            "hashes": [
                "sha256:9fdf349068d047d4cfbe24862c425883af1db29bcddf4b0eeb2524f6fbdb23c7",
                "sha256:d666ae29164da3e517fcf125e41d4fe96e5bb375cd87ff9763f6b38b5592fe33"
            ],
            "index": "pypi",
            "version": "==4.59.0"
        },
        "traitlets": {
            "hashes": [
                "sha256:178f4ce988f69189f7e523337a3e11d91c786ded9360174a3d9ca83e79bc5396",
                "sha256:69ff3f9d5351f31a7ad80443c2674b7099df13cc41fc5fa6e2f6d3b0330b0426"
            ],
            "markers": "python_version >= '3.7'",
            "version": "==5.0.5"
        },
        "urllib3": {
            "hashes": [
                "sha256:2f4da4594db7e1e110a944bb1b551fdf4e6c136ad42e4234131391e21eb5b0df",
                "sha256:e7b021f7241115872f92f43c6508082facffbd1c048e3c6e2bb9c2a157e28937"
            ],
            "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' and python_version < '4'",
            "version": "==1.26.4"
        },
        "wcwidth": {
            "hashes": [
                "sha256:beb4802a9cebb9144e99086eff703a642a13d6a0052920003a230f3294bbe784",
                "sha256:c4d647b99872929fdb7bdcaa4fbe7f01413ed3d98077df798530e5b04f116c83"
            ],
            "version": "==0.2.5"
        },
        "webencodings": {
            "hashes": [
                "sha256:a0af1213f3c2226497a97e2b3aa01a7e4bee4f403f95be16fc9acd2947514a78",
                "sha256:b36a1c245f2d304965eb4e0a82848379241dc04b865afcc4aab16748587e1923"
            ],
            "version": "==0.5.1"
        },
        "widgetsnbextension": {
            "hashes": [
                "sha256:079f87d87270bce047512400efd70238820751a11d2d8cb137a5a5bdbaf255c7",
                "sha256:bd314f8ceb488571a5ffea6cc5b9fc6cba0adaf88a9d2386b93a489751938bcd"
            ],
            "version": "==3.5.1"
        }
    },
    "develop": {}
}

I also have a quick question on using pip inside of pipenv. Can I install packages using pip inside pipenv shell, and then record that into Pipfile and Pipfile.lock? Thank you!

I found out the reason. I was using the python installed from homebrew and the PATH variable was messed up. Now pipenv is creating the venv with python from location here: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8, which is working perfectly now.


Atom don't auto reload file content when changed outside

Prerequisites

[* ] Can you reproduce the problem in safe mode?
[* ] Are you running the latest version of Atom?
[* ] Did you check the debugging guide?
[ *] Did you check the FAQs on Discuss?
[ *] Are you reporting to the correct repository?
[* ] Did you perform a cursory search to see if your bug or enhancement is already reported?

For more information on how to write a good bug report or enhancement request, see the CONTRIBUTING guide.
Description
[Description of the bug or feature]
Atom don't auto reload file content when changed outside
Steps to Reproduce

[First Step]
[Second Step]
[and so on...]

Expected behavior: [What you expected to happen]
Actual behavior: [What actually happened]
Versions
You can get this information from executing atom --version and apm --version at the command line. Also, please include the OS and what version of the OS you're running.
When I change a file outside of Atom(for example: git branch change), atom don't auto reload the content

Thanks for reaching out!
We require the template to be filled out on all new issues and pull requests. We do this so that we can be certain we have all the information we need to address your submission efficiently. This allows the maintainers to spend more time fixing bugs, implementing enhancements, and reviewing and merging pull requests. Please open a new issue and fill out the template for us.
Thanks for understanding and meeting us half way :grinning:


Can not leave Breadcrumbs

Description
I'm trying to follow this documentation to leave breadcrumbs https://docs.bugsnag.com/platforms/ruby/rails/#logging-breadcrumbs
Issue
NoMethodError: undefined method `leave_breadcrumb' for Bugsnag:Module`

Environment
Library versions:
  * bugsnag (6.0.1)
  * dotenv-rails (2.7.5)
  * pry-rails (0.3.9)
  * rails (5.2.4)
  * rails-dom-testing (2.0.3)
  * rails-html-sanitizer (1.3.0)
  * request_store (1.4.1)
  * rspec-rails (3.9.0)
  * sidekiq (6.0.3)
  * sidekiq-pro (5.0.1)
  * sprockets-rails (3.2.1)

OS / OS version:
This happens on MacOS 10.15.2 and the standard ruby:2.6.5 Docker container.
debug mode or production?: Same on Dev and QA.

Example code snippet
Here is a console session showing that I have Bugsnag working correctly but the error happens when I try to leave a breadcrumb:
[15] pry(main)> Bugsnag.notify("notification")
W, [2020-01-07T15:15:25.993693 #13591]  WARN -- : Converting non-Exception to RuntimeError: "notification"
I, [2020-01-07T15:15:26.007540 #13591]  INFO -- : Notifying https://notify.bugsnag.com of RuntimeError
=> nil
[16] pry(main)> D, [2020-01-07T15:15:26.986462 #13591] DEBUG -- : Request to https://notify.bugsnag.com completed, status: 200
[16] pry(main)>
[17] pry(main)> Bugsnag.leave_breadcrumb("breadcrumb")
NoMethodError: undefined method `leave_breadcrumb' for Bugsnag:Module

Hi @dewetblomerus
You're using a very old version of bugsnag-ruby (v6.0.1). Breadcrumb support was only added in v6.11.0. We'd recommend using the latest available version v6.12.2:
https://github.com/bugsnag/bugsnag-ruby/releases
Thanks!


general solution for aggregating buildout/phaseout split to loan book

follows up #30
The aggregation by buildout/phaseout requires approximating an exposure split by technologies.
This is currently done based on production values, not based on company scenario values.
production values can be 0 for the entire sector of a company in t5, when at least one technology had a value > 0 in t0.
In such a situation, it is impossible to calculate a technology split in t5, as all technologies are 0 and therefore any split is divided by 0 which is NaN.
Having companies with this profile then leads to NAs in the aggregation to the loan book level, because the exposure is used as a weight in the weighted mean of the alignment metric. NA weights lead to an NA mean.
We currently see two ways to resolve this. The best one depends on the perspective of the analysis.
Risk:
If a company ceases its activity in a sector during the forecast period, we assume that the loan is then used for other company activities in t5 and no risk for the loan emanates from this sector anymore. We therefore drop this sector for the company and distribute the exposure among the remaining sectors. If no other sectors are matched, the company is considered out-of-scope for the analysis from a risk angle
Alignment/Contribution:
A company that ceases its activities in t5 still exhibits a deviation from targets that were calculated based on its production values in t0. From the perspective of whether or not the company contributes enough to the transition, it should not matter if there is any risk emanating from the activity. What matters is if (and how strongly) the contribution is aligned with scenario targets.
Completely moving out of a sector can be very aligned, if the technology is supposed to be phased out. It can be very misaligned, if the technology was supposed to be built out. Both should be captured from this perspective.
To avoid the pitfalls of dividing by 0 production, we consider approximating the technology split based on the prescribed production values from the scenario at the company level. This can never be 0, if the company has positive values in t0 and it captures the expected exposure for a company that follows the scenario paths.

fyi @daisy-pacheco


Should we always raise when a column is missing?

Feedback from a colleague: he's been tripping over DataFrame.discard/2 and forced into patterns like if field in DataFrame.names(df), do: DataFrame.discard(df, field), else: df. That one feels like it should be a no-op for non-existing fields.

I agree for discard we do not need to raise if the field does not exist. :+1:

Out of curiosity, how are they using dataframes? For my personal use, I always know which columns are present.

It's for exporting the search results from a project in Amplified and there are some conditional joins that can lead to variations in the columns that are present.


BotFramework-Composer web in Azure VM

Is your feature request related to a problem? Please describe.
I have a customer started using BotFramework-Composer on local machine and they want to deploy it in Azure VM, they managed to do that (Ubuntu server) but when they "Start Bot" they are getting below error because the bot emulator of course not installed on the VM
Describe the solution you'd like
It will be nice if we have a template in Azure Market place ready with BotFramework-Composer and can be used remotely with bot emulator from local machine or even teams.

Hello @mrahmadt. What is the error? I don't see anything in the submitted issue.
We're actively looking at ways to provide Composer as a template web app available in places like the Azure Marketplace.


Make SpannedString iterators double ended & exact sized

So that users can, for example, do .spans().len() to determine the number of
spans.

Good idea - and thanks for the work!


Sample from a specific label

Hey everybody,
I was wondering if there is a way to sample from a specific label. My situation is that I have a dataset where one class is heavily over represented and I was wondering if there is an option to just sample from this label and keep everything else similar.
Thanks in advance,
Bruno

Probably, there is no ready-to-use solution for this now. AFAIK, datasets are typically formed to have nearly equal class distribution, or they need to be split into subsets with the initial distribution preserved. The latter case is already covered by the task-oriented splitters. Probably you could use a simple script to get what you want:
from datumaro.components.dataset import Datumaro
from datumaro.components.extractor import Transform, AnnotationType

class Sampler(Transform):
    def __iter__(self):
        person_anns = 0
        required_quantity = 10000
        person_label_idx = self._extractor.categories()[AnnotationType.label].find('person')[0]

        for item in self._extractor:
            new_anns = []
            for ann in item.annotations:
                if hasattr(ann, 'label') and ann.label == person_label_idx:
                    if person_anns < required_quantity:
                        continue
                    else:
                       person_anns += 1

                new_anns.append(ann)
            yield item.wrap(annotations=new_anns)

dataset = Dataset.import_from('path/', 'format_name')
dataset.transform(Sampler)
dataset.export('new_path/', 'format', save_images=True)

Thanks for the extensive reply. I'm trying to integrate your code but I'm having some problems with the python version of datumaro. Due to some previous operations I have a datumaro project that has the data (annotations + images) I want. Unfortunately I can't load it as a dataset (Error: no data of format coco at this path) and when I use a datumaro Project I can load it Project.load(path) but then I can't convert the project to a dataset as the project does not have a variable called working_tree.

I suppose, you're using an outdated version of the library. The latest is the 0.2, which version you're on? datum --version. In the previous versions it was:
from datumaro.components.project import Project

project = Project.load(path)
dataset = project.make_dataset()

And my second question was if there is an easy way to pass variables to the Sampler class from your example?

class Sampler(Transform):
    def __init__(self, extractor, option1='foo', option2=42):
        super().__init__(extractor)
        self._option1 = option1
        self._option2 = option2

...

dataset.transform(Sampler, option1='bar', option2=36)

Hi, please check if #640 is useful for you.

Hi, just wanted to shed my light on the code above. I tried this code and noticed that it stops drawing labels of a given if a certain threshold is reached. I don't think this leads to wanted behavior, as it removes labels from images that contain other labels as well. Hence, now we are left with images that are unlabeled w.r.t. a given class while the label should be there. Therefore, the model will be trained on images with missing labels and might be unfairly penalized by the loss function.
Do you agree, or am I missing something here?

Hi, yes, it is true. The solution can produce under-annotated images, when there are more than 1 annotation per image. In the PR referenced (https://github.com/openvinotoolkit/datumaro/pull/640), we took a different way, which works on the image level and doesn't have this problem. It may produce different distribution of annotations than requested depending on the data available, but the resulting images will contain all the annotations.

Thank you very much for letting me know. Could maybe provide an example of how I can use this class with my dataset with the API approach?

@tdhooghe, you can find the parameter descriptions here and API usage examples here.
Basically, the count parameter is applied to all classes, while counts for specific classes can be set explicitly with label_counts.


Add NixOS options: fileSystems..enable and boot.specialFileSystems..enable

I need this, and I really can't find a nice workaround without maintaining a local fork of nixpkgs so here we are :)
What this does
this adds:
fileSystems.<name>.enable
and
boot.specialFileSystems.<name>.enable
both are enabled by default, so everything works as before.
(I only need the second one, but they share the same submodule, so both are modified)
Why I need this
I want to create some nspawn containers with NixOS on the guest (but without sharing /nix so that the guest is fully autonomous).
The issue is that the guest NixOS will try and fail to mount /dev, /dev/pts, /dev/shm and /run, which is ok because they are already mounted by the host when preparing the container.
So I want to disable them in boot.specialFilesystems but that currently impossible without overriding everything, including useful entries like /run/key and /run/wrappers.
I need something like environment.etc.<name>.enable to disable them without removing everything.
About this PR
I created this PR as a draft to get feedback on the idea. The current code is mainly for illustration.
I don't really know who to mention, so here are the 2 last committers to this file: @dasJ @ElvishJerricco, please add anyone who might be interested.

seems there is some overlap with #301915

@eclairevoyant oh indeed! Only 2 weeks old :)


General life improvements

Hi,
Loving the colorscheme so far but there are some pain points for me.
This PR makes the following changes:

Provides default statusline and tabline highlights
Changes the default white character color to something visible and that doesn't collide with the comment highlight

NOTE
The screenshots where made with the 'classic' palette, but I've tested with the other variants

StatusLine
before

after

Tabline
before

after

Whitespaces
before

after

Thanks for leave a comment.

I'll add color for Tabline
About whitespace, I see some code editor like VSCode doesn't show the whitespace dot but when you go to visual mode you are able to see those dots.
VSCode

Sublime Text

So I think I would prefer the old way I made. However, later I'll try to make feature override which let you can rewrite the highlight like you want

About whitespace, I see some code editor like VSCode doesn't show the whitespace dot but when you go to visual mode you are able to see those dots.

I can see your reason but I thick that at that point, if you don't wanna see the whitespaces, you simply disable them. This behaviour is very odd for a vim colorscheme (obviously is up to you decide)
A good middle ground would be to make it a configuration option or, as you said, an override function.

The same to the statutsline, I just reference the color like VScode and  SublimeText

I get it, but since in vim the statusline is the main way to see if a window is focused or not I think is a good design decision to make it just a little more clear on what I'm currently editing and what I'm not.

Agree. I'll fix it, thanks for providing feedback.

@loctvl842 I close this? Or you wanna merge some parts?

yeah please check new commit

Check out, looks good!


[Question] - run a command in a container

I was wondering if it was currently possible to execute a command inside a running container, and retrieve its stdout. I'd like to use Docker.DotNet to start a build container, and then execute a shell command inside that does the build within the container, and basically pipe out the STDOUT so I can work out the results!

There are a couple of ways to accomplish this. Basically your container process (the init process) needs to stay alive to keep the container running. Lets call this a sleep process s that is really just any long running process. Then you can exec N number of processes in the lifetime of s.
So via Docker this would look something like:
docker run busybox sh -c "sleep 5m"

In a different shell:
docker exec <id> sh -c "ps -a"

And in Docker.DotNet the same API's are available at a programmable layer. Create/Start/Exec.
Hope this help.

Excellent. Thank you.


android build fails

FAILURE: Build failed with an exception.

What went wrong:
A problem occurred configuring root project 'android'.

Could not download artifact 'ShortcutBadger.aar (me.leolin:ShortcutBadger:1.1.4)'
Could not GET 'https://repo1.maven.org/maven2/me/leolin/ShortcutBadger/1.1.4/ShortcutBadger-1.1.4.aar'.
Connection to http://<IP_ADDRESS>:6571 refused

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED
Total time: 17.238 secs
Error: Error code 1 for command: cmd with args: /s,/c,"C:\Users\Admin\Desktop\Projects\push\MobileApp\platforms\android\gradlew cdvBuildDebug -b C:\Users\Admin\Desktop\Projects\push\MobileApp\platforms\android\build.gradle -Dorg.gradle.daemon=true -Pandroid.useDeprecatedNdk=true"

@GHR-Arash that looks like a maven issue. Are you behind a proxy or firewall that could be preventing the download?

you are right , it suddenly solved . how can i clear maven or gradle proxy ?


Bot is not joining / working

I followed your instructions and it went very smooth, no surprises or errors given. I rebooted my little Pi and Mumble-server works fine, but the Botmaster does not.
I am not sure how to set the mumbleserver_host to <IP_ADDRESS> or what it is supposed to be, I am running it all on the same "box".
This is the output I get when running start.sh as the Botmaster (in su),
===
Killing running mpd instances of user "botmaster"
daemon: cannot init supplementary groups of user "botmaster": Operation not permitted
Updating youtube-dl...
youtube-dl is up-to-date (2015.10.24)
Killing running ruby scripts of user "botmaster"
Using /home/botmaster/.rvm/gems/ruby-2.2.1 with gemset bots
Your bot(s) should now be connected to the configured Mumble server.
Have fun with mumble-ruby-pluginbot :)
If something doesn't work, start this script with the additional parameter debug:
~/src/mumble-ruby-pluginbot/start.sh debug
Then take a look into the logfile within /home/botmaster/logs/.
Also make sure to run this script as user botmaster if you used the official installation documentation and DO NOT RUN THIS SCRIPT AS root.
Also please reread the official documentation at http://wiki.natenom.com/w/Mumble-Ruby-Pluginbot
botmaster@mumbler:~$
===
And the pluginbots.log shows this output,
===
pluginbot is starting...
Plugin ./plugins/version.rb geladen.
Plugin ./plugins/ektoplazm.rb geladen.
Plugin ./plugins/mpd.rb geladen.
Plugin ./plugins/soundcloud.rb geladen.
Plugin ./plugins/messages.rb geladen.
Plugin ./plugins/bandcamp.rb geladen.
Plugin ./plugins/radiostream.rb geladen.
Plugin ./plugins/control.rb geladen.
Plugin ./plugins/youtube.rb geladen.
Plugin ./plugins/null.rb geladen.
Config loaded!
parse extra config
Your config could not be loaded!
start
/home/botmaster/.rvm/gems/ruby-2.2.1@bots/gems/mumble-ruby-1.1.2/lib/mumble-ruby/connection.rb:36:in read_message': undefined method unpack' for nil:NilClass (NoMethodError)
from /home/botmaster/.rvm/gems/ruby-2.2.1@bots/gems/mumble-ruby-1.1.2/lib/mumble-ruby/client.rb:194:in read' 	from /home/botmaster/.rvm/gems/ruby-2.2.1@bots/gems/mumble-ruby-1.1.2/lib/mumble-ruby/thread_tools.rb:8:in block (2 levels) in spawn_thread'
from /home/botmaster/.rvm/gems/ruby-2.2.1@bots/gems/mumble-ruby-1.1.2/lib/mumble-ruby/thread_tools.rb:8:in loop' 	from /home/botmaster/.rvm/gems/ruby-2.2.1@bots/gems/mumble-ruby-1.1.2/lib/mumble-ruby/thread_tools.rb:8:in block in spawn_thread'
===
This is my config for the bot1_conf.rb (part of it),
===
def std_config()
puts "Config loaded!"
@settings = {   version: 2.0,
main_tempdir: "/home/botmaster/temp/",
ducking: false,
chan_notify: 0x0000,
controlstring: ".",
debug: true,
listen_to_private_message_only: false,
listen_to_registered_users_only: true,
use_vbr: 1,
stop_on_unregistered_users: false,
use_comment_for_status_display: true,
#set_comment_available: false,
mumbleserver_host: "talk.raspberryip.com",
mumbleserver_port: 64739,
mumbleserver_username: "ExileRadio",
mumbleserver_userpassword: "",
mumbleserver_targetchannel: "Radio",
quality_bitrate: 72000,
mpd_fifopath: "/home/botmaster/mpd1/mpd.fifo",
mpd_host: "localhost",
mpd_port: 7701,
controllable: true,
certdirectory: "/home/botmaster/src/certs",
need_binding: false,
boundto: "nobody",
===
My server is a dedicated Raspberry Pi,
Linux mumbler 3.18.11+ #781 PREEMPT Tue Apr 21 18:02:18 BST 2015 armv6l GNU/Linux
PRETTY_NAME="Raspbian GNU/Linux 7 (wheezy)"
NAME="Raspbian GNU/Linux"
VERSION_ID="7"
VERSION="7 (wheezy)"

I am not sure about this at the moment, need to ask @dafoxia ...
But please change the first line in your own config from
def std_config()
into
def ext_config()
Then it should at least use your config.

/home/botmaster/.rvm/gems/ruby-2.2.1@bots/gems/mumble-ruby-1.1.2/lib/mumble-ruby/connection.rb:36:in read_message': undefined methodunpack' for nil:NilClass (NoMethodError)
I remember that message but not the reason and how to solve it ... maybe the config thing fixes that, too :)

Ok, I changed my bot config accordingly and it now logs in to my server.
But sound is all "choppy" however, is this due to bitrate?

Is your server limited? Check Server -> Information -> Audio Bandwidth maximum ...
If the limit is for example 72 kbit/s then the bots quality must be set around 40 kbits because it uses TCP mode and has much overhead.

Thanks for helping! :)
My server has a limit of 100 kbit/s (Raspberry Pi). I've set the quality bitrate to 60 kbit/s, but I can't get it to play nice stream. In reality I have a mp3-file that I want to play instead of the stream that plays by default. Do you have a manual somewhere online where I can read more about the MP3-part?

I just talked to dafoxia. He tested the Mumble-Ruby-Pluginbot on Raspberry Pi I and II.
Pi I is too weak for even one bot.
You need at least a Pi II.
Sorry, didn't realize that when reading your post.

Oh, ok. I do get the bot to play songs..but it is very distorted. I am merely running mp3's.
I mean, I am running Kodi on a Raspberry Pi 1 and can easily decode 1080p...
I'll do some digging and open a new ticket in this "new" issue later.
Thanx for clearing things up. I will do some tinkering around and see if I can contribute somehow. :)

AFAIK the Pi uses hardware decoding for some video formats. The pluginbot does not.

The problem is not the decoding for the mp3. The bot has to encode the whole audio after decoding again as opus stream. Audio encoding take a lot more cpu power. Encoding / Decoding of lossy audio codecs is an asymetric thing.

Ok, I understand that your bot is using software to encode/decode and not hardware. Thiing is, I know the RPi is very capable of streaming audio and video, since I use Kodi for my home entertainment system. I have "boosted" it a bit to run 900Mhz instead of the ordinary 700Mhz, and it runs smoothly with both audio and video. Kodi fetches my mp3-library from the network and plays it fine through my HDMI-connected reciever.
My point is, maybe there is a way to make your plugin use hardware instead? Some way of telling MPD to decode/encode using hardware instead?


Feat: Automated Greeting Workflow

Describe the feature
I propose to create a GitHub workflow named "Greetings". This workflow will automatically greet users who create new issues or pull requests in this repository.  The Greeting will look like "Hi there! Thanks for opening this issue. We appreciate your contribution to this open-source project. We aim to respond or assign your issue as soon as possible."
Please assign this issue to me.
Add ScreenShots

Record

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

Go ahead @sanmarg.

Please add the level for this issue considering its complexity.

Task Completed

Could you please assign labels to it ?


fix: it work only with external url

🐛 The bug
It work only with external url
Work
const data = await useFetch('https://jsonplaceholder.typicode.com/posts', {
  transform: posts => posts.slice(0, 10),
})

Local not work, return html of index page
const data2 = await useFetch('http://localhost:3000/api/test', {
  transform: posts => posts.slice(0, 10),
})

🛠 To reproduce
https://github.com/max5432112345/nuxt-error3
🌈 Expected behaviour

ℹ Additional context
No response

And nuxt generate say that page index not found.
And page/error.vue also throw erros, say something about status code
<template>
  <button @click="handleError">Clear errors</button>
</template>

<script setup lang="ts">
import { defineProps } from '#app'
import { definePageMeta } from '#imports'

definePageMeta({
  layout: 'error'
})

const props = defineProps({
  error: Object
})

const handleError = () => clearError({
  redirect: {
    name: 'index'
  }
})
</script>

And I use it with i18n module

and I started to read svelte but its server part is also shit.
nest is nice

Would you provide a reproduction? 🙏

@danielroe https://github.com/max5432112345/nuxt-error3

@danielroe  not work when fetch api ($fetch('/api/test')) and refresh page you will get html of index page and not json

http://localhost:3000/favicon.ico return home page and after 404 erro

@n4an If you want your API to be available, you will need to run nuxi build rather than nuxi generate.