Extra name and desc on export - leads to "Map keys must be unique" exceptions

I'm seeing many errors of the type:
There was an error parsing the Statblock in Character Building/Spells/Warp Step.md:
Map keys must be unique at line 15, column 5:
    desc: ""
    ^

this appears to because name: and desc: attributes with empty strings are sprinkled throughout the exported statblocks.
E.g. here's Character Building/Spells/Warp Step.md
```statblock
name: "Warp Step  `pf2:2`"
level: "Cantrip 1"

trait_01: "cantrip"
trait_02: "concentrate"
trait_03: "manipulate"
layout: Basic Pathfinder 2e Layout
columns: 1
columnWidth: x
abilities_top:
  - name: ""
  - name: "Traditions"
    desc: "arcane, occult"

    desc: ""
abilities_mid:
  - name: ""
    desc: "When you walk, the earth warps beneath your feet-your steps extend, distance contracts, and everything is just a little bit closer. You gain a +5-foot status bonus to your Speed until the end of your turn. You then Stride twice. You can use warp step to Burrow, Climb, Fly, or Swim instead of Stride if you have the corresponding movement type.\n\n[[Spell Effects/Spell Effect_ Warp Step|Spell Effect: Warp Step]]"
sourcebook: "_Pathfinder Dark Archive_"

I have seen this behavior also on Actor exports. The location of the extra desc in this instance meant that the real desc: was overriden with an empty one.
I followed the readme recommendations for settings. I do have the checkbox for generating initiative tracker set.

What version of Foundry are you using?    I'm wondering if maybe something changed recently in the data source.    I am not seeing this with my exported data for this same example spell of Warp Step.   The "" name entry is intentional, but there should never be a desc entry like that.

system
version

Foundry
11.315

PF2e
5.16.1

More Handlebars Helpers
1.4.2

PF2e Exporter
0.9.2

I confirmed I can reproduce this issue running the same versions as you.  Hopefully I'll have a fix later today.

v0.9.3 of PF2E-md-exporter should correct this issue.   Feel free to re-open if you are still seeing this issue with that version.

Confirmed fixed.


Comment on % Pacbio sequences corrected ?

Hi,
I know this will depend on the dataset quality, but I will ask anyway. You compared quite extensively with the tool Lordec. In our (brief) experience Lordec is very quick and useful, but only keeps around 25-30 % of the Pacbio reads. In addition, many of the Pacbio reads are highly truncated. Short Pacbio reads are then not useful for assembly of complex plant genomes.
Maybe I missed it, but are there any stats on how your tool compares to Lordec for some of your test datasets ? i.e. % pacbio reads corrected, % excluded, % of initial read length corrected, etc..
Thanks,
Colin

Hey Colin,
We've actually had a different experience with LoRDEC thus far, namely it seems to report almost all of the reads as you'll see in the statistics below.  Here is a table of number of PacBio reads in the output for all of our datasets:

Dataset
Raw
LoRDEC
FMLRC

E. coli k12
82783
82663
82783

S. cerevisiae W303
216806
216490
216806

P. falciparum 3d7
242715
242711
242715

A. thaliana Ler-0
3758273
3758272
3758273

FMLRC will always output a read, and LoRDEC almost always outputs the reads for these datasets.
We don't have any direct statistics on the % corrected or % of initial corrected, but we do have N50s of the PacBio reads for three of the datasets:

Dataset
Raw
LoRDEC
FMLRC

E. coli k12
7566
7285
7064

S. cerevisiae W303
8975
8792
8689

A. thaliana Ler-0
7205
7050
6867

The P. falciparum 3d7 dataset is excluded because the dataset is incredibly noisy, and we weren't able to assemble anything from its PacBio reads (raw or corrected with any method).  While I don't have exact statistics for you, I recall from preliminary tests that LoRDEC and FMLRC were each able to make corrections to less than 40% of the PacBio reads for this dataset (I believe it was actually much lower than that, but I don't want to misreport on those stats).  Despite this, LoRDEC is outputting almost all of the reads, and FMLRC always outputs all reads, but there is no guarantee that either tool was able to correct all of the outputted reads.  This is especially true when there is a large amount of noise as in our P. falciparum dataset.
Does this help answer your questions?
Matt

Hi Matt,
thanks, that's a great answer.
I find this quite surprising, but guess it's down to the massive difference in repeat content between bacteria, small repeat poor plants like Arabidopsis, and the large highly repeat rich plant genomes we are working on.
I am not surprised P. falciparum was noisy, as the GC content is incredibly low.
I will see if I can find time and server resources to try FMLRC on a subset of Pacbio reads and report back.
Thanks,
Colin

closing due to inactivity


GPIO output when class is detected

Hello, I'd like to be able to Bring a GPIO pin high when a specific class or classes are detected on webcam, then go low when they are not.  Can anyone point me in e right direction as to where to add the code to do this?  Would it be in TFLite_detection_webcam.py?

dude search for the specific python package to control the GPIO. If the class is detected you can set the GPIO pin. The script youre using should contain that, so when your purpose is a livestream with a cam, YES.


Include more plugins in the create-app template

Feature Suggestion
Right now the app you get when using @backstage/create-app is just a barebones example app with some info on how to get started. At this point I think it makes more sense to include some of the core plugins, like @backstage/catalog, @backstage/scaffolder, @backstage/techdocs, etc.
Possible Implementation
Plugins are installed as dependencies and wired up in the templated app the same way as is done in the example app in this repo.
We likely want to provide some mock data as well, probably via the method described in https://github.com/spotify/backstage/issues/1833, pending implementation of that.
Include some of the following plugins that the example app has, but probably not all of them:

[x] @backstage/plugin-catalog
[x] @backstage/plugin-circleci
[x] @backstage/plugin-explore
[x] @backstage/plugin-github-actions
[ ] @backstage/plugin-gitops-profiles
[ ] @backstage/plugin-graphiql
[x] @backstage/plugin-lighthouse
[x] @backstage/plugin-register-component
[ ] @backstage/plugin-rollbar
[x] @backstage/plugin-scaffolder
[x] @backstage/plugin-sentry
[x] @backstage/plugin-tech-radar
[x] @backstage/plugin-techdocs
[x] @backstage/plugin-welcome

Context
When the create-app template was created Backstage was still in Phase 1, without any service catalog or things surrounding it. We're now in Phase 2 and want to make it easy to get those parts up and running too.

Can I grab this one @Rugvip ?

@ayshiff sure! Thanks again! :grin:
I think we can start with the catalog and scaffolder plugins and then go from there?

Thanks, this is much needed and appreciated.

@ayshiff sure! Thanks again! 😁
I think we can start with the catalog and scaffolder plugins and then go from there?

Yes, sure ! 👍

@Rugvip @ayshiff I've checked the boxes for which plugins I think should be available. Thanks for taking this on 🎯

Hey @stefanalund
What do you think about making the create-app ask about which plugins I would like to use?
Something like the vue-cli does.

Would be nice remove sentry and add rollbar in runtime
Do you need any help here @ayshiff?

Let's do this in a couple of iterations, starting with only the catalog and scaffolder plugins, and required dependencies of those. Getting this in well help people using create-app a lot, so better to get initial minimal implementation merged and then improve on that.
@angeliski Regarding plugin selection, we're definitely heading towards that, but it's really tricky to implement on top of some of the existing patterns, so will likely have to wait a bit.

Make sense to me @Rugvip is leaner and fast for feedback


Help with SQLAlchemy error

Hi!
I've got a kubernetes deployment of access and I'm getting a blank page when trying to access the UI. Digging into the logs, below is what I'm getting. Can you assist with this?
Thanks!
kubectl -n dev-access logs -f -l app=dev-access
WHERE okta_user.email ILIKE %(email_1)s AND okta_user.deleted_at IS NULL
 LIMIT %(param_1)s
2024-05-17 19:53:15,123 INFO sqlalchemy.engine.Engine [cached since 264.8s ago] {'email_1'<EMAIL_ADDRESS>'param_1': 1}
[cached since 264.8s ago] {'email_1'<EMAIL_ADDRESS>'param_1': 1}
2024-05-17 19:53:15,125 INFO sqlalchemy.engine.Engine ROLLBACK
ROLLBACK
[17/May/2024:19:53:15 +0000] "GET /manifest.json HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4.1 Safari/605.1.15"
2024-05-17 19:53:15,127 INFO sqlalchemy.engine.Engine ROLLBACK
ROLLBACK
[17/May/2024:19:53:15 +0000] "GET /static/js/main.764bef9b.js HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4.1 Safari/605.1.15"

Hello!
Have you kubectl exec into the access pod to run the database migrations and initial user/group import?
flask db upgrade
flask init <YOUR_OKTA_USER_EMAIL>

Did you configure OIDC or Cloudflare Access authentication for your deployment?
If you'd like to chat with us in more real-time join our Discord server at https://discord.gg/access-enjoyers

Thanks! That helped. I was able to figure it out.

Awesome!


Update novnc_generate.go

to use newer version of novnc
for examlpe to use quality param of novnc to set image quality

hm master is on v1.2. but how can i pass the quality param to novnc?

Thanks!
Note that I'll need to get around to updating the password mechanism so connections without a password still work correctly (and so it doesn't go into the browser history).

but how can i pass the quality param to novnc?

It would need to be added to the main page.

sadly im not a go engineer🤦🏼♂

with quality but then it fails

That's a separate option, and by default, it's only controllable via the noVNC UI. I'd need to rework the way parameters are handled to be able to have this specified on the command line. This is planned for a future version.


Switch SurfaceNamer to an abstract class

I don't think a general surface namer should be a concrete class since surface naming itself is language dependent.
One of the benefits of making SurfaceNamer abstract is that we can get rid of the unimplemented methods such as:
  public String getTestPackageName() {
    return getNotImplementedString("SurfaceNamer.getTestPackageName");
  }

@garrettjonesgoogle @pongad @michaelbausor  thoughts?

I made it concrete to make development of a new language incremental - someone isn't forced by the compiler to provide everything at the first go.

One of the drawbacks of current surface namer is that every method goes to the top SurfaceNamer class even the method is only used by one language.  Now the class has over 1000 lines which makes it unmanageable. When anyone develops a new language, it would be hard for him to discover which method has already been implement and which has not.

But if you have an abstract class and you add a method, then you are forced to either 1) implement it in all currently supported languages, or 2) give a default implementation, which is the status quo.

I am thinking about making the SurfaceNamer only contain the common methods which are used by all languages (which should reduce the number of methods in SurfaceNamer). And allow the LanguageSurfaceNamer add the extra methods on demand.

But that defeats the ability to pass SurfaceNamer object around to language-agnostic transformers. Even if you confined ${language}SurfaceNamer usage to the ${language}GapicSurfaceTransformer classes, that would make it more difficult to pull code out of those transformer classes later to share among multiple transformers (Luke is doing this for Php & Python).

How about this:
SurfaceNamer: A concrete class contains common methods by default. It may also contain some methods that are not used by all languages to make things easier for shared transformers. (e.g.  Luke's work for Php & Python)
@{language}SurfaceNamer A subclass of SurfaceNamer with extra lanaguge-dependent methods
In this case:
For the language-agnostic transformers or any transformer that is used by multiple languages, we can just pass SurfaceNamer.
So the difference between this approach with the current approach is: Currently we put all methods into SurfaceNamer by default. My approach is that the SurfaceNamer class will only contain the common methods by default, and we can add methods to SurfaceNamer on demand (e.g. Luke can move some methods to SurfaceNamer to make things easier for Php & Python even though they are not used by all languages)

How many methods actually fall under the case of only being used in a language-specific transformer (and aren't slated to move to a language-agnostic one)?

I had this same problem a while back. I agree the class is too large. On the other hand, it's not so clear what constitutes "common methods" and "language-specific methods". We are working in 7 languages, many methods are needed in maybe 4 of them.

Yes, it is hard to tell which methods are "language-specific" but we seem all agree that the class is too large. I can take a deeper look at this and hopefully put up a PR for review so we can evaluate this thing better.

Would the decorator pattern help?
For example, say the PhpGapicSurfaceTransformer needs to pass an ApiMethodSurfaceNamer interface to the ApiMethodTransformer. It would wrap the PhpSurfaceNamer in a PhpApiMethodSurfaceNamer using new PhpApiMethodSurfaceNamer(context.getNamer()).
So each context that uses the SurfaceNamer gets its own interface and language-specific or context-specific (e.g. DynamicLangApiMethodSurfaceNamer) implementations. The SurfaceNamer is converted to an interface, and each language-specific one is changed to implement the interface.
Given the sheer number of contexts a SurfaceNamer is expected in and that they don't expect the same interface, we should reify that in the code that these different contexts expect different interfaces by literally using different interfaces.

There are a couple issues that have prevented me from going that route. If I understand your proposal correctly:

The interface of SurfaceNamer now needs to be repeated by L languages x T transformer types; if L = 7 and T ~ 10, that means 70 times.
There would now be potentially T times as many surface namer classes

While it can be challenging to find functionality in a large file, it is even harder to find it across T times as many files.


[Mouse Jump] - reduce winforms dependency, new thumbnail size settings, add shortcut keys - Ready For Review

Summary of the Pull Request
Makes a few improvements to Mouse Jump:

#25482
#25484
#24564
#25069

There's a summary below for each issue, and more details are available on each issue page...
1 - #25482 - reduce WinForms dependency
Added more Win32 API calls to remove the need for using the following built-in WinForms classes. This will make it easier to transition to a new presentation framework (WPF / WinUI3) at a later date if desired

System.Windows.Forms.Cursor
System.Windows.Forms.Screen
System.Windows.Forms.SystemInformation

This is the first 6 commits in this PR, down to (and including) d0489ae
2 - #25484 - improve popup responsiveness
If the form takes longer than 250ms to initialise it displays the preview with black rectangles and now renders screens incrementally one at a time to make it more responsive. (Behavior in 0.69.1 is to show the black rectangles but only refresh the thumbnail image once all remaining screenshots have been taken, so still feels a bit sluggish compared to this incremental approach)
https://user-images.githubusercontent.com/1193763/231855884-76146971-56e7-48ba-a915-21c2e1b58a18.mp4
3 - #24564 - customizable preview size
Added a Mouse Utils setting to specify the size of the preview image - default value is 1600 x 1200.

4 - #25069 - shortcuts for screen navigation
When the preview screen is visible the following keys will now move the cursor to the center of the appropriate screen.

Key
Action

Key 1-9  NumPad 1-9
Move to center of numbered screen

"P"
Move to center of primary screen  (not sure if this needs to be localizable?)

Left Arrow
Move to center of previous screen (wraps around screens 1..N)

Right Arrow
Move to center of next screen (wraps around screens 1..N)

Home
Move to center of first screen

End
Move to center of last screen

Screen numbers and sequence order for first / last / previous / next are per Display Settings
Future work:

Handle more than 9 screens?
When the preview image is visible, if a designated key is held down (e.g. ctrl), overlay screen numbers on the individual miniature screenshot images to help identify them (similar to the "Identify" button on the Display Settings dialog, but show the numbers on the preview image rather than as overlays on the actual screens themselves.

PR Checklist

[X] Closes:

#25482
#25484
#24564
#25069

[X] Communication: I've discussed this with @crutkas already. If work hasn't been agreed, this work might be rejected
[X] Tests: Added/updated and all pass
[X] Localization: All end user facing strings can be localized

"Thumbnail Size" settings strings all localised

[X] Dev docs: Added/updated

no changes

[X] New binaries: Added on the required places

no changes

[X] Documentation updated: If checked, please file a pull request on our docs repo and link it here: #xxx

no changes

Detailed Description of the Pull Request / Additional comments

Validation Steps Performed

[X] Automated tests passing locally
[X] Minimal actions workflow (spelling check) passing for PR
[X] Full actions workflow (msbuild) passing for PR
[X] Manual regression-testing scenarios

[X] Happy path - clicking the thumbnail image works and cursor moves to the correct location
[X] Works on multiple monitors with different dpi scaling settings (e.g. 100% vs 150%)

https://github.com/microsoft/PowerToys/pull/23566#issuecomment-1411869418
https://github.com/microsoft/PowerToys/pull/23566#issuecomment-1412834413

[X] Handling negative coordinates on non-primary monitors if higher or "lefter" than primary monitor

https://github.com/microsoft/PowerToys/pull/23566#issuecomment-1404931694

[X] Mouse crosshair moves when Mouse Jump moves the cursor (mouse clicks and keyboard shortcuts)

#24523
#24527

@jaimecbernardo @htcfreek @crutkas - just a courtesy ping to let you know this PR is ready for review (assuming the build works!)

@niels9001
For me the content dialogue feels a bit odd here. Any ideas how we can get this into the settings action content?

The change suggested by @htcfreek can be part of another PR as well.

Fab, thanks.
I'll raise some issues for the "future work" suggestions once v70 has been released.


Publish to Maven Central

Hi,
is this project still active ?
Are you planning to publish your project to Maven central ?

Hi @eolivelli, I'm not actively developing this project. I believe it should be on Maven central already (please also see README.md for what to add to pom.xml). Let me know if it doesn't work and I'll take a look, for now I'll go ahead and close this issue.

@eolivelli, did you add the dependency as described in README.md? It is listed as:
<dependency>
    <groupId>net.smacke</groupId>
    <artifactId>jaydio</artifactId>
    <version>0.1</version>
</dependency>

As far as I know, adding this dependency to your pom.xml should be all you need to get the dependency from Maven central -- it works for me. Where specifically are you having trouble?

Sorry
The artifact is on Maven Central
https://mvnrepository.com/artifact/net.smacke/jaydio/0.1
Yesterday I was looking for the wrong groupId
Thank you for checking again.
You library will be useful in my project (https://github/diennea/herddb) in order to leverage O_DIRECT with JDK8.
Now with JDK10+ O_DIRECT is natively available in the JDK10 and it is working very well.


Customizable rows and resizing of Kino.Input.textarea

Current behavior
Fixed height and disabled resizing. Generated html code:
<textarea
  data-element="input"
  class="input h-[200px] resize-none tiny-scrollbar"
  name="value"
  phx-debounce="300"
  phx-blur="blur"
  phx-target="8"
  spellcheck="false"></textarea>

Expected behavior
Customizable rows and resizing.
# rows defaults to 5, resizable defaults to true
Kino.Input.textarea("Input", rows: 5, resizable: true)

<textarea
  data-element="input"
  class="input tiny-scrollbar"
  rows="5"
  name="value"
  phx-debounce="300"
  phx-blur="blur"
  phx-target="8"
  spellcheck="false"></textarea>

I'd like to do it if possible.

@jonatanklosko, what do you think? I would also make it resizable by default, so we don't need an option, any reason not to?

Yeah, I think it's fine to just make it always resizable and set a reasonable min-height. Configurable rows sounds good to!

If always resizable, configurable rows maybe not need?

Your call. If you simply want to make it resizable, a PR that makes it so and adds a min-height would be very welcome! :heart:

Just resizable sounds good to me, we can always add rows configuration later when there is a clear need for it :)


[stdlib] Unchecked subscript on UnsafeBufferPointer

Add a use an unchecked subscript on UnsafeBufferPointer, which skips
debugPrecondition checks (in case we're not inlined) as well as a
force-unwrap check.

@swift-ci please benchmark

@swift-ci please test source compatibility

@swift-ci please test

Build comment file:
Performance: -O

TEST
OLD
NEW
DELTA
RATIO

Regression

EqualStringSubstring
10
11
+10.0%
0.91x

Improvement

ObjectiveCBridgeStringHash
69
41
-40.6%
1.68x

ObjectiveCBridgeStringCStringUsingEncoding
564
437
-22.5%
1.29x

ObjectiveCBridgeStringGetASCIIContents
295
238
-19.3%
1.24x

CharIteration_korean_unicodeScalars
3409
2984
-12.5%
1.14x

ObjectiveCBridgeStringCompare2
763
679
-11.0%
1.12x

ObjectiveCBridgeStringCompare
809
722
-10.8%
1.12x

ObjectiveCBridgeStringIsEqual
159
144
-9.4%
1.10x

ObjectiveCBridgeStringRangeOfString
773
705
-8.8%
1.10x

StringEqualPointerComparison
589
538
-8.7%
1.09x

CharIteration_chinese_unicodeScalars
2599
2385
-8.2%
1.09x (?)

NormalizedIterator_ascii
176
164
-6.8%
1.07x

Performance: -Osize

TEST
OLD
NEW
DELTA
RATIO

Regression

NopDeinit
40207
55250
+37.4%
0.73x

CharIteration_ascii_unicodeScalars
2275
2453
+7.8%
0.93x

Improvement

ObjectiveCBridgeStringHash
69
41
-40.6%
1.68x

ObjectiveCBridgeStringCStringUsingEncoding
549
439
-20.0%
1.25x

ObjectiveCBridgeStringGetASCIIContents
293
238
-18.8%
1.23x

IterateData
1406
1218
-13.4%
1.15x

ObjectiveCBridgeStringIsEqual
160
141
-11.9%
1.13x

ObjectiveCBridgeStringCompare
801
713
-11.0%
1.12x

ObjectiveCBridgeStringCompare2
766
683
-10.8%
1.12x

ObjectiveCBridgeStringRangeOfString
786
707
-10.1%
1.11x

StringEqualPointerComparison
564
512
-9.2%
1.10x

StringComparison_nonBMPSlowestPrenormal
1341
1245
-7.2%
1.08x

NormalizedIterator_ascii
176
164
-6.8%
1.07x

Performance: -Onone

TEST
OLD
NEW
DELTA
RATIO

Improvement

ObjectiveCBridgeStringHash
69
43
-37.7%
1.60x

Histogram
5656
4482
-20.8%
1.26x

ObjectiveCBridgeStringCStringUsingEncoding
552
446
-19.2%
1.24x

ObjectiveCBridgeStringGetASCIIContents
296
244
-17.6%
1.21x

ObjectiveCBridgeStringCompare2
771
680
-11.8%
1.13x

ObjectiveCBridgeStringCompare
810
716
-11.6%
1.13x

ObjectiveCBridgeStringIsEqual
162
144
-11.1%
1.12x

ObjectiveCBridgeStringRangeOfString
774
705
-8.9%
1.10x

StrComplexWalk
7895
7272
-7.9%
1.09x

Code size: -swiftlibs

TEST
OLD
NEW
DELTA
RATIO

Improvement

libswiftSwiftPrivate.dylib
45056
40960
-9.1%
1.10x

How to read the data
The tables contain differences in performance which are larger than 8% and
differences in code size which are larger than 1%.
If you see any unexpected regressions, you should consider fixing the
regressions before you merge the PR.
Noise: Sometimes the performance results (not code size!) contain false
alarms. Unexpected regressions which are marked with '(?)' are probably noise.
If you see regressions which you cannot explain you can try to run the
benchmarks again. If regressions still show up, please consult with the
performance team (@eeckstein).

Hardware Overview
  Model Name: Mac Pro
  Model Identifier: MacPro6,1
  Processor Name: 8-Core Intel Xeon E5
  Processor Speed: 3 GHz
  Number of Processors: 1
  Total Number of Cores: 8
  L2 Cache (per Core): 256 KB
  L3 Cache: 25 MB
  Memory: 64 GB

--------------

@swift-ci please smoke test and merge

@swift-ci please smoke test


Fix/Mitigate Waiting Times

In addition to the possibility pseudo-asynchronicity (see below), go through a systematically find the spots where the client sometimes has to wait for a perceivable amount of time and either fix it or mitigate it using status messages. List of known pain points:

[x] When layout is running for original build
[x] When layout is running for parameter update
[ ] When highlighting larger sets
[ ] Loading various selection tables on slower connection

I would like to run the layout algorithm pseudo-asynchronously using something like this. This will hopefully prevent the page from becoming "unresponsive" for the most part.

I will continue to try to make performance tweaks and make it clear to the user what is happening, but I am fairly content with the UX in #15 .


Support interrupt signals during compilation & execution

No test? 😆 Just kidding! Awesome! Thanks @dime10 !

Yeah it would be nice but I'm not sure how, open to suggestions 😅


cvtres.exe tool isn't documented

This tool is what the linker uses to convert .res files into .obj files, but the cvtres tool itself isn't documented.  It should probably be added to this list of additional MSVC build tools.

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

ID: 380e8af0-aa0f-d882-d764-ddc02991d537
Version Independent ID: ac27a8d9-280d-89b6-ed33-8c8fbb80c146
Content: Additional MSVC Build Tools
Content Source: docs/build/reference/c-cpp-build-tools.md
Product: visual-cpp
Technology: cpp-tools
GitHub Login: @corob-msft
Microsoft Alias: corob

@LegalizeAdulthood
Thanks for taking the time to make this proposal. As far as I can tell, cvtres.exe has been undocumented all the way back to VC 2.0 (currently the oldest doc set I have access to). That's because ever since then, you don't need to invoke it yourself. The linker is smart enough to do it on your behalf, with all the right options set, if you include a .res file in your list of files to be linked. Basically, it's just a helper for the linker now. As long as the linker can find cvtres.exe, it just works. And that should never be a problem, since it's installed automatically with every version of the toolset.
I can see a purist's argument for including it in the documentation, but it's mentioned where you might need to know about it. I think that's good enough.


Add support for multi-part operations for AES-XTS

Currently libzpc supports AES-XTS only in single part operation mode.
Extend the API to allow:

Get the IV from the context after an encrypt/decrypt operation has been performed.
Set the IV (instead of the tweak) into a context to be able to continue an operation.

Unfortunately, the function to set the tweak is called zpc_aes_xts_set_iv. It in fact does set the tweak and not the IV as its name applies. Internally the initial IV is calculated from the tweak. So we need another function to set the IV (and not the tweak).....

To be a bit more specific:
libzpc DOES support multi part AES-XTS operations as long as the same context is used for all parts.
However, if one can't retain the context in-between the parts, then one cannot initialize a new context with a given (intermediate) IV.


Mock check_hostname everywhere

Fix for #151.

Coverage decreased (-0.3%) to 98.415% when pulling e60ef76094228bee73d6c437e8c08d8d665f174f on fix/issue-151 into a109d333ab3f9b130efc60f2f5a84c560c98437e on master.


docs: add documentation for backward compatibilities

Description
Few variables and methods don't have the mention for backward compatibility only. Also two changes of sprout has not clearly identified in the temporary list in SPRIG_TO_SPROUT_CHANGES_NOTES.md file.
Changes

Add documentation line on backward functions
Add changes on the SPRIG_TO_SPROUT_CHANGES_NOTES.md file

Fixes #39 #40
Checklist

[x] I have read the CONTRIBUTING.md document.
[x] My code follows the code style of this project.
[x] I have added tests to cover my changes.
[x] All new and existing tests passed.
[x] I have updated the documentation accordingly.
[x] This change requires a change to the documentation on the website.

Additional Information
The file SPRIG_TO_SPROUT_CHANGES_NOTES.md will be moved in the future on the documentation site

Having looked at the PR: what is the recommended function for the FuncMap that does not rely on global state and still contains most (all?) of the sprig functions? Sorry if this appears stupid- I have honestly lost track.

Currently no "proper" exist, and this is discussed before implementation in the RFC: Loader and others RFCs as well.
I want to not rush the v1.0 and create a solid foundation with the feedback of everyone 💜

I‘m still confused, as to which functions are currently integrated in which funcmap. Is it correct to assume that- for time being- funcmaps contain all functions, including sprig legacy ones?


Boris energy conservation

I found a strange issue while playing with the Fermi acceleration demo. In case 2, there is a highly fluctuating magnetic field at the center, and the only non-zero electric field locates on the right. However, even at places with zero electric field, I can see a jump in the total kinetic energy while tracing with the Boris method. Why?

The reason might be that saving every hundreds of step would skip the interaction point of particles with the electric field.


Icon request: SAPO

URL for the brand / site / app
https://www.sapo.pt
Logo resources for the icon
https://sobre.sapo.pt/marca
Proof of the Aegis-compatible 2FA

Anything else?
No response
Confirmation

[X] I have read and followed the issue guidelines & issue form.

Here you go!
https://github.com/aegis-icons/aegis-icons/blob/master/icons/1_Primary/SAPO.svg

:question: How to add icon(s) to Aegis?
:star: Support this project by giving a star! Just adding like to this comment is also appreciated.


v4.0.2: chore(project): update dependencies

What does this PR do?
Updates all the project dependencies to their latest versions.
How should it be tested manually?
yarn test
# or
npm test

Pull Request Test Coverage Report for Build 60

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 57:
0.0%

Covered Lines:
52

Relevant Lines:
52

💛  - Coveralls


Style Color of entire view

Am I just overlooking how you change the color of the entire dialog.  If I want a Red Edit Dialog, how do you configure that.  I see a style for setTitle, but not the entire dialog.

You can try:
let appearance = SCLAlertView.SCLAppearance(contentViewColor: .red)

Thanks.. sorry .. forgot to + this.


[1.33.2] Collapse + button in Trace detail page not working

Using the data in tracegen, when clicking the + button at the left of  service natoque, the service does not expand.
Before clicking +:

After clicking +:

tracegen doesn't return the same data twice. to look into this, we'd need the data that you are seeing. you can grab it via http://your_host:9411/api/v1/trace/trace-id

When I click expand all, it expands as expected.

trace.txt

The +/- buttons haven't worked for some time now. Maybe the best way to find the problem is to do a git bisect? We'd need to go 6 months back in time, I guess.

fyi on this and other ui issues, I'd suggest holding off until zipkin-web is javascript only. There's a number of small issues, but sands are shifting. Once the big refactor is over, things will be easier. https://github.com/openzipkin/zipkin/pull/1004


data gatherer algorithm implementation

Translate data-gathering algorithm from ruby to golang

Generate Job Specs and Links based on providers
Ensure consumer jobs can see provided links information
Able to render bpm files, with correct referenced parameters
which return desired values
Parse the bpm rendered file into the appropiate bpm struct
Generate final manifest in JSON format
Add test cases that cover mainly the struct under the job.
properties.bosh_containerization:

consumers
instances
providers
instances.BPM
links

Add sample *.MF files
Define helper functions that are require for:

convert map[interface{}]interface{} to map[string]interface{}
lookup releases on manifest
generated nested structs based on strings like foo.bar

Ensure shared bpm instance is stored as top level property.

Current PR fails due to ruby missing on the cfcontainerization/go-tools. I just open a PR on the ci repo https://github.com/cloudfoundry-incubator/cf-operator-ci/pull/18 for it.


attempt to call field 'nDimension' (a nil value)

This happens to me when at
https://github.com/twitter/torch-autograd/blob/master/src/model/RecurrentLSTMNetwork.lua#L25
when I run
model = require 'autograd.model'
lstm, params = model.RecurrentLSTMNetwork({                                                                                inputFeatures = 10,                                                                                hiddenFeatures =10,                                                                                outputType = 'all',                                                                                })
lstm(params[1], torch.rand(2, 10), {})

Please let me know if this is the right place to post noob issues like these.
PS: I just updated Torch and Torch Autograd today.

Works after I require 'autograd'.


Access to GitLab CI variables in build-time container

Suppose we've got variables defined at build stage in .gitlab-ci,yml:
stage: build
...
script:
...
  - werf build-and-publish ...
...
variables:
  TEST=test

Is there any way to access them in build-time image i.e. be able to do something like that in werf.yaml?
...
shell:
...
  beforeInstall:
    - export TEST=${TEST}
...

These variables may contain sensitive information which is required at build-time (e.g. to hardcode credentials in js apps) and we can't see any documented way to pass them.

https://werf.io/documentation/configuration/introduction.html#sprig-functions


[Silicon Labs] Add Thunderboard Wear as a target board

Added Thunderboard Wear (based on EFM32GG) as a target for DAPLink.

@mbed-bot: TEST

Looks like something went wrong during CI testing... 'No test results found'?

Hi @stevew817, yeah this is a test issue that needs to be fixed on my end.

Hi @stevew817, this issue has been resolved.  Please rebase to master and I'll re-run testing

@c1728p9 If you would be so kind to take care of the rebase, that'd be great.

I moved this to #123 and rebased it.  I also added the hooks for testing.


IE11 no longer supported in create-react-app 4.0.1

Describe the bug
The instructions for providing support for IE9, 10 and 11 to provide an app that can run in Internet Explorer when using react-scripts 4.0.1 and react-app-polyfill 2.0.0 no longer work.
Did you try recovering your dependencies?

Yes.
npm --version

6.14.9

Which terms did you search for in User Guide?

Internet Explorer
Browser Support
polyfill
Environment

Environment Info:
current version of create-react-app: 4.0.1
running from C:\Users\Shiraz.Esat\AppData\Roaming\npm-cache_npx\21296\node_modules\create-react-app
System:
OS: Windows 10 10.0.18362
CPU: (12) x64 Intel(R) Core(TM) i7-9850H CPU @ 2.60GHz
Binaries:
Node: 12.13.1 - C:\Program Files\nodejs\node.EXE
Yarn: Not Found
npm: 6.14.9 - C:\Program Files\nodejs\npm.CMD
Browsers:
Chrome: 86.0.4240.183
Edge: Spartan (44.18362.449.0)
Internet Explorer: 11.0.18362.1
npmPackages:
react: ^17.0.1 => 17.0.1
react-dom: ^17.0.1 => 17.0.1
react-scripts: 4.0.1 => 4.0.1
npmGlobalPackages:
create-react-app: Not Found

Steps to reproduce

(Write your steps here:)

Use instructions from https://create-react-app.dev/docs/getting-started
Use npm list -g -depth 0 to confirm that a global version of create-react-app doesn't already exist
Use npx create-react-app my-app to create a new app
cd my-app
npm start - confirm app starts, and is accessible in Chrome and IE11. Basic app so this all works.
Ctrl+C, to terminate above running app
Follow instructions on https://create-react-app.dev/docs/supported-browsers-features to provide IE polyfills
Extend browserlist in package.json to provide IE11 support (see sample further down)
Delete node_modules/.cache to avoid possible babel-loader issue
Follow instructions here to provide IE polyfills: https://github.com/facebook/create-react-app/blob/master/packages/react-app-polyfill/README.md
npm install react-app-polyfill
Update the src/index.js created earlier to have these as the first lines:

import 'react-app-polyfill/ie11';
import 'react-app-polyfill/stable';

npm start - to run app now that polyfill has been provided
App works fine in Chrome, but now IE11 shows a blank screen. The console log will have the following error:

Objects are not valid as a React child (found: object with keys {$$typeof, type, key, ref, props, _owner, _store}). If you meant to render a collection of children, use an array instead.

Commenting out the polyfill lines in step 12 will cause the App to show OK in IE again, but a complex project that requires polyfills won't be able to get past the error shown in step 14

key sections of package.json
...
  "dependencies": {
    "@testing-library/jest-dom": "^5.11.6",
    "@testing-library/react": "^11.2.2",
    "@testing-library/user-event": "^12.6.0",
    "react": "^17.0.1",
    "react-app-polyfill": "^2.0.0",
    "react-dom": "^17.0.1",
    "react-scripts": "4.0.1",
    "web-vitals": "^0.2.4"
  },
...
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not ie < 9",
      "not op_mini all",
      "firefox esr",
      "unreleased versions"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version",
      "ie 11"
    ]
  },

Expected behavior

IE9, 10, and 11 support existed in react-scripts 3.x
They should continue to work in 4.x
Actual behavior

Adapted index.js as suggested in documentation:

App in IE11:

Reproducible demo

I created a sample project that reproduces the issue in #10258
I created this Bug Report in favour of the other because this is more serious than my original use-case
The issue can also be reproduced by following documentation for providing IE11 support, as I've tried to describe in Steps to Reproduce.

Same issue as #9906
IE9 and IE10 were also supported in v3

@msbarry is an absolute genius
After following his advice in https://github.com/facebook/create-react-app/issues/9906#issuecomment-719488780
I have the following in src/index.js:
/** @jsxRuntime classic */
import "react-app-polyfill/ie9";
import "react-app-polyfill/stable";

import React from "react";
import ReactDOM from "react-dom";
import "./index.css";
import App from "./App";
import * as serviceWorker from "./serviceWorker";

Note that when our app was updated to v4, we used npx react-codemod update-react-imports (as described here: https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html#removing-unused-react-imports) to remove all React imports, but we need it here in this one case.

Workaround in #9906 fixes this issue. "Proper" fix would probably be an update to the documentation and to the update react-import code mod.


React on Rails and async loading of application.js

Hi guys,
i'm wondering if there is any possibility to use react on rails with async loading like:
<%= javascript_include_tag 'application', async: Rails.env.production? %>

In this case, the componentDidMount does not get fired. The issue is well known, described and fixed here: https://github.com/reactjs/react-rails/issues/218
What i'm searching for is a hook, like ReactRailsUJS.mountComponents(). Right now i'm trying to write something like mountComponents() but i did not have success until now. That's why i'm wondering if i'm missing something?
Thanks a lot in advance.

http://parley.rubyrogues.com/t/should-rails-apps-use-defer-when-loading-application-js/3395 (might require membership). Copied here in Evernote.
https://github.com/shakacode/react-webpack-rails-tutorial/pull/234
https://github.com/shakacode/react_on_rails/issues/206

@SqueezedLight Any research you can do this topic would be greatly appreciated!
I think this already does what you need:
https://github.com/shakacode/react_on_rails/blob/master/node_package%2Fsrc%2FclientStartup.js#L93
function reactOnRailsPageLoaded() {
  debugTurbolinks('reactOnRailsPageLoaded');

  forEachStore(initializeStore);
  forEachComponent(render);
}

We simply need to export the function and expose it here in the main ReactOnRails js class.
https://github.com/shakacode/react_on_rails/blob/master/node_package%2Fsrc%2FReactOnRails.js#L59
Can you try that out and send a PR including:

Docs
Tests: put this into spec/dummy app to demonstrate this.

Thanks!

@justin808 Thanks, i didn't see that in the first place. I'm on it...

@SqueezedLight Any update? Should we leave this issue open?

@justin808 Sorry, i had to manage some really stressful days...
Yes, there is some progress: Exposing reactOnRailsPageLoaded() to ReactOnRails worked like a charm. But i'm using turbolinks 5.0 and i'm calling some code within document.addEventListener("turbolinks:load", function() {}); This peace of code stopped working, because it seems turbolinks does not fire  turbolinks:load  on initial page load with async script loading. One solution is to use defer instead of async. More information can be found on the issue i opened about this topic: https://github.com/turbolinks/turbolinks/issues/28
So i managed to get everything working with async script loading. I hope i can make the PR on the weekend.

Merged with version 6.0.0-rc.1

If I want to load the js async, do I just add
<%= javascript_include_tag 'application', async: true %>
?
Or is there more settings I need to configure?

@xiaopow I don't know off the top of my head. Please research this and report back to us, and that will help the community.

@xiaopow, @nateberkopec has some done some amazing research into this area. Nate, can you give us a few links to your materials?

I ran into the same problem, where my javascript wasn't executed reliably when loading my generated application.js asynchronously via javascript_pack_tag "application", async: true.
A quick workaround was this snippet:
if (typeof document !== "undefined") {
  if (document.readyState !== "loading") {
    ReactOnRails.reactOnRailsPageLoaded();
  } else {
    document.addEventListener("DOMContentLoaded", () =>
      ReactOnRails.reactOnRailsPageLoaded(),
    );
  }
}

Maybe someone knows a better way, or did I miss something from the docs? Nowadays it should be the preferred way to load the JS async (especially when prerendering components).

Is there an official way of doing this in React on Rails now, instead of the solution @dpuscher mentioned above?

@julianguyen I'm sure this is somewhere in the docs.
Here's an example:
https://github.com/shakacode/react_on_rails/blob/master/spec/dummy/app/views/layouts/application.html.erb#L17
you need to use defer:
  <!--  NOTE: Must use defer and not async to keep async scripts loading in correct order  -->
  <%= javascript_pack_tag('vendor-bundle', 'data-turbolinks-track': true, defer: true) %>
  <%= javascript_pack_tag('app-bundle', 'data-turbolinks-track': true, defer: true) %>

@justin808 Why does 'data-turbolinks-track': true need to be set with defer?

@julianguyen If you don't use turbolinks, you get problems. #1150

@julianguyen if you are not using turbolinks, remove that part.


When I click one time A or D it will stick to that side and glitch

When I move in Fortnite and click for example A it will stick to that side for like 2 seconds. How do I fix it?

I've been having the same problem, it's like my keyboard has a mind of its own sometimes
pls help

Same with me


to use back camera and front camera switch functionality using Agora RTC SDK ng

hey, I want to implement switching camera functionality for live streaming in my project. as of now, the front camera is used as the default camera. but in the case of the mobile browser, I want to utilize the change camera functionality so the user can change the camera accordingly.
please provide me with some solution for this

This function has been scheduled at 4.19.0 and will be published soon.
At that version you can pass facingMode into setDevice method


openid: lack of Sign In of openid

should we put
AuthenticationManager.SignIn(claimsIdentity);
inside public RedirectResult LogonCallback() method

Can you explain the issue with a little more details, I am not as familiar with this module.
/cc @ThaerAlAjlouni

after successful  challenge , we should sign in on the opened level.
also we may consider assign something to user, like:
HttpContext.User = new DemoPrincipal	(AuthenticationManager.AuthenticationResponseGrant.Principal);

@infofromca What is the use case that needs such a call? I mean why do you see this needed?

from logon (get)  =>challenge =>LogonCallback, I can not see the SignIn code, which I guess is related to this issue
https://github.com/OrchardCMS/Orchard/issues/7529
if the nticationManager.SignIn(claimsIdentity) is not suitable, then I think we should use something like:
_authenticationService.SignIn(user, rememberMe);

But the user will be signed in, even if the function is not called. And a cookie will be set, and the logged in user info can be read by accessing the WorkContext.CurrentUser property or the _httpContextAccessor.Current().GetOwinContext().Authentication.User property.
So why do you see that calling the  authenticationManager.SignIn is necessary?


Alt+Shift+q on last pane freezes the terminal

First of all, this is my fav tmux plugin so far. Thanks for making this. :heart:
Pressing Alt+Shift+q freezes the last tmux pane for me, I have to close the terminal completely as It refuses to listen to keyboard. It works fine if there is more than one pane open.
Info
OS: Manjaro Linux x86_64
Kernel: 5.6.10-3-MANJARO
Shell: zsh 5.8
Terminal: Konsole
Tmux: 3.1

First of all, this is my fav tmux plugin so far. Thanks for making this.

Thanks a lot! I'm glad you find it useful!  :blush:

Pressing Alt+Shift+q freezes the last tmux pane for me, I have to close the terminal completely
as It refuses to listen to keyboard. It works fine if there is more than one pane open.

Thanks for the report!
Unfortunately, I can't reproduce this on my end... With the newest tmux I have installed atm (v3.0a), pressing Alt+Shift+q on a tmux pane works. This includes when I press this keybinding on the last tmux pane in a window (workspace), and when I press it on the last pane in a session. I tried it with Alacritty, Gnome-terminal, and Konsole; and I tried running it with Zsh instead of Fish.
As an experiment, to see whether this is a bug in tmux or tilish, could you try reproducing it with the default tmux keybinding for closing a pane (C-b x y, i.e. Ctrl+b x y)? Could you also try invoking the underlying command directly (C-b :kill-pane) and see what happens? If the bug is reproduced under those circumstances, it's probably a bug in tmux itself.

Thanks for the quick reply.

As an experiment, to see whether this is a bug in tmux or tilish, could you try reproducing it with the default tmux keybinding for closing a pane (C-b x y, i.e. Ctrl+b x y)? Could you also try invoking the underlying command directly (C-b :kill-pane) and see what happens? If the bug is reproduced under those circumstances, it's probably a bug in tmux itself.

I tried as you suggested but all these methods worked for me and closes the last open pane. But still having issue with Alt+Shift+q shortcut.

Okay, thanks for testing! I still think the freezing itself is due to a tmux bug, but as long as the kill-pane command works as expected, we can at least work around it in tilish :).
In the last version of the code (one week old), the relevant code is on lines 200-203, since you're definitely not on a legacy version of tmux. This code is quite simple:
tmux $bind "${mod}Q" \
	kill-pane \\\;\
	select-layout \\\;\
	select-layout -E

I suspect what's happening is that kill-pane works fine, but that your tmux version hangs when it subsequently tries to run select-layout commands (which changes the sizes and locations of panes) with no panes open. While on earlier tmux versions, tmux probably just quits after kill-pane.
If this hypothesis is correct, a workaround would be to explicitly check the number of panes in a workspace, and only run the extra select-layout commands if there is more than one pane in a workspace when we run kill-pane. I have now pushed an update implementing this change.
Could you please update tilish and test if this workaround resolves the bug?

Yeah, I would be my pleasure to test the fix.

Awesome! Thanks again for reporting and testing :)


Removing inert code: LogFile::do_filesystem_checks()

This code has been disabled since
65477944 - Leif Hedstrom        2015-03-21
Now I kill it with fire.
I think it has been replaced with LogFile::check_fd().

[approve ci]

"Inert"

[approve ci autest]

Yeh, this looks like dead code to me too. But please set Labels, assigned, Milestones etc. before merging.


deps: Run yarn upgrade.

With a more specific upgrade pulled out into a commit just before, since we have a specific intention there.

I kicked the tires on iOS and Android, and didn't notice anything off.

Rebased past #5230, the RN v0.65 upgrade.

Don't forget GitHub's handy "rich diff" feature when viewing yarn.lock changes:

Thanks! Looks good; merging.


Training on simulation and testing on real-world benchmark

Thank you for sharing your interesting work. Have you perhaps tried training your model on GTA data set and testing on real-world images? It would be interesting to see how model trained on synthetic data responds to real-world data.

Thanks for your interest in our work!
We focus more on combining quasi-dense similarity learning and 3D instance dynamics, to track moving objects in a 3D world. But, we also notice the potential of using our GTA dataset as a data source to transfer the ability on real-world data. It's a great topic to discuss with others if anyone happens to have some experiments about it.


Allow ELEN < max(XLEN, FLEN).

The spec says:

Platform profiles may set further constraints on these parameters, for example, requiring that ELEN ≥ max(XLEN,FLEN),

but then below,

In the base vector extension, only SEW up to max(XLEN,FLEN) are required to be supported.

Since ELEN >= SEW, this seems to mandate that ELEN >= max(XLEN,FLEN).
This PR relaxes this requirement while clarifying the (previously implicit) constraint that SEW must be a power of two between 8 and ELEN (inclusive). This closes #404.

It might also be worth stating explicitly in Section 2 that ELEN >= 8. This is currently only implied by common sense (avoiding a "trivial" V-extension ;)

The "base vector extension" is meant to be the set corresponding to the single letter "V", which will be used by app processor strings.  This will have the constraint ELEN>=max(XLEN,FLEN).
This is explained in commentary in introduction, but should probably be moved into normative text, once there's agreement on V's contents.

Agreed: the relevant comment in Section 2 should be made normative, in which case the "contradictory" normative text in 3.3.1 becomes superfluous.
I would also like to see the term "base vector extension" clarified.
Either of these should resolved in a separate PR; I'm closing this one.


pipenv: Pipfile.lock file shows different version than whats installed

I have django installed using pipenv install django
I check the version of Django installed using
python -m django --version
3.0.3

So its 3.0.3
I have done pipenv lock later sometime after installing few more packages
I check the Pipfile.lock to see what django version it locks to 3.0.6
{
    "_meta": {
        "hash": {
            "sha256": "1c89f4b79e61ac01a5f1b50db6b6b0b4ba34199a99f96caf61885884b43a8b3a"
        },
        "pipfile-spec": 6,
        "requires": {
            "python_version": "3.7"
        },
        "sources": [
            {
                "name": "pypi",
                "url": "https://pypi.org/simple",
                "verify_ssl": true
            }
        ]
    },
    "default": {
    ....
        "django": {
            "hashes": [
                "sha256:051ba55d42daa3eeda3944a8e4df2bc96d4c62f94316dea217248a22563c3621",
                "sha256:9aaa6a09678e1b8f0d98a948c56482eac3e3dd2ddbfb8de70a868135ef3b5e01"
            ],
            "index": "pypi",
            "version": "==3.0.6"
        },
    ....
    }
    "develop": {
        ....
        "django": {
            "hashes": [
                "sha256:051ba55d42daa3eeda3944a8e4df2bc96d4c62f94316dea217248a22563c3621",
                "sha256:9aaa6a09678e1b8f0d98a948c56482eac3e3dd2ddbfb8de70a868135ef3b5e01"
            ],
            "index": "pypi",
            "version": "==3.0.6"
        },
    ....
    }

And this is my Pipfile
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]
django-extensions = "*"
ipython = "*"
werkzeug = "*"
pydotplus = "*"
django-querycount = "*"
jupyter = "*"
flower = "*"
django-request-logging = "*"

[packages]
django = "*"
psycopg2 = "*"
django-environ = "*"
celery = "*"
redis = "==3.3.11"
pyjwt = "*"
django-webpack-loader = "*"
django-rest-framework = "*"
kombu = "*"
django-otp = "*"
pyotp = "*"
gunicorn = "*"

[requires]
python_version = "3.7"

Also i checked the version from pipenv graph it shows the right installed version 3.0.3
django-environ==0.4.5
django-extensions==2.2.6
  - six [required: >=1.2, installed: 1.14.0]
django-otp==0.9.0
  - django [required: >=1.11, installed: 3.0.3]
    - asgiref [required: ~=3.2, installed: 3.2.7]
    - pytz [required: Any, installed: 2019.3]
    - sqlparse [required: >=0.2.2, installed: 0.3.0]
django-querycount==0.7.0
django-request-logging==0.7.0
  - Django [required: Any, installed: 3.0.3]
    - asgiref [required: ~=3.2, installed: 3.2.7]
    - pytz [required: Any, installed: 2019.3]
    - sqlparse [required: >=0.2.2, installed: 0.3.0]
django-rest-framework==0.1.0
  - djangorestframework [required: Any, installed: 3.11.0]
    - django [required: >=1.11, installed: 3.0.3]
      - asgiref [required: ~=3.2, installed: 3.2.7]
      - pytz [required: Any, installed: 2019.3]
      - sqlparse [required: >=0.2.2, installed: 0.3.0]
django-webpack-loader==0.7.0

So how to understand the 3.0.6 in Pipfile.lock. When i am trying to create a new virtual env using this file will my django version change from 3.0.3 to 3.0.6
Ofcourse here it may not matter. But i am afraid if version changes from 3.0.3 to 3.2.0 (its major change then)

How did you install 3.0.3 version?
If you do pipenv sync , Django can upgrade to 3.0.6.

Few months back i have installed django using
pipenv django

Recently i happened to delete my Pipfile.lock. Then i though of regenerating it again
So i tried
pipenv lock

Then the version shown in Pipfile.lock is 3.0.6
So whats the best way to keep working on a particular version for 6 months atleast. I think i have to specify if in the Pipenv file then
that is
[packages]
django = "3.0.3"

instead of
[packages]
django = "*"

Which is the better way like
[packages]
django = "3.0.3"

OR
[packages]
django = "3.0.*"

Recently i happened to delete my Pipfile.lock. Then i though of regenerating it again
By deleting it you lost the locked version at that time, and will only get what is latest when regenerating the lock file.

So whats the best way to keep working on a particular version for 6 months at least
No, it is like you lost the history, though pinning django==3.0.3 in Pipfile is a resolution.

It is not an issue with Pipenv, close it now.


Title: Addition of 'Copy to clipboard' button in Random Password Generator

Is your feature request related to a problem? Please describe.

There is no specific button to copy the generated password to clipboard, and we have to do it manually.

Describe the solution you'd like.

I can add a Button which will trigger a JS function to copy the generated password to the user's clipboard.
I've already worked on many functions like this so i can fix the issue.

Describe alternatives you've considered.

Addition of a 'Copy' button to copy password to clipboard.

Add any other context or screenshots about the feature request here.

@swapnilsparsh Can i work on this issue under GSSoC'24, i would love to contribute to this project.
Thank You!

@AtharvKasar04 Thank you for providing your insight but it is not required as of now.


Support Marker events

https://docs.mapbox.com/mapbox-gl-js/api/markers/#marker-events

@yukinarit
Hi!
I've tried to implement it once itself, but I'm unclear again, so please let me issue a PR on WIP 🙇
Would it be easier to understand the errors if I also include examples of use?( #38 )

@shimatar0 Ah, yes you can include an example in the PR 🙏

@yukinarit
Okey, included and pushed!


Share of fossil fuels in the network

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
Can you integrate the share of fossil energy in the grid? Like the power-flow-card-plus does, for example.
Expected behaviour
You could do this using colors, for example, like you already do with Essential.
Possible Solutions
No response
Mode
Both
Context / Reason
No response

Hi. On initial thought this is beyond the scope of the card which is more focused on inverter power flows and the ability to show detail of the specific inverter measurement points. The generic or higher level power flow cards would be better suited in my opinion.


magnitude_spectrum and specgram?

Anyone implemented magnitude_spectrum and specgram for C++ ?
I tried a quick hack, but get null from this:
PyObject_GetAttrString(pymod, "magnitude_spectrum");

Seems not implemented yet

started here
https://github.com/olilarkin/matplotlib-cpp/commit/817dda17efaacce5f037dd6a041a1806c883bf7b


Table designer issues

Hi.
Whenever I try to use the designer to create a new table or add a new column to an existing table, I'm getting the following message and the designer just rolls back:
"Can't find node corresponding to new object"
Anyone has this issue?
What i'm missing here?
Should I download and install a previous version, since this happens only after the latest upgrade?
thanks for your help!

Hi.
Apparently, the code to modify the table table structures is there, as it will appear when persisting the changes, but it's not shown in the interface.
As no one answers this, I tried to find an old version of DBeaver to replace this last one. Couldn't find it.
Anyone knows where could I find the previous version of the software?
Thanks in advance.
Artur

Forget it.
I managed to find an old version.
Thanks anyway!

Thanks Serge, for your answer.
I'll be waiting for the next release.
By the way, and please excuse my lack of knowledge, what is a "EA version" ?
Many thanks!

It is Early Access (https://dbeaver.io/files/ea)

Uh Hi I'm using 7.0.2 on Arch Linux and currently experiencing this same issue.

Hi, same problem using 7.0.2 on Manjaro 20 : "Can't find node corresponding to new object" when trying to create anything. Could you please reopen the issue ?

Hi Ex3lio.
In version 7.0.3 the issue is already solved. I guess is the latest version.
Are you able to update from dbeaver site?
I'm using version <IP_ADDRESS>004191823 and it seems to be just fine.

I'm gonna try, thanks for your quick reply Arthur!

My pleasure!
Good luck.

Hi guys, I am having this same problem in version 7.2.3 on Debian 10.


IPC middleware to support across fork communication when using the node cluster API

The node cluster API forks processes to provide multiple threads to handle whatever node you send it. It would be nice to have msngr be able to communicate across this boundary.

[ ] Add a method called msngr.child_process(child) which accepts a node child_process to keep track of for emitting messages to it. Store in internal structure.
[ ] Add middleware called node-ipc which should work somewhat like the cross-window middleware.

[ ] The initialization of this middleware should setup a handler for process.on("message", fn) and check incoming messages to see if they're a msngr envelope or not. If it is emit to the current process. If any child_process objects are being held in the internal structure them emit to those as well in serialized envelopes.
[ ] When messages include the node-ipc middleware the message should be serialized into a msngr envelope and sent over process.send() as a string. If any child_process objects are being helds in the internal structure then, in addition to process.send(), also send them to each child_process.

[ ] Update documentation

Unit testing is going to be annoying with this one.

This is useful but how useful? Not sure. So dropping to the backlog. I'm not going to work on anything anymore unless it's directly related to a user case > 1 person wants.

Closing this. I have decided this should be more of a plug-in. There is no need to add additional bloat to msngr.js core. I'm still interested in finishing this partially completed feature but will likely make another repository for it in the future.


Bugs regarding the 1.3.0 ebooks plugin

After updating i've encountered following error:

before updating ebooks, i made sure to copy 1.4.8s system folder to my installation, as the update-guide describes.
I think paged js has a problem with my content for some reason

i've also encountered multiple vue errors, this also happens generating an uuid for epub

thank you, I will try to fix them for the next release.
The first error looks like firefox, it should work in chrome correctly. It occures in firefox if the table of contents spans over two or several pages. Not sure why exactly it happens and not sure if the team from paged.js can help here. I will investigate.

@trendschau i've checked on my MacBook + Chrome (Chromium) and i've gotta admit, that i get a working result there (yay)
It kinda wonders me though. I've also tried it on Edge (Chromium) but that didn't seem to work either.

Yes, Edge does not work, they probably have a different implementation than chrome. Anyway, I am not sure if this errors are caused by page.js or if the script for the table of contents is wrong in some way. Have to investigate. Despite of that, I always use chrome, because it delivers the most reliable results when generating publications.

I fixed the error with table of contents in Firefox, it was caused by css styling, I will publish it with the next release.

Hm, I fixed this bug but got other bugs depending on the content structure and not related to the table of contents script. I think Firefox is simply not reliable for paged.js, but I will open a ticket there if problem like this are known.

maybe (just an idea) you could make a javascript call to the user agent and display a disclaimer for browsers unlike chrome that the plugin does not guarantee to work on these browsers!

Good Idea and implemented in version 1.3.1 :)
I will open an issue to paged.js about the problems with firefox.


Multiple Persistent Cross-Site Scripting Vulnerabilities

This is with reference to issue #115
Description: Quarx CMS is prone to multiple persistent cross-site scripting vulnerabilities because it fails to sanitize user-supplied input.
Affected pages and parameters:
Blog -> 'Title'
FAQ -> 'Question'
Pages -> 'Title'
Widgets -> 'Name'
Menus -> 'Name'
Impact: Attacker can execute arbitrary code in the browser of a random user.
Affected version: 2.4.3(latest version) and prior
CVSS:3.0/AV:N/AC:M/PR:N/UI:R/S:U/C:P/I:P/A:P
Credit: Preethi Koroth
Thanks.

Kindly reply. I'am planning to post it in security forums within next 3 hours.


Team Limits

When can we expect the limits to be raised? We are just over the limit but would like an Org-Wide team.

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

ID: 76309c0b-2a9c-36a8-d7c7-f7d6f311d39b
Version Independent ID: bc69c0e3-0fa7-c86e-5e8c-067c8811e9bf
Content: Create an org-wide team in Microsoft Teams - Microsoft Teams
Content Source: Teams/create-an-org-wide-team.md
Service: msteams
GitHub Login: @LanaChin
Microsoft Alias: v-lanac

@GlennMillerNZ thank you for submitting feedback.
I think the best way forward is if you open a service ticket in your tenant so this can get resolved ASAP. Based on the outcome let me know if it is something that can be called out in the docs.
Please follow this link to contact support for business products:https://docs.microsoft.com/office365/admin/contact-support-for-business-products
Please keep us posted here on the resolution so we can feed whatever information you discover into the content.

Are you saying this is a fault that we can't use Org-Wide Teams?


Add String Questions in Java

String to Integer
Repeated String Match

Add your here under the String package
Important:
Create a package for each question
And create a README file for each question, which will consist of the problem link, and time complexity and you have to write the approach towards the solution (both brute force and optimal one)

@aritra-tech i want to work on this

You are already assigned with 2 issues @Avik-creator.
Let others also participate.
Hope you get it @Avik-creator , if there is no comments within  days I will assign you.

@aritra-tech no worries

@aritra-tech I want to work in these issue as now I have no other issue to work . so pls assign me

@aritra-tech I want to work in these issue as now I have no other issue to work . so pls assign me

Sure @Rishikavishnoi


oiiotool --subimage now takes subimage name as well as numeric index.

Fixes #1271

@peterhillman, what do you think of this?

I'm going to merge into master. We can always revise if you don't like what I've done.


Add note about torii/redirect.html in the guides

Great article here!: https://github.com/simplabs/ember-simple-auth/blob/master/guides/auth-torii-with-github.md
Would you mind if I PR'd a note about usinghttp://localhost:4200/torii/redirect.html instead of http://localhost:4200 to avoid a security warning from Torii?
Here's some additional details about the security warnings:

Torii was originally configured to add an initializer that detects when your Ember app has been redirected-to by an OAuth provider, but this has been shown to be a potential vulnerability, and best practice is to use the static /torii/redirect.html page that the Torii addon makes available as of version 0.9.0.

https://github.com/Vestorly/torii#oauth-redirects

Yep, adding that note would be great!

cleaning old issues


priorityNav with logo and icons.

Using display table and table-cell, I'm trying to align navigation with other elements, "Logo" and "Social Icons". So keep the "priorityNav" effect. Let it be fluid and fit. Is there a way to do this?
https://codepen.io/johnquimera/pen/mKKxWm


Change unstaged tasks -list to open automatically when taskmap canvas…

This change opens unstaged tasks -list automatically when none of the tasks have been placed on the task map yet. Added it for improved usability since that's what you'd do first if the taskmap was empty

Great point, I completely missed the fact that stagedTasks could be used straight away without any filtering. Added the suggestion 👍


Virtualbox 6.1.22 fails to load libpulse.so

The pulseaudio backend stopped working with the update of Virtualbox 6.1.18 -> Virtualbox 6.1.22 (ba0da8a076e94ff1119cd46fe58d12c54f9e978b)
Virtualbox 6.1.20 overhauled the audio device backend, and changed the way libpulse.so is loaded
To Reproduce
Steps to reproduce the behavior:

set up a VM with pulseaudio as a backend
start vm
you will get a popup about not being able to start audio backend

Expected behavior
Audio works! No Errors!
Screenshots
Here is the VBox.log for the session.
    00:00:00.941279 HDA: Asynchronous I/O enabled
    00:00:00.941313 Audio: Initializing PulseAudio driver
    00:00:00.941320 audioLoadPulseLib: Failed to load library /nix/store/j8vl05zdjkp62pg23qrqra4dcahc77hg-libpulseaudio-14.2/lib/libpulse.so.0: VERR_INVALID_PARAMETER
    00:00:00.941344 PulseAudio: Failed to load the PulseAudio shared library! Error VERR_INVALID_PARAMETER
    00:00:00.941389 Audio: Initialization of host driver 'PulseAudio' failed with VERR_INVALID_PARAMETER
    00:00:00.941404 VM: Raising runtime error 'HostAudioNotResponding' (fFlags=0x0)
    00:00:00.941411 Console: VM runtime error: fatal=false, errorID=HostAudioNotResponding message="Host audio backend initialization has failed. Selecting the NULL audio backend with the consequence that no sound is audible"
    00:00:00.941509 HDA: Codec reset
    00:00:00.941533 HDA: Reset

@svanderburg
Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:

Doing a bit of digging, in 6.1.18, libpulse.so was loaded with:
rc = RTLdrLoad(VBOX_PULSE_LIB, &hLib);

in 6.1.22, libpulse.so is loaded with:
rc = RTLdrLoadSystemEx(VBOX_PULSE_LIB, RTLDRLOAD_FLAGS_NO_UNLOAD, &hLib);

And the VERR_INVALID_PARAMETER return seems to be coming back from this assertion:
AssertReturn(!(fFlags & ~RTLDRLOAD_FLAGS_VALID_MASK), VERR_INVALID_PARAMETER);

I needed to use the virtualbox to attend a meeting, so I just hacked the load back to the 6.1.18 behaviour:
diff -rc VirtualBox-6.1.22.orig/src/VBox/Devices/Audio/DrvHostAudioPulseAudioStubs.cpp VirtualBox-6.1.22/src/VBox/Devices/Audio/DrvHostAudioPulseAudioStubs.cpp
*** VirtualBox-6.1.22.orig/src/VBox/Devices/Audio/DrvHostAudioPulseAudioStubs.cpp       2021-04-28 09:27:05.000000000 -0700
--- VirtualBox-6.1.22/src/VBox/Devices/Audio/DrvHostAudioPulseAudioStubs.cpp    2021-05-20 14:10:59.988093502 -0700
***************
*** 333,339 ****
      rc = g_rc;
      AssertMsgReturn(rc == VERR_IPE_UNINITIALIZED_STATUS, ("g_rc=%Rrc\n", rc), rc);

!     rc = RTLdrLoadSystemEx(VBOX_PULSE_LIB, RTLDRLOAD_FLAGS_NO_UNLOAD, &hLib);
      if (RT_SUCCESS(rc))
      {
          unsigned i;
--- 333,339 ----
      rc = g_rc;
      AssertMsgReturn(rc == VERR_IPE_UNINITIALIZED_STATUS, ("g_rc=%Rrc\n", rc), rc);

!     rc = RTLdrLoad(VBOX_PULSE_LIB, &hLib); /* XXX: revert to 6.1.18 */
      if (RT_SUCCESS(rc))
      {
          unsigned i;

This may not be the right thing to do, but it works. If there is no objection, I'll file a PR...

The assertion that triggers (at least in my case with 6.1.26) is in
RTDECL(int) RTLdrLoadSystemEx(const char *pszFilename, uint32_t fFlags, PRTLDRMOD phLdrMod)
{
    LogFlow(("RTLdrLoadSystemEx: pszFilename=%p:{%s} fFlags=%#RX32 phLdrMod=%p\n", pszFilename, pszFilename, fFlags, phLdrMod));

    /*
     * Validate input.
     */
    AssertPtrReturn(phLdrMod, VERR_INVALID_PARAMETER);
    *phLdrMod = NIL_RTLDRMOD;
    AssertPtrReturn(pszFilename, VERR_INVALID_PARAMETER);
    AssertMsgReturn(!RTPathHasPath(pszFilename), ("%s\n", pszFilename), VERR_INVALID_PARAMETER); // <--

Apparently, VirtualBox expects just a filename here, but in my NixOS-local build, the pszFilename points to a full path to libpulse.so.0 in the nix store.
With more recent VirtualBox versions, ALSA suffers from the same issue.

As hinted at before by @jcumming, adding the following patch lets VMs with audio configured run:
diff --git a/src/VBox/Devices/Audio/DrvHostAudioAlsaStubs.cpp b/src/VBox/Devices/Audio/DrvHostAudioAlsaStubs.cpp
index cfcb0abbf..2ce564f6f 100644
--- a/src/VBox/Devices/Audio/DrvHostAudioAlsaStubs.cpp
+++ b/src/VBox/Devices/Audio/DrvHostAudioAlsaStubs.cpp
@@ -258,7 +258,7 @@ static DECLCALLBACK(int32_t) drvHostAudioAlsaLibInitOnce(void *pvUser)
     LogFlowFunc(("\n"));

     RTLDRMOD hMod = NIL_RTLDRMOD;
-    int rc = RTLdrLoadSystemEx(VBOX_ALSA_LIB, RTLDRLOAD_FLAGS_NO_UNLOAD, &hMod);
+    int rc = RTLdrLoad(VBOX_ALSA_LIB, &hMod);
     if (RT_SUCCESS(rc))
     {
         for (uintptr_t i = 0; i < RT_ELEMENTS(SharedFuncs); i++)
diff --git a/src/VBox/Devices/Audio/DrvHostAudioPulseAudioStubs.cpp b/src/VBox/Devices/Audio/DrvHostAudioPulseAudioStubs.cpp
index a17fc93f9..148f5c39a 100644
--- a/src/VBox/Devices/Audio/DrvHostAudioPulseAudioStubs.cpp
+++ b/src/VBox/Devices/Audio/DrvHostAudioPulseAudioStubs.cpp
@@ -332,7 +332,7 @@ static DECLCALLBACK(int32_t) drvHostAudioPulseLibInitOnce(void *pvUser)
     LogFlowFunc(("\n"));

     RTLDRMOD hMod = NIL_RTLDRMOD;
-    int rc = RTLdrLoadSystemEx(VBOX_PULSE_LIB, RTLDRLOAD_FLAGS_NO_UNLOAD, &hMod);
+    int rc = RTLdrLoad(VBOX_PULSE_LIB, &hMod);
     if (RT_SUCCESS(rc))
     {
         for (unsigned i = 0; i < RT_ELEMENTS(g_aImportedFunctions); i++)


Create container annotation example

We can turn it on for notepad's highlights.

@michael I did try to switch PropertyAnnotation to ContainerAnnotation for MarkTool in out notepad.
Basically it's working, but it's not highlighted. And we need to update exampleNoteChangeset for seeding.

you can use https://github.com/substance/notepad/tree/container-annos


Make sure we have the expected instances

I noticed LogicT provides more instances than we do. Things like MonadReader. We should probably add those too: https://github.com/Bodigrim/logict/blob/master/Control/Monad/Logic.hs#L327

I was about to do that.


capturing "bot" is not needed. Removing it resolves an unused variable warning.

Alternatively you could please mark the bot variable as unused by casting it to void.
This would clean up a warning for library consumers who happen to build unit tests also.

 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.


onAfterAction running twice

(not sure if this issue has already been here, sorry if yes)
I bumped into an issue where onAfterAction runs twice making Angular to compile a page twice (which
happens in urigo:angular.js file's onAfterAction). I think the issue is in IronRouter's waitOn method - whenever a router has it each onAfterAction will run twice: one when router is in not ready state and one when it's ready. Would it make sense to check if Router.current().ready() in Router.onAfterAction and return if not?
So final code could look like this:
if(typeof Router != 'undefined')  {
      Router.onAfterAction(function(req, res, next) {
        if (!Router.current().ready()) return;
        Tracker.afterFlush(function() {
          $compile($document)($rootScope);
          if (!$rootScope.$$phase) $rootScope.$apply();
        });
     });
}

What do you think?
Thanks

OK, can you create a repo that reproduce it?
Also, if you already found a solution, a pull request will be great and will give you the credit you deserve..

BTW, do you plan to support IronRouter in the future?
I didn't found any information about it in the tutorial (and as I remember there was some info initially).
I just fixed this issue by substituting waitOns with subscriptions on the server side by using FastRender routes API (https://github.com/meteorhacks/fast-render#using-fast-renders-route-apis).
So I am wondering if it's worth to fix at all.

@barbatus I think that there is no reason why not too,  are you thinking about pull requesting it with your first solution?

@Urigo I actually hurried up with that fix. It doesn't work, well, at least in 100% cases. The reason here is in 'Loading' layout which can be quite complex and contain Angular code (it's actually my case too: I have  with Angular, for example), so it won't be compiled while it's loading if to check whether that route is ready or not.
So, to be honest, I don't know at the moment how to fix it 100%. I'd advise to use FastRender's server API as now as a workaround for everyone who wants to use waitOns (which is totally makes sense by itself).

@barbatus let work together on a repo the reproduces this, it will help me understand better and find a solution

@barbatus if you can't reproduce I don't mind setting up a meeting

no reproduction.
Closing.

Sorry for delays, was busy.
Here is repo with reproduction https://github.com/barbatus/ng-meteor-double-compilation
If you run it you will see 'I am HeaderController' and 'I am FooterController' appear twice and 'I am MainPageController' ones. Which means some part of every route layout are compiled twice,
I expected all angular expression should be compiled once per route.

@barbatus yes now I see.
So it looks like rendering twice is necessary, otherwise how will you handle the loading template with Angular?
@stlouisweb what are you thoughts on that?

@urigo I suggest if it was possible to take part that's been just inserted by IronRouter that we could compile whole layout when router is not ready and then compile separately newly inserted part at the moment router is ready. It needs some investigation, though. So I am going to look inside IronRouter briefly and hopefully find answer.

@barbatus I've done something, but I'm not sure it changed you demo, maybe it's because you have only one route?

@Urigo  What's you've done? It doest matter how much routes are there, IronRouter always runs onAfterAction twice if a subscription is new or with other params.

Yes I understand.
I've done what you said - if the route is ready, compile only the current template, when it's not, compile all

@Urigo Ah, I see now. It sounds like a fix. I am going to test it, if I find any issue with it I'll update here.

@Urigo I've tested it and it didn't work. You are actually compiling again whole layout when take currentRoute.layout.view. Secondly, currentRoute.ready() is reactive, so, it makes onAfterAction rerun. So I tried some thing else, pls, check this branch https://github.com/barbatus/angular-meteor. Sadly, it doesn't work as well: so for some strange reason, from time to time, those regions are compiled already to the moment route is ready; it seems to be when data has been loaded very fast from server.
I'll continue looking at it in spare time, but now I am not sure it's fixable at all.

@urigo Check it out https://github.com/barbatus/angular-meteor, it seems work in that version.
Looks hacky though; ur decision whether makes sense to commit or not.

@barbatus the attributes you added are just yours right?

@Urigo yes, I've added _done and _docCompiled, its explained partly in the comments.

@barbatus ok so send a pull request and I'll add that.
Also, might be nice parameters to add to Blaze as well for other use cases, I would suggest maybe additionally pull request to add something similar to Meteor

Not sure what you meant by Blaze parameters. If you don't like those auxiliary fields (with underscore) i can use IronRouter's state variables instead (like this.router.state.set('_done', true))

WIll it create the same effect?
looks less intrusive to me

@urigo yes, see committed changes


npm error

I'm trying to install via npm and got this error:
npm i --save<EMAIL_ADDRESS>npm ERR! code ENOTSUP
npm ERR! notsup Unsupported engine for<EMAIL_ADDRESS>wanted: {"npm":"^2.14.7","node":">=6"} (current: {"node":"8.11.1","npm":"6.0.1"})
npm ERR! notsup Not compatible with your version of node/npm<EMAIL_ADDRESS>npm ERR! notsup Not compatible with your version of node/npm<EMAIL_ADDRESS>npm ERR! notsup Required: {"npm":"^2.14.7","node":">=6"}
npm ERR! notsup Actual:   {"npm":"6.0.1","node":"8.11.1"}

Is there anything to solve this?

resolved using yarn instead npm

just made a pull request for this issue
https://github.com/mozilla-services/react-jsonschema-form/pull/947


Unable to send email on jansa, master until recently with "Missing template generic_mailer/generic_notification with "mailer". Searched in:  * "generic_mailer"

http://talk.manageiq.org/t/no-email-notifications-since-jansa-upgrade/5147/2

To recreate this, I was able to get the missing template error by excluding the ui_dependencies:
BUNDLER_GROUPS=manageiq_default be rspec spec/mailers/generic_mailer_spec.rb
This results in many test failures of variety:
  1) GenericMailer call deliver for generic_notification with text/plain attachment
     Failure/Error: mail(:subject => options[:subject], :to => options[:to], :from => options[:from], :cc => options[:cc], :bcc => options[:bcc], :date => options[:sent_on])

     ActionView::MissingTemplate:
       Missing template generic_mailer/generic_notification with "mailer". Searched in:
         * "generic_mailer"
     # /Users/joerafaniello/.gem/ruby/2.6.6/gems/actionmailer-<IP_ADDRESS>/lib/action_mailer/base.rb:952:in `each_template'
     # /Users/joerafaniello/.gem/ruby/2.6.6/gems/actionmailer-<IP_ADDRESS>/lib/action_mailer/base.rb:940:in `collect_responses_from_templates'
     # /Users/joerafaniello/.gem/ruby/2.6.6/gems/actionmailer-<IP_ADDRESS>/lib/action_mailer/base.rb:925:in `collect_responses'
     # /Users/joerafaniello/.gem/ruby/2.6.6/gems/actionmailer-<IP_ADDRESS>/lib/action_mailer/base.rb:828:in `mail'
     # ./app/mailers/generic_mailer.rb:167:in `prepare_generic_email'
     # ./app/mailers/generic_mailer.rb:113:in `generic_notification'

