Transaction Input Bug

Since inputCount is used to determine how many inputs were used in a transaction, if a user were to create a transaction with Input 1 zeroed out and Input 2 with a valid reference to a utxo. They would not be able to successfully withdraw from that transaction as Validate.sol would attempt to check for two valid inputs.
Perhaps enforcing valid transaction structuring on the child chain would be the best way to avoid this. Any input 1 field with all zeros should also imply that input 2 fields are also zero.
-Blockchain @ Berkeley Researcher

Yep, confirming this issue.
The problem is here:
        if (inputCount == 0) {
            return msg.sender == ECRecovery.recover(confirmationHash, confSig1);
        }
        if (inputCount <<PHONE_NUMBER>) {
            return ECRecovery.recover(txHash, sig1) == ECRecovery.recover(confirmationHash, confSig1);
        } else {
            bytes memory confSig2 = ByteUtils.slice(sigs, 195, 65);
            bool check1 = ECRecovery.recover(txHash, sig1) == ECRecovery.recover(confirmationHash, confSig1);
            bool check2 = ECRecovery.recover(txHash, sig2) == ECRecovery.recover(confirmationHash, confSig2);
            return check1 && check2;
        }

inputCount is determined by multiplying the block number of the second input by<PHONE_NUMBER> and then adding the block number of the second input. There are four potential cases here, both are 0, both are non-0, or only one is non-0. In this last case we need to check one of two signatures. We can't always be sure that the first input of the two is going to be the non-0 one.
We could fix by checking if the first 9 digits of inputCount is > 0, something like:
if ((inputCount % 10 ** 9) > 0) {
    // check first sig
}
if (inputCount ><PHONE_NUMBER>) {
    // check second sig
}


Fixed tests

This fixes functional tests in preparation of Travis activation.

I've refactored some backend controllers (https://github.com/javiereguiluz/symfony-demo/commit/1cae0a24328f81980f03c7abcbdf9115f4f3f42b) to fix tests while maintaining the isAuthor() original code. Tests work again, although Travis has some problems on its own.

Great work! :+1:


Fix for 3089 X64 ext_mul_i8x16 has incorrect lowering

Not ready to merge but intended to fix #3089. Passes spec tests but spec tests but spec tests didn't catch the faulty lowering and so need improvements. Can't find tools wat2wasm tools that support extmul_high (wabt for example does not generate from a wat file) .. but will check against v8 implementation as soon as I can generate a wasm binary that has this instruction.

Ok ... checked by just decomposing the instruction and comparing results.
Here compared call to low with call to mul_widen_low_s and did the same for the high compared to mul_widen_high_s. Results were consistent. But was just due to incorrect register usage when inlining the widen part for the instructions.
`(module
(func $inputs (result v128 v128)
v128.const i8x16 -1 -2 3 100 124 -38 33 87 92 108 22 8 -43 -128 22 0
v128.const i8x16 -5 -2 6 10 45 -4 4 -2 0 88 92 -102 -98 83 73 54)
(func $input_a (result v128)
v128.const i8x16 -1 -2 3 100 124 -38 33 87 92 108 22 8 -43 -128 22 0)
(func $input_b (result v128)
v128.const i8x16 -5 -2 6 10 45 -4 4 -2 0 88 92 -102 -98 83 73 54)
(func (export "low") (result v128)
call $inputs
i16x8.extmul_low_i8x16_s)
(func (export "high") (result v128)
call $inputs
i16x8.extmul_high_i8x16_s)
(func (export "mul_widen_low_s") (result v128)
call $input_a
i16x8.extend_low_i8x16_s
call $input_b
i16x8.extend_low_i8x16_s
i16x8.mul)
(func (export "mul_widen_high_s") (result v128)
call $input_a
i16x8.extend_high_i8x16_s
call $input_b
i16x8.extend_high_i8x16_s
i16x8.mul)
)`

LGTM; thanks for the fix!
Regarding extra tests: yes, it might be nice to add some more tests here, and actually I'd prefer to get coverage via our own tests and merge this sooner (since we know we are generating incorrect code) rather than wait for improvements to the upstream spec-test suite and updating that here.
IMHO a runtest might be slightly preferable over a generated-code test; especially with SIMD and FP tests, where the goal is to ensure correctness rather than to see that we're successfully using a particular instruction, I'd prefer not to overfit on particular golden machine code (which may change later with other compiler updates, e.g. regalloc or other opts).

Thanks @cfallin. I'll merge this then and we can focus on a runtest as a separate commit.


Cannot open shared object file libMagickWand-6.Q16.so

Executing the following commands inside the Juno Julia console
using Images, ImageView,TestImages
img = testimage("mandrill")

yields the error:
Error encountered while loading "/home/zygmunt/.julia/v0.6/TestImages/images/mandrill.tiff".
Fatal error:
ERROR: InitError: could not load library "/usr/lib/x86_64-linux-gnu/libMagickWand-6.Q16.so"
/usr/lib/x86_64-linux-gnu/libMagickWand-6.Q16.so: cannot open shared object file: No such file or directory
during initialization of module ImageMagick

I am running the following version of Julia
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: https://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.6.2 (2017-12-13 18:08 UTC)
 _/ |\__'_|_|_|\__'_|  |  Official http://julialang.org/ release
|__/                   |  x86_64-pc-linux-gnu

with

Atom  0.6.11
Julia Client 0.6.10
Ink 0.8.3
Uber Juno 0.1.2

If I execute the aforementioned commands from a Julia REPL outside of Juno everything works fine. I've also confirmed that everything works correctly using the VSCode editor. Hence, I suspect that something in Juno is causing the problem.

Atom sometimes does weird things to your PATH, which probably is the reason for this. So far I couldn't repro your issue, but I also don't have access to my linux box right now.
It would be very helpful if you could compare ENV in Juno and in the REPL.

You are right, the problem is that the PATH variable is different. Shelling out from the Julia terminal inside Atom gives:
PATH=/home/zygmunt/.var/app/io.atom.Atom/data/python/bin:/app/bin:/usr/bin (ATOM)
whereas shelling out from the canonical Julia terminal gives:
PATH=/home/zygmunt/bin:/home/zygmunt/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
Do you happen to know how to specify the PATH for Atom?

You're probably setting your PATH in .bashrc or something similar, right? In that case you should get the correct PATH when starting Atom from your shell.


Raw arrays - SkillDatabase

(wrong button, didn't mean to start a review...)

Nice. I think people have sometimes typed things too closely - you basically never need to type something as ArrayList or LinkedList specifically (nor HashMap, SortedMap etc)


cannot find symbol notificationManager.createNotificationChannel

Hi,
I'm getting the following error using last version (8.2.1) of the plugin:
C:\flutter\.pub-cache\hosted\pub.dartlang.org\geolocator_android-3.1.8\android\src\main\java\com\baseflow\geolocator\location\BackgroundNotification.java:71: error: cannot find symbol
            notificationManager.createNotificationChannel(channel);
                               ^
  symbol:   method createNotificationChannel(NotificationChannel)
  location: variable notificationManager of type NotificationManagerCompat
1 error

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':geolocator_android:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

Hi @tigrenok00,
This might happen when an older version of the androidx.core or androidx.appcompat libraries are used. Could you please add the contents of the android/build.gradle and android/app/build.gradle?

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

Facing Same problem @tigrenok00 How did you solve it. Please help

Facing same problem, Please help


How can I feed a binarized class label file to BART training?

Is there any way that I can feed a label file to the training mechanism, Farrelly with source and target files.

Could you be more specific, please!

@Vsanku01  Thank you for the interest.
Basically I want to feed a class label for the source text. I am thinking about whether I can feed a class label, while feeding source and target text (similar to text generation or translation task) in the training time.

I think the easiest way would be to build this into your vocabulary.  For example, find a unique token (ex: __class_label_0__, __class__label_1__, ..., __class_label_n__) and prepend these special tokens on to the beginning (or end) of your sequences before calling fairseq-preprocess.

Thank you very much.

@lematt1991
How can I create a unique token as you mentioned above?
What if I append a token  like "class_label_0" to the text and then do the tokenization.

What if I append a token like "class_label_0" to the text and then do the tokenization.

Yep, that's exactly what I meant.

Thanks a lot.


DataChannels: Silently ignore ChannelAck

Handle silently ChannelAck for now.
Relates to #167

Pull Request Test Coverage Report for Build 910

0 of 2 (0.0%)  changed or added relevant lines in 1 file are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-0.008%) to 52.656%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

internal/network/manager.go
0
2
0.0%

Files with Coverage Reduction
New Missed Lines
%

internal/dtls/dtls.go
1
18.25%

Totals

Change from base Build 904:
-0.008%

Covered Lines:
3311

Relevant Lines:
6288

💛  - Coveralls


Not really a 'Howto'

The title is "How To: Investigate Risk" but the page doesn't tell you how to do that.  It just describes three risk reports.
What happens when an admin clicks 'Confirm User Compromise'?  Or dismisses the risk.  When should an admin use 'Reset Password' vs 'Block User' vs 'Confirm user compromise'?

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

ID: 5779b726-83b3-3242-297a-17410b372ab5
Version Independent ID: ff902d75-e5b4-25db-4d31-80d28808efff
Content: Investigate risk Azure Active Directory Identity Protection
Content Source: articles/active-directory/identity-protection/howto-identity-protection-investigate-risk.md
Service: active-directory
Sub-service: identity-protection
GitHub Login: @MicrosoftGuyJFlo
Microsoft Alias: joflore

@knightcott-paul
Thanks for your feedback! We will investigate and update as appropriate.

@knightcott-paul we made some updates yesterday that should address your concerns. https://github.com/MicrosoftDocs/azure-docs-pr/pull/183098

#please-close


Eldritch Guardian?

I guess i'm not sure if this is a bug, or a question on intent.
So the tabletop version you're meant to use a familiar; which with that let you increase the size of the familiar it basically became a stand-in (and with some of the improved familiars potentially better) animal companion. Here you get the familiar, but as they're just passive buffs in the game and not interactable this doesn't work.
So i see that it shares the feats with animal companions you have; which my question becomes; is this meant to give you an animal companion or is this an archetype that only works with gestalt characters? Because it seems very odd to have an archetype to share feats with an animal companion on on class that does not gain one.

It only works with multiclassing characters, or you can take animal companion feat chain (TTT)

Ok; that seems odd to me that its primary feature doesn't work by itself; i guess i could just use toybox to cheat in those feats, or just gestalt to make it functional.

It's mainly because fighter has a decent power level already, giving him an animal companion is probably too much, but everyone has their own play style :)


Client Allocation Request for: bebo

Client Allocation Questions
Core Information

Name: bebo
Website / Social Media: https://github.com/filecoin-project/slingshot/pull/195/files
DataCap Requested: 2TiB
Addresses to be Notarized: f1vwas4pwezl3fk5xelbxtjn5n2tjdhxtz62aq4ni

Hey @sprwig - thanks for your request. Can you please elaborate more on

yourself , e.g. include links to social media / news mentions etc
your history working on IPFS / Filecoin, e.g. notable contributions to the community, type of engagement shown over time etc
type and source of the data you are looking to store on Filecoin, e.g. public data vs private data etc

Hey @sprwig - friendly nudge on the above.


Fuzzy text after hoovering over button

