[WIP] Security middleware

This will close #23
I'm currently thinking about how to implement the actual security checks, I see several options:

Add a Voter that reads out some config that maps commands to roles and check if the user has the required roles. This would put all security logic in the security system.
Instead of the Voter the mapping could be injected into the middleware, allowing the isGranted call to be called with the required role instead of the current handle.  People are used to having isGranted called with a role attribute, so the approach is familiar. But not all security will be in the security system, some will be in the commandbus middleware.
Add a SecuredCommand interface that has a method getRequiredRole, call isGranted on that role. Such an approach would be easy to understand and use. But we won't have:

What do you think?

I'm in favor of the Voter based approach, that's a familar and comfortable system for Symfony users and they understand how to tweak it and supply their own voter.
If we put the mapping into the middleware, folks then have to recreate their own middleware as well, when they arguably only need to use a different Voter.
In general, I'm opposed to a SecureCommand option. I'm trying to push more of the "XableCommand" type things towards config in the future.

How important do you consider supporting symfony 2.6 and 2.7 for new features?

Which features did you have in mind with regards to support? Currently we support 2.3 which is Sensio supports until next year but that doesn't mean we have to so it could make sense to just up the bundle requirements going forward (say 2.8 or so)

Added some initial notes and thoughts. Looks good,nice work!
I just want to streamline and simplify the possibilities here a bit since more paths in security code can lead to more misconfigurations :)

The PR uses Symfony\Component\Security\Core\Authorization\Voter\Voter which was added in Symfony 2.8.

I'd be okay with up'ing the requirements to 2.8 but I'm looking towards @rdohms on this one since he helps a lot on this bundle as well. (Also, he might be able to help while I'm on vacation though he's swamped too...)
Last quick question, any thoughts on how you'd like to configure this? I could see it as a tag on the DI config for the handler or a YAML config but no real opinion there otherwise.

I was leaning towards configuring in config.yml

I proposed a way of configuring the security mapping by updated the documentation.

Sorry, trying to catch up on stuff.
I like the idea of the middleware and would love to have the config be an Annotation to be in line with validation and etc.
Voters have been around for longer then 2.8, is there not another class you can use? I would appreciate the 2.3 support, but mostly because i will be implementing this soon and our codebase is on 2.3 still. But i'm not opposed to 2.8 only if its too complex.
I'll review the code as soon as i can.

At first glance, I'm a bit ho-hum about annotatoins but it does make it easier to keep the FQCN in sync during refactoring which is pretty nice.
Due to time constraints over the next couple weeks (vacation), I'm leaving this one in @rdohms' capable hands. Feel free to merge when both of you are satisfied.

Looks like voters were introduced in 2.6: http://symfony.com/blog/new-in-symfony-2-6-simpler-security-voters. So this could be made 2.6 compatible, but only by adding code that is already out of the box available in 2.8.
I'll think about annotations, I never really like them because I think all comments should be without any functionality (but that's really just my opinion).

2.3 is gone and vanished since may. I say we just go for 2.8 support. Go to town with the voters.

I've considered using annotations for the config, but I don't think it's the way to go. The reason is that I think it'll reduce the reusability of packages including commands, with annotations you'd be forced to take on the same security settings as the bundle providing the commands and if that bundle does not include security, there'd be no clear way of adding it.

I'd be okay with adding pure config file based support for now and then that part can be refactored to add support for multiple config formats (including annotations) going forward if there's enough demand.

No longer a Work In Progress PR. Let me know if there's any feedback.

@rdohms Does this look like it'll work for a future annotation adapter?
@RonRademaker Left some comments but looks like it's moving along nicely! I haven't had a chance to review all the tests or security configs yet though.

All feedback has been processed, I'll be off for a few weeks in a little while. If there are some open points I'd prefer to address those before.

Considering it's security related code, I want to sit down and try it out in a sample project before tagging a release but at a glance it seems like fine work, @RonRademaker. :)
I'll poke @rdohms for feedback while you're on vacation(?) and pick it up from there.
Thanks again for all your hardwork. :)

I won't be on vacation but taking care of a new baby, so probably hard work. I'll check into my account every now and then but I don't expect I'll process feedback, but I can answer questions.


Enhanced Collections

Is your feature request related to a problem? Please describe.
I am always frustrated when a collection doesn't share environment variables. It would be great to share JWT tokens across tabs and manage collections in groups instead of them being mixed together. See: Insomnia app or Postman
I am always frustrated when I have to retype fragments. It would be sweet if fragments were able to be shared across a collection and included directly in the request. so you could not have to always rewrite them.
Describe the solution you'd like
See above. Please let me know if you have questions. I could even design a prototype in Figma
Describe alternatives you've considered
None to this point.
Additional context
Not at this time

@corbanb Hey, are you having issues with using the environment variables across the windows in the app?

Closing. Not enough information.


Sqlite Support?

Does Medoo Support Sqlite?

Medoo is a wrapper around pdo which supports mysql, sqlite and a lot more :), so yes!

@omaressa  Thank you!


feat(linter): add the eslint/no_duplicate_imports rule

Create the rule
Almost all cases are implemented. Already usable

@camc314 I fixed the PR. Tell me if everything is ok for you


Release dates not showing up in pack api

The release dates for packs are not currently listed when retrieving pack data from:
https://api.fiveringsdb.com/packs

Fixed


Mac - Safari. TypeError: talk.pc.addStream is not a function.

On iOS Safari everything works fine, but on Mac Safari I get this error:
TypeError: talk.pc.addStream is not a function. (In 'talk.pc.addStream(mystream)', 'talk.pc.addStream' is undefined) (anonymous function) — webrtc.js:196 get_conversation — webrtc.js:204 dial — webrtc.js:251 dial — webrtc-sdk:200 (anonymous function) — webrtc-sdk:220 onready — webrtc.js:401 connect — webrtc.js:392 (anonymous function) — pubnub.js:1129 (anonymous function) — pubnub.js:568 each — pubnub.js:297 each_channel — pubnub.js:562 success — pubnub.js:1126 finished — pubnub.js:2996 Selected Element
…

just tested seems to work!  what version?

navigator.getUserMedia got deprecated, you need to use navigator.mediaDevices.getUserMedia and there may be some RTPPeerConnection changes

patched and pushed.  https://github.com/stephenlb/webrtc-sdk/commit/5935d883deec12193fd1a5a06dd1d19cf9a10715


[catch2] Update to 3.3.1

Update catch2 from 3.3.0 to 3.3.1 : https://github.com/catchorg/Catch2/releases/tag/v3.3.1

[x] Changes comply with the maintainer guide
[x] SHA512s are updated for each updated download
[x] The "supports" clause reflects platforms that may be fixed by this new version
[x] Any fixed CI baseline entries are removed from that file.
[x] Any patches that are no longer applied are deleted from the port's directory.
[x] The version database is fixed by rerunning ./vcpkg x-add-version --all and committing the result.
[x] Only one version is added to each modified port's versions file.

Thanks!


[Snyk] Security upgrade org.springframework:spring-web from 6.1.11 to 6.1.12

Snyk has created this PR to fix 1 vulnerabilities in the maven dependencies of this project.
Snyk changed the following file(s):

pom.xml

Vulnerabilities that will be fixed with an upgrade:

Issue
Upgrade

Denial of Service (DoS) SNYK-JAVA-ORGSPRINGFRAMEWORK-7687447
org.springframework:spring-web:  6.1.11 -> 6.1.12  No Known Exploit

[!IMPORTANT]

Check the changes in this PR to ensure they won't cause issues with your project.
Max score is 1000. Note that the real score may have changed since the PR was raised.
This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Denial of Service (DoS)

/ok-to-test


mapView:regionDidChangeAnimated:

Hi there again! Thanks for your previous answer.
Anyway, I'm facing now another problem. I followed your code in roder to avoid that "mapView:regionDidChangeAnimated:" is called after "mapview:didSelectAnnotationView:" but it is called anyway.
Here the code:
    func mapView(mapView: MKMapView!, didSelectAnnotationView view: MKAnnotationView!) {

        var mapPointForCoordinate = MKMapPointForCoordinate(view.annotation.coordinate)
        var visibleMapRect = mapView.visibleMapRect
        visibleMapRect.origin.x = mapPointForCoordinate.x - visibleMapRect.size.width * 0.5
        visibleMapRect.origin.y = mapPointForCoordinate.y - visibleMapRect.size.height * 0.5
        mapView.setVisibleMapRect(visibleMapRect, animated: true)

        var transform = CGAffineTransformScale(CGAffineTransformIdentity, 2.0, 2.0)

        UIView.animateWithDuration(
            0.2,
            animations: { () -> Void in
                view.transform = transform
            })
    }

    func mapView(mapView: MKMapView!, didDeselectAnnotationView view: MKAnnotationView!) {

        var transform = CGAffineTransformScale(CGAffineTransformIdentity, 1.0, 1.0)

        UIView.animateWithDuration(
            0.2,
            animations: { () -> Void in
                view.transform = transform
            })
    }

So, do you why after select an annotationView the "mapView:regionDidChangeAnimated:" is called anyway?
Thanks in advance,
cheers!
Carmelo

Also the "mapVIew:didDeselectAnnotationView:" is called due to "mapView:regionDidChangeAnimated:" in your side is called.
Carmelo

I'm not sure what you are trying to achieve. Does this code recipe help?

If you look at the code that is exactly what I'm doing.

Basically if you zoom the map to the max available zoom and then call "setVisibleMapRect", the "mapVIew:didDeselectAnnotationView:" is called due to "mapView:regionDidChangeAnimated:" in your side is called. Is it clear now?.

Sorry, but what exactly is the question you are asking?

the recipe you wrote works only if you use it on normal zoom. If you try to use it after user has zoomed to the max level, you'll see the map does a back zoom and then move to the center.
So my question is: there is some way to avoid your code call "mapVIew:didDeselectAnnotationView:" after that automatically zoom out?

This zoom is done by MapKit and automatically triggers mapView:regionDidChangeAnimated:. When the map view region changes, this will automatically deselect the current annotation view.
This issues is discussed in #65. Still unsure on how to handle this. Maybe it's best to simply remove the call to deselectAllAnnotations and everyone can implement his/her own deselection code.

Maybe you can add a delegate about that like this:
-(BOOL)canDeselectAnnotations {
   return YES;
}


How to create a pyocd.exe file

i want to add my probe and replace other pyocd.exe.
i don't know how to create exe file

https://github.com/pyocd/pyOCD/issues/773#issuecomment-560559736
I follow this step
I navigate to the PyOCD folder and issue the command :pyinstaller pyocd.spec
404 INFO: PyInstaller: 6.11.1, contrib hooks: 2024.10 405 INFO: Python: 3.12.4 436 INFO: Platform: Windows-10-10.0.19045-SP0 437 INFO: Python environment: C:\Users\kj\AppData\Local\Programs\Python\Python312   File "C:\Users\kj\AppData\Local\Programs\Python\Python312\Scripts\pyinstaller.exe\__main__.py", line 7, in <module>Local\Programs\Python\Python312\Lib\site-packages\PyInstaller\building\build_main.py", line 1252, in main     build(specfile, distpath, workpath, clean_build)   File "C:\Users\kj\AppData\Local\Programs\Python\Python312\Lib\site-packages\PyInstaller\building\build_main.py", line 1192, in build     exec(code, spec_namespace)   File "pyocd.spec", line 61, in <module>     raise Exception("failed to find cmsis-pack-manager native library") Exception: failed to find cmsis-pack-manager native library

