Malformed JSON data form server (minor, such as illegal escapes) cause failure

Is there a way of adding a switch to allow the parsing of illegal escapes by simply ignoring them or replacing them with a space? I have a data feed from a third party which cotnains '\x26', for example, in a string and no parser will allow this through on iOS - although on any other platform, it's fine.
I've (temporarily) altered SBJsonTokenizer (at line 100) to return a ' ' character myself, but I could see a use for a 'strict' mode which would reject illegal escapes and a 'lenient' mode which would ignore them.

Hi David,
My general policy is to not add support for non-JSON. (It's a slippery slope - there's NO END of possible extensions one could add if non-valid JSON is to be considered, and if I started adding some it would be very hard to deny others.)
I think your best bet is to complain to your API provider and ask them to fix their JSON and do a local fork (as you have done) to work around it until they do.
Stig
On 22 Feb 2012, at 22:46, David Harcombe wrote:

Is there a way of adding a switch to allow the parsing of illegal escapes by simply ignoring them or replacing them with a space? I have a data feed from a third party which cotnains '\x26', for example, in a string and no parser will allow this through on iOS - although on any other platform, it's fine.
I've (temporarily) altered SBJsonTokenizer (at line 100) to return a ' ' character myself, but I could see a use for a 'strict' mode which would reject illegal escapes and a 'lenient' mode which would ignore them.

Reply to this email directly or view it on GitHub:
https://github.com/stig/json-framework/issues/125

Stig,
I understand and appreciate the policy decision - although, I should reiterate that iOS is the only platform's JSON parser that rejects this JSON stream. Windows, Safari, Android all parse fine. iOS? Nope. Crash every time.
In the meantime (since I have no control over the 3rd party stream) I shall go with the temporary local fork.
Thanks for the prompt response!
David

Though the default would be strict, I'm willing to consider a "relax" option. Just about to start a new job, though, so not sure how soon I'd be able to get around to it.
Stig
On 23 Feb 2012, at 14:20, David Harcombe wrote:

Stig,
I understand and appreciate the policy decision - although, I should reiterate that iOS is the only platform's JSON parser that rejects this JSON stream. Windows, Safari, Android all parse fine. iOS? Nope. Crash every time.
In the meantime (since I have no control over the 3rd party stream) I shall go with the temporary local fork.
Thanks for the prompt response!
David

Reply to this email directly or view it on GitHub:
https://github.com/stig/json-framework/issues/125#issuecomment-4137001


New Sample - Disable Quick property editing (Grid view) from SharePoint list

Q
A

New sample?
yes

What's in this Pull Request?
Added a new script sample which demonstrates how to disable the Quick property editing (Grid view) from SharePoint list using PnP PowerShell and CLI for Microsoft 365.

hi @ganesh-sanap, really cool double sample, thank you 👏 This will be live shortly 🎉😍


Include version in Jar filenames of Accumulo depedencies

At some point, Accumulo moved away from including version numbers in file names for dependencies found in the lib/ directory of the Accumulo binary release tarball. While I am sure there was a good reason for this at the time, it would be nice to move back to putting the version in the filename of these jars.

I seem to remember there being some debate about it at the time, but I thought I had made a convincing case for it. I believe it had something to do with making it easier to manage the class path, either by unpacking a newer tarball on top of another (probably a bad idea anyway), or something to do with our scripts being broken every time we bumped the dependency version.
I think going back to the explicit version numbers are fine, but I'd like to first review the history to see if there's any still valid reason why we shouldn't do that.


The setKey() function should call this._onKeyUp()

There was a missing underscore before onKeyUp().

good catch.


Testimonials not responsive

Is your feature request related to a problem? Please describe.
The testimonials in about us not responsive
Describe the solution you'd like
Fix this
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context

Please assign this issue to me

Please assign this issue to me

Hey I'm already working on this,pls look for some other issue


Losing spaces when pasting rich text into markdown field

When copying and pasting rich text with formatting into the 'markdown' widget, spaces get lost around formatted words.
Example:
If we copy rich text from a page

Join us at 1pm ET for lunch a live conversation over ZOOM with special guest Paul Soulellis and host Megan N. Liberty to discuss creative life in the context of our new social reality. This gathering will conclude with a poetry reading by a member of our staff.

and paste it into a 'markdown' widget in NetlifyCMS (in the rich text view), we get:

Join us at 1pm ETfor lunch a live conversation over ZOOM with special guestPaul Soulellisand hostMegan N. Libertyto discuss creative life in the context of our new social reality. This gathering will conclude with a poetry reading by a member of our staff.

👆Note the missing spaces in special guest**Paul Soulellis**and host**Megan N. Liberty**to discuss.

Same things happening when copying and pasting from any rich text web page. Spaces seem to go missing on either side of links, italicized text, bold text.

I experience this as well.

This is a consistent, and time consuming, issue when pasting from Google Doc or other page or document. As others say, after links, em-dash, bold and italic text, etc.

Linking https://github.com/rehypejs/rehype-minify/issues/19 for context

FYI, a fix was released but it requires an additional fix to work https://github.com/rehypejs/rehype-minify/issues/19#issuecomment-638730080


Update home.md to share wii.guide redirect info

Add information about wii.guide now redirecting to this page
Description

This pull request is simply to add a notice to the home page of wii.hacks.guide to inform users of our site now being the home of the Wii hacking guide, as well as to mention that WiiLink and RiiConnect24 are merging.
More work will be needed to update our WiiConnect24 and RiiConnect24 pages.

As mentioned on GitHub, I disagree with this change. It doesn't really provide any benefit.
I'm open to opinions from other guide maintainers however.

This may be of some use to us due to the fact that wii.guide is still the top result on Google, and that we have to wait for SEO optimization with the hacks.guide domain. Specifically, there are going to be pages that simply link to 404s that we removed or renamed, so I think it would be wise to have some kind of notice maybe not on the front page, but as an explanation for why a page might be a dead link? Also begs the question of whether or not we would want to set up redirects for certain pages that did exist on wii.guide but whose content was moved on hacks.guide

I would really rather we don't have redirects. GitHub Pages doesn't support that mess of a thing
We can at the very least add a "this page was removed. See why here" I guess, but we should do that in another commit
So, if not the front page... faq?
I guess we can add a small alert that "the wii.guide has been moved to wii.hacks.guide. see why here" or sumn

With the new 410 redirects, and the fact that this has sat here for 3 weeks without any developments, I'm going to go ahead and close it until further notice.


feat: Const nodes know which resource they come from

When using builder methods to put Const nodes on the graph, users must pass an extra "provenance" argument which specifies which extension the type of the constant value is coming from. The argument is an Option, where None means that the constant is of a built-in type (like our true and false predicates).
The Const nodes will be added to the graph with input_extensions which are either the empty set or the singleton set of the const value's provenance. Constant loading methods in the builder will make the LoadConst node's input_extensions match those of the constant it's connected too.
This also adds a constraint to extension inference that extension requirements are the same on both ends of Static and ControlFlow edges.
Resolves #525

Just a thought @croyzor but couldn't a constant require multiple extensions. For example, a List (that requires the collections extension) of Floats (requiring the arithmetic extension)....you get the idea.
Now, does an empty list of Floats require the arithmetic extension too? Ymmv....
Seems to me it ought to be possible to figure the extensions out from the Value rather than passing it separately, too.


[docs] Fix syntax error in v3 migration-v3-zh.md

[ ] I have followed (at least) the PR section of the contributing guide.

Translated docs are handled in crowdin.


mCSB_container width resizes up, but not down

For scrolling on the x axis, on page load, the initial width of mCSB_container is set to match the content inside, and if the content becomes larger (such as on window resize in a fluid layout), the width of mCSB_container expands to fit the content. However, if the content becomes smaller, the width of mCSB_container doesn't calculate down, resulting in a large white space on the right, after the end of the content.

Hi,
I was able to reproduce above mentioned case with:

Mozilla Firefox ver. 53.0.3 (32 bits):
malihu jquery custom scrollbar plugin version: 3.1.5, and malihu jquery custom scrollbar plugin version: 3.1.3
jquery mousewheel plugin version: 3.1.13

a) After load of a view with data in table, firebug presents:
div id="mCSB_9_container_wrapper" class="mCSB_container_wrapper"
div id="mCSB_9_container" class="mCSB_container" style="position: relative; top: 0px; left: 0px; width: 2813px;" dir="ltr"
b) Resize browser window (in below order)
i. resize down - to 80%
ii. resize down - full screen.
iii. repeat i. and ii.
c) Click on a link a action link to reload view few times.
i. As a result mCSB_9_container -> style -> width will grow.
ii. column width will grow after each view reload.

I have this bug too.

fix:
https://github.com/malihu/malihu-custom-scrollbar-plugin/issues/333#issuecomment-127536939


Add a button to transpose a results set (show rows as columns and columns as rows)

Is your feature request related to a problem? Please describe.
I often filter to one or two rows in tables with 50+ columns, and want to efficiently compare them side-by-side. The best way to do this sort of comparison is often showing each column as a row, and each row as a column (i.e. transposing the table). Currently, I have to copy it out to Excel to do this soft of viewing.
Describe the solution you'd like
I want to click a button near the Erase button for filters applied to a results set, and it transposes the table. Ideally, I want to be able to make edits.
Describe alternatives you've considered
Currently I just copy the table to Excel, which has this feature built in.

thanks for the suggestion
closed as a duplicate of #7014


Deterministic / Reproducible Builds

The goal is to build identical binaries from identical source code. This involves not embedding unnecessary metadata. e.g. Timestamps. Initial testing involving build infrastructure changes have demonstrated that the builds are not deterministic / reproducible.
 This
           operation differs from q in that any previously existing members
           are deleted if their names match those being added.

This library's CMake and autotools systems appear to be out of sync.

Using the autotools system, we can try to remove the timestamp:
        ar qcD libdatetime.a $(OBJS)
        ranlib -D libdatetime.a

man ar(1)
       D   Operate in deterministic mode.  When adding files and the archive
           index use zero for UIDs, GIDs, timestamps, and use consistent file
           modes for all files.  When this option is used, if ar is used with
           identical options and identical input files, multiple runs will
           create identical output files regardless of the input files'
           owners, groups, file modes, or modification times.

           If binutils was configured with --enable-deterministic-archives,
           then this mode is on by default.  It can be disabled with the U
           modifier, below.

# If CMAKE_Fortran_CREATE_STATIC_LIBRARY is set it will override these.
if(NOT DEFINED CMAKE_Fortran_ARCHIVE_CREATE)
  set(CMAKE_Fortran_ARCHIVE_CREATE "<CMAKE_AR> qc <TARGET> <LINK_FLAGS> <OBJECTS>")
