index.html changes not recognized

When I change the index.html file the changes are not there when I run the project. For example I changed the text from "Loading..." to "Loading For Test..." but I still see the "Loading..." text no matter what i did (e.g. clear/disable cache, clean/rebuild project, exit IIS Express worker process) when I ran the project.
However, after some messing around with it I think I have it so it does respond to a clean/rebuild of the project before a run.
Not sure if anyone else is seeing this or its just expected at this point in the preview... I may have missed this mentioned in the docs somewhere....
--Here is what I am working with in case that matters....
Running latest VS 2017 15.7.0 preview
Using Windows Server 2016 (Azure VS 2017 preview)

See: https://github.com/aspnet/Blazor/issues/355

Thanks!!!


Added Curator and Spark example

Description
Adds a simple example to demonstrate how Apache Spark can interoperate with NeMo Curator modules using intermediate parquet files.
Usage
Jupyter notebook tutorial
Checklist

[X] I am familiar with the Contributing Guide.
[ ] New or Existing tests cover these changes.
[ ] The documentation is up to date with these changes.

As discussed, moving this example to docs with a new PR https://github.com/NVIDIA/NeMo-Curator/pull/261


Error when starting lobby

Sometimes i get this error when starting a lobby, and when accessing the terminal, the "typing field" is like invisble, you cant see anything you are typing and get stuck on the welcome screen, but i tried Flash 1 and i heard the noise buying
Remember it does not happen always, i feel like its random, and often after deleting you Lethal folder in %appdata% (might be linked to to the screen where you have to type your favorite animal?), but it also happen on a save where i had already typed my favorite animal so idk
Modlist: 018d446f-3bb5-547c-c7b2-4827310fea14
SEND TO DARMUH cant seeTerminalTyping.log

Please let me know if this issue persists in version 3.0.0
I've finished a complete mod rework that should hopefully have improved compatibility with various mods


Assign result

Description

Fixed bug where clicking on type selection button the first time leads to error.
Changes made

Assigned to the result variable before returning to fix NullReferenceException on the first click.

Ah, I had forgotten it. Thanks!


Update import package to add the action to QD, TGV, GN items

When this project is upgraded, we should add item actions to the Query Definition, Tree Grid View, and Graph Navigation ItemTypes.

Resolved by PR #4


Start tracking user actions in google analytics

Developer Story
As a developer I want to see which actions my users take.
Acceptance Criteria (WIP)
An action in GA in generated when:
Map actions

[x] A user initiates a map search
[x] A user clicks a state filter
[x] A user clicks an equipment filter
[x] A user resets the map
[x] A user clicks on "use my location"

i18n

[x] A user changes country
[x] A user changes language

Taking this issue on

Closing this issue as the major events are covered. If anyone wants more GA events please open a new issue


Flex grid not working on iOS 8

Pretty much like #22223

Operating system and version: iOS
Browser and version: iOS 8, Safari
JSBIN: http://output.jsbin.com/xabirulimi

Expected (Google Chrome emulator)

Current

And this is the Bootstrap website:

Documentation mentions you support the latest stable versions of major browsers––I'm not sure if Safari on iOS 8 is included among these.

@mdo: is iOS 8 supposed to be supported?

@mdo: from our migration docs:

Dropped IE8, IE9, and iOS 6 support. v4 is now only IE10+ and iOS 7+. For sites needing either of those, use v3.

So we need to fix this situation.
What should the minimum iOS version be?

I don't think flexbox is supported properly in iOS 8 Safari and you need vendor prefixes, so makes more sense to start at iOS 9.3 Safari anyway for reasonable flexbox support.

I think actually we'll want to pass on this and update our docs to be iOS 9+. iOS 8 is 1.19% of the iPhone market share according to https://data.apteligent.com/ios/. The move to iOS 9+ came in #22943 last June.

In fact, I don't think we list our current browserslist anywhere. Maybe we could load it from package.json on build time, but I'm not sure it will work since package.json isn't in the _data folder.
Anyway, your call. I agree that iOS 8 is old plus anyone can just use autoprefixer.

iOS >=7 in my browserslist did the trick for me. Regardless of if you guys choose to include these prefixes in the baked css for bootstrap 4, perhaps some more documentation is in order. There's some confusion out there as it relates to market presence of IOS<=8. Browserstack, for some reason, includes ios8 instances as high priorities to test (https://www.browserstack.com/test-on-the-right-mobile-devices). So, web devs testing using browserstack will be testing bootstrap 4 in browserstack in ios8 quite a bit, I'd imagine, (...and pulling their hair out :)).

@mdo: What do you think about this? If you still want to drop this, please close it :)

I encountered the same problem on my iPhone6 plus, iOS8.2. The solution is to use prefixfree.js (https://github.com/LeaVerou/prefixfree), it can make flex-wrap work correctly with "-webkit" prefixes.


feat: Implement expression projection evaluator.

This evaluator projects bound predicates using partition transforms.

I’ll work on this

Duplicate with #152


Use in the client side using react

Hi,
It is possible to use Danfo.js in the client side through react js?
Thanks

Hi,
It is possible to use Danfo.js in the client side through react js?
Thanks

Yes, it's definitely possible. Just as you would import and use any other Javascript package

Ok, thank you for the answer. Which package should I install, because with danfojs-node it does not run, an error shows up (I assume it needs node to run). With "npm install danfojs" the react app does run but when I create a dataframe with a json array it throws an error saying the param is undefined (and is not). Maybe I'm using the wrong package or I need to install other packages. Again, thanks for your work 👍

I was importing wrong the package. In react I use this "import { DataFrame } from "danfojs/danfojs/src/core/frame" and it works. If there is another way to do the import and work with the dataframe object let me know. Thanks for your help!


False positive on interface method

Hi, this one is a little complicated but it has been flagged on a private code-base of ours. I've recreated a version of it below:
package main

import "fmt"

type T struct {
	I interface {
		Foo()
	}
}

func (r *T) f() {
	a := t{I: r.I}
	a.f()
}

type t struct {
	I interface {
		Foo()
	}
}

func (r *t) f() {
	r.I.Foo()
}

type Fooer struct{}

func (Fooer) Foo() { fmt.Println("hello") }

func main() {
	a := T{I: Fooer{}}
	a.f()
}

⇒  go run main.go
hello

⇒  unused .
/Users/edd/Development/golang/src/github.com/e-dard/scratch/unused/main.go:7:3: func Foo is unused (U1000)

So it thinks that T.I.Foo is unused, but it's not, because it's used via the interface I being assigned to t.

Thanks for the report. This might be a duplicate of #40, or at least related to it. Will need to investigate.

Fixed.


How to run the demo sample?

I compiled the demo sample (https://github.com/aspose-pdf/Aspose.PDF-for-.NET/tree/master/Demos) but I cannot run it as it has no default page. According to the document as below, there should have a Default page. I also tried to create a web form based on the mater page file "site.Master" but it shows blank. Would anyone know how to run this sample?

How to run

Clone the repository
Open the solution file in the latest version of Microsoft Visual Studio.
Set Default as start page
Build the solution

Hello, @sang2357. We have published new instruction for demo sample. Take a look on windows instructions we added: https://github.com/aspose-pdf/Aspose.PDF-for-.NET/blob/master/Demos/README.md

Instruction is updated, since there's no new questions for a year long period issue considered as closed


Calibration mode

Is your feature request related to a problem? Please describe.
Calibration mode to keep battery healthy, like AlDente feature exists but more automatized like exists discharge automatically for me did everything and i'm happy
Describe the solution you'd like
Describe alternatives you've considered
AlDente Calibration feature?
Additional context
OS: macOS 12.6.3 (Apple Silicon)

What do you mean with a calibration feature?

@actuallymentor AlDente like Calibration mode. Like every two week automatically do steps: 100% charge, 20% discharge, then back to set value like 80%

I see. Are you asking for the GUI or CLI?

@actuallymentor Any way. I can use CLI or GUI which is will be available first

Can't this be a simple cron job thing?
Check  last calibration timestamp , discharge if timstamp + 14 days < now then set semaphore -1
If sempahore -1, discharge if charge >= 20%
if charge < 20% set sempahore
If charge sempahore 1, charge until 100%
if charge is 100% set semaphore 0 and set new timestamp
This nice tool already has all the features needed, just need to glue them with some cron?
That's what I woud do under linux/bsd ... but I am quite new to macos, I don't know how lauchnd works yet :D

I am not a new to macOS but still don't know how launchd works.
i know, there AlDente but two tools with similar features will be cool and uses has a tool to choose.
Maybe with a Account + licensing, i would pay as AlDente price but without limit to device count, only account or at least 5-6 devices per account for personal and up-to 7-10 devices for family plan :)

I have been attempting this but the issue https://github.com/actuallymentor/battery/issues/73#issue-1585174473 is causing problems.
Here's my code so far to implement a calibration in aldente https://github.com/jpjenkins/actuallymentor-batteryCalibrationScript


create a chaincode image if not found

Pass the chaincode docker targz extracted from deploy transaction to launch of chaincode. The targz will be used to create the image if not found.
Description
We have the targz at hand already quite conveniently. The "Start" interface is modified to take this is as a parameter. If the start of a container fails with ErrNoSuchImage, the targz is ued to create the image and retry start. As this happens under the aegis of "Start" it is atomic to the "Start" operation.
Motivation and Context
There are few legitimate situations where a deployed chaincode's image is not found

a peer that is catching up
docker error conditions

The image is created on demand only when an invoke or query is issued against the chaincode. Note that this has no adverse performance effect under "normal" conditions.
Fixes #1603
How Has This Been Tested?
Introduced a "Destroy" command to the VM just so we could destroy an image for testing. Used this in an existing "ExecuteInvokeTransaction" test case as opposed to introducing a new test case (the chaincode test suite is quite long already). The test case deploys a chaincode, stops the container, deletes the image and then attempts to invoke. The invoke will cause the image to be created first.
Checklist:

[X] I have added a Signed-off-by
[X] Either no new documentation is required by this change, OR I added new documentation
[X] Either no new tests are required by this change, OR I added new tests
[X] I have run goimports, go vet, and golint. I have cleaned up all valid errors and warnings in code I have added or modified. These tools may generate false positives.  The goal is clean, consistent, and readable code.

Signed-off-by<EMAIL_ADDRESS>

LGTM - thanks.

Opened a new PR #1747 after resolving conflicts.


Add test for Util.hpp

Closing because this is replaced by https://github.com/PennyLaneAI/pennylane-lightning/pull/72


Update to Vite 5

Now we have warnings:
plugin 'vite-plugin-pug-transformer' uses deprecated 'enforce' option. Use 'order' option instead.
plugin 'vite-plugin-pug-transformer' uses deprecated 'transform' option. Use 'handler' option instead.

Hi, thanks for issue.
I fixed this warnings in this commit and release new version


Fix a broken link to the service account docs

Changes
The fragment in the link was broken, and the link was split
over two lines. Fixes https://github.com/tektoncd/website/issues/229
Signed-off-by: Andrea Frittoli<EMAIL_ADDRESS>/kind documentation
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:

[ ] Includes tests (if functionality changed/added)
[x] Includes docs (if user facing)
[x] Commit messages follow commit message best practices
[x] Release notes block has been filled in or deleted (only if no user facing changes)

See the contribution guide for more details.
Double check this list of stuff that's easy to miss:

If you are adding a new binary/image to the cmd dir, please update
the release Task to build and release this image.

Reviewer Notes
If API changes are included, additive changes must be approved by at least two OWNERS and backwards incompatible changes must be approved by more than 50% of the OWNERS, and they must first be added in a backwards compatible way.
Release Notes
NONE

/lgtm


Added finalize back in

finalize added back in and safety check of nativeObj != 0.

Ughhhh, didn't change modifier for nativeObj


[BUG] Attachments not saving in partner profile

Summary
Attachments on partner profiles are not saving.  Fix it.
Why
Because sometimes the banks need the documents the partners upload as part of their approval process.
Details
@cielf discovered this while debugging another issue.   Initial investigation suggests that there are some reloads that were added in when we added in the counties  that are blowing away the actual contents of the attachment so it can't be saved (per @dorner)
Followup that will be needed
Once we have this fixed, we'll need to check if there are any uploads in the period between when it started (April/May .. we'll need to check to find the exact date)
Criteria for completion

