Rotated image: zooming in uses position as if no rotation was applied

I'm using  openseadragon 2.3.1, creating the viewer like this:
            viewer = new OpenSeadragon({
                id: "openseadragon1",
                prefixUrl: '/images/openseadragon/")',
                showRotationControl: false,
                maxZoomPixelRatio: 2,
                minZoomImageRatio: 0.2,
                visibilityRatio: 1,
                zoomPerScroll: 2,
                showNavigator: true,
            });
            viewer.gestureSettingsMouse.clickToZoom = false;
            viewer.viewport.setRotation(degreesClockwiseToRotate);

When degreesClockwiseToRotate is 0, zooming in with the mousewheel zooms on the position directly under mouse cursor. However, when degreesClockwiseToRotate is 90 zooming in the lower right corner zooms in on the lower left corner, zooming in top left corner zooms in on top right corner.

Nevermind I had 2 overlays stacked on top of each other


sc-alert classes wrong colors

I found some wrong colors in the sc-alert css codes.
the class .alert-white is bad and .alert-primary is the same as .alert-success.
Here is an excerpt from the theme.css file and my suggestions:
.alert-primary {
	color:#fff;
	background-color:#28a745;   /* same as success – better #2943E6   */
	border-color:#28a745;       /* same as success – better #2943E6   */
}
.alert-primary hr {
	border-top-color:#038f6a;   /* same as success – better #5367e0   */
}

.alert-success {
	color:#fff;
	background-color:#28a745;
	border-color:#28a745;
}

.alert-white {
	color:#fff;                /* white on white - better #000 */
	background-color:white;
	border-color:white;
}
.alert-white hr {
	border-top-color:#f2f2f2;
}
.alert-white .alert-link {
	color:#e6e6e6;              /* better #333 */
}

.alert-lightblue {
	color:#fff;                 /* white too bright - better #000 */
	background-color:#e8f3ec;   /* better #adc8e6 */
	border-color:#e8f3ec;       /* better #adc8e6 */
}
.alert-lightblue hr {
	border-top-color:#d7eade;   /* better #7d93ad */
}
.alert-lightblue .alert-link {
	color:#e6e6e6;              /* better #333 */
}

btw your /assets/css/ has a file custom.css, when you update the theme the existing custom.css will be overwriten with the new empty file.
Better to use a name like custom.css.example .
Yes – I know, always  backup before update :smile:
I use the latest version of Mundana.
Thank you for this nice and usefull theme.

Hi @fugo
I fixed it with the latest version 1.3.1
Have you tried with that version?

btw your /assets/css/ has a file custom.css, when you update the theme the existing custom.css will be overwriten with the new empty file.
Better to use a name like custom.css.example

If you want to avoid losing changes with each update, you will need to create a child theme, and copy your modified files into the folders of that child theme.
You can follow the steps in the Grav documentation.


[Question] How to ingest data to public cloud securely

I am planning to integrate influxdb and telegraf for my IoT solution.
Currently, we have sensors located at multiple sites and would like to scrape these data using telegraf. However, how can I push these data to a central influxdb on cloud securely?
Does the OSS version supports this feature?

I'd suggest using the community forums for this question.  Also, perhaps talking with @samhld would help tease apart the exact architecture you are after.... in terms of the various hops for the data.

@WeiTangLau Happy to help here!  The communication from Telegraf to InfluxDBCloud will be TLS encrypted and the data arriving in your account is ensured by your authorization token.  Are you asking about security in addition to that in some way?
If you'd prefer to discuss over a call, I can send a Zoom invite to the best email for you!


Feature: template preview endpoint

What this does
Add an endpoint which renders templates based on the provided parameters.
This is useful, for example, for templates which we will be sending by email, preview allows a faster edition than having to setup emails and send one for each small change you want to see.
Checklist

[X] Add an endpoint which renders templates (as a generic, so it takes the name as a parameter)
[X] Receive variables used in the context and provide them to the template
[X] Allow nested variables (dicts inside dicts)
[X] Allow for model variables (which need to be an instance of a Django model)

How to test
GET or POST to http://localhost:8000/api/template_preview/
You MUST provide the template name either through a query parameter or in the body. i.e.: http://localhost:8000/api/template_preview/?template=core/index-placeholder.html
Any arguments of the context can be provided through query parameters or in the body.
Both multiform and JSON bodies should be handled (DRF does that).
You may use Insomnia or Postman if it is easier to add the parameters and it will still work.

I tried a get here:
https://tn-spa-bootstrapper-pr-193.herokuapp.com/api/template_preview/?template=core/index-placeholder.html/
but did not see anything!

I tried a get here: https://tn-spa-bootstrapper-pr-193.herokuapp.com/api/template_preview/?template=core/index-placeholder.html/ but did not see anything!

@paribaker Weird! I do not have access to this project in Heroku, but can you confirm settings.DEBUG is set to True in the review app? Otherwise, it will be just a non-existent url 😅

Ah I see this is only available in local, staging and review apps then.
Looks great!


BaseHtml:: normalizeMaxLength private

Is there a reason because this method is private?
https://github.com/yiisoft/yii2/blob/eb198413f22d67fc2ed213b2c469633ead50c08e/framework/helpers/BaseHtml.php#L1340
I'm creating a textarea widget with used characters counter and I'd need to get max length of model attribute.
Could be useful to split this method into two, the first to return max length and the second to return the same output of subject method?

method should be protected.

Anyway, If it was protected, it could not be used from other classes (that do not extend BaseHtml or Html class).
What do you think if i create a PR to create a stringMaxLength method and rewrite nomalizeMaxLength that reads value from previous new method?


fix test generation

/cc @kratiahuja Test generation seems to be incorrect, failing tests were being generated for valid files. I noticed this while working on https://github.com/tildeio/glimmer/issues/243
This fixes the issue

Sorry for the issue Gavin! I'll take a look at it later today. I am away from the laptop right now.

great, thanks!

I think there is one minor issue of the test description, other than this looks good. cc: @GavinJoyce

@GavinJoyce 1.0.2 is published!


Move LIDO driver injection to the Web UI from easyinstall

Worked on in https://github.com/akuker/RASCSI/pull/946


Cannot build on M1 mac.

I can't build on M1 mac CPUs because they are not compatible.
There are about 100 errors in Realm. Some of them are listed below.
Undefined symbol: realm::ArrayBinary::set(unsigned long, realm::BinaryData)
This is due to CPU incompatibilities.
So you can solve this by adding arm64 to the Excluded Architectures in Clipy

Theres a Apple Silicon beta build floating out in the wild, but it doesn't launch. maybe you could help?
https://github.com/ian4hu/Clipy/issues/57

Yes, it is possible.
My PC is an M1 mac, so I can verify this.

Hi there👋
I fixed it.
Check out bellow pull request
https://github.com/Clipy/Clipy/pull/457

@keisukeYamagishi Thank you for the issue and PR 👍
We have upgraded the library so that it can be built on M1 mac ( #465 ).


Upgrading to react-native 0.27.2 react 15.1.0

tested on Android
tested on iOS
I made sure not to remove any custom editing for Xcode libraries and gradle
the Navigation on Android is giving me an error

Failed propType: Required prop `sceneRendererProps.isRequired` was not specified in `SceneView`. Check the render method of `NavigationCard`.

@fabriziomoscon thank you for this, and sorry it took so long! Our team has been busy with project work, but we are now committed to get back on track :)


Feature suggestion: I would urge the engineering education team to add a search feature where one can search the available articles before suggesting his or her article.

Is your feature suggestion related to a current problem or issue? Please describe.
A clear and concise description of what the problem is. Ex. I''ve found it difficult when [...]
After going through most of the articles especially closed ones, I have found that most of the people submitting articles are not aware if the idea had been implemented before and hence ends up publishing a similar article. Addition of the search feature in the engineering program issue part will help them to avoid replication and hence making the task easy for even the content moderator to review them.
Describe the solution you'd like to implement to the program
Addition of the search feature in the engineering program issue part will help them to avoid replication and hence making the task easy for even the content moderator to review them. This feature will make even the entire process easy to handle and complete within a short duration of time.
Describe alternatives you've considered or seen
Alternatively, grouping all the articles to their domains will also make this simple to access.
Additional context on how you could go about building this
Add any other context or screenshots about the feature request here.
Using Javascript a similar algorithm can be used to implement the search bar
function findUserInfo(article title, searchString){
return userName.toLowerCase().substr(0,searchString.length).includes(searchString.toLowerCase());
}

Hi @ROYFORDWANYOIKE2001
I'm not sure I get your question well but. There are various ways a writer can check if the article has been published or not. In addition to the search bar on the website (as you have mentioned), you can also look for pull requests and issues submitted. Github does a really good job in the search bar.
You can also check the repo for similar article titles, i.e, the names of the directories. You can just search the names of folders for specific topics. For instance, if you search docker you can get all articles related to the same topic provided the name is in the title.
I hope this helps.

Hello, i was basing the idea on grouping the articles like machine learning
in one group, android and also similar to web. Its just an idea which i
thought i would have been easier. Thank you
On Mon, 20 Sept 2021 at 08:45, linusmuema @.***> wrote:

Hi @ROYFORDWANYOIKE2001 https://github.com/ROYFORDWANYOIKE2001
I'm not sure I get your question well but. There are various ways a writer
can check if the article has been published or not. In addition to the
search bar on the website (as you have mentioned), you can also look for
pull requests and issues submitted. Github does a really good job in the
search bar.
You can also check the repo for similar article titles, i.e, the names of
the directories. You can just search the names of folders for specific
topics. For instance, if you search docker you can get all articles
related to the same topic provided the name is in the title.
I hope this helps.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/section-engineering-education/engineering-education/issues/3915#issuecomment-922650805,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AONFAUO5ARZZHAPEA3FQIPDUC3DBLANCNFSM5EKI2EMA
.

@ROYFORDWANYOIKE2001
Thank you v much for the suggestions. Do you mean a different method than the topic (categories) on the website?


wasabiwallet: <IP_ADDRESS> -> 2.0.2

Description of changes
https://github.com/zkSNACKs/WalletWasabi/releases/tag/v2.0.2
This release uses .NET 6 instead of .NET 5, which helps with https://github.com/NixOS/nixpkgs/issues/173115
I also had to change up the derivation a bit, since the previous package wasn't starting up for me, due to missing dependencies. I now generate a wrapper script which sets LD_LIBRARY_PATH, instead of trying to find and patch all binaries with patchelf.
Things done

