Movable raid frames

Raid frames are stuck in one spot on the left of your screen. I would like to be able to move them around without having to rely on something like "Move Anything" as it conflicts with a lot of this addon.
Describe the solution you'd like
A move option for raid frames, like player frames and action bars would be fine. But even better would be a UI designer like ElvUi

Hey,
the raidframes are entirely default, so you have to move them like you normally would: open the little menu through the arrow on the left side of the screen and unlock them to move.
Style etc is controlled through the blizzard menu; you can take a short cut there from the dragonflight menu > Party options and click the button there to open the blizzard menu.

My god... I have been using Elv for so long I didn't even know this was an option. Thanks!
I love the addon, keep up the good work!

The default raid frames are really great, but they lack 2-3 more options, and overall better customization.
Maybe I'll add some more infos inside the Dragonflight Config so other might see it as well!


How can I disable the global shortcut key: (aka. Command-Shift-O)

I used to use VS Code's shortcut key(Command-Shift-O) to find functions in current file, but it seems that this is also chatgpt-desktop's shortcut key.
Is there a way that I can disable chatgpt-desktop's shortcut keys?

Answer provided by Chatgpt :

Open the OpenAI GPT desktop application.
Click on the "Settings" icon located at the top-right corner of the application window.
Select "Preferences" from the drop-down menu.
In the preferences window, click on "Keyboard Shortcuts".
Here, you can either modify or remove the shortcut keys for different actions.

If you want to disable a particular shortcut key, simply click on the "x" icon next to it. Alternatively, you can modify the shortcut key by clicking on it and entering a new key combination.

I think it is not possible now, I'll add in the roadmap


Realsense Depth camera D455 giving unstable gyro data

Required Info

Camera Model
{ D455}

Firmware Version
(Open RealSense Viewer --> Click info)

