Support transform items in a PagedList?

this is a repost of google issue tracker https://issuetracker.google.com/issues/111130543
Component used: PagingLibrary
Version used: 1.0.1
Devices/Android versions reproduced on: N/A
Android Architecture Component now introduced Paging Library, which is great.
According to the official demo The DataSource.Factory now supports map and mapByPage methods, which means we may transform items in one DataSource.
But DataSource and DataSource.Factory should be in the model/domain/data layer, not the Presenter/View layer. However, there are plenty of times when we want to transform data in our Adapter(for RecyclerView or ListView), and obviously, this is the Presenter/View layer logic. By now, an Adapter holds an instance of PagedList, but PageList can't support these operations, which is kinda awkward. Besides, there are still times when we want to add items or remove items to/from a PagedList.
So this is a feature request:
Support item transformations on a PagedList
Support item adding/removing to/from a PagedList
Thanks for consideration.

Chimed in on issue tracker. Since this is already captured in the google issue tracker and not related to samples, closing.


Unable to create app with a space in the name

Originally reported in the marketplace Q&A.

There's a bug/problem (as of 2/26/23 on VS 17.6.0 Preview 1.0) that this generates code that does not build if there are spaces in the project name. I think that should be allowed, or at a minimum, detect spaces and prevent the user from proceeding.
The spaces cause problems in numerous places. I suggest just repro'ing the problem yourself to see where.
Creating an app without spaces in the project name did work.
Confusingly, there were build errors (like MauiApp not being a namespace) on the first build, but the code still ran. Those errors persist in the Error List window while running, so I do consider this a "bug". So there's some weird build pass dependency and timing thing going on, albeit ultimately ignorable

New release, with fix, coming soon

Fix also supports project names that include any of the following: "-_.@! ()+="

Fixed in version 1.2.3


Unmaintained

Last week @halcy (author) pushed this commit, stating that this script is now unmaintained, since he doesn't use it anymore.
Is anyone interested in taking this over?
There are some pressing issues such as:

boosts are not marked as retweets (#51)
retweets don't get forwarded at all (#29)
private toots probably shouldn't get forwarded (#34)

I see that @AmauryCarrade probably has done the most work on this script, adding

support for threads: toots/tweets that are replies to more of your own toots/tweets should keep that relationship when forwarded (need to keep a mapping of forwarded IDs for that)
support for content warnings

Do you want to take it over? Does anyone else?
I am going to use this script as I try to move to Mastodon more seriously, so I'll see if I can tackle some of the issues myself (but I don't have that much free time).
[edit: started my own program so I probably won't be contributing here]

Let me know if / when you are happy with the state of yours, I'll put a link in the README

I use this currently, so I would be willing to take over. I'll take a stab at a couple of the open issues before I commit to be sure :smile_cat:

Good to hear. If you decide you do want to work on it, just comment again, and I can transfer the repository to your account.

Hi! I can also take this, or with @meggle. I only have to finalize my PRs (was paused for a long time for personal reasons), the ones mentioned by this issue's author. The RT bug also annoy me so if no one fix it I'll probably look into that. Well, except if all user migrate to @remram44's program :) .

FYI: I'm no longer working actively on my program because of this: https://crossposter.masto.donte.com.br/
I might still finish it sometime 😶

I'll also  throw in a plug for my cross-posting service
https://moa.party


spec: add image spec definition

Signed-off-by: yuxing.lyx<EMAIL_ADDRESS>
Describe what this PR does / why we need it
Does this pull request fix one issue?

Describe how you did it
Describe how to verify it
Special notes for reviews

Codecov Report
Base: 21.11% // Head: 21.42% // Increases project coverage by +0.30% :tada:

Coverage data is based on head (f4939ee) compared to base (fbd817f).
Patch coverage: 39.47% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1915      +/-   ##
==========================================
+ Coverage   21.11%   21.42%   +0.30%
==========================================
  Files          74       79       +5
  Lines        6762     7147     +385
==========================================
+ Hits         1428     1531     +103
- Misses       5148     5414     +266
- Partials      186      202      +16

Impacted Files
Coverage Δ

build/kubefile/parser/kubefile.go
53.44% <0.00%> (-1.91%)
:arrow_down:

pkg/cluster-runtime/hook.go
3.75% <0.00%> (-0.05%)
:arrow_down:

pkg/define/image/v1/sealer_image_extension.go
0.00% <ø> (ø)

pkg/image/reference/util.go
83.78% <ø> (ø)

pkg/logger/formatter.go
81.13% <ø> (ø)

pkg/clusterfile/clusterfile.go
28.45% <14.89%> (-5.99%)
:arrow_down:

build/kubefile/parser/utils.go
60.75% <53.68%> (-10.67%)
:arrow_down:

build/kubefile/parser/app_handler.go
47.36% <100.00%> (-2.03%)
:arrow_down:

pkg/image/save/utils.go
32.98% <0.00%> (-2.57%)
:arrow_down:

... and 6 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Update link

getting_started content moved with conversion to Markdown
Original link was not correct to start with (had anchor, but not
correct file name)

Codecov Report

Merging #76 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #76   +/-   ##
=======================================
  Coverage   29.31%   29.31%
=======================================
  Files          13       13
  Lines         382      382
  Branches       56       56
=======================================
  Hits          112      112
  Misses        270      270

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 649967c...ddb5555. Read the comment docs.


How to add a custom website?

Hi,
Anecdote is an app I've waited for a very long time but unfortunately I'm having a hard time to add a custom website because of little HTML knowledge.
Would really appreciate a small beginner guide on how to do this. :)

I'm planning to do this but it need a lot of work.

I managed to get an error 404, I want to add the choualbox.com website.
URL is okay, selector is okay, but page not found. There is no page, you can browse since the root of the website but the app want that i write down a page. I can do a guide, i'm pretty used to, but i need some help before

@4urelienjo you can try with https://choualbox.com/?page= as the url. I don't think you will get the full images/video it need to open one page to get the data on it. It can be done but need some work and I have other functionallity on the top of the list.

Ok I will try with a bunch of sites that i see in google play comments, and
i will come back to you.
Very nice work for 9gag VDM etc ;)
2017-03-22 19:46 GMT+01:00 Hugo Gresse<EMAIL_ADDRESS>
@4urelienjo https://github.com/4urelienjo you can try with
https://choualbox.com/?page= as the url. I don't think you will get the
full images/video it need to open one page to get the data on it. It can be
done but need some work and I have other functionallity on the top of the
list.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/HugoGresse/Anecdote/issues/42#issuecomment-288500861,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKeJRBDQJZwnlHpiguNEq8tpA9MtYoJLks5roWyMgaJpZM4LUyus
.

Unfortunately there's still no guide for more unexperienced users... :(

hey there, sorry for that :/ I did not priorize it over other project. If you now some code I can show you the configuration file so you can setup your site on your and, give me it and I'll publish it.

Sorry i totally forgot this !! Yeah I know .Net, JS, HTML, Python, a little
bit angular2 and java.
I'm busy with work until wednesday, but i use your app daily, so it would
be nice if i could take part in your project !
Regards,
Aurélien
2017-06-04 16:32 GMT+02:00 Hugo Gresse<EMAIL_ADDRESS>
hey there, sorry for that :/ I did not priorize it over other project. If
you now some code I can show you the configuration file so you can setup
your site on your and, give me it and I'll publish it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/HugoGresse/Anecdote/issues/42#issuecomment-306043592,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKeJRDSfGxdJxbCNlaQmv128QOPn2xYAks5sAr_zgaJpZM4LUyus
.

You can give a look at https://anecdote-api.firebaseio.com/v2/websites.json which store each websites, let me know if you need more details.

Is there an ETA you can give? :)

well, this summer I hope. I've finally back to improve Anecdote with some new features coming every month. Stay tuned ;)

Still no tutorial...

You can give a look at https://anecdote-api.firebaseio.com/v2/websites.json which store each websites, let me know if you need more details.

I tried adding VDM and xkcd using the settings from the json to understand what's needed; without any luck.

VDM and kxcd are already available. I'm sorry if it not very convenient, I'll try to make a new app + some tools around it to improve that in the coming year.


flake8 quotes plugin

A flake8 quoting plugin to enforce the Pinax style guide.
see:
https://github.com/pinax/pinax-checkers/blob/master/pinax/checkers/style.py

Closing issue because flake-8-quotes was incorporated into latest release. https://github.com/pinax/pinax/wiki/Converting-to-CircleCi-and-Codecov


added link sharing for newsfeed

could you add the call to the readme?

here you go

thank you, awesome!


Indentation not copied on Samsung Browser

OS/Web Information

Web Browser: Samsung Browser
Local OS: Android (Samsung Dex)
Remote OS: Ubuntu 20.04
Remote Architecture: aarch64
code-server --version: 3.12.0

Steps to Reproduce

Copy text from any code-server tab.

Paste it on the same tab or elsewhere.

Check if indentations are gone.

Expected
Indentations should be preserved when copied and pasted.
Actual
All indentations are gone when copied and pasted.
Logs
I wasn't able to retrieve any useful information related to this issue from logs.
Screenshot
Original Text

After being pasted

Notes
There is no vscode that run on Android.
Indentations in chrome browser in the same environment are all preserved after being pasted. However I also checked that indentations in the clipboard are gone as in the both cases (both Chrome and Samsung Browser) for code-server.
In case of Colab, all indentations are preserved whether I use Chrome or Samsung Browser.

Interesting! Are we sure this is not related to the device or the browser? I'm not sure how code-server would be able to fix this 🤔 (unless I'm misunderstanding something)

@jsjoeio Sorry. I have no idea about how clip boards with browsers work. Maybe I need to report this to Samsung browser's developers.

Sorry. I have no idea about how clip boards should work with browsers.

No worries, I don't know a ton either. I'm just thinking this sounds like a browser related issue. Are you able to reproduce it with any other websites?

I tried a couple of online python interpreters and google colab. They worked fine so far. I'll try more.

Hooray! Thanks for the quick test + response! Good luck!


bug: warning: multiple different client offset_encodings detected for buffer, this is not supported yet on rust files

Seems to be some offset_encodings thing.
I suspect both, Codeium.nvim, Tabnine or Null-LS (with nvim-lspconfig, which sets offset encodings)

seems to be an null-ls.nvim issue

I meant, disabling null-ls helped :P


Tooler not able to add helm repos

