Blazor hybrid support

Hi @melihercan! Do you expect to add Blazor hybrid support?
I found that WebRTCme.Bindings.Blazor.Extensions.JsRuntimeExtensions.Invoke and InvokeVoid relies on IJSInProcessRuntime, the problem is that this interface isn't available in hybrid.

https://github.com/dotnet/aspnetcore/issues/37647
https://github.com/dotnet/maui/issues/2861#issuecomment-948401860

Will recreate from another account


Minor fixes

ece59acc1e6eab1beaefc7a4715b95cd2c4d787a: This is "nice to have" in general, and also fixes a strange SIGSEGV I have been running into when launching MC in dev.
4df082e6d384b329cdfa5e3c4930ee027cd094c5: Before only put/remove calls were synchronized, which prevented two simultaneous modifications, but not a modification during a read. If there are performance concerns about using a "general purpose" lock/mutex here I can replace it with a ReadWriteLock.

Clearly this repo and the idiots running it are not interested in external contributions, to the degree where even asking for additional justification is too much work.

Whelp, called the rage quit. Anyways, as stated in the other issue. The reason this one was left alone is because it contained no justification. No discussion with anyone else. No reproduction steps. And until just recently was unverified to actually exist {none of the team had encountered it even while trying to reproduce}. Luckily one of our other community members was able to independently run into this issue on their own and actually sat down to understand and explain the issue.
Just for the record, malte has a history of these 'Just do what I say' without explanation PRs, and a history of throwing a fit if we try and verify or get any more information out of him. So my personal approach is to ignore until a 3rd party can verify/deal with it. (Which is why this PR has no response, even tho I've seen it)
You're more then welcome to submit issues/fixes if you're willing to discuss and back them up.


[Bug] [connector-jdbc] Catalog's SELECT_COLUMNS_SQL_TEMPLATE have some issues. #6054

Purpose of this pull request

This pull request is fixing some connector-jdbc Catalog's SELECT_COLUMNS_SQL_TEMPLATE issues.

OracleCatalog's sql statement of SELECT_COLUMNS_SQL_TEMPLATE have some issue when the column‘s type is NVARCHAR2 or NCHAR, the length of column should get the cols.char_col_decl_length.

SqlServerCatalog's SELECT_COLUMNS_SQL_TEMPLATE has the same issue, when the column‘s type is NVARCHAR or NCHAR.

PostgresCatalog's SELECT_COLUMNS_SQL_TEMPLATE have some issue, when the column‘s type is bit(1) , time, timetz, timestamptz.

for Detail please check the https://github.com/apache/seatunnel/issues/6054
Does this PR introduce any user-facing change?

'No'
How was this patch tested?

Have checked the sql statement for each database.
Check list

[ ] If any new Jar binary package adding in your PR, please add License Notice according
New License Guide
[ ] If necessary, please update the documentation to describe the new feature. https://github.com/apache/seatunnel/tree/dev/docs
[ ] If you are contributing the connector code, please check that the following files are updated:

Update change log that in connector document. For more details you can refer to connector-v2
Update plugin-mapping.properties and add new connector information in it
Update the pom file of seatunnel-dist

[ ] Update the release-note.

Hi @LoverAndrew . Thanks for contribute ! Could you add some comment to explain to purpose of this PR?

Hi @LoverAndrew . Thanks for contribute ! Could you add some comment to explain to purpose of this PR?

Done.

Hi @LoverAndrew , please resolve conflict.

Hi @LoverAndrew , please resolve conflict.

Have done.

Thanks @LoverAndrew for updated. Please follow the guide to open ci on your fork repository.

Also could you add some test case to cover this bug? You can follow https://github.com/apache/seatunnel/blob/aaef22b31b2257320d497e36d48fa3f2200f6964/seatunnel-e2e/seatunnel-connector-v2-e2e/connector-jdbc-e2e/connector-jdbc-e2e-part-3/src/test/java/org/apache/seatunnel/connectors/seatunnel/jdbc/JdbcSqlServerIT.java#L298

Could you add a test case to cover this change?

Could you add a test case to cover this change?

Have added.

Please merge updates from dev branch


netbox-reorder-rack: init at 1.0.0

Description of changes

A NetBox plugin for reordering racks using click and drop: https://github.com/minitriga/netbox-reorder-rack
Not packaged using v1.1.0 yet, because that version is only compatible with NetBox>=4.0.0.
Things done

Built on platform(s)

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

[ ] 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

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

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

[x] Fits CONTRIBUTING.md.

Tested by running NetBox with that plugin enabled inside a clean VM.
@RaitoBezarius & @n0emis might be interested in this.

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

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/4032


HTML validation fails

I render a Select2Widget.
The HTML validation for this fails.
The generated HTML source contains a table without table tag.
I'm not sure if the problem comes from django-select2 or from select2 itself.

@jvpap thanks for the info, but you are correct, it is a problem in select2. We don't have any HTML code in this repository. All HTML that is generated uses Django templates. All JS related DOM modifications are provided by select2.
Cheers
-Joe


Update build-uinput.yml

update to current unraid stable 6.10.2

This was done in https://github.com/games-on-whales/unraid-plugin/pull/14 but I forgot to close this. Thanks again, @ChronoStriker1!


Intro Logo's not skipping

Hi
Not sure if this is the right place to report it, very new to github, but got your recent release with the feature to skip intros.
Playing MGS3-NA and the logos aren't bring skipped, I do have the upscaled logos from Nexus Mods but that's just visual so I doubt they would be the cause etc.
When I come to test MGS2 and the different regions etc. I'll let you know if I get the same results.
Also, thanks for working on the fixes :)

You need to go edit the .ini that comes with the mod and set skip intros to "true"

Oh god I'm an idiot.... I even saw the line of code in the earlier (source) builds knowing the feature was coming and I completely forgot to check there..... ugh.... thanks @xenrohachi very much appreciated :)


Opening Windows directory crashes program

Explain the bug
Opening the windows directory crashes the program. Also, one time opening a new tab after opening the Windows directory also crashed the program.
To reproduce

Open windows directory

Also might be related to preemptive cache of 1
Expected behavior
Does not crash
Logfile
debug.txt
debug_fulltrust.txt
Screenshots
none
System Information
Version 10.0.19041 Build 19041
App Version <IP_ADDRESS>
Additional comment
none

also happened when i went into Recycle Bin, it might be a problem with large folders (maybe memory?)

Thanks for reporting this. You mentioned preemptive caching, does this issue occur with the preemptive cache feature disabled?

This issue should be resolved in main.


codecov trial.

Pull Request Test Coverage Report for Build 48

0 of 0   changed or added relevant lines in 0 files are covered.
7 unchanged lines in 2 files lost coverage.
Overall coverage decreased (-4.6%) to 73.203%

Files with Coverage Reduction
New Missed Lines
%

Sources/Scientist/Result.swift
2
61.29%

Sources/Scientist/Experiment.swift
5
77.61%

Totals

Change from base Build 46:
-4.6%

Covered Lines:
112

Relevant Lines:
153

💛  - Coveralls

Codecov Report

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

@@            Coverage Diff            @@
##             master       #4   +/-   ##
=========================================
  Coverage          ?   79.82%
=========================================
  Files             ?        4
  Lines             ?      114
  Branches          ?        0
=========================================
  Hits              ?       91
  Misses            ?       23
  Partials          ?        0

Continue to review full report at Codecov.

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


TextureArray does not support float/half-float layers

Godot version
3.x
System information
Windows 10, GLES3
Issue description
Somehow images in a TextureLayered get converted to normalized values. When you run the following code:
func _ready():
	# This works
	var im := Image.new()
	im.create(5,5, false, Image.FORMAT_RF)
	im.lock()
	for i in range(5):
		im.set_pixel(i, i, Color(i, i, i))
	im.unlock()

	im.lock()
	for i in range(5):
		print(im.get_pixel(i, i).r)
	im.unlock()

	# This breaks
	var arr = TextureArray.new()
	arr.create(5, 5, 1, Image.FORMAT_RF)
	arr.set_layer_data(im, 0)

	var im2 = arr.get_layer_data(0)
	im2.lock()
	for i in range(5):
		print(im2.get_pixel(i, i).r)
	im2.unlock()

It will first output 0, 1, 2, 3, 4 correctly, but the second time (using the image returned from get_layer_data) it prints 0, 1, 1, 1.
Steps to reproduce
Create an image with e.g. FORMAT_RF, put values > 1.0 in via set_pixel, make the image part of a TextureLayered, then get the image from the layers, and read the pixels.
See the code mentioned above.
Minimal reproduction project
See above.