Operating System & Version
{ Linux (Ubuntu 22.04

Kernel Version (Linux Only)
(e.g. 4.14.13)

Platform
PC NVIDIA GPU

SDK Version
{ legacy / 2.}

Language
{python}

Segment
{Robot }

Issue Description
I am using Realsense Depth camera D455 for IMU data, but IMU data is not stable.
when sensor is not moving it should give stable values but z values are increasing for every second.

Hi @Muthukumar4796  The raw data of a RealSense IMU is 'noisy' by nature.  You can calibrate the IMU using a Python tool.
https://github.com/IntelRealSense/librealsense/blob/master/tools/rs-imu-calibration/rs-imu-calibration.py
https://www.intelrealsense.com/wp-content/uploads/2020/07/IMU_Calibration_Tool_for_Intel_RealSense-Depth_Cameras_Whitepaper.pdf

Thank you for responding.
I calibrated our Realsense D455 cameras and have attached the results. Could you please check them? Also, could you provide me with insights and procedures on how to use the accl_2.txt and gyro_02.txt calibrated files to obtain noise-free data?

The calibration results appear to be very good.  It would be difficult to obtain better results than the values that are listed, so I would recommend not repeating the calibration.
When using the RealSense Viewer tool, you can take advantage of the saved IMU calibration by going to the Motion Module section of the options side-panel, expanding open the Controls category and ensuring that the Enable Motion Correction option is enabled (blue).

Hi @Muthukumar4796  Do you require further assistance with this case, please?  Thanks!

Case closed due to no further comments received.


[ACR] Add validation for registry name to support domain name label

Related command

az acr create
Description

PRD Link
The aim is to allow users to add a domain name label hash to their registry login server to prevent domain takeovers, such as "myacr-dnlhash123.azurecr.io". For CLI, this means users must be able to reference their registry in 3 ways:
az acr login -n myacr
az acr login -n myacr-dnlhash123
az acr login -n myacr-dnlhash123.azurecr.io

Allow '-' character when referring to registry name "-n" or "--name"
If referring to registry name using "az acr create" function, block '-' character. The '-' is automatically added if a user wants to use domain name label hash. This feature will be implemented in a later PR.

Testing Guide

Added three unit tests.
azdev test acr.test_acr_create_invalid_name --live --discover
azdev test acr.test_registry_name_with_dnl_suffix --live --discover
azdev test test_registry_name_with_dnl_suffix_loginserver --live --discover
History Notes

[ACR] Add validation for registry name to support domain name label
This checklist is used to make sure that common guidelines for a pull request are followed.

[x] The PR title and description has followed the guideline in Submitting Pull Requests.

[x] I adhere to the Command Guidelines.

[x] I adhere to the Error Handling Guidelines.

@trisavo-msft please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
@microsoft-github-policy-service agree [company="{your company}"]

Options:

(default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer.

@microsoft-github-policy-service agree

(when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term “You” includes me and my employer.

@microsoft-github-policy-service agree company="Microsoft"

Contributor License Agreement

@trisavo-msft please reply with this information

/azp run

Is this a new restriction or a missing validation? Any spec talks about the requirements?
PRD Link

Yes, the aim is to allow users to add a domain name label hash to their registry login server to prevent domain takeovers, such as "myacr-dnlhash123.azurecr.io". For CLI, this means users must be able to reference their registry in 3 ways:
az acr login -n myacr
az acr login -n myacr-dnlhash123
az acr login -n myacr-dnlhash123.azurecr.io

@microsoft-github-policy-service agree company="Microsoft"

/azp run

/azp run

@yanzhudd Is there anything else needed from this PR? The Azure CLI tests are not running.

/azp run

@yanzhudd Is there anything else needed from this PR? The Azure CLI tests are not running.

We need to trigger the CI manually for now due to security issues.

@zhoxing-ms

/azp run

Is this PR ready to review/merge?

@yanzhudd  Yes it is ready for review/merge


Questionable premature optimizations?

All find_next_host_delimiter_special and find_next_host_delimiter are doing is a simple search which could've been done using a lookup table.
https://github.com/ada-url/ada/blob/a9dd0d427e965ade856306c0e4b0afca04292db1/src/helpers.cpp#L203-L325
Trying to make it easy for the compiler to SIMDIfy it has backfired.
Ada's version assembly (which by the way, it won't vectorize until you specify -march=native or a-likes)
Table Lookup generated assembly
Benchmarks
--------------------------------------------------------------------
Benchmark                          Time             CPU   Iterations
--------------------------------------------------------------------
AdaAutoVectorizedSolution       25.7 ns         25.7 ns    174780063
WebppSimpleCharsetSearch        28.3 ns         28.2 ns    148920655
WebppSimpleCharmapSearch        15.9 ns         15.9 ns    265948817

Is there a reason why you have gone into such a trouble of optimizing it this way? Am I missing something or is this a clear premature optimization situation?

You are correct that we can gain a bit more speed by more carefully vectorizing the code.
I did so in ...
https://github.com/ada-url/ada/pull/548
However, my results do not agree with your suggestion that it is premature optimization. Using character-by-character processing leads to a significant performance drop.
If you disagree, could you modify our code, build "benchdata" and run it before and after your change? We care about BasicBench_AdaURL_aggregator_href (other components of the benchmark will not be impacted).

Simple lookup table is faster, your PR is even faster than that.
It doesn't affect the overall parsing performance too much; the benchmark gives me too much noise on my machine.
ada-url is using everything all over the place. For example character_sets-inl.h is essentially doing what std::bitset (and webpp::bitmap) is doing, while here we're doing the same thing manually with bit manipulation, and trying to SIMDify or Simplify it.
It lacks consistency.
A note about CharSet:
My webpp::charset, webpp::charmap, and webpp::bitmap (I know, not the best names) unifies this and you can switch between them quickly, though I don't think it required for this project to contain such thing.
I might add a SIMDified version of these features as well to see the difference, but them being generalized, I can easily switch them trivially later if I see it's better.

It does seem like we can improve the performance of this code. Thanks.


Update dev dependency "@microsoft/api-extractor"

Our repo is currently using<EMAIL_ADDRESS> The version is pinned because newer versions cause build breaks.
I attempted to upgrade to the latest version, but this causes other issues:

We would need to add type annotations to some of our public APIs, as a workaround for https://github.com/microsoft/rushstack/issues/1050.  A fix for this issue is being worked on, so alternatively we might be able to wait until the issue is fixed instead of applying a workaround.

api-extractor improved it's analysis of types exposed via global variables, which causes some of our types to be renamed.  However, this should not be a breaking change, since the types are still exported with the correct name.  For example, cosmos would see a change from:

declare interface Location {
    name: string;
    databaseAccountEndpoint: string;
    unavailable?: boolean;
}

to:
declare interface Location_2 {
    name: string;
    databaseAccountEndpoint: string;
    unavailable?: boolean;
}
export { Location_2 as Location }

I discussed this change with @xirzec, and he believes it is safe.
Draft PR: https://github.com/Azure/azure-sdk-for-js/pull/9121

My concern with the Location -> Location_2 change is that it s quite pervasive. Given that we use the output of the api extractor to do API reviews, this creates noise and not a pleasant experience

My concern with the Location -> Location_2 change is that it s quite pervasive. Given that we use the output of the api extractor to do API reviews, this creates noise and not a pleasant experience

I believe the Location -> Location_2 change was implemented in https://github.com/microsoft/rushstack/pull/1767.  According to @xirzec, the new behavior is more correct, and this is impacting some of our packages because they use type names which conflict with dom.d.ts.
We could create an issue in the api-extractor repo, requesting an option to revert this behavior change.  But I'm not sure if the api-extractor maintainers would agree with this option, if the new behavior is actually more correct.
Otherwise, I think our options are to stay on the current version indefinitely (meaning no new features or bug fixes), or update to the latest version and adjust to the changes.

This is currently our biggest blocker for re-exporting OpenTelemetry interfaces instead of re-declaring them in Core Tracing. Since they use import / export type the minute we re-export one of them we will start seeing api-extractor warnings on every package.
This issue is older - does anyone know what is blocking us today from upgrading to latest api-extractor? Is it still the same as above?
cc @deyaaeldeen @jeremymeng

Just tried the latest version and the problem described in this issue still persists.
I guess there is no point waiting for a fix here
@maorleger Looks like it is causing us more pain if don't upgrade. Am ok with upgrading the version here. Keep in mind that almost all of the api extractor output in the review folder will see a change. All package owners will have to go through one round of API change approval when they try to ship their next update

Just a quick update here - we looked into this a bit and unfortunately just upgrading api-extractor in core-tracing is not sufficient, we'd need to upgrade it across the board in order to avoid warning noise similar to https://github.com/Azure/azure-sdk-for-js/issues/13557
For now, core-tracing can continue re-declaring OTel interfaces to avoid this


RTHack sponsorship

sponsorship for #57

[x] space (White October)
[ ] pastries / snacks - £125
[x] lunch (burritos) - £150 (Haybrook)
[ ] swag / prizes
[ ] after drinks (Joe Perks are making a "realtime" themed cocktail for us)

[ ] JS Oxford t-shirts :stuck_out_tongue_winking_eye:

firebase aren't able to send us any swag (I got in touch too late), though they have given us a promo code of oxfordhackday which gives us a month free credit on their candle plan ($49)

Hey @benfoxall, @peterjwest, have we managed to secure sponsorship for the pastries or any swag from vendors? Sorry I've been a bit out of touch on this one. If we're a little short, I'll happily throw in £35 to cover half the pastries.

Ricks don't do the mini pastries anymore, so I've ordered:

20xPain au chocolat
15xPain au raisin

…to be collected at 8.45 tomorrow morning.  The manager wasn't in to talk about discounts, so worst case we'll get the take out rate of £1.20 (£42 total), but hopefully they can do us a deal.


Automated cherry pick of #4129: fix: 避免插入时出现duplicate primary key error

Cherry pick of #4129 on release/2.11.
#4129: fix: 避免插入时出现duplicate primary key error

Codecov Report

:exclamation: No coverage uploaded for pull request base (release/2.11@8f09f56). Click here to learn what that means.
The diff coverage is 0%.

@@              Coverage Diff               @@
##             release/2.11   #4132   +/-   ##
==============================================
  Coverage                ?   7.11%
==============================================
  Files                   ?     480
  Lines                   ?   78066
  Branches                ?       0
==============================================
  Hits                    ?    5552
  Misses                  ?   72047
  Partials                ?     467

Flag
Coverage Δ

#aFlag
7.11% <0%> (?)

Impacted Files
Coverage Δ

pkg/cloudcommon/db/tenantcache.go
1.32% <0%> (ø)

Continue to review full report at Codecov.

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

/lgtm

/approve


Compile error while using pipelinemodel.writebundle

Hi,
i am trying to use mleap with spark and export the model.Followed the steps [https://github.com/combust/mleap/wiki/Serializing-a-Spark-ML-Pipeline-and-Scoring-with-MLeap](Mleap wiki).
Observed the following error
Error:(105, 21) value writeBundle is not a member of org.apache.spark.ml.PipelineModel
      pipelinemodel.writeBundle.save(bf)(sbc).get

these are the versions i used in sbt file
`scalaVersion := "2.11.1"
libraryDependencies += "org.apache.spark" %% "spark-sql" % "2.3.1"
libraryDependencies += "ml.combust.mleap" %% "mleap-runtime" % "0.9.0"
libraryDependencies += "ml.combust.mleap" %% "mleap-spark" % "0.9.0"
libraryDependencies += "ml.combust.mleap" %% "mleap-spark-extension" % "0.9.0"
libraryDependencies += "org.apache.spark" %% "spark-mllib" % "2.3.1"`

Follow instructions here: http://mleap-docs.combust.ml/spark/
Make sure to:
import ml.combust.mleap.spark.SparkSupport._

thanks..adding import statement worked.

@hollinwilkins could you also provide reference links/wiki on how to serving this saved model in java?

We've re-implemented the serving layer, using either grpc or http (spring boot). You can take a look at the new serving layer, using the links below.
https://github.com/combust/mleap/tree/master/mleap-serving
https://github.com/combust/mleap/tree/master/mleap-executor
https://github.com/combust/mleap/tree/master/mleap-spring-boot
More examples in Java can also be found here: https://github.com/combust/mleap/blob/master/mleap-runtime/src/test/scala/ml/combust/mleap/runtime/javadsl/JavaDSLSpec.java.
Thank you!


Dynamic Lazy Loading using imports with dynamic path is not supported

🐞 Bug report
Command (mark with an x)

- [ ] new
- [x] build
- [x] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Is this a regression?

 Yes, the previous version in which this bug was not present was: ....
No
Description
I want to use dynamic path in the imports, as follows,
const Theme = (theme) => {
  return import(`./themes/theme${theme}/theme${theme}.module`).then(mod => mod.ThemeModule);
};

Webpack does understand dynamic path in imports, but its not working with Angular CLI. It does identify all the modules correctly, as I get this error when I use this,
WARNING in ./src/app/themes/theme1/theme1.module.ts
Module build failed (from ./node_modules/@ngtools/webpack/src/index.js):
Error: /Users/Zama/Desktop/loadable-test/src/app/themes/theme1/theme1.module.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.
   at AngularCompilerPlugin.getCompiledFile (/Users/Zama/Desktop/loadable-test/node_modules/@ngtools/webpack/src/angular_compiler_plugin.js:913:23)
   at /Users/Zama/Desktop/loadable-test/node_modules/@ngtools/webpack/src/loader.js:41:31
   at processTicksAndRejections (internal/process/task_queues.js:85:5)

WARNING in ./src/app/themes/theme2/theme2.module.ts
Module build failed (from ./node_modules/@ngtools/webpack/src/index.js):
Error: /Users/Zama/Desktop/loadable-test/src/app/themes/theme2/theme2.module.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.
   at AngularCompilerPlugin.getCompiledFile (/Users/Zama/Desktop/loadable-test/node_modules/@ngtools/webpack/src/angular_compiler_plugin.js:913:23)
   at /Users/Zama/Desktop/loadable-test/node_modules/@ngtools/webpack/src/loader.js:41:31
   at processTicksAndRejections (internal/process/task_queues.js:85:5)

WARNING in ./src/app/themes/theme3/theme3.module.ts
Module build failed (from ./node_modules/@ngtools/webpack/src/index.js):
Error: /Users/Zama/Desktop/loadable-test/src/app/themes/theme3/theme3.module.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.
   at AngularCompilerPlugin.getCompiledFile (/Users/Zama/Desktop/loadable-test/node_modules/@ngtools/webpack/src/angular_compiler_plugin.js:913:23)
   at /Users/Zama/Desktop/loadable-test/node_modules/@ngtools/webpack/src/loader.js:41:31
   at processTicksAndRejections (internal/process/task_queues.js:85:5)

🔬 Minimal Reproduction

🔥 Exception or Error

WARNING in ./src/app/themes/theme1/theme1.module.ts
Module build failed (from ./node_modules/@ngtools/webpack/src/index.js):
Error: /Users/Zama/Desktop/loadable-test/src/app/themes/theme1/theme1.module.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.
    at AngularCompilerPlugin.getCompiledFile (/Users/Zama/Desktop/loadable-test/node_modules/@ngtools/webpack/src/angular_compiler_plugin.js:913:23)
    at /Users/Zama/Desktop/loadable-test/node_modules/@ngtools/webpack/src/loader.js:41:31
    at processTicksAndRejections (internal/process/task_queues.js:85:5)

🌍 Your Environment

Angular CLI: 9.0.0-next.0
Node: 12.8.0
OS: darwin x64
Angular: 9.0.0-next.3
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.900.0-next.0
@angular-devkit/build-angular     0.900.0-next.0
@angular-devkit/build-optimizer   0.900.0-next.0
@angular-devkit/build-webpack     0.900.0-next.0
@angular-devkit/core              9.0.0-next.0
@angular-devkit/schematics        9.0.0-next.0
@angular/cli                      9.0.0-next.0
@angular/fire                     5.2.1
@ngtools/webpack                  9.0.0-next.0
@schematics/angular               9.0.0-next.0
@schematics/update                0.900.0-next.0
rxjs                              6.4.0
typescript                        3.5.3
webpack                           4.39.2

Anything else relevant?

I don't think that the above will work for all scenarios since the above above cannot be statically analysed which is needed for the AOT compiler.
But the problem you are seeing is that those files are not in the compilation. What you need to do is add the theme files, in the include paths of your application's tsconfig.
I am closing this as it doesn't fall into the bug report or feature request category. This issue tracker is not suitable for support requests, please repost your issue on StackOverflow using tag angular-cli.
If you are wondering why we don't resolve support issues via the issue tracker, please check out this explanation.

This is something which is possible in Vue CLI applications, check @TheLarkInn presentation https://youtu.be/rn97hCNQsKI?t=509
This would be a great feature in Angular CLI @alan-agius4


For smaller images, you could use alpine images instead of the debian images.

To have much less space, and much more quicker builds you could use alpine base images instead of the debian images.
Keep in mind that some things are not possible, because alpine is very light weight!.
Xdebug is one of them that might not be possible without a lot of extra packages. But when using multiple versions, you could create an alpine version of this stack for each php version.

Xdebug is one of them that might not be possible without a lot of extra packages.

Hi @leroy0211,
That exactly why I don't want Alpine image in this stack.

But why would you want xdebug in the stack? Or was the main purpose of this stack to be a development stack?
The way I see it, is that a stack is production-ready. For development purposes you could add whatever you want.

Because some people need XDebug. See #20 and #14 .
I see more this stack for development mode but I never wonder this question before. In fact, XDebug should be optional to satisfy dev and prod mode. So I prefer using Alpine when needed. Else, I'll use other official images.


event not firing for defined config.xml path

Having trouble getting events to run when I narrow the scope of the path in the config.xml file and build the app for iOS.
The url that would trigger the event: https://foobar.com/public/#/ResetPassword/1234 where 1234 is a server-generated token.
Currently, the app opens and the event fires if the path url attribute is set to the wildcard: <path url="*" event="ul_ResetPassword" />
If I change the path to what I need it to be in production, url="/public/#/ResetPassword/*", the app will open but the event never fires.
The apple-app-site-association file found on the domain:
{
    "applinks": {
        "apps": [],
        "details": [
            {
                "appID": "redacted",
                "paths": [
                    "/public/#/ResetPassword/*"
                ]
            }
        ]
    }
}

My JS code subscribing to the event in my Ionic app:
window.universalLinks.subscribe('ul_ResetPassword', dispatch);

Understood, will look into that.

As I thought, the problem is with the #. How matching is performed: it takes path component of the url and matches it to the ones, that in config.xml. And path component for https://foobar.com/public/#/ResetPassword/1234 will be just /public/: hash and query parameters are ignored.
Didn't think that in config.xml someone would use query/hash parameters. Will think of something to handle that.
In the meantime, you can do the following:

Leave your config.xml as it is. Something like:
<universal-links>
  <host name="foobar.com">
    <path url="/public/#/ResetPassword/*" />
  </host>
</universal-links>

Leave or remove event property from the <path />, doesn't matter.

In JS code subscribe like so:
universalLinks.subscribe(null, myHandler);

And then implement the handler, which will check the hash property of the event:
myHandler: function(eventData) {
  var hash = eventData.hash;
  // check if hash holds /ResetPassword/1234 and handle it
}

The hash in the URL is because our web application is built on Angular.js, so our routing is actually done on the client-side in the browser.
Your solution looks like it works, so thanks!  Curious, do you think this enhancement may make it into the next release?  It'll probably be 4-6 weeks before I look to add another path to the configuration for UL; ideally I want to integrate these paths one at a time.

Think so, depends on a free time I'll have.
But even if I'm not - you can still just add new <path /> records with event names, and add additional processing in myHandler function. But from it - call appropriate methods (i.e. handlePasswordReset(eventData), handleSomethingElse(eventData) and so on).
As soon as feature is implemented - it will require minimum change in the code: just remove myHandler function and add needed set of calls universalLinks.subscribe('eventName', handler).

Oh really?  Okay, it wouldn't be too difficult on my end to construct a handler in the interim if need be.  Thanks!

:+1:

My implementation only works when I try to access a url like this "https://foobar.com/public/%23/ResetPassword/1234"
%23 is # escaped
@theaccordance , Is this link (https://foobar.com/public/#/ResetPassword/1234) works for you? It opens the app?

Hi ,
Interesting plugin and I do think it has great potential especially since the giants are beginning to index mobile app contents. Well done!
I do have a small issue though. Following the instructions, I was able to install and configure the plugin successfully. I sent an email to my android device and clicked on the link, my app was launched. Hooray! However, I couldn't get the events to fire... I do not see any console logs etc.
Does this matter that my app is an ionic app? Is there a full working example to see how things are setup? Any advice would be greatly appreciated. As advised I added and index.js file with the following contents:
var app = {
  // Application Constructor
  initialize: function () {
    this.bindEvents();
  },

  // Bind Event Listeners
  bindEvents: function () {
    document.addEventListener('deviceready', this.onDeviceReady, false);
  },

  // deviceready Event Handler
  onDeviceReady: function () {
    console.log('Handle [deviceready] event if you need');
    universalLinks.subscribe('openStarrNotificationPage', app.onStarrNotificationPageRequested);
    universalLinks.subscribe('openVipNotificationPage', app.onVipNotificationPageRequested);
    universalLinks.subscribe('openJobReviewPage', app.onJobReviewPageRequested);
    universalLinks.subscribe('openWorkOrderDetailPage', app.onWorkOrderDetailPageRequested);
    universalLinks.subscribe('launchedAppFromLink', app.onApplicationDidLaunchFromLink);
  },

  onStarrNotificationPageRequested: function (eventData) {
    console.log('Showing starr notification ', eventData);
    // do some work to show list of news
  },

  onVipNotificationPageRequested: function (eventData) {
    console.log('Showing vip notification ', eventData);
    // do some work to show detailed page
  },
  onJobReviewPageRequested: function (eventData) {
    console.log('Showing job reviews ', eventData);
    // do some work to show detailed page
  },
  onWorkOrderDetailPageRequested: function (eventData) {
    console.log('Showing work_order detail ', eventData);
    // do some work to show detailed page
  },

  // launchedAppFromLink Event Handler
  onApplicationDidLaunchFromLink: function (eventData) {
    console.log('Did launch app from the link: ' + eventData.url);
  }
};

app.initialize();

I also have in my config.xml the following relevant content
<universal-links>
    <ios-team-id value="3VJD6U4MGY" />
    <host name="m.myservicecity.com" scheme="https"/>
    <path url="/starr_notification/" event="openStarrNotificationPage" />
    <path url="/job_review/" event="openJobReviewPage" />
    <path url="/vip_notification/" event="openVipNotificationPage" />
    <path url="/work_order/*" event="openWorkOrderDetailPage" />
    <path url="*" event="launchedAppFromLink" />
  </universal-links>

Does the addition of the below code specific for android as a hack to fix a flicker issue matter? I have added an entry that creates an intent-filter...
<platform name="android">
    --- other android specific config---
    <config-file target="AndroidManifest.xml" parent="application">
      <activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="@string/activity_name" android:launchMode="singleTop" android:name="MainActivity" android:theme="@android:style/Theme.DeviceDefault.NoActionBar" android:windowSoftInputMode="adjustPan">
        <intent-filter android:label="@string/launcher_name">
          <action android:name="android.intent.action.MAIN" />
          <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
      </activity>
    </config-file>
--- other android specific config---
  </platform>

Any help on this is greatly appreciated. I have also tried bootstrapping the events in the run function in the ionic app and still not events are fired!
Cheers

Hi @fintis ,
I think the problem is with your configuration in config.xml. It should be:
<universal-links>
    <ios-team-id value="3VJD6U4MGY" />
    <host name="m.myservicecity.com" scheme="https">
      <path url="/starr_notification/" event="openStarrNotificationPage" />
      <path url="/job_review/" event="openJobReviewPage" />
      <path url="/vip_notification/" event="openVipNotificationPage" />
      <path url="/work_order/*" event="openWorkOrderDetailPage" />
      <path url="*" event="launchedAppFromLink" />
    </host>
  </universal-links>

You need to put <path /> tags inside <host /> tag. In your case - they are not in it.

Hi @nikDemyankov
Many thanks for your prompt response...
Silly me! How could I have missed that?
Will give it a try...
Cheers

@nikDemyankov one more thing, since we are on the topic, Is it absolutely necessary to put the event registering code in the index.js file?
Using ionic I would want access to my $scope and services... So can I do something like register the events in
$ionicPlatform.ready(function(){
    universalLinks.subscribe('openStarrNotificationPage', onStarrNotificationPageRequested);
    universalLinks.subscribe('openVipNotificationPage', onVipNotificationPageRequested);
    universalLinks.subscribe('openJobReviewPage', onJobReviewPageRequested);
    universalLinks.subscribe('openWorkOrderDetailPage', onWorkOrderDetailPageRequested);
    universalLinks.subscribe('launchedAppFromLink', onApplicationDidLaunchFromLink);
})

And in the run function i declare the event firing like this
angularmodule.run(function(){
//other code
onStarrNotificationPageRequested: function (eventData) {
    console.log('Showing starr notification ', eventData);
    // do some work to show list of news
  },

  onVipNotificationPageRequested: function (eventData) {
    console.log('Showing vip notification ', eventData);
    // do some work to show detailed page
  },
  onJobReviewPageRequested: function (eventData) {
    console.log('Showing job reviews ', eventData);
    // do some work to show detailed page
  },
  onWorkOrderDetailPageRequested: function (eventData) {
    console.log('Showing work_order detail ', eventData);
    // do some work to show detailed page
  },

  // launchedAppFromLink Event Handler
  onApplicationDidLaunchFromLink: function (eventData) {
    console.log('Did launch app from the link: ' + eventData.url);
  }
})

Cheers

@fintis you can subscribe at any time you want and at any place. The only requirement is that universalLinks module should be accessible and defined. Otherwise you'll get undefined error.

Thanks for this awesome plugin +1

Thanks :)


Slow websocket clients get stuck / disconnected

When a client is not able to keep up (see #28), the server should at least provide the client with certs at the max rate the client can handle. Currently there is a bug in certstream-server-go's websocket code that leads to clients being disconnected after some time, if they can't keep up.
Example
In a certain time frame the websocket processed 1636 certificates:

In the same time frame >2000 certs were skipped (that's totally fine and actually is the solution to overloading the client)

The actual websocket client (was heavily rate limited and) processed only 107 certs in the same time.

Hypothesis
My current assumption is that the websocket code is not blocking, but instead buffering the certificates before actually sending them to the websocket. Depending on the server side buffer size and the client consumption rate, there might be a point where the websocket write (on the network) just happens too late (because it was written to a buffer first and only way later written to the network) and the deadline is exceeded.
After that, the broadcasthandler returns (line 34). But the websocket connection is not closed yet. Hence, this leaves no indication that something isn't working anymore.
https://github.com/d-Rickyy-b/certstream-server-go/blob/0dd05827a591724e2a1dbeac6329abc3b1bdecd9/internal/web/client.go#L28-L45

The clients being stuck issue was fixed in https://github.com/d-Rickyy-b/certstream-server-go/commit/8429ab57db471dc36a79b5adcd47101041281ea3.
The problem with disconnected clients should be fixed in https://github.com/d-Rickyy-b/certstream-server-go/commit/dc548b89639f0f89c9e31767cdc5f5f01db0cb4f.
Seems like the OS does weird things. A write deadline of 60 seconds prevents disconnected clients. I tested this by running a client with a limited capacity (100 certs/s) for a whole hour. With smaller values the client was disconnected after a few seconds already.


Add command

This is to allow to use a different jenkins-agent command, in our case, we use the jenkins-agent in our images, and rebuild all of them will take time , so have an option to use a different command will help the adoption of this plugin in our environment.

Ok, I make those changes on the old repository originally. If you are ok with the idea, I can make the changes on the source from this repository and update the PR.

Will fork this repo and make the changes to make things clean.


EOFException when querying for a document with byte[]

I'm having a collection with lots of binary data in it. When looking for existing documents the query I wrote fails for some documents. And when it fails it always fails for the same document. I wasn't really able to track down the exact cause so I wrote a test case that adds one file a lot of times to a random collection and performs a query that is pretty identical to the one I use in my code.
It's kind of brute force but it seems to work (currently a few times in a row, so I'm confident you can see the same error).
When I'm debugging the line that throws the EOFException in LittleEndianInputStream.java I can reproduce the error every time.
The test case produces this output on my local computer and my build server:
(unfortunately I committed it under #5)
Running net.vz.mongodb.jackson.TestParsingAndGenerating
Jan 1, 2012 11:16:19 PM com.mongodb.DBPortPool gotError
WARNING: emptying DBPortPool to <IP_ADDRESS>:27017 b/c of error
java.io.EOFException
	at de.undercouch.bson4jackson.io.LittleEndianInputStream.readFully(LittleEndianInputStream.java:116)
	at de.undercouch.bson4jackson.io.LittleEndianInputStream.readFully(LittleEndianInputStream.java:108)
	at de.undercouch.bson4jackson.BsonParser.handleBinary(BsonParser.java:388)
	at de.undercouch.bson4jackson.BsonParser.nextToken(BsonParser.java:241)
	at org.codehaus.jackson.map.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:693)
	at org.codehaus.jackson.map.deser.BeanDeserializer.deserialize(BeanDeserializer.java:580)
	at org.codehaus.jackson.map.ObjectMapper._readValue(ObjectMapper.java:2695)
	at org.codehaus.jackson.map.ObjectMapper.readValue(ObjectMapper.java:1308)
	at net.vz.mongodb.jackson.internal.stream.JacksonDBDecoder.decode(JacksonDBDecoder.java:62)
	at com.mongodb.Response.<init>(Response.java:66)
	at com.mongodb.DBPort.go(DBPort.java:128)
	at com.mongodb.DBPort.call(DBPort.java:79)
	at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:218)
	at com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:305)
	at com.mongodb.DBCursor._check(DBCursor.java:369)
	at com.mongodb.DBCursor._hasNext(DBCursor.java:498)
	at com.mongodb.DBCursor.hasNext(DBCursor.java:523)
	at net.vz.mongodb.jackson.DBCursor.hasNext(DBCursor.java:315)
	at net.vz.mongodb.jackson.TestParsingAndGenerating.testHugeData(TestParsingAndGenerating.java:313)

Ok, guessing this is either a bug in bson4jackson or in MongoDB.  I will take a further look into it, but could you answer the following questions:
How many bytes are in the binary data you are testing?
What version of MongoDB are you running?

I'd rather say it's bson4jackson or the mapper than mongodb since I can query for the data without problems when I use the driver API instead of DBQuery and the wrapped JacksonDBCollection:
            DBObject ref = new BasicDBObject("id", "4edf9b975e73d65678000762");
            ref.put("name", "ANAME");
            ref.put("size", "ASIZE");
            final com.mongodb.DBCursor find = movieImageDAO.db().getCollection("MyCollection").find(ref);

            if (find.hasNext()) {
                final byte[] data = (byte[]) find.next().get("data"); // always works
            }

The amount of bytes does not seem to be the cause. It happens with the "dataFile" from my latest commit. But only sometimes. My app is running for a while, binary data gets stored, documents created (or updated) and then there's this error. Totally random. I.e. if I clear the db and run the same procedure again it will fail with other documents and other byte[]. But it always fails after some time and it fails for a lot more documents, too. That's pretty hard to unit test, I know :-/
The code fails on mongodb 2.0.1 and 2.0.2.

Just had a look at my server logs and it seems it also breaks when parsing non-byte[] fields:
Caused by: java.io.EOFException
        at de.undercouch.bson4jackson.io.LittleEndianInputStream.readUnsignedByte(LittleEndianInputStream.java:151)
        at de.undercouch.bson4jackson.io.LittleEndianInputStream.readByte(LittleEndianInputStream.java:144)
        at de.undercouch.bson4jackson.io.LittleEndianInputStream.readUTF(LittleEndianInputStream.java:292)
        at de.undercouch.bson4jackson.io.LittleEndianInputStream.readUTF(LittleEndianInputStream.java:264)
        at de.undercouch.bson4jackson.BsonParser.readCString(BsonParser.java:481)
        at de.undercouch.bson4jackson.BsonParser.nextToken(BsonParser.java:212)
        at org.codehaus.jackson.map.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:690)
        at org.codehaus.jackson.map.deser.BeanDeserializer.deserialize(BeanDeserializer.java:580)
        at org.codehaus.jackson.map.ObjectMapper._readValue(ObjectMapper.java:2695)
        at org.codehaus.jackson.map.ObjectMapper.readValue(ObjectMapper.java:1308)
        at net.vz.mongodb.jackson.internal.stream.JacksonDBDecoder.decode(JacksonDBDecoder.java:62)

Or is it just some weird load issue?

comparing LittleEndianInputStream.readFully() of bson4jackons to ByteStreams.readFully() of google guava makes me wonder why EOF is raised as within the former at all. Within the latter, an EOF is silently ignored when reading the stream which also seems to make more sense.
same is true for readUnsignedByte()

Thanks for your help with this, I've found the bug, it's actually in code that I contributed to bson4jackson, in the BoundedInputStream, which is returning the length of bytes request to be read on read(), rather than the actual number of bytes read.  Most times the OS buffers are able to supply these bytes, but very occasionally they can't, which is why this issue happens so infrequently.  I'll get the fix pushed into bson4jackson, and hopefully we can get a bson4jackson release soon.  A simple work around is to not use bson4jackson, by calling JacksonDBCollection.disable(JacksonDBCollection.Feature.USE_STREAM_DESERIALISATION).  The performance hit of not using bson4jackson here is not much.

If you would like the bson4jackson fix, you can build your own from my fork:
https://github.com/jroper/bson4jackson

That's so awesome! Thanks a lot! :)


Facial recognition automation

Adds tags based on detected faces

I need to add viewing of the faces in the admin page

I have been playing about with it on a database with thousands of images, what seems to happen is that there tends to be this one absolutely huge group which lots of different faces go into, then the program seems to match all the faces to that one group since the group is actually meaningless but just has a lot of data.

Perhaps, consider the percentage of content in said group that matches it rather than just ONE image, perhaps if the percentage is low, then just create a new group?

I have been thinking, what if we compare against all groups, collect the groups and then do a statistical test to check which is most likely to have a correlation.
One problem is when the dataset has a small amount of faces, of course, they may not match others but there may not be enough trials to statistically prove that it should join the group.

Unfortunately, I think a better solution needs to be taken

Unfortunately, I think a better solution needs to be taken


Sort List in Java

Description
Given the head of a linked list, return the list after sorting it in ascending order.
DSA Problem
Example 1:
Input: head = [4,2,1,3]
Output: [1,2,3,4]
Example 2:
Input: head = [-1,5,3,4,0]
Output: [-1,0,3,4,5]
Example 3:
Input: head = []
Output: []
Leetcode

@divyansh14kr please assign it to me

give the project a star and read the contribution.md


Build failing due to Folly/Optional.h file not being found

Folly/Optional.h not found
Showing these errors:
/Users/Documents/mobile/node_modules/react-native-multithreading/ios/RNMultithreading.mm:6:9: In file included from /Users/Documents/mobile/node_modules/react-native-multithreading/ios/RNMultithreading.mm:6:
/Users/Documents/mobile/ios/Pods/Headers/Public/ReactCommon/ReactCommon/RCTTurboModuleManager.h:8:9: In file included from /Users/Documents/mobile/ios/Pods/Headers/Public/ReactCommon/ReactCommon/RCTTurboModuleManager.h:8:
/Users/Documents/mobile/ios/Pods/Headers/Public/ReactCommon/ReactCommon/RCTTurboModule.h:17:9: In file included from /Users/Documents/mobile/ios/Pods/Headers/Public/ReactCommon/ReactCommon/RCTTurboModule.h:17:
I'm using:
React native 0.63.3
latest version of reanimated library (2.2.0)
Latest version of this library (1.1.1)
I have tried removing cache, pods, reinstalling, but nothing worked.

+1


Locale visibly switches on redirecting with statically generated pages

Version
nuxt-i18n: 6.15.1
nuxt: 2.14.0
Nuxt configuration
mode:

[X] universal

Nuxt-i18n configuration
i18n: {
    locales: ['fr', 'en'],
    defaultLocale: 'fr',
    detectBrowserLanguage: {
      useCookie: false,
      onlyOnRoot: true
    },
    vueI18n: {
      fallbackLocale: 'en',
    }
  }

Reproduction Link

I tried to reproduce the bug on codesandbox (here) but it does only appear on my local and production environment (https://ç.dev). Note: if you want to see the bug on my production environment, set your Browser language to anything other than French.
Steps to reproduce
Install a default Static Nuxt site + the module with above configuration.
What is Expected?
The redirect to the english version of the site should be triggered before the french version of the site loads.
What is actually happening?
The french version of the site load for a brief moment, then it is switched to the english version. This cause content to "jump" quickly when the domain loads. Visit my production website to see the bug.

How do you build for production? npm run build & npm run start or npm run generate? In other words, are you generatic static pages or running on node server?

I use generate.
But I think my problem is that I don't understand how to route my index files properly. I created an "en" folder in my "pages" folder and put my index.vue (english version) in it. I guess that is not right? I realize that, in my codesandbox, the url for the english portion of my site is "en/en". That's not good...However it does not do that when I do the same thing locally or on my production server, it's still "domain.com/en".
If what I did is fundamentally incorrect, how can I ask the module to render some index-english.vue file in the page directory?

This module does the job of creating locale-prefixed routes. So instead of creating multiple index routes, you are supposed to create just one /index.vue. Then you use locales to render locale-specific strings.

Oh, okay. I'm so sorry of not understanding the functionalities correctly.
So, all this module do is enable translated strings of text into a page? It does not support whole page translations?
Last question: what if I have a paragraph of text with links, ilatics, etc - Do I have to manually enter all the strings separately to translate my paragraph or can I bundle translation+markup in some way or another?
Thank you so much and I am sorry again to be so lost.

The point of using a translations module like this one is to create a page once and use translation keys on such page so that it's rendered in the user's language. You can translate whole pages that way.
The basic API for translating a string is $t('translation_key') which you can use from within template interpolation like for example:

{{ $t('translation_key') }}

You can check out more complex examples at:

http://kazupon.github.io/vue-i18n/guide/formatting.html
http://kazupon.github.io/vue-i18n/guide/interpolation.html#basic-usage

Last question: what if I have a paragraph of text with links, ilatics, etc - Do I have to manually enter all the strings separately to translate my paragraph or can I bundle translation+markup in some way or another?

You could do it with something like:

but that is not recommended as then the HTML would have to be part of translation and would have to be repeated for each language. Proper way would be to have placeholders in your translations and use this approach: http://kazupon.github.io/vue-i18n/guide/interpolation.html#basic-usage

I am reopening this because it had nothing to do with me misunderstanding routing. I tried with 1 dummy string translation and it still does it. To recap:
Version
nuxt-i18n: 6.15.1
nuxt: 2.14.5
Nuxt configuration
mode:

[X] universal

Nuxt-i18n configuration
i18n: {
    locales: ['fr', 'en'],
    defaultLocale: 'en',
    detectBrowserLanguage: {
      useCookie: false,
      onlyOnRoot: true
    },
    vueI18n: {
      fallbackLocale: 'fr',
      messages: {
        en: {
          s1: 'Hi'
        },
        fr: {
          s1: 'Allô'
        }
      }
    }
  }

Steps to reproduce

Install Nuxt and nuxt-i18n.
Add above configuration.
Add {{ $t('s1') }} somewhere in index.vue.
Run yarn dev and go to localhost:3000 in Chrome.

Note: Same thing happens in production. I use Netifly and deploy with yarn generate
What is Expected?
The redirect to the french version of the site should be triggered before the english version of the site loads.
What is actually happening?
The english version of the site load for a brief moment, then it is switched to the french version. This cause content to "jump" quickly when the domain loads.

I can't reproduce with yarn dev. Please provide a repro on code sandbox if you can reproduce with yarn dev.
Also, check if defaultLocale is correct because it's different than fallbackLocale which I find weird.

BTW. Your previous codesandbox is using an old version of nuxt-i18n (6.13.1) so make sure you update to latest first.
(You can see which version is used in yarn.lock. The codesandbox UI can be a bit confusing.)

I made a new codesandbox here and I updated nuxt-i18n to 6.13.1, but I am also unable to reproduce the problem. I am seriously puzzled.
defaultLocale and fallbackLocale seems both fine, as shown by the module's documentation.

You are unable to reproduce the problem? So there is no issue then?

I am unable to reproduce the issue in codesandbox, but I am able to reproduce the issue everywhere else (Locally and in production).
The only temporary solution I found was to add strategy: 'prefix' to my configuration file. Since there is a locale for the default too, it can't load anything from the domain.com/ path. However, I see that my  images/lazyloader are not loading properly anymore : there is content reflow or "jumping" even though I took steps to make sure that won't happen. When I remove strategy: 'prefix', the images are loading perfectly again, but the textual content is jumping.
As I said, I am able to reproduce the problem locally on a default Nuxt install with no lazyloading. Here is my configuration:
yarn create nuxt-app test

Programming language: Javascript
Package manager: Yarn
UI Framework: Tailwind CSS
Nuxt.js Modules: Axios
Testing Framework: None
Rendering Mode: Universal
Deployment Target: Static
Development Tools: jsconfig.json
Version Control system: Git

i18n: {
    locales: ['fr', 'en'],
    defaultLocale: 'en',
    detectBrowserLanguage: {
      useCookie: false,
      onlyOnRoot: true
    },
    vueI18n: {
      fallbackLocale: 'fr',
      messages: {
        en: {
          s1: 'Hi'
        },
        fr: {
          s1: 'Allô'
        }
      }
    }
  }

The bug is visible when I use yarn dev or yarn build && yarn generate && yarn start.
You can also see the issue on my production site here if you set your browser language to anything except french.
If someone would be kind enough to reproduce these steps locally and tell me whether they see the bug or not, that would be amazing. Thank you.

You can also see the issue on my production site here if you set your browser language to anything except french.

With defaultLocale: en? I find this hard to believe because that means that there will be no redirect even.

I can reproduce with statically generated site (and defaultLocale: fr rather than en like in your example).
I'm not sure if that is fixable though as statically generated site has to use some locale and it uses fr since it's the default one. Then when you load the root page, it loads that one and it happens to be visible for a short time before the browser manages to redirect to the English locale.

defaultLocale: 'fr' and fallbackLocale: 'en' are both correct on the same config, as shown in the basic usage of the docs. If I remove defaultLocale, production returns a 404 error. Not good. There is no mention in the docs that defaulLocale should not be used when detectBrowserLanguage is on.
But I get what you are implying.
For example, If defaultLocale: 'fr' is on and the browser is set to english, I would expect that the english version has to be loaded before and without the default version load. But if you say that it is not fixable with static sites, I can believe that.
(thanks a lot)

I just meant that you need the defaultLocale to be different than your default browser locale to reproduce since it reproduces when generated static page has a different locale than user's locale.
We'll keep this open for now. Maybe there is something that can be done but it would probably require some changes in Nuxt itself.

I'm sorry but I can't find any way to fix that. The initial page is loaded and rendered by the browser before I even have a chance to do anything from the module.
If you are really determined you could probably create some custom solution that would hide the page initially and transition it in once it's clear the there will be no redirect (maybe using the https://router.vuejs.org/api/#router-aftereach event listener).

Hello, did somebody find a solution for that issue? It's a huge cost of TTI, which mean cost of customers :).

Hello, did somebody find a solution for that issue? It's a huge cost of TTI, which mean cost of customers :).

Hello, did somebody find a solution for that issue? It's a huge cost of TTI, which mean cost of customers :).

Hello,
There are only two solutions:

Use SSR
Use nuxt nitro (which still not released).

@rchl is right, there is no way a static HTML page could detect cookies or execute some JS logic before full page load.
I think this isn't an issue even, it's how static HTML pages work by nature and this might be closed?
Thanks!

Hello @divine, what do you mean by the solution "use SSR" ?

Hello @divine, what do you mean by the solution "use SSR" ?

Sorry, I meant it to be deployment target: server: https://nuxtjs.org/docs/2.x/configuration-glossary/configuration-target
Thanks!

Since there is no way to fix that, I'll close it.


Allow posting until 3 or 4am for previous day

Should let me post after midnight to count a day's streak. Most of my scrapbook work I do at night, after work, so the midnight cutoff just breaks the experience & makes me frustrated with Scrappy.

I think the rest of #scrapbook would agree with you

I don't really agree with this. I think it's technically challenging and doesn't result in any clear benefit to most people—in fact, I think a later cutoff time has the potential of being confusing to people. I'm more in favor of decreasing the importance of streaks and make it not feel as bad to lose your streak.

What my brother tells me about Snapchat streaks is they reset after 24hours, I'm not sure if thats right but maybe scrappy could do something similar with scrappy so like 24hrs, idk how you'd do that technically but yep

Looks like it was this simple: https://github.com/hackclub/scrappy/commit/281f9c968ec46b65838eef9f45a685bf07743889

I'm now subtracting 4 hours from the users' local time, so if it's anytime before 4am local time, it still counts as the previous day. ⚡

wow it was lol


How to load "host.jsx" with  components "script-path" prop?

I can not get my "host.jsx" loaded with the "script-path" property of the "Panel" component. My code:
# App.vue
<template>
  <div id="app">
    <Panel
      script-path="./host/IDSN/host.jsx"  // path given as the documentation suggests
    >
      <HelloWorld :msg="msg"/>
    </Panel>
    <Menus refresh debug />
  </div>
</template>

# host.jsx
console.log('Host is online');
alert('Host is online');

I'd expect this to already run on app initialization. But it does not. Using loadScript works though:
import { loadScript } from "brutalism";
loadScript("/Users/myName/Library/Application Support/Adobe/CEP/extensions/myExtension/src/host/IDSN/host.jsx")

loadScript successfully triggers the alert (nothing in the console though) but I would prefer a solution with a relative path, obviously. Is there a setting I am missing? Or could it be a bug? I tested the templates "Brutalism Basic" and "Basic".

Well. My bad. The path has to be "./src/host/IDSN/host.jsx".


Acrylic/Semi-Transparent when lost focus instead of when focused

Description of the new feature/enhancement

I have alwaysOnTop set to true. The problem with that is, when Terminal app is fullscreen, and when I try to launch another app, I often thought the button does work, since I can't see the app launched behind the Terminal app.
Proposed technical implementation details (optional)
Have a setting that allows setting Terminal app to be acrylic/semi-transparent when lost focus. That way, even when it's fullscreen and always on top, I can still see what's happening behind it.
Appreciated!

Thanks! This is actually Windows policy. It is unfortunate, but they've decided that acrylic can only apply to the current active window. I know, that seems strange. We're investigating our options over in /dup #603!

Thanks! This is actually Windows policy. It is unfortunate, but they've decided that acrylic can only apply to the current active window. I know, that seems strange. We're investigating our options over in /dup #603!

What about solve my original problem is a different way?
E.g. alwaysOnTop only when window is not maximized.
E.g. dock the window at one side of the screen. It's like half screen alwaysOnTop.
The root need is I want to always be able to see the terminal. It doesn't necessarily mean alwaysOnTop of other applications.

So, in addition to the global alwaysOnTop setting, there's also a toggleAlwaysOnTop action, which you can invoke from the command palette (which is default bound to bound to ctrl+shift+p, "always on top"). That might make your scenario a little easier, where you don't always want always on top. That action will let you toggle the always on top setting at runtime


There is no instructions for preparing database table

Hi, Thanks to maintain plusplus server.
I try to migrate https://plusplusserver.herokuapp.com/ to our heroku stack. But there is no instructions to create SlackTeam and Thing tables at https://github.com/plusplusslack/pluspl.us/wiki/Installation
Can you provide the initial SQL statement or python code? Thanks.

I could create them by the following command under the plusplus directory on heroku instance.
$ FLASK_APP=app.py flask shell
Python 3.9.0 (default, Oct  6 2020, 15:19:54)
[GCC 9.3.0] on linux
App: plusplus.app [production]
Instance: /app/instance
>>> from plusplus.models import db
>>> db.create_all()


NOJIRA: Test uPortal 4 with Java 7 and 8 compilers

Checklist

[x] the individual contributor license agreement is signed
[x] commit message follows commit guidelines
[x] tests are included

Description of change

This updates the Travis CI build to generate the project using the Java 7 and Java 8 compilers.

Coverage decreased (-0.05%) to 22.818% when pulling 9f1a3c587c51a42864001bebbcea853745766af7 on ChristianMurphy:patch-2 into 7a5dc1d79ee638b154daecfd3838c2738cca8627 on Jasig:rel-4-3-patches.


Write cron wrapper script, which executes the Travis test script

The code for this issue can be found at the repo:
https://github.com/Hogfeldt/bioconda_recipe_gen_ci_utils

There is now a running cron job, which tests for the packages in 'travis/test.sh'.


Milestone 13: Label RSpec Tests

Label RSpec Tests
This branch includes:

[x] Write unit tests for label class
[x] Display list of labels when entering app

Thank you 👍


TrueGoldCoin Icon

@echapeta can you lowercase name for the first image?

You think you just need to have an image for 0xe51601f59a610dac06868aa711a05e9a4e291256 contract only.

Hello Vik, we uploaded the file 0xe51601f59a610dac06868aa711a05e9a4e291256.png , is already in lowercase. We also publiched the Trust app at our website www.truegoldcoin.com

Yes, we need an image only for the 0xe51601f59a610dac06868aa711a05e9a4e291256 contract !

@echapeta also realized it might be good to make the background transparent for the token, in the case we change backgorund in the app :)
Would you mind sending few tokens for my collection: 0xe47494379c1d48ee73454c251a6395fdd4f9eb43 ?

Dear Viktor,
We just sent 100 TGC to that address.
Best Regards,
Eduardo G. Chapeta
CEO
Interwave Global
From: Viktor Radchenko<EMAIL_ADDRESS>Sent: Monday, March 19, 2018 17:35
To: TrustWallet/tokens<EMAIL_ADDRESS>Cc: echapeta<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [TrustWallet/tokens] TrueGoldCoin Icon (#27)
@echapetahttps://github.com/echapeta also realized it might be good to make the background transparent for the token, in the case we change backgorund in the app :)
Would you mind sending few tokens for my collection: 0xe47494379c1d48ee73454c251a6395fdd4f9eb43 ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/TrustWallet/tokens/pull/27#issuecomment-374364890, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AjuWNRV-KqQ29wqcq8kh9xV4CojIqXLYks5tgBZrgaJpZM4Swz2p.

Received it! Thanks


Incompatibility Issue between CARLA Leaderboard 2.0 and CARLA 0.9.14 API

I have encountered an incompatibility between CARLA Leaderboard 2.0 and CARLA 0.9.14 API. The issue arises from the use of a variable named spectator_as_ego in the class carla.WorldSettings within the CARLA Leaderboard 2.0 codebase. However, this variable does not exist in the CARLA 0.9.14 API, leading to compatibility problems.
The error was caused by
https://github.com/carla-simulator/leaderboard/blob/da62c1b75124d6f24b47d4218e0f7169445441ae/leaderboard/leaderboard_evaluator.py#L178

The library roslibpy should also be added to the requirements.txt.

Could this be coded up but not documented in carla? I'm looking at this line

I think it was introduced in 0.9.15 https://github.com/carla-simulator/carla/commit/1501a13b1e5b15f2aaf34132466d983a354e2ca6

Hello @SailorBrandon. Yes, you are correct. As everyone has pointed out, the spectator_as_ego was introduced at 0.9.15, which makes it non compatible with the Leaderboard 2.0.
With that said, the spectator_as_ego variable just makes the initialization of the large maps more efficient by not loading some unnecessary tiles. If you really want to use CARLA 0.9.14, feel free to just remove that line, and everything should work fine.
Closing the issue, but feel free to reopen it if there are any other doubts


Shader error in 19.4

Running into this shader error - strangely it doesn't affect whether the shader works or not, but does make it show up in the 'compile errors' section of the material list:

Shader error in 'Lux Plus Standard (Metallic setup)': undeclared identifier '_DitherMaskLOD2D' at StandardCore.cginc(31) (on d3d11)
Compiling Vertex program with UNITY_PASS_FORWARDBASE DIRECTIONAL SHADOWS_SCREEN LIGHTPROBE_SH LOD_FADE_CROSSFADE _METALLICGLOSSMAP
Platform defines: UNITY_ENABLE_REFLECTION_BUFFERS UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING UNITY_ENABLE_DETAIL_NORMALMAP SHADER_API_DESKTOP UNITY_COLORSPACE_GAMMA UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_LIGHTMAP_FULL_HDR

hmm...think I posted this in the wrong repo, closing


Retain productsRequest

On tvOS, productsRequest got released at end of the loadProducts func, and the following callbacks won't be fired. Declare it as a class level variable fix the problem.

are you sure this is a problem only for loadProducts? my guess is it could happen for purchaseProduct. Not sure if this is the right fix.

It could happen for purchaseProduct on tvOS, but without this fix, loadProducts will silently fail with no response, so we don't have a chance to know what happen next.
PS: this fix is for tvOS specifically, iOS just don't need it.

Credit goes to Will
http://stackoverflow.com/questions/33842304/swift-tvos-in-app-purchase-doesnt-respond


every commit is rolled back after 5 seconds.

Hi, just familiariizing myself with this package, but I'm having some problems getting any transactions to successfully commit. I want to edit a set of documents in one transaction, so I created a transaction with the start function and I'm ending with a call to tx.commit. However, after 5 seconds I see an error that the transaction timed out and is rolled back. What am I doing wrong?
In the snippet below, I'm calling update several times to update many documents, then calling commit at the end.
    tx.start('shiftPlanIndex')
    if (oldIndex < newIndex) {
      let tasksToShift = Tasks.find({
        $and: [
          {planId: { $eq: task.planId }},
          {planIndex: { $lte: newIndex }}
        ]
      }).fetch()
      tasksToShift.forEach(t => {
        Tasks.update({_id: t._id}, {$set: { planIndex: t.planIndex - 1 }}, { tx: true })
      })
    }
    Tasks.update(taskId, {$set: { planIndex: newIndex }}, { tx: true })
    tx.commit()

The output looks like this:

Started "shiftPlanIndex" with transaction_id: WZF3DDWQpdEjdg4FT
I20160627-13:23:14.429(-4)? Pushed update command to stack: WZF3DDWQpdEjdg4FT
I20160627-13:23:14.429(-4)? Pushed update command to stack: WZF3DDWQpdEjdg4FT
I20160627-13:23:14.429(-4)? Pushed update command to stack: WZF3DDWQpdEjdg4FT
I20160627-13:23:14.430(-4)? Pushed update command to stack: WZF3DDWQpdEjdg4FT
I20160627-13:23:14.430(-4)? Beginning commit with transaction_id: WZF3DDWQpdEjdg4FT
I20160627-13:23:19.432(-4)? Transaction (WZF3DDWQpdEjdg4FT) was cancelled after being inactive for 5 seconds.
I20160627-13:23:19.439(-4)? Rollback reset transaction manager to clean state

Strange, that looks fine to me.  It just looks like the tx.commit() function isn't being called.  Maybe an error is getting swallowed silently (which would be an issue with the package), breaking the event  loop with the tx.commit() in it, while the Meteor.setTimeout call that checks the transaction is committed in reasonable time is still running (as it was initiated before the error).  Normally, in this situation, I'd expect to see an error reported in the console though.
I'm not overly familiar with ES2015 syntax, so I would have written:
    tx.start('shiftPlanIndex')
    if (oldIndex < newIndex) {
      var tasksToShift = Tasks.find({
        $and: [
          {planId: { $eq: task.planId }},
          {planIndex: { $lte: newIndex }}
        ]
      });
      tasksToShift.forEach(function (t) {
        Tasks.update({_id: t._id}, {$set: { planIndex: t.planIndex - 1 }}, { tx: true });
      });
    }
    Tasks.update({_id: taskId}, {$set: { planIndex: newIndex }}, { tx: true });
    tx.commit();

but I think it amounts to the same thing.
Maybe try the above code block above and see if there's any difference in the result.

0.8.2 contains some changes that might help with this (some improvements to error handling).


Cherry-pick #54 to 1.x

Signed-off-by: John Mazanec<EMAIL_ADDRESS>Description
Cherry picks #54 to 1.x branch
Issues Resolved
[List any issues this PR will resolve]
Check List

[ ] New functionality includes testing.

[ ] All tests pass

[ ] New functionality has been documented.

[ ] New functionality has javadoc added

[x] Commits are signed as per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Codecov Report

Merging #56 (9eb4d73) into 1.x (eb239ac) will decrease coverage by 0.32%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##                1.x      #56      +/-   ##
============================================
- Coverage     82.81%   82.48%   -0.33%
+ Complexity      476      475       -1
============================================
  Files            69       69
  Lines          1821     1821
  Branches        178      178
============================================
- Hits           1508     1502       -6
- Misses          252      257       +5
- Partials         61       62       +1

Impacted Files
Coverage Δ

.../java/org/opensearch/knn/index/v2011/KNNIndex.java
76.74% <0.00%> (-11.63%)
:arrow_down:

.../java/org/opensearch/knn/index/util/KNNEngine.java
89.47% <0.00%> (-5.27%)
:arrow_down:

Continue to review full report at Codecov.

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


help！！！

大哥，有中文的md吗？介绍内容翻译过后能看个大概，但推敲细节时还得是看原文，奈何英文实在是菜。

No worry, practice your English hard, and one day you will understand.
菜就多練

There's no plan to maintain multiple versions of documentation due to the extra effort. We'll focus on improving coverage and clarity of our current documentation in English.


Create "Designing for Backstage" Document

We're super excited to be designing in the open. In the coming weeks, we'll be refining our process of how we (Backstage designers at Spotify) collaboratively work with internal and external contributors to design a better DX for teams all over the world.
The 'Designing for Backstage' doc will ideally cover some of these bases:

Design principles - what does Backstage uphold when it comes to building rad DX?
Design practice - how do we work? how can you work with us?
Resources and assets - where to access design guidelines, etc.
More to come! This will be an iterative doc - we're happy to take input from the community to see what you all need.

Example (flows for how we might all work together):

Isn’t this one done?


Change cheyenne to derecho

I have changed this everywhere except under the job status scripts.

Also change /glade/scratch and /glade/p.


Showcase Submission for c2-collatz-conjecture

Thank you NAGESH M H for your contribution! A member of the Coding Train team will review it shortly.

Collatz Conjecture Visualization (Particles Steering)
NAGESH M H

Lovely, such a fun combination of different techniques!


powershell.exe still receives PSModulePath for pwsh when called indirectly

Prerequisites

[X] Write a descriptive title.
[X] Make sure you are able to repro it on the latest released version
[X] Search the existing issues.
[X] Refer to the FAQ.
[X] Refer to Differences between Windows PowerShell 5.1 and PowerShell.

Steps to reproduce
This is a dupe of #12997 which was closed.

Set up invocation of powershell.exe in some sort of non-PS tool.
Example below of a bat with New-Guid (different between PS versions)
Invoke the bat from pwsh.

example.bat
echo %psmodulepath%

powershell.exe "$env:PSModulePath -split ';' | Select-String 'PowerShell'; New-Guid"

Expected behavior
Powershell.exe instance does not contain `C:\Program Files\PowerShell\7`

Actual behavior
Powershell.exe still has PS7 values in PSModulePath and New-Guid throws an error. This is in a pwsh.exe window.
PS C:\Users\gsanchez\temp> .\example.bat

C:\Users\gsanchez\temp>echo C:\Users\gsanchez\Documents\PowerShell\Modules;C:\Program Files\PowerShell\Modules;c:\program files\powershell\7\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules;C:\Program Files (x86)\Windows Kits\10\Microsoft Application Virtualization\Sequencer\AppvPkgConverter;C:\Program Files (x86)\Windows Kits\10\Microsoft Application Virtualization\Sequencer\AppvSequencer;C:\Program Files (x86)\Windows Kits\10\Microsoft Application Virtualization\
C:\Users\gsanchez\Documents\PowerShell\Modules;C:\Program Files\PowerShell\Modules;c:\program files\powershell\7\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules;C:\Program Files (x86)\Windows Kits\10\Microsoft Application Virtualization\Sequencer\AppvPkgConverter;C:\Program Files (x86)\Windows Kits\10\Microsoft Application Virtualization\Sequencer\AppvSequencer;C:\Program Files (x86)\Windows Kits\10\Microsoft Application Virtualization\

C:\Users\gsanchez\temp>powershell.exe "$env:PSModulePath -split ';' | Select-String 'PowerShell'; New-Guid"

C:\Users\gsanchez\Documents\PowerShell\Modules
C:\Program Files\PowerShell\Modules
c:\program files\powershell\7\Modules
C:\Program Files\WindowsPowerShell\Modules
C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
New-Guid : The term 'New-Guid' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:60
+ $env:PSModulePath -split ';' | Select-String 'PowerShell'; New-Guid
+                                                            ~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (New-Guid:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Error details
New-Guid : The term 'New-Guid' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:52
+ $env:Path -split ';' | Select-String 'PowerShell'; New-Guid
+                                                    ~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (New-Guid:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Environment data
Name                           Value
----                           -----
PSVersion                      7.3.10
PSEdition                      Core
GitCommitId                    7.3.10
OS                             Microsoft Windows 10.0.22631
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

Visuals
No response

You're right. I wasn't paying attention. Are you launching the example.bat from a pwsh.exe window? That's the issue. PowerShell getting invoked indirectly by subprocesses definitely happens. I have a pwsh.exe session up all the time as my daily driver, and when I kick off other tools it's when I notice. My current fix is to launch a new powershell.exe session to run known processes that have issue.

You're right. I wasn't paying attention. Are you launching the example.bat from a pwsh.exe window? That's the issue. PowerShell getting invoked indirectly by subprocesses definitely happens. I have a pwsh.exe session up all the time as my daily driver, and when I kick off other tools it's when I notice. My current fix is to launch a new powershell.exe session to run known processes that have issue.

No I'm launching it from Cmd.exe
If you run A.exe from within B.exe it will get all of B's environment variables. So if you run PowerShell.exe from pwsh, (or cmd started from pwsh) the environment variables set in pwsh will carry down into it. That's OK for pwsh starting from PowerShell.exe because it is designed to add things but PowerShell starting from pwsh can be expected to get settings that don't belong there .

but PowerShell starting from pwsh can be expected to get settings that don't belong there .

I think the point of the original (and this) issue is that it's not obvious. There are multiple scenarios where unexpected things can happen. We are technical enough to understand the reasoning, but for less technical folks they may hit this issue and never discover the problem.
In the original issue I mentioned discovering this with Chocolatey, but I've also seen other cases (e.g. config management tools). With pwsh.exe launching powershell.exe there is already some "magic" being done by modifying the environment variable. "Magic" because it happens without the user knowing, and therefore difficult to discover when issues occur.
Possible solutions:

It may be reasonable to consider doing some similar "magic" for other processes. Maybe having a list of binaries that we can append to via profile.
Maybe update powershell.exe to always ignore pwsh module paths.

It is completely standard behaviour to inherit environment variables.

Maybe update powershell.exe to always ignore pwsh module paths.

They are just a list of directories, there is nothing magic about them.
What should happen is that PowerShell 5.1 should not load a module that has the following in its manifest
[	CompatiblePSEditions = @('Core')
	PowerShellVersion = '7.2'

CompatiblePSEditions should either be empty or contain 'Desktop', and if a version number appears that it is not greater than 5.1 (or what ever the current powershell is).

you might wind up in hell, but one can always hijack process creation... 😈
In case you've got control over the initial pwsh, using PSDetour you can actively remove all $env:PSModulePath from the processes that are created from your pwsh (a.k.a. PowerShell Core / 7) session...
<#
BOOL CreateProcessW(
  [in, optional]      LPCWSTR               lpApplicationName,
  [in, out, optional] LPWSTR                lpCommandLine,
  [in, optional]      LPSECURITY_ATTRIBUTES lpProcessAttributes,
  [in, optional]      LPSECURITY_ATTRIBUTES lpThreadAttributes,
  [in]                BOOL                  bInheritHandles,
  [in]                DWORD                 dwCreationFlags,
  [in, optional]      LPVOID                lpEnvironment,
  [in, optional]      LPCWSTR               lpCurrentDirectory,
  [in]                LPSTARTUPINFOW        lpStartupInfo,
  [out]               LPPROCESS_INFORMATION lpProcessInformation
);
#>

Import-Module PSDetour

$h = New-PSDetourHook -DllName Kernel32.dll -MethodName 'CreateProcessW' -Action {
  [OutputType([bool])]
  param(
    [IntPtr]$ApplicationName,
    [IntPtr]$CommandLine,
    [IntPtr]$ProcessAttributes,
    [IntPtr]$ThreadAttributes,
    [bool]$InheritHandles,
    [int]$CreationFlags,
    [IntPtr]$Environment,
    [IntPtr]$CurrentDirectory,
    [IntPtr]$StartupInfo,
    [IntPtr]$ProcessInformation
  )

  $__psmodulepath = $env:PSModulePath
  $env:PSModulePath = $null

  $res = $this.Invoke($lpApplicationName,
    $lpCommandLine,
    $lpProcessAttributes,
    $lpThreadAttributes,
    $bInheritHandles,
    $dwCreationFlags,
    $lpEnvironment,
    $lpCurrentDirectory,
    $lpStartupInfo,
    $lpProcessInformation)

  $env:PSModulePath = $__psmodulepath

  $res
}
Start-PSDetour $h


Azure cosmosDB create bug on Ubuntu 20

This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az cosmosdb create
Errors:
list index out of range
Traceback (most recent call last):
python3.6/site-packages/knack/cli.py, ln 215, in invoke
    cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 579, in execute
    parsed_args = self.parser.parse_args(args)
python3.6/site-packages/knack/parser.py, ln 262, in parse_args
    return super(CLICommandParser, self).parse_args(args)
az/lib/python3.6/argparse.py, ln 1734, in parse_args
    args, argv = self.parse_known_args(args, namespace)
...
az/lib/python3.6/argparse.py, ln 1840, in take_action
    action(self, namespace, argument_values, option_string)
cli/command_modules/cosmosdb/actions.py, ln 58, in __call__
    failover_priority=int(comps[1]),
IndexError: list index out of range

To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Put any pre-requisite steps here...
az cosmosdb create --name {} --resource-group {} --locations {}

Expected Behavior
Environment Summary
Linux-5.4.0-48-generic-x86_64-with-debian-bullseye-sid
Python 3.6.10
Installer: DEB

azure-cli 2.12.1 *

Additional Context

found a root of the problem


Permission for downloading pretrained image features

Hi Peter,
I clicked on the 2014 Train/Val Image Features (120K / 23GB) link to download pretrained images but I am unable to which I believe is due to the permissions set for public users. I have attached below a screenshot of the problem I'm facing.

The same problem occurs for 2014 Testing Image Features (40K / 7.3GB) link.

It is fine. I have found the link for the pretrained features in your bottom-up-attention
 github repo readme file.

Great, no problem.

I will update the links I had forgotten about these.


Cannot install with Mid-2010 Mac Pro, iogear GBU521, stock broadcom Wifi

Stock BT card is busted an non functional. Here's the install log:
--- Initiating system compatibility check ---
Verifying Mac model reference...        ioreg: error: can't obtain properties.
OK
Verifying Mac board-id...               ioreg: error: can't obtain properties.
OK
Verifying OS X version...               OK
Verifying Wi-Fi hardware...             OK
Verifying Bluetooth version...          ioreg: error: can't obtain properties.
NOT OK. No active Bluetooth hardware detected. Aborting.
BT info:
Apple Bluetooth Software Version:	4.3.4f4 15601
Hardware, Features, and Settings:
Name:	HappyDays
Address:	00-02-72-C9-23-BF
Bluetooth Low Energy Supported:	Yes
Handoff Supported:	No
Instant Hotspot Supported:	No
Manufacturer:	Broadcom
Transport:	USB
Chipset:	20702A3
Firmware Version:	v14 c4096
Bluetooth Power:	On
Discoverable:	On
Connectable:	Yes
Auto Seek Pointing:	On
Remote wake:	On
Vendor ID:	0x0A5C
Product ID:	0x21E8
HCI Version:	0x6
HCI Revision:	0x1000
LMP Version:	0x6
LMP Subversion:	0x220E
Device Type (Major):	Computer
Device Type (Complete):	Mac Desktop
Composite Class Of Device:	0x380104
Device Class (Major):	0x01
Device Class (Minor):	0x01
Service Class:	0x1C0
Auto Seek Keyboard:	On
Wifi info
Card Type:	AirPort Extreme  (0x14E4, 0x8E)
Firmware Version:	Broadcom BCM43xx 1.0 (<IP_ADDRESS>.24)
MAC Address:	00:26:08:fe:ca:b8
Locale:	FCC
Country Code:	US
Supported PHY Modes:	802.11 a/b/g/n
Supported Channels:	1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140, 149, 153, 157, 161, 165
Wake On Wireless:	Supported
AirDrop:	Supported
Status:	Connected

Duplicate of #100.
There is a tentative fix for this issue in CAT beta 2.0.1. Please report back if this works for you or not.

Getting this when opening CAT beta app

Weird, for some reason the zip file was getting corrupted on my mac. I sent it to Dropbox on my iPhone and then to my Mac and I was able to use the app
Unfortunately, still no love
--- OS X Continuity Activation Tool 2.0.1 beta ---
by dokterdok
--- Initiating system compatibility check ---
Verifying Mac model reference...        ioreg: error: can't obtain properties.
OK
Verifying Mac board-id...               ioreg: error: can't obtain properties.
OK
Verifying OS X version...               OK
Verifying Wi-Fi hardware...             OK
Verifying Bluetooth version...          ioreg: error: can't obtain properties.
NOT OK. No active Bluetooth hardware detected. Aborting.
Press any key to go back to the main menu...


Tip & faceting

I happened to notice an oddity with selections and faceting: https://observablehq.com/d/a03f70ae5c5962c4
It might be related to https://github.com/observablehq/plot/issues/1776 but I can still reproduce the behavior I'm seeing with PlotF from the notebook linked in https://github.com/observablehq/plot/pull/1777 so it does not look like the fix for that one also fixes this one.

In this plot, the selection can sometimes be null even though the user is hovering over an item. Giving the plot a wide width fixes it, so it might have to do with the transition between facets and the sequencing of the events that triggers. Interestingly, moving from left to right seems to work, but not right to left.

Thanks for the report! It's a different bug, which happens when two facets change their value at the same time: they both dispatch an event, and the last one wins.

🎉 Thanks for the fix!


File Browser: indexer picks up post notifications

File Browser: indexer picks up post notifications

STATUS: Code picks up entries from simulated post requests. Still need to test with POST requests from an actual blue box

Please connect your Pull Requests to your issues by adding a comment in the PRs: "connected to #nn"

UPDATE: Indexer does pick up notifications from a Blue Box. Still need to work on mappings


Add secret support

Add support for docker secrets, per #28
Strictly speaking, it should be an error if external=false in the top-level secret defintion (as opposed to just not being present) probably... ever, but I don't think it's worth the pain of trying to make it happen.
I also tweaked the tests very slightly so they'll run on both Windows and Unix.

@ipsi Thanks!


k4run: return exit code 0 if -n -1 was used and Gaudi returned exit code 4

Fixes https://github.com/key4hep/k4FWCore/issues/125
BEGINRELEASENOTES

k4run: return exit code 0 if -n -1 was used and Gaudi returned exit code 4 (user requested stop)

ENDRELEASENOTES

PodioDataSvc always stops the run (this is the scheduled stop) when there aren't any more events to read. So when EvtMax == -1 it will certainly happen but it's also possible when EvtMax is greater than the number of events, so to cover both the check on EvtMax would have to be removed. It depends if we consider a failure that case or not. One option would be to return 0 but add a warning that we are trying to read more events than there are available. At the moment, you get an INFO message saying that the end of the file was reached, whether EvtMax was -1 or not:
EventDataSvc         INFO Reached end of file with event 100

Imo telling Gaudi to read more events than you have in your file should not return 0

I agree: no gratuitous hex, and return error when less events than requested were processed.

It's a bit trickier than that because the case when you read the exact number of events in the file also gives you a code 4 and you can't distinguish from k4run. So the options are

This PR: check for -1, then both reading the exact number of events and reading more events would not return 0
No check, return always 0 when stopping reading and give an error if you try to read more than there are available, maybe an option to make this a warning if you don't care about that from the user side

I'm not sure if stopping the run when you try to read beyond the maximum event (instead of now that if a file has N events and you read the N, that triggers the stop call there, but I think that means don't read the next event) would work, but that would make this PR work

Sounds easy but simply modifying the current check to trigger when reading one beyond the last one will lead to problems as the algorithms continue in the current event. And if it's one beyond the current one then there is no event and everything we have under execute expects to run on an actual good event

Yes looks like it will not be that easy to fix. I have moved one of the tests to cover this case now and added another one testing for -1 again.
I will convert back to draft for now until I found a solution

I have changed this so that the scheduled stop is only issued with --num-events=-1.
When requesting to run with more events than available Gaudi crashes (rightfully so I think).

I prefer the current behavior where it stops at the last one instead of crashing, there could be lots of places where this happens and works fine and this would break that.

The current behaviour masks if you are doing something wrong

Just to add one more point for discussion here: There might be a legitimate reason for running with more events than available from a file. If you run things on a batch system and you have, e.g. an input file with 102k and you split that into jobs of 10k events each, the last one will only have 2k events, but adjusting for that in the surrounding batch configuration might be rather complicated (or at least introduce overhead there).

I can of course remove all the PodioDataSvc changes from this and just make it always return 0 when a user requested stop happened if that is wanted. I guess it is somewhat justified as we don't tell Gaudi how many events it should process but only what the maximum number of events to process is :shrug:

I can of course remove all the PodioDataSvc changes from this

Yes please. Independently of what we do this makes it crash in some situations while currently it doesn't so that isn't an improvement. Re always 0 or not I don't think I have a strong opinion. @andresailer prefers error code when processing less than requested from one of the first comments

Doing this I remember I notice again why I did it the way I did. With just the change in k4run I would also still return 4 for processing exactly the right amount of events. I.e. the only thing we can easily do is always return 0 instead of 4 even when trying to process more events than available.
Otherwise I would need a way to ask Gaudi afterwards how many events it processed, unfortunately Gaudi doesn't seem to keep track of that...

I guess I will grudgingly survive, if things are successful even when reading less events than requested?

Now it does the following:
If run with -n m and enough events exist, no bounds checking is done and Gaudi returns 0 on its own.
In all other cases bounds checking is done and a stop is requested when running out of events.
If -n -1 we change the return code from 4 to 0.
Else, i.e. when requesting more events than available we return what Gaudi returns i.e. return code 4

I think I made all my comments, other than that it looks good. We can change the tests that don't need to pass using a regular expression in this or another PR.
This table should summarize the status and changes

 Previously
  Now

 Less events than available
  0
  0

 Same events as available
  4
  0

 More events than available
  4
  4

Thanks for the summary table. I would put that into the release notes, so that people don't have to scroll all the way down (or even have to go to the PR for the details).

let me know when you are happy to merge, then I will transfer the same changes to the legacy service and add tests for that one as well


The model trained learnt quite a lot color infor?

I found that the background results are complete darkness while using infrared dataset. Every pixels of the results are almost 0. Maybe can't adapt to Infrared Images.

Hi, we didn't test the model for Infrared Images, but I believe it should work. I will recommend inspecting the alignment image along the training process and tune the learning rate in case of a fatal failure.

I am closing this issue.


Background thread maintaining state of governance-approved cellar IDs

As things are currently written (as of now in the branch collin/cork), each time a strategy provider sends data to steward will incur a gRPC query to the cork module to check if the contained cellar_id is approved by governance. To reduce overhead, we should maintain a local copy of this state that updates periodically. If data is submitted to steward with a cellar_id not contained in steward's local state, it should either then query the cork module to make sure it hasn't been added since the last time steward updated it's state, or just force a state update and then check again.

Current flow in my head:
The cache will update on some cadence. When an SP submits a contract call request, there are two possibilities:

Steward's cache does not contain the target cellar ID. When this happens, steward should refresh its cache in case the cellar ID was not approved on chain since the last cache update, and then a second check for the cellar ID will occur. Then
a. If the cellar ID is not approved, return a tonic status message to that effect
b. If it is, continue as normal
Steward's approved cellar cache contains the request cellar ID. Process the request. We don't need to worry about the case where a cellar ID has been removed from the whitelist since the last cache update since the cork module will reject the request.

I think the intent would probably be to check on a pretty regular cadence. It's a relatively simple query, doing it every 60 seconds or so is fine. We should care about the case where a cellar ID has been removed, and we should update the cache to reflect the current state every time we query it, but in the event that a cork goes through in that window of time after it has been removed but before the cache is updated, then yeah, we can rely on it being rejected by the chain. We don't have to flush the cache on a match, but we should be flushing it fairly often.

I think the intent would probably be to check on a pretty regular cadence. It's a relatively simple query, doing it every 60 seconds or so is fine. We should care about the case where a cellar ID has been removed, and we should update the cache to reflect the current state every time we query it, but in the event that a cork goes through in that window of time after it has been removed but before the cache is updated, then yeah, we can rely on it being rejected by the chain. We don't have to flush the cache on a match, but we should be flushing it fairly often.

Thanks. Also, I'm looking for crate options but since caches are generally KV pairs I'm not sure there will be a good out-of-the-box solution for this. It's pretty simple so I don't think it would be complicated to just implement myself. Wanted to raise this in case you already had an approach in mind that I'm missing.


CODE RUB: InvalidAIFileOrchestrationException Class Update v2.10.1

Updated InvalidAIFileOrchestrationException class by removing constructors in which the error message was hard coded in. Updated all relevant service files to include message.

Closed Pull Request. Resolved in PR #550.


Alpha ESS Website

Website changed to cloud.alphaess.com, seems to have broken the add on?

Yup, I'll see when I find some time to fix it. Already noticed a few days ago, that the website uses a different API Endpoint to fetch the data.

DNS rewrite using AdGuard from www.alphaess.com to cloud.alphaess.com seems to be working as a temp fix. I’ll monitor and post back if it stops working.

DNS rewrite using AdGuard from www.alphaess.com to cloud.alphaess.com seems to be working as a temp fix. I’ll monitor and post back if it stops working.

Can you expand on your temp fix and what you did? Its leaving us high and dry at the moment with no automatons triggered

I’m running AdGuard as an add-on, it allows me to DNS rewrite internet URLs to local IPs. For example, www.ha.com to <IP_ADDRESS>, so I don’t have to route HA activity over the internet as it’s attached to a real website. I just added an additional DNS rewrite from www.alphaess.com to cloud.alphaess.com. I have notice in the last few hours that things have stopped working but so has the AlphaESS App so I assume that’s related to the changes.

Just to add that any request for www.alphaess.com will be replaced with cloud.alphaess.com on my local network. Doesn’t matter what makes the request apart from anything Apple of course with private relay enabled.

Where in the settings are you doing it? (fresh adguard user)

I think it's all a bit academic right now, I'm getting no data from cloud.alphaess.com?

I'm getting this from the dongle whether I have the DNS rewrite in place or not?
Also, looking at what you have above this looks like a browser extension not the full-fledged HA add-on which replaces your DNS.

Can't say it won't fall over again and as I said this is a temp fix. I have now created custom client settings for the AlphaESS dongle and added the DNS rewrite for other clients.

@Spookster from the menu in your picture select "Filters" and then "DNS rewrites" then you can add a DNS rewrite for www.alphaess.com to cloud.alphaess.com

Yeah, its working for me but it seemed to block the battery with communicating directly with just the rewrite. That's why I set the battery as a custom client and pointed it at Google's DNS server. Seems to be working for now, hopefully a quick fix when DasLetzeEinhorn finds some time.

hey guys,
currently working on a fix. even though i pushed a new version to the master branch, please DON'T update yet. Doesn't work as of now. Will post an update here as soon as it works :)

should work now, could you please test the version 0.1.4 and let me know if it works on your system as well?
thanks!

Working here, thanks!

Seems good, many thanks.

should work now, could you please test the version 0.1.4 and let me know if it works on your system as well? thanks!

Thanks all good for me too with 0.1.4


NULL pointer dereference still exists in the stb_image.h

Vulnerability description
version: latest commit 490ec15
poc: poc
command: ./img2sixel poc
This is similar to issue #51, but it seems that the patch https://github.com/libsixel/libsixel/commit/f283ece716e925c4a4a8f5b94b99534b0b11d9be has not fixed the vulnerability.
Here is the trace reported by ASAN:
user@5188a818814c:~/libsixel$ ./img2sixel poc
AddressSanitizer:DEADLYSIGNAL
=================================================================
==32544==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7ffff74f66da bp 0x7fffffffd5a0 sp 0x7fffffffd560 T0)
==32544==The signal is caused by a READ memory access.
==32544==Hint: address points to the zero page.
    #0 0x7ffff74f66d9 in stbi__convert_format ../src/stb_image.h:1769
    #1 0x7ffff7521fe6 in stbi__pic_load ../src/stb_image.h:6458
    #2 0x7ffff74f29e9 in stbi__load_main ../src/stb_image.h:1141
    #3 0x7ffff74f31a0 in stbi__load_and_postprocess_8bit ../src/stb_image.h:1243
    #4 0x7ffff752a9a8 in load_with_builtin ../src/loader.c:893
    #5 0x7ffff752b210 in sixel_helper_load_image_file ../src/loader.c:1379
    #6 0x7ffff74e17e0 in sixel_encoder_encode ../src/encoder.c:1696
    #7 0x555555558aef in main ../converters/img2sixel.c:439
    #8 0x7ffff72c8082 in __libc_start_main ../csu/libc-start.c:308
    #9 0x55555555634d in _start (img2sixel+0x234d)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV ../src/stb_image.h:1769 in stbi__convert_format
==32544==ABORTING

Vulnerability analysis
Actually, calling stbi__malloc_mad3 on line 6447 does not return a null pointer. However, result will be freed (line 6452) and set to 0 (line 6453) if 0 is returned when calling stbi__pic_load_core at line 6451. This will eventually result in a null pointer dereference.
https://github.com/libsixel/libsixel/blob/490ec15087e37d8e1395e4dbfb99fc543c5bae5d/src/stb_image.h#L6446-L6458

https://nvd.nist.gov/vuln/detail/CVE-2021-45340