Fix: Firestore excess engagment issue is solved (probably)

The firebase database was under a lot of constraint because the leaderboard calculator was putting a constraint on the firebase database to calculate both the leaderboard seperately.
I also added some very minor style changes as well.
Fixes:
Move the sorting logic for buttonsData outside the component and perform it only when the data changes. This way, the sorting operation is not repeated on every render.
Instead of using forEach and filter methods, use reduce to calculate the hashmap. This approach avoids iterating over the array multiple times.
Use a single reduce operation to calculate both hashmap and total Likes simultaneously, reducing the number of iterations over the buttonsData array.
NOTE: Although the issue is not completely solved as there are other smaller unoptimized requests taking place on the other components, this is a great fix from my end. I wish to work on other fixes to make it more optimized in the coming PRs

Every Thing Seems to be working Fine

If its alright, kindly give label and merge the PR


Find all references, Go to definition, etc. are not working in Javascript

VSCode Version: Code 1.6.0 (e52fb0bc87e6f5c8f144e172639891d8d8c9aa55, 2016-10-10T18:37:40.189Z)
OS Version: Windows_NT ia32 10.0.14393
Extensions: dbaeumer.vscode-eslint-1.0.7, ivangabriele.vscode-tfs-0.5.2, ms-vscode.csharp-1.4.1, msjsdiag.debugger-for-chrome-1.1.0, vsmobile.cordova-tools-1.2.3

Steps to Reproduce:

Open any JavaScript file with functions
Find a function invocation, right click on "Go to definition", nothing happens. Previous release went to definition.

Works for me, assigning to @waderyan to investigate deeper

I'd like to downgrade to the previous release to see if it resolves the issue, where can I find previous VS Code releases?
I also tried with the Insider build and the issue happens in that version.
No changes were done on this machine except the upgrade to VS Code yesterday, the feature was working with no issues in the preceding version.

@atsats this is working for me. Can you share your workspace so I can recreate what you are seeing?
You can install a separate build per this comment.

When I reverted back to 1.5.0 stable, it worked right away. Unfortunately, I can't share the workspace as this is a confidential project for a client. I will try on another machine and also try to create a minimal project in which this issue recurs and report back. Give me about one day.

@atsats thank you. Let me know. I cannot recreate this on my machine but I believe this happens a non-trivial amount of time.

Sorry for the delay, I will let you know by end of day if I can recreate

Hi Wade -
I think I found the issue.
I compared the non-working dev machine running 1.6.1 with another machine freshly installed with 1.6.1. I originally suspected it was one of the installed extensions on the non-working machine, so I installed each extension in turn on the freshly installed machine, but could not recreate the issue.
Then I noticed a small icon in the Code status bar prompting me to create a jsconfig.json file for a "better experience" - I did and, again, on the fresh install machine, it worked fine.
I then compared the jsconfig.json file with the one I had on the non-working machine and they were different. The latter had a timestamp of 4/18/2016 so it's been there for a while. When I copied the file to the fresh-install machine, it stopped working as well. So, here's what I suspect:
The latest version of Code uses any existing jsconfig.json and this may prevent the "Get Def.." functionality from working properly if the file has an applicable exclude statement. The last version of Code that worked for me was 1.5, so maybe you added this support in 1.6?
Here are the contents of my file if you need them:
{     "exclude": [         "node_modules",         "www/scripts",         "www/legacy",     ]     }
Anyway, my issue is resolved now and I'm running the latest again. Thanks for the follow-up!


Add google-chrome installation and env-var as part of Vagrant

The current vagrant scripts (/scripts/vagrant/core/) do no install google-chrome or set the environment variable. When I run 'npm test', I get an error:
No binary for Chrome browser on your platform.
Please, set "CHROME_BIN" env variable.

Since this is a vagrant box, should it use phantom instead?

npm test is to run karma, which only Travis is set up to do, as you need to build with the env variable COCO_TRAVIS_TEST set to something truthy. For day-to-day testing, you should use npm run jasmine for server tests and go to http://localhost:3000/test when running the dev machine to run client tests. I don't think we need karma to work on Vagrant.


ghttp_request.go GetRemoteIp ipv6 fix

IPv6 address only use square bracket when  in conjunction with other parts such as user:pass and :port.

Literal IPv6 addresses with square bracket can't be parsed by Golang offical net.ParseIP,.As the name GetRemoteIp  ,we just want a parsable IP,not the literal form in URI.

IPv6地址只有在与其他部分（如user:pass和:port）结合时才使用方括号。

带有方括号的IPv6地址不能被Golang官方的net.ParseIP解析。一个可解析的IPv6地址，不应该包含只URI中出现的，为了防止歧义使用的方括号。

Codecov Report

Merging #1508 (e2fbce0) into master (80e8a58) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #1508      +/-   ##
==========================================
+ Coverage   71.21%   71.22%   +0.01%
==========================================
  Files         415      415
  Lines       40413    40413
==========================================
+ Hits        28780    28785       +5
+ Misses       9811     9806       -5
  Partials     1822     1822

Flag
Coverage Δ

go-1.14
71.19% <100.00%> (-0.02%)
:arrow_down:

go-1.15
?