https://docs.godotengine.org/en/stable/classes/class_color.html
Color in RGBA format using floats on the range of 0 to 1. ... If you want to supply values in a range of 0 to 255, you should use [@GDScript.Color8](https://docs.godotengine.org/en/stable/classes/class_%40gdscript.html#class-gdscript-method-color8).
replacing Color by Color8 prints out
0
0.003922
0.007843
0.011765
0.015686
0
0.05098
0.086275
0.109804
0.133333

right, which:
a. Shows that the data in the image gets changed.
b. Still does not allow me to store non-normalized floats in my FORMAT_RF texture :(
(Just for context, I'm trying to store X/Y/Z vertex coordinates in the texture)

Just tested the above code in 4.0 (Need a few tweaks due to renames/API changes, but functionally stays the same) and it works there, it prints 0,1,2,3,4 for both loops.

Maybe there's another bug in 4.0, because based on documentation, you should access r8 to get a value in [0, 255] range

Using FORMAT_RGB8 & Color8, there's no problem, so I guess the problem is the format


14 input fields validation

I just added input validation on the NewPatientScreen

Please convert the ART Number to uppercase when storing in the database.

Codecov Report

Merging #50 into develop will decrease coverage by 0.57%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           develop     #50      +/-   ##
==========================================
- Coverage      5.4%   4.83%   -0.58%
==========================================
  Files           52      49       -3
  Lines         5343    5127     -216
==========================================
- Hits           289     248      -41
+ Misses        5054    4879     -175

Impacted Files
Coverage Δ

lib/screens/NewPatientScreen.dart
0% <0%> (ø)
:arrow_up:

lib/screens/MainScreen.dart
17.76% <0%> (-1.99%)
:arrow_down:

lib/database/models/ViralLoad.dart
0% <0%> (ø)
:arrow_up:

lib/screens/PreferenceAssessmentScreen.dart
0% <0%> (ø)
:arrow_up:

lib/screens/AddViralLoadScreen.dart
0% <0%> (ø)
:arrow_up:

lib/screens/PatientScreen.dart
0% <0%> (ø)
:arrow_up:

lib/database/DatabaseExporter.dart
0% <0%> (ø)
:arrow_up:

lib/utils/SwitchToolboxUtils.dart
0% <0%> (ø)
:arrow_up:

lib/components/TransparentHeaderPage.dart
88.13% <0%> (ø)
:arrow_up:

lib/components/PEBRAButtonFlat.dart
0% <0%> (ø)
:arrow_up:

... and 16 more

Continue to review full report at Codecov.

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

Looks better already, good work! Can you still take care of the following points:

[ ] The keyboard for entering the ART number only shows numbers right now, so the user cannot enter any letters. Please change the keyboardType.

[ ] Let's store the phone number together with the prefix '+266'. It should be enough to call the _formatPhoneNumber method with countryCode: '266' in the _onSubmitForm method (line 706).

[ ] Please validate user inputs in all screens of the app, i.e., also in

Edit Patient Screen (phone number)
Preference Assessment Screen (VHW phone number, treatment buddy phone number, treatment buddy ART number, patient phone number, PE phone number)

I completed the input validation changes in all screens.


docs(docusaurus): add Yarn resolutions troubleshooting section to README

Current Behavior

Newly generated Docusaurus apps appear to fail building due to a known monorepo bug.
Expected Behavior

The repo should at least have a note about this in the README.

Both of the requested changes have been pushed.

Both of the requested changes have been pushed.

@devinshoemaker thanks again!

@devinshoemaker thanks again!


whiteboardDao.setAccessType(...) throws WhiteboardNotFoundException

... even though the whiteboard exists.
Steps to reproduce:

set breakpoint in WhiteboardService#update
in the web UI go to "My Whiteboards" and try to change accessibility

solved.


fix(costmodels): filter rate by metric using metric labels

closes COST 730

Codecov Report

Merging #1771 (8a2ce78) into master (8906c43) will increase coverage by 1.12%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1771      +/-   ##
==========================================
+ Coverage   77.18%   78.30%   +1.12%
==========================================
  Files         295      295
  Lines        4764     5209     +445
  Branches      912     1195     +283
==========================================
+ Hits         3677     4079     +402
- Misses        986     1108     +122
+ Partials      101       22      -79

Impacted Files
Coverage Δ

src/components/i18n/i18nProvider.tsx
57.14% <0.00%> (-9.53%)
:arrow_down:

src/pages/state/maintenance/maintenanceState.tsx
66.66% <0.00%> (-8.34%)
:arrow_down:

src/store/common.ts
81.81% <0.00%> (-7.08%)
:arrow_down:

...ponents/reports/reportSummary/reportSummaryAlt.tsx
52.94% <0.00%> (-7.06%)
:arrow_down:

src/api/reports/reportUtils.ts
27.77% <0.00%> (-6.71%)
:arrow_down:

src/api/exports/exportUtils.ts
29.16% <0.00%> (-5.84%)
:arrow_down:

src/api/tags/tagUtils.ts
30.00% <0.00%> (-5.30%)
:arrow_down:

src/api/forecasts/forecastUtils.ts
31.25% <0.00%> (-4.47%)
:arrow_down:

src/utils/permissionsComponent.tsx
30.76% <0.00%> (-4.02%)
:arrow_down:

...d/azureCloudDashboard/azureCloudDashboardCommon.ts
33.33% <0.00%> (-3.34%)
:arrow_down:

... and 94 more

Continue to review full report at Codecov.

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


Newline & indentation causing issues in interpreted spaces

Version
2.6.10
Reproduction link
https://jsbin.com/feloyenami/2/edit?html,js,output
Steps to reproduce
Have any code written with the following format (including indentation and newlines)

  span

    {{ "MESSAGE" }}

  span

What is expected?
Consistent rendering of the middle element, and without spaces.
What is actually happening?
On node, the dev mode and built files will be rendered as:

Including Vue as a script tag (like in the repro), you will get:

However, what you probably really want is:

Personally, I feel that whitespace should be stripped out if the curly braces are the only thing within the html tag, if those are required then they can be added within the curly braces like {{ " example " }}.
You will probably encounter this if you use plugin:vue/recommended in your eslint config as that enforces the multi-line attributes in html tags.
Workaround:
span

  <template>{{ "MESSAGE" }}</template>

span

You may also encounter something similar in the following case:

  asd
  {{ "MESSAGE" }}
  asd

Spaces will be added between MESSAGE which might not be what you want, workaround is the same. I'm not sure if this is an issue or not, but the result may be unexpected considering that indentation & newline is being interpreted as actual characters.

just realised this is discussed in #10443 #9208


Ability to have no leading as well as modify leading correctly.

Fixed issue #1

I would appreciate a review, pull request, as well as an updated version to Pub.dev as I am using this lib in a new project.
Thanks in advance.

Added ability to pass format to card.

Hello @AndreasLyngholm, It looks like this PR is addressing two separate issues. Could you please create separate PR for each issue so that is easier for us to reference them in the future?


Implement drag'n'drop for the Mastodon launcher (Issue 208)

Closes #208

Again, I think the drag & drop is already implemented, but does not work in Fiji because of a bug in LOCI libs.

@tinevez You're absolutely right, drag and drop is already implemented. A user can drag and drop a Mastodon file into the Fiji main window. And unfortunately, due to a bug in a LOCI library, a strange error message appears. (We need to file a bug report about this!)
But this PR tries to implement a slightly different drag and drop behavior. A user can drag and drop a mastodon file into the mastodon launcher (instead of the main Fiji window). This would allow for a very nice workflow:
Let's say a user has two Mastodon projects (Project A and project B) in a folder. The user wants to open project B. The user launches the Mastodon Launcher. Project A is in the list of recently opened files. The user double-clicks on project A. This causes Mastodon to launch the system's file browser to show the containing folder. The folder also contains project B. The user can now simply drag and drop Project B into the Mastodon Launcher. And the Mastodon Launcher opens it. Voila!

@tinevez You're absolutely right, drag and drop is already implemented. A user can drag and drop a Mastodon file into the Fiji main window. And unfortunately, due to a bug in a LOCI library, a strange error message appears. (We need to file a bug report about this!)

Ok!
The PR is already done AFAIK. Curtis is in charge of this part.

But this PR tries to implement a slightly different drag and drop behavior. A user can drag and drop a mastodon file into the mastodon launcher (instead of the main Fiji window). This would allow for a very nice workflow:
Let's say a user has two Mastodon projects (Project A and project B) in a folder. The user wants to open project B. The user launches the Mastodon Launcher. Project A is in the list of recently opened files. The user double-clicks on project A. This causes Mastodon to launch the system's file browser to show the containing folder. The folder also contains project B. The user can now simply drag and drop Project B into the Mastodon Launcher. And the Mastodon Launcher opens it. Voila!

Oh Ok! I get it now.


Concierge welcome message duplicates when user tries to 'Reply in thread'

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Create a new account
Locate the concierge chat
Tap 'Reply in thread'

Expected Result:

Exactly one welcome message should be shown

Actual Result:

Two welcome messages are shown
A new one is duplicated when you enter the thread

Platforms:
Which of our officially supported platforms is this issue occurring on?

[x] Android / native
[x] Android / Chrome
[x] iOS / native
[x] iOS / Safari
[x] MacOS / Chrome / Safari
[x] MacOS / Desktop

Version Number:
Reproducible in staging?: Yes
Reproducible in production?: Yes

View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~0148a7248849f74964
Upwork Job ID:<PHONE_NUMBER>378813440
Last Price Increase: 2023-07-17

This can only be tested by internal employees.

I've reproduced the issue and found the issue as well. This is happening due to the component rendering twice. The issue could be fixed by removing the 2 lines causing issue in app.jsx

@Jahanzaib00 I just fixed this with a backend change, but I'm curious how your solution worked. Maybe there is a second bug?

Backend PR

Contributor details
Your Expensify account email<EMAIL_ADDRESS>Upwork Profile Link: https://www.upwork.com/freelancers/~01636befde3d45d50f

Cool, thanks Jules!

Pr was deployed to production. I reported it so there is nothing to pay out


Problems building iOS version of app with the plugin

Hello! I have been encountering errors when trying to build an iOS version using this plugin. Android works very fine but the iOS doesn't. Tried different solutions, all to no avail. Have attached the screenshot of the errors.

This plugin is not compatible with iOS simulator (architecture x86_64).  You must run your app on a hardware device.

The problem is that the plugin is not making the app compile.
On Jul 28, 2017 6:49 PM, "Matthew Wheatley"<EMAIL_ADDRESS>wrote:

This plugin is not compatible with iOS simulator (architecture x86_64).
You must run your app on a hardware device.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/DFTinc/cordova-plugin-onyx/issues/1#issuecomment-318719783,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AdHUBMkXhpzr-YgwL1tZB4Mic168szo-ks5sSh8kgaJpZM4OmncU
.

What device do you have selected when compiling?

I tried iPhone 5s, 6 and 7
On Jul 28, 2017 6:53 PM, "Matthew Wheatley"<EMAIL_ADDRESS>wrote:

What device do you have selected when compiling?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/DFTinc/cordova-plugin-onyx/issues/1#issuecomment-318720817,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AdHUBHvWXy_UsbEfJbEGkpSqMvFQU2-Aks5sSiAegaJpZM4OmncU
.

Your screenshot shows iPhone 5s (simulator).  Please connect a hardware device to your Mac or try generic hardware device and recompile.

Okay, thank you
On Jul 28, 2017 6:58 PM, "Matthew Wheatley"<EMAIL_ADDRESS>wrote:
Your screenshot shows iPhone 5s (simulator). Please connect a hardware
device to your Mac or try generic hardware device and recompile.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/DFTinc/cordova-plugin-onyx/issues/1#issuecomment-318721984,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AdHUBBx-I9wBWfAGUp2zEzv9k9ZQYNRQks5sSiFHgaJpZM4OmncU
.


dbt clone

resolves #7256

Description

Checklist

[x] I have read the contributing guide and understand what's expected of me
[x] I have signed the CLA
[x] I have run this code in development and it appears to resolve the stated issue
[x] This PR includes tests, or tests are not required/relevant for this PR
[ ] I have opened an issue to add/update docs, or docs changes are not required/relevant for this PR
[x] I have run changie new to create a changelog entry

if we are technically creating a materialization do we need to add a new is_type check inBaseRelation?

In a general way, updating the context is a very bad idea. The jinja documentation says all over the place that the context is immutable (though it does also store locally defined variables, temporarily), and I suspect that the only reason updating it works at all is because we implemented our own context object. It's also sets a bad example for users -- we don't want them changing things in the context either.  I'm not all that familiar with the code execution path here -- I'll look at it some more and discuss with Kshitij later this afternoon.

I think I'd be happier with a specific context method to set something (the cloned/alternate model? just the compiled_code?) and then modify the sql and compiled_code methods in the provider context to return the compiled_code from the cloned model if it exists, otherwise return the usual compiled_code.

Great!!!!

we need to modify the clone target directory to be different from the previous directory.

My understanding is that having a separate state directory is all you need? Do we have to have --target snowclone --target-path target_clone specified? Am I missing something?

@aranke only questions I currently have will be around possible ways of universally adding the clean_up methods and some possible stuff around spark implementation. this pr looks good on my end

Love this


A.I.M. and A.I.M. 2: Clan Wars - Glitched 2D world map

Both A.I.M.: Artificial Intelligence Machines and A.I.M. 2: Clan Wars (and A.I.M: Racing, too!) work flawlessly, except that the former two have few problems with map mask of explored areas, one of which this issue covers.
The 2D world map used to briefly work correctly about a month ago but I've since lost track of the commit, after the codebase was updated to newer DXVK, that added/fixed its requirements in the first place. First, after breaking, it stopped drawing map texture altogether and instead just showed empty mask while now the texture is back but this time it's "striped".
For comparison, the issue doesn't exist neither with WineD3D nor d3d8to9 + DXVK.

D8VK
d3d8to9 + DXVK

P.S. I mention here both affected games in the same issue as they use the same (but slightly altered) engine and are in overall very similar.
Software information

A.I.M.: Artificial Intelligence Machines, version 1.06
A.I.M. 2: Clan Wars, version 1.3.25

System information

GPU: AMD Radeon RX 5700 XT
Driver: Mesa RADV (free) 22.2.3
Wine version: 7.22 Staging
DXVK version: 1feb1be480effabd48b901d3b6023048d036cfb9

Apitrace file(s)

AIM.v1.06.trace
AIMII.v1.3.25.trace

Log files

AIM_d3d9.log
AIMII_d3d9.log

Can you capture a d3d8 apitrace?

Nevermind, I found the game for like $3 and recorded one myself. Working on a fix now.

Fixed in c6708fadf471415fb4de81d477c9839fe938e663. Open a new issue if there's any more trouble with this game.

Thank you!

Can you capture a D3D8 apitrace? These are D3D9 apitraces.

Sorry! Will keep it in mind for the next time.


Issue: <Please write a comprehensive title after the 'Issue: ' prefix>

Issue you'd like to raise.
Implementing langchain, Running my custom code, it returns “segmentation fault”.
Suggestion:
No response

Please provide a relevant code snippet and description


support explain raw plan & explain optimized plan

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
During reviewing PRs, I found Explain raw plan will be useful. (raw plan means the plan doesn't optimize).
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Materialize has the feature: https://materialize.com/docs/sql/explain/
Here is an example:
materialize=> EXPLAIN RAW PLAN FOR select * from posts where content = '1' and id = 1;
              Raw Plan
-------------------------------------
 %0 =                               +
 | Get materialize.public.posts (u1)+
 | Filter ((#2 = "1") && (#0 = 1))  +

(1 row)

explain verbose ... provide these functionalities already? from raw logical plan to each optimization step results and the final physical plan?

Thanks @yjshen


Do not apply sidescrolloff to DressingInput

Describe the bug
when you have a higher sidescrolloff value, this leads DressingInput to not using the entire width of the input window.
for the DressingInput window, sidescrolloff should be disabled or set to 0.
To Reproduce
Steps to reproduce the behavior:

set vim.opt.sidescrolloff = 30
run LSP rename (or anything else triggering dressing input)
fill a lot of characters

Additional context
this fixed it for me
augroup("dressing", {})
autocmd("FileType", {
	pattern = "DressingInput",
	group = "dressing",
	command = "setlocal sidescrolloff=0",
})

I've refactored the config to allow passing in any window options you like. This should work for you now:
require("dressing").setup({
  input = {
    win_options = {
      sidescrolloff = 0,
    },
  },
})
})


Conditionally include 'default_app_config' to remove Django 4.x deprecation warning

Django 3.2 began deprecating usage of the default_app_config value in app folders in favor of automatic AppConfig discovery.  The value will be completely removed in Django 4.1.
https://code.djangoproject.com/ticket/31180
This commit conditionally checks the current Django version to omit setting the default_app_config value in Django 3.2 and newer.  This removes the RemovedInDjango41Warning emitted during application startup.
RemovedInDjango41Warning: 'actstream' defines default_app_config = 'actstream.apps.ActstreamConfig'. Django now detects this configuration automatically. You can remove default_app_config.

Along with changes from #497 this should eliminate all known deprecation warnings for Django 4+ in active Django releases.

thanks!


chore(blockifier): add erc20 sierra contract

This change is

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#2668  👈 (View in Graphite)
#2614 : 1 other dependent PR (#2641 )
#2493
#2438
#2420 : 1 other dependent PR (#2421 )
#2467
#2466
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Merge activity

Dec 17, 3:08 PM EST: A user started a stack merge that includes this pull request via Graphite.


SUBS

Main info: I need help with the subs since I used a command that worked before with some series, but now it does not work with any and I do not know which one indicated the correct one **
Script version:
Service:
What do you want to do: I want to download only the subtitles in esLA
** Additional Info: **
this is the command i use:
node funi.js -s 19373 -q 10 --novids --subLang esLA --noaudio -e 0001

Hi!
I wanna know if there's a way to change the subtitle font.
I think that the KG Love Somebody have a better look.
(it's a manga type font)

@xslaayer29 It seams like you are using an outdated version?
@DinoVikingo changekng the font for funi or crunchy?

@xslaayer29 It seams like you are using an outdated version? @DinoVikingo changekng the font for funi or crunchy?

For funi, it's not that important if there's  no way to change the font tho.

Main info: I need help with the subs since I used a command that worked before with some series, but now it does not work with any and I do not know which one indicated the correct one **
Script version: Service: What do you want to do: I want to download only the subtitles in esLA
** Additional Info: ** this is the command i use: node funi.js -s 19373 -q 10 --novids --subLang esLA --noaudio -e 0001

Bro, try using:
aniDL.exe --service 'funi' -s 2831743 -q 0 --subLang esLA -e 1 --dub jaJP --novids --noaudio
or in your case:
node funi.js -s 2831743 -q 0 --subLang esLA -e 1 --dub jaJP --novids --noaudio

@DinoVikingo Implemented it just for you in the newest release

Hello,
Could someone tell me what the proper command to download only subtitles? thanks!

Main info: I need help with the subs since I used a command that worked before with some series, but now it does not work with any and I do not know which one indicated the correct one **
Script version: Service: What do you want to do: I want to download only the subtitles in esLA
** Additional Info: ** this is the command i use: node funi.js -s 19373 -q 10 --novids --subLang esLA --noaudio -e 0001

Bro, try using: aniDL.exe --service 'funi' -s 2831743 -q 0 --subLang esLA -e 1 --dub jaJP --novids --noaudio or in your case: node funi.js -s 2831743 -q 0 --subLang esLA -e 1 --dub jaJP --novids --noaudio

Thank you so much


5.0 cactbot error

getting this error and it will not load cactbot
6/30/2019 4:45:22 PM: Error: LoadAddons: C:\Program Files (x86)\Advanced Combat Tracker\addons\CactbotOverlay.dll: System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
File name: 'Newtonsoft.Json, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' ---> System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.
dll file is unblocked, on windows 10
tried a clean install as well, app data deleted and still same issue.

Take a look at https://github.com/quisquous/cactbot#potential-errors-and-workarounds

It sounds like maybe you didn't unblock the overlayplugin?

i did, it is unlocked. i zipped the file again which is another work around for unblocking if normal properties unblock apply doesnt work.

found the issue, appdata wanst deleting a file while it was in use. its working now. thanks for the help


axios error: network error?

We get an error when trying to upload full videos unless we break them down in small chunks, however this error is new because in the past we used a different computer and this did not happen. Our new computer is more powerful but this weird thing happens.
We also trying to understand in regard to the “axios error: network error” – looking online seems to imply latency issues – but outrs is a stand alone install… generic error?
monitoring using
nvidia-smi
and
inbuilt system monitor in ubuntu
we see cpu usage is mainly concentrated to a single core (there are 20) – although cuda reports gpu usage spikes at around 60% - memory (only 16GB) does max out just before the error happens…
your thoughts on working through this would be appreciated…
system being:
model name	: 12th Gen Intel(R) Core(TM) i7-12700F
16GB RAM
SSD
NVIDIA GeForce RTX 3060
NVIDIA-SMI 555.42.06              Driver Version: 555.42.06      CUDA Version: 12.5

@Chrysovalantis000 would you mind opening this as in issue in the Pose-app repo? thanks!
https://github.com/Lightning-Universe/Pose-app/issues

closing, see duplicate issue at https://github.com/Lightning-Universe/Pose-app/issues/96


Send Funds dialog to Material Design

Moves the Send Funds dialog to Material Design forms. Supports MAX button to send all available funds in wallet.
Adds ConfirmationDialog after Rebroadcast and Refund operations. Adds link support to ConfirmationDialog.

![Screen Shot 2021-12-03 at 3 40 32 PM](https://user-images.githubusercontent.com/22351459/144682262-b479394d-fc6c-47cc-b1b2-f59599491c6d.png

)

I kind of expected my entire balance to be filled in to this textbox rather than MAX

also i think we need to figure out a way to bump the default refund date to 1 week to allow for more time if an oracle is delayed in attesting

I kind of expected my entire balance to be filled in to this textbox rather than All Funds

Is there an easy way to know what the proper value is to put in place of 'All Funds' taking the fee rate and actual transaction cost (the actual amount that will be received on the other end after sweeping the wallet)?

2 things with this flow (might not be directly related to this PR, can file an issue if preferred)

We should rename this from Oracle Signatures -> Oracle Attestations to be consistent with the oracle explorer and the spec. This should change on our desktop app too.
We should change the color of the button when pasting in the signatures to make it easier to identify that the button is clickable

The functionality worked like a charm though on 6ef7e89 :tada:

I kind of expected my entire balance to be filled in to this textbox rather than All Funds

Is there an easy way to know what the proper value is to put in place of 'All Funds' taking the fee rate and actual transaction cost (the actual amount that will be received on the other end after sweeping the wallet)?

I don't think there is. We don't have a good way to calculate the fee associated with the sweep transaction in advance since ecdsa digital signatures vary in size thus varying the fee for the entire sweep transaction.

The refund date fix is working for me now.

Add some verbage around loading hex

Change to Oracle Attestations and set primary color on the action buttons

Is there a reason we don't fill in the background color of the button like the buttons here? That is much more visible to me IMO


Feature: show notifications on active screen

I think it would be neat if wired would support showing notifications on the current active monitor (so the monitor the active window is on) instead of choosing the monitor number.

Nice idea, past me actually put things in place to allow this in future, so it should be relatively easy to add.
Having the notifications move to the active monitor might be a bit more tricky.
For config, how's setting monitor: -1 to make it appear on the active one?

Sounds like a good idea for the config format!
I think it would actually be nice if the notifications didn't move once they appear on the active monitor. I think they'd be harder to read if they kept jumping around, so I wouldn't even worry about that.

I've added basic support for this in master.  You can try it by setting monitor: -1 in your NotificationBlock config.
Finding the "active monitor" in x11 is actually surprisingly challenging.
There are basically 2 ways that "monitor focus" can be defined: active window, and cursor.
Active window means that the active monitor is determined based on whatever window is considered to be in focus, whereas cursor is obviously whatever monitor the cursor is on.
For both of these x11 doesn't actually have a decent way of just asking for the active monitor.  Actually multi-monitor in x11 is just super confusing in general since most people use a single x11 "screen" glued together.  To determine the active monitor I need to first find the pixel coordinates of either the active window or cursor, then loop through winit's Window::available_monitors() iterator (I think it gets this through xrandr) and check if those coordinates are within that.  o lawd.
On top of that there's a couple choices for how we want to actually handle showing notifications on the active monitor:

Windows spawn on the active monitor and stay there, even if focus changes.  This requires a different "stack" of notifications for each monitor, which is kind of annoying.
Windows spawn on the active monitor and follow the mouse (actually easier, as it turns out).  I think dunst does this.

I think 1. is the most natural and probably what is wanted, but I'll need to think about it some more.  For now I've implemented 2. with focus determined by the cursor.
In future I think we probably need a deeper configuration here, for specifying "focus follows mouse", "focus follows cursor", and maybe the behavior.  It would probably replace the monitor field for NotificationBlock.

We now have Mouse/Window focus following in master.
To change the focus follow mode, in your root config (not on a block) do focus_follows: <Mode> where Mode is either Mouse or Window:
(
    max_notifications: 0,
    timeout: 10000,
    poll_interval: 16,
    focus_follows: Mouse,
    ...
)

This is still using option 2. above.  Also the option is only changeable globally.  I figure that the use cases for changing this per-notification are tiny and probably not worth the hassle, and have similar ideas about making notifications "append" to each monitor when focus changes, but I still like the idea.  It's just hard to implement :)
Anyway let me know if you find any issues.

I just got around to trying this, but it doesn't seem to work. This is my wired config. Wired doesn't print any interesting output. Looks like using focus_follows: Mouse doesn't work either :/
OS: Arch Linux
WM: i3
wired version: commit 2659b80 (newest one at the time of writing)

You need monitor: -1 in your NotificationBlock, not the root config, dummy.

Whoops, my bad. Works perfectly now!

Available in 0.10.2.


Pasted images upload multiple times from a FilePond in a Vue dialog

Is there an existing issue for this?

[X] I have searched the existing issues

Have you updated FilePond and its plugins?

[X] I have updated FilePond and its plugins

Describe the bug
I'm using FilePond 4.30.4.
Images that are pasted upload multiple times under some circumstances.
Reproduction
I have a FilePond in a dialog in a Vue application. When I show the dialog, I can drag and drop images, no worries. I can also paste images copied from another browser page without problems. If I close and then reopen the dialog, I can still drag and drop images OK, but if I paste an image copied from another browser tab, the image uploads twice. If I close and reopen the dialog again, the pasted image uploads three times. Again, no problems with drag and drop.
I got far enough into the code to find that some listeners weren't being removed when the dialog was closed.
Let me know if the above isn't enough to reproduce and I'll see if I can put a sandbox together. It's kinda complex.
The component looks like this:
        <file-pond
          class="fit"
          name="file"
          ref="pond"
          class-name="mvow-pond"
          :label-idle="`${uploadIcon} ${props.uploadPrompt}`"
          :allow-multiple="true"
          :allow-revert="false"
          :allow-file-type-validation="true"
          :accepted-file-types="acceptedFiles"
          :file-validate-type-detect-type="fileValidateTypeDetectType"
          :file-metadata-object="extraFormFields"
          :server="uploadOptions"
          :image-resize-target-width="resizeWidth"
          :image-resize-target-height="resizeHeight"
          image-resize-mode="contain"
          :image-resize-upscale="false"
        >
        </file-pond>

I worked around the problem. When the dialog box is closed, I do this:
    pond.value._pond.destroy()

I tried setting v-if="showDialog" on the FilePond component (same as the dialog component's v-model), but this didn't make a difference.
Thanks for your work, I very much appreciate it.
Environment
- Device: PC
- OS: Linux, Windows 11
- Browser: Chrome, Firefox

I've seen similar issue with drag and drop.
Sporadically the same file is added even 10 times or more.
Haven't investigate deeply so far though, but it's not easy to find the issue.
Because it doesn't happen always, sometimes adding 20 times some files it doesn't happen and then when you don't expect it (when your not monitoring...) it happens 🤪

I'm having a similar issue with pasted files. Every time I paste any file, the file is uploaded 2 times. I can handle it by using a useState to record the uploaded files and prevent it from being uploaded 2 times. But if I set the allowFileRename prop and a fileRenameFunction the UI becomes terrible because de renaming  pop-up shows up 2 times.
I'm using FilePond version 4.30.4. with react.

It's important to make sure the FilePond instance is destroyed when it's no longer used.

@rikschennink I'm trying to destroy the FilePond instance in the return of my useEffect, but I'm getting this error:
filepond.js:1461  Uncaught TypeError: Cannot read properties of null (reading 'insertBefore')
at insertAfter (filepond.js:1461:1)
at Object.restoreElement (filepond.js:12114:1)
at destroy (filepond.js:12647:1)
at eval (filepond.js:3493:1)
My useEffect hook:
  useEffect(() => {
    const input = document.querySelector(`#${id}`)

   const filepondInstance = FilePond.create(input, {
       ...
   })

    return () => {
      filepondInstance.destroy()
    }
  }, [])

When I print a console.log of the FilePond instance before destroying it, I can see the destroy function, but when I call it doesn't work.

Yes, when filepondInstance.destroy() is called, both the input and .filepond--root elements still on the page.

If it helps anyone...
With Vue and Inertia,
the issue I had with the full page drop where the nbr of uploads increased by every page visit.
Was because the registered eventlisteners were not removed (automatically). But the FilePond was created on every page visit.
So with every page change going back to the FilePond component it added 1 to the eventlisteners.
Solved this by doing:
Add ref to FilePond
<FilePond         ref="filePondInstance" ....         :dropOnElement="false"         :dropOnPage="true" />
OnBeforeUnmount set pond to off and destroy:
const filePondInstance = ref(null);

onBeforeUnmount(() => {
    if (filePondInstance.value) {
        const pond = filePondInstance.value._pond;
        if (pond) {
            pond.off();
            pond.destroy();
        }
    }
});


XML example in Swagger UI does not correctly conform to the required XML schema

Create a simple Web API with ASP.NET Core that takes a simple type from the body:
        [Produces(typeof(Value))]
        [HttpPost]
        public IActionResult PostValue([FromBody] Value value)
        {
            return CreatedAtAction("GetValue", new { id = value.Id }, value);
        }

    public class Value
    {
        public int Id { get; set; }
        public string Text { get; set; }
    }

Enable the XML formatters:
   services.AddMvc()
       .AddXmlDataContractSerializerFormatters();

Browse to the Swagger UI endpoint. The example for the value parameter suggests the following:
<?xml version="1.0"?>
<Value>
  <id>1</id>
  <text>string</text>
</Value>

But this example won't deserialize correctly using the DataContractSerializer. You will get a null value. Instead the correct example should be:
<Value xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApplication11.Controllers">
  <Id>0</Id>
  <Text>string</Text>
</Value>

@rynowak @eilon I'm not sure if this is an issue with the ApiExplorer or with the Swagger generation logic.

Support for XML descriptions need some work. @rynowak - any ideas how I could infer the namespace for a given type so I can set the XML metadata on the corresponding schema?

Both the DataContractSerializer and the XmlSerializer provide companion APIs for generating the XML Schema for a given CLR type. I think you could then do a translation from XML Schema to the schema language that Swagger uses.

Anyone knows how this can be accomplished? We need XML namespaces in the Swagger generated examples.

Will track as part of #1050


op3_walking_module

hi
Which linear inverted pendulum or cart-table model did you use to write the op3_walking_module?
thank you

Hi,
OP3 has two walking algorithms, one of witch uses a linear inverted pendulum model.
Please refer to the source code.

op3_online_walking_module/src/walking_control.cpp

Regards,
Kayman

This issue will be closed as there isn't any recent activity. Please feel free to reopen when necessary.


How to remove "baseUrl" in my ApiService.g to disable the hint

Hello,
Not really an issue but I would like to know if it's possible to remove the baseUrl when I generate my API services. It's just because I would like to remove the blue hint, take a look:

Thanks!

Another solution I used
I added "*.g.dart" to the exclude of static analysis

As @jiechic  mentioned, add in your analysis_options.yaml file
include: package:lints/recommended.yaml
analyzer:
  exclude:
    - lib/**/*.reflectable.dart
    - lib/**/*.g.dart


Change WS port for copilot behind proxy

📝 Summary
Closes #1484 !
Copilot previously tried to connect on :0

thanks for fixing!


documentation: Add feature flags dev docs

In what area(s)?

/area runtime

/area operator

/area placement

/area docs

/area test-and-release

Describe the proposal
As feature flags have been increasingly used by dapr, documentation and usage must be constantly updated even to maintain a standard of how they should be used and when they should be removed.
This proposal aims to document the use and show some examples in code encouraging best practices when using it, followed by post-actions when released in GA.

/assign


Question: How to append formatted content in template.

How to proper append formatted content into template and render in docx?
For example i have an dynamic field that i must make it bold.
<b>ID:</b> 000000000 as usually in HTML, but html don't display in libreoffice, so have some work-around to append direct bold text into DOCX as teimplated?
I cannot pre-format as bold, becasuse this field is non required, so some will have others don't.
Also i'm trying to insert line breaks but \r\n, \r or \n don't works.

You can try injecting literal XML. For this you can take a look at the literalXMLDelimiter. See for example https://github.com/guigrpa/docx-templates/blob/306af4373a8676a4ad86c7a250305efdcbfffc97/src/tests/templating.test.ts#L413 . You'll have to look up the required XML elements yourself in the docx spec.

I can't really help with this information.
You can unzip the docx file and inspect the XML files to see if the elements are inserted in the way you'd expect.
Otherwise you can look into whether libreoffice competitors (MS Word, Google Docs) render the element correctly. In that case the problem may be libreoffice-specific.


excludePath example uses deprecated class

The documentation here https://github.com/pac4j/dropwizard-pac4j says
matchers:
# this let the /user/session url be handled by the annotations
excludeUserSession:
class: org.pac4j.core.matching.ExcludedPathMatcher
But org.pac4j.core.matching.ExcludedPathMatcher is deprecated and results in a no class found:
caused by: com.fasterxml.jackson.databind.exc.InvalidTypeIdException: Could not resolve type id 'org.pac4j.core.matching.ExcludedPathMatcher' as a subtype of [simple type, class org.pac4j.core.matching.Matcher]: no such class found

It's now called PathMatcher.


improved sync-registry task and added logging

this commit adds:

SQL query logging at the trace level
Express router request logging at the debug level
much more verbosity at the debug level in the sync registry task
improved edge case handling and condition logging

@SocketSecurity ignore npm/<EMAIL_ADDRESS>


Thread safe configuration is difficult to use in multi-threaded systems (Rails)

The recent changes where the configuration is stored in a thread local makes it cumbersome to use in Rails.  Traditionally, the expectation would be that the configure be setup in a Rails initializer, but that configuration doesn't get carried over into the Rails handler threads.  The designed approach would dictate that we configure the gem every time  before handling requests (like in a before_action of the ApplicationController), even if we don't need a Sanity connection.  Fortunately, the environment variable approach still works, but is not my preference.
I understand that Rails is not the only place this gem is used, but it seems like having a global configuration would be a more common need.
Here are to suggestions to accommodate both scenarios:
Option 1: Global configuration is the default, thread local is optional.  Default configure goes back to the previous non-Thread local implementation, but add away to override the global configuration with a thread local one:
# Configuration is stored in ThreadLocal, overrides global configuration
Sanity.configure :thread do |s|
  s.token = "..."
  s.project_id = "..."
  s.dataset = "..."
  s.use_cdn = false
end

# Clear ThreadLocal configuration, falling back to global
Sanity.reset_configuration :thread

# Bonus: run custom configuration in a block
def sanity_around_action
  Sanity.with_configuration(configuration) do
    # uses new thread local configuration
    yield
  end
  # switches back to previous thread local or global configuration
end

Option 2: Keep ThreadLocal configuration the default, allow global configuration
# Set global configuration
Sanity.configure :global do |s|
  s.token = "..."
  s.project_id = "..."
  s.dataset = "..."
  s.use_cdn = false
end

# reset_configuration and with_configuration methods would still apply like in Option 1

My preference is Option 1, but Option 2 is backwards compatible.

@cyu thanks for the writeup. Appreciate the thoughts and I get what you're saying.

Fortunately, the environment variable approach still works

This was certainly the thought specific to a Rails environment.
.....
Going off your suggestions and in keeping this simple, let's add another config var use_global_config and update the self.configuration method to support this in a backwards compatible way. Would that help you?

def initialize
    # Setting to false for backwards compatibility
    #
    # Set to true in a Rails env if working with a single Sanity project/not interacting with multiple databases/projects
    # for traditional/expected Rails setup with an initializer
    @use_global_config = false
end

....

def self.configuration
  if config.use_global_config
    @global_configuration ||= Configuration.new
  else
    Thread.current[:sanity_configuration] ||= Configuration.new
  end
end

....

def self.configuration=(config)
  if config.use_global_config
    @global_configuration = config
  else
    Thread.current[:sanity_configuration] = config
  end
end


Send/Receive in background

Will it ever be able to send and receive in the iOS background? I've tried setting on some background modes and even a background identifier, but that does not seem to work.
Thanks in advance

+1

It works fine with Audio related applications (e.g. my midimittr application) - but it requires you to loop a WAV/MP3 to keep the AVAudioSession up and thus keep the app alive in background.


can't start endlessh service "Failed at step NAMESPACE"

journalctl logs:
May 02 21:48:28 [REACTED] systemd[1]: Started Endlessh SSH Tarpit.
May 02 21:48:29 [REACTED] endlessh[16317]: endlessh.service: Failed at step NAMESPACE spawning /usr/local/bin/endlessh: No such file or directory
May 02 21:48:29 [REACTED] systemd[1]: endlessh.service: Main process exited, code=exited, status=226/NAMESPACE
May 02 21:48:29 [REACTED] systemd[1]: endlessh.service: Unit entered failed state.
May 02 21:48:29 [REACTED] systemd[1]: endlessh.service: Failed with result 'exit-code'.

right of the file:
-rwxr-xr-x 1 root root 128800 May  2 20:21 /usr/local/bin/endlessh
endlessh.service:
[Unit]
Description=Endlessh SSH Tarpit
Documentation=man:endlessh(1)
Requires=network-online.target

[Service]
Type=simple
Restart=always
RestartSec=30sec
ExecStart=/usr/local/bin/endlessh
KillSignal=SIGTERM

# Stop trying to restart the service if it restarts too many times in a row
StartLimitInterval=5min
StartLimitBurst=4

StandardOutput=journal
StandardError=journal
StandardInput=null

PrivateTmp=true
PrivateDevices=true
ProtectSystem=full
ProtectHome=true
InaccessiblePaths=/run /var

## If you want Endlessh to bind on ports < 1024
## 1) run:
##     setcap 'cap_net_bind_service=+ep' /usr/local/bin/endlessh
## 2) uncomment following line
AmbientCapabilities=CAP_NET_BIND_SERVICE
## 3) comment following line
#PrivateUsers=true

NoNewPrivileges=true
ConfigurationDirectory=endlessh
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectControlGroups=true
MemoryDenyWriteExecute=true

[Install]
WantedBy=multi-user.target

With the command, it's work perfectly
If you have some idea ?

Seems that the systemd modul is misconfigured at the moment, like in
https://github.com/skeeto/endlessh/issues/53
comment the line
#InaccessiblePaths=/run /var
did solve it on my machine.

Seems that the systemd modul is misconfigured at the moment, similar to
#53
comment the line
#InaccessiblePaths=/run /var
did solve it on my machine.

Thanks that solve my issue !

Seems that the systemd modul is misconfigured at the moment, similar to #53
comment the line #InaccessiblePaths=/run /var did solve it on my machine.

Issue is still there on Debian 12
I'm wondering if we could brake some security while that line is commented
Maybe @skeeto could give us more precise infos
Thanks!

I came across this thread as I just upgraded from Ubuntu 22.04 to 24.04 LTS on my main server, and it has been running endlessh for a few years now. But after the upgrade it failed to start as a service with the same error as described in this issue.
After commenting out "InaccessiblePaths=/run /var" in endlessh.service is starts and seems to work just fine, but like other in this thread I am a bit concerned about possible security implications from making that change.
Care to comment on this @skeeto?

I came across the same issue on Ubuntu 24.04.1 LTS.
My mistake was not chowning the endless binary to root after moving it to /usr/local/bin/. With the correct permissions on the file, the endless.service started without any issues.


Is this project maintained?

I just installed via cocoapods and there were 69 errors with the project.

There shouldn't be errors! I'll check later!
Thanks for reporting it!

Got it. Thanks!


Add example for two-qubit entanglement

I am moving this to my docs branch and will include it once the entire documentation has been updated.


handle NaN data by excluding it from training.

This handles NaN simulations that simulators might return for invalid simulations. This is needed in sbibm where some ODE solvers fail for some parameters.

exclude nan x from theta and x banks
exclude nan in z_scoring

In principle, snpe would have another way of dealing with nan simulations - the calibration kernels. But these are not available in SRE and SNL, so this is a quick way to have binary calibration kernel (implicitly) for all inference algs.
Adress #184

Todos:

[ ] fix NaN vs. inf issue
[ ] build in switch for ignoring NaNs for all methods
[ ] dont use kernels to treat nans but exclude explicitly from being added to the banks.


ECR - Circular dependency between resources

Using Java CDK 0.34
TaskDefinition taskDefinition=new Ec2TaskDefinition(this,"ldswsTaskDefCDK", Ec2TaskDefinitionProps.builder().withExecutionRole(taskRole).withTaskRole(taskRole).withNetworkMode(NetworkMode.AwsVpc).build());
ContainerImage image = ContainerImage.fromAsset(this,"ldswsImage", AssetImageProps.builder().withDirectory("./../app/").withBuildArgs(buildArgs).build());
ContainerDefinition cDefinition=taskDefinition.addContainer("ldswsContainer", ContainerDefinitionOptions.builder().withPrivileged(true).withImage(image).withMemoryReservationMiB(512).build());
When I run cdk deploy, I get the following errors after the image is built:
ldsws-environment failed: ValidationError: Circular dependency between resources: [ldswsImageAdoptRepositoryF2E6AC05, ldswsTaskDefCDK970B227D]
Circular dependency between resources: [ldswsImageAdoptRepositoryF2E6AC05, ldswsTaskDefCDK970B227D]
The line of the code that break is:
ContainerDefinition cDefinition=taskDefinition.addContainer("ldswsContainer", ContainerDefinitionOptions.builder().withPrivileged(true).withImage(image).withMemoryReservationMiB(512).build());
But if I change to use Image from ECR repository no issues.
I can't figure out what I am doing wrong.
Many Thanks In Advance.

Issues have been fixed @0.35


Feat: The scroll effect is not smooth in literary realms

Describe the feature
The literrary realm's scroll effect is not smooth, it moves very fast, I can add transition effect and make it smooth, kindly assign this issue to me.
Add ScreenShots
https://github.com/anuragverma108/SwapReads/assets/135015851/77bf7065-fa53-4b19-a3f6-b93e149ceabd
Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

@anuragverma108 @huamanraj @RitiChandak @RishabhDhawad Kindly assign this to me


Implement matlab-like cell features

From<EMAIL_ADDRESS>on 2011-11-27T19:14:15Z
First of all, a big congratulation for making such a nice piece of open software. It's been a month since I've switched to Spyder form Matlab.
Currently I'm finishing my PhD and I'm working with an experimental data set, and after reading and processing millions of data point, I have to plot them y many different ways to search for patterns.
I very useful feature of Matlab that I miss, is the 'cells'. Thanks to them I could split my code in two big cells, the first for reading and processing my data, and the second to make the plot. Thus, I just ran the first cell one to get processed data. Then, the data was ready to be plotted in many ways that I pictured many times on the fly, without the need to reprocess all my data. A time consuming task.
Would it be possible to incorporate this in seamless way to the python script. Maybe with comment directive, as in Matlab?
Original issue: http://code.google.com/p/spyderlib/issues/detail?id=852

From ccordoba12 on 2011-11-28T07:05:01Z
We discussed a lot about this before (see issue #117 ). Maybe it's time to reconsider it because I would also like to have it.
Thanks for your interest in Spyder and we're really glad you like it.
Carlos
Labels: -Type-Defect Type-Enhancement Cat-Editor

From<EMAIL_ADDRESS>on 2011-12-05T07:49:53Z
As someone who spends half his time using Matlab I can assure you the most practical advantage of Matlab's GUI over Spyder is their cell capabilities.    I can understand being skeptical if you have never used cells like a Matlab user but once you start doing it you get hooked over how practical they are.
Please implement similar cell capabilities into Spyder!

From pierre.raybaut on 2011-12-04T05:32:56Z
Here is an explicit screencast: http://www.youtube.com/watch?v=DiNc-bOqvo8

From<EMAIL_ADDRESS>on 2011-11-29T00:39:29Z
As a non-Matlab user, I'd like to see little demo or screenshot of the idea.

From<EMAIL_ADDRESS>on 2011-12-06T03:28:37Z
I'd rather work on some interface to debug stackless threadlets and parallel execution programs. =) So, not being personally interested in this feature, I'd mark this as ContributorNeeded.

From ccordoba12 on 2011-12-15T17:37:38Z
I did some quick tests and I think this is doable without too much modifications to the codebase
In my opinion, we should only use cells to evaluate portions of code on the interactive console. But for this to work flawlessly we need to ensure that the sent code is perfectly indented (else we got indentation errors) and is broken up in well-formed blocks (for example we can't send two def's in one block. It has to partitioned so that we sent one def first and then the other one).
I'll try to work on it to see what we can do about it.
Summary: Implement matlab-like cell features

From ccordoba12 on 2011-12-15T17:39:07Z
issue #117 has been merged into this issue.

From pierre.raybaut on 2012-03-18T14:12:30Z
Labels: -Type-Enhancement Type-Enh

From<EMAIL_ADDRESS>on 2012-03-18T23:01:07Z
This sounds wonderful. Cell features make debugging and unit testing very fast.

From<EMAIL_ADDRESS>on 2012-05-21T01:51:26Z
I think this would be a very useful addition for developing scripts such as scientific small programs. I used to use this all the time in matlab, F9 in spyder is not similarly useful as all the lines need to be in a block.
One implementation that seems to work well is the one in idlex, "SubCode" extension, http://idlex.sourceforge.net/extensions.html

From pierre.raybaut on 2012-03-18T23:59:54Z
When a feature sounds interesting for you, please do not hesitate to "star" it as it will increase its position in the Issues list (which is sorted along milestones, then stars rating, then priority).

From<EMAIL_ADDRESS>on 2012-11-21T10:02:18Z
I switched from MATLAB to Python a few months ago, and I miss the cells. Not only does it allow easily evaluating portions of code, but it also automatically induces you to organize your code better.
BTW, major kudos in making what is, for me, the best Python IDE out there.

From<EMAIL_ADDRESS>on 2012-12-03T15:23:53Z
Note that you can change this yourself locally. Under your python site-packages directory, find the mixins.py file, and specifically the function _is_separator: https://code.google.com/p/spyderlib/source/browse/spyderlib/widgets/sourcecode/mixins.py#186 Note: this was previous in spyderlib/widgets/sourcecode/base.py , so you might find it there.
Change the line return len(text.strip()) == 0 or text.lstrip()[0] == '#' to, for example, return text.strip() == '##'
and tada! Now your code blocks are separated by lines that have consisting only of '##'.
Ideally, this would be a setting ("Use custom block separator"), but until then I have found this solution quite workable.

From<EMAIL_ADDRESS>on 2012-11-17T01:26:02Z
The Idlex SubCode extension now works with Ipython 0.13. This feature would be really welcomed in Spyder for those used to the Matlab way of script development.

From<EMAIL_ADDRESS>on 2012-12-04T01:57:32Z
Hi Ben,
Thanks for the suggestion! Unfortunately I cannot find that file. I got Spyder through the Ubuntu Software Center. I have version 2.1.9, which is the latest there, unfortunately.
When I type "locate mixins.py" into a terminal the output is
/usr/lib/python2.7/dist-packages/logilab/astng/mixins.py
/usr/lib/python2.7/dist-packages/logilab/astng/mixins.pyc
/usr/lib/python2.7/dist-packages/twisted/internet/test/connectionmixins.py
/usr/lib/python2.7/dist-packages/twisted/internet/test/connectionmixins.pyc
/usr/lib/python2.7/dist-packages/twisted/internet/test/reactormixins.py
/usr/lib/python2.7/dist-packages/twisted/internet/test/reactormixins.pyc
/usr/share/pyshared/logilab/astng/mixins.py
/usr/share/pyshared/twisted/internet/test/connectionmixins.py
/usr/share/pyshared/twisted/internet/test/reactormixins.py
I looked at the first entry and there is no function named "_is_separator". Perhaps v. 2.1.9 didn't have this functionality yet?

From<EMAIL_ADDRESS>on 2012-12-04T01:59:25Z
That's why I said "Note: this was previous in spyderlib/widgets/sourcecode/base.py", though I meant to say "previously". Look there.

From ccordoba12 on 2012-12-05T22:06:56Z
I found the hack ben mentioned a long time ago but after I saw the video, I decided to implement a fuller solution, with the improvements mentioned by miguel.
Unfortunately IPython integration has kept me quite busy, but the good news is that matlab cells are quite easy to create with the new IPython. I'll try to develop them during the next couple of months.

From ccordoba12 on 2013-03-03T16:36:47Z
Labels: MS-v2.3

From<EMAIL_ADDRESS>on 2012-12-04T02:56:06Z
I missed that part. I've found it now, and changed it to return "##" in text, which is roughly what MATLAB used. I can now use F9 to run blocks of code. Thanks! :)
If I may, I'd like to leave here some other MATLAB cell features which I miss, but which should have a low priority:

Put the first line in each block in bold.
Separate blocks with horizontal lines (like a \hline in LaTeX).
Set the background of the block which contains the current cursor position to a slightly different color (for example, a light yellow or gray).

You can see these features at roughly 0:40 in the video linked in post 3. All of these are mere cosmetic features, but I liked the way this helped me visualize the blocks of code at a glance.
Since they are cosmetic only, they should have a low priority...

From<EMAIL_ADDRESS>on 2013-03-05T16:42:37Z
Hi Carlos,
Even though you plan to implement the more fancy features like coloring and separating with lines in 2.3 or later, wouldn't it be worth to implement to short hack mentioned already?
The behavior would already be closer to the one that you want to have eventually.
Sylvain

From ccordoba12 on 2013-03-03T16:37:38Z
issue #1292 has been merged into this issue.

From<EMAIL_ADDRESS>on 2013-03-06T12:56:19Z
Hi, is it really related to this cell functionality ?
In the current development version of spyder
-if you use an ipython console, everything is fine.
-if you use a regular console and select the piece of code you just wrote in the editor and run the selection, it fails. In a sense, it is already a bug of the current version and related to the hack in "select_current_block".
Maybe the selected text should then be cleaned from blank lines afterwards.
S.

From ccordoba12 on 2013-03-06T08:06:38Z
@-Sylvain: Hacks are hard to maintain, because people can find a lot of corner cases where things don't work as expected.
You can see issue #872 , which came after my two-days hack to automatically add colons and quotes: I haven't been able to make it work right yet :)

From<EMAIL_ADDRESS>on 2013-03-06T10:57:01Z
Also of note is that the change I made doesn't totally suffice: it also needs to remove all blank lines in the block before passing it to the interpreter, since the interpreter sees those as delimiting indented blocks. For example, this will fail with an error about unexpected indentation:
for i in xrange(2):
print i
print i+1

print 'done'

From<EMAIL_ADDRESS>on 2013-03-25T00:11:46Z
I like the "#%%" idea. It's unlikely to be encountered otherwise in a script, because the magic functions are only for interactive mode, and %% denotes a cell concept in ipython too.

From ccordoba12 on 2013-03-24T05:58:29Z
issue #117 has been merged into this issue.

From ccordoba12 on 2013-03-25T07:03:17Z
Yep, and it would also let us do things like:
#%%timeit
for i in li:
...
when sending selections to the IPython console, which would be awesome!

From<EMAIL_ADDRESS>on 2013-05-02T22:08:25Z
My first day using spyder and my first post.
This is one of the few features I'm missing as a former matlab user.
Normally how long will it takes to a new feature like this to be implemented in spyder? I hope I could hold my breath for it.

From<EMAIL_ADDRESS>on 2013-06-29T02:53:21Z
I totally think this is a valuable feature. It's not a Matlab feature (although Matlab does implement it). It's a scientific scripting feature. If you've ever found yourself marking the same text block as selected, again and again, just to run it, then you'll definitely find this feature useful.
I admit at first sight it may seem like a weird feature - why would you want execute a working script in blocks? The thing is - when you think about the way scientific code is written - in iterations - until it 'hopefully' does the right thing - this 'run block' behavior really fits in, and I'm speaking from my own experience.
In short - I really think this is a very valuable feature, and thanks for Spyder - an awesome piece of software!

From<EMAIL_ADDRESS>on 2013-07-03T09:15:45Z
Labels: -MS-v2.3 MS-v2.4

From pierre.raybaut on 2013-08-16T13:03:40Z
This issue was updated by revision 3a60546bfb72 .
The official block separator is now #%%. This can be changed in spyder.ini.
I really don't think that changing this option is required in the Preferences
dialog box. In fact, the best would even be to set this block separator once and
for all, to allow better portability of scripts from a Spyder setup to another.
Status: Fixed

From<EMAIL_ADDRESS>on 2013-08-16T14:12:09Z
Also, it doesn't seem to advance to the next cell when running, which was the behavior with my simple hack. There should probably be both options (run selection, run selection and go to next), like in matlab.

From<EMAIL_ADDRESS>on 2013-08-16T13:42:35Z
I think #%% is a good compromise. Can text be added on that line, like "#%% This cell does X"? That seems useful, especially for similarity with matlab.

From<EMAIL_ADDRESS>on 2013-08-16T13:44:36Z
Hi Pierre,

when exporting an ipython notebook into a script, the separator is "# <codecell>". It would be great to have this supported by default as well... Hence, we could have a list of supported separators, rather than a single one.

if a persons edits the source code with eclipse and uses eclipse's automatic code formating, "#%%..." is transformed into "# %%...". Hence, every separator of the form "#string" in the list should have two versions supported

the original "#string"
and "# string" (or any form of "#      string")

What do you think?
Sylvain

From pierre.raybaut on 2013-08-17T01:44:14Z
This issue was updated by revision a54c37f4b957 .

From pierre.raybaut on 2013-08-17T02:23:04Z
This issue was updated by revision 248410d793ef .

From<EMAIL_ADDRESS>on 2013-08-17T16:07:47Z
Awesome!

From pierre.raybaut on 2013-08-17T02:23:40Z
@-ben: added "Run block and advance" action in "Source" menu with revision a54c37f4b957 .
@-sylvain: added support for "# %%" and "# <codecell>" block separators with revision 248410d793ef .

From pierre.raybaut on 2013-08-18T02:21:54Z
This issue was updated by revision 5fea82cfe4d2 .

From<EMAIL_ADDRESS>on 2013-08-19T07:57:03Z
Hello,
I have the impression that the "run selection" and "run block" should be very different things. The current behavior of the "run selection or current block" context menu is to run the selection if not void and run the "block" if nothing is selected. Then, after execution, the block remains selected. If you use "run block and advance", the next block is selected...
I would suggest to have the three following context menus, one being.

"run selection", which runs the selection and does nothing if nothing is selected. (With F9 keyboard shortcut as in Matlab)
"run block", which runs the current block and does not change the position of the cursor and does not select anything. (With Crtl-Enter keyboard shortcut as in Matlab or IPython in-place cell execution)
"run block and advance", which runs the current block and puts the cursor at the beginning of the next cell without selecting anything. (With Shift-Enter keyboard shortcut as in IPython)

Another question is why not calling it "cell" instead of "block"?

From<EMAIL_ADDRESS>on 2013-08-18T13:53:32Z
Great work!

From pierre.raybaut on 2013-08-20T05:16:52Z
This issue was updated by revision aa5e0063eda7 .
Status: Fixed

From ccordoba12 on 2013-08-20T06:53:26Z
Labels: -MS-v2.4 MS-v2.2.3

From pierre.raybaut on 2013-08-19T08:57:34Z
I completely agree with you, Sylvain.
Except for a detail perhaps: we may not be able to provide the Ctrl+Enter and Shift+Enter shortcuts (I remember having difficulties implementing such a keyboard shortcut other than hard-coding it). But it has to be confirmed.
I'm reopening the issue to take into account your excellent suggestions.
Status: Started

From<EMAIL_ADDRESS>on 2014-03-02T13:50:24Z
Hi all,
Like many others I'm toying with switching from Matlab to Python.  I've spent a large fraction of the past week writing code in Spyder and on the whole Python seems to be a lot more pleasant than Matlab, but..and Spyder is an impressive piece of software...but..
I do miss the simplicity of the Matlab debugger and its profiler.
Also, the way Spyder does cells isn't massively useful as it currently stands (in 2.2.5, and as far as I can tell from the feature list for future releases):

It would be nice if running a cell invokes the UMD, or at least there was a version of the #%% syntax which does, e.g. #%%-- or something.
Why does the code have to be printed line by line to the console? It dilutes my command history, scrolls the console, and it doesn't seem very quick.
Also, and this is related to the previous point, breakpoints/ explicit pdb stack_trace()s don't work in cell mode (incidentally Matlab doesn't let you set break points in cell mode either, but I don't see why it could be implemented in principle).

My guess, without looking at the source myself, is that all of these requests could be relatively simply implemented by creating a temporary file cell.py (or whatever) and then running that in the console.
I appreciate that even simple things take time and effort to get right..I would offer to help myself but that may not be a great idea given I'm still fairly new to Python (though already pretty obsessed it seems).
Fingers crossed for more work on the debugging UI and thanks again for all the great work!

From<EMAIL_ADDRESS>on 2014-01-13T15:11:46Z
Hi Guys, it seems that in the next IPython (2.0), the roles of Ctrl+Enter and Shift+Enter will be reverted.
cf. https://github.com/ipython/ipython/pull/3605

From ccordoba12 on 2015-01-02T17:43:06Z
issue #925 has been merged into this issue.

From contrebasse on 2014-03-04T06:03:15Z
If you want a line-by-line profiler similar to matlab (but not as complete, matlab's one is really great), you can use http://pythonhosted.org/line_profiler/ I wrote a plugin to integrate it in spyder : https://github.com/Nodd/spyder_line_profiler Note that it profiles only the functions that have a @-profile decorator, so it won't work if you only use a big script with cells.


Messaging: TypeError when using providing an app in messaging()

Describe your environment

Operating System version: arch linux + kernel v5.16.10
Firebase SDK version: v10.0.1 and v10.0.2
Firebase Product: messaging
Node.js version: v14.17.6
NPM version: yarn v1.22.17
TypeScript version: v4.5.4

Describe the problem
We need to specify the app in messaging because we have to run several firebase apps in the same project (as described here).
When trying to specify an App in messaging(myApp), it thows the exception:
error:  TypeError: _this.ensureApp(...).messaging is not a function
    at fn (/home/PROJECT_PATH/node_modules/firebase-admin/lib/app/firebase-namespace.js:131:45)

Steps to reproduce:
Just passing an app that was initialized inside messaging() throws.
I can reproduce this error on both v10.0.1 and v10.0.2, but it seems to work on previous versions (at least v9.12.0 works fine).
Relevant Code:
Calling sendNotification in the following code would throw an error on messaging(firebaseApp) with the error displayed above.
import { credential, messaging } from 'firebase-admin'
import { initializeApp } from 'firebase-admin/app'
import { MulticastMessage } from 'firebase-admin/lib/messaging/messaging-api'

const firebaseCredential = credential.cert({
  projectId: '',
  clientEmail: ''
  privateKey: ''
})

const firebaseApp = initializeApp({
  credential: firebaseCredential
})

const sendNotification = async (sendMulticastArgs: MulticastMessage) => {
  return messaging(firebaseApp).sendMulticast(sendMulticastArgs)
}

I think you are using a combination of the modular syntax and the deprecated namespaces syntax. Here is an updated code using only the new modular SDK syntax in v10.
import { initializeApp } from 'firebase-admin/app'
import { getMessaging, MulticastMessage } from 'firebase-admin/messaging'
import { credential } from 'firebase-admin'

const firebaseCredential = credential.cert({
  projectId: '',
  clientEmail: '',
  privateKey: ''
})

const firebaseApp = initializeApp({
  credential: firebaseCredential
})

const sendNotification = async (sendMulticastArgs: MulticastMessage) => {
  return getMessaging(firebaseApp).sendMulticast(sendMulticastArgs)
}

Please see "Upgrade to Node.js SDK Admin SDK v10 (modular SDK)" for more info.


Add warning about scoped Slot implementation (#1212)

Tried to rebase the branch in #1212 but I messed something up. Easier and cleaner just to make a fresh fork from dev and get this merged in.

Previously reviewed in #1212  so all good.


Auth: Remove nonce functionality from soroban-auth

I think we should remove the nonce functionality from soroban-auth.
By bundling nonce validation into the auth interface it feels like we're making the interface handle two unrelated concerns, and that both constrains where the auth interface can be used, and the cognitive load in learning how it works and what it does. That last concern is a pretty big deal because we need developers to understand how auth works, and what it does, and when it is doing multiple things it is harder to understand the subtleties necessary to know if you are using it correctly.
Also, looking at EIP712 it is interesting to note that it also explicitly calls out the importance that its scheme does not prevent replay and how it is the applications responsibility to do that.
cc @tamirms @sisuresh @jonjove

+1 What I find most interesting about 712 is two things:

the domain is very simple and doesn't include a contracts full call stack. Is there anywhere in these sta dards that a full stack shows up?
the domain includes the verifying contract ID. Afaict this isn't necessarily the receiving contract? Is this accurate?
the nonce is absent and it is up to the application to prevent replay, which I like and I think it would simplify our auth interface to consider this.

Originally posted by @leighmcculloch in https://github.com/stellar/rs-soroban-sdk/issues/577#issuecomment-1243923019

Removing the nonce would make the single identifier auth scenario more complex for users and more error prone.

I think the complexity of the single identifier case is probably somewhat subjective. In terms of code the developer sees it is approximately the same amount of code.  The amount of code to write is about the same. The developer has to do the increment anyway in NonceAuth. The only thing the developer has to do that they didn't have to do was the equality check.
The NonceAuth's callback nature introduces complexity that requires the developer to understand everything about how it works anyway. For some people callback complexity may be harder to understand than writing our an increment and equality check themselves.

If we were to remove the nonce, what should we recommend for replay prevention in our example contracts?

I think we'd recommend something in the form:
let nonce = env.contract_data().get(DataKey::Nonce(...)).unwrap_or_else(|| Ok(BigInt::zero(&env))).unwrap();
if nonce != expected_nonce {
    panic!("bad nonce");
}
env.contract_data().set(DataKey::Nonce(...), nonce + 1);

@sisuresh generally speaking, I would recommend the nonce mechanism. but there are cases where you need to have a different replay mechanism because of the smart contract's use case. An example of that would be limit orders in decentralized exchanges. In that use case, I've seen smart contracts hash the limit order and have a storage mapping of order hash to amount filled:
https://github.com/0xProject/protocol/blob/33e260f9db2795d2ef738c1754a2c396dd5ba1ce/contracts/zero-ex/contracts/src/features/native_orders/NativeOrdersSettlement.sol#L544-L550
https://github.com/1inch/limit-order-protocol/blob/9ccf756d66a258a7150cc78e2a3d733eb40b390b/contracts/OrderMixin.sol#L161-L169
I think that the the smart contract developer should have the flexibility of implementing the replay protection in their own code as you suggested:

but another option would be to just store the nonce in contract data like we do today, but outside of the auth crate.

Also, another common pattern is to include expiration timestamps / sequence numbers on signatures. As with replay protection, instead of forcing the pattern on the developers, I think it would be better to allow that type of validation to be implemented outside the auth package.

another option would be to just store the nonce in contract data like we do today, but outside of the auth crate. This is similar to what some solidity contracts do like compound, and would use less storage.

I'm not sure that uses less storage. In the compound example ,the type used to represent a nonce is uint256. A hash has the type of bytes32 which also occupies 256 bits of space

Ok I agree with you two that should remove the nonce to allow more flexibility with the auth crate. There's still the concern of forgetting to implement replay protection, which is more difficult to do currently because the user needs to implement NonceAuth, but the more complex auth scenarios will make nonce management confusing, and could lead to subtle vulnerabilities if we try to force it into the auth crate. @jonjove do you have any concerns about removing replay protection?


There's a way to restore that backups ?

Hi there is a way to restore into my spotify account the backup ?

No, not right now. Spotify's API seems to support writing all the information back, so it's feasible to do it. But nobody has implemented this yet.

Duplicate of #40


Supplementary groups don't get added when starting a new session

Steps to reproduce:

WIN: install this on Windows 10 2004 on WSL2
WIN: start a session
LIN: set up sudoers to allow all for %wheel without a password
LIN: set up a new user (zmezei)
LIN: add the user to some supplementary groups (wheel and tfenv)
LIN: logout
WIN: change the default startup user to the new user, result:

PS C:\Arch> .\Arch.exe get --default-uid
1000

WIN start a new session
LIN: experience some strange behavior:

[zmezei@jane ~]$ id
uid=1000(zmezei) gid=1000(zmezei) groups=1000(zmezei)
[zmezei@jane ~]$ id zmezei
uid=1000(zmezei) gid=1000(zmezei) groups=1000(zmezei),998(wheel),1001(tfenv)
[zmezei@jane ~]$ ls -l /var/lib/tfenv/versions -d
drwxrwxr-x 3 root tfenv 4096 Jun  7 21:49 /var/lib/tfenv/versions
[zmezei@jane ~]$ touch /var/lib/tfenv/versions/testfile
touch: cannot touch '/var/lib/tfenv/versions/testfile': Permission denied

LIN: "login" as the user:

[zmezei@jane ~]$ sudo su -l zmezei
[zmezei@jane ~]$ id
uid=1000(zmezei) gid=1000(zmezei) groups=1000(zmezei),998(wheel),1001(tfenv)
[zmezei@jane ~]$ id zmezei
uid=1000(zmezei) gid=1000(zmezei) groups=1000(zmezei),998(wheel),1001(tfenv)
[zmezei@jane ~]$ touch /var/lib/tfenv/versions/testfile
[zmezei@jane ~]$

I guess this is caused by the method you use nsenter here:
https://github.com/yuk7/ArchWSL2/blob/master/src/isocon_sh.sh#L17
According to nsenter's man page:
       --preserve-credentials
              Don't modify UID and GID when enter user namespace. The default is to drops supplementary groups and sets GID and UID to 0.

So it drops supplementary groups by default, and I guess it happens here as well.

Thank you for reporting.
It is a feature I haven't implemented yet.

Fixed that script.
Thank you!


[GOBBLIN-1994] Ensure iceberg-distcp consistency by using same TableMetadata for both WU planning and final commit

Dear Gobblin maintainers,
Please accept this PR. I understand that it will not be reviewed until I have checked off all the steps below!
JIRA

[ ] My PR addresses the following Gobblin JIRA issues and references them in the PR title. For example, "[GOBBLIN-XXX] My Gobblin PR"

https://issues.apache.org/jira/browse/GOBBLIN-1994

Description

[ ] Here are some details about my PR, including screenshots (if applicable):

Iceberg-distcp replication currently risks introducing inconsistency to the destination/replication-target table, because the current snapshot version of the tables may change between the planning phase (of creating WorkUnits) and the final post-copy commit to the destination table.
To inoculate against any concurrent commits, ensure correctness by committing:

the same source-side metadata observed while first listing the source table during the Planning Phase and
the same dest-side metadata observed just prior to that first listing of the source table.

This guarantees that:

any later-modified source table metadata would not be committed to dest (at least not until a subsequent execution)
any interim commit to the dest table would result in the distcp replication commit failing (which may then be resolved by launching a new iceberg distcp execution on the same table)

Tests

[ ] My PR adds the following unit tests OR does not need testing for this extremely good reason:

updated unit tests
Commits

[ ] My commits all reference JIRA issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message":

Subject is separated from body by a blank line
Subject is limited to 50 characters
Subject does not end with a period
Subject uses the imperative mood ("add", not "adding")
Body wraps at 72 characters
Body explains "what" and "why", not "how"

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (389c158) 47.71% compared to head (d4cbf99) 46.01%.
Report is 3 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #3870      +/-   ##
============================================
- Coverage     47.71%   46.01%   -1.71%
+ Complexity    11109     2187    -8922
============================================
  Files          2160      417    -1743
  Lines         85513    18054   -67459
  Branches       9478     2199    -7279
============================================
- Hits          40805     8308   -32497
+ Misses        41030     8862   -32168
+ Partials       3678      884    -2794

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


It seems to be not working with java extension pack on 3.3.0

I tried setting up with new version 3.3.0 by docker today.
but java extension pack is not working.
there's no code assist, no junit test launcher(also main class run)
I've got this message when i tried to run junit test
ENOENT: no such file or directory, mkdir '/home/coder/.local/share/code-server/User/globalStorage/redhat.java'

could i get some information why it's not working after 3.3.0?
my docker execution script is
docker run -it -d -p 80:8080
-v "/home/ikisis/dev/projects:/home/coder/project"
-v "/usr/lib/jvm/java-8-openjdk-amd64:/home/coder/java-8-openjdk"
-u "$(id -u):$(id -g)"
-e "PASSWORD=mypassword"
--name vscode
codercom/code-server:latest \

Are you running junit test on the CLI?

No. I used vscode's "Run and Debug". At the previous version I used(maybe 3.2.0), it works. but not at 3.3.0

Looks like it might be related to #1693

ah, I see. so I could try to make globalSetting directory, and re-setup java extension if I wanna use java right now.

It's possible yes, not 100% sure.
If it does work, please lmk so I can close as a duplicate of #1693

yea. It's working for me. everything is ok. and I will wait fixing for #1693 also at next version.
you can close this I think. thanks. code-server is very useful for me when I'm with my ipad only.

Awesome.
The new release is already out!
https://github.com/cdr/code-server/releases/tag/v3.4.1


WIP: screenshots

@bguertin Looks like fb create's their screenshot by inflating a layout and then putting in values.
https://github.com/facebook/screenshot-tests-for-android/blob/master/examples/app-example/src/androidTest/java/com/facebook/testing/screenshot/SearchBarTest.java
Is the approach we would want to take be similar?
I feel like we should be using the same logic in our code to create these views. Sometimes we set things in code, rather than the xml.
My guess is your going to saw we don't have the infrastructure setup :(

@@             master       #802   diff @@
==========================================
  Files           484        484
  Lines         19862      19862
  Methods           0          0
  Messages          0          0
  Branches       2810       2810
==========================================
  Hits           3704       3704
  Misses        15730      15730
  Partials        428        428

Review #802 on Codecov

Powered by Codecov. Last update d7249ad...302e5a3

Hmm, I was going to make this change for the launch screen test but some of the styles were not applied right (I guess the activity was doing some extra styling somehow?)
So, while I think this approach is better, there may be some complications. I think we can just go ahead and do it like this and fix the problems as they come up.
Also, would be nice to not be using findViewById and figure out how to get databinding to work here (was causing me trouble when I tried).

Looks like we should wait for MVP for screenshots to be most effective, as well as managable.


Have you tested your tutorial program?

someNumHandler :: Handler App App ()
someNumHandler = do
  mnum <- getParam "num"
  let n = fromMaybe 11 mnum
  msgs <- getMessages n
  writeBS . pack $ show msgs

Type error:
  let n = fromMaybe 11 mnum

Another strange problem.
This compiles
instance HasHdbc (Handler App App) Connection where
  getPool = with db $ gets hdbcPool

This doesn't
instance HasHdbc (Handler App App) Connection IO where
  getConnSrc = with dbLens $ gets connSrc

The strange point is that the type class is defined as
class  (IConnection c, ConnSrc s, MonadControlIO m)
  =>   HasHdbc m c s | m -> c s where
  getConnSrc :: m (s c)

I get getPool from the comment
-- | Instantiate this typeclass on 'Handler b YourSnapletState' so this snaplet
-- can find the resource pool. Typically you would instantiate it for Snap's
-- Handler type and use your snaplet's lens to this snaplet to access this
-- snaplet's state, which contains the pool. Suppose your snaplet state type is
-- defined as follows, where 'Connection' is the connection type from the HDBC
-- database adapter of your choosing:
--
-- > data App = App
-- >  { _dbLens :: Snaplet (HdbcSnaplet Connection) }
--
-- Then a typical instance you will want to define in your own snaplet is the
-- following:
--
-- > instance HasHdbc (Handler b App) Connection where
-- >   getPool = with dbLens $ gets hdbcPool
--
class  (IConnection c, ConnSrc s, MonadControlIO m)
  =>   HasHdbc m c s | m -> c s where
  getConnSrc :: m (s c)

How to understand this behavior?


On Overloads for Java Client

Making the client more usable!
Adding on overloads for the java client so you can register callbacks that can take more than one argument from an invocation.
One thing to note
In Java there's no way to get the runtime type of a generic. So in C#  where we do
hubConnection.On<String>("Foo",  message => {...}

We don't have to pass in the class because we can extract that information from the generic. Since we can't do that in Java, the code looks like this
hubConnection.On("Foo", (message) -> { ... }, String.class);

It's a little different but ultimately to the user, they still only declare each type once.

@anurse I did the investigation that you suggested and this currently doesn't support custom types. I'm looking into that and I'm going to file a new work item for that.

This is a lot cleaner than before. I replace the ActionBase class with an interface that uses variable arguments.


Use ConfidentialClientApplicationBuilder.CreateWithOptions()

The sample instanciates the IConfidentialClientApplication by reading the options and then setting them with .With methods.
The code could be even simpler by using `ConfidentialClientApplicationBuilder.CreateWithOptions()
An example is available from https://github.com/Azure-Samples/active-directory-dotnet-iwa-v2/blob/1440daf07be2c1f46a2d2c5719478c7d555e69d0/iwa-console/Program.cs#L57-L60 or https://github.com/Azure-Samples/active-directory-dotnetcore-daemon-v2/blob/b0bfe0d8281945435d4b499d0a47ac5a6d8203a7/daemon-console/Program.cs#L62-L78

Have the CreateWithOptions() process working on the base-console-app sample project.  A few of the other samples have additional requirements (settings for AAD domain, SPO site, etc.) that will require a slightly different implementation to work.  Trying to address as cleanly and consistently as possibly across the various projects.


sdk: Draft attestation API

This PR:

Draft attestation APIs which are callable by el0 application
attest() returns hard-coded report
verify() verifies attestation report and parses it

How to test
$ cargo test -- --nocapture
Report {
    platform: Platform {
        claims_len: 9,
        profile: Claim {
            label: 265,
            value: "http://arm.com/CCA-SSD/1.0.0",
        },
        challenge: Claim {
            label: 10,
            value: [
               ..
            ],
        },
        implementation_id: Claim {
            label: 2396,
            value: [
                ..
            ],
        },
        instance_id: Claim {
            label: 256,
            value: [
              ..
            ],
        },
        config: Claim {
            label: 2401,
            value: [
               ..
            ],
        },
        lifecycle: Claim {
            label: 2395,
            value: 12291,
        },
        hash_algo: Claim {
            label: 2402,
            value: "sha-256",
        },
        sw_components: ..
        verification_service: Claim {
            label: 2400,
            value: "whatever.com",
        },
    },
    realm: Realm {
        claims_len: 7,
        challenge: Claim {
            label: 10,
            value: [
               ..
            ],
        },
        rpv: Claim {
            label: 44235,
            value: [
                ..
            ],
        },
        public_key: Claim {
            label: 44237,
            value: [
                ..
            ],
        },
        hash_algo: Claim {
            label: 44240,
            value: "sha-256",
        },
        public_key_hash_algo: Claim {
            label: 44236,
            value: "sha-256",
        },
        rim: Claim {
            label: 44238,
            value: [
               ..
            ],
        },
        rem: Claim {
            label: 44239,
            value: [
                ..
            ],
        },
    },
}

Next

Get attestation report via RSI
Expose C API

Thanks for asking it :)

Out of curiosity, at this moment, which data comes out when we ask ARM-FVP to do attestation??
+ (maybe, I guess it has some flag to indicate it is running on a simulator though:)

I think you want to know about claims which could identify the plaform. Instance ID claim and Implementation ID are formed to the platform code. So we can use it to identify that it is running on a simulator (Now whole platform token is hardcoded at tf-a.

Instance ID claim represents the unique identifier of the Initial Attestation Key (IAK)
Implementation ID claim in platform token identifies the implementation of the CCA platform.
So we can used it to identifiy platform.

Is it a report in a completely matched form with CCA spec?

Yes. it is matched form with CCA spec (especially RMM spec A7. Realm measurement and attestation)


UI: switch x and … when viewing image in fullscreen

Describe the bug
As option to go back is on the top left, so should the x when viewing an image in fullscreen
To reproduce

Open any image in fullscreen
Observe current implementation (see screenshot)

Additional information

Done in next version