EditPost clears thumbnail

This removed the featured images on all my posts:
allposts=client.call(posts.GetPosts({'number':1000}))

for post in allposts:
    post.content=re.sub(r"https?://debris.glaciology.net/","/",post.content);
    client.call(posts.EditPost(post.id,post))

I have the same problem :(

Save attachment id while iterating posts and reassign it.

didnt worked @n3storm

It's easy but not straight forward. Something like this:
For each post:
media_id = get media post.thumbnail
change your text
post.save()
post.thumbnail = media_id
post.save()

Thanks for attention @n3storm
Here is the code, not working...
def post_test1():     posts = client.call(GetPosts())     for p in posts:         if p.title.lower() == 'ballot':             thumb = p.thumbnail             p.title = 'Ballot'             result = client.call(EditPost(p.id, p))             p.thumbnail = thumb             result = client.call(EditPost(p.id, p))             return result             break
when there is a thumbnail on post, "thumb" variable is a dictionary like below:
{'attachment_id': '1234', 'date_created_gmt': <DateTime '20180324T15:28:01' at 0x14bfcc3c940>, 'parent': 1230, 'link':
,
but when it is removed, its type becomes as an empty array...

This behavior is a quirk of how WordPress' XML-RPC API works.
For getPost or getPosts, the thumbnail field returns a struct/object: https://codex.wordpress.org/XML-RPC_WordPress_API/Posts#Return_Values
But when using newPost or editPost, the thumbnail field should be the attachment ID: https://codex.wordpress.org/XML-RPC_WordPress_API/Posts#wp.newPost. I tried to show this in the media example in the docs (last code block): http://python-wordpress-xmlrpc.readthedocs.io/en/latest/examples/media.html
So when calling EditPost, the post object should have a thumbnail field with the attachment's ID as the value.

Hey, thanks bro
worked for me:
def post_test1():
    posts = client.call(GetPosts())
    for p in posts:
        if p.title.lower() == 'ballot':
            post = WordPressPost()
            thumb = p.thumbnail['attachment_id']
            print(thumb)
            post.title = 'Ballot'
            post.thumbnail = thumb
            post.content = p.content
            post.post_status = p.post_status
            result = client.call(EditPost(p.id, post))
            return result
            break


Fix grammar and formatting in code-the-leaderboard.md

Changes
Added a space between "." and "This", and properly formatted instructions.
Checks
By submitting your pull request for review, you agree to the following:

[X] This contribution was created in whole or in part by me, and I have the right to submit it under the terms of this repository's open source licenses.
[X] I understand and agree that this contribution and a record of it are public, maintained indefinitely, and may be redistributed under the terms of this repository's open source licenses.
[X] To the best of my knowledge, all proposed changes are accurate.

Thank you @Katrist!


fix: Notifier should fire during runtime (if isInit is false)

Description
This is a bug fix for #2534
Closes issue(s)

@thomaspoignant sorry about that. I think the code currently doesn't call the notifiers if isInit is false, which probably affects all users.
As a hotfix, I've created a PR that does just the fix of the logic.


ValueError: could not broadcast input array from shape (164,109,4) into shape (164,109,3)

Traceback (most recent call last):                                                                                | 413/3712 [06:18<49:02,  1.12it/s, total_it=413]
File "train.py", line 200, in
main()
File "train.py", line 172, in main
merge_all_iters_to_one_epoch=args.merge_all_iters_to_one_epoch
File "/hdd/code/VFF/tools/train_utils/train_utils.py", line 93, in train_model
dataloader_iter=dataloader_iter
File "/hdd/code/VFF/tools/train_utils/train_utils.py", line 19, in train_one_epoch
batch = next(dataloader_iter)
File "/opt/miniconda3/envs/clocs/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 521, in next
data = self._next_data()
File "/opt/miniconda3/envs/clocs/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 1203, in _next_data
return self._process_data(data)
File "/opt/miniconda3/envs/clocs/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 1229, in _process_data
data.reraise()
File "/opt/miniconda3/envs/clocs/lib/python3.7/site-packages/torch/_utils.py", line 425, in reraise
raise self.exc_type(msg)
ValueError: Caught ValueError in DataLoader worker process 1.
Original Traceback (most recent call last):
File "/opt/miniconda3/envs/clocs/lib/python3.7/site-packages/torch/utils/data/_utils/worker.py", line 287, in _worker_loop
data = fetcher.fetch(index)
File "/opt/miniconda3/envs/clocs/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/opt/miniconda3/envs/clocs/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 44, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/hdd/code/VFF/pcdet/datasets/kitti/kitti_dataset.py", line 425, in getitem
data_dict = self.prepare_data(data_dict=input_dict)
File "/hdd/zhanglinjie/code/VFF/pcdet/datasets/dataset.py", line 130, in prepare_data
'gt_boxes_mask': gt_boxes_mask
File "/hdd/code/VFF/pcdet/datasets/augmentor/data_augmentor.py", line 135, in forward
data_dict = cur_augmentor(data_dict=data_dict)
File "/hdd/code/VFF/pcdet/datasets/augmentor/database_sampler.py", line 352, in call
total_valid_sampled_dict)
File "/hdd/code/VFF/pcdet/datasets/augmentor/database_sampler.py", line 276, in add_sampled_boxes_to_scene
data_dict = self.copy_paste_to_image(data_dict, gt_crops2d, gt_number, point_idxes)
File "/hdd/code/VFF/pcdet/datasets/augmentor/database_sampler.py", line 152, in copy_paste_to_image
image[_box2d[1]:_box2d[3],_box2d[0]:_box2d[2]] = crop_feat[_order]
ValueError: could not broadcast input array from shape (164,109,4) into shape (164,109,3)

Sorry about that. There's something wrong with my KITTI datasets, which have now been fixed. Thanks for your excellent work!


Custom query - deserializing variables

What is the best way to handle deserializing all types of variables?
The docs
https://docs.camunda.org/manual/7.5/examples/tutorials/custom-queries/#custom-mybatis-queries
for custom queries refer to code that is no longer present and while the new code is alot more concise than what was there previously its still set up to assume simple string variables.
I'd attempted to recreate what the code does to fetch variables by case execution, mapping the variable fields onto VariableInstanceEntity and querying this object via
getTypedValue(true);

However this fails as in TypedValueField when requesting the VariableSerializer it fail as there is no command context
 public static VariableSerializers getSerializers() {
    if (Context.getCommandContext() != null) {
     ....
    } else {
      throw LOG.serializerOutOfContextException();
    }
  }

It would seem more correct to go this way to recreate the variables since I'm not familiar with the db structure for the ACT_RU_VARIABLE table (and it has lots of different value columns) and the deserialization would work well for complex types etc.
The old code would have created the command context I believe, whats the correct way to go about executing custom queries from within a command context as of v7.5?

Best ask in our forum: http://forum.camunda.org/. We are not using the issues here on this project.
I can see your point, but would actually have to dive into the code to get an idea how to solve this best. Please provide a failing test case, as then this gets much easier and faster to do so.

Ok will post on the forums. You may want to re-raise a bug against your docs then as they don't match up with the current example and think have been out of sync since 7.4 :-)

Sure - feel free to file a JIRA issue for  that: https://app.camunda.com/jira/


docs overhaul

fixes #112
fixes #114
fixes #107
fixes #30

📦 Published PR as canary version: 7.3.1-canary.115.404.0

:sparkles: Test out this PR locally via:
npm install<EMAIL_ADDRESS># or
yarn add<EMAIL_ADDRESS>

:rocket: PR was released in v7.3.1 :rocket:


reqwest_retry 0.3 breaks build_with_total_retry_duration

Previously build_with_total_retry_duration returns ExponentialBackoff:
https://docs.rs/reqwest-retry/0.2.3/reqwest_retry/policies/struct.ExponentialBackoffBuilder.html#method.build_with_total_retry_duration
In 0.3 it returns ExponentialBackoffTimed instead, which doesn't implement RetryPolicy
and not acceptable to RetryTransientMiddleware::new_with_policy:
https://docs.rs/reqwest-retry/latest/reqwest_retry/policies/struct.ExponentialBackoffBuilder.html#method.build_with_total_retry_duration
https://docs.rs/reqwest-retry/latest/reqwest_retry/struct.RetryTransientMiddleware.html#method.new_with_policy
Or did I overlook some other way?

Duplicate of #106, this was a breaking change in retry-policies, reasoning here.


make u128, i128 behind feature integer128

for some target that not support u128 like emscripten

Sorry for getting late here. A feature has costs in that it needs to be tested, and as features grow the testing becomes more difficult. So generally we'd want to avoid features where possible.
Here, if some platforms don't support 128-bit integers, could we instead detect them via cfg flags?

Yes, we could do this just like what it does in serde.
But I don't think it would make test easier since we have to install another compiler for test.

Is this particular thing difficult to test on CI? I.e. does github CI have any platform targets that don't have 128-bit scalars?


Clone to pubnation ogranisation

Hi @ahaurw01
I wonder if we shouldn't make clone of this repo and push to pubnation organisation in github. What do you think about that?

Totally up to you, @MateuszJeziorski. We previously open sourced this repo for simplicity.

I see. Just in case I did fork to pubnation org
https://github.com/pubnation/pn-logging


Update YoutubeAtom to init iframe on useEffect rather than SSR to allow client side ad targeting

What does this change?
Currently in DCR the first render of YoutubeAtom is the server-side generated output.
Hence the initial render of the YouTube player iframe is initialised with server-side generated ad targeting data.
This PR updates YoutubeAtom to initialise the iframe client-side (after the first render via useEffect) and therefore also ad targeting via adTargetingBuilder.
This allows client-side (and potentially cache-splitting) ad targeting data e.g. consent, permutive, signed-in etc to be provided to the YouTube player.
DCR PR: https://github.com/guardian/dotcom-rendering/pull/3501 (depends on the release of the changes in this PR)
Why?
To bring parity between DCR and Frontend for YouTube PFP ad targeting.

Is the requirement here to know information about permutive? And are we saying that can't be known on the server or is there a way to work that out higher up the stack?
Ideally, we'd be moving more things to the server and making the client lighter, even if that means cache splitting, but I'm not sure what this permutive data is to be honest

Thanks for that detailed response, Ravi. That really helps.
We've already been talking about this offline (there's some exciting possibilities here!) but one issue I wanted to drop here so i don't forget about it.
If we don't render the iframe on the server then as well as this offloading more work onto the client (which we're actively discussing) but it also means we will invalidate client side hydration. React needs the dom tree it is hydrating to match what it was on the server. If we don't have that we could see undesired results

Actually I think because this change only modifies the state and render in an useEffect hook the server and initial client render should be the same?

Yes, you're right. Sorry, I' wasn't seeing it before. So what we're doing here is moving the place where we render the iFrame from the server to the client. Is this mental model about right?
Before

Server
Client

Render iFrame
Hydrate overlay

Render overlay
iFrame loads src

After

Server
Client

Render overlay
Hydrate overlay

Render iFrame

iFrame loads src

Given the client side actions will happen in parallel (I presume) could we have the situation where the overlay is hydrated but the iframe still hasn't loaded? Meaning any clicks will return errors

Is this mental model about right?