endif()
if(NOT DEFINED CMAKE_Fortran_ARCHIVE_APPEND)
  set(CMAKE_Fortran_ARCHIVE_APPEND "<CMAKE_AR> q <TARGET> <LINK_FLAGS> <OBJECTS>")
endif()
if(NOT DEFINED CMAKE_Fortran_ARCHIVE_FINISH)
  set(CMAKE_Fortran_ARCHIVE_FINISH "<CMAKE_RANLIB> <TARGET>")
endif()

The variable name is:
CMAKE_${lang}_ARCHIVE_(CREATE|APPEND|FINISH)

where, ${lang} is C, CUDA, CXX, Fortran, HIP, ISPC, OBJC, OBJCXX or Swift.
$ grep -l _ARCHIVE_CREATE Modules/CMake*Information.cmake
Modules/CMakeCInformation.cmake
Modules/CMakeCUDAInformation.cmake
Modules/CMakeCXXInformation.cmake
Modules/CMakeFortranInformation.cmake
Modules/CMakeHIPInformation.cmake
Modules/CMakeISPCInformation.cmake
Modules/CMakeOBJCInformation.cmake
Modules/CMakeOBJCXXInformation.cmake
Modules/CMakeSwiftInformation.cmake

A very detailed explanation, with historical context, of ar and ranlib:
https://stackoverflow.com/questions/47910759/what-is-the-difference-between-ranlib-ar-and-ld-for-making-libraries

Fascinating.
This has been lodged as an issue with Kitware (CMake developers) but there is no obvious move on their part
https://gitlab.kitware.com/cmake/cmake/-/issues/19852
As noted in this SO post, your solution above can be added to the CMake build:
set(CMAKE_Fortran_ARCHIVE_CREATE "<CMAKE_AR> qcD <TARGET> <LINK_FLAGS> <OBJECTS>")
set(CMAKE_Fortran_ARCHIVE_FINISH "<CMAKE_RANLIB> -D <TARGET>")

I would suggest this be raised as an issue with datetime-fortran and offer a PR to make the behaviour consistent between CMake and autotools.

This library's CMake and autotools systems appear to be out of sync.

Opened: https://github.com/wavebitscientific/datetime-fortran/issues/76

Notes
https://gitlab.kitware.com/cmake/cmake/-/issues/19852

My current workaround is to set CMAKE__CREATE_STATIC_LIBRARY on macOS platforms to something along the lines of /usr/bin/xcrun libtool -static -D -o <LINK_FLAGS> , which seems to have the same effect, but it would be preferable if CMake had native libtool support instead of relying on xcrun.

&

You can also try setting ZERO_AR_DATE=1 in the environment.
This is supported by older apple tools.
It doesn't zero out the uid etc. in the .a, but it's better than nothing.

We'll need to make changes to the spack_packages repository. e.g. https://github.com/ACCESS-NRI/spack_packages/compare/deterministic-builds
We'll likely need to make changes to the libaccessom2 repository.


More on storage, add a page for more average solutions

This is great info. I still see a lot of differing ideas around the web on storage, tho. Many folks suggest a single drive, possibly with multiple underlying striped disks for data, log, and tempdb. Would be nice to see more on this discussing and decisions around this choice.  Would also be nice to have more info on more average sql server vm configurations for the budget minded. Maybe a separate page. Thank you!

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

ID: 139dc620-240c-779f-1eed-c12accfe2ef6
Version Independent ID: a6deda7b-8361-2e2c-808a-48c047bae7a1
Content: Performance guidelines for SQL Server in Azure
Content Source: articles/virtual-machines/windows/sql/virtual-machines-windows-sql-performance.md
Service: virtual-machines-sql
GitHub Login: @MashaMSFT
Microsoft Alias: mathoma

Thanks for the feedback! We are currently investigating and will update you shortly.

@iampeterdaniels I have assigned this to the content author to review and see what we can do.

Hi @iampeterdaniels , thank you so much for reaching out and helping improve our documentation :) There's actually some internal work going on to add additional information to this documentation, and so your Git Issue aligns nicely with that :) (1608074). I will proceed with closing out this Git Issue for the time being, but please feel free to reach out should you need anything further.
Thanks!
Masha from the SQL Docs team
#please-close