go-1.16
71.20% <100.00%> (+0.01%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

net/ghttp/ghttp_request.go
79.67% <100.00%> (ø)

os/gspath/gspath_cache.go
87.71% <0.00%> (-7.02%)
:arrow_down:

os/glog/glog_logger_rotate.go
68.78% <0.00%> (-1.47%)
:arrow_down:

net/gtcp/gtcp_conn.go
33.51% <0.00%> (+1.62%)
:arrow_up:

net/gtcp/gtcp_pool.go
38.63% <0.00%> (+10.22%)
:arrow_up:

Continue to review full report at Codecov.

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


Possibility to import Couchsurfing exported data

Hey there 👋🏽,
I believe that most of Couchers users come from Couchsurfing and as you maybe know, you can export your data from Couchsurfing as a json.
To make registration process easier for newcomers it would be nice to have possibility to import that json 🗃 into you profile (in profile settings or during registration process) and populate some its data like "Travelled to", "Occupation", "Education", etc..
What you think?

Yes, it'd be great. Tracked here: #4207


Update Bisect_ppx links

The repo is now at https://github.com/aantron/bisect_ppx. https://github.com/rleonid/bisect_ppx is now a fork.
The original Bisect is now deprecated. See https://github.com/gasche/bisect/issues/2#issuecomment-506602009 and https://github.com/gasche/bisect#deprecation.

Done.


Map stitching with T265 for large scale application ?

I would like to perform VIO using the T265 on a 1km road.
Since the T265 have limited memory, is it possible to perform map stitching with load/save internal map on a external computer ?
Also if it is possible, how can we know the limit of the map ? Does the T265 internal map memory have a maximum flag ?

How large a map you need depends on the scale of your scene.  If you are high up in drone with a downward facing T265 you might be able to see the same scene while moving over large distances so the map size would be small with respect to the distance covered, compared flying low over the ground which would eat up your map in relatively short distance.
The T265 map has a fixed size for now.  We are currently focusing on how to increase this size rather than how to, for example, tile/stitch map sections as the API for the former is more clear.
Can you explain a bit about what you are trying to?  Have you tried T265 on your driving example?  Is it a looping 1km road?  Do you have a saved map you could post?

I am currently searching for an embedded SLAM approach for a forest robot (inspection task) using low computer ressource (Jetson nano or the new RPI4).
I hesitate with a classical approach using a SLAM algorithm (orb-slam or other) on a normal computer or a low-power approach using the T265.
The travel distance is approximately 900m on a forest track.
I assume the current implementation of the T265 is in most case for indoor navigation on a relatively small scale (2 to 3 rooms of a house depending on the complexity of the scene).

You are correct that we have mostly tested indoors, but we have tested on drones and driven in cars outdoors.  Maybe forests will work? 🤷♂  We'd love to hear if they do!

I hope other people will also try the T265 in large / long scale condition ^^

I would like to perform VIO using the T265 on a 1km road.
Since the T265 have limited memory, is it possible to perform map stitching with load/save internal map on a external computer ?
Also if it is possible, how can we know the limit of the map ? Does the T265 internal map memory have a maximum flag ?

I would like to perform VIO using the T265 on a 1km road.
Since the T265 have limited memory, is it possible to perform map stitching with load/save internal map on a external computer ?
Also if it is possible, how can we know the limit of the map ? Does the T265 internal map memory have a maximum flag ?

how to save a pointcloud map using t256??,thanks

@Sttrr, you'll need to pair the T265 with a depth camera (say a D435) in order to get a point cloud.  See this tracking-and-depth example.

Hello @ParadoxRobotics,
I'm not super expert in programming and I need a little help. I'm doing something similar to your application in an indoor context. I already have a T265 and a D435. Could you please help me in understanding how to use them in order to save a map, import export it and re-locate my device in a known context? Samples or Documents? I did't find any document and I don't know where to start.
Thnak you very much for your help.

Thank you for highlighting the need for map stitching and larger map sizes using T265. We have moved our focus to our next generation of products and consequently, we will not be addressing this in the T265.

So if I understand the T65 will only be good on small scale SLAM without any expansion.

We have moved our focus to our next generation of products and consequently, we will not be addressing issues/new features in the T265.


e2e networking test schedule a pod to a NotReady node

I ran e2e tests against docker 1.7.0-rc2 release, found a bunch of issues. Here is one I think it belongs to kubernetes for sure.

ResizeNode test failed, the machine is removed from instance group:

| e2e-test-dawnchen-master      | us-central1-b | RUNNING | <IP_ADDRESS> | <IP_ADDRESS>  |
+-------------------------------+---------------+---------+----------------+-----------------+
| e2e-test-dawnchen-minion-vxvg | us-central1-b | RUNNING | <IP_ADDRESS> | <IP_ADDRESS>  |
+-------------------------------+---------------+---------+----------------+-----------------+
| e2e-test-dawnchen-minion-wkpa | us-central1-b | RUNNING | <IP_ADDRESS> | <IP_ADDRESS>  |

But kubectl get nodes still returns 3 ndoes:
$ kubectl get nodes
NAME                            LABELS                                                 STATUS
e2e-test-dawnchen-minion-5l11   kubernetes.io/hostname=e2e-test-dawnchen-minion-5l11   NotReady
e2e-test-dawnchen-minion-vxvg   kubernetes.io/hostname=e2e-test-dawnchen-minion-vxvg   Ready
e2e-test-dawnchen-minion-wkpa   kubernetes.io/hostname=e2e-test-dawnchen-minion-wkpa   Ready

This might be caused by the new docker binary I am testing against here. This is not the issue I am filing here.

Now networking test is running later, I noticed that the test is putting a pod on each node:  nettest-gwtc4 on node e2e-test-dawnchen-minion-5l11

Networking
  should function for intra-pod communication
  /go/src/github.com/GoogleCloudPlatform/kubernetes/_output/dockerized/go/src/github.com/GoogleCloudPlatform/kubernetes/test/e2e/networking.go:203
[BeforeEach] Networking
  /go/src/github.com/GoogleCloudPlatform/kubernetes/_output/dockerized/go/src/github.com/GoogleCloudPlatform/kubernetes/test/e2e/framework.go:47
STEP: Creating a kubernetes client
>>> testContext.KubeConfig: /usr/local/google/home/dawnchen/.kube/config
STEP: Building a namespace api object
STEP: Waiting for a default service account to be provisioned in namespace
INFO: Waiting up to 2m0s for service account default to be provisioned in ns e2e-tests-nettest-2a0e3f3f-102f-4ca9-b8a0-118d9da29626
INFO: Service account default in ns e2e-tests-nettest-2a0e3f3f-102f-4ca9-b8a0-118d9da29626 found. (39.623658ms)
[BeforeEach] Networking
  /go/src/github.com/GoogleCloudPlatform/kubernetes/_output/dockerized/go/src/github.com/GoogleCloudPlatform/kubernetes/test/e2e/networking.go:51
STEP: Executing a successful http request from the external internet
[It] should function for intra-pod communication
  /go/src/github.com/GoogleCloudPlatform/kubernetes/_output/dockerized/go/src/github.com/GoogleCloudPlatform/kubernetes/test/e2e/networking.go:203
STEP: Creating a service named "nettest" in namespace "e2e-tests-nettest-2a0e3f3f-102f-4ca9-b8a0-118d9da29626"
STEP: Creating a webserver (pending) pod on each node
INFO: Created pod nettest-gwtc4 on node e2e-test-dawnchen-minion-5l11
INFO: Created pod nettest-0awly on node e2e-test-dawnchen-minion-vxvg
INFO: Created pod nettest-0qbe9 on node e2e-test-dawnchen-minion-wkpa
STEP: Waiting for the webserver pods to transition to Running state
INFO: Waiting up to 5m0s for pod nettest-gwtc4 status to be running
INFO: Waiting for pod 'nettest-gwtc4' in namespace 'e2e-tests-nettest-2a0e3f3f-102f-4ca9-b8a0-118d9da29626' status to be '"running"' (found phase: '"Pending"', readiness: false) (41.642383ms)
INFO: Waiting for pod 'nettest-gwtc4' in namespace 'e2e-tests-nettest-2a0e3f3f-102f-4ca9-b8a0-118d9da29626' status to be '"running"' (found phase: '"Pending"', readiness: false) (5.083175533s)
INFO: Waiting for pod 'nettest-gwtc4' in namespace 'e2e-tests-nettest-2a0e3f3f-102f-4ca9-b8a0-118d9da29626' status to be '"running"' (found phase: '"Pending"', readiness: false) (10.125042821s)
INFO: Waiting for pod 'nettest-gwtc4' in namespace 'e2e-tests-nettest-2a0e3f3f-102f-4ca9-b8a0-118d9da29626' status to be '"running"' (found phase: '"Pending"', readiness: false) (15.166074216s)
INFO: Waiting for pod 'nettest-gwtc4' in namespace 'e2e-tests-nettest-2a0e3f3f-102f-4ca9-b8a0-118d9da29626' status to be '"running"' (found phase: '"Pending"', readiness: false) (20.207430126s)
INFO: Waiting for pod 'nettest-gwtc4' in namespace 'e2e-tests-nettest-2a0e3f3f-102f-4ca9-b8a0-118d9da29626' status to be '"running"' (found phase: '"Pending"', readiness: false) (25.248069231s)
INFO: Waiting for pod 'nettest-gwtc4' in namespace 'e2e-tests-nettest-2a0e3f3f-102f-4ca9-b8a0-118d9da29626' status to be '"running"' (found phase: '"Pending"', readiness: false) (30.289449349s)
INFO: Waiting for pod 'nettest-gwtc4' in namespace 'e2e-tests-nettest-2a0e3f3f-102f-4ca9-b8a0-118d9da29626' status to be '"running"' (found phase: '"Pending"', readiness: false) (35.330526598s)

I haven't checked networking code in detail yet, not sure the issue is test itself, or scheduler issue. cc/ @lavalamp since you recently changed this.
cc/ @quinton-hoole

The networking test doesn't use the scheduler, it manually fills in the host field.

Ok, then we should filter out NotReady nodes from testing; otherwise, the test itself has the dependencies on other tests.

Yes, that test is doing a questionable thing.

Agreed.

I implemented skipping not-ready nodes in #9676.
Is it enough to close this issue, or is there something else to be done here?

@marekbiskup I think that should fix the issue. @lavalamp ?

status: waiting for merge of #9676


Re-org calling functions after instantiation

Use execute_post_instantiate_functions to call start, _initialize,
__post_instantiate, __wasm_call_ctors functions
Always call start function for both main instance and sub instance
Only call _initialize and __post_instantiate for main instance
Only call ___wasm_call_ctors for main instance and when bulk memory
is enabled and wasi import functions are not found
When hw bound check is enabled, use the existing exec_env_tls
to call func for sub instance, and switch exec_env_tls's module inst
to current module inst to avoid checking failure and passing the wrong
module inst

a _start of wasm32-wasi function may look like below. It won't return unless main() finish. It may cause a re-entering issue if Always call start function for sub instance. It is also a little un-appropriated considering that WAMR tends to use execution context instead of the real instantiate.
0004fc func[29] <_start>:
 0004fd: 01 7f                      | local[0] type=i32
 0004ff: 02 40                      | block
 000501: 02 40                      |   block
 000503: 41 00                      |     i32.const 0
 000505: 28 02 90 a3 80 80 00       |     i32.load 2 4496
 00050c: 0d 00                      |     br_if 0
 00050e: 41 00                      |     i32.const 0
 000510: 41 01                      |     i32.const 1
 000512: 36 02 90 a3 80 80 00       |     i32.store 2 4496
 000519: 10 9b 80 80 80 00          |     call 27 <__wasm_call_ctors>
 00051f: 10 bd 80 80 80 00          |     call 61 <__main_void>
 000525: 21 00                      |     local.set 0
 000527: 10 d0 80 80 80 00          |     call 80 <__wasm_call_dtors>
 00052d: 20 00                      |     local.get 0
 00052f: 0d 01                      |     br_if 1
 000531: 0f                         |     return
 000532: 0b                         |   end
 000533: 00                         |   unreachable
 000534: 00                         |   unreachable
 000535: 0b                         | end
 000536: 20 00                      | local.get 0
 000538: 10 c4 80 80 80 00          | call 68 <__wasi_proc_exit>
 00053e: 00                         | unreachable
 00053f: 0b                         | end

a _start of wasm32-wasi function may look like below. It won't return unless main() finish. It may cause a re-entering issue if Always call start function for sub instance. It is also a little un-appropriated considering that WAMR tends to use execution context instead of the real instantiate.

Here the start function is the wasm start function but not the _start function exposed by the wasi module:
https://webassembly.github.io/spec/core/syntax/modules.html#syntax-start

The start function is intended for initializing the state of a module. The module and its exports are not accessible externally before this initialization has completed.

But in our "sub instance" case, IMO, we want to inherent variables from "the main instance" instead of using variables with initialized values, right?

is it intended to call the start function first for interpreter but last for aot? why?

is it intended to call the start function first for interpreter but last for aot? why?

No, for aot, runtime also calls start first, the calling sequence is same as interpreter (start, _initialize, __post_instantiate and __wasm_call_ctors). Could you check the code again?

is it intended to call the start function first for interpreter but last for aot? why?

No, for aot, runtime also calls start first, the calling sequence is same as interpreter (start, _initialize, __post_instantiate and __wasm_call_ctors). Could you check the code again?

ok. i misread the code. thank you.
i feel it's a bit confusing that aot execute_post_instantiate_functions handles the start function
while interpreter execute_post_instantiate_functions doesn't.
otherwise lgtm.


Is there any way to limit the number of decimals for a float returned from skopt.space.space.Real?

I'm using skopt.space.space.Real in a machine learning model to find a percentage between 0 and 100. I'm not too concerned with finding the optimal percentage past about 3 decimal places, and if I'm looking at these I feel like i'm wasting epoch trials. I know that I could truncate the number, but I think as far as the model I'm using is concerned, it would still think that I'm using a different number, but would just use the same truncated number. I'm not an expert in how the implementation of the program I'm using works behind the scenes, but I'm wondering if I could set a max decimal within the function itself?

To get 0-100 plus three decimals, you could instead ask for Integer(0, 100_000) and manually divide the value by 1000 in your objective function.


Improper or bad sourcemaps generated

Version
4.0.5
Reproduction link
https://github.com/genu/vue-sourcemaps-bug
Environment info
System:
    OS: macOS Mojave 10.14.6
    CPU: (8) x64 Intel(R) Core(TM) i7-6920HQ CPU @ 2.90GHz
  Binaries:
    Node: 10.15.3 - ~/.nvm/versions/node/v10.15.3/bin/node
    Yarn: 1.13.0 - /usr/local/bin/yarn
    npm: 6.4.1 - ~/.nvm/versions/node/v10.15.3/bin/npm
  Browsers:
    Chrome: 74.0.3729.169
    Firefox: 68.2.0
    Safari: 13.0.3
  npmPackages:
    @vue/babel-helper-vue-jsx-merge-props:  1.0.0
    @vue/babel-plugin-transform-vue-jsx:  1.0.0
    @vue/babel-preset-app:  4.0.5
    @vue/babel-preset-jsx:  1.1.1
    @vue/babel-sugar-functional-vue:  1.0.0
    @vue/babel-sugar-inject-h:  1.0.0
    @vue/babel-sugar-v-model:  1.1.1
    @vue/babel-sugar-v-on:  1.1.0
    @vue/cli-overlay:  4.0.5
    @vue/cli-plugin-babel: ^4.0.0 => 4.0.5
    @vue/cli-plugin-eslint: ^4.0.0 => 4.0.5
    @vue/cli-plugin-router: ^4.0.0 => 4.0.5
    @vue/cli-plugin-vuex: ^4.0.0 => 4.0.5
    @vue/cli-service: ^4.0.0 => 4.0.5
    @vue/cli-shared-utils:  4.0.5
    @vue/component-compiler-utils:  3.0.1
    @vue/eslint-config-prettier: ^5.0.0 => 5.0.0
    @vue/preload-webpack-plugin:  1.1.1
    @vue/web-component-wrapper:  1.2.0
    eslint-plugin-vue: ^5.0.0 => 5.2.3
    vue: ^2.6.10 => 2.6.10
    vue-eslint-parser:  5.0.0
    vue-hot-reload-api:  2.3.4
    vue-loader:  15.7.2
    vue-router: ^3.1.3 => 3.1.3
    vue-style-loader:  4.1.2
    vue-template-compiler: ^2.6.10 => 2.6.10
    vue-template-es2015-compiler:  1.9.1
    vuex: ^3.0.1 => 3.1.1
  npmGlobalPackages:
    @vue/cli: Not Found

Steps to reproduce

Create a new project with vue create hello-world
Run project with yarn serve
Open Chrome and check devtools

What is expected?
I should be able to see my components like App.vue, etc, and be able to put breakpoints as needed.
What is actually happening?
I see multiple App.vue files like App.vue?bff9, App.vue?8842, etc. I also see a App.vue, but when I go to it the source is a minified file.
I can't seem to place breakpoints in the devtools in any of the vue files because they are all showing up as minified or not even the correct files.

Additional Information
Similar to: #2978
All of the App.vue files seem to have different contents:

I'm having this exact problem and it's driving me crazy, I compared the vue-cli webpack config and the only difference is the use of devtool: 'cheap-module-eval-source-map' in version 3.0 and a new property called optimization but I don't know how to fix it.


Text encoder

Thank you for your awesome work. Do you have plan to release pretrained text encoder?

Hi, thanks for your attention.
The pretrained backbones we released contain the weights of the text encoder. In fact, you can load the weights of FaRL using exactly the same network structure as CLIP VIT-B16, and use it exactly like CLIP. Here I show the example modified from CLIP.
import torch
import clip
from PIL import Image

device ="cuda" if torch.cuda.is_available() else "cpu"
model, preprocess = clip.load("ViT-B/16", device="cpu")
model = model.to(device)
farl_state=torch.load("FaRL-Base-Patch16-LAIONFace20M-ep16.pth") # you can download from https://github.com/FacePerceiver/FaRL#pre-trained-backbones
model.load_state_dict(farl_state["state_dict"],strict=False)

image = preprocess(Image.open("CLIP.png")).unsqueeze(0).to(device)
text = clip.tokenize(["a diagram", "a dog", "a cat"]).to(device)

with torch.no_grad():
    image_features = model.encode_image(image)
    text_features = model.encode_text(text)

    logits_per_image, logits_per_text = model(image, text)
    probs = logits_per_image.softmax(dim=-1).cpu().numpy()

print("Label probs:", probs)


Can't build the flutter application.

I follow the documentation of the thingsboard mobile development.
Below error comes on flutter run...
PS C:\Users\Admin\Desktop\flutter_thingsboard_app> flutter run
"ar": 73 untranslated message(s).
"zh": 92 untranslated message(s).
"zh_CN": 92 untranslated message(s).
"zh_TW": 91 untranslated message(s).
To see a detailed report, use the untranslated-messages-file
option in the l10n.yaml file:
untranslated-messages-file: desiredFileName.txt
:
This will generate a JSON format file containing all messages that
need to be translated.
Launching lib\main.dart on SM A707F in debug mode...
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.

Where:
Build file 'C:\Users\Admin\Desktop\flutter_thingsboard_app\android\build.gradle' line: 14

What went wrong:
A problem occurred evaluating root project 'android'.

A problem occurred configuring project ':app'.
Could not create task ':app:copyFlutterAssetsDebug'.
Could not create task ':app:mergeDebugAssets'.

Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org.
==============================================================================

2: Task failed with an exception.

Where:
Build file 'C:\Users\Admin\Desktop\flutter_thingsboard_app\android\build.gradle' line: 14

What went wrong:
A problem occurred evaluating root project 'android'.

A problem occurred configuring project ':app'.
Could not create task ':app:copyFlutterAssetsDebug'.
Could not create task ':app:mergeDebugAssets'.
Cannot use @TaskAction annotation on method IncrementalTask.taskAction$gradle_core() because interface org.gradle.api.tasks.incremental.IncrementalTaskInputs is not a valid parameter to an action method.

Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org.
==============================================================================

BUILD FAILED in 1s
Running Gradle task 'assembleDebug'...                           2,666ms
Error: Gradle task assembleDebug failed with exit code 1
PS C:\Users\Admin\Desktop\flutter_thingsboard_app>

But I am using jdk-17 version and i also tried,
C:\Users\Admin>fvm flutter config --jdk-dir "C:\Program Files\Java\jdk-17"
Setting "jdk-dir" value to "C:\Program Files\Java\jdk-17".

You may need to restart any open editors for them to read new settings.

But still error not gone.
My java version
C:\Users\Admin>java --version
java 17.0.13 2024-10-15 LTS
Java(TM) SE Runtime Environment (build 17.0.13+10-LTS-268)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.13+10-LTS-268, mixed mode, sharing)