Built on platform(s)

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

[x] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[x] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review/3032/1467


Gas Optimizations For Deploying Contracts

This is a pretty broad issue, but there are probably places we may be able to optimize gas usage in order to reduce the deployment costs of all the needed contracts.  We should create a bounty payable by the reduction achieved.

One possible solution - if we deployed a single QueryContract that housed all of the oraclize API functionality, a deployed smart contract would then make a call to it on creation, and the QueryContract could call that contract back upon the query being completed.  This may or may not save significant gas as the QueryContract could be deployed once for all of the smart contracts.
any thoughts on this @cryptomental?

@cryptomental @perfectmak @eswarasai check out the query_hub branch.  This needs some more thought, cleanup, testing, etc but reduces deployment costs to the contract deployer by roughly 40% - I think there are more savings to be had, but decided to try this on the flight to singapore.  Will keep working on this over the weekend.


API definition location for slot app shows URL of product app

Environment URL: functions-staging.azure.com
Corresponding Ibiza URL: ms.portal.azure.com/?BizTalkExtension=canary&WebsitesExtension=canary&appsvc.env=next&feature.canmodifystamps=true&feature.fastmanifest=false
App runtime version: ~1.0.10945.0
Proxy runtime version: ~0.2
Private Site Extension: N/A
Browser: Chrome
Expected:
API definition location should be https://{productApp}-{slotName}.azurewebsites.net/...
Actual:
Slot app shows API definition location of product app, with slot master key in the end of the URL. This location URL surely could not work.
Please refer to snapshot:

@soninaren Could you please investigate and let us know if the bug should be fixed by you or Sisira?

API Definition is doing as per the expected behavior
Looks like a bug in Slot Creation and API definition blade (Web apps)
Summarizing what is happening step by step

Create a new function app
Set the API definition source to "Function"
The API definition URL for prod app gets set through following call, which is correct

PUT https://management.azure.com/subscriptions/<subid>/resourceGroups/AzureFunctions-WestUS/providers/Microsoft.Web/sites/ProdAppName/config/web?api-version=2015-08-01

Create a Slot for the function app
Fetch the config of the slot, Here API definition is set to the PROD URL. (Bug in slot creation)
Open API Definition (preview) tab
Set the API definition source to "Function". This sets the correct API Definition URL to the slot app settings (as expected)

https://management.azure.com/subscriptions/<subscriptionid>/resourceGroups/AzureFunctions-WestUS/providers/Microsoft.Web/sites/<appName>/slots/<slotname>/config/web?api-version=2015-08-01

API Definition (web apps) is caching the API definition property from its first load

@panchagnula Could you take a look?

@SimonGuo009 I am unable to repro this anymore, can you please check & close if that is the case? Thank you.


Add a navigation bar

As the portfolio gains more information, it may make sense to add a navigation bar. This bar should include the logo on the left side but only once the page has scrolled down a bit.

Me and @suraj-singh127 will work on it


new: SEVERE class threat "Trojan:Win32/Spursint.F!cl" detected

Checklist

[X] I'm reporting a bug unrelated to a specific site
[X] I've verified that I'm running yt-dlp version 2021.10.22. (update instructions)
[X] I've checked that all provided URLs are alive and playable in a browser
[X] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[X] I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue

Description
After previously allowing it up until 2 days ago, the latest Microsoft win defender detects the latest ydl release as a SEVERE class threat "Trojan:Win32/Spursint.F!cl"  "This program is dangerous and executes commands from an attacker."
Verbose log
nil

Duplicate of #25

I found this in a zip file that has GIF images. It only came from that one zip and non of the other zips and they all came from the same source. This is confusing. Trojan:Win32/Spursint.F!cl


cssFormat option breaks output with retina variables.

When I have cssFormat : "scss"
in my gulpfile.js, than I have no @mixin retina-sprite and 2x-variables.
For example I have $icon-name: 'icon'; but there is no $icon-2x-name: 'icon-2x';

As documented in the README, our retina configuration uses a different set of spritesheet templates. To remedy the issue, we will need to use cssFormat: "scss_retina"
https://github.com/twolfson/gulp.spritesmith/tree/3.8.2#retina-parameters
https://github.com/twolfson/spritesheet-templates#retina-templates


The model of the bear is displayed only once in a few seconds

I tried to display the model of the bear in sketchfab with PlayCanvas.
However, PlayCanvas does not seem to show bears only once every few seconds.
PlayCanvas + Bear model result: NG
http://jsdo.it/cx20/KgME
Three.js + Bear model result: OK
http://jsdo.it/cx20/6MMO

I confirmed that this problem has been resolved.
http://jsdo.it/cx20/ERqU


Premium support model

I'd like to subscribe my whole Agile team to this and get premium support. Can you please set up a billing option for corporate?

This wil cost you no money, are you okay with this?

I'm afraid I could never get the budget this low. If you are unable to work out a contract that includes insurance, support and a once-yearly corporate trip to the San Diego Zoo, then my Corporate Overlord will be too frightened by the sticker price to allow us to incorporate it into our stack.


NixOS installer cannot work because rtw89 kernel module for wifi is missing.

Issue description
I cannot install NixOS on a HP Laptop (15-fd0xxx) because the rtw89 kernel module for Wi-Fi is missing.

Latest release 24.05 comes with the rtw89 module!


[FLINK-13545] [table-planner-blink] JoinToMultiJoinRule should not match SEMI/ANTI LogicalJoin

What is the purpose of the change
fix "JoinToMultiJoinRule should not match SEMI/ANTI LogicalJoin"
Brief change log

copy JoinToMultiJoinRule from Calcite to blink-planner, and does not match SEMI/ANTI LogicalJoin in new rule

Verifying this change
This change added tests and can be verified as follows:

Added FlinkJoinToMultiJoinRuleTest to verify the bug

Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (yes / no)
The public API, i.e., is any changed class annotated with @Public(Evolving): (yes / no)
The serializers: (yes / no / don't know)
The runtime per-record code paths (performance sensitive): (yes / no / don't know)
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: (yes / no / don't know)
The S3 file system connector: (yes / no / don't know)

Documentation

Does this pull request introduce a new feature? (yes / no)
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

this fix is same with CALCITE-3225, which was merged


New package: CharacteristicInvFourier v0.4.0

Registering package: CharacteristicInvFourier
Repository: https://gitlab.com/tom.plaa/characteristicinvfourier.jl
Created by: https://gitlab.com/tom.plaa
Version: v0.4.0
Commit: 0c767281ef706e9d9bee426e337e6af7665ce3fe
Git reference: HEAD

Automerged after name repo path change on https://github.com/JuliaRegistries/General/pull/77351.
Can be closed.


New release?

Hi,
Do you know when the 4.1.0 version will be officially released?

I disagree with calling this a duplicate of #6181 / the comment thereon. This question is more specific. #6181 did not address release scheduling.


no more offset  in src/rec, model takes care of it + compiler version…

Removed all "offset" in inject/interpolate, let model take care of origin with pml.
Tiny fix for compiler version because for example intel names its version in a way version does not recognize as valid.

fantastic


Move overload of literal_unroll to avoid circular dependency that breaks Python 2.7

Python 3 doesn't seem to mind, but Python 2.7 can't resolve this dependency.  Moved the overload of literal_unroll to the same location and literally and renamed the file to be more generic.

Internal CI: numba_smoketest_cpu_2

Thanks for the fix. Happy to merge. But I do wonder how this passed CI in the first place? Perhaps the 2.7 build missed it in its slice?


html overflow property

I am wondering if it's possible to use the css modal without having to set the overflow property on the html element. The reason is because I don't control the webpage and I need to make sure the css that I add does not disrupt the existing components on the site.
Can you clarify if you know for certain that setting the html overflow property on the html element could not break other elements on the page? If not is it possible to change this to another container element?
html {
overflow-y: scroll;
Thank you

I wonder if this speaks to the issue? https://css-tricks.com/snippets/css/force-vertical-scrollbar/ Specifically it suggests body { height: 100%; margin-bottom: 1px; }
It would really help me if I could understand why the html overflow-y scroll is included in modal css?


add a Ghidra entry script users can invoke to run capa against a loaded Ghidra database

This PR adds a Ghidra Python 3 script that invokes capa in a way that allows users to specify a rules path and control rendering in both Ghidra headless and UI modes.
Steps:

Install Ghidrathon
pip install flare-capa
Download official capa rules matching capa version
Copy capa_ghidra.py to Ghidra user scripts directory
Run capa_ghidra.py from Ghidra headless or script manager

Users can specify their capa rules path and verbosity via the UI when running in Ghidra UI and users can specify their capa rules path and verbosity via command-line arguments when running in Ghidra headless. Unfortunately Ghidra's headless analyzer does not allow flags, e.g. -v to be specified as script arguments so instead we require users to specify their command-line arguments using a single string surrounded by quotes e.g. "<path_to_rules>  -vv". Users can specify the keyword help, e.g. "help", to view the scripts help output that would normally be accessed via -h or --help.
This PR also includes bug fixes, refactoring, and adding Ghidra support for show-features.py.
Ghidra UI
Selecting rules:

Selecting rendering:

Output to Ghidra console window (which can be used to navigate directly to displayed addresses):

Ghidra headless
Running capa with specified rules and verbosity:
$ analyzeHeadless /home/wampus test -process Practical\ Malware\ Analysis\ Lab\ 01-01.dll_ -PostScript capa_ghidra.py "/home/wampus/capa/rules -vv"
[...]
INFO  REPORT: Analysis succeeded for file: /Practical Malware Analysis Lab 01-01.dll_ (HeadlessAnalyzer)
INFO  SCRIPT: /ghidra_scripts/capa_ghidra.py (HeadlessAnalyzer)
md5                     290934c61de9176ad682ffdd65f0a669
sha1
sha256                  f50e42c8dfaab649bde0398867e930b86c2a599e8db83b8260393082268f2dba
path                    /home/spring/Documents/capa/tests/data/Practical Malware Analysis Lab 01-01.dll_
timestamp               2023-08-25 15:40:39.990986
capa version            6.0.0
os                      windows
format                  Portable Executable (PE)
arch                    x86
extractor               ghidra
base address            global
rules                   /home/spring/Documents/capa/rules
function count          5
library function count  0
total feature count     376

contain loop (3 matches, only showing first match of library rule)
author<EMAIL_ADDRESS>scope   function
function @ 0x10001010
  or:
    characteristic: loop @ 0x10001010

delay execution (2 matches, only showing first match of library rule)
author<EMAIL_ADDRESS>@ramen0x3f
scope       basic block
mbc         Anti-Behavioral Analysis::Dynamic Analysis Evasion::Delayed Execution [B0003.003]
references  https://docs.microsoft.com/en-us/windows/win32/sync/wait-functions, https://github.com/LordNoteworthy/al-khaser/blob/master/al-khaser/TimingAttacks/timing.cpp
basic block @ 0x10001154 in function 0x10001010
  or:
    and:
      os: windows
      or:
        api: kernel32.Sleep @ 0x10001159

check mutex
namespace  host-interaction/mutex
author<EMAIL_ADDRESS><EMAIL_ADDRESS>scope      basic block
mbc        Process::Check Mutex [C0043]
basic block @ 0x1000102E in function 0x10001010
  and:
    or:
      api: kernel32.OpenMutex @ 0x10001059

create mutex
namespace  host-interaction/mutex
author<EMAIL_ADDRESS><EMAIL_ADDRESS>scope      function
mbc        Process::Create Mutex [C0042]
function @ 0x10001010
  or:
    api: kernel32.CreateMutex @ 0x1000106E

create process on Windows
namespace  host-interaction/process/create
author<EMAIL_ADDRESS>scope      basic block
mbc        Process::Create Process [C0017]
basic block @ 0x10001179 in function 0x10001010
  or:
    api: kernel32.CreateProcess @ 0x100011AF

Script /ghidra_scripts/capa_ghidra.py called exit with code 0
INFO  ANALYZING changes made by post scripts: /Practical Malware Analysis Lab 01-01.dll_ (HeadlessAnalyzer)

[...]

Viewing help:
$ analyzeHeadless /home/wampus test -process Practical\ Malware\ Analysis\ Lab\ 01-01.dll_ -PostScript capa_ghidra.py "help"
[...]
INFO  REPORT: Analysis succeeded for file: /Practical Malware Analysis Lab 01-01.dll_ (HeadlessAnalyzer)
INFO  SCRIPT: /ghidra_scripts/capa_ghidra.py (HeadlessAnalyzer)
usage: [-h] [-v] [-vv] [-d] [-q] [-j] rules

The FLARE team's open-source tool to integrate capa with Ghidra.

positional arguments:
  rules            path to rule file or directory

options:
  -h, --help       show this help message and exit
  -v, --verbose    enable verbose result document (no effect with --json)
  -vv, --vverbose  enable very verbose result document (no effect with --json)
  -d, --debug      enable debugging output on STDERR
  -q, --quiet      disable all output but errors
  -j, --json       emit JSON instead of text
Script /ghidra_scripts/capa_ghidra.py called exit with code 0
INFO  ANALYZING changes made by post scripts: /Practical Malware Analysis Lab 01-01.dll_ (HeadlessAnalyzer)
[...]

Performance significantly improved by 4283c01aae01b783fa1285e2ff8456d48dd18c3f.
Before:
        1    0.000    0.000   26.628   26.628 file.py:75(extract_file_embedded_pe)
        1    0.005    0.005   26.628   26.628 file.py:26(check_segment_for_pe)

After:
        1    0.002    0.002    0.198    0.198 file.py:81(extract_file_embedded_pe)
        6    0.117    0.019    0.144    0.024 file.py:25(find_embedded_pe)

Performance significantly improved by 4283c01.
Before:
        1    0.000    0.000   26.628   26.628 file.py:75(extract_file_embedded_pe)
        1    0.005    0.005   26.628   26.628 file.py:26(check_segment_for_pe)

After:
        1    0.002    0.002    0.198    0.198 file.py:81(extract_file_embedded_pe)
        6    0.117    0.019    0.144    0.024 file.py:25(find_embedded_pe)

Awesome find in optimizing the byte conversions 😄

casual 100x improvement 🥷


Iterating on digitizer

Iteration 2: Populating the CurbLR attributes
Once we've got photos and the map, we need some way to add additional properties into the data.

Overall
For each span (everything in CurbLR is a span), CurbLR stores:

geojson geometry
location properties (https://github.com/sharedstreets/curblr/blob/master/Location.md),
a regulations array. each regulation has a set of regulation properties
an images array

We have the geojson geometry and most of the location properties; those can mostly be handled behind the scenes without input from the user during digitization. Below are properties that we should surface for user inputs. I've referenced the location in the CurbLR JSON so that it's easy to keep track of where things belong.
location.assetType
well known values with option to input custom text. wkvs: sign, curb paint, curb cut, hydrant, bus stop, pavement marking, crosswalk, bicycle rack, curb extension, bollards, fence, parking meter). This is taken from the [asset schema we're using] with a minor modification (https://www.coord.com/hubfs/Coord_November2019 Files/PDF/8b1277_8e32c9463b3743b7833b9c1e82f0b558.pdf?hsLang=en), page 4-5. This concept is currently in the curblr spec as “marker” but we’re going to change the name in CurbLR so that it's consistent with the asset schema we're also using.
location.assetSubtype
well known values with option to input custom text... triggered only by relevant asset type. See asset schema page 4-5. Not currently in the spec; this is a new field that is included as one of the location properties.
regulations.regulation.rule.activity
enum. valid options: standing, no standing, loading, no loading, parking, no parking
regulations.regulation.rule.maxStay
integer, expressed in spec as number of mins. may be best if we have preset values (5 min, 10 min, 15 min, 20 min, 30 min, 45 min, 1 hour (backend interprets as 60, same goes for all "hour" increments), 2 hour, 3 hour, 4 hour, 5 hour, 6 hour, 8 hour
regulations.regulation.rule.payment
boolean, default value false. later, checking this box will bring up more options for rates, durations etc that the user can populate.
regulations.regulation.userClasses
well known values with option to input custom text. wkvs: here
regulations.

regulation.userSubclasses
text prompt
.
(note: this gets tricky bc we can have multiple classes, and each class can have corresponding subclasses. ex. Parking for car share (userclass: car share) or zone A residential permit holders (userclass: permit + subclass: zone a). Maybe we can have some equivalent of multiple choice checkboxes, and then the UI brings up the selections and provides the opportunity to add a subclass to any of them)
. this is a good first place to work on UI/UX around adding additional child properties that only apply to one parent property.
regulations.regulation.timeSpans (leave out for now)
Leave out of iteration 2. documentation is [here] (https://github.com/sharedstreets/curblr/blob/master/TimeSpans.md). this has some similarities with the userClasses difficulty above, but more complex. maybe we can take a similar approach with multiple choice checkboxes (or similar), where the user selects whether they want to add an effective date range, days of week, days of month, times of day, etc and then those selections cause additional inputs to appear that are only relevant to those timespan types. Example: checking days of week brings up the option to select which weekdays it applies to. It also triggers an optional checkbox where the user can say whether or not they want to add an occurrences in month field to one/more of those days (real-world example: street cleaning on 3rd Thursday of the month)
regulations.regulation.payment (leave out for now)
Leave out of iteration 2. This component will build off of how we address timeSpans and usersubclasses.
regulations.regulation.priority (leave out)
We actually determined that this is not necessary in the spec and we can drop it altogether to keep the data simple. I'm pushing out those spec changes this week.
What's left for future rounds

There are some other minor properties that I have left out of this like (things like maxHeight or baysAngle that are rarely used). Many of them are really straightforward and will be really easy to add in later; I've just left them out of this iteration to keep it a bit quicker to make and test.
This issue is focused on creating a CurbLR feed, which is based on span type geometries. We will address the assets later - they are all the photographs and span position points that comprise a span, and they will inherit the assetType and assetSubtype properties, plus some location information that we've got on the backend. Punting for later.
Metadata: once all features are digitized, user will input metadata that goes along with the regulation feed and the asset feed. Punting for later.
After a user populates the properties for a span and creates a regulation, they should also get the opportunity to add an additional regulation that applies to the same space. For example, it's common to see signs that describe a loading zone during certain hours but then say that users should pay the meter during all other metered hours (example below). That means we have one geojson, one set of location properties, but then an array of two regulations - one describes the loading zone, one describes the paid parking. Punting for later iteration.

Example: multiple regulations on one span

high priorities:

timespans (day of week and hour of day)
adding pictures back

Closing this issue since we've got core functionality and will begin a new iteration


Emit a stable reference to the interface guid

This way, the reference can be converted by others into a pointer and passed around without fear that the data will move.
The new property looks like this:
static ref readonly Guid IComIID.Guid
{
    [MethodImpl(MethodImplOptions.AggressiveInlining)]
    get
    {
        ReadOnlySpan<byte> data = new byte[] {
            0x0B,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46 };
        return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
    }
}

Also add non-marshaling runtime test project so we can verify the emitted guid has the right value.

CC: @tannergooding @JeremyKuhne

/azp run


Having some issues getting the first example to compile

Below is the first example in the docs (but with imports and OverloadedStrings added to the top)
{-# LANGUAGE OverloadedStrings #-}

import Data.Text as Text
import Data.Unjson

data Example = Example
   { exampleName     :: Text.Text,
     exampleArray    :: [Int],
     exampleOptional :: Maybe Bool }

unjsonExample :: UnjsonDef Example
unjsonExample = objectOf $ pure Example
  <*> field "name"
          exampleName
          "Name used for example"
  <*> fieldDefBy "array_of_ints" []
          exampleArray
          "Array of integers, optional, defaults to empty list"
          arrayOf
  <*> fieldOpt "optional_bool"
          exampleOptional
          "Optional boolean"

main = do
    putStrLn "hello"

If I comment out exampleArray and the fieldDefBy section, then it compiles fine. However, if I leave them in place, I get the following type error:
unjson-examples.hs:19:11-17: error:
    • Couldn't match expected type ‘UnjsonDef [Int]’
                  with actual type ‘UnjsonDef a0 -> UnjsonDef [a0]’
    • Probable cause: ‘arrayOf’ is applied to too few arguments
      In the fifth argument of ‘fieldDefBy’, namely ‘arrayOf’
      In the second argument of ‘(<*>)’, namely
        ‘fieldDefBy
           "array_of_ints"
           []
           exampleArray
           "Array of integers, optional, defaults to empty list"
           arrayOf’
      In the first argument of ‘(<*>)’, namely
        ‘pure Example <*> field "name" exampleName "Name used for example"
           <*>
             fieldDefBy
               "array_of_ints"
               []
               exampleArray
               "Array of integers, optional, defaults to empty list"
               arrayOf’
   |
19 |           arrayOf
   |           ^^^^^^^

I've been looking at examples in our source code and it does appear that, when used with fieldDefBy, arrayOfdoes have an argument. I'm not ruling out the possibility that I'm doing something wrong here, but it appears that there's a mistake in the docs.

Right, looks like it must be arrayOf unjsonDef.

The test suite has been fixed quite a while ago, it seems, but the example hasn't been updated since then.


feat(SNW-167): Add background image to Dyanmic Components

The image_background, image_background_position, and image_opacity fields were added to the Component colors element on the Dynamic Components, these fields will display a background image on the component and you can adjust the image position and if the image will have an opacity or not


Node 16 deprecated for actions

Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20<EMAIL_ADDRESS>For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.

I believe this is covered by PR #37

Fixed by https://github.com/hoverkraft-tech/compose-action/pull/56

@danharten-sovtech yea we just need to wait for a new release 🙌🏻

Here is the new release: https://github.com/hoverkraft-tech/compose-action/releases/tag/v2.0.0


ERROR: Unable to extract sts

root@localhost:~# youtube-dl --format best --audio-format best https://www.youtube.com/playlist?list=PLg7s6cbtAD14Z1TpISI5XW5ewIErSz1Uw
[youtube:playlist] PLg7s6cbtAD14Z1TpISI5XW5ewIErSz1Uw: Downloading webpage
[download] Downloading playlist: Fun
[youtube:playlist] playlist Fun: Collected 4 video ids (downloading 4 of them)
[download] Downloading video #1 of 4
[youtube] Setting language
[youtube] XRtSQqR3sdU: Downloading webpage
[youtube] XRtSQqR3sdU: Downloading video info webpage
[youtube] XRtSQqR3sdU: Extracting video information
[download] Destination: 2013 GitHub Dodgeball Tournament for Charity-XRtSQqR3sdU.mp4
[download] 100% of 35.22MiB in 00:47
[download] Downloading video #2 of 4
[youtube] y04-NzarItQ: Downloading webpage
[youtube] y04-NzarItQ: Downloading video info webpage
[youtube] Confirming age
ERROR: Unable to extract sts; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type  youtube-dl -U  to update.
root@localhost:~#

You are probably running an outdated version, with the last version it will report the correct message: y04-NzarItQ: YouTube said: Please sign in to view this video. so you need to login to download it. In case you don't have access to it, you can use --ignore-errors to skip the private videos.
Two extra notes:

As explained in the error message, please post the full output with the --verbose option.
Don't run youtube-dl as the root user, we try to make it as secure as possible but it's an unnecessary risk.


Alert in ASC not reference in this list "New certificate added to an IoT Hub"

[Enter feedback here]
Dear Colleagues,
The following "New certificate added to an IoT Hub" is not referenced on the list but has been alerted upon. To correctly handle this it would be very nice to have the background on it as with the others.
Thanks,
Mihcael

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

ID: a2eb1ae9-1cfc-0dd0-a055-79ae32b62a6d
Version Independent ID: 66ce0f69-16aa-c1f8-5163-7cc5392a3399
Content: Reference table for all security alerts in Azure Security Center
Content Source: articles/security-center/alerts-reference.md
Service: security-center
GitHub Login: @memildin
Microsoft Alias: memildin

@BASFmthibodeaux  Thanks for the feedback. We will engage the content development team for further investigation, they will verify and perform necessary changes in the document as needed.

Hi @BASFmthibodeaux, thanks for the feedback and for taking the time to help us improve the docs.
This docs page lists many of the alerts available through Azure Security Center but still not all of them. We're working to make it an exhaustive list but I can't give you a firm date on when that will be completed.
This page is frequently refreshed, and we'll keep your comments in mind for the next time we do so.
I'm going to close this issue, but feel free to comment again here or open a new one if you have additional requests.
Thanks again!
#please-close


Document the required CMake version

This is the final step to resolve #1146.

Adding @johnkord for a review!

bors r+

Flaky tests, trying again until #1171 goes in:
bors r+

bors r-

bors r+


WIP: create dev containers

For discussion. Do not merge. In service of #71
Note: Secrets are out of scope for this pull and will be removed before merge. I've included them here for internal discussion purposes. See also: https://diogomonica.com/2017/03/27/why-you-shouldnt-use-env-variables-for-secret-data/

closed by 435ba37

ideas mentioned in matrix chat following merge:

wrap in a --dev flag in pkc setup
make it explicit that either --dev or --prod or required


make jwt fresh job running more frequently

https://github.com/istio/istio/issues/7392
make jwt fresh job running more frequently and add more logs to debug

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: quanjielin
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: zackbutcher
If they are not already assigned, you can assign the PR to them by writing /assign @zackbutcher in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

pilot/OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@quanjielin: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/e2e-mixer-no_auth.sh
47ad2a2cf6f5dfcea839a6cbe4733804c541b486
link
/test e2e-mixer-no_auth

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

For Cloud Endpoints, we fetch refresh public keys every 5 minutes. This new interval looks good to me.

Also - is this critical for 1.0 ? What is broken if we merge this in master instead ?

will create another PR for master, close this one.


Maybe should be a 13 factor?

The 12 factor is awesome! It's a thing that i always recommend to all developers that i know. But when i talk about the 12 factor i always talk about infrastructure as code too.
Infrastructure as code is a thing that every developer should keep in mind. So why not add infrastructure as code as a thirteen factor?

I get where this is coming from, but also, one of the nice things I've found about 12-factor is that for certain use-cases, e.g. node app deployed on heroku, there is not necessarily any infrastructure code needed.
And that's a good thing to aim for! These are "app" guidelines, which strictly speaking is (or, generally speaking, should ideally be) agnostic to the deployment conditions of that app.
 That small process itself might be worth putting into code, but as it's a flow that many projects might want to use, it makes sense for it to be separate codebase, rather than as a requirement of any particular app.

@someoneinatree  You`re right.


[terra-embedded-content-consumer] Add title prop to component so that title can be easily set into the frame

Summary

Add title prop to the component so that it's face up and easier to set the title of the content in the frame
What was changed:
Add title prop to the component so consumer can easily set the title of the iframe
Why it was changed:
For better accessibility, having a title text of the content in the frame is critical. This change is to make setting the title easier.
Testing

This change was tested using:

[ ] WDIO
[x] Jest
[x] Visual testing (please attach a screenshot or recording)
[x] Other (please describe below)
[ ] No tests are needed

The change can also be tested by inspecting the source code by looking for the title attribute for the <iframe> using the examples site: https://engineering.cerner.com/terra-framework/pull/1776.
Reviews
In addition to engineering reviews, this PR needs:

[ ] UX review
[x] Accessibility review
[x] Functional review

Additional Details

VoiceOver announcing the title of the frame:
https://github.com/cerner/terra-framework/assets/3170314/01c0088d-9dbf-4255-95ae-f697350dc482
JAWS announcing the title of the frame:
https://github.com/cerner/terra-framework/assets/3170314/47ad7d1f-168a-4a73-8c11-104344a34b11
This PR resolves:
UXPLATFORM-9419

Thank you for contributing to Terra.
@cerner/terra

Overall I'm happy with this, could you post a recording of this in edge with JAWs? After that I'm good to approve this.

Overall I'm happy with this, could you post a recording of this in edge with JAWs? After that I'm good to approve this.

https://github.com/cerner/terra-framework/assets/3170314/47ad7d1f-168a-4a73-8c11-104344a34b11

Same comment as: https://github.com/cerner/terra-framework/pull/1777#issuecomment-1717756734

@sdadn  / @supreethmr  / @kenk2 / @sycombs
Please re-review, and approve

After an offline discussion, we landed on the following to to unblock and merge this PR:

Throw a warning if options.iframeAttrs.title is being set

Update documentation to discourage the use of options.iframeAttrs.title and to use title instead

Add a test to make sure title overrides options.iframeAttrs.title

Add TODO comments

to remove the warning in the next MVB
to set title as required in the next MVB

@sdadn  / @sycombs  / @RayGunY  / @chenyixuan625 / @scottwilmarth
Please review and approve


Fix hash_aggregate_test

Fix #2404.
In my opinion, the root cause of this issue seems to be incorrect plan capture. It happens occasionally, since we produce two SQL jobs in the failed test case.
Signed-off-by: sperlingxx<EMAIL_ADDRESS>

build

Just one nit, and it is not a big one. It would also be nice to have a follow on issue, even if it is low priority, to understand better why the plan capture is failing. There are several other places where this could pop up if we are not careful and it would be good to understand it so we can deal with it properly.

I filed the follow on issue #2485


Make OBJDIR overridable

Looks good :+1: , if that's enough for your usage let's merge it after CI passes.

Merged, thanks!


szEntityPath.entityIDs should be  szEntityPath.entityIds?: Array

Describe the bug
the model has a prop key casing issue.
To Reproduce
Steps to reproduce the behavior:
make a EntityGraphService.findNetworkByEntityID or EntityGraphService.findPathByEntityID. The resulting json entitity path object results is cast to strongType as "entityIDs" instead of "entityIds" resulting in a response to model key mismatch.
Expected behavior
the api key entityIds is smoothly cast to the right object key.

Pull Requests:

https://github.com/Senzing/rest-api-client-ng/pull/15


[Refactor] get_title_obj for django-cms 4.

When using django-cms together with versioning it's important to keep apart content/objects that should be displayed to the end user and content/objects that can be viewed by an admin user.
get_title_obj is used in several places to assign the object both in toolbars (admin related) and in places that will render to the end user.
There has been a lot of monkeypatching going on in djangocms-versioning to account for this fact. By creating a method get_admin_title_obj this method alone could be monkeypatched instead of spreading out the monkeypatching. If/when versioning is incorporated into core it would also make things easier to incorporate any monkeypatches into this method.
This will also start to setup us up for a clean separation between what is viewable by admin users and what is viewable by end users.
This is also related to the following PR > https://github.com/divio/django-cms/pull/6817 instead of that implementation it would be better if it used get_admin_title_obj

Moving issue to https://github.com/divio/djangocms-versioning/issues/212


Change prerelease versioning

Use alpha instead of dev
Use beta instead of preview

Updating versioning logic to match guideline update in Azure/azure-sdk#1536.
PTAL @ramya-rao-a @xirzec @praveenkuttappan

/home/vsts/work/1/s/sdk/template/template/package.json
  3:14  error  unrecognized version syntax: beta.1  @azure/azure-sdk/ts-versioning-semver

@sadasant @KarishmaGhiya any ideas why eslint is complaining about this semver?

@weshaggard I think it is failing by this ESLint check on version format.
https://github.com/Azure/azure-sdk-for-js/blob/master/common/tools/eslint-plugin-azure-sdk/src/rules/ts-versioning-semver.ts#L45

The actual rule is a few lines below in https://github.com/Azure/azure-sdk-for-js/blob/master/common/tools/eslint-plugin-azure-sdk/src/rules/ts-versioning-semver.ts#L67
Updating the regex there should fix the problem

@weshaggard The linter has been updated in #10986 to allow all 4 options of preview, beta, dev and alpha. Can you you revert your commit? We need to support "preview" until all the current previews move to beta which will take a while
cc @deyaaeldeen

@weshaggard The linter has been updated in #10986 to allow all 4 options of preview, beta, dev and alpha. Can you you revert your commit? We need to support "preview" until all the current previews move to beta which will take a while

I will sync his changes and fix the one issue about the version number needing to be date based.

@weshaggard I fixed the issue with alpha versions in the linter here: https://github.com/Azure/azure-sdk-for-js/pull/10998.

@deyaaeldeen thanks I will remove that from my PR then.


Deep Sleep, Update Interval

@eifinger
Thanks for the Integration!
What is meant with deep sleep?
And I've found the following line in your init.py "DEFAULT_UPDATE_RATE = 30"
Does that mean that the GPS will be updated every 30 seconds? If yes that could result in higher battery usage. How can I change this value to save battery? Or is that why there is the option for deep sleep?

Hi. This integration communicates with the Fressnapf server, never with the device directly.
Changing the update interval does not impact battery life.
Deep sleep is this setting in the app:


Specify syntax version for ripple.proto file

This hides warnings by the protobuf compiler about the syntax version not being specified.

Closing in favor of #2007.


add #29987 to 2.53 known issues in CHANGES.md

add #29987 to 2.53 known issues in CHANGES.md

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.

thanks. Is this known issue newly introduced in 2.53.0, or anything need special concern? That section in CHANGES were not quite actively used. It's usually used to add regression of recent version that discovered later.

thanks. Is this known issue newly introduced in 2.53.0, or anything need special concern? That section in CHANGES were not quite actively used. It's usually used to add regression of recent version that discovered later.

this issue is newly introduced in 2.53.0. I reached out to @jrmccluskey to see how best to proceed and he suggested adding this to the known issues section and then adding the fix to the 2.54 milestone


PySide 6.6 asyncio support

Great news from the PySide camp: https://www.qt.io/blog/qt-for-python-6.6
An official asyncio compatible Qt event loop!

Nice!!!


[Feature] Updates audio devices list when connected to bluetooth/headphones

Purpose

Replaces "iPhone/iPad" with "Headphones" when connected to headphones
Replaces "iPhone/iPad" with "Bluetooth (icon name)" when connected to bluetooth
Replaces "iPhone/iPad" with "<bluetooth device name> (audio list)" when connected to bluetooth

Does this introduce a breaking change?

[ ] Yes
[x] No

Pull Request Type
What kind of change does this Pull Request introduce?

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

Other Information

Looks like the Text label is a bit cut off

Tested the app with a few test scenarios, bluetooth and headphone works in the call, with a few observations:
Test scenario (connected to headphone or bluetooth headset before the call):

When switching audio type from Speaker to Headphone, the title of the first cell item in audio device list was iPhone, and then becomes Headphone quickly. When switching back to Speaker, the cell title changed back to iPhone. Not sure if this name should stay at Headphone in this case.
The same observed for the case of switching back and forth between Bluetooth headset and Speaker.

Test scenario (connected to bluetooth headset before the call):

When switching audio type from Bluetooth Headset to Headphone, the icon of the first cell item in audio device list was updated to the new "speaker with bluetooth" icon. Should this new icon be updated in the audio switch icon the control bar button? maybe that's a UX question.

Tested the app with a few test scenarios, bluetooth and headphone works in the call, with a few observations: Test scenario (connected to headphone or bluetooth headset before the call):

When switching audio type from Speaker to Headphone, the title of the first cell item in audio device list was iPhone, and then becomes Headphone quickly. When switching back to Speaker, the cell title changed back to iPhone. Not sure if this name should stay at Headphone in this case.
The same observed for the case of switching back and forth between Bluetooth headset and Speaker.

Test scenario (connected to bluetooth headset before the call):

When switching audio type from Bluetooth Headset to Headphone, the icon of the first cell item in audio device list was updated to the new "speaker with bluetooth" icon. Should this new icon be updated in the audio switch icon the control bar button? maybe that's a UX question.

@kevinyulu

Headphones/Bluetooth should stay the same when switching to Speaker. Made some code changes to account for this behavior, please try it out and let me know if there's anything I missed.
The speaker icon on the control bar should reflect on the selected audio device, both before the call in setup and during the call. So icon should be bluetooth speaker when connected to bluetooth headset, and regular speaker (same as receiver) when connected to headphones. Please let me know if there's a bug in the control bar as well as the selection list and I'll proceed to fix them.

Looks like the Text label is a bit cut off

@jimchou-dev I've expanded the width of the IconButton to 80 to cater specifically for Headphones. In the future when we localize those strings, it may be even longer than the allotted space so we can't avoid ellipsis indefinitely so something to consider.


Load conflicts with current XMLParser if installed independently

The current spec dependency to XMLWriter in the BaselineOfPolyMath references to 2.9.0:
...
baseline: 'XMLWriter'
with: [ spec repository: 'github://pharo-contributions/XML-XMLWriter:2.9.0/src' ].

However XMLParser is loading XML-XMLWriter:2.9.x as this:
spec
  baseline: 'XMLWriter'
  with: [
    spec
      loads: #('Core');
      repository: 'github://pharo-contributions/XML-XMLWriter:2.9.x/src' ].

This is causing conflict my build of BioSmalltalk (and I suppose it could cause a similar error with any project loading PolyMath and XMLParser independently):

MetacelloConflictingProjectError: Load Conflict between existing BaselineOfXMLWriter [baseline] from github://pharo-contributions/XML-XMLWriter:2.9.0/src and BaselineOfXMLWriter [baseline] from github://pharo-contributions/XML-XMLWriter:2.9.x/src

Is there any particular reason to use 2.9.0 and not 2.9.x ?

Not sure to remember why we have a dependency to XMLWriter in PolyMath.

I've detected only two methods using XMLWriter now, both of them have no senders:
PMODEAccuracy>>runToXML
PMODEBenchmark>>runAllToXML:
(this last one is writing a Smark tag)
I would write a test (some context here would help) and if it passes, change BaselineOf from XML-XMLWriter:2.9.0 to XML-XMLWriter:2.9.x and run tests again.


Support to add a new application setting for slots by command

OS: All
Build Version: 20190606.16
Repro Steps:

Make sure there is one slot at least.
F1 --> Type and select "Azure App Service: Add New Setting...".
Select the subscription --> web app according to the prompting.

Expect:
Continue to prompt to select a slot.
Actual:
There is no prompting to select a slot.

This issue has become stale and is at risk of being closed. The community has 60 days to upvote the issue. If it receives 5 upvotes we will keep it open and take another look. If not, we will close it. To learn more about how we handle issues, please see our documentation.
Happy Coding!

:slightly_frowning_face: In the last 60 days, this issue has received less than 5 community upvotes and we closed it. Still a big Thank You to you for taking the time to create it! To learn more about how we handle issues, please see our documentation.
Happy Coding!


[WIP] Taxon eda

@mammykins review for the sake of completeness, hoping to complete one day (adding as issue)


[feat] Add classification fine-tuning utilities

Stack from ghstack (oldest at bottom):

#9
-> #8
#6

The PR aims at ending starter classification utils to flava examples.

As of now the PR adds following things:

Finetuning trainer
Classification FLAVA
TorchVisionDataModule for easy composability of datasets from
torchvision
Some changes to MLP module for more generalization
Some improvements/bug fixes to original FLAVA code
Splits the datamodules to better service their individual concerns.

TODOs:

Add support for rest of the datasets. This involves levaraging the
existing datamodules that we created in this PR along with support for
seamlessly plugging different dataset
Add command line overriding on top
Add support for retrieval, zero-shot and other downstream tasks in an
easily accessible form
Expose more things from the model other than just the loss

Test Plan:
The code is not in 100% working stage. I have tested only the changes in
my PR. I expect everything to be stable by the end of the stack.
Differential Revision: D35271487

@ankitade has imported this pull request.  If you are a Facebook employee, you can view this diff on Phabricator.

@ankitade has imported this pull request.  If you are a Facebook employee, you can view this diff on Phabricator.

@ankitade has imported this pull request.  If you are a Facebook employee, you can view this diff on Phabricator.

@ankitade has imported this pull request.  If you are a Facebook employee, you can view this diff on Phabricator.

@ankitade has imported this pull request.  If you are a Facebook employee, you can view this diff on Phabricator.

@ankitade has imported this pull request.  If you are a Facebook employee, you can view this diff on Phabricator.

@ankitade has imported this pull request.  If you are a Facebook employee, you can view this diff on Phabricator.

@ankitade has imported this pull request.  If you are a Facebook employee, you can view this diff on Phabricator.

@ankitade has imported this pull request.  If you are a Facebook employee, you can view this diff on Phabricator.


feat: cache property

Description

This PR adds cache property to SuperfaceClient constructor. This property can be used to disable caching (mam and profile AST and provider.json) to filesystem.
Motivation and Context

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[x] I have updated the documentation accordingly. If you are changing code related to user secrets you need to really make sure that security documentation is correct.
[x] I have read the CONTRIBUTING document.
[x] I haven't repeated the code. (DRY)
[x] I have added tests to cover my changes.
[x] All new and existing tests passed.

As far as I know map ast is not cached (on filesystem level).

Right, it is only in memory. Thank you.


[Feature Request] Timeout in whois api

Is it possible to add atimeout in whois API, something like:
# Set a 3-second timeout for the WHOIS request
whois.whois(domain, timeout=3)

I currently use socket.setdefaulttimeout(3) to set a global timeout for all socket connections, but it affects all system processes that use sockets.
Thank you for consideration !

Good idea - a PR to support this would be very welcome


Check box dynamic binding makes it impossible to select

Background:
Check box dynamic binding makes it impossible to select
Description of the problem:
It is possible to request a variable binding in the background, but if you dynamically bind through a data source on the rasor page, the check box cannot be selected, as shown in the following image:

This is blazor limitation.


Fixed decimal issue on cart page

@DanielHindi  Greetings Daniel,
Can you assist with this pull request when you have time today?
This should be the last item for Ecommerce.
Thanks!


What is the use case of ComfyScript?

Can it be directly executed, or transformed back into a graph?

See https://github.com/comfyanonymous/ComfyUI/issues/612#issuecomment-1747325863. The two use cases you mentioned are both possible. But they are not yet implemented.

The two features are both implemented now. See readme for details.


Add support for sharing stories

If you need help or have a question, feel free to ask.

Hi! May I start fixing this issue?

https://github.com/nathfreder/HNNow/pull/4

Fixed in #4


README: use new Selenium driver syntax.

Avoids deprecation warnings:
2024-05-20 14:14:07 INFO Selenium [:logger_info] Details on how to use and modify Selenium logger:
  https://selenium.dev/documentation/webdriver/troubleshooting/logging

2024-05-20 14:14:07 WARN Selenium [DEPRECATION] DriverFinder.path(options, service_class) is deprecated. Use DriverFinder.new(options, service).driver_path instead.

I also personally found the screen size declaration to be not useful (possibly doing nothing) so it could maybe be removed too.

can you point me to the docs @MikeMcQuaid? I see the rails docs still use the old syntax https://guides.rubyonrails.org/testing.html#changing-the-default-settings

@wyattades No documentation links, I'm afraid. I'd used this syntax because I wanted to get console.log assertions which required:
    # Need to pass headless=new to Chrome to get console logs on latest Chrome versions.
    Capybara.register_driver :selenium_chrome_headless_new do |app|
      options = Selenium::WebDriver::Chrome::Options.new(args: ["headless=new"])
      Capybara::Selenium::Driver.new(app, browser: :chrome, options:)
    end

This was before I tried Cyperful, noticed you get deprecation warnings that the above syntax did not get.
The closest relevant docs I can find are https://github.com/SeleniumHQ/selenium/wiki/Ruby-Bindings

@wyattades Any more thoughts here? No hard feelings if you want to close this out, just want to try and get this either merged or closed.


Fix #340 - Set provider type for unit tests in the browser

The change seems big even though it isn't because I had to remote the requireJS structure (like (function(global) { }(this)); ) and de-dent the rest of the code.
Relevant changes are from here to here

@humphd does this look ok?

Yes, looks good.  Sorry it took so long to review.

@humph @gideonthomas Feel free to merge this when you're ready.


Autocomplete shows strange query parameter for /me/messages endpoint

Describe the bug
Not sure whether it is a bug or not, but the autocomplete for /me/messages shows a query parameter includeHiddenMessages.

I didn't find the includeHiddenMessages parameter in the official Graph API doc, so I'm not sure why the autocomplete displays it. Not even sure how to set up the value (bool/enum,etc.) and what's the expected result.
To Reproduce
Steps to reproduce the behavior:

type /me/messages/
autocomplete will display includeHiddenMessages parameter

Expected behavior
If the includeHiddenMessages parameter doesn't have any influence on the result, it should not be displayed
Screenshots

Desktop (please complete the following information):

OS: [Windows 11]
Browser [ALL]
Version []

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

The includeHiddenMessages is an optional custom query option that can be passed as a query parameter. See the API definition for it here in CSDL:
<NavigationProperty Name="messages" Type="Collection(graph.message)" ContainsTarget="true">
  <Annotation Term="Org.OData.Capabilities.V1.NavigationRestrictions">
    <Record>
      <PropertyValue Property="RestrictedProperties">
        <Collection>
          <Record>
            <PropertyValue Property="ReadRestrictions">
              <Record>
                <PropertyValue Property="CustomQueryOptions">
                  <Collection>
                    <Record>
                      <PropertyValue Property="Name" String="includeHiddenMessages" />
                      <PropertyValue Property="Description" String="Include Hidden Messages" />
                      <PropertyValue Property="Required" Bool="false" />
                    </Record>
                  </Collection>
                </PropertyValue>
              </Record>
            </PropertyValue>
          </Record>
        </Collection>
      </PropertyValue>
    </Record>
  </Annotation>
  <Annotation Term="Org.OData.Core.V1.Description" String="The messages in a mailbox or folder. Read-only. Nullable." />
</NavigationProperty>

And in OpenAPI:
/me/messages:
  description: Provides operations to manage the messages property of the microsoft.graph.user entity.
  get:
    tags:
      - me.message
    summary: Get messages from me
    description: The messages in a mailbox or folder. Read-only. Nullable.
    externalDocs:
      description: Find more info here
      url: https://docs.microsoft.com/graph/api/user-list-messages?view=graph-rest-1.0
    operationId: me.ListMessages
    parameters:
      - name: includeHiddenMessages
        in: query
        description: Include Hidden Messages
        schema:
          type: string

@ElinorW it might be a good feature idea to add descriptions to the query parameters in the drop down options.

@irvinesunday Thank you for the quick feedback. To be honest the description of the parameter in API definition is not user friendly. Hidden messages? I don't remember that message resource has some property isHidden or similar. Not even sure how to hide some message.
I guess that in this case only someone from the Graph API team who maintain the Graph Messages API would be able to clarify what's the meaning of the includeHiddenMessages parameter
Some tooltip for the query parameters in the drop down options would be definitely a great feature.

I guess that in this case only someone from the Graph API team who maintain the Graph Messages API would be able to clarify what's the meaning of the includeHiddenMessages parameter

You're right. This description gets added by the said API team and gets propagated into the CSDL >> OpenAPI >> Graph Explorer.


Negative indexing does not reverse Dims

using Rasters, Plots
url = "https://www.unidata.ucar.edu/software/netcdf/examples/tos_O1_2001-2002.nc";
filename = download(url, "tos_O1_2001-2002.nc");
A = Raster(filename)

now runing
julia> dims(A[:,end:-1:1,:])
X Mapped Float64[1.0, 3.0, …, 357.0, 359.0] ForwardOrdered Explicit Intervals crs: EPSG mappedcrs: EPSG,
Y Mapped Float64[89.5, 88.5, …, -78.5, -79.5] ForwardOrdered Explicit Intervals crs: EPSG mappedcrs: EPSG,
Ti Sampled CFTime.DateTime360Day[CFTime.DateTime360Day(2001-01-16T00:00:00), …, CFTime.DateTime360Day(2002-12-16T00:00:00)] ForwardOrdered Explicit Intervals

whereas
julia> dims(reverse(A, dims=2))
X Mapped Float64[1.0, 3.0, …, 357.0, 359.0] ForwardOrdered Explicit Intervals crs: EPSG mappedcrs: EPSG,
Y Mapped Float64[89.5, 88.5, …, -78.5, -79.5] ReverseOrdered Explicit Intervals crs: EPSG mappedcrs: EPSG,
Ti Sampled CFTime.DateTime360Day[CFTime.DateTime360Day(2001-01-16T00:00:00), …, CFTime.DateTime360Day(2002-12-16T00:00:00)] ForwardOrdered Explicit Intervals

i.e. once Y is ForwardOrdered once ReverseOrdered.  Shouldn't they be the same?  Using negative indexing leads to issues, for instance, with plotting.

Totally, there are some problems with unorthodox indexing like this in DimensionalData.jl, because it relies on searchsorted* so much.
The problem is there is no entirely type-stable way to handle a reverse index and have also fast selector lookups. searchsorted is fastest when the sort direction is know a-priori. So we store ForwardOrdered or ReverseOrdered in the type. But that means changing the order by indexing in reverse has undefined behavior. So using reverse is the preferred method.
We probably just need to check all StepRange and similar ranges and make it type unstable for all ordered lookups.

Annoyingly, updating a LookupArray when indexing with a steprange goes from 17ns to 250ns with this instability.   It also means taking a view of a Raster with a StepRange wont work in a GPU kernel or anywhere else you need type stability.
Maybe it should just throw an error instead and tell you to use reverse.

By the way the easy fix is:
A = set(A, Y => DimentionalData.ReverseOrdered())


Search: row selection checkboxes on search app not central

Describe the bug
When I go to the search and I select only very few columns to show (like 1 or 2), and then I go over the row numbers the checkboxes are not shown centrally, they appear left of where the row number is displayed. See gif
What part of Nexus is affected

[x] Fusion
[ ] Delta
[ ] CLI
[ ] Documentation

To Reproduce
Steps to reproduce the behavior, e.g. for Fusion:

Go to 'Search'
Deselect most columns
Mouse over on row numbers
See error

Expected behavior
The ceckboxes should appear centrally (as in the case when you have selected many columns)
Screenshots

If applicable, add screenshots to help explain your problem.
Additional context
Env: staging
User: adietz

Hi @alex4200
Can you give us info when submitting issues about the specific version of Fusion/Delta you are testing ? See the (i) icon in the header on the top right.
Also if you could mention the specific browser and version. Here is looks like it might be a browser specific issue...
Thanks !

Cannot reproduce in Chrome and Firefox against Nexus Fusion v1.8.0-M15


Updates to authors page

Signed-off-by: Nikhil-Ladha<EMAIL_ADDRESS>Description
Updated the author's page to be responsive and made the code efficient.
Signed commits

[X] Yes, I signed my commits.

👍 @Nikhil-Ladha


Unable to receive events from Freepbx

I installed Freepbx version from here: https://www.freepbx.org/downloads/ (the Legacy one) and configured  Manager User in it. Now I can login to the server using AsterNET and commands work like adding a number to blacklist.
My aim is to monitor the incoming call alert events when a call is made. For this I subscribed to the events as well. However, no incoming call alert is generated in my .NET application when call is made. Can anyone help in this? Which versions of Asterisk are supported by this API at this time?

You need to ensure you've subscribed your account in manager.conf to the event types you want to receive.
[mark]
  secret = mysecret
  deny=<IP_ADDRESS>/<IP_ADDRESS>
  permit=<IP_ADDRESS>/<IP_ADDRESS>
  permit=<IP_ADDRESS>/<IP_ADDRESS>
  read = system,call,log,verbose,command,agent,user,originate
  write = system,call,log,verbose,command,agent,user,originate

@skrusty ,
Can you please point me to where I can find the manager.conf?

I checked the Permissions and all are marked as allowed: http://prntscr.com/h4a8k8

@skrusty ,
I now executed Asternet.Test sub-project and it started printing all events to output from this method:
static void dam_Events(object sender, ManagerEvent e)
{
	Console.WriteLine(e);
}

Its lots of data. Other events like dam_Dial, dam_Hangup are never ever triggerred. I have also set eventwhencalled to Yes in Freepbx configuration, but still no event is generated.
Can any one help in this?

Its true, after asterisk 13 these events are not reconized and not used anymore.
Whats the porpose of your application ?
Enviado do Email para Windows 10
De: kashifiqb
Enviado:terça-feira, 31 de outubro de 2017 12:15
Para: AsterNET/AsterNET
Cc:Subscribed
Assunto: Re: [AsterNET/AsterNET] Unable to receive events from Freepbx (#118)
@skrusty ,
I now executed Asternet.Test sub-project and it started printing all events to output from this method:
static void dam_Events(object sender, ManagerEvent e)
{
Console.WriteLine(e);
}
Its lots of data. Other events like dam_Dial, dam_Hangup are never ever triggerred. I have also set eventwhencalled to Yes in Freepbx configuration, but still no event is generated.
Can any one help in this?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Here is the scenario:

Agent is logged to a IP Phone  with extension 100
He also has my application running in front of him where callers information is displayed
I want that when a call is made from 101 to 100, my application should display the caller number to the  agent in my application. This caller number will also help me link the caller information to my database of callers for info such as name, address, etc.

So, the aim is to get caller alert with caller id in my application which I was hoping to get through this event. Also, if call disconnection/completion event is fired, it will help log the total time duration of the call in my application for record.
Any idea please?

Ok, the best way to do that is with the Status Events.
The Dial is Async and can be lost on network problems.
Using the StatusCommand you will have a better info about the active channels. U Can run these an 2 seconds interval and check the diferences between than.
Enviado do Email para Windows 10
De: kashifiqb
Enviado:terça-feira, 31 de outubro de 2017 12:22
Para: AsterNET/AsterNET
Cc:hugodeco; Comment
Assunto: Re: [AsterNET/AsterNET] Unable to receive events from Freepbx (#118)
Here is the scenario:
• Agent is logged to a IP Phone with extension 100
• He also has my application running in front of him where callers information is displayed
• I want that when a call is made from 101 to 100, my application should display the caller number to the agent in my application. This caller number will also help me link the caller information to my database of callers for info such as name, address, etc.
So, the aim is to get caller alert with caller id in my application which I was hoping to get through this event. Also, if call disconnection/completion event is fired, it will help log the total time duration of the call in my application for record.
Any idea please?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

Can you please give me an example code? Much appreciated if you could share a sample.

My CODE !!! Private ?!!!! and sorry its in Portuguese.
// EVERY 2 SECONDS
static void manutencaoRelatorio(Object stateInfo)
{
if (Gatilho["Manutencao"])
{
if (!Gatilho["Manutencao-Trabalhando"] || (StatusLastAction.AddSeconds(10) < DateTime.Now))
{
Gatilho["Manutencao-Trabalhando"] = true;
try
{
if (PAsterisk.AManager.IsConnected())
{
ManagerResponse resposta;
resposta = PAsterisk.AManager.SendAction(new StatusAction(), 2000);
StatusActionID = resposta.ActionId;
StatusLastAction = DateTime.Now;
Contador["Manutencao-Relatorio"] = 0;
}
else
{
Gatilho["Manutencao-Trabalhando"] = false;
Contador["Manutencao-Erro"]++;
if(Gatilho["Depuracao"]) Sufficit.Sistema.Alerta(Sufficit.Comunicacao.TMensagem.Depuracao, "erro ao enviar comando de status: não conectado");
}
}
catch (Exception ex)
{
Gatilho["Manutencao-Trabalhando"] = false;
Contador["Manutencao-Erro"]++;
if(Gatilho["Depuracao"]) Sufficit.Sistema.Alerta(Sufficit.Comunicacao.TMensagem.Erro, "erro ao enviar comando de status", ex);
}
}
else { Contador["Manutencao-Sobrecarga"]++; }
}
        try
        {
            IEnumerable<Canal> inativos = Canais.Values.Where(subitem => !subitem.Ativo && Ferramentas.ToDateTime(subitem.TimeStamp).AddMinutes(2) < DateTime.Now);
            foreach(Canal item in inativos)
            {
                lock (_canais) _canais.Remove(item.ID);
            }
        }catch(Exception ex) { Sufficit.Sistema.Alerta(Sufficit.Comunicacao.TMensagem.Erro, "erro ao remover canal do cache", ex); }
    }

// EACH CHANNEL WILL GENERATE ONE OF THAT, SUM THEN ALL
static void eventoTipoStatus(object sender, StatusEvent Evento)
{
try
{
Contador["Manutencao-Relatorio"]++;
if (Depuracao.Gatilho["Status"]) Depuracao.Depurar(Evento);
if (!String.IsNullOrWhiteSpace(Evento.ActionId) && StatusActionID == Evento.ActionId)
eventoPreparar(Evento);
//else Contador["Manutencao-Divergente"]++;
}
catch (Exception ex) { Sufficit.Sistema.Alerta(Sufficit.Comunicacao.TMensagem.Erro, "erro ao processar EVENTO Tipo Status asdasdasd", ex); }
}
// GET INFO AFTER COMPLETE AND CHECK WITH PAST SUM, CONSISTENCE
static void eventoTipoStatusComplete(object sender, StatusCompleteEvent Evento)
{
try
{
if (Depuracao.Gatilho["StatusComplete"]) Depuracao.Depurar(Evento);
if (Evento.Items == Contador["Manutencao-Relatorio"])
{
                foreach (Canal item in Ativos.Where(sub => sub.Value.TimeStamp <= Evento.Timestamp).Select(subitem => subitem.Value))
                {
                    if (!String.IsNullOrWhiteSpace(Evento.ActionId) && item.UltimoEventoStatus != Evento.ActionId) canalHangup(item.Eventos.Last());
                }

            }
            else
            {
                Contador["Manutencao-Divergente"]++;
                foreach (Canal item in Ativos.Where(sub => (sub.Value.TimeStamp + (Intervalo * 5)) < Evento.Timestamp).Select(subitem => subitem.Value))
                {
                    canalHangup(item.Eventos.Last(), "sem evento de status por ( ms ): " + Intervalo * 5);
                }
            }
        }
        catch (Exception ex) { Sufficit.Sistema.Alerta(Sufficit.Comunicacao.TMensagem.Erro, "erro ao processar EVENTO Tipo Status gfd gfg", ex); }
        Gatilho["Manutencao-Trabalhando"] = false;
    }

// AGREGATE TO FORM CHANNELS AND PREPARE TO RECOGNIZE THE CALLS
static bool eventoPreparar(AsterNET.Manager.Event.ManagerEvent Evento)
{
Contador["Eventos-Total"]++;
if (!Gatilho["Eventos-Ignorar"])
{
if (Evento != null && !String.IsNullOrWhiteSpace(Evento.Channel))
{
Contador["Eventos-Validos"]++;
if (!String.IsNullOrWhiteSpace(Evento.Channel))
{
Contador["Eventos-Processados"]++;
return canalVincular(Evento);
}else Contador["Eventos-Descartados"]++;
}
else Contador["Eventos-Nulos"]++;
} else Contador["Eventos-Ignorados"]++;
return false;
}

Sorry but that is totally non-understandable due to language :(

Kkkkkkk, sorry, can’t help much more !
Enviado do Email para Windows 10
De: kashifiqb
Enviado:terça-feira, 31 de outubro de 2017 12:39
Para: AsterNET/AsterNET
Cc:hugodeco; Comment
Assunto: Re: [AsterNET/AsterNET] Unable to receive events from Freepbx (#118)
Sorry but that is totally non-understandable due to language :(
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

Never mind.
Can any one else help please?

@kashifiqb, what the event are you trying to receive? Which events are you subscribing to?

@Deantwo ,
If you configure simple Freepbx with PJSIP extensions and make them part of queue and use this API, you will see that AgentConnect, AgentHangup and ManagerHangup events are raised a lot late.

I never did quite understand what your question was here.
But if all you want to do is detect when a call is made, I posted some code here: https://github.com/AsterNET/AsterNET/issues/132#issuecomment-361912372
But I have never had the need to see call hangup, so I don't have a good idea about that.
Closing this issue, but if you need more help just reopen it.


 If I comment out the line Generic[U], there is no error.

The big stacktrace:
error.txt

Reproduced ... thanks. A workaround would be to unnest the ADT.

Yeah, that's what I'm doing currently. The error also seems to go away if the ADT definition is still inside the method foo, but C and D are not defined inside the object U.

This seems completely broken:

In object (compiler error)

object NestedGeneric extends App {
  import shapeless._

  def foo(): Unit = {
    sealed trait T
    object T {
      case object O extends T
    }

    println(Generic[T])
  }

  foo()
}

Error:(10, 20) Internal error: unable to find the outer accessor symbol of class anon$macro$1
    println(Generic[T])
Error:(10, 20) Internal error: unable to find the outer accessor symbol of <none>
    println(Generic[T])

In def (compiler error)

object NestedGeneric extends App {
  import shapeless._

  def foo(): Unit = {
    sealed trait T
    def t: T = {
      case object O extends T
      O
    }

    println(Generic[T].to(t))
  }

  foo()
}

Error:scala: Error: Could not find proxy for lazy val O$module: scala.runtime.LazyRef in List(lazy value O$module, method t$1, object NestedGeneric, package <empty>, package <root>) (currentOwner= method to )

In val (ok)

object NestedGeneric extends App {
  import shapeless._

  def foo(): Unit = {
    sealed trait T
    val t: T = {
      case object O extends T
      O
    }

    println(Generic[T].to(t)) // Inl(O)
  }

  foo()
}

In val again (runtime error)

object NestedGeneric extends App {
  import shapeless._

  def foo(x: Boolean): Unit = {
    sealed trait T
    val t: T = if (x) {
      case object O extends T
      O
    } else {
      case object U extends T
      U
    }

    println(Generic[T].to(t))
  }

  foo(true)
}

Exception in thread "main" java.lang.VerifyError: Bad local variable type
Exception Details:
  Location:
    NestedGeneric$.foo(Z)V @46: aload_3
  Reason:
    Type top (current frame, locals[3]) is not assignable to reference type
  Current Frame:
    bci: @46
    flags: { }
    locals: { 'NestedGeneric$', integer, 'java/lang/Object' }
    stack: { 'scala/Predef$', 'shapeless/Generic$', uninitialized 42, uninitialized 42 }
  Bytecode:
    0x0000000: 1b99 0013 bb00 4e59 b700 4f4e 2a2d b600
    0x0000010: 53a7 0012 bb00 4e59 b700 4f3a 042a 1904
    0x0000020: b600 574d b200 5cb2 0061 bb00 1259 2d19
    0x0000030: 04b7 0064 b600 682c b900 6e02 00b6 0072
    0x0000040: b1
  Stackmap Table:
    same_frame(@20)
    same_locals_1_stack_item_frame(@35,Object[#4])

	at NestedGeneric.main(NestedGeneric.scala)

What I would expect:

works
to 4. no implicit Generic found

@joroKr21 thanks for those examples. I'm pretty sure these are all the consequences of scalac bugs relating to companion objects of nested types. There might or might not be a fix for them in shapeless. In any case I'll see if I can identify the scalac issue which is prompting them.

@milessabin I think there is definitely a  bug in GenericMacros, because manually expanding a Generic implementation in 1. works and in 2. to 4. we cannot write such an implementation because we cannot bring the subtypes into scope.
The problem is most probably in ctorsOfAux. In 1. it should give us the type T.O but it gives us NestedGeneric.T.O which doesn't exist (or maybe it does after some later compiler phase, but not during the typer). In 2. to 4. it should abort because the subtypes are not accessible but it doesn't.
There might be some Scala bugs involved as well. IMO it has too lax rules regarding accessible types. In particular scalac will sometimes infer types that we cannot write explicitly:
@ Seq.canBuildFrom[Int]
res7: CanBuildFrom[Seq.Coll, Int, Seq[Int]] = scala.collection.generic.GenTraversableFactory$$anon$1@5eb054

Ahh ... yes, right ... in (2) .. (4) the subtypes don't have a stable prefix as seen from the Generic materialization site, so they should be excluded.

@milessabin There's an even more disturbing example that compiles and doesn't throw runtime exceptions, but doesn't behave as expected:
object NestedGeneric extends App {
  import shapeless._

  sealed trait T
  case class C(i: Int) extends T
  val t: T = {
    new T { }
    C(42)
  }

  val gen = Generic[T]
  println(gen.to(t)) // Inl(C(42))
  println(gen.to(C(42))) // Inr(Inl(C(42)))
}

Note that we cannot distinguish whether the anonymous class above is actually assigned to t. But this is assumed in the EnumVal tests. So it can't be fixed without changing the spec. IMHO we should drop support for anonymous subclasses of the sealed trait.

Nice catch!


enhance authz interface for policies

This patch contains changes to:

introduce a policy map (as discussed in our earlier meetings and inline with discussion here https://github.com/docker/docker/issues/18647#issuecomment-170501026)
the authz plugin interface to allow passing policies from plugin to daemon

additionally, since multiple authz plugins can be chained, the policies are also passed to subsequent plugins in the chain giving them a chance to update the policy, if needed

add the policies returned by the authz plugin to the container's config. This is visible when we do docker inspect.

Next steps:

review this PR and see if it is inline with what we want to propose to docker folks
update the documentation on authz plugins
I will continue to work on implementing a authz plugin (in contiv/policyengine repo) that adheres to the updated interface

and possibly incorporate the structures from @jainvipin 's (soon to be sent) PR on concrete policy structures, discussion for which is already undergoing I believe on github-gist

make changes to libnetwork and volume driver interface to accept and pass policies down to drivers
see if we can implement the authz interface in volplugin and docknetplugin itself to avoid having a yet another daemon for storage and network policies.

Note: some of the changes are in vendor directory which implies this will possibly be merged as separate PRs in docker, if it get's accepted that is :).
/cc @shaleman @jainvipin @erikh @unclejack

@mapuri - basic structure looks right to me - thanks! Some comments:

test cases would be added soon after
Ref to the full-policy proposal: https://gist.github.com/jainvipin/d1f9b8da89be81ce3e6a
Makefile changes for http_proxy, while not specific to an environment, may not be needed in the final checkin

@jainvipin thanks for the review.
I will update the documentation and test cases as well and push them in this PR.

@jainvipin @shaleman
I have updated the policy related structure to be in line with the proposal here https://gist.github.com/jainvipin/8b1677f041534df576b2
PTAL when you get a chance.


Build fails to access git executable

When visiting https://bench.rustls.dev/info, this is the returned JSON:
{
  "git_commit_message": "VERGEN_IDEMPOTENT_OUTPUT",
  "git_commit_sha": "VERGEN_IDEMPOTENT_OUTPUT"
}

I have traced the problem to the fact that the vergen library is unable to use the git executable during the build step. @cpu any clue on how to solve this, based on your ansible experience? I tried explicitly setting the PATH variable as follows, but it didn't change anything:
- name: Build app
  become: true
  become_user: "{{ app_user }}"
  ansible.builtin.command: /home/{{ app_user }}/.cargo/bin/cargo build --release
  changed_when: true
  args:
    chdir: /home/{{ app_user }}/rustls-bench-app/ci-bench-runner
    # Note: omitting a 'creates' here - we want to build fresh even if the binary exists
    #       in order to pick up changes from the src git repo updating.
  environment:
    PATH: /usr/bin

In case it's useful for debugging, I'm using the info-take-2 branch, which ensures the build fails when git cannot be found (instead of succeeding and returning VERGEN_IDEMPOTENT_OUTPUT in the JSON response).

Hmm, that's odd.
The vergen dependency is a bit complex. Maybe it would be easier to reason about if we wrote a manual build.rs update that did something like:
    let output = Command::new("/usr/bin/git").args(&["rev-parse", "HEAD"]).output().unwrap();
    let git_hash = String::from_utf8(output.stdout).unwrap();
    println!("cargo:rustc-env=GIT_HASH={}", git_hash);

Do you think we could achieve a similar goal without hardcoding the path to git? Not sure if it makes much of a difference, but superficially I'd expect it to keep the hardcoded path to make the build less portable across systems (which can be annoying for anyone who wants to contribute).
Alternatively, we can configure vergen to use git2 or gitoxide instead of the git CLI. It would result in a longer build time, but should at least work out of the box without having to hardcode anything or specify paths manually.

Do you think we could achieve a similar goal without hardcoding the path to git?

Yeah, I would expect just git to work fine based on the system PATH but wanted to propose something simple to start with.
I would maybe try this in a few steps:

Switch to using Command in build.rs, with a fully qualified path
Verify it's working
Switch to just git and relying on the system PATH
Verify it's working, or debug the PATH

Alternatively, we can configure vergen to use git2 or gitoxide instead of the git CLI. It would result in a longer build time, but should at least work out of the box without having to hardcode anything or specify paths manually.

I guess I'm unconvinced it's worthwhile as opposed to just invoking git and taking the output :thinking:


hta

where does the hta lib come from?

It's released internally from Qualcomm, and we are still working on it. Documents will be added after it's ready.

is this lib compatible with qcom's full range of platforms? or are there multiple versions, like hexagon. v60/v65/v66, etc

There is only one version for all platforms now.

thx.


I am Not Good in Java So Please Tell me How to Use

Hy!
I am New in Cordova Tell How to Use Cordova Plugin in index.html How to Call Funcation . I am Call PDF file Open In External App So please Help Me

The README has detailed description on how to call the plugin using JavaScript. If you do not know how to use Cordova then please use the Cordova documentation.


Feature: Add Http-Polling and Prometheus Components

Addresses #34
This PR contains two new updater components, their example modules and an auxiliary component:

Http Polling Updater
Prometheus Updater
Http-jsonata-aas example
Prometheus-jsonata-aas example
Timer (auxiliary component)

With these components, data from Http or Prometheus Endpoints can be integrated into the AAS.
Especially integrating device data via tools like Prometheus is essential for creating digital twins via AAS.
Technical details

Prometheus component is an extension of the HttpPolling component, facilitating the query of metrics
Route creation in UpdaterRouteBuilder has been extended to support the components
HttpPolling example works out of the box, Prometheus example requires a basic Prometheus + nodeexporter instance running
This PR only devolps its full functionality with #66, since its goal is to be deployed, while still being able to be configured.

Try it out
The easiest way to try it out is to clone and run this docker-compose stack.
It collects metric data and sends it to the AAS using the Prometheus Component.
The core element of the compose stack is the Prometheus-AAS-Router service, where the Updater with the Prometheus component resides.
Check out its repo for more details on how the the underlying Java application works and how the image is built
Open issue
Camels Http component doesn't fit well into Basyx Updater route scheme:
Routes and route creation works different with camels Http component, as it starts with a timer
from(timer).to(consumer).to(producer)
instead of starting with the datasource
from(consumer).to(producer)
Therefore, conforming the Updater route scheme provides:
Datasource = timer
Datasink[0] = Http/Prometheus
Datasink[1] = AAS
This can be explored in the routes.json of the HttpPolling/Prometheus examples or in the demonstration compose stack.
In this PR the workaround results in a working solution, but the Basyx Updater scheme should consider altering its scheme for a cleaner integration of http endpoints.

Did 536d solve the remark?

Yes it did - I somehow missed this update. Thank you for pointing out the fix.


Extra comma in exports produces unhelpful error message in 0.16-alpha

Here's a little program with an error (an extra comma in the exports):
module Example
    ( a ,
    , b) where

a = 7
b = 8

In Elm 0.15, if you run elm-make, you get this error:
-- SYNTAX PROBLEM ----------------------------------------------------- Test.elm

I ran into something unexpected when parsing your code!

3|     , b) where
       ^
I am looking for one of the following things:

    a value or type to expose
    whitespace

In Elm 0.16-alpha, you get this error message:
elm-make: TODO

I considered putting this in the error messages catalog, but that is set up for 0.15, so I thought perhaps the issue should go here, for the moment anyways.

Ah, had some TODOs left in the error reporting code! This should be fixed along with some other things now!