Sounds great. Thanks for the reply!
-------- Original message --------From: Masha at MSFT<EMAIL_ADDRESS>Date: 9/30/19  11:20 AM  (GMT-07:00) To: MicrosoftDocs/azure-docs<EMAIL_ADDRESS>Cc: Peter Daniels<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [MicrosoftDocs/azure-docs] More on storage, add a page for more
  average solutions (#39743) Hi @iampeterdaniels , thank you so much for reaching out and helping improve our documentation :) There's actually some internal work going on to add additional information to this documentation, and so your Git Issue aligns nicely with that :) (1608074). I will proceed with closing out this Git Issue for the time being, but please feel free to reach out should you need anything further.
Thanks!
Masha from the SQL Docs team
#please-close
—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or mute the thread.
[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/MicrosoftDocs/azure-docs/issues/39743?email_source=notifications\u0026email_token=AAY6UZG6NTLWSZKENCHDJ63QMIYNVA5CNFSM4I3SPEUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD76M5IY#issuecomment-536661667",
"url": "https://github.com/MicrosoftDocs/azure-docs/issues/39743?email_source=notifications\u0026email_token=AAY6UZG6NTLWSZKENCHDJ63QMIYNVA5CNFSM4I3SPEUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD76M5IY#issuecomment-536661667",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]


fix panic issue when registries not config;

What this PR does:
fix issue #508
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: Print error when doesn't config registries.

Codecov Report

Merging #580 (6eb8b62) into develop (16be85f) will decrease coverage by 0.01%.
The diff coverage is n/a.

:exclamation: Current head 6eb8b62 differs from pull request most recent head 761ac02. Consider uploading reports for the commit 761ac02 to get more accurate results

@@             Coverage Diff             @@
##           develop     #580      +/-   ##
===========================================
- Coverage    54.68%   54.68%   -0.01%
===========================================
  Files          671      671
  Lines        78664    78664
===========================================
- Hits         43019    43017       -2
- Misses       31975    31977       +2
  Partials      3670     3670

see 18 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


SwiftRemoteMirror: Lower types with imported / Objective-C types

Lower Objective-C class typerefs as strong references with unknown
reference counting.
Lower other imported C types as builtin blobs of their known
size, alignment, etc.

In the future, it might be beneficial to track which stored properties
of imported types are pointers, for better conservative scanning of
outgoing pointers to the heap.
rdar://problem/26240258
rdar://problem/26240394

@slavapestov Can you double-check me, please?

@swift-ci Please smoke test

@swift-ci Please smoke test

@swift-ci Please test

Got a fix for the Linux test. The OS X bot seems to be backed up, so I'm going to launch an all-platforms test run locally.

All Apple platform tests pass locally - checking Linux.

@swift-ci Please test Linux


[flash_ctrl,dv] regression fix for error tests

sec_cm:
prim_reg_we_check triggers fatal_std_err while prim_reg_check under eflash triggers fatal_prim_fatal_alert.
Adjust sb accordingly.
Add flush tlul task to env.
flash_ctrl_disable: flash_ctrl.dis is only effective when the value is MuBi4True

Signed-off-by: Jaedon Kim<EMAIL_ADDRESS>

@jdonjdon regarding the last point, where dis is only effective when true, can you show me where that manifests?
I should have been doing true_loose detection, meaning anything that's not false should have triggered.

@jdonjdon regarding the last point, where dis is only effective when true, can you show me where that manifests? I should have been doing true_loose detection, meaning anything that's not false should have triggered.

@tjaychen Sure,
instance is here(https://cs.opensource.google/opentitan/opentitan/+/master:hw/top_earlgrey/ip/flash_ctrl/rtl/autogen/flash_ctrl_core_reg_top.sv;drc=88829b65a0960271121209f996ce47ceeff71882;l=1524)
it eventually goes to (https://cs.opensource.google/opentitan/opentitan/+/master:hw/ip/prim/rtl/prim_subreg_arb.sv;drc=9ce30abcb377e640807042b0d748106dd70f676e;l=60)
de = 0 (hard coded),
q = 'h9 (mubifalse)
we = 1,  wd = 'hD
By the logic, it becomes 'hD.

wait sorry i'm a little confused. This is looking at inside reg_top, do you mean you aren't able to write a value that is not true to it..? Or that if you write some intermediate value (let's say 0xa), it doesn't behave correctly..?

flash_ctrl.DIS disables the flash only when 'mubi true' is written. Otherwise, all other attempt to write with random value except 'mubi true', interpreted as false.

wait...that's definitely not right. Do you have a test case where I can try that out? Like i mentioned we are supposed to be detecting true_loose, which means 15 out of 16 values should be considered "disabled".

PR is updated following #15684

@weicaiyang I replace flush_tlul with apply_reset.


ESP32 BLE mesh example fails to provision (IDFGH-3365)

Environment

Development Kit:      ESP32-DevKitC
Kit version (for WroverKit/PicoKit/DevKitC): v4
Module or chip used:  ESP32-WROOM-32D
IDF version (run git describe --tags to find it):
v4.0
Build System:         CMake|idf.py
Compiler version (run xtensa-esp32-elf-gcc --version to find it):
xtensa-esp32-elf-gcc.exe (crosstool-NG esp-2019r2) 8.2.0
Operating System:     Windows
(Windows only) environment type: Plain Command Prompt
Using an IDE?: vscode extension
Power Supply:         USB

Problem Description
I am unable to provision the BLE mesh tutorial example project with the nrf mesh mobile application.  The link to the tutorial to follow.
nRF Mesh v2.3.0
Tutorial link
Expected Behavior
Provisioning is successful
Actual Behavior
Provisioning fails with a message on the phone application "Prohibited!"  See attached image
Steps to reproduce
Build the aforementioned example project, flash the project, attempt to provision via the nRF mesh
phone app.
Code to reproduce this issue
Code found here.
Debug Logs
$ idf.py monitor
Setting IDF_PATH environment variable: c:\eds\call_light\idf_test\no_vscode\esp-
idf-v4.0.1
Checking Python dependencies...
Python requirements from c:\eds\call_light\idf_test\no_vscode\esp-idf-v4.0.1\req
uirements.txt are satisfied.
Executing action: monitor
Choosing default port b'COM4' (use '-p PORT' option to set a specific serial por
t)
Running idf_monitor in directory c:\eds\call_light\idf_test\no_vscode\esp-idf-v4
.0.1\examples\bluetooth\esp_ble_mesh\ble_mesh_node\onoff_server
Executing "winpty C:\Users\owens\AppData\Local\Programs\Python\Python37\python.e
xe c:\eds\call_light\idf_test\no_vscode\esp-idf-v4.0.1\tools/idf_monitor.py -p C
OM4 -b 115200 c:\eds\call_light\idf_test\no_vscode\esp-idf-v4.0.1\examples\bluet
ooth\esp_ble_mesh\ble_mesh_node\onoff_server\build\onoff_server.elf -m 'C:\Users
\owens\AppData\Local\Programs\Python\Python37\python.exe' 'C:/eds/call_light/idf
_test/no_vscode/esp-idf-v4.0.1/tools/idf.py'"...
--- idf_monitor on COM4 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:6984
load:0x40078000,len:14076
load:0x40080400,len:4304
entry 0x400806e8
I (71) boot: Chip Revision: 1
I (71) boot_comm: chip revision: 1, min. bootloader chip revision: 0
I (39) boot: ESP-IDF v4.0.1-dirty 2nd stage bootloader
I (39) boot: compile time 15:21:04
I (39) boot: Enabling RNG early entropy source...
I (44) boot: SPI Speed : 40MHz
I (48) boot: SPI Mode : DIO
I (52) boot: SPI Flash Size : 2MB
I (56) boot: Partition Table:
I (60) boot: ## Label Usage Type ST Offset Length
I (67) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (74) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (82) boot: 2 factory factory app 00 00 00010000 00100000
I (89) boot: End of partition table
I (94) boot_comm: chip revision: 1, min. application chip revision: 0
I (101) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x2bf00 (17
I (1118) onoff_server: ESP_BLE_MESH_PROV_REGISTER_COMP_EVT, err_code 0
I (1128) onoff_server: ESP_BLE_MESH_NODE_PROV_ENABLE_COMP_EVT, err_code 0
I (1128) onoff_server: BLE Mesh Node initialized
I (21198) onoff_server: ESP_BLE_MESH_NODE_PROV_LINK_OPEN_EVT, bearer PB-GATT
W (23968) BLE_MESH: bt_mesh_attention, No Health Server context provided
Other items if possible

[x] sdkconfig file (attach the sdkconfig file from your project folder)
[x] elf file in the build folder (note this may contain all the code details and symbols of your project.)
[ ] coredump (This provides stacks of tasks.)

sdkconfig_elf.zip

@owensc84 Thanks for the bug report and letting us know about this. We will look into.

Hi @owensc84
Thanks for reporting this.
Using the nRF Mesh Android Apps (version 2.3.0 & 2.2.0), I failed to provision the device running onoff_server example.
Then I tried with the version 2.1.3, it works fine. Also tried with the latest iOS nRF Mesh App, it works fine too.
I'm not sure why the latest nRF Mesh Android App failed to handle the public key from esp32, also I've noticed that this issue has been submitted in the Android-nRF-Mesh-Library Issues, we can follow this issue for further updates.
Thanks.

@Campou, thanks for the response.
Is this a problem with the ESP32 sdk or the nRF-Mesh app?  From the linked nRF-Mesh bug report it appears to be a nRF-Mesh app issue.  What concerns me is I am unable to provision the on-off example with other vendor apps as well, they all fail at one place or another. The ST mesh app seems to provision, but crashes when attempting to access an element.
I am able to provision the "nimble" example without issue, this example is found here here.

Hi @owensc84
Thanks for the info. Will look into this and get back to you ASAP.
Thanks.

Hi @owensc84
I have found the root cause. The onoff_server uses 23 as the default MTU size, which causes the failure of the provisioning procedure on the App side. After changing the MTU size to 69, the provisioning procedure is completed successfully.
Please apply this patch to have a try set-mtu-size-to-69.zip. Will update this info to the  Android-nRF-Mesh-Library Issues.
Thanks.

@Campou,
Thank you I will give the patch a try.

@Campou the patch appears to work, thanks!

Is not that ble mesh specs requires min MTU size to be 69?

Hi @chegewara
From the spec, it says The Provisioning Server should support an ATT_MTU size equal to or larger than 69 octets to accommodate the longest known Provisioning message. Since it uses should, so 69 is a recommendation, which can avoid segmentation and reassembly in the proxy protocol.
Using the default MTU size 23 here should not cause any problem, and IMO, a GATT client should try to exchange the MTU size before any further GATT procedures. Also I've noticed that nRF Mesh App is following this procedure, so maybe some other things went wrong.
Thanks.

Thanks for reporting, feel free to reopen if the issue still happens, or please help file a new ticket for new issue, thanks.

Hi,
i know this is old topic, but i would like to update some info and maybe ask espressif to clarify.
From Mesh Profile 1.0.1
<IP_ADDRESS>.4 ATT_MTU
The server should support an ATT_MTU size equal to or larger than 33 octets to be able to pass the
content of a full Proxy PDU (see Section 6.5).

https://www.bluetooth.com/specifications/specs/mesh-profile-1-0-1/
Thanks


Replacing whitelist with allowedlist

Post this update on #21 so our current customers stay posted on this breaking change. 😄
Also, this seems like a good time to get started on the tests, what do you think?

Will update once the PR is merged.
I've started working on the tests.


:sparkles: Add Screenshot Test for Search Screen

Issue

close #629

Overview (Required)

Added ScreenShot test for SearchScreen.

I had originally implemented the test in #806, but after conflicts with others, I changed it to just add one test.


SAS Token explanation leaves more new questions in the readers mind

As somebody unfamiliar with SAS and when read the following paragraph:

"The SAS token is a string that you generate on the client side, for example by using one of the Azure Storage client libraries. The SAS token is not tracked by Azure Storage in any way. You can create an unlimited number of SAS tokens on the client side. After you create a SAS, you can distribute it to client applications that require access to resources in your storage "

Naturally I end up with a few more questions that are not answered in this document.
Question 1: What client app?  How do you generate a token from a client app?  Where is the link on how to do that?  After you generate tokens on the client side what do you do with them?
When I look at a resource SAS blade (see attached file)

I see that I can copy the token.  Then what do I do with it?  Because just below that I have the SAS URI which already includes the token.  So why I not use the SAS URI (which already includes the token).
Obviously if I can copy the token from here and I can create it from Azure Storage client libraries, but what this docume

nt or anything else I found doesn't explain is:
Question 2:  When for what purpose do I use this token (without the URI)?  Why would I want to generate more client tokens from client side?
Thanks for your time.

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

ID: 788014ae-dc3b-f509-3dbd-933eb5a423a4
Version Independent ID: 250d17de-f226-d3e3-7071-3ecb14da018e
Content: Grant limited access to data with shared access signatures (SAS) - Azure Storage
Content Source: articles/storage/common/storage-sas-overview.md
Service: storage
Sub-service: common
GitHub Login: @tamram
Microsoft Alias: tamram

@D-Moonesinghe Thanks for the feedback! We are currently investigating and will update you shortly.

Thanks Derek for the answer.  That makes it clear.  I do hope you do
incorporate that explanation into your documentation to make it more
clear.  That way other thousand readers who don't ask the question like I
did,  will still get the benefit of your knowledge.
On Thu, Jun 18, 2020 at 12:49 PM DerekHerman-MSFT<EMAIL_ADDRESS>wrote:

@D-Moonesinghe https://github.com/D-Moonesinghe
The client application is referring to any application that needs access
to Azure Storage.
Generating a SAS token from the client side is usually done by using one
of the Azure Storage client libraries. Some links to examples can be found
at the bottom of the page
https://docs.microsoft.com/en-us/azure/storage/common/storage-sas-overview#get-started-with-sas
.
Some developers prefer just using the SAS token and generating the URI in
their own code using the name of the file. Others just use the full URI,
which is the simplest method. Feel free to utilize whatever method works
best for you.
Hopefully this provides some clarity around the questions you have. Let me
know if you have further questions or suggestions and I will be happy to
help!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/MicrosoftDocs/azure-docs/issues/57374#issuecomment-646164171,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AOOSSNX6XD6LJWFUGQIQTDLRXJASNANCNFSM4OBYZFNQ
.

--
Deepal Moonesinghe
(408) 568 1669
<EMAIL_ADDRESS>

@D-Moonesinghe Thanks for the feedback! I have assigned the issue to the content author to investigate further and update the document as appropriate.

Thank you for your dedication to our documentation.
We sincerely apologize for the delayed response. After a careful review, we are closing this issue. If you feel that the problem persists, please respond to this issue with additional information.
Please continue to provide feedback about the documentation. We appreciate your contributions to our community.
#please-close

Thanks for your dedication to our documentation.
We sincerely apologize for the delayed response. The requested updates have not been made since the creation of this issue, and the timeline for resolution may vary due to various constraints. Therefore, we've created an internal work item to incorporate your suggestions. We are closing this issue for now, but feel free to comment here as necessary.
#please-close


Modify renderCompactMarkdown() so that it causes no flickering/scrolling in Live Preview

As reported in #2128 and #2129, inline fields causes force-scrolling and flickering in Live Preview under some circumstances.
In my current understanding, the root cause resides in the renderCompactMarkdown() function. I'm not completely sure, but it seems that the previous implementation of this function (which has existed since before 0.5.60) caused vertical movement/flickering that leads to the force-scrolling issue. The problem was container.createSpan, which creates <span> in the DOM structure before its child nodes are extracted from the <p> container.
https://github.com/blacksmithgu/obsidian-dataview/blob/6896a1a9574fcd900f1c8831b48a1d32db214c0e/src/ui/render.ts#L8-L25
In this PR, I replaced container.createSpan with createSpan, preventing the subcontainer/tmpContainer being added as a child of container at this point.
In my test, this fixed the issue.
I also replaced the while loop with replaceChildren, by which I feel the performance has been slightly improved when scrolling the page.
If you have any concerns or suggestions, please let me know. Thank you!

Sorry, I couldn't make it before the 0.5.62 release...

To reproduce the original problem, you can use the following (if it's not observed, increase the number of tasks):
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]
- [ ] task text [var::1]


[BUG] - Whatsapp (since Version 2-22-23-15) cannot be decompiled properly

Information

Apktool Version - 2.6.1
Operating System - Windows
APK From? https://whatsapp-messenger.de.uptodown.com/android/download
APK From? https://play.google.com/store/apps/details?id=com.whatsapp&hl=de&gl=US
Before Version 2-22-23-15 decompiling worked
Since Version 2-22-23-15 this issue occurs

Stacktrace/Logcat
Include stacktrace here
I: Using Apktool 2.6.1 on whatsapp-messenger-2-22-24-18.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\....\AppData\Local\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...

I: Baksmaling classes.dex...
I: Baksmaling classes2.dex...
I: Baksmaling classes3.dex...
I: Baksmaling classes4.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
I: Copying META-INF/services directory

### Steps to Reproduce
1.  java -jar apktool.jar d whatsapp-messenger-2-22-24-18.apk

### Frameworks
-

### APK
https://whatsapp-messenger.de.uptodown.com/android
https://play.google.com/store/apps/details?id=com.whatsapp&hl=de&gl=US

### Questions to ask before submission
1. Have you tried `apktool d`, `apktool b` without changing anything?
Yes

2. If you are trying to install a modified apk, did you resign it?
I only try to decompile it

3. Are you using the latest apktool version?
Yes

Hmm an r and R and res.
Didn't expect this. Let me think on this, I think I can patch this easily.

Thank you
Sorry, I am not a developer, and I am not sure if I understood correctly. Is this fixed (Which version) or will this be fixed in a future version?

Thank you Sorry, I am not a developer, and I am not sure if I understood correctly. Is this fixed (Which version) or will this be fixed in a future version?

2.6.2 - expected before end of year.

I tried v.2.7.0 and had no errors. But I still have data like this below.
Is there anything I can do to avoid "Dummies"?

No, we need those resources because the human-readable name of the resource is missing so we make up our own.

I tried v.2.7.0 and had no errors. But I still have data like this below.
Is there anything I can do to avoid "Dummies"?

No, we need those resources because the human-readable name of the resource is missing so we make up our own.

Hi @iBotPeaches ,
Question on similar lines. These dummy entries were not there is past versions. Now, when I try out the old apk file(which used to work previously), they also produce these dummy variables.
Problem is, it's becoming difficult to identify the actual resource it's pointing to while doing backtracking from smali files.
Taking reference from https://github.com/iBotPeaches/Apktool/issues/2970#issuecomment-1364518274, the features states something like Additional features that can fix some Apktool errors, such as removing DUMMY_APKTOOL, clear framework before decompiling. So, is there anything you could do with this issue please?
If I have misunderstood your statement, could you please elaborate on this issue?
Thanks.


chore: update build to use third-party service

Closes #62
I also updated Vercel’s config to use the dist folder.

I just deleted the project from Netlify, so ignore those errors.

🙌 all good now


feat(cli): add draft and commit revision in TBRN

Pull Request Test Coverage Report for Build 835349681

8 of 37 (21.62%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.4%) to 79.847%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

tensorbay/utility/tbrn.py
8
37
21.62%

Totals

Change from base Build 834978051:
-0.4%

Covered Lines:
4279

Relevant Lines:
5359

💛  - Coveralls


compliance navigation updates

User Story
original issue: https://chefio.atlassian.net/secure/RapidBoard.jspa?rapidView=261&modal=detail&selectedIssue=UI-161
Note: Due to some design consistency related updates some of the attached screenshots may have the incorrect nav or smaller details, if you have any questions please reach out to susan evans.
Overview
Compliance will become a top-level item with Reports, Scan Jobs, and Profiles appearing in the left-nav when navigating to Compliance. This work should leverage the work done in Settings, where the user is directed to the first page in that list that they have access to, and if they don't have access to any of the compliance pages than Compliance should be hidden from the top-nav.
New Routes
compliance/reports/
compliance/scan-jobs/
compliance/profiles
https://github.com/chef/a2/blob/master/dev-docs/adr/adr-2019-01-23.md
Design Details
Reports
Change the h1 to be Reports
Change the subheading to be Complance reports describe the status of scanned infrastructure.
Change the Reports icon to use bar_chart
Scan Jobs
Change the h1 to be Scan Jobs
Change the subheading to be Compliance scan jobs run inspec exec on a set of nodes.
Profiles
Change the h1 to be Profiles
Change the subheading to be Compliance profiles manage security and compliance scans.
Documentation Updates
Rename Compliance page to Reports
Rename Chef Automate Scan Jobs page to Scan Jobs
Rename Asset Store page to Profiles
Change documentation nav to have Compliance as a top-level item with Reports, Scan Jobs, Profiles, and Nodes API under it.
Update all screenshots on Reports, Scan Jobs, and Profiles pages
NB: Save yourself some work (notes from @msorens):

See https://github.com/chef/a2/pull/4642 for prior art on Settings tab.

Wait for about-to-land PR (https://github.com/chef/a2/pull/5039) that genericizes the SettingsLanding component used in that PR, into a handy reusable component.

Designs

comment from @jonong1972 :

February 7, 2019, 4:09 PM
I would still keep the term "Scans" to "Scan Jobs", other than that, looks good. Technically it is not a scan. Its the job to run a scan.


Verify installation step in README

I didn't realize nvm is a .sh-script. After installing via the curl command I thought the install had failed as I did "which nvm" and it came up blank. The README could (and probably should) include a install verification step for less gifted people, such as myself.

The last line of output of the install command does say "close and reopen your terminal to use nvm" - however, I'm totally happy to accept a PR for a "Verifying successful installation" section.


Add Firebase Cloud Messaging (FCM) check

You can check if an API key works for FCM by using the curl below:
api_key=YOUR_SERVER_KEY

curl --header "Authorization: key=$api_key" \
     --header Content-Type:"application/json" \
     https://fcm.googleapis.com/fcm/send \
     -d "{\"registration_ids\":[\"ABC\"]}"

Source: https://abss.me/posts/fcm-takeover/
Would be cool if this would be integrated in the script. I will be trying to integrate this myself sometime soon, so I might come back later with a pull request.

A little bit busy lately so not sure when to pull this request. Will be really glad for the contributions as well :) Intergrating this script to all Google API's on my to-do list as well however not sure when I can finish it completely.

Added on latest update.


ftp functionality

currently micro cannot read, create, or edit files on an ftp server. i recently tried editing a .htaccess file for a website and... oh no! i had to install gedit to geditdone 😆 . argh!
any plans to add this feature? vim has a plugin that allows for a capability like this. however, a more seamless implementation would be sweeter.
btw: thanks for the wacky watermelon colorscheme, very refreshing from time to time.

this feature is not a UNIX way, you can mount FTP locally

what i'm trying to say is: once i've connected to my ftp site using my file manager, i would like to be able to click on text files to edit them with micro.
micro is my default text editor and cannot read, edit, or create files even after i've locally mounted an ftp root directory. if i open a text file from this ftp root directory with gedit, it works. i want to be able to use micro instead of gedit. gedit?  😆

If you open ftp://username@host:port/folder in Nautilus, Thunar, pcmanfm etc., it uses gvfs (GNOME virtual filesystem) to open files,  for programs each opened file is a local file, gvfs automatically syncs the changes in it with the server.
You may try to add micro to a menu with KDE menu editor, menulibre or other programs.
Or you may create ~/.local/share/applications/micro.desktop just like https://askubuntu.com/questions/97683/how-can-i-change-the-default-text-editor-from-gedit-to-vim
[Desktop Entry] Categories=; Comment=Open in Micro Comment[ru]=Открыть в Micro Exec=vim %f GenericName=Micro Text Editor Hidden=false Icon=vim Name=Micro Terminal=true Type=Application Version=1.0
Then just right click on a text file and choose opening it in micro.

Personally I prefer to mount SFTP(SSH) via sshfs

thanks @mikhailnov, i connect through pcmanfm's built in sftp feature. as i've mentioned,  micro is already my system's default text editor. micro is just not capable of reading, editing, or creating files on an ftp server.  maybe someone should tag this as a feature request.
i'm curious, since you have gone through such great lengths to explain so much, have you tested your suggestions? is micro working for you via sftp? #
if so, delineate your method, i would like to reproduce it on my system.

no, I did not :) just suggested a possible method, sorry)) but some GUI apps do not interact corretly with GVFS, I didn't try to figure out why, it should be solvable, because GVFS creates a simple local file.
You use SFTP, not FTP, these are completely different things.
For myself I use sshfs
$ dpkg -l | grep sshfs
ii  sshfs                                           2.8-1                                           amd64        filesystem client based on SSH File Transfer Protocol
I created directories ~/sshfs, ~/sshfs/host.tld
A script ~/sshfs/dum
sshfs username@host.tld:/home/user/folder host.tld -p port
And the same for each host with which I work frequently.
As I'm not using SSH keys for authorization, I open a terminal which is built in the Dolphin file manager and execute
./dum
and enter the password. If I used SSH keys, I would just double click the script and have the remote server filesystem mounted into ~/sshfs/host.tld
Maybe one day I will have time and will to debug issues with GVFS working with not all applications. What I've seen, its behaviour slightly changes from one Ubuntu version to another, probably GNOMErs  are removing 'not needed' features from their libraries. For example, in some situations Geany (GTK2) did work with GVFS (sftp opened in Nautilus), in others it did not, I've already forgotten where it did and where did not. Now I just use sshfs and can even execute terminal comands with the remote filesystem as if it was a local one.

perhaps make an ftp browser/editor plugin?
Seems like adding it as a feature would be adding bloat for many people, but as a plugin would be perfect


adjust luminance

Slightly adjust luminance in both directions when generating colors – brighter for one, darker for the next, and so on across the entire color palette. This creates a stronger perceptual distance between colors without being too disruptive.

With consistent luminance:

With alternating luminance adjustments:

The default k value is effectively doubled by switching between methods that adjust in different directions.


suggestion: place search box in rectifying view

It would be very nice if one could make a place search in the rectifying view that would zoom in the map also. It would make it easier to get to the right place. Actually it would be the same box that is in the 'Browse rectified maps' view.

Sometimes I get a suggested zoom when starting to rectify, sometimes not.. what does it depend on? (Even if the map name has place name in it does not seem to function)


Windows issue with sql processor

Again sorry to bother you with windows issues. I've included my config attached.
When I run this I get:
failed to load config 'src\pdirzeomega.yaml': yaml: line 232: mapping values are not allowed in this context
when I remove these lines it's fine:
- sql:
driver: postgres
result_codec: json_array
data_source_name: "postgres://${DB_USER}:${DB_PASS}@${DB_IPADDRESS}:5432/etldb?sslmode=disable"
query: "SELECT internal_id FROM etl.resource_tracker WHERE datasource=''zeomega''and resource_type=''Practitioner'' and external_id=$1;"
args_mapping: "[ this.externalid ]"
result_map: "root.practitioner_id = this.0.internal_id"
any ideas? thanks again, David.
pdirzeomega.zip

Nevermind I it needed results_codec or it doesn't work. Error was just misleading. thanks

No worries! BTW, we’re up on Discord and Slack if that’s easier for quick questions / chat: https://www.benthos.dev/community


Failure to create bookmark if added to non-existent group

Expected behavior
New bookmark is added to Bookmarks group
Actual behavior
No bookmark was added
Steps to reproduce the behavior

Find a stop or route you like, add it as a Bookmark
Tap Set Group
Tap Add on the Group view
Tap Cancel
Tap Done to return to Edit Bookmark view
See that the bookmark shows "Set Group: New Group"
Tap Save

This no longer repros after fixing #717 with design change.


[stable/hazelcast] commented out approve part & use more restricted devOpsHelm user

Please approve @hasancelik @leszko @mesutcelik @googlielmo @eminn


Catch LiveShare API errors

Primary change:

Adds try/catch to the accessing of the vsls API, so as to hopefully avoid situations such as #671

Minor changes:

Remove some superflous/dead code from previous iterations of the LiveShare PR
Change the guest dataview file to have the same path as the host

Tested on Arch Linux

I test on macOS with a corrupted live share installation (some extension files are removed deliberately) and vscode-R is activated successfully. When live share API is ok, the features work well too.

Thank you for checking!


added acord 101 files for config library

Tested and added 101 files

Can do, thanks for the review

Whoops! forgot this was pending. Updated the text

@aNorthSense Thanks for updating! Go ahead & merge!


Disable automatic type conversion in order to continuously calling java method?

I would like to do some string processing in a continuous way, e.g., java.lang.String(" some string").trim().replaceAll("regex", "replacement"), so that re module is not needed and code consistency with java side is better.
But I find that trim() returns unicode type, which result in an AttributeError: 'unicode' object has no attribute 'replaceAll' error.
To my understanding, Javatrim() returns java.lang.String type, so this should be the effort of automatic type conversion of java string to python unicode. Is it right?
If so, how to disable automatic type conversion in this situation? Or if not, is there another way to do so?

Fixed and tested in 0.7.


Tx stuck as Pending when it's already been confirmed on block

iOS 13.4.1  /  iPad mini
build 2020-05-25
Tried refreshing transactions list; no change.  Swiped app away to close it, app crashed (sent crash report via iOS).  Restarted app and Tx details updating properly now

cannot be recreated


Updating Bridget's picture

Updating my profile picture.

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

advocates/media/profiles/bridget-kromhout.png
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Programming exercises: Store the used branch in the database

Checklist
General

[x] I tested all changes and their related features with all corresponding user types on a test server.
[x] I chose a title conforming to the naming conventions for pull requests.

Server

[x] I followed the coding and design guidelines.
[x] I added multiple integration tests (Spring) related to the features (with a high test coverage).
[x] I implemented the changes with a good performance and prevented too many database calls.
[x] I documented the Java code using JavaDoc style.

Changes affecting Programming Exercises

[x] I tested all changes and their related features with all corresponding user types on Test Server 1 (Atlassian Suite).
[x] I tested all changes and their related features with all corresponding user types on Test Server 2 (Jenkins and Gitlab).

Motivation and Context

Retrieving the default branch from the VCS for many git operations is not performant and can slow down the system.
Description

This PR stores the default Branch for the used repositories in the database of Artemis and only retrieves them from the VCS if necessary.
This PR contains a database change. Make surre to delete all newly created programming exercises and participations after testing!
Steps for Testing

Prerequisites:

1 Instructor
1 Student
1 Programming Exercise

Log in to Artemis
Create programming exercise
Make sure that everything is still working in the programming exercise:

Online Editor for Students

Online Editor for Instructors

Cloning to the local IDE, pushing and. receiving feedback
Importing (Especially If you still have an old exercise with "master" as default branch)
...

Review Progress

Code Review

[ ] Review 1
[ ] Review 2

Manual Tests

[ ] Test 1
[ ] Test 2

Test Coverage

Class/File
Branch
Line

@JohannesStoehr do you think we could try to add that to the next mile stone? This feature would help us a lot :)

While trying to use the online editor I couldn't submit the exercise. It Builded and tested for around 15 minutes now when I pressed the submit button.

There were some problems with the Buildagents on TS1. This is probably related.

I've created a project with old "master" branch.
Afterwards, I've stopped artemis and delted the repos on the local clone of artemis.
Afterwards, I've changed the default branch to "main" and updated to this PR.
Now I get internal server errors (gitlab/jenkins setup) while opening the "Edit in Editor" view as instructor:
2022-05-20 09:12:11.114 ERROR 1 --- [nio-8080-exec-9] o.z.problem.spring.common.AdviceTraits   : Internal Server Error

java.lang.IllegalArgumentException: null
        at de.tum.in.www1.artemis.web.rest.repository.RepositoryProgrammingExerciseParticipationResource.getOrRetrieveDefaultBranchOfDomainObject(RepositoryProgrammingExerciseParticipationResource.java:165)
        at de.tum.in.www1.artemis.web.rest.repository.RepositoryResource.getStatus(RepositoryResource.java:294)
        at de.tum.in.www1.artemis.web.rest.repository.RepositoryProgrammingExerciseParticipationResource.getStatus(RepositoryProgrammingExerciseParticipationResource.java:348)
        at de.tum.in.www1.artemis.web.rest.repository.RepositoryProgrammingExerciseParticipationResource$$FastClassBySpringCGLIB$$9ebf5bf.invoke(<generated>)
        at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)