What happened?
Trying to add help repo getting a context deadline exceeded, tried to add a helm repo from within the tooler container got the same error, happens with any helm repo, im able to ping out of the container with no issues as well as curl the helm repos but doing a helm repo add just times out, any ideas?
What did you expect to happen?
Able to add helm repo
How can we reproduce it (as minimally and precisely as possible)?
Hard to say
What is the content of the Deckfile you are using?
cluster:
provider: k3d
minVersion: 4.0.0
name: kubeinator
nativeConfig:
apiVersion: k3d.io/v1alpha4
kind: Simple
servers: 1
agents: 1
kubeAPI:
hostPort: "6445"
image: rancher/k3s:v1.22.9-k3s1
ports:
- port: 61346:80
nodeFilters:
- loadbalancer
- port: 31820:31820
nodeFilters:
- agent:0
decks:

name: portainer
namespace: portainer
sources:

type: helm
ref: https://portainer.github.io/k8s/ # latest, alpha
chart: portainer
releaseName: portainer
parameters:

name: tls.force
value: true

OS version
PRETTY_NAME="Ubuntu 22.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.1 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
Linux summit-docker-testing-2 5.15.0-53-generic #59-Ubuntu SMP Mon Oct 17 18:53:30 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Anything else we need to know?
No response

Hey, thanks for double checking, I did try to remove and recreate the cluster, its running in a test vm so maybe something funky with the environment, ill spin another one up and see if I can replicate it :)

Interesting so on my windows linux subsystem it works fine, not on the vm, ill keep digging.

Looks like its related to any charts hosted on github.io not sure why, seems like a enviromental issue, closing this ticket.

Thanks for reporting/documenting your further testing here. I guess we will observe this issue and see if more people have similar troubles.


[CONTROLLER/RECORDER] adds org info to log

This PR is for:

Server

adds org info to log
Checklist

[ ] Added unit test.

Backport to branches

main

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.zhengya seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


Refactor Footer

This PR is largely focused on refactoring the Footer sub-components out into their own file.
Even though the file is still pretty manageable (under 200 lines), think it'll be easier to tailor/manage/refactor the Footer component once we start transitioning our current footer to something closer to what the UX team creates or even what Hauvert have created recently on Adobe.
Not much is changed here outside of file restructuring in src/components/Footer and including JSDocs and typedefs.

I'm curious about @xscottxbrownx's questions but nevertheless am ready to approve

Got them answered in a reply, see https://github.com/codeforpdx/PASS/pull/364#discussion_r1282540616


Allow embedding of images in clay config

Is this going to be possible? I'm converting an old style config page to Clay, and this is one option I can't find out how to do.
Great project/product!

Documentation really needs to be improved for this sort of thing but in the mean time, you can use html in many of the labels and descriptions of components. To include an image, you base64 it and embed directly in the config.js.
example
{
  "type": "input",
  "appKey": "email",
  "defaultValue": "",
  "label": "Example image embedding",
  "description": " "
}

So there's a few things that need to be done for this to actually work nicely:

[ ] Document the URI size limits (500,000 characters-ish)
[ ] Have Clay check the length of the bundle and throw an error if it exceeds the URI limit.
[ ] Bonus: Somehow allow resources to be consumed by Clay and converted to base64 automatically

Works perfectly. Thanks! Although you confused me with your sample graphic...  I thought the small down arrow was some sort of artifact and didn't realize until after some research that it was the graphic! Thanks for your efforts on this project.

Putting the graphics in the descriptions works ok, but would it be possible to make a new type without any buttons, toggles or selects? I'm trying to make a header image and the best type to use is the select type, but the triangle in the corner is annoying :)

I put my graphic in the default value of a text entry... Checkout DualTZ by wa1oui, source at github DHKaplan/DualTZ

Thanks, that worked perfectly!

Guys! I found this quite useful. I managed also to embed a PayPal button including the hyperlink to a donation page.
{
   "type": "text",
   "defaultValue":""
}

I converted the PayPal image button to Base64 using this webpage:
https://www.base64-image.de/
See here a full example:
https://raw.githubusercontent.com/dieghernan/Sfera/master/src/pkjs/config.js
Hope this can be of any help. If anyone wants to check it live and working you can download this watchface and open the config page:
https://apps.getpebble.com/en_US/application/58c2f7110dfc32a52a00081f
And if any of you wants to check if it really works I would be more than happy to confirm that the donation has been done ;)


How to read and understand ML and DL research papers

We ask that you please be patient as our team works through approving and publishing all articles/tutorials in a timely manner. Allow 1-3 days for a topic to be reviewed and/or approved - allow 3-7 days for an articles to be reviewed and/or published.
Proposed title of article
Your title should be descriptive of the article/tutorial. Be Specific. Use keyword research to gain your article higher ranking.
How to read and understand ML and DL research papers
Introduction paragraph (2-3 paragraphs):
Please write the Introductory paragraph(s), that would be included in your article. We will use this writing snippet to help us assess overall quality before approval. We're looking for the first 2-3 paragraphs of the article that appropriately summarize what your article will be about.
Take your time and write the content as you would intend to get it published.
Are you reading Machine Learning (ML) research papers or Deep Learning (DL) research papers, and you feel like you're getting stuck? You read these research papers and concepts but they don't seem to be sinking in. You feel like you're not picking concepts fast enough, you get confused by mathematical notations and ML concepts which seem abstract. This was the case for me a while back. So, what I ended up doing is continuously reading a bunch of research papers until I developed some little bit of a process. Well, this process might not be perfect but it will help you get up to speed and help you process these research papers faster and prevent you from losing your mind.
This tutorial will guide you through some of the best practices I found.
Key takeaways:
What are the 3-5 most important things the reader should understand or be able to do after reading this article? Use this area to get your ideas down on the bulk of your article or tutorial.
By the end of this tutorial, a reader should be able to understand how to:

Read the abstract, conclusion, data and results section
Double check for the code and data
Isolate how the model was built and trained
Learn how to try out the models yourself to improve your understanding of the subject

References:
Please list links to any published content/research that you intend to use to support/guide this article.

Papers with Code
PyTorch
Keras api

Templates to use as guides

How To Guide Template
Software Review Template
Tutorial Template

@smkinyan
Good afternoon and thank you for submitting your topic suggestion.
Your topic form has been entered into our queue and should be reviewed (for approval) as soon as a content moderator is finished reviewing the ones in the queue before it.

pinging our resident expert to help shed some more light on the topic @lalith1403

pinging our resident expert to help shed some more light on the topic @lalith1403

I know this article isn't the typical type of article, both as a Computer Science student currently pursuing her Master's program, the biggest pain is in reading ML and DL research papers and not understanding a thing. So this topic idea was born out of the problems I faced and I know many computer science do. @lalith1403

@smkinyan This is a beautiful problem to have. Kudos to you on choosing a problem that everyone faces. However, I feel this is a very personal thing, and what works for you might not work for me. So, can you probably discuss the framework that you hope to discuss in the article.
Once we have that piece of the puzzle, we can proceed with how to frame the article. This is definitely an exciting topic, but we want it to be useful to all edge cases as well.

By Framework I mean, Probably take a paper, and read through the sections that you would initially look at. Then, if you are interested in the results proposed, talk about the metrics and analysis that goes into understanding the results. Once done, if you are going to talk about PapersWithCode, a major problem is, how does one setup the repositories that vary so widely. This is a pain point. Please correct me if you feel otherwise. If you could present the entire process of taking a paper and reproducing it using the official and non-official code-bases(not all papers have code released. In such cases we rely on community Dev).
This process would be really helpful in addition to the topics you have mentioned. This is a problem I face personally as well. So, I am passionate about the problem statement and would love to see a solution from the community.
Kudos to you again on choosing a wonderful topic! :)
Cc: @hectorkambow


Taxon constraint: GO:0032922