bhttps://github.com/jizai945/pyocd-exe/blob/main/打包教程/run.spec
I follow this step and issued the command:
pyinstaller run.spec
I get a nice run.exe in the dist folder. I run it to see its version, and that works:
D:pyOCD-0.36.0\dist> .\run.exe -V
0.36.1


md-menu : action outside opened menu

Bug, feature request, or proposal:
Feature request
Close an opened menu when clicking on any other button/link/input/menu and trigger the desired action, at least for desktop version.
What is the expected behavior?
When a user opens a menu and wants to execute an other action (click on button...), the menu closes and the desired action is completed
What is the current behavior?
When a user opens a menu and wants to execute an other action, he has to click two times : one time to close the menu, and a second time to complete the desired action. Consequently, the navigation isn't very smooth.
What are the steps to reproduce?
Can be reproduced here : https://material.angular.io/components/menu/examples :)
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
"@angular/material": "2.0.0-beta.8"

To be consistent for users and align with the material design spec, I don't believe this change can be made.
https://material.io/guidelines/components/menus.html#menus-simple-menus
Touching outside of the menu, or pressing the system Back button, cancels the action and closes the menu.


Added support for serving static gzipped files.

This PR adds support for serving gzipped files if they are found on disk, the client supports it, and the developer enables it explicitly.
I've added 4 test cases testing these conditions.

+1

We definitely need this.

It looks like there is an issue with directory handling somewhere, because having a directory named /foo and a file next to that directory /foo.gz ends up redirecting requests for the directory foo to end up getting the file that is in foo.gz if the client accepts Gzip, otherwise the file redirect if the client does not accept Gzip.

Hi @Cavitt, I really appreciate the pull request and I hope you find my comments above useful. In general, we have not added this functionality due to not only the complexity, but that it has already been solved in a well-maintained module: https://github.com/code42day/connect-gzip-static


Fix execute shell command to take into account edge cases

This PR resolves #350
The new proposed command is
/bin/sh -e -c 'eval $( (grep ^[^:]*:[^:]*:$(id -u): /etc/passwd || echo "::::::/bin/sh") | cut -d : -f 7-) || eval $(echo "/bin/sh")'

Changes are following:

Grep /etc/passwd with UID instead of username. id -un can start throwing errors if current user does not exist in /etc/passwd because it looks into the passwd file to determine user name (switch -n). So the first step is to make sure id doesn't throw - hence I changed grepping pattern to rely on uid (which comes in the third field of the file). While this change is not strictly required but it prevents output from error pollution.

|| echo "::::::/bin/sh makes sure if grep doesn't find uid in passwd file we will feed a dummy entry to the pipe so lazydocker would start /bin/sh at least

The last part (|| eval $(echo "/bin/sh")) is here to guard against /bin/false or /sbin/nologin shells that are commonly used to tighten security. If we fail to launch shell specified in the /etc/passwd then lazydocker would start /bin/sh instead.

1 and 2 address problem with bitnami/openldap image mentioned in #350
In this case everything works flawlessly
3 addresses problem with quay.io/keycloak/keycloak:18.0 image described in the same issue. Here execute shell works but error message that /sbin/nologin is not found yet present. I don't think it worth it to suppress the error as the command will become even more complicated

I have no idea why lint fails. It fails to process pkg/gui/confirmation_panel.go file which I haven't touched.

I have no idea why lint fails. It fails to process pkg/gui/confirmation_panel.go file which I haven't touched.

You can disregard that, it says "Unchanged files with check annotations", so it's not really relevant for this PR.

@jtraub if you rebase onto master those linting issues are fixed.
As for this PR, I'm a little hesitant about increasing the complexity of the existing command more for a couple bespoke images. Are these images representative of a larger set of images that have the same problems, or are they once-offs?

Are these images representative of a larger set of images that have the same problems, or are they once-offs?

@jesseduffield I guess this depends on the area you are dealing with. For example, I encountered it a lot when I worked with LDAP-related images during spring (this is when I created the issue). I encountered images with USER command again in August when I started working on some datascience problems - this time it was unbearable so I decided to fix the problem for myself :-)

if you rebase onto master those linting issues are fixed.

Is there a point in doing so? If you don't want to accept the changes I would prefer to keep it the code as is since my current lazydocker binary has been built from it and it works just fine for my needs.


TODOs

[ ] upload input data online + Zenodo DOI
[ ] Add comment in notebooks (description of the results...), and script + translate french to english
[ ] Complete ReadMe
[ ] Change median filter library = > use of cv2
[x] Add benchmark summary for each
[x] Add requirement.txt or environment.yml
[ ] Test quickstart on binder
[ ] Reduire le nombre de stat par regime: std ou rmse
[ ] Add info in CNN method (see with Annaelle)
[ ] Possibility of adding pyinterp LOESS filter

[ ] use matplotlib library instead of hvplot fig and focus on RMSE score
[ ] Imporve doc in notebooks
[ ] PSD on currents & vorticity
[ ] Add function in Class (on the fly)
[ ] Revisit input format
[ ] Test notebook on the newly formatted inputs

[ ] Remove coastal point in PSD score computation


Merge v0.17.3

Merge v0.17.3

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 11 committers have signed the CLA.:white_check_mark: iproudhon:x: erikgrinaker:x: melekes:x: marbar3778:x: Jeremiah Andrews:x: summerpro:x: cuonglm:x: YunSuk-Yeo:x: KamiD:x: robert-zaremba:x: mconcatJeremiah Andrews seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

@iproudhon , please use "Merge pull request" when merge.


angular 12 not a supported version

we use angular v 12, which is an unsupported version, see https://angular.io/guide/versions
i did the upgrade to 14 in linux, which seems to work fine, but that appears to require node 16.10+.
can we go for this update?

reporting also the message regarding the CLI in our linux server
`ubuntu@localhost:~/code/rms-portal$ node --version
v16.20.1
ubuntu@localhost:~/code/rms-portal$ ng version
 _                      _                 ____ _     ___
/ \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|

/ △ \ | '_ \ /  | | | | |/ _ | '__|   | |   | |    | |
/ ___ | | | | (| | || | | (| | |      | || | | |
//   __| ||_, |_,||_,||       _|||
|___/
Angular CLI: 12.2.18
Node: 16.20.1 (Unsupported)
Package Manager: npm 9.8.0
OS: linux x64
Angular: 12.2.17
... animations, common, compiler, compiler-cli, core, forms
... localize, platform-browser, platform-browser-dynamic, router
Package                            Version
@angular-devkit/architect          0.1202.18
@angular-devkit/build-angular      12.2.13
@angular-devkit/core               12.2.18
@angular-devkit/schematics         12.2.18
@angular/cdk                       11.2.13
@angular/cli                       12.2.18
@angular/material                  11.2.13
@angular/material-moment-adapter   11.2.13
@schematics/angular                12.2.18
rxjs                               6.6.7
typescript                         4.3.5
Warning: The current version of Node (16.20.1) is not supported by Angular.
This version of CLI is only compatible with Angular versions ^16.0.0,
but Angular version 12.2.17 was found instead.
`


Cryptocurrency makes me feel poor

Are you suffering from FOMO?
Did all your friends get into bitcoin and are they now driving their lamborghinis past your door just to spite you?
Fear not: just post your receiving address below and a generous donor will give you some coin.
Never mind that this in itself will create a new wave of FOMO, when the amounts donated steadily decline over time.

I don’t want to be the Fifth Beatle.
SCE7f9fff858ae7b49efd446d324a7055cd049cd0bd8c08608c4f0e37b1ab34e7dc436ef9a9db306c3dc6e2a754dbbb9b7aa072b3515da69fd502f7c7dc88295b2bPTI

100 SKEPTI are coming your way @GrandpaKoempel

I don't know if you can make sure this doesn't take off and force you to buy a lambo eventually. But for what it's worth, I tried to send 1 coin to GrandpaKoempel but it gave me invalid address, so I sent it to the address in the readme instead.