When I hoover over button the clear and nice font always went to be little bit fuzzy (see screenshot).
Same behavior for each button in the "Folders" menu and "Units" menu.
Same behavior always (doesn't matter if you restart app, Windows or not)
resolution: 1920x1080px
OS version: Windows 10 Home 19042.746
App version: <IP_ADDRESS>
Expected behavior: Clear sharp font on the hoovered button

See #3143

See #3143


PATCH support

Is your feature request related to a problem? Please describe.
http://www.hl7.org/fhir/STU3/http.html#patch
Describe the solution you'd like
PATCH method is supported as described in the spec.
Failed tests
ConnectathonPatchTrackTest

I created a draft PR to propose a way to add support for patch.

@kennethmyhra  Can we close this issue now that #341 has been merged?

Absolutely

http://www.hl7.org/fhir/R4/http.html#patch

The body of a PATCH operation SHALL be either:
a JSON Patch  document with a content type of application/json-patch+json
an XML Patch  document with a content type of application/xml-patch+xml
a FHIRPath Patch parameters resource with FHIR Content Type

for now, it seems that only FHIR Patch was implemented. Can't really say this issue is solved... Can't re-enable tests because of that (tests send JSON patch).

https://github.com/FirelyTeam/spark/issues/384


test case for validating incorrect content type

this test case validates if the content type is different to application/json. We are passing application/xml and then assert for error code 406 on the response
tested environment
1.ubuntu 18.04
2.java 1.8.0_161

closing the PR until the cleanup

closing this PR as a wrong file has been added "ProvisionUserWithAllAttributesTestCase.java"


[Feature]: add JavaScript solution for Hashing

Adding javascript solution for all hashing algorithms,
Assign me this under hacktoberfest and gssoc-ext.
and please increase the level their is more than 8 algorithms according to you, thank you

@ajay-dhangar can you please assign me this issue.


Can't even ls without sudo

How I'm mounting:
sudo goofys -o allow_other --profile s3Mounter --file-mode=0666 --dir-mode=0666 bucket /mnt/bucket/
When I ls /mnt/bucket I get the details but also get ls: cannot access '/mnt/bucket/bucketFolder': Permission denied for every directory unless I sudo.
If I ls -l /mnt/bucket I get d????????? ? ? ? ?            ? bucketFolder but sudoing that gives me
drw-rw-rw- 2 root root 4096 Jun 21 21:24 bucketFolder
Why can only root access this if it's rw for all?

goofys is doing exactly what you asked it to do. Here's the equivalent on a regular ext4 filesystem:
$ chmod 0666 b
$ ls b
ls: cannot access 'b/1': Permission denied
1

You want to give execute permission to --dir-mode


Update upgrade-readiness-additional-insights.md

Minor fixes to clarify that Site discovery does work on Win10 machines now.

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot

This can go ahead and go live as far as I'm concerned.


add DetachMap and DetachProgram helpers

It's currently complicated to write code which reliably cleans up references
to maps or programs on errors.
coll, err := LoadCollection("/some/file")

// ...

if err != nil {
    // We leak coll at this point
return err
}

DetachMap and DetachProgram make this a bit nicer:
coll, err := LoadCollection("/some/file")
// Handle err
defer coll.Close()

myMap := coll.DetachMap("my_map")
defer myMap.Close()

// ...

if err != nil {
return err
}

return coll.DetachProgram("my_program")

This has the nice side benefit that anything in coll which is not
explicitly used by the user space program is freed as soon as the enclosing
function returns.

Codecov Report

Merging #60 into master will increase coverage by 0.23%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #60      +/-   ##
==========================================
+ Coverage   58.04%   58.28%   +0.23%
==========================================
  Files          10       10
  Lines        1392     1400       +8
==========================================
+ Hits          808      816       +8
  Misses        467      467
  Partials      117      117

Impacted Files
Coverage Δ

collection.go
28.68% <100%> (+4.71%)
:arrow_up:

Continue to review full report at Codecov.

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


[Bug]: Camera.onUserTrackingModeChange not called on followUserMode change on Android

Mapbox Implementation
Mapbox
Mapbox Version
default
Platform
Android
@rnmapbox/maps version
10.0.12
Standalone component to reproduce
import React, {useState} from 'react';
import MapboxGL, {Camera, MapView, UserTrackingMode} from '@rnmapbox/maps';
import {Button, Platform} from 'react-native';

const App = () => {
  const [followUserMode, setFollowUserMode] = useState<
    UserTrackingMode | undefined
  >(UserTrackingMode.Follow);

  return (
    <>
      {Object.values(UserTrackingMode).map((mode: any) => (
        <Button
          key={mode}
          title={`${mode} ${mode === followUserMode ? '(active)' : ''}`}
          onPress={() => {
            console.log('setMode', mode);
           setFollowUserMode(mode);
          }}
        />
      ))}
      <MapView style={{flex: 1}}>
        <MapboxGL.UserLocation visible showsUserHeadingIndicator />

        <Camera
          followUserLocation
          followUserMode={followUserMode}
          onUserTrackingModeChange={(event: any) => {
            console.log(
              `onUserTrackingModeChange(${event.nativeEvent.payload.followUserMode})`,
            );

            setFollowUserMode(
              event.nativeEvent.payload.followUserMode || undefined,
            );
          }}
        />
      </MapView>
    </>
  );
};

export default App;

Observed behavior and steps to reproduce
When changing the followUserMode, the onUserTrackingModeChange callback is called on iOS but is not called on Android.
Expected behavior
The onUserTrackingModeChange callback should be called on both platforms.
Notes / preliminary analysis
No response
Additional links and references
Found a comment about this issue here:
https://github.com/rnmapbox/maps/issues/1090

@andrei-tofan sorry I did not have time to look into it.
Trying on current main or 10.1 beta-s would help.
You can also try to debug the viewport code https://github.com/rnmapbox/maps/pull/2767/files

The button's were changed so it got called.
This is the console log:
 LOG  Running "RNMapboxGLExample" with {"rootTag":21}
 LOG  onUserTrackingModeChange([object Object])
 LOG  onUserTrackingModeChange([object Object])
 LOG  mode normal
 LOG  onUserTrackingModeChange([object Object])
 LOG  onUserTrackingModeChange([object Object])
 LOG  mode compass
 LOG  onUserTrackingModeChange([object Object])
 LOG  onUserTrackingModeChange([object Object])
 LOG  mode normal
 LOG  onUserTrackingModeChange([object Object])
 LOG  onUserTrackingModeChange([object Object])
 LOG  mode compass
 LOG  onUserTrackingModeChange([object Object])
 LOG  onUserTrackingModeChange([object Object])

Hi @mfazekas,
I am a colleague of @andrei-tofan and helping him with this issue, hence why I also get involved in this thread.
We are not getting the onUserTrackingModeChange log in the same way as you on Android.
See the attached video where I try to illustrate when it is firing only when dragging on the map with finger (an android phone running os 9).
https://github.com/rnmapbox/maps/assets/2103778/c3af00a7-5b3a-4537-a58a-743d4aa9a4b6
I have also tested on an Android tablet with os 11 and having the same problem there.
On iOS it is firing on every mode change, just as in your console log example.
I hope this helps in illustrating the problem we are having, but let me know if we can provide further info.

@jaltin Ok sorry I wasn't careful enough reading the issue. So you're missing onUserTrackingModeChange in case you're programatically changing followUserMode on the Camera.

@andrei-tofan this should be addressed in 10.1.0-beta.13


(node:35442) Warning: require() of ES modules is not supported.

I am trying to convert an obj that doesn't reference an mtl to GLB using PBR textures explicitly set by the option flags using the following command:
obj2gltf -i Monaco1-DrawerNightstand_82334_low_scaled.obj -o Monaco1-DrawerNightstand_82334_ClassicPaint_CoastalClear_PolishedNickel.glb -b --baseColorTexture Monaco1-DrawerNightstand_82334_ClassicPaint_CoastalClear_PolishedNickel_Albedo.jpg --normalTexture Monaco1-DrawerNightstand_82334_ClassicPaint_CoastalClear_PolishedNickel_Normal_OpenGL.png --metallicRoughnessOcclusionTexture Monaco1-DrawerNightstand_82334_ClassicPaint_CoastalClear_PolishedNickel_MetallicRoughnessOcclusionRGB.jpg
When run, I get this:
(node:35442) Warning: require() of ES modules is not supported. require() of /usr/local/lib/node_modules/obj2gltf/node_modules/cesium/index.js from /usr/local/lib/node_modules/obj2gltf/bin/obj2gltf.js is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules. Instead rename index.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from /usr/local/lib/node_modules/obj2gltf/node_modules/cesium/package.json. ENOENT: no such file or directory, open '/Users/aaron/Desktop/GLTF_tests/iOS_Optimized/Monaco1-DrawerNightstand_82334_low_scaled.obj'
A GLB file is output, but doesn't seem to have the correct maps in place.

@aaronxowen CesiumJS was recently updated to ES6 so it's possible that's related to the warning. A few questions...

What Node version are you using?
Do you see the same warning if you try to convert the obj to gltf without the material options?
Can you confirm that the obj exists?  I'm trying to figure out why this error message shows up: ENOENT: no such file or directory, open '/Users/aaron/Desktop/GLTF_tests/iOS_Optimized/Monaco1-DrawerNightstand_82334_low_scaled.obj'

I'm not seeing any issues on my end after updating packages but there could be a few different factors at play.

Originally I tried to use 13.2.0, but couldn't get it to run at all on the command line (macOS 10.14.6), so I switched to node 12.13.1 and it runs, but with those errors.
I believe that the "ENOENT: no such file or directory" error is related to the .obj not referencing a mtl at all. I had exported the obj from Maya with materials turned off, so there were no "usemtl" or "mtllib" statements in the obj. I thought I'd be able to override the lack of mtl with specific mappings to external texture files like I do with Apple's python USDZ converter.
If I run obj2gltf on an obj that references a mtl file and override with the flags for external texture map files, it appears to work correctly, but still throws the warning about require():
(node:51774) Warning: require() of ES modules is not supported. require() of /usr/local/lib/node_modules/obj2gltf/node_modules/cesium/index.js from /usr/local/lib/node_modules/obj2gltf/bin/obj2gltf.js is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules. Instead rename index.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from /usr/local/lib/node_modules/obj2gltf/node_modules/cesium/package.json. Total: 1032.669ms

@aaronxowen we're tracking this from the cesium side - https://github.com/AnalyticalGraphicsInc/cesium/issues/8452
We hope to have a fix by the next Cesium release on Jan 2.

CesiumJS 1.68.0 was released yesterday with the fix. I tested that obj2gltf now works with Node 13.12.0.


Add the function to generate metasploit-framework module list

This PR will be used for CVEs in the metasploit-framework-db detection of Vuls in the future.
The functions provided are as follows.
What did you implement:

Fetch the latest metasploit-framework to the cache directory
Update msfdb-list which stores CVEs list
Extracting the necessary information from the metasploit-framework module scripts

Modules in the CVE are biased towards auxiliary & exploits,
so I added the updater code to these two only.
NOTICE: Push to msfdb-list repo will be implemented after the review...
How Has This Been Tested?
The samples are used to test the regular expression-related parts of the code.
$ make test
fatal: No names found, cannot describe anything.
GO111MODULE=off go get -u golang.org/x/lint/golint
golint github.com/vulsio/msfdb-list-updater github.com/vulsio/msfdb-list-updater/git github.com/vulsio/msfdb-list-updater/log github.com/vulsio/msfdb-list-updater/models github.com/vulsio/msfdb-list-updater/msf github.com/vulsio/msfdb-list-updater/utils
echo github.com/vulsio/msfdb-list-updater github.com/vulsio/msfdb-list-updater/git github.com/vulsio/msfdb-list-updater/log github.com/vulsio/msfdb-list-updater/models github.com/vulsio/msfdb-list-updater/msf github.com/vulsio/msfdb-list-updater/utils | xargs env GO111MODULE=on go vet || exit;
gofmt -d git/git.go; gofmt -d log/log.go; gofmt -d main.go; gofmt -d models/type.go; gofmt -d msf/msf.go; gofmt -d msf/msf_test.go; gofmt -d utils/last_updated.go; gofmt -d utils/utils.go;
diff -u models/type.go.orig models/type.go
--- models/type.go.orig	2020-06-14 15:05:21.000000000 +0900
+++ models/type.go	2020-06-14 15:05:21.000000000 +0900
@@ -11,4 +11,4 @@
 }

 // Modules :