[ ] saving the attachments works
[ ] tests to demonstrate this
[ ] the counties validations still work (that's the primal source of the issue -- the reloads are there because of something funky with the validations)
[ ] PR includes note about followup required.

PR is https://github.com/rubyforgood/human-essentials/pull/3782

I will take a look at it and see if the existing PR fixes the issue.

Hey @patelkrunal31 What was the result of your investigation?

TODO onthis -- write up the very edge case (see the PR) as a more specific issue, and then close this one.

Proto issue added -- at a "this is happening in production" level, because it has in the last month.   Closing this issue.


Vite removes source code on MacOS

Describe the bug
When building browser package, I expect code from client/main.ts to be bundled inside assets, but instead Vite omits it.
Reproduction
https://github.com/vitest-dev/vitest/tree/main/packages/browser
Steps to reproduce
Only reproducible on MacOS.
pnpm install
pnpm build
cd packages/browser

Inside dist/client folder you should see html file and assets folder. I expect client/main.ts code to be inside assets/index.[hash].js file, but instead it contains only polyfill for preload.
System Info
System:
    OS: macOS 13.0
    CPU: (8) arm64 Apple M1
    Memory: 67.31 MB / 8.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.17.1 - ~/.nvm/versions/node/v16.17.1/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v16.17.1/bin/yarn
    npm: 8.15.0 - ~/.nvm/versions/node/v16.17.1/bin/npm
  Browsers:
    Chrome: 107.0.5304.110
    Firefox: 107.0
    Safari: 16.1

Used Package Manager
pnpm
Logs
No response
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
[X] The provided reproduction is a minimal reproducible example of the bug.

Because of sideEffects: false: https://github.com/vitest-dev/vitest/blob/f789776546d3b08d40ffee3cec402c1beda65a04/packages/browser/package.json#L11

@sodatea why Windows is working with Node 16.17.0? I build the package and the code is there...
D:\work\projects\userquin\GitHub\antfu\vitest>node --version
v16.17.0

D:\work\projects\userquin\GitHub\antfu\vitest>pnpm vite --version
vite/3.2.3 win32-x64 node-v16.17.0

Yes, why windows works, and why „sideEffects“ matter when bundling source code? There is no other way in Vite to import my code.

I think it's because the actual entry file passed to Rollup is index.html and it tree-shakes its dependencies?
But I don't know

whether sideEffects should be taken into account in this case. My gut tells me it should not.
why it doesn't tree-shake on Windows.

1

@sodatea I've refactored browser package structure and now it seems to be working properly: maybe Vite with rollup.config and vite.config mixing builds? I mean, we've 2 builds: rollup.config is configured to build node stuff (the entry point is node/index.ts, in the PR moved to src/node folder), and vite.config to build client stuff (in the PR, I've moved all vite stuff inside src/client folder changing the root in the build script): https://github.com/vitest-dev/vitest/pull/2367

I think it's because the actual entry file passed to Rollup is index.html and it tree-shakes its dependencies? But I don't know

whether sideEffects should be taken into account in this case. My gut tells me it should not.
why it doesn't tree-shake on Windows.
when use relative path, <script type="module" src="./client/main.ts"></script> will reproduce the bug, but it can't be triggered by absolute path <script type="module" src="/client/main.ts"></script>. By the way, this bug only appear in unix or linux.

I think it's because the actual entry file passed to Rollup is index.html and it tree-shakes its dependencies? But I don't know

whether sideEffects should be taken into account in this case. My gut tells me it should not.
why it doesn't tree-shake on Windows.

when use relative path, <script type="module" src="./client/main.ts"></script> will reproduce the bug, but it can't be triggered by absolute path <script type="module" src="/client/main.ts"></script>. By the way, this bug only appear in unix or linux.

I'm pretty sure this is a duplicate of:

https://github.com/vitejs/vite/issues/10735

@sheremet-va this seems to be fixed to me. Could you check on your side?
I thought that<EMAIL_ADDRESS>fixed this one after https://github.com/vitejs/vite/pull/12628, but I'm not able to reproduce it in 4.2.1 (maybe the fix in rollup did the trick here). Or I'm not testing it correctly 👀


AOT snapshot on arm linux

@jwinarske
Seeing as though you are investigating performance metrics for Flutter, I was wondering if you managed to test AOT binaries on the raspberry pi, using this library?

I have not.  I haven't been tracking check-ins, so not clear when this is slated to happen


null description values in dashboard json fails schema check

Issue
Copying a dashboard json creates a null value in description which requires human interaction See PR could we either convert this to string, or not fail on null? This triggers a failure of the schema check
Acceptance criteria

[ ] could we convert the null value to "" automatically for the user or even make suggestions  on the lines for them to fix?

relates > https://github.com/newrelic/newrelic-observability-packs/issues/242


[PT Run] Updated QuryBuilder unit tests

What is included in the PR:
Updated units tests for QuryBuilder

As I wrote in the main issue: Should we change the behavior? 🤔 Let's discuss in the main issue first.
Btw: If we change it like in your PR you have to update the test name too.


build error with calligra (krita)

Hello
I have an error with dev-libs/vc-1.1.0 when i try to build krita
https://bpaste.net/show/ac5dea7b4289
Hope this helps)

This looks like Krita is expecting Vc 0.7.x, and not Vc 1.x. Do you want to port Krita to newer Vc?

Thanks for answer!
No. I don't.


SVG size can be lower by running latest svgcleaner

Hi,
I've tried just a couple of icons so far but I saw some more saving for example:

gitlogo 5.54% lower
twitter 5.77% lower
flickr 12.4% lower

Maybe its a good idea just to try running svgcleaner on all of them.

Please check https://github.com/edent/SuperTinyIcons/compare/master...devrck:smallimprovement?expand=1 , since you've mentioned it I don't know if its ok.

No. That's missing aria-label="Flickr" role="img"
Accessibility is not optional.
If you can find some other space savings, we'd love to have them.

I understand, thank you for the quick response. I will close the issue then.


Pico support in Embeetle IDE: Is the file 'bs2_default_padded_checksummed.S' really needed?

1. Context
I'm cofounder of this new free microcontroller IDE:
https://embeetle.com
I'm adding support for the Raspberry Pi Pico. All projects in Embeetle are makefile-based. Therefore, I need to convert the Pi Pico sample projects from CMake-based to makefile-based.
It is not my intention to rewrite the CMake logic in a makefile. I just want to create a simple makefile-based blinky LED project that just works.
PS: I know that CMake does generate makefiles, so the idea that I want to convert a CMake-based project into a makefile-based project might seem odd at first. The point is: I want to convert it into a project with a single, central human-readable makefile that invokes all the compiler calls.
2. Situation so far
I followed this tutorial:
https://datasheets.raspberrypi.com/pico/getting-started-with-pico.pdf
I now have the folders ~/pico/pico-sdk and ~/pico/pico-examples. To create all the makefiles - in other words: to launch cmake - I do this:
$ cd pico-examples
$ mkdir build
$ cd build
$ cmake ..

To build the blinky sample project, I navigate into the folder ~/pico/pico-examples/build/blink and issue the command:
$ make VERBOSE=1;

It's this blinky sample project that I want to convert into a simple makefile-based project for our Embeetle IDE users.
3. About 'bs2_default_padded_checksummed.S'
In the verbose build output, I can see that the file bs2_default_padded_checksummed.S is passed to the linker at the very end. I figured out that this file is generated by a python script at ~pico/pico-sdk/src/rp2_common/boot_stage2/pad_checksum. I found this recipe in ~/pico/pico-examples/build/pico-sdk/src/rp2_common/boot_stage2/CMakeFiles/bs2_default_padded_checksummed_asm.dir/build.make:
pico-sdk/src/rp2_common/boot_stage2/bs2_default_padded_checksummed.S: pico-sdk/src/rp2_common/boot_stage2/bs2_default.bin
	@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold --progress-dir=/home/kristof/pico/pico-examples/build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_1) "Generating bs2_default_padded_checksummed.S"
	cd /home/kristof/pico/pico-examples/build/pico-sdk/src/rp2_common/boot_stage2 && /usr/bin/python3.9 /home/kristof/pico/pico-sdk/src/rp2_common/boot_stage2/pad_checksum -s 0xffffffff /home/kristof/pico/pico-examples/build/pico-sdk/src/rp2_common/boot_stage2/bs2_default.bin /home/kristof/pico/pico-examples/build/pico-sdk/src/rp2_common/boot_stage2/bs2_default_padded_checksummed.S

4. Question
We don't want to make any assumption about the user's local installation. For example, Embeetle IDE doesn't require Python to be installed. Generating the bs2_default_padded_checksummed.S file with the Python script is therefore not an option. So I wonder:

Is this file bs2_default_padded_checksummed.S absolutely necessary? What is it actually for?

Can I generate the file beforehand and put it in the user's project? Probably the checksum is computed based on the user's code and therefore it's impossible to create the file beforehand.

Thank you very much for your help.

Is this file bs2_default_padded_checksummed.S absolutely necessary? What is it actually for?

Have a look at "2.8.1. Processor Controlled Boot Sequence" in https://datasheets.raspberrypi.com/rp2040/rp2040-datasheet.pdf

Can I generate the file beforehand and put it in the user's project? Probably the checksum is computed based on the user's code and therefore it's impossible to create the file beforehand.

