text:
Labeling & moderation updates [DRAFT]

Blocked on https://github.com/bluesky-social/atproto/pull/1366

[x] Switch to new labeling SDK (https://github.com/bluesky-social/atproto/pull/1366)
[x] Improved moderation UIs including explainer modals
[x] Implement rendering of blocked and deleted quote posts
[x] Fix incorrect handling of moderation action on quoted posts
[x] Place replies which have moderation states at the bottom of the thread
New moderation behaviors:

[x] Post and profile "alerts"
[x] Profile information (display name, bio) blurring
[x] Show moderation state on profile listings (eg muted, blocked, content warnings, etc)

Fixes to filtering

[x] Do not filter users from mutelists, search results, etc (this often creates confusion)
[x] Do filter users from discovery (suggested follows)
[x] Replies and quotes to muted and blocked content should now be filtered

Future tasks:

Update moderation config to use labeling SDK

How are you planning on labeling accounts as "pornography"? Is that something that people can mark on their own accounts or is it applied automatically with an algorithm?

How are you planning on handling labeling accounts as "pornography"? Will that be self-determined by those people, or is it applied automatically based on an algorithm?

I don't understand why flagging a whole account as porn makes sense vs just the content? And I assume this means those whole accounts will poof out of the default iOS app by default?
And how would an account get unflagged?

Why label an entire account as pornography? Most sex worker accounts post things that are completely unrelated to their jobs and many non-pornographic accounts have explicit posts from time to time.

Please make it so that individual post can be labeled. Our SWs have more to offer than nudity. I also want to have their humor, their thoughts, and their interactions.

I will also urge you not to label whole accounts as pornography, as I have many times before. This in addition to replies at bottom is becoming a level of shadowbanning and will likely lead to more targeting and other harms. A huge benefit of the platform is that posts are weighed individually, not as an aggregate for the account. With account level shadowbans there are few reasons for many to use this platform over others. I would also urge you to speak with a variety of industry professionals about these things such as Jessica Stoya who has offered before.

the ability to self-flag nsfw posts would solve the same problem without having to label entire accounts

In the history of account labeling, marking whole accounts as "pornography" has been greatly weaponized against sex workers and trans folks. I highly recommend removing that tag.

I feel like automatically labeling entire accounts as "pornography" isn't a good thing, it seems like it boils down certain accounts to that being all they do. Self-labeling NSFW posts could be better, I think

I think labeling entire accounts misses the nuance of the content users might be sharing. Blanket solutions like this don't work.

Please do not read into the usage of the "Pornography" label in these screenshots -- it's used as an example of some specific behaviors and is not meant to communicate our plans to use the label in that context.
I do understand the concerns about the potential for moderation tools to suppress valid activity on the network. I shouldn't have used that label in the PR screenshots, and I apologize for creating concerns in doing so. What I was intending to do was demonstrate a particular set of generic behaviors; I was not attempting to communicate anything about our policies.

A bit more context:
The labeling system is a part of the overall moderation system that's still being finished. Aspects are still somewhat incomplete such as processes for appeals and tools for self-labeling. This update is specifically to improve on the implementation of labels, blocks, and mutes. It does not represent the final labeling system or the full moderation system, but is rather a piece of the overall system. You can read about these particular systems in the following (WIP) documents:

Labels Reference. This is not final and has some entries I'm pretty unsure of. IMPORTANTLY the set of labels which the systems supports is wider than the ones we do apply, which I'll expand upon below.
Post Moderation Behaviors. This shows the effects of different moderation actions on posts in different contexts.
Profile Moderation Behaviors. This shows the effects of different moderation actions on profiles in different contexts.

Now let me clarify the question about the Pornography label. If you look in the Moderation Behaviors documents above, you'll see that there are different effects depending on where a label is applied to. There are 3 main label targets being developed here (the account itself, the profile record, and a post record) and this has a diverse set of effects depending on the context. For instance:

Placing a label that "blurs" content (for instance intolerant) on a profile will cause the avatar and the bio information to be hidden
Placing a label that "blurs" media (for instance pornography) on a profile will only cause the avatar to be hidden
Placing a label that "alerts" (for instance scam) on a profile will only cause a warning to show

There is a wide combination of behaviors here, and all of them are important capabilities for the system to have. Again, what I was trying to do was demonstrate the second behavior.

I have more to say but I'm going to do so in a followup so as to not leave people waiting.

@pfrazee What protections will there be for users to not be targeted with this sort of labelling structure? It's my understanding that the nature of AT protocol allows for a high degree of customization, building tools on top of existing infrastructure. How can you ensure this doesn't happen?

I would second that it's not the actual specific labels, but the feature itself here which is inherently abusable.
It seems like all of the proposed use cases would better handled either (a) via account deletion for TOS violation or (b) by users simply seeing the account and bio and then deciding themselves whether they want to follow/interact.
Most of the stuff like filtering porn could, as far as I can tell, be solved much more cleanly by just allowing users to self-tag posts.

@watsonkm core issue is where does the platform draw the line regarding proactively labeling content vs putting the onus on users to do so; I briefly go into detail here: https://bsky.app/profile/purposeunknown.xyz/post/3k3m42bqyja2i

@PurposeUnknown I definitely think you make a great point, but also think that this feature doesn't serve the problem you raise.
Mute lists and action from a moderation team together work in complement to help manage legal compliance and remove truly awful content while allowing users to tune their experience toward their preferences.
Labels on accounts appears (to me) superfluous in the sense that either a mute list or TOS option could do the same thing (depending on if it's a "this is wildly illegal" or "people may prefer not to see this") without the significant potential for negatively affecting sex workers and trans folks.

@pfrazee Here is an account that was hidden due to nudity in the PFP (understandable). The user had no clue. Had to tell them myself cause (in a funny turn) all the text posts were hitting the Lewds feed and it's still like he doesn't exist if you don't opt into NSFW even after changing stuff.
From your response, is this refinement something that would alleviate this kind of situation? If so, can't you see how these flags on the grounds of "pornography" is incredibly worrying if we already have an account that's now stuck in a flagged state?
This is the account: https://bsky.app/profile/0b1nr4y.bsky.social

To be clear: it's an active dialogue to get these systems right, and then an active dialogue to create the policies for using these systems. It's going to take some iteration and active feedback. If you want to laugh, you should check out the insane matrix of effects in the post moderation doc. This thing is pretty complex, and I'm not going to claim I got it all right from the get go.
I want to address some specific questions:

Are the labels in the atproto repo the final set? No they are not. They are drawn from the original proposal document shared a while back, but the labels will be an evolving system. I have some pretty specific concerns about the ones present in there; see for instance this commit where I dropped the CSAM label in favor of using other systems due to concerns about highlighting the illegal content. I have a similar concern about the nonconsenual-nudity label. The label set and behaviors are a work in progress.
Should labels ever be placed on entire accounts instead of individual records? Generally we should avoid it. A case where we would do that is systemic behavior like spam. A case where that would be going too far is porn. At the moment the label definitions don't specify which targets are valid for a label -- the thinking was that moderation teams would make the choice at their discretion -- but I can see a case being made for codifying the allowed targets in the label definitions.
Which of the labels does Bluesky plan to use, and when? I'm talking with the T&S team to get their current policy table for this. Will follow up.
Some of the labels seem pretty subjective, what's that about? If you look at the list of labels in the other PR you'll notice some that are pretty subjective, such as the Curation group. These are oriented toward some speculative design-thinking about community driven labeling, where you have a higher trust relationship with the people doing the labeling. I still haven't fully wrapped my head around how that will work, so I'm pretty ambivalent about having included them in the PR. It might be wise to cut those out until we're confident they can be applied in a trustworthy fashion, but I was trying to think ahead.
How does a label get appealed? Right now, you'll be contacted by our moderation team by email if an action is taken and you can appeal by emailing them. I'm actively working on the protocols for this in the federated context.
Is self-labeling coming? Yes, it's driving me crazy that it's taken so long to get done. I much prefer self-labeling.
What protections will there be for users to not be targeted with this sort of labelling structure? from arielsilvestri. This is another protocol design choice I'm actively working on because I'm also actively concerned about how labeling and user-lists could be abused in a system with no mechanisms for accountability. For the past 2 weeks, I have been heads-down on this code during the day, and working on design docs for accountability and anti-abuse at night.

Again, I apologize for how these PRs came off. I'm honestly not used to this much focused external attention on PRs. These came together after 2 weeks of pretty extensive heads-down work, and I was racing to the finish line last night at around 1am.

@pfrazee Here is an account that was hidden due to nudity in the PFP (understandable). The user had no clue. Had to tell them myself cause (in a funny turn) all the text posts were hitting the Lewds feed and it's still like he doesn't exist if you don't opt into NSFW even after changing stuff.

From your response, is this refinement something that would alleviate this kind of situation? If so, can't you see how these flags on the grounds of "pornography" is incredibly worrying if we already have an account that's now stuck in a flagged state?

This is the account: https://bsky.app/profile/0b1nr4y.bsky.social

Yes! That is a case which we are specifically attempting to fix with this update. Because the label targets are now much more refined, it will be possible to apply the nudity label to the profile record. The nudity label uses the blur-media behavior, which on profiles means it will only cause the PFP to get blurred.

Paul thanks for that clarification, but do you have time to change the example images used to not mention pornography? x

@pfrazee Here is an account that was hidden due to nudity in the PFP (understandable). The user had no clue. Had to tell them myself cause (in a funny turn) all the text posts were hitting the Lewds feed and it's still like he doesn't exist if you don't opt into NSFW even after changing stuff.

From your response, is this refinement something that would alleviate this kind of situation? If so, can't you see how these flags on the grounds of "pornography" is incredibly worrying if we already have an account that's now stuck in a flagged state?

This is the account: https://bsky.app/profile/0b1nr4y.bsky.social

Yes! That is a case which we are specifically attempting to fix with this update. Because the label targets are now much more refined, it will be possible to apply the nudity label to the profile record. The nudity label uses the blur-media behavior, which on profiles means it will only cause the PFP to get blurred.

it needs to be clear to new users that not using a SFW profile pic results in actions like this. additionally some sort of yes/no this is okay or not scan on the pic before publishing

The T&S team gave me this list as the current labeling policy. I will describe their effects according to the PRs as they are right now.

nudity

Definition: Nudity which is not sexual, or that is primarily artistic in nature.
Applied to:

posts - blurs the images
profiles - blurs the PFP

porn

Definition: Images of full-frontal nudity (genitalia) in any sexualized context, or explicit sexual activity (meaning contact with genitalia or breasts) even if partially covered.
Applied to:

posts - blurs the images
profiles - blurs the PFP

sexual

Definition: Content that does not meet the level of "pornography", but is still sexual. Some common examples have been selfies and hornyposting with underwear on.
Applied to:

posts - blurs the images
profiles - blurs the PFP

gore

Definition: Intended for shocking images, typically involving blood or visible wounds
Applied to:

posts - blurs the images
profiles - blurs the avatar

nsfl

Definition: "Not Suitable For Life." This includes graphic images like goatse.
Applied to:

posts - blurs the images
profiles - blurs the avatar

torture

Definition: Depictions of torture of a human or animal
Applied to:

posts - blurs the post
profiles - blurs the avatar, display name, and bio

self-harm

Definition: A visual depiction (photo or figurative) of cutting, suicide, or similar. Used for images only.
Applied to:

posts - blurs the images
profiles - blurs the avatar

impersonation

Definition: Accounts which falsely assert some identity
Applied to:

account - places an alert on the profile, the avatar, and their posts

spam

Definition: Repeat, low-quality messages which are clearly not designed to add to a conversation or space
Applied to:

account - places an alert on the profile, blurs the avatar, blurs their posts
posts - blurs the post

intolerant-*

Definition: A set of labels applied to hateful or intolerant content; the individual labels include race, gender, sexual orientation, religion, and a catchall.
Applied to:

posts - blurs the post
profiles - blurs the avatar, display name, and bio

icon-intolerant

Definition: Visual imagery associated with a hate group, such as the KKK or Nazi, in any context (supportive, critical, documentary, etc)
Applied to:

posts - blurs the images
profiles - blurs the avatar

!warn

Definition: A general "content warning" used as an emergency fallback to handling situations that aren't covered by anything else.
Applied to:

posts - blurs the post
profiles - blurs the avatar, display name, and bio
account - blurs the avatar, display name, bio, and posts

Paul thanks for that clarification, but do you have time to change the example images used to not mention pornography? x

I don't have time atm to replace them so I just removed them for now.

nsfl label? Didn't you mean NSFW?

nsfl label? Didn't you mean NSFW?

He specifically cited Goatse as an example of NSFL. And while you're right that it's not safe to work, very few people are going to sticking their hands in their pants as a result of an image like that.

@antoniocali nsfl looks to be related to gore but without blood. guessing something like an X-ray of a severely mangled hand would fit there. grotesque is clearer to me imo.

notes:

self flagging nsfw content will not solve this issue since the proposals say that the most extreme label will always be adopted

I do not understand why a nude pfp would cause all media posts to be labeled instead of just the pfp itself being blurred. A NSFW profile photo does not effect everything else an account does, unlike a pfp that implies impersonation affecting all actions by an account

I do not understand why a nude pfp would cause all media posts to be labeled instead of just the pfp itself being blurred. A NSFW profile photo does not effect everything else an account does, unlike a pfp that implies impersonation affecting all actions by an account

I think you may be responding to something which is currently happening to a user. That is not the desired or intended behavior, and part of this PR is to address that.
The correct behavior, as this PR is intended to establish, is to label the profile record for nudity. Since nudity's effect is to blur media, the only intended result is that the PR will blur the PFP. (The logic of this being that the PFP is an image record attached to the profile record.)

I do not understand why a nude pfp would cause all media posts to be labeled instead of just the pfp itself being blurred. A NSFW profile photo does not effect everything else an account does, unlike a pfp that implies impersonation affecting all actions by an account

I think you may be responding to something which is currently happening to a user. That is not the desired or intended behavior, and part of this PR is to address that.
The correct behavior, as this PR is intended to establish, is to label the profile record for nudity. Since nudity's effect is to blur media, the only intended result is to blur the PFP. (The logic of this being that the PFP is an image record attached to the profile record.)

Ty Paul, I'll pass this forward

I do not understand why a nude pfp would cause all media posts to be labeled instead of just the pfp itself being blurred. A NSFW profile photo does not effect everything else an account does, unlike a pfp that implies impersonation affecting all actions by an account

I think you may be responding to something which is currently happening to a user. That is not the desired or intended behavior, and part of this PR is to address that.
The correct behavior, as this PR is intended to establish, is to label the profile record for nudity. Since nudity's effect is to blur media, the only intended result is to blur the PFP. (The logic of this being that the PFP is an image record attached to the profile record.)

Thanks. I had assumed as much from your later comments and also tried to clarify for people freaking out on BSky tonight. That this is, on the whole, a current problem that this actually fixes somewhat. <3

authors: Lyse369 PurposeUnknown WizardShotTheFood annab6382 antoniocali arielsilvestri breen-laerdal csmithchicago ds84182 heikadog jvbreen1 makeready pfrazee schnauzerface schwegler sweetbeex watsonkm


text:
Add context for callback to be removed from sim signal

When writing tests I want to simulate some basic signal behaviour e.g. writing to one signal will put to another. However, I would like to make sure this behaviour is properly cleaned up between tests. I can simulate with set_sim_callback and set_sim_value but there is no way to remove this callback.
Acceptance Criteria

There is a context that removes callbacks from simulated signals on cleanup

I like this being a context, then making it fire on put rather than on every update, as that is what the tests want

Taken myself off this as @coretl said they will find someone else to pick it up. It's not urgent from our perspective

I think this will be fixed if we have a generic Mock backend in #94

Fixed by #94

source: gharchive/issue

authors: DominicOram coretl

repo: bluesky/ophyd-async

license_type: permissive

license_source: github-api


text:
Backport a fix for pyepics context kwarg warning

This warning
/srv/conda/envs/notebook/lib/python3.7/site-packages/epics/pv.py:110: UserWarning: The `context` kwarg for epics.get_pv() is deprecated. New PVs will _not_ be created in the requested context.

mentioned also by @prjemian in #765 should be back-ported to 1.3.x since we still have some work to do before releasing 1.4.0.

The warning seems to be coming from this line
https://github.com/bluesky/ophyd/blob/d2ed9f3c27299eada78c7d1a7f0ff50c6c68157c/ophyd/_pyepics_shim.py#L23

authors: danielballan jklynch

repo: bluesky/ophyd


text:
Facebook Like Docs: url should be href.

In the example tag, the url param is incorrect.

Fixed in 1e3411

repo: bluestatedigital/SocialEEsta

license_source: bigquery


text:
Investigate Reusing FieldError && StructErrors structs

look into reusing these structs, using channels, to reduce memory allocations even further

only StructErrors can be reused with the updated code structure

Old Benchmarks
$ go test -cpu=4 -bench=. -benchmem=true
PASS
BenchmarkValidateField-4	         5000000	       333 ns/op	      16 B/op	       1 allocs/op
BenchmarkValidateStructSimple-4	      500000	      2597 ns/op	     752 B/op	      13 allocs/op
BenchmarkTemplateParallelSimple-4	 1000000	      1138 ns/op	     753 B/op	      13 allocs/op
BenchmarkValidateStructLarge-4	      100000	     14663 ns/op	    4806 B/op	      78 allocs/op
BenchmarkTemplateParallelLarge-4	  200000	      7112 ns/op	    4810 B/op	      78 allocs/op

New Benchmarks
$ go test -cpu=4 -bench=. -benchmem=true
PASS
BenchmarkValidateField-4	         5000000	       318 ns/op	      16 B/op	       1 allocs/op
BenchmarkValidateStructSimple-4	      500000	      2471 ns/op	     624 B/op	      10 allocs/op
BenchmarkTemplateParallelSimple-4	 2000000	       975 ns/op	     624 B/op	      10 allocs/op
BenchmarkValidateStructLarge-4	      100000	     13979 ns/op	    4293 B/op	      66 allocs/op
BenchmarkTemplateParallelLarge-4	  200000	      5947 ns/op	    4298 B/op	      66 allocs/op

repo: bluesuncorp/validator

license: mit


text:
#209 - replace webpack with vite

It should close #209

Is this going to work inside container?

It works in container. Just remember to add variables to .env file and restart containers.

source: gharchive/pull-request

authors: Baakoma EwelinaLasowy

repo: blumilksoftware/toby

license: MIT


text:
SMS to volunteer no longer includes incoming call number

Describe the bug
A message is passed to volunteers when selected in the "Call handling" config however it no longer includes the caller's number so they are unable to be called back if the volunteer misses a call.
What version are you running?
Beta 3 v 5.5
Did this happen on prior versions to the one you are running?
No
To Reproduce
Steps to reproduce the behavior:

Call and ask to speak to someone
Route to volunteers
Volunteer call comes through and so does SMS however the SMS no longer includes the callers number.

Expected behavior
We would like to include the caller's number as this is a valuable feature that allows us to call back if a call is missed.
Additional context
Not sure if this is slated for a future release or not but I did previously put in a feature request to be able to send voicemail to the rostered on volunteer/s.

i just read the release notes nad now understand the "responder" option which sends a voicemail to the volunteer as well.  Testing this now.

Unable to get voicemail to send to Volunteers...

Please do not conflate issues.  #211 is still open, so please add those comments there about that specific issue.

patched in beta6.1

tested and working - thank you!

Cool, thanks!
On Thu, Mar 14, 2019 at 3:12 PM brustar64 notifications@github.com wrote:

tested and working - thank you!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/bmlt-enabled/yap/issues/247#issuecomment-473085599,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABw9u31-WxPkFgH4Dvp7PTzex8s0GIwxks5vWslKgaJpZM4bsqYv
.

repo: bmlt-enabled/yap


text:
How to make links work?

thx

Hey, sorry for the delayed response.
Without more context I can't help much, can you provide a little more context?
And have you tried out playing with the example project? I have a link to a raw markdown file and it contains links, if the links are broken I'll give it a look.

Hey, sorry for the delayed response.
Without more context I can't help much, can you provide a little more context?
And have you tried out playing with the example project? I have a link to a raw markdown file and it contains links, if the links are broken I'll give it a look.

If you download your project and try to build it on the simulator, it will generate an error during the build, but I installed yours in the project, and when I clicked on the link, it does not open in safari

Hey, I've just merged #45 because there was a problem of the bundle identifier of the example is the same as the library, now the example should run.
The links will open automatically if the link is a valid URL it will open the browser. For custom links, you need to build your handling of the links.

repo: bmoliveira/MarkdownKit


text:
Add recipes for core packages from ROS-Industrial

The PR adds packages from the indigo branch of https://github.com/ros-industrial/industrial_core.

Okay, I did a quick review and it looks good. I will just do a quick test build and then merge.

I tested core-image-ros-world on a clean build on this build configuration:
Build Configuration:
BB_VERSION        = "1.33.4"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "ubuntu-14.04"
TARGET_SYS        = "i586-oe-linux"
MACHINE           = "qemux86"
DISTRO            = "nodistro"
DISTRO_VERSION    = "nodistro.0"
TUNE_FEATURES     = "m32 i586"
TARGET_FPU        = ""
meta              = "boost-1.64-fix:9b8854f8d6d6a73d7194f850214e3572da964a24"
meta-oe
meta-multimedia
meta-python       = "master:fc03b3d9382dd5b6a8fff5f84e4c86a1acc9a73a"
meta-ros          = "rojkov-ros-industrial-v1:2097ff3d48537ae5cb90001bb3e727556686d41d"

The commit boost-1.64-fix:9b8854f8d6d6a73d7194f850214e3572da964a24 is the boost: backport a regression fix for forgotten header applied on top of the main-line commit 138f3e3f81d866e8272b01dd88c164b367adc4cd.

authors: bulwahn rojkov

repo: bmwcarit/meta-ros


text:
Invalid syntax for python <3.6

When running pipreqs using python 3.5, I get the following error:
ERROR: Failed on file: X:\X.py
Traceback (most recent call last):
  File "c:\users\tom\appdata\local\programs\python\python35\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\users\tom\appdata\local\programs\python\python35\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\Tom\AppData\Local\Programs\Python\Python35\Scripts\pipreqs.exe\__main__.py", line 9, in <module>
  File "c:\users\tom\appdata\local\programs\python\python35\lib\site-packages\pipreqs\pipreqs.py", line 396, in main
    init(args)
  File "c:\users\tom\appdata\local\programs\python\python35\lib\site-packages\pipreqs\pipreqs.py", line 341, in init
    extra_ignore_dirs=extra_ignore_dirs)
  File "c:\users\tom\appdata\local\programs\python\python35\lib\site-packages\pipreqs\pipreqs.py", line 91, in get_all_imports
    raise exc
  File "c:\users\tom\appdata\local\programs\python\python35\lib\site-packages\pipreqs\pipreqs.py", line 77, in get_all_imports
    tree = ast.parse(contents)
  File "c:\users\tom\appdata\local\programs\python\python35\lib\ast.py", line 35, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 11
    print(f'Loading file {args.input}')
                                     ^
SyntaxError: invalid syntax

This string uses f-strings, which are only available after python 3.6. In your setup.py
https://github.com/bndr/pipreqs/blob/0b8c38ce415f7416ae115037a41c4b17655357b6/setup.py#L47-L50
it lists 2.7, 3.4 and 3.5, but those can't work due to the use of f-strings.

I don't see any f-strings in the pipreqs source on master or the latest release. Perhaps this f-string is in the source that pipreqs is trying to read?

@jonafato Correct. This appears to be the source code I am scanning. Apparently pipreqs must be able to parse the AST of the source file using the python version it is using. As such, it can't parse 3.6+ with 3.5.
At this point I guess the best would be simply to notify users that they can't parse a file with more recent syntax using an older version of python.

Correct, pipreqs installed to a Python 3.5 environment will be unable to parse source code containing 3.6-only features. I'd recommend installing pipreqs into a virtual environment alongside your testing, linting, and other development utilities with your intended Python version.
I'm going to close this issue, as it does not appear to be a bug in pipreqs. If you have a viable approach to gracefully handle errors like these, I'd accept a pull request.

authors: jonafato tomzx

repo: bndr/pipreqs


text:
No model named segnet2?

Options for args.model just contains a "segnet" in main.py, but the README.md#Usage mentions command all with "segnet2"?

main.py should be trusted. README is probably outdated.

Am 01.01.2018 um 02:28 schrieb Duo Lee notifications@github.com:
Options for args.model just contains a "segnet" in main.py, but the README.md#Usage mentions command all with "segnet2"?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/bodokaiser/piwise/issues/14, or mute the thread https://github.com/notifications/unsubscribe-auth/ABsq8lvg0BKZEGgbnmMTk9288sf7Uk9Fks5tGDS6gaJpZM4RP-Ax.

Oh, now it's clear for me that main.py should've been trusted than README.md. Thanks.

authors: bodokaiser d-li14 sungwonida

repo: bodokaiser/piwise


text:
Conhecer frameworks de desenvolvimento de jogos Web

Uma sugestão para o desenvolvimento do jogos Web é o uso de um framework para facilitar a interface e manipulação dos objetos. Dentre os vários disponíveis, o Phaser se apresenta como uma boa opção.
Há o repositório boidacarapreta/phaser3 com o tutorial básico do framework convertido em commits e adaptado para uso de tela de toque. Além disso, estão também publicados os jogos criados pelas turmas do Integrado.

Avaliado o Phaser como framework indicado para este projeto.


text:
刷新条件到达refreshing了，继续下拉有bug

下拉到了refreshing，还没刷新完成：
1、继续下拉会改变刷新状态
2、连续快速下拉会一直把内容往下滑出屏幕外，空白区域会一直变大（是否应该有个限制值？）
3、在第2点上，停止下拉，等view自动回滚，内容会滑出顶部屏幕一部分，无法恢复最开始位置。

1和2修复比较简单

问题3我是在真机上测的，问题1、2尝试修改都失败了。分享一下代码？

这个手势处理代码是在js层的，只要你的js线程很卡的话，剧烈操作就可能出现问题3。这个必须把代码写在原生层主线程才能解决这个问题。

问题1 你可以在自定义的Header里面过滤正在刷新的状态改变。
问题2 你可以试试将
  _getContentOffsetY() {
    let { dampingCoefficient, bounces } = this.props;
    if (!bounces) dampingCoefficient = 0;
    if (this._layoutChanged) {
      const bOffset = this._contentLayout.height - this._wrapperLayout.height;
      this._contentOffsetY = Animated.add(
        this._panOffsetY,
        this._animatedOffsetY
      ).interpolate({
        inputRange: [-bOffset - 1, -bOffset, 0, 1],
        outputRange: [
          -bOffset - dampingCoefficient,
          -bOffset,
          0,
          dampingCoefficient
        ]
      });
      setTimeout(() => this.props.getNativeOffset(this._contentOffsetY));
    }
  }

这个映射改一改(maxPullLength换成：你想设定的值/dampingCoefficient， 默认换成屏幕高度的话，就是最大只能滑动一半个屏幕)：
  _getContentOffsetY() {
    let { dampingCoefficient, bounces } = this.props;
    if (!bounces) dampingCoefficient = 0;
    if (this._layoutChanged) {
      const bOffset = this._contentLayout.height - this._wrapperLayout.height;
      this._contentOffsetY = Animated.add(
        this._panOffsetY,
        this._animatedOffsetY
      ).interpolate({
        inputRange: [-bOffset - 1, -bOffset, 0, maxPullLength, maxPullLength+1],
        outputRange: [
          -bOffset - dampingCoefficient,
          -bOffset,
          0,
          dampingCoefficient*maxPullLength,
          dampingCoefficient*maxPullLength
        ]
      });
      setTimeout(() => this.props.getNativeOffset(this._contentOffsetY));
    }
  }


text:
Remove invalid item from depends field of library.properties

The depends field of the library.properties metadata file specifies the dependencies that should be installed along with
the library by the Arduino Library Manager.
This field must contain only the names of libraries that are available for installation via Library Manager.
The presence of any items which are not in Library Manager causes installation of the library to fail:

Arduino IDE 1.x: "no protocol:" error
Arduino IDE 2.x: fails silently (arduino/arduino-ide#621)
Arduino CLI: "No valid dependencies solution found" error

My guess is that this was intended to be Bolder Flight Systems Unit Conversions. However, I was not able to verify this because I found the "Bolder Flight Systems UBLOX" library and its example sketch don't have any dependencies on other Arduino libraries. For this reason, I opted to remove the invalid item from the depends field entirely instead of correcting the name.

Originally reported at https://forum.arduino.cc/t/external-library-wont-install-using-library-manager/1127278

Not sure why the Units library is failing the dependency check

The name you used in the depends field of library.properties was Bolder Flight Systems Units
depends=Bolder Flight Systems Units, Bolder Flight Systems Eigen

but the actual name of that library is Bolder Flight Systems Unit Conversions (note the "Units" vs "Unit Conversions" difference):
https://github.com/bolderflight/units/blob/v4.2.1/library.properties#L1
name=Bolder Flight Systems Unit Conversions

The error would not occur if the depends field used the correct library name:
depends=Bolder Flight Systems Unit Conversions, Bolder Flight Systems Eigen

repo: bolderflight/ublox


text:
🛑 Grifos is down

In 599a019, Grifos (https://grifos.cl) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Grifos is back up in 4b54f1f.

repo: bomberosalas/status


text:
iterate over the event types used in transactions.

I have written an actor-based dispatching FW which I now want to bind with SML. In the FW api the ACTORS register to an event based on event type eg :
 listen<myEvent>(some callable with cont myEvnet&). Now I would like to write a class that uses SML state machine for event processing but I would like to hide from the user the actual 'listen<event(...)>' calls. So the user just simply can write the sml transition tables and the event s get dispatch to the state machine automatically.
My idea was to get all the events from SML which are used in the transition table and iterate through them and register a lambda with the process event call to the SML.
I have seen that there is a type gets defined in sml::sm  using events = ....  is there a way to iterate through in it in compile-time/run-time and get back the evet type during iteration ?.

Ok, I have figured out it myself. Buy just looking into the code.
sml provides a public type events which is an aux::type_list holds all the events used transactions, and there are helper objects like aux:apply_t to iterate over the list.
so by using the following code snippet, I get the desired information.
    template <typename EventT>
    static void printEventType()
    {
        std::cout << boost::sml::aux::get_type_name<EventT>() << std::endl;
    }

    template <typename...>
    struct caller;

    template <typename T, typename... Rest>
    struct caller<T, Rest...>
    {
        static void call()
        {
            printEventType<T>();
            caller<Rest...>::call();
        }
    };

    template <>
    struct caller<>
    {
        static void call()
        {
        }
    };

    using PrintEvnets = boost::sml::aux::apply_t<caller, typename SMLCLASS::events>;

    PrintEvnets::call();

repo: boost-experimental/sml


text:
How do I async_read http::file_body request corectly?

I'm new to Boost and trying to add a POST request to one of the client example. But I failed to read a http::quest<http::file_body> request on the server side.
Assertion failed: body_.file_.is_open(), file D:\Boost C++ Projects\AsioServre\include\boost _1_72_0\boost\beast\http\impl\file_body_win32.hpp, line 184
I read the Boost code in this file_body_win32.hpp file, it just simply tells me the file is open. How come? And the werid thing is if I change content_type: "text/plain" to content_type: "image/jpeg" (body opens an image), then the assertion will be passed, but with body limit exceeded error.
Client Side:
std::string path = "C:\\Users\\Jinx\\Desktop\\Damn\\test.txt";
body.open(path.c_str(), boost::beast::file_mode::scan, ec);
req_to.version(version);
req_to.method(http::verb::post);
req_to.target(target);
req_to.set(http::field::host, host);
req_to.set(http::field::user_agent, BOOST_BEAST_VERSION_STRING);
req_to.set(http::field::content_type, "text/plain");
req_to.content_length(body.size());
req_to.keep_alive(req_.keep_alive());
req_to.body() = std::move(body);
req_to.prepare_payload();

http::async_write(stream_, req_to, beast::bind_front_handler(&session::on_write, shared_from_this()));

On the server side, I have no idea what type of buffer I should use. I've tried a multi buffer, it didn't work either.
Server Side:
beast::tcp_stream stream_;
beast::flat_buffer buffer_;
std::shared_ptr<std::string const> doc_root_;
http::request<http::file_body> req_from;

http::async_read(stream_, buffer_, req_from, beast::bind_front_handler(&session::on_read, shared_from_this()));

According to the http::file_body document:

When serializing, the implementation will read the file and present those octets as the body content.

How can the file opened by the server?

Hi @HotBabyccino,
I'd love to help but I need more information.
What might be useful to me is if you can write a best-effort single-file server and client (they could even be in the same file if you know how to do that), make it available in github and then link it here.
I'll then fork it and see if I can get it working for you.
R

repo: boostorg/beast


text:
CLI-driven log levels

Would be nice to give users the ability to create CLI options like --verbose that would reset log levels. Currently BQCoreModule.contributeLogLevels() can not be called conditionally based on CLI values. We need to expand this API to make it possible.

actually there is a workaround, but it is verbose. For each Level we create a dedicated annotation  and provider.  Too much boilerplate. Need to improve.
@Override
public void configure(Binder binder) {
    BQCoreModule.contributeLogLevels(binder).addBinding("io.bootique").to(Key.get(Level.class, BootiqueLogLevel.class));
}

@BootiqueLogLevel
@Provides
@Singleton
Level provideBootiqueLogLevel(Cli cli) {
    return cli.hasOption(VERBOSE_OPT) ? Level.INFO : Level.WARNING;
}

@Target({ElementType.PARAMETER, ElementType.FIELD, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@BindingAnnotation
@interface BootiqueLogLevel {
}

See #111  - this may be a solution to setup verbose / quiet loggers. -v can be bound to "log.level = DEBUG"

Closing this one.  #111 provides all the needed wiring, but the definitions of what's verbose and what's quiet is up for the app to decide. So leaving it out of Bootique at least for now.

repo: bootique/bootique


text:
Connection refused error

Hi,
first of all, thank you for this project, it is exactly what I was looking for.
Second, if this isn't the place for this issue, please just say so, and I'll close it.
My problem essentially is: I have installed the boringproxy server on my server, and I created a tunnel for my CyberChef container.
I went to my admin interface, and created a tunnel.

Zoe2 is the client running on the same server as my boringproxy server.
However, when I tried to open the tunnel, I got this:

I use cloudflare, however I have set to DNS entries to DNS only, so they are not being proxyied through cloudflare.
My DNS entries are for *.mydomain.com, mydomain.com and www.mydomain.com.
Cloudflare's automatic SSL is turned off.
Cyberchef is running in Docker, with its port on port 9010.

Hey @pentagon98, thanks for giving boringproxy a try. Hopefully we can get this figured out for you.
A couple things first off:

The error messages obviously need to be improved. Basically the error you're seeing means the boringproxy server isn't able to connect to the SSH tunnel port.

Based on the UI, it looks like you're not using the latest version (v0.4.0). It will be easier to debug if you can use that version.

My best guess is that there's some issue with the server and client running on the same machine. I haven't tested this configuration very much, since typically if you can run your services on the same machine, you could just use a normal reverse proxy like Caddy or nginx. Just to confirm, do you have OpenSSH server version 7.7+ running and you're able to ssh into the machine?

As a side note, I've considered adding a feature to the server to let you specify the tunnel port yourself, rather than a random one being chosen. This would let you choose port 9010, and completely bypass the need for running the client at all. Essentially this lets boringproxy run as a normal reverse proxy (albeit a simple one).
Would this be useful for you long-term, or are you just running them on the same machine for testing and eventually planning to run the client on a separate machine (ie behind a NAT or something)?

Hell @anderspitman,
thank you for the fast reply!
I'm running OpenSSH_8.2p1 on Ubuntu Server.
I'm port forwarding ports 80 and 443, but I'm not forwarding 22.
I downloaded v0.4.0., here are the screenshots:

I also tried it on a different machine (separate server and client) and after a few minutes, it worked.
So the problem was probably in trying to run it on the same machine.
Currently I'm just testing things, as my home router (for some reason) always crashes without cloudflare proxy.
But if it didn't, I thing I would use boringproxy, as setting it up is much easier than Nginx or trafik.

Before I respond I wanted to point out that you're domain is visible in the screenshot (on the tab), even though you're trying to obscure it. You might want to delete or replace those screenshots...

Ok as suspected I think there may be a bug when running on the same machine. If I understand correctly the server is running on your home network, correct? Are you logged into it directly, or accessing it over SSH on your local network?
If port 22 isn't forwarded that will likely break it, because the client is going to use the admin-domain (ie cyberchef.*.com) for accessing the SSH server. I'm surprised it worked when you switched to different machines though, as there's isn't currently a way to tell the client to use an alternative address for accessing the SSH server, which means it needs to be able to access it with the public address.

It is running on my home network, yes, and I'm accessing it over SSH.
When I tried it with the second machine, I port forwarded port 22, so that's why it probably worked.
I should have added that to my comment, sorry.
Unfortunately, my domain is still visible in the edit history.
Would you mind terribly if I deleted my comments after this issue is closed?
As far as I see, my problem was that both the server and client are running on the same machine (which isn't how it's supposed to be set up anyways) and port 22 was closed.

Yeah no worries feel free to delete them.
Would you mind trying them on the same machine again, now that port 22 is forwarded? I think it should work.
Failing that, another thing you can do is look at the web UI to figure out what port got randomly assigned to the tunnel, then tell your docker container to use that port instead of 9010. I'm using this hack myself for one of my instances.

@anderspitman  thank you, with 22 forwarded, it works perfectly.
Thanks for being helpful and for writing this awesome piece of software!

Excellent; glad it worked!

repo: boringproxy/boringproxy


text:
BulkRead doesn't work with RowVersion column

If you try to update entities with column of RowVersion type you will get an exception 'The required column 'RowVersion' was not present in the result of a 'FromSql''

For me, when I am inserting database entities which have a RowVersion defined, even though the transaction has completed the RowVersion property is not updated in the RAM(but was generated and saved in DB). This updation of the rowversion from null to a value is what I would get while using normal efcore commits.

Try now with version 3.0.1

authors: abakumovoleg borisdj gouse-shaik


text:
BulkInsert method won't insert records

Hi,
I'm using BulkInsert method like this
public void Insert<T>(List<T> values) where T : class
        {
                this.BulkInsert(values, config =>
                {
                    config.SetOutputIdentity = true;
                    config.BulkCopyTimeout = 180;
                });
        }

I have new table and new entity type to insert. When I call Insert, app will not go after that line just like there's a caught exception within your package, which will not allow the exception itself to be caught from my code. App is not crashing or breaking, it just continues running.
Table is simple, no FKs or anything.
[Id] [bigint] IDENTITY(1,1) NOT NULL,
	[JobId] [int] NOT NULL,
	[BatchId] [int] NOT NULL,
	[SkuCode] [uniqueidentifier] NULL,
	[ResultHash] [binary](16) NULL,
	[Result] [nvarchar](4000) NULL,
	[BvName] [nvarchar](500) NULL,
	[BvCode] [nvarchar](50) NULL,
	[BgName] [nvarchar](500) NULL,
	[BgCode] [nvarchar](50) NULL,
	[BfName] [nvarchar](500) NULL,
	[BfCode] [nvarchar](50) NULL,
	[BmName] [nvarchar](500) NULL,
	[BmCode] [nvarchar](50) NULL,
	[CategoryCode] [nvarchar](50) NULL,
PRIMARY KEY CLUSTERED
(
	[Id] ASC
)

Is there a way to understand what is happening there?
Thanks

Hi Maxmyd,
I am assuming that this.BulkInsert resolves to DbContext.BulkInsert(values, bulkConfig). Do you call the Insert wrapped within Db Transaction as :
using (var transaction = context.Database.BeginTransaction()) {     //Insert<>() ...      transaction.Commit();   }

Hi,
I don't use explicit transactions as there's no need for the single bulk operation. I've found something else.

Looks like BulkInsert creates temporary tables in database. And in my case records will not copy from temp tables to target table. Also temp tables remain in database.
When I set config.SetOutputIdentity = false, records will insert and save. So is this a reason? Why? It's been working for a while and exactly now it is stopped.

Hi Maxmyd,
#1 is correct
#2 - the documentation mentions that:
"PreserveInsertOrder and SetOutputIdentity have purpose only when PK has Identity (usually int type with AutoIncrement), while if PK is Guid(sequential) created in Application there is no need for them.
Also Tables with Composite Keys have no Identity column so no functionality for them in that case either."

PreserveInsertOrder makes sure that entites are inserted to Db as they are ordered in entitiesList.

However for this to work Id column needs to be set for the proper order.
For example if table already has rows, let's say it has 1000 rows with Id-s (1:1000), and we now want to add 300 more.
Since Id-s are generated in Db we could not set them, they would all be 0 (int default) in list.
But if we want to keep the order as they are ordered in list then those Id-s should be set say 1 to 300 (for BulkInsert).
Here single Id value itself doesn't matter, db will change it to (1001:1300), what matters is their mutual relationship for sorting.
Insertion order is implemented with TOP in conjuction with ORDER BY. stackoverflow:merge-into-insertion-order.
This config should also be used when we have set SetOutputIdentity on Entity containing NotMapped Property. issues/76

When using PreserveInsertOrder with SetOutputIdentity Id value does matter.
If it's BulkInsertOrUpdate method for those that will be updated it has to match Id.
And if we need to sort those for insert(BulkInsert/OrUpdate) and not have conflict with existing Id-s, there are 2 ways:
One is set Id to really high values, order of magnitude 10^10, and another even better setting them to negative values.
So if we have list of 8000, say 3000 for update (they keep the real Id) and 5000 for insert then Id-s could be (-5000:-1).

SetOutputIdentity is useful when BulkInsert is done to multiple related tables, that have Identity column.
After Insert is done to first table, we need Id-s that were generated in Db because they are FK(ForeignKey) in second table.
It is implemented with OUTPUT as part of MERGE Query, so in this case even the Insert is not done directly to TargetTable but to TempTable and then Merged with TargetTable.
When used if PreserveInsertOrder is also set to true Id-s will be updated in entitiesList, and if PreserveInsertOrder is false then entitiesList will be cleared and reloaded.

Can you try setting the PreserverInsertOrder to true, when you're setting the SetOutputIdentity to true

Yes, your sample makes sense and setting PreserveInsertOrder to true worked for me.
Thank you very much!

You're welcome !


text:
DbContextBulkTransactionSaveChanges.SaveChangesAsync outputs object not an instance of reference error with Owned entities

It seems that when using DbContextBulkTransactionSaveChanges.SaveChangesAsync method the code groups changed entities by EntityType using the Change tracker:

The problem however is that this will also group OwnedEntities (cases where you have an Entity that owns another entity (ValueObject))) per type and causes an object is not an instance error later on when trying to Find the entity type using the context.Model

Code snipper to create an entity with an owned entity:

Entity type configuration:

Can you write entire test for this.

@borisdj ,
Here is the code I used for the EF Unit test project to test this issue:
Model:
    public record InfoOwnedEntity(string Mobile, string AlternateMobile);     public class Item     {         public int ItemId { get; set; }         public string Name { get; set; }         [MaxLength(50)]         public string Description { get; set; }         public int Quantity { get; set; }         public decimal? Price { get; set; }         public DateTime? TimeUpdated { get; set; }         public InfoOwnedEntity OwnedEntity { get; set; }     }
Entity configuration:
modelBuilder.Entity<Item>().OwnsOne(p => p.OwnedEntity, s => s.WithOwner());
Unit test:
`        [Fact]
public async Task EF_OwnedEntityTest_SaveChangesAsync()
{
ContextUtil.DbServer = DbServer.SQLServer;
using var context = new TestContext(ContextUtil.GetOptions());
        var entity = new Item
        {
            OwnedEntity = new("asd", "asdsd"),
            Name = "Name",
            Description = "info",
            Quantity = 100,
            Price = 5,
            TimeUpdated = DateTime.Now,
        };

        context.Items.Add(entity);
        await context.BulkSaveChangesAsync();

        // Validate Test
        int entitiesCount = await context.Items.CountAsync();
        Item firstEntity = await context.Items.SingleOrDefaultAsync(a => a.ItemId == 1);

        Assert.Equal(1, entitiesCount);
        Assert.Equal("asd", firstEntity.OwnedEntity.Mobile);
        Assert.Equal("asdsd", firstEntity.OwnedEntity.AlternateMobile);
    }`

   Error being produced:

Owned in separate table is not directly supported.
DUPE: https://github.com/borisdj/EFCore.BulkExtensions/issues/114
Try workaround explained there.

authors: ChristopherVR borisdj


text:
🛑 clans.wowsgame.cn is down

In 9897e94, clans.wowsgame.cn (https://clans.wowsgame.cn) was down:

HTTP code: 0
Response time: 0 ms

Resolved: clans.wowsgame.cn is back up in b4799cf after 6 minutes.

repo: boriskhodok/wowsuptime


text:
🛑 clans.wowsgame.cn is down

In 25bdf9b, clans.wowsgame.cn (https://clans.wowsgame.cn) was down:

HTTP code: 0
Response time: 0 ms

Resolved: clans.wowsgame.cn is back up in 866627f after 18 minutes.


text:
github-electron: Adding all available options to the BrowserWindowOptions interface

Added all currently available options to a new BrowserWindow in github's electron.
API here: http://electron.atom.io/docs/v0.29.0/api/browser-window/

github-electron/github-electron.d.ts
to author(@jedmao). could you review this PR?
:+1: or :-1:?
check list

[ ] pass the Travic-CI test?

:+1:

@jedmao thanks!
@arnarg thanks mate!

authors: arnarg jedmao vvakame

repo: borisyankov/DefinitelyTyped


text:
no safe head/tail functions

I couldn't see this reported elsewhere, but to my surprise I can't find the functions
headMay, tailMay :: Text -> Maybe Char in the basic interface.

I made safe versions here, but I can't seem to run the package in cabal repl or run cabal tests, so I haven't setup tests yet.
https://github.com/mchaver/text/commit/ead92a7890dc00688f235eb55de41ee1130c9990

uncons

authors: alexanderkjeldaas bos mchaver

repo: bos/text


text:
allways  hold in queued  when get metrics from bosh-expoter

Dear all,
deployment bosh-prometheus 23 version in pivotal 2.0, tasks allways  hold in queued  when get metrics from bosh-expoter.
bosh-exporter->director ->get state ，may be time waiting for director get state .SOS

I set scrape_interval:10m ,may be well.

bosh exporter  queue 17111 tasks，how can I fix. @frodenas

ssh into your bosh vm, become root and run a monit restart director. Most likely there are hung db connections and the workers cannot process the requests. After some minutes, all tasks should be processed.

Please reopen if problem still persists.


text:
login

You need valid hotstar login to use this app. You have to follow the instructions and proceed

paid one

@tvpa  Yes currently you need paid one. But @Vikassm73  is working on free to watch content as you seen in hotstar mobile app

authors: Vikassm73 botallen tvpa


text:
Loosen retry bucket functional test checks

This test fails on travis occasionally, this loosens the assertion to make the test a little more robust.

Codecov Report

Merging #2071 into develop will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop    #2071   +/-   ##
========================================
  Coverage    93.06%   93.06%
========================================
  Files           60       60
  Lines        11003    11003
========================================
  Hits         10240    10240
  Misses         763      763

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 7d00b43...5383097. Read the comment docs.

authors: codecov-commenter joguSD

repo: boto/botocore


text:
Update smoke tests with latest services

cc @kyleknap @JordonPhillips

:boat:

:ship:

authors: JordonPhillips jamesls kyleknap


text:
Fix source code of project

I've made a fix for this whole project by doing a simple little edit.

🔥

Now it runs infinitely faster

repo: bound-mod/bound


text:
Prepare for "mapbox-gl-style-spec" package changes

Hello!
I work on at Mapbox on Mapbox GL. We are preparing to make some changes to the mapbox-gl-style-spec package which may affect you:

the mapbox-gl-style-spec package will be deprecated and replaced by @mapbox/mapbox-gl-style-spec
mapbox-gl-style-spec package will begin using es6 features, requiring the use of transpilation (if you're using browserify, this'll happen automatically via bubleify)
the file structure of mapbox-gl-style-spec will change (which will affect the use of require(mapbox-gl-style-spec/lib/**/*.js))

You can read more about these changes at https://github.com/mapbox/mapbox-gl-js/pull/3946 and https://github.com/mapbox/mapbox-gl-js/issues/3656.
Let me know if you have any questions or need any help!

Thanks for the heads-up @lucaswoj! I'll make the required changes as soon as @mapbox/mapbox-gl-style-spec is published.

Done with 13fbd1fd61bc98efaaaeb81895d333f3a39bcbcf.

authors: ahocevar lucaswoj

repo: boundlessgeo/ol-mapbox-style


text:
Add a BCS Service

cc @thirystheory
I changed it a bit, I will also update the sdk-apps example soon
Is there a known issue with the last base map, I'm getting exceptions on that one.

Coverage increased (+0.06%) to 70.308% when pulling c6a4a0ddf65d1d6aff124693bf6d08773b5c0125 on bcs into 680325ad33a247d4532fc463c2b7f6107b75e1da on master.

Coverage remained the same at 70.245% when pulling c6a4a0ddf65d1d6aff124693bf6d08773b5c0125 on bcs into 680325ad33a247d4532fc463c2b7f6107b75e1da on master.

Yes there is a know issue with the digital globe basemap, recent imagery we
are working thru that on the API end of things.
I will check out when you all changed and ask any questions.
Thank you.
Liz
On Feb 23, 2017 5:57 AM, "Bart van den Eijnden" notifications@github.com
wrote:

cc @thirystheory https://github.com/thirystheory
I changed it a bit, I will also update the sdk-apps example soon
Is there a known issue with the last base map, I'm getting exceptions on
that one.
[image: selection_104]
https://cloud.githubusercontent.com/assets/319678/23266823/331c1eb2-f9e9-11e6-8cf2-5403ca910d42.png
You can view, comment on, or merge this pull request online at:
https://github.com/boundlessgeo/sdk/pull/397
Commit Summary

Add a BCS Service

File Changes

A js/services/BCSService.js
https://github.com/boundlessgeo/sdk/pull/397/files#diff-0 (46)

Patch Links:

https://github.com/boundlessgeo/sdk/pull/397.patch
https://github.com/boundlessgeo/sdk/pull/397.diff

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/boundlessgeo/sdk/pull/397, or mute the thread
https://github.com/notifications/unsubscribe-auth/AO5PgJjYuVJwQ3_LjgpI01GW3RFckXZeks5rfax-gaJpZM4MKJH8
.

authors: bartvde coveralls thirystheory

repo: boundlessgeo/sdk


text:
Feature/ada updates 2

Changes based on accessibility issues flagged in Lighthouse audit performed 5/23. I also tried to gitignore _site files, but seemingly was unsuccessful.
https://www.pivotaltracker.com/n/projects/2137050/stories/185233337

Woah, this Netlify deploy preview thing is pretty cool!

repo: bowtie-co/mckenzie-dental


text:
Malformed xml in Android strings.xml

There is good news and there is bad news. The good news is that the "one" and "other" problem has gone away with Jean's latest changes and the translations are being shared again.
The bad news is that now the xml that comes out for our Android app is malformed. It has extra opening tags for plurals and some odd name attributes. Here is a sample from our values-en-rGB/strings.xml:
    <string description="feed item title for file with new comments event from an unknown user" name="feed_item_title_file_commented_on_unknown">Someone commented on this file</string>
    <string description="feed item title for file with new comments event" name="feed_item_title_file_commented_on_one">%1$s commented on this file</string>
    <string description="feed item title for file with new comments event" name="feed_item_title_file_commented_on_two">%1$s and %2$s commented on this file</string>
    <string description="feed item title for file with new comments event when the second user is unknown" name="feed_item_title_file_commented_on_second_unknown">%1$s and one other person commented on this file</string>
    <plurals name="feed_item_title_file_commented_on_many">
        <item description="Feed item title when there is more than 2 users activity. The second parameter is the number of users that commented the file. E.g.: Mike and 5 others commented on this file. The string is used because we stop at 9, and show 9+ when more" quantity="one">%1$s and %2$s others commented on this file</item>
    <plurals name="feed_item_title_file_commented_on_many">
        <item description="Feed item title when there is more than 2 users activity. The second parameter is the number of users that commented the file. E.g.: Mike and 5 others commented on this file. The string is used because we stop at 9, and show 9+ when more" quantity="other">%1$s and %2$s others commented on this file</item>
    </plurals>

Other locales have similarly malformed xml.

@ehoogerbeets I can't reproduce with the sample data I got earlier everything seems to work fine.
Is the issue happening on an existing repository? Maybe there is something going on with the PluralFormUpdater since it shows name ending in "one", "two", "unknown" (would be other?) and "many twice". That looks like a single plural unit that has been split in multiple. Also 'en-GB' should just have two forms so really something going on with the plural system.
Can you give more info to reproduce?

Fixed -  https://github.com/box/mojito/pull/303 and released -  https://github.com/box/mojito/releases/tag/v0.86

authors: aurambaj ehoogerbeets jeeyi

repo: box/mojito


text:
Authenticator is looking for user in the realm

06-Jun-2018 16:03:17.655 FINE [https-openssl-nio-8443-exec-8] org.bsworks.catalina.authenticator.oidc.BaseOpenIDConnectAuthenticator.processAuthResponse failed to authenticate the user in the realm

I am not sure if this can be categorised as a bug. I have read this:

Once the authenticator exchanges the authoization code for the ID Token, it extracts a field from the token (a claim) used as the username in the Tomcat's Realm and looks up the user. If the user is found in the realm, the user becomes the authenticated user and the HTTP session becomes authenticated.

Do we have to provide the claim/username in the memory realm?
For example:
<role rolename="user"/> <user username="vengat.r@test.com" password="" roles="user"/>
This works fine.
It would be difficult to scale by adding users like this in the MemoryRealm. I have no DB of users/passwords so I cant use JDBC/DataSourceRealm.
Will the authenticator look up the user from the JNDI realm? Is there a specific configuration to let the authenticator look up a user in the JNDI realm (LDAP)? I have LDAP set up in other environments.
I was of the understanding that when the authenticator exchanges the authorization code for the ID token, the whole process would end there.

Yes, you need a realm. In Tomcat architecture the authenticator and the realm are two separate components. And yes, you can use an LDAP realm (see http://tomcat.apache.org/tomcat-8.5-doc/realm-howto.html#JNDIRealm), configure a JAAS realm (see http://tomcat.apache.org/tomcat-8.5-doc/realm-howto.html#JAASRealm) that always authenticates, or you can write your own "stub" realm that simply always returns the authenticated user.

authors: Vengat levahim