engine API

https://github.com/ethereum/execution-apis/blob/main/src/engine/specification.md
@ayrat555 wdyt?

@InoMurko I think it's a good idea to implement it in ethereumex. Let's strart on the weekend?


Image Captions

Hey, I just discovered this project. Very cool. Is there a way to add captions to images (e.g. a title or some metadata)? I saw that in the template.go there is something about a caption but I wasn't able to find any related code how to add captions to images.
https://github.com/moulco/moul/blob/bfe9508bb78acff67a0979cc9751309ecf7d0fa0/internal/template.go#L514-L516
If this is currently not possible it might be a useful feature in the future.

👋 @codello
That section you highlight is use by PhotoSwipe. The photo collection section on the page is actually generate via client side JavaScript https://github.com/moulco/moul-collection/blob/master/src/index.js

If this is currently not possible it might be a useful feature in the future.

I'll added it into my list. Thank!


cmd/compile: miscompilation of some arithmetic and conditionals on arm

@FiloSottile suggested that a recent mailing list post be moved to an issue, so here goes:
Jan Mercl reports that this code will miscompile on ARM:
package main

import "fmt"

var x = [4]int32{((-0x7fffffff - 1) / 2), 0x7fffffff, 2, 4} /* 20041210-1.c:5:5 */

func main() { /* 20041210-1.c:8:1: */
        if x[0] < x[1] {
                if x[2]&x[3] < 0 {
                        panic(fmt.Errorf("%v & %v = %v, < 0 ? %v", x[2], x[3], x[2]&x[3], x[2]&x[3] < 0))
                }
        }
}

