Gem metadata URLs don't support subdomains with underscore

A metadata URL with subdomain in *.gemspec is considered invalid by bundler:
spec.metadata = {'documentation_uri' => 'https://example_workspace.gitlab.io/my_example' }

is rejected with:
The gemspec at ~/projects/my_example.gemspec is not valid. Please fix this gemspec. (Gem::InvalidSpecificationException)
The validation error was 'metadata['documentation_uri'] has invalid link: "https://example_workspace.gitlab.io/my_example"'

A slightly different subdomain like example-workspace would be accepted by the regex:
%r{\Ahttps?:\/\/([^\s:@]+:[^\s:@]*@)?[A-Za-z\d\-]+(\.[A-Za-z\d\-]+)+\.?(:\d{1,5})?([\/?]\S*)?\z}

I therefore propose to change the validation regex into:
%r{\Ahttps?:\/\/([^\s:@]+:[^\s:@]*@)?[A-Za-z\d\-\_]+(\.[A-Za-z\d\-\_]+)+\.?(:\d{1,5})?([\/?]\S*)?\z}

To allow for underscores in subdomains/domains.

Wrong project. Moved to https://github.com/rubygems/rubygems/issues/3061


Angular 1.5 dependency

Does the directive work with angularjs version 1.5? I can see in bower.json that it requires angularjs ~1.4.0 which would only resolve to 1.4.x. If the library supports 1.5 then bower.json should mention >=1.4.0.
I have troubles installing the directive if angular 1.5 is added as a dependency in my bower.json because the correct version of angular cannot be resolved (my app wants 1.5 and webcam-directive needs 1.4).

Tive o mesmo problema.. Está dando o seguinte erro:
Error: [$compile:nonassign] Expression 'undefined' in attribute 'channel' used with directive 'webcam' is non-assignable!

+1

The directive is looking for the channel scope. If you add channel="channel" to the webcam element then it fixes the error. e.g.


compiler does not find qooxdoo sdk on a diffent drive.

Describe the bug
qx compiler in driver other than c:
d:\qxdemo>qx compile
Error: Error: Empty Manifest.json in library at /Users/pccristiano/AppData/Roaming/npm/node_modules/qxcompiler/node_modules/qooxdoo-sdk/framework
at qx.tool.compiler.files.Utils.correctCase.then.then.then.data (C:\Users\pccristiano\AppData\Roaming\npm\node_modules\qxcompiler\lib\qx\tool\compiler\app\Library.js:149:19)
at
To Reproduce
Steps to reproduce the behavior:
c:\npm install -g qxcompiler
d:\mkdir qxdemo
d:\cd qxdemo
d:\qxdemo\qx create qxdemo --out . --type desktop --noninteractive
d:\qxdemo\qx compile
d:\qxdemo>qx compile
Error: Error: Empty Manifest.json in library at /Users/pccristiano/AppData/Roaming/npm/node_modules/qxcompiler/node_modules/qooxdoo-sdk/framework
at qx.tool.compiler.files.Utils.correctCase.then.then.then.data (C:\Users\pccristiano\AppData\Roaming\npm\node_modules\qxcompiler\lib\qx\tool\compiler\app\Library.js:149:19)
at
Desktop (please complete the following information):
OS: Windows 10

first mentioned here: https://github.com/qooxdoo/qooxdoo/issues/9664.

I think it's a problem of using upath. upath translates path's to unix style and removes the drive letters.
We should rethink using of upath.

https://www.npmjs.com/package/upath#why- says: "Note that using Unix / on Windows works perfectly inside nodejs (and other languages), so there's no reason to stick to the Windows legacy at all."

The examples show that the letter is preserved:
'c:\\windows\\nodejs\\path'        --->      'c:/windows/nodejs/path'
path.normalize() gives 'c:\windows\nodejs\path'

upath was just an guess.
Then it's needs some debugging. It's on the list.


MAHOUT-1823: Modify MahoutFlinkTestSuite to implement FlinkTestBase

I am gonna commit this to the flink branch.

Merged to branch - flink-binding via commit# c1d79ff4c2e38325736f09a8a35eb7ba2625509d


Show a snippet only at "the top level"

Hello! Not a bug but more of a question :)
I'm struggling to make a snippet show up in completions only when at the top level of a file (so in an empty line). I've tried using the line parameter of show_condition, but that includes the trigger text.
How can I achieve this functionality?
main| // <- Show snippet triggered by main

int foo() {
  main| // Don't show it here
}

Hi :)
Ah, using show_condition you'll have to manually remove the trigger-text (which may be trivial or not, depending on the trigEngine).
Maybe we should pass the snippet itself to show_condition then one could manually call snippet:matches(line_to_cursor) and get the complete trigger-region luasnip would use

Maybe we should pass the snippet itself to show_condition then one could manually call snippet:matches(line_to_cursor) and get the complete trigger-region luasnip would use

That sounds like a good idea! It might break some people's configs though, so we should notify them of the breaking change.

Oh, I would've passed it after the current line_to_cursor, there shouldn't be any breakage.
One small issue with changing what is passed to show_condition is that we aren't actually call it, that's the responsibility of eg. cmp_luasnip, so all of those plugins have to make a small change


updates devise, and actionview.