That's more a question for @kilograham , but if you're only supporting a single boot-stage-2 (i.e. you don't allow your users to use an RP2040 board with a different flash chip than the one used on the Raspberry Pi Pico boards), then yes you might be able to ship a pre-checksummed boot-stage-2. Maybe :wink:

There is no flash on the RP2040 itself, so yes, the flash chip will have to be used.
You could load directly to RAM using SWD/Debugger if you want.

I didn't notice this beforehand, but the Pico Pi board has indeed a separate Flash chip: W25Q16JVUXIQ. If you flash one of the sample projects (eg. the blinky one in the SDK), will this Flash chip be used?

Yes, https://github.com/raspberrypi/pico-sdk/blob/master/src/board_setup.cmake#L7 sets the default PICO_BOARD to pico, and https://github.com/raspberrypi/pico-sdk/blob/master/src/boards/include/boards/pico.h#L67 then configures which boot-stage-2 to use.

My goal is to create a makefile-based sample project that just works on the Pico Pi board. We can add a comment to the boot file, to warn the advanced users who want to connect the RP2040 chip to another separate Flash chip.

Hopefully you're already aware, but there are a number of 3rd-party boards using RP2040, each of which may be using a different flash chip, so this isn't necessarily an "advanced users" thing. See https://github.com/raspberrypi/pico-sdk/tree/master/src/boards/include/boards and the PICO_BOOT_STAGE2_CHOOSE_ used by each.

"There is no flash on the RP2040 itself, so yes, the flash chip will have to be used."

I didn't know that (I'm new to the RP2040). I'm used to chips like the STM32 series, that have on-chip flash memory.

"Hopefully you're already aware, but there are a number of 3rd-party boards using RP2040, each of which may be using a different flash chip, so this isn't necessarily an "advanced users" thing."

Our users can select a board and chip in the IDE. We could create sample projects for a few of those 3rd-party boards too, and provide the checksummed 2nd stage bootloader file for each.


IncompatibleKeys