Running the same code on 386 vs arm shows success on 386 and panics on arm. I've confirmed this is the case with 1.15.5, and Meng Zhuo confirmed it to be happening on 1.13, so it is at least a somewhat oldish bug.
The current issue title is vague because I haven't looked into what's actually happening yet. And I haven't yet assessed the security implications, either, but one can start imagining worrisome corner cases.
CC @rsc @cherrymui @ianlancetaylor @aclements

This seems to have come from this gcc test:
/* The FR-V port used to fail this test because the andcc patterns
   wrongly claimed to set the C and V flags.  */
#include <limits.h>
int x[4] = { INT_MIN / 2, INT_MAX, 2, 4 };
int
main ()
{
  if (x[0] < x[1])
    if ((x[2] & x[3]) < 0)
      abort ();
  exit (0);
}

Here's a simpler example:
package main

var x = [4]int32{-0x7fffffff, 0x7fffffff, 2, 4}

func main() {
        if x[0] > x[1] {
                panic("fail 1")
        }
        if x[2]&x[3] < 0 {
                panic("fail 2")
        }
}

It looks like the basic issue is that the first comparison uses CMP, which sets the V condition flag, and then the second comparison calls TST, which ands the results and updates N and Z, but not V, and then uses BLT, which checks N!=V. Since the TST did not update V, that BLT winds up using the value of V set by the previous CMP.

I've never looked at this compiler before, so excuse the noise if this is way off, but:
src/cmd/compile/internal/ssa/gen/ARM.rules:
(LT (CMPconst [0] l:(AND x y)) yes no) && l.Uses==1 => (LT (TST x y) yes no)

I've contacted the origin auther @benshi001 about this.
I'm testing other comparsion like LT,LE,GT,GE and I will upload fix soon.

So, I "fixed" it:
diff --git a/src/cmd/compile/internal/ssa/gen/ARM.rules b/src/cmd/compile/internal/ssa/gen/ARM.rules
index 946acd4ccc..61a410dad3 100644
--- a/src/cmd/compile/internal/ssa/gen/ARM.rules
+++ b/src/cmd/compile/internal/ssa/gen/ARM.rules
@@ -1369,7 +1369,6 @@
 (LE (CMPconst [0] l:(ADDshiftLLreg x y z)) yes no) && l.Uses==1 => (LEnoov (CMNshiftLLreg x y z) yes no)
 (LE (CMPconst [0] l:(ADDshiftRLreg x y z)) yes no) && l.Uses==1 => (LEnoov (CMNshiftRLreg x y z) yes no)
 (LE (CMPconst [0] l:(ADDshiftRAreg x y z)) yes no) && l.Uses==1 => (LEnoov (CMNshiftRAreg x y z) yes no)
-(LT (CMPconst [0] l:(AND x y)) yes no) && l.Uses==1 => (LT (TST x y) yes no)
 (LT (CMPconst [0] l:(ANDconst [c] x)) yes no) && l.Uses==1 => (LT (TSTconst [c] x) yes no)
 (LT (CMPconst [0] l:(ANDshiftLL x y [c])) yes no) && l.Uses==1 => (LT (TSTshiftLL x y [c]) yes no)
 (LT (CMPconst [0] l:(ANDshiftRL x y [c])) yes no) && l.Uses==1 => (LT (TSTshiftRL x y [c]) yes no)
diff --git a/src/cmd/compile/internal/ssa/rewriteARM.go b/src/cmd/compile/internal/ssa/rewriteARM.go
index 47fd0a94cc..bca648e9ad 100644
--- a/src/cmd/compile/internal/ssa/rewriteARM.go
+++ b/src/cmd/compile/internal/ssa/rewriteARM.go
@@ -20226,34 +20226,6 @@ func rewriteBlockARM(b *Block) bool {
 			b.resetWithControl(BlockARMLTnoov, v0)
 			return true
 		}