@ifdefdebug and @GrandpaKoempel wow you unwittingly checked an important box in our attempt to repeat Bitcoin history step by step: failure to send coin to the right party due to nonsensical technical reason (in this case the recent s[ck]epticoin rename.
I'm sure we can all look back at this in 10 years time and laugh about how @GrandpaKoempel is forced to ride an inferior supercar just because he didn't write SKE7f9fff858ae7b49efd446d324a7055cd049cd0bd8c08608c4f0e37b1ab34e7dc436ef9a9db306c3dc6e2a754dbbb9b7aa072b3515da69fd502f7c7dc88295b2bPTI

I got FOMO. Can you send some SKEPTI to me?
b038f91faf9d82e7e0914760d750ac574291a7f6e69e72b53bdf1365a7aac0cd6a94a21ecf825c8c4f70c39a5a3d712e206dca6b83b34440ffab72d75471ee1d

@kirkaleze 50 SKEPTI coming your way

Hey guys, I can't get it to work. Help much appreciated.

Hey guys, I can't get it to work. Help much appreciated.

https://github.com/skepticoin/skepticoin/pull/2 should fix it for you. Now plz gib lambo:
SKE145614eb25e217e359d53b7ee56c04cdf3d1eaf7789aaa7f5080edc3b2bbbcdfdcfa6e78b5a0dbacbb8797f02478125bc0563a08f972289e1424e3afb8260e8aPTI

@marekjedrzejewski 45 SKEPTI your way (25 for begging and an extra 20 for that PR)

25 for begging and an extra 20 for that PR

Nice, begging has more value than actual work!

Nice, begging has more value than actual work!

Begging implies that skepticoin has value, which is more important than any kind of programming work could ever be

Finally got it to work, thanks for all the help. Needed to run all commands with python3.9 instead of python. Now send me all your "money" here: SKE25e9f69118bd568a097f2b64bd8ec385e47bcf6ef9c78976458a443fe2537f149b0357fd3c4f34622a3bea421359aee195bcf27c608b547b6a8a871f68893e50PTI

@hunter-bidens-laptop 20 SKEPTI coming your way!

rename this issue to a more descriptive title perhaps?

most certainly not... it describes exactly what the problem is.

Hi I am planning to buy may expensive sport cars and make a yt channel where I burn them.
SKE06505268f3a3b3d96d488951969c58d8b1713e95be2df60a4b4edadbad271cbcd310fbc802440744d3bb430e4c3be989bbe56b6286711413afd4e6247462afbdPTI

OK, I see this is taking off... so now I think it's time to take skepticoin to another level: TRADING!
Please make sure to read CAREFULLY the following trade agreement:
If you send 500 SKEPTI to the following address, then maybe I send 1 BTC (ONE BITCOIN !!!) back to you:
SKE27331f15444e7a07454cd163e37c05827585ddf09010666f5cd61c00e4b92ed31827592a3a632d7a4e44eb09625b097d69aa2baca10c45ae18f21bcba1d16cbePTI
I am sure you do not want to miss this excellent trading opportunity!

Damn I lost my first wallet *facepalm I'm going to be that guy in 10 years trying to get back his 40 SKEPTI locked in a lost wallet
Please send SKEPTI to my new wallet so I can overcome this x.x
SKE06e4c305fe6cde5df2fb38fe07b8fe28ccb9e9cfe8dacfe398d6ba0f1510116bbc21eb5509191d3d2efd263cec96d6c138a258976ea60f0c5a02e50101a5cef9PTI

@ifdefdebug good try... but you are not going to fool us!! 500 SKEPTI is actually 500 BTC everybody knows that!

Hi I am planning to buy may expensive sport cars and make a yt channel where I burn them.

may I suggest as the mission statement of your YT channel "to accelerate the advent of sustainable transport by bringing compelling mass market electric cars to market as soon as possible."

Damn I lost my first wallet

Just make sure to let the relevant news outlets know; maybe you could include a picture of you looking on a garbage heap or something?

then maybe I send

I'm afraid the audience here may be a little too.... skeptical for deals like this

Just started as a miner, looking for funds to invest with friends :tada: SKEd51410a73d254c9ba3c972fae286a96d47e592b85dde384ec0102164f6584e90a27e4aa67b658a09b9983f5e6293d7d6d99120b4d0189b4ae73f76678cacd5eaPTI

I LIKE SKEPTICOIN

I LIKE SKEPTICOIN

The begging is getting louder :smile:

get me 100

I don't feel you truly appreciate the "value" (scarcity) of skepticoin yet :smile:
Remember: only ~21,000,000 coin to go around for ~7,000,000,000 potential skeptics!

It would interesting if we could throw together a website to see how those coin are exchanged and all :eyes:

Ever since joining my wife's family, I've heard nothing but how much my father-in-law needs a new Rolex. Unfortunately, our wallet does not yet have enough value to afford them for the family, let alone my father-in-law.
Can I get some coins, please?
SKEe3e94a01349e39882a35a7b37d9148f31710bada8a858120975ba79b7f46841641c8d42a694b10be9b72d8617ae0da4944f421ce6f42b13bb37699508e4be867PTI

It would interesting if we could throw together a website to see how those coin are exchanged and all

If only we had someone on our team whose expertise was "reinventing the wheel" :smile:

Can I has coins?
SKE4fec60ac5b682aaddbc7e5dad8c51c4edc4dba69b004d570d1955f2fd69fbfc2340c45e3e9c3ec25a0c9a638887cf043fa29e3e003278c2ca2c81c629ab9e1b5PTI

F*ck btc and ETC!
 WANT SKEPTI
SKE1fc6cf60d42a8a388cdccb84ec4ecef51b776956778471dc722812dc8b9f341e62a8f9ef8d10231710b4dcb05a1162c064e465b972937a157396bfc195c5cbb5PTI

@heyanubis55 if you're going over different channels to beg at least make sure to properly confuse me by using a fresh address each time :wink:

SKEPTI COINS PLEASE
SKE51b5ab165d7948a8d9d49ae7cf56282e457f6368d0d1cd1b999e4768610e0d13bf04e555841b44f919575d351dfd63b8e16afff3e3267590c038d29c40bca7baPTI

skepticoin to the moon SKE96cb6180df1b3402f36bc60071973ca08a04c4b53035624c2e4d33bb3765f7c08a6c9e8d4bd2f746767ac4450df7fb0ec42b2facd47fa75a0c3a3356f76db54aPTI

Everyone deserves a lambo:
SKE5f33568c6dfecdaa6283a97159135710c41d04e41f3da330125d5c6d995f1e4784ef5149f5efb677f7079b2632162c60b86080b18bfe480032a062ca8d1fe693PTI

Everyone deserves

Translation: "I deserve a lambo" :smile:

As an influencer and early adopter, I demand recognition! And coins!
SKE11d0f7bc92d870b7b5ab65d423959b0c72c9e962b5ed7d6b7218bb7c63135ac0b968bff7f8d6ed3285a050d697fca16843d2288794326c58d8e2d2b2c503d60ePTI

As an influencer

3 followers on github... checks out!

After three hours (not kidding) i've been able to get the frigging wallet address!!
and after three more hours mining, there's nothing going on
SKE09958a48dffcf88c9acc3628adc74c138ce57628c149987b6c36e2e74dc9c108c1d2be78dd8f9ea0e1abbd39af135c2d625871b3b6a7d9b38690bcd35e8204b8PTI

and after three more hours mining

are you actually mining, or is it just the chain catching up? Off the top of my head, unless you're mining on an actual steam engine I think the current target should get you some coin within the hour.

Currently it takes about 50,000 hashes to mine a block. If your hashrate is 4.62 hashes/sec or lower, 3 hours of mining before the first block is expected. @Luckyjorge

and after three more hours mining

are you actually mining, or is it just the chain catching up? Off the top of my head, unless you're mining on an actual steam engine I think the current target should get you some coin within the hour.

all i get is
CHAIN
Height    72681
Date/time 2021-05-17T16:39:57

am i missing something?

am i missing something?

I'm actually getting the same issue as you. Ports open as well, let it sit trying to mine for 3+ hours wit up to date chain.

@Luckyjorge @earstormer are you on Windows or Linux? Can you try the next release (0.1.15) as soon as it becomes available?

@Luckyjorge @earstormer are you on Windows or Linux? Can you try the next release (0.1.15) as soon as it becomes available?

Getting the same on both OS, I'll give next release a try.

@atramos  still seems to happen on 0.1.15, unless the wait for a fresh chain is meant to take over 3 hours.

@earstormer do you see a line of output that says CHAIN - Height = XXXXX, Date/time = YYYYYYYYYY?
What are the values of XXXXX and YYYYYYYYYY that you see?

@earstormer do you see a line of output that says CHAIN - Height = XXXXX, Date/time = YYYYYYYYYY?
What are the values of XXXXX and YYYYYYYYYY that you see?

Got it working, seems like skipping waiting for fresh chain got it going.

@earstormer are you sure it's working? I'm wondering if you could be the cause of #79 - your miner is stuck on a very old chain block because you killed the networking thread by Ctrl-C.

@earstormer @atramos Please move discussion there or to a new ticket, so we don't flood this one.

This is what I am getting. Is this normal or expected? I have forwarded port 2412 to my mining PC from my router and it is using a wired ethernet connection. I just started mining about an hour ago, how long before it can the "get fresh chain" that it is waiting for? Please let me know. I am just now exploring the world of crypto, and thought Skepticoin would be a good place to start, so please consider that when replying.
Until mining starts on my PC, please send me some Skeptcoin! Any guidance as to how I can access wallets and the Skepticoin in them is appreciated!
SKEbf49757786fc652de529d86f560bfea0665afb84857937f486b40ab5c118c065f95fd6046bdd60279e66ff27895a66239ae0ba57fa1412b51cdc42a721118bb6PTI

am i missing something?

Nr of connected peers: 0 isn't promising.
But that's the last thing I'll say on this particular issue to avoid flooding

Someone shared this on hacker news so here I am. I'll edit this comment later with how many were sent lol
SKE9a537f9a9356d125d7c653574cfc70d73cae272f36d9aef466e627c766aff6ae0172ed0dbceb07451564446a8d46ff0e895c7f480a55c27be6c087e0fddcc919PTI

I need a Lambo:
SKEefb84f209b7e0d36b26f29b8e25f724256380e019314cc3a878de4a715939f8ffa14973166fdd0a58dccdee99bb7ef103b57189812f4f4e6ab48ff0b94ec7d73PTI

Mine bitcoin for free here https://www.btcs.love/invite/4nc58


Fix biome for Do not export from a test file.

https://github.com/openwallet-foundation-labs/sd-jwt-js/actions/runs/8690319445/job/23830019035?pr=204#step:6:24
I think It happends after biome version upgrade.

yeah, they added this rule, see: https://biomejs.dev/linter/rules/no-exports-in-test/#:~:text=If you import from a,to be shared across tests.


Array method thisArg type not captured

The thisArg argument of many array methods isn't properly used to determine the type of the this object in the callback function. When using strict mode, this forces the source code to be quite much more verbose than necessary
for example,
const evenTester = {
	test: (a:number):boolean => (a & 1) == 0
};

const array:number[] = [1, 2, 3, 4, 5, 6];

array.forEach(
	/** callbackfn */
	function(number) {
		console.log(this.test(number)? `${number} is even` : `${number} is odd`)
	},
	/** thisArg */
	evenTester
)

will yield:
file.ts:line:col -error TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.

whilst
const evenTester = {
	test: (a:number):boolean => (a & 1) == 0
};

const array:number[] = [1, 2, 3, 4, 5, 6];

array.forEach(
	/** callbackfn */
	function(this,number) {
		console.log(this.test(number)? `${number} is even` : `${number} is odd`)
	},
	/** thisArg */
	evenTester
)

will yield
file.ts:line:col - error TS7006: Parameter 'this' implicitly has an 'any' type.

with only the below properly compiling
const evenTester = {
	test: (a:number):boolean => (a & 1) == 0
};

const array:number[] = [1, 2, 3, 4, 5, 6];

array.forEach(
	/** callbackfn */
	function(this:{test: (a:number)=>boolean},number) {
		console.log(this.test(number)? `${number} is even` : `${number} is odd`)
	},
	/** thisArg */
	evenTester
)

This isn’t any of the behaviors described in the issue template you used.  Those behaviors would make the issue a duplicate of 9998, which this isn’t.  That’s why your issue got labeled as a duplicate.

@fatcerberus
Ok, I thought it would fall under incorrect type in callback function, do you know which issue template would be appropriate?


Not clear how to join across database or across containers

From my experience trying these in Azure portal, I guess the content of this page does not apply to Join across CosmosDB (SQL) databases or collections. It would be a mercy to mention that in the beginning of the page so that developers used to real SQL queries will not try the CosmosDB  "SQL" queries.
Note: In my humble opinion, calling this as SQL is not right. There is some meaning in the IT world for SQL which works with relational databases. Maybe that marketing works with a certain group of senior managers.

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

ID: 1b884aa0-cea6-bdfc-80af-7b7a8385b3de
Version Independent ID: 6a77610e-3b6b-44ab-6226-91820603f594
Content: SQL JOIN queries for Azure Cosmos DB
Content Source: articles/cosmos-db/sql-query-join.md
Service: cosmos-db
Sub-service: cosmosdb-sql
GitHub Login: @timsander1
Microsoft Alias: tisande

@sijucm Thanks for your feedback. We are reviewing the doc and will get back shortly.
Regards,
Oury

Hi @sijucm, thanks for your feedback!
Azure Cosmos DB is a NoSQL database and doesn't support cross-container joins. For best practices around data modeling, this is a helpful doc: https://docs.microsoft.com/azure/cosmos-db/modeling-data.
I can add a note to this JOIN doc that explicitly calls out that this is referencing JOINs within an item, rather than cross-item or cross-container joins (like you'd have in a relational database).

Added this PR - https://github.com/MicrosoftDocs/azure-docs-pr/pull/168286 #please-close


Release azure-cli-taskhelp 0.1.1b3

Reviewers, please verify the following for this PR:

[ ] The PR title has format Release <component-name> <version>.
[ ] setup.py has been modified with the same version as in the PR title.
[ ] HISTORY.rst has been modified with appropriate release notes.
[ ] If releasing azure-cli or azure-cli-core, __version__ defined in __init__.py should also be modified to match.

Release of 'azure-cli-taskhelp' with version '0.1.1b3' successful. View at https://pypi.python.org/pypi/azure-cli-taskhelp/0.1.1b3.

GitHub release created. https://github.com/Azure/azure-cli/releases.


Type signature confusion, too many strings

Good morning,
I become confused when I read the documentation on Pursuit, since many of the parameters to the functions are strings.
I have two proposed solutions to my confusion:

Either: add type aliases for the key and value parameters
Or: add a description for each relevant function that describes what each parameter does.

I can make a pull request if you think this is a good idea.
What do you think?

I think docs would be a good first step. Personally, I prefer to reserve the use of type aliases to simplify references to a type which is a composition of many other types.
I wonder what the docs would be like?
getItem :: String -> Storage -> Effect (Maybe String)
Here, the argument is the "key" of the data item to retrieve, and the resulting type is the data item. I think this function is pretty intuitive, though docs describing this would still be helpful.
setItem :: String -> String -> Storage -> Effect Unit
Here, the type signature doesn't really help, so inline docs would be really helpful.
Introducing a newtype would help the type signature, but I'm not sure it's a good change, simply because of the performance cost.
newtype Key = Key String
newtype Value = Value String
-- Using the `setItem` function, then, would require two additional operations for every use:
--   `Key :: String -> Key`
--   `Value:: String -> Value`
setItem :: Key -> Value -> Storage -> Effect Unit

If this was my personal library, I'd make a "most typesafe" module, which has these newtypes, and a "most efficient" module, which doesn't. (or just put both functions in one module, getItem and getItem') I'm sure other people would disagree with that, though. It's cases like this where a library or library ecosystem having explicitly defined design values would help resolve questions like this.
So, I think inline function docs are the easiest, least controversial solution here. (but I'd also welcome a library design discussion. :) )

Since these repos are meant to contain ‘low level’ apis which mirror the actual web apis as closely as possible, I think keeping keys and values as just strings is probably appropriate. I’d prefer not to add a ‘more typesafe’ variant in the same library - I think library size is a big factor in how easy it is to get your head around - and it’s very easy to do that locally to your own project if that’s what you want anyway.
The docs in #7 are a good first step but I think what would really solve this issue once and for all would be to add some basic examples to the docs.

The docs in #7 removes my confusion and solves my problem.
Here's an example I threw together, I don't really know if it's useful yet though.
Do you want one example per function or a big usage example at the top of the module?
module Main where

import Prelude
import Effect (Effect)
import Effect.Console (log, logShow)
import Web.HTML (window)
import Web.HTML.Window (localStorage)
import Web.Storage.Storage (clear, getItem, removeItem, setItem)

main :: Effect Unit
main = do
  w <- window
  s <- localStorage w
  setItem "this-is-my-key" "Here is my value."
  logShow v'

  clear s


Create C++ Solution for Leetcode problem SearchElementInRotatedSortedArray

Fixes #49
Added Bruteforce with Optimal solution for the Leetcode problem of Search Element In Rotated Sorted Array
TOPIC - Binary Search

@ayushi-ras Mam Please have a look.


nREPL

I'm trying to run the REPL middleware but I'm not able to.
Shouldn't I see the result of (range 10) in Portal?
project.clj
(defproject clean "0.1.0-SNAPSHOT"
  :description "FIXME: write description"
  :url "http://example.com/FIXME"
  :license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0"
            :url "https://www.eclipse.org/legal/epl-2.0/"}
  :dependencies [[org.clojure/clojure "1.11.1"]
                 [djblue/portal "0.40.0"]
                 [ch.qos.logback/logback-classic "1.4.5"]]
  :repl-options {:nrepl-middleware [portal.nrepl/wrap-portal]})

core.ns
(ns clean.core
  (:require [portal.api :as p]
            [portal.api :as p]))

(p/open)

(add-tap portal.api/submit)

(tap> 123)
(range 10)

portal

Since editor tooling will also use eval and it causes a lot of noise being sent to portal. The nREPL middleware check if a file is included for an eval to distinguish between tooling and user evals.

I got in a fix for this via https://github.com/djblue/portal/commit/6d2639f7629d2f8ae8bc80e9dd7ad9b2a1fb3e40 which will be part of the next release.

Fixed in 0.58.0.


hmac check seems to not work correctly in extension background contexts

I've been playing around with using some of the noble libs in web extensions, specifically in the background context which is similar to service workers, and this line causes issues:
https://github.com/paulmillr/noble-hashes/blob/8b0fb5fb9485393df2896d380643a978de8714cf/src/hmac.ts#L17
When I console.log the iHash this is what we get:
{
    "blockLen": 64,
    "outputLen": 32,
    "padOffset": 8,
    "isLE": false,
    "finished": true,
    "length": 128,
    "pos": 0,
    "destroyed": false,
    "buffer": {
       // removed for brevity
    },
    "view": {},
    "A": 0,
    "B": 0,
    "C": 0,
    "D": 0,
    "E": 0,
    "F": 0,
    "G": 0,
    "H": 0
}

When I patch-package the hmac file and remove the conditional check, it works as expected.
Curious what we could do to make it work in this context? webcrypto should be fully supported

I don't see how background context is related to this line. Perhaps it's something else.

oh yeah, sorry, the hashing i'm using is sha256:
import { ensureUint8Array } from './common';

import { hmac } from '@noble/hashes/hmac';
import { sha256 } from '@noble/hashes/sha256';

export function hmacSha256(key: Uint8Array, ...messages: Uint8Array[]): Uint8Array {
  const hash = hmac.create(sha256, ensureUint8Array(key));
  for (const message of messages) {
    hash.update(ensureUint8Array(message));
  }
  return Uint8Array.from(hash.digest());
}

so it might be the case that the sha256 class isn't correctly implementing the hash class you have defined on L17?

If it wasn't correct, the test wouldn't pass. I'm guessing it something else like some global variable not available in background context.

Do you know what is the simplest way to debug background page?

Hey, I see that source was recently updated to:
if (typeof this.iHash.update !== 'function')

I'm having the same issue with previous equation if (!(this.iHash instanceof Hash)) and dependency that is relaying on @nobles/hashes is failing in production but works flawless with new comparison.
Would be great to update npm package with this change. Thanks!

landed in 1.1.3


Packaging updates

Output of new versioning scheme can be see at https://build.sawtooth.me/view/All/job/Sawtooth-Hyperledger/job/sawtooth-core/view/Pull Requests/job/PR-392/lastSuccessfulBuild/artifact/build/debs/


Errors Posted To Discord Channel

One of the most crucial things is having errors logs posted in discord so everyone does not need to be watching the console 24/7.

Transfer the error events from core
Modify them to send a message to the error log channel

@cfanoulis @tech6hutch @VoidCodes Thoughts on the implementation?

skillz calm down please :omegalul: my emails are imploding.
Anyways,a seperate event and webhooks?
console.log({
name: Χαράλαμπος Φανούλης
school: 6ο Γυμνάσιο Ευόσμου
}])
On Sun, Sep 1, 2019 at 5:34 AM Skillz4Killz<EMAIL_ADDRESS>wrote:

One of the most crucial things is having errors logs posted in discord so
everyone does not need to be watching the console 24/7.

Transfer the error events from core
Modify them to send a message to the error log channel

@cfanoulis https://github.com/cfanoulis @tech6hutch
https://github.com/tech6hutch @VoidCodes https://github.com/VoidCodes
Thoughts on the implementation?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Skillz4Killz/Network/issues/51?email_source=notifications&email_token=AJD3T5LJGKANEG7GBQI2ETTQHMSZ7A5CNFSM4ISVLZNKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HITXDTQ,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJD3T5K4VQD3G664M23RKE3QHMSZ7ANCNFSM4ISVLZNA
.

This is reasonable. They have services out there like PM2 that monitor stuff like that for you and notify you at your choosing method

PM2 Monitor is great but its not a great solution for everyone. Everyone here uses Discord, this is a Discord bot. We go to discord almost every day so having the errors be logged into Discord where we can much more easily see them will help us debug and fix them much faster.

i mean so do i. but thats kinda where you have to give and take. PM2 can log more detail then a disord channel. what happens if the errors go beyond the limit of text allowed on discord? or an error goes unnoticed overnight?

@ClearlyElevated may I invite you to our Discord to discuss this further? I do not feel like GitHub issues can foster such a discussion
🔒

Just to clarify:
Any dev running their own instance of this bot can always use the PM2 logs. We aren't stopping that but simply adding any additional way of having logs.
This is simply just another way devs can get logs in a much more easily accessible way that they are likely to see daily. Right on Discord.
P.S. Been using discord channel for error logs for quite a while and 99% of the time its enough.


Interesting view on CVs

https://twitter.com/LargeCardinal/status/1168128486436954114

As a consequence the schema should be relaxed and should only "require": ["personal"]

Personal has too much data so even, if we would go about relaxing it should not be personal but core that is the primary thing.
But agree that the requirement might not be necessary within the schema. Might be in the tooling to nudge about. Happy for your more detailed thoughts.

Core then. I would be fine with that.
In general though I'd strongly favour evolving the schema over at JSONResume instead of having two "standards".

Sure. Not for lack of trying. As you saw I am still active at JSONResume and that since 2015.
As mentioned in various issues the plan was always to iterate outside JSONResume and later move this back into JSONResume and keep Resumic around as a Go implementation of it. If that works out is still up for debate :P


Use with Service Worker Asset Cache

I added to ember-cli-build.js
// Add fonts to Service Worker asset cache
    'asset-cache': {
      include: [
       'assets/**/*',
       'fonts/**.*'
      ],
    },

but fonts can't be found in offline mode because '?v=4.7.0' is added to the .css (fontawesome-webfont.woff2?v=4.7.0)
Can this be disabled or should I write something different then 'fonts/**.*' ?

@broerse this is an issue with fontawesome itself and I don't think we can disable it here. Since the asset is fingerprinted by the version number in the file name I use the cache-first strategy. I have my service worker definition setup as:
'esw-cache-first': {
  patterns: [
    'fonts/fontawesome(.+)',
  ]
},

@jrjohnson Thanks! Wil use that for now but it feels wrong to use an extra addon just for fingerprinting. Perhaps @martndemus can fix this in ember-font-awesome v4.0.0 because everything seems to be compiled in this version.

You should be able to use this same pattern with asset-cache, I just use cache first so there isn't an extra network request for a file that never changes. Service worker addons are super lightweight so I wouldn't worry about it too much.  Either way should work though.
This problem is addressed in Font Awesome 5 and we're working on making that available.


drivers: can: stm32: can_add_rx_filter() does not respect CONFIG_CAN_MAX_FILTER

Describe the bug
Calling can_add_rx_filter() on an STM32 bxCAN driver instance does not respect CONFIG_CAN_MAX_FILTER setting.
When setting CONFIG_CAN_MAX_FILTER=5 the driver returns -ENOSPC when attempting to add standard, unmasked CAN-ID filter number 5. On the other hand, it seems to allow for infinite number of extended, unmasked CAN-ID filters (which clearly overflows the internal arrays of the driver).
Expected behavior
The driver should accept up to the number of configured filters and should not overflow internal arrays.
Environment (please complete the following information):

OS: Ubuntu Linux 20.04 LTS
Toolchain Zephyr SDK v0.14.0
Commit SHA: 70c48417c7a0d7db139accc2368bec7f4aa9c762

Additional context
This was found during implementation of #44687.

Should this issue be closed by the https://github.com/zephyrproject-rtos/zephyr/pull/44688 ?

Should this issue be closed by the https://github.com/zephyrproject-rtos/zephyr/pull/44688 ?

No. It was found during implementation of #44688. It is not fixed yet.

OK.
Then does this issue has a link with the error we get when running the testcase : tests/subsys/canbus/isotp/implementation/ on the nucleo_g474re board :
Running TESTSUITE isotp
===================================================================
START - test_bind_unbind
 PASS - test_bind_unbind in 2.509 seconds
===================================================================
START - test_send_receive_net_sf
 PASS - test_send_receive_net_sf in 0.6 seconds
===================================================================
START - test_send_receive_net_blocks
 PASS - test_send_receive_net_blocks in 1.20 seconds
===================================================================
START - test_send_receive_net_single_blocks
 PASS - test_send_receive_net_single_blocks in 0.166 seconds
===================================================================
START - test_send_receive_sf
 PASS - test_send_receive_sf in 0.6 seconds
===================================================================
START - test_send_receive_blocks
 PASS - test_send_receive_blocks in 0.454 seconds
===================================================================
START - test_send_receive_single_block

E: Reception of next FC has timed out
    Assertion failed at WEST_TOPDIR/zephyr/tests/subsys/canbus/isotp/implementa)
data should be received at once (ret: -14)

    Assertion failed at WEST_TOPDIR/zephyr/tests/subsys/canbus/isotp/implementa)
