Toolbar onValueChange called on init and multiple times on each change

Describe the bug
First off, thank you for this wonderful library!
I'm seeing the same behavior for the Toolbar component as in #73.
When using type="multiple", I'm seeing the Toolbar.Group onValueChange callback fired once upon init and multiple times on each change.
E.g.
<script lang="ts">
  import { Separator, Toolbar } from 'bits-ui'

  let text: string[] = []

  function onTextChange(value) {
    console.log('>>>>', value)
  }
</script>

<Toolbar.Root>
  <Toolbar.Group bind:value={text} onValueChange={onTextChange} type="multiple">
    <Toolbar.GroupItem value="bold">
      <BoldIcon />
    </Toolbar.GroupItem>
    <Toolbar.GroupItem value="italic">
      <ItalicIcon />
    </Toolbar.GroupItem>
    <Toolbar.GroupItem value="strikethrough">
      <StrikethroughIcon />
    </Toolbar.GroupItem>
  </Toolbar.Group>
</Toolbar.Root>

The Toolbar component, (and maybe others that accept type="multiple" might need a similar fix as this. Although the real issue seems like it's related to when the onValueChange callback is called since I'm seeing it called multiple times for 1 change.
https://github.com/huntabyte/bits-ui/pull/184/files#diff-1729c77e94aa549e7182aaca8513c234217d3026b2a7ed653e1a208ed2b35703R56
Reproduction
https://stackblitz.com/edit/sveltejs-kit-template-default-ylyzdx?file=src%2Froutes%2F%2Bpage.svelte
Logs
No response
System Info
System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 18.18.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.2.3 - /usr/local/bin/npm
    pnpm: 8.15.3 - /usr/local/bin/pnpm
  npmPackages:
    @sveltejs/kit: ^2.0.0 => 2.5.5
    bits-ui: ^0.21.2 => 0.21.2
    svelte: ^4.2.7 => 4.2.13

Severity
annoyance

Thank you for the quick turnaround!


Add a semblance of scene support

This adds all the plubming required to support scenes, but does not
actually store the information necessary to apply them. This allows
apps that require the scene api to interact with the emulated bridge
without blowing up or taking up the additional memory required for
proper support.

Thanks @opticron will test it in a minute.
What do you think about https://github.com/probonopd/ESP8266HueEmulator/pull/46 and can you make it apply cleanly?

I am getting with the Hue iOS app with the "colorful" icon
Starting SSDP...
 but actually it takes forever and I have to kill the app...

The app with the non-colorful icon actually does find the emulated bridge and connect to it!

I see the issue. I'll submit a new PR with the POST scene creation sans scene ID fix.

The iOS app with the non-colorful icon actually does find the emulated bridge and connect to it nowadays seems to use scenes for almost everything; so if I select a color and wait for a couple of seconds, then the color in the app gets reset to the original one...


Deleted news are visible in news promo

News we have deleted are still visible in the news promo and news room list. Is there a "process" for deleting news (just Delete incl translation/One by one language/Unpublish first and then delete etc.)? How long does it take before a news disappear after deleting/unpublishing it?

Also, please confirm if Unpublishing a news and then publishing it again will trigger a new newsletter being sent (which is what we need) - and that publishing updates (without unpublishing first) will not trigger a new newsletter being sent out.

Needs refinement and should probably be tested by a developer


feat: add exiftool module, integrate with Libreoffice conversion

Creates an Exiftool module for writing file metadata (particularly relevant to PDF in this case).
The Exiftool module is integrated with the LibreOffice module and its PDF conversion route, i.e. /forms/libreoffice/convert. Metadata can be supplied to this endpoint in JSON format via the metadata from data element. I can help update the docs repository should this PR be merged. A sample request
curl --location --request POST 'localhost:3000/forms/libreoffice/convert' --form<EMAIL_ADDRESS>--form 'metadata="{\"Creator\": \"Personio\", \"Producer\": \"Workzag\" }"'
Limited JSON metadata datatypes are currently supported, i.e. string and number. However, there is potential to support additional data types in the future.
I tried to follow existing patterns in the project. Let me know if you have any comments, opinions or feedback :)