Hello,
GO:0032922 (circadian regulation of gene expression) should not be excluded from cyanobacteria, and maybe not from archaea either.
The circadian clock is highly studied in cyanobacteria, especially Synechococcus elongatus PCC 7942 and Thermosynechococcus elongatus BP-1 (now Thermosynechococcus vestitus), see review PMID:33419320. This paper (https://bmcecolevol.biomedcentral.com/articles/10.1186/s12862-017-0999-7) discusses a possible clock in archaea, although it is not yet clear if they really exist. There may be a clock in a few other (non-oxygenic) photosynthetic bacteria as well based simply on gene conservation.
I think you should remove this taxonomic restraint. If you want it could be limited to cyanobacteria, but I wonder if we would have to revisit this issue one day if you chose to limit it to that taxonomic level.
Thanks, Andrea

Removed 'multicellular organismal process' as a parent of GO:0032922 circadian regulation of gene expression and 'GO:0097167 circadian regulation of translation'


1.3.0: cannot find type 'LayoutDirectionBehavior' in scope

I've updated to 1.3.0. It works fine on my Mac running Xcode 15, but my CI environment running Xcode 14 is having a hard time with the change.
❌  /tmp/project/SourcePackages/checkouts/SwiftUI-Flow/Sources/Flow/Internal/HFlowLayout.swift:35:41: cannot find type 'LayoutDirectionBehavior' in scope

    public var layoutDirectionBehavior: LayoutDirectionBehavior {
                                        ^~~~~~~~~~~~~~~~~~~~~~~

❌  /tmp/project/SourcePackages/checkouts/SwiftUI-Flow/Sources/Flow/Internal/Layout.swift:206:34: cannot find type 'LayoutDirectionBehavior' in scope

    var layoutDirectionBehavior: LayoutDirectionBehavior {
                                 ^~~~~~~~~~~~~~~~~~~~~~~

❌  /tmp/project/SourcePackages/checkouts/SwiftUI-Flow/Sources/Flow/Internal/VFlowLayout.swift:35:41: cannot find type 'LayoutDirectionBehavior' in scope

    public var layoutDirectionBehavior: LayoutDirectionBehavior {
                                        ^~~~~~~~~~~~~~~~~~~~~~~

Let me know if I can provide more context!

Thanks for reporting this issue. Indeed, I started using LayoutDirectionBehavior annotated with @available(iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0, *). I'm trying to figure out how can that cause issues for your Xcode 14 toolchain.

@xzoky I published a new release 1.3.1 to unblock you until I figure this out.

1.3.1 fixed it, thank you!
My project targets iOS 15.0.
I'm using Circle CI's xcode:14.3.1 image, which is Xcode 14.3.1 (14E300b) on macOS 13.2.1, running on an Apple Silicon box.


Add option to disable popup notification while application is closing to tray

Describe the bug
Every day while I close Rocket.Chat to tray I see notification "Rocket.Chat is still running" and application no setting to disable this.
Windows 10 Pro 21H1 19043.1237
Rocket.Chat 3.5.3
To Reproduce
Steps to reproduce the behavior:

Start Rocket.Chat
Close Rocket.Chat
See notification

Expected behavior
Nothing noise while closing Rocket.Chat.
Screenshots

Additional context
There have already been several issue about this problem but:

Its about notification on every closing (and this fixed, but notification every day still annoying!).
No any reactions in its.

bump.
still not fixed

Getting this on Windows 11 too. Is there really any reason to produce a notification when closing to the tray in the first place?
If RocketChat is closed to the system tray and...

Someone sends you a message, it will produce a notification and you'll know it's still open.
You try to open RocketChat, it will open the existing RocketChat instance from the tray.

But even so, I feel like people understand the concept of minimising to the tray by now; do we even need a notification that an application is doing this?


Adding custom basic types

Hi,
I tried extending the basic content model as stated in the docs:
`public class MetaDescriptionContent : BasicContent
{
public string MyCustomValue { get; set; }
	public MetaDescriptionContent(CreateContent createContent, IPropertyFactory<BasicProperty> propertyFactory, IContentTypeFactory<BasicContentType> contentTypeFactory, IContentFactory<BasicContent<BasicProperty, BasicContentType, BasicContentRedirect>, BasicProperty> contentFactory) : base(createContent, propertyFactory, contentTypeFactory, contentFactory)
	{
		MyCustomValue = "Custom Value";
	}
}

public class MetaDescriptionContentQuery : ContentQuery<MetaDescriptionContent, BasicProperty, BasicContentRedirect>
{
}`

Registered like so:
`var graphqlExtensions = (IRequestExecutorBuilder builder) =>
builder
.AddTypeExtension()
.AddTypeExtension()
.AddTypeExtension();
		services.AddUmbraco(_env, _config)
            .AddBackOffice()
            .AddWebsite()
            .AddComposers()
            .AddUHeadless(new()
            {
	            UHeadlessGraphQLOptions = new()
	            {
		            GraphQLExtensions = graphqlExtensions
				}
            })
			.Build();`

Created query:
{   contentAtRoot() {     nodes {       id,       name,       myCustomValue,       properties {       value {          __typename,         alias         ...on BasicPropertyValue {           alias,           value         },         ... on BasicRichText {           alias,           content: value         }          }       }        }   } }
But when I try to query, it gives me:
{   "errors": [     {       "message": "The field contentAtRootdoes not exist on the typeQuery.",       "locations": [         {           "line": 2,           "column": 3         }       ],       "extensions": {         "type": "Query",         "field": "contentAtRoot",         "responseName": "contentAtRoot",         "specifiedBy": "http://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types"       }     }   ] }
What could be the issue?
Btw: It does not matter if I remove the myCustomValue from the query or not, the error is the same.
Using Umbraco 10.4.0 and UHeadless 3.3.0

Hi @Sibren,
It's a bit late at night here so I've just skimmed though the description. But it seems there might be a line missing from the docs. Try adding [ExtendObjectType(typeof(Query))] as an attribute on public class MetaDescriptionQuery
Let me know if it works otherwise I'll have a closer look when I get some time😉

Hi @nikcio,
Sorry, I was quite busy the last few days, but this seems to be working!
Thanks so much!


chore: remove reportAllChanges from getTTFB

reportAllChanges is not a valid param for getTTFB. Hence, this PR removes it from the markdown.

Closing this since it's not valid anymore.


Show upcoming events on the taskbar calendar in the form of small dots/ symbols on the dates in colours

Description of the new feature / enhancement
The calendar in the taskbar is very handy to use, but to see which day has a event in it you need to click on each day one by one. A small indicator at the days could be very helpful to see that some deadline/event/birthday/etc.. is coming. Different colours could be used to indicate different types of events like private/ work/shared/...

Scenario when this would be used?
When I quickly want to see what my schedule for the week is or if I have a deadline this week or an event I marked in my calendar and don't want to miss it, I could have a look at the taskbar calendar and see with only 1 click if there is something marked for the coming days. If can save many clicks and time.
Supporting information
No response

I'm a little bit concern about this since this may not be able to integrate with Windows 11's taskbar calendar.

I do recommend you to file this on the Feedback hub too.


Screenshoot capture (like Greenshot) with multiple save destinations

Description of the new feature / enhancement
Windows is missing a powerfull screen capture solution, the default embedded software is slowing down the process to capture multiple screenshoot on the fly without interupting our flow.
Greenshot is a wonderfull tool with the built-in magnifier + multiple destinations
Scenario when this would be used?
I would like to create guide and processes for my team capturing the necessary steps.
Pressing a capture screenshoot would target the region selection with a magnifier to accurately select the right location
Upon release, the image would be automatically saved in the clipboard+ in the Images\screenshoot folder
Would save me from installing a second software, I would love to have this included directly in powertoys
Supporting information
No response

Snipping tool does this. It saves and copies to clipboard


JATOS doesn't start after computer crashed

I'm not sure why, my computer crashed and now I can't start JATOS anymore, The typical Java message simply doesn't appear. Is there any solution?

Look into your JATOS folder. Can you see a file called RUNNING_PID? If yes, delete it. Then it should work.

Done. Now it works, thanks!
On 10 Mar 2015, at 20:50, Kristian Lange<EMAIL_ADDRESS>wrote:

Look into your JATOS folder. Can you see a file called RUNNING_PID? If yes, delete it. Then it should work.
—
Reply to this email directly or view it on GitHub.


bash syntax error in generated script

the script contains "zcat blah > newline blah" and after moving that part of the script into a case-statement, travis barked about this newline. I haven't tested if the unmodified script works, but perhaps this can be fixed regardless?

(also, just out of curiosity: any idea where the mystery line number that travis outputs comes from? it does not match in any conceivable way with the real location of this error..)

I suspect you're running into some YAML idiosyncracy. One way to debug this is to convert the .travis.yml file to its JSON representation, and see if the shell script fragments get turned into sensible JSON string values.

right, this was indeed the issue. there is nothing wrong with the original generated script, and i don't even think it can be improved. One just has to be rather careful when putting moving a "plain multiline literal" into a "non-plain literal".
thanks!

...and people wonder why I'm not so excited about YAML-all-the-things :-))


Update get-started.md

typo fixed

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

@satonaoki Thank you for this fix! I'm merging now.


Add element form file upload component

The SCSS file for form styling has been updated to include more configuration variables. Variables for hover, active states, and color schemes have been added for finer-grained customization of form component styles. The additional configuration will increase the flexibility and adaptability of the forms.

Detailed styles have been added to file.scss. This includes additional class-based styles for different sizes, color variations, and commonly used CSS properties. These changes provide more flexibility and customization options for file fields in the form.

Added specific font sizes for the small, normal, medium and large classes in the file.scss file. This change helps to customize the icon size according to the specified class and improves visual consistency across different screen sizes.

Enhanced the styling control of various form modifiers such as 'has-name', 'is-boxed', and 'is-centered' in file.scss. Differentiated styles depending on whether the file is 'empty', 'small', 'medium', or 'large', and whether it 'has-name'. Also, adjusted radius and border-width for visual enhancements.

The styling properties for elements with 'file-cta' and 'file-name' classes in file.scss have been updated. In particular, the 'border-end-end-radius', 'border-start-end-radius', 'border-end-start-radius', and 'border-start-start-radius' have been adjusted. Moreover, the display property for 'file-name' was set to none when a file is empty.

In the scss/forms/file.scss file, several updates were made to improve styling for file form inputs. This includes modifying the flex direction, height, padding, and border-width for certain components as well as adjusting the size of icons. This would make the presentation of file form inputs more consistent and visually engaging.

Added properties to the .file-label and .file-name selectors within the .is-fullwidth class in the file.scss file. This expands the fullwidth setting to ensure labels and file names in forms utilise the full space available.

The update adjusts the styling for right aligned elements in file.scss. Justify content has been set to flex-end. The modifications largely concern the border radius and border width of the elements and also involve tweaking the order of the elements.

The file label component's styling has been updated to include flex properties, and event-based styling for hover and active states has also been added. The changes should improve the component's usability and visual feedback.


Difficult to track down referencing errors.

Can we get more feedback for linking errors such as
C:\Users\zzzzz\.nuget\packages\ooui.wasm\0.9.206\build\netstandard2.0\Ooui.Wasm.targets(17,3): error : Error while processing references of 'MyFormsApp, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null'

Absolutely.
Can you help me with a repro? Is there a nuget I can reference or something to produce the error?

I tried to reference SkiaSharp via nuget and create a SKPath in your sample
            var x = new SKPath();
Fighting with the repro/nuget/VS2017 preview...

Actually maybe just best to close this until I get a better exmaple. I wanted to bring in SkiaSharp as it was a dependency of Telerik's Xamarin controls, but on investigation I see this is a 2d drawing library which is clearly not going to work without out a backed for the web.

OK. Yeah I want to support SKia but might have to create a new package to do it.
I'm going to keep this open for now since I want better errors too.

The errors have been improved to display exactly what it can't find.


ImportError: cannot import name quadopt

~$ mkdir tmp;
$ cd tmp;
$ git clone http://github.com/itfoundry/kalam.git;
$ cd kalam;
$ ls build;
Kalam-Bold.otf Kalam-Light.otf Kalam-Regular.otf
$ fontbakery-setup.py . ;
$ fontbakery-build.py . ;
Traceback (most recent call last):
  File "/usr/local/bin/fontbakery-build.py", line 4, in <module>
    __import__('pkg_resources').run_script('fontbakery==0.0.11', 'fontbakery-build.py')
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 735, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1652, in run_script
    exec(code, namespace, namespace)
  File "/usr/local/lib/python2.7/site-packages/fontbakery-0.0.11-py2.7.egg/EGG-INFO/scripts/fontbakery-build.py", line 33, in <module>
    from bakery_cli.bakery import Bakery, BAKERY_CONFIGURATION_DEFAULTS
  File "/usr/local/lib/python2.7/site-packages/fontbakery-0.0.11-py2.7.egg/bakery_cli/bakery.py", line 22, in <module>
    from bakery_cli import pipe
  File "/usr/local/lib/python2.7/site-packages/fontbakery-0.0.11-py2.7.egg/bakery_cli/pipe/__init__.py", line 14, in <module>
    from bakery_cli.pipe.font_crunch import FontCrunch
  File "/usr/local/lib/python2.7/site-packages/fontbakery-0.0.11-py2.7.egg/bakery_cli/pipe/font_crunch.py", line 20, in <module>
    from fontcrunch import fontcrunch
  File "/Library/Python/2.7/site-packages/fontcrunch/__init__.py", line 1, in <module>
    from .fontcrunch import optimize
  File "/Library/Python/2.7/site-packages/fontcrunch/fontcrunch.py", line 26, in <module>
    from . import quadopt
ImportError: cannot import name quadopt
$

Seems like this is a problem upstream, as this doesn't work:
from fontcrunch import fontcrunch


Sharing text and web page URL

In version 2.x, if you select text in Safari and use the share toolbar button (not the context menu), it will grab both the selected text and the web page URL to include in the draft Markdown post. I'm remembering now that this requires setting a JavaScript file that runs inside Safari and can extract the info via the DOM or whatever.
@vincentritter I've checked this into the fix/share-selected-text branch. However, I'm hitting my head against crashes and other debugging problems, so haven't figured out what is missing yet to finish reimplementing this feature. It may require tweaks to the ReactNativeShareMenu code.

Thanks @manton – I'll have a look into this.

I can replicate the crash, but it's not showing the root cause of why it's happening. Still investigating.

OK, can see the issue when debugging the actual share extension.

@vincentritter I think I'm going to tweak the text a little so it matches the web app when making a new post from a highlight. Also will look at restoring the bookmark feature, which I think broke with this.

That's a good catch!
Have a look at the following in "/src/stores/Share.js", line 230:
can_save_as_bookmark() {
  return self.share_type === "text" && self.share_text.length > 0 && (self.share_text.startsWith("http://") || self.share_text.startsWith("https://")) && string_checker._validate_url(self.share_text)
}

You'll have to change the "share_type" to json as that's new now, plus the actual text check too, to take into account the markdown.

@manton – I made tweaks in this branch: https://github.com/microdotblog/microblog-react/tree/feature/share-sheet-tweaks
It'll offer to save the bookmark correctly now.
Feel free to use that branch to make your other tweaks.


Manual exclude - Feature request - visual selection of DWIs to exclude

Allow the users to interactively select (with visual support) the DWI volumes that are bad and thus need to be removed

dtiplayground legacy has the old version, called Quickview. Similarly, we would need a UI that allows to select multiple DWIs and then provide that selection to dmriprep

The current beta version has a UI tool for selecting and removing DWI volumes interactively. run dmriplaygroundlab to get to the UI and use the DMRI Volume Selector tool


Make parking_lot dependency optional

We currently use it's RwLock for syntax nodes and their data, but could let users decide about that vs. using std types.

Decided against this because of the differences in the interfaces between std's and parking_lot's locks, mostly the fact that using std locks introduces an additional Result on lock operations, so it's not a drop-in replacement.
The amount of boilerplate to support this isn't too big (see, for example, tokio's parking_lot feature), so I'm open to revisiting this if there is a need for it in the future. But I don't see the immediate benefit of making this change just to have the feature right now.
In the meantime, I've bumped the parking_lot dependency to the latest version in #48.


extras_require support

Added support for specifying project paths with the extras_require modifier available when doing a pip install
For example, you should now be able to runs something like:
setuptools_conda install-requirements labscript-suite[docs]
which should gather and include the extra requirements under the "docs" category.
As it is actually project paths being specified in the command, the new code distinguishes between paths with square brackets in and the extras modifier.

This is completely untested because I have not had good experiences building conda projects in the past and don't want to struggle with that today! Would appreciate it if you had the time to build and test :)


Fix typo in linux/sample-helm-chart/readme.md

In linux/sample-helm-chart/readme.md there is a typo.
Values.pvc.   Tempsize should be Values.pvc.tempsize as defined in linux/sample-helm-chart/values.yaml

@microsoft-github-policy-service agree

@amvin87-zz could you please review this PR? Thanks


Release 0.29.0

@MikeEdgar @rareddy @biswassri @shawkins will this include https://github.com/bf2fc6cc711aee1a0c2a/kas-fleetshard/pull/811 as well?

will this include #811 as well?

@machi1990, it's included :+1:

Thanks @MikeEdgar


stdlib: semver support

Semantic versions are commonly used for describing API versions
amongst others. Comparison of these strings isn't easy in native CUE,
if possible at all, and the regular expression to constrain them is
non-trivial. We could provide a standard library package to
implement comparison and semver validity checking.
Something along the lines of this, perhaps:
package semver

#Version: =~ "....."
Less: func(#Version, #Version): bool
Compare: func(#Version, #Version): (-1|0|1)

Closely related to https://github.com/cue-lang/cue/issues/407. I'd suggest we keep the earlier issue.

I agree - Roger even left a comment there in September. When reviewing the cue.mod changes for modules, I wondered if we had an issue for semver support in std, and neither of us remembered an issue. Failure to search properly :)


Getting null transaction id when using extractTransactionIdFromAppReceipt

Hello team,
I have tested the code to extract transaction id from app receipt on sandbox, it was working fine.
When I deployed it on production it is failing to extractTransactionIdFromAppReceipt
// this is the server side code
val receiptUtil = ReceiptUtility();
val transactionId = receiptUtil.extractTransactionIdFromAppReceipt(appReceipt);

Server side build gradle

	implementation("com.apple.itunes.storekit:app-store-server-library:3.1.0")
	implementation("com.auth0:java-jwt:4.4.0")
	implementation("com.squareup.okhttp3:okhttp:4.9.0")

// this is the code in the app

let receiptURL = Bundle.main.appStoreReceiptURL

            if let url = receiptURL, let data = try? Data(contentsOf: url) {

                let base64Receipt = data.base64EncodedString(options: [])
                    do {
                        let result = try await repository.validateApplePurchase(userId: AppUserDefaults.shared.user?.id, purchaseToken: base64Receipt).data
                        if result == false {
                            fetchingProducts  = false
                            return nil
                        }
                    }
                    catch {
                        print("Couldn't read receipt data with error: " + error.localizedDescription)
                    }
            }
            // jUST SAMPLE code from SKDemo
            // Check whether the transaction is verified. If it isn't,
            // this function rethrows the verification error.
            let transaction = try checkVerified(verification)

@nayan-dhabarde Not all app receipts have a transaction id within them, are you confident this one does?

@alexanderjordanbaker
Wait, can you point me to some resources which can help me understand what kind of appReceipt won't have a transactionId.

I was under the assumption that if a person made a transaction and generated the receipt using above code it will have the id. which I can send to my server and then use getTransactionInfo with this transaction id. This helps me verify the purchase and save it against my userId.

I am doing this specially to bind my userId and the transaction on the server, I am getting the notification and i am able to decode it successfully, but the notification can only use userId in UUID format in appAccountToken whereas my userId is a Long right now.

Why won't it have a transaction id?

@nayan-dhabarde Transaction ids are for in-app purchases. This is an app receipt, if the user has no in-app purchases then there will be no transaction ids.

I see, I am sending the receipt only after user has made the purchase to auto-renewable subscription. This is indeed an in-app purchase.
Here is my complete code, if it helps:
func purchase(_ product: Product) async throws -> Transaction? {
        guard let userId = AppUserDefaults.shared.user?.id else {
            throw NSError()
        }
        // Begin purchasing the `Product` the user selects.

        let options = Product.PurchaseOption.custom(key: "userId", value: "\(userId)")
        let result = try await product.purchase(options: [options])
        fetchingProducts  = true
        switch result {
        case .success(let verification):
            let receiptURL = Bundle.main.appStoreReceiptURL

            if let url = receiptURL, let data = try? Data(contentsOf: url) {

                let base64Receipt = data.base64EncodedString(options: [])
                    do {
                        let result = try await repository.validateApplePurchase(userId: AppUserDefaults.shared.user?.id, purchaseToken: base64Receipt).data
                        if result == false {
                            fetchingProducts  = false
                            return nil
                        }
                    }
                    catch {
                        print("Couldn't read receipt data with error: " + error.localizedDescription)
                    }
            }

            // Check whether the transaction is verified. If it isn't,
            // this function rethrows the verification error.
            let transaction = try checkVerified(verification)
            // The transaction is verified. Deliver content to the user.
            await updateCustomerProductStatus()

            // Always finish a transaction.
            await transaction.finish()

            fetchingProducts  = false
            return transaction
        case .userCancelled, .pending:
            fetchingProducts  = false
            return nil
        default:
            fetchingProducts  = false
            return nil
        }
    }

@nayan-dhabarde This looks to be a StoreKit 2 purchase, is there any reason you aren't sending the transaction directly to your server and verifying it with a SignedDataVerifier? This would be much simpler and faster
That would be
case .success(let verification):
      let signedTransaction = verification.jwsRepresentation

If you are using StoreKit 2 to perform the purchase, there should be no reason to use the deprecated app receipt and associated functions, ReceiptUtility is only around to support use cases that need to support clients using deprecated StoreKit 1, which doesn't appear to be the case here

@alexanderjordanbaker I see, thanks for clarifying that. I will give it a try

Closing due to no comments, please create a new issue if any further questions are needed


Pt 156688711 add TTL to deposit and withdrawal

Pivotal story
This PR is based on PR 956 and must be merged after it.

PR956 had been merged.


Add PixelDroid

Adds PixelDroid

Hmm... same problem as #507

Fixed!

Can close as its been added in #677
@Goooler

Duplicate, thanks for yj


question about my dataset

Thank you for sharing your code, there are some parts of your code that I don't understand because of my limited ability, could you help me?

The scenario you are modelling is a direct segmentation of the data, but the scenario I am dealing with uses a sliding window to dynamically traverse the data, so where should I fix this if I want to load my own data.
I still don't quite understand the difference between ImputationDataset and TransductionDataset, it seems that there is no difference between classification and regression tasks in the unsupervised learning phase.
Looking forward to your reply, thanks for your help

I don't need the IDs,but without it the code can't run

Hello,
Regarding the ImputationDataset and TransductionDataset: these are pytorch Dataset classes that implement the tasks of imputation (i.e. filling masked/missing values across all variables) and transduction (i.e. consistently predicting some entirely missing variables from some others which are always available). They can be used as pretraining objectives, but may also be the actual target tasks one is interested in.
Sample-level regression and classification are simply the two downstream tasks that are used to evaluate the architecture and pretraining capabilities of the multivariate times series transformer. They don't affect pretraining at all; unsupervised pretraining is done through imputation, and the model that is learned is ready to be fine-tuned for either sample-level ("extrinsic") regression or classification.
Regarding your own dataset: In your case, one way of implementing your scenario would be to define a new dataset in the data.py file, where you would do the sliding window segmentation in advance, and define some "dummy IDs", similar to how it is done in the example PMUData class here. Do you have a compelling reason why you wish to do the segmentation dynamically, instead of defining all samples in advance? If so, then what I would do is to define a new ImputationDataset which would offer the same functionality with respect to masking data, but e.g. use the IterableDataset (see here) to get the data in chunks, instead of accessing a DataFrame by index, as it does know in __getitem__. I think everything else can remain the same. Your sample IDs (which you can define at will, like 0, 1, 2, ...) will correspond to your main time series samples and the train/validation/test splits will be done based on those (because you don't want to be using parts of the same sample in the training set and parts in the other sets), and then the IterableDataset will produce sub-samples (sliding windows) for each sample ID in your training and other sets.

Hello,thank you for your answer. If my data has no missing values, can I just pre-train with TransductionDataset？Also, I still don't quite understand the specific role of paddingmask, which actually only appears in the attention calculation, and if it is not used, it has any effect on the results.

in my area, no missing data and each data is the same length, and there is no non-isometric phenomenon.

Regarding padding: If all the samples in your dataset are of the same length, then padding is not necessary in your case. You don't need to do anything yourself; the batching code in dataset.py will find out that all your samples are of equal length, and the padding masks which will be generated will be "all-ones" tensors, meaning, no input time steps will be ignored, they can potentially all contribute to the calculation.
In the general case, if the samples had differing length, the batching code would pad sequences of length shorter than the maximum length sequence in the batch with some value (e.g. 0s), until they all have the same maximum length. This is done to allow efficient batch processing in tensors. The padding masks in this case would have 0s in the positions corresponding to the padding, such that in the attention layer these positions would receive a really large negative value and thus after softmax a zero attention weight, meaning, they will be completely ignored.
Regarding the training objective you want to use, imputation vs transduction:
Your data doesn't need to originally have missing values to do imputation training. It is simply an artificial pre-training strategy/technique: we are masking the input and asking the model to guess the missing values. That would make it an excellent objective for actual imputation, if we were really missing data, but it's not the only use; through this objective, the model learns much about the distribution of the time series variables, the co-dependencies between signals and the dynamics of each variable. So you can apply it on your dataset, for a variety of downstream tasks.
Another possible strategy for pre-training is to allow the model to consistently observe for each sample several variables completely (i.e. no missing parts), and to try to predict some other, entirely (or partially) missing variables from the existing/observable ones. This is called transduction. This is a technique that can work well in some cases, and I have tested its effectiveness, but it was not the focus of this paper. That's why I have removed some of the relevant code from the main.py. I can add it back if there is demand for it.


Add Maxim as a Sensor Manufacturer

Maxim Integrated
https://www.maximintegrated.com/en.html

This is done


MemoryError: during preprocessing

python main.py --mode prepro --data_file hotpot_train_v1.1.json --para_limit 2250 --data_split train
Getting memory error after 11048 tasks are done.
I have 8GB of RAM and I believe that it runs out of memory while doing pre processing. Is there any way so that I could perhaps perform pre processing in chunks or some other way around ?

Try reducing n_jobs in Parallel calls. More parallel jobs speed up processing, but also consume more memory.


Add docs for CSV module

Closed due to https://github.com/ballerina-platform/ballerina-library/issues/6755


Watch does not detect new files in sub-directories for Linux.

TypeScript Version:  2.0.3
When running tsc --watch on Linux, new files added to sub-directories of the route are ignored. This basically makes running tsc in watch mode unusable on Linux.
I believe that Nodemon transitioned from using fs.watch to the Chokidar package to resolve this and other issues.

Anyone?

Nice to be listened too ;)

Sorry for the delay. Should be fixed in latest version of TS.


An existing redis cache instance cannot be to a Virtual Network. This…

… option must be configured when you create the redis cache.
An existing redis cache instance cannot be to a Virtual Network. This option must be configured when you create the redis cache.

@flang-msft
Can you review the proposed changes?
When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

@flang-msft ,could you please review the request as it has been long pending !
Thanks in advance

#assign-reviewer: @shpathak-msft

We moved this to our private branch were the content was edited and published.
#please-close


REI crash

Minecraft version
1.20.1
Describe the bug
crash REI
Steps to reproduce
1 click REI recipe "crafting"
2 crash game
3 cant start game
Logs
https://mclo.gs/kAQQ9v4
Additional context
REI? TechReborn? Mekanism? RefinedStorage? Immersive engineering?

Hi, thanks for reporting this. Upon looking at the log, it seems like this crash is coming from Ad Astra interacting with REI. Please forward the issue to them.

java.lang.ClassCastException: class me.shedaniel.rei.jeicompat.wrap.JEIWrappedDisplay cannot be cast to class earth.terrarium.adastra.common.compat.rei.displays.CompressingDisplay (me.shedaniel.rei.jeicompat.wrap.JEIWrappedDisplay is in module<EMAIL_ADDRESS>of loader 'TRANSFORMER' @5737d116; earth.terrarium.adastra.common.compat.rei.displays.CompressingDisplay is in module<EMAIL_ADDRESS>of loader 'TRANSFORMER' @5737d116)


argocd testing

i pushed the prow.sh, which can be used locally but is hoped would be used by prow CI in the future (TBD). but do we need another test scenario to check the charts work in argocd?

https://github.com/redhat-cop/helm-charts/blob/master/_test/prow.sh

i.e.: a script that creates all the charts in an argocd instance and checks they've all run successfully.
thoughts @ckavili @springdo @eformat ?

it'd be nice to check if post hooks are working as expected after sync, etc. I actually would like to have this for UJ apps with defined override values in that repo (for external charts as well😁)

stale, dont think this is going to go anywhere.


Make Showcase record titles better looking

Would be cleaner if we could trim the question number from the title and display the program / project with an icon or at a second level.
This might be two issues:

Trim question numbers
Change how we display the program

If we feel that including the question number or ID is important, we could move it to the second layer of information along with the program.

Hi @drakedanner, I would like to take on this issue.

I would like to propose the following changes to the showcase page:

Removing the program and the number from the title name
adding a program tag beside the title name that, if clicked, will automatically check the clicked program

Let me know your thoughts @drakedanner @thekakamora.

@D0R11 please start working on the issue. Here is some information to get started with
This is a sample payload available for each submission. You can get title without program name & question id by referring to the field question_title.
{
"program_name": "OlympusDAO",
      "question_number": 16,
      "question_title": "The OHMies",
      "hunter_discord_id": "lilypencal#7070",
      "created_at": "05/13/2022",
      "public_dashboard": "https://app.flipsidecrypto.com/dashboard/olympus-dao-16-the-oh-mies-0yjPhg",
      "question_start_date": "2022-05-06T00:00:00",
      "submission_due_date": "2022-05-13T00:00:00",
      "question_level": "Beginner",
      "question_display_title": "16 - The OHMies",
      "overall_score": 10,
      "grand_prize": "",
      "submission_quality": "Top Tier",
      "objectID": "f658415735262_dashboard_generated_id"
}

Regarding icons for programs, you can use the field program_name and pick up appropriate program icon. If you encounter an unknown program_name then pleas use a fallback icon.

Apologies for the late reply. I'm working on it. Thanks!

Added a PR

@D0R11  what you think of showing icons as I mentioned the comments above? I attached a screenshot of design from https://flipsidecrypto.xyz/discover/submissions. Can we do something similar ?

Sure. Shall we replace the tag beside the program title with the protocol logo? Or is it beside the author's name?

I manually downloaded the logos from google (since crypto-logos do not have OlympusDAO logos yet for some reason) but I did it like this. What do you think @thekakamora?


Fetching logic: Should not crash if fetch report fail

When external spotify API fuckup, it should not crash the app as well.


Features of git

Hi Team,
I would like to know if below features are available in gitea :
Git Repo hosting
Web based SCM hosting software
Local Repo Administration
Support for Microsoft Active Directory
User Roles
Merge Request Reviewer
Protect direct push on master
Leaving comments on Merge Request
Merge Request Diffs
Cherry pick changes from UI
Revert patch/merge request/pull Changes From UI
Integration with other build server
Support for Private Repositories
Notifications-Issue/Merge request events
Backup and DR

[x] Git Repo hosting
[x] Web based SCM hosting software
[ ] (UNSURE) Local Repo Administration
[x] Support for Microsoft Active Directory
[x] User Roles
[ ] Merge Request Reviewer
[x] Protect direct push on master
[ ] Leaving comments on Merge Request
[x] Merge Request Diffs
[ ] (UNSURE) Cherry pick changes from UI
[ ] (UNSURE) Revert patch/merge request/pull Changes From UI
[x] Integration with other build server
[x] Support for Private Repositories
[x] Notifications-Issue/Merge request events
[ ] Backup and DR

Hi! Do you guys now if someone is working on "Leaving comments on Merge Request"? IMO this would be a really big step forward to give ppl a fully-featured tool to replace gitlab/github :).

@soyuka as I know, nobody currently are working on that.

@soyuka There is a big conversation on how to implement code comments in #189 . I think there's also an open pull-request for it, but it seems stalled.

Can this ticket be closed?

I just stumbled over this and

Cherry pick changes from UI

is also handled in #3880

https://docs.gitea.io/en-us/comparison/


Optimize imports removes used import of operator

import Data.Options ((:=))
x = shallow := true

Cant reproduce, need more context.

Fixed by, fixing operator references that where broken, thank you @i-am-the-slime for fixing this together with me!


Console error

Using spongeforge-1.12.1-2444-7.0.0-BETA-2501 & forge-1.12.1-<IP_ADDRESS>4-universal with latest LuckyPerm (LuckPerms-Sponge-3.2.63)
Error: https://pastebin.com/yGLPGy7M

AdventureMMO doesn't have a API 7 version


initial branch - attempt to get this to work on isambard cascadelake …

#48
@giordano  - I'm going to use this pull request to try to merge the hpcg benchmarks. I've made a new branch from the head of main, but this has quite a few changes and I'm not sure about the status of some of the things. I'll record what I'm doing here - but note that this didn't run (as will be explained). If you get some time to let me know what I should be doing to run on cascade lake at Isambard, that'd be really helpful.
I'm going to talk out loud here, so that I remember what I've done, and so that anyone can tell me where I'm going wrong if they read this.
source ./excalibur_hpcg/bin/activate
module load python37 (as you guys have discussed on slack - this is needed for pip)
pip install .
export SPACK_ROOT="/home/mox-dcase/spack"
source "${SPACK_ROOT}/share/spack/setup-env.sh"
export RFM_CONFIG_FILES="${PWD}/benchmarks/reframe_config.py"
reframe -c benchmarks/apps/hpcg -r --keep-stage-files -n HPCG_Original --system isambard-macs:cascadelake
(This is the command that I want to run - HPCG_Original is one of the three variants of the hpcg app. This will fail because benchmarks/spack/isambard-macs/packages.yaml has references to 'open' in perl and crypt in python, which can't be found).
reframe version is 4.2.0
spack version is 0.19.0.dev0
So the status after the first attempt (from this new branch) is that there is an issue resolving the cascade lake environment for spack, and this needs prevents it from moving on to attempt to build the apps.

I've made some changes with respect to @giordano 's suggestions, and also to keep a standard grid for the stencil to original comparison.
If you want to run this you need spack vn 0.21.0.dev0 (not 0.19 as in the header)
and argument to reframe:  -S build_locally=false (Thanks Mose)
Only tested on cascade lake @ isambard , and only openmpi at this stage.

Ok - I've added the readme - thanks. I'll of course return to all of this as we decide what's needed following our meeting next month. See you then.

Thanks!


Update dependencies

Highlights:

https://github.com/input-output-hk/cardano-ledger-specs/pull/1784
https://github.com/input-output-hk/cardano-ledger-specs/pull/1785
https://github.com/input-output-hk/cardano-ledger-specs/pull/1779
https://github.com/input-output-hk/ouroboros-network/pull/2512

Draft because this refers to https://github.com/input-output-hk/cardano-ledger-specs/pull/1785, which is not yet merged.

This includes https://github.com/input-output-hk/cardano-node/pull/1711/, which is needed to deal with primitive >= <IP_ADDRESS>, as required by https://github.com/input-output-hk/cardano-ledger-specs/pull/1785 (see https://github.com/input-output-hk/cardano-ledger-specs/pull/1786).

bors merge


Include package and manifest-path in the cache key

Many repositories using cargo-semver-checks in multi-crate workspaces run it separately on each crate in a single job (matrix strategy or separate steps), for example:

https://github.com/libp2p/rust-libp2p/blob/master/.github/actions/cargo-semver-checks/action.yml
https://github.com/ngrok/ngrok-rs/blob/main/.github/workflows/ci.yml#L78-L92
https://github.com/risinglightdb/sqllogictest-rs/blob/main/.github/workflows/ci.yml#L60-L76

If we run the action in these repos specifying only the input package, the runs for different crates will share the same cache key. This leads to poor results especially if they are executed concurrently - then only the cache of the recently checked crate can be restored. The current solution is to use input prefix-key with the same value as package, but I think it'd be better if we changed the default behavior of the action. Now it's not so easy to notice that something is going wrong and I think many users can make such a mistake...
I propose to include values of package and manifest-path in the cache key. The question is - should they be made a part of the default value for cache-key input (currently the name of the job) or should they be included in the unmodifiable part of the key (like the versions of rustc and cargo-semver-checks)?

Nice work! This is exactly the sort of thing I was hoping we'd catch before releasing.
Let's include package and a hash of manifest-path in the cache-key component, which can be overridden by the user. I suggest using a hash of manifest-path instead of the whole thing so we have a guaranteed (and hopefully short-ish) length instead of having arbitrarily-long keys.
I trust you'll remember to update the docs accordingly as well.
Again, great work! 🚀


IDE support issue with gradle preventing doing code modification from the IDE

After updating the project, I was unable to make it compile within the IDE:

I need to do some modifications in this exact same file. So I am unable to use the IDD refactoring tools or any hint or visual guidelines when I remove some method because I cannot tell the difference between the IDE support issue and the real modif I need I've made.

Note: gradle command-line command works fine:
./gradlew clean assemble install
BUILD SUCCESSFUL in 31s
187 actionable tasks: 185 executed, 2 up-to-date

It works finally after I did that:

upgrade intellij (to 2017.2.3)
brew update / brew upgrade (to upgrade gradle version)


[BUG] Memory view arrays cannot be size 0

Describe the bug
cimport cython
cpdef void main():
    cdef object [::1] v0 = cython.view.array(shape=(0,), itemsize=sizeof(void *), format='O')

ValueError: Invalid shape in axis 0: 0.

To Reproduce
Run the above.
Expected behavior
That the array with no elements would get created
Environment (please complete the following information):

OS: Win 10
Python version: 3.8.5
Cython version: 0.29.21

Additional context
One of the tests for the Spiral language does a breath first search using nested arrays instead of a queue, so it can have a size of zero towards the end after all the moves get filtered.
I have no idea why this weird restriction is in place here. This wasn't the case with the Numpy arrays or pretty much any kind of array in any language I've looked at.

Duplicate of https://github.com/cython/cython/issues/3334. I'm pretty sure it should work given that you can get a size-0 memoryview by creatively slicing another memoryview.

It is good that this will be easy to fix. I've gone back to Numpy arrays until this gets resolved, so please do so.


jquery version conflict?

Is there an issue with using the latest version of jquery, specifically with your apple example? I tried to recreate it using v 3.1.1, but now it doesn't scroll...

Make sure your page is valid and you have the correct doctype.

just ran it through a validator. its valid. doctype is same as your example.

Ok, must be something else causing the problem. Scrollify is fully compatible with jquery 3.1.1

alright, i'll keep at it. thanks for the responses

Yo Luke, was there a resolution to this issue?
I literally copy/pasted your demo (https://projects.lukehaas.me/scrollify/examples/header-footer/) verbatim today - except i used jQuery 3.1.1 (a requirement for my project). There is definitely something weird going on after I scroll passed the second to last (nth-1) section, the resizing is off by a few pixels (I can see  background color) and the scroll animation is not as smooth as your demo.
If I stick to jQuery 1.7, it's all good. But again, I'm forced to use 3.1.1. Any help is greatly appreciated!


Adding product metadata trough mutation throwing err in playground

What I'm trying to achieve
I am trying to add metadata to a product using mutations but it is trowing backe the following error: "You do not have permission to perform this action" as shown in the picture. I even included authorization https headers {  "Authorization": "xyz..."}  but is not working.
Steps to reproduce the problem

Open the graphql playground
and type in the mutation as shown below according to the examples shown in https://docs.saleor.io/docs/api/example-query

What I expected to happen

I expect the metadata to be added.

Screenshots

System information
Operating system: Mac Os

Hey, I just checked your example it is working fine in Saleor 2.9 but you need adequate permissions.
By the way the errors field that you use is deprecated your mutation should look like something like this:
mutation {
  updateMetadata(
    id: "UHJvZHVjdDozNQ=="
    input: { key: "special_product", value: "bus" }
  ) {
    metadataErrors {
      field
      message
      code
    }
    item {
      metadata {
        key
        value
      }
    }
  }
}

@grll
thanks that solved my problem 👏

Hello Gril,
Thanks for your insight. this didn't work for me. It generated the token as you said but still permission denied. I notice server cannot be reached in the inline graphicql address bar but it still works. Could this be the issue. I suspect and environment variable for that saying  Invalid HTTP_HOST header: <SimpleLazyObject: '*'>
What does create_app do anyway. I can't find reference to the created app anywhere. I can using startapp but that doesn't work with your example above so it must be a different command.
Pulling my head here.
Thanks again in anticipation.
Regards,
Taiwo


2.0: Android app crashes while trying to access document which does not exists

This is the code added on android app:
package com.couchbase.androidclient;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import com.couchbase.lite.*;
import java.util.Date;
import android.widget.Toast;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.TimerTask;
import java.util.Random;
public class MainActivity extends AppCompatActivity {
private Database database;
private Document doc;
private Replicator replicator;
private int numOfDocs = 4;
private int scenarioRunTimeMinutes = 1;

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    DatabaseConfiguration config = new DatabaseConfiguration(this);

    Log.i("state","Creating database");
    database = new Database("my-database", config);

    Log.i("state","Replicating data");
    URI uri = null;
    try {
        uri = new URI("blip://<IP_ADDRESS>:4984/db/");
    } catch (URISyntaxException e) {
        e.printStackTrace();
    }
    ReplicatorConfiguration replConfig = new ReplicatorConfiguration(database, uri);
    replicator = new Replicator(replConfig);
    replicator.start();

}

@Override
protected void onStart() {
    super.onStart();
    //Create docs in batch
    database.inBatch(new TimerTask() {
        @Override
        public void run() {

            for (int i = 0; i < numOfDocs; i++) {
                doc = new Document();
                doc.set("_id", "doc___"+i);
                doc.set("type", "user");
                doc.set("name", String.format("user_ %s", i));
                database.save(doc);
                Log.i("app", String.format("saved user document %s", doc.getString("name")));
            }
        }
    });
    int minutesCounted=0,k=0;
    long startTime,stopTime;
    startTime = System.currentTimeMillis();
    Random rand = new Random();
    while(minutesCounted < scenarioRunTimeMinutes){

        //update random doc

        int n = rand.nextInt(numOfDocs);

        doc = database.getDocument("doc___" + n);
       // String name = doc.getString("name");
        //Log.enableLogging("app", Log.INFO);
        Log.i("app","updating doc  "+"doc___" + n+String.format("user_"+k));
        doc.set("name", String.format("user_"+k));
        database.save(doc);
        Log.i("app","document name is "+doc.getString("name"));
        try {
            Thread.sleep(1000);
        }
        catch(InterruptedException e){
            Log.e("app",e.getMessage());
        }
        stopTime = System.currentTimeMillis();
        minutesCounted = new Long((stopTime - startTime)/60000).intValue();

        Log.i("app"," minutesCounter = "+minutesCounted);
        k++;
    }

   //Deleting docs

    Log.i("TEST", "before count -> %d",database.getCount());

    Log.i("app","Deleting docs");
    for(int i=0;i<numOfDocs-2;i++){
        doc = database.getDocument("doc___" + i);
        Log.i("app", "doc -> %s, deleted %s", doc, doc.isDeleted()?"true":"false");
        Log.i("app","document id is "+ "doc___"+i);
        Log.i("app","all keys are"+doc.contains("doc___"+i));
        Log.i("app","document name is "+doc.getString("name"));
        database.delete(doc);
        //doc.remove("doc___" + i);
        Log.i("app","Deleting doc -- doc___"+i);
    }

    Log.i("TEST", "after count -> %d",database.getCount());

}

}
While running this application, android app crashes inconsistently.Here is the logs attached on gist.
https://gist.github.com/sridevi-15/7d4932516fbf6d17b9fe914d522d593f

If document does not exists, SDK handle gracefully rather than crashing the app.

@sridevi-15 Can we close this ticket?

Hi Hideki,
It looks like bug to me. In my app , I was trying to retrieve doc which is not existed and app crashes. If there is no doc , it should not effect the app.

Hi @sridevi-15
Database.getDocument(String) works as specification. If you consider if this is a problem, could you please file the ticket to https://github.com/couchbaselabs/couchbase-lite-apiv2 ?
public func getDocument(id: String) -> Document? { return nil }

https://github.com/couchbaselabs/couchbase-lite-apiv2/blob/master/spec/spec/Database.swift#L34
Thanks!

I will close this ticket as CBL works as specification.

Hey, quick +1 on this issue.
If I'm understanding correctly, is the current specification that attempting to load a document with an unknown ID throws an internal exception? Unfortunately, I can't confirm as the links @hideki posted are Page Not Found's.

@tikimcfee,
couchbase-lite-apiv2 repo is a private repository.
In API-v2 spec,  Database.getDocument(String docID) returns null if docID does not exist in the DB. instead of throwing CouchbaseLiteException with 404 (NOT Found).
    public func getDocument(id: String) -> Document? { return nil }

The crash was caused by NPE .

@hideki - Awesome, thanks!
Ok, that makes much more sense. Returning a null object makes perfect sense to me - there's nothing there. On that note, have you guys considered adding @Nullable or @NonNull annotations to the public APIs? It's really simple addition to the codebase, and when adding it, it helps to make consumption a little less error prone, as you've got the compiler / Linter to point out when a @Nullable object was dereferenced without a check.

@tikimcfee
We could consider the annotation if @Nullable and @NonNull annotations work with both Android and regular Java environment.


Custom templates

Closes #39 and adds a section to the docs showing how this works.
Also added loop inclination to the default config file

Pull Request Test Coverage Report for Build 59

5 of 8 (62.5%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.1%) to 43.243%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

hydrad_tools/configure/configure.py
5
8
62.5%

Totals

Change from base Build 58:
0.1%

Covered Lines:
176

Relevant Lines:
407

💛  - Coveralls


Support for Azure Files (v10 Sync, Files<->Files and Local<->Files)

Which version of the AzCopy was used?
Note: The version is visible when running AzCopy without any argument
AzCopy 10.0.8-Preview
Which platform are you using? (ex: Windows, Mac, Linux)
Linux Agent on VSTS/Azure DevOps
What command did you run?
Note: Please remove the SAS to avoid exposing your credentials. If you cannot remember the exact command, please retrieve it from the beginning of the log file.
./azcopy sync         "$(DevUrl)/Media$(DevSAS)"         "$(StagingUrl)/Media$(StagingSAS)"         --log-level=INFO --delete-destination=true --recursive=true
What problem was encountered?
We have a need to sync Azure Files repositories, which are not accessible via NFS/SMB between environments.  The older copy (v8) allows us to copy from source to destination, but only additive.  We'd like to leverage the new sync capability so they're properly in sync.
For reference, our v8 command is:
azcopy  --source "$(DevUrl)/Media"  --source-sas "$(DevSAS)"  --destination "$(StagingUrl)/Media"  --dest-sas "$(StagingSAS)"  --recursive --quiet --verbose --exclude-older
Our v10 command is:
./azcopy sync         "$(DevUrl)/Media$(DevSAS)"         "$(StagingUrl)/Media$(StagingSAS)"         --log-level=INFO --delete-destination=true --recursive=true
We get the error:
error parsing the input given by the user. Failed with error Unable to infer the source / destination
Trying out a local source/destination suggests filelocal or localfile are not supported.  I'm also inferring filefile nor blobblob are supported either.  Can these be added to v10?
How can we reproduce the problem in the simplest way?

Create two storage accounts
Create a File end point in each, put some files in one of them.
Generate SAS tokens for each
Try to use AZCopy to sync from one to the other

Have you found a mitigation/solution?
Using v8 with copy.

Hi @stuarthomerbp, thanks for reaching out!
Sync only supports local <-> blob right now, but local <-> file, blob <-> blob, and file <-> file are definitely on our roadmap. Thanks for your feedback!

Any dates or ETA on that roadmap?

Hi @GFoley83, thanks for reaching out!
We don't have a specific date yet, but this item is very high on our list.

+1 on this for me...
Time frame would be good too!

+1 more.    Any ETA  ??

No ETA to publicly announce just yet, but keep an eye on the next release or two.  Next one is due out in a few weeks.

Hi,
I'm not able to list the files of an Azure file storage. (very new azcopy user sorry)
Is it also not yet supported? Should I create a separate feature request?
+1 btw.

Hi @jmon12, sorry for the inconvenience, we don't support File for listing operations just yet. We'll be adding more support for the File service soon.

Hi @zezha-msft. Thank you for your quick answer. Should I create a feature request?

+1

@jmon12 yes please! That'd be really helpful for our tracking purposes.

This feature would be great! +1

Sync from Azure Files to Azure Files is now supported, in version 10.3 which has just been released.

Not sure why this has been closed on the basis that "Sync from Azure Files to Azure Files is now supported, in version 10.3", when local <-> file was also promised, and that's what I +1'd for...

@dwrightpulse Thanks for pointing that out. I've reopened this, and changed the title to make it clear that this issue covers both File <-> File (which is in 10.3) and Local <-> File (which is not).

cc @rishabpoh for visibility

@JohnRusk - Not to meaning to pile on, but I'm anxious to use the Local<->File functionality too.

@rishabpoh Can you please check to see if this is on the backlog, and review its priority?

Thanks for the feedback everyone! I have added this feature request (Local <-> File sync capability) to our backlog.


bug: visual defect on argument help popup when dark mode is enabled

Bug:

How to reproduce

enable dark mode
click on (?) button near to program argument inputs

I'm currently working on a fix, just investigating what would be the best color for code blocks on dark mode (I'm colorblind)

@matthieuauger for colours feel free to check evm.codes you might find some inspiration there


LOWER and UPPER do not mention casing rules (culture info)

The phrases "converting lowercase character data to uppercase" and "converting uppercase character data to lowercase" which currently serve to describe UPPER and LOWER respectively, are not well defined.
Different cultures have different casing rules, which is why the .NET equivalents accept a CultureInfo parameter, example: https://docs.microsoft.com/en-us/dotnet/api/system.string.toupper?view=net-6.0
So which casing rules are used in these methods? The invariant culture's I presume?
https://docs.microsoft.com/en-us/dotnet/api/system.globalization.cultureinfo.invariantculture?view=net-6.0

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

ID: 9c8db215-2b58-0578-1e14-7c0026397410
Version Independent ID: 08bdb2e9-0984-e5df-d7d8-913b4ad9a725
Content: UPPER in Azure Cosmos DB query language
Content Source: articles/cosmos-db/sql/sql-query-upper.md
Service: cosmos-db
Sub-service: cosmosdb-sql
GitHub Login: @ginamr
Microsoft Alias: girobins

@ohadschn Thank you for the feedback. We are actively investigating and will get back to you soon.

@ohadschn Thanks for your patience. UPPER and LOWER are string functions in Azure Cosmos DB wrt the documents mentioned. These functions takes the argument in string form and returns back the string, which is kind of invariant culture where converting the string from lower to upper or vice versa would not have any effect with the culture. Let us say if we are working with dates, it would matter to provide the culture object. Please let us know if this helps.

@AnuragSharma-MSFT thank you, that is helpful. Could you please update the docs with this information, ideally providing some more specific info on the casing rules (perhaps you could find the backend source code)?

@ohadschn Thanks for your response. This is being assigned to the content author to evaluate and update as appropriate.

@ohadschn, thanks for this feedback. Work is being done now to update the two relevant articles.

#reassign:seesharprun

The documentation has been updated. Thank you again for your feedback.
#please-close


Ingress Controller doesn't handle very well when master is down

I just had to update the box where my Kubernetes master is running.
While the box was rebooting, the Ingress Controller lost all the secrets (TLS), and the HTTP basic auth configuration. In the end, all the Ingress Resources were just listening on 80. No more TLS, no more HTTP Basic Auth (and probably all the other configurations depending on annotations).
When master is not available, it shouldn't really update its nginx.conf. Thoughts ?

yeah. It should just coast along like the kubelet does and resync everything when the master is back up.
This will probably result in a loss of endpoints for some time when the master comes back up though, because endpoints are marked unready after ~40s of the kubelet not being able to send health updates, and when the node "comes back online" at least one readiness check has to pass (depends on the interval params of the readiness probe) for it to show up as an endpoint.

@edouardKaiser thanks for the report. Fix in the next version.

When master is not available, it shouldn't really update its nginx.conf

Exactly. The issue here was related to a request during the sync without the proper error handling

That's great, thanks @aledbf


servicelb violates baseline PodSecurity policy

Environmental Info:
K3s Version:

k3s version v1.23.6+k3s1 (418c3fa8)
go version go1.17.5
Node(s) CPU architecture, OS, and Version:

Cluster Configuration:

Describe the bug:

Servicelb will violate the baseline PodSecurity policy.  You get an error like below
E0602 05:26:50.050690       6 daemon_controller.go:319] r-09590d3e/svclb-redis-publish-09590d3e-c10 failed with : pods "svclb-redis-publish-09590d3e-c10-h6z5m" is forbidden: violates PodSecurity "baseline:latest": non-default capabilities (container "lb-tcp-6379" must not include "NET_ADMIN" in securityContext.capabilities.add), hostPort (container "lb-tcp-6379" uses hostPort 6379)

Steps To Reproduce:

Installed K3s:

Set the label on the default namespace     pod-security.kubernetes.io/enforce: baseline
Create the below

apiVersion: v1
kind: Service
metadata:
  name: redis
spec:
  ports:
  - name: "6379"
    port: 6379
    protocol: TCP
    targetPort: 6379
  selector:
    app: "redis"
  type: LoadBalancer

Expected behavior:

The service should get an IP
Actual behavior:

Stuck pending with
status:
  loadBalancer: {}

And errors from k8s like
E0602 05:26:50.050690       6 daemon_controller.go:319] r-09590d3e/svclb-redis-publish-09590d3e-c10 failed with : pods "svclb-redis-publish-09590d3e-c10-h6z5m" is forbidden: violates PodSecurity "baseline:latest": non-default capabilities (container "lb-tcp-6379" must not include "NET_ADMIN" in securityContext.capabilities.add), hostPort (container "lb-tcp-6379" uses hostPort 6379)

This is obviously because the svclb containers use hostports which is not allowed.  I ran into a similar issue with a different component I was writing and I believe the proper workaround is that all svclb container should be created in a system namespace that will not have the profile assigned.

Agree with the solution. We should try to fix/document this before v1.25 is released because users will probably start using these policies. AFAIK, v1.25 is the first release without the deprecated psp mechanism and its replacement is the Pod Security Standards which allows to define policies per namespace

I'll gladly fix this right now.  We can argue about namespace name but one design point is do we just move all lb pods to that namespace or only do it if we detect pod-security annotation.  I prefer the former (less code, variability) but the impact is that if we do that on upgrade of k3s the user will have downtime on all servicelbs because the klipper pods will move.

yeah, maybe klipper-lb-system? As long as it's something unique to servicelb/klipper-lb, there will be less argument about whether or not it's correct for the servicelb controller to be managing the security config for the NS.

Previously k3s created no new namespaces, now it will. Maybe we should default to kube-system and then make it a configuration to pick a different namespace?

Yeah, I guess I'm a little concerned about it preventing us from hardening the kube-system namespace where the rest of the components live, if we want to do so, but perhaps that's not an actual problem?

I updated my PR to now have a --servicelb-namespace argument which defaults to kube-system.  If you change that value, enable, disable, upgrade, downgrade the pods will all move where they are supposed to be.

Environment Details-
Node(s) CPU architecture, OS, and Version:
Linux 5.4.0-1009-aws x86_64 GNU/Linux-Ubuntu 20.04 LTS
Cluster Configuration:
NAME               STATUS   ROLES                       AGE     VERSION
ip-1               Ready    control-plane,etcd,master   7m13s   v1.23.6+k3s1
ip-2               Ready    control-plane,etcd,master   8m55s   v1.23.6+k3s1
ip-3               Ready    control-plane,etcd,master   7m35s   v1.23.6+k3s1

Config.yaml:
write-kubeconfig-mode: 644
debug: true
token: coolclouds

Reproduced with-
** k3s Version/Commit:**
VERSION=v1.23.6+k3s1
Steps To Reproduce:
   $  VERSION=v1.23.6+k3s1
   $  sudo INSTALL_K3S_VERSION=$VERSION INSTALL_K3S_EXEC="server --cluster-init --secrets-encryption sh -s" ./install-k3s.sh
   $  k label namespace default pod-security.kubernetes.io/enforce=baseline
   $  k apply -f tot
   $  kg svc -n default
   $  sudo journalctl -xeu k3s

Results:
kg svc -n default
NAME         TYPE           CLUSTER-IP     EXTERNAL-IP   PORT(S)          AGE
kubernetes   ClusterIP      <IP_ADDRESS>      <none>        443/TCP          7m46s
redis        LoadBalancer   <IP_ADDRESS>   <pending>     6379:31866/TCP   4m33s

Validated with COMMIT=2968a83bc046f43be62852b94d07c531de97c416
** k3s Version/Commit:**
v1.24.1+k3s-2968a83b
Steps To Validate:

Installed k3s:

$ COMMIT=2968a83bc046f43be62852b94d07c531de97c416
$ sudo INSTALL_K3S_COMMIT=$COMMIT INSTALL_K3S_EXEC="server --cluster-init --secrets-encryption sh -s" ./install-k3s.sh
$  k label namespace default pod-security.kubernetes.io/enforce=baseline
$  k apply -f tot
$  kg svc -n default

Results:
$ kg svc -n default
NAME         TYPE           CLUSTER-IP     EXTERNAL-IP                                PORT(S)          AGE
kubernetes   ClusterIP      <IP_ADDRESS>      <none>                                     443/TCP          15m
redis        LoadBalancer   <IP_ADDRESS>   <IP_ADDRESS>,<IP_ADDRESS>,<IP_ADDRESS>   6379:31866/TCP   11m

Additional context / logs:
$ cat tot
apiVersion: v1
kind: Service
metadata:
  name: redis
spec:
  ports:
  - name: "6379"
    port: 6379
    protocol: TCP
    targetPort: 6379
  selector:
    app: "redis"
  type: LoadBalancer

Errors from journalctl
.342508   16291 daemon_controller.go:1013] pods "svclb-redis-fn7lg" is forbidden: violates PodSecurity "baseline:la>
.342550   16291 daemon_controller.go:319] default/svclb-redis failed with : pods "svclb-redis-fn7lg" is forbidden: >
.342872   16291 event.go:294] "Event occurred" object="default/svclb-redis" kind="DaemonSet" apiVersion="apps/v1" t>