Can you provide details about your environment?

flutter version
mobile app version
IDE info

@ybeshkarov thank you for helping.
flutter version -> 3.24.5
IDE -> vscode
mobile app version ->1.4.0
C:\Users\Admin>flutter --version
Flutter 3.24.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision dec2ee5c1f (8 days ago) • 2024-11-13 11:13:06 -0800
Engine • revision a18df97ca5
Tools • Dart 3.5.4 • DevTools 2.37.3

my pubspec.yaml
name: thingsboard_app
description: Flutter ThingsBoard Mobile Application

publish_to: 'none' # Remove this line if you wish to publish to pub.dev

version: 1.4.0

environment:
  sdk: ">=3.2.0 <4.0.0"

dependencies:
  flutter:
    sdk: flutter
  thingsboard_client: ^2.0.0
  mockito: ^5.0.0
  intl: ^0.19.0
  flutter_secure_storage: ^9.0.0
  flutter_speed_dial: ^7.0.0
  cupertino_icons: ^1.0.6
  fluro: ^2.0.5
  flutter_svg: ^2.0.9
  jovial_svg: ^1.1.19
  auto_size_text: ^3.0.0-nullsafety.0
  infinite_scroll_pagination: ^4.0.0
  fading_edge_scrollview: ^4.0.0
  stream_transform: ^2.1.0
  flutter_inappwebview: ^6.1.5
  url_launcher: ^6.2.1
  image_picker: ^1.0.4
  mime: ^2.0.0
  logger: ^2.0.2+1
  qr_code_scanner: ^1.0.1
  device_info_plus: ^11.1.1
  geolocator: ^13.0.2
  material_design_icons_flutter: ^7.0.7296
  package_info_plus: ^8.0.0
  dart_jsonwebtoken: ^2.12.1
  crypto: ^3.0.3
  flutter_form_builder: ^9.1.1
  form_builder_validators: ^11.0.0
  flutter_html: 3.0.0-beta.2
  universal_html: ^2.2.4
  universal_platform: ^1.0.0+1
  preload_page_view: ^0.2.0
  flutter_localizations:
    sdk: flutter
  firebase_core: ^3.1.0
  firebase_messaging: ^15.0.1
  flutter_local_notifications: ^18.0.1
  flutter_app_badger: ^1.5.0
  timeago: ^3.6.1
  flutter_slidable: ^3.0.1
  flutter_bloc: ^8.1.5
  get_it: ^8.0.2
  equatable: ^2.0.5
  uni_links: ^0.5.1
  collection: ^1.18.0
  html: ^0.15.4
  hive: ^2.2.3
  hive_flutter: ^1.1.0
  modal_bottom_sheet: ^3.0.0
  event_bus: ^2.0.0
  google_fonts: ^6.2.1
  expandable: ^5.0.1
  focused_menu: ^1.0.5

dev_dependencies:
  flutter_test:
    sdk: flutter
  flutter_launcher_icons: ^0.14.1
  mocktail: ^1.0.3
  bloc_test: ^9.1.7
  flutter_lints: ^5.0.0
  hive_generator: ^2.0.1
  build_runner: ^2.4.9

flutter:
  uses-material-design: true
  assets:
     - assets/images/
  generate: true

  # An image asset can refer to one or more resolution-specific "variants", see
  # https://flutter.dev/assets-and-images/#resolution-aware.

  # For details regarding adding assets from package dependencies, see
  # https://flutter.dev/assets-and-images/#from-packages

  # To add custom fonts to your application, add a fonts section here,
  # in this "flutter" section. Each entry in this list should have a
  # "family" key with the font family name, and a "fonts" key with a
  # list giving the asset and other descriptors for the font. For
  # example:
  # fonts:
  #   - family: Schyler
  #     fonts:
  #       - asset: fonts/Schyler-Regular.ttf
  #       - asset: fonts/Schyler-Italic.ttf
  #         style: italic
  #   - family: Trajan Pro
  #     fonts:
  #       - asset: fonts/TrajanPro.ttf
  #       - asset: fonts/TrajanPro_Bold.ttf
  #         weight: 700
  #
  # For details regarding fonts from package dependencies,
  # see https://flutter.dev/custom-fonts/#from-packages

flutter_icons:
  android: "launcher_icon"
  ios: true
  remove_alpha_ios: true
  image_path: "assets/images/thingsboard.png"
flutter_intl:
  enabled: true

I have cloned repository again and executed following commands :-

flutter doctor ( No issue arise )
flutter pub get
flutter build apk

Then error comes

A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
-> To resolve this I have increase memory for JVM ( org.gradle.jvmargs=-Xmx4608m )
Warning: This version only understands SDK XML versions up to 3 but an SDK XML file of version 4 was encountered. This can happen if you use versions of Android Studio and the command-line tools that were released at different times.
->  above warning and error comes

PS C:\Users\Admin\Desktop\F_app> flutter build apk