This should resolve the issue on master: https://github.com/ManageIQ/manageiq/pull/20693


Test the Redesign of the Inline Suggestions Hover

Refs: https://github.com/microsoft/vscode/issues/167042

[ ] anyOS @Tyriar
[ ] anyOS @rebornix
[ ] anyOS @isidorn

Complexity: 4
Create Issue

To test:

Make sure Copilot is installed
Use Copilot as usual

Make sure accepting inline suggestions with [tab] still works

Hover on an inline suggestion

Explore the hover, make sure all features work

Including accept partial and undo accept partial

Configure VS Code so that the hover is always shown (ensure it is easy to find out how to do that)

Use copilot as usual, make sure everything still works and that the hover is shown all the time.

Great job, I love the new hover ❤


Connection Refused with Cisco, Huawei & Quagga using Weave

Is this a bug report or a feature request?:
bug report
What happened:
i have HA Cluster with Ubuntu 16.04 physical servers. 3 Master and 20 Slaves. Trying to use metallb (installed via Helm), im getting this error in the speaker pod:
{"caller":"bgp.go:55","error":"dial \"<IP_ADDRESS>:179\": getsockopt: connection refused","localASN":65011,"msg":"failed to connect to peer","op":"connect","peer":"<IP_ADDRESS>:179","peerASN":65011,"ts":"2018-11-22T01:45:26.60297502Z"}
<IP_ADDRESS> is a Cisco Router 7600, also tried with a Huawei even a quagga, and im getting the same error. There is nothing between the Master and the router, they are directly connected.
Watching a tcpdump
kubernetes-s1:~$ sudo tcpdump -i enp10s4f0 port 179 tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on enp10s4f0, link-type EN10MB (Ethernet), capture size 262144 bytes 20:03:26.615088 IP <IP_ADDRESS>.57355 > <IP_ADDRESS>.bgp: Flags [S], seq<PHONE_NUMBER>, win 29200, options [mss 1460,sackOK,TS val 8588236 ecr 0,nop,wscale 7], length 0 20:03:26.615783 IP <IP_ADDRESS>.bgp > <IP_ADDRESS>.57355: Flags [R.], seq 0, ack<PHONE_NUMBER>, win 0, length 0
Im pretty sure its sending the packet, but something it is blocking it inside the server. No firewall activated.
Am i missing something?
What you expected to happen:
BGP Announcement to the Router
How to reproduce it (as minimally and precisely as possible):
1 master, 1 slave ubuntu 16.04 with Weave. Metallb installed via Helm. Using kubeapps, deploy a service like mysql and check the speaker pod.
Anything else we need to know?:
Environment:

MetalLB version: 0.7.3
Kubernetes version: v1.12.2
BGP router type/version: BGP Mode with Cisco Ios-Xe, Huawei NE40E-X1-M4 and Quagga
OS (e.g. from /etc/os-release): Ubuntu 16.04
Kernel (e.g. uname -a): 4.4.0-139-generic #165-Ubuntu

<IP_ADDRESS> is not listening on port 179, so it's sending back a connection refused error. There's no bug in MetalLB here, your router is just not configured to accept BGP sessions from the MetalLB nodes.
Unfortunately I can't help you debug that, since it's entirely a problem with your routers. I would start by checking the router configuration and ensuring that it's listening on the correct interfaces, and double-check all the IPs in your configuration. Other than that, all I can suggest is to use your router's debugging facilities to examine the network traffic and see why it's not accepting BGP connections.

We configured a BGP Session between the router huawei and a quagga instance and it worked. Maybe something its blocking the traffic inside the server?

<IP_ADDRESS> is not listening on port 179, so it's sending back a connection refused error. There's no bug in MetalLB here, your router is just not configured to accept BGP sessions from the MetalLB nodes.
Unfortunately I can't help you debug that, since it's entirely a problem with your routers. I would start by checking the router configuration and ensuring that it's listening on the correct interfaces, and double-check all the IPs in your configuration. Other than that, all I can suggest is to use your router's debugging facilities to examine the network traffic and see why it's not accepting BGP connections.