Yes thats right, very helpful thanks.
It might be helpful to others to expand on that (if I've got this right):
Before

Step
Server
Client
Interactive

1.
Generate SSR YoutubeAtom (iFrame + Overlay)

2.

Render SSR YoutubeAtom (iFrame + Overlay)

3.

iFrame loads player
player can receive clicks

4.

HydrateOnce YoutubeAtom
overlay can send clicks

5.

Render YoutubeAtom useEffect for eventEmitters

Before

Step
Server
Client
Interactive

1.
Generate SSR YoutubeAtom (Overlay)

2.

Render SSR YoutubeAtom (Overlay)

3.

HydrateOnce YoutubeAtom (waitFor=consentState)
overlay can send clicks

4.

Render YoutubeAtom useEffect for iFrame

5.

iFrame loads player
player can receive clicks

6.

Render YoutubeAtom useEffect for eventEmitters

Given the client side actions will happen in parallel (I presume) could we have the situation where the overlay is hydrated but the iframe still hasn't loaded? Meaning any clicks will return errors

This could happen.
We could update the atom to 'queue' up any play presses so that when the player does initialise it can check if should start playing immediately.


[Automated] Update eventing-kafka-broker-eventing nightly

/assign @knative-extensions/eventing-wg-leads
/cc @knative-extensions/eventing-wg-leads
Produced via:
for x in eventing-crds.yaml eventing-core.yaml eventing-tls-networking.yaml; do
  curl https://storage.googleapis.com/knative-nightly/eventing/latest/$x > ${GITHUB_WORKSPACE}/./third_party/eventing-latest/$x
done

Details:
bumping knative.dev/eventing 67ceb9e...43cf75a:
  > 43cf75a [main] Upgrade to latest dependencies (# 8004)
  > ea8f0fd Add `AppliedEventPoliciesStatus` type (# 7999)
  > 8da4543 Add `default-authorization-mode` feature flag (# 7996)
  > 7f37d64 Add EventPolicy types  (# 7995)
  > 6259113 Fix possible nil pointer dereference in event-dispatcher (# 7994)

/retest

/test upgrade-tests


Minor - Handling None in timestream

Issue #, if available:
#894
Description of changes:
Handling None in Value
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

AWS CodeBuild CI Report

CodeBuild project: GitHubCodeBuild8756EF16-pDO66x4b9gEu
Commit ID: 5e96a201b0173cd75bdc8c4cdd98898d18ffad7d
Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository


Make connection pool configuration dynamic

Make connection pool configuration dynamic - changeable at runtime through Archaius dynamic property.

how to change loadbalancer rule for a provider at run-time  with ribbon.


Could not find GetJsonAsync in HttpClient class

Hi, I am using Blazor Server version which is shipped with ASP.NET Core 3.0. I could not find the "GetJsonAsync" method inside HttpClient class. Is there any work around?

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

ID: 8b5e2e10-ff7b-2b9f-84da-f16028ae2c53
Version Independent ID: c7e59a08-1c60-32c2-75fd-33cb77ff7a5d
Content: Call a web API from ASP.NET Core Blazor
Content Source: aspnetcore/blazor/call-web-api.md
Product: aspnet-core
Technology: aspnetcore-blazor
GitHub Login: @guardrex
Microsoft Alias: riande

Probably missing the package in your project file ...
<PackageReference Include="Microsoft.AspNetCore.Blazor.HttpClient" Version="3.0.0" />

@guardrex We should make that package requirement more visible in the doc. I also missed that detail when I was trying to do this.

I'll go with a normal "Package" section like we often do.

@guardrex I can get all other methods like GetAsync, PostAsync from same HttpClient. Only GetJsonAsync and PostJsonAsyc and other Json methods missing. Didn't you include in json serialization in Blazor server?

I have created a CRUD blazor server app with manually convert to StringContent (using Newtonsoft) in PostAsync and also converted from HttpResponse to object using same Newtonsoft Deserializer.

Sorry .... sorry ... you've caught me at the very end of the day. I'm brain-fried for the day ... been up since 5am! Yikes!.
These bits only work for Blazor WebAssembly. For Blazor Server, engineering says to use IHttpClientFactory, and I think those bits use System.Text.Json and there's a JsonSerializer. Check that doc ... I think it explains it all out.

I have just checked "Microsoft.AspNetCore.Blazor.HttpClient" and found that this is still an experimental and preview only. Is that correct?

Leave this issue open tho ...... I do want to add a section for the package here. This issue will automatically close when the PR merges.

Yes, that's correct. All of Blazor WebAssembly is in preview.

@sarathlalsaseendran You'll need to install the following package to gain access to methods like PostAsJsonAsync:
<PackageReference Include="Microsoft.AspNet.WebApi.Client" Version="5.2.7" />

In 3.0, Json.NET (Newtonsoft) was removed from the shared framework. As a result, the Web API client package was removed too. It had a dependency on Json.NET (Newtonsoft). The default JSON serializer in 3.0 is System.Text.Json.

Thanks @scottaddie ... we have the cross-link in this Blazor topic; but when I go to add the Package section, I'll double-check and work on the visibility of the text/link for Blazor server. Tomorrow tho! I'm 😵 at this point.

Hi @scottaddie, Thanks for the suggestion. I have added the "Microsoft.AspNet.WebApi.Client" package as per your suggestion. But still not getting GetJsonAsync method in HttpCleint. I am getting "PostAsAsync" and "PutAsAsycn" methods. Can you please tell me is there any work around to get GetAsAsync method in HttpClient.

Did you mean ReadAsAsync? That should be on the response content.

Hi @pranavkm, I am asking about "GetAsJsonAsync" method in HttpClient class. In previous  versions of Blazor (prior to .NET Core 3.0) it was there. Now after I added "Microsoft.AspNet.WebApi.Client" package (as per @scottaddie ) I could see "PostAsAsync" and "PutAsAsync" methods. Do you have any update?

Hi. Just wanted to bump this issue. 2 weeks later and I too am unable to use the GetJsonAsync method as described in the article. Any updates or workarounds?

GetAsJsonAsync is an API specific to the experimental package. You can use HttpContent.ReadAsAsync<T>  as a substitute: https://stackoverflow.com/a/24052147.

adding these resolved
Install-Package Microsoft.AspNetCore.Components -Version 5.0.5
Install-Package Microsoft.AspNetCore.Blazor.HttpClient -Version 3.2.0-preview3.20168.3
using System.Net.Http;
using Microsoft.AspNetCore.Components;


Need to build tensorflow version 2.1.0 from source on Windows

System information

OS Platform and Distribution : Windows 10
TensorFlow installed from (source or binary): source
TensorFlow version: r2.1
Python version: 3.6.8
Bazel version (if compiling from source): 0.29.1
GCC/Compiler version (if compiling from source):

Describe the problem
I want to build tensorflow 2.1.0 from source. Github Branch r2.1 builts tensorflow version 2.1.1 by default. May I know how to explicitly give the tensorflow version for compilation ?
Provide the exact sequence of commands / steps that you executed before running into the problem
Any other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.

@manidevi
Please follow this guide to build tensorflow and when you checkout the branch enter the command
git checkout r2.1.0
https://www.tensorflow.org/install/source_windows

I get the following error for the above command
$ git checkout r2.1.0
error: pathspec 'r2.1.0' did not match any file(s) known to git

@manidevi you need to run git checkout v2.1.0

@manidevi
As suggested by @bhack you can try with git checkout v2.1.0.Please, check this gist for your reference.Thanks!
`

Got it. Thanks @ravikyram  and @bhack


Add ability to skip validation on postgres FK creation

Validation on FK constraints in postgres can cause large tables to stay locked for a relatively long time because it has to check all rows for valid data, while also preventing new entries.
Postgres implemented a way to not validate the constraint immediately so the FK can be immediately inserted, improving concurrency, with the intention that a VALIDATE CONSTRAINT query will be following.
The validation query uses a less expensive lock, because it only needs to check rows that existed before the constraint. This allows safer migrations, and also allows for users to clean up known violations while still enforcing the constraint for new entries.
This commit implements the ability to skip validation, but it does not implement the validation query.
See https://www.postgresql.org/docs/12/sql-altertable.html for more details

Done! Did you want me to squash it down too?

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


$input.action is an illegal variable name

Describe the bug
Unable to bun run build due to the following error:
CompileError:` $input.action is an illegal variable name. To reference a global variable called $input.action, use globalThis.$input.action

I believe this error is occuring in the Checkbox and Switch components, as used in the shadcn-svelte library.
Will try to produce a minimal reproduction once I have some more free time.
Reproduction
to be provided
Logs
$ vite build
16:39:47 [vite-plugin-svelte] Your are using Svelte 5.0.0-next.60. Svelte 5 support is experimental, breaking changes can occur in any release until this notice is removed.
work in progress:
 - svelte-inspector is disabled until dev mode implements node to code mapping
 - hmr for .svelte files is disabled until hmr api is implemented

16:39:47 [vite-plugin-svelte] WARNING: The following packages have a svelte field in their package.json but no exports condition for svelte.

<EMAIL_ADDRESS>
Please see https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/faq.md#missing-exports-condition for details.
vite v5.1.3 building SSR bundle for production...
transforming (1) .svelte-kit/generated/server/internal.jsThe enableSourcemap option has been removed. Source maps are always generated now, and tooling can choose to ignore them.
✓ 568 modules transformed.
x Build failed in 3.42s
error during build:
CompileError: $input.action is an illegal variable name. To reference a global variable called $input.action, use globalThis.$input.action
    at error (file:///Users/joe/WebDev/little-bear/node_modules/svelte/src/compiler/errors.js:542:8)
    at analyze_component (file:///Users/joe/WebDev/little-bear/node_modules/svelte/src/compiler/phases/2-analyze/index.js:299:6)
    at Module.compile (file:///Users/joe/WebDev/little-bear/node_modules/svelte/src/compiler/index.js:40:20)
    at compileSvelte (file:///Users/joe/WebDev/little-bear/node_modules/@sveltejs/vite-plugin-svelte/src/utils/compile.js:147:22)
    at async Object.transform (file:///Users/joe/WebDev/little-bear/node_modules/@sveltejs/vite-plugin-svelte/src/index.js:152:20)
    at async transform (file:///Users/joe/WebDev/little-bear/node_modules/rollup/dist/es/shared/node-entry.js:18481:16)
    at async ModuleLoader.addModuleSource (file:///Users/joe/WebDev/little-bear/node_modules/rollup/dist/es/shared/node-entry.js:18697:36)
error: script "build" exited with code 1 (SIGHUP)

System Info
System:
    OS: macOS 13.6
    CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
    Memory: 13.16 MB / 8.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.8.0 - ~/Library/Caches/fnm_multishells/733_1708272520907/bin/node
    npm: 10.2.0 - ~/Library/Caches/fnm_multishells/733_1708272520907/bin/npm
    pnpm: 8.9.0 - ~/Library/pnpm/pnpm
    bun: 1.0.15 - /usr/local/bin/bun
  npmPackages:
    @sveltejs/kit: ^2.5.0 => 2.5.0
    bits-ui: ^0.18.1 => 0.18.1
    svelte: next => 5.0.0-next.60

Severity
blocking an upgrade

If this is due to missing Svelte 5 support, happy to close this and wait.

Yeah this is due to missing Svelte 5 support which we can't officially provide until it is stable. Related #10566


CI is Broken

@stschaef getting errors building Agda in the CI, ugh

Whack. I'll prioritize this and the grammars CI work for the rest of the morning

well since CI is broken anyway I'll just merge that PR now without waiting for CI to be fixed

https://github.com/agda/cubical/issues/1161
Even the Cubical CI fails for me in a clean fork of the repo. Seems like a dependency change for Agda, going to test an install on a clean ubuntu VM and then open an issue on the Agda repo if the issue persists

Fixed upstream


Weird exception when updating to Silex 1.3 from 1.2

My route is "http://localhost/{slug}.{type}", where "slug" is a dynamic page identifier and "type" is one of {html,ics,json}. Type defaults to "html".
In Silex 1.2, passing a url like "http://localhost/testing" brings up a page without issue.
In Silex 1.3, it sometimes returns "Parameter "slug" for route "my_route" must match "[^/.]++" ("" given) to generate corresponding URL."
I've tried modifying the assertion on {slug} and {type} to no avail.

I don't see which change would lead to this. Can you give us a small Silex app that demonstrates the issue?

Closing as there is no feedback. Feel free to reopen with more details.


[proposed enhancement] Diagnostic Improvements for dune docker container

As always open to feedback

Updated README.md with section at the end title Diagnostics
Added a new script bash_into_dune.sh, run it to bash into docker container
Added a new script diagnostics.sh, intended to run on docker container
Updated docker.py to look for env variable that customizes docker volume mounting point  on host

still can't figure our why nodeos isn't accepting connection on my setup, but these updates may help me with diagnostics

closing latest release has some of this functionality


could not start LLAP daemon

Hi,
As I asked in #44 (it was asked mainly about Yarn/MR3 so i created a new one for LLAP) , trying to configure LLAP over non secure cluster on a single node having only zk, hdfs, yarn, hive, tez encounters error while trying to start llap daemon.
Following the hdp doc:
https://docs.cloudera.com/HDPDocuments/HDP2/HDP-2.5.3/bk_command-line-installation/content/llap_install_unsecure.html
Using repository odp-<IP_ADDRESS> and Ambari 2.7.8-140.
log from serviceam-err.txt of first llap container:
exec /bin/bash -c "$JAVA_HOME/bin/java -Djava.net.preferIPv4Stack=true -Djava.awt.headless=true  -Xmx768m  org.apache.hadoop.yarn.service.ServiceMaster -yarnfile hdfs://my.host128.server:8020/user/hive/.yarn/services/llap0/llap0.json -service_name llap0 -D hadoop.registry.zk.root=/registry -D hadoop.registry.zk.quorum=my.host128.server:2181 1>/hadoop/yarn/log/application_1704278070565_0004/container_e04_1704278070565_0004_01_000001/serviceam-out.txt 2>/hadoop/yarn/log/application_1704278070565_0004/container_e04_1704278070565_0004_01_000001/serviceam-err.txt "
Log Type: serviceam-err.txt
Error: Could not find or load main class org.apache.hadoop.yarn.service.ServiceMaster

Hi @farshad-allahdadi,
Thanks for the report, we are going to check it internally.
Best regards

@lucasbak Thank You, How to track the progress of evaluating this (internal) issue? I couldn't find any public Jira related to clemlab.

Hi @farshad-allahdadi,
We have not a public JIRA yet, it's a WIP, we are using github for now.

Will keep you up to date using Github's issues

Hi @lucasbak , Thank You, I managed to make it work by replacing odp service-dep by bigtop 3.2.1 in  /odp/apps/<IP_ADDRESS>-134/yarn/service-dep.tar.gz which contains all necessary libs for LLAP.
Also by an early investigation, it seems that this service-dep.tar.gz should be created by /var/lib/ambari-server/resources/scripts/Ambaripreupload.py which contains many hard coded paths to /usr/hdp in it, but I'm not sure if that's the root cause

Hi @farshad-allahdadi,
This fil does exist in  /usr/odp/<IP_ADDRESS>-134/hadoop-yarn/lib/service-dep.tar.gz path.
Can you check if you have it ?
Best regards

The file exists on odp, but it inly contains a few jar files all of them about 14MB, but the file that is working which i took from github is about 150MB and contains all libs of hadoop, yarn, mr, ....

Thanks,
What about /usr/odp/<IP_ADDRESS>-134/hadoop/mapreduce.tar.gz ?
Can you test if it does work ?
Best regards

This file (mapreduce.tar.gz) contains all hadoop dependencies for the distribution


Error: could not rename dep info

Hello, I'm using cargo-watch for recompiling a little project (less tan 100 LOC). When I use the command cargo watch run it show that one error occurred. If I run cargo watch "run --verbose" it shows this:
cargo watch "run --verbose"
Waiting for changes... Hit Ctrl-C to stop.

$ cargo run --verbose
       Fresh winapi v0.2.5
       Fresh httparse v1.1.1
       Fresh libc v0.2.7
       Fresh regex-syntax v0.2.3
       Fresh byteorder v0.4.2
       Fresh bitflags v0.3.3
       Fresh rustc-serialize v0.3.18
       Fresh matches v0.1.2
       Fresh winapi-build v0.1.1
       Fresh cfg-if v0.1.0
       Fresh memchr v0.1.10
       Fresh log v0.3.5
       Fresh sha1 v0.1.1
       Fresh bytes v0.3.0
       Fresh utf8-ranges v0.1.3
       Fresh unicode-bidi v0.2.3
       Fresh aho-corasick v0.5.1
       Fresh unicode-normalization v0.1.2
       Fresh rand v0.3.14
       Fresh slab v0.1.3
       Fresh libc v0.1.12
       Fresh regex v0.1.52
       Fresh uuid v0.1.18
       Fresh nix v0.4.2
       Fresh kernel32-sys v0.2.1
       Fresh ws2_32-sys v0.2.1
       Fresh env_logger v0.3.2
       Fresh url v0.5.5
       Fresh time v0.1.34
       Fresh net2 v0.2.21
       Fresh miow v0.1.2
       Fresh mio v0.5.0
       Fresh ws v0.4.5
   Compiling rust-ws-test v0.1.0 (file:///home/david/repositorios/rust-ws-test)
     Running `rustc src/main.rs --crate-name rust_ws_test --crate-type bin -g --out-dir /home/david/repositorios/rust-ws-test/target/debug --emit=dep-info,link -L dependency=/home/david/repositorios/rust-ws-test/target/debug -L dependency=/home/david/repositorios/rust-ws-test/target/debug/deps --extern env_logger=/home/david/repositorios/rust-ws-test/target/debug/deps/libenv_logger-2fedde90a22290a6.rlib --extern uuid=/home/david/repositorios/rust-ws-test/target/debug/deps/libuuid-fed17b74aa7673e2.rlib --extern rustc_serialize=/home/david/repositorios/rust-ws-test/target/debug/deps/librustc_serialize-79a17eda1cd94e46.rlib --extern ws=/home/david/repositorios/rust-ws-test/target/debug/deps/libws-300ac8c32d0f3ece.rlib`
could not rename dep info: "/home/david/repositorios/rust-ws-test/target/debug/rust_ws_test.d"

Caused by:
  No such file or directory (os error 2)
-> exit code: 101

Is I use the command cargo run --verbose the program compiles normally and this is the output:
       Fresh matches v0.1.2
       Fresh winapi-build v0.1.1
       Fresh bytes v0.3.0
       Fresh rustc-serialize v0.3.18
       Fresh slab v0.1.3
       Fresh byteorder v0.4.2
       Fresh unicode-normalization v0.1.2
       Fresh bitflags v0.3.3
       Fresh unicode-bidi v0.2.3
       Fresh httparse v1.1.1
       Fresh libc v0.2.7
       Fresh regex-syntax v0.2.3
       Fresh libc v0.1.12
       Fresh winapi v0.2.5
       Fresh cfg-if v0.1.0
       Fresh sha1 v0.1.1
       Fresh log v0.3.5
       Fresh memchr v0.1.10
       Fresh nix v0.4.2
       Fresh rand v0.3.14
       Fresh utf8-ranges v0.1.3
       Fresh kernel32-sys v0.2.1
       Fresh aho-corasick v0.5.1
       Fresh ws2_32-sys v0.2.1
       Fresh uuid v0.1.18
       Fresh time v0.1.34
       Fresh regex v0.1.52
       Fresh net2 v0.2.21
       Fresh url v0.5.5
       Fresh env_logger v0.3.2
       Fresh miow v0.1.2
       Fresh mio v0.5.0
       Fresh ws v0.4.5
   Compiling rust-ws-test v0.1.0 (file:///home/david/repositorios/rust-ws-test)
     Running `rustc src/main.rs --crate-name rust_ws_test --crate-type bin -g --out-dir /home/david/repositorios/rust-ws-test/target/debug --emit=dep-info,link -L dependency=/home/david/repositorios/rust-ws-test/target/debug -L dependency=/home/david/repositorios/rust-ws-test/target/debug/deps --extern ws=/home/david/repositorios/rust-ws-test/target/debug/deps/libws-300ac8c32d0f3ece.rlib --extern uuid=/home/david/repositorios/rust-ws-test/target/debug/deps/libuuid-fed17b74aa7673e2.rlib --extern rustc_serialize=/home/david/repositorios/rust-ws-test/target/debug/deps/librustc_serialize-79a17eda1cd94e46.rlib --extern env_logger=/home/david/repositorios/rust-ws-test/target/debug/deps/libenv_logger-2fedde90a22290a6.rlib`
     Running `target/debug/rust-ws-test`

Okay, I have zero idea what could be happening here. Can you share that program you're trying?

Of course.
There is only one file: main.rs
The code is extracted from: http://housleyjk.github.io/ws-rs/ws/
extern crate ws;
extern crate env_logger;
extern crate rustc_serialize;

use std::rc::Rc;
use std::cell::Cell;
use ws::{listen, Handler, Result, Message, Handshake, CloseCode, Error};

struct Server {
	count: Rc<Cell<u32>>
}

impl Handler for Server {

	fn on_open(&mut self, _: Handshake) -> Result<()> {
		println!("New client connected");
		// We have a new connection, so we increment the connection counter

		Ok(self.count.set(self.count.get() + 1))

	}

	fn on_message(&mut self, msg: Message) -> Result<()> {
		match msg.into_text() {
			Ok(message) => println!("New message"),
			Err(message) => println!("No message or binnary message: '{}'", message),
		}

		Ok(())
	}

	fn on_close(&mut self, code: CloseCode, reason: &str) {
		match code {
			CloseCode::Normal => println!("The client is done with the connection."),
			CloseCode::Away   => println!("The client is leaving the site."),
			CloseCode::Abnormal => println!("Closing handshake failed! Unable to obtain closing status from client."),
			_ => println!("The client encountered an error: {}", reason),
		}

		// The connection is going down, so we need to decrement the count
		self.count.set(self.count.get() - 1)
	}

	fn on_error(&mut self, err: Error) {
		println!("The server encountered an error: {:?}", err);
	}
}

// Cell gives us interior mutability so we can increment
// or decrement the count between handlers.
// Rc is a reference-counted box for sharing the count between handlers
// since each handler needs to own its contents.
fn main() {
	let count = Rc::new(Cell::new(0));
	listen("<IP_ADDRESS>:3012", |out| {
		Server { count: count.clone()}
	}).unwrap()
}

And this is the Cargo.toml
[package]
name = "rust-ws-test"
version = "0.1.0"
authors = [""]

[dependencies]
ws = "^0.4.5"
env_logger = "0.3.2"
rustc-serialize = "0.3"
uuid = "0.1"

I'm using Ubuntu 15.10 64bits,  cargo 0.7.0-nightly (1af03be 2015-12-08) and rustc 1.6.0 (c30b771ad 2016-01-19)

This shouldn't affect anything, but can you update to 1.7.0?

Someone has suggested that this may be related to running two (or more) builds concurrently.

I can vouch for the multiple builds running concurrently problem.  It drove me crazy for about two hours one day until I realized I had a hidden terminal with cargo-watch running.

Are you using Atom Editor with linter-rust plugin?

Ok, I assume then that it's possible that my sublime text rust linter is breaking the reloading?
I will try this night and I put a comment with the results.

Yes, confirmed! it was my sublime lintern plugin. Thank you!
What option I have if I want to use the lintern ant cargo watch?


Fix AmazonMws#fetch_order_data and #get_order_reference_details

fetch_order_data was updated in b24d29d3a71846ccfdd90de619ab3e8f4314d556
to use the PayWithAmazon gem but the call to the gem used invalid arguments.

@acreilly I see the spec failures also happened on the most recent commit on master: https://github.com/boomerdigital/solidus_amazon_payments/commits/master (commit 952ee94)
They also fail for me locally.  Any idea what's up with those?

Just need these specs passing

@acreilly any ideas about why they might be failing?  They're failing on the master branch also right?


acceptAutoCompletionWithString: isn't removing registered prefix

The documentation states that acceptAutoCompletionWithString:

"...replaces the detected key and word with a new string."

I'm not seeing this behavior, and when I call this method, my prefix key remains. For instance, when I type "@kev", and select Kevin in the autoCompletionView, the result in my text view is: "@Kevin. I would expect to see just "Kevin".
Interestingly, if I look at the acceptAuto... implementation, range is deliberately calculated one index after the location of self.foundPrefixRange:
NSRange range = NSMakeRange(self.foundPrefixRange.location+1, self.foundWord.length);

I can adjust this range to get the behavior described in the docs thusly:
NSRange range = NSMakeRange(self.foundPrefixRange.location, self.foundWord.length+1);

However, I suspect I shouldn't need to do that. Am I missing something? Thanks in advance.

Wow. Thanks so much! Really appreciated.


This line throws Cannot read property 'key' of undefined on corporate Mastercard mac.

https://github.com/Mastercard/insomnia-plugin-mastercard-auth/blob/f7121c3edc65d0dc961925119222d4b498e0ea80/src/mastercard-auth.js#L35

Hi @krupalghorpade,
What does "on corporate Mastercard mac" mean?
Please describe a scenario for us to reproduce the error on a regular mac machine.
If you can't, please solve this issue with your IT department.
Thanks!

I'm a MC employee. Looks like if consumer key is wrong, it throws Cannot read property 'key' of undefined error.

Hi @krupalghorpade,
This is not enough information for us to reproduce the issue. Can you please provide a full reproduction scenario as requested earlier? In addition to the test data and steps, don't forget to mention the versions of Insomnia, macOS and of the plugin you use.
If you already identified the issue is caused by restrictions on a corporate machine, please solve this issue with your IT department.
Thanks!

That's a generic JS error.
Mac / Linux / Windows / Solaris / Corporate / Non corporate doesn't have
anything to do with it.
The code is trying to access a value from a map which was not properly
initialised
Please check SDK initialisation code / documentstion
On Wed 17 Feb 2021, 16:55 Krupal<EMAIL_ADDRESS>wrote:

Closed #24
https://github.com/Mastercard/insomnia-plugin-mastercard-auth/issues/24.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Mastercard/insomnia-plugin-mastercard-auth/issues/24#event-4342468924,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABPIXOHQDKAMJFEVYKUZZ3LS7PYGJANCNFSM4XYVCCLQ
.


Selection of training data

Congrats again on the great work.
Could you please help clarify how the data subset was selected from the LAION?
Thanks.

@dxli94 https://github.com/tencent-ailab/IP-Adapter/issues/28


No need to add ldap root user to administrators group.

LGTM.


kubernetes volume concepts

adding the kubernetes files under /docs

I think Jose is about to submit a PR that is greatly going to simplify the deployment process and really reduces the amount of steps in the instructions

@ramkrsna ping?

The PR from Jose fixes most of this stuff. Additional Kubernetes Steps would add complexity

@ramkrsna are you withdrawing this PR then? if so, please close!

the deploy directory has the details for kubernetes . Closing the PR


chore(design): remove Babel and update homepage with more modern styles

Background
Updating the Igbo API website to match the design system of the IgboSpeech website. Removes the .babelrc file to be able to use Next.js fonts.
Screenshots
Homepage

About Page

Signup Page

looking at this late but this PR looks great! huge change but should be well worth it. Let me know if you're every interested in deploying with Vercel in the future!


Additional Chart types

Hi,
This is great work. Are you planning to add any additional chart types and some of the other HC features any time soon? I'm particularly interested in rendering some big data charts that will need to look a bit like this.
http://jsfiddle.net/ttqemvzs/
Is there a template that can be edited fairly easily to add custom charts ?

Hi,
Yes i'm working on adding HC Specific charts in this library. I will keep you posted.
Simplest way to test custom charts is to run a notebook and play with example.ipynb which is in the repo

Hello,
Are there new charts other than the ones available in the example ?
Kr,

Also would love support for Spline charts:
https://api.highcharts.com/highcharts/plotOptions.spline


New version not available in Updates

I have version 2.0.0 and would like to update to 2.0.1 to remove the deprecation errors but it doesn't show up as an update in Craft plugins.  Do I have to do it through composer?

Thanks for flagging this @laurabennett. Looks like we were missing updates to our changelog, which is how Craft knows to look for updates. Not sure how long it should take to propagate, but we just pushed a fix to our changelog that should prompt the automatic updates to happen in the CP. If it doesn't show up in the next day or so let us know and we'll take another stab at it.

I'm also stuck with version 2.0.0. Version 2.0.1 is not available for me. I installed it yesterday (02/26/2019) from the plugin store. The store also says 2.0.0 is the latest version.

Hm sorry for the delay folks. I've forced the update in the repo's changelog twice now and Craft is still defaulting to 2.0.0 instead of 2.0.2. Am I missing something silly here? Following the documentation from Craft verbatim.

hey @mikewink, @laurabennett, I was just able to force a v2.0.2 release that should fix all of these deprecation warnings. I can confirm that id.craftcms.com is seeing the new release so I think we should be all good. Can you take a look and let me know if you don't see the new version in the control panel?
For reference I asked a question on Craft's stack exchange and Brad from P&T was able to help me, if anyone else runs into this issue.

Thanks, Nice work!
On Mon, Mar 4, 2019 at 1:35 PM Rob<EMAIL_ADDRESS>wrote:

hey @mikewink https://github.com/mikewink, @laurabennett
https://github.com/laurabennett, I was just able to force a v2.0.2
release that should fix all of these deprecation warnings. I can confirm
that id.craftcms.com is seeing the new release so I think we should be
all good. Can you take a look and let me know if you don't see the new
version in the control panel?
For reference I asked a question on Craft's stack exchange and Brad from
P&T was able to help me
https://craftcms.stackexchange.com/questions/29680/plugin-not-updating-in-the-plugin-store-from-changelog-updates/29682#29682,
if anyone else runs into this issue.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/hillholliday/Craft-User-Manual/issues/14#issuecomment-469365806,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ATCVJhIYN60BHSYYkyCb6TVeNgD0lWr9ks5vTWdYgaJpZM4ZnFU8
.

--
Laura Bennett
digital diva
drive >
P.O. Box 2838, 170 Kearsarge Street
North Conway, NH 03860
603.356.3030
<EMAIL_ADDRESS>


re-entrant commands with F# kernel fails

Describe the bug
Submitting a re-entrant command to F# kernel fails
let reentrant() =
    async {
        let! _ = SubmitCode("""let b = $"{a} re-entrant" """, "fsharp") |> Kernel.Root.SendAsync |> Async.AwaitTask
        return ()
    } |> Async.RunSynchronously

then
reentrant()

output
Error: input.fsx (1,1)-(1,1) interactive error internal error: The thread is already executing the ControlledExecution.Run method.

Please complete the following:
Which version of .NET Interactive are you using? (In a notebook, run the #!about magic command. ):
1.0.431302

OS

[X] Windows 11
[ ] Windows 10
[X] macOS
[ ] Linux (Please specify distro)
[ ] iOS
[ ] Android

Browser

[ ] Chrome
[ ] Edge
[ ] Firefox
[ ] Safari

Frontend

[ ] Jupyter Notebook
[ ] Jupyter Lab
[ ] nteract
[X] Visual Studio Code
[X] Visual Studio Code Insiders
[ ] Visual Studio
[ ] Other (please specify)

Screenshots

@KevinRansom will the fix be included in the 43.7.400 release?

@colombod  Is there an external issue this should reference?

You guys now own the ControlledExecution, we don't set it when we are invoked with the --noninteractive

It rtm'd in this package :  https://www.nuget.org/packages/FSharp.Compiler.Service/43.7.400.  It also previewed as I recall.


Allow arbitrary first dimension in quantization kernels.

Allows to quantize and use matrices of shape (N, D) where N can be any dimension. D still needs to be divisible by groups and large enough that when compressed it fills up a full SIMD group in the GPU.
There is no performance drop for the matrix-vector kernels and a small performance regression for the qmm kernel. For the qmm_t there was a big performance drop so I added an extra specialization to launch for aligned vs not aligned matrices.

Added the extra error reporting/checks so I am merging this.
In the future it might make sense to change the bits-group size pairs we support to some that are slightly more reasonable. For instance 2 bits and 128 group size makes practically no sense while 4 bits and 32 group size would be a very competitive quantization maybe to the point of making it the default.

4 bits and 32 group size

Just curious, Is it already supported in the kernel / what do we need to add to allow it?


Usage of official Instagram API.

Hi!
I would like to know if the program utilizes an official Instagram API (https://www.instagram.com/developer/)?
If yes, will the performance be changed, as after 29th June 'Remaining endpoints on the Legacy API will no longer be available after this date and your app's users may lose functionality'?
Thank you in advance,
Arshak

I am also curious about this. I searched the code for any calls to the Instagram API but didn't find any. Although, I might be wrong.
@rarcega


Add ASG Name output.

I use terraform wrapped around this cfn template, and would like to pull out the ASG name by using the cloudformation data source.
I have created a new file on the thought that people might like other output values and that this list my grow.

FYI relates to #243 .


It doesn't seem to have this file.

When I tried to build a demo,it prompts the question.
I've looked in the folder, but it doesn't exist。

Which linux distribution version do you recommend most? Can I build it in MacOS?


Increase Framerate to reduce flicker ?

Hi,
when scrolling it looks very un-smooth compared to lets say Atom or SublimeText3.
Is there maybe a way to increase the frame rate so that it looks more smooth ?
~Marc

Yea, I'll add an option. If it gets too high, bad things happen :smile:
I may not get to it until next week.

sounds awesome ! :dancer:

Any progress on this one? Moderate framerate is my only "problem" with this plugin :smile:
Ideally we should aim for 60fps to make it buttersmooth, but even 30-40fps would be a nice improvement.

its really a shame thats not built in , heck any other free 'editor' is smother

I just downloaded the repo and modified the framerate parameter from 20 to 60, and then I built the plugin. After installing the newly-built plugin, the smoothness increased significantly. I wonder why the author still haven't added the option to change the framerate. Maybe some side effects or something?
File changed:
https://github.com/opus1269/smooth-scroller/blob/master/src/com/weebly/opus1269/smoothscroller/SmoothScrollerMouseWheelListener.java#L41
Change FRAMES_PER_SECOND to whatever framerate value you want. I tried 60 withou noticing any bugs yet.

@arshcaria can you describe the steps you made to build + install?

You need IntelliJ Idea installed to build plugins.
I had ZERO Intellij plugin devel experience before. And I can't figure out how to import the plugin project.
But no problem, I just created a new plugin project and put this repo's code to that plugin project.
Follow this guide to create / debug / deploy a plugin project: http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started.html
Then you can build (ctrl+f9) and run (shift + f10) this project. If it works like what you want, you can then
deploy the plugin JAR by click Build | Prepare Plugin Module for Deployment
Then you get a newly-generated JAR file in you projecct folder. Install this JAR to you Intellij Idea or Android Studio IDE.
Done.

An initial version of built in smooth scrolling is available. I haven't tried it yet, but hopefully this plugin will be unnecessary soon.
https://youtrack.jetbrains.com/issue/IDEA-91965

Some time ago I did the same thing and it improved the experience a lot.
But now JetBrains is bringing us native smooth scrolling (eventually, hopefully we don't need to wait for long time).
It's already available in IDEA master: https://youtrack.jetbrains.com/issue/IDEA-91965#comment=27-1800635
🙋

That's great news. This plugin has some conflicts with Idea's breadcrumb feature. When clicking on the parent breadcrumb, the editor's view won't properly change to the parent. The higher framerate you set, the smaller the movement is.
I just saw some fresh commits on native smooth scrolling in Idea. Wish it could be stable.

True Smooth Scrolling feature seems to be a part of 2017.1 EAP builds (PHPStorm for me).
You need to add idea.true.smooth.scrolling=true to ~/.PhpStorm2107.1/idea.properties and enable Smooth scrolling in Settings - Editor - General to enable this True Smooth Scrolling feature.
...or at least it doesn't work without both options being set, so I assume it's really this aforementioned feature :slightly_smiling_face:
It doesn't feel perfect yet, but isn't bad either.

We with non high precision mouses are still in need of this :/ not sure if Jetbrain will correct it.


NPM wont insta;ll

Type: Bug
Hello, I downloaded the latest version of Node.js and then tried to install NPM next so I can build my app. Everytime I do npm ~v in my terminal it still says NPM is not hooked up why is that?
VS Code version: Code 1.91.1 (f1e16e1e6214d7c44d078b1f0607b2388f29d729, 2024-07-09T22:06:49.809Z)
OS version: Windows_NT x64 10.0.22631
Modes:

System Info

Item
Value

CPUs
Intel(R) Pentium(R) Silver N5030 CPU @ 1.10GHz (4 x 1094)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_graphite: disabled_offvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: enabled

Load (avg)
undefined

Memory (System)
7.82GB (2.75GB free)

Process Argv
--crash-reporter-id b86f142d-0fff-4f50-940b-6c3e8ce5af6c

Screen Reader
no

VM
0%

Extensions (1)

Extension
Author (truncated)
Version

es7-react-js-snippets
dsz
4.4.3

A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyonecf:30548226
2i9eh265:30646982
962ge761:30959799
pythongtdpath:30769146
welcomedialogc:30910334
pythonnoceb:30805159
asynctok:30898717
pythonregdiag2:30936856
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
accentitlementsc:30995553
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
jg8ic977:31013176
pythoncenvpt:31062603
a69g1124:31058053
dvdeprecation:31068756
dwnewjupyter:31046869
2f103344:31071589
impr_priority:31102340
refactort:31101459
ccplti:31103428
pythonrstrctxtcf:31103194
1iic9185:31097392
wkspc-onlycs-c:31102393

/question
Looks like general setup question and not an issue specific to VS Code editor itself. Please use proper channels instead.

We closed this issue because it is a question about using VS Code rather than an issue or feature request. Please search for help on StackOverflow, where the community has already answered thousands of similar questions. You may find their guide on asking a new question helpful if your question has not already been asked. See also our issue reporting guidelines.
Happy Coding!


I don't see how we can refactor this without sinking lot of weeks.


Revert "Merge VIC5.0.1 release into develop branch"

Reverts UW-Hydro/VIC#677
This commit is to revert PR #677 that mistakenly merged the develop branch into master branch right after release 5.0.1.

@jhamman This is done.

done. please open a new PR that merges master into develop.


Evaluating Conditional Expressions

Typically one would expect mulitple conditionals to be evaluated from left to right. And the remainder of the conditional expressions can be short-circuited and not evaluated, depending on the cirumstances.
Below is my sample code. Unless I wrap the procedure in a TryMethod, there is a runtime error "Index and length must refer to a location within the string." Pertaining to the Substring function, which shouldn't even be evaluated. Since the very first conditional expression is false. So one would assume that the Substring function wouldn't be a factor. Neither would the StartsWith function, since one would assume that the conditional logic would be short-circuited.
procedure StringParsing()
var
    InputString: Text[50];
begin
    InputString := '01000000IT1092012';
    if (Text.StrLen(InputString) > 20) and (InputString.StartsWith('01')) and (InputString.Substring(17, 2) = '21') then
        Message('Hello world!');
end;

Is this expected behavior?

Yes, AL is based on C/AL which had this behavior. Unfortunately for now, you need to nest your ifs for short-circuiting.

@gregarican There are some other patterns to implement lazy evaluation in AL:
https://nataliekarolak.wordpress.com/2022/12/21/lazy-evaluation-in-al/


Add missing Default implementation for usart::Interrupts

An example/documentation of how this all fits together with the enable_interrupts call may be nice, even though though it's probably more straightforward that you just need to set some fields with the compiled documentation, instead of macros.

 Merging, as the rest was already approved.


Simultaneous connection number is too high !?

Hi,
I am the only user on my real-time database. But sometimes my database simultaneous connection number is going 8. Am i need to close connection or something in my codes ?
Best regards.

Hi @MERTKIRKALI could you describe in more detail the issue you're seeing?  Is the SDK reporting an unexpected error?  Do you have any example code that can reproduce the issue?
Cheers,
Stewart

Haven't heard from you in a while, closing this out.


Version of phpseclib dependencies should be fixed

Package phpseclib/phpseclib#dev-master@dev is not fixed.

WTF with phpseclib? Still cannot install via composer require...

What the solution to be able to install Deployer via Composer?
We need this: composer require deployer/deployer:* :angry:

@elfet I'm not really sure what the problem is, can I help somehow?

Try in your terminal next command:
composer require deployer/deployer:~3.0@dev

Got error?
Now we need to fix it.

16 ôåâð. 2015 ã., â 18:23, Johan Johansson<EMAIL_ADDRESS>íàïèñàë(à):
@elfet I'm not really sure what the problem is, can I help somehow?
—
Reply to this email directly or view it on GitHub.

Okay so it works if I manually require phpseclib/phpseclib:2.0.@dev first, so if you change the deployer package require to 2.0.@dev instead of dev-master@dev maybe it'll work?

Now fixed. Hardcoded :scream:

Hardcoding a dependency version is fine in my opinion. You can always change it if you need to update!
My issue with this though is that the phpseclib package apparently isn't in 2.x stable (last stable is 0.3?) and you're requiring 2.x@dev so if you want to use deployer you need to specify minimum-stability as dev in your composer file. Otherwise that dependency will fail :(

Now must work. Try it: composer require deployer/deployer:dev-master@dev

Yes that works :) But the @dev is the same as saying I want the dev/beta stuff and not stable stuff, but I guess that's because phpseclib has no stable package right?

Yes, right.

When will this get to composer package? I still experience the same error in 2.x:
composer require --dev deployer/deployer:'~2.0'
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing elfet/php-ssh (v1.1.0)
    Downloading: connection...    Failed to download elfet/php-ssh from dist: The "https://api.github.com/repos/elfet/php-ssh/zipball/439becf180272542cbf154df4856a49dd3c4bf04" file could not be downloaded (HTTP/1.1 404 Not Found)
    Now trying to download from source
  - Installing elfet/php-ssh (v1.1.0)
    Cloning 439becf180272542cbf154df4856a49dd3c4bf04

  [RuntimeException]
  Failed to clone git@github.com:elfet/php-ssh.git via git, https, ssh protocols, aborting.
  - git://github.com/elfet/php-ssh.git

and when I try to install dev or >=2.0.2:
composer require --dev deployer/deployer:'~2.0, >=2.0.2'                                                                                ⏎
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - deployer/deployer v2.0.5 requires phpseclib/phpseclib 2.0.*@dev -> no matching package found.
    - deployer/deployer v2.0.4 requires phpseclib/phpseclib 2.0.*@dev -> no matching package found.
    - deployer/deployer v2.0.3 requires phpseclib/phpseclib 2.0.*@dev -> no matching package found.
    - deployer/deployer v2.0.2 requires phpseclib/phpseclib 2.0.*@dev -> no matching package found.
    - Installation request for deployer/deployer ~2.0, >=2.0.2 -> satisfiable by deployer/deployer[v2.0.2, v2.0.3, v2.0.4, v2.0.5].

Шебы because of phpseclib. Add minimum-stability dev to composer.json file. Will be fixed when phpseclib will release lib.

Try this:
{
    "require": {
        "deployer/deployer": "2.0.5"
    },
    "provide": {
        "ext-ssh2": "*"
    },
    "minimum-stability": "dev"
}


add sep24 withdrawal e2e test

add sep24 withdrawal e2e test
can be run against anchor platform + business server + payment observer setup
example:
python3 development_ap_e2e.py --domain localhost:8080 --secret <secret> --tests sep24_withdrawal_flow

Reference Server Preview is available here:https://anchor-ref-pr743.previews.kube001.services.stellar-ops.com/SEP Server Preview is available here:https://anchor-sep-pr743.previews.kube001.services.stellar-ops.com/

Reference Server Preview is available here:https://anchor-ref-pr743.previews.kube001.services.stellar-ops.com/SEP Server Preview is available here:https://anchor-sep-pr743.previews.kube001.services.stellar-ops.com/


Incorrect results from get-def

For this snippet, flow v.0.38.0:
var value = '';
var i = 0;
for (var j = 0; j < 10; j++) {
  //changing the switch variable to i changes the output
  switch (j) {
    case 0:
      value = 'zero';
      break;
    case 1:
      value = 'one';
      break;
  }
}

Trying to get definition of 'j++' returns range pointing somewhere inside switch statement.
$ flow get-def flow-test.js 3 25
6:5,8:12
Changing the variable used inside the switch from j to i gives what I would consider the correct result:
$ flow get-def flow-test.js 3 25
3:10,3:10

Still not fixed in 0.42.0.
I'm surprised at the lack of response. Some kind of response would be nice, an aknowledgment that this is a valid issue, at least.
Is the problem that get-def is not supported?

Sorry for the lack of response. get-def is definitely supported, but sometimes it points to weird locations, because it uses the underlying type inference machinery which can sometimes infer types from far-away uses.

Thanks, that's good to know.
But also not clear to me from your reply - is this a valid issue?
or are we wrong in assuming get-def should return the place where the variable was defined, not where the type was inferred?

This now works.


[1.1] Change field annotations

Found some leftovers when doing #1471

Argh this should go into dev-1.1.x


fatal error while building: CL/cl.h: No such file or directory

resolution
Apparently, opencl-headers is needed. Once I installed it with pacman -S opencl-headers, it builds successfully. Amazing project, really. I love the speed.

issue
I am running Arch Linux with kernel 5.19.13 from linux-surface. When I try building from source using the instructions in the readme, I get an error repeatedly and fastfetch does not build at cmake --build . --target fastfetch --target flashfetch:
/home/ay/fastfetch/src/modules/opencl.c:16:14: fatal error: CL/cl.h: No such file or directory
   16 |     #include <CL/cl.h>
      |              ^~~~~~~~~
compilation terminated.
make[3]: *** [CMakeFiles/libfastfetch.dir/build.make:1126: CMakeFiles/libfastfetch.dir/src/modules/opencl.c.o] Error 1
make[2]: *** [CMakeFiles/Makefile2:87: CMakeFiles/libfastfetch.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:120: CMakeFiles/fastfetch.dir/rule] Error 2
make: *** [Makefile:202: fastfetch] Error 2

I have cmake version 3.24.2, and glibc is installed. Do I need anything else?

Can you please tell me what the error was? Maybe i can fix it on fastfetch side.


PropertyGroupOptionCollection->groupByPropertyGroups fails for PropertyGroupOption without loaded group

Description:
When calling the groupByPropertyGroups function on a PropertyGroupOptionCollection that contains a PropertyGroupOption, for which the group has not been loaded, the error:
"Shopware\Core\Framework\DataAbstractionLayer\Entity::getUniqueIdentifier(): Return value must be of type string, null returned" is thrown.
This is the result of lines 57 and 58 in PropertyGroupOptionCollection where a new Entity is instantiated but does not have a _uniqueIdentifier set, which is required for the EntityCollection->add method to work.
Environment:

Shopware <IP_ADDRESS>

Steps to reproduce:

create a PropertyGroupOptionCollection with a PropertyGroupOption that does not have a group
call groupByPropertyGroups

Expected result:
The method does not attempt to cover for not loading the association and fails with a readable error message.
Actual result:
See above.

[public] Shopware automated response: This issue is linked to the internal issue: NEXT-37574
[created from NEXT-37574, comment 514364]


Ordering of disributions on page and tab

This might be a bit minor.... The ordering of the entries in the distributions tabs is reverse chronological when the entries on the page are chronological.
For conformity, Rolling should probably have its own page and entry in the chart rather than a couple of paragraphs at the bottom of the main distros page.

this has been addressed in the refactoring being done by @esthersweon


DOM Access

Hey everyone,
I'm currently planning to write an end-to-end (E2E) test, but I noticed there are no table elements in the DOM. Is there a way to add specific HTML attributes to the cells?
I appreciate any suggestions or feedback!
Thanks!

hi, are you looking to add attributes to individual cells?

Hi! Yes, that would be great. I want to test editing data directly in the spreadsheet, so adding attributes to individual cells would be very helpful.

im sorry for the delay, i have no been able to do anything code related this week regarding this repo for the last 10 days. i will try my best to get back to you asap.

Sure, no problem, please let me know if You come up with something:)

Hey @sanchit3008,
I'm also looking for information on how to add attributes to cell objects in a spreadsheet. Could you provide some guidance on this? Alternatively, would it be possible to add this feature to the library?
Thank you!

@Marcel-Kaminski if youre looking for these attributes to be attached to the html element then i dont think thats possible at this stage (for eg an id for individual cell) because of how the sheet has been built.

okay, How can one access elements in situations where the HTML DOM of a component is not visible, for instance, through XPath? Additionally, how does the library construct the component in such cases?


Switch to main wgpu branch

In #191 I switched to a third-party branch to fix the stencil after upgrading to wgpu 0.14.
Change to main wgpu branch as soon as the fix landed.

Done in https://github.com/maplibre/maplibre-rs/pull/198


Document how to run the converter program in README.md

What is the command and flags to run the converter?

Looks like @powerc9000 has updated README.md with this information.  Closing.


guidance to write code for Bot

I need guidance to write code for following.

I want to send private welcome message to a new user who joined my slack team.
2.I want to assign this new user to a private slack channel. I want to create private channel through code.
I want user to send attachments and I want to access those attachments through code.

For a private welcome message, you should be able to create an event handler for the Slack (team_join event)[https://api.slack.com/events/team_join].
To do that, just create a file in the functions/events directory of your Slack app called team_join.js, and subscribe to the bot event in your Slack dashboard like you did in the (tutorial)[medium.com/slack-developer-blog/build-a-serverless-slack-bot-in-9-minutes-with-node-js-and-stdlib-b993cfa15358].
Within that handler, just send a message with (chat.postMessage in Slack's API)[https://api.slack.com/methods/chat.postMessage]! You can specify a channel to post the message in, and I believe one of the options is a DM.
For attachments through code, you can see the functions/actions/example.js file in your starter Slack app for an example. Here's the code for it:
const lib = require('lib')({token: process.env.STDLIB_TOKEN});

/**
* example.js
*
*   Basic example action handler. Called in response to an input from an
*     interactive message action with name set to "example".
*   All Actions in response to interactive messages use this template, simply
*     create additional files with different names to add actions.
*
*   See https://api.slack.com/docs/message-buttons for more details.
*
* @param {string} user The user id of the user that invoked this command (name is usable as well)
* @param {string} channel The channel id the command was executed in (name is usable as well)
* @param {object} action The full Slack action object
* @param {string} botToken The bot token for the Slack bot you have activated
* @returns {object}
*/
module.exports = (user, channel, action = {}, botToken = null, callback) => {

  callback(null, {
    text: `Hello, <@${user}>!\nThis text will overwrite the original interactive message`,
    attachments: [{
      text: 'Try hitting this endpoint again by clicking the button!',
      fallback: 'Can\'t display attachment',
      callback_id: 'callback_id',
      actions: [
        {
          name: 'example',
          text: 'Refresh',
          type: 'button',
          value: 'value'
        }
      ]
    }]
  });

};

Let me know if I can help further!

Thanks Jacob. I will do that. In that same event handler, can I also create
private channel and assign this new user to private channel? Then I want to
send him/her welcome message to that private channel.
On Thursday, December 14, 2017, Jacob Lee<EMAIL_ADDRESS>wrote:

Let me know if I can help further!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/stdlib/lib/issues/114#issuecomment-351777285, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AYuh7FitzQl-Vdql7Mh_RKASCkNYXESCks5tAVf3gaJpZM4RBibl
.

--
Regards,
Ritesh
5102489605

I've never created a private channel through code, but it looks like this Slack API call would work: https://api.slack.com/methods/groups.create. Then, after you've created the channel, just send a chat.postMessage to the newly created channel.

Dear Jacob,
How do I write code in stdlib to make this API call? do you have utility
available just like chat.postMessage? I am a bit new to stdlib template and
SDK.
Regards,
Ritesh
On Thu, Dec 14, 2017 at 9:38 AM, Jacob Lee<EMAIL_ADDRESS>wrote:

I've never created a private channel through code, but it looks like this
Slack API call would work: https://api.slack.com/methods/groups.create.
Then, after you've created the channel, just send a chat.postMessage to
the newly created channel.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/stdlib/lib/issues/114#issuecomment-351783212, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AYuh7PiVcW8y9ySdBMW2wbGL3au7EoYfks5tAV0qgaJpZM4RBibl
.

--
Regards,
Ritesh
5102489605

No worries! You could look at how we do it in utils/message.js sending an http request to the URL directly, or you could look at the (slack npm package)[https://github.com/smallwins/slack]. They have wrappers around all of the Slack API calls.

awesome sir. thanks a ton.
On Thu, Dec 14, 2017 at 11:23 AM, Jacob Lee<EMAIL_ADDRESS>wrote:

No worries! You could look at how we do it in utils/message.js sending an
http request to the URL directly, or you could look at the (slack npm
package)[https://github.com/smallwins/slack]. They have wrappers around
all of the Slack API calls.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/stdlib/lib/issues/114#issuecomment-351810262, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AYuh7ElxY4TbNN-tvl8_j6x-opSQ4zzjks5tAXWwgaJpZM4RBibl
.

--
Regards,
Ritesh
5102489605

this is my code for team_join.js. How to specify that message should be
posted in #general channel?
const lib = require('lib')({token: process.env.STDLIB_TOKEN});
/**
*

@param {string} user The user id of the user that invoked this command
(name is usable as well)

@param {string} channel The channel id the command was executed in (name
is usable as well)

@param {string} text The text contents of the command

@param {object} command The full Slack command object

@param {string} botToken The bot token for the Slack bot you have
activated

@returns {object}
*/
module.exports = (user, channel, text = '', command = {}, botToken = null,
callback) => {
callback(null, {
text: `welcome to my channel'
});

};
On Thu, Dec 14, 2017 at 11:42 AM, ritesh mehta<EMAIL_ADDRESS>wrote:

awesome sir. thanks a ton.
On Thu, Dec 14, 2017 at 11:23 AM, Jacob Lee<EMAIL_ADDRESS>wrote:

No worries! You could look at how we do it in utils/message.js sending
an http request to the URL directly, or you could look at the (slack npm
package)[https://github.com/smallwins/slack]. They have wrappers around
all of the Slack API calls.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/stdlib/lib/issues/114#issuecomment-351810262, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AYuh7ElxY4TbNN-tvl8_j6x-opSQ4zzjks5tAXWwgaJpZM4RBibl
.

--
Regards,
Ritesh
5102489605 <(510)%20248-9605>

--
Regards,
Ritesh
5102489605


Make Tween.get multiple targets

It's nice to have multiple targets in Tween.get to reduce the number of lines in code:
var target_a = new createjs.Shape();
var target_b = new createjs.Shape();
var targets = [target_a, target_b];

createjs.Tween.get(targets, {loop:true}, true)
    .to({x: 300, y: 300}, 3000);

// also support the following:
createjs.Tween.get(target_a, {loop:true}, true)
    .to({x: 300, y: 300}, 3000);
createjs.Tween.get(target_b, {loop:true}, true)
    .to({x: 300, y: 300}, 3000);

I have a question, is this already implemented? Thanks!

Not yet. Once it's approved, I'd make a patch :)

I don't think this is possible with our current model. It would require:

Recognizing the difference in intent between tweening properties or value on an Array, versus creating multiple tweens with different targets.
Having get() return some kind of composite object that would distribute chained calls to multiple sub tweens. This is the real killer.

I'd strongly recommend just using a loop:
for (var o of [target_a, target_b]) {
   createjs.Tween.get(o).to(...);
}

Feel free to reopen if you think this is a really compelling feature.

If I have to tween multiple objects in parallel, but need to have one callback when all tween is completed. Do you have some good solution for this case?

@zur4ik If the tweens have the same duration, you can just create two separate ones, but only add a call() to one of them (the longer). Tweens are deterministic, so they should play at the duration specified, no matter what the CPU performance is.
If you have complex tween chains, and don't want to determine the length, you could just have them both call the same method, and ensure both have finished before moving on:
tween1 = createjs.Tween.get(obj).to({}, 1000).wait(1000).to({}, 3000).wait(1000).etc()
  .call(tweenComplete);
tween2 = createjs.Tween.get(obj2).etc()
  .call(tweenComplete);

var tweensComplete = 0;
function tweenComplete(event) {
  tweensComplete++;
  if (tweensComplete == 2) {
    // do something
  }
}

Obviously that is just an example, but those are probably your best options. There is no framework in TweenJS to manage multiple objects with a single tween, so you will have to come up with something that works for your case.
Cheers,

And of course, you could use Timeline, which is specifically designed for coordinating parallel tweens.

@lannymcnie  - Thanks, I was thinking to same trick.
@gskinner  - That's what I wanted. Thanks!


Pass parameter from host to the addin

I am opening my excel workbook from command prompt and passing some arguments to it as shown in the below example.
I am able to load my addin when the document is opened but how do i pass the parameter to the addin or is there a way to read the parameter in Office.initialize function?
example:
excel.exe xyz.xlsx parameter

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

ID: cc45d88c-993f-01c9-6134-8b28cce6697f
Version Independent ID: 4823080f-5e05-41d3-26c4-0cdb5037ede5
Content: Run code in your Excel add-in when the document opens - Office Add-ins
Content Source: docs/excel/run-code-on-document-open.md
Product: excel
Technology: add-ins
GitHub Login: @o365devx
Microsoft Alias: o365devx

Hi @KapilGeorge,
Today, you can't pass parameters from the command line into Office.initialize. I'd recommend you create a request on UserVoice. We use UserVoice to prioritize community requests for addition to the product. If the community also needs the feature and upvotes your request, it'll be more likely to be added to the add-ins platform.
Since there's no actionable documentation work item, I'm going to close this issue. Please let me know if you have any other questions. Thanks!

and where is UserVoice?

Hi @Shujee,
Since my last post, Microsoft has moved away from using UserVoice. We now track community feature requests for the M365 Developer Platform on Tech Community: https://techcommunity.microsoft.com/t5/microsoft-365-developer-platform/idb-p/Microsoft365DeveloperPlatform


Gather and store data related to community wallets

Goal
Gather and store data on a frequent basis. Once this task is completed, we will have data needed to build a dashboard that focuses on events made by community wallets.
Bounty
2.000,- 0L tokens
Related services
This task involves modification of two (already existing) services: db and crawler, as defined in docker-compose.yml.
Related directories
Changes will most likely only be made in services/datahub and its sub directories and files.
Data sources
Community wallets are currently stored in a json file in this project: wallets.json.
Transactional data is sourced from existing 0l api's. Docs can be found here: permission-tree-monitoring and this api is running here: https://0lexplorer.io:444/ e.g. https://0lexplorer.io:444/permission-tree/stats.
A second api that can be used is the api of 0lexplorer website itself, but I cannot find any docs about its end points. The code for this website can be found here: 0l-explorer and an example endpoint: node events.

Processes for ingesting community wallet data that is already available through existing api's have been developed and tested in main.py.


Replace recursiveness by recursivity

    /**
     * This test runs all rules against an API specification with recursive references. It prevents check developers
     * from StackOverflow exceptions during the check execution.
     *
     * General advice: Don't use `hashCode` or `toString` methods on the OpenAPI elements since they don't support
     * recursiveness. Keep in mind that these methods can be called implicitly (e.g. when putting objects in a Set).
     */
    @Test
    fun `all rules must be able to cope with recursive api specifications`() {

recursiveness is not a word.
The word you are looking for it recursivity.
Perform a project wide search to make sure that mistake is not anywhere else.

https://en.oxforddictionaries.com/definition/recursiveness ;)

That being said, the term used in the computer world is normally recursivity, so I would still propose that change.

Yes, let's change it to recursivity.

Don’t think I’d come across “recursivity” before this issue but “recursiveness” isn’t especially common either. In conversations I’ve had “recursive” is typically a Boolean attribute, not a continuous variable with multiple degrees.
How about finding a way to simplify the language, rephrasing to use “recursive” and some additional words? (Haven’t looked up the context where we use it and so don’t have a concrete suggestion right now)
Thanks,
Rob

On 29 Oct 2018, at 09:33, Maxim<EMAIL_ADDRESS>wrote:
Yes, let's change it to recursivity.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Out of curiosity I just looked up the 3 words on google trends and was a little surprised to see that recursivity is slightly more common than recursiveness. However, both disappear in the bottom of the chart when compared to recursion.

This is what I call research!

Also, the Kotlin term for it is Recursion. It should definitely be it. Changing this issue.

Can be closed now.


Bump BSEC version to 1.4.8

Change-type: patch
Signed-off-by: Rahul Thakoor<EMAIL_ADDRESS>Depends-on: https://github.com/balena-io-playground/bsec_bme680_linux/pull/1

@balena-ci retest


[DH3] java.lang.RuntimeException: java.lang.ClassNotFoundException

Hi @f2prateek @stephanenicolas ,
It's been some time I haven't used this library and I see there has been breaking changes with the 3rd version. Glad to see it!
Especially because on one of my project we're facing issues while building a consistent navigation architecture that requires to be shared across different modules. So I wanted to test this new version and see if it could be a good fit for us ;)
Problem is: I can't make my prototype project work. I'm using Kotlin but don't believe it changes anything (and was perfectly working with DH2). I built a sample app which has:

an app module
an app-navigation library module
a casino library module
a casino-navigation library module

I wanted to attach a couple of activities to each modules and add navigation models to each navigation modules and see with dependencies if I could simply route from one activity to another. I believe I'm missing something with the navigatorPackageName configuration in the build.gradle file. I tried different combination but can't managed to make this work. I went through the sample app attached to the lib but can't find what I'm doing wrong. Also found it hard to see given that module and navigation module have the same package name... Sorry for the big thread but I think it will be plainer with pictures :D
Here is the project's architecture:

The build.gradle files:

The code with the generated activity intent builder that causes the issue:

In the intent builder we can see that it tries to instanciate MyAccountActivity from package com.github.stephenvinouze.samplenavigation which is the package name of my app-navigation
module where the navigation model for this activity resides.
It would be awesome if you could point me out in the right direction! It could help me and especially my teammates to strongly consider using DH3 in our project in a very near future.
If you need more info don't hesitate and sorry again for the super long thread. I guess it will be worth it to everyone to manage to find out the issue as it is not obvious to me how to setup DH3 from the README as of now.
As before I would be happy to update again the Kotlin part in the README and also add a sample app as it is planned in open issues ;)
All the best,
Stephen

The activity and navigation model should have the same package name.
So for your case, the package name for the navigation model should be "com.github.stephenvinouze.sample", not the "com.github.stephenvinouze.samplenavigation".

Thx @jackytvlk , yes I think this is the issue you're facing @StephenVinouze . Same for GameSearchActivity, MainActivity, etc. The navigation model should be exactly : fqn of you activity + NavigationModel suffix.
We're sorry about this constraint, but that was the solution that made most sense for us.
Thx @jackytvlk for the support.


Updated Information for "Reflected Diffusion Models"

Updated Information for "Reflected Diffusion Models".

It is now updated. Congratulation to your acceptance!


fwupd: 1.4.0 → 1.4.1

[x] Built both on NixOS
[x] Ran fwupd and libjcat tests
[x] Checked the fwupd output diffs – no changes of module/passthru needed

Result of nixpkgs-review pr 87017 1

5 packages built:
- discover
- fwupd
- gnome-firmware-updater
- gnome3.gnome-software
- libjcat

Rebooting now and will report back after that.
 fwupdmgr update
• Thunderbolt Controller has the latest available firmware version
• Embedded Controller has the latest available firmware version
• Intel Management Engine has the latest available firmware version
Upgrade available for SAMSUNG MZVLB1T0HALR-000L7 from 4L2QEXA7 to 5L2QEXA7
20KH006MGE must remain plugged into a power source for the duration of the update to avoid damage. Continue with update? [Y|n]: y
Downloading 5L2QEXA7 for SAMSUNG MZVLB1T0HALR-000L7...
Fetching firmware https://fwupd.org/downloads/e92c5057bd3b380406a77c3e3eb52746d1a4292e445a3a992467295a656d7744-Lenovo-SAMSUNG-PM981-NVMe-5L2QEXA7_512GB_1TB.cab
Downloading…             [***************************************]
Decompressing…           [***************************************]
Authenticating…          [***************************************]
Updating SAMSUNG MZVLB1T0HALR-000L7…                             ]
Writing…                 [***************************************]
Successfully installed firmware
Upgrade available for System Firmware from 0.1.45 to 0.1.46
20KH006MGE must remain plugged into a power source for the duration of the update to avoid damage. Continue with update? [Y|n]: y
Downloading 0.1.46 for System Firmware...
Fetching firmware https://fwupd.org/downloads/4fdc16ff0f0dda2fb1a057a295d219aada69a1ef48c77e389bcfe2b88bedf1c7-Lenovo-ThinkPad-X1Carbon6th-SystemFirmware-1.46.cab
Downloading…             [***************************************]
Decompressing…           [***************************************]
Authenticating…          [***************************************]
Updating System Firmware…[***************************************]
Scheduling…              [***************************************]
Successfully installed firmware: Platform firmware measurement unavailable. Secure boot is disabled in BIOS setup, enabling it may fix this issue
• UEFI Device Firmware has no available firmware updates

An update requires a reboot to complete. Restart now? [y|N]:

Thanks.


NavigationView: Fix app crash in Top mode when clearing the item collection while a selected item exists

Description
This PR fixes a regression introduced with PR https://github.com/microsoft/microsoft-ui-xaml/pull/1997 which manifested itself in an app crash. The crash occured when the NavigationView is

in Top pane display mode
one of its menu items is selected and
the item collection used to populate the NavigationView (either MenuItems or MenuItemsSource) is cleared

Motivation and Context
Fixes https://github.com/microsoft/microsoft-ui-xaml/issues/3200
How Has This Been Tested?
Tested manually and added API test.

/azp run


raidboss: r4s electrope edge 2 improvements

This adds some additional info to the callouts for EE2.  One strat involves switching partners based on long vs. short debuff assignment if it's Four Star + Sidewise Spark after; another strat involves fixed positions (and variable partners) based on role & Witchgleam stack count.  This supports both by:

Adding the list of other players with the same (short vs. long) debuff to the initial call, similiar to the snake callouts in p8s.
Adding (X stacks after) to the Star + Sidewise Spark alert for long debuffs.

I don't think listing other player names on R4S Electrical Condenser Debuff Initial is needed.
The strat in Aether PF is fixed positions based on your role and your stack count, so just a reminder of your stack count on the sidewise spark count is sufficient.
For reference:

I don't think listing other player names on R4S Electrical Condenser Debuff Initial is needed.

Respectfully, I think I disagree.  A number of the world prog groups were doing debuff role swaps so people had fixed positions, and I know a number of non-world prog groups still doing that.
If the (current) aether PF strat becomes universal (keeping in mind there's other DCs and regions that may adopt something different), the extra info from the initial call can always be removed. But I think it's useful for now for at least the way some groups are doing it.  I think our approach in the past has been to generally display info in a strat-agnostic fashion, and to support specific strats with config options.

Respectfully, I think I disagree. A number of the world prog groups were doing debuff role swaps so people had fixed positions, and I know a number of non-world prog groups still doing that.

I was referring to my original request for the reminder for stack counts for longs. If there's value here for other strats, I'm fine with adding the extra info. I just don't want to pass over the threshold of "too much info".
I'll go ahead and approve this, the code itself looks fine, my main concern was "this might be a lot to take in while also doing other mechs".

I was referring to my original request for the reminder for stack counts for longs. If there's value here for other strats, I'm fine with adding the extra info. I just don't want to pass over the threshold of "too much info".
I'll go ahead and approve this, the code itself looks fine, my main concern was "this might be a lot to take in while also doing other mechs".

I'm fine with forking the PR to add the long-stack reminder that you asked for, and we can continue to noodle on the names portion and get input from others.  There may be a more reasonable way to shorten it (just display name of role buddy with same length debuff?), or we can see how things unfold with strats in the coming weeks.  Either way, the long-stack reminder portion has utility beyond just a particular strat, so I'm fully aligned on landing that now.

I'm fine with landing this as-is and putting up an issue or something for others to weigh in on if needed?


Embedded/Composite types

Convert from PrismaValue::Object

Any update on this! Currently, using type in schema.prisma gives unimplemented!() panic.

Nah I haven't been putting any work into it. MongoDB isn't a priority or even something I know much about

Thanks for your work to offer prisma rust tools. Is there any update on this? For the mongodb, the composite types is truely needed to store nested document.

No update sadly, but if I find time I may implement them for the next update. They should work similar to regular models if I understand correctly.

Tried to implement it, but don't really know how to implement the generator part, then give up, lol.

Aight this should be doable

Docs: https://prisma-client-rust-git-main-brendonovich.vercel.app/extra/composite-types


helm: fix security context for linux

Signed-off-by: Anish Ramasekar<EMAIL_ADDRESS>
Reason for Change:

allowPrivilegeEscalation: false cannot be set when privileged: true

Requirements

[x] squashed commits
[x] included documentation
[x] added unit tests and e2e tests (if applicable).

Issue Fixed:

Does this change contain code from or inspired by another project?

[ ] Yes
[x] No

If "Yes," did you notify that project's maintainers and provide attribution?
Special Notes for Reviewers:

/azp run pr-e2e-azure

Codecov Report

Merging #600 (c034666) into master (6405cb2) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #600   +/-   ##
=======================================
  Coverage   63.66%   63.66%
=======================================
  Files           7        7
  Lines         589      589
=======================================
  Hits          375      375
  Misses        180      180
  Partials       34       34


[GOBBLIN-772]Implement Schema Comparison Strategy during Disctp

Dear Gobblin maintainers,
Please accept this PR. I understand that it will not be reviewed until I have checked off all the steps below!
JIRA

[x] My PR addresses the following Gobblin JIRA issues and references them in the PR title. For example, "[GOBBLIN-XXX] My Gobblin PR"

https://issues.apache.org/jira/browse/GOBBLIN-772

Description

[x] Here are some details about my PR, including screenshots (if applicable):
We need a schema comparison strategy to make sure the real schema and the expected schema have matching field names and types.

Tests

[x] My PR adds the following unit tests OR does not need testing for this extremely good reason:
Make the real schema and expected schema have different name or type and make sure the method return false. And make they have matching name and type but not the same doc and make sure the method return true.

Commits

[ ] My commits all reference JIRA issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message":

Subject is separated from body by a blank line
Subject is limited to 50 characters
Subject does not end with a period
Subject uses the imperative mood ("add", not "adding")
Body wraps at 72 characters
Body explains "what" and "why", not "how"

@ibuenros @autumnust Can you take a look at this code?

@ZihanLi58 Travis is failing

+1


Fix registerViewAssets problem with PHP7

For a description of the problem see https://www.concrete5.org/community/forums/block_requests/block-zoomer-error/#929826

Thanks!


[1.21] Crash input/output error

Hello,
This morning our vanilla server randomly crashed but didn't generate any crash log.
Here's the latest log : https://gist.github.com/jinkhya/3b12645e87bed129426b56f77726df25
You can see the error. at the end of the log
Best regards,
Jin

That is weird, it's just a generic I/O error inside Java's FileInputStream, which could mean anything.
One thing that catches my eye are these messages:

[00:11:18] [JDA MainWS-ReadThread/INFO]: ATM9.sky[BOT] Server Stopped!
[00:11:59] [JDA MainWS-ReadThread/INFO]: ATM9.sky[BOT] Server Starting...
[00:12:21] [JDA MainWS-ReadThread/INFO]: ATM9.sky[BOT] Server Crash Detected :thinking:

This also happens a few seconds before the crash, so maybe it's related to it? Though I don't see how...

[04:11:18] [JDA MainWS-ReadThread/INFO]: ATM9.sky[BOT] Server Stopped!
[04:11:58] [JDA MainWS-ReadThread/INFO]: ATM9.sky[BOT] Server Starting...
[04:13:04] [Server console handler/ERROR]: Caught previously unhandled exception :

I'm assuming this is a Discord bridge you are using. I can find JDA, but what mod are you using specifically?
I'd like to have a look at what it's doing and there's like dozens of them.
Other than that, I'm not sure if there's much we can do. The error happens inside JLine/Java, so we can't really "fix" it, but maybe we can try to restart the terminal if this happens? Gonna see if that is possible.

Aight, released a new version which tries to restart the terminal when it encounters an IOError.
Might help, might not, I could only test it without actual errors.
I also updated JLine, though that'll probably do nothing on this front.
Let me know how you fare with this.

I'm assuming this is a Discord bridge you are using. I can find JDA, but what mod are you using specifically?
I'm using discord integration Fabric yes. Here's the source code : https://github.com/ErdbeerbaerLP/DiscordIntegration-Fabric

Thank you for the new version ! I'll update it right now and I'll let you know if I ever get the same issue.


[BARX-408] Bump cookbook version

What does this PR do?
Bump cookbook to 4.20.0

Motivation

Additional Notes

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

If possible run a full pipeline before merge to check that it doesn't break any kitchen tests

/trigger-ci --variable RUN_ALL_BUILDS=true --variable RUN_KITCHEN_TESTS=true --variable RUN_E2E_TESTS=on --variable RUN_UNIT_TESTS=on --variable RUN_KMT_TESTS=on

/merge


Implement Python Debug functionality

Presently as of 0.1, there is no ability to debug a Python script.
This is issue will implement debug functionality within the IDE.

Maybe interface with https://pypi.org/project/pudb/


feat: Red–black tree

Feature Request
Describe the Feature Request
A Red-black tree is a balanced binary search tree where each node has an additional attribute: color. The color is either red or black, and the tree maintains its balance by following some specific rules. Red-black trees are useful for fast storage and retrieval of ordered information.
Related Code
Here's a basic outline of how you could define a Red-Black tree struct and trait in Cairo:
// Enum to represent the color of a node in the Red-Black tree.
enum Color {
    Red,
    Black,
}

// The RedBlackTreeNode struct represents a single node in the Red-Black tree.
struct RedBlackTreeNode<T> {
    color: Color,
    value: T,
    left: Option<RedBlackTreeNode<T>>,
    right: Option<RedBlackTreeNode<T>>,
    parent: Option<RedBlackTreeNode<T>>,
}

// The RedBlackTree struct represents the whole Red-Black tree.
struct RedBlackTree<T> {
    root: Option<RedBlackTreeNode<T>>,
}

trait RedBlackTreeTrait<T> {
    // Creates a new Red-Black tree.
    fn new() -> RedBlackTree;

    // Inserts a value into the Red-Black tree.
    fn insert(ref self: RedBlackTree, value: T);

    // Removes a value from the Red-Black tree.
    fn remove(ref self: RedBlackTree, value: T) -> bool;

    // Searches for a value in the Red-Black tree.
    fn search(self: @RedBlackTree, value: T) -> bool;

    // Returns the minimum value in the Red-Black tree.
    fn min(self: @RedBlackTree) -> Option<T>;

    // Returns the maximum value in the Red-Black tree.
    fn max(self: @RedBlackTree) -> Option<T>;

    // Returns the number of nodes in the Red-Black tree.
    fn len(self: @RedBlackTree) -> usize;
}

Additional Context

If the feature request is approved, would you be willing to submit a PR?
(Help can be provided if you need assistance submitting a PR)

[ ] Yes
[ ] No

I can take that

awesome @neotheprogramist! this might be a useful resource: https://github.com/topology-gg/bto-cairo-1

compiler needs to be fixed to allow recursive structs

Throwing in this lead over here too - https://github.com/TheAlgorithms/Rust/blob/master/src/data_structures/rb_tree.rs


Elm completeness check erroneously requests duplicate branch

Although all Expression cases have been accounted for, Elm commplains that Op A needs to be accounted for.
type Op = A | B | C
type Expression = Expression Op Int

do : Expression -> Int
do expr =
  case expr of
    Expression A i ->
      i
    Expression op i ->
      let
        x = i * 2
      in
        case op of
          B ->
            x + 3
          C ->
            x + 4

Yours is not a minimal example. The following one also has the property you are concerned about:
type Op = A | B | C
type Expression = Expression Op Int

do : Expression -> Int
do expr =
  case expr of
    Expression A i ->
      i
    Expression op i ->
        case op of
          B ->
            i * 2 + 3
          C ->
            i * 2 + 4

My analyis:
The error message the compiler gives is correct (both in your and in the reduced example). It says that the inner case does not have branches for all possibilities.
You will likely object that the possibility A is not possible because it is "handled" by a previous branch of the outer case. But that's not how the analysis works. Each case is looked at independently.
I don't know of any compiler doing exhaustiveness checks that would handle such "holistic analysis including all context". Likely it's not even doable in general. (Mumbles "Rice's theorem" under his breath.)

I'll preface this by saying I'm really not too fussy about this, and happy to accommodate the compiler by rearranging my code.
Having said that,
neither example has conditional branching that would affect the reachability of any of the case statements.
For that reason I viewed this as an error.
I might have expected the compiler to fail on the following code.
type Op = A | B | C
type Expression = Expression Op Int

do : Expression -> Int
do expr =
  case expr of
    Expression A i ->
      i
    Expression op i ->
        if (i*2 < 3 || i*2 > 3) then
          case op of
            B ->
              i * 2 + 3
            C ->
              i * 2 + 4
         else
           Debug.crash "i*2 /= 3"

Yes, sure, there are infinitely many syntactic special cases that would allow successful analysis. And the compiler could pick a larger syntactic class than it currently does. Trying to "look through" let-expressions that don't affect the scrutinee of the inner case-expression etc. The question/trade-off then becomes where to stop, given that the general class of all expressions is not reachable for analysis. As mentioned, I'm not aware of a compiler that goes significantly farther than the Elm compiler in this regard.

If we can find compilers that do analysis that is aware of control flow (as is needed in the example with if) we should link about how they do it.
Otherwise, it's like @jvoigtlaender said, I don't know of any compiler that does exhaustiveness checking across multiple case expressions, and I don't think we should track it as an error if we are not even sure this is a decidable problem.