updated devise and actionview to address (https://github.com/psu-stewardship/scholarsphere/network/alerts)

Coverage remained the same at 58.468% when pulling f1f26b42e88db11a316ede2ac6bbbe5461ded74f on securityAlerts into f62f1dbcae15654a08a3c63ee566b66d0169d558 on develop.

@whereismyjetpack I restarted the coverage stage. Once that passes, you can merge this.


Flutter command is not working (Access is denied)

Flutter installation issue
When i type flutter command i get this error (Access is denied)

Environment Variable is already set

Permission is given for every one who is using this laptop
Remember I m using the most recent version of the flutter

@abbasi-saqib
Can you specify at what location have you installed the sdk ?
Usually you should avoid at path like C:\Users and install somewhere in Documents.
Check this official documentation on how to install on Windows platform and see if your setup is proper as mentioned.
Thanks.

Darshankar ,
Did everything according to the guideline . Even created directory in c:/src/flutter . But same error . Even set the permission to flutter director for everyone but still find the issue

@abbasi-saqib
Can you try to run the command as admin and check if you get same error ?
Also Do you have any other driver apart from C ? where you can install the sdk ?

There is no other drive apart from C: and same error even for running as administrator

Keeping this issue open for further triage, as I am unable to replicate this issue.

Since this is in the tools queue, dropping waiting for customer response.

Did everything according to the guideline . Even created directory in c:/src/flutter . But same error . Even set the permission to flutter director for everyone but still find the issue

DId you add C:/src/flutter to your path? the screenshot you linked has a flutter path under Documents on your path, so I would assume when you type flutter in the command line, it is running the binary in Documents and then failing because your user does not have permissions.

Without additional information, we are unfortunately not sure how to resolve this issue.
We are therefore reluctantly going to close this bug for now.
Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.
Could everyone who still has this problem please file a new issue with the exact description of what happens, logs, and the output of flutter doctor -v.
All system setups can be slightly different, so it's always better to open new issues and reference related issues.


Add variables for capital cost, efficiency and technical lifetime

This PR carries over the list of techno-economic variables from #99 by @rongqizhu, which was also requested by @gunnar-pik separately by email.
The proposed variable for variable vs. fixed operation and maintenance cost is not implemented here, this will be discussed in a follow-up issue and PR.

fyi @IAMconsortium/common-definitions-energy


Feature: Layer System

I've been brainstorming ways to support stuff like night models, basic clouds (not volumetric) and far-away environments and I think supporting layers might be a good general solution.
The problem
I want to avoid hard-coding optional features as parameters directly into bevy_atmosphere.
For example, a hard coded solution to the aforementioned stuff would be to provide background, midground and foreground parameters for optional textures. To add a cloud texture, you would just set the midground to your texture and it would be overlaid on the sky texture. However, this is limiting, as it only allows for three textures and it wouldn't support animating them.
The solution
A layer system would support layering Atmospheric models on top of each other. A layer would comprise of the model and a color for controlling tint and transparency. (It could also have a mode for dictating how layers affect underlying layers, but since layers would be rendered top-down to avoid rendering hidden pixels, it would be complicated to implement).
For example, adding a cloud texture would be adding a image model on top of a sky model (like Nishita).
Implementation Strategy
The layer system could be another Atmospheric model that accepts other models. This means it would support sub-layers since it can accept itself.
It would look something like:
Layers::new()
    .add(Nishita::default(), Color::WHITE) // maybe I should rename models to have a -Model suffix?
    .add(ImageModel::new("clouds.png"), Color::rgba(1.0, 1.0, 1.0, 0.9))

It could also have a macro (layers![]) for quickly creating it (for instance, support just passing alpha instead of an entire color).
I've been thinking (I was going to do this anyways, even before the idea of layers) of revising the structure of atmosphere shaders to look like:
fn main(position: vec3<f32>) -> vec4<f32> {
    return vec4<f32>(0.5, 0.5, 0.5, 0.5);
}

This removes a lot of boilerplate from the shader. You might be wondering where that boilerplate went, since there is no #import statement. Well, since the layer model will need a custom preprocessor to load main functions from other models, it might as well handle adding the entry point code too.
This effectively separates the model logic from the runtime, which opens the doors for creating multiple runtimes. Currently, bevy_atmosphere pre-renders the sky texture using a compute shader. This technique is slow, since it has to render the entire sky texture instead of what is just on screen, but ultimately improves performance in games where atmospheric parameters change infrequently.
However, I have seen users who need to update parameters frequently, potentially every frame. In their cases, a realtime renderer is more performant, since it only needs to render what's on screen each frame. By separating the model logic from the runtime, it allows for supporting both a pre-renderer and realtime renderer. It would be a matter of moving the workload to and from the compute pipeline and skybox shader.

Hmmm... Layers need to be cached, so instead of injecting shader code into one big shader, maybe Atmospheric models need to specify how and what shaders run as well as how to cache their results. It increases the complexity of defining Atmospheric models, but gives a lot more control over how they run.

The layers system was overkill, instead, I'm going to focus on increasing shader modularization so users can create their own models. This is far simpler and performant.

The layers system was overkill, instead, I'm going to focus on increasing shader modularization so users can create their own models. This is far simpler and performant.

Do you have an example for someone new to writing shaders? I'd like to do exactly the things you describe:

clouds, from cirrus to full cover gray and raining to to big fluffy cumulonimbus to storms with lightning
mountains in the distance, and kind of a general indistinct horizon
stars! (#27)

... but have no idea where to even get started with that. It'd be wonderful to see an example.


Restore partial functionality of button Validate / Restore Ontology Term

Closes #511

It is only a partial fix, the second half of the functionality of the button will be fixed in this Issue: https://github.com/nfdi4plants/Swate/issues/522
Reason: Lack of knowledge


Error while using PVC and helm

when I enable the volume storage the pod keeps crashing in a loop, however if I disable it, the pods works fine but I would need to connect it to redis in case of pod restart.
`# Default values for redisinsight.
This is a YAML-formatted file.
Declare variables to be passed into your templates.
enabled: true
replicaCount: 1
image:
repository: redis/redisinsight
pullPolicy: IfNotPresent
versionOverride: "*"
imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
terminationGracePeriodSeconds: 10
environmentVariables: {}
serviceAccount:
Specifies whether a service account should be created
create: true
The name of the service account to use.
If not set and create is true, a name is generated using the fullname template
name:
podAnnotations: {}
podSecurityContext: {}
fsGroup: 2000
securityContext: {}
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 1000
service:
type: NodePort
port: 5540
annotations:
prometheus.io/probe: "true"
prometheus.io/probe-path: "/"
headless:
annotations: {}
ingress:
enabled: false
className: ""
annotations: {}
# kubernetes.io/ingress.class: nginx
# cert-manager.io/cluster-issuer: letsencrypt
# nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
# nginx.ingress.kubernetes.io/from-to-www-redirect: "true"
hosts:
- host: redisinsight.local
paths:
- path: /
pathType: ImplementationSpecific
tls: []
- secretName: redisinsight-tls
hosts:
- redisinsight.local
resources: {}
We usually recommend not to specify default resources and to leave this as a conscious
choice for the user. This also increases chances charts run on environments with little
resources, such as Minikube. If you do want to specify resources, uncomment the following
lines, adjust them as necessary, and remove the curly braces after 'resources:'.
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 100m
memory: 128Mi
nodeSelector: {}
tolerations: []
affinity: {}
volume:
enabled: true
className: "trk"
size: 1Gi
annotations:
helm.sh/resource-policy: "keep"
tests:
enabled: false`

Do you have the error logs to it? I'll try and check it out

Hi again, the issue was related to the securityContext most likely, so check out the last commit with description on how to fix it.
In short, you have to enable these values:
securityContext: {}
  # Enable these permissions if you are running with a non-root user to allow for reading / writing to the volume
  # runAsUser: 1000
  # runAsGroup: 1000

initContainers: []
# Enable this to change the permissions of the volume to allow for reading / writing to the volume
# - name: redisinsight-init-permissions
#   image: busybox
#   command: ["sh", "-c", "chown -R 1000:1000 /data && chmod -R 775 /data"]
#   securityContext:
#     runAsUser: 0  # Run as root to ensure permissions can be changed
#   volumeMounts:
#     - mountPath: "/data"
#       name: redisinsight-volume

Do you have the error logs to it? I'll try and check it out

unfortunately it didn't produce logs


ts.CompilerHost.jsDocParsingMode

Since TypeScript v5.3 update, TypeScript compiler no more analyzes JsDocComment as default.

The desire of that is to boosting up the compilation speed by not parsing the JS Doc Comments.

Therefore, to parepare the future TypeScript v5.3 release, I've updated @nestia/sdk to configure the jsDocParsingMode to parse every comments manually. For reference, the restriction of peerDependencies -> "typescript": ">=4.8.0 <5.3.0" would also be erased after formal TS v5.3 release.
https://github.com/microsoft/TypeScript/pull/55739

The API will still parse JSDoc by default; only tsc has this disabled (and it's likely ts-patch will undo that change). You shouldn't need to do anything on your side.

The API will still parse JSDoc by default; only tsc has this disabled (and it's likely ts-patch will undo that change). You shouldn't need to do anything on your side.

Ah, got it. Thanks for detailed info.


OnRegionStateChanged - never get executed

OnRegionStateChanged never gets executed ? and OnLocationChanged get called repeatedly.
and any plans for sample ?

Meters
Sent from my iPhone

On Aug 16, 2018, at 12:34 AM, kberawala<EMAIL_ADDRESS>wrote:
What is the unit of measure for the radius? is it in kms or meters ?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

I had the same problem and found that it only occurred when I was targetting Android 8.0 or higher. When I rolled the target back to Android 7.0 then OnRegionStateChanged started working again (even running on an Android 8 device).
This is a short-term fix though, as Google is not accepting new apps that target Android 7.0 and current apps have until the end of the year (2018) to update.

I had the same problem and found that it only occurred when I was targetting Android 8.0 or higher. When I rolled the target back to Android 7.0 then OnRegionStateChanged started working again (even running on an Android 8 device).
This is a short-term fix though, as Google is not accepting new apps that target Android 7.0 and current apps have until the end of the year (2018) to update.

I tried this fix but it only results in OnLocationChanged being called repeatedly and OnRegionStateChanged only being called once at the very start of the app. I can't make it work :(
Isn't there any project sample?

I am also having this issue, any help?

I am not sure if the problem was because I was debugging using a physical device and an application for mocking locations, as for android API 26, this technique (mocking locations in device) is not working correctly with some apps (it constantly jumped from original location to mock location). I became aware of this days laters (too late as I was using a different approach to my problem).
So my advice would be to try debug it while walking in real time, and not using mockup locations (at least for android, not sure ios).

Any ETA on fixing this for API 28 and above?  I’m noticing this same exact behavior.  I have an app in production that heavily uses this.


[BUG] [Website] Theme Generator issue

Description

Copy Config feature of Theme Generator is only visible at dark mode [preview attached below]
Copy Config not showing when opened through navbar [preview attached below]

Preview
https://github.com/cschroeter/park-ui/assets/17046154/c15ddbd8-63c2-4ef1-b570-61b56b52ae96

Hey buddy,
The landing page has been relaunched. So the issue should be gone by now. Regarding the copy config feature, with the next release you can do sth like this:
presets: [
  parkPreset( { grayColor: "slate", accentColor: "indigo", borderRadii: "sm" } )
]

So there should be not a need to copy the previous boilerplate. Of course you can still extend the theme / preset like you always can, but this should give most folks a good quickstart.


PLATFORM_PORT_80_TCP_PORT can be overridden, but hostname of app cannot.

In the web setup, PLATFORM_PORT_80_TCP_PORT can be passed as an environment variable if we need to run the MM App on a different port. The docker_entry seds the APP Port in the nginx config.
However, the app is hard coded and forces this to be Docker Compose only.
Ideal: Default to docker compose ( a value of "app") but allow an ENV variable to be passed with the application hostname if we are using a different clustering technology with our own service discovery.
Note: the Database/App containers already do this with
(in App docker entry:)
DB_HOST=${DB_HOST:-db}
DB_PORT_5432_TCP_PORT=${DB_PORT_5432_TCP_PORT:-5432}
We could do the same thing:
APP_HOST=${APP_HOST:-app}
PLATFORM_PORT_80_TCP_PORT=${PLATFORM_PORT_80_TCP_PORT:-80}
and then when doing the sed in the docker_entry, fix both items.

@JohnOmernik Thanks for the suggestion. I guess in most of the case, you don't need to change "app". Could you tell me a little bit more about your use case? Would you like to send a PR for this feature?

Closing this for now. Feel free to reopen it if there is more question.


Any practical apps using this?

Hi, I'm a freak into UI libs and especially "live variables" (as I myself call it - be it a stream/signal/pubsub/...) which solve like 50% of problems one has when using UI libs.
I was following S's development for some time and today I got your message about anod.
My first impression (without even trying it out) is very good. Kudos!
Do you have any real apps using it? I'd be interested especially in performance issues on mobile devices (e.g. with long lists, many widgets with such "live information", etc.).
Btw. how would you approach building a WhatsApp-like "infinite" feed of messages with anod efficiently? Would it be difficult (including the ability to add, change and delete arbitrary messages at arbitrary positions)?
Would anod handle even some animations on mobile devices?
Are there any issues if having arbitrarily "nested" (or should I say "chained"?) data() with value() etc.? Correctness issues? Performance issues? Other issues?

Thanks for the recognition!
Firstly, development of anod is still very early stage. I am pretty certain no apps are using it, I just recently pushed the first version to Github.
Also, anod is like S only a reactive library. I'm tinkering a bit with a UI library on top of anod here. The idea there is to build basically a merge between ivi and surplus, e.g. building the entire dom using document.createElement, and then mounting computations that patch updating parts of the view. I am experimenting with using a virtual dom tree for diffing as it handles complex data much better than having raw dom nodes.
For example, if you have something like this:
[1,2,3].map(x => [div(), div()]);

And then start to move around dom nodes, many libraries flatten out nodes and diff them instead of diffing the fragment parts.

Btw. how would you approach building a WhatsApp-like "infinite" feed of messages with anod efficiently? Would it be difficult (including the ability to add, change and delete arbitrary messages at arbitrary positions)?

Given the mutation driven approach anod uses, it should shine on any operation where you're not re-rendering data such as from a server, but rather applying mutations on an array. Basically, if what you're doing is push, insertAt, removeAt, move or similar, the idea is that anod should perform better than vanilla javascript itself. However, if what you're doing is patching data from the server, e.g. you have some data [1,2,3,4,5] and then you update it with a new array as [3,4,2,1,5], the goal is to have anod on par with existing libraries, but it's unlikely to outperform them.
Anod is a merge of S.js and S-array. It differs mainly in two ways: conditional rendering and array mutation propagation. The core reactivity library is identical to S with the notable exception of flag operations. It was good that you asked, I will add this to the docs.
Basically, anod accepts four flags: Flag.Wait, Flag.Trace, Flag.Static, Flag.Dynamic.
Flag.Wait is the same as onchanges in S. Flag.Trace means that a computation will not fire changes unless the value changes. Anod uses this internally for all array operations, such as the example below:
import { array, tie } from 'anod';
let ds = array([1,2,3,4,5]);
let cs = ds.some(v => v === 9);
tie(() => { console.log(cs()); }, void 0, Flag.Wait);
ds.push(6); // This operation is O(1), anod only checks if the added element matches
ds.insertRange(2, [7,8]); // This operation also only checks added items
ds.pop(); // This operation notes that cs is false and deletion occurs and returns
ds.push(9); // Now value of cs has changed, so here we log to the console

Flag.Static means that you can setup a static dependency tree without explicitly specifying the dependencies. E.g. if you run a computation and read signals, it marks the computation node as final and afterwards does not reconstruct the dependency tree.

Also, anod is like S only a reactive library. I'm tinkering a bit with a UI library on top of anod here. The idea there is to build basically a merge between ivi and surplus, e.g. building the entire dom using document.createElement, and then mounting computations that patch updating parts of the view. I am experimenting with using a virtual dom tree for diffing as it handles complex data much better than having raw dom nodes.

That might be a viable approach. What proved as the most efficient approach from my experience is to design UI libs from top to bottom (i.e. not from buttom to top as DOM-focused libs etc. do). With top to bottom I mean having a set of widgets - some of them instantiated from the very start of the app, some not (some of these non-instantiated are already "constructed" and just hardwired in code behind a wall of if-then-else but some of these are even being "thought up"/constructed dynamically in runtime and then wired dynamically in runtime.
Imagine the use case I outlined in https://github.com/vlang/ui/issues/7#issuecomment-576256637 (and clarified in https://github.com/vlang/ui/issues/7#issuecomment-576666180 ). This of course requires full dependency tree reconstruction.
Overall it sounds very promising! Keep me posted (I'm already subscribed to isolit).

Btw. you might want to look at how "live variables" can be utilized everywhere and what advantages it brings:

https://incidentalcomplexity.com/2016/07/21/clock/ (or more complex: https://incidentalcomplexity.com/2016/08/23/flappy-eve/ )
http://mech-lang.org/home.html (successor of Eve)

That's a very interesting approach. But my main goal of isolit is actually not performance but simplicity, so I think the goal of the project actually sidesteps a bit from your vision. It's definitively possible to try and design another library that is more bare metal.
The idea of isolit is to allow the user to simply use pure functions for any conditional rendering, and directly mapping anod lists whenever you have dynamic children.
The DSL is thought to look something like this:
const ds = data(true);
const App = () => (
  div(_, { id: 'root' }, [
    () => ds() ? button(_, _, 'Active') : null,
    ul(_, _, uls.map(u => li(_, _, 'List item')),
  ])
);

Even if it looks a bit differently than the vision I outlined, it's still very interesting, so I'll try to follow your steps :wink:.
Feel free to close this issue if you think there is not much more to add here.


[REQUEST] pretty.install does not work with IPython InteractiveShellEmbed.

Have you checked the issues for a similar suggestions?  I did not find any
How would you improve Rich?
pretty.install is great and modifies sys.displayhook, but it does not seem to affect IPython's interactive shell for it has its own displayhook (RichPromptDisplayHook).
What problem does it solved for you?
It provides a much nicer printout for data structures.
What problem do you have that this feature would solve? I may be able to suggest an existing way of solving it.
More readable IPython REPL.  The following example does not seem to change IPython displayhook.
from IPython.terminal.embed import InteractiveShellEmbed

ipshell = InteractiveShellEmbed(user_ns=globals())
pretty.install(indent_guides=True)
print(sys.displayhook)
print(ipshell.displayhook)
ipshell()

Output:
<function install.<locals>.display_hook at 0x7f9cbcdcaca0>
<IPython.terminal.prompts.RichPromptDisplayHook object at 0x7f9cbd6021c0>

Bump as this would also make Spyder users happy.

Works in 9.6.0 Thanks to @nathanrpage97


Some food data work for players

This is still work in progress, but I wouldn't mind some input as I continue on as I may be doing this completely wrong.

I'll try to finish this in a few days. Next weekend will bring more time for me.

So I think the other behaviors are out of scope of what I can accomplish now, at least the movement ones, as they are a bit over my head.
For the damage one, I am waiting on https://github.com/SpongePowered/SpongeAPI/issues/1592

Will rebase this and switch to time ticks later today.

I'll fix that build error when I solve the exhaustion issues.

So it seems everything is working including the hunger effect - I am successfully adding 0.005 x level per tick as the wiki for the 30 seconds to add up to 3 exhaustion which matches the description on the wiki here:

My PR about switching SaturationProperty to use the proper value was pulled into Sponge, so I will go ahead and update all of the current saturation values as well as where I manipulate them.

Development continues in #42


Making requests and internet connection setting

Is your feature request related to a problem? Please describe.
Probably running normal projects equally as "games".
Describe the solution you'd like
We can also use games offline as well as online (but not cloud gaming!)
*Describe alternatives you've considered
Loading from online, save for offline, but i don't think there's data managment.
Additional context
Some projects don't have to be on request as they could be loaded from their ID.

Possible duplicate of #12 ?

Possible duplicate of #12 ?

Maybe, but you could also SET it -_- so...
...no.


WIP: Store compiled modules

Modules are compiled and stored in a content addressable store. Two runs of the same module are significantly faster since we only need to digest the wasm module being loaded and do not need to compile it again.
This is still a work in progress.
The store is not really concurrency safe yet (it mostly works, but multiple threads/processes could hit issues).

@rumpl

@cpuguy83 does this make any allowance for precise understanding of the module to check whether it's been cached? That is, it seems like it checks a sha.... which I'd be assuming is a digest. Am I right? Just want to make sure it's easy to move from a quick, possibly unsafe check to a more formal one down the line.... looks GREAT though.

@squillace This is based on the digest of the module from the image.
There does seemt o be some extra namespacing we need to do at least for wasmtime since it (IIRC) will reject modules compiled for a different version of wasmtime.

I'm wondering whether that's really just a load problem: if you pull an arm image on an amd node, you'll get the same "I just can't today" error. Though if there's a coherent way to determine and handle it in the future.....

going to close this in favor of #405. Thanks @cpuguy83 for the inspiration!


Feature/ajax modals

Ups, something went wrong when I extract the commits into this branch.
The changes start with #1e0864eabaf8162ba5b25f3b1f6646d37846e20e

Okay, it is not that much. Just take a look at https://github.com/basxsoftwareassociation/bread/commit/1e0864eabaf8162ba5b25f3b1f6646d37846e20e
for one where I did the changes for selecting the right template.


⚠ Bofrost.be has degraded performance

In c320b48, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 858 ms

Resolved: Bofrost.be performance has improved in 4bbbbbc after 6 minutes.


element-web: 1.7.31 -> 1.7.32

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/vector-im/element-web/releases.
meta.description for element-web is: "A glossy Matrix collaboration client for the web"
meta.homepage for element-web is: "https://element.io/"
meta.changelog for element-web is: "https://github.com/vector-im/element-web/blob/v1.7.32/CHANGELOG.md"
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 1.7.32 with grep in /nix/store/zhnalkrc93yaxyjw1af4nhk99955wy56-element-web-1.7.32

found 1.7.32 in filename of file in /nix/store/zhnalkrc93yaxyjw1af4nhk99955wy56-element-web-1.7.32

directory tree listing: https://gist.github.com/a3d0b156f4b86ff6da733e9c3d9cad06

du listing: https://gist.github.com/dc0125592037c3f5915bd8424a32536d

Rebuild report (if merged into master) (click to expand)

4 total rebuild path(s)

1 package rebuild(s)

1 x86_64-linux rebuild(s)
1 i686-linux rebuild(s)
1 x86_64-darwin rebuild(s)
1 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
element-desktop

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/zhnalkrc93yaxyjw1af4nhk99955wy56-element-web-1.7.32 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A element-web https://github.com/r-ryantm/nixpkgs/archive/f63714f092803f3189538d8aaeea2f3c12df0667.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/zhnalkrc93yaxyjw1af4nhk99955wy56-element-web-1.7.32
ls -la /nix/store/zhnalkrc93yaxyjw1af4nhk99955wy56-element-web-1.7.32/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

2 packages built:

element-desktop
element-web

Maintainer pings
cc @ma27 @fadenb @mguentner @ekleog @ralith @mjlbach @dali99 for testing.

Maintainers: please don't merge this! There was a PR yesterday for this package that already had problems and this should be updated together with element-desktop.
I'll take a look at both updates later and will file an exclusion PR for this against nixpkgs-update.

Because of https://github.com/matrix-org/matrix-js-sdk/pull/1776 / https://github.com/vector-im/element-web/issues/14875 I'd prefer for the next patch-level release.

https://github.com/NixOS/nixpkgs/pull/129433#issuecomment-876071609

Closing because https://github.com/ryantm/nixpkgs-update/pull/270 is deployed now


After I run such cell, I see error:
"Error in library(asdfasf) : ��� ������ ��� ��������� 'asdfasf'"

And after this error I still can successfully run other R code cells.

cannot reproduce


Unable to use Artist Artwork

I installed your package (amazing btw, I would love to talk to you about it) and I am no longer able to access the Artwork property on Artists. Any idea why?

Heya! I am unsure if I ever added the artwork on Artist in MusadoraKit. I wrote an article about it but avoided adding it in MusadoraKit because of legal issues and my solution depends on a third-party dependency.
Also, in Xcode 14, this property is available natively


Hello using hygieia-jenkins-publish plugin so written scripts respective step as sonar, artifactspublisher but not seeing in dashboard so what configuration we need to do on dashboard can anybody please help

@nireeshT  need help


doc: net: Add networking changes to 2.4 release note

Initial set of networking related changes in 2.4 release.
Signed-off-by: Jukka Rissanen<EMAIL_ADDRESS>

I feel that you should change the tense from present to past, e.g. "Add support" -> "Added support".

Agreed, I missed this one. I will send a new version.


Error loading data

Describe the bug
This error appears when I click complete registration button.
To Reproduce
Steps to reproduce the behavior:

Go to register page
Click on Complete Registeration button
See error

Expected behavior
I want to login to my profile.
Screenshots
If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

Device: galaxy note 8
OS:  Android 9
Version <IP_ADDRESS>23767

Try using vpn its (Probably) will fix it.

Точно такая же проблема

By closing the application and then opening it, it works, but still, we may get this error on entering rooms and ... .

I'm getting the same error, see https://github.com/grishka/Houseclub/issues/298 (as you can see I'm also using a Samsung phone, not sure if it has to do with that).
I saw the error at registration (not sure what I did but at some point I managed to make it work) and now I'm seeing the same error any time I try to enter a room or open my profile page.
In both cases the action is not performed so I've never managed to actually see a room page or my profile page.


Route will download response if umlaut is in response

If you have an umlaut (ö,ä,ü) in your response, the response won't be displayed in the browser. Instead it'll be downloaded as a file.
import 'package:shelf/shelf.dart';
import 'package:shelf_router/shelf_router.dart';
import 'package:shelf/shelf_io.dart' as io;

class Api {

  Handler get handler {
    final router = Router();

    router.get('/without/<name>/<yas>', (Request req) {
      var name = params(req, 'name');
      var yas = params(req, 'yas');
      return Response.ok('I am a normal response $name $yas');
    });

    router.get('/with/<name>/<yas>', (Request req) {
      var name = params(req, 'name');
      var yas = params(req, 'yas');
      return Response.ok('I am a file ü $name $yas');
    });

    return router.handler;
  }
}

void main() async {
  final service = Api();
  final server = await io.serve(service.handler, 'localhost', 8080);
  print('Server running on localhost:${server.port}');
}

@kiesman99 can you check if this is a problem with package:shelf_router or package:shelf?

Please re-open if this is related to package:shelf_router :D

@kiesman99 and @jonasfj yes that might be the problem with package:shelf not sure cause the Response.ok() was from that package. So basically the response needs headers. If we haven't defined headers, that will think it was a file and the content of a file cannot be viewed directly in the web so it will download the file. If the response we expected was text, write the extension to the file downloaded and open it. It will show the content. If it is json data append the extension to the file and open it, you will able to see the content/response we need. So that, if we add headers to the response it will preview in that format.
This is your sample code data you expected right @kiesman99 ??

So here is another scenario (mine)

import 'package:shelf/shelf.dart';
import 'package:shelf_router/shelf_router.dart';
import 'package:shelf/shelf_io.dart' as io;

class Data{
  Handler get handler {
    final router = Router();
    router.get('/', (Request req) {
      return Response.ok(
        'Hello there 👋🏻',
        // Specifying header solved my emoji issues too.
        // Now I can even write up emojis 😎.
        headers: {'Content-Type': 'text/plain'},
      );
    });
    return router;
  }
}

void main() async {
  final service = Data();
    await io.serve(app, 'localhost', 1031).then(
      (value) => print('API running at http://localhost:${value.port} 🔥🔥🔥'));
}

My Output

Hope this clarified your issue. Please lemme know if not.


Implementing my own monad?

Hey there, thanks for the great work!
Although I've noticed you've been working on dry-effects for algebraic effects (and it might probably be the best solution for my problem), I was wondering what path should I take if I wanted to implement my own monads (logging monad and retry monad would be my top priority for my use case right now).
And btw, is there any roadmap on dry-effects?

Hi there. Monads of dry-monads rely on the interface, as in, fmap/bind/pure, just as they should.  You can create your own monad, there's nothing special about it, really, but I don't think dry-monads itself could/should provide any framework for this. Speaking of effects, my plan is to gradually implement a bunch of effects in a manner similar to dry-monads. I will think about extension points along the way but writing a custom effect shouldn't be hard anyway. I already have a working prototype in production which I have been using for a few months, quite successfully. My immediate goal is to replace my homegrown solution with a library.
Sorry for this late response, please use our forum for this kind of questions, we use GH for bug tracking and approved feature requests, see CONTRIBUTING.md.


 No conflicting dlls, but apparently...I have conflicting DLLS

I cant run RiR.
I've:

Removed all external addins.
Uninstalled and reinstalled Rhino 7.
Uninstalled RiR 1.0, 1.2, 1.3, 1.6.
Searched my entire C drive for the RiR dlls. They only exist in one location.
Checked all the locations where Revit addins are installed.
Tested in R2020 and R2022.

After all of this...

This is now business critical - my company is developing software for a private client and we have a deliverable deadline every week. While RiR fails to load we cant do anything which causes us to miss our deadlines and damages our business, not to mention how much time it wastes while we try and find the cause. Can someone from McNeal escalate this issue and can technical support contact me via video link so we can find an immediate fix? @kike-garbo @sbaer

Update, I checked Revit journal files. Does this shed more light on what might be the cause?

I've discovered the problem - it was a plugin in Rhino 7 which had the RhinoCommon.dll copied locally.
It might be worth noting this in case other RiR users run into the same conflict.


generated dialog is not updating after changes made to property type

Describe the bug
When I made changes to the property type in schema, hit "generate dialog" again, the dialogs were not updating.
Version

Browser

[ ] Electron distribution
[ ] Chrome
[X] Safari
[ ] Firefox
[ ] Edge

OS

[X] macOS
[ ] Windows
[ ] Ubuntu

To Reproduce
Steps to reproduce the behavior:

Go to 'Forms'
Click on a [property name], change the type from 'number' to 'any string'
Click 'generate dialog'
Click 'view dialog'
See error, the dialog remains the same.
Click 'restart bot'
See error 2, the bot is still saying: enter a number for [property name].

Expected behavior

the generated dialog should have switched from asking for 'number' to asking for 'any string'.

Screenshots

Additional context

@mewa1024

@hatpick Do you know what could be going wrong here?

@chrimc62 @coldplaying42 this seems to be a merge issue. can you confirm?

@xiyangdesign there has been a couple of updates to the generate library ever since you reported this, is it still happening?

@hatpick Currently I have issue opening Composer (electron, nightly build; stuck at the loading screen). With the 1.3.1 version, I can open Composer, but failed to generate dialogs (a known issue). So I wasn't able to test this issue (reported here) for now. Would it be ok if I test this again when I'm able to do this?


HTTP 401 on creation / deletion silence after enabling base auth in proxy mode

Karma 0.94
Alertmanager 0.23 (http. no auth)
Simple configration;
alertmanager:
servers:
- name: alertmananager
uri: <secret_uri>
proxy: true
cors:
credentials: omit
authentication:
basicAuth:
users:
- username: test
password: test
history:
rewrite:
- source: '(.*)'
uri: <secret2_uri>
tls:
insecureSkipVerify: true
log:
config: true
level: debug
format: text
requests: true
timestamp: true
receivers:
keep: ["alert"]
strip: ["alertmananger-bot"]
Run karma and test UI:
1. Trying auth:
Browser show auth window on entry - OK.

After enter of login and password karma show main UI - OK
window with auth username and version:

overview:

2.  Create new silence
Find active alert

Setup selince:

After submit, open alertmanager ui and check createtion of silince - NOK
karma        | 09:45:35 msg="Request completed" address=<IP_ADDRESS>:61573 bytes=0 code=401 duration="610.628µs" method=POST path=/proxy/alertmanager/alertmananager/api/v2/silences
in logs i see request with code 401 reply, but karma UI show green OK sign - NOK

3. Trying delete exist silence
Find active suppressed

Setup deletetion and confirm

karma UI show green OK after confirm - NOK
check logs:
karma        | 09:54:26 msg="Request completed" address=<IP_ADDRESS>:50420 bytes=0 code=401 duration="336.457µs" method=DELETE path=/proxy/alertmanager/alertmananager/api/v2/silence/617b7e7b-e422-49c1-885f-7b4748ead1a3
check alertmanager ui for silence status
Slince  617b7e7b-e422-49c1-885f-7b4748ead1a3 still active - NOK

When i disable basic auth in karma, creation and deletetion working fine.
Quick test on Karma 0.95 - similar behavior
Maybe we have some configuration error? Thank you.

Why do you have credentials: omit set?
I think your browser is stripping auth information from requests because of it. Try removing:
cors:
  credentials: omit

We set this parameter because in mode proxy: false (or parameter exists) on create silence wee seen this error.

We make full retest cycle after applying recommendation: creating and deleteting silence with basic auth work fine.
Thank a lot!!
But i'm think then request end with 401 error karma ui must show error notification instead success. It's minor bug.


vmm: imporve observability to vmm-task & vmm-sandboxer

closes #5
https://github.com/kuasar-io/kuasar/blob/08cfdc8d93d33f5e216276cbc74f9dcf89aeb569/vmm/sandbox/src/sandbox.rs#L342

Visualize the results:

Main Changes

[x]  : Replace env_logger with crate tracing
[x]  : Add tracing instruments with tracing::span
[x]  : Consume tracing data with the opentelemetry backend (e.g. Jaeger)

Steps

Enable tracing feature:

[sandbox]
enable_tracing = false
[hypervisor]
[hypervisor.task]
enable_tracing = false
[hypervisor.virtiofsd]

Run the jaeger server:

docker run --rm --name jaeger \
  -e COLLECTOR_ZIPKIN_HOST_PORT=:9411 \
  -p 6831:6831/udp \
  -p 6832:6832/udp \
  -p 5778:5778 \
  -p 16686:16686 \
  -p 4317:4317 \
  -p 4318:4318 \
  -p 14250:14250 \
  -p 14268:14268 \
  -p 14269:14269 \
  -p 9411:9411 \
  jaegertracing/all-in-one

Run the Kuasar: https://github.com/kuasar-io/kuasar#quick-start

Check the result: visit the web page http://localhost:16686/

cc @Burning1020

Good job! /cc @abel-von @flyflypeng Could you add a markdown to give more detail usages and results? Another question, after switching from log to tracing, what changes occurred in the format and amount of log output? Was there a comparison?

env_logger::Builder::from_default_env()
	.format_timestamp_micros()
	.init();
log::error!("hello world from env_logger");  // [2024-09-21T04:02:26.007041Z ERROR log_test] Hello from env_logger
tracing::error!("hello world from tracing"); // 2024-09-21T04:02:05.022320Z ERROR log_test: Hello from tracing

Please squash your commits. @Ziy1-Tan


Remove extra checkDefined in visitEachChildOfJsxExpression

Fixes #52479

Checked all of the other checkDefineds in this section; this was the only wrong one. I'll have to look into something we can do to checkDefined that makes it fail if you give it something that's definitely defined.

we would need something which checks whether or not a result of a checkDefined is used only in a place which already accepts undefined.
Would this fit the bill?
export function checkDefined<T, U extends T | null | undefined>(
    value: T | null | undefined,
    message?: string,
    stackCrawlMark?: AnyFunction
): U extends NonNullable<U> ? U : unknown {
    assertIsDefined(value, message, stackCrawlMark || checkDefined);
    return (value satisfies NonNullable<T> as any);
}

FWIW, if I do that, here are the errors I see in visitorPublic.ts:
src/compiler/visitorPublic.ts:655:13 - error TS2345: Argument of type 'unknown' is not assignable to parameter of type 'string | BindingName'.

655             Debug.checkDefined(nodeVisitor(node.name, visitor, isBindingName)),
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/compiler/visitorPublic.ts:678:13 - error TS2345: Argument of type 'unknown' is not assignable to parameter of type 'string | PropertyName'.

678             Debug.checkDefined(nodeVisitor(node.name, visitor, isPropertyName)),
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/compiler/visitorPublic.ts:1055:13 - error TS2345: Argument of type 'unknown' is not assignable to parameter of type 'BinaryOperator | BinaryOperatorToken'.

1055             tokenVisitor ? Debug.checkDefined(nodeVisitor(node.operatorToken, tokenVisitor, isBinaryOperatorToken)) : node.operatorToken,
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/compiler/visitorPublic.ts:1457:13 - error TS2345: Argument of type 'unknown' is not assignable to parameter of type 'Expression | undefined'.

1457             Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)));
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The first three appear to be cases where our factories accept string or SyntaxKind for convenience (but can't actually appear during visit), so there's something weird happening with that signature, I think.
The last one is this bug, so it did catch that at least. But I'm guessing if there were more, it would have caught them too (with the false positives present).

Another way to do this would be to transform all Debug.checkDefined calls to ! and then see if eslint complains, but that is of course a bit more work.

I wrote the above transform and then ran eslint; this is in fact the only place we use checkDefined on a definitely defined value. Good to know that we don't have any more of these kinds of potential bugs.


Can't get multiple tag values to work

see https://github.com/forward3d/cap-ec2/issues/24

If anyone has an issue I wonder if --tags 'tag1=val1,tag2=val2' works (single quotes). It'd be good to add support for specifying --tags multiple times, as we find that's the easiest way to avoid issues passing lists on the command line.

@MrMMorris, You can provide multiple values semicolon separated. I verified that giving multiple values comma separated does produce error. However providing values as --tags 'tag1=val1;val2' works fine.

@MrMMorris , I hope your issue is resolved by the solution provided by @dheerajd-msys.
Please feel free to re-open if you still face problem.


Outdated terms of use on website

This PR resolves the enhancement request #3095 "Outdated Terms of Use on Website (min iOS version 13.5)"

@MohamedZaghdoudi
You are doing something wrong in the way that you are creating new branches, so you are getting commits from other changes in your new branch.
I think you need to get some help or additional training so that you don't keep making the same mistakes.
You should be starting out with an up-to-date copy of the master branch, for instance:
git switch master
git fetch upstream
git merge upstream/master
git switch -c your-new-branch name

Then do your new edits.
Please remove the commits:

https://github.com/corona-warn-app/cwa-website/pull/3267/commits/87b3f38731b6712583193a67e23e3c5bebc96059
https://github.com/corona-warn-app/cwa-website/pull/3267/commits/95285440b350ae9186652460fa12c0bd2bb1e815

from this branch.

@MohamedZaghdoudi
Well done for completing this!


Email automated action

Since you have email already enabled on the system, is it possible to create an automated action that when a task is moved into a particular column or is closed, that you can send an email.  The text of the email to be provided as part of the action (could be dependant on the column etc).  An example of this is, we completed development and SIT testing, but before we can move into UAT testing, we need to ensure a specific form is filled in.  So, when we move task into UAT column we can email (someone - either the action owner, or a specific email) with text that we provide.

With the current development version, a new automatic action allow you can send a task by email when a task is moved to another column or closed.

Is it possible to send email to task owner? I can't find this option. Only user list or Unassigned.
(gitcloned project several hours ago)


Security issue: how to avoid payload attacks for the HTTP server

To avoid payload attacks for the HTTP server, a configurable variable to limit the size of HTTP client body size is needed for each HTTP request. But I do not find it out from the HTTP module and all its sub-modules.
There are HTTP::MAX_REQUEST_LINE_SIZE for request line and HTTP::MAX_HEADERS_SIZE for headers already but none for request body yet.
The well-known web frameworks Kemal, Amber and Lucky in Crystal all use the std library for HTTP request parsing, and then they all have this security issue.
I think this is a very important issue but it seems that no one has talken about it yet. Do I miss something for this issue?

How others fix this issue?

Nginx: http://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size
Apache: https://httpd.apache.org/docs/2.4/mod/core.html#limitrequestbody
Django: https://docs.djangoproject.com/en/3.1/ref/settings/#data-upload-max-memory-size
Flask: https://flask.palletsprojects.com/en/1.1.x/patterns/fileuploads/#improving-uploads
...

The HTTP::Server API does not read the request body into memory, it stops reading from the client socket after the headers.
So this is the job of whatever is reading the request body into memory.
Arguably stdlib parsing things (JSON, YAML, HTTP::Formdata etc) could support an easy way to limit how much data they read from an IO, but this can already also quite easily achieved by wrapping the request body IO into an IO::Sized.

It might still be a good idea to install a limit in HTTP::Server as a sensible default. Users of HTTP::Server API probably don't address this issue when consuming the request body.
Wrapping the request IO in IO::Sized seems like a good idea. Plus a config value which allows for fine tuning (and disabling).

So, what's a reasonable default limit?

Also IO::Sized just pretends the stream is shorter than it actually is. How do we signal consumers that they've run into the limit?

Yeah, maybe IO::Sized won't work for this and we need a custom solution. Shouldn't be hard to do.

How do we signal consumers that they've run into the limit?

It should probably raise when a consumer tries to read over the limit.

Should HTTP::Server signal back to the client that it breached the limit or is that the consumer's job?

HTTP::Server enforces this limit so it probably should also be responsible to communicate to the client. But if the handler rescues the exception and sends a custom response, the server wouldn't.

If HTTP::Server signals, how can the consumer override that behavior?

What behaviour are you referring to? The signalling or the limiting itself? The limit can be set and disabled via server configuration. The signalling on enforced limit can't be overridden. You have to disable the limit instead.

So, of course my actual point here is that there's a lot of application specific decision in here.

I don't think so. Standalone webservers/load balancers like apache, nginx, traefik implement this. So it surely can work without application specific decisions. The only application specific setting is enabling this and the actual limit value.

Of course, if you need more specific behaviour like dynamic limits based on request properties, you'll have to deactivate the server-wide configuration and implement your custom limit enforcement.

This is very easy to implement or design: just check how Go (or any other web server) does it 😉

It seems Go's net/http server doesn't have this by default. You need to use MaxBytesReader in your handler.

No need to have IO::Sized. As said in https://github.com/crystal-lang/crystal/issues/9901, if body is exposed as an IO, it will be very simple to limit the body size with IO#gets(limit) : String?.

@j8r If you have an endpoint where you allow users to upload a file, you will most likely be using IO.copy(...) to stream the request to the file. If the file is large enough (the client could just be streaming infinitely) then it will fill out your disk.
I think the way Go does it is great. You can control this in every endpoint you need it, probably only those that do stream a request somewhere...

To clarify, that's why IO.copy has this handy optional argument to limit the length that's being copied.

Shouldn't hitting a limit indicate an error rather than writing a truncated (possibly corrupt) file?


Add ability to configure timeouts for chainsync protocol

Fixed by https://github.com/cloudstruct/go-ouroboros-network/pull/179


MODE-2555 Adds the support of expressions to the  WF configuration element

This also introduces a more generic ability for a repository configured in WF to use the CL of another external (dependant) module when resolving configuration elements such as initial content files and node type files.
For example, configuring a repository as:
<repository name="externalDependenciesRepository" depends-on="deployment.external-dependencies.war"/>

means that the repository will be able to locate & load node-types and initial content files located in the external-dependencies.war webapp

Looks good.


Update README.md

The setup instructions links was pointing to https://docs.microsoft.com/azure/active-directory/verifiable-credentials/ via aka.ms/didfordevs. This is primary landing page and the setup instructions are actually at https://docs.microsoft.com/azure/active-directory/verifiable-credentials/verifiable-credentials-configure-tenant.
Purpose

...

Does this introduce a breaking change?

[ ] Yes
[ ] No

Pull Request Type
What kind of change does this Pull Request introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

How to Test

Get the code

git clone [repo-address]
cd [repo-name]
git checkout [branch-name]
npm install

Test the code

What to Check
Verify that the following are valid

...

Other Information

The correct link is aka.ms/vcsetup

Ok good to know where is a shorter link for the setup. I have updated in PR.


When creating a connection object using a sessionid the session is disconnected on connection object close

Recently we added the ability to create a pymapd connection object using an existing sessionid. This was primarily so that we could use the sessionid to validate the user against OmniSci for integration with external services.
Currently when a connection object is torn down, it sends a disconnect to OmniSci which invalidates the session. While this is the logical thing to do when the session is created using a username and password, if the session was not created with the current connection object, it should not be disconnected when the current connection object closes.

Proposed fix in https://github.com/omnisci/pymapd/pull/243


Last line truncated

hello ,
i get last line truncated for each file and appended to the next file created
i think it's due to the max size
any idea on how to get that fixed ?
Thanks

The logic is that every call to Write, lumberjack checks the length of the write and if it would put the log file over the max, then we roll the log and instead make that write to the new log file.
Unfortunately, some loggers may make multiple calls to Write for one logical log message.  There's not much lumberjack can do, because it doesn't know when a log message starts or ends. It just has a Write method.
What is writing to lumberjack? If there's a way to know when a log message starts and when it finishes, you could write a wrapper for lumberjack that buffers the writes and consolidates them into one call to lumberjack's Write method.

Yeah got it you are right
In faact i'am using now a scanner as input in order to fixe that problem
Thanks for your comment
I am closing the bug

Works as disigned


Navigation View

Hi Sergey
I have a shy question.
When I try to build a navview with the documenation I get a result which looks like that:

As you see is the icon in a wrong "column".
Code:
(http://scratchpad.io/determined-stream-4140)

Hi
https://codepen.io/olton/pen/YepZWB

Maybe not latest version?

I see now where the issue is...
It had problem with the PHP.
But its solved :)


Worklist UI enhancements

There are two new designs for the UI regarding

Investigational use only
Buttons for opening sutdy

Investigational use only

[ ] https://github.com/OHIF/Viewers/issues/3916

Buttons for opening sutdy (zeplin: Component - Launch button)
FYI We won't target the checkbox series for now, it will be in future

All these are in Zeplin

We just release the OHIF 3.8, you can find more details here https://ohif.org/release-notes/3p8/
If you still encounter this issue in 3.8, please re-open this.


feat: Store JSON array path in schema.json

feat: Store JSON array path in schema.json
schema.json

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#1116  👈
#1109 : 1 other dependent PR (#1110 )
#1108
#1107
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @Cobalt0s and the rest of your teammates on  Graphite


Two profiles (merge?)

Describe the issue
For some time I have two separate profiles, one linked to<EMAIL_ADDRESS>and other linked to<EMAIL_ADDRESS>I would like them to be merged<EMAIL_ADDRESS>being the second email address or similar). If I need to do it by myself, please let me know what must I do. Thank you very much.
Code of Conduct

[X] I agree to follow the IETF's Code of Conduct

This merge is complete.


Broken test in JS A&DS Destructuring via rest elements

Describe the Issue
The last test requires the use of the variable name shorterList to collect the remaining array elements in the destructuring but this is not mentioned in the instructions.
Affected Page
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/es6/use-destructuring-assignment-with-the-rest-parameter-to-reassign-array-elements
Your code
function removeFirstTwo(list) {
  // Only change code below this line
  const [,,...arr] = list; // Change this line
  // Only change code above this line
  return arr;
}

This code is functionally correct and should pass but it does not use shorterList as the variable name and thus will not pass the last test.
Expected behavior
Either remove the restriction on the variable name or make it clear that the variable name shorterList must be used.
Screenshots
No response
System
N/A
Additional context
No response

OK, after several (and I mean several) cache and hard refreshes I am now seeing that the starter code does indeed use shorterList as the variable name. I guess I was stuck on the older version that used arr instead. So we can close this issue. Sorry for the bother.


hi man, i dont not know where ur mask_generator.py  is

hi man, i dont not know where ur mask_generator.py  is

Hi,karfly:
thanks for your work, I want to kow where is mask_generator.py ?

Yes，where is the package called MaskGenerator


added null checking to loadingContainerState in dismiss method to prevent loading not getting remove

if the below code is called consecutively, the loading container will not be removed due to loadingContainerState is null and the completer future will not be completed.
EasyLoading.show();
EasyLoading.dismiss();

null checking is added to loadingContainerState in dismiss method to prevent loading not getting remove

thanks

any chance to prevent from remove on click of hardware back button


Scrolling distance

Does this issue occur when all extensions are disabled?: Yes

VS Code Version: 1.57.1
OS Version: Windows 10 21H1

Steps to Reproduce:

Load up a project with a big enough source tree that it becomes scrollable
Scroll

The scroll distance is about 6 lines, which is more than I have configured. The default (and config for me) in Windows is 3 lines per tick, so it goes too far. Not every mouse has a smooth-scrolling wheel (in fact, probably almost no mouse) and so it's not possible to use the wheel to scroll less than what is already too much.
This is especially annoying in small panels, like Timeline, which I like to keep small.
This illustrates the issue perfectly:

See how it's impossible to keep track of where I was, because it scrolls a whole "screen" at a time. Yes, I could make it bigger, but I'm not going to. And no I will not enable smooth scrolling for accessibility reasons (another thing VScode still hasn't solved and still requires a hack). Well, kudos to you if you can follow where the scroll position goes, but I really can't.
In bigger panels it's less of a problem, but the problem is still there: it mismatches my setting. And should I set the scroll distance to 3 lines consciously (rather than leaving it at its default), it's no longer a mismatch but rather it disrespects a systemwide preference.
This problem exists in Insiders as well. And I'm pretty sure this problem has existed in some form or another since the very first releases of VScode. Sometimes I'm frankly just really annoyed not to be able to scroll correctly, so I have to grab the scrollbar and drag that around. I can't believe no one has picked up this issue in the past, seeing how bleedingly obvious is that scrolling distance is way too much.
Guys and gals, blokes and birds, it is time to get this issue FIXED.
So the question is: what needs to happen for this issue to get fixed, and how do we make that happen?

https://github.com/microsoft/vscode/issues/102261

@joaomoreno Thanks for closing this issue with not even a single word, even though I took so much time to prepare it, and explain it as well as I could 🤨
On top of that, to quote myself:

So the question is: what needs to happen for this issue to get fixed, and how do we make that happen?

Remains unanswered 😑

Given it's in the Backlog, there are currently no plans to allocated time to implement it. The good news is that there are two very cool labels attached to it: help wanted and good first issue. This means that we're willing to accept a PR for it and it's actually not a very hard issue to work on.
Please refer to our Wiki for more information on all of this:

https://github.com/microsoft/vscode/wiki/How-to-Contribute#contributing-to-visual-studio-code
https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions
https://github.com/microsoft/vscode/wiki/Development-Process


BedrockAnthropic3ChatModel surfaces usage information

Expected Behavior
I would expect the ChatResponse to have the metadata populated, if possible, which it is in this case.
public ChatResponse call(Prompt prompt) {
        Anthropic3ChatBedrockApi.AnthropicChatRequest request = this.createRequest(prompt);
        Anthropic3ChatBedrockApi.AnthropicChatResponse response = this.anthropicChatApi.chatCompletion(request);
        return new ChatResponse(List.of(new Generation(((Anthropic3ChatBedrockApi.MediaContent)response.content().get(0)).text())), {something here that converts the metadata in response into a ChatResponseMetadata});
    }

Current Behavior
Currently there is no way to get usage data other than talking with Anthropic3ChatBedrockApi directly and not using the BedrockAnthropic3ChatModel class, this involves duplicating most of the code in the ChatModel class.
Context

I am trying to do simple chat completions with Sonnet and I need to know the input and output token counts. I can re-write the logic in the ChatModel class and directly use the API class but it seems wasteful. The lack of passing this metadata negates all the usefulness of this class for me.

Hello @bronwyn-damm - has this been resolved in more recent versions of Spring AI?

We are using the 1.0.0-SNAPSHOT version. Is there a newer version? If not, this is still occurring.


An error occurred

relate #704
It turns out that this error occurs whenever "https://raw.githubusercontent.com/" is not accessible in the visitor's region.
An error occurred
An error occurred while trying to get the latest status details.

You can try again after a while.

The only solution I can think of at the moment is to add a configuration item to allow users to use the GitHub proxy site.

Yes, we have a configuration to overwrite the default GitHub URL, but since Upptime is heavily tied to GitHub, the best solution is to use a GitHub proxy URL.


add a FAQ section

currently,  meowform does not have any faq section on the home page. it would be great to have a faq section on the home page.
what do you need to?

[ ]  make a faq div and inside that, there would be a faq component
[ ] in faq component you would be a passing question and the answer to it.
[ ]  currently, I don't have any idea for a design but you can suggest some in the discussion section

may i ?

tell me content  inside FAQ section , or i can start by my own .

tell me content inside FAQ section , or i can start by my own .

currently we just need the component in the faq section not content for now

okay 👍!

Hey ! actually i made it ...
but im not able to push it right now . it showing error like this -
remote: Permission to tewarig/MeowForm.git denied to kushalShukla-web.
fatal: unable to access 'https://github.com/tewarig/MeowForm.git/': The requested URL returned error: 403
could you pls help me... :)

you need to fork this repo before pushing the commit and  then make changes to it and make a pr .
here is a youtube video to help you.
https://youtu.be/rgbCcBNZcdQ

dude i have done with faq section but i did't added styling . u can see ..

at the top

can you please make a pr

hey ! i have done with pull request but it is not showing here .wtf ..
can u pls help me. :(

i did't made any separate branch for that....

hey im new in this git , can u pls tell me what that vercel conflict means , code is running perfect in my pc...


lang tester

Added integration with lang_tester tests

LGTM apart from the redundant "compiler" stage.

compiler stage removed :point_right: 7acc83e4bdfd01dbb175f93fe5a2020af5e8cfac

Can we hold a bit with this PR? I found more tests that I would like to rewrite as lang_tester.

squashed 7ca79095683b34201602056e99b7b4e176b4c498

bors r+


Laravel 5.8:   The option "user_context" does not exist.

Hi,
I am getting this error when trying to use with Laravel 5.8.
Symfony \ Component \ OptionsResolver \ Exception \ UndefinedOptionsException
The option "user_context" does not exist. Defined options are: "attach_stacktrace", "before_breadcrumb", "before_send", "capture_silenced_errors", "context_lines", "default_integrations", "dsn", "enable_compression", "environment", "error_types", "excluded_exceptions", "http_proxy", "in_app_exclude", "integrations", "logger", "max_breadcrumbs", "max_value_length", "prefixes", "project_root", "release", "sample_rate", "send_attempts", "send_default_pii", "server_name", "tags".
Then when trying to reinstall wi composer I am getting a similar error
In OptionsResolver.php line 747:
The option "user_context" does not exist. Defined options are: "attach_stac
ktrace", "before_breadcrumb", "before_send", "capture_silenced_errors", "co
ntext_lines", "default_integrations", "dsn", "enable_compression", "environ
ment", "error_types", "excluded_exceptions", "http_proxy", "in_app_exclude"
, "integrations", "logger", "max_breadcrumbs", "max_value_length", "prefixe
s", "project_root", "release", "sample_rate", "send_attempts", "send_defaul
t_pii", "server_name", "tags".
Thank you,

you need to remove this line from your config/sentry.php
'user_context' => false,

Jep that's right (thanks @sporchia), check out #203, #185 for some more context if needed.
(check out the docs in case you are missing the user context that config option provided).

Thank you. Actually the full process goes like this.

update config/sentry.php file
run php artisan config:cache command
3 update composer json file (l
"laravel/framework": "5.8.*",
"sentry/sentry-laravel": "^1.0.0",
)
4 run composer update command.

For people coming here in the future:
Do not use php artisan config:cache when installing packages (or when developing locally). It will with 99.9% certainty cause issues, use it in production like environments only!
To make sure you don't have it active use php artisan config:clear to remove the cache file or remove the bootstrap/cache/config.php file manually.

I solve this:
rm config/sentry.php
php artisan vendor:publish --provider="Sentry\Laravel\ServiceProvider"


Zoompan option fps not found

Hi,
When I tried the script or the standalone full command I got this error:
[Parsed_zoompan_3 @ 0x2504060] Option 'fps' not found
[AVFilterGraph @ 0x24ff960] Error initializing filter 'zoompan' with args 'z=if(eq(on,1),1,zoom+0.000417):x=0:y=ih-ih/zoom:fps=60:d=60*4:s=1280x800'
Error initializing complex filters.
Option not found
Any ideas?

To get around this, I just commented out the old line #211, copy/paste and removed the fps option from the updated command:
#filters << "zoompan=z='#{z}':x='#{x}':y='#{y}':fps=#{options.fps}:d=#{options.fps}*#{options.slide_duration_s}:s=#{width}x#{height}"
filters << "zoompan=z='#{z}':x='#{x}':y='#{y}':d=#{options.fps}*#{options.slide_duration_s}:s=#{width}x#{height}"

Since the fps option is documented, this sounds like an old version of ffmpeg. It's probably too late to check now (I missed notifications), but in absence of the option, removing it as suggested by @snblackout would be a workaround.


DEV-15168 - Updates examples to use latest modules

:tada: This PR is included in version 2.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


[ISSUE #131] Support Snapshot for Dledger

Test List

[x] Unit testing, functional testing of each interface.
[x] Test loading snapshot after node restart.
[x] Test starting the DLedger under normal mode without a state machine.
[x] Test if the number of reserved snapshots meets the specified requirements.
[x] Test if previous snapshots can be loaded once the current one fails.

Hi, @hzh0425  @mxsm  @TheR1sing3un Plz help review this PR if you have time.

Hi~Please resolve the conflicts if you have time~


Memory limit on transport page

it would be nice to add pagination on the transport queue  page /admin/messenger/transport. we handle large data, so the queues are long. and i get memory limit error when i try to check the status

I can add pagination but unfortunately it won't help. The entire list will still be loaded into memory because the Symfony contract doesn't support an offset - only a limit: https://github.com/symfony/symfony/blob/fafbbfac181fda0850548317f342da354cf9bbf2/src/Symfony/Component/Messenger/Transport/Receiver/ListableReceiverInterface.php#L32

maybe we set limit to 500 or something, at least we would be able to load the latest 500 message

maybe we set limit to 500 or something, at least we would be able to load the latest 500 message

That seems reasonable.


Could not get token from system. Do you want to try the browser authentication method?

If I use compiled apk it work without any errors
If I build from source code I get "Could not get token from system. Do you want to try the browser authentication method?"
Why?

I am having this problem too.  It happens when I am trying to connect to my gmail on a Note9.  Please help.


Add thin arrows to problematic chars

Elixir (therefore, EEx) uses thin arrows extensively.
<%= for item <- items do %>
  <mj-text></mj-text>
<% end %>

<%= case var do %>
  <% nil -> %>
    <mj-text></mj-text>
  <% var -> %>
    <mj-text></mj-text>
<% end %>

Hi @jayjun
Thanks for this PR !

Hello @jayjun and @iRyusa
Adding the thin right arrow to DANGEROUS_CHARS has an undesired side effect as it breaks HTML comments and therefore the postrender functions. Given this MJML document:
<mjml>
    <mj-body>
        <mj-container background-color="#eee">
            <mj-raw>
                <!-- some comment -->
            </mj-raw>
            <mj-section>
                <mj-column>
                    <mj-button >
                        Don't click me!
                    </mj-button>
                </mj-column>
            </mj-section>
        </mj-container>
    </mj-body>
</mjml>

Rendered with MJML 3.3.3:

Rendered with MJML 3.3.4:

A possible fix would be to add a space in front of the thin right arrow: ' ->'
What do you think? Any chance we can get this fixed in 3.3.5? ;)

Well nice catch, a 3.3.5 is totally needed here, if you want to do a PR on that so we can credit you ?


Feature/MaterialSystem: Add command to log registered parts, materials, etc

Description:
For debugging purposes it can be really helpful to have commands that prints all registered parts and materials and whatnot.
What exactly do I want?

Register a /ct registered_materials command
Register a /ct registered_parts command
Register a /ct registered_materialParts command
Register a /ct registered_partTypes command

Thank you for reading this

Simple enough


GH-26394: [Python] Don't use target_include_directories() for imported target

Which issue does this PR close?
Closes #26394
Rationale for this change
We require at least CMake 3.5 for now.
What changes are included in this PR?
Add workaround for CMake < 3.11.
Are these changes tested?
Yes.
Are there any user-facing changes?
No.

Closes: #26394

@github-actions crossbow submit verify-rc-source-python-*

@github-actions crossbow submit verify-rc-source-python-*

@github-actions crossbow submit verify-rc-source-python-*

@github-actions crossbow submit verify-rc-source-python-*

+1


Oracle / SelectDecorator.php don't manage TableIdentifier object

Hi,
I use a TableIdentifier object to discribe my table, all others components manage it but Zend\Db\Sql\Platform\Oracle\SelectDecorator.php. On processJoins() method, the call to $platform->quoteIdentifier() generate an issue "Object of class Zend\Db\Sql\TableIdentifier could not be converted to string ..."
I have bypassed it commenting the method processJoins() to use the implemented one from Select class.
To reproduce:
with Oracle plateform :
$select = new Select();
$table = new TableIdentifier('TABLE1','SCHEMA1');
$table2 = new TableIdentifier('TABLE2','SCHEMA2');
$select->from($table);
$select->join($table2, "TABLE2.ID = TABLE1.TABLE2ID", array('FIELD_TABLE2'), 'left');
$resultSet = $this->tableGateway->selectWith($select);
Regards,
Gaël

This issue has been closed as part of the bug migration program as outlined here - http://framework.zend.com/blog/2016-04-11-issue-closures.html


V0.3 UI dev guide

Coverage remained the same at 73.183% when pulling 932573a2eb911d94f26275e6c7fc9fc9101da7eb on V0.3_ui_dev_guide into c402bb1ef42bb35fc8af11d521fc7678f5a08782 on V0.3.


[centos] add centos 7 arm64 AMI

What does this PR do?
Add CentOS 7 arm64 AMI
Which scenarios this will impact?
VM
Motivation
We do have one AMI for arm64 CentOS 64, let's use it!
Additional Notes

/merge

/merge


PositionChanged event does not fire in PCL iOS project, works for Android

If you are creating an issue for a BUG please fill out this information. If you are asking a question or requesting a feature you can delete the sections below.
Failure to fill out this information will result in this issue being closed. If you post a full stack trace in a bug it will be closed, please post it to http://gist.github.com and then post the link here.
Bug Information
Version Number of Plugin: 4.1.2
Device Tested On: iPhone 7+ (11.0.3)
Simulator Tested On: VS 2017 iPhone 7
Version of VS: Microsoft Visual Studio Enterprise 2017 Version 15.4.2
Version of Xamarin: <IP_ADDRESS> (70936af)
Versions of other things you are using:
VisualStudio.Mac   1.0
Mac Extension for Visual Studio
Xamarin   <IP_ADDRESS> (70936af)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.
Xamarin.Android SDK   <IP_ADDRESS> (HEAD/c2a33d8ea)
Xamarin.Android Reference Assemblies and MSBuild support.
Xamarin.iOS and Xamarin.Mac SDK   <IP_ADDRESS> (12e80e0)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.

Expected Behavior
Listen for changes in location and fire event PositionChanged.
Actual Behavior
Listens for changes in location but never fires the PositionChanged event
Code snippet
public static IGeolocator loc = CrossGeolocator.Current;
loc.DesiredAccuracy = 30;
loc.PositionChanged += async (sender, args) =>
                {
                    if (!locIsBusy)
                    {
                        locIsBusy = true;
                        try
                        {
                            Models.LocationAddress address = null;

                            // Do not do this when the app sleeps, it will use too much battery.
                            if (App.ApplicationState != Enums.ApplicationStateEnum.OnSleep)
                            {
                                var status = await CrossPermissions.Current.CheckPermissionStatusAsync(Permission.Location);
                                if (status == PermissionStatus.Granted)
                                {
                                    if (App.Setting != null && App.Setting.UseGPS)
                                    {
                                        Position position = args.Position;// await CrossGeolocator.Current.GetPositionAsync(10000);
                                        if (position != null)
                                        {
                                            position.Latitude = Double.Parse(position.Latitude.TruncateDecimalDigitsToString(7));
                                            position.Longitude = Double.Parse(position.Longitude.TruncateDecimalDigitsToString(7));
                                            App.myPosition = position;
                                            try
                                            {
                                                address = await PerformReverseGeocode(position);
                                            }
                                            catch { address = null; }
                                            App.myAddress = address;
                                        }
                                        else
                                        {
                                            App.myPosition = null;
                                            App.myAddress = null;
                                        }
                                    }
                                    else
                                    {
                                        App.myPosition = null;
                                        App.myAddress = null;
                                    }
                                }
                                else
                                {
                                    App.myPosition = null;
                                    App.myAddress = null;
                                    if (App.Setting != null && App.Setting.UseGPS)
                                    {
                                        // Code here to tell user that they need to allow the use of Location services.
                                    }
                                }
                            }
                        }
                        catch (Exception ex) { LogException(ex); }
                        finally
                        {
                            locIsBusy = false;
                        }
                    }
                };

                loc.PositionError += (sender, args) =>
                {
                    App.AddLog("GeoLocation error: " + args.Error.ToString());
                };
await App.loc.StartListeningAsync(TimeSpan.FromSeconds(5), 10, true, new Plugin.Geolocator.Abstractions.ListenerSettings
                            {
                                ActivityType = Plugin.Geolocator.Abstractions.ActivityType.AutomotiveNavigation,
                                AllowBackgroundUpdates = true,
                                DeferLocationUpdates = true,
                                DeferralDistanceMeters = 1,
                                DeferralTime = TimeSpan.FromSeconds(1),
                                ListenForSignificantChanges = true,
                                PauseLocationUpdatesAutomatically = false
                            });

Screenshotst

ListenForSignificantChanges = false

ListenForSignificantChanges = false, did not correct the issue.

ListenForSignificantChanges = false, did not correct the issue.

ListenForSignificantChanges = false, did not correct the issue.

On IOS you must meet two condition DeferralTime  and DeferralDistanceMeters, then event trigger. And remember to update to at least 4.1.2 or <IP_ADDRESS>. Geolocator on mine still work good on IOS.

@calbert52 How are you testing your app for location changes? Could you elaborate the issue?
Did @kingnguyen1993 explanation help you?

No, @kingnguyen1993 explanation did not resolve my issue. I could not spend any more time on trying to get it to work using a lamda event handler on PositionChanged to update my current location. Now testing for location change once every 20 seconds using GetPostionAsync() on a thread.
My code snippet above from Nov 7th should show how I was coding it. My testing was done on a real iOS device, testing in the Xamarin iOS simulator remoted to the PC produced faults. Testing on the iOS simulator on the mac did not produce any faults, but the PositionChanged event never fired.

Hi guys,
i'had the same problem on ios in background mode and i solved with a parallel trick under the ios project.
I create a CLLocationManager under ios project witch start listening position changes (StartMonitoringSignificantLocationChanges) only when the app enter in background and this wake up the plugin calling my location changes under the pcl.
You can my code in attachment
IOS_BG_POSITION.txt


How did you generate 'universal_depot.far' file?

Just wanted to understand how the 'universal_depot.far' file has been created?
Where are the .grm file for all those FSTs in the 'universal_depot.far'  file?
Thank you,
Surendra

The .grm files are not in the far file and they haven't been opensourced yet.

Thank you,
Is there a document explaining each rule/fst in 'universal_depot.far' file?

So unfortunately we don't have a document like that, what you might be able to do is refer to the names of the rules in [1] (to get some idea)
1 - https://github.com/google/language-resources/blob/master/su/textnorm/verbalizer/universal_rules.grm


Plain for loop faster than @turbo

Consider the following:
using LoopVectorization, StrideArraysCore, BenchmarkTools

randn_stridearray(size...) = StrideArray(randn(Float32, size...), static.(size))

y = randn_stridearray(64, 32, 256);
x = randn_stridearray(64, 32, 256);
b = randn_stridearray(32);

function foo!(y, x, b)
    @turbo for i in axes(y, 1), c in axes(y, 2), n in axes(y, 3)
        y[i, c, n] = x[i, c, n] + b[c]
    end
    return nothing
end

function foo2!(y, x, b)
    for n in axes(y, 3)
        @turbo for i in axes(y, 1), c in axes(y, 2)
            y[i, c, n] = x[i, c, n] + b[c]
        end
    end
    return nothing
end

I would expect foo2 to perform slightly worse or the same as foo.
However, the result is
julia> @btime foo!($y, $x, $b)
  153.958 μs (0 allocations: 0 bytes)

julia> @btime foo2!($y, $x, $b)
  51.583 μs (0 allocations: 0 bytes)

What is happening here? Am I doing something wrong?
If it matters: I am running this on an Apple M1.
Edit:
A plain for loop is about as fast as foo2!:
julia> function foo3!(y, x, b)
           for n in axes(y, 3)
               for c in axes(y, 2)
                   for i in axes(y, 1)
                       y[i, c, n] = x[i, c, n] + b[c]
                   end
               end
           end
           return nothing
       end
foo3! (generic function with 1 method)

julia> @btime foo3!($y, $x, $b)
  52.375 μs (0 allocations: 0 bytes)

julia> function foo_debug(y, x, b)
           return LoopVectorization.@turbo_debug for i in axes(y, 1), c in axes(y, 2), n in axes(y, 3)
               y[i, c, n] = x[i, c, n] + b[c]
           end
           return nothing
       end
foo_debug (generic function with 1 method)

julia> ls = foo_debug(y,x,b);

julia> LoopVectorization.choose_order(ls)
([:c, :n, :i], :n, Symbol("##undefined##"), :i, 4, -1)

It was ordering the loops c, n, i, probably to try and minimize the amount of times you reload from b.
So foo! does use fewer CPU instructions than foo2!:
julia> using LinuxPerf

julia> foreachf(f::F, N::Int, arg1::A, args::Vararg{Any,K}) where {F,A,K} = foreach(_ -> Base.donotdelete(f(arg1, args...)), 1:N)
foreachf (generic function with 1 method)

julia> @pstats "(cpu-cycles,task-clock),(instructions,branch-instructions,branch-misses), (L1-dcache-load-misses, L1-dcache-loads, cache-misses, cache-references)" begin
         foreachf(foo!, 10_000, y, x, b)
       end
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
┌ cpu-cycles               6.11e+09   33.3%  #  4.0 cycles per ns
└ task-clock               1.54e+09   33.3%  #  1.5 s
┌ instructions             7.56e+08   66.7%  #  0.1 insns per cycle
│ branch-instructions      2.38e+07   66.7%  #  3.2% of insns
└ branch-misses            2.47e+04   66.7%  #  0.1% of branch insns
┌ L1-dcache-load-misses    6.69e+08   33.3%  # 200.9% of dcache loads
│ L1-dcache-loads          3.33e+08   33.3%
│ cache-misses             1.26e+05   33.3%  #  0.0% of cache refs
└ cache-references         6.51e+08   33.3%
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

julia> @pstats "(cpu-cycles,task-clock),(instructions,branch-instructions,branch-misses), (L1-dcache-load-misses, L1-dcache-loads, cache-misses, cache-references)" begin
         foreachf(foo2!, 10_000, y, x, b)
       end
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
┌ cpu-cycles               6.11e+09   33.3%  #  4.0 cycles per ns
└ task-clock               1.53e+09   33.3%  #  1.5 s
┌ instructions             8.91e+08   66.7%  #  0.1 insns per cycle
│ branch-instructions      2.60e+07   66.7%  #  2.9% of insns
└ branch-misses            3.13e+04   66.7%  #  0.1% of branch insns
┌ L1-dcache-load-misses    6.57e+08   33.3%  # 157.4% of dcache loads
│ L1-dcache-loads          4.17e+08   33.3%
│ cache-misses             7.52e+04   33.3%  #  0.0% of cache refs
└ cache-references         6.55e+08   33.3%
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

I'm running them 10_000 times to get a decent sample.
Note that foo2! took 8.91e4 instructions per call, while foo! required only 7.56e4.
@turbo doesn't seem to properly be considering that traversing the memory of y[i, c, n] and x[i, c, n] in the c, n, i order is potentially more costly than n, c, i.
"Potentially", FWIW,
julia> @btime foo!($y, $x, $b)
  149.690 μs (0 allocations: 0 bytes)

julia> @btime foo2!($y, $x, $b)
  148.181 μs (0 allocations: 0 bytes)

julia> @btime foo3!($y, $x, $b)
  148.989 μs (0 allocations: 0 bytes)

julia> @btime foo4!($y, $x, $b) # foo3! but with `@inbounds`
  149.214 μs (0 allocations: 0 bytes)

Notice the pitiful 0.1 insns per cycle from my above @pstats reports. That means the CPU is only executing one instruction every 10 clock cycles. This is really bad, this CPU is theoretically capable of up to 4 instructions/cycle, 40x higher.
Why so few instructions/cycle? Because in all 4 versions of the code, the CPU spends all of its time waiting on memory.
Memory bandwidth is the bottleneck, so what the CPU is doing/how much work it has to do is totally irrelevant.
Still, it's the same amount of memory being loaded, and I don't see that foo! (doing an order meant to minimize the number of instructions needed) is any worse than the others (which traverse in a theoretically nicer order).
Unfortunately, LinuxPerf is Linux-only.
But I can reproduce the timings you reported:
julia> @btime foo!($y, $x, $b)
  133.917 μs (0 allocations: 0 bytes)

julia> @btime foo2!($y, $x, $b)
  51.708 μs (0 allocations: 0 bytes)

julia> @btime foo3!($y, $x, $b)
  55.083 μs (0 allocations: 0 bytes)

julia> @btime foo4!($y, $x, $b)
  55.083 μs (0 allocations: 0 bytes)

julia> function foo_debug(y, x, b)
           return LoopVectorization.@turbo_debug for i in axes(y, 1), c in axes(y, 2), n in axes(y, 3)
               y[i, c, n] = x[i, c, n] + b[c]
           end
           return nothing
       end
foo_debug (generic function with 1 method)

julia> ls = foo_debug(y,x,b);

julia> LoopVectorization.choose_order(ls)
([:c, :n, :i], :n, Symbol("##undefined##"), :i, 4, -1)

The M1 has much higher memory bandwidth than most x64 CPUs, including mine.
Hence it's able to do much better here, at least given the nicer order.
If I shrink the size of the arrays on my x64 computer (the first one I benchmarked above), making them 8x smaller, the code runs about 30x faster, as memory becomes less of an issue:
julia> y32 = randn_stridearray(64, 32, 32);

julia> x32 = randn_stridearray(64, 32, 32);

julia> @btime foo!($y32, $x32, $b)
  5.777 μs (0 allocations: 0 bytes)

julia> @btime foo2!($y32, $x32, $b)
  4.614 μs (0 allocations: 0 bytes)

julia> @btime foo3!($y32, $x32, $b)
  5.007 μs (0 allocations: 0 bytes)

julia> @btime foo4!($y32, $x32, $b)
  5.084 μs (0 allocations: 0 bytes)

and now I can also see on this computer that foo! seems to be worse than foo2!.
If you want to try fiddling with it:
https://github.com/JuliaSIMD/LoopVectorization.jl/blob/2776b6dc5b8b0cd83d66a11f612019efabb3905a/src/modeling/determinestrategy.jl#L808
See the 10.0 there?
Try making it larger.
That's a coefficient on how heavily to penalize iterating over loops in a bad order. Increasing it to 50.0 seems to fix it:
julia> LoopVectorization.choose_order(ls)
([:n, :c, :i], :c, Symbol("##undefined##"), :i, 4, -1)

Now n would be the outer-most loop. You'd have to actually force recompilation after making a change like that (e.g. restarting Julia, or editing _turbo_!, such as by commenting out or in a useless line like 1+1).
With that, I now get:
julia> @btime foo!($y32, $x32, $b)
  4.620 μs (0 allocations: 0 bytes)

for the size(..., 3) == 32 example.
I can make a PR, or you're welcome to play with it to try and find a heuristic that works well.

BTW, have you seen VectorizedRNG.jl?
On the M1:
julia> vrandn_stridearray(size...) = StrideArray(randn(local_rng(), Float32, size...), static.(size))
vrandn_stridearray (generic function with 1 method)

julia> @benchmark randn_stridearray(64, 32, 256)
BenchmarkTools.Trial: 2344 samples with 1 evaluation.
 Range (min … max):  1.969 ms …   3.901 ms  ┊ GC (min … max): 0.00% … 44.07%
 Time  (median):     2.078 ms               ┊ GC (median):    0.00%
 Time  (mean ± σ):   2.132 ms ± 267.936 μs  ┊ GC (mean ± σ):  2.60% ±  7.65%

  ▃  ▇█▂
  █▇▆████▇▆▅▅▃▆▃▃▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▃▅▅▃▄▆▅▄▆▅▃▃▁▁▁▁▃▄▇▇▆▅▅▄▆▆ █
  1.97 ms      Histogram: log(frequency) by time      3.54 ms <

 Memory estimate: 2.00 MiB, allocs estimate: 6.

julia> @benchmark vrandn_stridearray(64, 32, 256)
BenchmarkTools.Trial: 6752 samples with 1 evaluation.
 Range (min … max):  622.333 μs …   3.232 ms  ┊ GC (min … max): 0.00% … 77.36%
 Time  (median):     708.791 μs               ┊ GC (median):    0.00%
 Time  (mean ± σ):   739.788 μs ± 165.578 μs  ┊ GC (mean ± σ):  4.59% ± 10.53%

  ▄   ▃█▆▂                                                    ▁ ▁
  █▅▃▃████▇▄▅▄▄▄▄▃▅▃▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▃▁▃▇▇▅▄▅█▆█▆▅▁▁▁▁▃▃▃▃██ █
  622 μs        Histogram: log(frequency) by time       1.55 ms <

 Memory estimate: 2.00 MiB, allocs estimate: 10.

On my Linux x64 machine with AVX512:
julia> vrandn_stridearray(size...) = StrideArray(randn(local_rng(), Float32, size...), static.(size))
vrandn_stridearray (generic function with 1 method)

julia> @benchmark randn_stridearray(64, 32, 256)
BenchmarkTools.Trial: 2349 samples with 1 evaluation.
 Range (min … max):  2.053 ms …   4.074 ms  ┊ GC (min … max): 0.00% … 37.17%
 Time  (median):     2.092 ms               ┊ GC (median):    0.00%
 Time  (mean ± σ):   2.126 ms ± 196.034 μs  ┊ GC (mean ± σ):  1.46% ±  5.89%

   █▅
  ▃███▇▄▄▁▄▁▃▃▃▄▆▅▁▁▁▁▁▃▄▃▁▁▁▃▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▄▃▆▅▅▅▅▅▅▄▃ █
  2.05 ms      Histogram: log(frequency) by time      3.29 ms <

 Memory estimate: 2.00 MiB, allocs estimate: 6.

julia> @benchmark vrandn_stridearray(64, 32, 256)
BenchmarkTools.Trial: 10000 samples with 1 evaluation.
 Range (min … max):  195.751 μs …   2.561 ms  ┊ GC (min … max):  0.00% … 68.61%
 Time  (median):     202.900 μs               ┊ GC (median):     0.00%
 Time  (mean ± σ):   235.975 μs ± 202.390 μs  ┊ GC (mean ± σ):  12.61% ± 12.55%

  █                                                             ▁
  ██▆▄▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▃▆▃▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▃▇██ █
  196 μs        Histogram: log(frequency) by time       1.48 ms <

 Memory estimate: 2.00 MiB, allocs estimate: 2.

Thanks for the elaborate answer!
I'll try playing with that constant.
But yeah, I am trying to train a convolutional neural network for chess on the CPU and memory seems to be quite the bottleneck. I'll have to check with perf on my linux machine.
I haven't tried VectorizedRNG but that could be extremely useful for a different project I am working on (sampling a distribution using random-walk metropolis).

But yeah, I am trying to train a convolutional neural network for chess on the CPU and memory seems to be quite the bottleneck. I'll have to check with perf on my linux machine.

Uses batch sizes small enough to fit in cache should help, if possible.
Have you looked at SimpleChains.jl at all?
It could use more documentation and API need works (especially around memory management), but it does have a convolutional network example that performs much better than Flux or PyTorch.

I just tested it: Smaller batch sizes are indeed faster! (That's exactly the opposite behavior I see compared to pytorch+GPU).
I first looked at SimpleChains.jl and the performance of that convinced me that I could reach better training speed with my use case on the M1's CPU compared to pytorch with the GPU backend.
However, I needed features such as zero-padding and residual connections which SimpleChains does not support.
Some parts of SimpleChains seemed somewhat convoluted (pun intended). You seem to be doing some nontrivial stuff for memory management, right? In any case, in order to get a better intuition what the backward passes looked like for my network, I decided to roll my own forward+backward passes on top of StrideArrays+LoopVec.


No jump after logging in unless refreshed again

Bug Report
No jump after logging in unless refreshed again
Description
After clicking login

Wait for a while but it still won’t jump

Unless refreshed again

Please reopen another bug report with the template filled out. This bug report does not help developers, nor contributors pinpoint any issue.