Warning: This version only understands SDK XML versions up to 3 but an SDK XML file of version 4 was encountered. This can happen if you use versions of Android Studio and the command-line tools that were released at different times.
Font asset "materialdesignicons-webfont.ttf" was tree-shaken, reducing it from 1279992 to 1034252 bytes (19.2% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your app.
Font asset "MaterialIcons-Regular.otf" was tree-shaken, reducing it from 1645184 to 279684 bytes (83.0% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your app.

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':flutter_app_badger:verifyReleaseResources'.
> A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
   > Android resource linking failed
     ERROR:C:\Users\Admin\Desktop\F_app\build\flutter_app_badger\intermediates\merged_res\release\values\values.xml:194: AAPT: error: resource android:attr/lStar not found.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
java.lang.StackOverflowError (no error message)

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================

* Get more help at https://help.gradle.org

BUILD FAILED in 31s
Running Gradle task 'assembleRelease'...                           32.3s
Gradle task assembleRelease failed with exit code 1

Regarding the Java version, I see you're using fvm to set
fvm flutter config
but for building, you're using the globally installed Flutter
flutter build apk
Try to set Java for the globally installed Flutter as well
flutter config --jdk-dir "C:\Program Files\Java\jdk-17"

I have used
flutter config --jdk-dir "C:\Program Files\Java\jdk-17"

still same error occurs.

This is for real device or emulator?

real device

I've created the branch for your https://github.com/thingsboard/flutter_thingsboard_app/tree/android_build_fix
A parent is the latest mater = 1.4.0 release.

Dear @ybeshkarov,
Thanks a lot! I really appreciate you, brother, for creating a separate branch to address my problem. The app is working now. 😊
However, I noticed that the app is for the ThingsBoard PE version. Since I don’t have an account on ThingsBoard PE, I can’t log in. I have an account on ThingsBoard Cloud and would like an app that works with it.
Could you please guide me on building an app for ThingsBoard Cloud?

You must use the PE platform version of the mobile app.
You may read the doc to know the difference https://thingsboard.io/docs/

@ybeshkarov ,
I am facing the issue of this branch is like below:
Fatal application error occurred: unsupported Thingsboard platform version: <IP_ADDRESS>PASS
ThingsBoard PE version : <IP_ADDRESS>
Flutter ThingsBoard PE Mobile Application: 1.4.0
Dart ThingsBoard PE Client: ^2.0.0
I didn't understand how to resolve this issue.


Render text in wasm32-unknown-unknown

usvg currently works great in wasm environments as long as the optional "text" feature is disabled. I'd love to get text support working too. From my understanding so far, there are at least 3 issues:

a dependency on memmap2, used for reading fonts
reading fonts from system directories (#202)
a dependency on harfbuzz

The first two are relatively straightforward. As part of #202, design an API to feed a FontDB into usvg that can be instantiated many different ways, one of them just being raw bytes of a font file. (include_bytes! is a low-effort way to get this working in a wasm environment.)
The harfbuzz dependency seems harder. My requirements are limited to simple Latin left-to-right text; harfbuzz is overkill. I found font2svg and think it might be possible to make something much simpler. Before I go down this rabbit hole, I wanted to ask for your advice.
Background
I'm using usvg in A/B Street to turn both normal SVG files and text into paths for lyon, which then give me polygons. This does the usvg->lyon->my simple Polygon abstraction path, based off this example from lyon. I'm using this same pipeline for text as well. (There are many inefficient and silly things that the text pipeline does right now, like constantly re-load fonts.) In a few weeks, I'm hoping to properly split off my drawing, geometry, and GUI libraries as new crates for other people to use. These libraries attempt to give exactly the same experience on native and web -- not using system UI controls/style -- without any changes to user code needed for different platforms.

The harfbuzz dependency seems harder.

Believe me, I know =) https://github.com/RazrFalcon/rustybuzz

My requirements are limited to simple Latin left-to-right text; harfbuzz is overkill.

The harfbuzz dependency is mandatory. I do not plan reducing text rendering to Latin only, since this is against the SVG spec.
Anyway, Rust version will be way smaller.

like constantly re-load fonts

In your code or in usvg? Because usvg does this too.
Basically, the resvg 0.10 roadmap looks like this:

Port harfbuzz. I hope I will finish in 2-3 month.
Write a font query library (for TrueType fonts only for now). There are a lot of questions there also, like the caching, fontconfig integration and the API in general.
Basically, you will be able to create a fonts storage (system, custom path, raw binary data) and then pass it to usvg.
Keep only the raqote backend.

In your code or in usvg? Because usvg does this too.
In usvg; I meant that I'm calling usvg::Tree::from_str repeatedly, which loads fonts everytime.

It sounds like resvg 0.10 will exactly make wasm work. Let me know how I can help!

Yes, resvg/usvg were focused on correctness, spec conformance for now. And since I'm almost finished with the spec, I can start optimizing it bit by bit.
Right now, I'm implementing a zero-allocation variable fonts support in ttf-parser. Not sure if someone could actually help me with this task :smile:
Anyway, I will let you know when the first version of "fontdb" became available for testing.

HarfBuzz builds to WASM just fine, I have been using it for months, see https://github.com/harfbuzz/harfbuzzjs

Oh? I'm not too familiar with the wasm/Rust interop, but there may be some way to get https://crates.io/crates/harfbuzz-sys to expose the JS bindings.
I'd personally prefer a pure Rust stack, so the work on rustybuzz is awesome.

@RazrFalcon, I got text support in web working for the simple Latin LTR case, to unblock getting my project on the web. Before Rustybuzz is complete, do you think it's worth exposing this functionality to all users of usvg? The change is reasonably small: https://github.com/dabreegster/resvg/commit/97ff3956fe7404333a72c2951a844d457510a4f0 and https://github.com/dabreegster/fontdb/commit/04c8ffc9f0c2676202ff9562a2f52415d74b8d68. I can send PRs if you'd like. If it muddies up the API too much, I'm fine just pinning to my fork temporarily.

No, I thinks that a fork is the best solution for now.
As for rustybuzz, I have no idea when it became pure Rust. Sadly, I don't have time right now to work on it.

I guess it's fixed now.

Congratulations on the rustybuzz release! There are a few small build changes to fontdb and usvg to avoid native dependencies like memmap; I'm preparing PRs now.

Oh, I've forgot about it. Since I've done with huge rewrites (tiny-skia, rustybuzz), I hope to release resvg/usvg more often.

"usvg currently works great in wasm environments as long as the optional "text" feature is disabled."
How could I disable text? Do I have to build the lib myselve?
Could some one show me the shell command?

@DerKarlos Can you clarify what you want to do?

Thank you for your fast replay!
This issue starts with this sentence. So I assume, there is a variated cradle of resvg or a way to build one, that does not render text but does compile with wasm-pack.
If I build resvg, memmap2 is included which does not build for WASM.

The issue is fixed; usvg works just fine in wasm now. You need to disable the system-fonts feature. Something like this should help. If you want to see a quick demo of usvg rendering text on wasm, see here.

That sounds good. But sorry, I am new to Rust and what ever I try, at last memmap2 gets used by wasm-pack and:
363  MmapInner::map_mut(self.get_len(file)?, file, self.offset, self.populate)
supplied 4 arguments, expected 3 arguments
The demo looks good but where to find the source? Or any example (with an Cargo.toml) to read SVC and write it to a byte array?

I assume this is what you want.
cargo build --target wasm32-unknown-unknown --no-default-features --features text

The demo looks good but where to find the source?

https://github.com/a-b-street/abstreet/tree/master/widgetry_demo, and the widgetry crate has the library implementation. See https://a-b-street.github.io/docs/tech/dev/ui.html for design.

o2t v0.1.0 (/Users/karlos/Public/o2t) does not have the feature text

Is your repository online? No promises, but easier to help looking at your specific issue.

You may see my code, I send you an invite.
I am puzzled: widgetry_demo does not use usvg
Still looking at your hints ...

Thanks for the invitation, I'll take a look when I find time.
The demo crate pulls in the widgetry crate, where the work happens: https://github.com/a-b-street/abstreet/blob/c5671557defbd80ce749b8fa7faf7c166b3d23dd/widgetry/Cargo.toml#L9


Add support for copy

Hi,
this is initial implementation for https://github.com/lettuce-io/lettuce-core/issues/1508 ,
I created as much I as could inferring from the codebase and already implemented commands, but I need some hints what else have to be added :)

Thanks a lot for your comments :) I added also new signatures to src/main/templates ( I assumed COPY should be placed in RedisKeyCommands ). Do you have a task in CI that generates something based on that template ?

Thank you for your contribution. That's merged and polished now.

Thank you for your contribution. That's merged and polished now.

cool ! thank you for the review, going for the next one :)

cool ! thank you for the review, going for the next one :)


use secure pseudo-random number to generate session id

Coverage decreased (-0.1%) to 66.073% when pulling 84a3dee8c0e4ea4cfacd2e2bfd65feb45c1deff4 on tianxiaoliang:master into 250f77d8a7297a05e0b4540c9d43bf85982dc68a on go-chassis:master.


move app templates to h2

Docs Build status updates of commit 8e70f38:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

msteams-platform/samples/app-templates.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Happy new year 2015 : master

ping @Ocramius @weierophinney I've updated copyright year from 2014 to 2015 in master.

ping @Ocramius @weierophinney I've updated copyright year from 2014 to 2015 in master.

@samsonasik I'll merge this one and close #7088, otherwise we will just have a merge mess later on :-\

@samsonasik I'll merge this one and close #7088, otherwise we will just have a merge mess later on :-\

@samsonasik merged, thanks. I'll look for leftovers in develop now.
master: zendframework/zf2@8b644e8b0e8cd931bf25cf3babc3ffa047df26d5
develop: zendframework/zf2@1afa0410b64685d81b0e861c36bc3d4595a4ad7a

@samsonasik merged, thanks. I'll look for leftovers in develop now.
master: zendframework/zf2@8b644e8b0e8cd931bf25cf3babc3ffa047df26d5
develop: zendframework/zf2@1afa0410b64685d81b0e861c36bc3d4595a4ad7a

New files in develop handled at zendframework/zf2@d630a7f3b9874acea45871572cb3e78e7da51853

New files in develop handled at zendframework/zf2@d630a7f3b9874acea45871572cb3e78e7da51853


Renamed service.dataVolumesFromService param

to dataVolumesFromServiceIds
@ibuildthecloud as per your request. @vincent99 - UI would need an update to work with the new param name

As you pointed out container has dataVolumesFrom (not ids), so I'm fine with leaving this parameter as you named it.

@ibuildthecloud ok, closing it then


Needing to refresh after actions to enter the mist

I have to refresh after actions to enter the mist, for example:

I swapped some equipment
tx went through and the equipment was updated without a refresh
Upon going back to actions, 'into the mist' was unclickable until I refreshed

The same thing happened once I came across a beast - needed to refresh to be able to click attack or flee


i18n: Allow support for string overloading (multiple contexts)

?
Let me know what you guys think, and I can take a stab at changing the handful of reported cases.
Issue
While a word in English can be re-used in several areas, the localized version in many languages require a different word due to difference in context and grammar (e.g. noun vs. verb, past vs. present tense, etc.)
History
This has been briefly discussed in the past, and is still being brought up from time to time in the Translators Hives in Discord.  I believe if we perform verification on the translated strings, we'll uncover even more instances.
Suggested fix for the short term
On a case-by-case basis (as reported by the Translators), split the affected strings into several string IDs as shown below:
English (all resolves to the same value):
"SID_SUPPORT_FOR_CLAIM": "Support",
"SID_SUPPORT_FOR_HELP": "Support",

Chinese
"SID_SUPPORT_FOR_CLAIM": "支持",
"SID_SUPPORT_FOR_HELP": "援助",