-		// match: (LT (CMPconst [0] l:(AND x y)) yes no)
-		// cond: l.Uses==1
-		// result: (LT (TST x y) yes no)
-		for b.Controls[0].Op == OpARMCMPconst {
-			v_0 := b.Controls[0]
-			if auxIntToInt32(v_0.AuxInt) != 0 {
-				break
-			}
-			l := v_0.Args[0]
-			if l.Op != OpARMAND {
-				break
-			}
-			_ = l.Args[1]
-			l_0 := l.Args[0]
-			l_1 := l.Args[1]
-			for _i0 := 0; _i0 <= 1; _i0, l_0, l_1 = _i0+1, l_1, l_0 {
-				x := l_0
-				y := l_1
-				if !(l.Uses == 1) {
-					continue
-				}
-				v0 := b.NewValue0(v_0.Pos, OpARMTST, types.TypeFlags)
-				v0.AddArg2(x, y)
-				b.resetWithControl(BlockARMLT, v0)
-				return true
-			}
-			break
-		}
 		// match: (LT (CMPconst [0] l:(ANDconst [c] x)) yes no)
 		// cond: l.Uses==1
 		// result: (LT (TSTconst [c] x) yes no)

This is obviously an incomplete fix, but it does generate code that actually works (for that one case):
Before my fix:
TST             R0, R1
BLT             loc_6C164

After my fix:
AND             R0, R0, R1
CMP             R0, #0
BLT             loc_6C168

Basically, the bug is that the original replacement rules assumed that TST set V, but TST does not set V, so CMP might be a better fit.
So, the cudgel fix might be just deleting all those errant replacement rules.

I've contacted the origin auther @benshi001 about this.
I'm testing other comparsion like LT,LE,GT,GE and I will upload fix soon.

I think I've got something working and posted on Gerrit already, but I'd appreciate your review and comments you might have. Feel free to jump in: https://golang.org/cl/274026

@gopherbot please backport this because compiler bugs in bitmath seem worrisome

Sorry for the delay, I was working on other project. you've submit the CL, which LGTM.
However this SSA optimazation can be apply to uint since arm32 TST only change Z flag as far as I know.

@zx2c4 , would you mind preparing backport CLs for 1.15 and 1.14?

@zx2c4 , would you mind preparing backport CLs for 1.15 and 1.14?

I can backport it. But...
I had started doing that before because I initially thought it was a very worrying bug. Indeed it smells Very Very Bad. What if crypto code hits this! What about security code! What if!!
So I added a line to the compiler to panic if it ever got to generating the bad code, and then scripted walking through github and building all of the go code I could find, sorted by repo popularity. I let this run for a few hours and... nothing triggered it.
Maybe it's not as big of a deal as previously thought, then?

I can backport it. But...
I had started doing that before because I initially thought it was a very worrying bug. Indeed it smells Very Very Bad. What if crypto code hits this! What about security code! What if!!
So I added a line to the compiler to panic if it ever got to generating the bad code, and then scripted walking through github and building all of the go code I could find, sorted by repo popularity. I let this run for a few hours and... nothing triggered it.
Maybe it's not as big of a deal as previously thought, then?

@zx2c4, would you mind preparing a backport CLs for 1.14?


Gravitation Suite

Hi, there is a useful Gravitation Suite mod, but there are many bugs in it due to the fact that it has not been updated for a long time. Can you fix this?

If you put the advanced diamond drill in the miner, the server crashes
When using the advanced diamond drill, the server sometimes crashes link 1, link 2
Current crash log - crash-2021-07-04_14.10.09-server.txt
Advanced diamond drill can not mine sand, gravel and dirt (Blocks become invisible, you need to re-enter the game)
Ultimate Lappack has the wrong crafting recipe
Gravity Chestpiece does not protect against radiation link 1, link 2

Should be fairly easy to fix, but I'll rather put it into a separate project


[PATTERN] Add a Binary number pattern in Python, Pattern40

Description
Task
for the given input n the following pattern should print (n=5 for the below pattern)
Pattern Image

Filename
Pattern40.py

@Vishal21121 done


IMPORTANT: Results API is ignoring the outputId

Each of the following (which involve different outputIds) return the same data:

https://run.api.biosimulations.dev/results/60dcfd6af14a8929e410e130/simulation_1.sedml%2FFigure_3a?includeData=false
https://run.api.biosimulations.dev/results/60dcfd6af14a8929e410e130/simulation_1.sedml%2FFigure_3b?includeData=false
https://run.api.biosimulations.dev/results/60dcfd6af14a8929e410e130/simulation_1.sedml%2FFigure_3c?includeData=false
https://run.api.biosimulations.dev/results/60dcfd6af14a8929e410e130/simulation_1.sedml%2FFigure_3d?includeData=false

:tada: This issue has been resolved in version 2.5.2 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


SDL3::SDL3-static (for Static SDL 3 compilation)

I am compiling against a static SDL3, and struggling to find the correct configuration to enable static SDL3 compilation with SDL_ttf.
Neither of these work:
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DSDL3TTF_VENDORED=ON -DSDL3TTF_HARFBUZZ=ON -DCMAKE_PREFIX_PATH={redacted} -DSDL3TTF_SAMPLES=OFF -DBUILD_SHARED_LIBS=OFF ..

cmake -DCMAKE_PREFIX_PATH={redacted} -DSDL3IMAGE_SAMPLES=OFF -DBUILD_SHARED_LIBS=OFF ..

I get the following error:
-- Configuring SDL3_ttf 3.0.0
-- SDL3_ttf: Using vendored harfbuzz library
WARNHarfBuzz has a Meson port and tries to migrate all the other build systems to it, please consider using it as we might remove our cmake port soon.
-- SDL3_ttf: Using vendored freetype library
-- Configuring done
CMake Error at CMakeLists.txt:123 (target_link_libraries):
  Target "SDL3_ttf" links to:

    SDL3::SDL3-static

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.

-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.

SDL3 was configured with the default CMake flags.
We have overriding issues that prevent us from dynamically linking on this system.
Any ideas how how to configure SDL_image to use a static SDL3?

SDL3 was configured with the default CMake flags.

By default, SDL3 will only build a shared SDL3 library.
You need to configure SDL3 with -DSDL_STATIC=ON for having a static library too.

Bingo! Thank you! That worked!


Add Masky module

Hey!
I added a module that implements an alternative way of dumping NT hashes based on an ADCS via Masky (see. https://github.com/Z4kSec/Masky - v0.1.1).
This module requires the mandatory "CA" parameter that could be easily retireved from the existing "adcs" cme module. Both "TEMPLATE" and "DC_IP" arguments can be optionally provided.
Masky module could by used as following:

Let me know if you have bugs or if I need to apply some changes! ;)


inplace_bn build failed

/data00/kangyang/virtualenv3.6/lib/python3.6/site-packages/torch/utils/cpp_extension.py:118: UserWarning:
                           !! WARNING !!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Your compiler (c++) may be ABI-incompatible with PyTorch!
Please use a compiler that is ABI-compatible with GCC 4.9 and above.
See https://gcc.gnu.org/onlinedocs/libstdc++/manual/abi.html.
See https://gist.github.com/goldsborough/d466f43e8ffc948ff92de7486c5216d6
for instructions on how to install GCC 4.9 or higher.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
                          !! WARNING !!

warnings.warn(ABI_INCOMPATIBILITY_WARNING.format(compiler))
Traceback (most recent call last):
File "/data00/kangyang/virtualenv3.6/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 759, in _build_extension_module
['ninja', '-v'], stderr=subprocess.STDOUT, cwd=build_directory)
File "/data00/kangyang/python3.6/lib/python3.6/subprocess.py", line 336, in check_output
**kwargs).stdout
File "/data00/kangyang/python3.6/lib/python3.6/subprocess.py", line 418, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "train.py", line 27, in
from network import get_segmentation_model
File "/data00/kangyang/segmentation/OCNet/network/init.py", line 1, in
from .resnet101_baseline import get_resnet101_baseline
File "/data00/kangyang/segmentation/OCNet/network/resnet101_baseline.py", line 27, in
from resnet_block import conv3x3, Bottleneck
File "/data00/kangyang/segmentation/OCNet/network/../utils/resnet_block.py", line 19, in
from bn import InPlaceABNSync
File "/data00/kangyang/segmentation/OCNet/utils/../inplace_abn/bn.py", line 14, in
from functions import *
File "/data00/kangyang/segmentation/OCNet/utils/../inplace_abn/functions.py", line 16, in
extra_cuda_cflags=["--expt-extended-lambda"])
File "/data00/kangyang/virtualenv3.6/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 514, in load
with_cuda=with_cuda)
File "/data00/kangyang/virtualenv3.6/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 682, in _jit_compile
_build_extension_module(name, build_directory)
File "/data00/kangyang/virtualenv3.6/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 765, in _build_extension_module
name, error.output.decode()))
RuntimeError: Error building extension 'inplace_abn': [1/4] /usr/local/cuda/bin/nvcc -DTORCH_EXTENSION_NAME=inplace_abn -I/data00/kangyang/virtualenv3.6/lib/python3.6/site-packages/torch/lib/include -I/data00/kangyang/virtualenv3.6/lib/python3.6/site-packages/torch/lib/include/TH -I/data00/kangyang/virtualenv3.6/lib/python3.6/site-packages/torch/lib/include/THC -I/usr/local/cuda/include -I/data00/kangyang/virtualenv3.6/include/python3.6m -D_GLIBCXX_USE_CXX11_ABI=0 --compiler-options '-fPIC' --expt-extended-lambda -std=c++11 -c /data00/kangyang/segmentation/OCNet/inplace_abn/src/inplace_abn_cuda.cu -o inplace_abn_cuda.cuda.o
FAILED: inplace_abn_cuda.cuda.o
/usr/local/cuda/bin/nvcc -DTORCH_EXTENSION_NAME=inplace_abn -I/data00/kangyang/virtualenv3.6/lib/python3.6/site-packages/torch/lib/include -I/data00/kangyang/virtualenv3.6/lib/python3.6/site-packages/torch/lib/include/TH -I/data00/kangyang/virtualenv3.6/lib/python3.6/site-packages/torch/lib/include/THC -I/usr/local/cuda/include -I/data00/kangyang/virtualenv3.6/include/python3.6m -D_GLIBCXX_USE_CXX11_ABI=0 --compiler-options '-fPIC' --expt-extended-lambda -std=c++11 -c /data00/kangyang/segmentation/OCNet/inplace_abn/src/inplace_abn_cuda.cu -o inplace_abn_cuda.cuda.o
/data00/kangyang/virtualenv3.6/lib/python3.6/site-packages/torch/lib/include/ATen/Half-inl.h(17): error: identifier "__half_as_short" is undefined
1 error detected in the compilation of "/tmp/tmpxft_00011718_00000000-7_inplace_abn_cuda.cpp1.ii".
[2/4] c++ -MMD -MF inplace_abn_cpu.o.d -DTORCH_EXTENSION_NAME=inplace_abn -I/data00/kangyang/virtualenv3.6/lib/python3.6/site-packages/torch/lib/include -I/data00/kangyang/virtualenv3.6/lib/python3.6/site-packages/torch/lib/include/TH -I/data00/kangyang/virtualenv3.6/lib/python3.6/site-packages/torch/lib/include/THC -I/usr/local/cuda/include -I/data00/kangyang/virtualenv3.6/include/python3.6m -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++11 -O3 -c /data00/kangyang/segmentation/OCNet/inplace_abn/src/inplace_abn_cpu.cpp -o inplace_abn_cpu.o
/data00/kangyang/segmentation/OCNet/inplace_abn/src/inplace_abn_cpu.cpp: In function ‘std::vectorat::Tensor backward_cpu(at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, bool, float)’:
/data00/kangyang/segmentation/OCNet/inplace_abn/src/inplace_abn_cpu.cpp:82:41: warning: ‘at::Tensor at::empty(const at::Type&, at::IntList)’ is deprecated (declared at /data00/kangyang/virtualenv3.6/lib/python3.6/site-packages/torch/lib/include/ATen/Functions.h:3521) [-Wdeprecated-declarations]
auto dweight = at::empty(z.type(), {0});
^
/data00/kangyang/segmentation/OCNet/inplace_abn/src/inplace_abn_cpu.cpp:83:39: warning: ‘at::Tensor at::empty(const at::Type&, at::IntList)’ is deprecated (declared at /data00/kangyang/virtualenv3.6/lib/python3.6/site-packages/torch/lib/include/ATen/Functions.h:3521) [-Wdeprecated-declarations]
auto dbias = at::empty(z.type(), {0});
^
[3/4] c++ -MMD -MF inplace_abn.o.d -DTORCH_EXTENSION_NAME=inplace_abn -I/data00/kangyang/virtualenv3.6/lib/python3.6/site-packages/torch/lib/include -I/data00/kangyang/virtualenv3.6/lib/python3.6/site-packages/torch/lib/include/TH -I/data00/kangyang/virtualenv3.6/lib/python3.6/site-packages/torch/lib/include/THC -I/usr/local/cuda/include -I/data00/kangyang/virtualenv3.6/include/python3.6m -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++11 -O3 -c /data00/kangyang/segmentation/OCNet/inplace_abn/src/inplace_abn.cpp -o inplace_abn.o
ninja: build stopped: subcommand failed.
Could you help me with this error? What's your CUDA Version and gcc version. I use cuda8.0 and gcc 4.9.2