Run the demo colab (https://github.com/IDEA-Research/Grounded-Segment-Anything/blob/main/grounded_sam_colab_demo.ipynb), and get IncompatibleKeys for groundingdino_model.
The IncompatibleKeys were produced by running the following cell:
ckpt_repo_id = "ShilongLiu/GroundingDINO"
ckpt_filenmae = "groundingdino_swinb_cogcoor.pth"
ckpt_config_filename = "GroundingDINO_SwinB.cfg.py"
groundingdino_model = load_model_hf(ckpt_repo_id, ckpt_filenmae, ckpt_config_filename, device)
IncompatibleKeys:
_IncompatibleKeys(missing_keys=[], unexpected_keys=['label_enc.weight', 'bert.embeddings.position_ids'])
Any solutions for this issue? Thx

Run the demo colab (https://github.com/IDEA-Research/Grounded-Segment-Anything/blob/main/grounded_sam_colab_demo.ipynb), and get IncompatibleKeys for groundingdino_model.
The IncompatibleKeys were produced by running the following cell: ckpt_repo_id = "ShilongLiu/GroundingDINO" ckpt_filenmae = "groundingdino_swinb_cogcoor.pth" ckpt_config_filename = "GroundingDINO_SwinB.cfg.py" groundingdino_model = load_model_hf(ckpt_repo_id, ckpt_filenmae, ckpt_config_filename, device)
IncompatibleKeys: _IncompatibleKeys(missing_keys=[], unexpected_keys=['label_enc.weight', 'bert.embeddings.position_ids'])
Any solutions for this issue? Thx

Have you solved this problem？

Run the demo colab (https://github.com/IDEA-Research/Grounded-Segment-Anything/blob/main/grounded_sam_colab_demo.ipynb), and get IncompatibleKeys for groundingdino_model.
The IncompatibleKeys were produced by running the following cell: ckpt_repo_id = "ShilongLiu/GroundingDINO" ckpt_filenmae = "groundingdino_swinb_cogcoor.pth" ckpt_config_filename = "GroundingDINO_SwinB.cfg.py" groundingdino_model = load_model_hf(ckpt_repo_id, ckpt_filenmae, ckpt_config_filename, device)
IncompatibleKeys: _IncompatibleKeys(missing_keys=[], unexpected_keys=['label_enc.weight', 'bert.embeddings.position_ids'])
Any solutions for this issue? Thx

Have you solved this problem？

Have you ever solved this issue? I tested it singlely whereas it was correct. Anyway, it was incorrect while running the demo.


proxyReq.removeHeader does not work with Node V20+ (LTS)

In my proxy, this used to work with Node 18.18.2:
proxyReq.getHeaderNames().forEach((headerName) => {
    proxyReq.removeHeader(headerName);
});

When using Node 20.10.0 (LTS), the call times out ⚠. If I comment out this line:
proxyReq.removeHeader(headerName);
it works again 👀

That code example is too vague for me to find where the issue is.

I narrowed it down to this line. Here is the whole thing:
proxy: {
        proxies: {
            '/api': {
                target: process.env.BACKEND_URL,
                changeOrigin: true,
                rewrite: (path) => path.replace(/^\/api/, ''),
                xfwd: true,
                configure: (proxy) => {
                    proxy.on('proxyReq', (proxyReq) => {
                        function getCookieFromString(cookiesString: string, cookieName: string): string | null {
                            return (cookiesString ?? '').match(`(^|;)\\s*${cookieName}\\s*=\\s*([^;]+)`)?.pop() ?? null;
                        }

                        const cookie = proxyReq.getHeader('cookie') as string;
                        const token = getCookieFromString(cookie, 'token');

                        const ALLOWED_HEADERS = ['host', 'x-forwarded-for', 'x-real-ip'];
                        proxyReq.getHeaderNames().forEach((headerName) => {
                            if (!ALLOWED_HEADERS.includes(headerName)) {
                                proxyReq.removeHeader(headerName); // This line here causes the error with Node 20+
                            }
                        });

                        if (token) {
                            proxyReq.setHeader('token', token);
                        }
                    });
                },
            },
        },
    },

can you try to change the ALLOWED_HEADERS to:
const ALLOWED_HEADERS = ['Host', 'X-Forwarded-For', 'X-Real-Ip'];
and tell me if that works for you, if not then it might be another issue on my end. Other than that what error exactly pops up?

can you try to change the ALLOWED_HEADERS to:
const ALLOWED_HEADERS = ['Host', 'X-Forwarded-For', 'X-Real-Ip'];
and tell me if that works for you, if not then it might be another issue on my end. Other than that what error exactly pops up?

This causes an error 400 right away 👀
[nuxt] [request error] [fatal] [400] Error fetching data: AxiosError: Request failed with status code 400

can you try to change the ALLOWED_HEADERS to:
const ALLOWED_HEADERS = ['Host', 'X-Forwarded-For', 'X-Real-Ip'];
and tell me if that works for you, if not then it might be another issue on my end. Other than that what error exactly pops up?

This causes an error 400 right away 👀 (with node 18 AND node 20)
[nuxt] [request error] [fatal] [400] Error fetching data: AxiosError: Request failed with status code 400

I've pushed an update for the proxy package this module uses. update the module.

The error still occurs with the new version (with both Node Versions)
[nuxt] [request error] [fatal] [400] Error fetching data: AxiosError: Request failed with status code 400

are you using the captialized headers?

are you using the captialized headers?

Yes. As soon as I do, I get an error 400

try the non-capitalized ones too?

I did, see here:

The error still occurs with the new version (with both Node Versions)
[nuxt] [request error] [fatal] [400] Error fetching data: AxiosError: Request failed with status code 400

Can you check in whatever lockfile you're utilizing what version @refactorjs/http-proxy is?

I have 2 entries:
"@nuxt-alt/proxy@npm:^2.4.9":
  version: 2.4.9
  resolution: "@nuxt-alt/proxy@npm:2.4.9"
  dependencies:
    "@nuxt/kit": ^3.8.1
    "@refactorjs/http-proxy": latest
    defu: ^6.1.3
    picocolors: ^1.0.0
  checksum: f48536b22b4e904ad26362caaec02b2170c4e890f0cbc1871323f4596ed6a96df7d1fbdba3492d72b362318759acd0b37c184785ceec679242ad2e32fb676ab4
  languageName: node
  linkType: hard

"@refactorjs/http-proxy@npm:latest":
  version: 0.2.5
  resolution: "@refactorjs/http-proxy@npm:0.2.5"
  dependencies:
    requires-port: ^1.0.0
  checksum: 7e9a81cdb08ff9f2597714d30346f342b052602f323992596a42eee6d6e0c06d45b32aa5f751a2ab70b00fbdffe75276e74de00e45c3469c0cef3ad6d0303b34
  languageName: node
  linkType: hard

I don't know what else to tell you. I'm unable to replicate the issue you're facing. I assumed it's a 'Headers already sent issue' but even that I am unable to replicate.

Ok. I'll keep you updated if I find anything new.

Quick update: I switched to a proxy inside a server eventHandler and I am having the same problem when using Node 20. So your library is not at fault.


Feedback for DevPortal FAQ landing page

Let's build a better landing page for FAQ, something like a page index with listing of subpages.

Document Details
⚠ Do not edit this section. It is required for docs.superOffice.com ➟ Docs Team processing.

Content Source: dp-format-text

I'm closing this as solved by commit ffabc14
If, however, there's more to do here @SuperOfficeDevNet, please reopen and specify what you have in mind :)


Java type param bounds should be ordered [phab:T247]

Created by benjyw at 2017-05-04 07:03:02:
A type parameter in a generic type declaration can have multiple bounds, e.g.,
<T extends Foo & Bar>
Kythe emits a /kythe/edge/bounded/upper for each bound. These edges are unordered. However order matters - it determines the type erasure (see https://docs.oracle.com/javase/specs/jls/se8/html/jls-4.html#jls-4.6: "The erasure of a type variable (§4.4) is the erasure of its leftmost bound."
It makes sense to use a scheme similar to param ordering, where /kythe/edge/bounded/upper edges can optionally be followed by a dot and an index, e.g., /kythe/edge/bounded/upper.0`, /kythe/edge/bounded/upper.1` etc.
If you concur, I am happy to implement.
Note that there is no similar concern for lower bounds, as type parameters do not have lower bounds, only wildcards do, and wildcards can have only a single (upper or lower) bound.

benjyw wrote at 2017-05-04 19:14:04:
Implemented in #2041

revision #2041


Update test or test_invocation for multi-language projects

The test invocation criteria seems biased towards single language projects and/or unit tests.
      test_invocation:
        description: >-
          A test suite SHOULD be invocable in a standard way for
          that language.
        details: For example, "make check", "mvn test", or "rake
          test" (Ruby).

Often projects contain multiple languages and testing features composed over different components.
Continuous integration tests may then call scripts which run these kinds of tests and those scripts may not look like e.g. make check.
Instead consider criteria like:
The project MUST clearly document how to run the test suite(s). This could be documented in BUILD.md, README.md, or CONTRIBUTING.md.
A test SHOULD be invocable in a standard way for that language ...

I understand the issue!
We can't make the change in the way you described. Any one criterion can be a MUST, SHOULD, or SUGGESTED; they can't be mixed because of the way we grade them. Also, many people don't write separate documentation on how to invoke tests; they use a CI script to invoke it (which in many ways is better, since that shows exactly how to run the tests & is more likely to be remain current)).
We could instead include that in the previous criterion (named test):

The project MUST use at least one automated test suite that is publicly released as FLOSS (this test suite may be maintained as a separate FLOSS project). [test]

so it would say:

The project MUST use at least one automated test suite that is publicly released as FLOSS (this test suite may be maintained as a separate FLOSS project). The project MUST clearly show or document how to run the test suite(s) (e.g., via a continuous integration (CI) script or documentation in files such as BUILD.md, README.md, or CONTRIBUTING.md). [test]

Technically this would be a change in the criterion. However, the only way to show that a project uses a test suite (and thus meets the original criterion) is to show it or document it, so I'd be okay with merging this into the existing test criterion. Alternatively, we could add it as a new criterion, but I don't think we need to in this case.
Comments?

that sounds good to me

LGTM!


Websocket

Replace polling with websocket.

Decided to load data directly from SEPTA API which does not support websockets so this won't happen.


Research: Terraform input / output to Concourse

Assuming I run a Terraform job, how to I get that output as an input into a Concourse pipeline

[ ] Output from Terraform is able to be used as an input to a Concourse task

Terraform keeps a JSON state file which may be the right place to start


Fix #2643: Do not replace this by thisIdent inside Closures.

Closures reintroduce a new binding for this, which must not be replaced by thisIdent.

Review by @gzm0

Refer to this link for build results (access rights to CI server needed):
https://scala-webapps.epfl.ch/jenkins/job/scalajs-pr/3473/
https://scala-webapps.epfl.ch/jenkins/job/scalajs-matrix-build/4567/
Test PASSed.


Remove isarray dep.

Hi @feross!
The isarray package is being deprecated since IE < 11 is no longer supported by MS & IE 8 was the last browser that needed it. For the fringes folks tend to use something like es-shim.
The Array.isArray method is supported by all Node versions, Rhino, iOS, Android, and headless browser enviros (like PhantomJS v1, SlimerJS).
With that in mind this PR removes it from buffer.
Note: I don't think test fails are related to this change.

I don't think test fails are related to this change. BTW npm test fails in Node v6 due to a readonly assignment to Buffer.from =.

One of the selling points is that this module supports everything from IE6 and up. I see no reason to remove this dep.

IE6 has less than 0.2% market share on a dead OS. The buffer package ends up in a lot of other deps so while it's a nice academic exercise to expand support to ancient enviros it's being shipped to plenty of folks with little to no benefit.

Backward compatibility is not an academic exercise. I am one of those 0.2% who has no other choice but to use a dead ~16yr old OS. Our image acquisition software cannot be updated to a newer OS due to driver compatibility issues. Until usage is 0% and will forever remain 0%, backward compatibility matters. People at the margins are still people, and their concerns should not be dismissed so readily in the name of modernity.

To help move this along the next version of Lodash will poison the API.

@jdalton I understand where you're coming from -- pruning unneeded dependencies is one of my favorite pastimes. It's something that I wish more node developers took seriously, especially for packages that just run on the server-side, a much simpler and predictable environment. Reducing install time, decreasing security attack surface area, increasing site performance, and simplifying codebases are all great benefits.
So I'm definitely on your side in the fight for "dependency hygiene". But this PR drops support for IE8 a bit prematurely, IMO.
IE 6-8 together account for .77% of the US market (.08% IE6 + .07% IE7 + .62% IE8). There are 269.35 million US internet users, so this PR leaves behind 2.07 million people. And that's just in the US.
If the complexity or file size savings were meaningful, I could justify it. But this only saves 3 lines of code. Is this really the right tradeoff?

@jdalton To help move this along the next version of Lodash will poison the API.

If I understand this correctly -- you're saying that anyone who uses lodash on IE8 will get an intentionally broken Array.isArray going forward? And that broken Array.isArray will also break our usage of the isarray package.
Why oh why? Is this necessary?

you're saying that going forward anyone who uses lodash on IE8 will get an intentionally broken Array.isArray?

If I understand correctly that's totally not the case. If you take a look at the diff linked, this is what the code is:
Array.isArray = Array.isArray || (Array.isArray = function() {
  throw new Error('This method is not supported. Try https://github.com/es-shims.');
});

which means it'll throw a helpful error when it's undefined, instead of just throwing "Undefined is not a function".

@mxstbr He called it "poisoning the API" for a reason. It prevents anyone else from easily detecting that Array.isArray is missing. So packages like isarray will use lodash's "helpful" implementation:
var toString = {}.toString;
module.exports = Array.isArray || function (arr) {
  return toString.call(arr) == '[object Array]';
}

https://github.com/juliangruber/isarray/blob/master/index.js

@feross

If I understand this correctly -- you're saying that anyone who uses lodash on IE8 will get an intentionally broken Array.isArray going forward?

It's more of a show of intent since currently Lodash v4 doesn't work on an unshimmed IE8 in the first place.

It's more of a show of intent since currently Lodash v4 doesn't work on an unshimmed IE8 in the first place.

Hmm, I see. So, you're saying that lodash users already need to use es-shim anyway to make it work in IE8. I get that.
I still feel like doing a hostile takeover of the Array.isArray and breaking other people's packages (who do include a shim) isn't necessary.
If you want to help unshimmed IE8 users, you can just print them a helpful console warning, or throw an exception, as soon as lodash is required.

It's my hope that by a more popular library taking the plunge it helps remove any hangups you may have. If folks complain then I'll revert but I don't anticipate many issues.

it helps remove any hangups you may have

I think it's fine to drop support for older browsers in a major version of buffer. No hangups. That's valid semver. It's just that, as it stands, this PR is a net loss because it removes browser support and adds nothing else.
If we start using indexOf instead of handwritten for-loops to reduce code complexity and file size, and other IE9+ niceties, then we can justify dropping the older users in the next version. (Of course, people can just continue using their current version of browserify if they want older browser support). If you or someone else wants to take a stab at that, I'm happy to merge it.

I think it's fine to drop support for older browsers in a major version of buffer. No hangups. That's valid semver.

Sweet! Would you dig creating a v5 branch to apply PRs to?

If you or someone else wants to take a stab at that, I'm happy to merge it.

Sure thing!

@jdalton Okay, I created a v5 branch. Want to re-send this PR?

@feross Thanks! Github introduced a feature so there's no need to close and re-send I can just change the target of this one.

If you re-open it should be pointing to the v5 branch.

:metal:


Improved ADA compatibility

MOB-1819
This was the best I was able to do, minor imperfections keep happening, but I think the current version is good enough.
TalkBack will talk to finish the sentence and depending on the loading time might skip some elements. For this reason I disabled contentDescription for close and glia image because those kept coming up in undesired ways. Close button description is added back in a way that won't be read out automatically

By the way, Bitrise build has failed. Maybe it has something to do with conflicting changes. Could you please resolve them?

!squash


Developer cannot be verified

I met an issue with the workflow:
Once installed, as soon as I try it, I get a MacOS exception regarding the developer verification

I had to go to the Security & Privacy pane of the System Preferences, then allow the gm execution
I triggered the workflow again, and I had to allow the script execution from the popup displayed.
Now everything works fine 👍🏻
I opened this issue in order to give a clue for anyone having trouble with this useful workflow which was not working since python2 is deprecated on mac.
Thank you so much @techouse for rewriting it using dart 👌🏻

Hi,
I'm aware of that. This feature is coming in Dart 2.17.0 https://github.com/dart-lang/sdk/commit/6ef426d7df7089c033078b2c24b5ab9c14d2dfb9
Once Dart 2.17.0 gets released I'll re-compile and sign the bins. For now, you'll need to allow the exception in your macOS's System Preferences -> Security & Privacy.

@loranger Dart 2.17.0 just got released yesterday, so I'll recompile and sign the binaries as soon as I can. 🚀

@loranger v1.0.9 is now signed.
You can verify it with codesign if you wish 😊

Thanks, but I'm afraid you won't like it…
https://user-images.githubusercontent.com/6014/168235916-3e0a746d-f65a-42f8-8323-2d08c90cd234.mp4

Every app downloaded from a non-apple server will say that. Now it at least won't nag about the thing being unsigned and forcing you to go to you Mac'a security setting and making an exception.

That's what I did, and everything works fine (as it used to 👌🏻)

It's somewhat weird because the binary itself is signed. If you check the signature
cd /path/to/the/alfred/workflow/
codesign -dv --verbose=4 gm

It will print:
Executable=/path/to/the/alfred/workflow/gm
Identifier=com.techouse.alfred-gitmoji
Format=Mach-O thin (x86_64)
CodeDirectory v=20400 size=44415 flags=0x0(none) hashes=1382+2 location=embedded
VersionPlatform=1
VersionMin=658688
VersionSDK=721152
Hash type=sha256 size=32
CandidateCDHash sha256=06510b21c312d52d2c45f3aa800496ad68b532de
CandidateCDHashFull sha256=06510b21c312d52d2c45f3aa800496ad68b532de98934ae11d2dd59c15318e1c
Hash choices=sha256
CMSDigest=06510b21c312d52d2c45f3aa800496ad68b532de98934ae11d2dd59c15318e1c
CMSDigestType=2
Executable Segment base=0
Executable Segment limit=3784704
Executable Segment flags=0x1
Page size=4096
CDHash=06510b21c312d52d2c45f3aa800496ad68b532de
Signature size=9099
Authority=Apple Development<EMAIL_ADDRESS>(P4674Z4B9E)
Authority=Apple Worldwide Developer Relations Certification Authority
Authority=Apple Root CA
Timestamp=12 May 2022 at 21:26:51
Info.plist=not bound
TeamIdentifier=6LYC36B94Q
Sealed Resources=none
Internal requirements count=1 size=200

@loranger  v1.1.0 is now properly signed and notarised.


tag  creating  tags even with "as"

Hello,
I'm using :

<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>
Code
import { block } from "million/react";
import { For } from "million/react-server";

// type SelectableUser = { id: number; email: string; isAdmin: boolean; Teams: { id: number; name: string }[]; selected: boolean };

import selectableUsers from "./selectableUsers.json";

export const AdminPage = block(() => {
    return (

                    Email
                    Admin
                    Teams

            <For each={selectableUsers} as="tbody">
                {(user) => (

                        {user.email}

                            <input type="checkbox" checked={user.isAdmin} disabled />

                        <For each={user.Teams} as="td">
                            {(team) => (

                                    {team.name}
                                    <input type="checkbox" checked={true} disabled />

                            )}
                        </For>

                )}
            </For>

    );
});

selectableUsers.json file content:
[{"id":1,"email":"Madaline_Dicki@gmail.com","isAdmin":false,"selected":true,"Teams":[{"id":12,"name":"Von, Terry and Kris"},{"id":14,"name":"Ritchie Inc"}]},{"id":2,"email":"Lilliana29@hotmail.com","isAdmin":true,"selected":false,"Teams":[{"id":8,"name":"Bruen - Glover"},{"id":1,"name":"Bogan LLC"},{"id":12,"name":"Von, Terry and Kris"},{"id":2,"name":"Ryan, Ferry and Rolfson"}]}]

Error
The Million's <For> tag is creating <slot> tags.
<EMAIL_ADDRESS>
Since it is forbidden inside a
 there are errors like this:
Warning: validateDOMNesting(...):
 cannot appear as a child of <slot>.
    at tbody
    at MillionArray

Warning: validateDOMNesting(...):
 cannot appear as a child of <slot>.
    at tr

I placed a nested <For> since I saw the error in my project on nested one. It is when I was preparing a smaller example for the Issue that I saw the error on
.
Can you take a look at this please ?
Thanks

Hi Nic i faced same issue as yours for a while solved it with this:
import { For, block } from "million/react";

function Row({ ...props }: { product: string; count: number; id: number }) {
  return (

      {props.product}
      {props.count}

  );
}
const RowBlock = block(Row);

export default function App() {
  return (

            Email
            Id

        <For each={data} as="tbody">
          {(user) => <RowBlock product={user.email} count={4} id={user.id} />}
        </For>
        {/* <For each={data} as="tbody" ssr={false}>
          {(user) => (

              {user.email}
              {user.id}

          )}
        </For> */}

  );
}

const data = [
  {
    email<EMAIL_ADDRESS>    id: 10,
  },
  {
    email<EMAIL_ADDRESS>    count: 100,
    id: 130,
  },
  {
    email<EMAIL_ADDRESS>    count: 100,
    id: 1,
  },
];

PS: I noticed if i dont wrap my Row component with block and just render the tr tag inside the For component million wraps all the tag with a slot i am not if that's an intended behavior or a bug.

@aidenybai  how to make test for it in developemnt, I want try see it....

Again blocking, #567


[Client] Add support for zig client library

Description
Adding support for zig client for superposition. The steps to work with the client are mentioned in the README.md file in the client.

@NishantJoshi00 can we remove the merge commit? It breaks semantic guidelines here. Please rebase if possible

@NishantJoshi00 can we remove the merge commit? It breaks semantic guidelines here. Please rebase if possible

I have done that 👍 .
But, I am curious. What merge policy do you use?

rebase and merge/squash and merge, depending on the use-case

squash and merge

In this case, my commit messages shouldn't matter, only the PR title would be of significance, right?

@NishantJoshi00 yup

@juspay/sdk-backend can we start reviewing this?


Stuck making testing work with embedded Cassandra

Hi all, It's probably a silly mistake but I get a connection refused error when I run a simple test based on CassandraFlatSpec (i.e. a SimpleCassandraTest). It seems that embedded Cassandra is starting properly listening for connections on port 9142:
12:10:05.698 [pool-28-thread-1] INFO  o.apache.cassandra.transport.Server - Starting listening for CQL clients on localhost/<IP_ADDRESS>:9142...
But, after that, the datastax client driver is trying to connect to 9042 port instead of 9142:
Exception encountered when invoking run on a nested suite - All host(s) tried for query failed (tried: localhost/<IP_ADDRESS>:9042 (com.datastax.driver.core.TransportException: [localhost/<IP_ADDRESS>:9042] Cannot connect))
com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: localhost/<IP_ADDRESS>:9042 (com.datastax.driver.core.TransportException: [localhost/<IP_ADDRESS>:9042] Cannot connect))
My test is just a dummy one mix-in a trait like this:
trait PhantomTest extends CassandraFlatSpec with KeySpaceDefinition
When I use my own local Cassandra instance listening on port 9042 is working like a charm.
Thanks in advance for your help.

Hi @juanjovazquez,
Thank you for reporting this. It sounds like a small error indeed, it will be reviewed and we will keep you up-to-date.
Regards.

Thanks @alexflav23. For the time being, I keep testing with my own local Cassandra instance.

I have exactly the same problem.

@juanjovazquez @mmatloka In Phantom 1.9.0 there will be a new phantom-sbt plugin available that allows you to make SBT automatically start Embedded Cassandra before any test is run. The current mechanism was replaced as it was very unreliable.
Then in your tests you can simply override the connector and tell it to always use the embedded flavour. 1.9.1 is already on Bintray, I will try and publish the working branch with the new README as well, which describes how to use the new stuff.

@alexflav23 thx for quick response. I am trying to use 1.9.1 now and it seems one package is missing com.websudos#util-testing_2.11;0.9.6: not found

Thx, I see it is already uploaded :)

@alexflav23 I have seen phantom-sbt is in bintray aswell, but it seems to be incorrectly published. When added via addSbtPlugin("com.websudos" % "phantom-sbt" % "1.9.1") sbt throws https://dl.bintray.com/websudos/oss-releases/com/websudos/phantom-sbt_2.10_0.13/1.9.1/phantom-sbt-1.9.1.jar although its under https://dl.bintray.com/websudos/oss-releases/com/websudos/phantom-sbt/1.9.1/ .

@mmatloka the same happened to me. I'm not being able to resolve the plugin. What has your workaround been?

@juanjovazquez I have not found a workaround. Waiting for @alexflav23  ;)

https://docs.wso2.com/display/DSS322/Cassandra+Sample
i got same error because i'm not running the Cassandra server before run the sample

I ran into the same issue and created my "own" implementation (Using my DBConnector which has simple test detection and uses ip/port accordingly). Removed my play framework code, hope I didn't forget any in it ... in case you need a play fake application, start Play.start(FakeApplication()) right after the self type in the trait
package services.cassandra

import java.io.IOException
import java.net.{InetAddress, InetSocketAddress, Socket}

import com.datastax.driver.core.{Cluster, Session}
import com.websudos.phantom.connectors._
import com.websudos.phantom.testkit.suites.CassandraSetup
import org.scalatest.concurrent.{AsyncAssertions, PatienceConfiguration, ScalaFutures}
import org.scalatest.{Assertions, BeforeAndAfterAll, Suite, _}

import scala.concurrent.ExecutionContext.Implicits.global
import scala.concurrent._
import scala.concurrent.duration._
import scala.util.control.NonFatal

trait MyCassandraTest extends ScalaFutures
with SimpleCassandraConnector
with Assertions
with AsyncAssertions
with BeforeAndAfterAll
with BeforeAndAfter
with CassandraSetup
with SequentialNestedSuiteExecution {
  self: BeforeAndAfterAll with Suite =>
  override implicit val keySpace = KeySpace("my_keyspace")
  /**
   * The default timeout value for phantom tests, passed implicitly to the testing framework.
   * @return The default timeout value.
   */
  implicit def patience: PatienceConfiguration.Timeout = timeout(5 seconds)

  override val manager: CassandraManager = CassandraProperties.manager

  override implicit lazy val session: Session = {
    manager.initIfNotInited(keySpace.name)
    DBConnector.session
  }

  implicit lazy val context: ExecutionContext = global

  override def beforeAll() {
    super.beforeAll()
    setupCassandra()
    manager.initIfNotInited(keySpace.name)
  }
}

object CassandraProperties {
  val ZookeeperEnvironmentString: String = "TEST_ZOOKEEPER_CONNECTOR"
  val DefaultHosts = Set(new InetSocketAddress("localhost", 9142))
  val Localhost = Set(new InetSocketAddress("localhost", 9142))
  lazy val manager = new MyCassandraManager
}

class MyCassandraManager(hosts: Set[InetSocketAddress] = CassandraProperties.DefaultHosts) extends CassandraManager(hosts) {
  override val livePort = 9142
  private[this] var inited = false
  private[this] var _session: Session = null

  def clusterRef: Cluster = CassandraInitLock.synchronized {
    if (cluster.isClosed) {
      try {
        blocking {
          cluster.connect()
          logger.info("Cluster connection successful")
          cluster
        }
      } catch {
        case NonFatal(e) => {
          if (shouldAttemptReconnect(e)) {
            logger.info(s"Renewing cluster connection after encountering error message: ${e.getMessage}")
            cluster
          } else {
            logger.error("Unable to reconnect to the cluster", e)
            throw new Exception("Unable to recreate cluster connection. Cluster is unavailable", e)
          }
        }
      }
    } else {
      logger.info("Cluster is healthy and connection was made directly")
      cluster
    }
  }

  def cassandraPort(host: InetAddress = getCurrentIp): Int = {
    try {
      new Socket(host.getHostName, livePort)
      livePort
    } catch {
      case ex: IOException => embeddedPort
    }
  }

  def uniformPorts(hosts: Set[InetSocketAddress], port: Int): Set[InetSocketAddress] = {
    hosts.map(item => { new InetSocketAddress(item.getHostName, port) })
  }

  @volatile protected[this] var cluster: Cluster = DBConnector.cluster.build()

  def session: Session = _session

  def initIfNotInited(keySpace: String): Unit = CassandraInitLock.synchronized {
    if (!inited) {
      _session = blocking {
        val s = clusterRef.connect()
        s.execute(createKeySpace(keySpace))
        s
      }
      inited = true
    }
  }
}

private[cassandra] case object CassandraInitLock

Hi @elmalto ,
Embedded testing is actually no longer supported in phantom and connectors have been re-written from scratch. We are in the process of publishing a phantom-sbt plugin that allows you to start embedded Cassandra directly from SBT, and that will be available in the coming weeks.
Meanwhile, this issue will be closed as it no longer reflects supported features. There is no reliable way to control singleton instantiation from SBT and in multi-build projects + multiple classloaders race conditions occur that break the whole logic, and there seems to be no way around that. It is way phantom-sbt was designed by one of our contributors, to address this challenge and fix race conditions.
Regards.


Fix #257

Coverage decreased (-1.58%) to 84.9% when pulling 4f3bac463e0edcc67c7b3fca81aa3b18d6bbffbb on fix_257 into 96dd6bb195e8ed4f373560edbdb0182c3b4720a0 on master.

Coverage decreased (-1.58%) to 84.9% when pulling 4f3bac463e0edcc67c7b3fca81aa3b18d6bbffbb on fix_257 into 96dd6bb195e8ed4f373560edbdb0182c3b4720a0 on master.

Coverage decreased (-1.58%) to 84.9% when pulling 4f3bac463e0edcc67c7b3fca81aa3b18d6bbffbb on fix_257 into 96dd6bb195e8ed4f373560edbdb0182c3b4720a0 on master.

Changes Unknown when pulling fe93053ad335f50cb54567625796af63a526361b on fix_257 into ** on master**.

Changes Unknown when pulling fe93053ad335f50cb54567625796af63a526361b on fix_257 into ** on master**.

Changes Unknown when pulling f7951fe96259c8519bf7f966045db3d0c2645d00 on fix_257 into ** on master**.

Changes Unknown when pulling f7951fe96259c8519bf7f966045db3d0c2645d00 on fix_257 into ** on master**.

Changes Unknown when pulling f7951fe96259c8519bf7f966045db3d0c2645d00 on fix_257 into ** on master**.

Changes Unknown when pulling f7951fe96259c8519bf7f966045db3d0c2645d00 on fix_257 into ** on master**.


A bunch of stuff ensures SignalReceivers

These should be on the prototypes themselves, not ensured during initialisation.

test fixed this


Update eslint to v7.11.0, use more spies in tests

This updates eslint from v6.8.0 to v7.11.0.
Without manual work this would fail as follows (log from dependabot PR):
/home/travis/build/terrestris/ol-util/src/ProjectionUtil/ProjectionUtil.spec.js
  42:9  error  The members of 'OlProj4' are read-only  no-import-assign
  54:9  error  The members of 'OlProj4' are read-only  no-import-assign
  73:9  error  The members of 'OlProj4' are read-only  no-import-assign
  85:9  error  The members of 'OlProj4' are read-only  no-import-assign
  96:9  error  The members of 'OlProj4' are read-only  no-import-assign

When we use jest.spyOn, we can circumvent this and also have more readable and shorter tests.
Please review.
Closes #300

Thanks for the review.


Offer pagination is hardcoded

Hi,
Offer pagination currently is hardcoded in OfferDetailView, and it would be nice to be able to control this with its own setting other than OSCAR_PRODUCTS_PER_PAGE.

There are quite a few paginate_by attributes that are hard coded. I'm not sure how big of an issue this really is, though.
Search the src tree for paginate_by = \d+ to find them all.

It would be great to let the user to paginate all this views according to her own preference, with a front-end tool. BTW I agree a default value should be configured in settings.py.

Thanks for this. I'm going to use this as a base to make all the pagination attributes controlled by settings.


use prev/next month to load events dynamically

Hi there,
I'm just exploring your great datepicker plugin and wonder if there is a comfortable way to load events whend clicking prev/next month buttons?
I would like to fetch events dynamically with ajax and tried the .update()-Event, but I ran into 2 issues:
e.change is just "M" in both cases. So I store the previous month number and compare it with the current month number and respect the overflow 12->1 and vice versa. Perhaps there is a more direct way or event to do this, but I don't know the syntax for it.
Then the event seems to be fired asynchronously. when I place an alert() inside the update-Event the next/previous month is visible in the background when the alert message appears. I was hoping that I could load the events and display some kind of loading-spinner before the view shows the chaned month. Is this possible?
Sorry, this is more a question regarding the functionality than an issue, but I don't know where to ask...
Thanks for your help and kind regards.

OK, the first issue is not a big problem, because I can just use the returned view date directly to create the first day of month and the last day of month + 1 week with moment.js for the ajax request.


Add eslint standard-with-typescript to fix #1

@carsonfarmer I ran into an issue with the dependabot PR this morning and issue #1 seemed related so took a stab at fixing.
Hopefully this matches what you were hoping for?

Also, I'm loving this typescript aware linting!

Oop. I think we wanna merge this into main.


Add support for Rider 2024.3 EAP2

2024.3 is now in General Release. Can we please get the plugin updated?

Yes I'll try to upgrade as soon as I find some times

Much appreciated, @Socolin ❤

The version was updated and will be available through the jetbrains marketplace during next week, if you need it now you can download it here an manually install it.
nsubstitutecomplete-2024.3.0.zip


COM-956 - fix(deploy): use real tgf directory structure

The job failed because it seems to be missing a "deployment" folder, so here it is

The "new" directory structure actually does away with the module/deployment directories... but if it works 🤷

Following Devin's link, I will rework this thing


feat: gitlab commit/mr data collecting

@klesh thanks. I need to look waaaay more into this. Did @UltimateBeaver assign you this work? I have already done this for projects and commits

Hi, @joncodo . Sorry for the inconvenience, it's not my intent to overlap your work.
I need gitlab data for some cross-data-source indicators, and fast.
Task is due this week.
Please take a look if all possible, many thanks

Looking good, merging now.


how to use scene

Hi @Oshan96 ,
If I don't want to use fxml when setting up a scene, how do I proceed with adding the scene to the CustomStage ?
Say I want to define a stack pane to sit inside the stage.
        Scene scene = new Scene(new StackPane(), 800, 600);
        stage.setScene(scene);

As soon as I do stage.setScene(scene), the title bar will be covered and I won't be able to drag the window/stage or use the buttons.
So how should I add a stack pane or an anchor pane to a custom stage ?

Hi there, currently, CustomStage is using a previously created Scene, so there is a provided method on this library called 'changeScene(Pane)' this method allows you to pass a Pane to the scene which will be used as the 'root' of the window.
customStage.changeScene(new StackPane());

See the documentation

okay I see.

Node scene1 = manager.getScene("Scene1"); //gets Scene1.fxml view

if I do the above, scene1 is actually a node, not a scene, which is a little confusing.
Is there any way to get back the instance of scene ? I need to manipulate the scene directly.
Thanks much !

Oh yeah. It is a Node. The 'Scene' in this library refers to the particular view.
Anyways, since customestage is a sub class of Stage,
stage.getScene();
should do the trick for you.

Also to be noted that, the sample set of code you provided there is an implementation of "SceneManager" tool within CustomStage.
And the SceneManager cannot be used to manipulate fxml files (Nodes) unless the "DefaultSceneManager" is activated
You should refer the wiki.

stage.getScene();
should do the trick for you.

One problem is that when I do stage.setScene(scene), the title will be covered up. So I lose the ability to drag the window since I need to hover the mouse pointer over the title bar to do the dragging.

stage.getScene(); will return the Scene of the CustomStage which includes all the basic components of it (Even the title bar).
stage.setScene(scene); will put the given Scene to the CustomStage overriding its default Scene which includes all the components (like said, even the title bar).
If you want to change the view (the main view of the window), the 'stage.changeScene(node)' method is provided  to do so, and unless otherwise you want to manipulate the Scene itself, i strongly recommend you to manipulate the current scene of CustomStage via Scene scene = stage.getScene(); and change the 'scene' object accordingly.


HelloMvc Sample is broken using DNU 1.0.0-rc2-16177 on CoreCLR

output from dnu restore && dnu build:
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/project.json(0,0): error NU1001: The dependency fx/mscorlib  could not be resolved.
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/project.json(0,0): error NU1001: The dependency fx/System  could not be resolved.
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/project.json(0,0): error NU1001: The dependency fx/System.Core  could not be resolved.
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/project.json(0,0): error NU1001: The dependency fx/Microsoft.CSharp  could not be resolved.
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/project.json(0,0): error NU1001: The dependency fx/System.IO  could not be resolved.
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/project.json(0,0): error NU1001: The dependency fx/System.Security  could not be resolved.
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/project.json(0,0): error NU1001: The dependency fx/System.Xml  could not be resolved.
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/project.json(0,0): error NU1001: The dependency fx/System.Xml.Linq  could not be resolved.
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/project.json(0,0): error NU1001: The dependency fx/System.Runtime  could not be resolved.
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/project.json(0,0): error NU1001: The dependency fx/System.ComponentModel.DataAnnotations  could not be resolved.
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/project.json(0,0): error NU1001: The dependency fx/System.Collections  could not be resolved.
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/project.json(0,0): error NU1001: The dependency fx/System.Text.Encoding  could not be resolved.
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/project.json(0,0): error NU1001: The dependency fx/System.Threading.Tasks  could not be resolved.
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/project.json(0,0): error NU1001: The dependency fx/System.Collections.Concurrent  could not be resolved.
ApplyProjectInfo.cs(1,29): DNX,Version=v4.5.1 error CS0234: The type or namespace name 'AssemblyFileVersionAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?)
ApplyProjectInfo.cs(2,29): DNX,Version=v4.5.1 error CS0234: The type or namespace name 'AssemblyVersionAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?)
ApplyProjectInfo.cs(3,29): DNX,Version=v4.5.1 error CS0234: The type or namespace name 'AssemblyInformationalVersionAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?)
ApplyProjectInfo.cs(1,58): DNX,Version=v4.5.1 error CS0518: Predefined type 'System.String' is not defined or imported
ApplyProjectInfo.cs(2,54): DNX,Version=v4.5.1 error CS0518: Predefined type 'System.String' is not defined or imported
ApplyProjectInfo.cs(3,67): DNX,Version=v4.5.1 error CS0518: Predefined type 'System.String' is not defined or imported
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/Models/User.cs(1,14): DNX,Version=v4.5.1 error CS0234: The type or namespace name 'ComponentModel' does not exist in the namespace 'System' (are you missing an assembly reference?)
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/Models/User.cs(5,18): DNX,Version=v4.5.1 error CS0518: Predefined type 'System.Object' is not defined or imported
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/Startup.cs(7,18): DNX,Version=v4.5.1 error CS0518: Predefined type 'System.Object' is not defined or imported
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/Controllers/HomeController.cs(6,35): DNX,Version=v4.5.1 error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/Models/User.cs(9,16): DNX,Version=v4.5.1 error CS0518: Predefined type 'System.String' is not defined or imported
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/Startup.cs(9,39): DNX,Version=v4.5.1 error CS0518: Predefined type 'System.Object' is not defined or imported
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/Startup.cs(9,16): DNX,Version=v4.5.1 error CS0518: Predefined type 'System.Void' is not defined or imported
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/Startup.cs(14,31): DNX,Version=v4.5.1 error CS0518: Predefined type 'System.Object' is not defined or imported
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/Startup.cs(14,56): DNX,Version=v4.5.1 error CS0518: Predefined type 'System.Object' is not defined or imported
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/Startup.cs(14,16): DNX,Version=v4.5.1 error CS0518: Predefined type 'System.Void' is not defined or imported
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/Controllers/HomeController.cs(8,16): DNX,Version=v4.5.1 error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/Controllers/HomeController.cs(8,16): DNX,Version=v4.5.1 error CS0518: Predefined type 'System.Object' is not defined or imported
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/Models/User.cs(9,35): DNX,Version=v4.5.1 error CS0518: Predefined type 'System.Void' is not defined or imported
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/Models/User.cs(10,16): DNX,Version=v4.5.1 error CS0518: Predefined type 'System.String' is not defined or imported
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/Models/User.cs(10,38): DNX,Version=v4.5.1 error CS0518: Predefined type 'System.Void' is not defined or imported
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/Models/User.cs(11,16): DNX,Version=v4.5.1 error CS0518: Predefined type 'System.Int32' is not defined or imported
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/Models/User.cs(11,31): DNX,Version=v4.5.1 error CS0518: Predefined type 'System.Void' is not defined or imported
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/Models/User.cs(7,10): DNX,Version=v4.5.1 error CS0518: Predefined type 'System.Object' is not defined or imported
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/Models/User.cs(7,10): DNX,Version=v4.5.1 error CS0246: The type or namespace name 'Required' could not be found (are you missing a using directive or an assembly reference?)
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/Models/User.cs(8,10): DNX,Version=v4.5.1 error CS0518: Predefined type 'System.Object' is not defined or imported
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/Models/User.cs(8,10): DNX,Version=v4.5.1 error CS0246: The type or namespace name 'MinLength' could not be found (are you missing a using directive or an assembly reference?)
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/Models/User.cs(8,20): DNX,Version=v4.5.1 error CS0518: Predefined type 'System.Int32' is not defined or imported
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/Controllers/HomeController.cs(13,16): DNX,Version=v4.5.1 error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/Controllers/HomeController.cs(13,16): DNX,Version=v4.5.1 error CS0518: Predefined type 'System.Object' is not defined or imported
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/Models/User.cs(5,18): DNX,Version=v4.5.1 error CS1729: 'object' does not contain a constructor that takes 0 arguments
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/Startup.cs(11,22): DNX,Version=v4.5.1 error CS0012: The type 'IList<>' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/Startup.cs(11,22): DNX,Version=v4.5.1 error CS0012: The type 'ICollection<>' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/Startup.cs(11,22): DNX,Version=v4.5.1 error CS0012: The type 'IEnumerable<>' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/Startup.cs(11,22): DNX,Version=v4.5.1 error CS0012: The type 'IEnumerable' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/Startup.cs(16,27): DNX,Version=v4.5.1 error CS0012: The type 'IDisposable' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/Startup.cs(7,18): DNX,Version=v4.5.1 error CS1729: 'object' does not contain a constructor that takes 0 arguments
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/Controllers/HomeController.cs(10,25): DNX,Version=v4.5.1 error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/Controllers/HomeController.cs(10,25): DNX,Version=v4.5.1 error CS0518: Predefined type 'System.Object' is not defined or imported
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/Controllers/HomeController.cs(10,20): DNX,Version=v4.5.1 error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/Controllers/HomeController.cs(10,20): DNX,Version=v4.5.1 error CS0518: Predefined type 'System.Object' is not defined or imported
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/Controllers/HomeController.cs(10,20): DNX,Version=v4.5.1 error CS0518: Predefined type 'System.String' is not defined or imported
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/Controllers/HomeController.cs(10,20): DNX,Version=v4.5.1 error CS0518: Predefined type 'System.Object' is not defined or imported
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/Controllers/HomeController.cs(15,13): DNX,Version=v4.5.1 error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/Controllers/HomeController.cs(15,13): DNX,Version=v4.5.1 error CS0518: Predefined type 'System.Object' is not defined or imported
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/Controllers/HomeController.cs(15,29): DNX,Version=v4.5.1 error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/Controllers/HomeController.cs(15,29): DNX,Version=v4.5.1 error CS0518: Predefined type 'System.Object' is not defined or imported
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/Controllers/HomeController.cs(17,24): DNX,Version=v4.5.1 error CS0518: Predefined type 'System.String' is not defined or imported
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/Controllers/HomeController.cs(18,27): DNX,Version=v4.5.1 error CS0518: Predefined type 'System.String' is not defined or imported
/home/andy/code/Home/samples/1.0.0-rc1-final/HelloMvc/Controllers/HomeController.cs(6,18): DNX,Version=v4.5.1 error CS0518: Predefined type 'System.Void' is not defined or imported
Build failed.

It looks like references are missing?

You can't build .NET Framework apps using CoreCLR today.

@davidfowl Ah, that makes sense. Maybe we should make it clearer that this is a full-desktop sample? A customer and I were both confused by it. Maybe we can just put the coreclr-compat in one directory and the desktop-required in another?

The CLI handles that and reports a nicer error.

Confused again -- so this sample is not supposed to require full framework, but does, i.e., this is a real bug?

All of our samples generally support both frameworks. Running will work but building the sample on CoreCLR will not work.

Gotcha. How can we make that clearer to people?

Make it work on both. Properly via this https://github.com/dotnet/corefx/issues/3934

The CLI handles that and reports a nicer error. The samples are supposed to support both.
What is this nice error? All I saw was the original errors copied in this issue.

@joshpearce https://github.com/dotnet/cli


ReadAttachments downloads the files instead of opening them in a new tab

I am part of the team that is developing the SDM plugin. I have implemented Read Attachments feature for SDM Java plugin. In my readAttachment implementation after i fetch the content of attachment from SDM, I set the content in context as below
context.getData().setContent(documentStream);
With this implementation, upon reading the attachment, all the attachments are getting downloaded. Ideally it should open the file in new browser tab for the file types that are supported in browser. In NodeJs SDM plugin file types like .pdf, .txt opens in new browser tabs and .docxs & .xlsx gets downloaded as these file types are not supported in browser tabs.

Hi, using the cds-feature-attachment in the bookshop, the covers (attachments) are opened in a new Browser tab, if I click on the link:

I don't see an error with the cds-feature-attachment here.
Thanks,
Markus

Hi @yashmeet29 ,
I do not implement some logic for this in the attachments plugin and I think it is a browser setting. Does it work for you with the attachments plugin?
Regards
André

Hi @adamandre79, it cannot be a browser setting, because for node-js sdm plugin, attachments are opening in new browser tab.

Hello @yashmeet29 ,
does it work with the Java attachment plugin?
Regards
André

Hi, as discussed in a meeting, this issue is caused by the Fiori UI. It doesn't support eTag handling on streams (content upload) at the moment or it's a bug. A SNOW issue is already opened for it. As workaround just disable eTag support on the filed modifiedBy as shown here: https://github.com/SAP-samples/cloud-cap-samples-java/pull/377/files#diff-d92b8eb29957a03ad9d23b01feff79da293e30183d0b8eac5d893d95632e30dfR39
Therefore I close this issue.
Thanks,
Markus

@yashmeet29 Hi, finally I found the root cause for the behavior that attachments are downloaded instead of opened in a new tab. It is a gap in the OData V4 layer of cds-services and it's not related to cds-feature-attachments.
The gap will be closed with this PR: https://github.wdf.sap.corp/cds-java/cds-services/pull/4459
Thanks,
Markus

@mofterdinger thanks for updating, i will check once the PR is merged.
Regards,
Yashmeet


Lasso won't select nodes if custom nodes are used

Describe the bug
Lasso won't select nodes if custom nodes are used:
https://reagraph.dev/?path=/docs/docs-advanced-custom-nodes--docs
Steps to Reproduce the Bug or Issue
See https://reagraph.dev/?path=/docs/docs-advanced-custom-nodes--docs and add lassoType={"node"}
Expected behavior
Lasso selected nodes
Screenshots or Videos
No response
Platform

Reagraph Version: 4.15.24
OS: Windows
Browser: Chrome
NodeJS version: v18.17.1

Your Example Website or App
No response
Additional context
No response

Ah - you have to set the userData - https://github.com/reaviz/reagraph/blob/master/src/symbols/Node.tsx#L383
Would you mind making a PR for docs for this?


How to push an insomnia json under a directory to my repo?

Hello guys,
Currently my insomnia json file is under a directory, e. g. /solution/source/tools/
and wonder how can I tell the plugin to look under that directory for my insomnia.json file?
I have tried setting the Workspace File Name:
/solution/source/tools/insomnia-wspce.json
./solution/source/tools/insomnia-wspce.json
solution/source/tools/insomnia-wspce.json
\solution\source\tools\insomnia-wspce.json
.\solution\source\tools\insomnia-wspce.json
solution\source\tools\insomnia-wspce.json
but no luck so far, is it possible at this point to do so?
Thank you very much

Hi!
The "workspace file name" field is only intended to specify a custom file name under which your workspace will be stored in the remote repo.
The plugin should automagically be able to sync your workspace, once you've set up the rest.
Best,
Jan


simgear: 2018.2.2 -> 2018.3.1

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/simgear/versions.
meta.description for simgear is: '"Simulation construction toolkit"'.

Checks done (click to expand)

built on NixOS

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

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

found 2018.3.1 with grep in /nix/store/k6cfqmk0lcwa7zb98g3xly14qwrpjhq5-simgear-2018.3.1

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

du listing: https://gist.github.com/02f898997d2d867fa6bbff7da46cf7e7

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

3 total rebuild path(s)
1 package rebuild(s)
1 x86_64-linux rebuild(s)
1 i686-linux rebuild(s)
0 x86_64-darwin rebuild(s)
1 aarch64-linux rebuild(s)
First fifty rebuilds by attrpath
simgear

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/k6cfqmk0lcwa7zb98g3xly14qwrpjhq5-simgear-2018.3.1 \
  --option binary-caches 'https://cache.nixos.org/ https://r-ryantm.cachix.org/' \
  --option trusted-public-keys '
  r-ryantm.cachix.org-1:gkUbLkouDAyvBdpBX0JOdIiD2/DP1ldF3Z3Y6Gqcc4c=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(r-ryantm's Cachix cache is only trusted for this store-path realization.)
Or, build yourself:
nix-build -A simgear https://github.com/r-ryantm/nixpkgs/archive/bc63c138014ef77c14e1ac12296fde9754037cd7.tar.gz

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

cc @7c6f434c for testing.

@GrahamcOfBorg build flightgear

@GrahamcOfBorg build flightgear

I don't know, maybe simgear+flightgear upgrade would work, but test-building a few reasonable combinations of upgrades never got high enough in my TODO list.


Introduce a dependency injection library

lots of dependencies being manually managed, not the best way to do it.

https://github.com/roboguice/roboguice

We're already using AutoFac, would Roboguice make it better?
https://github.com/MediaComplete/MediaComplete/blob/development/MSOE.MediaComplete/MainWindow.xaml.cs#L87

forgot to assign myself to this btw
roboguice actually doesnt exist for c# it was just something to look into.
I've actually been looking at ninject. it seems more popular than autofac, but less optimized too.

Yup, good call. Autofac looks like it'll do the trick

As a note, we lose some of our 'idiot proofing' that we had when this was initially developed, from when we just had a ton of singletons.


An atomic swap install should not automatically build

Rob Van Mieghem, [11 Oct 2018 at 10:56:20]:
we have the atomic swap go project
that also has releases on github
the current atomicswap prefab install installs go , then fetches the sources, builds and installs
is that the correct flow or should an install just fetch the binaries from github ?
and maybe check if a local build exists first before doing that
Reem Khamis, [11 Oct 2018 at 10:59:29]:
in the build method, usually we build from scratch. Which is used mainly for sandboxing, meaning you ensure that golang is installed on the machine and builds the binaries. Install can do indeed fetching from the repo if local build doesn't exist

in prefab its always building then we go to flists & we deploy


Refactor dropdown javascript so it doesn't keep breaking

The way the dropdown activation is implemented (for the primary navigation) means it's very easy to forget to include it on new pages.
Currently it is broken at https://openprescribing.net/tariff/.
Fix it there, in a manner that makes it harder to screw up again in future.

Previously fixed by including the entire openprescribing.js script.

mentioned by a user via email yesterday

Fixed in #689


Total amount of voters does not match how many are being paid.

Currently I have 7 active voters who I must pay, but the script is indicating that there are only 6 in the second option of Send Payment.
https://gyazo.com/8283419496b5a4d69d6505ed1f5c5828

the missing voter is the one that just voted for you. You have fee deduction to true, meaning if the voter covers the fee - his payout amout is negative....
Let's say he earned 0.00223334 ARK - 0.1 fee = NEGATIVE PAYOUT... so he is not listed as he cannot receive the money...
To pay small voters set your fee deduction to false


Make it easier to add components

For the reference component, just need a simple menu item. This will also add a starting layer component as a child of the reference component's object.
For layers, add 2 buttons to the top: add layer above, add layer below.

And those layer buttons should create new game objects.


TypeError: db_type() got multiple values for keyword argument 'connection'

Hi, I had this error in Django 1.3 with djangotoolbox and AppEngine because inside JSONField.db_type you are not passing the 'connection' param as a keyword argument, here's a fragment of the stack-trace:
File "/.../django/db/models/base.py", line 462, in save
	self.save_base(using=using, force_insert=force_insert, force_update=force_update)
File "/.../django/db/models/base.py", line 573, in save_base
	result = manager._insert(values, return_id=update_pk, using=using)
File ".../django/db/models/manager.py", line 195, in _insert
	return insert_query(self.model, values, **kwargs)
File "/.../django/db/models/query.py", line 1438, in insert_query
	return query.get_compiler(using=using).execute_sql(return_id)
File "/.../dbindexer/compiler.py", line 38, in execute_sql
	return super(SQLInsertCompiler, self).execute_sql(return_id=return_id)
File ".../db/basecompiler.py", line 368, in execute_sql
	db_type = field.db_type(connection=self.connection)
File "/.../django/db/models/fields/subclassing.py", line 28, in inner
	return func(*args, **kwargs)
File "/.../json_field/fields.py", line 102, in db_type
	return super(JSONField, self).db_type(connection)
File "/.../django/db/models/fields/subclassing.py", line 28, in inner
	return func(*args, **kwargs)
File "/.../django/db/models/fields/subclassing.py", line 28, in inner
	return func(*args, **kwargs)

for some reason, inside subclassing.py, django 1.3 and djangotoolbox's indexer is messing with the connection param when calling the following function:
def call_with_connection(func):
    arg_names, varargs, varkwargs, defaults = getargspec(func)
    updated = ('connection' in arg_names or varkwargs)
    if not updated:
        warn("A Field class whose %s method hasn't been updated to take a "
            "`connection` argument." % func.__name__,
            DeprecationWarning, stacklevel=3)

    def inner(*args, **kwargs):
        if 'connection' not in kwargs:
            from django.db import connection
            kwargs['connection'] = connection
            warn("%s has been called without providing a connection argument. " %
                func.__name__, DeprecationWarning,
                stacklevel=2)
        if updated:
            return func(*args, **kwargs)
        if 'connection' in kwargs:
            del kwargs['connection']
        return func(*args, **kwargs)
    return inner

I fixed it using this diff but I haven't tested it with other versions

I meet this problem again.
I'm using the version 1.3 and pymssql to connect with sqlserver.
It can create table but put errot when inert values...
as:TypeError: db_type() got multiple values for keyword argument 'connection'
my code is:
from Blog.models import *
import datetime
p = Person(p_date=datetime.datetime.now(),pid='003',name='summer',address='caidian',vince='hubei')
#p = Reporter(full_name='wuhan')
p.save()
#print Person.objects.all()


Endless spam about Git extension. Can't remove due to nonexistant "GitHub" dependency

VSCode Version: 1.47
OS Version: Win 10 (not WSL)

Steps to Reproduce:

Open any project
"hey, you need a different git extension..."
Try to disable git
4 "Cannot disable extension "Git", Extension "GitHub" depends on this.
5 Reasonably sure I don't have "GitHub"

Failing that, is there some code I can patch out to make it permanently shush?
(Getting Rider flashbacks :D)

Does this issue occur when all extensions are disabled?: Yes/No
Not applicable.

Cheers :)

What does the @builitin search term show? Any Git-related ones? Any of them disabled?

"hey, you need a different git extension..."

Can you show me this notification?

Hi, long story short the list would not scroll as far as the builtin plugins without collapsing a few other things ("programming languages", "themes", etc - I toggled them a few times and list expanded properly) I wish I had a pre-screenshot to show, but I only have some of other sections.
Possibly related?
(happened once or twice)

For clarity's sake this was the message, but I'm happy to close this one. Thank you both for the help.


Flagged as virus

Chrome flagged the .exe file as a virus. There was no issue with the previous versions.

false positive, ignorable


Fix date for CVE-2019-6338 and CVE-2019-6339

Just noticed that the year was wrong on the last Drupal CVE files. Probably does not matter that much, and very quick to do so, right after new years :)
Anyway, here is a PR fixing that up.

