Array as argument fails

Looking at the graphql spec, this is no indication that this is officially supported or not but I have a use case where I would like to pass an array as an argument to a resolver. Currently, I'm getting a TODO panic error when I do this:
https://github.com/neelance/graphql-go/blob/3b7efd5cb6e73337e26a67ca05750b6e1b02320e/internal/exec/exec.go#L315
As far as I can tell, that type switch needs to be able to handle a *common.List item.
Here is my use case:
{
  approvals(status: [PENDING, APPROVED]) {
    type
    title
    amount
    attachments
    submitter {
      firstName
      lastName
      title
    }
  }
}

This also fails in the same way if an array is a field on an input argument as well.

I think list is supported as input value. from spec

Field and directive arguments accept input values of various literal primitives; input values can be scalars, enumeration values, lists, or input objects.

@neelance can you give me some direction on how to fix this error? I'm happy to contribute. Also, I'm currently blocked on this.

See my comment on #21. Just tell me if you're still stuck, I'll then give it a try myself.

@neelance I'm pretty stuck. I'm having a hard time coming up with an elegant solution.

As a temporary work around... I have made this awful change in my local version:
line 323:
case *common.List:
	fe.fieldPacker = &slicePacker{
		sliceType: sf.Type,
		nonNull:   nonNull,
        }

line 775:
type slicePacker struct {
	sliceType reflect.Type
	nonNull   bool
}

func (e *slicePacker) pack(value interface{}) reflect.Value {
	v := reflect.New(e.sliceType).Interface()
	b, _ := json.Marshal(value)
	json.Unmarshal(b, &v)
	s := reflect.ValueOf(v)
	if e.nonNull {
		s = reflect.Indirect(s)
	}
	return s
}

It turned out to be a bit more work than I initially expected. Please give it a try and tell me if you see any issues. Thanks for trying to contribute with that PR though!

Thank you! I'll test and let you know if I find any issues.

@neelance I'm still getting the panic error when I have an input item that has a field that is an array. I'm hitting the same  "TODO" panic because the makePaker type switch doesn't have a case for *schema.Object. Can we re-open this issue? Or would you prefer that I create a new one?

@nicksrandall I think you might be using a type (object) type instead of an input type. I've added a proper error message for that case via fff173b.


Resolve #400

Resolve #400 Duplicate routes being created

Coverage decreased (-0.01%) to 18.952% when pulling 6a2c3c98a3f95bad06443c919139604cb66709f8 on mhagnumdw:master into 0f63e738350301ee246b284e590c5dad519e8f58 on decebals:master.

Thanks!


No unchanged relevant lines lost coverage.
Overall coverage increased (+0.02%) to 99.247%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

exec_helpers/exec_result.py
18
19
94.74%

Totals

Change from base Build 390:
0.02%

Covered Lines:
1055

Relevant Lines:
1063

💛  - Coveralls


Chat screen rotates and disappears

Had something weird happen last ngiht.  in this vod https://www.twitch.tv/videos/398258818 at 33:33 I was teleporting aruond my vrhome home, and lost the chat overlay.. Seems it rotated so much that it just disappeared, which makes no sense, since it should not have rotated at all.

I've noticed this myself in some cases - it appears some games reset something which make the overlay's rotation being off. The reason if disappeared is that SteamVR will hide the overlay if it's rotated in a way you can't look at it anyway.
Will look into it in the next bug hunt :)


genesyscloud_group - Roles

Hi Team -
In Genesys Console UI - we can see toggle button for Enable Roles ON / OFF , where we assign any roles to the Group via CX-As-Code this button getting turned off. also need to know which parameter will help me to set ON via CX-As-Code. ?

Hi @saravanakumar-rogers,
It appears that this behaviour isn't exposed by our API but I will double check with the team responsible and get back to you.

Hi @saravanakumar-rogers,
This isn't exposed via our API. The best way to make the relevant product manager aware of this is to create an idea on our ideas portal. It may be picked up then and added to a future release of the API.

thank you


Working offline and on-prem

I'm working in a closed network with no outside access, I took a look at the code and all the js dependencies seem to load through a cdn which means I can't use this library.
Is there any solution to this? Can we have all the dependencies (also the deck.gl ones) baked into the library itself (like plotly does with maplibre)?

@vayoa Yes, this would be possible. I did it this way to keep the js bundle size as minimal as possible. Do you use Shiny or the ipywidget?

I use both ipywidgets and streamlit

So how would this work?

@vayoa I need to change some stuff in the code.


Reworks the KOTS config to be more opinionated

TL;DR
Simplifies the KOTS admin screen by asserting more opinions
Details
Makes the following updates to the KOTS config screen in hopes
of simplfying it:

Avoids asking about NGINX. It's used for all deployments which
allows for always specifying ClusterIP as the service type
for the Slackernews service. This means only one prompt for
the service type and one less option around NGINX.

Uses file upload for the TLS certificate fields. Also makes it
explicit whether the install generates the certificate or the
user supplies it. I used this change as an opportunity to move
the generation of a cert into the HelmChart object.

Migrates the admin users and domain to a "Application Core"
configuration group. I don't love the name, so would love
additional suggestions there.

Breaks out TLS and Ingress options into their own groups for
readablity. A bit of a personal preference to do it this way
(kind of like the upload vs. textarea thing for the certs) but
I feel like it breaks up the page a bit more and makes it
friendlier.

Moves the database config to the bottom. It felt odd that the
first thing I was asked for was how I wanted to handle the
database. So I tried this instead.

The goal of these change is twofold: to improve the UX for a user
running an install with KOTS, and to show our vendors how the KOTS
config can be used to assert their opinons on configuration rather
than just parroting the Helm values.

Here's a quick loom of what this looks like before/after and my thinking.
https://www.loom.com/share/36eb4a4bdf7f49f6bb04bf9d97bc6d17

Couple of additional tweaks:

Added validation
Fixed broken HelmChart kind


Upgrade to supported .NET release: .NET 7.0 EOL as of May 14, 2024

.NET 7 is EOL as of May 14, 2024. For long term compatibility, .NET 8 LTS would have long term support going on until Nov 10, 2026.

You're absolutely right, I wanted to do that for some now. Thank you.


Remove references to nodejs in bootstrap/cibuild

:fire:

Unfortunately you need these for asset compilation. I think.


How to de-noise child resources?

