create_node() corrupts the DOM of an existing node that previously used the ID of the new node

I'm developing a dynamically editable data structure using JsTree to visualise it and to choose a data node to edit.
I noticed that after calling create_node() to create a 2nd node using an auto-generated ID it can corrupt older nodes in the same branch if those old nodes previously used the new node ID. This means the new node can't be selected because the anchors of the old node are wrong.
Example situation with DOM outputs:
Add a new node, it has an auto-generated ID of "new-field-1"...

            new-field-1

Now change the ID using set_id() of this field to anything, such as "address"...

            address

This is good. The old ID, "new-node-1", is nowhere to be seen.
Add a new node, it has an auto-generated ID of "new-field-1" because we had changed the ID the previous node using this ID.

            address

            new-field-1

Somehow the first node we had changed the ID of to "address" has somehow gotten lots of "new-field-1" bits back. This makes the 2nd node, that should really have ID "new-node-1", un-selectable because bits of the 1st node also have this same ID.
This happens when create_node() for the 2nd node finishes.
Tried on versions 3.2.1 and 3.3.4.

Here is a demo: http://jsfiddle.net/2kwkh2uL/6420/
As you can see the anchor ID and the aria-labelledby are never changed. And each new node is generated sequentially - there is no way to generate the same ID (if relying on jstree's ID generation).
What you are actually doing is generating and reusing your own IDs (reusing ones that you have changed), like so:
http://jsfiddle.net/2kwkh2uL/6421/
While I recognize this as an issue, I will not be fixing it for now - it is way too limited and easy to avoid. I am spending what little time I have on preparing v.4 for release. I will get round to this eventually but in the mean time - either make sure your IDs are not reused, or rely on jstree's IDs.

Thanks for your feedback. I've found a workaround for this based on what you've said.
As I know what the new node's ID will be in advance I call create_node() first without specifying an id property in the node object, and then call set_id() to give it the intended ID after using the response from create_node().
This appears to work OK. -- The only difference is that I found the sorting wasn't called immediately after, but it did get called a couple of clicks around to do other things in the tree.

easy to avoid

Please, tell me how to avoid this issue when creating node with "contextmenu" plugin.
Thanks a lot!


Node Plugin Causing RVM Issues

This line on node Plugin is placing a reference to node bin directory at the beggining of PATH variable:
https://github.com/revans/bash-it/blob/master/plugins/available/node.plugin.bash#L4
First of all, i don't think this line is correct because it's using relative paths on PATH variable, but i'm not a Node.js expert nor bash expert. so i'm not sure if it's valid or not.
But the main point is that placing it on the begging of PATH variable is causing RVM to display this warming:
Warning! PATH is not properly set up, '/usr/local/rvm/gems/ruby-1.9.3-p547/bin' is not at first place,
         usually this is caused by shell initialization files - check them for 'PATH=...' entries,
         it might also help to re-add RVM to your dotfiles: 'rvm get stable --auto-dotfiles',
         to fix temporarily in this shell session run: 'rvm use ruby-1.9.3-p547'.

And even if you try to execute the recommended command, it will not be solved because the node plugin will continue to place the value on the begging of PATH.
The obvious solution is to invert the order of the PATH:
#from
export PATH=./node_modules/.bin:$PATH
#to
export PATH=$PATH:./node_modules/.bin

But since i'm not sure of the validity of the relative path itself i'm not submiting a PR directly, if you think this is the best solution and want me to send the PR just let me know.
I found this StackOverflow question that may clarify a bit more the problem: http://stackoverflow.com/questions/9679932/how-to-use-package-installed-locally-in-node-modules
Thanks.

This was solved in #1404
@nwinkler This can be closed.

Thanks for the update, closing this now!


tests: add opae sub directory function to cmakelist

Does the RPM build process fail without this? I'm wondering why we didn't see an issue with this before now?

Create RPM script  remove ras/hello_events/object_api  test cases, opae_xpz_fun() ignores folder during build


Added shebang line to build.sh

Category
This change is exactly one of the following (please change [ ] to [x]) to indicate which:

[ ] a bug fix (Fix #...)
[ ] a new Ripper
[x] a refactoring
[ ] a style change/fix

Description
Added shebang line to build.sh
Testing
Required verification:

[ ] I've verified that there are no regressions in mvn test (there are no new failures or errors).
[ ] I've verified that this change works as intended.

[ ] Downloads all relevant content.
[ ] Downloads content from multiple pages (as necessary or appropriate).
[ ] Saves content at reasonable file names (e.g. page titles or content IDs) to help easily browse downloaded content.

[x] I've verified that this change did not break existing functionality (especially in the Ripper I modified).

Optional but recommended:

[ ] I've added a unit test to cover my change.

Looks good to me

Coverage increased (+0.6%) to 33.868% when pulling cf414e1d44d6546e3390fd0f2122296135b9e5c4 on Gaboso:master into 26b90f8287f87adbd980cea0444b64baac4a845d on RipMeApp:master.

Coverage increased (+0.6%) to 33.868% when pulling cf414e1d44d6546e3390fd0f2122296135b9e5c4 on Gaboso:master into 26b90f8287f87adbd980cea0444b64baac4a845d on RipMeApp:master.


middleware: etcd

Add a middleware that can talk to etcd, just like SkyDNS

todo:

[ ] stubzones
[ ] porting all previous test (in progress)
[ ] bugfixes, code cleanup

sooo, sometimes the tests fails with
--- FAIL: TestLookup (0.36s)
	setup_test.go:192: answer 3 should have a Target of "a.server1.prod.region1.skydns.test.", but has "b.server1.prod.region1.skydns.test."
	setup_test.go:120: ;; opcode: QUERY, status: NOERROR, id: 25332
		;; flags: qr aa rd ra; QUERY: 1, ANSWER: 7, AUTHORITY: 0, ADDITIONAL: 3

		;; QUESTION SECTION:
		;*.region1.skydns.test.	IN	 SRV

		;; ANSWER SECTION:
		*.region1.skydns.test.	300	IN	SRV	10 14 0 sub.server1.
		*.region1.skydns.test.	300	IN	SRV	10 14 0 unresolvable.skydns.test.
		*.region1.skydns.test.	300	IN	SRV	10 14 80 sub.server2.
		*.region1.skydns.test.	300	IN	SRV	10 14 8080 b.server1.prod.region1.skydns.test.
		*.region1.skydns.test.	300	IN	SRV	10 14 8080 b.server6.prod.region1.skydns.test.
		*.region1.skydns.test.	300	IN	SRV	10 14 8080 c.sub.region1.skydns.test.
		*.region1.skydns.test.	300	IN	SRV	10 14 8080 dev.server1.

		;; ADDITIONAL SECTION:
		b.server1.prod.region1.skydns.test.	300	IN	A	<IP_ADDRESS>
		b.server6.prod.region1.skydns.test.	300	IN	AAAA	::1
		c.sub.region1.skydns.test.	300	IN	A	<IP_ADDRESS>

	setup_test.go:164: answer 0 should have a Header Name of "a.server1.prod.region1.skydns.test.", but has "b.server1.prod.region1.skydns.test."
	setup_test.go:127: ;; opcode: QUERY, status: NOERROR, id: 25332
		;; flags: qr aa rd ra; QUERY: 1, ANSWER: 7, AUTHORITY: 0, ADDITIONAL: 3

		;; QUESTION SECTION:
		;*.region1.skydns.test.	IN	 SRV

		;; ANSWER SECTION:
		*.region1.skydns.test.	300	IN	SRV	10 14 0 sub.server1.
		*.region1.skydns.test.	300	IN	SRV	10 14 0 unresolvable.skydns.test.
		*.region1.skydns.test.	300	IN	SRV	10 14 80 sub.server2.
		*.region1.skydns.test.	300	IN	SRV	10 14 8080 b.server1.prod.region1.skydns.test.
		*.region1.skydns.test.	300	IN	SRV	10 14 8080 b.server6.prod.region1.skydns.test.
		*.region1.skydns.test.	300	IN	SRV	10 14 8080 c.sub.region1.skydns.test.
		*.region1.skydns.test.	300	IN	SRV	10 14 8080 dev.server1.

		;; ADDITIONAL SECTION:
		b.server1.prod.region1.skydns.test.	300	IN	A	<IP_ADDRESS>
		b.server6.prod.region1.skydns.test.	300	IN	AAAA	::1
		c.sub.region1.skydns.test.	300	IN	A	<IP_ADDRESS>

FAIL

For some reason *.region1.skydns.test.  300 IN  SRV 10 14 8080 c.sub.region1.skydns.test. get included, which seems wrong.

Ah wait sub should be included - which makes sense. So b.server1.prod.region1.skydns.test. is included but (strangely) a.server1.prod.region1.skydns.test. has dropped out of the set. Replacing it with the c.sub ones... #hmmm

Had changed an optimization (bx in etcd.go) to not include n.Key which made it do the wrong thing. (Might actually be a bug in SkyDNS as well...)

see #e62eb2c

nodata responses and integration tests left.

All fixed, closing in favour of integration tests in #100


[AH-30] Extend code sourcemaps

Description
Extend code sourcemaps to have ability debug production build.
Notes
(TBD)
Link(s): (...)
Example(s): (...)
Other: (...)

Production build now also use production-friendly sourcemaps.
There is no point in hiding them


Streaming output

React + Ts
Hello, How to output messages in a stream rather than waiting for the entire object to be received?

Through the API?  https://github.com/jmorganca/ollama/blob/main/docs/api.md#generate-a-completion
stream: true

Through the API? https://github.com/jmorganca/ollama/blob/main/docs/api.md#generate-a-completion stream: true I thought that was the default, tho.

It's just that no matter how I try to make a query, I always wait for the full object to be retrieved. The stream: true | false flag has no effect on the stream receiving data, it always waits for the full object.
Only the structure of the response changes.

Hey @r8bywork, sounds like you are having trouble with updating the display in javascript while the response is being streamed back? Here is some sample typescript that should help.
https://github.com/jmorganca/ollamajs/blob/af0bb4eafd72a0587c31d1c31d14c517d05c1cb5/src/index.ts#L40
Then you can call this function and handle each streamed object that is returned like this:
import { Ollama } from "ollama";

const ollama = new Ollama();

for await (const token of ollama.generate("llama2", "What is a llama?")) {
	process.stdout.write(token);
}

Hey @BruceMacD. I tried this method, but I just get errors after I do const ollama = new Ollama()
TypeError: Cannot destructure property 'stat' of 'import_node_fs.promises' as it is undefined. at from.js:8:9
Module "buffer" has been externalized for browser compatibility. Cannot access "buffer.Blob" in client code. See http://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
Cannot access "node:fs.promises" in client code. See http://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.

I'm having the same problem.  When I run client.py it doesn't produce output until the entire response has been generated.  I would like to see each word as it is generated the way I can see them when I run ollama run mistral from the command line.  In fact, I would like to use the say command to speak each word as it is output.  I tried doing this using subprocess, but that doesn't work either.

I found python-simplegenerate/client.py.  This logic works perfectly.  Here's a program called conversation.py.  This worked badly using curl, but it works find usin the requests library.  Thank you so much for everything.
import argparse
import time
import requests
import json
def generate_response(prompt, context):
r = requests.post('http://localhost:11434/api/generate',
json={
'model': 'llama2',
'prompt': prompt,
'context': context,
},
stream=True)
r.raise_for_status()
for line in r.iter_lines():
    body = json.loads(line)
    response_part = body.get('response', '')
    print(response_part, end='', flush=True)

    if 'error' in body:
        raise Exception(body['error'])

    if body.get('done', False):
        return body['context']

def run_conversation(conversation_duration, initial_prompt):
context = []  # the context stores a conversation history, you can use this to make the model more context aware
start_time = time.time()
while time.time() - start_time < conversation_duration:
    # Agent's turn
    context = generate_response(initial_prompt, context)
    time.sleep(6)

    if time.time() - start_time >= conversation_duration:
        break

if name == "main":
# Get the command-line arguments
parser = argparse.ArgumentParser(description="Process two arguments.")
parser.add_argument("--duration", type=int, help="Duration of the conversation in seconds")
parser.add_argument("--initial_prompt", type=str, help="Initial prompt for the conversation")
# Parse command-line arguments
args = parser.parse_args()

if args.duration is None or args.initial_prompt is None:
    print("Both --duration and --initial_prompt are required.")
else:
    # Use the arguments in your program logic
    duration = args.duration
    initial_prompt = args.initial_prompt

    run_conversation(duration, initial_prompt)

This issue seems to be resolved. There's also a new ollama Python library you can use.


Create members page

Create members page, which filled with comments related metrics

https://github.com/hellowin/kanca/pull/75


some questions

HI!
first of all thank u
i see u r supporting fp16 too, my question is will u convert the main model to fp16 too? for lower size
does it support cpu ?
and could u please make it compatible with animatediff somehow? maybe by integrating the extension to the core of webui it will be possible
kind regards

@johnclaw check it out buddy, maybe it will be easier for u to install now

@Amin456789 By lower size do you mean smaller disk space? This might be something the authors would be interested. For now I do not have the plan to do a fp16 model conversion.
Cpu integration is planned: https://github.com/0xbitches/sd-webui-lcm/issues/5

yes i mean lower size for better cpu and ram usage, it has a safetensor in their huggingface page, maybe we can f16 it in webui model converter extension
anyway,  the fastsdcpu is being updated and it supports offline mode too, can u take a look at it please?


Improve server code coverage

Check all sockets close status

Codecov Report

Merging #57 into master will increase coverage by 6.37%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master      #57      +/-   ##
==========================================
+ Coverage   18.51%   24.88%   +6.37%
==========================================
  Files          16       16
  Lines         675      675
==========================================
+ Hits          125      168      +43
+ Misses        526      479      -47
- Partials       24       28       +4

Impacted Files
Coverage Δ

internal/allocation/allocation_manager.go
74.57% <0%> (+23.72%)
:arrow_up:

internal/server/server.go
11.65% <0%> (+11.65%)
:arrow_up:

internal/allocation/allocation.go
47.27% <0%> (+11.81%)
:arrow_up:

internal/ipnet/ipv4.go
53.57% <0%> (+14.28%)
:arrow_up:

Continue to review full report at Codecov.

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


New Contents component

This aims to create the new Folder Contents experiences from the Quanta design:
https://www.figma.com/file/YpaRSKjFcFaAkVYnTSVGuz/Volto-UI-–-Quanta?type=design&node-id=1780-92&mode=design&t=7hDOUQseZOVHafWJ-0

Closing in favor of #6025


docs: fix typo in proxy.md

Done.
Btw, when I follow the English tutorial, TypeError: No "host" occurred. Looks like it has been renamed:
https://github.com/TooTallNate/node-socks-proxy-agent/blob/master/src/index.ts#L28

Yep: https://github.com/TooTallNate/node-socks-proxy-agent/pull/97

Should I modify them as well?

Yes please! That'd be great, thanks

Done.
Previous commits are created by editing on GitHub one by one, which might be too ugly. Squashing requested.

Thank you! We squash everything anyway :)


Add no-store header

The no-store response directive indicates that any caches of any kind (private or shared) should not store this response.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control#no-store
before merging:

[ ] check to see if this prevents caching of the stylesheet

this prevents the stylesheet from caching


Collective solar thermal should be added to the Overmorgen Energysheet/factsheet

At this moment solar thermal is only connected in the factsheet to individual heating.

Fixed with https://github.com/quintel/etmodel/pull/3447#event-3607505073 and https://github.com/quintel/etsource/pull/2327#event-3607460392


[CDC] Known incompatible setting issues after upgraded to new versions

[ ] enable-old-value got remove after v7.4.0. Source: https://asktug.com/t/topic/1022449. Issue: TODO
[ ] partition = "index-value" is not recognized after upgraded from v6.1.7 to v7.5.0. Source: https://asktug.com/t/topic/1019467 . Issue: https://github.com/pingcap/tiflow/issues/10707

enable-old-value related issue: https://github.com/pingcap/tiflow/issues/10711

/severity moderate

/found community


run with CPU

What change should take place to run the train on CPU?

I think, installing tensorflow package instead of tensorflow-gpu should be enough.


Use proto map for references.

It's pretty neat that protobuf supports maps.
I'm not entirely sold if this is a good idea or not. The benefit is that
the storage format maps directly to how the data is used, no duplicate
filnames are stored. On the other hand, I think Ranges.ranges is kind
of an awkward interface.

BTW, how much does it reduce the size of the index?

References #39

I haven't forgotten this PR! Been busy last days cleaning up our v2 scalameta release. In particular, I'm working on https://github.com/scalameta/scalameta/issues/822 which will make it possible to jump to definition on sugars such as implicit conversions, inferred types, invisible apply/unapply


Do not attempt to install kustomize if package is missing

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


[Bug] When the canvas's size is 16:9, world cloud will throw an error

Version
latest
Link to Minimal Reproduction
none
Steps to Reproduce
resize the chart from 1:1 to 16:9
Current Behavior

Expected Behavior
fix it
Environment
- OS:
- Browser:
- Framework:

Any additional comments?
No response

Will fixed in VGrammar, https://github.com/VisActor/VGrammar/issues/115


Backport Enterprise Fixes to Workroom

This PR pulls in several fixes we discovered while working to ship StackStorm Enterprise. In this PR, we have:

Fixes for Hubot env disappearing
Fixes for update-system breaking hostname/env variables.
Mistral working more than 1 run
SSL Certificates properly generated
Fixes to Puppet bootstrap env script
Migrations!

Tested out, looks good. going to let it roll!


Animated errorbars and updated test cases

Addresses/Fixes: [issue #](link to issue)
Overview
Short description of what this resolves
Changes
List of changes introduced

One
Two
Three

If UI is changed, include image/gif(s)

Looking good, thanks!


[api] Adding Querying tests

Adding Querying rspecs
Improved run_get usage
Removed leading blank lines after describes/contexts

https://trello.com/c/p76x7lcu/19-api-complete-rspecs-for-v2-0-rest-api

:+1:


[Enhancement]: To display which player's turn is next and which player won in tic-tac-toe game

Do you want to have the enhancement of existing game ? 😀 Describe yourself..
Nothing is displayed about whose turn is next and who won or if it is a tie when the game is completed int the tic-tac-toe game.
Describe the solution you'd like
By making some changes in CSS , I can solve the above mentioned problem of displaying turns and wins/draw
Select program in which you are contributing
GSSoC24
Code of Conduct

[X] I follow CONTRIBUTING GUIDELINE of this project.

Hey @meetarora10 !
Thank you for raising an issue 💗
You can self assign the issue by commenting /assign in comment 😀
Make sure you follow CODE OF CONDUCT and CONTRIBUTING GUIDELINES 🚀
Don’t Forget to ⭐ our GameZone🎮
Make sure you join our Discord🕹

/assign

Hey @meetarora10 ! Thank you so much for your raising the issue💗
It’s all yours, you can come anytime again and make some contributions! 🚀
Alone, we can do little, but together we can do so much! 😇


 The linked SO-post also suggests NOT to use it below the linked answer. Maybe use the activity by default and use the application context if the activity is null? @m1ga, @prashantsaini1 and @jquick-axway, I hope it's okay to tag you here. It would be very interesting to get your feedback on this!

Can you reproduce it? I wonder if it is not just trying to load it in an old window so just a proxy null check at the beginning would be enough so it won't continue to load the image.
Or is it really in the current open window?

In my opinion, you should always use the activity the ViewProxy is attached to (ie: the Ti.UI.Window it's attached to). That said, note that when the parent activity/window closes, the activity the proxy references will be in a destroyed state. It sounds like this crash is happening when you set the "image" property after the window has been closed? If so, then maybe you just need to guard against this by calling the activity's isDestroyed() method and just return out when it's in this state since the view isn't being displayed anymore.

It happens when switching between light- and dark mode via the Android setting, really interesting behavior. Maybe that's the underlaying issue instead.

Switching between dark/light theme causes the activity to be destroyed and recreated with the new "context" containing the new theme info. This is how it works natively. This causes all of the destroyed activity's views to be released and new views will be created for the new activity with the new theme. In Titanium, the proxies will be kept alive, but they're forced to recreate a new view. Regarding "av.imageview", an ImageViewProxy instance's getView() method will be called a 2nd time when the theme changes because it's forced to create a new view.
@hansemannn , it sounds like your app is attempting to change the "av.imageview" image property during this theme switch. Just put the if-check in the view and you'll be fine because there is no point in updating a view that belongs to a destroyed activity. Your property change is still stored by the proxy and will be respected when a new view has been created for the new activity.
I hope what I said above makes sense.

Thank you Josh, that was really helpful and makes sense!

I added a null-check to the activity, but unfortunately, it's not null, just "destroyed". Or do you mean I should do an if-check of the activity in Titanium?

Did you try to use https://developer.android.com/reference/android/app/Activity#isDestroyed() ?
And also perhaps check if proxy is null as mentioned earlier. Otherwise it could crash at the proxy.getActivity()

@m1ga is right. You need to add a check for isDestroyed() because its Glide that's throwing an exception due to using a destroyed activity.
if ((activity == null) || activity.isFinishing() || activity.isDestroyed()) {
	return;
}


Powershell integrated console command input errors (System.ArgumentOutOfRangeException)

Issue Type: Bug
Fill the PowerShell integrated console buffer (DIR \WINDOWS\SYSTEM32 for instance) and then proceed to type a command longer than the console window so that it has to scroll, and an error will occur "System.ArgumentOutOfRangeException": The value must be greater than or equal to zero and less than the console's buffer
size in that dimension.
Parameter name: top
Actual value was 3000.
at System.Console.SetCursorPosition(Int32 left, Int32 top)
I found this while trying to use the 'F8' run selection, as it would trigger this.  This happens right away in a new instance of VSCode with integrated PowerShell console.  It also happens when trying to recall previous commands that are longer than the console window is wide.  This is made worse if the current path is pretty long, making the command prompt take up most of the line.  Running "clear" allows the command to finally be entered without receiving the error.
There are also some text display overwrite issues when recalling commands longer than the window is wide, specially if the number of lines of the recalled command is more than the number of lines visible in the console window.
VS Code version: Code 1.23.0 (7c7da59c2333a1306c41e6e7b68d7f0caa7b3d45, 2018-05-03T16:44:55.614Z)
OS version: Windows_NT x64 10.0.16299

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5 CPU       U 430  @ 1.20GHz (4 x 1197)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onnative_gpu_memory_buffers: disabled_softwarerasterization: unavailable_softwarevideo_decode: enabledvideo_encode: enabledvpx_decode: unavailable_softwarewebgl: enabledwebgl2: enabled

Memory (System)
3.68GB (1.54GB free)

Process Argv
C:\Program Files\Microsoft VS Code\Code.exe

Screen Reader
no

VM
0%

Extensions (2)

Extension
Author (truncated)
Version

mssql
ms-
1.3.1

PowerShell
ms-
1.7.0

This is either an issue with the powershell extension (https://github.com/PowerShell/vscode-powershell) or winpty (see https://github.com/Microsoft/vscode/issues/45693)


Merge pull request #1 from dangdangdotcom/2.0.6

Coverage decreased (-0.08%) to 91.908% when pulling 0a3693850c51651ef4cb417952eedb7e1eae78bb on istone110:master into 8283acf01548222f39f7bfc202a8f89d27728e6c on dangdangdotcom:master.

Coverage decreased (-0.08%) to 91.908% when pulling 0a3693850c51651ef4cb417952eedb7e1eae78bb on istone110:master into 8283acf01548222f39f7bfc202a8f89d27728e6c on dangdangdotcom:master.


Typo in https://kubernetes.io/docs/concepts/overview/components/

This is a...

[ ] Feature Request
[ x] Bug Report

Problem:
Typo in https://kubernetes.io/docs/concepts/overview/components/  on second line  in second paragraph under Master Components section.
The word "user" in "master components on the same VM, and does not run user containers on this VM"
should be "use".
Proposed Solution:
Correct typo.
Page to Update:
http://kubernetes.io/docs/concepts/overview/components/

I can correct it an push.

I was wrong. There is no typo.


Microk8s HA Cluster seems unstable

I'm trying to run a 4 x Pi4 cluster.
Was previously running on 1.18, but I was using latest/stable and things started going wonky this week - issues with pods talking to those on different nodes. When I started looking into things, I noticed it had upgraded to 1.19 at some point. The two may be related, but may not.
In the process of trying to work out what was going on, things got a whole lot worse:
microk8s status said that microk8s wasn't running.
microk8s inspect said everything was fine.
microk8s kubectl said it couldn't connect.
I didn't have a whole lot on my cluster at this point, and everything important is on PVs, so decided to rebuild my cluster, redeploy etc, so I snap removed microk8s from each node, re-installed, checked HA was enabled (because it seems to be a good idea!), re-added the nodes and things were still screwy, but in a different way.
I use lens to manage my cluster and I noticed that lens kept getting disconnected about every 5-10 minutes. I tried deploying something and the deployment was created but no pods were every spun up... I tried looking at logs etc but couldn't find anything obvious so decided to start properly from scratch and reinstalled ubuntu 20.04 on the 4 sd cards.
I've now reinstalled microk8s on each node, checked HA is enabled, added a few other features and added all the nodes... and it still doesn't seem happy.
I'm regularly getting this (though not as often as before I reinstalled from scratch!):

plus one of my nodes, which initially showed as ready, has turned "unhappy" (the warnings are because the node has change to "unready"):

I decided to get take a screenshot of just using kubectl and whilst writing this, the same has happened to node 3:

inspection report from node 1:
inspection-report-20200927_143617.tar.gz
inspect report from node 2:
inspection-report-20200927_143534.tar.gz

@VaticanUK thanks for reporting the issue.  It seems like the apiserver on the failing node is crashing with segmentation fault.  Its similar to the one reported earlier.
https://github.com/ubuntu/microk8s/issues/1598


Ignore tracing for certain Urls /hostname

Is your feature request related to a problem? Please describe.
We are using a capture lambda handler decorations, but unfortunately our lambda is making a large amount of api calls to ec2.amazon.com, which we dont want any trace(segements) for.  Since a large amount of  trace subsegment is generate due to this api call( that happens in loop), we run out of xray limit for  a signel trace which is 500Kb .
https://docs.aws.amazon.com/general/latest/gr/xray.html#limits_xray.
Describe the solution you'd like
If we could avoid generating trace segements for a known URL /hostname as described here https://github.com/aws/aws-xray-sdk-python#ignoring-httplib-requests, while using tracer , we would be able to get our trace limit under the limit and still use tracer. Its possible for us to use xray sdk directly and start tracing only methods we wanted but, it would be very useful to have such ignore capability in tracer too.

@heitorlessa - would the UX be something like this?
from aws_lambda_powertools import Tracer

tracer = Tracer()
# Uses `from aws_xray_sdk.ext.httplib import add_ignored as xray_add_ignored`
tracer.add_ignored(hostname="ec2.amazon.com")  # or add_httplib_ignored ?

def ec2_api_calls():
    return "suppress_api_responses"

@tracer.capture_lambda_handler
def handler(event, context):
    for x in long_list:
        ec2_api_calls()

alternatively your suggestion is also useful to suppress the responses:
from aws_lambda_powertools import Tracer

tracer = Tracer()

@tracer.capture_method(capture_response=False)
def ec2_api_calls():
    return "suppress_api_responses"

@tracer.capture_lambda_handler(capture_response=False)
def handler(event, context):
    for x in long_list:
        ec2_api_calls()

I think it needs something more explicit for naming, like
tracer.ignore_endpoints(hostnames=[...])
But to make it future proof, it'd be interesting to see how and whether OpenTelemetry has this capability too.

@heitorlessa @sudhirpandey - a PR is up for this https://github.com/awslabs/aws-lambda-powertools-python/pull/910

this is now merged - it'll be available in the next release!

hey @sudhirpandey thanks a lot for the feature request, @michaelbrewer for the implementation - this is available in the 1.24 release


Errors using lib.d.ts from 1.0

Using lib.d.ts from 1.0, against 1.5 you get errors for missing types:

error TS2318: Cannot find global type 'ClassDecorator'.
error TS2318: Cannot find global type 'MethodDecorator'.
error TS2318: Cannot find global type 'ParameterDecorator'.
error TS2318: Cannot find global type 'PropertyDecorator'.
error TS2318: Cannot find global type 'TypedPropertyDescriptor'.

The missing types are all related to decorators, and for users not using decorators the error should be suppressed.

Why has it not complained over TemplateStringsArray?

we only look for TemplateStringsArray if you are in e --t=es6


Possible to have a ViewPager version?

Thanks for such a gorgeous effect.
Would it possible to implement a ViewPager version? That is to say, the DetailActivity holds a ViewPager+Fragments.

I have completed that https://github.com/DanteAndroid/BestPracticeWithGlideSharedTransition


algorithm question

are there any plans to support other algorithms, for example, some like the SDBM hash? http://www.cse.yorku.ca/~oz/hash.html#sdbm
u32 sdbm_hash(const u8* data, u32 len, u32 init)
{
    u32 crc = init;

    while (len--)
        crc = (crc * 0x1003f) + *data++;

    return (crc);
}

yeah that's possible, it should also be possible to use the generalized version where 0x1003f is made into a parameter (which would also include djb2), while still being able to recover it efficiently with delsum reverse. i can't say i'll get to it soon though.
are there other algorithms you had in mind?

for sure, a generic alternative that can cover other variations (sdbm, djb2) would be great.
Regarding other algorithms, I usually dig around save-game checksums for save-game editing, and there are a bunch of simple checksums that could be added too.
There's the "add" family, generally referenced as ADD, WADD, DWADD (8-bit, 16-bit, 32-bit), these are super simple, just a sum of bytes, like:
Add:
    while (len--)
        add += (uint8_t) *data++;

WAdd:
    len = len/2;
    while (len--) {
        wadd += (uint16_t) *data;
        data += 2;
    }

DWAdd:
    len = len/4;
    while (len--) {
        dwadd += (uint32_t) *data;
        data += 4;
    }

Note: some variations use signed int8, int16, int32 instead of unsigned, or read values as big-endian, and some other variations are all substractions instead of sums, like while (len--) { sub -= (uint8_t) *data++; }.
I understand if you don't have time right now, but it would be great to have such nice reversing tool when working with save-game data. 😄

some good news about Add, WAdd and DWAdd: i think you should be able to get them already as modsum width=8, modsum width=16 wordsize=16 and modsum width=32 wordsize=32, and adding in_endian=big would make them use big-endian values (not setting the module parameter lets it default to 0, which is the same as no modulus at all).
haven't thought about the sign stuff, so i will definitely implement that when i get around to that.

thanks for the feedback!


C++: Remove unreachable IR

Note: This PR depends on PR #597. Once that PR is merged, most of the commits in this PR will disappear. I suggest reviewing only the most recent commits in this PR, starting with bcf5cac.
This change removes any IR instructions that can be statically proven unreachable. To detect unreachable IR, we first run a simple constant value analysis on the IR. Then, any ConditionalBranch with a constant condition has the appropriate edge marked as "infeasible". We define a class ReachableBlock as any IRBlock with a path from the entry block of the function. SSA construction has been modified to operate only on ReachableBlock and ReachableInstruction, which ensures that only reachable IR gets translated into SSA form. For any infeasible edge where its predecessor block is reachable, we replace the original target of the branch with an Unreached instruction, which lets us preserve the invariant that all ConditionalBranch instructions have both a true and a false edge, and allows guard inference to still work.
The changes to SSAConstruction.qll are not as scary as they look. They are almost entirely a mechanical replacement of OldIR::IRBlock with OldBlock, which is just an alias for ReachableBlock.
Note that the constant_func.ql test can determine that the two new test functions always return 0.
Removing unreachable code helps get rid of some common FPs in IR-based dataflow analysis, especially for constructs like while(true).

I believe I've addressed all feedback.

LGTM. Now we're just waiting for Jenkins and #597.


[IDEA] Add tooltips with timestamp to every time-related component

Problem to solve
Relative times are great, but sometimes it's helpful to know the timestamp.
Proposal
A tooltip on every time-related UI element (e.g. relative times and absolute times).
This would probably come in the form of a Time component.

which components are you thinking of? for onchain events, there are links to etherscan so users could always check the transaction itself (though not the smoothest UX if you're doing that a lot)

These are the ones that I'd immediately go for:

location
screenshot

FC config

FC banner

activity feed

It could be a browser-native tooltip, like GitHub does:


Support telemetry using Scarf

Closes: #214

Codecov Report
Attention: Patch coverage is 98.46154% with 1 line in your changes missing coverage. Please review.

Project coverage is 88.88%. Comparing base (6f31846) to head (b0526ad).

Files with missing lines
Patch %
Lines

dagfactory/settings.py
90.90%
1 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #250      +/-   ##
==========================================
+ Coverage   87.71%   88.88%   +1.17%
==========================================
  Files           6        8       +2
  Lines         586      648      +62
==========================================
+ Hits          514      576      +62
  Misses         72       72

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


Add Docker Buildx

Add Docker Buildx, it's already shipped with docker 19.03 but it seems impossible to use because the docker daemon doesn't have experimental support enabled.
https://github.com/docker/buildx

Hello, @NinoFloris
Do you need to add Docker Buildx to all images , or to something separate image (MacOS, Ubuntu, etc)
Please specify the Virtual environments affected to your request

Hi @NinoFloris! I am closing this issue in favor of https://github.com/actions/virtual-environments/issues/690 that is prioritized and put to our To Do list.
If you can specify the required OS that we should install Docker BuildX to, please let me know and I'll add it to https://github.com/actions/virtual-environments/issues/690.
Also, please, feel free to reopen this one if you have any concerns.
Thanks!


Replace tsk_recover with mount and copy?

To retain file system dates

Work to replace in branch https://github.com/timothyryanwalsh/cca-diskimageprocessor/tree/dev-mountandcopy. Needs to be tested against larger sample of disks.

mount command currently guesses file system type. Worth considering if -t should be hardcoded for each of valid options instead.

Resolved with merge https://github.com/timothyryanwalsh/cca-diskimageprocessor/pull/27


Create 0000-01-02-bobby-webdev2021.md

hello

created a branch, created a file and made a commit, and opened a pull request


Bump Dart SDK to 1.22.0-dev.10.1.

Fixes: #7736
Unblocks #7734 (migration to using covariant syntax).
@Hixie @abarth @tvolkert
FYI @leafpetersen for strong mode suppressions

What's the story on the strong_mode_not_instantiated_bound suppressions?

What's the story on the strong_mode_not_instantiated_bound suppressions?

My understanding is that this warning is still a work in progress.  In any event @bwilkerson and I looked at a proper fix and I got shy since it would likely involve some invasive changes.
Maybe @leafpetersen can guide us to the light?

Four new // ignores will cost us $8012 (as measured by our technical debt benchmark).

Thanks for all the guidance @leafpetersen !
@Hixie : do we have a next-step?  It'd be great to land this so you all can start playing with covariants (right @sethladd 😉   ?)  Are there any tracking bugs I can add to the ignores to provide more context for future cleanup?  (Alternatively, I could link back to this PR I suppose...)

Testing covariant is not a P0 for us, but when the new SDK lands for Flutter, we'll be happy to try it out.

Filed https://github.com/dart-lang/sdk/issues/28580 to track the relaxation on the restriction on type bounds.

The latest engine version requires Dart SDK 1.22.0-dev.10.1. So, this is currently blocking the engine roll (https://github.com/flutter/flutter/pull/7777), which includes fixes for Flutter on Windows.
What is the path forward on bumping the Dart SDK?

Closing this in favour of #7791.


macOS Sonoma 14.0 iPadOS 17 Xcode 15 - profile not installing

Is there an existing issue for this?

[X] I have searched the existing issues
[X] I have read the guide to filing a bug

Steps to reproduce
macOS Sonoma 14.0
iPadOS 17.1
run flutter run
Expected results
App should run as earlier on ipadOS 16.6.1
Actual results
App is not running it's showing error like this-
No Provisioning Profile was found for your project's Bundle Identifier or your
device. You can create a new Provisioning Profile for your project in Xcode for
your team by:
1- Open the Flutter project's Xcode target with
open ios/Runner.xcworkspace
2- Select the 'Runner' project in the navigator then the 'Runner' target
in the project settings
3- Make sure a 'Development Team' is selected under Signing & Capabilities > Team.
You may need to:
- Log in with your Apple ID in Xcode first
- Ensure you have a valid unique Bundle ID
- Register your device with your Apple Developer Account
- Let Xcode automatically provision a profile for your app
4- Build or run your project again
It's also possible that a previously installed app with the same Bundle
Identifier was signed with a different certificate.
Note: All necessary profile and bundle identifier was configured correctly.
Code sample
Code sample
[Paste your code here]

Screenshots or Video

Screenshots / Video demonstration
[Upload media here]

Logs
Logs
[Paste your logs here]

Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.7.12, on macOS 14.0 23A344 darwin-arm64, locale en-DE)
    • Flutter version 3.7.12 on channel stable at /Users/almamun/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 4d9e56e694 (6 months ago), 2023-04-17 21:47:46 -0400
    • Engine revision 1a65d409c7
    • Dart version 2.19.6
    • DevTools version 2.20.1

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
    • Android SDK at /Users/almamun/Library/Android/sdk
    • Platform android-33, build-tools 33.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15A240d
    • CocoaPods version 1.13.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)

[✓] VS Code (version 1.83.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.74.0

[✓] Connected device (4 available)
    • Al’s iPad (mobile)                             • 00008103-000E482C2144201E            • ios            • iOS 17.1 21B74
    • iPad Pro (12.9-inch) (6th generation) (mobile) • 90329D0B-98ED-4A57-831A-51BF57C68BCF • ios            • com.apple.CoreSimulator.SimRuntime.iOS-17-0 (simulator)
    • macOS (desktop)                                • macos                                • darwin-arm64   • macOS 14.0 23A344 darwin-arm64
    • Chrome (web)                                   • chrome                               • web-javascript • Google Chrome 118.0.5993.70

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

Hi @thealmamun
Can you confirm the issue didn't happen on the same device previously? If you are sure about this, please try opening ios module on XCode and running it to see if the same issue occurs.

yes, i have checked earlier it was perfectly fine, after updating to e
iPadOS 17 creates the issue, then i check with latest macOS Sonoma 14.0 and xocde 15 still same issue.

Have you tried checking this on XCode? Or you can try flutter clean and run again to see if it works, please see this.

Unfortunately, It's same with xcode

Unfortunately, I can't reproduce this issue on my side. Since upgrading to new macOS Sonoma 14.0 and XCode 15 with iOS 17 (emulator), I haven't seen this issue. Labeling the issue for other's insights.

@thealmamun When you run it through Xcode, what error does it give you? Have you tried uninstalling the app from the device before running it?

Unfortunately, I can't reproduce this issue on my side. Since upgrading to new macOS Sonoma 14.0 and XCode 15 with iOS 17 (emulator), I haven't seen this issue. Labeling the issue for other's insights.

Thanks, but I am talking but physical device not emulator or simulator.

@thealmamun When you run it through Xcode, what error does it give you? Have you tried uninstalling the app from the device before running it?

yes, I tried that couple of time.

@thealmamun What error does Xcode give? Perhaps include a screenshot?

@thealmamun What error does Xcode give? Perhaps include a screenshot?

No Provisioning Profile was found for your project's Bundle Identifier or your
device. You can create a new Provisioning Profile for your project in Xcode for
your team by:
1- Open the Flutter project's Xcode target with
open ios/Runner.xcworkspace
2- Select the 'Runner' project in the navigator then the 'Runner' target
in the project settings
3- Make sure a 'Development Team' is selected under Signing & Capabilities > Team.
You may need to:
- Log in with your Apple ID in Xcode first
- Ensure you have a valid unique Bundle ID
- Register your device with your Apple Developer Account
- Let Xcode automatically provision a profile for your app
4- Build or run your project again
It's also possible that a previously installed app with the same Bundle
Identifier was signed with a different certificate.
For more information, please visit:
https://flutter.dev/docs/get-started/install/macos#deploy-to-ios-devices
Or run on an iOS simulator without code signing
════════════════════════════════════════════════════════════════════════════════
Could not run build/ios/iphoneos/Runner.app on 00008103-000E482C2144201E.
Try launching Xcode and selecting "Product > Run" to fix the problem:
open ios/Runner.xcworkspace
Error launching application on Al’s iPad.

@thealmamun What error does Xcode give? Perhaps include a screenshot?

So I'm unable to recreate this error. It doesn't appear to be an issue with Flutter, but rather something wrong with the provisioning profile. I wasn't able to find much about that particular error.
You could try clearing the cache (in Xcode "Product > Clean Build Folder").
You could try regenerating a provisioning profile and deleting the profile from the device.
Also, FYI, based on the version of Flutter you're on, you won't be able to use flutter run for an iOS 17 physical device. Only 3.13+ is compatible for using flutter run with an iOS 17+ physical device (3.13.7 has latest fixes related to launching for iOS 17). You can continue to run through Xcode with your current version, though, and can use flutter attach to still use hot reload (assuming the profile issue is resolved).

@thealmamun did @vashworth's suggestion fix the issue for you?

Having a similar issue,
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.16.0, on macOS 14.1.1 23B81 darwin-arm64, locale en-ZA)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.1)
[✓] VS Code (version 1.84.2)
[✓] Connected device (3 available)
[✓] Network resources

just updated to iPadOS 17, apps run normally from Xcode, flutter run --release runs fine, flutter run in debug modes opens Xcode then just gives me this
Xcode build done.                                           39,5s
You may be prompted to give access to control Xcode. Flutter uses Xcode to run your app. If access is not allowed, you can change this through your Settings > Privacy & Security > Automation.
Error launching application on iPad (2).

app launches then hangs on splash.
I ran on Xcode an did flutter attach, this works however its annoying to press r to hot reload as opposed to hot reload on save running from vscode.

upgrading flutter to beta channel fixes the issue

Didn't work @vashworth 's solutions, can't try @ozayr 's solutions due to having a lot of dependency on project with current version of flutter.

upgrading flutter to beta channel fixes the issue

@ozayr 's solution worked for me. Thanks!

Flutter 3.7 doesn't support Xcode 15 - if you're able to reproduce this error using stable, please file a new issue with reproduction steps!


Clarify cluster IP documentation

fixes

documents

[ ] Tests
[ ] Documentation
[ ] Release note

None required

Deploy preview for calico ready!
Built with commit 5d57aae3dfbcf71592e05c9715578d6e2f8282e0
https://deploy-preview-2725--calico.netlify.com

Deploy preview for calico ready!
Built with commit 960208e5914c32ddc1f5880bc89172045a30deff
https://deploy-preview-2725--calico.netlify.com


Pass schema to serializer

Currently, the docs state that a good place to add metadata to a response is when overriding the Serializer.serialize() method. One common piece of metadata is the total number of records when making a filtered or paginated request.
Except the recommended .serialize() method is only given the response and the request as arguments, so it can't get a reference to the schema/server/db objects to get a total count.
This is one approach to solving that problem - just pass the schema into the serialize method.

However, I'm not sure this is the best long term solution. Metadata can be tricky - if I make a request that is both paginated and filtered, perhaps the metadata's total: 42 indicates that there are a total of 42 records that match that filter, rather than 42 records of that type overall.
If that's the case, mocking that behavior in Mirage would require calculating metadata in the route handler (where the filtering is happening), which this PR doesn't solve. But I figured I'd at least offer some kind of solution to start the conversation :wink:. One idea: perhaps you could return a Mirage.Response object that allows arbitrary metadata payloads but still triggers the serializer layer? Then that Response object could be read out in the serializer to populate the appropriate JSON payload structure.

Right - tricky problem. There's been some discussion about introducing APIs to pass metadata from route handlers to serializers.
Btw in case you weren't aware, you can also call this.serialize from the route handler to get the json, and then add some final metadata right there in the route handler. It's definitely a kludge, though.
Not sure yet the best way to handle this. Will probably end up needing something like a meta object you can attach arbitrary data to that gets passed along all the way through the serializer. Going to leave this open for now so we can mull it over.

Not sure yet the best way to handle this. Will probably end up needing something like a meta object you can attach arbitrary data to that gets passed along all the way through the serializer. Going to leave this open for now so we can mull it over.

I'd suggest trying to avoid introducing more "top-level" concepts, like a meta object. We have a Response class which is already used when you need a response that isn't totally cookie cutter (i.e. a custom status code, headers, etc), seems like it would be straightforward to add arbitrary data to that as well.
It wouldn't have to be limited to meta data either - it could act as an escape valve for more complex edge cases (i.e. pass something along from the route handler by attaching it to the Response object, rather than calling the serializer manually)

It's true - and I definitely prefer escape valves to new APIs when there's so much uncertainty.
For now I'd say call this.serialize in route handler and add more stuff there, until someone has time to work on this.

Going to close this for now, until we can tackle the meta question head-on

Here is a snippet of what I ended up doing for this:
  this.get('/projects', function(schema, request) {
    let { queryParams: { page: offsetParam = 1 } } = request;
    let offset = offsetParam - 1;
    let begin = 0 + (30 * offset);

    const json = this.serialize(
      schema.projects.all().slice(begin, begin + 30)
    );

    json.meta = {
      total: schema.projects.all().length,
      pageTotal: 30,
      tiles: ['http://localhost:4200/test-data/tiles/96.mvt'],
      bounds: [[-73.9916082509177, 40.6824244259472],[-73.8847869770557, 40.8933091086328]],
    };

    return json;
  });


[CRITICAL] Unable to record videos in ios Safari angular mobile project

Description
Couldnt able to start the recording in angular mobile project for iOS.
Steps to reproduce
Follow the steps which is mentioned in videojs website for angular installation steps and usage and when i run the app, recording dint work
Results
Expected
Should start the recording
Actual
throwing the error of "this browser is not supported for navigator.mediaDevices.getUserMedia"
Error output
navigator.mediaDevices. is undefined
Additional Information
Please include any additional information necessary here. Including the following:
versions
what version of videojs does this occur with?
videojs - latest version i am using
what browser(s) are affected? Make sure to test with all third-party browser extensions disabled.
browsers - iOS angular project
Safari - 14.1.1
what platforms (operating systems and devices) are affected?
iOS

duplicate of #573


Bug: Scoring Delay

There is a ~3-5 Second delay in scoring - and sometimes you may be unlucky and if you fall you won't even be scored for the distance you have gone.
The delay may be impossible to fix right now - But heres the issue anyhow.

#issue1

Update:
The Lag is still there - And even worse after a while - But it now only occurs once you Restart several Times. A fix is in progress and will be updated shortly.

Upcoming Fix:
A further fix will be applied by exploring other ways of restarting the game besides using location.reload which seems to be buggy -
The fix will come into 3 parts:

[ ]  Timing part. You will fall at a increased rate of 1000 or 1 second. (It will be 2 seconds)

Increasing the timing will help get one line of code to communicate with the top line. As of now it looks like it could be server lag causing the issue.I am currently uncertain.

[ ]  Visual Enhancments. Fix boundaries.

Visually the boundaries should be larger but they aren't you see the start of a duplicate at the bottom of the screen. all I have to here is figure a way to not repeat it (which can be done in css BUT) can't be done with css at this time due to size restrictions via the JS code.

[ ] Scoring Increase X 10

First level will come and will be infiniate. Do you have what it takes to reach 10k before you crash?
This will be the easiest task.

Resolved
What happen:
The score wasn't added - at all.
What has been done to fix this issue:

Added the new scoring system - multiplying the score X10 each time you get further instead of just +1.
So instead of 2 its 20 etc.

What is still occuring:

The lag hasn't left, and can't completely. But the score will catch up to itself.

This creates a obstacle with the future leveling system. Because if its doing it at this slow rate what happens as the rate increases?
This obviously isn't known. But hopefully not too much issues will arise.
The issue is now resolved for the most part. Other than what I mentioned. It still lags, but nothing can be done 100%.  The lag will only occur once the game ends 2-3 times - Unlike before, your score will actually go up instead of staying at 0 even if it takes a few seconds, I consider this a improvment.
Closed.


i can't run this PXGoogleDirections, do you think api_key need?

i dont known i change to :
var preparedRequest = "\(PXGoogleDirections.apiBaseURL)?origin=\(f)&destination=\(t)"
it can run, but first i can't run :
var preparedRequest = "\(PXGoogleDirections.apiBaseURL)?key=\(PXGoogleDirections.apiKey)&origin=\(f)&destination=\(t)"
https://yadi.sk/i/xYNUR7dW37kkLv
many thank for supports!

Hi @mhtranbn, yes I think you need to create a Google Maps API key for your iOS app and set it in the code.
Also, check the Debug messages, usually the Google Maps SDK will write error or warning messages to the Debug console to help you troubleshoot issues.
Let me know if you still have troubles after doing that.

Hey @mhtranbn, any update on this one ?


Gallery View: Configure card width

solve #277

The PR is ready for review now. Keep consistent with the board setting.

Thanks a lot for this! 🙏 I don't have any comments, other than "Great work"! 💪
I just released 1.9.0, but I'll put this one out in a patch release if the next minor takes too long!


Concept usage

-Add user concepts for easier use later
-Use concepts directly instead of typename T requires concept
-Add extra checks on iterators (InputIt being an std::input_interator, OutputIt being an std::output_iterator of correct type)
Solves a part of #1, the OutputIt type being unspecified and unconstrained.

Nasty problems in GCC & CLang:
-The custom interators fail the requirements (std::input_iterator and std::output_iterator) in these compilers.
-Manually specifying the output_iterator requirement of type_correctness (the output iterator should contain the same type as the datatype) is also hard in case std::back_insert_iterators are used.
The underlaying type of a std::back_insert_iterators is unknown, so you cannot verify the type.
In MSVC, this seems to work fine.
In latest commit, a fix has been done using an ifdef (not pretty but it works) to check whether the compiler is MSVC. If so, allow the default concepts, otherwise use std::input_or_output_iterator for the input iterators and nothing for the output iterators.

I've squashed and merged the changes to the main branch.


Flaky test: other modules test (SQL Compatibility): DruidAvaticaHandlerTest

Flakes:

[WARNING] org.apache.druid.sql.avatica.DruidAvaticaHandlerTest.testConcurrentQueries
[ERROR]   Run 1: DruidAvaticaHandlerTest.testConcurrentQueries:766 »
Execution java.lang.RuntimeException:
org.apache.calcite.avatica.AvaticaSqlException: Error -1 (00000) :
Error while executing SQL "SELECT COUNT(*) + 205 AS ci FROM foo":
Remote driver error: QueryInterruptedException:
Error while applying rule DruidQueryRule(AGGREGATE), args [
    rel#537975:LogicalAggregate.NONE.[](input=RelSubset#537966,group={},agg#0=COUNT()),
    rel#537976:DruidQueryRel.NONE.[](query={
        "queryType":"scan","dataSource":{"type":"table","name":"foo"},
        "intervals":{"type":"intervals","intervals":["-146136543-09-08T08:23:32.096Z/146140482-04-24T15:36:27.903Z"]},
        "resultFormat":"compactedList","columns":["__time","cnt","dim1","dim2","dim3","m1","m2","unique_dim1"],"legacy":false,
        "context":{"nativeQueryIds":"[aa26815f-c429-470d-a61f-e18e3bdcce61]","sqlQueryId":"ca289071-8ec4-465a-bc13-2ef5c0e4d737","sqlStringifyArrays":false},
        "granularity":{"type":"all"}},
    signature={__time:LONG, dim1:STRING, dim2:STRING, dim3:STRING, cnt:LONG, m1:FLOAT, m2:DOUBLE, unique_dim1:COMPLEX<hyperUnique>})] ->
RuntimeException: Error while applying rule DruidQueryRule(AGGREGATE), args [rel#537975:LogicalAggregate.NONE.[](input=RelSubset#537966,group={},agg#0=COUNT()), rel#537976:DruidQueryRel.NONE.[](query={"queryType":"scan","dataSource":{"type":"table","name":"foo"},"intervals":{"type":"intervals","intervals":["-146136543-09-08T08:23:32.096Z/146140482-04-24T15:36:27.903Z"]},"resultFormat":"compactedList","columns":["__time","cnt","dim1","dim2","dim3","m1","m2","unique_dim1"],"legacy":false,"context":{"nativeQueryIds":"[aa26815f-c429-470d-a61f-e18e3bdcce61]","sqlQueryId":"ca289071-8ec4-465a-bc13-2ef5c0e4d737","sqlStringifyArrays":false},"granularity":{"type":"all"}},signature={__time:LONG, dim1:STRING, dim2:STRING, dim3:STRING, cnt:LONG, m1:FLOAT, m2:DOUBLE, unique_dim1:COMPLEX<hyperUnique>})] ->
NullPointerException: Cannot invoke "java.util.Map.get(Object)" because "context" is null
[INFO]   Run 2: PASS

I think @paul-rogers had fixed it. which branch did you see it on?


Implement Anchors

Be Advised no Admin or team will ever DM you or share you any link so you can only chat Here on Live Chat with Anchor Agent  On LIVE SUPPORT LIVE CHAT


What is NA in the tables?

I am going through the document and I am not sure what is NA?
GA I am assuming that is General Availability. But dont know what NA means here? Not-available? Not-applicable?

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

ID: a067ceb2-fe69-6b56-eafa-ffb7ebf1968e
Version Independent ID: 6fd66d79-08fa-b5ea-daf0-d92073269b64
Content: Developer notes for user flows and custom policies - Azure AD B2C
Content Source: articles/active-directory-b2c/custom-policy-developer-notes.md
Service: active-directory
Sub-service: b2c
GitHub Login: @kengaderdus
Microsoft Alias: kengaderdus

@tmalde
Thanks for your feedback! We will investigate and update as appropriate.

Hi @tmalde "NA" stands for "Not Applicable". It is used in the tables to indicate that a particular feature or capability is not applicable to a specific version or type of Azure AD B2C custom policy.

@tmalde
We are going to close this thread as resolved but if there are any further questions regarding the documentation, please tag me in your reply and we will be happy to continue the conversation.


Namespaces contract cli (initialize_namespace and show_namespace)

CLI command for namespaces contract, testing out namespace creation/initialization. This is similar to the existing command for item.
I also added a command for show_namespace to view the contents of the initialized namespace.
See namespace-cli-todo.md file for additional notes regarding implementation.

@pit-trash-king This is ready for a final review. It's updated to separate the instructions from the program on the client.


Add 'required' property to most flow steps

Add validation property to FormTO with currently only one property required
Some questions:

What should the error message be?
What do we do with existing 'required' properties (like on GPS widget)

Inspiration for possible future build-in validations: https://angular.io/api/forms/Validators

We're gonna implement it as follow:

[ ] In the javascript validation editor in the message flow designer, add a button to add a code snippet to check if the input isn't empty

Ask for the error message (default to "This is a required field")


doubleMean aggregator to be used at query time

Fixes  #8071
Description
This patch introduces doubleMean aggregation type to compute arithmetic mean of values in a column at query time.
it works by keeping sum and count and in the end spitting sum/count as mean.
I explored an alternate algorithm as mentioned in #8071 but did not implement that due to performance degradation observed. That could be added in future as a optional strategy in this aggregation type.

This PR has:

[X] been self-reviewed.
[X] added documentation for new or modified features or behaviors.
[X] added unit tests or modified existing tests to cover new code paths.

Key changed/added classes in this PR
All the *Aggregator*.java classes and DoubleMeanHolder

@clintropolis can you please review it, should be easy as it doesn't really touch anything existing and purely a new feature :P

@asdf2014 and @clintropolis thanks for reviewing.


Maya for DevOps

Is this a BUG REPORT or FEATURE REQUEST?
FEATURE REQUEST
Why is this required?
Maya is evolving from being a mere openebs storage enabler to enabler of DevOps teams
Some of the items that will be accomplished are:

Maya api server is evolving from being a mere storage API provider to volume operator that solves the needs of DevOps.
The changes in Maya should be helpful for maya's own devops team
The changes in Maya should be helpful for any DevOps team

This issue will track the dependant issues till 0.6 release.

It is assumed that DevOps operator will have configurations, deployments, policies stored in some version control system e.g. Github.
Further, lets assume below folder structure inside the github repo
- k8s/
   |__ k8s/app/percona/
   |__ k8s/storage/openebs/<policy-name>/


[Tests] Add separate SwiftLint config & clean up.

Last few PRs were to the Tests directory and thus our MoyaBot reminded me that we need to take care of this directory with SwiftLint as well. Of course, these are test cases, so the rules in this directory might been a little bit loosen up. That's why I've added another config file with less strict rules in there. If you don't agree with (not) having some rule on the list, let me know.
I've also fixed most of the errors, but there are 2 left. These are about file length & type length, but I believe we don't need to exclude these rules. I'm more keen to refactor a bit MoyaProviderSpec, because there is a room for that.

Codecov Report

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

@@           Coverage Diff           @@
##           master    #1103   +/-   ##
=======================================
  Coverage   76.51%   76.51%
=======================================
  Files          22       22
  Lines         728      728
=======================================
  Hits          557      557
  Misses        171      171

Continue to review full report at Codecov.

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


Pending Financial Contribution Email Link Broken (after Expected Funds Section)

Describe the bug
With the recent changes to the dashboard (expected funds section) the link of the pending financial contribution email is broken. Notice the following line,
https://github.com/opencollective/opencollective-api/blob/bbe2f5cc805b539646a9e5a6253621d90ad16187/server/lib/payments.ts#L997
it seems that it points to the order number, and while the redirect takes effect and takes the use to the contributions section, it doesn't take the user to the expected funds section.
To Reproduce
Steps to reproduce the behavior:

Go to a collective which you are admin of (we'll take OSC as an example)
Click on https://opencollective.com/opensource/admin/orders?searchTerm=765521
While the pending contribution exists it exists on the expected funds section so the user don't see it

Expected behavior
The link or the redirect should be updated to the correct one

cc @hdiniz or @gustavlrsn (I'm not sure who worked on this last): it seems that the Host Dashboard > Contributions section does not surface pending contributions, even when explicitly selected in the filters:

Is that a bug that we need to solve, or do we want to completely differentiate and update the email link to https://opencollective.com/dashboard/europe/expected-funds?

@Betree I will update the URL, the expected funds orders now appear on a separate dashboard page.

@hdiniz Then we should also remove the option to filter by status > Pending on Host Dashboard > Contributions, it's inaccurate.


[docs] Add note about transparent background on the outlined Alert variant

[x] I have followed (at least) the PR section of the contributing guide.

Why
We were implementing the toast component using Snackbar and the outlined Alert variant, but the content was bleeding through (see #32797 ). First we assumed a problem with z-index or a positioning issue but it took us some time to figure out that the outlined variants don't have a background by design.
Changes

[x] add note to outlined Alert variant to add a background when used with Snackbar component

thanks @samuelsycamore  - I committed both your suggestions


merge from arlac77/npm-package-template

package.json

chore(package): remove<EMAIL_ADDRESS>chore(package<EMAIL_ADDRESS>chore(scripts): cover@#overwrite c8 -x 'tests/**/*' --temp-directory build/tmp ava && c8 report -r lcov -o build/coverage --temp-directory build/tmp

:tada: This PR is included in version 2.1.14 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


ghc-mod displays error when editing a non-existing file

When editing a non-existing file (this may happen when invoking Atom from command-line, eg. atom nonexisting.sh), haskell-ghc-mod displays an error:

Haskell-ghc-mod: ghc-mod lint /path/to/nonexisting.hs failed with error code 1
ghc-mod: Couldn't find file: /path/to/nonexisting.hs

Although the error is normal, I believe it would be nicer to postpone linting and display a simple notification ("ghc-mod won't work until this file is saved.")  rather than this quite alarming message that doesn't go away.
Thanks,

Actually, I believe that's a bug, since linting and checking a file that has not been saved should be possible. I think that should be happening only on empty nonexistent files, since Atom generally reports nonempty nonexistent files as "changed", and that should work. Please correct me if I'm wrong.

Thanks for your answer ! I've done some more testing:
Sorry, I haven't even tested if linting worked despite the error — my mistake.
The problem seems to be a bit more complicated than I initially reported. Ghc-mod behaves differently with non-existing files, depending on whether they've been named or not.

If I create a new, nameless file (File/New File), and set its type to Haskell, I get neither linting nor error checking. I don't know if this is an Atom limitation, if it's the case please ignore it --- I'm very new to this editor.

If I open a non-existing but named file (atom myfile.hs), I get linting, but no error checking. Checking starts immediately after the first save.

I tested with the following code:
a = (2)
a = (3)

In the first case (File/New File, set type to Haskell), I get neither linting nor error checking. In the second case, I get correct notices about the redundant parentheses, but nothing about the duplicate declaration of a, which only appears after I save the file.

Um. What version of ghc-mod do you use? Any named files should pretty much work with <IP_ADDRESS> and up. Not so sure about earlier versions (and <IP_ADDRESS> is pretty much broken, so I don't support it)
Also, "unnamed" files would be hard to check, due to some inherent limitations of GHC API (basically I'd have to guess filenames, which is less than optimal -- and I don't think that's really necessary to have this working anyway). More user-friendly message might be in order though.

$ ghc-mod --version
ghc-mod version <IP_ADDRESS> compiled by GHC 7.10.2

Installed with Homebrew's cabal, on OSX 10.11. Same behavior on Linux.

Also, "unnamed" files would be hard to check, due to some inherent limitations of GHC API (basically I'd have to guess filenames, which is less than optimal -- and I don't think that's really necessary to have this working anyway).

I agree with that.

Sorry about the holdup, I'm currently very short on time.
A couple more questions, if you don't mind. Do you use ide-haskell, or linter frontend? If latter, check is only performed on save, due to it being rather slow, while linting is on-the-fly. I probably should skip lints for empty buffers altogether. If former, then I'm not sure what's going on.

Okay, so 0.9.14 shouldn't attempt to lint empty buffers, which will suppress error message. Please confirm that it works out for you.

Thanks! I'm testing with 1.0.0 right now.
Just noticed a small cache issue: when reopening a file, the linting messages and errors appears as they were when it was last closed in Atom, even if it has been modified since.
Besides that, using Linter, everything seems to work : no error message when the file doesn't exist, linting on the fly, check on save.
Using IDE-Haskell, I'm only able to get linting and error checking on save. Maybe I'm missing a setting somewhere?

Sorry for late reply. I just released a version that has check/lint on change with ide-haskell. Bear in mind that checking on change can be very slow, so tread lightly.
I believe cache issue is with linter package, although it can also happen with ide-haskell. I can't say I'm terribly inclined to fix this, due to it being basically self-correcting, and watching files for changes would be relatively hard (TL;DR not worth fixing IMO)
This issue can be closed I think.


Support for Buzz 1.0

This in WIP because we have not tagged 1.0 of Buzz yet.

This is not ready for a review.

Thank you for merging

Yes, that package should be deprecated.


Error on docker-compose build

Summary
An error shows up when docker-compose build is launched in the root directory, causing the installation to fail.
Steps To Reproduce
Steps to reproduce the behavior:

Clone the repository.
In the root folder, type docker-compose build
Observe an output similar to: https://gist.github.com/aarohijohal/380f197cf990815ca49dc9919fbed211

Expected behavior
A working installation of Parsr.
Actual behavior
https://gist.github.com/aarohijohal/380f197cf990815ca49dc9919fbed211
Environment

Reference commit/version: [455799ad19e06e4ed4763033c985e279d2f00594](https://github.com/axa-group/Parsr/commit/455799ad19e06e4ed4763033c985e279d2f00594)
Other platform details: docker-compose version 1.24.1, build 4667896b
OS: MacOS Mojave 10.14.5

@slallemand any ideas?

A similar experience reported by a Windows user:
https://gist.github.com/aarohijohal/804196e1f308fd6054eac22201e7892f

Resolved by #55


Use lazy dual string/Buffer representation for trace IDs

According to the basic server-client loop benchmarks/flame_graph_loop.js flamegraph, to/from strings ops on the span context are among the most expensive portions.  This change introduces a dual representation of trace IDs as string and Buffer. Whichever is available first is stored, and the other is only generated as needed. For most (unsampled) spans the fromString operation produces string IDs, and the outbound toString operation can use them as is, without even converting to Buffer representation, which is more expensive.
To/FromString Benchmarks
The micro-benchmarks below show almost 10 times improvement for to/from string methods.
Before benchmark
$ node ./benchmarks/span_context.js

Beginning Span Context Benchmark...
  2 tests completed.

  SpanContext:fromString x   274,035 ops/sec ±1.03% (90 runs sampled)
  SpanContext:toString   x 1,649,536 ops/sec ±1.01% (93 runs sampled)

After benchmark
$ node benchmarks/span_context.js

Beginning Span Context Benchmark...
  2 tests completed.

  SpanContext:fromString x  2,463,840 ops/sec ±1.33% (91 runs sampled)
  SpanContext:toString   x 12,618,966 ops/sec ±1.21% (94 runs sampled)

Core Flows Benchmarks
The core_flow benchmark shows moderate to no improvement
Before benchmark
$ node benchmarks/core_flows.js
Beginning Main Request Flows...
Fundamental Request flow with const tracer and http carrier x 41,873 ops/sec ±5.00% (73 runs sampled)
Fundamental Request flow with const tracer and text carrier x 60,004 ops/sec ±10.43% (76 runs sampled)
Fundamental Request flow with probabilistic tracer and http carrier x 42,920 ops/sec ±12.71% (76 runs sampled)
Fundamental Request flow with probabilistic tracer and text carrier x 51,835 ops/sec ±28.55% (74 runs sampled)
After benchmark
$ node benchmarks/core_flows.js
Beginning Main Request Flows...
Fundamental Request flow with const tracer and http carrier x 47,763 ops/sec ±4.87% (75 runs sampled)
Fundamental Request flow with const tracer and text carrier x 64,508 ops/sec ±11.43% (72 runs sampled)
Fundamental Request flow with probabilistic tracer and http carrier x 42,601 ops/sec ±21.58% (66 runs sampled)
Fundamental Request flow with probabilistic tracer and text carrier x 52,418 ops/sec ±33.48% (54 runs sampled)

Also cleans up README, fixes #23

Coverage increased (+0.09%) to 93.985% when pulling 4d8f655cc57c447642c071b71c797d60d5c38c11 on dual-trace-id into 6efeb8a5ff04304f463e857b2299d6941f916968 on master.

Coverage increased (+0.09%) to 93.985% when pulling f6dba59b087383da9225730532ece893e61acef6 on dual-trace-id into 6efeb8a5ff04304f463e857b2299d6941f916968 on master.


Filter BAM output of UMI-tools dedup before passing to Salmon quant

Description of the bug
When using UMIs salmon reports millions of:
WARNING: Detected suspicious pair ---  	The names are different:
This is because UMI-tools includes unpaired and chimeric reads. This leads to orphan reads.
I believe setting the flags:
--unpaired-reads=discard
and
--chimeric-pairs=discard
Should solve the issue
Command used and terminal output
No response
Relevant files
No response
System information
No response

The problem seems more complicated than that. It seems to be the issue discussed here

Running this command as mentioned in the linked issue above seems to fix the problem:
umi_tools prepare-for-rsem -I WT_REP1.umi_dedup.transcriptome.bam --stdout=test.bam
The log files for Salmon no longer chucks out warnings for unpaired reads so I assume the reads are being handled correctly:
[2022-05-20 11:34:37.622] [jointLog] [info] setting maxHashResizeThreads to 2
[2022-05-20 11:34:37.622] [jointLog] [info] Fragment incompatibility prior below threshold.  Incompatible fragments will be ignored.
[2022-05-20 11:34:37.622] [jointLog] [info] numQuantThreads = 2
[2022-05-20 11:34:38.114] [fileLog] [info] quantification processed 0 fragments so far

[2022-05-20 11:34:38.114] [fileLog] [info] quantification processed 53169 fragments so far

[2022-05-20 11:34:37.990] [jointLog] [warning] Transcript Gfp_transgene_gene appears in the reference but did not appear in the BAM
[2022-05-20 11:34:37.990] [jointLog] [info] replaced 0 non-ACGT nucleotides with random nucleotides
[2022-05-20 11:34:38.714] [jointLog] [info] Thread saw mini-batch with a maximum of 2.20% zero probability fragments
[2022-05-20 11:34:38.716] [jointLog] [info] Thread saw mini-batch with a maximum of 2.00% zero probability fragments
[2022-05-20 11:34:38.716] [jointLog] [info]

Completed first pass through the alignment file.
Total # of mapped reads : 53169
# of uniquely mapped reads : 47590
# ambiguously mapped reads : 5579

[2022-05-20 11:34:38.722] [jointLog] [info] Computed 123 rich equivalence classes for further processing
[2022-05-20 11:34:38.722] [jointLog] [info] Counted 52389 total reads in the equivalence classes
[2022-05-20 11:34:38.723] [jointLog] [warning] Only 53169 fragments were mapped, but the number of burn-in fragments was set to 5000000.
The effective lengths have been computed using the observed mappings.

[2022-05-20 11:34:38.723] [jointLog] [info] starting optimizer
[2022-05-20 11:34:38.724] [jointLog] [info] Marked 0 weighted equivalence classes as degenerate
[2022-05-20 11:34:38.724] [jointLog] [info] iteration = 0 | max rel diff. = 444.782
[2022-05-20 11:34:38.728] [jointLog] [info] iteration = 100 | max rel diff. = 1.47645e-16
[2022-05-20 11:34:38.728] [jointLog] [info] finished optimizer
[2022-05-20 11:34:38.728] [jointLog] [info] writing output
[2022-05-20 11:34:39.127] [jointLog] [info] Computing gene-level abundance estimates
[2022-05-20 11:34:39.135] [jointLog] [warning] Feature has no GFF ID
[2022-05-20 11:34:39.135] [jointLog] [info] There were 124 transcripts mapping to 124 genes
[2022-05-20 11:34:39.135] [jointLog] [info] NOTE: We recommend using tximport (https://bioconductor.org/packages/release/bioc/html/tximport.html) for aggregating transcript-level salmon abundance estimates to the gene level.  It is more versatile, exposes more features, and allows considering multi-sample information during aggregation.
[2022-05-20 11:34:39.135] [jointLog] [info] Aggregating expressions to gene level
[2022-05-20 11:34:39.136] [jointLog] [info] done

As a temporary solution, I have copied the prepare-for-rsem.py script directly from the UMI-tools repo into the bin/ directory of the pipeline. I have attempted to provide the appropriate credits at the top of the script. This will allow us to get a release of the pipeline out without waiting for UMI-tools and containers to be released. When this does happen we can remove the script from the pipeline and use it directly from the official package. I will leave this issue open so we can track this before future releases of the pipeline
Fixed in https://github.com/drpatelh/nf-core-rnaseq/commit/2e3e668c6941a2ccd010a0cd371932e5dff4ae4c https://github.com/drpatelh/nf-core-rnaseq/commit/d5034fa8900894380303b33b626b9c3faf5f53f8


Variance of ZINB

Implemented variance of ZINB distribution

Thanks. Very appreciated. Do you have any link or math to clarify the computation?

@ori-kron-wis I checked it an it's correct. Can you add a release note and merge it after the minified PR.

Thanks. Very appreciated. Do you have any link or math to clarify the computation?

@canergen @ori-kron-wis Apologies for the delay and thank you for accepting my pull request!
I used the following NB parameterization:
$$
f_{NB}(x; r, p) = \frac{(x+r-1)!}{x!(r-1)!} (1-p)^x p^r
$$
The ZINB PMF is:
$$
f_{ZINB}(x; r, p, \pi) = (x == 0)\big(\pi + (1 - \pi) f_{NB}(x; r, p)\big) + (x > 0) (1 - \pi) f_{NB}(x; r, p)
$$

To calculate the ZINB variance, I wrote $V[x]$ as follows
$$
V[x] = E[x²] - E[x]² = E[x(x-1)] + E[x] - E[x]²
$$
and then computed $E[x]$ (the mean) and $E[x(x-1)]$.

First, here is how to calculate the mean $E[x]$ of a ZINB:
$$
\begin{align*}
E[x] &= \sum_{x=0}^{\infty} x \cdot f_{ZINB}(x; r, p, \pi) \
&= (1 - \pi) \sum_{x=1}^{\infty} x \cdot \frac{(x+r-1)!}{x!(r-1)!} (1-p)^x p^r
\end{align*}
$$
To compute this, one can use a beautiful reparameterization trick. We proceed as follows:
$$
\begin{align*}
E[x] &= (1 - \pi) \sum_{x=1}^{\infty} x \cdot r \cdot \frac{((x-1)+(r + 1) -1)!}{x(x-1)! r!} (1-p) (1-p)^{(x-1)} \frac{p^{(r+1)}}{p} \
\end{align*}
$$
After simplifying and taking factors out of the sum we get the following:
$$
\begin{align*}
E[x] &= (1 - \pi)\frac{r (1-p)}{p} \sum_{x=1}^{\infty} \frac{((x-1)+(r + 1) -1)!}{(x-1)! r!} (1-p)^{(x-1)} p^{(r+1)} \
\end{align*}
$$
If we use the following reparameterization $\bar{x} = x - 1$ and $\bar{r}= r + 1$, we obtain:
$$
\begin{align*}
E[x] &= (1 - \pi)\frac{r (1-p)}{p} \sum_{\bar{x}=0}^{\infty} \frac{(\bar{x}+\bar{r} -1)!}{\bar{x}! (\bar{r}-1)!} (1-p)^{\bar{x}} p^{\bar{r}} \
\end{align*}
$$
And we know that the sum can be rewritten as $\sum_{\bar{x}=0}^{\infty} f_{NB}(\bar{x}; \bar{r}, p) = 1$. This leads to
$$
E[x] = (1 - \pi)\frac{r (1-p)}{p}
$$

To calculate the expectation $E[x(x-1)]$, we can use exactly the same reparameterization technique (applied twice in a row) and we'll get the following:
$$
E[x(x-1)] = (1 - \pi)\frac{r (r+1) (1-p)²}{p²}
$$

After putting all the terms together we get:
$$
V[x] = (1 - \pi) \frac{r(1-p)(1+r\pi - r\pi p)}{p²}
$$
and using the NB parameterization ($\theta = r$ and $\mu=\frac{\theta (1-p)}{p}$) employed in scvi-tools, we get:
$$
V[x] = (1 - \pi) \cdot \mu \cdot \frac{(\mu + \theta + \pi \mu \theta)}{\theta}
$$


The Oryx version used does not detect hugo apps correctly.

Describe the bug
The Oryx version 0.2.20230501.1 detects hugo apps with version >0.110.0 not corretly. Either it can not detect hugo at all or if you use the old configuration file name it detects hugo version 0.096.0.
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Build and Deploy a hugo app with version >0.110.0

name: Azure Static Web Apps CI/CD

on:
  push:
    branches:
      - main
  pull_request:
    types: [opened, synchronize, reopened, closed]
    branches:
      - main

jobs:
  build_and_deploy_job:
    if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
    runs-on: ubuntu-latest
    name: Build and Deploy Job
    steps:
      - uses: actions/checkout@v3
        with:
          submodules: true
      - name: Build And Deploy
        id: builddeploy
        uses: Azure/static-web-apps-deploy@v1
        with:
          azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_WITTY_SAND_05D4CC603 }}
          repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
          action: "upload"
          ###### Repository/Build Configurations - These values can be configured to match your app requirements. ######
          # For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
          app_location: "./" # App source code path
          api_location: "" # Api source code path - optional
          output_location: "public" # Built app content directory - optional
          ###### End of Repository/Build Configurations ######
        env:
          HUGO_VERSION: "0.113.0" #this didn't change the behaviour

  close_pull_request_job:
    if: github.event_name == 'pull_request' && github.event.action == 'closed'
    runs-on: ubuntu-latest
    name: Close Pull Request Job
    steps:
      - name: Close Pull Request
        id: closepullrequest
        uses: Azure/static-web-apps-deploy@v1
        with:
          azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_WITTY_SAND_05D4CC603 }}
          action: "close"

Expected behavior
That it detects and builds the app with the correct version.
Additional context
The issue seems to be solved on newer Oryx version:
https://github.com/microsoft/Oryx/pull/2009 from Oryx Version 20230609.1 on.

This was working for me last week. And it magically stopped working today. Looks like the current fix is to upgrade Hugo and update the config file?

For me upgrading the hugo version doesn't work :(
What do you mean exactly with updating the config file?

Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx
You can report issues at https://github.com/Microsoft/Oryx/issues

Oryx Version: 0.2.20230501.1, Commit:<PHONE_NUMBER>5ab2977af68fc5b3c344d32858d8af, ReleaseTagName: 20230501.1

Build Operation ID: e41e2da4cc930af5
OS Type           : bullseye
Image Type        : jamstack

Detecting platforms...
Could not detect any platform in the source directory.
Error: Could not detect the language from repo.

---End of Oryx build logs---
Oryx was unable to determine the build steps. Continuing assuming the assets in this folder are already built. If this is an unexpected behavior please contact support.
Finished building app with Oryx
Failed to find a default file in the app artifacts folder (/). Valid default files: index.html,Index.html.
If your application contains purely static content, please verify that the variable 'app_location' in your workflow file points to the root of your application.
If your application requires build steps, please validate that a default file exists in the build output directory.

For further information, please visit the Azure Static Web Apps documentation at https://docs.microsoft.com/en-us/azure/static-web-apps/
If you believe this behavior is unexpected, please raise a GitHub issue at https://github.com/azure/static-web-apps/issues/
Exiting```

Yes, Upgrading failed as well for me. I'm going to open a case against Azure on their portal to get this moving. I'll reference this ticket.

I tried renaming the config File too and it just leads to detecting hugo 0.096.0 with other Errors. I also use Features of >0.110.0 so this is No Option for me. Appreciating your Initiative 🙏

Hello, I found success with the latest Hugo version but with the old config file naming convention i.e. config.toml instead of recommended hugo.toml:
Mon, 17 Jul 2023 18:16:42 GMT
---Oryx build logs---
Mon, 17 Jul 2023 18:16:42 GMT

Mon, 17 Jul 2023 18:16:42 GMT

Mon, 17 Jul 2023 18:16:43 GMT
Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx
Mon, 17 Jul 2023 18:16:43 GMT
You can report issues at https://github.com/Microsoft/Oryx/issues
Mon, 17 Jul 2023 18:16:43 GMT

Mon, 17 Jul 2023 18:16:43 GMT
Oryx Version: 0.2.20230501.1, Commit:<PHONE_NUMBER>5ab2977af68fc5b3c344d32858d8af, ReleaseTagName: 20230501.1
Mon, 17 Jul 2023 18:16:43 GMT

Mon, 17 Jul 2023 18:16:43 GMT
Build Operation ID: d7fd772e3dd65cbe
Mon, 17 Jul 2023 18:16:43 GMT
OS Type           : bullseye
Mon, 17 Jul 2023 18:16:43 GMT
Image Type        : jamstack
Mon, 17 Jul 2023 18:16:43 GMT

Mon, 17 Jul 2023 18:16:43 GMT
Detecting platforms...
Mon, 17 Jul 2023 18:16:43 GMT
Detected following platforms:
Mon, 17 Jul 2023 18:16:43 GMT
  hugo: 0.115.2
Mon, 17 Jul 2023 18:16:43 GMT
Version '0.115.2' of platform 'hugo' is not installed. Generating script to install it...
Mon, 17 Jul 2023 18:16:43 GMT
Detected the following frameworks: hugo

You are right. It does build when changing to the old config name. But I think there is still something off. It detects my hugo version correctly now, but still installs 0.96.0 and builds with it, but seems to just call it 0.115.2 after installation. Which leads to a different result compared to me building locally with 0.115.2 . I think this is even worse. I prefer something not working at all rather than pretending to do something but doing something else.
DeploymentId: 51dd2752-2133-4756-b9a8-52987db30d9b

App Directory Location: '.' was found.
Looking for event info
Starting to build app with Oryx
Azure Static Web Apps utilizes Oryx to build both static applications and Azure Functions. You can find more details on Oryx here: https://github.com/microsoft/Oryx
---Oryx build logs---

Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx
You can report issues at https://github.com/Microsoft/Oryx/issues

Oryx Version: 0.2.20230501.1, Commit:<PHONE_NUMBER>5ab2977af68fc5b3c344d32858d8af, ReleaseTagName: 20230501.1

Build Operation ID: 06b852d960ecc125
OS Type           : bullseye
Image Type        : jamstack

Detecting platforms...
Detected following platforms:
  hugo: 0.115.2
Version '0.115.2' of platform 'hugo' is not installed. Generating script to install it...
Detected the following frameworks: hugo

+++ dirname /opt/tmp/images/build/installHugo.sh
Source directory     : /github/workspace
Destination directory: /bin/staticsites/XXXX-swa-oryx/app

++ cd /opt/tmp/images/build
++ pwd
+ __CURRENT_DIR=/opt/tmp/images/build
+ source /opt/tmp/images/build/../../build/__hugoConstants.sh
++ VERSION=0.96.0
++ PLATFORM_NAME=hugo
++ INSTALLED_HUGO_VERSIONS_DIR=/opt/hugo
++ INSTALLATION_URL_FORMAT=https://github.com/gohugoio/hugo/releases/download/v#VERSION#/#TAR_FILE#
++ TAR_FILE_NAME_FORMAT=hugo_extended_#VERSION#_Linux-64bit.tar.gz
++ TOML_FILE_NAME=config.toml
++ YAML_FILE_NAME=config.yaml
++ YML_FILE_NAME=config.yml
++ JSON_FILE_NAME=config.json
++ CONFIG_FOLDER_NAME=config
++ sed s/#VERSION#/0.96.0/g
++ echo hugo_extended_#VERSION#_Linux-64bit.tar.gz
+ fileName=hugo_extended_0.96.0_Linux-64bit.tar.gz
++ sed s/#VERSION#/0.96.0/g
++ echo https://github.com/gohugoio/hugo/releases/download/v#VERSION#/#TAR_FILE#
+ url=https://github.com/gohugoio/hugo/releases/download/v0.96.0/#TAR_FILE#
++ echo https://github.com/gohugoio/hugo/releases/download/v0.96.0/#TAR_FILE#
++ sed s/#TAR_FILE#/hugo_extended_0.96.0_Linux-64bit.tar.gz/g
+ url=https://github.com/gohugoio/hugo/releases/download/v0.96.0/hugo_extended_0.96.0_Linux-64bit.tar.gz
+ request='curl -fsSLO --compressed https://github.com/gohugoio/hugo/releases/download/v0.96.0/hugo_extended_0.96.0_Linux-64bit.tar.gz'
+ /opt/tmp/images/retry.sh 'curl -fsSLO --compressed https://github.com/gohugoio/hugo/releases/download/v0.96.0/hugo_extended_0.96.0_Linux-64bit.tar.gz'
retry 0
+ installationDir=/opt/hugo/0.96.0
+ mkdir -p /opt/hugo/0.96.0
+ tar -xzf hugo_extended_0.96.0_Linux-64bit.tar.gz -C /opt/hugo/0.96.0
+ rm hugo_extended_0.96.0_Linux-64bit.tar.gz
+ ln -s /opt/hugo/0.96.0 /opt/hugo/lts

Downloading and extracting hugo version 0.115.2 to /opt/hugo/0.115.2...
Downloaded in 0 sec(s).
Extracting contents...
Done in 1 sec(s).

Installing golang tooling and language...
1.15.8
go1.15.8.linux-amd64.tar.gz
retry 0

Using Hugo version:
hugo v0.115.2-8966424e0e521fb1627216a84efd2c5d5917cb0d+extended linux/amd64 BuildDate=2023-07-08T17:06:56Z VendorInfo=gohugoio

Start building sites …
hugo v0.115.2-8966424e0e521fb1627216a84efd2c5d5917cb0d+extended linux/amd64 BuildDate=2023-07-08T17:06:56Z VendorInfo=gohugoio

                   | EN | DE
-------------------+----+-----
  Pages            |  1 |  7
  Paginator pages  |  0 |  0
  Non-page files   |  0 |  0
  Static files     |  1 |  1
  Processed images |  0 |  4
  Aliases          |  1 |  0
  Sitemaps         |  2 |  1
  Cleaned          |  0 |  0

Total in 386 ms
Preparing output...

Copying files to destination directory '/bin/staticsites/XXXXX-swa-oryx/app'...
Done in 1 sec(s).

Removing existing manifest file
Creating a manifest file...
Manifest file created.
Copying .ostype to manifest output directory.

Done in 8 sec(s).

---End of Oryx build logs---
Finished building app with Oryx
No Api directory specified. Azure Functions will not be created.
Either no Api directory was specified, or the specified directory was not found. Azure Functions will not be created.
Zipping App Artifacts
Done Zipping App Artifacts
Uploading build artifacts.
Finished Upload. Polling on deployment.
Status: InProgress. Time: 0.1407766(s)
Status: InProgress. Time: 15.2743078(s)
Status: Succeeded. Time: 30.4081411(s)
Deployment Complete :)
Visit your site at: XXX
Thanks for using Azure Static Web Apps!
Exiting```

We're planning on updating the StaticSitesClient the newer versions of Oryx to resolve this shortly

We have this update in staging and planning to roll out the new version of the StaticSitesClient shortly

This issue seems so be solved. The new naming convention of "hugo.toml" instead of "config.toml" is recognized. The newer version is recognized. I don't fully understand that it seems to detect 0.115.2, installs 0.112.5 and reports 0.115.2 as installed. But I'm willing to accept that for now. Cheers to everyone involved 🎉 Thank you.

App Directory Location: '.' was found.
Try to validate location at: '/github/workspace/swa-db-connections'.
Looking for event info
Starting to build app with Oryx
Azure Static Web Apps utilizes Oryx to build both static applications and Azure Functions. You can find more details on Oryx here: https://github.com/microsoft/Oryx
---Oryx build logs---

Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx
You can report issues at https://github.com/Microsoft/Oryx/issues

Oryx Version: 0.2.20230717.2, Commit: 174f4287104c15e6f9ea3a4cf6e9f80accba3cf3, ReleaseTagName: 20230717.2

Build Operation ID: af8526a9530b1795
OS Type           : bullseye
Image Type        : jamstack

Detecting platforms...
Detected following platforms:
  hugo: 0.115.2
Version '0.115.2' of platform 'hugo' is not installed. Generating script to install it...
Detected the following frameworks: hugo

Source directory     : /github/workspace
Destination directory: /bin/staticsites/XXXX-swa-oryx/app

+++ dirname /opt/tmp/images/build/installHugo.sh
++ cd /opt/tmp/images/build
++ pwd
+ __CURRENT_DIR=/opt/tmp/images/build
+ source /opt/tmp/images/build/../../build/__hugoConstants.sh
++ VERSION=0.112.5
++ PLATFORM_NAME=hugo
++ INSTALLED_HUGO_VERSIONS_DIR=/opt/hugo
++ INSTALLATION_URL_FORMAT=https://github.com/gohugoio/hugo/releases/download/v#VERSION#/#TAR_FILE#
++ TAR_FILE_NAME_FORMAT=hugo_extended_#VERSION#_Linux-64bit.tar.gz
++ CONFIG_FOLDER_NAME=config
++ TOML_FILE_NAMES=("config.toml" "hugo.toml")
++ YAML_FILE_NAMES=("config.yaml" "hugo.yaml")
++ YML_FILE_NAMES=("config.yml" "hugo.yml")
++ JSON_FILE_NAMES=("config.json" "hugo.json")
++ sed s/#VERSION#/0.112.5/g
++ echo hugo_extended_#VERSION#_Linux-64bit.tar.gz
+ fileName=hugo_extended_0.112.5_Linux-64bit.tar.gz
++ sed s/#VERSION#/0.112.5/g
++ echo https://github.com/gohugoio/hugo/releases/download/v#VERSION#/#TAR_FILE#
+ url=https://github.com/gohugoio/hugo/releases/download/v0.112.5/#TAR_FILE#
++ sed s/#TAR_FILE#/hugo_extended_0.112.5_Linux-64bit.tar.gz/g
++ echo https://github.com/gohugoio/hugo/releases/download/v0.112.5/#TAR_FILE#
+ url=https://github.com/gohugoio/hugo/releases/download/v0.112.5/hugo_extended_0.112.5_Linux-64bit.tar.gz
+ request='curl -fsSLO --compressed https://github.com/gohugoio/hugo/releases/download/v0.112.5/hugo_extended_0.112.5_Linux-64bit.tar.gz'
+ /opt/tmp/images/retry.sh 'curl -fsSLO --compressed https://github.com/gohugoio/hugo/releases/download/v0.112.5/hugo_extended_0.112.5_Linux-64bit.tar.gz'
retry 0
+ installationDir=/opt/hugo/0.112.5
+ mkdir -p /opt/hugo/0.112.5
+ tar -xzf hugo_extended_0.112.5_Linux-64bit.tar.gz -C /opt/hugo/0.112.5
+ rm hugo_extended_0.112.5_Linux-64bit.tar.gz
+ ln -s /opt/hugo/0.112.5 /opt/hugo/lts

Downloading and extracting hugo version 0.115.2 to /opt/hugo/0.115.2...
Downloaded in 1 sec(s).
Extracting contents...
Done in 1 sec(s).

Installing golang tooling and language...
1.15.8
go1.15.8.linux-amd64.tar.gz
retry 0

Using Hugo version:
hugo v0.115.2-8966424e0e521fb1627216a84efd2c5d5917cb0d+extended linux/amd64 BuildDate=2023-07-08T17:06:56Z VendorInfo=gohugoio

Start building sites …
hugo v0.115.2-8966424e0e521fb1627216a84efd2c5d5917cb0d+extended linux/amd64 BuildDate=2023-07-08T17:06:56Z VendorInfo=gohugoio

                   | EN | DE
-------------------+----+-----
  Pages            |  7 |  7
  Paginator pages  |  0 |  0
  Non-page files   |  0 |  0
  Static files     |  3 |  3
  Processed images |  4 |  0
  Aliases          |  1 |  0
  Sitemaps         |  2 |  1
  Cleaned          |  0 |  0

Total in 377 ms
Preparing output...

Copying files to destination directory '/bin/staticsites/XXXX-swa-oryx/app'...
Done in 1 sec(s).

Removing existing manifest file
Creating a manifest file...
Manifest file created.
Copying .ostype to manifest output directory.

Done in 11 sec(s).

---End of Oryx build logs---
Try to validate location at: '/bin/staticsites/XXXX-swa-oryx/app/public'.
Finished building app with Oryx
No Api directory specified. Azure Functions will not be created.
Either no Api directory was specified, or the specified directory was not found. Azure Functions will not be created.
Zipping App Artifacts
Done Zipping App Artifacts
Uploading build artifacts.
Finished Upload. Polling on deployment.
Status: InProgress. Time: 0.1744981(s)
Status: InProgress. Time: 15.4609496(s)
Status: Succeeded. Time: 30.6738223(s)
Deployment Complete :)
Visit your site at: XXXXX
Thanks for using Azure Static Web Apps!
Exiting

Excellent! Happy to hear @malte610, we did indeed ship these updates to the Oryx/StaticSitesClient! I'll look into the version mismatch, but glad it's unblocking you for now!

This was working for me last week. And it magically stopped working today. Looks like the current fix is to upgrade Hugo and update the config file?

It magically and regularly stops whenever I try to re-start a blog site, now for the fourth time. Now it happened again today.