We configured a BGP Session between the router huawei and a quagga instance and it worked. Maybe something its blocking the traffic inside the server?

I don't know what to tell you. Your tcpdump shows <IP_ADDRESS> responding with a TCP RST, meaning it's there is no service listening on port 179. That's not the symptom of a firewall (that would be packet drops, or ICMP errors from an intermediate firewall), it's the symptom of the TCP SYN arriving at the target, and the target responds "nope, no service listening on port 179".
My only suggestions here are to check the router config to make sure it's actually listening on that IP, and use the router's packet dumping and other debugging facilities to figure out why it's telling MetalLB that there's no BGP listener. There's really nothing MetalLB can do to help you here :/


juce: 7.0.7 -> 7.0.9

Description of changes
fixes https://github.com/NixOS/nixpkgs/issues/273988
https://github.com/juce-framework/JUCE/releases/tag/7.0.9

Things done

Built on platform(s)

[x] x86_64-linux
[x] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.


[FEATURE]: Dynamic info in Discord Embed

Scope
Web
Feature Description
Hey, I would like to suggest the ability to include information from the vars section of /info.json in the Discord status embed. This makes it possible to show custom pieces of information which may be important.
Use Case

Show the players, for example, how many police officers (or other classes) are currently on duty.
Show what minigame is currently played.
Show a server specific dynamic information.