Sending failed (-2)
 FAIL - test_send_receive_single_block in 1.167 seconds
===================================================================
START - test_buffer_allocation

    Assertion failed at WEST_TOPDIR/zephyr/tests/subsys/canbus/isotp/implementa)
recv error: -14
 FAIL - test_buffer_allocation in 1.116 seconds
===================================================================
START - test_buffer_allocation_wait
E: No buffer for FF left

    Assertion failed at WEST_TOPDIR/zephyr/tests/subsys/canbus/isotp/implementa)
Binding failed (-11)
 FAIL - test_buffer_allocation_wait in 0.18 seconds
===================================================================
TESTSUITE isotp failed.
===================================================================
PROJECT EXECUTION FAILED

@FRASTM I think the issue you stated and the original issue described by @henrikbrixandersen cannot be related as the STM32G474 has the M_CAN IP, whereas this error is in the bxCAN driver for "older" STM32 MCUs.
I've just been working on the bxCAN driver for #46646, so I can have a closer look at this issue after that PR was merged.

@martinjaeger Do you still plan to take a closer look at this?

@martinjaeger Do you still plan to take a closer look at this?

Thanks for the reminder. I started working on it, but it turned out to be a bit more complicated than expected, so I couldn't find a fix immediately. Having another try now :)

In order to reproduce the bug, I started with implementing the can_get_max_filters API call (see my working branch).
Now tests/drivers/can/api fails on all filter-related tests.