It does matter actually, thank you.


Adding Ziti to Landscape

Ziti Logo and Landscape Details
Pre-submission checklist:
Please check each of these after submitting your pull request:

[x] Are you only including a repo_url if your project is 100% open source? If so, you need to pick the single best GitHub repository for your project, not a GitHub organization.
[x] Is your project closed source or, if it is open source, does your project have at least 300 GitHub stars?
[x] Have you picked the single best (existing) category for your project?
[x] Does it follow the other guidelines from the new entries section?
[x] Have you included a URL for your SVG or added it to hosted_logos and referenced it there?
[x] Does your logo clearly state the name of the project/product and follow the other logo guidelines?
[x] Does your project/product name match the text on the logo?
[x] Have you verified that the Crunchbase data for your organization is correct (including headquarters and LinkedIn)?
[x] ~5 minutes after opening the pull request, the CNCF-Bot will post the URL for your staging server. Have you confirmed that it looks good to you and then added a comment to the PR saying "LGTM"?

Build failed because of:
item Ziti has an unknown key: desciption

Deploy preview for landscape failed.
Built with commit eeccbd67d9ff43ee570e0cfce5421a90d0734476
https://app.netlify.com/sites/landscape/deploys/5ea9d683dbe37a0006f0ebbe

Build failed because of:
Ziti  has a repo_url http://github.com/netfoundry which does not look like a good github repo url