Need to implement hot reloading support in Dash for R

Dash for Python offers a lovely "hot-reloading" feature, as described in https://github.com/plotly/dash/issues/66, https://github.com/plotly/dash/pull/362, and https://github.com/plotly/dash-renderer/pull/73. Supporting this as in the Python implementation would require

creating a hash at app initialization, and regenerating it on file change
adding a route to serve the hash
front-end hot reloading
back-end hot reloading (reload the app by restarting the fiery session)
adding parameters for the dev tools UI: dev_tools_hot_reload, dev_tools_hot_reload_interval, dev_tools_hot_reload_watch_interval, dev_tools_silence_routes_logging

On the Python side, we use the Flask debug reloader to reset the hash. fiery doesn't have native support for something like this feature, but it does allow "Custom Events" which can be manipulated to serve a similar purpose.
State-preserving hot reloading would be really nice to have, as noted in https://github.com/plotly/dash/issues/460, but it has not been implemented in Dash for Python yet either.
@alexcjohnson

@Stalkcomrade

Following discussions with @alexcjohnson, the PR to address this issue may be split into two parts:

Part I: basic support (ensure backend functionality is working)
Part II: full parity with Python implementation

Right now the following elements are working in some capacity:

tracking file changes
storing and generating the hash for the frontend
routing for the reload hash, and returning modified file list
cleaning up the logs using a custom logger so that _reload-hash chatter is omitted from logs
enabling restarts of the fiery server, for full reloading of the app (e.g. if app.R is modified, or non-CSS files are added)