Please use pytorch0.4.1.
There is no need to build the inplace-abn. Besides, please open the issue related to inplace-abn in the source repo(https://github.com/mapillary/inplace_abn) instead of here.

@PkuRainBow  My pytorch is 0.4.1. I run this script ./run_resnet101_asp_oc.sh and I get this error.

I don't find the this script run_asp_oc.sh

@

@KeyKy I have tested 2 images with a single GPU and succeeded.

@PkuRainBow 谢谢 我有4块1080 Ti的GPU，只能每张卡跑batch_size=1的，总共batch_size=4。最后我在验证集上的指标是：
{'meanIU': 0.7837545863719357, 'IU_array': array([0.98047586, 0.84426419, 0.92612712, 0.63912455, 0.62647073,0.6292012 , 0.69047148, 0.78069628, 0.9247761 , 0.65401277,0.94481553, 0.81283084, 0.63479937, 0.94911405, 0.81046328,0.86166291, 0.75384313, 0.66243928, 0.76574848])}

所以说我应该要4张P100 16G的显存才能完全复现你的效果吗？还有其他办法吗，因为我没那么好的机器

@KeyKy Batch size很重要，batch size=8可以保证复现结果的。

@PkuRainBow 我发现https://github.com/zhuangyqin/DRN 这个貌似在leaderboard上有82.8的IOU classes。

@KeyKy Please use English for the discussion.
Besides, the huge memory cost is one of the main drawback of the self-attention method.
We are trying to propose better method to reduce the memory cost largely while maintaining the performance.

@PkuRainBow self-attention also increase the whole amount of computation. Maybe I can reduce these computation of self-attention and put these by increasing Convolution operations into backbone network. I also can get the same performance.

@KeyKy I do not agree with you.

@PkuRainBow 我找了4块V100，跑了一个batch-size=8的实验，./run_resnet101_asp_oc.sh 最终test集上的结果是：
IoU Classes | 77.232
iIoU Classes | 54.5597
IoU Categories | 90.129
iIoU Categories | 77.602
是不是要用OHEM继续提点？我就只训练gtFineTrain，没有吧gtFineVal加入训练。
看了你的论文指标，
Method train mIoU(%) val mIoU(%)
ResNet101+ASP-OC 85.720 79.580
我试了下我的是：
ResNet101+ASP-OC 85.7 78.380

Hi, your results seems not as good as the number reported in the paper.
What is the version of the pytorch? Besides, you are expected to achieve ~79.5 on the validation set without OHEM.

@PkuRainBow The second run
{'meanIU': 0.7872904663594398, 'IU_array': array([0.98359365, 0.86381204, 0.9273207 , 0.55040593, 0.63191286, 0.65154667, 0.7169406 , 0.80020197, 0.92748692, 0.67367246, 0.95001835, 0.82902815, 0.66007207, 0.95481035, 0.80353403,0.85126102, 0.73285753, 0.66668435, 0.78335922])}

@KeyKy Great!
I believe you could achieve much better performance with the OHEM! I also recommend you to run the experiments for more than 2 times to ensure one performance is good.


Add new Polly HTTP dependency

Polly is adding some new APIs for our scenarios that are specific to
HttpClient.

/cc @natemcmaster  - is the process for merging to dev similar from universe?

Yes, you should be able to merge release/2.1 of universe back into dev. If you are unsure how to resolve any merge conflicts, let me know.
cc @Eilon for OSS approval (if you haven't already)

I've already emailed @Eilon offline! Thanks!


As a blockchain engineer I need to implement a did registry for ancon

Needs to be named did:ancon_method

this is done, need testing, will assign to me

tests done


docs: Update/fix the recommended way of running the database

The documentation about running a database for development was still
using the container built by CoreRoller (and with the name updated to
Nebraska by mistake).
Instead of relying on a dedicated container for the database, we should
just provide the instructions to quickly set it up for Nebraska. So
these changes replace the mentioned legacy instructions this way.

Looks good to me modulo comment.
I would rather put that paragraph into the README (or a new e.g. docs/developer.md document), but we can do that later.

Yup, let's do that later.


I want to ask something about grade.

I would like to ask how the performance of your large model was achieved. Was it done using a specific algorithm, and is there any related paper on this?
If I want to use your pipeline but modify some of the data in the dataset to prevent the model from training on this specific data, how should I proceed?
Thanks for your remarkable job. I love it!

MMLU-Pro is a benchmark for evaluating language models' capabilities. Welcome to read our paper to learn more at https://arxiv.org/abs/2406.01574


Doesn't set nice(2) value

I was kind of expecting this crate on UNIX to call nice(2) in order to mark the thread as lower priority, but it doesn't. At least on Linux so far it seems I'm able to set the thread policy to Batch and that worked successfully, but Linux doesn't seem to do anything at all with the priority value; that's more for the realtime/deadline schedulers.
Am I looking for the wrong thing? I ended up just calling libc::nice() in my application.

Hi @devyn! Thanks for a good question.
Seems like something I should consider working on here

Just indicating that it is still in progress.

Done in https://github.com/vityafx/thread-priority/pull/22
Please test it if you still use the crate.


Why is verification page so slow for checking/unchecking Aggregate option?

It's just slow to load the page as a whole. Checking/unchecking Aggregate option forces the page to reload, which is why it is so slow.

Closed with 4fd04fad1543c7f16a216250db8c9d494f7418d6.


label styles are too generic

In my opinion the "label" selector is too generic. With complex objects as inputs - having their own labels and stuff - we constantly have to override the "float", "width" and "text-align" properties.
Let's consider the following HTML code, and please note the new "field" class:
<form>
    <fieldset>

            Firstname

<input type="text" name="firstname" />

    </fieldset>
</form>

Because the "label" selector is only used to style fields' label of non stacked forms we could use the following selector instead:
form:not(.stacked) div.field > label {
...
}

Because I could leave with having to override the selector's properties for stacked forms, the following selector would be nice too:
div.field > label {
...
}

And if nobody wants the "field" class we could have:
fieldset > div > label {
...
}

What do you think ?

@JakeWharton That should be possible no matter what we do with the new form styles, no? Just build your form with rows and columns in the right order.
I encourage everyone to checkout the new options in 2.0-wip and let us know what you think.

Closing this out. Will continue to jam on the new forms in 2.0-wip.


fix(favicon): replace file

What kind of change does this PR introduce?
Replace favicon to Supabase icon
What is the current behavior?
Issue #21
What is the new behavior?
Supabase icon

@enBonnet This is the old supabase favicon.

Ah sorry @enBonnet - I already merged @Isaiah-Hamilton's PR


Filter resources based on visibilities (only for platform)

Pull Request Template
Motivation
K8S proxies should be able to list only brokers, services and plans that are visible for them.
Approach
Add filter for each resource based on the requesting platform's visibilities.

Get all visibilities for the platform including empty platform visibilities(public).
Get all plans filtered by the visibilities from 1)
Get all services filtered by the plans from 2)
Get all brokers filtered by the services from 3)

Pull Request status

[x] Initial implementation
[x] Component tests

Coverage decreased (-0.1%) to 89.186% when pulling<PHONE_NUMBER>4402fdef8daa8ce53bb714163d91b2 on visibility_filtering into f30dcbab8d41a9802148b408bb863e5ff2ee944b on master.


nix-build, ob deploy runs out of space

Hi, I'm trying to deploy obelisk and I've run into an out of space error. I've tracked it down to when nix-build happens and I can reproduce it with
 nix-build -A exe --no-out-link --show-trace
building '/nix/store/b6xjzaabl82ycajh0142fd7rfm0cl2h6-obelisk-generated-static-0-js-unknown-ghcjs.drv'...