LGTM

Bummer. Ok. Thanks, for the heads up @shivaylamba. We'll revisit when we have 300 stars.


Multi-dimensional support

I think it's ready
https://github.com/raybellwaves/xskillscore/issues/8
I think when you call xr.apply_ufunc, it automatically rolls the axes so I just had to pass in the right negative numbers to axis kwargs https://xarray.pydata.org/en/stable/generated/xarray.apply_ufunc.html
Core dimensions are automatically moved to the last axes of input variables before applying func, which facilitates using NumPy style generalized ufuncs [2].

A quick sanity check
import numpy as np
import xarray as xr
from xskillscore import mae

ds = xr.tutorial.open_dataset('air_temperature').isel(time=[0, 1, 2],
                                                      lat=[3, 4, 5],
                                                      lon=[6, 7, 8])
ds['ref'] = xr.concat((
    ds['air'].isel(time=i) + i
    for i in range(len(ds['time']))
), 'time')

print('test diagn\n\n')
mae(ds['air'], ds['ref'], ['time'])
for i in range(3):
    np.mean(np.absolute((ds['air'].isel(lat=i, lon=i).astype(float) -
                         ds['ref'].isel(lat=i, lon=i).astype(float))))

print('test time\n\n')
mae(ds['air'], ds['ref'], ['lat', 'lon'])
for time in ds['time']:
    np.mean(np.absolute((ds['air'].sel(time=time).astype(float) -
                         ds['ref'].sel(time=time).astype(float))))