Click to expand log output for CONFIG_CAN_LOG_LEVEL_DBG=y
[previous tests pass]

===================================================================
START - test_max_std_filters
D: Setting filter ID: 0x1, mask: 0x7ff
D: Filter type: standard ID without mask (1)
D: Filter set: id 0, index 0, bank 14
D: Setting filter ID: 0x2, mask: 0x7ff
D: Filter type: standard ID without mask (1)
D: Filter set: id 1, index 1, bank 14
D: Setting filter ID: 0x3, mask: 0x7ff
D: Filter type: standard ID without mask (1)
D: Filter set: id 2, index 2, bank 14
D: Setting filter ID: 0x4, mask: 0x7ff
D: Filter type: standard ID without mask (1)
D: Filter set: id 3, index 3, bank 14
D: Setting filter ID: 0x5, mask: 0x7ff
D: Filter type: standard ID without mask (1)
I: No space for a new filter!
D: Filter set: id -28, index 4, bank 15

    Assertion failed at WEST_TOPDIR/zephyr/tests/drivers/can/api/src/main.c:476: add_rx_msgq: (filter_id equal to -ENOSPC)
no filters available
 FAIL - test_max_std_filters in 0.71 seconds
===================================================================
START - test_max_ext_filters
D: Setting filter ID: 0x1, mask: 0x1fffffff
D: Filter type: extended ID without mask (3)
D: Filter set: id 8, index 6, bank 16
D: Setting filter ID: 0x2, mask: 0x1fffffff
D: Filter type: extended ID without mask (3)
D: Filter set: id 10, index 7, bank 16
D: Setting filter ID: 0x3, mask: 0x1fffffff
D: Filter type: extended ID without mask (3)
D: Filter set: id 12, index 8, bank 17
D: Setting filter ID: 0x4, mask: 0x1fffffff
D: Filter type: extended ID without mask (3)
D: Filter set: id 14, index 9, bank 17
D: Setting filter ID: 0x5, mask: 0x1fffffff
D: Filter type: extended ID without mask (3)
D: Filter set: id 16, index 10, bank 18
D: Setting filter ID: 0x6, mask: 0x1fffffff
D: Filter type: extended ID without mask (3)
D: Filter set: id 18, index 11, bank 18

    Assertion failed at WEST_TOPDIR/zephyr/tests/drivers/can/api/src/main.c:760: add_remove_max_filters: (filter_id not equal to -ENOSPC)
added more than max filters
 FAIL - test_max_ext_filters in 0.84 seconds
===================================================================
START - test_receive_timeout
D: Setting filter ID: 0x555, mask: 0x7ff
D: Filter type: standard ID without mask (1)
I: No space for a new filter!
D: Filter set: id -28, index 12, bank 19

    Assertion failed at WEST_TOPDIR/zephyr/tests/drivers/can/api/src/main.c:476: add_rx_msgq: (filter_id equal to -ENOSPC)
no filters available
 FAIL - test_receive_timeout in 0.27 seconds
===================================================================
START - test_send_callback
D: Sending 8 bytes on CAN_2. Id: 0x555, ID type: standard, Remote Frame: no
D: Using mailbox 0
 PASS - test_send_callback in 0.10 seconds
===================================================================
START - test_send_receive_std_id
D: Setting filter ID: 0x555, mask: 0x7ff
D: Filter type: standard ID without mask (1)
I: No space for a new filter!
D: Filter set: id -28, index 14, bank 20

    Assertion failed at WEST_TOPDIR/zephyr/tests/drivers/can/api/src/main.c:476: add_rx_msgq: (filter_id equal to -ENOSPC)
no filters available
 FAIL - test_send_receive_std_id in 0.27 seconds
===================================================================
START - test_send_receive_ext_id
D: Setting filter ID: 0x15555555, mask: 0x1fffffff
D: Filter type: extended ID without mask (3)
D: Filter set: id 28, index 16, bank 21
D: Sending 8 bytes on CAN_2. Id: 0x15555555, ID type: extended, Remote Frame: no
D: Using mailbox 0

[device gets stuck]

Digging deeper into the driver implementation I realized that there is no quick fix for this bug, as it requires a rework of significant parts of the driver. I opened a separate issue #47986 to discuss possible solutions.
I would appreciate your feedback.


Bottleneck! some integration tests taking a long time

from lib/src/wallet.rs:
https://github.com/AloeareV/zingolib/blob/dc40549f2b4e80635803ab69993d519eb016c5ae/lib/src/wallet.rs#L1449
this is the part of the code which is slowing down the note_selection_order integration test. the issue is the .build function which is where it leaves our code

major development on test framework and underlying libraries since this issue raised. a more thorough investigation will me made into bottlenecks for our current version of code in the near future


Fix path to types

Some users ran into problems with not getting the types for this module in TypeScript. See https://github.com/knicklabs/lorem-ipsum.js/issues/39
The root cause was an incorrect path to the type definitions in the package.json file.

Pull Request Test Coverage Report for Build 65

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

Totals

Change from base Build 64:
0.0%

Covered Lines:
92

Relevant Lines:
92

💛  - Coveralls

Pull Request Test Coverage Report for Build 65

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

Totals

Change from base Build 64:
0.0%

Covered Lines:
92

Relevant Lines:
92

💛  - Coveralls


IGNITE-11805 .NET runnable core executable

Please update DEVNOTES.txt: we have a new system requirement for release builds - .NET Core 2.0+.


Allow option for debouncing scroll monitor.

Currently since scrollMonitor must be instantiated and isn't a singleton it's very difficult to use something like _.debounce to limit the time it takes for the scroll watcher to fire. This is pretty common for people wanting to mess around with scroll events so I think it'd be a good feature to add.
An example of what I'm talking about can be shown in this code pen. http://codepen.io/anon/pen/mAGkyE

The scroll watcher is very fast. Your page will jank because of a gigantic body or intense CSS long before it janks because of the scrollMonitor. See the stress test. http://stutrek.github.io/scrollMonitor/demos/stress.html
There is no option for debouncing because it would provide no benefit. No element is entering then exiting the viewport in less time than the debouncing would cover. You can't get every scroll even from the monitor right now, only callbacks when the state of an item changes.
Also note that you are never limiting the time it takes a callback to fire, you're delaying the jank caused by slow code. If you're running into jank issues you should put calls to console.profile('scroll callback') and console.profileEnd('scroll callback') around your code to figure out what's slowing you down.

It's unfortunate that you seem so set in your ways that you would not even stop to consider a feature request.
I'm not quite sure what you mean when you're saying about my page janking. debouncing would be used to limit the speed of scrollMonitor. Perhaps an example would help illustrate the use of this option.
Let's say I want to implement a lazy loader using scrollMonitor. This would be very easy to do using  enterViewport on every item that needs to be lazy loaded.  Here would be a good time to use debounce to limit the amount of pending network connections going out for the lazy loaded images and only load the images necessary.

I see. You can use setTimeout (or _.debounce) and the state of the watcher to do this.
var imageWatcher = scrollMonitor.create(img);
imageWatcher.stateChange(_.debounce(function () {
	if (imageWatcher.isInViewport) {
		image.src = 'foo.png';
		imageWatcher.destroy();
	}
}, 300));

I apologize if I was curt, if you google articles about listening to scroll events almost all of them suggest debouncing or throttling in a very different way than you are. I hope you make the most of the library and thanks for participating.


fix: modify build error in humble

Types of PR

[ ] New Features
[ ] Upgrade of existing features
[x] Bugfix

Link to the issue
Description
How to review this PR.
confirm if lanelet2_extension_psim can be built on both galactic and humble.
Others

@piotr-zyskowski-rai If you still face the build issue on humble, could you try this branch?
You can try to test like
git fetch origin
git checkout fix/build-error-humble
git merge origin/feature/zmqpp_vendor

@hakuturu583

so please also update release note.

I updated the release note in https://github.com/tier4/scenario_simulator_v2/pull/793/commits/171a4c476e0311d24e070e1ee3e2034a2c499be3.


options to have a single, global settings.json file and a simple bare bones IDE that can be built upon.

I used Visual Studio for 20+ years and never deviated. It was superior to all other IDE's.
In stunning contrast; VS Code is a group of badly planned and maintained concepts.
As for the extensions. Some are VS Codes only saving grace but most are just rehashed do to the lack of any standards.
I never write such negative posts/reviews and when I have in the past I always try and give as much info as possible to help the devs.
My last action regarding VS Code is to uninstall it for good.
I'm sorry to be so negative