etc.
Proposed Solution
No response
Additional Info
Screenshot of a mockup how the embed could look:

I like this suggestion.
BUT I do not like the idea of txAdmin constantly querying /info.json for those numbers, so I just requested to the Cfx team for an event to be fired when any server convar is updated, which would not just allow me to have the variables you requested, but also stuff like sv_projectDesc and maybe the server icon, which I could show on the interface.

Nice to hear that you like the idea. An event would be the ideal solution. I could also see an txAdmin event or GetConvar() as workaround


With hash key option for RedisMapState, only get the values for keys in the requested batch

This commit fixes a bug whereby if the state updater is constructed with a hash key (ie, the state will be stored as a key in a redis hash, versus as a key in the top-level redis space), each call to multiGet would request the entire hash and iterate to extract only the values in the hash relevant to the batch.
This can cause an inordinate amount of network traffic (and actually caused our interfaces to fall over) for states with either a moderately high cardinality or large values. Instead, the call to Redis should be an hmget (hash multiget) that takes the hash key as its first argument and an array of strings as the keys to fetch from that key, thereby retrieving only the requested values.
The change also deprecates and removes buildValuesFromMap.

@dkatten I've just missed it. Thanks! +1
@revans2 Could you take a look, please?

The change looks good to me. I am +1 for the change.  @dkatten if you want to file a JIRA under STORM at issues.apache.org that would be great.  If you would rather I can file it for you.