output
test diagn
<xarray.DataArray (lat: 3, lon: 3)>
array([[1., 1., 1.],
       [1., 1., 1.],
       [1., 1., 1.]], dtype=float32)
Coordinates:
  * lat      (lat) float32 67.5 65.0 62.5
  * lon      (lon) float32 215.0 217.5 220.0
<xarray.DataArray ()>
array(1.)
Coordinates:
    lat      float32 67.5
    lon      float32 215.0
<xarray.DataArray ()>
array(1.)
Coordinates:
    lat      float32 65.0
    lon      float32 217.5
<xarray.DataArray ()>
array(1.)
Coordinates:
    lat      float32 62.5
    lon      float32 220.0

test time
<xarray.DataArray (time: 3)>
array([0., 1., 2.], dtype=float32)
Coordinates:
  * time     (time) datetime64[ns] 2013-01-01 ... 2013-01-01T12:00:00
<xarray.DataArray ()>
array(0.)
Coordinates:
    time     datetime64[ns] 2013-01-01
<xarray.DataArray ()>
array(1.)
Coordinates:
    time     datetime64[ns] 2013-01-01T06:00:00
<xarray.DataArray ()>
array(2.)
Coordinates:
    time     datetime64[ns] 2013-01-01T12:00:00

[x] make correlations accurate
[x] update test_np_deterministic
[x] do more sanity checks
[x] update np_deterministic docs

@ahuang11 I am a bit unsure regarding the aim of your PR.
So you want to apply a metric over two dimensions? When is that needed? I lack the use case here.
Well maybe it can be useful to apply a metric over dims ['initialization','member'] for pearson_r with ensemble mean forecasts and several ensemble members as verification. Is that your goal here?

Yes. Also with lat and lon, leaving only a time or tau dimension to see when a model drops below 0.6 corr.

Thanks @ahuang11. I can see a use case for this such as doing skill metrics over the NINO3.4 region (lat and lon) at one time stamp, for example.
@aaronspring any comments before this goes in?

Mind adding an example in the README?
Something like
# You can also specify multiple axes
r = xs.pearson_r(obs, fct, ('lat', 'lon'))

Cheers @ahuang11 !


valgrind: try fixing on darwin

Trying to fix #94706 without having a macOS.

@GrahamcOfBorg build valgrind


Setup admin and create models for the questionnaire.

Create models for questions, answers and categories.

Hello, @TheInspiredConjurer I will be working on this issue.

Sure, go ahead