Hello,
Sometimes, a resources belong to a parent resources (e.g., an Azure Machine Learning compute instance, which is associated to an Azure Machine Learning workspace). I couldn't find a way to make this de-noising tool work on such cases (though it is working flawlessly on "regular" resources).
Here is an example (the enableBatchPrivateLink and updateStatus properties are noise and I'd like to get rid of them):

I have tried to add the following lines to az-deployment-denoise.json, but to no avail (I replaced {AML_WORKSPACE_NAME} with the real name of the Azure Machine Learning workspace):
{
  "providerNamespace": "Microsoft.MachineLearningServices",
  "resourceType": "workspaces/computes",
  "propertyPath": "properties.properties.enableBatchPrivateLink"
},
{
  "providerNamespace": "Microsoft.MachineLearningServices",
  "resourceType": "workspaces/{AML_WORKSPACE_NAME}/computes",
  "propertyPath": "properties.properties.enableBatchPrivateLink"
}

Do you know how de-noising these child resources can be done?

@thomasninane
Hi,
Thank you for reaching out.
This tool assumes and parses that the format of the resource ID as follows:
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
In your case, the resourceType and resourceName are parsed as:

resourceType = workspaces
resourceName = {AML_WORKSPACE_NAME}/computes/{CHILD_RESOURCE_NAME}

To achieve the expected behavior, you can use the following configuration to filter the output accordingly:
{
  "providerNamespace": "Microsoft.MachineLearningServices",
  "resourceType": "workspaces",
  "resourceNameRegex": ".+/computes/.+"
  "propertyPath": "properties.properties.enableBatchPrivateLink"
}

If this configuration does not take effect, could you please share the output of the following command with any sensitive information masked?
az deployment group what-if --no-pretty-print

Hello @ottijp,
The provided code snippet works perfectly. Thanks a lot for the clear explanations and for your assistance on using this great tool.


fixes corner case for 0 words in doc for tf_idf computation

fixes corner case for tf_idf() calculation when document contains 0 words.
This (=zero words in doc) happens to me quite frequently when processing scanned pdf files and something goes wrong with the scan quality.

Thanks. Will it be possible to write a test for this case, to ensure it does not break in the future?

yes. will do.

added test.
weirdly enough (or not?) isnan() does not seem to work for sparse matrices? So the error only gets caught in the dense matrix case.

Thanks. Test failure on nightly is due to the SSL error. Merging.


Inspector's main tooltip and mouse tooltip is hardcoded to an app size of 400x400

Changing the hardcoded 400 to app.width seems to remedy this issue
Fix for #85

This change (and #84) are available in release 1.1.34 on pypi and via our zip download page. Thank you very much for the contributions!


Make treatment kits optional

The treatment kits are nice and all. But id like to make all medkits heal the 008 infection. Could you perhaps add a config to make this possible?

Super late response, but treatment kits have been removed in this new version. The concept of them will return soon in a different form that is more customizable than the previous kits were.


8602 refactor odk codes

Not sure about this style of PORO. Seems best to return form item id instead of item itself so errors happen mostly in parser, but we should talk about it.

One more thing for this PR -- can you remove or implement this:
        context "with earlier odk code style for questionings" do
          xit "should parse the response" do
          end
        end

in spec/models/odk/response_parser_spec.rb?
Thx!!!


Support use as a non-extern webots controller.

The resulting jar can be copied into the controllers folder of a webots project (e.g. RobotCodeSimulator/Webots/controllers) and then selected as the controller for the robot from within Webots. This eliminates the need to manually start the controller.

Thanks for the "extra shadowJar" fix. I missed that it did that when it merged.


Suppress OSError in tmpfile

In https://github.com/dask/distributed/pull/5361, I'm proposing we deprecate the tmpfile utility in distributed in favor of using the upstream tmpfile utility here in dask. This change revealed an edge case (on Windows) where an OSError can be raised when we call shutil.rmtree in tmpfile (see this CI build for an example). This PR proposes we suppress that exception (which was already done in distributed) similar to how we currently suppress(OSError) when we call os.remove in tmpfile.
cc @jsignell for thoughts

Sorry I missed the ping. This is great :)


statistic error

Hey , all right done with miningcore , and it's running :D
but on ste page  , the statistic is
Network's Hash Rate
0 H/s
but in
Network Difficulty
3.23494 P
it's updated ..
where is the issue ?
thank you

Please attach the json output at /api/pools/.

uhm .. 404 Not Found

Your JSON output suggested that networkHashrate is 0. Nothing wrong at the UI. Please report this bug at miningcore.


fix: log context for api

Empirically verified that context.X isn't in the output
Didn't dig into pino-context code, but used trial-and-error/process of elimination to see under what situations it is logged in the output: using addLogContext after all the other middleware seems to work

supaglue-api-1          |     context: {
supaglue-api-1          |       "applicationEnv": "production",
supaglue-api-1          |       "applicationName": "My Application",
supaglue-api-1          |       "applicationId": "4acf8358-db1f-4dfa-8c3c-357106afc1a7",
supaglue-api-1          |       "orgId": "e7070cc8-36e7-43e2-81fc-ad57713cf2d3"
supaglue-api-1          |     }

Test Plan
[Describe test plan here]
Deployment instructions
[Add any special deployment instructions here]

addressed comment. merging


User-on-boarding downgrade angular version 14 -13

Describe the bug
User-on-boarding downgrade angular version 14 -13
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.

@yeshamavani this is resolved right?


Add documentation  Guide attributes in multi-layer plot

Hi @dcjones
This PR adds documentation for using Guide attributes (e.g. title) in a multi-layer plot.
It seems necessary to update the documentation in view of misleading information on various websites like:
http://stackoverflow.com/questions/21721344/how-to-add-legend-in-a-graph-when-using-package-gadfly-jl-in-julia

Thanks!


hi ,where to find "ImportError: cannot import name 'hparam_pb2' from 'model_search.proto' (unknown location)"

https://github.com/google/model_search/issues/3

Having the same issue.

Did you compile all the proto files by using the protoc compiler?

Did you compile all the proto files by using the protoc compiler?

How would one do that ? This project could really use some installation instructions...


COMException with 'STG_E_FILEALREADYEXISTS' should also consider as exception or normal status?

https://github.com/dahall/Vanara/blob/bd707099f89d1b7a6436ccb61a97a652cc0ce1d2/Windows.Shell.Common/ShellProperties/ShellItemPropertyStore.cs#L147
It might throw COMException with 'STG_E_FILEALREADYEXISTS' when trying to get 'System.FileOfflineAvailabilityStatus' property from OneDrive files
StackTrace:
   At Vanara.PInvoke.Shell32.IShellItem2.GetPropertyStore(GETPROPERTYSTOREFLAGS flags, Guid& riid)
   At Vanara.Windows.Shell.ShellItemPropertyStore.GetIPropertyStore()
   At Vanara.Windows.Shell.ReadOnlyPropertyStore.Run[T](Func`2 action)
   At Vanara.Windows.Shell.ReadOnlyPropertyStore.TryGetValue[TVal](PROPERTYKEY key, TVal& value)
   At Vanara.Windows.Shell.ReadOnlyPropertyStore.TryGetValue(PROPERTYKEY key, Object& value)
   At Vanara.Windows.Shell.ReadOnlyPropertyStore.get_Item(PROPERTYKEY key)
   At Vanara.Windows.Shell.ReadOnlyPropertyStore.get_Item(String knownKey)
   At Vanara.Windows.Shell.PropertyStore.get_Item(String knownKey)

What is the expected outcome in this scenario you describe?

What is the expected outcome in this scenario you describe?

I'm not sure what is 'STG_E_FILEALREADYEXISTS' but it passed your exception filter

Doing some research, it appears that error is thrown with the file has not been closed before trying to access its property store. I think the exception should remain exposed as it is an error that prevents the property store from opening.

Also, it looks like you're using the 3.4 prerelease. Thank you for trying it out. Please let me know your experience.

@zhuxb711  Any update? If not, I'll close the issue.

No, thanks


Correct javadocs

Codecov Report

Merging #354 into RTW_6.2.0 will decrease coverage by 0.05%.
The diff coverage is n/a.

@@               Coverage Diff               @@
##             RTW_6.2.0     #354      +/-   ##
===============================================
- Coverage        40.05%   39.99%   -0.06%
+ Complexity        1878     1877       -1
===============================================
  Files              107      107
  Lines            24480    24480
  Branches          4036     4036
===============================================
- Hits              9805     9791      -14
- Misses           12838    12844       +6
- Partials          1837     1845       +8

Flag
Coverage Δ
Complexity Δ

#JDBC41
39.87% <ø> (-0.05%)
1868 <ø> (-3)

#JDBC42
39.87% <ø> (-0.09%)
1870 <ø> (-5)

Impacted Files
Coverage Δ
Complexity Δ

...oft/sqlserver/jdbc/SQLServerPreparedStatement.java
41.45% <ø> (ø)
129 <0> (ø)
:arrow_down:

...l/googlecode/concurrentlinkedhashmap/Weighers.java
8.51% <ø> (ø)
1 <0> (ø)
:arrow_down:

...ncurrentlinkedhashmap/ConcurrentLinkedHashMap.java
42.2% <ø> (ø)
46 <0> (ø)
:arrow_down:

.../microsoft/sqlserver/jdbc/SQLServerConnection.java
45.24% <ø> (ø)
268 <0> (ø)
:arrow_down:

...c/main/java/com/microsoft/sqlserver/jdbc/Util.java
47.27% <0%> (-0.46%)
63% <0%> (-1%)

...m/microsoft/sqlserver/jdbc/SQLServerResultSet.java
27.23% <0%> (-0.42%)
187% <0%> (-4%)

...in/java/com/microsoft/sqlserver/jdbc/IOBuffer.java
44.68% <0%> (-0.31%)
0% <0%> (ø)

...soft/sqlserver/jdbc/SQLServerDatabaseMetaData.java
28.89% <0%> (-0.23%)
46% <0%> (ø)

...rc/main/java/com/microsoft/sqlserver/jdbc/DDC.java
29.21% <0%> (-0.23%)
56% <0%> (ø)

...om/microsoft/sqlserver/jdbc/ReaderInputStream.java
44.94% <0%> (ø)
16% <0%> (ø)
:arrow_down:

... and 5 more

Continue to review full report at Codecov.

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


Currently don't know if the late train status message will always be longer than 21 letters

Currently, I check the train late information and display it in a red color row by detecting the length of the train status message by the below code. ( length > 21 )
{% for i in range(train_dict[operator]["railways"] | length) %}
    {% if (train_dict[operator]["train_status"][i] | length ) > 21 %}

        {{ train_dict[operator]["railways"][i] }}
        {{ train_dict[operator]["train_status"][i] }}
        {{ train_dict[operator]["time"][i] }}

    {% else %}

        {{ train_dict[operator]["railways"][i] }}
        {{ train_dict[operator]["train_status"][i] }}
        {{ train_dict[operator]["time"][i] }}

    {% endif %}
{% endfor %}

I don't know if there will be late information which length is less than 21 or not.

Change to length of 25


Mzlib Update to 1.0.542 - Averaging crash fix+

Update to most recent version of mzlib which fixes a crash in SpectralAveraging.
Mzlib PR is found at https://github.com/smith-chem-wisc/mzLib/pull/739
Cleaned up GUI switch cases.
Eliminated AverageDdaScansWithOverlap and updated toml format to automaticaly convert old toml's with AverageDdaScansWithOverlap to load in as AverageDdaScans

I feel like we better fix the empty toml thing

When I ran the averaging task, it wrote a blank .toml file in the Task1-AveragingTask folder. Other than that, everything works great

I feel like we better fix the empty toml thing

Took care of this. It will now only spit out the toml if file specific parameters (most likely from a preceeding calibration task) are present for the averaged spectra file


Change project visibility

Repo to change access: https://github.com/orgs/openwallet-foundation/projects/1

we’d like to make the project public, but i don’t seem to have the needed permissions. Maybe it needs to be linked to credo repo first? We transferred it from HL github

@ryjones @TimoGlastra , the name of this project might be associated with the official development of the EU Digital Wallet. I recommend adding a description to clarify its purpose and its connection to the European Digital Identity Wallet (EUDIW)."

Sure @skounis. I'll rename it to Credo - ARF Compliance and add a short description

I've updated it now, please let me know if this looks good to you @skounis

@TimoGlastra Thank you, it looks perfect.


Fix actions runner group

coverage: 4.439%. remained the same
when pulling eeccde30c4c04fbab89c6e629c6f656d207a6aaf on fix-actions-runner-group
into f0cc4a805a52077b2bcf995c2378ff2c86e6caa4 on main.


[Question] About when app is uninstalled

I want to use this library to save device unique id (like ANDROID_ID). In PlayFab, there is a log-in method that use the unique id and the doc recommends to save it in key chain in case of iOS because the id is changed after app uninstalled. (see best practice section in https://api.playfab.com/docs/tutorials/landing-players/best-login)
As long as I understand, the shared preference is gone after app uninstalled unless the backup is enabled (and it's enabled by default). My question is how about key chain in iOS? the data is gone after app uninstalled?

I'm not an expert on iOS, but I think when your user uninstalls the app, the data from keystore will be destroyed. 🤔

On iOS encrypted data persists.

Yes, for most versions of iOS, the keychain data persists. Further reading with some possible workarounds mentioned here: https://forums.developer.apple.com/thread/36442


Do not truncate hotkeys out of waybar

Idk why I have all these indicators I don't care about taking up so much space, but either way the clock shouldn't be pushed off, truncation should happen somewhere else:

Hi there! What is you resolution? I thought about reducing the amount of indicators too, but for most of them I am not sure whether I really don't want them. To be honest: most my screens are very high res (2k or even more), so this isn't really a problem for me 99% of time.
Regarding truncating: I don't know that waybar supports that. If it does, this surely would be a great thing to do. Do you know anything into that direction?

Framework Laptop - idk why the scale factor is set to 2 though, that's not part of my config :thinking:
❯ swaylist outputs
Output eDP-1 'Unknown 0x095F 0x00000000' (focused)
  Current mode: 2256x1504 @ 59.999 Hz
  Position: 0,0
  Scale factor: 2.000000
  Scale filter: nearest
  Subpixel hinting: unknown
  Transform: normal
  Workspace: 3: 
  Max render time: off
  Adaptive sync: disabled
  Available modes:
    2256x1504 @ 59.999 Hz
    2256x1504 @ 47.998 Hz

I have no idea what waybar can do, I just thought truncation would be a sensible option in doubt.

Would you mind giving it a try with a scaling of one?
this is my not too different notebook screen:
$ swaymsg -t get_outputs
Output eDP-1 'Unknown 0x1303 0x00000000' (focused)
  Current mode: 2160x1350 @ 59.744 Hz
  Position: 0,0
  Scale factor: 1.000000
  Scale filter: nearest
  Subpixel hinting: unknown
  Transform: normal
  Workspace: 3:  
  Max render time: off
  Adaptive sync: disabled
  Available modes:
    2160x1350 @ 59.744 Hz
    2160x1350 @ 30.005 Hz

there is kinda looks like its supposed to:

A scaling of 1 seems quite small tbh, but 1.5 also works fine.
But I'd love to solve the root issue at some point as well ;)

Still somewhat relevant, for example if I set scaling to 2 (sometimes needed for accessibility) and go into resize mode, the hotkeys are truncated.

is this perhaps something that could be done via the waybar style.css? iirc there are sections like #modules-center etc. that you could give a min-width for example.


Emit top-level constants

Scalar top-level constants are in, collection-valued constants still need work.


Update ProtocolVersion.ts

Add extra hex

This is C4 change I will merge in a separate branch named "C4-0x785a" (not in master)


Change the log file name in unit-test to save it on the CI server as …

…an artifact in case the unit-test fails. We need this to investigate an intermittent failure of this test.

@AndyGerlicher if this passes, could you please check this in? With this change, when the TestBinaryLoggerRoundtrip fails next time, I'll be able to grab the corrupt log from the CI and this will tell me exactly where in the file the corruption is happening. Or if the .zip format is corrupt I'll know it's around the GZipStream implementation on Linux. // cc @cdmihai

It passes but I don't see the output at https://ci2.dot.net/job/Microsoft_msbuild/job/master/job/_Ubuntu14.04_CoreCLR_prtest/503/artifact/bin/Debug-NetCore/Unix_Deployment_Test/

You'll only see it if it fails ;) File is deleted at the end of a successful test.

@dotnet-bot test Ubuntu14.04 Build for CoreCLR please

@dotnet-bot test Windows_NT Build for Desktop please

@dotnet-bot test Ubuntu14.04 Build for CoreCLR please


Scala 2.12 Support

Scala 2.12 was just released. I think it might be a good idea to publish a 2.12 artifacts.

This is not possible at the moment:
[warn]  Note: Unresolved dependencies path:
[warn]          com.geteventstore:eventstore-client_2.12:3.0.5
[warn]          com.typesafe.akka:akka-http-experimental_2.12:2.4.12
[warn]            +- pl.newicom.dddd:eventstore-akka-persistence_2.12:1.3.2-SNAPSHOT
[warn]            +- pl.newicom.dddd:http-support_2.12:1.3.2-SNAPSHOT
[warn]          com.geteventstore:akka-persistence-eventstore_2.12:2.3.0
[warn]            +- pl.newicom.dddd:eventstore-akka-persistence_2.12:1.3.2-SNAPSHOT
[warn]          com.typesafe.akka:akka-http-testkit_2.12:2.4.12
[warn]            +- pl.newicom.dddd:http-support_2.12:1.3.2-SNAPSHOT

We need to ask @t3hnar to update the EventStore JVM Client and the Akka Persistence Plugin.

@pawelkaczor as soon as play-json released


[MATLAB] Implement a DatetimeTypeValidator class that validates a MATLAB cell array contains only values of zoned or unzoned datetimes

Describe the enhancement requested
Adding this DatetimeTypeValidator class is a step towards implementing the arrow.array.ListArray.fromMATLAB() method for creating ListArrays whose ValueTypes is a timestamp array from a MATLAB cell array.
This validator will ensure the cell array contain only datetimes or unzoned datetimes.
Component(s)
MATLAB

take


Hierarchical verilator model

The verilator testbench is faster for cycle-accurate software benchmarks than VCS/VSIM simulators. Occamy is not yet fully verilator compatible. Verilating this many cores will require a lot of RAM and will likely not work.
This was the motivation to enable hierachical mode inside the Snitch cluster. Current effort can be seen in the verilator-hierachical branch.
Problems

hierachical designs don't support parameter type parameters. This was mitigated by adding a wrapper around snitch_cc and passing the structs by their bit with and re-generating the structs before instantiating snitch_cc

Current progress
The model compiles but the first instructions to the FPU subsystem are not retired
fcvt.d.w ft0, zero             #; ac1  = 0
fcvt.d.w ft1, zero             #; ac1  = 0

The VSIM testbench works with the modifications enabled (adding ``define VERILATORand runmake bin/snitch_cluster.vsim). Instructions offloaded to outside snitch_cc work too (div/mul). The fcvtinstruction is offloaded to the FPU-SS that resides insidesnitch_cc` which due to the hierarchical mode cannot be inspected in the generated VCD.
This issue should serve as an entry-point for someone interested in picking this up again.

cc @SamuelRiedel


How can i build private version/local version of react-native?

Description
Our react-native android app crash for HTTP2 issue, see Disable HTTP2 for android?
I want to patch it with private fix before official solution(we are under pressure of release, can't wait too long for official fixing now).
The patch will happen in node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/network/NetworkingModule.java
But it seems the file won't get compiled after i change it.
Help wanted
How can i build react-native app with private patch for NetworkingModule.java?
Additional Information

React Native version: 0.38
Platform: Android
Operating System: Mac

The instructions to build the Android library on your own are at https://facebook.github.io/react-native/docs/android-building-from-source.html

@facebook-github-bot answered


Full-Custom Memory Compiler using Laygo2

Title: Process-Portable Full-Custom Memory Compiler using Laygo2 with Yosys Integration.

Can you move this to its own folder? @Park-Hyung-Joo

Sorry for the late response. The notebook moved into DFFRAM_laygo2/


[DOC] TextField example shows strange readonly input

Documentation issue
https://refine.dev/docs/api-reference/mui/components/fields/text/

TextField example looks like readonly input. When you click on it, it shows the cursor but you cannot enter anything. This looks strange and I don't think this is an intended behavior.
Describe the thing to improve
TextField example should just display text without the readonly input.
Describe the solution (optional)
No response

Hi @Mikilll94, thanks for the issue.
TextField It uses Material UI  component. It means this behavior comes from MUI and we should not change MUI's intended behavior.
If you don't like it, you can swizzle to customize it or you can open an issue on MUI.

@alicanerdurmaz Just click on this input. You will that it is looking strange. I assume that we want just a normal text cell like i.e. here https://refine.dev/docs/api-reference/mui/components/inferencer/#list

@Mikilll94 are you talking about weird borders? you're right, it looks ugly. we will look at this. Thank you 🙏

@alicanerdurmaz Just click on this input. You will that it is looking strange. I assume that we want just a normal text cell like i.e. here refine.dev/docs/api-reference/mui/components/inferencer/#list

@Mikilll94 are you talking about weird borders? you're right, it looks ugly. we will look at this. Thank you 🙏


chore: clean out core/oracle.json

Can you add a label to run this with a VPN and the core market config?


Totally unclear description

If you own extensions that use custom project or item templates, you need to update your extensions. This topic explains what you must do.

But actually the page says nothing about what I must do and how to update a vsix project for VS2017.
You just put samples of .vstemplate and .vstman from 2015 and probably 2017 (but called it 2015) without any description.
"Here is the .vstman file .. that resulted from the rebuilding of the VSIX project" - why should I care of .vstman if it's built by a tool?.
You said nothing about changes in vstemplate schema (if there're someones), nothing about changes in .vsixmanifest (Assets/Asset) (if there're someones).
In my case I have a vsix project with custom item templates but while it's built with vs2017 sdk the vsix doesn't contain templates anymore. So obviously there're breaking changes. And they are not documented anywhere.

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

ID: ef3fd207-345e-db60-1731-37d200753677
Version Independent ID: e1b7b843-548d-a1b3-9394-f71ed5881aee
Content
Content Source

@gregvanl this is an extensibility topic. Can you take a look?

It's all a bit bamboozling, admittedly. Came across the page referenced from the answer in the link of my comment after exporting a project to a template which was done from the file menu. No VSIX.
The docs may want a rejig. From a single user (no team) things are a bit awkward managing templates. Perhaps feature request for renaming templates would help?
Thanks.

Thanks for submitting your feedback and we apologize for the delayed response.  Due to current resourcing and substantial extensibility changes we are currently working on that will result in significant, structural doc changes, we are closing this lower priority issue.  We will return to this issue on a later date and address it based on it's relevance after those extensive extensibility updates are made. Feel free to comment here as necessary.


evol: update of i18next and react-i18next version to fix typescript

Fix the following error when using WithTranslation interface
Property 't' does not exist on type 'Readonly<Props> & Readonly<{ children?: ReactNode; }>'.
Typescript user need to be at least at version  17.0.9 from the README of the react-i18next library
https://github.com/i18next/react-i18next/blob/master/README.md#requirements

Updates to package.json must be accompanied by updates to lockfile(s).

Needs a semantic title. Otherwise ready for merge.


Update guide-line

Minimize the lakehouse docker-compose to work with Spark & Delta Lake newest version


Document the difference between a host and a system metric

This issue is intended to discuss the difference between the host and system namespace. The outcome should be a clear description of when which ns is used.
This question was raised during the Aug 2, 2023, 08:30 PT SIG MTG and needs to be answered to continue on this PR.

cc @ChrsMark

just in case it helps, there was a somewhat related prior discussion here: https://github.com/open-telemetry/opentelemetry-specification/pull/2388

We had a discussion about this during the August 30th System Semantic Convention WG meeting. The main points were the following:

Keep using host.* namespace for resource attributes like host.id, host.name etc. This means that the PR which only adds "static" host's resource attributes is good to go from this perspective.
For metrics we can keep using the system.* namespace whenever we collect metrics from the system directly.
For centralized metrics that are collected from outside of the resource's scope (ie container metrics collected centrally for a k8s cluster) we can use resource specific namespace like for example container.*, pod.*, vm.*, instance.* etc. Containers, VMs etc are actually processes for a bare metal host similarly to what a jvm process is. This is also explained at https://github.com/open-telemetry/semantic-conventions/pull/87#discussion_r1282885340 and aligns with https://github.com/open-telemetry/opentelemetry-specification/pull/2388#issuecomment-1057120767.

@mx-psi @dmitryax @kaiyan-sheng feel free to correct me if I miss anything here. If we agree on this we can maybe transfer this conclusion somewhere for future reference (and then close this issue).
cc: @trask

Thanks for the summary @ChrsMark! I think there is agreement within the System semantic conventions WG. Given there has not been any disagreement voiced on this issue, I think we can open a PR to put this in writing somewhere: for (1) and (2) maybe on the README.md of the relevant folders on this repository, while I am not sure as to where to put (3)

Thanks @mx-psi ! I can try to consolidate (1) and (2) in https://github.com/open-telemetry/semantic-conventions/blob/main/docs/resource/host.md and then (2) and (3) (rephrased) in https://github.com/open-telemetry/semantic-conventions/blob/main/docs/system/system-metrics.md.
For (2) and (3) we want something similar to https://github.com/open-telemetry/opentelemetry-specification/pull/2388/files#diff-48ed2e166c485f6f64a1a78251b07248e74e9c2a41cfe24e2950b07a5db196b2R10-R13 which was closed. Actually what we propose here is exactly the opposite with the content of that PR but aligns with https://github.com/open-telemetry/opentelemetry-specification/pull/2388#issuecomment-1057120767.
@trask if you have any suggestions or thoughts on this please let us know :).

@frzifus @mx-psi since was merged I guess we can close this one?


More Accurate ClusterGroup Realization Tracking

Describe the bug
Create a ClusterGroup. In the spec, set a childGroups but do not create the children ClusterGroups. Check the ClusterGroup status, it gets GroupMembersComputed condition.
To Reproduce
$ cat parent-cg.yaml
apiVersion: crd.antrea.io/v1alpha3
kind: ClusterGroup
metadata:
  name: parent-cg
spec:
  childGroups:
  - non-existent-child

$ kubectl apply -f parent-cg.yaml
clustergroup.crd.antrea.io/parent-cg created

$ kubectl get cg -o yaml parent-cg
apiVersion: crd.antrea.io/v1alpha3
kind: ClusterGroup
metadata:
  annotations:
    kubectl.kubernetes.io/last-applied-configuration: |
      {"apiVersion":"crd.antrea.io/v1alpha3","kind":"ClusterGroup","metadata":{"annotations":{},"name":"parent-cg"},"spec":{"childGroups":["non-existent-child"]}}
  creationTimestamp: "2021-11-08T11:45:55Z"
  generation: 1
  name: parent-cg
  resourceVersion: "14617367"
  uid: 6f057bbd-ff02-4562-affc-949050355aa4
spec:
  childGroups:
  - non-existent-child
status:
  conditions:
  - lastTransitionTime: "2021-11-08T11:45:55Z"
    status: "True"
    type: GroupMembersComputed

Expected
Before children groups are actually created, no GroupMembersComputed condition appears in parent group.
Actual behavior
GroupMembersComputed condition is set even if no children groups are created.
Versions:
Antrea 1.2.3

Maybe @Dyanngg could comment? Thanks!


How to migrate server side rendering logic to react router 4 ? (Redux)

I am trying to migrate my server side rendering logic to react router 4.But it seems like there many properties are missing like renderProps.
server.js with Old react-router
app.get('/*', (req, res,next) => {

    // Server Side Rendering Starts
    match({routes:routes(),location:req.url},(err,redirectLocation,renderProps) => {
        if (err) return next(err);

        if (redirectLocation) {
            return res.redirect(302, redirectLocation.pathname + redirectLocation.search)
        }

        if (!renderProps) {
            return next(new Error('Missing render props'))
        }

        const components = renderProps.components

        const Comp = components[components.length - 1].WrappedComponent;

        const fetchData = (Comp && Comp.fetchData) || (() => Promise.resolve())

        const initialState = {}

        const store = createStore(reducer, initialState, applyMiddleware(thunk));

        const { location, params, history } = renderProps

        fetchData({ store, location, params, history }).then(() => {
            const body = renderToString(
                <Provider store={store}>
                    <RouterContext {...renderProps} />
                </Provider>
            )

            const state = store.getState();
            // console.log(state)

            let head = Helmet.rewind();

            res.send(`<!DOCTYPE html>

               ${head.title}
                ${head.meta}
                ${head.link}

${body}

          `)
        })
            .catch((err) => next(err))

    })
});

NewServer.js
    app.get('*',(req,res) => {

        // res.sendFile(path.join(__dirname,'./index.html'));
        const routerContext = {};

        const components = (
            <StaticRouter location={req.url} context={routerContext}>
                <Provider store={store}>
                    <CoolApp/>
                </Provider>
            </StaticRouter>
        )

//I don't Knnow

    });

I don't know how to proceed without renderPorps
This is my Sample Component
import React,{Component} from 'react';
import {Helmet} from 'react-helmet';
import {connect} from 'react-redux';
import * as allPosts from '../Redux/Actions/AllPosts_action'

class Home extends Component{

    renderAllPosts(){
        const {posts} = this.props;

        return(
            posts.postArr.map(({id,title,body}) => {
                return
{title}

            })
        )
    }
    render(){
        console.log(this.props);

        return(

                <Helmet>
                    <meta charSet="utf-8" />
                    <title>My Title</title>
                    <link  rel="stylesheet" type="text/css" href="/static/css/Home.css" />
                </Helmet>
                {this.renderAllPosts()}

        )
    }
}
Home.fetchData = ({store,location, params, history}) => store.dispatch(allPosts.getAllPosts());

const mapStateToProps = (state) => {
  return{
      posts:state.allPosts.toJS()
  }
};

const mapDispatchToProps = (dispatch) => {
    return {
        getAllPosts:() => dispatch(allPosts.getAllPosts())
    }
};

export default connect(mapStateToProps,mapDispatchToProps)(Home)

This is a bug tracker, not a support system. For usage questions, please use Stack Overflow or Reactiflux. Thanks!

@timdorr, it's really stupid! Many of us have no idea how to use in with server side rendering. Your code from docs doesn't work! DOESN"T WORK! Please, give some boilerplate example of server side rendering and react-router 4! Thanks.

@daryn-k what is wrong with server-side example? I'm using it right now and everything is fine

@iNikNik how you use it? Code from docs doesn't work. A lot of confusing incomprehensible things.

@daryn-k Exactly like that:
const context = {}
const markup = ReactDOMServer.renderToString(
  <StaticRouter
    location={req.url}
    context={context}
  >
    <App/>
  </StaticRouter>
)

if (context.url) {
  // Somewhere a `<Redirect>` was rendered
  redirect(301, context.url)
} else {
  // we're good, send the response

}

@iNikNik it's so stupid! stupid! stupid! IT DOESN'T WORK! Understand? Where is store? Where are routes?  You likely forgot to export your component from the file it's defined in."

@iNikNik Okay, I figured out the problem. It's all because of bootstrap. Just removed it and it's ok now.

@daryn-k what's your solution to fetch data in the server side by react-router@v4?

@rdshoep I didn't solve this problem yet

@daryn-k I find out the way they provided. react-router-config

@rdshoep it is not really that way... All you need to do is create routes config like this:
const routes = [
  { path: '/items', load: () => Promise }
]

Important: There is no need to use this config to render your app! You can use Route components from react-router.v4 to render some stuff. This config describes which data needs to be provided to render components for this path!
Then, on a server side you can just use matchPath:
const promises = routes
  // try to mach route and save match info
  .map(route => ({ match: matchPath(req.url, route), route }))
  // filter matched routes
  .filter(matched => !!matched.match)
  // load data
  .map(matched => matched.route.load(/* some url params from matched.match here*/)

Promise.all(promises).then(dataArray=> {
  // do whatever you need with loaded data and then do server render
  const context = {}
  const markup = ReactDOMServer.renderToString(
    <StaticRouter
      location={req.url}
      context={context}
    >
      <App/>
    </StaticRouter>
  )

  if (context.url) {
    // Somewhere a `<Redirect>` was rendered
    redirect(301, context.url)
  } else {
    // we're good, send the response

  }
})

And yeah - that is exactly that docs says - https://reacttraining.com/react-router/web/guides/server-rendering/data-loading

@iNikNik yeah. I think the 'static router' mode to define load data function break app structure.
function routerMatch(cxt) {
    const req = cxt.request;

    const branch = matchRoutes(routes, req.url);

    let params = {};
    //TODO split params for each request
    let components = branch.map(({route, match}) => {
            Object.assign(params, match.params);
            return route.component;
        }
    );

    return {
        components
        , params
        , query: req.query
    }
}

Then through the components array to fetch data before server rendering.
//fetchData.js
//use the component.need node to fetch data.
export function fetchComponentData(store, components, params = {}, query = {}, headers = {}) {
    const needs = components.reduce((prev, current) => {
        return (current.need || [])
            .concat((current.WrappedComponent && (current.WrappedComponent.need !== current.need) ? current.WrappedComponent.need : []) || [])
            .concat(prev);
    }, []);

    return sequence(needs, need => store.dispatch(need({
        params
        , query
        , headers
        , store: store.getState()
    })));
}

const store = configureStore()
    , headers = {'cookie': cxt.get('Cookie')};

fetchData(store, components, params, query, headers)
    .then(() => {
        let context = {};
        const initialView = renderToString(
            <Provider store={store}>
                <StaticRouter context={context} location={cxt.req.url}>
                    <App routes={routes}/>
                </StaticRouter>
            </Provider>
        );

        if (context.url) {
            // Somewhere a `<Redirect>` was rendered
            redirect(301, context.url)
        } else {
            // we're good, send the response
        }
    });

I think this way is better.


Change edit/delete position

When messages are too long get the buttons are hidden.

Was changed, not the ideal but better


TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType

Hello author, due to my poor knowledge of algorithms and limited ability to download datasets，after I successfully run the extract_features.py with only class 5 datasets（"caltech101", 'dtd', 'food101', 'oxford_flowers', 'oxford_pets'）, this error occurs when running main.py in the next step.
The code in main.py has not changed, I‘d like to ask if this error is due to the problem of insufficient datasets or the problem of using the local model?
The error:
Traceback (most recent call last):
File "D:\papercode\DualAdapter_main\main.py", line 326, in
main()
File "D:\papercode\DualAdapter_main\main.py", line 266, in main
assert (os.path.exists(args.config))
File "E:\Anaconda\envs\AD\lib\genericpath.py", line 19, in exists
os.stat(path)
TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType
Here are my other changes to the code in extract_features.py for your reference:
`        for k in k_shot:
        random.seed(1)
        torch.manual_seed(1)

        cfg['shots'] = k
        if set == 'imagenet':
            dataset = ImageNet(cfg['root_path'], cfg['shots'], preprocess)
            val_loader = torch.utils.data.DataLoader(dataset.test, batch_size=16, num_workers=2, shuffle=False)
            train_loader_cache = torch.utils.data.DataLoader(dataset.train, batch_size=16, num_workers=2, shuffle=False)
        else:
            dataset = build_dataset(set, data_path, k)
            val_loader = build_data_loader(data_source=dataset.val, batch_size=16, is_train=False, tfm=preprocess, shuffle=False)
            test_loader = build_data_loader(data_source=dataset.test, batch_size=16, is_train=False, tfm=preprocess, shuffle=False)

            train_tranform = transforms.Compose([
                transforms.RandomResizedCrop(size=224, scale=(0.5, 1), interpolation=transforms.InterpolationMode.BICUBIC),
                transforms.RandomHorizontalFlip(p=0.5),
                transforms.ToTensor(),
                transforms.Normalize(mean=(0.48145466, 0.4578275, 0.40821073), std=(0.26862954, 0.26130258, 0.27577711))])
            train_loader_cache = build_data_loader(data_source=dataset.train_x, batch_size=16, tfm=train_tranform, is_train=True, shuffle=False)`

Have you successfully overcome that? Sorry but I've never encountered this issue on my end.


Error: addMatcher() must implement interface PHPUnit\Framework\MockObject\Matcher\Invocation

I tried to get this to work with PHPUnit 6.4 (since 6.5 is having issues) and kept getting these errors:
There were 2 errors:

foo\BuiltinTest::testTime
TypeError: Argument 1 passed to PHPUnit\Framework\MockObject\InvocationMocker::addMatcher() must implement interface PHPUnit\Framework\MockObject\Matcher\Invocation, instance of phpmock\phpunit\DefaultArgumentRemover given, called in /data/wordpress/wp-content/plugins/zip-recipes/vendor/php-mock/php-mock-phpunit/classes/PHPMock.php on line 79

/data/wordpress/wp-content/plugins/zip-recipes/vendor/php-mock/php-mock-phpunit/classes/PHPMock.php:79
/data/wordpress/wp-content/plugins/zip-recipes/plugins/RecipeIndex/tests/SampleTest.php:15

@hgezim can you test it please with #27 ?


the module is not catching password in xml  format

the module is not catching the password in xml <  password  > format in settings.xml file
< password >abcdefgh</ password >

@domanchi  @KevinHock
we have few repo's which has settings.xml files and the scan is unable to identify the password in it
which is in format < password  >
Could you please check .

Hi @prashpb this sounds like an issue with the core secret detection engine which is https://github.com/Yelp/detect-secrets, I'm going to close this issue in favour of Yelp/detect-secrets#270.


Use FileExtensionHelpers more widely

Description
We are often in need of identifying an item's type, whether it be folder, file, images or anything really.
Currently, we have rogue tests to do this work for us repeated separately in the code. For example when it comes to identify shortcuts :
OpenPath(...) in NavigationHelpers:
path.EndsWith(".lnk", StringComparison.Ordinal) || path.EndsWith(".url", StringComparison.Ordinal);
ToStorageItem(...) in StorageHelpers
if (path.EndsWith(".lnk", StringComparison.OrdinalIgnoreCase) || path.EndsWith(".url", StringComparison.OrdinalIgnoreCase))
FileExtensionHelpers.cs defines a bunch of methods that are cattled to such ends. We should enrich it and make its use wider.
Concerned code
All the codebase.
Gains

Reduction of duplication.
Regrouping of same logic inside a given class

Requirements

FileExtensionHelpers.cs used more when identifying item's type.

Comments
No response

Such helper actually exists : FileExtensionHelpers.
We need to extend its usage.

Pretty sure @gave92 took care of the shortcuts.

#10772 took care of ".url" and ".lnk" shortcuts checks.


Support Flask 1.0.0+

Hello,
I was just about to try using Flask-pundit which looks amazing and exactly what I've been searching for.  However, I'm using Flask 1.0.2 which pip thinks is incompatible with this extension.  I see you already changed the requirements to the new version of Flask, will you be uploading a release soon with this support?
Thanks!

Hi,
I'd be happy to release a version today. I'll update this issue when I do.
Thanks

I just realized that the setup.py also has a "requirements" section pointing to the older Flask, so that will have to be updated too.  Found that out when I tried to install from Git.
Thanks again!

@dbanty I've merged your changes and released a new version. Thanks!


Failed to load dependency...

Process Handle :<PHONE_NUMBER>00188C
Trying to inject...
BlackBone: ManualMap: Mapping image 'xx.dll' with flags 0x0
BlackBone: ManualMap: Loading new image 'xx.dll'
BlackBone: ManualMap: Image base allocated at 0x00000293ACA30000
BlackBone: ManualMap: Performing image copy
BlackBone: ManualMap: Relocating image 'xx.dll'
BlackBone: ManualMap: Loading new dependency 'd3dcompiler_43.dll'
BlackBone: ManualMap: Dependency path resolved to 'C:\WINDOWS\system32\d3dcompiler_43.dll'
BlackBone: ManualMap: Failed to load dependency 'C:\WINDOWS\system32\d3dcompiler_43.dll'. Status = 0x0

Code:
std::cout << "Process Handle : " << hProcess << std::endl;
std::cout << "Trying to inject... " << std::endl;

blackbone::Process injectProc;
injectProc.Attach(hProcess);
if (injectProc.valid())
{
	blackbone::eLoadFlags flags = blackbone::NoFlags;
	injectProc.mmap().MapImage(L"xx.dll", flags);
}

I keep getting the Failed to load dependency error when trying to inject into any process, what does this mean? I've checked the system32 folder and the dll is present.
I've tried changing the flags same issue:
blackbone::eLoadFlags flags = blackbone::ManualImports | blackbone::RebaseProcess;

Sidenote: working using memory map on xtreme injector

Can you post me your test dll?

@DarthTon https://drive.google.com/file/d/0B77HdSIB3VH1dnc5V3FkNWhzSzg/view?usp=sharing

Are you trying to map it using x86 library version?

I've included in my project and I'm building using x64 not sure how you select library version

I've tried creating a basic dll that just outputs a MessageBox on injection and even this basic example fails using Xenos when Manual Mapping does Xenos spit out logs anywhere?

Blackbone log is more complete than xenos'. Have you updated to the latest bbone commit? Weird, because it works totally fine on my machine.

Ok.. MessageBox works on Xenos but not when running through BlackBone manually, I don't get a MessageBox but it says the entrypoint was called. Something weird going on
BlackBone: ManualMap: Mapping image 'HelloWorld64.dll' with flags 0x4040
BlackBone: ManualMap: Loading new image 'HelloWorld64.dll'
BlackBone: ManualMap: Image base allocated at 0x0000017EA1680000
BlackBone: ManualMap: Performing image copy
BlackBone: ManualMap: Relocating image 'HelloWorld64.dll'
BlackBone: ManualMap: Enabling exception support for image 'HelloWorld64.dll'
BlackBone: ManualMap: Vectored hander: 0x0000017EA5A10000
BlackBone: ManualMap: Performing security cookie initializtion for image 'HelloWorld64.dll'
BlackBone: ManualMap: Calling entry point for 'HelloWorld64.dll', Reason: 1

BOOL APIENTRY DllMain( HMODULE hModule,
                       DWORD  ul_reason_for_call,
                       LPVOID lpReserved
					 )
{
	switch (ul_reason_for_call)
	{
	case DLL_PROCESS_ATTACH:
		MessageBox(NULL, "DLL_PROCESS_ATTACH", "caption", 0);
	case DLL_THREAD_ATTACH:
		MessageBox(NULL, "DLL_THREAD_ATTACH", "caption", 0);
	case DLL_THREAD_DETACH:
		MessageBox(NULL, "DLL_THREAD_DETACH", "caption", 0);
	case DLL_PROCESS_DETACH:
		MessageBox(NULL, "DLL_PROCESS_DETACH", "caption", 0);
		break;
	}
	return TRUE;
}

Does attaching via a HANDLE make any difference?

Sorry for spam -  It has to be just tried injecting from PID and it works, is HANDLE attaching working?

I'm so sure it works after this :)

Thanks for help, I pretty sure the problem lies with the handle and not BB then.
I'm using https://drive.google.com/open?id=0B77HdSIB3VH1WTUzWmJRdzRNVDA
which grabs the process handles from services/protected processes like csrss and lsass

Ah, I see.

Thanks for your time.. all the dots connect now


[isomorphic-react-app] fix broken user page #1

on line 43, the assignment to reportsId is done using an undefined reference , and in any way the value is an object, so i believe  Object.keys is the way to go
on line 48, i changed the naming (currentEmployee -> employee) because in User.jsx on line 70 there's this:
const { employee } = this.props.currentEmployee
so it breaks otherwise.
edit:
this should go with #381 too

Great fix @orouz thanks!


config: add consolidation to coredns errors

What kind of PR is this?
Required: Mark one of the following that is applicable:

[ ] kind/feature
[x] kind/improvement
[ ] kind/deprecation
[ ] kind/documentation
[ ] kind/clean-up
[ ] kind/bug
[ ] kind/other

Optional: Mark one or more of the following that are applicable:

[!important]
Critical security fixes should be marked with kind/security
Breaking changes should be marked kind/admin-change or kind/dev-change depending on type

[ ] kind/admin-change
[ ] kind/dev-change
[ ] kind/security
[ ] kind/adr

What does this PR do / why do we need this PR?

Adds consolidation to coredns error logging to avoid log spam

Part of https://github.com/elastisys/compliantkubernetes-apps/issues/1691

Needs https://github.com/elastisys/kubespray/pull/11 before this PR has any effect
Additional information to reviewers
Screenshots
Checklist

[x] Proper commit message prefix on all commits

Change checks:

[x] The change is transparent
[ ] The change is disruptive
[x] The change requires no migration steps
[ ] The change requires migration steps

Metrics checks:

[ ] The metrics are still exposed and present in Grafana after the change
[ ] The metrics names didn't change (Grafana dashboards and Prometheus alerts are not affected)
[ ] The metrics names did change (Grafana dashboards and Prometheus alerts were fixed)

Logs checks:

[ ] The logs do not show any errors after the change

Network Policy checks:

[ ] Any changed pod is covered by Network Policies
[ ] The change does not cause any dropped packages in the NetworkPolicy Dashboard

Pod Security Policy checks:

[ ] Any changed pod is covered by Pod Security Admission
[ ] Any changed pod is covered by Gatekeeper Pod Security Policies
[ ] The change does not cause any pods to be blocked by Pod Security Admission or Policies

Falco checks:

[ ] The change does not cause any alerts to be generated by Falco

This was cherry picked into the latest release, so I'll close this PR


emit does not fire on boot/mount/booted methods

Hi,
I dev a website with a shopping cart.
On the product page, there is a button which add the current product to the cart (session), and open the cart modal in order to display the cart content and allow the user to update the quantities and manage selected products.
On the website layout, there is also a cart button (dropdown) which display the current amount of products in the cart.
This is a very simple livewire component which count the products in the cart and display the number.
I could use polling in order to get the button up-to-date when I add a product in cart, but I prefered to manually broadcast event from the cart modal to the cart button.
Events fired from the modal content works, but not from the modal lifecycle itself and I can't figure out why.
Here is my AddToCart modal component:
<?php

namespace App\Http\Livewire;

use LivewireUI\Modal\ModalComponent;

class AddToCart extends ModalComponent
{

    public $products;

    public function boot()
    {
        $this->products = session('cart', collect([]));
    }

    public function mount($product)
    {
        $quantity = $this->products->get($product, 0);
        $this->setProductToCart($product, ++$quantity);
    }

    public function remove($product)
    {
        $this->setProductToCart($product, 0);
    }

    public function setProductToCart($product, Int $quantity)
    {
        if ($quantity < 1) {
            $this->products->forget($product);
        } else {
            $this->products->put($product, $quantity);
        }
        session(['cart' => $this->products]);

        $this->emit('cartUpdated');
    }

    public function render()
    {
        return view('livewire.add-to-cart');
    }
}

As you can see, everything is done inside the setProductToCart which is the one which emit the cartUpdated event.
This event is  listened by the CartButton.
When the modal is opened, changing quantities or removing products from cart works fine. The CartButton listen the event and displays the new cart items count.
But the very first call, the one cascaded from the setProductToCart called from the mount method seems to never be fired.
I tried calling this event from boot, or booted method and the result remains silent.
I also tried to do the same thing using a Livewire component instead of a ModalComponent and it works, so I thinks it's a modal bug, but I can't fgure out why or where…
I tried to test the issue, as unit as possible and made a very simple laravel project, if you want to try

This is related to Livewire, you can't emit from the mount or boot method

emit won't work in the mount function or render function (during the first load) as Livewire's javascript isn't running yet. But it will work in the render function on subsequent requests.

Understood !
Thanks for pointing the issue.
Is there a way to hook a modal event instead ? Maybe a opened event or something ?

I use a similar approach; not sure if there is any other way to do this. Feel free to update this issue if you find an alternative solution.

Understood !
Thanks for pointing the issue. Is there a way to hook a modal event instead ? Maybe a opened event or something ?
I tried to add a wire:init="$emit('cartUpdated')" on the root div of my modal content, but it failed with a Unknown method Exception. I tried with a wire:init="Livewire.emit('cartUpdated')" but the result is the same.
I now use a wire:init="refreshCart" which lokks like this, but I'm definitely not satisfied:
public function refreshCart()
{
    $this->emit('cartUpdated');
}

Dude, you save my life, this work for me.


Dependency Deprecation

Hi I was trying to implement this solution when I encountered the following error:
npm WARN deprecated<EMAIL_ADDRESS>Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)

@c0de-nat0r Did you get that warning when you install packages?
The solution itself does not use mkdirp, and I looked up this one, and sharp is dependent to<EMAIL_ADDRESS>I don't think we can fix this one by ourselves.

Hi Beomseok,
Yes I received the warning whilst trying to install the packages see
screenshots attached
Kind Regards,
Nathan Shava
LinkedIn: https://www.linkedin.com/in/nathan-t-shava-0a9690b8/
On Tue, Jun 23, 2020 at 12:34 AM Beomseok Lee<EMAIL_ADDRESS>wrote:

@c0de-nat0r https://github.com/c0de-nat0r Did you get that warning when
you install packages?
The solution itself does not use mkdirp, and I looked up this one, and
sharp is dependent to<EMAIL_ADDRESS>I don't think we can fix this one by ourselves.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/awslabs/serverless-image-handler/issues/223#issuecomment-647802703,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AG3276GUJR2EXHESHVIY42DRX7L7VANCNFSM4ODZQY5A
.

@c0de-nat0r Sorry, but I cannot see the screenshot.
Can you run npm audit fix in /source/image-handler so that you can see there would be any package update?

npm ERR! code EAUDITNOLOCK
npm ERR! audit Neither npm-shrinkwrap.json nor package-lock.json found:
Cannot audit a project without a lockfile
npm ERR! audit Try creating one first with: npm i --package-lock-only
npm ERR! A complete log of this run can be found in:
npm ERR!     /home/ec2-user/.npm/_logs/2020-06-25T20_59_52_059Z-debug.log
This is the output after running the command npm audit fix inside the
source/image-handler directory.
Let me know if there is anything else we can try out?
Kind Regards,
Nathan Shava
LinkedIn: https://www.linkedin.com/in/nathan-t-shava-0a9690b8/
On Thu, Jun 25, 2020 at 10:39 PM Beomseok Lee<EMAIL_ADDRESS>wrote:

@c0de-nat0r https://github.com/c0de-nat0r Sorry, but I cannot see the
screenshot.
Can you run npm audit fix in /source/image-handler so that you can see
there would be any package update?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/awslabs/serverless-image-handler/issues/223#issuecomment-649805606,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AG3276HP4OH6WIYSSJW2T5DRYOYWZANCNFSM4ODZQY5A
.

Can you run npm install first?

@c0de-nat0r we have updated our solution, and I believe your issue has been fixed. If you still see the issue with the latest version (v6.0.0), please feel free to reopen the issue.
You can refer to the recent changes here.


Unable to modify docker image

I am trying to modify the firefox browser present inside the selenoid/vnc_firefox container. I am trying to replace the one that is already present with a developer edition.
The reason why I am doing this is because, I am trying to run an unsigned firefox extension for my tests, which obviously will not work with the normal firefox. I am trying to reach the shell of the vnc_firefox and find the path of firefox browser by running the command: docker run -it selenoid/vnc_firefox:70.0 bash. Unfortunately it is starting the firefox browser.
Can anyone guide how to access the terminal?

Or please provide the path for firefox

@prasanth-G24 docker run -it --entrypoint /bin/bash selenoid/vnc_firefox:70.0


Make ObjectStore threadsafe

Currently, ObjectStore methods are not threadsafe.
In order to allow building a multi-threaded server, we need to make them safe for multiple threads at once.
Since the spcification only calls for singular operations at the moment, this is an issue for a later time, however.

Transferred from: https://git.rwth-aachen.de/acplt/pyi40aas/-/issues/79


ADE20k classes

So I have a question about the ADE20k itself.
I read all the seg-masks from the training set (~15k files) and counted the number of unique class values. I got 2231 unique values, where the highest value is 3144. This makes no sense as the number of classes is supposed to be 150.
I'm using this code to load the *_seg.png files in Python (adapted from the Matlab code on the dataset site):
mask = np.array(Image.open(mask_path), dtype=np.uint16)
R,G,B = mask[:,:,0], mask[:,:,1], mask[:,:,2]
class_mask = R // 10 * 256 + G

Did you know how it work?
I created similar version of load_seg_ade20k (python) and used matching_index file
But the mapping is not 1-1
Some categories I cant found in the txt file!


Sqlite: Hide connectionstring

In Setup and tenant creation, hide the connection string if not needed.

Hiding the connection string is straight forward. But I have been having an issue taking advantage of

in TheAdmin/Views/Layout.cshtml. I see in other modules that it looks like

I couldn't get that to work either.
Even though the script works, it is rendered immediately after the form. I was trying to put it at the end of body.

I think it's already the case right?

In the root setup, yes but it is not well initialized if you create a tenant with a sqLite database and then go to the setup page.
The type of database provider is hidden but not the connection string, as it should be when sqLite is selected.

May be we can display the Database Provider as a label instead of hiding it here:
@if (Model.DatabaseProviderPreset)
        {
            <input asp-for="DatabaseProvider" type="hidden" />

        }

Sorry, I intented to make a PR but I forgot to branch my work.
Please confirm I made the correct changes in the setup to fix this issue.

If you forget to branch, just git reset --soft dev which will point to the dev branch, but leave your commits as is, then you can just create a branch and commit again.


Question: Set base DN

Hi,
I'm using something like this to search for users with a specific email address:
from ms_active_directory import ADDomain

bind_user = 'user'
bind_password = 'password'
domain_name = 'company.corp'

def find_ad_user_by_email(email):
    try:
        domain = ADDomain(
            domain=domain_name
        )
        session = domain.create_session_as_user(
            bind_user,
            bind_password
        )

        user = session.find_users_by_attribute(
            attribute_name='mail',
            attribute_value=email
        )

        # If user is found, return True
        if user:
            return True
        else:
            return False

    except Exception as e:
        print(f"An error occurred: {e}")
        return False
    finally:
        pass

emails = [
<EMAIL_ADDRESS><EMAIL_ADDRESS>]

for email in emails:
    if find_ad_user_by_email(email):
        print(f"{email} exists")
    else:
        print(f"{email} does not exist")

While this works perfectly fine, each search takes very long time. Is there a way to specify a "base_dn" (from what DN to start the search)? Thank you!
Best regards,
Jim

Found the set_domain_search_base method, all good.
search_base = "OU=users, DN=company, DN= corp"
session.set_domain_search_base(search_base=search_base)


fatal: unrecognised output format 'elf64' on OS X

➜  os-rust  nasm -f elf64 multiboot_header.asm
nasm: fatal: unrecognised output format 'elf64' - use -hf for a list

This is the error I get when going through part one of your tutorial when trying to specify elf64 as the format for the linked executable.
nasm -hf lists:
valid output formats for -f are (`*' denotes default):
  * bin       flat-form binary files (e.g. DOS .COM, .SYS)
    aout      Linux a.out object files
    aoutb     NetBSD/FreeBSD a.out object files
    coff      COFF (i386) object files (e.g. DJGPP for DOS)
    elf       ELF32 (i386) object files (e.g. Linux)
    as86      Linux as86 (bin86 version 0.3) object files
    obj       MS-DOS 16-bit/32-bit OMF object files
    win32     Microsoft Win32 (i386) object files
    rdf       Relocatable Dynamic Object File Format v2.0
    ieee      IEEE-695 (LADsoft variant) object file format
    macho     NeXTstep/OpenStep/Rhapsody/Darwin/MacOS X object files

What version of nasm do you have? Maybe brew install nasm helps.

Closing in favor of #55

on macOS 10.12.5
Had same issue using nasm 0.98.40 (was already installed), fixed after upgrading nasm via homebrew to 2.13.01

Thanks @ggarek ! Had issues as I didn't restart the terminal session


[feature request] Pull in all tasks assigned to today, regardless of project

It'd be great if there were an option to pull in tasks that are due for today, instead of pulling in tasks for a specific project. It would look sort of like this:

Thanks for the feature request. Will look into the Todoist API again to see if it's possible.

@aadilayub can I confirm with you that your workflow actually includes indicating the prefix in Todoist before pulling it over?

Nope, it wouldn't! I only use prefixes in Logseq. It would be nice if the default prefix (TODO or LATER) would be assigned to the tasks when they are pulled in, so that they are visually distinct from note bullets.

Feature implemented in the latest release. Please run an update, or download the latest version from the marketplace.
Cheers!

Amazing! Thank you <3


[Improvement][component deployment] two improvement about component deployment

Search before asking

[X] I had searched in the issues and found no similar feature requirement.

Description
Improvement
1.Now , the Doris version supported by datasophon is 1.2.6, and we hope to support the latest 2.0.X
2.The current component installation solutions are all deployed using physical processes. Can you provide a solution using DOCKER deployment?
1.目前DORIS组件的版本号是1.X，能否提升到最新的2.X版本
2.目前组件的安装方案都是使用物理进程部署，能否提供一种使用DOCKER部署的方案
Are you willing to submit a PR?

[X] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Component upgrade version, you can customize according to your needs, the official website has many other component upgrade examples, and there have been technical leaders to share doris upgrade to 2.x tutorial


[Fix] Change the suffix position (#46, #47, #49)

What is the purpose of this pull request?

#46 Move the suffix -copy to the end of the file name (right before .extension).
Fix issue #47 & #49

What changes did you make? (Give an overview)

N/a

Hello @mrmlnc, can you take a review 😄

@mrmlnc Can you take a look again 😄

Thanks for the contributions 🎉
Please, fix issue with dot and I'm ready to merge this PR.

@mrmlnc Where did you go? Merge this PR.

@tomhicz @backermanbd @reslear
Hi,
Since this repo is no longer receive any updates. I've tried to fork it and add this feature but the node version is way too old (node 7), it is unable to maintain.
Instead, I create a new extension today, it's the same as this one (even better and lighter).
Just give it a try!  👉 https://marketplace.visualstudio.com/items?itemName=trandaison.trandaison-vscode-duplicate

@trandaison This is the best version of vscode-duplicate I've ever seen/tried. Excellent work!
PS: Still need to trust me. Here are the three. All have some issues.
Parent extension: https://marketplace.visualstudio.com/items?itemName=mrmlnc.vscode-duplicate
Child extensions: https://marketplace.visualstudio.com/items?itemName=axelrindle.duplicate-file
https://marketplace.visualstudio.com/items?itemName=includable.file-duplicate

@trandaison This is the coolest vscode-duplicate version I've come across. Great job!
I've given your repo a star and I'll be recommending it. 😉

@backermanbd Thanks for your supports! it means a lot!


Add smoke test for GE plugin injection script

Instead of applying the GE plugin directly, it is injected into a build via an init script

Note that we have a very similar init script for TeamCity and Bamboo. I would consider the TC one as the source of truth. It is quite deeply test-covered, too.

I've triggered a build for you.

@alllex As an idea: could we run the same tests against both the init script from the TC plugin and the Jenkins plugin? (and possibly even from the Bamboo plugin) They are all used in production, and while we aim to keep them in sync, there are no guarantees that they always are.

Pre-tested commit build failed. Click [here](Failures Url: https://ge.gradle.org/scans?search.buildOutcome=failure&search.names=gitCommitId&search.tags=CI&search.values=5871d3dfc0d1d10151177155f113a48f4248bf59) to see all build failures.

@bot-gradle test and merge

Your PR is queued. See the queue page for details.

@bot-gradle cancel

I've cancelled the pre-tested commit build.

@etiennestuder, I would definitely test against all the variations of injection scripts if they were "pullable" as dependencies. Currently, they would have to be manually synced, which means even more copies of the same-ish code.

I don't understand. Why are they not pullable? All 3 scripts live in public repos.

I think it's practical enough to smoke test against TC and keep the scripts copy in sync, and try to keep the others up-to-date with TC.

GIven it seems pretty easy to automate this for all 3 scripts, can't we do it?

@bot-gradle test this

I've triggered the following builds for you:

PullRequestFeedback build

I've triggered a build for you. Click here to see all failures if there's any.


Relax the line-length limitation: change margin from 88 to 92

Refs:

https://github.com/AtelierArith/Replay.jl/pull/68#issuecomment-1517854765
https://github.com/AtelierArith/Replay.jl/pull/68#issuecomment-1518503404
https://github.com/SciML/SciMLStyle

Try to adhere to a 92 character line length limit.

I did not dare to run using JuliaFormatter; format(".") command. I think it should be done by someone who creates another new pull request. I want to prevent code conflicts.


Fix zopen-build so that it is functional. Also embed jq

Other updates:

Need to investigate printElapsedTime(). Uncommenting the code causes zopen build to early exit. Might be related to the signal handlers?
logname is broken on my system, used $LOGNAME instead

FSUM6764 logname: cannot get login name
[ITODORO@ZOSCAN2B ~/projects/meta_russell]$ echo $LOGNAME
ITODORO

Added jq and also updated curl

FYI @DevonianTeuchter , I don't have permission to add you as a reviewer


Fix v2.0 Unit Tests

Closes #2283
Description
Fix v2.0 Unit Tests

@cidkumagai
In some cases, the test has failed in the opposite direction due to the modifications made in this PR.Please correct it again.

@hirotomoyamada
I have fixed it, please review.


fixing ACCOUNT_ID and AWS_REGION variables in preparation

Leveraging --output and --query we can avoid the jq requirement.
We can get the region from awscli in preparation reading the configuration to make it quicker! : )

Thanks. I like the idea of removing the dependency on jq. The reason why I did not grab and set the region in the variable was because the table could (in theory) be in another region from the one you are deploying the app to (but I think it does make more sense to assume they are adjacent).
I am not sure why you changed the region in the apprunner.yaml file? We need to pick one but I'd rather keep us-east-1 than eu-west-1.

My bad on changing region, I was testing un eu-west-1. I've rolled back the apprunner.yaml to us-east-1.

Looking good now. Can you also get rid of this text in the README.md in the preparation folder: "Note you need to export the AWS_REGION variable before running the script." (we no longer need to export it at this point).

Thanks!


Build fails to link on Ubuntu

Following the recipe I'm documenting at https://github.com/InWorldz/whip-server/wiki/Building-(Ubuntu) I'm getting the following:
...
[100%] Linking CXX executable whip
/usr/bin/ld: cannot open output file whip: Is a directory
collect2: error: ld returned 1 exit status
CMakeFiles/whip.dir/build.make:1426: recipe for target 'whip' failed
make[2]: *** [whip] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/whip.dir/all' failed
make[1]: *** [CMakeFiles/whip.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

Investigating now.

Ok, looks like it was simply the output was trying to write to a file named "whip" when there was already a folder there by the same name.  Windows would have created "whip.exe" and not had a name collision.


Custom R Visual - CreateRHTML.md

This works in Power BI online. When I package and try to use in PowerBI desktop it fails loading because of the packages... Is this expected?
Feedback Type:
Frown (Error)
Timestamp:
2017-04-20T21:39:04.1708551Z
Local Time:
2017-04-20T16:39:04.1708551-05:00
Product Version:
2.45.4704.442 (PBIDesktop) (x64)
Release:
April 2017
IE Version:
11.1066.14393.0
OS Version:
Microsoft Windows NT 10.0.14393.0 (x64 en-US)
CLR Version:
4.6.2. or later [Release Number = 394802]
Workbook Package Info:
1* - en-US, Query Groups: 0, fastCombine: Disabled, runBackgroundAnalysis: True.
Peak Working Set:
585 MB
Private Memory:
449 MB
Peak Virtual Memory:
34.1 GB
Error Message:
R script error.
Loading required package: XML
Loading required package: methods
Warning message:
package 'XML' was built under R version 3.3.3
Loading required package: htmlwidgets
Loading required package: ggplot2
Warning message:
package 'ggplot2' was built under R version 3.3.3
Loading required package: plotly
Attaching package: 'plotly'
The following object is masked from 'package:ggplot2':
last_plot

The following object is masked from 'package:stats':
filter

The following object is masked from 'package:graphics':
layout

Error in gg2list(p, width = width, height = height, tooltip = tooltip,  :
attempt to apply non-function
Calls: ggplotly -> ggplotly.ggplot -> gg2list
Execution halted
User ID:
e58759e7-8b47-4aae-952b-0c3981937fc7
Session ID:
b7f67106-6ec6-4a98-b571-23ad63fa0736
Telemetry Enabled:
True
Model Default Mode:
DirectQuery
Snapshot Trace Logs:
C:\Users\Kam\AppData\Local\Microsoft\Power BI Desktop\FrownSnapShot598454533.zip
Performance Trace Logs:
C:\Users\Kam\AppData\Local\Microsoft\Power BI Desktop\PerformanceTraces.zip
Enabled Preview Features:
PBI_shapeMapVisualEnabled
PBI_EnableReportTheme
PBI_allowBiDiCrossFilterInDirectQuery
PBI_pivotTableVisualEnabled
PBI_numericSlicerEnabled
PBI_PbiServiceLiveConnect
PBI_daxTemplatesEnabled
Disabled Preview Features:
PBI_Impala
PBI_Snowflake
PBI_esriEnabled
PBI_SpanishLinguisticsEnabled
Enabled DirectQuery Options:
PBI_DirectQuery_Unrestricted
Cloud:
GlobalCloud
Activity ID:
e9d46333-6f0a-7522-d6a3-62e9338aea7a
Time:
Thu Apr 20 2017 16:38:58 GMT-0500 (Central Daylight Time)
Version:
2.45.4704.442 (PBIDesktop)
Client Error Code:
ServiceErrorToClientError
Error Details:
R script error.
Loading required package: XML
Loading required package: methods
Warning message:
package 'XML' was built under R version 3.3.3
Loading required package: htmlwidgets
Loading required package: ggplot2
Warning message:
package 'ggplot2' was built under R version 3.3.3
Loading required package: plotly
Attaching package: 'plotly'
The following object is masked from 'package:ggplot2':
last_plot

The following object is masked from 'package:stats':
filter

The following object is masked from 'package:graphics':
layout

Error in gg2list(p, width = width, height = height, tooltip = tooltip,  :
attempt to apply non-function
Calls: ggplotly -> ggplotly.ggplot -> gg2list
Execution halted
Stack Trace:
Microsoft.PowerBI.ExploreServiceCommon.ScriptHandlerException: R script error.
Loading required package: XML
Loading required package: methods
Warning message:
package 'XML' was built under R version 3.3.3
Loading required package: htmlwidgets
Loading required package: ggplot2
Warning message:
package 'ggplot2' was built under R version 3.3.3
Loading required package: plotly
Attaching package: 'plotly'
The following object is masked from 'package:ggplot2':
last_plot

The following object is masked from 'package:stats':
filter

The following object is masked from 'package:graphics':
layout

Error in gg2list(p, width = width, height = height, tooltip = tooltip,  :
attempt to apply non-function
Calls: ggplotly -> ggplotly.ggplot -> gg2list
Execution halted
---> Microsoft.PowerBI.Radio.RScriptRuntimeException: R script error.
Loading required package: XML
Loading required package: methods
Warning message:
package 'XML' was built under R version 3.3.3
Loading required package: htmlwidgets
Loading required package: ggplot2
Warning message:
package 'ggplot2' was built under R version 3.3.3
Loading required package: plotly
Attaching package: 'plotly'
The following object is masked from 'package:ggplot2':
last_plot

The following object is masked from 'package:stats':
filter

The following object is masked from 'package:graphics':
layout

Error in gg2list(p, width = width, height = height, tooltip = tooltip,  :
attempt to apply non-function
Calls: ggplotly -> ggplotly.ggplot -> gg2list
Execution halted
at Microsoft.PowerBI.Radio.RScriptWrapper.RunScript(String originalScript, Int32 timeoutMs)
at Microsoft.PowerBI.Client.Windows.R.RScriptHandler.GenerateVisual(ScriptHandlerOptions options)
--- End of inner exception stack trace ---
at Microsoft.PowerBI.Client.Windows.R.RScriptHandler.GenerateVisual(ScriptHandlerOptions options)
at Microsoft.PowerBI.ExploreServiceCommon.ScriptVisualCommandFlow.RunInternal(Stream dataShapeResultStream, QueryBindingDescriptor& bindingDescriptor)
at Microsoft.PowerBI.ExploreServiceCommon.ScriptVisualCommandFlow.Run(Stream dataShapeResultStream, QueryBindingDescriptor& bindingDescriptor)
at Microsoft.PowerBI.ExploreHost.SemanticQuery.ExecuteSemanticQueryFlow.TransformDataShapeResult(QueryCommand transformCommand, String dataShapeId, SemanticQueryDataShapeCommand command, Stream dataShapeResultStream, QueryBindingDescriptor& bindingDescriptor)
at Microsoft.PowerBI.ExploreHost.SemanticQuery.ExecuteSemanticQueryFlow.ProcessAndWriteDataQuery(IQueryResultDataWriter queryResultDataWriter, DataShapeGenerationContext dsqGenContext, EntityDataModel model, DataQuery query, ServiceErrorStatusCode& serviceErrorStatusCode)
at Microsoft.PowerBI.ExploreHost.SemanticQuery.ExecuteSemanticQueryFlow.ProcessAndWriteSemanticQueryCommands(IQueryResultsWriter queryResultsWriter, ExecuteSemanticQueryRequest request, IConceptualSchema conceptualSchema, EntityDataModel model)
DPI Scale:
100%
Supported Services:
Power BI
Formulas:
section Section1;
shared VSTables = let
Source = Sql.Database("ctserver.database.windows.net", "ctdemo"),
dbo_VSTables = Source{[Schema="dbo",Item="VSTables"]}[Data]
in
dbo_VSTables;
shared Incident = let
Source = Sql.Database("ctserver.database.windows.net", "ctdemo"),
dbo_Incident = Source{[Schema="dbo",Item="Incident"]}[Data]
in
dbo_Incident;

Did you do any changes, or it is just template?
Do you have latest PBI desktop?
Did you try:

pbiviz new myName -t rhtml
cd myName
npm install
pbiviz package

outdated


[Feat] adding Dockerfile to app

adding Dockerfile in order to dockerizing anyway front project / also additional .dockerignore file should be added in order to not copy node_modules folder.

branch merged


Node 20.6+ --env-file flag in NODE_OPTIONS is not allowed

I'm not entirely sure why this happens since cypress-io/github-action@v6 is using Node 20, but I am getting this error.
Any idea why? I wanted to get rid of dotenv all together, so I was trying to set --env-file in my .npmrc. This obviously works across the board as of 20.6, with this action being the except 😕
Available on:
  http://localhost:8000
Hit CTRL-C to stop the server

2023-12-12T14:43 "GET /" "got (https://github.com/sindresorhus/got)"
(node:1431) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
(Use `node --trace-deprecation ...` to show where the warning was created)
Cypress test command: npx percy exec -- pnpm cypress run --record --group E2E:Chrome --ci-build-id ******** --browser chrome
/__w/_tool/node/20.10.0/x64/bin/npx percy exec -- pnpm cypress run --record --group E2E:Chrome --ci-build-id ******** --browser chrome
node: --env-file= is not allowed in NODE_OPTIONS
Error: The process '/__w/_tool/node/20.10.0/x64/bin/npx' failed with exit code 9

@afonsojramos
I assume that you are trying to set environment variables. If so, can you use the env keyword in your workflow?
For example, the following would show trace information for your deprecation warning:
env:
  NODE_OPTIONS: '--trace-deprecation'

If that doesn't solve your issue, please post your workflow here.

@MikeMcC399 the issue is that it is already being picked up by the .npmrc:
node-options=--env-file=.env

So your suggestion will only try to set the variable somewhere else, but the error will remain. The workflow details won't matter here.

@afonsojramos
According to your error message and the documentation https://nodejs.org/docs/latest-v20.x/api/cli.html#node_optionsoptions, --env-file is not a valid option for NODE_OPTIONS.
What are your expectations from cypress-io/github-action?

@afonsojramos
If .npmrc contains the line
node-options=--env-file=.env

then executing a command such as
npx cypress version

results in the error message
node.exe: --env-file= is not allowed in NODE_OPTIONS

so this confirms that it is not a legal configuration.
Also the documentation for .npmrc > node-options states

This does not impact how npm itself is executed but it does impact how lifecycle scripts are called.

At this time I do not see any bug in cypress-io/github-action so I would be inclined to close the issue. Please let us know if you have a different opinion.

Sorry @MikeMcC399, it seems you are indeed correct. I'll close the issue, hopefully the Node.JS team can support this use case in the future.


S3 bucket connection reset - gracefully handle

There should be at least 3, if not 10 auto-retries when this happens:
2023-06-08 16:31:00,036 - silnlp.common.environment - INFO - Uploading MT/experiments/FT-Ingush/NLLB_13_CHE_ING_3/val.trg.txt
2023-06-08 16:31:00,153 - silnlp.common.environment - INFO - Uploading MT/experiments/FT-Ingush/NLLB_13_CHE_ING_3/tokenizer.json
2023-06-08 12:31:13
Traceback (most recent call last):
  File "/root/.clearml/venvs-builds/3.8/task_repository/silnlp/.venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen
    httplib_response = self._make_request(
  File "/root/.clearml/venvs-builds/3.8/task_repository/silnlp/.venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 398, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/root/.clearml/venvs-builds/3.8/task_repository/silnlp/.venv/lib/python3.8/site-packages/urllib3/connection.py", line 239, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.8/http/client.py", line 1256, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/root/.clearml/venvs-builds/3.8/task_repository/silnlp/.venv/lib/python3.8/site-packages/botocore/awsrequest.py", line 94, in _send_request
    rval = super()._send_request(
  File "/usr/lib/python3.8/http/client.py", line 1302, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.8/http/client.py", line 1251, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/root/.clearml/venvs-builds/3.8/task_repository/silnlp/.venv/lib/python3.8/site-packages/botocore/awsrequest.py", line 130, in _send_output
    self._handle_expect_response(message_body)
  File "/root/.clearml/venvs-builds/3.8/task_repository/silnlp/.venv/lib/python3.8/site-packages/botocore/awsrequest.py", line 176, in _handle_expect_response
    self._send_message_body(message_body)
  File "/root/.clearml/venvs-builds/3.8/task_repository/silnlp/.venv/lib/python3.8/site-packages/botocore/awsrequest.py", line 209, in _send_message_body
    self.send(message_body)
  File "/root/.clearml/venvs-builds/3.8/task_repository/silnlp/.venv/lib/python3.8/site-packages/botocore/awsrequest.py", line 218, in send
    return super().send(str)
  File "/usr/lib/python3.8/http/client.py", line 969, in send
    self.sock.sendall(datablock)
  File "/usr/lib/python3.8/ssl.py", line 1204, in sendall
    v = self.send(byte_view[count:])
  File "/usr/lib/python3.8/ssl.py", line 1173, in send
    return self._sslobj.write(data)
ConnectionResetError: [Errno 104] Connection reset by peer

This happened in SILNLP - but likely applies here as well.
SILNLP issue - https://github.com/sillsdev/silnlp/issues/167


Add LazyLoader for delayed imports of slow modules

A solution for #4648
This creates a class LazyLoader that can be used in place of an import and delays importing the module.
optimize = _import.LazyLoader("optimize", globals(), "scipy.optimize")

For classes that take up extra initialization time this speeds the overall first import of cirq with the potential downside of slowing doing the first uses where it is used.
This PR applies this to previous cases of delayed imports in scipy.

Very cool.
An aside: could this also be applied to fix import-order issues (e.g. when something in cirq.devices needs to import cirq.circuits) that are currently handled by function-level imports?

I think so yes, I think I can probably craft a regex to look for those.


It seems that the Attention Network  can pay attention to foreground object essentially, without lable information about attention region.

Thanks for your work and i have read your paper. I have a question about the  attention network.
In unsupervised setup, the losses are adversarial loss and cycle-consistency loss during early of training without label information abut foreground object (for exampel, binary labels of segmentation as attention map). How the  attention network focus on foreground object ? And the network architecture of Generators and Attention Networks are almost same except the final activation function. Why the final activation function is sigmoid with output channel is 1, output of the network is considered to be attention map? While another ouptput is considered to be reconstruction of input. I don‘t know how that works.
Moreover, Figure 7 in the paper shows Attention Network can focus on foreground object in early of training. It seems that the Attention Network ( or CNN ) can pay attention to foreground object rather than background essentially, even without lable information about attention region.

To my understanding and if i understand your question correctly, to fool the source discriminator as in conventional GAN, the attention work is required to attend to the most domain discriminative regions other than other sub-patches. And the foreground is believed to be the most domain descriptive. Regarding to output channel 1, the attention map is a single channel mask with continious values between 0 and 1.


Add TextInput cursor blinking control

Moves the original functionality of cursor_blink to _cursor_blink. Perhaps if we should preserve the "public" property, we might rename it to something more obvious such as cursor_invisible or something similar.
"invisible" just because of the current behavior, otherwise we might invert it and use cursor_visible instead.
Closes #5449

Good to me, but you missed to document the change with .. versionchanged::


Failing test case for SelectOne with null int.

Go format also happened.
Test case for #181

Discussion in #181


gateway's websession id is different with backend service's

In my spring session applications ,I use springcloud gateway 2.0.2 as my gateway server,but do not use webflux on my backend service ，is springboot application. Now I want to get session on my  backend application , after gateway server set attribute in spring session. I found the websession's id is no equals httpsession id in my spring session redis server.

Have you tried using the integrated save session filter? https://cloud.spring.io/spring-cloud-static/Finchley.SR2/single/spring-cloud.html#_savesession_gatewayfilter_factory

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.


Proposal: change promptOptions to prompt, etc

Is your feature request related to a problem? Please describe.
In Markprompt.Root, the was to pass model parameters is via the promptOptions prop. This is just a Picked version of MarkpromptOptions['prompt'], so I suggest we stick to using the prompt prop to stay consistent with the other APIs, i.e. close to the API of markprompt(,,options).
Describe the solution you'd like

Rename promptOptions to prompt
Rename searchOptions to search

Closed by #49


Add channel properties for slack

When setting up a slack integration and you want to ask the user for a default channel to post messages too, the scope incoming-webhook is required.
I have added in properties to grab the channel information returned from Slack so that you can use the channel ID when using the chat.postMessage Slack API method.

Thanks I am on holiday and probably will not get to this until September 15. Sorry for any inconvenience this may have caused.

@jimmic its in 2.8.0
thanks

Thanks @TerribleDev


[Preview 8] Build Razor Page Components Project 2.2 fails in Docker Container

The following project builds inside VS.NET on a windows box with the version of AspNetCore=Version: 3.0.0-preview8-28405-07
<Project Sdk="Microsoft.NET.Sdk.Razor">

  <PropertyGroup>
    <TargetFramework>netstandard2.0</TargetFramework>
    <GenerateEmbeddedFilesManifest>True</GenerateEmbeddedFilesManifest>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.AspNetCore.Mvc" />
    <PackageReference Include="Microsoft.AspNetCore.StaticFiles" />
    <PackageReference Include="Microsoft.Extensions.FileProviders.Embedded" />
  </ItemGroup>

  <ItemGroup>
    <EmbeddedResource Include="wwwroot\**\*" />
    <Content Update="**\*.cshtml" Pack="false" />
  </ItemGroup>
</Project>

In the docker container it fails.
Ended up installing DotNetCore 2.2 into docker container as follows:
FROM mcr.microsoft.com/dotnet/core/sdk:3.0.100-preview8-buster AS build

# Install .NET Core SDK
# https://github.com/aspnet/AspNetCore/issues/10833#issuecomment-499134467
ENV DOTNET_SDK_VERSION 2.2.401

RUN curl -SL --output dotnet.tar.gz https://dotnetcli.blob.core.windows.net/dotnet/Sdk/$DOTNET_SDK_VERSION/dotnet-sdk-$DOTNET_SDK_VERSION-linux-x64.tar.gz \
    && dotnet_sha512='08e1fcafa4f898c80ff5e88eeb40c7497b4f5651af3b8ec85f65a3daa2f1509a766d833477358d3ff83d179e014034ab0c48120847ef24736c8d1a5b67fec10b' \
    && echo "$dotnet_sha512 dotnet.tar.gz" | sha512sum -c - \
    && tar -zxf dotnet.tar.gz -C /usr/share/dotnet \
    && rm dotnet.tar.gz

https://github.com/aspnet/AspNetCore/issues/10833
https://github.com/aspnet/AspNetCore/issues/12598

Thank you for your feedback.
We're closing this issue as the behavior discussed is by design.
Razor SDK requires the related runtime to be installed.


Update cloudwatch, dynamodb, kinesis, s3, sns, ... to 2.17.96

Updates

software.amazon.awssdk:cloudwatch
software.amazon.awssdk:dynamodb
software.amazon.awssdk:kinesis
software.amazon.awssdk:s3
software.amazon.awssdk:sns
software.amazon.awssdk:sqs
software.amazon.awssdk:sts

from 2.16.104 to 2.17.96.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "software.amazon.awssdk" } ]

labels: library-update, early-semver-minor, semver-spec-minor

Superseded by #787.


Autofix of UnnecessaryGString leaves invalid code in data provider of Spock tests

Hi,
I'm using npm-groovy-lint with my Spock tests that have a data provider for several test cases.
def "Test: #testCaseTitle"() {
    when:
    def result = testedMethod(json)

    then:
    result != null

    where:
    testCaseTitle     | json                                                      || errorMessage
    'missing image'   | """{ "view": "available", "options": ["empty"] }"""       || """JSON is missing image"""
    'missing options' | """{ "view": "available", "image": "${placeholder}" }"""  || """JSON is missing options"""
    'missing view'    | """{ "image": "${placeholder}", "options": ["empty"] }""" || """JSON is missing view"""
    'all missing'     | """{ }"""                                                 || """JSON is missing image, JSON is missing options, JSON is missing view"""
}

After auto-fixing the code using npm-groovy-lint the source code got uncompilable because of wrongly replaced GString quotes.
def "Test: #testCaseTitle"() {
    when:
    def result = testedMethod(json)

    then:
    result != null

    where:
    testCaseTitle     | json                                                      || errorMessage
    'missing image'   | '''{ "view": "available", "options": ["empty"] }"""       || ""'JSON is missing image'""
    'missing options' | '''{ "view": "available", "image": "${placeholder}" }"""  || ""'JSON is missing options'""
    'missing view'    | """{ "image": "${placeholder}", "options": ["empty"] }""" || ""'JSON is missing view'""
    'all missing'     | ""'{ }'""                                                 || ""'JSON is missing image, JSON is missing options, JSON is missing view'""
}

npm-groovy-lint does not detect the end of the GStrings correctly and therefore replaces the the quotes at the wrong place leaving the source code uncompilable.
This:
"""{ "view": "available", "options": ["empty"] }"""

Becomes that:
'''{ "view": "available", "options": ["empty"] }"""

This:
"""JSON is missing image"""

Becomes that:
""'JSON is missing image'""

That behaviour is not good.
Kind regards

Still valid and relevant issue.
How do I remove the label?


Reimplement user-defined secret access api to operators

The first secret API design included a use case where operators use secret keys given by users in workflow definition (e.g.: config: {spark.td.apikey: {secret: td.apikey}}} but #344 removed it.
This PR re-adds to the API to the operator API. Use case:

Operators must declare list of accessing secret keys in OperatorFactory.getSecretAccessList.
But users can explicitly grant access to secrets using _secret directive when users give name of the secrets as a configuration parameter. Operators can get these secrets even when getSecretAccessList doesn't include them.
Operators still have a chance to reject it by implementing Operator.testUserSecretAccess(key) method. This is useful when operators give SecretProvider to an external library and operators want to avoid the library's unexpected use of secrets.

👍

👍  Merged!