Hello @padpadthai 👋
Thank you very much for your time on this PR 👍 , and sorry for the delay!
I do think the exiftool module should be a PDF Engine (i.e., https://github.com/gotenberg/gotenberg/blob/v7.1.0/pkg/gotenberg/pdfengine.go#L34).
You could add a method WriteMetadata to the PDFEngine interface, for instance:
WriteMetadata(ctx context.Context, logger *zap.Logger, metadata map[string]interface{}, inputPath string) error

Then I guess the path is the following:

Make the exiftool module a PDF Engine (see for instance https://github.com/gotenberg/gotenberg/blob/v7.1.0/pkg/modules/pdftk/pdftk.go).
Update other PDF Engine modules with the new WriteMetadata method (without support).
Update the pdfengines module (https://github.com/gotenberg/gotenberg/blob/v7.1.0/pkg/modules/pdfengines/multi.go).
Update the chromium, libreoffice, and pdfengines routes.

Once there, we could start improving the implementation to support more datatypes 😄

Thanks for the feedback @gulien .
I should get some time to refactor based on your outline soon :slightly_smiling_face:.
Also on another note, I see from another issue that you're now a father. Big congatulations :baby:


Seems to fail with Mongo 3.4.3

Hello,
I move to Mongo 3.4.3 (previously 2.x). Since migration, my project has a bug and after some investigations, I strongly suspect Socket.io-mongodb.
When I launch the project I have the following error :
Development/core.node/node_modules/mongodb/lib/utils.js:98
    process.nextTick(function() { throw err; });
                                  ^
MongoError: The field 'strict' is not a valid collection option. Options: { capped: true, autoIndexId: true, size: 5242880, strict: false }
    at Function.MongoError.create (Development/core.node/node_modules/mongodb-core/lib/error.js:31:11)
    at Development/core.node/node_modules/mongodb-core/lib/topologies/server.js:778:66
    at Callbacks.emit (Development/core.node/node_modules/mongodb-core/lib/topologies/server.js:95:3)
    at Connection.messageHandler (Development/core.node/node_modules/mongodb-core/lib/topologies/server.js:249:23)
    at Socket.<anonymous> (Development/core.node/node_modules/mongodb-core/lib/connection/connection.js:266:22)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:176:18)
    at Socket.Readable.push (_stream_readable.js:134:10)
    at TCP.onread (net.js:548:20)

And when I launch mongodb-core in debug mode, I see that :
[DEBUG-Db:20429]<PHONE_NUMBER>446 executing command {"create":"pubsub","capped":true,"autoIndexId":true,"size":5242880,"strict":false} against ws-dev.$cmd with options [{"readPreference":{"mode":"primary"}}] { type: 'debug',
  message: 'executing command {"create":"pubsub","capped":true,"autoIndexId":true,"size":5242880,"strict":false} against ws-dev.$cmd with options [{"readPreference":{"mode":"primary"}}]',
  className: 'Db',
  pid: 20429,
  date:<PHONE_NUMBER>446 }
[DEBUG-Server:20429]<PHONE_NUMBER>446 executing command [{"ns":"ws-dev.$cmd","cmd":{"create":"pubsub","capped":true,"autoIndexId":true,"size":5242880,"strict":false},"options":{"size":5242880}}] against localhost:27017 { type: 'debug',
  message: 'executing command [{"ns":"ws-dev.$cmd","cmd":{"create":"pubsub","capped":true,"autoIndexId":true,"size":5242880,"strict":false},"options":{"size":5242880}}] against localhost:27017',
  className: 'Server',
  pid: 20429,
  date:<PHONE_NUMBER>446 }

We see the strict: false, responsible of the error.
It applies on wsdev database, given in my socket.io-mongo connection Uri.
And it tries to create pubsub collection coming from socket.io-mongo.
Creation failed.
Maybe it seems like the last version of Mongo requires some dependencies update in socket.io-mongo ?

Ok, after more research, the problem comes from MubSub library.
Remove this line solve the problem.
https://github.com/scttnlsn/mubsub/blob/master/lib/channel.js#L24

I opened an issue in Mubsub : https://github.com/scttnlsn/mubsub/issues/60


Error:(404, 23) 错误: 找不到符号

Error:(404, 23) 错误: 找不到符号
符号:   方法 isAnnotationPresent(Class)
位置: 类型为Method的变量 method

@s3hengwu I'm sorry I don't speak Chinese and I tried to use Google Translate but I still don't understand the issue here.  Maybe you could try StackOverflow or another forum to get help?


Appstudio update test-custom-default-branch-dtay

Pipelines as Code configuration proposal
To start the PipelineRun, add a new comment with content /ok-to-test
For more detailed information about running a PipelineRun, please refer to Pipelines as Code documentation Running the PipelineRun
To customize the proposed PipelineRuns after merge, please refer to Build Pipeline customization

Pipelines as Code CI has failed.There was an error creating the PipelineRun: test-annotations-mwia-on-pull-request-
creating pipelinerun test-annotations-mwia-on-pull-request- in namespace build-e2e-vjyi-tenant has failed.
Tekton Controller has reported this error: the namespace of the provided object does not match the namespace sent on the request

Pipelines as Code CI has failed.There was an error creating the PipelineRun: test-simple-build-sorp-on-pull-request-
creating pipelinerun test-simple-build-sorp-on-pull-request- in namespace build-e2e-vjyi-tenant has failed.
Tekton Controller has reported this error: the namespace of the provided object does not match the namespace sent on the request

Pipelines as Code CI has failed.There was an error creating the PipelineRun: test-annotations-wyqr-on-pull-request-
creating pipelinerun test-annotations-wyqr-on-pull-request- in namespace build-e2e-vjyi-tenant has failed.
Tekton Controller has reported this error: the namespace of the provided object does not match the namespace sent on the request

Pipelines as Code CI has failed.There was an error creating the PipelineRun: test-simple-build-kqtd-on-pull-request-
creating pipelinerun test-simple-build-kqtd-on-pull-request- in namespace build-e2e-vjyi-tenant has failed.
Tekton Controller has reported this error: the namespace of the provided object does not match the namespace sent on the request

Pipelines as Code CI has failed.There was an error creating the PipelineRun: test-annotations-yvpd-on-pull-request-
creating pipelinerun test-annotations-yvpd-on-pull-request- in namespace build-e2e-vjyi-tenant has failed.
Tekton Controller has reported this error: the namespace of the provided object does not match the namespace sent on the request


For getDocuments attributesToRetrieve param works only if is string type.

Describe the bug
For getDocuments attributesToRetrieve param works only if is string type.
If array type, then throwing error:
Fatal error: Uncaught MeiliSearch ApiException: Http Status: 400 - Message: Query deserialize error: unknown field attributesToRetrieve[0], expected one of offset, limit, attributesToRetrieve - Code: bad_request - Type: invalid_request - Link: https://docs.meilisearch.com/errors#bad_request thrown in /app/vendor/meilisearch/meilisearch-php/src/Http/Client.php on line 215
To Reproduce
Steps to reproduce the behavior:
1.
PHP:
$hits = $client->index('movies')->getDocuments(['limit' => 2, 'offset' => '2', 'attributesToRetrieve' => ['title','poster']]);
print_r($hits);
2. See error
MeiliSearch version: [v0.25.0]
Additional context
https://github.com/meilisearch/meilisearch-php
OS: debian 11, via docker

uhmm looks like a meilisearch-php issue, wdyt @meilisearch/integration-admin-team ?

Indeed, looks like the query parameters are wrongly sent to the search engine! Moving this to meilisearch-php


Wifi issues with NixOS USB installation on new XPS 13 7390 (mid 2019)

Describe the bug
Cannot connect to WiFI after booting into 20.03 unstable (nixos-20.03pre193829.f0fec244ca3) image.
To Reproduce
Steps to reproduce the behavior:

Create 20.03 USB
Boot into it
Run iwconfig

Result: lo no wireless extensions. Trying to use wpa_supplicant as suggested in the guide of course doesn't work
Expected behavior
I expect other interfaces besides lo, and for `wpa_supplicant to work.
Additional context
ifconfig/ip addr show also only shows loopback. dmesg | grep wifi is empty.
Now, 20.03 isn't released yet, so why use it? Well, 19.03 (and 18.03) don't boot at all. I don't even get to the GRUB screen - when I select the USB to boot from, I just see the Dell screen forever. This is fairly new hardware (the new XPS 13, with Comet Lake and Killer Wi-Fi 6 AX1650) so I thought I'd try fairly new software, and that got me to at least boot.
It seems (from the discussion on the Arch linux forum) that I should use a kernel >= 5.2.2, but I don't really know how to do that - the way I know of updating the kernel (boot.kernelPackages) requires internet. I guess I could try building my own ISO image with that kernel, but the only other computer I currently have access to is not going to handle a nixpkgs install.

Here's a link to a minimal install iso with the latest kernel

https://hydra.nixos.org/build/100951153/download/1/nixos-minimal-new-kernel-19.09beta181.64e38f246ae-x86_64-linux.iso

Note that its nixpkgs revision is isn't what is the latest on the 19.09 beta because it appears to be failing to build.

Oh it seems you were using 20.03 unstable and I've provided a 19.09 beta image.
I recommend not using unstable if you'd like a working experience right away, 19.09 is due to release very soon, and it should have a new enough kernel anyway.
(we've branched off from unstable earlier this month)

Ah perfect. I ended up finding a way to build an ISO myself, but 19.09 with the 5.2 kernel worked for me.
Should I close? I imagine it might be a bit annoying for people that the ISO they are directed to download won't in the near future work for them if they have similar hardware; on the other hand, searching for this issue should already help.

I think the actual issue here is we don't expose ISO's with newer kernels. And having these images clearly helps people, so I'll pursue it separately.
And yes, I think we can close this a it is resolved :+1: .


typ{o,e} fixes

First arg to TileDBCloudError is supposed to be http_status: Optional[int], but these callsites were passing a `str.

I guessed that those should be body (and body should be allowed to be str | bytes, not just bytes)

Couple docstr/comment typos

Good point, converted them to ValueErrors

Looks like ConnectToExistingTest::test_running_graph is failing on main, at least some of the time. Example:
FAILED tests/taskgraphs/test_server_side.py::ConnectToExistingTest::test_running_graph - concurrent.futures._base.TimeoutError: timed out after 120 sec

@ryan-williams I'm confident that the failures are unrelated and will merge.


microk8s.ctr does not support "images tag"

Occasionally I find myself wanting to manipulate image tags locally in the microk8s containerd. Unfortunately the version of ctr shipped (v1.2.5) is too old. Please consider upgrading it.
For reference, this subcommand was added in https://github.com/containerd/containerd/pull/3388
I've been working around this by bind-mounting a newer binary on top of the snap, but obviously that's pretty gross. :)

There is a PR to upgrade to 1.3.1 here.
Still pending review, this pr also upgraded the configuration to version 2.
https://github.com/ubuntu/microk8s/pull/838


feat(core): add TPC-H test and fix the syntax error

Description

Add TPC-H test in sqllogictests
Disable some unsupported tests and raise the issue.

Known Issues

Arrow parses interval literal error.

DataFusion error: Arrow error: Parser error: Invalid input syntax for type interval: "0 YEARS 3 MONS 0 DAYS 0 HOURS 0 MINS 0.000000000 SECS seconds"

The schema of the subquery expression is wrong.

# TODO:
# External error: query failed: DataFusion error: ModelAnalyzeRule
#  caused by
#  Schema error: No field named partsupp.ps_suppkey.

Calculation column in the view will fail

# TODO: fix the calculation column name of view
# statement ok
# SELECT * FROM wrenai.public."Revenue_orders"

May I ask the TPCH dataset size is tiny or SF1?

May I ask the TPCH dataset size is tiny or SF1?

It's TINY (SF 0.01).


chore: allow<EMAIL_ADDRESS>

The breaking change was the dropped support of IE8 (not supported here) and a change in export layout: https://github.com/react-bootstrap/dom-helpers/blob/master/CHANGELOG.md#500-2019-08-30.

Codecov Report

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

@@           Coverage Diff           @@
##           master    #1419   +/-   ##
=======================================
  Coverage   90.35%   90.35%
=======================================
  Files          59       59
  Lines        1742     1742
=======================================
  Hits         1574     1574
  Misses        168      168

Impacted Files
Coverage Δ

source/Collection/CollectionView.js
90.19% <ø> (ø)
:arrow_up:

source/Grid/Grid.js
94.48% <ø> (ø)
: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 a390b2a...75fbf22. Read the comment docs.

Just realized this would be a breaking change and would not work with older versions - will revisit shortly.


Firedancer Fuzzing

Using SolFuzz, run differential fuzzing on the program against the original builtin implementation.

There is no builtin to fuzz against. Marking complete.


Methods missing

I need a way to include custom navigation buttons or methods to control the slider with custom buttons.

This part is missing in the docs. You can check those methods used to navigate the carousel component

It`s not clear how to access those internal methods via parent component

You need to add a reference to the carousel component
<Carousel ref="myCarousel">
   ...
</Carousel>

Then you can use any methods that are exposed
this.$refs.myCarousel.next()


Use common base image for services

Rebase all services on one image, which would accept all build args
Fixes #25

Why only yum refresh in fedora Dockerfiles?

You mean dnf -y --refresh? This refreshes metadata only (as base image might be weeks old etc.). There doesn't seem to be an option to do that for yum


app.mail3.me cannot connect wallet from Dapp browser

name: Bug Report
about: Using AlphaWallet, but it's not working as you expect?

Describe the bug
A clear and concise description of what the bug is.
Steps to reproduce (REQUIRED)
Steps to reproduce the behavior

Tap Browser tab
Visit app.mail3.me
Tap WalletConnect
Wait

Expect
6a. A Connect button as android side does
Observed
6b. A QR code
Screenshots
If applicable, screenshots (preferred to video) to help explain your problem, a wallet address or transaction hash if applicable/possible
Version or build number number
3.45(441)
Related to https://github.com/AlphaWallet/alpha-wallet-android/pull/2712

@seabornlee it works for me on iOS for both:

MetaMask (this prompts for signature, after signing, it seems to be connected)
WalletConnect

Tap WalletConnect
Display the WalletConnect mobile link screen (with Mobile and QR Code tab, Mobile is selected by default)
Tap page 2 and tap AlphaWallet
Prompted to Connect
Tap Connect
Tap Browser tab
Tap Check
Display signing request actionsheet
Tap Sign and it seems to work too

Does it work differently for you?

@hboon It‘s different on my side.
https://user-images.githubusercontent.com/735708/178699080-59f78879-0130-4905-8a33-c8985f91bc87.MP4

Strange, I see this on both device and simulator:

Can you try again after clearing cache? Settings > Advanced > Clear Browser Cache. Also make sure in Browser tab > … > Connected to: Ethereum

tested with real device, works fine for me.

only thing i faced is that after wallet connect connecting, iphone navigation moved to previously used app. Maybe we need to add check to apply apps navigation to browser apps only, or disable navigation for in app browser

Oh. I thought of this but can’t reproduce it so was mistaken it’s ok. Can you help create an issue with strap to reproduce? Especially for switching/launching apps to trigger it

Looks like they changed it. I don't see WalletConnect anymore and connect as MetaMask (ouch!) works.


Circular import for warehouse.oidc

Surfaced via:
python -c "import warehouse.oidc"

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "workpath/warehouse/warehouse/oidc/__init__.py", line 13, in <module>
    from warehouse.oidc.interfaces import IOIDCPublisherService
  File "workpath/warehouse/warehouse/oidc/interfaces.py", line 19, in <module>
    from warehouse.packaging.models import Project
  File "workpath/warehouse/warehouse/packaging/__init__.py", line 17, in <module>
    from warehouse.accounts.models import Email, User
  File "workpath/warehouse/warehouse/accounts/__init__.py", line 22, in <module>
    from warehouse.accounts.security_policy import (
  File "workpath/warehouse/warehouse/accounts/security_policy.py", line 36, in <module>
    from warehouse.utils.security_policy import AuthenticationMethod
  File "workpath/warehouse/warehouse/utils/security_policy.py", line 21, in <module>
    from warehouse.oidc.models import OIDCPublisher
  File "workpath/warehouse/warehouse/oidc/models.py", line 24, in <module>
    from warehouse.oidc.interfaces import SignedClaims
ImportError: cannot import name 'SignedClaims' from partially initialized module 'warehouse.oidc.interfaces' (most likely due to a circular import) (workpath/warehouse/warehouse/oidc/interfaces.py)

This isn't posing a problem in production (yet). I found it when I tried to filter out the warnings from InsecureOIDCPublisherWarning - but we should figure out how to not have a circular import.

Working on this now!


Add CSS entrypoints to the manifest

Vite does not currently include CSS entry points in the manifest because the standard approach to loading CSS with Vite is to import it via JavaScript.
The problem with loading CSS via JavaScript with Blade, is that in HMR mode, the CSS is injected into the page via JavaScript, and browsers do not block rendering for this, which leads to a "flash of unstyled content" (FOUC) on every page load. It's not an issue with SPAs because the JavaScript also renders the HTML.
This is not an issue in production because we can determine from the manifest the appropriate <link rel="stylesheet"> tags to create from any JavaScript entry points.
To solve this in HMR mode, we need to output <link rel="stylesheet"> tags for CSS, which means we need to specify the CSS files as entry points to the @vite directive. Once we're specifying CSS as entry points, they need to exist in the manifest to be able to load them in production.
There is an open PR to Vite to include CSS entries in the manifest, however, this may not make it into Vite 2 (or even 3 potentially). A solution, at least for the time being, is for our plugin to augment the manifest with CSS entry points. It does this by listening to the renderChunk hook to record the appropriate manifest entries and then hooking into the writeBundle hook to update the manifest. We can hopefully remove this workaround once the above PR is released.
Other backend integration plugins follow a similar approach.
There is currently a separate issue with Vite in HMR where where it currently only updates the href of the <link> tag with a new timestamp when a change occurs. This leads to a FOUC every time an HMR change is made, which is arguably worse than only on page load. Thankfully, @timacdonald has an open PR to Vite which keeps the existing <link> in place until the replacement has loaded. Once that is merged, this will be good to merge also.

https://github.com/vitejs/vite/pull/8495 has been merged and is scheduled to be released in Vite 2.9.11

This is good to go then! The Vite team is understandably not keen on backporting https://github.com/vitejs/vite/pull/6649 to Vite 2, so we will need this workaround at least temporarily.

Once this is merged and assuming https://github.com/vitejs/vite/pull/6649 is merged, we will want to rebase the Vite 3 branch and remove this code.


docs: update docs readme to include links to modules docs

This PR is a quick fix to the docs issue 213.

Looks good to me overall. My one concern is that when you run yarn docs it might overwrite the changes. I am not sure if there is a specific typedoc config that can add this specifcally, or if there is a way for us to inject a script to customize the outcome.

Good point, I made this changes assuming the user is going to directly check the docs without auto-generate them.
I tried locally and indeed running yarn docs overwrites the README.md file. I was wondering, how do you tell typedoc to generate the README.md in the current way? I am checking the file typedoc.js and I do not see anything useful in that direction...

Ahhh okay, so I think the best way to do this is to update the README.md at the root of the repository with the changes you want to add, then run yarn docs and that will generate them to the docs readme.


feat: added text overrides on PaymentsCheckoutAction

Signed-off-by: Haris Spahija<EMAIL_ADDRESS>Part of: #409
Impact: minor
Type: feature
Component
PaymentsCheckoutAction now has overrides when i18next will be implemented (see #409)
Breaking changes
No breaking chances, all added fields are optional
Testing

Add a new prop billingAddressTitleText to <PaymentsCheckoutAction />
Add the value "test" to billingAddressTitleText
Button should display "test" when test is given as a value to the prop. When the prop billingAddressTitleText is not added, it should default to the values given in default props

Added props:
billingAddressTitleText: PropTypes.string,

🚀 Preview deployed
Built with commit 57a1cf9d494d6f80186ac1ed69e4a4bbd4c62b57
https://deploy-preview-460--stoic-hodgkin-c0179e.netlify.com

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Return full TunnelState structs from externally available List function

cc: @saucelabs/scdev

my bad, unnecessary


output issue

Is your model correct? Why are all the images I output error?( all my output images are one color) hope your reply~

Did you try the sample data we provided in data/STN and data/EDT? Are the results still one color?
I cannot help you with the little information you provided.

Did you try the sample data we provided in data/STN and data/EDT? Are the results still one color? I cannot help you with the little information you provided.

thank your answer，data/STN and data/EDT 's result all are  one color. i use python3.7 ,pytorch1.2.0+cuda9.2 for windows.

Could you provide the detail of packages required for installing in windows ? For example, the version of package, thank you.

I tried my code on linux. I didn't test on Windows.
If I find time this week, I will test on Windows and tell you the packages.

Here is how I install all the packages
(python 2.7 is not supported for current torch version, so I install the python 3.8 for recent pytorch version)
git clone https://github.com/TAMU-VITA/DeepPS.git
cd DeepPS/src
conda create --name deepPS python=3.8
conda activate deepPS
conda install pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 cudatoolkit=11.3 -c pytorch
conda install matplotlib
conda install scipy
conda install Pillow
conda install -c conda-forge opencv

# these are for the installation of torchsample.
git clone https://github.com/ncullen93/torchsample.git
cd torchsample
python setup.py install
cd ..
conda install pandas
pip install nibabel
pip install tqdm

After downloading the pretrained models to ./save/, removing the original results in ./output/, I run the code
python test.py

I got the results:

Thank you very much!


Version 1.0.0 is very buggy

Description
Version 1.0.0 doesn't show the typical AR container UI with an object blending other features. It was available on version 0.10.0 but not version 1.0.0.
Browser Affected

[X] Chrome
[ ] Edge
[ ] Firefox
[ ] Helios
[ ] IE
[ ] Safari

OS

[X] Android
[ ] iOS
[ ] Linux
[ ] MacOS
[ ] Windows

Versions

model-viewer: v1.0.0

are you using scene-viewer?


Inventory and Item system rework 3.0

Working with and around the inventory system, instantiation of inventories, tying those to the controls and item and enemy spawning is a pain. The level loading event lifecycle feels like a cludge and there has got to be a more godot like way of tying these things together. I feel like I leaned too much on programming and not enough on nodes and the tools of the engine.
I need to think about this some more before really trying to tackle this again

[ ] Get working as is
[ ] get working with larger items
[ ] rework inputs to use keybinds
[ ] Context menus
[ ] EquipmentSlots
[ ] Drop slot data
[ ] Item3d pick up

Issues

[ ] Gun still highlighted when picked up
[ ] Gun hangs in air when dropped


How to upload media at wandb

I want to upload media(image,bounding box) to wandb.
Is there a way to upload media?

Hey, @KimSeungHyun1217 there's an active PR to address this: #7459

Hey @KimSeungHyun1217 did you get the chance to try the MMDetWandbHook. It is available with v2.25.0.


Forge 1906 TiC 2.2.2 Progression 0.5.0

I noticed in my modpack when i added a bunch of mods that i couldnt access tinkers crafting table anymore nor by r-click nor by switching to its tab in the new custom tinkers tables gui. I did a clean instance on curse and tinkers by itself didnt have this issue but when i added progression i got immediately locked out of the tinkers table again. I understand locking ppl out of things is a feature but without any quests and stuff added to the book i guess this shouldnt happen. Cheers!

What do you mean couldn't access it, do you mean couldn't craft anything, crash or what? I'll test it on my side later tonight. But no if you don't add anything it shouldn't lock you out. Does it affect normal crafting or no?

Does not affect normal crafting. I mean there is no way of accessing the tinkers crafting table as soon as i add your mod into the pack without any changes to either TiC or Progression configs. https://youtu.be/X6Ud9ZSI4UY

Interesting, I wonder what's happening. I'll take a look later.

I know it worked before since I tested it.

Thank you but i tested it myself too thats the least i can do.Went back as far as fml1891 still couldnt be accessed, went back to fml1906 upgraded TiC and Mantle to their latest alpha build, still couldnt. Tried with 1885 1886 just for the lulz since there was a lot of changes there...no change still couldnt be accessed. I ran out of ideas what to test. With a clear curse install 0 change to either of the mods or vanilla settings could it be just my client messing something up? Only thing different here is my java arguments! :D

[12:17:00] [Server thread/FATAL]: Error executing task
java.util.concurrent.ExecutionException: java.lang.VerifyError: Expecting a stack map frame
Exception Details:
Location:
slimeknights/tconstruct/tools/inventory/ContainerCraftingStation.func_75130_a(Lnet/minecraft/inventory/IInventory;)V @16: aload_0
Reason:
Error exists in the bytecode
Bytecode:
0x0000000: 2ab4 001d 2ab4 0016 2ab4 003d b800 7ab1
0x0000010: 2ab4 0016 03b8 0080 2ab4 001d 2ab4 003d
0x0000020: b600 84b9 008a 0300 b1
at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_25]
at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_25]
at net.minecraft.util.Util.func_181617_a(SourceFile:46) [g.class:?]
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:664) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:609) [MinecraftServer.class:?]
at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:148) [byn.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:467) [MinecraftServer.class:?]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_25]

Caused by: java.lang.VerifyError: Expecting a stack map frame
Exception Details:
Location:
slimeknights/tconstruct/tools/inventory/ContainerCraftingStation.func_75130_a(Lnet/minecraft/inventory/IInventory;)V @16: aload_0
Reason:
Error exists in the bytecode
Bytecode:
0x0000000: 2ab4 001d 2ab4 0016 2ab4 003d b800 7ab1
0x0000010: 2ab4 0016 03b8 0080 2ab4 001d 2ab4 003d
0x0000020: b600 84b9 008a 0300 b1
at slimeknights.tconstruct.tools.tileentity.TileCraftingStation.createContainer(TileCraftingStation.java:28) ~[TileCraftingStation.class:?]
at slimeknights.mantle.common.GuiHandler.getServerGuiElement(GuiHandler.java:18) ~[GuiHandler.class:?]
at net.minecraftforge.fml.common.network.NetworkRegistry.getRemoteGuiContainer(NetworkRegistry.java:244) ~[NetworkRegistry.class:?]
at net.minecraftforge.fml.common.network.internal.FMLNetworkHandler.openGui(FMLNetworkHandler.java:80) ~[FMLNetworkHandler.class:?]
at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2462) ~[zj.class:?]
at slimeknights.tconstruct.tools.block.BlockToolTable.openGui(BlockToolTable.java:86) ~[BlockToolTable.class:?]
at slimeknights.mantle.block.BlockInventory.func_180639_a(BlockInventory.java:49) ~[BlockInventory.class:?]
at net.minecraft.server.management.PlayerInteractionManager.func_187251_a(PlayerInteractionManager.java:447) ~[ls.class:?]
at net.minecraft.network.NetHandlerPlayServer.func_184337_a(NetHandlerPlayServer.java:680) ~[mb.class:?]
at net.minecraft.network.play.client.CPacketPlayerTryUseItem.func_148833_a(SourceFile:55) ~[jg.class:?]
at net.minecraft.network.play.client.CPacketPlayerTryUseItem.func_148833_a(SourceFile:11) ~[jg.class:?]
at net.minecraft.network.PacketThreadUtil$1.run(SourceFile:13) ~[fh$1.class:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_25]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_25]
at net.minecraft.util.Util.func_181617_a(SourceFile:45) ~[g.class:?]
... 5 more

fml1906 TiC2.2.2 Progression 0.5.0 Basicly this is happening according to my logs. Doesnt mention your mod but it only happens when its present

Yea that will be an error with my asm, I figured there'd be an error in the log. Which is why I planned to test it later.  Get some rest, its nothing game breaking :D

This one should fix it http://minecraft.curseforge.com/projects/progression/files/2300593
At least it did on my end.

Yeah just saw it in the curselauncher, tested it standalone(TiC and Progression) and in my full modpack too. So far so good! Thank you ^^


Correct the spelling of CocoaPods in README

This pull requests corrects the spelling of CocoaPods 🤓
https://github.com/CocoaPods/shared_resources/tree/master/media
One day I’ll make a bot that looks through the READMEs of all Pods, looks to see if it uses “Cocoapods” and PRs “CocoaPods” :D— Ørta (@orta) February 10, 2016

Created with cocoapods-readme.

@ReadmeCritic It fixes the point where you've pointed out. Thank you.

@tichise thank you!


provide possibility to download vocabularies

requested by @martinantonmueller

should be possible now https://gitlab.com/acdh-oeaw/apis/apis-core/-/commit/ae1caff0a860fa3cc861580dbbd958ada3312097
e.g. {project-base-url}apis/api/vocabularies/download/{vocabClassName/
e.g.https://pmb/apis/api/vocabularies/download/worktype/
triggers the download of a csv with columns  ['id', 'name', 'parent_class']

I suppose this might take a while to be functional, because:
https://pmb.acdh.oeaw.ac.at/apis/api/vocabularies/download/worktype/
does not work

yes, after pushing changes to the apis-code-repos, a pipline is triggered which runs some tests and (if the they pass) deploy the new code version to all the millions of apis-instances we are running
this takes a while (~ 30 min)


Release 2023.01.04

This release adds the following fixes:

#35
#36

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Consolidating RadRoads

Hi everyone - I'm looking for a summary from someone on how an outside user can implement RadRoads?
I see many notebooks here but have no clear idea on how to implement RadRoads on some city.
My recommendation is to consolidate the work into a single python file and provide a requirements.txt so that any user can git clone this repo and input a city name and get RadRoad outputs:
Example:
git clone RadRoads repo
cd RadRoads
python RadRoads.py Tempe, AZ
RadRoads Output for Tempe, AZ
Top 5 longest roads
Top 5 curviest Roads
Top 5 Straightest Roads

A stretch goal could be to provide a single python notebook to illustrate plotting techniques using RadRoads outputs.
Thanks
How to submit an issue?

[x] Have you checked previously open/closed issues to see if your question has already been asked & addressed?

If there is an open issue similar to your issue. Comment on that open issue with additional detail indicating that you too are having the same issue. This allows the project sponsor to prioritize incoming issues.

[x] Have you provided a clear description of your issue so that the project sponsor is able to answer all your questions with as few back-n-forths as possible?
[x] (Please acknowledge by checking this box) If a screenshot or visual helps better communicate some complex idea, have you provided one?. Draw.io, Lucidchart, and Autodraw are some excellent and quick drawing tools.
[x] (Please acknowledge by checking this box) When an issue is resolved, please post the steps to resolution or clearly describe the resolution before marking the issue closed.

This will help future SOLVERS read through how your issue was solved and may help them solve their issue quicker.

[x] Have you been kind, courteous, and considerate in your questions?
[x] Have you considered using Stackedit.io, a handy tool to quickly write in markdown?

Also im not able to find whether sinuosity is being used to determine curviest / straightest roads. Can someone tell me what the plan is here?

to expand more, vincenty is the geographical distance , so by dividing the straight distance, we conduct the curviness

for circuity, it is the difference between two nodes and divided by the straight distance, which i don't think it's what we are doing? Please correct me if my understanding was wrong.

Thanks @jazzzchan can you please create a new issue for discussing approaches to Straight/Curvy roads? ...and how do you feel about this issue (consolidating to a single script). Can it be done? Thanks!

@ywnch please refer #15 for curviness discussion.
Once you consolidate functions_basic.ipynb to a .py file - we can close this issue


Single Line Colab error. Potential bug?

Hi, I figured I'd give a shot at running your 'default' code on my laptop, but only running on 2 CPUs has taken 3 days now and counting.
So I shifted the code to Colab, but experienced issues when trying to speed up the code using a GPU.
I got the following error:
File "/content/spectranet/src/models/spectranet.py", line 183, in _load_current_chain     p_0_z = self.p_0_chains[idxs].to(idxs.device) RuntimeError: indices should be either on CPU or on the same device as the indexed tensor (CPU)
From my digging online, there needs to be some specification added to this line to make it work, as right now, PyTorch seems to be making assumptions about where the allocated resources are located.
The problem is I don't know enough about pytorch to know what the code change needs to be.

Hi @pauljones0. The code is designed to work on GPU. In CPU it will take a lot of time, so I don't recommend it. I was able to run the current code in a GPU without any errors. Are you using the Github code directly or did you copy everything in Colab? I will wrap up the code so it can be pip installed directly from Colab.

I ran the minimal code I figured was necessary to get the code running with both a standard/premium GPU and neither worked
https://colab.research.google.com/drive/1nIbe5jAB2RpNSDYEmd3cJxzbgOfBZ_iO?usp=sharing
I assume the code ran smoothly with a local Colab instance?


[#466] Fix the Plan Wizard Results Step API Error Handling

Fixes #466
This PR removes the "We're sorry, something went wrong. Please try again" messaging if there is an API error at the end of the Plan Wizard, and instead shows the error message sent by the API. It also replaces the non-functional Retry button with a functional Close button.

In order to test this PR, you can cherry-pick the following commit on top of this branch, which will defeat the error handling in the General step of the wizard, which allows you to try to create a plan with the same name as an existing plan, which will cause an API error.
Commit to cherry-pick for forcing errors: https://github.com/mturley/miq_v2v_ui_plugin/commit/a6ff3671ecc3c3fb83b83763733444514e5b18be

Note to anyone following this, I've updated the PR description. This is now ready to review/merge, but in order to test it you will need to cherry-pick another commit (otherwise it's impossible to force an API error).


How do I get cookies from the search api, or is there any function regarding user permissions?

I wish to control the Repository scope through user permissions, how can I do this

Could you elaborate more on how you would want to control repository permissions? Would you want to sync existing permissions from your code host, or directly configure permissions within Sourcebot?

I am using GitLab and I would like to sync GitLab permissions. Retrieve user information through cookies, and then search based on the Repository within the user's permissions

@kowhi gotcha - I'm not sure if it would be possible for us to access a GitLab cookie since it's cross-origin. Another approach we could take is to support OAuth and allow for users to sign in with GitLab. This would require us to support authentication within Sourcebot, which is a bigger task


broken example : DOM >Input and Button

this DOM example did not work dom-input-and-button
because of the mousePressed() event ; maybe it should be replaced by the mouseClicked() one
related to p5.js/issues/3141

Thanks for reporting!
Isn't it the case that we can just wait for the issue you linked to be resolved? We have a pull request that aims to fix the problem.

I dont know, the online example could also be changed ...
replace mousePressed by mouseClicked, and it should work.

Since we already have a fix in place awaiting merge I don't think we need to modify the example here but rather get the fix merged and published as soon as possible.

this has been merged and will be resolved on the website with next release publish


Install bridge-utils when using server-bridge

We should try to cover proper support of bridging in the next major version. To begin we need to ensure bridge-utils is installed to provide brctl.

Fixed via https://github.com/xhost-cookbooks/openvpn/commit/95169b9d5ede1f14a2a7226ea79e307af465973c.


Debug addTaskCommand

Fix the bug that in "task 99description", "99" is wrongly taken as index.

Fixes #161


(Apache) Switch to apachelounge package + update to 2.4.57

Description

Switch to ApacheLounge for Apache binaries because ApacheHaus is on hold
Use latest version of the binaries (2.4.57) because the existing version has some critical security bugs (2.4.55)

Motivation and Context
The latest version for Apache available on Chocolatey has a critical bug (CVE-2023-25690 - CVSSv3 9.8)
How Has this Been Tested?
Only basic functionality (webserver works)
Screenshot (if appropriate, usually isn't needed):
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Migrated package (a package has been migrated from another repository)

Checklist:

[x] My code follows the code style of this repository.
[x] My change requires a change to documentation (this usually means the notes in the description of a package).
[x] I have updated the documentation accordingly (this usually means the notes in the description of a package).
[x] I have updated the package description and it is less than 4000 characters.
[x] All files are up to date with the latest Contributing Guidelines
[ ] The added/modified package passed install/uninstall in the chocolatey test environment.
[x] The changes only affect a single package (not including meta package).

:white_check_mark: Package verification completed without issues. PR is now pending human review

OK


Added support for Content Security Policy

In order to use debug toolbar with a content security policy enabled, no
inline scripts or styles can be used. This commit replaces all style
attributes with CSS or javascript. It uses data attributes to handle
the dynamic styles, like width and color.
In addition, this required updating jQuery to 1.8, because 1.7 is not
CSP compatible.
See also #307, which began implementing CSP compatibility.

Can someone take a look at this? It would be really useful for the project to be as conservative as possible in supported CSPs, so that development environment can differ as little as possible from production.

I started working on this again and updated the pull request. I have it working with RENDER_PANELS=True, but with RENDER_PANELS=False it's tricky.
When rendering panels lazily, debug toolbar fetches their content over xhr and then inserts them with $.html. When you do $.html('') in jquery, it doesn't actually insert a script tag into the dom -- it retrieves the script source with xhr and then evals it (see _evalUrl), which of course doesn't work with CSP. I'm not sure how to fix this.

@gavinwahl nice one, thanks for taking another look at this 2yo PR!
What is the Google api Ajax URL for, and why is it not https?

It's for debug toolbar to load it's jquery (JQUERY_URL). It should actually be //ajax.googleapis.com/ to allow https.

Unless we want to bundle jQuery (which I'm pretty sure we don't!) then we will have to have that exception, so I suggest we document it.
With regards to the other parts, allowing self makes sense, and is pretty reasonable, but it would be nice to remove the dependency on img-src data:;. Is that possible to remove?

@gavinwahl I'm right in thinking that JQUERY_URL can point to a self hosted jQuery JS.

data: is used for some icons: https://github.com/django-debug-toolbar/django-debug-toolbar/blob/master/debug_toolbar/static/debug_toolbar/css/toolbar.css#L150. I suppose they could be put into files instead. I'm not sure if there's any security problem with allow data urls for images.
Regarding the rest of the policy, this is not the purview of debug toolbar. It doesn't set the header itself, that's up to you and you can use whatever policy you like. If you set JQUERY_URL to something local, feel free to remove ajax.googleapis.com from script-src.
I only mentioned the policy I used so we could document a policy that works with the default toolbar config.

@gavinwahl With data-uri images you can place a transparant gif over the top of your bank balance and trick a user into sending the incorrect amount to an attacker.
They can also be slower than multiple files in lots of places.
Please put these in separate files if you have time.

Some of these might also look better as Unicode glyphs

Since the debug toolbar is intended for local use, it shouldn't be optimized for speed, only for ease of maintenance and development.

I opened jquery/jquery#2012 for the script thing

Looks like the jquery thing isn't going to be fixed until jquery 3.0 is released. I'm not aware of a workaround, so we'll just have to document that you must either use RENDER_PANELS=False or jquery>=3.0. What section of the docs can these notes about CSP support go?

@gavinwahl you can get this working in jQuery 2.x by triggering:
if ( code.indexOf("use strict") === 1 ) {
    script = document.createElement("script");
    script.text = code;
    document.head.appendChild( script ).parentNode.removeChild( script );
} else {

No, I saw that too and tried it. Notice that it's putting the source code of the script in script.text -- this is an inline script, which CSP blocks.

urgh yeah I didn't spot that.

@gavinwahl can you use:
$(selector)[0].innerHTML = htmlString;

Script tags inserted with innerHTML are not executed. That's the reason why jQuery is doing this stuff in the first place.

Can we load the scripts statically and the content dynamically?
On 14 Jan 2015 18:29, "Gavin Wahl"<EMAIL_ADDRESS>wrote:

Script tags inserted with innerHTML are not executed. That's the reason
why jQuery is doing this stuff in the first place.
--
Reply to this email directly or view it on GitHub
https://github.com/django-debug-toolbar/django-debug-toolbar/pull/330#issuecomment-69965381
.

Yes, we could load the scripts for all the builtin panels in base.html, where toolbar.js is loaded. Third-party panels would be unable to load scripts then.

How about getting a copy of the jQuery 3.0 .html function and including it
here?
On 14 Jan 2015 18:31, "Gavin Wahl"<EMAIL_ADDRESS>wrote:

Yes, we could load the scripts for all the builtin panels in base.html,
where toolbar.js is loaded. Third-party panels would be unable to load
scripts then.
--
Reply to this email directly or view it on GitHub
https://github.com/django-debug-toolbar/django-debug-toolbar/pull/330#issuecomment-69965810
.

That doesn't seem feasible, it's actually functions that are indirectly used by .html(). We'd have to monkey patch jquery's _evalUrl function to do it, but we reuse a jquery that's already on the page. It'd be rude to go about monkey patching some else's copy of jquery.

I don't think there's going to be any workaround for the jquery thing, so we'll just have to document that you must either use RENDER_PANELS=False or jquery>=3.0 for CSP compatibility. What section of the docs can these notes about CSP support go?

I've rebased and fixed the tests in #704

Closing this since #704 was merged in.


Unable to locate scripts related to traj

I am attempting to reproduce the results of this project, but I am unable to locate any scripts related to traj. I was wondering if you may have forgotten to upload these scripts or if there is some other reason why I am unable to find them.

Are you able to reproduce the results for sp, fcp or mep by any chance? If yes, I am stuck at this. It'd be really helpful if you can take a look!


Test & Evaluate OpenBazaar on RasPi or other IoT. Check if it can be included in project

OpenBazaar has been tested and it works on RasPi fine.
Next task would be to make automated script and Control Center links for easy manage and install process. For those another tasks will be created.


Skip foreign key creation on SQLite3

SQLite got it issues with foreign keys, so IMHO we should just skip the creation of foreign keys, beside that we try to create them in a wrong format anyway.
Before PR
(/home/tboerger/Projects/golang/src/github.com/tboerger/testing/main.go:44)
[2016-09-07 14:17:08]  [5.07ms]  DROP TABLE "users"

(/home/tboerger/Projects/golang/src/github.com/tboerger/testing/main.go:44)
[2016-09-07 14:17:08]  [6.85ms]  DROP TABLE "teams"

(/home/tboerger/Projects/golang/src/github.com/tboerger/testing/main.go:44)
[2016-09-07 14:17:08]  [2.58ms]  DROP TABLE "team_users"

(/home/tboerger/Projects/golang/src/github.com/tboerger/testing/main.go:48)
[2016-09-07 14:17:08]  [1.90ms]  CREATE TABLE "team_users" ("team_id" integer,"user_id" integer )

(/home/tboerger/Projects/golang/src/github.com/tboerger/testing/main.go:48)
[2016-09-07 14:17:08]  [3.24ms]  CREATE INDEX idx_team_users_team_id ON "team_users"(team_id)

(/home/tboerger/Projects/golang/src/github.com/tboerger/testing/main.go:48)
[2016-09-07 14:17:08]  [3.37ms]  CREATE INDEX idx_team_users_user_id ON "team_users"(user_id)

(/home/tboerger/Projects/golang/src/github.com/tboerger/testing/main.go:48)
[2016-09-07 14:17:08]  [5.66ms]  CREATE TABLE "users" ("id" integer primary key autoincrement,"created_at" datetime,"updated_at" datetime )

(/home/tboerger/Projects/golang/src/github.com/tboerger/testing/main.go:48)
[2016-09-07 14:17:08]  [3.29ms]  CREATE TABLE "teams" ("id" integer primary key autoincrement,"created_at" datetime,"updated_at" datetime )

(/home/tboerger/Projects/golang/src/github.com/tboerger/testing/main.go:52)
[2016-09-07 14:17:08]  near "CONSTRAINT": syntax error

(/home/tboerger/Projects/golang/src/github.com/tboerger/testing/main.go:52)
[2016-09-07 14:17:08]  [0.62ms]  ALTER TABLE "team_users" ADD CONSTRAINT team_users_team_id_teams_id_foreign FOREIGN KEY (team_id) REFERENCES teams(id) ON DELETE RESTRICT ON UPDATE RESTRICT;
2016/09/07 14:17:08 Failed to create team key. near "CONSTRAINT": syntax error

After PR
(/home/tboerger/Projects/golang/src/github.com/tboerger/testing/main.go:44)
[2016-09-07 14:19:33]  [3.31ms]  DROP TABLE "users"

(/home/tboerger/Projects/golang/src/github.com/tboerger/testing/main.go:44)
[2016-09-07 14:19:33]  [5.66ms]  DROP TABLE "teams"

(/home/tboerger/Projects/golang/src/github.com/tboerger/testing/main.go:44)
[2016-09-07 14:19:33]  [3.00ms]  DROP TABLE "team_users"

(/home/tboerger/Projects/golang/src/github.com/tboerger/testing/main.go:48)
[2016-09-07 14:19:33]  [3.09ms]  CREATE TABLE "team_users" ("team_id" integer,"user_id" integer )

(/home/tboerger/Projects/golang/src/github.com/tboerger/testing/main.go:48)
[2016-09-07 14:19:33]  [2.69ms]  CREATE INDEX idx_team_users_team_id ON "team_users"(team_id)

(/home/tboerger/Projects/golang/src/github.com/tboerger/testing/main.go:48)
[2016-09-07 14:19:33]  [4.23ms]  CREATE INDEX idx_team_users_user_id ON "team_users"(user_id)

(/home/tboerger/Projects/golang/src/github.com/tboerger/testing/main.go:48)
[2016-09-07 14:19:33]  [3.00ms]  CREATE TABLE "users" ("id" integer primary key autoincrement,"created_at" datetime,"updated_at" datetime )

(/home/tboerger/Projects/golang/src/github.com/tboerger/testing/main.go:48)
[2016-09-07 14:19:33]  [2.50ms]  CREATE TABLE "teams" ("id" integer primary key autoincrement,"created_at" datetime,"updated_at" datetime )

Script to reproduce
package main

import (
	"time"
  "log"

	"github.com/jinzhu/gorm"
	_ "github.com/jinzhu/gorm/dialects/sqlite"
)

type User struct {
	ID        int `gorm:"primary_key"`
	CreatedAt time.Time
	UpdatedAt time.Time
	Teams     []*Team `gorm:"many2many:team_users;"`
	TeamUsers []*TeamUser
}

type Team struct {
	ID        int `gorm:"primary_key"`
	CreatedAt time.Time
	UpdatedAt time.Time
	Users     []*User `gorm:"many2many:team_users;"`
	TeamUsers []*TeamUser
}

type TeamUser struct {
	TeamID int `sql:"index"`
	Team   *Team
	UserID int `sql:"index"`
	User   *User
}

func main() {
	db, err := gorm.Open("sqlite3", "test.db")
  db.LogMode(true)

	if err != nil {
		log.Fatal("failed to connect database")
	}

	defer db.Close()

	if err := db.DropTableIfExists(&User{}, &Team{}, &TeamUser{}).Error; err != nil {
    log.Fatalf("Failed to drop tables. %s", err)
  }

	if err := db.CreateTable(&TeamUser{}, &User{}, &Team{}).Error; err != nil {
    log.Fatalf("Failed to create tables. %s", err)
  }

	if err := db.Table("team_users").AddForeignKey("team_id", "teams(id)", "RESTRICT", "RESTRICT").Error; err != nil {
    log.Fatalf("Failed to create team key. %s", err)
  }

	if err := db.Table("team_users").AddForeignKey("user_id", "users(id)", "RESTRICT", "RESTRICT").Error; err != nil {
    log.Fatalf("Failed to create user key. %s", err)
  }
}

Hi @tboerger
I think it would be good to raise the error, so user knows the problem, it might cause some annoying issue if don't know this?

Than I'm not being able to use gorm properly. There is no attribute in gorm to detect the used database driver, so I can't differ within the migrations.

Hi @tboerger
How do you connect the database? I think you must read the the connect information from your configuration. So you could get the database type from the configuration also?

But that is still some kind of mixing the scope. Currently I'm using gormigrate which gets only gorm.DB handed over. If you really want to error out for foreign keys on sqlite just provide an attribute that indicates the used driver like other orms.


pytest should be a installed as a dependency

in instrumentation/instantiate.py testing is imported .. which depends on pytest but it's not installed with nevergrad as a dependency with pip

I preferred skipping the import if it is not installed, so that we can have access to most of common.testing without needing an additional requirement. I also added updated the test pipeline so as to (try to) make sure this does not happen again ;)


How to listen for a C# event in a JS file?

I can request data to a REST Controller but what if I want to listen for a event called from the C# Application? How I would do that?

@stevendevit so like you have an event in the Browser (C# code) that will trigger an action in Renderer (JS code?
If that is the case I will suggest you implement a JavaScript Executor controller like in the Demos - ExecuteJavaScriptDemoController
In JavaScript:
function methodAction() {
}

In C#:
private void onEventTrigger()
{
------
scriptExecutor.ExecuteScript("methodAction()");
}

Alternatively you can run polling/timer in JS that will continuously check what is happening in the C# code.


Add gnuplot package

Nice!

btw please consider following the Nim code style guide.
Some important stylistic guidelines:

https://github.com/dvolk/gnuplot.nim/blob/master/gnuplot.nim#L7 - Place the type on its own line.
Only put a space after a :.

Oh, I see you've already made a PR for that. Nice :)


APM Java Monitoring for Yals

[x] Install APM Server along with ELK

[x] Adapt Dockerfile to include APM Agent for Java

[ ] Use it

After installing. Found out similarities with bugsnag and APM ain't analyse memory.
Usefulness: 3.5/5

After installing. Found out similarities with bugsnag and APM ain't analyse memory.
Usefulness: 3.5/5

At least useful as I found out that it takes about second to draw index page because of slow ServletForwardingController


the tool does nothing

When try to use it, it does not output anything
OS: Windows 11
Node: 20.16.0
NPM: 10.8.1
Steps to reproduce:

Create a new ts project
try to transpile it

Expected result:
get vanilla js files
Actual result:
no output

Can you share the project you're trying to transpile and how you're running ts-to-jsdoc?


Question for a PhD student

I sincerely apologise for abusing 'Issues' to ask a personal question. Its just that I really want to know more about doing research and I think this is the easiest way to get a response from a PhD student him/herself. I'm 20 and will only enter University next year but have been learning deep learning/computer vision on my own (nothing great). My question is:
I have been going through code from several papers on GitHub and they only have .py scripts. At the same time, (because I'm using a MacBook Air) there seems to be only Jupyter Notebook-based cloud solutions (eg. AWS SageMaker, PaperSpace, Google Colab, Kaggle Kernels etc.). I want to learn to code like what researchers are doing now, specifically with regards to how you and other reseachers structure the project: It is typical to see a folder for model and utils respectively. This is something that is made tedious with Jupyter Notebooks as you can't simply import code from another python script. I would like to ask for details on your workflow when it comes to coding in your research project. I would even appreciate if you could just refer me to other resources where you perhaps may have learnt about this yourself.
Once again, I am sorry for abusing 'Issues'. If there is another way to communicate with researchers on GitHub, please do tell.
Yours Sincerely,
A person aspiring to be a deep learning researcher
Gordon

Thank you for your question!
It's great that you start studying deep learning and computer vision before entering University. I can only tell you about my personal experiences here. I hope it will help you.
About my workflow:
Basically, I use jupyter notebook to start writing code (dataset code, training code, network structure, etc.) because it's easier for me to write from scratch. After finishing coding, I convert them into .py script manually to train the network. The reason I use .py script for training is that .py script with arguments is easier to change parameters like batch size, learning rate, total epochs, etc.
Why only .py in Github repo:
I used to commit some jupyter notebooks in Github repo before as you can see here but version control for jupyter notebook is a little bit messy.  I would use Jupytext for uploading notebooks in Github.
Thanks,


Fix usage of ForEach in Get-DbaDbPageInfo

Replace the usage of ForEach in Get-DbaDbPageInfo with ForEach-Object so that the function will import successfully in PowerShell version 3.0.

Type of Change

[x] Bug fix (non-breaking change, fixes #)

Purpose
Fix the usage of ForEach in function Get-DbaDbPageInfo so that it may be imported successfully into PowerShell v3.0
Approach
Use ForEach-Object instead.
Commands to test
Simply run Import-Module in PowerShell v3.0

thanks again 👍 💯  Totally overlooked this. I will merge then update to ForEach-Object in place of the alias. Should be in master shortly 🍦


Help getting spark-connect-rs running locally

Commands I ran (I am a total n00b):

install rust via rustup
Created a new crate: cargo new spark-connect-gist
edited Cargo.toml to include spark connect rs and tokio dependencies:

[dependencies]
spark-connect-rs = "0.0.1-beta.3"
tokio = { version = "1", features = ["full"] }

Install cmake: arch -arm64 brew install cmake
Install protobuf: brew install protobuf
Copy the example gist in main.rs: https://gist.github.com/sjrusso8/2b4e43af462367a15f91db5a33627449
Run cargo run

Here is the error message:
   Compiling spark-connect-gist v0.1.0 (/Users/matthew.powers/Documents/code/my_apps/spark-connect-gist)
    Finished dev [unoptimized + debuginfo] target(s) in 1.00s
     Running `target/debug/spark-connect-gist`
Error: tonic::transport::Error(Transport, hyper::Error(Connect, ConnectError("tcp connect error", Os { code: 61, kind: ConnectionRefused, message: "Connection refused" })))

Whoops, this is actually working, I forgot to start the Spark Connect session with the command: ./sbin/start-connect-server.sh --packages org.apache.spark:spark-connect_2.12:3.5.1
Are you OK if I add these setup instructions to the README?

So I just ran through the steps on a fresh ubuntu image, and here is what I had to do.

Install rust via rustup
Install build-essential & protoc with apt install -y build-essential protobuf-compiler
Install cmake
Run cargo new spark-connect-starter && cd spark-connect-starter to create a new project and go to the directory
Add dependencies to your Cargo.toml file

spark-connect-rs = "0.0.1-beta.3"
tokio = "1.37.0"

Copy example into main.rs and run cargo run

Ensure spark connect is up and running.

I'll update the top level readme with the example from the gist. The current one leverages a file path that might not exist for all users depending on how they are running their spark cluster.

I see you also updated the spark-connect-go readme. I'll mirror that style


fix: remove modal release feedback updates

Contributes to #751

[x] Per the design, the primaryButton on the modal should be red.
[x] Per the design, the input field in the modal should span 100% of the container, while text inputs have a 20% margin-right
[x] I believe the size for this modal should be "small', similar to CreateModal -- can you confirm with design?
[x] Could resourceName or fileName work as a prop in place of resource? I was initially confused by what a resource was or meant, and the doc gen didn't clear it up. Perhaps there is a way to be more specific?
[x] I'm a bit unsure of the component name as RemoveDeleteModal -- we discussed this a bit over Slack. I would be open to hearing your thoughts.
[x] Add copy-write header in the following files:

[ ] _remove-delete.scss
[ ] RemoveDeleteModal.js

[x] Update copy-write header to read "2020, 2021" in the following files:

[ ] _storybook-styles.scss
[ ] index.js
[ ] RemoveDeleteModal.stories.js
[ ] RemoveDeleteModal.test.js

[x] Update the test file to include a test for each prop (resource, iconDescription, etc..) and it's supposed outcome -- discussed over Slack
[x] Let's set the propType of iconDescription to isRequired
[x] Line 86 of on RemoveDeleteModal.js has a spelling error
[x] To match the other modal component structure in Storybook, can you remove the "with State Manager" story?
[ ] Create a CodeSandbox here with a functioning component
renames RemoveDeleteModal to RemoveModal as well as addressing all the points mentioned in the issue

sandbox to be created when this is merged since there's a component name change


fix: Update configuration operator daemon image name

Pull Request Test Coverage Report for Build<PHONE_NUMBER>9
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.3%) to 60.309%

Totals

Change from base Build<PHONE_NUMBER>6:
0.3%

Covered Lines:
1641

Relevant Lines:
2721

💛  - Coveralls


🎮 Game Request
In Radial, players have to move their (frail) character around the circle to avoid the falling elemental blocks.
On desktop, use the right and left arrow keys to move around the center circle. On mobile, tap and hold the left and right sides of the screen to move around the circle.
Point down the features
The longer you survive, the larger your score is!
Select program in which you are contributing
GSSoC23
Code of Conduct

[X] I follow CONTRIBUTING GUIDELINE of this project.

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

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


Make methods treeshake-able

I noticed all static methods are put on the S function.
I think it would pretty easy to make these separate exports instead and your consumers would get the benefit of being able to tree-shake some of the lesser used functions.

Yeah, exactly, this is a side-effect of making the main S export a function and attaching others to it, rather than S being a module.  I've gone both ways on whether that was originally a good idea or not.   The main issue that has kept things the way they are is that fixing it would be a breaking change for all S code.  All usages of S(() => ...) would have to switch to something like S.comp(() => ...).  So far, it hasn't felt like the small size savings are worth breaking everybody's code.

Ah yes, makes sense. Might indeed not be worth it then.

What if we export S as the defsult export and make all others as a named one. I can make a PR if needed.


Keycloak image is updated

Closing this PR . Need to build custom docker image and use that image in stack file as mentioned here https://github.com/datakaveri/iudx-deployment/pull/133#issuecomment-1170752794.


.add_unreliable_channel(), .add_reliable_channel(), and .add_ggrs_channel()

We could add .add_unreliable_channel(), .add_reliable_channel(), and .add_ggrs_channel() (feature-locked)
as sugar for .add_channel(ChannelConfig::reliable()), etc.

I originally left this out because we would need a copy for NoChannels - > Single Channel, Single Channel - > Multiple channels and multiple channels - > multiple channels. But no reason we couldn't, just a lot of duplicate code


Prepare to release 5.4.2.

Codecov Report

Merging #210 into 5.4 will increase coverage by <.01%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##                5.4     #210      +/-   ##
============================================
+ Coverage     71.27%   71.27%   +<.01%
+ Complexity      957      956       -1
============================================
  Files           341      341
  Lines         14213    14213
  Branches       2286     2286
============================================
+ Hits          10130    10131       +1
- Misses         2887     2888       +1
+ Partials       1196     1194       -2

Impacted Files
Coverage Δ
Complexity Δ

.../main/java/com/alipay/sofa/rpc/common/Version.java
100% <ø> (ø)
0 <0> (ø)
:arrow_down:

...m/alipay/sofa/rpc/module/FaultToleranceModule.java
66.66% <0%> (-26.67%)
4% <0%> (-1%)

.../sofa/rpc/bootstrap/DefaultClientProxyInvoker.java
87.09% <0%> (-1.62%)
0% <0%> (ø)

.../sofa/rpc/registry/zk/ZookeeperRegistryHelper.java
75% <0%> (-1.43%)
0% <0%> (ø)

...ay/sofa/rpc/client/AllConnectConnectionHolder.java
62.84% <0%> (-0.28%)
0% <0%> (ø)

...com/alipay/sofa/rpc/context/RpcRuntimeContext.java
90.24% <0%> (+1.21%)
0% <0%> (ø)
:arrow_down:

...lipay/sofa/rpc/message/AbstractResponseFuture.java
55.35% <0%> (+1.78%)
0% <0%> (ø)
:arrow_down:

.../main/java/com/alipay/sofa/rpc/tracer/Tracers.java
42.3% <0%> (+2.56%)
0% <0%> (ø)
:arrow_down:

...pay/sofa/rpc/transport/ClientTransportFactory.java
78.46% <0%> (+6.15%)
0% <0%> (ø)
:arrow_down:

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 95f752b...9fa533a. Read the comment docs.


Thermal interference between two borefields

Dear @MassimoCimmino
I have two somewhat related questions about what's (currently) possible with pygfunction.

Given a certain borefield, you can calculate the g-function of this borefield with pygfunction. However, I am wondering if it is possible to calculate the g-function for a point (x, y) outside of the borefield. Namely, image you have a constant heat extraction out of a certain borefield and you want to plot the temperature evolution over time from a location (x, y) outside of the borefield, can you do this with pygfunction?
Image you have two neighbouring houses each with 2 boreholes drilled in their garden. We can calculate the temperature response of each pair of boreholes, but since these two houses are close to each other, there is a thermal interference between both. Is it possible to determine these interference (namely the difference between the thermal response of one pair of boreholes without its neighbour and the thermal response of the boreholes given the neighbouring pair).

Best regards,
@wouterpeere

Re: 2 - I will point out a paper that we published a few years back that proposes some methods for doing this. @MassimoCimmino may have a more elegant solution, though.
Mitchell_et_al_2020_WGC_Cross_g_functions.pdf

No.1
There is nothing currently implemented. However, the heat extraction rates of all segments are saved when using the option 'profiles': True. The weigthed sum of the FLS of all segments onto a location would give the thermal response factor related to the temperature at that location. I have recently received requests for such a feature by email. This is a topic for another issue.
No.2
The method of @mitchute is what I was going to recommend. Thank you @mitchute.
It should be noted that the cross-g-functions calculated this way would be calculated using the 'UHTR' boundary condition. The 'UBWT' condition could be calculated using the heat extraction rates of the segments calculated when solving the system of equations (which are saved with the option 'profiles': True).
The following snippet reproduces fig.2 of the paper with pygfunction and the 'equivalent' solver:
from matplotlib import pyplot as plt
import numpy as np

import pygfunction as gt

def main():
    # -------------------------------------------------------------------------
    # Simulation parameters
    # -------------------------------------------------------------------------

    # Borehole dimensions
    D = 1.0             # Borehole buried depth (m)
    H = 100.0           # Borehole length (m)
    r_b = 0.05          # Borehole radius (m)
    B = 5.0             # Borehole spacing (m)

    # Thermal properties
    alpha = 1.0e-6      # Ground thermal diffusivity (m2/s)

    # g-Function calculation options
    options = {'nSegments': 1,
               'segment_ratios': None,
               'disp': True,
               'kClusters': 0}

    # Geometrically expanding time vector.
    dt = 100*3600.                  # Time step
    tmax = 3000. * 8760. * 3600.    # Maximum time
    Nt = 25                         # Number of time steps
    ts = H**2/(9.*alpha)            # Bore field characteristic time
    time = gt.utilities.time_geometric(dt, tmax, Nt)
    lntts = np.log(time/ts)

    # -------------------------------------------------------------------------
    # Borehole fields
    # -------------------------------------------------------------------------

    # Borefield A
    N_1 = 2
    N_2 = 1
    field_A = gt.boreholes.rectangle_field(N_1, N_2, B, B, H, D, r_b)
    # Move field 5m north
    for b in field_A: b.y = b.y + B

    # Borefield B
    N_1 = 2
    N_2 = 1
    field_B = gt.boreholes.rectangle_field(N_1, N_2, B, B, H, D, r_b)
    # Slightly change the radius of the boreholes. This tricks pygfunction
    # into classifying the boreholes of fields A and B into different groups
    for b in field_B: b.r_b = b.r_b * 1.0001

    # Borefield C
    N_1 = 2
    N_2 = 2
    field_C = gt.boreholes.rectangle_field(N_1, N_2, B, B, H, D, r_b)

    # -------------------------------------------------------------------------
    # Evaluate g-functions for field C
    # -------------------------------------------------------------------------
    gfunc_C = gt.gfunction.gFunction(
        field_C, alpha, time=time, options=options, method='equivalent', boundary_condition='UHTR')

    # -------------------------------------------------------------------------
    # Evaluate self- and cross- g-functions for fields A and B
    # -------------------------------------------------------------------------
    field_AB = field_A + field_B
    gfunc_AB = gt.gfunction.gFunction(
        field_AB, alpha, options=options, method='equivalent')
    # Number of equivalent boreholes in fields A and B
    nEqBoreholes_A = np.max(gfunc_AB.solver.clusters[:len(field_A)]) + 1
    nEqBoreholes_B = gfunc_AB.solver.nEqBoreholes - nEqBoreholes_A
    # Number of boreholes represented by each equivalent borehole in each group
    nBoreholes_A = np.array([b.nBoreholes for b in gfunc_AB.solver.boreholes[:nEqBoreholes_A]])
    nBoreholes_B = np.array([b.nBoreholes for b in gfunc_AB.solver.boreholes[nEqBoreholes_A:nEqBoreholes_A+nEqBoreholes_B]])
    # Matrix of thermal response factors (eq. borehole to eq. borehole)
    h_AB = gfunc_AB.solver.thermal_response_factors(time, alpha).y[:,:,1:]
    # Weighted sum of the borehole-to-borehole thermal response factors
    g_AA = np.zeros(Nt)
    g_AB = np.zeros(Nt)
    g_BA = np.zeros(Nt)
    g_BB = np.zeros(Nt)
    for k in range(Nt):
        g_AA[k] = np.sum(nBoreholes_A @ h_AB[:nEqBoreholes_A,:nEqBoreholes_A,k]) / np.sum(nBoreholes_A)
        g_AB[k] = np.sum(nBoreholes_A @ h_AB[:nEqBoreholes_A,nEqBoreholes_A:nEqBoreholes_A+nEqBoreholes_B,k]) / np.sum(nBoreholes_A)
        g_BA[k] = np.sum(nBoreholes_B @ h_AB[nEqBoreholes_A:nEqBoreholes_A+nEqBoreholes_B,:nEqBoreholes_A,k]) / np.sum(nBoreholes_B)
        g_BB[k] = np.sum(nBoreholes_B @ h_AB[nEqBoreholes_A:nEqBoreholes_A+nEqBoreholes_B,nEqBoreholes_A:nEqBoreholes_A+nEqBoreholes_B,k]) / np.sum(nBoreholes_B)

    # -------------------------------------------------------------------------
    # Plot g-functions
    # -------------------------------------------------------------------------
    ax = gfunc_C.visualize_g_function().axes[0]
    ax.plot(lntts, g_AA)
    ax.plot(lntts, g_AB)
    ax.plot(lntts, g_AA + g_AB, 'ks')
    ax.legend(['C->C (Ref.)', 'A->A', 'B->A', 'A->A + B->A'])
    plt.tight_layout()

if __name__ == '__main__':
    main()

The method assumes, like the 'UHTR' condition, that all boreholes extract heat at the same rate, uniformly along their lengths. When computing g-functions with the 'UBWT' condition, the heat transfer rate is variable along the boreholes, from borehole to borehole, and varies with time. This could be considered in the calculation of the cross-g-functions, since we already evaluate the heat tranfer rates of all segments.
One thing to note is that the impact of the choice of boundary condition is most prominent inside the borehole field. If the two fields are not too close, the choice of boundary condition shouldn't be too significant (intuitively, this remains to be shown). Another thing to keep in mind is that such a 'UBWT' condition is not necessarily more accurate than the 'UHTR' condition for cross-g-functions. They would need to both be compared to a more detailed model for validation.
I am working on the g-function object for #215 and this issue could be incorporated.

Dear @MassimoCimmino ,
thank you very much for the impressive work on the g-functions! I like very much how you compute them.
I wondered whether you had some updates on this question. I would like to simulate two circuits to use some boreholes for heat extraction and other for regeneration (heat injection).
Could you maybe tell me how I could do ?
That would be awesome.
Kind regards,
Sébastien

I just wanted to mention another paper on this topic (Letizia Fascì et al., 2021). It is available here: https://www.sciencedirect.com/science/article/pii/S1359431121006785

Thanks @wouterpeere. This is useful.
@smo999 - Somehow I had missed a notification for your comment. This is still far from being implemented but I will look into it after #215. The reason for the delay is that we try to fully integrate to new features to the existing ones in pygfunction. In the case of the present issue, it means that we need to differentiate between boundary conditions of uniform heat extraction rates ('UHTR'), uniform borehole wall temperature ('UBWT'), and mixed inlet fluid conditions ('MIFT'). The first two are at least partially solved in Mitchell et al. (2020) and Fascì et al. (2021). The last one could be obtained by an extension of the solution to #215.
This, like some other "feature" issues, is as much of a research challenge than an implementation challenge and is the reason why we have a fairly long development time.
In the meantime, the solution would depend on the specific geometry of your system. My script above could be use to calculate cross-g-functions based on the work of Mitchell et al. (2020). There is also the possibility of using the geothermal model that should be soon merged into the Modelica Buildings library : https://github.com/lbl-srg/modelica-buildings/pull/3812

@MassimoCimmino For my current research, I need to calculate the temperature in the ground at a distance x from the center of the borefield. In the comment you mentioned above, you stated, "The weighted sum of the FLS of all segments onto a location would give the thermal response factor related to the temperature at that location." Could you provide more details on how to sum the FLS of all segments at a predefined location?


Issue #SB-5905 feat: Reviewer should be able to see the ownership and credits

@raghuv45  reviewed please fix the basic issues and resolve the comments


Cosmic rays

this is naive, and we can replace it.

TODO before merging, integrate with the new SUTR?

merged into faster_wood


How to add support for IN865-867

I want to use it for India and need to add 865Mhz support.
How can I achieve it with this version.
IN865-867
Uplink:

865.0625 - SF7BW125 to SF12BW125
865.4025 - SF7BW125 to SF12BW125
865.9850 - SF7BW125 to SF12BW125
Downlink:

Uplink channels 1-3 (RX1)
866.550 - SF10BW125 (RX2)

Hi,
Multi-Region support is difficult, especially when there are no sensors available close by.
You can add the frequencies to the loramodem.h file, and if they work please send them to me so that we can adapt the source code and documentation.
What are the frequencies used by India? What are the spreading factors for sending and receiving etc. or are there only three?
regards,
Maarten
PS. I will add something like this to the initial code...
#elif defined(IN865_867)
vector freqs [] = {
{ 865062500, 125, 7, 12, 865062500, 125,  7, 12},			// And RX1
{ 865402500, 125, 7, 12, 865402500, 125,  7, 12},
{ 865985000, 125, 7, 12, 865985000, 125,  7, 12},
{         0,   0, 0,  0, 866550000, 125, 10, 10}			// RX2
};

Done

I'll try this and will provide feedback here.
Thanks a lot!

More information about Indian LoRa can be found at http://www.ensembletech.in/lora-frequency-bands-india/

hi! is it possible to use 433mhz frequency? Another thing, aliexpress lists uart based modules https://www.aliexpress.com/item/32802241921.html will this library support these? it will save lots of pins and timings if it does making it easier for hobbyists..

I did add EU433 to the server files in "configGway.h". It works, but since 433 is not yet standardized in Europe the frequencies are my definitions for the moment. But you can add your own.

The frequencies used in the link are Loriots and not The Things Network. In fact they seem to differ a lot. I have implemented thos of the Things Network, but you can add you own if you want in the "loraModem.h" file.

Did you get it to work?

not yet.
Im waiting for my 865Mhz  hardware to arrive.
Will update once I test.

Update?

currently your latest version is not working with ESP32 and ESP8266.
It compiles but crashes after boot and keeps on restarting. hence unable to test my new hardware with it.

I see in your other message that the module crashes after upload. What loraModem.h settings are your using?
Any major changes to configGway.h and/or configNode.h
Maarten

I uploaded my latest version to both a ESP8266 and a ESP32 gateway with the India settings as in loraModem.h.
I cannot see if the gateway works as I do not have Indian nodes configured.
However, the code does not cause ANY panics on both types of hardware.

Hi thanks for update.
I have not made nay major changes.
Now as I have proper RFM95 module with SX1276, I uploaded code as it is.
Just changes settings for WiFimnager.
with WiFimnager enabled and disabled in both case i get crash.

So what board do you use? You cannot choose ESP8266 or ESP32 as you like, must suit the hardware. What _PIN_OUT did you select?
Maarten

I did add EU433 to the server files in "configGway.h". It works, but since 433 is not yet standardized in Europe the frequencies are my definitions for the moment. But you can add your own.

hi, just to let you know, i downloaded the latest v (i think 6.4 or something) and eu433 seems to work by just using #define otaa doesn't seem to work for know for me. i'm using euro 868 server because in the ttn, i don't find anyway to use 433mhz. thanks for the update. i use mcci lmic (modified for eu433 manually)

Closed


iOS 8

If you are still maintaining it, I would be happy to send a pull request for iOS 8 with the changes so the example app works

Thank you for your comment!
I am glad to receive pull request (^^)


On Compact Mode, Rose Pine accent color doesn't affect the tab sidebar

Compact mode

Non compact mode for comparison

That's controlled by --zen-colors-tertiary
I've made this for myself for the Rose Piné Theme (main)
@-moz-document url-prefix("chrome:") {
      :root {
            --zen-colors-primary: #191724 !important;
            --zen-colors-secondary: #1f1d2e !important;
            --zen-colors-tertiary: #26233a !important;
            --zen-colors-border: #524f67 !important;
            --zen-dialog-background: #26233a !important;
            --toolbar-field-background-color: #191724 !important;
            --toolbar-field-focus-background-color: #191724 !important;
      }
}

Change the colors to your liking

I've pushed an update, thank you for your help.


Push a stream to several dynamic urls

Hello to all !
I'm opening this issue because I have a problem that I've been thinking about for some time and for which I can't find a solution.
CONTEXT :
I have a customer who wants a specific functionality which is the following : a user must be able to enter a url and a stream key dynamically on the site and when he starts a stream, this stream must be redirected to the url and the key that he specified dynamically in the application. So far so good, as I am able to do this by redirecting the stream with a php redirect at the on_publish event.
PROBLEM :
The client wants the user to be able to enter multiple URLs where the stream should be redirected (for example a twitch url and a youtube url with associated stream keys) and this is not feasible in php, as you can only do one redirect.
That's why I'm asking for your help ! Do you have an idea of how I could do this ?
Thank you for reading. If you need more details or if you have any questions, don't hesitate to ask me.
Best regards,
Matéo

Have the identical question. Currently on_publish can receive only 1 destination from Location header, but as I see nothing prevents it from receiving several destinations since we already can declare multiple push blocks.
Any ideas how to bypass this restriction?

Same here ? No solution for it ?

Same problem +1.


GIT integration to create Issue(s) with Application Repo (Enhancement)

This issue has been migrated from :
https://github.com/mike-goodwin/owasp-threat-dragon/issues/52
and was opened by @xolian :
Ability to create arbitrary GIT Issues in github.com or GHE from the GIT Url of the application/code you are Threat Modeling.

Closing this as a Won't Do
It is unlikely that Threat Dragon will integrate with github to be able to raise github issues from within the tool
Threat Dragon is meant to be lightweight, and so if this is required then Microsoft TMT is probably more suitable


inputsourceschange event in XRSession isn't dispatched

Hi,
I created a quick mockup about the issue in the title, you can find it here: https://vrtual.house/development/webxr-polyfill-test/
The problem:
I cannot make any interaction on the scene, when the WebXR flag is disabled, and the polyfill is used. In three.js, there are some events for interaction, like selectstart, and selectend, but they're not dispatched when the polyfill is used, only when the flag is set to enabled.
I guess it has something to do with the fact that the inputsourceschange isn't fired either when the polyfill is used. (You can find the lines in question starting from line 21752 in the three.js r96 build):

Looks like this is not yet implemented in the polyfill. I see inputsourceschange in the explainer, but not the actual spec -- @toji should this be implemented here?

So this event should be added to the spec, submitted: https://github.com/immersive-web/webxr/pull/395

I want to go with inputsourceschange event support for #81

I'm thinking how to implement. As I mentioned in #81, inputSources are set up in animation frame (more precisely, onFrameStart()). So, perhaps easiest solution may be replacing
this[PRIVATE].device.onFrameStart(this[PRIVATE].id);
callback(now(), this[PRIVATE].frame);
this[PRIVATE].device.onFrameEnd(this[PRIVATE].id);

https://github.com/immersive-web/webxr-polyfill/blob/master/src/api/XRSession.js#L295-L297
with something like this
this[PRIVATE].device.onFrameStart(this[PRIVATE].id);

const newInputSources = this.inputSources;
const previousInputSources = this[PRIVATE].previousInputSources;

// Here, compare inputSources with previous frame's ones
// and fire inputsourceschange event if different.

this[PRIVATE].previousInputSources = newInputSources;

callback(now(), this[PRIVATE].frame);
this[PRIVATE].device.onFrameEnd(this[PRIVATE].id);

What do you think?

SGTM!

I think this issue can be closed because of #91

Agreed.


Fix push notification issue on new indoor outdoor camera device

Fixed

Fix push notification issue on new device type (INDOOR_OUTDOOR_CAMERA_1080P, INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT, INDOOR_OUTDOOR_CAMERA_2K)
Typo fix comma instead of semicolon

I've someone on the plugin who raised the issue I was able to reproduce it on my lab. Waiting is feedback if he is using the same INDOOR device or SOLO one. If it's SOLO one we might need to add them as well.
Raw push message received {
  id: '5F8C*******',
  from: '348804314802',
  to: 'eHGi2BdnGOIxyPDNvMdqCK',
  category: 'com.oceanwing.battery.cam',
  persistentId: '0:1629385088939439%0d2a775cf9fd7ecd',
  ttl: 3600,
  sent: '1629385088936',
  payload: {
    device_sn: '',
    payload: {
      msg_type: 18,
      event_type: 3102,
      device_sn: 'T8442P************',
      name: 'Garage',
      channel: 0,
      cipher: 48,
      session_id: '20210819_16****',
      pic_url: 'https://security-app-eu.eufylife.com/v1/s/g/************',
      create_time:<PHONE_NUMBER>859,
      trigger_time:<PHONE_NUMBER>839,
      file_path: '/media/mmcblk0p1/Camera00/20210819********.dat',
      push_count: 1,
      notification_style: 3,
      storage_type: 3,
      unique_id: 'e6f8783df21258f37*************9b5e4'
    },
    station_sn: 'T8442P************',',
    'google.c.sender.id': '348804******',
    title: 'Outdoor Cam',
    type: '46',
    push_time: '1629385088927',
    content: 'Someone has been spotted',
    event_time: '1629385087859'
  }
}

Got the confirmation. Same device than me.

@lenoxys Could you please do the pull requests for the develop branch.
Thanks!


[Task]: Validate recent profiler related changes in windows

Description
$title
Describe your task(s)
No response
Related area
-> Runtime
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response

Above issue happens in windows due to an invalidate way of getting absolute path from Path.toUri() method. Fixed with the PR https://github.com/ballerina-platform/ballerina-lang/pull/41997


Support for Arrays?

Can I do this or do i need to iterate over my collection to call boxer.ship

Boxer.ship(:course, Course.all)
NoMethodError: undefined method `title' for #<Array:0x007f8efb555528>
	from (irb):7:in `block (2 levels) in irb_binding'
	from /Users/schneems/.rvm/gems/ruby-1.9.2-p290/gems/boxer-1.0.2/lib/boxer.rb:78:in `call'
	from /Users/schneems/.rvm/gems/ruby-1.9.2-p290/gems/boxer-1.0.2/lib/boxer.rb:78:in `block in ship'
	from /Users/schneems/.rvm/gems/ruby-1.9.2-p290/gems/boxer-1.0.2/lib/boxer.rb:77:in `each'
	from /Users/schneems/.rvm/gems/ruby-1.9.2-p290/gems/boxer-1.0.2/lib/boxer.rb:77:in `inject'
	from /Users/schneems/.rvm/gems/ruby-1.9.2-p290/gems/boxer-1.0.2/lib/boxer.rb:77:in `ship'
	from /Users/schneems/.rvm/gems/ruby-1.9.2-p290/gems/boxer-1.0.2/lib/boxer.rb:45:in `ship'
	from (irb):40
	from /Users/schneems/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.9/lib/rails/commands/console.rb:44:in `start'
	from /Users/schneems/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.9/lib/rails/commands/console.rb:8:in `start'
	from /Users/schneems/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.9/lib/rails/commands.rb:23:in `<top (required)>'
	from script/rails:6:in `require'
	from script/rails:6:in `<main>'

Boxer.ship(:course, Course.first)
 => {:name=>"Example Name", :price=>7.11}

If its not supported => feature suggestion. If it is supported, any clue what i'm doing wrong?

I think I'm going to turn this into #2.


fix(Popup.list): When Popup.list is set to subtitle, it cannot be dis…

Description
When Popup.list is set to subtitle, it cannot be displayed normally.
Type of change
Please select the relevant option.

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Codecov Report

Merging #125 (bf0670c) into master (2e8e09f) will decrease coverage by 0.04%.
The diff coverage is 71.42%.

@@            Coverage Diff             @@
##           master     #125      +/-   ##
==========================================
- Coverage   90.77%   90.73%   -0.05%
==========================================
  Files         155      155
  Lines        7375     7380       +5
  Branches     2026     2026
==========================================
+ Hits         6695     6696       +1
- Misses        559      563       +4
  Partials      121      121

Impacted Files
Coverage Δ

...ckages/tuya-panel-kit/src/components/popup/list.js
74.44% <71.42%> (-3.21%)
:arrow_down:

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 2e8e09f...bf0670c. Read the comment docs.


MFW-1160: Update bit_slice function for Magic Firewall.

We should also modify https://developers.cloudflare.com/ruleset-engine/rules-language/functions/#magic-firewall-functions.
Can we link to this new doc or is there another approach here that's better?

We should also modify https://developers.cloudflare.com/ruleset-engine/rules-language/functions/#magic-firewall-functions.
Can we link to this new doc or is there another approach here that's better?

We should update that page as well with the revised content

We should also modify https://developers.cloudflare.com/ruleset-engine/rules-language/functions/#magic-firewall-functions.
Can we link to this new doc or is there another approach here that's better?

We should update that page as well with the revised content

If we're keeping the information in both pages, maybe we can move the content into a partial so that there's a single source for the content?

We should also modify https://developers.cloudflare.com/ruleset-engine/rules-language/functions/#magic-firewall-functions.
Can we link to this new doc or is there another approach here that's better?

We should update that page as well with the revised content

If we're keeping the information in both pages, maybe we can move the content into a partial so that there's a single source for the content?

I can create a partial file for this, whenever this is merged and ready


Relaxed Json parsing

It would be nice to be able to parse URLs like this without having to do anything:
http://finance.google.com/finance/info?q=NASDAQ%3AMSFT
So that's good JSON except for the first 2 chars, so it would be nice to have the parser able to find opening delimiter of JSON data and just forget about everything that goes after the last closing one

I think it's beyond the scope of this library to provide this behavior by default. You can always use a custom JsonProvider to parse data like that.

We used to have support for this but removed it.


Add HasResult to Future

This will facilitate use cases where you want to check for a Future result and handle the situation where its not ready yet instead of blocking.

Raven
Number of Findings: 0

+1

QA review can be found here: https://jira.atl.workiva.net/browse/RM-16341


Direct output to mounted volume in output-filer

Hey,
I was looking for an answer to this question and was toying around with different things but I did not get it to work. I have a volume mounted at /transfer and would like output-filer to move the generated files there. The files I am interested are located in /tes. I modified the example output.json but I am clearly doing something wrong:
{
  "description": "Test",
  "outputs": [
    {
      "description": "Test",
      "path": "/tes/file1.txt",
      "type": "FILE",
      "url": "file:///transfer/file1.txt"
    },
    {
      "description": "Test",
      "path": "/tes/file2.txt",
      "type": "FILE",
      "url": "file:///transfer/file2.txt"
    }
  ],
  "executors": [
    {
      "image": "alpine",
      "command": [
        "echo",
        "This goes to file1"
      ],
      "stdout": "/tes/file1.txt"
    },
    {
      "image": "alpine",
      "command": [
        "sh",
        "-c",
        "echo 'This goes to file2' > /tes/file2.txt"
      ]
    }
  ]
}

The output-filer checks the url-field and complains that it should be a descendant /tmp but I don't want a hostpath there. I want it to transfer the files from /tes to /transfer. As I said, the volume is successfully mounted and I can write manually to the folder. Any input is highly appreciated.

The shared file system solution allows to mount the shared storage at different paths at workflow manager side and at TESK side.  There are 2 environment variables of controlling the behaviour:
- name: TESK_API_TASKMASTER_ENVIRONMENT_HOST_BASE_PATH
          value: /tmp

        - name: TESK_API_TASKMASTER_ENVIRONMENT_CONTAINER_BASE_PATH
          value: /transfer

The TESK_API_TASKMASTER_ENVIRONMENT_HOST_BASE_PATH is on the workflow manager side. The workflow manager produces the input and output paths in TES requests. The solution will work as long as the workflow manager uses paths relative to the shared PVC mount root (in this case /tmp). For some workflow managers it is a current directory of its execution.
TESK mounts the shared  PVC under  TESK_API_TASKMASTER_ENVIRONMENT_CONTAINER_BASE_PATH, but expects paths relative to TESK_API_TASKMASTER_ENVIRONMENT_HOST_BASE_PATH and translates them internally.
In you case, you can either change the TESK_API_TASKMASTER_ENVIRONMENT_HOST_BASE_PATH to /transfer or change the paths in the example to relative to /tmp.


data services - remaining files

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