Client side:
 label={__('SID_SUPPORT_FOR_CLAIM'}

Cons

While the suggested fix allows better translation without major changes to the entire code base, we'll end up with a mixture of "inline string" and "string ID" usages in the code, which can be a bit messy.  But I think using all caps for the string ID should make it obvious on what is going on.
It might not be easy still to fit in the full description in to the string ID (to pass this context info to Transifex)

Alternative syntax to convey context:
English (all resolves to the same value):
"[Support] context: verb for supporting a claim": "Support",
"[Support] context: button to get help": "Support",

Chinese
"[Support] context: verb for supporting a claim": "支持",
"[Support] context: button to get help": "援助",

Client side:
 label={__('[Support] context: verb for supporting a claim'}

Info:
Translators will need to learn that when the "[ ] context:" format is seen, translate the string inside the bracket and not the context string.  We could add code to detect this and simply revert to English.
Source
Item 2 from https://www.transifex.com/blog/2020/tips-providing-context-translation/

I missed the first filing of this until the reply happened. Great work on this @infinite-persistence. It seems reasonable to me.
Whether to adopt the [ ] context: system or the ID_STRING system should be a call made by @seanyesmunt. Adopting the bracket syntax should be a relatively light change, so if that system is preferred we should just adapt it.


Request to Update Twitter Icon to X

Describe the bug
Twitter logo is updated recently and hasnt been updated on the site. I didnt find any issue related to this.
To Reproduce
Steps to reproduce the behavior:
Scroll to footer section and see twitter old logo
Expected behavior
Twitter logo should be changed to X
Screenshots
If applicable, add screenshots to help explain your problem.

System information (please complete the following):

OS: [e.g. Linux]
NodeJS, NPM versions [e.g. v14.16.0, 7.10.0]
CTL version [e.g. 0.1 ]

Additional context
@psanders
I am just starting with open source contribution. I would love to take this issue as my first ever contribution could you please assign this to me?

Absolutely, take it away @lalitkumawat1m!

this issue is related to fonoster website
and I have created pr in fonoster website repo regarding this issue

Closing. Fixed by PR https://github.com/fonoster/fonoster/pull/624


Noscript version

Hey @mmollick I resolved the merge conflict and am pulling your changes in here!

Thank you!


Fatal error: Uncaught ReflectionException on my staging server

Hi,
I posted an issue I was having with a site I'm developing which I ran into when deploying it to my staging server here. I've had to bite the bullet and revert back to the 9.0.0-beta.4 version of controller to get around this. But I thought I'd post here because I have now tried setting up a completely fresh install of bedrock/sage with no development work, all I've done is change controller to version 2, run composer update and install ACF Pro. I renamed app.php to App.php and changed it's namespace to App\Controllers. However I still get this error on my staging server:
[09-Mar-2018 12:33:48 UTC] PHP Fatal error:  Uncaught ReflectionException: Class App\Controllers\App does not exist in /home/chapterserver1/dev/test/web/app/themes/bbc/vendor/soberwp/controller/src/Loader.php:119
Stack trace:
#0 /home/chapterserver1/dev/test/web/app/themes/bbc/vendor/soberwp/controller/src/Loader.php(119): ReflectionClass->__construct('App\\Controllers...')
#1 /home/chapterserver1/dev/test/web/app/themes/bbc/vendor/soberwp/controller/src/Loader.php(49): Sober\Controller\Loader->setClassesAlias()
#2 /home/chapterserver1/dev/test/web/app/themes/bbc/vendor/soberwp/controller/controller.php(22): Sober\Controller\Loader->__construct(Object(Brain\Hierarchy\Hierarchy))
#3 /home/chapterserver1/dev/test/web/wp/wp-includes/class-wp-hook.php(286): Sober\Controller\loader('')
#4 /home/chapterserver1/dev/test/web/wp/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
#5 /home/chapterserver1/dev/test/web/wp/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
#6 /home/chapterserver1/dev/test/web/wp/wp-settings.php(450): do_actio in /home/chapterserver1/dev/test/web/app/themes/bbc/vendor/soberwp/controller/src/Loader.php on line 119

It runs fine when I change Controller back to the old version and composer update
This exactly mirrors the error I was getting previously, however I don't get this on my local dev site.
You can see my phpinfo here
I have also tried the solution posted in this commit but with no luck.
Hope someone can help with this as I would like to be able to access my ACF fields in a slicker way.
Many thanks
Kevin

I think this is an issue with 2.0.0, there was an issue with caps/lowercase. Could you try dev-master and see if it still happens? I'll be tagging 2.0.1 in the next day or two.

Hi Darren,
Sorry for delay, I just got around to trying this but no luck I'm afraid, still getting the same errors with dev-master
Kevin

Please update to 2.0.1 and make sure that classes are namespaced correctly.

Hi, I am having this same issue on our server, with version 2.0.1 and class namespaces setup correctly. Locally it works, but not on the server itself. I'm getting the following error:
Fatal error: Uncaught ReflectionException: Class App\Controllers\App does not exist in /home/public/sites/www.pijlmanagement.nl/app/themes/mytheme/vendor/soberwp/controller/src/Loader.php:74 Stack trace: #0 /home/public/sites/www.site.nl/app/themes/mytheme/vendor/soberwp/controller/src/Loader.php(74): ReflectionClass->__construct('App\\Controllers...') #1 /home/public/sites/www.site.nl/app/themes/mytheme/vendor/soberwp/controller/src/Loader.php(35): Sober\Controller\Loader->setPath() #2 /home/public/sites/www.site.nl/app/themes/mytheme/vendor/soberwp/controller/controller.php(22): Sober\Controller\Loader->__construct(Object(Brain\Hierarchy\Hierarchy)) #3 /home/public/sites/www.site.nl/wp/wp-includes/class-wp-hook.php(286): Sober\Controller\loader('') #4 /home/public/sites/www.site.nl/wp/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #5 /home/public/sites/www.site.nl/wp/wp-includes/plugin.php(453): WP_Hook->do_a in /home/public/sites/www.site.nl/app/themes/mytheme/vendor/soberwp/controller/src/Loader.php on line 74

same issue here.
on localhost everything works perfect - on the server side I get the same error.

You just need to rename app/controllers to app/Controllers as per the PSR4 spec...


Add a bridging header file with #import "GMUMarkerClustering.h" (note the relative path).

Hi,
How I do this step
Add a bridging header file with #import "GMUMarkerClustering.h" (note the relative path).

I needed too

Please direct any further discussion and challenges to https://github.com/googlemaps/google-maps-ios-utils/issues/86.


Add pull request guidance

This PR proposes guidance on making and reviewing pull requests, as discussed internally by the team and with a view to codifying current practice.
It is wordy, but it takes a lot of words to describe a work flow and this is a fairly significant and frequent part of our flow, so maybe many words are needed 🤷♂Still, there is probably fat to cut!

Thinking that the PR guidance may be too long, I added a summary—brevity is more consistent with the rest of these guidelines. However, as I'm not sure which others will prefer, I left the summary and the full version for reviewers to opine on.

Maybe we could move the long version to a separate document, like the style guide, and link to in from the README?

Maybe we could move the long version to a separate document, like the style guide, and link to it from the README?

@schemar: if we think it is worth retaining both, then yeah, I think that's a good approach.

@jasonklein what's your thought? Split the main part out into a separate document?

After further deliberation with @schemar, the summary will be retained as the policy, anything else crucial from the larger part will be added to the summary, and then the rest will be struck.


MediaFrameSourceGroup.FindAllAsync Method does not return the depth camera.

When calling MediaFrameSourceGroup.FindAllAsync, I do not get the depth camera for the Razer Stargazer, only the color camera. This uses the Intel RealSense2 SR300 driver which I can see installed in the Device Manager under Imaging Devices. The camera works properly with the Intel RealSense Viewer.

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

ID: 44e3bb9e-8901-f4db-82f3-e28b97b6f3df
Version Independent ID: 336a4e71-b0e3-ef85-4c45-4b5ed65bc7f8
Content: Windows.Media.Capture Namespace - Windows UWP applications
Content Source: https://cpubwin.visualstudio.com/DefaultCollection/windows-uwp/_git/winrt-api-build?path=%2fwinrt-api-build%2fwindows.media.capture.yml&version=GBlive&_a=contents
Product: uwp
Technology: winrt-reference
Git Login: drewbatgit
Microsoft Alias: drewbat

Thanks for reaching out with your feedback. This channel is specifically for issues in the documentation. For technical support support you should consult our developer support resources. For community assistance with development questions I recommend that you ask on our forums or StackOverflow. Otherwise, please see the developer support page for your support options. If you get assistance through these other resources and believe that information would help us improve the docs, please come back and let us know.


Minor spelling fixes

Simply some minor spelling fixes

@JohanFreelancer9 Copy editing is needed for this PR. Thanks.


Not working in OS X El Capitan v10.11.1

Not working in OS X El Capitan v10.11.1.  Installed from nitroshare.net. have icon in tray, and nitroshare drive icon on desktop. It also shows up as a device in finder.  Dragging files to any of those does not do anything as far as I can tell.  Nothing useful when I click with either mouse button.   When I send files from my Linux machine to this Mac i get the message on the linux box that the file was received by the mac, but I cannot find a way to acces the file from the mac.
Tried the out of date 'make dmg' instructions in the md file, received error "make: *** No rule to make target `dmg'.  Stop."

I'll answer your questions in reverse order.

"received error "make: *** No rule to make target `dmg'. Stop.""

Unfortunately, the build instructions haven't been kept up to date with other changes made to the repository. What you'll need to do in order to build the application is run:
git checkout 0.3.0

...and then follow the instructions on this page.

"When I send files from my Linux machine to this Mac i get the message on the linux box that the file was received by the mac, but I cannot find a way to acces the file from the mac."

By default, files that NitroShare receives are stored on the desktop. However, this can be changed by clicking the icon in the tray and selecting "Settings":

You will then be able to select the directory for storing received files.

"Dragging files to any of those does not do anything as far as I can tell."

NitroShare does not support drag-and-drop yet. In order to send files, you will need to click the tray icon and then click either "Send Files..." or "Send Directory...". There are plans to create a widget that can be used for drag-and-drop in the future.

Thank you.  Seems to work well now.

On Nov 10, 2015, at 12:14 PM, Nathan Osman<EMAIL_ADDRESS><EMAIL_ADDRESS>wrote:
I'll answer your questions in reverse order.
"received error "make: *** No rule to make target `dmg'. Stop.""
Unfortunately, the build instructions haven't been kept up to date with other changes made to the repository. What you'll need to do in order to build the application is run:
git checkout 0.3.0
...and then follow the instructions on this page https://github.com/nitroshare/nitroshare-desktop/tree/0.3.0.
"When I send files from my Linux machine to this Mac i get the message on the linux box that the file was received by the mac, but I cannot find a way to acces the file from the mac."
By default, files that NitroShare receives are stored on the desktop. However, this can be changed by clicking the icon in the tray and selecting "Settings":
https://camo.githubusercontent.com/dff2bcfb7c5336056f350b0b8fb92826d8020a5d/687474703a2f2f692e737461636b2e696d6775722e636f6d2f6455444f742e706e67
You will then be able to select the directory for storing received files.
"Dragging files to any of those does not do anything as far as I can tell."
NitroShare does not support drag-and-drop yet. In order to send files, you will need to click the tray icon and then click either "Send Files..." or "Send Directory...". There are plans to create a widget that can be used for drag-and-drop in the future.
—
Reply to this email directly or view it on GitHub https://github.com/nitroshare/nitroshare-desktop/issues/52#issuecomment-155535500.


use 1M instead of 1G for recv buff

2**30 equals to 1G for a socket recv buff.
This value causes the script throw MemErorr exception on some machine that has not enough memory space.

:+1:


how to fix “Failed to fill complex buffer in float converter” in EzAudio swift iOS 13

I am using EZaudio to play mp3 files and it works on iOS 12 and below but on physical Device (iPhone X) running iOS 13 app crashed and console print error
Error : Failed to fill complex buffer in float converter
I am using Audiokit and PandoraPlayer framework what may cause this error and how to fix this ?
I'm using this code to configure avaudiosession and it works fine on iOS 12 and below

private func configureAudio() {
        do {

            try AVAudioSession.sharedInstance().setCategory(.playback, mode: .default)
            try AVAudioSession.sharedInstance().setActive(true)

            updateCommandCenter()

        } catch {
            print(error)
        }
        AKSettings.playbackWhileMuted = true;
        AKSettings.enableRouteChangeHandling = true
    }

I think EZAudioFloatConverter and microphone may cause this problem but I am not using microphone in my app

I am not sure if this is an issue in AudioKit per se. I don't have nay clue on what is going wrong, so I just want to suggest that you post this to StackOverflow.

I am having exactly the same issue. Also when testing with IOS 13 on physical iPhone. It comes from Audiokit. It did not happen in previous IOS versions.
@mahadshahib where you able to fix it?

No not yet i know what caused this issue but no solution yet i am trying hard to figure out what is going on but no luck yet. This is my email reach me if u found a solution or i can reach you if i found one @francdn

@mahadshahib
I found a temp fix. If I add this line of code it does not seem to crash at the moment.
[AVAudioSession.sharedInstance setPreferredSampleRate:48000 error:nil];

<EMAIL_ADDRESS>

@francen have you test it on an actual device? Cause in my case sample rate on physical device stays the same at 48000 no matter how i change sample rate always stays the same at 48000 on iPhone X but simulator changes sample rate

Yes, I tried. I added the line of code I posted above before starting Audiokit with [AudioKit startAndReturnError:nil]; and at least for now it is not crashing.
It is weird because on my case the samplerate is also supposed to be 48000 before executing that line as well.

In my case
I set avaudiosession to .playback
Set sample rate to 48000
Set avaudiosession to active
But still crashes
@francdn

I am also facing this issue on iOS 13. Does anyone have a working solution?

@francdn your solution is not working for me. Do you have any other ideas?

No sorry. I don't even know if this is working on all devices yet. I guess the developers of Audiokit should check this.

Hey @francdn  -- I just set up a sample project here: https://github.com/ashishkeshan/TestEZAudioBug
I am trying to set the sample rate to 48000, but for some reason, the value is not getting updated. The sample rate is always 44100 no matter what code I add, and this is causing the buffer sizes to be 940 or 941 frames resulting in the mismatch. Do you think you could take a look at the project to see if there are any fixes that you can think of? Thanks!

Hi. This worked for me: In AudioKit I changed in file EZOutput.m constant : Float64 const EZOutputDefaultSampleRate = 48000.0f. By default this constant is 44100.0f

@llyaBlinov how can i access .m files on audiokit ?

I downloaded AudioKit source code, changed constant in EZOutput.m  and rebuilt Audiokit for me


Fix wrong reference in persistence doc

A string name should be assigned to the name class attribute, not the type attribute.

Thanks so much for spotting this!

Pull Request Test Coverage Report for Build 847661178

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build 846017727:
0.0%

Covered Lines:
1700

Relevant Lines:
1700

💛  - Coveralls


Tag log events by build type

It would be nice to track log events by their build type to be able to filter on production builds, etc.

Dupe of #72


fix(ffe-grid-react): remove nested grid warnings and tests

Since InlineGrid was implemented in #445, nesting of grids is now accepted. This PR removes related warnings and tests that have thus become obsolete.

Coverage decreased (-0.2%) to 80.468% when pulling ad155fc3ab428e54d00cb8fa7b13158de01be8af on nested-grid-warnings into cb262fa54f31dba1983b109b6ce5ac9ff5529f0c on develop.

Shouldn't we still check for the nesting of regular grids?

I was under the impression we only allowed nesting the inline version, you'd still get unexpected results if you nest the ones with gutters.

Also, you still want to avoid having a GridCol as a descendant of another GridCol unless that inner GridCol is within an InlineGrid (with a GridRow).
<Grid>
    <GridRow>
        <GridCol>
            <GridCol>
                derp
            </GridCol>
        </GridCol>
    <GridRow>
</Grid>

Should still not be allowed.
If anything, the check should possible be expanded to making sure

any GridCol is contained directly within a GridRow
if a GridCol is in the subtree of another GridCol it must also be in the subtree of an InlineGrid
any GridRow is contained directly within a Grid or InlineGrid
If a GridRow is in the subtree of another GridRow it must also be in the subtree of an InlineGrid
a Grid can never be in the subtree of an InlineGrid
any InlineGrid should be in the subtree of a Grid (?)

I probably should have pointed this out when the inline stuff was introduced but I kinda forgot about these tests and since I didn't check out and run the branch in that PR I never saw any warnings.

Is warnings being printed when using inline-grid still an issue or can this be closed?


Error during training:  Target contains only one unique value

I tried running sentence transmogrifier with this command line below
I used a simple training set which consisted of English verses with and without spaces.
I've attached that file in case it is helpful for finding the problem.
python transmorgrify.py --train --in_csv E:\Work\Pilot_projects\Nuoso\transmog_train.txt --a_header original --b_header split --device 0:1  --model [nuoso_gpu_100.tm](http://nuoso_gpu_100.tm/)  --verbose --iterations 100 --train_percentage 30
The end of the trace looks like this:
97:     learn: 0.1640706        total: 1.94s    remaining: 39.6ms
98:     learn: 0.1636335        total: 1.96s    remaining: 19.8ms
99:     learn: 0.1629958        total: 1.98s    remaining: 0us
action is fitted: True
action params:
{'iterations': 100, 'learning_rate': 0.07, 'task_type': 'GPU', 'devices': '0:1'}
Traceback (most recent call last):
  File "F:\GitHub\SentenceTransmogrifier\transmorgrify.py", line 652, in <module>
    main()
  File "F:\GitHub\SentenceTransmogrifier\transmorgrify.py", line 611, in main
    train( in_csv=args.in_csv,
    ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "F:\GitHub\SentenceTransmogrifier\transmorgrify.py", line 515, in train
    tm.train( from_sentences=train_data[a_header],
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "F:\GitHub\SentenceTransmogrifier\transmorgrify.py", line 40, in train
    self.char_model = _train_catboost( X[insert_indexes], Y['char'][insert_indexes], iterations, verbose=verbose, device=device, model_piece='char' )
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "F:\GitHub\SentenceTransmogrifier\transmorgrify.py", line 388, in _train_catboost
    model.fit( train_pool, eval_set=validation_pool, verbose=True )
  File "F:\GitHub\SentenceTransmogrifier\venv\Lib\site-packages\catboost\core.py", line 5100, in fit
    self._fit(X, y, cat_features, text_features, embedding_features, None, sample_weight, None, None, None, None, baseline, use_best_model,
  File "F:\GitHub\SentenceTransmogrifier\venv\Lib\site-packages\catboost\core.py", line 2319, in _fit
    self._train(
  File "F:\GitHub\SentenceTransmogrifier\venv\Lib\site-packages\catboost\core.py", line 1723, in _train
    self._object._train(train_pool, test_pool, params, allow_clear_pool, init_model._object if init_model else None)
  File "_catboost.pyx", line 4645, in _catboost._CatBoost._train
  File "_catboost.pyx", line 4694, in _catboost._CatBoost._train
_catboost.CatBoostError: C:/Go_Agent/pipelines/BuildMaster/catboost.git/catboost/private/libs/target/target_converter.cpp:375: Target contains only one unique value

training_latin.txt

Ok, I believe I know what is going on.  The system has two models,
1, one what to do, a: drop, b: pass, c: insert
2, what to insert.
When you are inserting just spaces, the model which is trained of what to insert has a constant output.  It always needs to insert a space, and it isn't happy about that.  So to get around this condition for now, add some more variation in the text besides needing to put the spaces back in.  Take out the periods as well or something like that.   Then the insertion model will have something for it to learn.  Period or space.

I added the boundary case so that a second model is not trained if the output is constant.


⚠ Inventory API Endpoint has degraded performance

In bb8a903, Inventory API Endpoint (https://inventory.roblox.com/v1/users/82738847/assets/collectibles?limit=10&sortOrder=Asc) experienced degraded performance:

HTTP code: 200
Response time: 8002 ms

Resolved: Inventory API Endpoint performance has improved in fe3d787 after 7 minutes.


Error on installing add-on

Hi,
I'm trying to install the GPSD to MQTT addon for Home Assistant, but I'm getting the following error on install:
Can't install sbarmen/amd64-addon-gpsd2mqtt:0.0.106a: 404 Client Error for http+docker://localhost/v1.42/images/create?tag=0.0.106a&fromImage=sbarmen%2Famd64-addon-gpsd2mqtt&platform=linux%2Famd64: Not Found ("manifest for sbarmen/amd64-addon-gpsd2mqtt:0.0.106a not found: manifest unknown: manifest unknown")
I think it tries to install a specific version (0.0.106a) and I don't find that one on the Docker hub.
Kind regards,
Stefan

Yeah that should not happen. Version 0.0.106 should be installed. I am just about to upgrade to 0.0.107, that should be out in a few hours. Hope that will fix the issue.

Hello Stefan, please try again now with the version 0.0.107 and see if that works for you. :)


Setting properties to the unwrapped value of a store doesn't always propagate into the store

Describe the bug
Let's go through an example. if we define an object on a variable like so:
let object = {};

And then we pass this value into the createStore:
const [store, setStore] = createStore(object)

Now, since Solid does keep the reference to the object intact, such that unwrap(store) === object is true,
I would expect that if we were to set a value inside of object this value would propagate under all circumstances
into the store, but there is one where it doesn't.
setStore('fake item', 'fake id');
object['fake item'] = createUniqueId();

console.log('unwrapped store', unwrap(store) /* or just object */);
console.log('raw store value', store);

The value from both will differ which causes unexpected behavior for my use-case and I would expect it not to.
I'm opening the issue here to keep track of this, but I'm not sure this is a bug. I'll also do my best to investigate
the store code for SolidJS to see if I can help out either with a PR or some suggestions as to what might be causing this.
Your Example Website or App
https://playground.solidjs.com/anonymous/671217f5-1742-45be-932f-494c85ee3a85
Steps to Reproduce the Bug or Issue

Open the playground I provided above
Open the console and wait a few seconds
Notice that the values for the unwraped store differ from the values of the store

Expected behavior
That the values between the unwraped store would stay the same with the actual store.
Screenshots or Videos
No response
Platform
Node: 20.11.1
OS: Linux 6.7.5-arch1-1
Additional context
I have a very specific use case where I need to synchronize a lot of data across various places, I tried doing this, admittedly suboptimally, through various effects where I would set the states manually throughout where needed.
Now I'm trying to use getters, which is much cleaner, but this requires me to create an object that, by default, returns the values from the base object through getters and updates them into values if necessary, kind of like a Proxy. This does work normally through the createStore function and its setter in most cases, but not in the one I mentioned. I ended up tracking it into this specific behavior I would consider a bug.
EDIT: one of the cases in which this does work is if you just don't set the value in the store at all, and then you keep comparing both, it's always the same.

Feeling like this might be the culprit:
https://github.com/solidjs/solid/blob/8de75a47bc535379ae9ae1cc77797d35a1e10868/packages/solid/store/src/store.ts#L209-L238

Your statement

I would expect that if we were to set a value inside of object this value would propagate under all circumstances
into the store, but there is one where it doesn't.

holds true only within reactive context.
Let me explain
Outside reactive context the values don't "propagate" on change, might seem like it, but it is just reading what reference points to, e.g.
let object = { prop: "value" };
function logProperty() {
  console.log(object.prop);
}
logProperty(); // logs "value"
object.prop = "new value";
logProperty(); // logs "new value"

Here function logProperty didn't track changes for object.prop and didn't get notified that object.prop has changed, but still logged newest value.
The reactive context allows us to trigger different behaviors when the tracked value changes. This means, that we don't need to manually call logProperty, we can define behaviour that reacts to changing a value.
const [object, setObject] = createStore({ prop: "value" });
createEffect(function logProperty() {
  console.log(object.prop);
}); // logs "value" (in case we wouldn't call setObject immediately after)
setObject("prop", "new value"); // logs "new value"

Here the createEffect does track changes for object.prop and gets called when it changes. This is possible, because now object is defined as a trackable value and through provided interface (setObject) we notify the effect that we changed the value. This notification wouldn't happen if we didn't use the store interface. I mean the ❌ object.prop = "new value" ❌ wouldn't trigger anything (except maybe eslint 😉, but that's good, because we didn't create trackable to not trigger changes).
Back to your issue
In your example
let object = {};
const [store, setStore] = createStore(object)
setStore('fake item', 'fake id');
object['fake item'] = createUniqueId();

console.log(store["fake item"] === object["fake item"]) // logs false

Changing the property of object, the object['fake item'] = createUniqueId();, doesn't trigger anything, because it isn't trackable value. Even though the store is dependent on it, this change doesn't cause store to change. It might seem like it changed something after you unwrapped store, but unwrapping returns the reference to original object, so it reads original object at given time. It might seem like it changed something also when you don't unwrap, but at the same time don't use setStore, because then the store uses direct reference to original object, only after using setStore it becomes more deeply independent.
Other way around if you used only setStore and not object['fake item'] = createUniqueId();, the original object can change (and it does), because store holds reference to original object and it can change its' properties.
let object = {};
const [store, setStore] = createStore(object)
setStore('fake item', 'fake id');

console.log(store["fake item"] === object["fake item"]) // logs true

Then also the properties of unwrapped store wouldn't differ from properties of store, because with setStore you change original object and the store.
Changing only original object doesn't change the store.
Solution
I am not sure why you need to control original object outside store AND the store separately, and also not sure why you need reactivity here (your sandbox example doesn't show anything reactive), so

if you don't need to control original object outside store, then you don't need to hold itconst [store, setStore] = createStore({});
setStore("prop", 123);
unwrap(store); // when you need to read original for some reason

if you don't need reactivity, you can just use plain objectlet object = {};
object.prop = 123;

if you need to control moreless same object with 2 interfaces with reactivity, you can define original object as trackable (I would treat it as a fun fact, I think this always can be restructured to one of the solutions above)const [object, setObject] = createStore({});
const [store, setStore] = createStore(object);
setStore("prop", 123); // changes object and store
setObject("prop", 123); // changes object and store

Hey @maciek50322, thanks for taking the time to look into this!

Changing the property of object, the object['fake item'] = createUniqueId();, doesn't trigger anything, because it isn't trackable value. Even though the store is dependent on it, this change doesn't cause store to change. It might seem like it changed something after you unwrapped store, but unwrapping returns the reference to original object, so it reads original object at given time. It might seem like it changed something also when you don't unwrap, but at the same time don't use setStore, because then the store uses direct reference to original object, only after using setStore it becomes more deeply independent.

I don't exactly want it to trigger anything, the way I have things setup is that I want to defineProperty into the target object with a getter
that returns a reactive value (i.e. a signal or a store), so that it would be reactive to that value, kind of like what Solid already does from your doubly wrapped store solution. The problem
is that even with the defineProperty in the original object it won't update after the set on the store.
So, this example of me setting just the value in the object is just to get a more minimal reproduction, not necessarily my usecase.

Changing only original object doesn't change the store.

I've noticed it hasn't but it only does in this case, the thing is that this behavior doesn't seem to be necessarily intended, just what is right now as it's never been an issue, so
my thought is that this could be probably circumvented here in the code. Thinking here that, as the set for the store
will change the target object, it could also keep the state of the object in sync if necessary.
From your solution:

if you need to control moreless same object with 2 interfaces with reactivity, you can define original object as trackable (I would treat it as a fun fact, I think this always can be restructured to one of the solutions above)

The problem with that is that the getters from the original store can't really be reset back again. Only if I were able to Object.defineProperty into the store again then it would work. My use case demands that I'm able to have the value
and then go back to the getter if I intend to switching back-and-forth.

A solution would probably work completely if I could programmatically add a getter into the store, I could just set the value,
but I do need a getter, so not sure if something like the following would work.
const [store, setStore] = createStore({  });
setStore('key', '1234');
setStore(produce(value => Object.defineProperty(value, 'key', { get: () => {...}, enumerable: true, configurable: true; })

This illustrates a bit more on my problem here as AFAIK I can only set this getter programmatically in the original object,
and if I do on the store not sure how the Proxy wrapped object would behave.

Another problem with the last solution you provided is that both of them are in sync, whereas I want only the second store to be in sync with the first while the first is independent of the second. Does that make sense? Just a one-way data flow so that things are immutable if I need to, and mutable only on the second store if I need to as well.

I'm still a long way from understanding the code for the setter in the store, but as far as I understand, once I set the value Solid starts returning a function call into a signal for each property, and then, that signal gets out of sync with the original
object. Then the reason that the target object is in sync after only being set to the store is because Solid also updates it
when setting.
This would be fine if I could either, define a getter programatically, or delete the signal manaully so that it just returns the value of the target when I know I need to. These would also probably be better solutions than what I'm trying right now.

This would be fine if I could either, define a getter programmatically

Tried many things for this, but none of them worked. Here are two of them:

const [signal, setSignal] = createSignal('this is not John');
const [store, setStore] = createStore({});
setStore('name', 'John');
Object.defineProperty(store, 'name', {
  get() {
    return signal();
  },
  configurable: true,
  enumerable: true
});
expect(store.name).toBe('this is not John') // fails

const [signal, setSignal] = createSignal('this is not John');
const [store, setStore] = createStore({});
setStore('name', 'John');
setStore(reconcile({
  get name() {
    return signal();
  }
}, { merge: true }));
expect(store.name).toBe('this is not John') // seems to work
setSignal("maybe it is John");
expect(store.name).toBe('maybe it is John') // fails

Yeah so custom getter usually will get evaluated to assign the value to store property, but I don't think you need to define custom getter if you want to just pass signal as property. If you pass signal as property, you pass accessor, which return newest value.
const [signal, setSignal] = createSignal("this is not John");
const [store, setStore] = createStore({ name: signal });

console.log(store.name()); // this is not John
setSignal("another name");
console.log(store.name()); // another name

Small caveat there if you want to change store property to different signal you do
setStore("name", () => signal)

And for the other issue do you mean something like this?
https://playground.solidjs.com/anonymous/4d348a1d-5ee3-45d4-90f6-c9bc72c35e5f
createComputed sets component color when instance color changes, but when component color changes  instance color stays the same

And for the other issue do you mean something like this?
https://playground.solidjs.com/anonymous/4d348a1d-5ee3-45d4-90f6-c9bc72c35e5f
createComputed sets component color when instance color changes, but when component color changes instance color stays the same

Yeah that could also be done through an effect, the thing is that this gets really unmaintanable once the objects get big and there are many objects. But I actually meant for it to be done the other way around, so the instance changes when the component changes. But also, if the instance changes and then the component changes the instance shouldn't change anymore for only the changed property.

And for the other issue do you mean something like this?
https://playground.solidjs.com/anonymous/4d348a1d-5ee3-45d4-90f6-c9bc72c35e5f
createComputed sets component color when instance color changes, but when component color changes instance color stays the same

Yeah that could also be done through an effect, the thing is that this gets really unmaintanable once the objects get big and there are many objects. But I actually meant for it to be done the other way around, so the instance changes when the component changes. But also, if the instance changes and then the component changes the instance shouldn't change anymore for only the changed property.

Well it does get harder to maintain if you need to take care of each property separately, but there's always a way if you want to treat all of them the same way, so something like iterating through all properties should do the work. Also there's something like createReaction that can trigger only once dependency changes.
There are actually much more handy utilities in docs, take your time to get to know them. Even though your case is VERY specific it's possible to do. I managed to do something you described, but there are many ways to implement this. Here's one example
https://playground.solidjs.com/anonymous/494d6068-6e82-4615-81c0-db40ebe9b49d
You can change instance as many times as you want, but once you change component, you can change instance on its own, only with component.
Back to main topic, what you described originally is probably not a bug. If you have problems with understanding library or need some tips official discord might be a better place for this disccusion.

Back to main topic, what you described originally is probably not a bug. If you have problems with understanding library or need some tips official discord might be a better place for this disccusion.

I'm not sure though, might be something to consider about the behavior of createStore. Regardless I think I'm going to end up doing something like someone from Discord described inside of a primitive for this, might end up being better.
I'll leave this open for now as Ryan might consider it a bug.

Another thing I experimented with is patching Solid to export the underlying $NODE symbol so as to delete the signal for the property that is being set again. This actually is feasible for my use case, the primitive ended up being too complex to write but it is possible still.

If anyone is interested in a solution here, I ended up using a proxy OVER a store that contains the overwritten values,
then I only override the getters and the set for Solid stays the same along with all its behavior. Could not do it without this awesome library

Nice. Yeah these sort of considerations are something that I do pay attention to.  I will say the current behavior is very much by design and would be difficult to change in a performant way. It is sort of the nature of the beast but understanding the intent and effort that goes into working around this for specific cases is incredibly invaluable. Thank you posting your efforts on our github so that we have a record of it.


[VL] Fix setup script for Velox dependencies

What changes were proposed in this pull request?
This is simply a follow-up for https://github.com/oap-project/gluten/pull/4606, as we found the program on ubuntu is also broken when hdfs is enabled.
How was this patch tested?
Local test.

setup-sentos-7 is maintained in oap-project/velox. Needs to remove fmt since latest upstream velox depending on cmake to resolve dependency.

@rui-mo

===== Performance report for TPCH SF2000 with Velox backend, for reference only ====

query
log/native_4623_time.csv
log/native_master_02_03_2024_75285bcb8_time.csv
difference
percentage

q1
32.65
33.28
0.634
101.94%

q2
24.12
24.26
0.149
100.62%

q3
37.53
38.78
1.248
103.33%

q4
37.65
37.64
-0.008
99.98%

q5
72.08
70.97
-1.114
98.45%

q6
7.03
8.56
1.532
121.81%

q7
82.34
84.29
1.958
102.38%

q8
85.75
84.63
-1.119
98.70%

q9
120.89
121.75
0.865
100.72%

q10
41.18
43.29
2.108
105.12%

q11
20.54
20.58
0.043
100.21%

q12
27.05
26.43
-0.620
97.71%

q13
45.07
45.82
0.741
101.64%

q14
16.08
21.75
5.664
135.22%

q15
29.97
29.07
-0.897
97.01%

q16
12.53
14.30
1.765
114.08%

q17
101.80
103.31
1.507
101.48%

q18
148.83
149.45
0.621
100.42%

q19
12.69
13.09
0.400
103.15%

q20
27.92
26.67
-1.253
95.51%

q21
222.60
222.74
0.141
100.06%

q22
13.49
13.69
0.197
101.46%

total
1219.78
1234.34
14.563
101.19%


Edit in CodeSanbox demos and themes

Add the sandbox.config.json file to all our demos and a link to “Edit it in Codesandbox” like what we have in our website.

https://community.frontity.org/t/update-codesandbox-template-automatically/862/3?u=luisherranz (edited)

Done in demos with online WordPress available at

https://github.com/frontity-demos/frontity-examples/tree/master/custom-post-types
https://github.com/frontity-demos/frontity-examples/tree/master/head-tags
https://github.com/frontity-demos/frontity-examples/tree/master/homepage-categories-widgets
https://github.com/frontity-demos/frontity-examples/tree/master/processor-blockquote

This demo https://github.com/frontity-demos/frontity-examples/tree/master/contact-form was using a local WP installation. As soon as @mburridge creates an online WP for this demo we'll also add the CodeSandbox link for this demo too.


use CompilerHost.realpath to resolve actual location for symlinks

fixes #8346 and related issues

:+1:


Expected value of food_product_type

In reviewing mixs_table_stage modifications, I see that your suggestion for the expected value of food_product_type is FOODON:00001002 or FOODON:03309997. Does this mean that it should be FOODON:00001002 or FOODON:03309997 or one of their subclasses? If so, it needs to be phrased more clearly.

I agree, but this Expected value comes directly from the MIxS excel sheets.
LinkML allows the range for a slot like food_product_type to be set to an enumeration that has a reachable_from relationship with a ReachabilityQuery. If we use that, then the LinkML validator can check if the values provided in  food_product_type (etc.) really come from subclasses of either FOODON:00001002 or FOODON:03309997.
BUT, the acceptable values will just be the ontology ids, not the "{term_label} [{term_id}]" pattern.
See also

#dyn

Okay, then we can leave it as is for now, but we should address this as a
more general issue some day.


[Issue-1915] Update web-runner for i18n for background

Related issue(s)

#1915

Is your feature request related to a problem(s)? Please describe.

Update handler for language settings

Describe the solution you'd like

Update handler for language settings

Describe alternatives you've considered

No

Additional context

No

🚀 Deployed on https://koni-dev-issue-1915--sw-web-runner.netlify.app


feat: implement back-to-top button in blog post page

Implement back-to-top button under tags in PostDetails page. Update html scroll-behavior to smooth.
Closes: #156

That looks great, makes much more sense like that!
While clicking around, I noticed something I haven't noticed before: In MS Edge, the title view transitions from post list to details and back are sometimes a bit wonky (it stretches over the whole box for like a ms and then snaps back). It's most visible with short titles, like the "AstroPaper 3.0" post. I thought it might have to do with the "html: smooth" change, but turns out that it was there before. It seems very situational, can't notice it in Firefox, and even in Edge it's not visible 100% of the time.

Yep.
Maybe because of view transitions api. Not sure the exact reason tho.
Hopefully will be solved eventually by upgrading Astro.

very bad.
I was hoping for nice floating back to top button such as here in this example:
https://www.ub.cafe/posts/post-title-29

very bad.
I was hoping for nice floating back to top button such as here in this example: https://www.ub.cafe/posts/post-title-29

Dude, could you at least show some respect, when other people do work FOR FREE for you? If you don't like the implementation, make a better one for yourself. Good luck.

nowadays back to top buttons are more advanced, like that one in my example.
that basically isnt really a button but a link , that I could have made.
I expected a bit more complexity - like fade in/ fade out on scroll.

Then go and learn how to do it yourself. And if you are too lazy for that, at least learn how to ask nicely. Nobody here ows you anything, but If you show some human decency, amazing things can happen.
Anyway, you've got a lot to learn. Good luck.


Log level and other syslog properties should be available through Docker's log drivers

Hi all,
It seems like currently it's impossible to get log line "metadata" like the severity level or the syslog facility when running a process within a Docker container.
As far as I understand it the logging implementation used within Docker simply aggregates everything into a string that's always being outputted to stdout/stderr and (because of this?) always has log level INFO. This makes it impossible to use any of the log-drivers to read/forward log lines with their metadata.
Am I doing something wrong or is this really how it works?
Also, is this expected behaviour or a bug? I couldn't really find anything about this except from the code in log forwarders, but no documentation or design decisions.

If you use the -t option when creating a container, stdout/stderr are multiplexed onto a single stream.
Anything else, docker just consumes the stdout/stderr of the container and sends those streams to the log driver, which handles the severity based on which stream.
The syslog driver uses info and error.

@cpuguy83 thanks for the quick response!
So the best we're able to do would without adding any external dependency would be be to output certain log levels to stdout and other ones to stderr and use that as a very crude way to identify the log level.
I was kind of hoping the log-drivers like syslog or journald would enable this functionality, but now that you mention it it's obviously impossible for Docker to do when it only has stdout and stderr.
Would supporting, for example, something like syslog within a Docker container as input for the log-drivers be a feasible option?

@simonvanderveldt It's definitely not out of the realm of possibility.

Just browsing through here I noticed that there's another issue open for configuring logging for stdout and stderr differently: https://github.com/docker/docker/issues/25683
There isn't one about exposing a docker-managed syslog socket inside containers though, so maybe this issue should be repurposed for that proposal?


Problem about query bulider

One of brick tool you provide, querybuilder is not working probably. There is link https://brickschema.org/tools/QueryBuilder.
Can u help me? Thanks

Hi @JUNGWONN -- this tools has unfortunately been down for a few years now and I haven't had the time to try and recreate it. We do have web-based query tools like https://sparql.gtf.fyi/ that are more easily available, but do not help you construct the query.

Closing for now


th06 - background, enemies and other stuff isn't drawn (wine-staging 8.5)

https://github.com/thpatch/thcrap/assets/86927456/c573f9f5-27e7-41fd-9d05-6770798ce164
Seems like half the time this happens and half the time it doesn't, it's weird. Try switching between launching from the terminal and from double-clicking Touhou6.exe.
It looks like when vpatch gives this error it works fine:

if this happens without thcrap as well then this is probably a Wine issue


Arrow chunk_size as keyword argument

Closes #2998.
As per @ray6080's comment, setting the arrow record batch size (which we call chunk_size) to 1M is a reasonable default because DuckDB does the same. In the majority of cases, a larger record batch size is favourable, and the user can always bring down the chunk_size if necessary.
I also fixed the pyarrow tests to not specify the chunk_size argument as low integer values.

@mewim what do you think about moving the get_as_polars adaptive chunk size estimation logic over to the get_as_arrow method? That way Polars could just benefit from the arrow logic directly and not have to specify it independently.

moving the get_as_pl adaptive chunk size estimation logic for polars over to the get_as_arrow method

I just made those changes and built & tested locally, works well 👌🏽.

fixed the pyarrow tests to not specify the chunk_size argument as low integer values.

FYI: I believe they were specified this way in order to validate result acquisition across chunk boundaries 🤔

Hi @alexander-beedie, great points.

It makes sense to revert to the small chunk size numbers in the tests so as to validate result acquisition across chunk boundaries as you mentioned
For the opt-in behaviour for get_as_pl as you mentioned (where chunk_size=None, we would still perform adaptive logic in the get_as_arrow method, correct?
I'm not sure what you meant by the last comment (the "new default") not being a breaking change. Do you mean breaking change w.r.t the old approach that you committed, or w.r.t. this new way where we do the adaptive logic inside get_as_arrow?

In any case, I think we're converging towards an agreeable and better solution, so thanks again :)

I would probably keep the chunk size as referring to number of rows and use adaptive chunk size only if chunk size is set to None / 0 / -1.

@mewim I reworked it according to your latest comment. What do you think?

I would probably keep the chunk size as referring to number of rows and use adaptive chunk size only if chunk size is set to None / 0 / -1.

I'd reserve chunk_size = 0/-1 for a new mode that guarantees only a single chunk (aka: no chunks?) is produced. This allows None to be adaptive, an integer to continue doing what it currently does, and if/when the functionality is added lower down to produce an unchanged Arrow result we could enable 0/-1 for that 🤔

I'm not sure what you meant by the last comment (the "new default") not being a breaking change.

Just that the way the PR was initially written changed the meaning of chunk_size so that everyone currently using it would start getting back results that were not chunked the same way. If the new default was None then all current usage would continue to behave identically (so the change in default would not be breaking); only new usage that omits an integer chunk_size would get the new behaviour.

@alexander-beedie how does -1 produce an "unchunked" result? To my understanding arrow will always return record batches, i.e., chunks of records?

@alexander-beedie how does -1 produce an "unchunked" result? To my understanding arrow will always return record batches, i.e., chunks of records?

It doesn't/can't at the moment as the current low-level code will always produce chunked results. The idea would be to produce a single chunk representing the complete result set.
We'd use such a mode in Polars, as otherwise we typically have to explicitly rechunk Arrow data to achieve the same result (it's more optimal for us to operate on contiguous data).

Hmm, so it's a polars-specific setting where we'd document that setting chunk_size as -1 is an option. But as per the polars docs for the from_arrow method, this would require that we specify rechunk=False when the user specifies -1 to get_as_pl, correct?

I think the last commit addresses your comments @alexander-beedie. We can use the get_num_tuples() method to return the entire results as a single chunk when the user specifies 0 or -1.

as per the polars docs for the from_arrow method, this would require that we specify rechunk=False when the user specifies -1 to get_as_pl, correct?

It's a no-op unless n_chunks > 1, so no need to set explicitly 😎

@prrao87 Note that when merging to the master, the commits needs to be squashed into one.

Shall I go ahead and squash-merge?

Yeah I think it is ready to merge

We can use the get_num_tuples() method to return the entire results as a single chunk

@prrao87: Somehow I completely missed this method; great solution ✌😎


Default binding for h and l causes non-responsive PackerSync

Hi, it seems that the default keybinding for h and l (from pretty-fold.preview) causes the floating window for PackerSync (packer.nvim)  to be non-responsive. j and k work fine however.
It seems like this causes an infinite loop in M.mapping.close_preview_open_fold(original), where original() causes this to be recursively called.

Tried to fix this issue. Notify me if it happens again.

Should be fixed now.