-type Modules []Module
\ No newline at end of file
+type Modules []Module
GO111MODULE=on go test -cover -v ./... || exit;
?   	github.com/vulsio/msfdb-list-updater	[no test files]
?   	github.com/vulsio/msfdb-list-updater/git	[no test files]
?   	github.com/vulsio/msfdb-list-updater/log	[no test files]
?   	github.com/vulsio/msfdb-list-updater/models	[no test files]
=== RUN   TestParse
=== RUN   TestParse/example.rb
=== RUN   TestParse/example_webapp.rb
=== RUN   TestParse/binder_uaf.rb
=== RUN   TestParse/example.rb#01
=== RUN   TestParse/openemr_sqli_dump.rb
--- PASS: TestParse (0.01s)
    --- PASS: TestParse/example.rb (0.00s)
    --- PASS: TestParse/example_webapp.rb (0.00s)
    --- PASS: TestParse/binder_uaf.rb (0.00s)
    --- PASS: TestParse/example.rb#01 (0.00s)
    --- PASS: TestParse/openemr_sqli_dump.rb (0.00s)
PASS
coverage: 47.6% of statements
ok  	github.com/vulsio/msfdb-list-updater/msf	(cached)	coverage: 47.6% of statements
?   	github.com/vulsio/msfdb-list-updater/utils	[no test files]

Others
Usage
$ msfdb-list-updater -h
Usage of msfdb-list-updater:
  -target string
        update target (msf)

msfdb-list
By executing updater, the msfdb-list is changed as follows.
$ tree -L 2 msfdb-list/
msfdb-list/
├── README.md
├── last_updated.json
└── rapid7
    ├── 1999
    ├── 2000
    ├── 2001
    ├── 2002
    ├── 2003
    ├── 2004
    ├── 2005
    ├── 2006
    ├── 2007
    ├── 2008
    ├── 2009
    ├── 2010
    ├── 2011
    ├── 2012
    ├── 2013
    ├── 2014
    ├── 2015
    ├── 2016
    ├── 2017
    ├── 2018
    ├── 2019
    └── 2020

23 directories, 2 files

$ bat msfdb-list/rapid7/2020/CVE-2020-4429.json
───────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
       │ File: msfdb-list/rapid7/2020/CVE-2020-4429.json
───────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1   │ [
   2   │   {
   3   │     "Name": "ibm_drm_download.rb",
   4   │     "Title": "IBM Data Risk Manager Arbitrary File Download",
   5   │     "Discription": "IBM Data Risk Manager (IDRM) contains two vulnerabilities that can be chained by an unauthenticated attacker to download arbitrary files off the system. The first is an unauthenticated bypass, followed by a pa
       │ th traversal. This module exploits both vulnerabilities, giving an attacker the ability to download (non-root) files. A downloaded file is zipped, and this module also unzips it before storing it in the database. By default this
       │ module downloads Tomcat's application.properties files, which contains the database password, amongst other sensitive data. At the time of disclosure, this is a 0 day. Versions 2.0.3 and 2.0.2 are confirmed to be affected, and th
       │ e latest 2.0.6 is most likely affected too. Version 2.0.1 is not vulnerable.",
   6   │     "CveIDs": [
   7   │       "CVE-2020-4427",
   8   │       "CVE-2020-4429"
   9   │     ],
  10   │     "References": [
  11   │       "https://github.com/pedrib/PoC/blob/master/advisories/IBM/ibm_drm/ibm_drm_rce.md",
  12   │       "https://seclists.org/fulldisclosure/2020/Apr/33"
  13   │     ]
  14   │   },
  15   │   {
  16   │     "Name": "ibm_drm_rce.rb",
  17   │     "Title": "IBM Data Risk Manager Unauthenticated Remote Code Execution",
  18   │     "Discription": "IBM Data Risk Manager (IDRM) contains three vulnerabilities that can be chained by an unauthenticated attacker to achieve remote code execution as root. The first is an unauthenticated bypass, followed by a co
       │ mmand injection as the server user, and finally abuse of an insecure default password. This module exploits all three vulnerabilities, giving the attacker a root shell. At the time of disclosure, this is a 0day. Versions 2.0.3 an
       │ d below are confirmed to be affected, and the latest 2.0.6 is most likely affected too.",
  19   │     "CveIDs": [
  20   │       "CVE-2020-4427",
  21   │       "CVE-2020-4428",
  22   │       "CVE-2020-4429"
  23   │     ],
  24   │     "References": [
  25   │       "https://github.com/pedrib/PoC/blob/master/advisories/IBM/ibm_drm/ibm_drm_rce.md",
  26   │       "https://seclists.org/fulldisclosure/2020/Apr/33"
  27   │     ]
  28   │   },
  29   │   {
  30   │     "Name": "ibm_drm_a3user.rb",
  31   │     "Title": "IBM Data Risk Manager a3user Default Password",
  32   │     "Discription": "This module abuses a known default password in IBM Data Risk Manager. The 'a3user' has the default password 'idrm' and allows an attacker to log in to the virtual appliance via SSH. This can be escalate to ful
       │ l root access, as 'a3user' has sudo access with the default password. At the time of disclosure, this is a 0day. Versions <= 2.0.3 are confirmed to be affected, and the latest 2.0.6 is most likely affected too.",
  33   │     "CveIDs": [
  34   │       "CVE-2020-4429"
  35   │     ],
  36   │     "References": [
  37   │       "https://github.com/pedrib/PoC/blob/master/advisories/IBM/ibm_drm/ibm_drm_rce.md",
  38   │       "https://seclists.org/fulldisclosure/2020/Apr/33"
  39   │     ]
  40   │   }
  41   │ ]
───────┴──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Please check out some of the comments I made :)


Studnet service pagination for the GET /studnets

This issue have been resolved in the #127.

This issue has bee resolved with #127.


Wiki - Add DB for ETL Job

In the Wiki page for "Database POST/PUT API" it mentions nothing about db_type_id but it is required for the call. In the mysql database there is a column for it as well.

As mentioned in #102 , assign a default value should solve this.


Sum of km per drive

In Django Admin export, add a column which shows total kilometers driven during the route.


Improve user experience

https://github.com/Luwat/rock-paper-scissors/blob/a119ddcd8b59a60df7cf9a3d7672dfe12da1a129/script/script.js#L80
You can just change the text to this to help the player understand what to input
let input = prompt("Choose rock, paper, scissors");

Prompt changed


Edit the speakers_terms CSV File

Do we need the name broken down?
Answer: No.

Once I add a member ID to speakers_terms, I no longer need "full names"column.
I should get rid of DOB and DOD in speakers terms.

The "-1" means that the member ID is missing.


Prune down to just the C# generator

This avoids problems on Windows when cloning the repo - some
of the Dart template filenames can easily end up being way too
long, and we don't need them anyway.

Have cloned this to a clean directory, and built GeneratedLibraries.proj - it works fine.

How have you tested it?
Are you cloning using the Git bash command?   Using GitHub clone button?    What about cloning directly in VS?
Just curious not that i see this being an issue.

Cloned just by using git clone <url> and checking out the PR branch, then running msbuild GeneratedLibraries.proj. I don't typically clone directly in VS, but it should be fine.

lgtm

"any" is meant to be a generic sort of fake language - we don't need it.


[INLONG-4976][Manager] The Manager module supports the use of Kafka

Fixes #4976

@jun0315 please remove the inlong prefix in the class name, like InlongKafkaInfo.java to KafkaInfo.java.

@jun0315 please remove the inlong prefix in the class name, like InlongKafkaInfo.java to KafkaInfo.java.

@dockerzhang  Thanks for your review, I use the Pulsar naming standard for reference, and prefix is added here. see: InlongPulsarInfo.java

@woofyzhao Thanks for your review, I have solved the problems you mentioned above :D

@vernedeng Thanks for your review, I have solved the problems you mentioned above :D

Please rebase from the master branch first.

Please rebase from the master branch first.

Sorry, I have fixed it. @healchow

@healchow Thanks for your review, I have solved the problems you mentioned above :D


refactor: inventory page

Merges the Store and Wheel tabs, creates a new empty state component for the page. Fix #542

 refactor: inventory page


fix(model-api): add UID for INamedConcept

Add UID for INamedConcept.
The UID was missing for some reason.
This made me run into errors testing when testing the sync plugin.
To be verified by reviewers

[ ] Relevant public API members have been documented
[ ] Documentation related to this PR is complete

[ ] Boundary conditions are documented
[ ] Exceptions are documented
[ ] Nullability is documented if used

[ ] Touched existing code has been extended with documentation if missing
[ ] Code is readable
[ ] New features and fixed bugs are covered by tests

:tada: This PR is included in version 8.15.2 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Template name does not appear on mobile

I have a template called "person template" and another called "person automove template" but it is not possible to distinguish between the two. ideally I'd be able to know which one I was applying
a visual