I'm sorry again. This isn't really helpful post but Komodo Edit can work a dozen web servers over ssh while writing & formatting a multitude of languages locally and vs Code struggles to keep the same color and size font..

It would be great if you can elaborate the feature you would like to have in VS Code that you are missing. The given information is not sufficient.

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!


GetHttpResponseBody with large file

Describe the bug / error
Issue with the wasm plugin while envoy serving relatively large file (approximately larger than 1mb).
When there is a large file, the request is being drop and the client fail to download the file.
The code is very similar to an example in this repository: https://github.com/tetratelabs/proxy-wasm-go-sdk/blob/4abbb63350df4c6f81e947cba238393e9dd28cb8/examples/http_body/main.go#L158
Our code:
func (ctx *httpContext) OnHttpResponseBody(bodySize int, endOfStream bool) types.Action {
	proxywasm.LogErrorf("Enter OnHttpResponseBody %d %t %d %d", bodySize, endOfStream, ctx.totalResponseBodySize, ctx.maxResponseBodySize)

	if !endOfStream {
		return types.ActionPause
	}

	if ctx.totalResponseBodySize > ctx.maxResponseBodySize {
		ctx.responseBodyTooLarge = true
	} else {
		reqBody, err := proxywasm.GetHttpResponseBody(0, ctx.totalResponseBodySize)
		if err != nil {
			proxywasm.LogErrorf("Failed to get response body: %v", err)
			return types.ActionContinue
		}

		// Saving the body for later
		ctx.responseBody = reqBody
	}

	return types.ActionContinue
}

The issue occurs when the envoy is serving a large file, but the endofstream is never true.
This is a small file (4064 bytes) example:
wasm log: Enter OnHttpResponseBody 4064 false 0<PHONE_NUMBER>
wasm log: Enter OnHttpResponseBody 4064 true 4064<PHONE_NUMBER>

This is a large file (2698669 bytes) example, the file is being dropped before the endofstream result in true
wasm log: Enter OnHttpResponseBody 114532 false 0<PHONE_NUMBER>
wasm log: Enter OnHttpResponseBody 114532 false<PHONE_NUMBER>483647
wasm log: Enter OnHttpResponseBody 1047900 false<PHONE_NUMBER>483647

When the changing the types.ActionPause in !endOfStream to types.ActionContinue, the file is not being dropped:
func (ctx *httpContext) OnHttpResponseBody(bodySize int, endOfStream bool) types.Action {
	proxywasm.LogErrorf("Enter OnHttpResponseBody %d %t %d %d", bodySize, endOfStream, ctx.totalResponseBodySize, ctx.maxResponseBodySize)

	if !endOfStream {
		return types.ActionContinue
	}

	if ctx.totalResponseBodySize > ctx.maxResponseBodySize {
		ctx.responseBodyTooLarge = true
	} else {
		reqBody, err := proxywasm.GetHttpResponseBody(0, ctx.totalResponseBodySize)
		if err != nil {
			proxywasm.LogErrorf("Failed to get response body: %v", err)
			return types.ActionContinue
		}

		// Saving the body for later
		ctx.responseBody = reqBody
	}

	return types.ActionContinue
}

But another issue arise from this case, the GetHttpResponseBody being failed after 2 executions, which means you cant really retrieve the whole response body.
This is a large file (2698669 bytes) example:
wasm log: Enter OnHttpResponseBody 65536 false 0<PHONE_NUMBER>
wasm log: Enter OnHttpResponseBody 1048576 false 0<PHONE_NUMBER>
wasm log: Enter OnHttpResponseBody 1048576 false 0<PHONE_NUMBER>
wasm log: Enter OnHttpResponseBody 535981 false 0<PHONE_NUMBER>
wasm log: Enter OnHttpResponseBody 0 true 0<PHONE_NUMBER>

What is your Envoy/Istio version?
envoy version 1.24.0
What is the SDK version?
v0.19.0
What is your TinyGo version?
tinygo version 0.25.0 darwin/amd64 (using go version go1.18.3 and LLVM version 14.0.0)
URL or snippet of your code including Envoy configuration
static_resources:

  listeners:
  - address:
      socket_address:
        address: <IP_ADDRESS>
        port_value: 8086
    filter_chains:
    - filters:
      - name: envoy.filters.network.http_connection_manager
        typed_config:
          "@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager
          use_remote_address: true
          codec_type: AUTO
          stat_prefix: ingress_https
          access_log:
            - name: envoy.access_loggers.file
              typed_config:
                "@type": type.googleapis.com/envoy.extensions.access_loggers.file.v3.FileAccessLog
                path: "./access.log"
          http_filters:
            - name: envoy.filters.http.wasm
              typed_config:
                "@type": type.googleapis.com/udpa.type.v1.TypedStruct
                type_url: type.googleapis.com/envoy.extensions.filters.http.wasm.v3.Wasm
                value:
                  config:
                    fail_open: true
                    configuration:
                      "@type": type.googleapis.com/google.protobuf.StringValue
                      value: <plugin-configuration>
                    vm_config:
                      runtime: "envoy.wasm.runtime.v8"
                      code:
                        local:
                          filename: "./wib-proxy-wasm-tap.wasm"
            - name: envoy.filters.http.router
              typed_config:
                "@type": type.googleapis.com/envoy.extensions.filters.http.router.v3.Router
          route_config:
            name: local_route
            virtual_hosts:
            - name: passthrough
              domains: ["*"]
              routes:
              - match:
                  prefix: "/"
                route:
                  cluster: service-http

  clusters:
  - name: service-http
    type: STRICT_DNS
    dns_lookup_family: V4_ONLY
    lb_policy: ROUND_ROBIN
    load_assignment:
      cluster_name: service-http
      endpoints:
      - lb_endpoints:
        - endpoint:
            address:
              socket_address:
                address: <IP_ADDRESS>
                port_value: 8080
  - name: wib
    connect_timeout: 5000s
    type: STRICT_DNS
    dns_lookup_family: V4_ONLY
    lb_policy: round_robin
    load_assignment:
      cluster_name: wib
      endpoints:
        - lb_endpoints:
            - endpoint:
                address:
                  socket_address:
                    address: <IP_ADDRESS>
                    port_value: 9094

Additional context (Optional)

cc @jcchavezs wanna take a look?

@jcchavezs @mathetake I have updated the issue description, the problem with action.ActionContinue is that the proxywasm.GetHttpResponseBody function call failed after 2 executions. Let's say the file is big and the OnHttpResponseBody function is called 5 times (like in the last example), the proxywasm.GetHttpResponseBody Is failed at the third time, which leads us to not being able actually to collect the whole request body.

I will check.
On Tue, 28 Feb 2023, 22:21 RoeiGanor, @.***> wrote:

@jcchavezs https://github.com/jcchavezs @mathetake
https://github.com/mathetake I have updated the issue description, the
problem with action.ActionContinue is that the
proxywasm.GetHttpResponseBody function call failed after 2 executions.
Let's say the file is big and the OnHttpResponseBody function is called 5
times (like in the last example), the proxywasm.GetHttpResponseBody Is
failed at the third time, which leads us to not being able actually to
collect the whole request body.
—
Reply to this email directly, view it on GitHub
https://github.com/tetratelabs/proxy-wasm-go-sdk/issues/359#issuecomment-1448933077,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAXOYAUJPVNGVXKEULM6KF3WZZT6PANCNFSM6AAAAAAVFZBAO4
.
You are receiving this because you were mentioned.Message ID:
@.***>

I am sorry I did not come back before. I also noticed weird behaviours with endOfStream in the past, for example in https://github.com/corazawaf/coraza-proxy-wasm/blob/main/wasmplugin/plugin.go#L240-L247 where I couldn't reproduce the error with curl but could do it with a golang http client. I would ask you to describe how you do perform the request.
I will check it soon.

A lot of time has passed but as far as I remember this was my lab:

python simple HTTP server to serve files
envoy proxying to the python server
Had few files with different sizes in the file server
Curling to envoy with the file size needed, for example: curl localhost:808/1mb or curl localhost:808/2mb
The files were created using dd from /dev/urandom with base64 encoding.

Hey @jcchavezs !
Is there any news regarding this issue?

same problem, anything update?

https://github.com/tetratelabs/proxy-wasm-go-sdk/pull/451


After reload page, the chainId is different from the one in the Metamask.

Check existing issues

[X] I checked there isn't already an issue for the bug I encountered.

Describe the bug
When I connect metamask in my telegram webapp, switch chains, and then reload the page, the chainId is different from the one in the wallet.
I noticed that metamask store a .MMSDK_cached_chainId in the localStorage to persist the chain info. After switching chains, this field retains the old chainId. When the page is reloaded, the retrieved chainId becomes the old value, even though the wallet has already switched to the new chain.
I tried the demo provided by metamask-sdk and found that this issue doesn’t occur there. So, I think the callback that updates the .MMSDK_cached_chainId after switching chains may not be executing, or it might have been overridden.
Link to Minimal Reproducible Example
https://metamask-cache-chain-id.vercel.app/
Steps To Reproduce
I deployed a reproduction in my test bot. You can enter the bot and type /metamask.

connect wallet
switch chain
reload in the top right corner.
check localStorage

What Wagmi package(s) are you using?
wagmi, @wagmi/connectors
Wagmi Package(s) Version(s)
2.12.25
Viem Version
2.21.37
TypeScript Version
5.5.3
Anything else?
No response

Worth raising on the MetaMask SDK directly
https://github.com/MetaMask/metamask-sdk

@tmm Please read my description carefully first.

I tried using metamask-sdk directly instead of connecting through wagmi, and the issue does not occur.


[WebSocket] Exception Unexpected character encountered while parsing value: M. Path '', line 0, position 0.

I am not able to sign in to the web3 wallet on an Android device. Getting a parsing exception for running the code on Android target devices. After checking the logs I understood that there are some WebSocket exceptions are throwing while connecting the web3 wallet on Android devices.
[WebSocket] Exception Unexpected character encountered while parsing value: M. Path '', line 0, position 0.

@codemaker2015  I have found that notice to not matter. That notice shows even when things are "working" ha...
I do wish that notice was hidden or shown less, though.

It looks like this message is coming from the WebSocket KeepAlive function trying to ping the WalletConnect bridge. The WalletConnect bridge then response with "Missing or invalid socket data": https://github.com/WalletConnect/walletconnect-monorepo/blob/v2.0/servers/relay/src/ws.ts#L98. Going to talk to WalletConnect team and see if this is by design or not.

Fixed in the new 1.2.0 release 🥳


Removed server_model_dirs section in persistence section as it is no …

…longer used
Proposed changes:

...

Status (please check what you already did):

[ ] made PR ready for code review
[ ] added some tests for the functionality
[x] updated the documentation
[ ] updated the changelog

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


Fixed handling hardlinks to symlinks in tar stream

Fixed bug #10937

@vbatts?

interesting. I'm wondering how we haven't hit this before.
@iavael could you try your hand at adding tests for this?

Added test

Hello @iavael, and thanks for the contribution. We have several comments and questions pending, do you think you'll be available to follow this pull request? Thanks!