error: while evaluating the attribute 'buildCommand' of the derivation 'serverExe' at /nix/store/bblbjmnzbzfib5q0r7xbk1c920bsabbw-source/pkgs/build-support/trivial-builders.nix:7:14:
while evaluating the attribute 'args' of the derivation 'toPath' at /nix/store/fk1pqfl3qv5r5jaf0lq1xzxnlzj13b2q-source/lib/asset/assets.nix:178:7:
while evaluating the attribute 'builder' at /nix/store/fk1pqfl3qv5r5jaf0lq1xzxnlzj13b2q-source/lib/asset/assets.nix:182:7:
while evaluating 'pairsToBashArray' at /nix/store/fk1pqfl3qv5r5jaf0lq1xzxnlzj13b2q-source/lib/asset/assets.nix:173:26, called from /nix/store/fk1pqfl3qv5r5jaf0lq1xzxnlzj13b2q-source/lib/asset/assets.nix:174:15:
while evaluating 'mapSnds' at /nix/store/fk1pqfl3qv5r5jaf0lq1xzxnlzj13b2q-source/lib/asset/assets.nix:95:14, called from /nix/store/fk1pqfl3qv5r5jaf0lq1xzxnlzj13b2q-source/lib/asset/assets.nix:174:33:
while evaluating 'zipListsWith' at /nix/store/bblbjmnzbzfib5q0r7xbk1c920bsabbw-source/lib/lists.nix:369:5, called from /nix/store/fk1pqfl3qv5r5jaf0lq1xzxnlzj13b2q-source/lib/asset/assets.nix:95:17:
while evaluating 'min' at /nix/store/bblbjmnzbzfib5q0r7xbk1c920bsabbw-source/lib/trivial.nix:175:12, called from /nix/store/bblbjmnzbzfib5q0r7xbk1c920bsabbw-source/lib/lists.nix:371:45:
while evaluating 'mapAttrsToList' at /nix/store/bblbjmnzbzfib5q0r7xbk1c920bsabbw-source/lib/attrsets.nix:233:23, called from /nix/store/fk1pqfl3qv5r5jaf0lq1xzxnlzj13b2q-source/lib/asset/assets.nix:174:65:
while evaluating 'unionMapFilesWithName' at /nix/store/fk1pqfl3qv5r5jaf0lq1xzxnlzj13b2q-source/lib/asset/assets.nix:129:28, called from /nix/store/fk1pqfl3qv5r5jaf0lq1xzxnlzj13b2q-source/lib/asset/assets.nix:268:41:
while evaluating 'mapAttrsToList' at /nix/store/bblbjmnzbzfib5q0r7xbk1c920bsabbw-source/lib/attrsets.nix:233:23, called from /nix/store/fk1pqfl3qv5r5jaf0lq1xzxnlzj13b2q-source/lib/asset/assets.nix:140:58:
while evaluating 'readDirRecursive' at /nix/store/fk1pqfl3qv5r5jaf0lq1xzxnlzj13b2q-source/lib/asset/assets.nix:145:20, called from /nix/store/fk1pqfl3qv5r5jaf0lq1xzxnlzj13b2q-source/lib/asset/assets.nix:268:84:
while evaluating 'filterAttrs' at /nix/store/bblbjmnzbzfib5q0r7xbk1c920bsabbw-source/lib/attrsets.nix:124:23, called from /nix/store/fk1pqfl3qv5r5jaf0lq1xzxnlzj13b2q-source/lib/asset/assets.nix:146:11:
writing to file: No space left on device

The static folder just contains a few files, no sub directories and none of them are sim-links. So I don't know what is wrong.

I encounter this issue as well. You can try revering version back to 11beb6e8cd2419b2429925b76a98f24035e40985 to workaround this issue (even though it works for me, I can't tell if this revision is fine or simply because I have certain binary cache).
You can do this by modifying .obelisk/impl/github.json to
{
  "owner": "obsidiansystems",
  "repo": "obelisk",
  "branch": "master",
  "private": false,
  "rev": "11beb6e8cd2419b2429925b76a98f24035e40985",
  "sha256": "0b4m33b7yyzsbkvfz2kwg4v9hlnvbjlmjikbvwd7pg52vy84and0"
}

Not sure if related:
I just got "no space left on device" when trying to deploy to an aws ec2 instance (building locally via nix-build works fine). I had this before. I ssh'd into the instance and ran nix-collect-garbage -d, which deleted 4.8 GB of data. This alone seems excessive -- no clue why my project would need so much ever. Also, this garbage collection could be an automated part of deployment, or even more: when I deploy, I don't rely on any data that is still stored on the instance - it just should be wiped.


Enhancement: add support for Picologging

Picologging is a new library that looks very promising, it would be great to extend support for it: https://github.com/microsoft/picologging.
Ideally we would have a logging config for Picologging like we have for the standard lib.
Of course, Picologging should be an optional dependency or a dev dependency only that throws an MissingDependencyException if not present (see other occurances of MissingDependencyException in Starliite as an example).

Probably would be a good idea to combine it with Structlog.
Here's how I did Stdlib + Structlog (with some SQLAlchemy stuff - just ignore), we can just replace stdlib with picologging and everything should work: https://gist.github.com/MrAwesomeRocks/42645651849bb36b84429d219989dbcb

All of the test cases currently pass, but I wanted to do some additional checks.
Picologging doesn't have a dictConfig, so I had to use the existing logging dictConfig.  I'll leave it as a draft until we've done some more testing, and I'll take a look at Structlog.

Picologging doesn't have a dictConfig
Already opened an issue: microsoft/picologging#53

Thanks for opening that. I'm watching the issue and we'll update this integration as soon as it's available.  I'll release the integration in its current form later today so that we can begin to use it now.


Restructure project

Use angular-cli to create structure for libraries

[ ] core
[ ] column-settings

:tada: This issue has been resolved in version 5.0.0-rc.1 :tada:
The release is available on:

npm package (@rc dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This issue has been resolved in version 5.0.0-rc.1 :tada:
The release is available on:

npm package (@rc dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


feat: prop instance yields theorems

Adds a feature to the the mutual def elaborator where the instance command yields theorems instead of definitions when the class is a Prop.
Closes #5672

@Kha The way I got this to work was by adding an extra DefKind for instances that's basically the same as for defs, but when the declaration is finally added to the environment, it checks to see if the type is a Prop to decide whether to use a theorem or a definition.
Instances then follow def variable inclusion rules instead of theorem. I had thought about modifying header processing to see whether the type is a prop and change the kind to def or theorem at that moment, to get theorem inclusion rules, but then if you omit the type it would use def inclusion rules. That seems confusing.


Please merge revision 735e5a3eb4a5028eac3399679b3dcd51360d97c6 into stable channel

@ricowind @whesse @kasperl
This fixes a crash in the WebSocket code caused by closing a socket after its stream subscription has been canceled
Please merge 735e5a3eb4a5028eac3399679b3dcd51360d97c6.
This merged cleanly.

This was merged in version 1.11.2, released in 1.11.3.


New backend endpoints

@chmille4 this is the changes for using bam with the gru backend. It's been running in production for a couple months but I forgot I never merged it. Also I think we should change the primary branch of this repo to vue, instead of gh-pages. Or maybe merge vue into master and change it to master.

There are a few other little changes in there as well.

Ok, I just updated the default branch to vue. Should probably make the vue branch master, but I'm not sure if a simple merge would work given how far they've diverged. Should probably overwrite the master branch with the vue branch.


[UDropdown] Detect selected item from v-model

Description
To be able to react on selected dropdown item I would like to bind ref to v-model
const cards = user.profile.value?.pages.map((pageInfo: PageInfoDTO) => {
  return [{ count: pageInfo.parameters.quantity, label: pageInfo.title, to: `${Routes.CABINET.path}/${pageInfo.id}` }];
});
const selectedPage = ref(0);
const selectedLabel = computed(() => cards[selectedPage.value][0].label || 'Options');

<UDropdown :items="cards" :popper="{ placement: 'bottom-start' }" v-model="selectedPage">
  <UButton :label="selectedLabel" color="white" trailing-icon="i-heroicons-chevron-down-20-solid" />
</UDropdown>
<NuxtPage class="h-full" />

But v-model does not working.

https://ui.nuxt.com/forms/select-menu#default - mb?

@aloky already using it in another place, but there I need different dropdown to distinguish the functionality. For now I decided to just exclude selected value from the list and use that excluded item tile in the button like so:

This would be pretty useful considering that mapping the data inside of useFetch using transform doesn't work because it cant serialize a function for manually configure the click function.
const id = ref('')
const { data } = await useFetch('/api/teams', {
  key: 'teams',
  transform: ((teams) => {
    return teams.map((userToTeam) => ({
      id: userToTeam.team.id,
      avatar: { src: userToTeam.team.avatar },
      label: userToTeam.team.name,
      click: () => team.value = userToTeam.id
    }))
  })
})

Having this would eliminate the jank for computing the map with the function in it.

We won't implement this in the current version. Closing in favor of nuxt/ui#2144.


Update .travis.yml to remove 1.8.7 and REE

See #58

Codecov Report

Merging #61 (392222c) into master (4300547) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##            master       #61   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            6         6
  Lines           83        83
=========================================
  Hits            83        83

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 4300547...392222c. Read the comment docs.

Codecov Report

Merging #61 (392222c) into master (4300547) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##            master       #61   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            6         6
  Lines           83        83
=========================================
  Hits            83        83

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 4300547...392222c. Read the comment docs.


Sameer/passport holder minter

Purpose
Create Minters for passport holders and friends and family discount

updated with main to fix Github Actions failures 🧪


how can i get the element style?```

because i need the style to get the element's width / height / transform / color etc..``
help me`

Hi @cutemurphy2022, Hope you doing well.
Thank you for reaching me out. Once you process your HTML through the HTMLParser method, as described in the documentation, you will get a result similar to this along with attributes, including the style.

{
  "type": "div",
  "content": [
    {
      "type": "ul",
      "content": [
        {
          "type": "li",
          "content": [
            "Hello ",
            {
              "type": "strong",
              "content": [
                "World"
              ]
            }
          ]
        }
      ]
    }
  ],
  "attributes": {
    "style": "font-size: 20px; width: 80%; margin: auto"
  }
}

You can also parse the style string by creating a function in the following way to create an object with properties and their values of the CSS:
const parseStyle = (styleString) => {
  var styleObject = {};
  var styleProperties = styleString.split(";");

  styleProperties.forEach(function(property) {
    var parts = property.split(":");
    var key = parts[0].trim();
    var value = parts[1].trim();

    styleObject[key] = value;
  });

  return styleObject;
}

const styleString = "font-size: 20px; width: 80%; margin: auto";

console.log(parseStyle(styleString));

This will output the following object:
{
  "font-size": "20px",
  "width": "80%",
  "margin": "auto"
}

u r a nice guy ` thank you ``
i have modify your code ``` because some style is not in the style `` maybe is render by the class
so i use the computedStyles to get the computed style ``
thank u  u do the good job :D