@StalkComrade This feature is ready for use and available in the dev branch if you'd like to test it out before the next version of the package is released! 🙂

Thanks @rpkyle, just to confirm is it
library(devtools)
install_github("plotly/DashR", branch = "dev")

to get the dev version right?

Thanks @rpkyle, just to confirm is it
library(devtools)
install_github("plotly/DashR", branch = "dev")

to get the dev version right?

Hi @firasm ! Apologies for not catching this question sooner, but yes, that's the right branch -- I'd suggest installing with the command
library(devtools)
install_github("plotly/dashR", rev="dev")

The next release is imminent, and hopefully you'll be able to obtain the package from CRAN in the very near future. For now, ☝ will do the trick 🙂

🌶 reloading is now available in master, closing issue.


can't import test helper

Is this the correct syntax? I'm trying to import the test helper in an addon (ember-calendar).
import { drag } from 'ember-calendar/tests/helpers/drag-drop';

This doesn't seem to work:
              text: 'Uncaught Error: \nError: Could not find module `ember-calendar/tests/helpers/drag-drop` imported from `ember-calendar/test-helpers/all` at http://localhost:7357/assets/tests.js, line 3087\n' }

Maybe the addon-test-helpers directory should be used instead ?
https://ember-cli.com/extending/#addon-project-structure