Yep, sorry for silence. Answered in line notes.

LGTM, though while the _test.go uses the testBreakout(), I am not sure that is essential to your test.

though I see where the test fails on master, and passes on your branch. It just reads as testing for breakout, rather than your symlink to hardlink case.

LGTM


Concurrent build support

Hi there
First off, I wanted to say that I LOVE this tool. It was the last missing piece to start adding cicd to my games and it's been super easy to use
We're planning to release our game to multiple platforms. I have every commit triggering the build server, and the server is building all platforms in parallel (for now I'm just testing for Windows + Linux, but there will be more later)
I get the following error when doing this
System.IO.IOException: The process cannot access the file 'C:\Users\Administrator\AppData\Local\Temp\2\gamemaker-rubber\107df35d-7b57-421b-a352-a1911c2eb0a4\GMCache\PlatformOptions.json' because it is being used by another process.

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)

   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)

   at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)

   at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)

   at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)

   at GMAssetCompiler.GMOptions.WriteToJson(String pathname, GMAssets _assets)

   at GMAssetCompiler.Program.(String[] )

So it looks like rubber only supports 1 build at a time? I was wondering how hard it would be to fix this? If you point me in the right direction I could also try making a pull request

sorry for the near year delay. i forgot about this project, and didnt have write permissions until today.
it seems gamemaker itself doesnt let you do concurrent builds on the same temp directory, which makes sense.
the folder rubber uses is based on the GUID. it currently is only hooked to the GUID, but there could be a custom option for adding a directory override. see rubber.ts:249

Sure, I may look into it, thanks for the response


Consider switching build to use stack?

Benefits and approaches discussed here: https://www.fpcomplete.com/blog/2015/12/stack-travis

Having played a tiny bit with stack I am for this. All I had to do was a stack init (I used the nightly resolver which seemed appropriate for development??) in the repo to generate the stack.yaml file. Largely thanks to your efforts to restructure the repo I suspect. :+1:

I've only just gotten started with it too, but it does seem pretty nice (once I got past a few windows issues). Also they are supposedly working on automatic hackage documentation uploads, which will be nice because the current state is a pain when the automatic builds on the hackage server aren't working.

See the results of https://travis-ci.org/dmcclean/dimensional/builds/102417341
It looks like doctest isn't running the C preprocessor (or isn't running it properly?) on GHC 7.8's LTS version of doctest?


Include steps for checking dashboards at various stages of the walkthrough.

Done in https://github.com/Kuadrant/api-quickstart/issues/11


[3.2] Fix Bullet prioritised list of Areas a RigidBody is a member of element shift.

3.2 version of #42061.

Thanks!


allow script input from stdin

eg. this should work:
$ tea +rust-lang.org^1.2 rustc <<-HEREDOC
    println!("Hello World!");
HEREDOC

Implementation details:

rustc should receive the stdin, we should not write out the script for it

This does work.


Rename example

add --CHN to 2 examples' folder name

Add --CHN to two examples' folder name

the language code for chinese is zh, not CHN
simply create a new directory zh, and put these two chinese tutorials there.


Demonstration of minimal error case for simple_for

This contains the minimal error caused when using the omp parallel for construct.
The simple_for.cpp program makes the following calls to the runtime:
$  ltrace -l libomp.so.5 -f -s 128 -C -n 4 build/bin/simple_for
[pid 10620] simple_for->__kmpc_global_thread_num(0x7ffde77c4e60, 0x7fc3857ffd50, 80, 0x7ffde77c4e20)                                               = 0
[pid 10620] simple_for->__kmpc_push_num_threads(0x7ffde77c4e60, 0, 1, 0x48b530)                                                                    = 0x188d600
[pid 10620] simple_for->__kmpc_fork_call(0x7ffde77c4e60, 1, 0x40b6b0, 0x7ffde77c4e7c <unfinished ...>
[pid 10620]     simple_for->__kmpc_for_static_init_4(0x7ffde77c4a70, 0, 34, 0x7ffde77c4a90)                                                        = 0x7fc385a0bd4c
[pid 10620]     simple_for->__kmpc_for_static_fini(0x7ffde77c4a70, 0, 0x185a010, 0x7ffde77c4e7c)                                                   = 0x7fc385a0c59c
[pid 10620] <... __kmpc_fork_call resumed> )                                                                                = 0x7fc385a10328
[pid 10620] +++ exited (status 0) +++

A GDB watch on that variable to see when it changes would be very useful, is that something possible to do in Faasm?. Because where does this memory corruption come from 🤔?

I was able to get a more firm understanding of things, I'll put the gist of things here because you might be interested.
Remember, the shared variables get erased upon reaching the omp for construct. It has to do with something in the lines of an ABI-like issue:

Unfortunate incompatibility of some copy semantic for function parameters between C/C++/Wasm
In the mix of OpenMP/WASM/JIT something somewhere is messing up the call stack of the OpenMP function created by the compiler (i.e. the loop body)
This results in the original pointers to the shared data that the compiler had given us are not valid anymore

Let me explain with an example. First, you need to understand that the compiler will create 4 variables for the static loop construct and give pointers to those to __kmpc_for_static_init_4 which will modify their value for each thread:

lower: LB on the array (it is however not necessarily the initialization value of i, your loop counter)
upper inclusive UB on the array (like lower, the compiler shifts those if let's say you start looping at i=3; i < 5, in which case lower = 0, upper =1)
stride: value for the runtime library to calculate
lastiter: last iter flag.

Now that we know this let's create a stack array bigger than 4, say 15 elements, and keep the counting variable we had originally in simple_for.
FAASM_MAIN_FUNC() {
    int32_t stack[15] = {-1, -2, -3, -4, -5, -6, -7, -8, -9, -10, -11, -12, -13, -14, -15};
    int32_t var = BASE_VALUE + ITERATIONS;

    #pragma omp parallel for num_threads(1) default(none) shared(stack, var)
    for (int i = START; i < END; i++) {
        var--;
        (stack + 15)[i]=42; // Note +15 here, we write at the "moved/copied" location
    }

    printf("Printing some values before stack and some long after\n");
    for (int i = -3; i < 15 + 13; i++) {
        printf("%i, ", (stack)[i]);
    }
    printf("\nvar: %d\n", var);
    return 0;
}

12582848, 0, 100, -1, -2, -3, -4, -5, -6, -7, -8, -9, -10, -11, -12, 0, 2, 1, 0, -1, -2, 42, 42, -5, -6, -7, -8, -9, -10, -11, -12,

The two first value are not interesting. The 100 is the (correct) value of var. Then we see -1, ..., -12 which is the old stack array, stack points points at -1. Then we see 0, 1, 1, 0 corresponding to the lastflag, stride, upper, lower variables which overrides the end of the stack array (+1 I32 space, maybe the copied var which is nowhere to be found). Finally we have the move/copied stack array, modified in the correct places (42, 42) because of the offset +15 we have applied (note that adding the length of the array only works on an array of size 15, this is not bulletproof).
If you go back to what I suggest the causes of this may be. I think I need to first exclude fork to be the cause of this, maybe there is something wrong in my semantics of things. Or there is some ABI issues I need to understand.

I moved the various pieces brought in #145 in here as well. Which means this PR will replace it.
We will operate in the same simple team-less context of #144 without nesting, multiple constructs, users etc. I'm changing the title of this PR to reflect what has to be done. This will be the main "title" comment too.
Add support for omp parallel for schedule(static, [chunk]) with int parameter
TODOs

[ ] Implement for sched_type 34 the required controls in init_4.
[ ] Implement for sched_type 33 and/or chunk size 1 (task ticketing system like in Clang?)
[ ] Add simple_for to the tests
[ ] Add `for_static_schedule to the tests
[ ] Fix race conditions currently present


Can external tables connect to ADLS private endpoint?

Can an external table from either serverless or dedicated sql pool connect to a storage account / ADLS using private endpoint?

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

ID: 33f24f1e-cb2d-7606-16c2-ae19c0db155a
Version Independent ID: f66744af-ca5a-c506-0186-a7276735a54e
Content: Use external tables with Synapse SQL - Azure Synapse Analytics
Content Source: articles/synapse-analytics/sql/develop-tables-external-tables.md
Service: synapse-analytics
Sub-service: sql
GitHub Login: @julieMSFT
Microsoft Alias: jrasnick

@dckfnuance
Thank you for reaching out. At this time we are reviewing the ask and will provide an update as appropriate

Hey @dckfnuance, Thanks for the ask.  Yes, for a workspace which supports managed VNET and you wish to connect to PaaS resources on Azure.
We have more details here - https://docs.microsoft.com/en-us/azure/synapse-analytics/security/how-to-create-managed-private-endpoints
Hope this helps.

We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply and reopen the issue. We will gladly continue the discussion.

In the following doc, it mentions that dedicated and serverless SQL pool isn’t deployed in the Managed workspace Virtual Network.
https://docs.microsoft.com/en-us/azure/synapse-analytics/security/synapse-workspace-managed-private-endpoints#managed-private-endpoints-for-dedicated-sql-pool-and-serverless-sql-pool
In this case, how can external table in dedicated or serverless SQL pool connect to a storage account using private endpoint?
From: Kranthi Pakala @.>
Sent: Tuesday, May 4, 2021 12:48 PM
To: MicrosoftDocs/azure-docs @.>
Cc: Chan, David @.>; Mention @.>
Subject: [EXTERNAL] Re: [MicrosoftDocs/azure-docs] Can external tables connect to ADLS private endpoint? (#74718)
Hey @dckfnuance, Thanks for the ask. Yes, for a workspace which supports managed VNET and you wish to connect to PaaS resources on Azure. We have more details here - https://docs.microsoft.com/en-us/azure/synapse-analytics/security/how-to-create-managed-private-endpoints
Hey @dckfnuancehttps://urldefense.com/v3/__https:/github.com/dckfnuance__;!!L7QdHkQ!wJD8CmcrNzyqESOo9ynXqYlbC5Wxi4hy_1nTCzmfE688O_RQwEDEiCDmqvZNNZi5$, Thanks for the ask. Yes, for a workspace which supports managed VNET and you wish to connect to PaaS resources on Azure.
We have more details here - https://docs.microsoft.com/en-us/azure/synapse-analytics/security/how-to-create-managed-private-endpointshttps://urldefense.com/v3/__https:/docs.microsoft.com/en-us/azure/synapse-analytics/security/how-to-create-managed-private-endpoints__;!!L7QdHkQ!wJD8CmcrNzyqESOo9ynXqYlbC5Wxi4hy_1nTCzmfE688O_RQwEDEiCDmqm2HONXL$
Hope this helps.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/MicrosoftDocs/azure-docs/issues/74718*issuecomment-832088072__;Iw!!L7QdHkQ!wJD8CmcrNzyqESOo9ynXqYlbC5Wxi4hy_1nTCzmfE688O_RQwEDEiCDmql0FGEsW$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/APGJNGQSZGSBQSLGJSDQ4VDTMAQNBANCNFSM44BOBWMQ__;!!L7QdHkQ!wJD8CmcrNzyqESOo9ynXqYlbC5Wxi4hy_1nTCzmfE688O_RQwEDEiCDmqk6QoGUB$.


readFileSyncWith should return string

--- a/src/Fs.res
+++ b/src/Fs.res
@@ -248,7 +248,7 @@ external openSyncWith: (string, ~flag: Flag.t=?, ~mode: int=?) => fd = "openSync
 @module("node:fs")
 external readFileSync: string => Buffer.t = "readFileSync"
 @module("node:fs")
-external readFileSyncWith: (string, readFileOptions) => Buffer.t = "readFileSync"
+external readFileSyncWith: (string, readFileOptions) => string = "readFileSync"

 @module("node:fs") external existsSync: string => bool = "existsSync"

If it's true there, it would be true of readFileSync as well.
Turns out the return value is based on the encoding option:
https://nodejs.org/api/fs.html#filehandlereadfileoptions
That's going to be interesting to bind.

The same goes for write, I think


Allow terminal color setting

From @bbulkow on October 7, 2017 19:13
Windows version: Microsoft Windows [Version 10.0.15063]
Please just add the ability to change colors. Or change the "dark blue on black" to just about anything else, like light blue on black, or dark blue on grey.
If I SSH into another host, the color for directory is dark blue on black. Whoever chose this is a masochist. The default should be something more sensible than dark blue on black - ANYTHING - and the ability to change the color is necessary.
Steps to reproduce: ssh pi@[any host]
$ ls /
You will see that the directory names are unreadable - dark blue on black.
People are asking for mouse and network and all kinds of things. Nonsense. Just allow me to ssh into another host and do an LS and read the output. SSH is the one feature I use most. And please don't tell me to use a windows ssh client like putty. The point of WSL is to give me the workflow I'm used to - and I just ssh around to hosts.
To ask me to change the colors on every host I log into is non-sense.
Copied from original issue: Microsoft/WSL#2550

From @zadjii-msft on October 9, 2017 17:40
So, there are actually a lot of options available for changing your colors:

You can change your default colors to something more pleasing. You can use colortool to change your defaults, and that should apply to your bash.exe/wsl.exe/ubuntu/suse/etc windows, assuming you haven't otherwise set any properties for them. This is the preferred method, because it's a lot easier to load entire color schemes with colortool than doing it manually.

For ex, colortool -d solarized_dark will give future console launches the "Solarized" color scheme.

You can change the properties of your bash.exe window manually.

right click ion the title bar of your console window, and click on properties:

Use the "Colors" tab to change the values of the color table to something more pleasing.

Hit okay to save and apply the changes.
Note that the Colors dialog is pretty much garbage and is really hard to use, hence colortool.

Also note that unfortunately, colortool doesn't work with WSL and interop. It's a limitation of interop at the moment, but if anyone can find a way around that, PR's are welcome :)
We've also updated the default color scheme as of the Fall Creator's Update, so if you choose to not change any properties at all right now, then when you get updated to FCU you'll get the new colors automatically.

From @Line117 on October 7, 2017 22:35
https://www.youtube.com/watch?v=K7Vafhl7P0M
UPD: or https://conemu.github.io/

From @bbulkow on October 9, 2017 17:50
Thanks for the quick response.
Can you answer the simple question of whether colortool and similar will apply to ssh sessions?
Lots of previous ideas ( like changing LS_COLORS ) doesn't work when you SSH to another machine.

From @PhMajerus on October 24, 2017 2:15
Just in case you're feeling adventurous...
I think you could have the colors set on the server if you wanted to.
What you need is an utility between your SSH server and the shell and apps that parses the VT sequences and convert all palette-specific sequences (colors, bright, ...) to RGB (in \e[38;5;r;g;bm style) according to a locally set palette.
This would increase the network traffic a bit, but would enable you to set your colors on the server side, regardless of client.
You can test this out by running the following:
bash 1> >(lolcat)
Colors should be set randomly by lolcat. Server-side palette utility would work in a similar fashion but swapping colors sequences on the fly.

From @zadjii-msft on October 9, 2017 17:55
Yes, it should. The actual colors that are displayed are controlled by the client terminal (in this case, conhost.exe), not the server (whatever's on the other end of ssh). So whenever an application on the server side writes text in "blue", it's up to the client to decide with which actual color "blue" is rendered in.

Defaults matter and the defaults are terrible. The "dark blue on black" is unreadable for me.

We agree, which is why we worked with our accessibility team during Creators Update to update the default Console color palette for the first time ever.
If you clean-install Windows 10 Creators Update or later, you'll get the new default color palette.
If you upgrade from a previos Windows version, you'll keep your original defaults including the 0x0000ff deep navy blue on black - there was no way for us to upgrade existing installs to the new palette without potentially borking someone's carefully chosen color settings.
If you did upgrade and want the new color palette, you can do so by opening your Cmd instances (wherever they're pinned, and use the Console ColorTool to change your Consoles' palette to the new default, or any other you choose.

Not sure why this was moved from WSL, or why it was closed, because colortool does nothing to change the color scheme of my WSL console (on 17692).  Colortool works as expected with cmd consoles.
There is a workaround:  Open a cmd terminal then launch wsl from that terminal.

This issue was moved to Console because color text rendering is primarily a Console issue, not WSL.
If a Linux application emits VT instructions that say "draw this text in Console's color palette index 1", the terminal draws the text in whatever it has configured in its current color palette.
If your Console's palette says the color at index 1 is  0x0000ff, then it'll be displayed in (the original) deep navy blue ... on black which is horrible on LCD screens ... which is why we updated the default palette for new Win10 installs).
If, on the other hand, your Console's color palette says the color at index 1 is 0x0037DA, then you'll see our new, updated blue ...

...which is MUCH more readable on LCD screens:

If you choose to set a different color at index 1, then you'll see whatever color you specify.
HOWEVER, if you use Linux tools that emit VT that says "display this text in 0x445566", then Console renders the text using the requested color - the Console's color palette is ignored if specific RGB colors are specified by the generating app ... which is what you see when you pipe text through lolcat:

It works as expected in Command Prompt, but using this in PowerShell turns the background pink, so I'm afraid to use it. Will it affect only cmd and wsl, or powershell also?

No. This is due to a quirk in the way Windows PowerShell changes PowerShell's default background color index (5) and the color itself (0x012456).
I'm working on some additional themes that will give you sane options for Windows PowerShell. Stay tuned!

Why don't add these colors in the Properties window? I don't find an option to change specifically the dark blue to something else. Where can I change the color values in the palette?

I'd also like to comment on this issue as it seems like it's the closest solution to my use case.
I'm using WSL and I've painstakingly set my colors via the command prompt properties dialog.

In my linux configurations, I additionally set "color130", which seems to be used by vim for some reason. Unfortunately it looks like the command prompt only supports color0 - color15, so I end up with this ugly brown color for color130.

Is there any way to set a color above 15? Possibly through the registry?
You can use this command (in bash) to test the colors in the console:
tput setaf 130 && echo XXX

@cpadilla I think 130 is one of the standard xterm-256color colors:

Since they're from a fixed and quasi-standardized palette, I don't believe that any terminal emulator allows you to change them.

@cpadilla First off, your color scheme looks awesome, I'm definitely gonna copy that.
I think you're correct that we don't support setting above index 15 at the moment, but I don't believe there's any reason we couldn't.
I've opened #313 to track that issue.

There is apossibility to change the default colors of the console.
Just go here eval HKEY_CURRENT_USER/Console with regedit
and there you find ColorTable00-15 tweak it to your needs ;)

There is apossibility to change the default colors of the console.
Just go to HKEY_CURRENT_USER/Console with regedit
and there you find ColorTable00-15 tweak it to your needs ;)

sorry its not working, it shows but does not affect the bash terminal

There is apossibility to change the default colors of the console.
Just go to HKEY_CURRENT_USER/Console with regedit
and there you find ColorTable00-15 tweak it to your needs ;)

sorry its not working, it shows but does not affect the bash terminal

It does work. There is a 16 ColorTable* values, each mapped to console color. Comments color is stored in a second value (as you can see in Console Properties, it's a second colorbox). So you just need to replace ColorTable01 with a color value you need.

This has now turned into something like 5 different complaints, many of which are already solved.
We have color tool, we have registry settings, we added another property sheet to the console so you can adjust the terminal properties, we extended the VT sequences processed to set the color options...
All of these, I think, substantially improve this experience.
If there are further individual issues here, let's open new issues for each individual problem instead of continuing to pile on here.
Thanks.

I am still experiencing the single original issue with colors on PowerShell version.
The accepted solution for this issue on this superuser thread is to consider using a terminal emulator like putty. This issue should be re-opened.

Why is there no pre-set themes for cmd.exe?
It's like recreating the wheel all over, per person.

@blixten85 Because conhost.exe (the application responsible for the cmd.exe window) is now officially in maintenance mode, and most new UI feature requests are being directed towards the Windows Terminal.
If you'd prefer stay on the vintage console, I'd recommend ColorTool.

Silly thought, why can't WSL/WSL2 use a Linux console?  There are quite a number of consoles in various Linux distributions and every one without fail is superior to cmd.exe, conhost.exe, or whatever else Microsoft throws over the fence for Windows users to use.
It's just seems counter productive to install an entire Linux distribution on Windows and then be forced to use whatever console application Windows users are forced to use.  All of this crosstalk;

WSL's console has horrible colors

We've updated the colors in this windows console application

WSL's console colors are still terrible

Oh, the updated windows console isn't usable by WSL, try this clunky workaround

WSL's console colors are still terrible
etc. etc. etc.

If Microsoft would just let users of WSL and WSL2 use native Linux terminals; Gnome Terminal, Konsole, Xfce Terminal, etc. then all of these issues would take care of themselves.  The other alternative would be to just wipe the Windows install (assuming you have that option) run an actual Linux distro and keep a VM with a Windows guest around for those pesky little Windows chores.
Of course that wouldn't help non WSL / WSL2 users.  I hear that, at least for new apps like the new Windows Terminal, Microsoft is working on updating the color pallets from the Win95 CRT display days.  So there's that.

@coleman-rik This thread's like, 5 years old. The Windows Console (conhost.exe) did not have a super intuitive way of changing the colors, sure. The Windows Terminal fares a lot better in that regard. If you've still got issues with the color schemes in the Terminal, well, you've come to the eight repo.
Plus, you've been able to run GUI applications in WSL for some time now. Feel free to go install gnome-terminal or whatever your preferred terminal application is from your package manager.
So there's that.


Add support for Property Wrappers

Resolves #803
This PR adds support for parsing Property Wrappers into the attributes list.

🙇


Ripple Effect Still Present After Click, Despite disableRipple Being Set

Steps to reproduce:

Click the calendar icon
Click away from the calendar icon
See that the ripple effect is still there after

https://stackblitz.com/edit/angular-material-disable-ripple-animation-taekj8?file=app%2Fapp.component.html

Unless I miss something, your demo currently only shows a select. I've tried to reproduce in my own StackBlitz using a datepicker with the toggle button and [disableRipple]="true". The "persistent" ripple effect shows when closing the datepicker to indicate that focus is on the button. This would be expected for accessibility.
Could you please provide more information if you are referring to something else?

Closing due to inactivity. The issue can be reopened if we get more information.


Add a configuration file to configure TestGrid

Description:
Introduce a configuration file to configure TestGrid DB configurations, Jenkins URLs etc.

@asma, turns out there IS a ticket to create a configuration file for testgrid. :) We can close this yes?