I'll file it. Thanks!

STORM-703
https://issues.apache.org/jira/browse/STORM-703

@revans2 It's filed to JIRA so seems like we can merge it.

Sorry I really don't follow all the JIRa updates as closely as I should.  @HeartSaVioR thanks for kicking me :) I'll merge it in.


New version: Google.Chrome.Dev version 111.0.5563.8

Result: Installation Successful

Manifest
Add/Remove Programs

Name
Google Chrome Dev
Google Chrome Dev

Version
111.0.5563.8
111.0.5563.8

Publisher
Google LLC
Google LLC

ProductCode

{1ED08225-2CF4-3228-87CB-EE3E13C7CBA2}

Auto-updated by vedantmgoyal2009/winget-pkgs-automation in workflow run 5729
Microsoft Reviewers: Open in CodeFlow

/AzurePipelines run


Not able to connect to remote Jupyter Notebook from Jupyterhub

I am spawning a remote notebook on a docker container and passing the IP and port info to the spawner class, but I m not able to connect to it eventhough all the config seems right from jupyterhub and jupyter notebook stand point. I have done all the essentials like allowing all ips, trusting x-header configuration etc. Let me know if you can make sense out of this error.

Whether to open in a browser after starting. The specific browser used is
platform dependent and determined by the python standard library webbrowser
module, unless it is overridden using the --browser (NotebookApp.browser)
configuration option.
c.NotebookApp.open_browser = False
Python modules to load as notebook server extensions. This is an experimental
API, and may change in future releases.
c.NotebookApp.server_extensions = traitlets.Undefined
The IP address the notebook server will listen on.
c.NotebookApp.ip = '*'
Set the Access-Control-Allow-Origin header