Merging release branch 0.0.1 to master

Thanks @heidijinxujia , Looks like these .idea files are in dev for a while. @iambmelt Can you let us know if the .idea files are needed ? I see a commit from you adding these https://github.com/AzureAD/microsoft-authentication-library-common-for-android/commit/9ccc0f18f867a51822ba61bee118cca0b712326c

@kreedula @heidijinxujia -- I used the GitHub reference .gitignore to create this. The reference .gitignore exclude some .idea/ files, but not all of them -- vcs.xml is not in their blacklist.
The vcs.xml files indicates to Android Studio that this project is under source control from git and prevents Android Studio from prompting users to add version control to the project.
I don't have strong feelings one way or another because the reality is this:

If we ignore this file and users open this project in Android Studio after checking out from git, their environment will generate this file which will subsequently also be ignored
If we do not ignore this file, users open this project in another IDE will be unaffected by its presence, as it's only used by Android Studio

All this to say, if we remove it users' environments will generate their own identical file anyway -- I can remove this from dev and we can bring the change into this branch: that's no problem.

Thanks @iambmelt . Per our discussion and recommendation by IntelliJ on .idea files here , I think we are doing the right thing here by ignoring all the user specific .idea files and having project specific ones in the repo. @heidijinxujia , please let us know us what you think ?

I think we should remove

Like you said, they are all user specific. As a library, we should not include these local generated files into our lib.

@iambmelt  Thank you for add the changelog.

@kreedula Please don't merge this PR until we're signed off and ready for prod release 👍
/cc @addev-ashish @shoatman @heidijinxujia @piqiums

Closing the PR. Will submit a new PR from release/0.0.2 to master during prod release


Fix RequireJS build

This PR fixes the RequireJS build and adds a couple of linting rules to the build to get everything lined up more nicely.
Close #220

Coverage remained the same at 89.683% when pulling 086ee0bd2dac69d6941aa133dd4b291af611a459 on scott-w:master into bc7ec82f28d081c17c324b1ea116c63992d3aae6 on jeromegn:master.


Fix typo in github template.

In this release:

Fix typo in github template. 7da0187b5cda601babd26df6eb2ba23de77a64f4

Contributors:
@pratiknikam
Date:
6/18/2019, 9:41:48 AM

Thanks for the PR @pratiknikam. Our team is reviewing your PR and will reply back soon. We're still sorting out CLAs and will reply back with an update.

Thank you @pratiknikam! Your change has been applied and should land soon