(except I have no idea what /kb/construct-validity means, it doesn't appear in a search, only using this plugin)

it also doesn't work on minimal

Thanks for the testing! This is very odd. When I tested with the themes you mention everything worked as expected.
Some questions:

Is the issue the same when using the standard Obsidian theme? I would like to be certain this isn't theme related
What have you defined as the template folder in Templater?
If you search for one of the templates using only the @ symbol what is shown then? I have a theory that maybe the plugin fails to grab the names of the templates for some reason so I would like to see what happens when you search for the template as if it was a normal note

(except I have no idea what /kb/construct-validity means, it doesn't appear in a search, only using this plugin)
ah I found it, it's a link:

This is a bug. The plugin should not include weblinks. Thanks for catching that

it does seem to happen on default

I went and disabled all CSS suggestions too and it still happens

templater folder is 000 - Landing Page. Inbox. KO. Meta/_Templates

they appear

all debugging info:
SYSTEM INFO:
Operating system: android 12 (samsung SM-G991U)
Login status: not logged in
Live preview: on
Legacy editor: on
Base theme: light
Community theme: Primary
Snippets enabled: 17
Safe mode: off
Plugins installed: 49
Plugins enabled: 28
1: Templater
2: Hider
3: Advanced URI
4: MetaEdit
5: QuickAdd
6: Collapse All
7: Supercharged Links
8: Another Quick Switcher
9: Folder Note Core
10: Periodic Notes
11: Bartender
12: Style Settings
13: AidenLx's Folder Note
14: Smarter Markdown Hotkeys
15: Better Command Palette
16: Footnote Shortcut
17: Dynamic Table of Contents
18: Settings Search
19: Limelight
20: Customizable Page Header and Title Bar
21: Advanced Mobile Toolbar
22: Obsidian42 - BRAT
23: Code Editor Shortcuts
24: Various Complements
25: Omnisearch
26: Banners
27: Map View
28: Note Auto Creator
RECOMMENDATIONS:
Custom theme: for cosmetic issues, please first try updating your theme to latest. If still not fixed, please try to make the issue happen in the help vault or disable community theme and snippets.
Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the help vault or disable community plugins.

It also happens on desktop:

I have a lot more installed on desktop
SYSTEM INFO:
Obsidian version: v0.14.15
Installer version: v0.14.2
Operating system: Windows 10 Education 10.0.22000
Login status: logged in
Catalyst license: insider
Insider build toggle: on
Live preview: on
Legacy editor: off
Base theme: light
Community theme: Minimal
Snippets enabled: 20
Safe mode: off
Plugins installed: 101
Plugins enabled: 81
1: Style Settings
2: Folder Note Core
3: Templater
4: Collapse All
5: Customizable Page Header and Title Bar
6: Reset Font Size
7: Advanced URI
8: Another Quick Switcher
9: Bartender
10: Better Command Palette
11: Breadcrumbs
12: Code Editor Shortcuts
13: Contextual Typography
14: Core Search Assistant
15: Customizable Sidebar
16: Dataview
17: Hider
18: Grandfather
19: Format Hotkeys
20: Homepage
21: Hotkey Helper
22: Zoom
23: Word Sprint
24: Webhook Plugin
25: Various Complements
26: Recent Files
27: QuickAdd
28: Quick Explorer
29: Plugin Changelogs
30: Pane Relief
31: Outliner
32: Obsidian Tabs
33: Sentence Navigator
34: File Info Panel
35: Smarter Markdown Hotkeys
36: Cycle through Panes
37: Toggle Readable Line Length
38: File Explorer Note Count
39: Key Promoter
40: LanguageTool Integration
41: MySnippets
42: Multi-Column Markdown
43: MetaEdit
44: Local images
45: Linked Data Vocabularies
46: Natural Language Dates
47: Tag Wrangler
48: File path to URI
49: Link Archive
50: Tweet to Markdown
51: Settings Search
52: Footnote Shortcut
53: Obsidian Charts
54: Dynamic Table of Contents
55: Periodic Notes
56: Hover Editor
57: AidenLx's Folder Note
58: Zotero Integration
59: Waypoint
60: Banners
61: Custom Frames
62: AidenLx's Folder Note - folderv component
63: Macros
64: Open with
65: Obsidian42 - BRAT
66: List Modified
67: Paste image rename
68: Snippet Downloader
69: Longform
70: Minimal Theme Settings
71: Omnisearch
72: Advanced Tables
73: Excalidraw
74: Excel to Markdown Table
75: Text Generator
76: Limelight
77: Obsidian Enhancing Export
78: Map View
79: DB Folder
80: Supercharged Links
81: Note Auto Creator
RECOMMENDATIONS:
Custom theme: for cosmetic issues, please first try updating your theme to latest. If still not fixed, please try to make the issue happen in the help vault or disable community theme and snippets.
Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the help vault or disable community plugins.

It does not happen on desktop sandbox vault w just autocreator and templater

Thanks a lot! I can reproduce this now. It has something to do with the template folder path. I will try to fix it this weekend

yay!

Apparently, my weekend started already. I just made a new public release with a fix for the folder issue.
I hadn't considered that folders and files could have dots in the path before the file extension.
I tested it with your folder name and it works now.
Thanks for the help in finding this issue!

happy weekend! thank you SO much—I can finally delete the 74 templates I've had around forever. This plugin will save me an incredible about of time—it's perfect when paired with supercharged links and breadcrumbs!


minimum flask version differs between website info and github code

According to your website, minimum flask version is 2.0.0.
However, by checking your code, I can see your tags >= 2.0 request flask 2.2.0 instead.
I have a large project using flask 2.1.2, and it would demand a large effort to upgrade it to flask 2.2.0.
Do you really need flask >= 2.2.0? Could it be 2.1.2?
Thanks in advance.

In a similar boat, using 2.0.3 and would prefer not to have to upgrade at this time.

I experimented with this in a pull request. It looks like some of the examples which we use for testing depend on more recent features. What do you think @greyli? We could either fix them or increase the dependency. Personally I would prefer not to have to upgrade Flask but I understand as a maintainer it might be easier to just bump the requirement and calling it a day.

I'm Okay to loosen the version to 2.0.
I pin to > 2.2 because I added the list return value support back to Flask 2.2, and then I removed the related code in APIFlask.
@wlach To change it back to 2.0, you will also need to add this method back.

@icarocd @wlach 2.0.2 released. Thanks for the feedback and improvement!


Creating More than 574 Entries Causes Testing Framework to Hang

Here is the test file that causes this issue:
thetest.txt
When you remove the last line, the test runs fine. With the last line, it hangs.
Outside of the testing framework, the queries run just fine.

Some notes here: the hang is due to dead lock when rolling back the transaction due to the BM "cannot find a frame" exception. The deadlock happens during WalReplayer::checkpointOrRollbackVersionedFileHandleAndBufferManager -> WALPageIdxGroup->acquireWALPageIdxLock.
Will investigate more later.


[BUG][Doc] AuthenticationType class has an invalid doc link

What is the bug?
This bug is about the comment in the code which contains an invalid doc link.
https://github.com/opensearch-project/security-dashboards-plugin/blob/3bff6dbd139b782988c80284c702b9261ab2f267/server/auth/types/authentication_type.ts#L117
We shall either remove it or replace it with a valid link.
How can one reproduce the bug?
Steps to reproduce the behavior:
Check the code link https://github.com/opensearch-project/security-dashboards-plugin/blob/3bff6dbd139b782988c80284c702b9261ab2f267/server/auth/types/authentication_type.ts#L117
What is the expected behavior?
What is your host/environment?

OS: [e.g. iOS]
Version [e.g. 22]
Plugins

Do you have any screenshots?
If applicable, add screenshots to help explain your problem.
Do you have any additional context?
Add any other context about the problem.

[Triage] Hi @tianleh thanks for finding this issue. Please feel free to create a PR directing to the correct OpenSearch.org url.


update docs on test users

info on test zones and users

this PR should update all docs related to isTest, so docs need to be updated related to zones as well.


[SPARK-47852][PYTHON] Support DataFrameQueryContext for reverse operations

What changes were proposed in this pull request?
This PR proposes to support DataFrameQueryContext for reverse operations, such as rdiv, rsub and rmod.
Why are the changes needed?
To improve debuggability for reverse binary operations.
Does this PR introduce any user-facing change?
No API changes, but the user-facing error messages for reverse binary operations will be improved:
Example
The problematic rdiv is called from 4th line which raises DIVIDE_BY_ZERO:
  1 spark.conf.set("spark.sql.ansi.enabled", True)
  2 df = spark.createDataFrame([(0,), (1,), (2,)], ["id"])
  3
  4 a = 10 / df.id
  5 b = 0 / df.id
  6
  7 df.select(
  8     a,
  9     df.id + 4,
 10     b,
 11     df.id * 5
 12 ).collect()

Before
pyspark.errors.exceptions.captured.ArithmeticException: [DIVIDE_BY_ZERO] Division by zero. Use `try_divide` to tolerate divisor being 0 and return NULL instead. If necessary set "spark.sql.ansi.enabled" to "false" to bypass this error. SQLSTATE: 22012
== DataFrame ==
"divide" was called from
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

After
pyspark.errors.exceptions.captured.ArithmeticException: [DIVIDE_BY_ZERO] Division by zero. Use `try_divide` to tolerate divisor being 0 and return NULL instead. If necessary set "spark.sql.ansi.enabled" to "false" to bypass this error. SQLSTATE: 22012
== DataFrame ==
"divide" was called from
test_error_context.py:4

How was this patch tested?
Was this patch authored or co-authored using generative AI tooling?

This can be covered by https://github.com/apache/spark/pull/46063


APEXMALHAR-2365-Creation of generic log parser

Jira : (https://issues.apache.org/jira/browse/APEXMALHAR-2365)
APEXMALHAR-2365-Creation of generic log parser

@jogshraddha all looks good, just one last thing
squash all commits and include Apex Jira id the commit message see http://apex.apache.org/contributing.html for commands to squash the commits.

Travis build failing. I will close and reopen this PR

@tushargosavi : I have squashed all commits and reopened PR since build was failing.

Hi @jogshraddha , @tushargosavi ,
This operator should be under org.apache.apex.malhar.contrib.parser.
Any reason otherwise ?
Thanks,
Dev

@devtagare : All the other parser like JsonParser CsvParser etc are there under com.datatorrent.contrib.parser hence I have added this LogParser there itself. Let me know if the proper way is to put it under org.apache.apex.malhar.contrib.parser then I will make those changes.


[Chip] Splash on chip with delete icon is not clipped

The splash on chips with delete icon should be clipped to the shape of the ship. Right now it is outside of the chip, see screenshot:

Steps to reproduce

Go to flutter_gallery under Chips and delete a chip
The icon ripple is not clipped to the shape of the chip

Hi @perclasson
There doesn't seem to be any splash with delete icon
Do you think this issue is still valid?
Thank you

Yes, it looks like this issue is fixed on master. I'll close it.


Unable to parse non-quoted "algorithm" and "stale" property in Digest www-authenticate header

Issue
I'm a gentledev I:

[x] fully read the README recently
[x] searched for existing issues
[x] checked I'm up to date with the latest version of the project

Expected behavior
When receiving a Digest authentication header from a server with the following fields:
Digest<EMAIL_ADDRESS>nonce="fff...", qop="auth", opaque="aaa...", algorithm=MD5, stale=FALSE

I would expect the parser to handle the lack of quotes around MD5 and FALSE.
Actual behavior
When parsing the above example header, the http-auth-utils library throws this error:
YError: E_MALFORMED_QUOTEDKEYVALUE (4, algorithm=MD5, stale=FALSE, 3): E_MALFORMED_QUOTEDKEYVALUE
    at map (/Users/jake.pruitt/go/src/github.com/DataDog/synthetics-worker/node_modules/http-auth-utils/src/utils.ts:21:15)
    at Array.map (<anonymous>)
    at parseHTTPHeadersQuotedKeyValueSet (/Users/jake.pruitt/go/src/github.com/DataDog/synthetics-worker/node_modules/http-auth-utils/src/utils.ts:16:6)
    at Object.parseWWWAuthenticateRest (/Users/jake.pruitt/go/src/github.com/DataDog/synthetics-worker/node_modules/http-auth-utils/src/mechanisms/digest.ts:100:12)
    at some (/Users/jake.pruitt/go/src/github.com/DataDog/synthetics-worker/node_modules/http-auth-utils/src/index.ts:101:29)
    at Array.some (<anonymous>)
    at Object.parseWWWAuthenticateHeader (/Users/jake.pruitt/go/src/github.com/DataDog/synthetics-worker/node_modules/http-auth-utils/src/index.ts:94:18)
    at Object.getDigestAuthorizationHeader (/Users/jake.pruitt/go/src/github.com/DataDog/synthetics-worker/worker/src/lib/digest.ts:46:34)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at /Users/jake.pruitt/go/src/github.com/DataDog/synthetics-worker/worker/src/synthetics-http/http-request.ts:216:33 {
  code: 'E_MALFORMED_QUOTEDKEYVALUE',
  params: [ 4, 'algorithm=MD5, stale=FALSE', 3 ],
  wrappedErrors: []
}

Steps to reproduce the behavior
> const httpAuth = require('http-auth-utils')
> httpAuth.parseWWWAuthenticateHeader('Digest<EMAIL_ADDRESS>nonce="fff", qop="auth", opaque="aaa", algorithm=MD5, stale=FALSE')
Uncaught YError: E_MALFORMED_QUOTEDKEYVALUE (4, algorithm=MD5, stale=FALSE, 3)
    at /Users/jake.pruitt/go/src/github.com/DataDog/synthetics-worker/node_modules/http-auth-utils/dist/utils.js:24:13
    at Array.map (<anonymous>)
    at parseHTTPHeadersQuotedKeyValueSet (/Users/jake.pruitt/go/src/github.com/DataDog/synthetics-worker/node_modules/http-auth-utils/dist/utils.js:19:49)
    at Object.parseWWWAuthenticateRest (/Users/jake.pruitt/go/src/github.com/DataDog/synthetics-worker/node_modules/http-auth-utils/dist/mechanisms/digest.js:62:57)
    at /Users/jake.pruitt/go/src/github.com/DataDog/synthetics-worker/node_modules/http-auth-utils/dist/index.js:105:29
    at Array.some (<anonymous>)
    at Object.parseWWWAuthenticateHeader (/Users/jake.pruitt/go/src/github.com/DataDog/synthetics-worker/node_modules/http-auth-utils/dist/index.js:101:18) {
  code: 'E_MALFORMED_QUOTEDKEYVALUE',
  params: [ 4, 'algorithm=MD5, stale=FALSE', 3 ],
  wrappedErrors: []
}

Debugging informations

node -v result:

v12.22.4

npm -v result:

6.14.14

Thanks for reporting, feel free to PR otherwise I'll try to have a look when possible.


Create keystore if it doesn't exist

This PR fixes a bug where installing repository-azure plugin without installing x-pack does not create the keystore.
Closes #180

Links need to be update before merging to master


How to get a remote document?

How to get a remote document?

What do you mean by remote document?

When a sketch document is on the server, is there any way to add a layer to the document?
I try to open a sketch document on the server by the method below and I got an error.
Document.open('http://<IP_ADDRESS>:9999/ccc.sketch', (err, document) => {})
I can get a remote library from an RSS feed URL by method getRemoteLibraryWithRSS, but I can not add a layer to the library’s document.

How to remove a local shared style?

When a sketch document is on the server, is there any way to add a shared style to the document?

No, you will need to:

download the sketch document
open it
make your change
update the RSS feed
upload the changed document and the new rss feed

How to remove a local shared style?

`document.sharedTextStyles = document.sharedTextStyles.filter(sharedStyle => {
return sharedStyle.id !== SHARED_STYLE_ID_TO_REMOVE
})


feat: generalize Set.restrict_apply to dependent functions

Generalize Set.restrict_apply to dependent functions.

bors r+


DP missing Invisible Minecart elements

Without the datapack portions of Misode's Invisible Minecarts, minecarts in the world will not render.

After adding the datapack portions of Misode's Invisable Minecarts you will also need to update function ui:player/open. On the summon item_display command add "invisible_minecart" to the minecart_chest passanger's tags.


Support for mobile/touch screens

Hi there,
This plugin rocks it fixed the issue I was having with lagging parallax in chrome perfectly.
The only thing I can't figure out is how to get the images to scroll with the text when on a phone or tablet i.e. disable the parallax. I saw that you had planned on adding support for this. Using it now on my mobile device it is very buggy.
Thank you,
Matt

Hi @sandman21 ! Thanks for the compliment :)
Mobile devices try to conserve battery charge as much as possible. One of the things that mobile browsers do to achieve that is only send a scroll event after the touch scrolling has completed. On desktop, the scroll events are more granular.
Scroll events are what make this library work. Every time there's a tiny amount of scroll, the library adjusts the position of the background in order to give the parallax effect.
To achieve the same thing on mobile, one has to use a special library that will override the native scrolling in favour of its own touch-scrolling detection. While this is possible on a case-by-case basis, I have yet to find a good way to make it work in the context of a generic library like this one.
Yet another option would be the CSS-only parallax by Keith Clark. Again, I haven't found a way to make a generic library out of this technique.
If you have any suggestions on a way to implement either of these techniques I'd love to hear them. Meanwhile, what I do is simply not use parallax on touch devices. I use Modernizr to achieve that:
if (!Modernizr.touch) {
  $('...').parallax();
}


libglvnd: patch from upstream for libdl

Merged upstream as part of fixes for BSD's,
but also is right thing w/musl.

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[x] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Fits CONTRIBUTING.md.

No attempt on x86_64-darwin (full log)
The following builds were skipped because they don't evaluate on x86_64-darwin: libglvnd
Partial log (click to expand)

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowBroken = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowBroken = true; }
to ~/.config/nixpkgs/config.nix.

Success on x86_64-linux (full log)
Attempted: libglvnd
Partial log (click to expand)
shrinking /nix/store/8mmr9wr9nc4qdqifdsg96b67va0da03h-libglvnd-1.0.0/lib/libGLESv2.so.2.0.0
strip is /nix/store/j75dgadrff2d1fyc4fczmcgqkid2imdx-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/8mmr9wr9nc4qdqifdsg96b67va0da03h-libglvnd-1.0.0/lib
patching script interpreter paths in /nix/store/8mmr9wr9nc4qdqifdsg96b67va0da03h-libglvnd-1.0.0
checking for references to /build in /nix/store/8mmr9wr9nc4qdqifdsg96b67va0da03h-libglvnd-1.0.0...
shrinking RPATHs of ELF executables and libraries in /nix/store/lghzc3szdhlx1b1jdg118c2gx4wickyi-libglvnd-1.0.0-dev
strip is /nix/store/j75dgadrff2d1fyc4fczmcgqkid2imdx-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/lghzc3szdhlx1b1jdg118c2gx4wickyi-libglvnd-1.0.0-dev/lib
patching script interpreter paths in /nix/store/lghzc3szdhlx1b1jdg118c2gx4wickyi-libglvnd-1.0.0-dev
checking for references to /build in /nix/store/lghzc3szdhlx1b1jdg118c2gx4wickyi-libglvnd-1.0.0-dev...

Success on aarch64-linux (full log)
Attempted: libglvnd
Partial log (click to expand)
strip is /nix/store/j7d4mr0ikv974ig7yzhknpsq288js4bs-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/c4fpjq06qcb84q5jq76dpb71pgmy72lk-libglvnd-1.0.0/lib
patching script interpreter paths in /nix/store/c4fpjq06qcb84q5jq76dpb71pgmy72lk-libglvnd-1.0.0
checking for references to /build in /nix/store/c4fpjq06qcb84q5jq76dpb71pgmy72lk-libglvnd-1.0.0...
shrinking RPATHs of ELF executables and libraries in /nix/store/wd7m43z7xlbkmxjxraj3ax2bx632fkmq-libglvnd-1.0.0-dev
strip is /nix/store/j7d4mr0ikv974ig7yzhknpsq288js4bs-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/wd7m43z7xlbkmxjxraj3ax2bx632fkmq-libglvnd-1.0.0-dev/lib
patching script interpreter paths in /nix/store/wd7m43z7xlbkmxjxraj3ax2bx632fkmq-libglvnd-1.0.0-dev
checking for references to /build in /nix/store/wd7m43z7xlbkmxjxraj3ax2bx632fkmq-libglvnd-1.0.0-dev...
/nix/store/c4fpjq06qcb84q5jq76dpb71pgmy72lk-libglvnd-1.0.0


"invalid automation platform error" with mqtt automation when automations loaded before mqtt platform

Home Assistant release with the issue:

Home Assistant 0.101.2
Last working Home Assistant release (if known):
Operating environment (Hass.io/Docker/Windows/etc.):

Custom pip installation on Dietpi
Integration:

https://www.home-assistant.io/integrations/automation/
Description of problem:
When an automation that triggers on mqtt is loaded before the mqtt component, it triggers the following error and the automation does not work:
2019-11-05 00:05:09 ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: Invalid platform specified @ data['trigger'][0]. Got None. (See /home/hass/.homeassistant/configuration.yaml, line 214). Please check the docs at https://home-assistant.io/integrations/automation/

Other platforms (light, for example) is fine with mqtt platform being loaded after the light config itself. This is a recent error and it worked for me a few weeks ago.
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
automation:
- alias: "Incoming Call"
  trigger:
    platform: mqtt
    topic: incoming_call
  action:
    - service: media_player.media_pause
    - service: notify.notify
      data:
        title: "Incoming Call"
        message: "Call"

light:
  - platform: mqtt
    schema: json
    command_topic: "kueche/light/set"
    state_topic: "kueche/light/get"
    name: Küche mini LED

mqtt:
  discovery: true
  discovery_prefix: homeassistant
  password: foobar

Traceback (if applicable):

Additional information:
Happens with both Python Version 3.8.0 and 3.7.3

This issue seems to go away if I create an empty automation.yaml file. I'll change the title.

I think this is an issue with the automation editor and how its automations are loaded.

I now have a very good idea of what's going on and I edited the title and initial post accordingly.

@maweki is this still an issue on the latest version of HA?

@springstan Apparently this is fixed as I cannot reproduce this after reordering the configuration file.
Maybe this should be something for fuzzy testing for the integration tests, as reordering the main components of a configuration file should not change the end result.


[RNN] Max and min for dynamic tensors should be recorded during calibration: Failed for tensor arg1 Empty min/max for tensor arg1

1. System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Colab
TensorFlow installation (pip package or built from source): pip
TensorFlow library (version, if pip package or github SHA, if built from source): 2.8.0

2. Code
Provide code to help us reproduce your issues using one of the following options:
Colab Link

import tensorflow as tf

# Load MNIST dataset
mnist = tf.keras.datasets.mnist
(train_images, train_labels), (test_images, test_labels) = mnist.load_data()

# Normalize the input image so that each pixel value is between 0 to 1.
train_images = train_images / 255.0
test_images = test_images / 255.0

# Define the model architecture
model = tf.keras.Sequential([
  tf.keras.layers.InputLayer(input_shape=(28, 28)),
  tf.keras.layers.GRU(5,return_sequences=True),
  tf.keras.layers.Flatten(),
  tf.keras.layers.Dense(10)
])

# Train the digit classification model
model.compile(optimizer='adam',
              loss=tf.keras.losses.SparseCategoricalCrossentropy(from_logits=True),
              metrics=['accuracy'])
model.fit(
  train_images,
  train_labels,
  epochs=1,
  validation_data=(test_images, test_labels)
)

# Wrap it into function (like in https://colab.research.google.com/github/tensorflow/tensorflow/blob/master/tensorflow/lite/examples/experimental_new_converter/Keras_LSTM_fusion_Codelab.ipynb )
run_model = tf.function(lambda x: model(x))
BATCH_SIZE = 1
concrete_func = run_model.get_concrete_function(
    tf.TensorSpec([BATCH_SIZE, model.input.shape[1], model.input.shape[2]], model.inputs[0].dtype))

MODEL_DIR = "keras_model"
model.save(MODEL_DIR, save_format="tf", signatures=concrete_func)

# Convert it using integer quantization with int16 activations
converter = tf.lite.TFLiteConverter.from_saved_model(MODEL_DIR)
converter.optimizations = [tf.lite.Optimize.DEFAULT]
converter.target_spec.supported_ops = [tf.lite.OpsSet.EXPERIMENTAL_TFLITE_BUILTINS_ACTIVATIONS_INT16_WEIGHTS_INT8]
converter.inference_input_type = tf.int16
converter.inference_output_type = tf.int16

mnist_train, _ = tf.keras.datasets.mnist.load_data()
images = tf.cast(mnist_train[0], tf.float32) / 255.0
mnist_ds = tf.data.Dataset.from_tensor_slices((images)).batch(1)
def representative_data_gen():
  for input_value in mnist_ds.take(10):
    # Model has only one input so each data point has one element.
    yield [input_value]
converter.representative_dataset = representative_data_gen

tflite_16x8_model = converter.convert()

Output:
RuntimeError: Max and min for dynamic tensors should be recorded during calibration: Failed for tensor arg1 Empty min/max for tensor arg1
I'm trying to quantize this model using 8 bit for weights and 16 bit for activations. Code works perfectly if full 8 bit quantization (including activations) is used or if the GRU layer is removed. So the experimental 8x16 bit quantization seems to fail for GRUs.
4. (optional) RNN conversion support
If converting TF RNN to TFLite fused RNN ops, please prefix [RNN] in the title.
5. (optional) Any other info / logs
flatbuffers downgraded to version 1.12, got error otherwise (same as in https://github.com/tensorflow/tensorflow/issues/51590#issuecomment-912614740 ).

@schmiph2 ,
Can you please take a look at this SO link and the issue with the similar error.It helps.Thanks!

Unfortunately, these links didn't help me. The problem is really just with the 16x8 quantization of the GRU layer. If I remove the GRU layer, I can use the 16x8 quantization. Furthermore, when I switch to 8x8 quantization, everything works fine (including the GRU layer).
If you want to test it yourself without the GRU layer, please comment out the line tf.keras.layers.GRU(5,return_sequences=True) in the colab notebook.

Hi @sachinprasadhs ! Could you please look at this issue? It is replicating in  2.8 but throwing different error in 2.7, nightly .

The issue still exists with TF 2.11. Please find the gist here. Thank you.

I also encountered this problem. From tensorflow 2.8 to 2.11, this problem still exists. Does the official plan to make any fixes?

Hi,
Thank you for opening this issue. Since this issue has been open for a long time, the code/debug information for this issue may not be relevant with the current state of the code base.
The TFLite team is constantly improving the framework by fixing bugs and adding new features. We suggest you try the latest TensorFlow version with the latest compatible hardware configuration which could potentially resolve the issue. If you are still facing the issue, please create a new GitHub issue with your latest findings, with all the debugging information which could help us investigate.
Please follow the release notes to stay up to date with the latest developments which are happening in the TFLite space.


fix: remove obsolete environment variable npm_config_unsafe_perm

follows on from https://github.com/cypress-io/cypress-docker-images/pull/1077

Issue
https://github.com/cypress-io/cypress-docker-images/blob/b32255e644878bdbdf88e209f827c2ae47e24095/factory/factory.Dockerfile#L14-L15  sets an environment variable:
npm_config_unsafe_perm: true

This environment variable is obsolete.
Background
The lowest supported Node.js version is Node.js 18.0.0 which bundles npm 8.6.0. (See Node.js Release schedule.)
The npm CHANGELOG 7.0.0 > All Lifecycle Scripts says:

The user, group, uid, gid, and unsafe-perms configurations are  no longer relevant. When npm is run as root, scripts are always run with the effective uid and gid of the working directory owner.

The environment variable npm_config_unsafe_perm is no longer needed or used, since the current lowest supported version of npm (8.6.0) is higher than the version where its used was removed (7.0.0). Even considering Node.js 16.0.0 the lowest npm version is 7.10.0, which is already higher than the version where unsafe_perm was removed.
Change
Remove the environment variable npm_config_unsafe_perm from the factory/factory.Dockerfile file.
Bump FACTORY_VERSION.
Verification
cd factory
docker compose build factory
docker compose build
cd test-project
set -a && . ../.env && set +a
docker compose run test-factory-all-included
docker compose run test-factory-cypress-included-electron-non-root-user

  1) Aliasing
       .as() - alias a route for later use:

      Timed out retrying after 4000ms
      + expected - actual

      -502
      +200


MPU6050 accel and gyro values swapped

I am using the following code to print out MPU6050's values:
sensor_channel_get(mpu6050, SENSOR_CHAN_ACCEL_XYZ, accel);
sensor_channel_get(mpu6050, SENSOR_CHAN_GYRO_XYZ, gyro);
sensor_channel_get(mpu6050, SENSOR_CHAN_AMBIENT_TEMP, &temperature);

printf("Temp: %d.%06d\n"
          "Accel\tX: %d.%06d\tY: %d.%06d\tZ: %d.%06d\n"
          "Gyro\tX:%d.%06d\tY :%d.%06d\tZ: %d.%06d\n",
          temperature.val1, temperature.val2,
          accel[0].val1, accel[0].val2, accel[1].val1, accel[1].val2, accel[2].val1, accel[2].val2,
          gyro[0].val1, gyro[0].val2, gyro[1].val1, gyro[1].val2, gyro[1].val1, gyro[1].val2);

And with the sensor still at an angle, here is the output i am getting:
Temp: 30.224118
Accel   X: -3.-320758   Y: -1.-86968    Z: 8.693346
Gyro    X:0.-08393      Y :0.004263     Z: 0.004263

Ans you can see its showing a constant acceleration, when i gently move the unit the accel values change as if they were gyro values and when i shake the sensor the gyro values spike and they are normally stable at approx 0.0
The are clearly swapped.
when looking at this bit of the driver code, I thought that it might be a byte order issue, so gyro_z becomes buf[0] and accel_x becomes buf[6] but that doesn't seem to be the case as it does put the accel and gyro data in the correct place but the axis are all swapped
drv_data->accel_x = sys_be16_to_cpu(buf[0]);
drv_data->accel_y = sys_be16_to_cpu(buf[1]);
drv_data->accel_z = sys_be16_to_cpu(buf[2]);
drv_data->temp = sys_be16_to_cpu(buf[3]);
drv_data->gyro_x = sys_be16_to_cpu(buf[4]);
drv_data->gyro_y = sys_be16_to_cpu(buf[5]);
drv_data->gyro_z = sys_be16_to_cpu(buf[6]);

For whatever reason this assignment gave me the nearest reading, it doesn't follow the datasheet at all and so its probably not the correct solution or not even where the issue might be
drv_data->accel_x = sys_be16_to_cpu(buf[4]);
drv_data->accel_y = sys_be16_to_cpu(buf[5]);
drv_data->accel_z = sys_be16_to_cpu(buf[6]);
drv_data->temp = sys_be16_to_cpu(buf[3]);
drv_data->gyro_x = sys_be16_to_cpu(buf[1]);
drv_data->gyro_y = sys_be16_to_cpu(buf[0]);
drv_data->gyro_z = sys_be16_to_cpu(buf[2]);

Closing, sorry for the noise. For some reason my understanding of accel and gyro was swapped.


Feature/acct 3x pr3

there are some issues in the code with autoscaling behaviour.

Overall things look good, one thing I think would make the feature more intuitive is to allow user to specify arbitrary nodename/hostname for their dynamic nodes.
For instance, I tried creating a new node: sudo scontrol create nodename=d1 cpus=8 feature=dyn state=cloud, when slurm tried resuming this node, azslurm rejected it because it the hostname didnt match pre-created hostnames. also user really has no way of knowing what these hostnames are, which again requires them to browse documentation, though i understand its "clustername-dynamic-1". (again, its less intuitive). I think its reasonable for azslurm to check the nodename against the output of sinfo to verify if the nodename is a valid one or not. since the user is required to issue `scontrol create anyway".  And then resume it as usual.

Overall things look good, one thing I think would make the feature more intuitive is to allow user to specify arbitrary nodename/hostname for their dynamic nodes.
For instance, I tried creating a new node: sudo scontrol create nodename=d1 cpus=8 feature=dyn state=cloud, when slurm tried resuming this node, azslurm rejected it because it the hostname didnt match pre-created hostnames. also user really has no way of knowing what these hostnames are, which again requires them to browse documentation, though i understand its "clustername-dynamic-1". (again, its less intuitive). I think its reasonable for azslurm to check the nodename against the output of sinfo to verify if the nodename is a valid one or not. since the user is required to issue `scontrol create anyway".  And then resume it as usual.


Improve file filtering

Problem
When I search for a file, the first thing I'll remember is its name. The matching algorithm doesn't give a bonus if the needle matches in the basename of the haystack.
Solution
Give a bonus if the needle matches in the basename.

In this examples, files names as **/fil* should appear first.

#614 simply adds a bonus for the matches in filename, feel tree to have a try.

#614 simply adds a bonus for the matches in filename, feel tree to have a try.


Automated cherry pick of #4813: fix: set default read privileges for reading all quotas

Cherry pick of #4813 on release/3.0.
#4813: fix: set default read privileges for reading all quotas

Codecov Report

:exclamation: No coverage uploaded for pull request base (release/3.0@423777c). Click here to learn what that means.
The diff coverage is n/a.

@@              Coverage Diff              @@
##             release/3.0   #4816   +/-   ##
=============================================
  Coverage               ?   6.78%
=============================================
  Files                  ?     524
  Lines                  ?   89826
  Branches               ?       0
=============================================
  Hits                   ?    6093
  Misses                 ?   83226
  Partials               ?     507

Flag
Coverage Δ

#aFlag
6.78% <ø> (?)

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 423777c...25f8c71. Read the comment docs.


MOLE Mod

Hi,
Really find your program useful but maybe I am not doing something right any more, or the modders have changed, but one of the most useful mods (MOLE), my CKAN says its version 0.7.7 but online its at version 1.70...the old version does not work with the newer version of KSP.
I've just deleted all my mods (CKAN was erroring out when I tried to update any mod saying they were not there) and freshly nstalled CKAN and there is a lot of mods in the not-compatible list now esp MOLE.
Just wondering if there is something that I Can do to get the latest mod lists, it is supposed to update itself with every load.
Many thanks

Not a CKAN answer, but for that mod specifically, if you haven't already, you can download the latest version from SpaceDock and install it manually. That's what I did when I couldn't find the latest version in CKAN at least... 🙂

Game should be installed to seprate folder after each update. So previous game versions are still available whilst waiting for mod updates. A lot of people are still playing KSP 1.2 even if 1.3 has been out of a while. Until their favourite mods migrate across.
After most have migrated to new game version. Old mods left behind can still be used by clicking on the settings menu. Then selecting Compatible Ksp Versions. The lets you force load old mods by picking an old KSP version allowed. However please note the red warning: There is no way to check if a mod is fully compatible !!!
So use the force install method at your own risk. The end user must take responsibility to ensure they have read all the mods documentation. To ensure it is safe to use in this way. If you have done the due diligence in checking compatible mods. This method will work like a charm and you don't have to wait for the index to update.
Finally in regard to MOLE. Take this with a pinch of salt. This comment based on a conversation from last year. Although not mentioned in CKAN opt out policy now. Angel-125 may have requested that MOLE was not to be supported at that time. I also noted at the time that support was at risk (folders changed fequently). So can I please ask future maintainers to check carefully on current situation before pushing a new Netkan in regard to MOLE or any other Angel-125 mod?
As @Svish has said for MOLE you can download the latest version from SpaceDock. Please install it manually for now.

Angel-125 is on the Opt-Out List. There will be no updates to Mark One Laboratory Extensions until Angel-125 approaches us asking to be taken off that list.


bug: retrieving events from RPC works with cast logs, but not vm.rpc and vm.eth_getLogs

Component
Forge
Have you ensured that all of these are up to date?

[X] Foundry
[X] Foundryup

What version of Foundry are you on?
forge 0.2.0 (88e09f6 2024-03-25T00:21:20.717965000Z)
What command(s) is the bug in?
No response
Operating System
macOS (Intel)
Describe the bug
I closed an issue earlier incorrectly claiming that vm.rpc and vm.eth_getLogs were not using the RPC I intended, but I realize now the issue is something else and to prevent opening more inaccurate issues, I have prepared a PoC to clearly illustrate the issue I'm encountering. This PoC uses various ways in foundry to poll events to grab implementation contract addresses used by a ERC1967 proxy. My ideal goal is a forge script that can grab a history of implementation addresses from any ERC1967 proxy, just by passing in the proxy address.
First, I try getting the necessary events just using cast in the CLI. When I poll these events using cast logs, the Upgraded event I expect to see show up just fine.
(I've prettified the output below to make it easier to read)
cast rpc eth_getLogs '{"address": "0x2536FE9ab3F511540F2f9e2eC2A805005C3Dd800", "fromBlock": "earliest", "toBlock": "latest", "topics": ["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b"]}' --rpc-url 'https://rpc.blast.io'
[
  {
    "address": "0x2536fe9ab3f511540f2f9e2ec2a805005c3dd800",
    "topics": [
      "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b",
      "0x0000000000000000000000005ddee93c36049d09e4bd2a71f663dd0cc417ba42"
    ],
    "data": "0x",
    "blockNumber": "0x16bbe",
    "transactionHash": "0xf545b27e7a74d471e118eee401660e80c3ee5edec67bb634917733913ea34462",
    "transactionIndex": "0x2",
    "blockHash": "0x65c27d75b79df53fd5a7be369cc4ffc7db1d6881afebc06872d55e81ea065776",
    "logIndex": "0x1",
    "removed": false
  }
]

However, the exact same request, when made via vm.rpc and vm.eth_getLogs returns nothing. Particularly vm.eth_getLogs will fail unless I specify a very small block range (< 100). I suspect my request is not being interpreted as expected by vm.rpc and vm.eth_getLogs.
Here is the same operation, using vm.rpc, but I receive 0x00 back.
function getLogsFromVmRpc() public {
    // Perform the RPC call
    bytes memory result = vm.rpc("eth_getLogs", "[{\"address\": [\"0x2536FE9ab3F511540F2f9e2eC2A805005C3Dd800\"], \"fromBlock\": \"earliest\", \"toBlock\": \"latest\", \"topics\": [\"0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b\"]}]");
    // Log the result for debugging
    console.logBytes(result);
  }

forge script scripts/foundry/Utilities.sol --sig "getLogsFromVmRpc()" --rpc-url "https://rpc.blast.io" --chain-id 81457
[⠢] Compiling...
[⠊] Compiling 1 files with 0.8.19
[⠒] Solc 0.8.19 finished in 2.75s
Compiler run successful with warnings:
Warning (2018): Function state mutability can be restricted to view
  --> scripts/foundry/Utilities.sol:65:3:
   |
65 |   function _getImplementationAddress(
   |   ^ (Relevant source part starts here and spans across multiple lines).

Script ran successfully.

== Logs ==
  0x00

Here is the same operation, but done using vm.eth_getLogs
function getLogsFromEthGetLogs() public {
    address pointsOperator = 0x2536FE9ab3F511540F2f9e2eC2A805005C3Dd800;
    bytes32[] memory topics = new bytes32[](1);
    topics[0] = 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b;
    console.log("Current Block Number:", vm.getBlockNumber());
    Vm.EthGetLogs[] memory logs = vm.eth_getLogs(0, vm.getBlockNumber(), pointsOperator, topics);
    for (uint256 i = 0; i < logs.length; i++) {
      console.log(logs[i].blockNumber);
      console.logBytes32(logs[i].transactionHash);
      console.logBytes(logs[i].data);
    }
  }

So using vm.eth_getLogs here will fail, unless I specify a block range less than 100. My guess here is that it has something to do with the fact that I can't specify earliest and latest since vm.eth_getLogs only takes in integers for block ranges?
I feel like the discrepancy between the behavior of these different functions is very confusing and I'd appreciate some help understanding these methods so I can use vm.eth_getLogs(since it returns the event data in a nice struct), or at the very least vm.rpc to poll events inside a forge script.

@ramenforbreakfast get dai mainnet events from block 20970059 to block 20970060 can be done in cast as
cast rpc eth_getLogs '{"address": "0x6b175474e89094c44da98b954eedeac495271d0f", "fromBlock": "0x13FFA4B", "toBlock": "0x13FFA4C", "topics": ["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"]}' --rpc-url $RPC_URL

while a similar call in test can be done as:
    import "forge-std/Vm.sol";
...
    function test_get_logs() public {
        vm.createSelectFork("RPC_URL");
        address dai = 0x6B175474E89094C44Da98b954EedeAC495271d0F;
        bytes32 topic = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef;
        bytes32[] memory topics = new bytes32[](1);
        topics[0] = topic;

        uint256 fromBlock = 20970059;
        uint256 toBlock = 20970060;
        Vm.EthGetLogs[] memory logs = vm.eth_getLogs(fromBlock, toBlock, dai, topics);

        for (uint256 i = 0; i < logs.length; i++) {
            Vm.EthGetLogs memory log = logs[i];
            console.log(vm.toString(log.data));
        }
    }

this sample will only print the log data as
[PASS] test_get_logs() (gas: 28208)
Logs:
  0x0000000000000000000000000000000000000000000211654585005212800000
  0x0000000000000000000000000000000000000000000211654585005212800000
  0x000000000000000000000000000000000000000000000030a0602b7d85640000
  0x00000000000000000000000000000000000000000000000107aa52f11008404a
  0x00000000000000000000000000000000000000000000000107aa52f11008404a

but you can access entire data through EthGetLogs struct:
https://github.com/foundry-rs/forge-std/blob/ee000c6c27859065d7b3da6047345607c1d94a0d/src/Vm.sol#L91-L111
Please reopen if still issues, thank you!


Export is very hidden

If I didn't read the quickstart guide, I'd never have found it.
Suggestion: rename the "More" button to "Export..."

Good suggestion.
Done in v1.0.1.


Refactoring of the transaction's builder api.

Withing the build package change methods with arguments of type interface{} to something more appropriate and descriptive.

Closing this because we are actively working on this here

Yeah, we're using #845 as a placeholder for the rewrite work at the moment.


Remove patches from aspnet/common

Remove all from https://github.com/dotnet/source-build/tree/dev/release/2.0/patches/common

You can assign this one to me. I'll be doing the dev work on our side to make this repo build without patches.


Styles are broken on substance.io/docs

@Integral can you check why this is... when I run docs locally on master everything is fine.

khm... looks like it's not a style issue, markup is different...

@michael i think the reason is here https://github.com/substance/substance/blob/master/browser.js#L1
there is no index.js, so it fails during gulp building

sorry, that was a wrong trace, however I'm not understand what is build task for gulp

wooo, fixed by 7b0d773fffea201bba22afa521a46db27439e16e

Daamnit. This is really annoying. Node+Browserify under OSX just does not complain when you require('ui/PaNeL') or whatever... also git does not recognize a file name change when you just turn a letter upper or lowercase.

;)


Using htmltidy with gjslint - WARNING: {} deactivated, cannot locate '{}'

I've been trying to resolve this all day but haven't a really weird problem. I have a web application that has both HTML and JS files in the same project. I am using the Linter htmltidy and Linter gjslint plugins.
When I open sublime which remembers an HTML file opened from last time, the htmltidy works perfectly and tells me the errors in the HTML file.
When I open sublime which remembers a JS file opened from last time, the gjslint works perfectly and tells me the errors in the JS file.
The problem is now if sublime remembers an HTML file being opened, and then I open in a new tab or close the current tab and open a new tab/window, the JS won't parse and gives the error below. The same thing happens if I start on a JS file and move to an HTML.
It basically looks like the linter is working for the first type of file I open (html for example), but then as soon as I move to another type of file (js for example) it fails.
The error message I'm getting in the console when trying to Link an HTML file is:
The error message I'm getting in the console when trying to Link an HTML file is:
Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 303, in on_activated
    callback.on_activated(v)
  File "/Users/markwylde/Library/Application Support/Sublime Text 3/Packages/SublimeLinter/sublimelinter.py", line 282, in on_activated
    self.check_syntax(view)
  File "/Users/markwylde/Library/Application Support/Sublime Text 3/Packages/SublimeLinter/sublimelinter.py", line 209, in check_syntax
    Linter.assign(view, reset=True)
  File "/Users/markwylde/Library/Application Support/Sublime Text 3/Packages/SublimeLinter/lint/linter.py", line 723, in assign
    if not linter_class.disabled and linter_class.can_lint(syntax):
  File "X/functools.py", line 233, in wrapper
  File "/Users/markwylde/Library/Application Support/Sublime Text 3/Packages/SublimeLinter/lint/linter.py", line 1492, in can_lint
    status = 'WARNING: {} deactivated, cannot locate \'{}\''.format(cls.name, executable)
UnboundLocalError: local variable 'executable' referenced before assignment

I should probably add I'm using Mac OSX Yosemite and Sublime Text 3.
Thanks for any help you can give me.

I do have the same problem under windows. I only have SublimeLinter-jshint however.
Other plugins installed
BracketHighlighter
GitGutter-Edge
Sass
SublimeLinter
SublimeLinter -php, -ruby, -rubocop,

Windows 7 x64 Home Premium
SublimeText3 build 3083
default Python: ActivePython <IP_ADDRESS>
Python3: ActivePython <IP_ADDRESS>
No additional linter arguments configured.
I also have this error-message. Though, I see no pattern, yet.
SublimeLinter was working fine since I first installed it, using html-tidy, xmllint and jslint add-ins. Then, after I installed a few new Sublime packages, linting stopped. I realized, that SublimeLinter reported, it could not find the linter executables, though it did so before. So I de-installed linter add-ins, SublimeLinter and re-installed all of these. Still, it would not find the linter executable, which, however, was clearly in my path. (I use Cygwin on Windows 7). I checked both with where tidy (result: C:\Cygwin\bin\tidy.exe) and which tidy (result: /usr/bin/tidy). I then added the path, as recommended as last-resort by the user-guide to the SublimeLinter-Sublime.settings. This last-resort activated Tidy.exe but not the node.js linters, though, I added the paths as well (system (OS) and SublimeLinter paths). SublimeLinter still says, it can't find them. I do not understand this, since it was all working flawlessly before.
However, HTMLTidy linting was working only for so long. Suddenly this error, reported here by markwylde, started to appear.
As a reference I post all the log I have, from SublimeText3 startup till error: Note, that I have activated HTML, JS and CSS files. Also note, that I have replaced the default Javascript and CSS modes with CSS3, CSSComb and Javascript Ultimate.
The following log describes these activities:
Starting SublimeText3 with a generic plain-text pane as frontmost. Besides that it has panes opened, that contain CSS, JSON and XHTML files. I then activate (in this order) CSS, HTML and JSON.
While it still doesn't find csslint it does find Tidy, but Tidy errors out with the mentioned error.


Some parts of syntax nodes are still typed writable

We did https://github.com/Azure/cadl-azure/issues/625, but we still have some writable properties, for example:

parent
Also Sym needs to be deeply readonly too since it hangs off of syntax nodes. We will need to be able reuse the result of binding too.

As we keep growing the amount of work we do in the language server, it will be important to reuse syntax trees (https://github.com/Azure/cadl-azure/issues/619), and it will be important that we have some type checking that you're not mutating them outside of binding.

I'm prioritizing this because we've added a lot more things that happen on each keystroke.

It seems we are still making mutations to CadlScriptNode and NamespaceStatementNode to handle usings.


Problem with walking/running.

Please take a look through the existing issues to see if your problem has already been reported and reply to that rather than creating a new thread :)
Description
When i am walking or running, also in the air. I am getting stopped almost every "two steps" (almost because there are few times when everything is working correctly). when i push space to "autojump" i jump, then walk one/two steps and then jump.
How to reproduce

Describe your setup if using anything other than the Mojang launcher or standard forge server
List any third-party mods (& their version number) that may be relevant to the issue
Provide a simple step-by-step guide to recreate the problem

Additional information
i have also falling tree mod

First thing to check would probably be your ram - you may simply need to allocate a bit more to minecraft in whatever launcher you're using.
If not that, then it might be your cpu & graphics card struggling to render everything. TF generally produces taller worlds so there's more stuff to compute & render. Reducing render distance can help enormously.

Weird i got 10 GB of REM allocated for minecraft and it uses max 6-7GB. CPU and GPU usage during the game is also normal,20-40%

My render distance is 7 or 8. I use original minecraft launcher.

Terraforged is only doing work when you generate chunks. If you're having performance issues outside of that then it's probably not TF that's the issue.
If you're familiar with the debug screen, it might be worth running around with that open with the frame-time & tps graphs up as they hint towards what your problem is.
Personally, I have encountered stutters with Vanilla 1.15.2 when crossing chunk boundaries. Don't know why, seems to be exacerbated when using high render distances. I haven't found a fix :/

Ok. Thanks for help ill see debug screen


Expose linter as library

I currently have a standard test I put in most projects with roughly:
it('Can parse all files using oconf', function () {
    expect(fs.readdirSync(__dirname + '/../config/'), 'to be an array whose items satisfy', function (elem) {
        return oconf.load(__dirname + '/../config/' + elem);
    });
});

While we have --lint, couldn't something like this become a library function?
var lint = require('oconf).lintDirectory
it('Can lint all config files', function (done) {
    expect(lintDirectory(__dirname + ...), 'to return false');
});

(Or just some .lint-function that returns an assertion-error when things don't work out.)

With #14 in mind, I'd say that it would make a lot of sense make this a library method and make a specialized bin called oconf-lint to manage this usecase.
I'd probably make the library method work on files instead of directories, and leave it up to the user to glob out the files that they want to lint.
How do you feel about that?

I'm OK either way.
I don't have a habit of storing conf-files in deep directories, but it's seemingly quite common in Node-projects around here...

I documented the changes that I think would solve this in issue #17 and planned to include it in version 3. If I missed anything please add it there. :-)

:+1:


Add option to set path for python executable for tests

When running the tests in an environment, the pythonjob tests might fail because the wrong python executable fetched.  The environment gives the possibility to specify the executable for these tests.

Codecov Report
Attention: Patch coverage is 93.33333% with 1 line in your changes missing coverage. Please review.

Project coverage is 76.74%. Comparing base (5937b88) to head (34ed959).
Report is 26 commits behind head on main.

Files
Patch %
Lines

tests/test_python.py
90.90%
1 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #226      +/-   ##
==========================================
+ Coverage   75.75%   76.74%   +0.99%
==========================================
  Files          70       72       +2
  Lines        4615     5079     +464
==========================================
+ Hits         3496     3898     +402
- Misses       1119     1181      +62

Flag
Coverage Δ

python-3.11
76.74% <93.33%> (+1.08%)
:arrow_up:

python-3.9
?

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

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Timers and reminders aren’t being recognized

Describe the bug
A clear and concise description of what the bug is.
The timer and reminder sensors show up as unavailable. When I look at the entities there’s a big red exclamation point next to all of them.
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.
https://share.icloud.com/photos/01cAi-XDKScd59mVayPLjRxoQ
https://share.icloud.com/photos/0c0YwTzGjQjZczab2Xbiabsjw
System details

Home-assistant (version): 2022.8.4
Hassio (Yes/No): (Please note you may have to restart hassio 2-3 times to load the latest version of alexapy after an update. This looks like a HA bug). No
alexa_media  (version from const.py or HA startup): 4.1.0
alexapy (version from pip show alexapy or HA startup):
Amazon 2FA is enabled (y/n). We will not debug login issues if unanswered: y

Logs
Please provide logs. We'll be most likely asking for them anyway.
Additional context
Add any other context about the problem here.

Did you create a timer?

Weird, it just starting working. I deleted and reinstalled, and reset 2FA and that seems to have done it.

When there are no timers/alarms/reminders, the sensor is unavailable because it's a next alarm/timer sensor.


C# RpcException is missing a recommended constructor overload setting InnerException

All publicly consrtructible BCL exceptions provide a constructor overload that sets the InnerException property (through a base constructor invocation). RpcException must be augmented with such an overload:
  public RpcException(Status status, string message, Exception innerException) : base(message, innerException) { ... }

The recommendations is mentioned, albeit non-literally, in Best Practices for Exceptions and How to: Create User-Defined Exceptions. In practice, it really helps to construct a different exception when converging multiple possible errors that have the same semantics, and it is very important not to lose the backtrace information in such a case.

Is there some practical use case where exposing this overload would matter? The thing with RpcException is that it is only thrown by gRPC as a result of a remote call, in which case the Status and message are exactly what you need as there is no exception information transferred from the remote side besides  status, message and optionally the trailing metadata.
I can only imagine that you could use the InnerException if something went wrong in gRPC implementation itself - but I am not sure if the user should care. Also, the RpcException can only be constructed if the status code is obtained successfully (and C core guarantees that obtaining it will always succeed), so I am not quite sure where the inner exception would come from.

You are right, this is rather a matter of convenience, when it is seems natural to reuse RPCException to report the error as if it originated in the remoting layer. This is kind of borderline-legit, to my reckoning:
public static async Task<T> ReadNext<T>(this IAsyncStreamReader<T> stream) {
  if (!await stream.MoveNext())
    throw new RpcException(new Status(StatusCode.Internal,
      "Server did not respond with required protocol message"));

  return stream.Current;
}

I see. IMHO, your use case is fairly controversial and you seem to have a reasonable workaround, so I'd need to see at least a few more other users asking for this in order to consider actually adding the constructor. Leaving this issue open for others to chime in.

@jtattermusch do we want to add the constructor for 1.1 or close the discussion?

No action planned here. Closing this issue as part of issue bankruptcy.


Make public/ folder configurable via env

Describe you feature request
We tried frankenphp official docker image with Yii2 framework, but our public folder is called web instead of public.
Can we make this configurable via some ENV variable in the official image?
I could probably override it in my own Dockerfile and Caddyfile, but it would be beneficial for other users too.
Thank you for this great piece of software!
R

https://github.com/dunglas/frankenphp/blob/12fb11eeaddb0ff63fc8e521c296659d54a83542/caddy/frankenphp/Caddyfile#L31
Maybe we could change it to root * {$SERVER_ROOT:public/} ?

Wouldn't it be better to override the Caddyfile in a custom stage?

Indeed, but it would be nice to have one-liner working with the official docker image for local development.
Should be backwards compatible as the default will still be public/

Ok, why not!
Do you want to open a PR?


Broken Links?

Is this a private project? I tried accessing the links but they don't lead anywhere and I get 404s.

My mistake, there are some links that do work.


No Shiny application exists at the path "/app"

Hi,
When i install this by the way that you gave, there was a problem.
Startup failed with error(s):
No Shiny application exists at the path "/app"
I already add the path(C:\Program Files\ProteoWizard\ProteoWizard 3.0.18182.5406cdbf0) to  Specify_ProteoWizard_Location.txt.
maby need add the path into the system environment variable?
Hoping my problem can be solved.,thanks!
Stan

You will need internet the first time you run the app. Let me know if that solves the issue. If not, send the log (within the folder mzeasy installed to) to chasec288 at Gmail dot com

Great! Thanks for the email of the logs.
Quick question: Do you happen to be accessing mzEasy from China?  Is google.com still blocked?
I ask because mzEasy uses  https://github.com/ficonsulting/RInno, which checks for internet by first pinging "google.com"

Hi, Chasae
 I am a Chinese graduate student who are interested in molecular

networks.
google.com is still blocked, but we have some special way to access it. lol
But, most of us are use a proxy only for website, so maybe that is the
reason why can not running mzEasy.
If ping another ip like "amazon.com or ebay.com" more likely will running.
Thanks for your reply!
Sincerely,
Stan
Chase Clark<EMAIL_ADDRESS>于2018年7月6日周五 上午12:03写道：

Great! Thanks for the email of the logs.
Quick question: Do you happen to be accessing mzEasy from China? Is
google.com still blocked?
I ask because mzEasy uses https://github.com/ficonsulting/RInno, which
checks for internet by first pinging "google.com"
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/chasemc/mzEasy/issues/1#issuecomment-402772472, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ATdOTWkZmBqnxRbdZRZe58tVfr2AaHpqks5uDjjhgaJpZM4VCuvE
.

Try looking in the mzEasy installation folder for two files:
get_app_from_app_url.R
and
package_manager.R
replace google.com with the url of any website you are able to access without proxy

Feel free to re-open this issue if the problem persists

Thank you for your help, my problem has been solved, sorry, I can't reply to you in the first time.

No need to apologize, I closed it so you wouldn't have to respond if you were busy. If there are any other problems feel free to open issues. Thanks for the feedback 👍