Use '*' to allow any origin to access your server.

Takes precedence over allow_origin_pat.
c.NotebookApp.allow_origin = '*'
Extra paths to search for serving jinja templates.

Can be used to override templates from notebook.templates.
c.NotebookApp.extra_template_paths = traitlets.Undefined
The base URL for websockets, if it differs from the HTTP server (hint: it
almost certainly doesn't).

Should be in the form of an HTTP origin: ws[s]://hostname[:port]
c.NotebookApp.websocket_url = ''
Supply overrides for the tornado.web.Application that the IPython notebook
uses.
c.NotebookApp.tornado_settings = traitlets.Undefined
The file where the cookie secret is stored.
c.NotebookApp.cookie_secret_file = ''
The full path to a private key file for usage with SSL/TLS.
c.NotebookApp.keyfile = ''

c.NotebookApp.file_to_run = ''
Reraise exceptions encountered loading server extensions?
c.NotebookApp.reraise_server_extension_failures = False
The directory to use for notebooks and kernels.
c.NotebookApp.notebook_dir = ''
Whether to trust or not X-Scheme/X-Forwarded-Proto and X-Real-Ip/X-Forwarded-
For headerssent by the upstream reverse proxy. Necessary if the proxy handles
SSL
c.NotebookApp.trust_xheaders = True
extra paths to look for Javascript notebook extensions
c.NotebookApp.extra_nbextensions_path = traitlets.Undefined
The session manager class to use.
c.NotebookApp.session_manager_class = <class 'notebook.services.sessions.sessionmanager.SessionManager'>
Whether to enable MathJax for typesetting math/TeX

MathJax is the javascript library IPython uses to render math/LaTeX. It is
very large, so you may want to disable it if you have a slow internet
connection, or for offline use of the notebook.

When disabled, equations etc. will appear as their untransformed TeX source.
c.NotebookApp.enable_mathjax = True
The config manager class to use
c.NotebookApp.config_manager_class = <class 'notebook.services.config.manager.ConfigManager'>
Supply extra arguments that will be passed to Jinja environment.
c.NotebookApp.jinja_environment_options = traitlets.Undefined
The notebook manager class to use.
c.NotebookApp.contents_manager_class = <class 'notebook.services.contents.filemanager.FileContentsManager'>
The full path to an SSL/TLS certificate file.
#c.NotebookApp.certfile = '/krylov/workspace/mycert.pem'
The url for MathJax.js.
c.NotebookApp.mathjax_url = ''
Extra paths to search for serving static files.

This allows adding javascript/css to be available from the notebook server
machine, or overriding individual files in the IPython
c.NotebookApp.extra_static_paths = traitlets.Undefined
Specify what command to use to invoke a web browser when opening the notebook.
If not specified, the default browser will be determined by the webbrowser
standard library module, which allows setting of the BROWSER environment
variable to override it.
c.NotebookApp.browser = ''
DEPRECATED use base_url
c.NotebookApp.base_project_url = '/'
Hashed password to use for web authentication.

To generate, type in a python/IPython shell:

from notebook.auth import passwd; passwd()

The string should be of the form type:salt:hashed-password.
c.NotebookApp.password = 'sha1:7eaa9db40370:49c855f6fe82082d932248f1fd0e7a0a9f6a41ea'
The kernel manager class to use.
c.NotebookApp.kernel_manager_class = <class 'notebook.services.kernels.kernelmanager.MappingKernelManager'>
The random bytes used to secure cookies. By default this is a new random
number every time you start the Notebook. Set it to a value in a config file
to enable logins to persist across server sessions.

Note: Cookie secrets should be kept private, do not share config files with
cookie_secret stored in plaintext (you can read the value from a file).
c.NotebookApp.cookie_secret = b''
Supply SSL options for the tornado HTTPServer. See the tornado docs for
details.
c.NotebookApp.ssl_options = traitlets.Undefined
The port the notebook server will listen on.
c.NotebookApp.port = 9009

@pawannrao-ebay Try using c.NotebookApp.ip='<IP_ADDRESS>' or replacing '*' with ''. See issue #406 and PR #407.
cc/@minrk

A duplicate of this issue was opened at jupyter/notebook#1027, and has been closed.


"Print" messed up manual duplex printing

I am using Samsung SCX-3400 Series in Linux Mint 18.
This printer cannot turn papers to print on both sides, so I often did this manually and it was successful.
But this time the page numbers got messed up. I made these settings:
print pages 14-48
print odd pages - so it should print 15, 17, 19 ,.., 47 !
result: it printed the pages 14, 16, .., 48
The concerning document is a PDF, created by MS Office 2016 with password protection.

The page-ranges option gets applied BEFORE page-set (even/odd/all), so page 14 becomes page 1 in the set. If you ask for pages 15-48 and print only odd pages you'll get the correct pages.

Yeah, I also guessed, that this was the reason. Because CUPS first exports a temporary PDF based on the given range of pages, and then prints out of this new PDF in /tmp
I think the issue is not to be closed, until a preview of the to-be-printed pages will be shown, which lets the user check before using ink and paper. This would be a crucial work-around, until a real software-solution can be developed.


WindowSettings online docs are out of date

The online documentation for WindowSettings, linked in the readme (points to here), is out of date.
I pulled piston v0.53.1 and the WindowSettings::opengl() and WindowSettings::set_opengl() methods aren't available. I noticed this because the Piston-Tutorials "getting-started" example (here, line 55) uses the WindowSettings::graphics_api() call, which isn't mentioned on docs.piston.rs.

Closed by https://github.com/PistonDevelopers/piston/commit/24c912a65ff57bdc107b1428e959e2444f56d937


Linking data sources to projects

A conversation at the recent MakeZurich event about adding live indicators of sensor transmission as well as other data source status has led to a couple of brainstorms with folks close to the project. I've sketched something which I believe will be the cornerstone of the next release, at the same time as being a missing puzzle piece to the concept of "data-driven hackathons" since the beginning.
The idea is to add a Sources tab to the project, which is populated through the Post mechanism. While adding a status update, each team member can refer to a tool or dataset that they are currently using or "plugging in" to their work. These can be added spontaneously using a simple form that is based on the Sync mechanism: code from supported repositories, data from open data portals (or APIs compatible with standards like ThingSpeak and Frictionless Data), tools from any other websites.
These data sources are maintained and synced instance-wide, but aggregated from the Activity feed at the level of a Project or Event. Additionally, event organizers can specify a Template Project (which works even if hidden) whose data sources are recommended to project teams through an information display when they are on their own project.
The reasoning for using the Activity feed here is due to our current research collaboration's interest in tracking the stage of a project's development at which key breakthroughs occur. These could be communicated in the form of status updates, or equally by the adoption of a new tool or dataset.
At the moment this is only at a rough sketch stage, and open to feedback from the community.

See also #98

Deployed in #209