strixtpad

Ready to submit your project? Nice job! Hopefully you've read the submission guidelines. If not, make sure to read them first.
If you're unsure about the format, make sure to check out the Orpheuspad example and follow the format there.
If this PR isn't a submission, that's okay too! If there's anything about this PR template that seems confusing, let me know in #hackpad on the slack!

see those keys
my only concern is that when you have a keycap on there, I may hit the sides, but idk without the keycaps

Since you are okay with that, your CAD looks good. @Hyatt B.

Hey! Could you please split your case up into different parts for us to print? Also, I see screw holes. You should add screws to your BOM!

Hey there - it looks like there are a lot of unnecessary file modifications in this PR. Please could you create a new PR with only the specific files changed?


Unexpected-Response error

[drayton-wiser] Error during system update Error: unexpected-response     at WiserClient.fullStatus (/home/hoobs/.hoobs/node_modules/@string-bean/drayton-wiser-client/dist/WiserClient.js:62:15)     at runMicrotasks (<anonymous>)     at processTicksAndRejections (internal/process/task_queues.js:93:5)     at async WiserPlatformPlugin.updateSystem (/home/hoobs/.hoobs/node_modules/@string-bean/homebridge-drayton-wiser/dist/WiserPlatformPlugin.js:61:30)
HOOBS 3.3.2.
Let me know if I can provide any more information

Same issue here. For a while now this error appears.
First I thought that the secret key might have changed after software update on the Wiser, but that wasn't the case.
I then added the Wiser's IP address to the config to make sure it's not related to WiFi coverage.
[1/26/2021, 2:15:11 PM] [drayton-wiser] Error during system update Error: unexpected-error     at WiserClient.request (/usr/lib/node_modules/@string-bean/homebridge-drayton-wiser/node_modules/@string-bean/drayton-wiser-client/src/WiserClient.ts:340:13)     at WiserClient.fullStatus (/usr/lib/node_modules/@string-bean/homebridge-drayton-wiser/node_modules/@string-bean/drayton-wiser-client/src/WiserClient.ts:68:22)     at WiserPlatformPlugin.updateSystem (/usr/lib/node_modules/@string-bean/homebridge-drayton-wiser/src/WiserPlatformPlugin.ts:101:26) [1/26/2021, 5:37:11 PM] [drayton-wiser] Error during system update Error: unexpected-error     at WiserClient.request (/usr/lib/node_modules/@string-bean/homebridge-drayton-wiser/node_modules/@string-bean/drayton-wiser-client/src/WiserClient.ts:340:13)     at WiserClient.fullStatus (/usr/lib/node_modules/@string-bean/homebridge-drayton-wiser/node_modules/@string-bean/drayton-wiser-client/src/WiserClient.ts:68:22)     at WiserPlatformPlugin.updateSystem (/usr/lib/node_modules/@string-bean/homebridge-drayton-wiser/src/WiserPlatformPlugin.ts:101:26) [1/26/2021, 7:16:11 PM] [drayton-wiser] Error during system update Error: unexpected-error     at WiserClient.request (/usr/lib/node_modules/@string-bean/homebridge-drayton-wiser/node_modules/@string-bean/drayton-wiser-client/src/WiserClient.ts:340:13)     at WiserClient.fullStatus (/usr/lib/node_modules/@string-bean/homebridge-drayton-wiser/node_modules/@string-bean/drayton-wiser-client/src/WiserClient.ts:68:22)     at WiserPlatformPlugin.updateSystem (/usr/lib/node_modules/@string-bean/homebridge-drayton-wiser/src/WiserPlatformPlugin.ts:101:26) [1/26/2021, 7:43:11 PM] [drayton-wiser] Error during system update Error: unexpected-error     at WiserClient.request (/usr/lib/node_modules/@string-bean/homebridge-drayton-wiser/node_modules/@string-bean/drayton-wiser-client/src/WiserClient.ts:340:13)     at WiserClient.fullStatus (/usr/lib/node_modules/@string-bean/homebridge-drayton-wiser/node_modules/@string-bean/drayton-wiser-client/src/WiserClient.ts:68:22)     at WiserPlatformPlugin.updateSystem (/usr/lib/node_modules/@string-bean/homebridge-drayton-wiser/src/WiserPlatformPlugin.ts:101:26)

Same issue here. For a while now this error appears.
First I thought that the secret key might have changed after software update on the Wiser, but that wasn't the case.
I then added the Wiser's IP address to the config to make sure it's not related to WiFi coverage.
[1/26/2021, 2:15:11 PM] [drayton-wiser] Error during system update Error: unexpected-error     at WiserClient.request (/usr/lib/node_modules/@string-bean/homebridge-drayton-wiser/node_modules/@string-bean/drayton-wiser-client/src/WiserClient.ts:340:13)     at WiserClient.fullStatus (/usr/lib/node_modules/@string-bean/homebridge-drayton-wiser/node_modules/@string-bean/drayton-wiser-client/src/WiserClient.ts:68:22)     at WiserPlatformPlugin.updateSystem (/usr/lib/node_modules/@string-bean/homebridge-drayton-wiser/src/WiserPlatformPlugin.ts:101:26) [1/26/2021, 5:37:11 PM] [drayton-wiser] Error during system update Error: unexpected-error     at WiserClient.request (/usr/lib/node_modules/@string-bean/homebridge-drayton-wiser/node_modules/@string-bean/drayton-wiser-client/src/WiserClient.ts:340:13)     at WiserClient.fullStatus (/usr/lib/node_modules/@string-bean/homebridge-drayton-wiser/node_modules/@string-bean/drayton-wiser-client/src/WiserClient.ts:68:22)     at WiserPlatformPlugin.updateSystem (/usr/lib/node_modules/@string-bean/homebridge-drayton-wiser/src/WiserPlatformPlugin.ts:101:26) [1/26/2021, 7:16:11 PM] [drayton-wiser] Error during system update Error: unexpected-error     at WiserClient.request (/usr/lib/node_modules/@string-bean/homebridge-drayton-wiser/node_modules/@string-bean/drayton-wiser-client/src/WiserClient.ts:340:13)     at WiserClient.fullStatus (/usr/lib/node_modules/@string-bean/homebridge-drayton-wiser/node_modules/@string-bean/drayton-wiser-client/src/WiserClient.ts:68:22)     at WiserPlatformPlugin.updateSystem (/usr/lib/node_modules/@string-bean/homebridge-drayton-wiser/src/WiserPlatformPlugin.ts:101:26) [1/26/2021, 7:43:11 PM] [drayton-wiser] Error during system update Error: unexpected-error     at WiserClient.request (/usr/lib/node_modules/@string-bean/homebridge-drayton-wiser/node_modules/@string-bean/drayton-wiser-client/src/WiserClient.ts:340:13)     at WiserClient.fullStatus (/usr/lib/node_modules/@string-bean/homebridge-drayton-wiser/node_modules/@string-bean/drayton-wiser-client/src/WiserClient.ts:68:22)     at WiserPlatformPlugin.updateSystem (/usr/lib/node_modules/@string-bean/homebridge-drayton-wiser/src/WiserPlatformPlugin.ts:101:26)


dependency: update packages

Description
Update
Type of change
Please delete options that are not relevant.

[ ] Bug fix
[ ] New feature
[ ] Document
[ ] Test
[ ] CI/CD
[ ] Refactor
[x] Others

How has this been tested

[x] Unittest
[ ] Others:

Checklist:

[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] Let's make the world better✨😋🐍🌎

Codecov Report

Merging #48 (701b17f) into main (c0d12a2) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #48   +/-   ##
=======================================
  Coverage   95.48%   95.48%
=======================================
  Files          21       21
  Lines         620      620
  Branches       66       66
=======================================
  Hits          592      592
  Misses         19       19
  Partials        9        9

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more


Laravel 7 support

I also bumped the minimum illuminate/* version requirements to ^5.5 since that's what corresponds to the minimum PHP version requirement of ^7.1.3

@felixkiss please take a peek when you have a spare moment

@felixkiss 👋

@felixkiss What do you think about this?
Do we have alternatives?

@felixkiss What do we think about this?

Looks good. Do we need a new major release or can this be a minor version bump for the package?

@felixkiss A minor bump should be fine, there are no breaking changes in illuminate/* in version ^7 vs ^6, and the version that actually gets installed will be determined by the user's Laravel version

Released in 3.4.0

Perfect, thanks @felixkiss!


A theme toggle functionality

I wish to add a light/dark theme toggle to make the site look great. Also I will be adding my name to the names file.

@Oluwasetemi What do you think?. I made a pr #810  on this already. Thanks

merged!!


hardware model

can you, please, exclude model layer if such things appear? cuz i have a pc

What options for checking this case can you suggest?
Can be checked for the phrase "To Be Filled By O.E.M." ?

What options for checking this case can you suggest?
Can be checked for the phrase "To Be Filled By O.E.M." ?

yeah

Please check this commit, is it working properly for you now? 3d8c254

It would be better if model line won't show up at all

I mean if it's unknown

Sorry, I am feeling sick, so I can't update AUR package right now, I'll go sleep then update it in the morning

In one of the releases, I will definitely add a check for "unknown". For now, let it stay like this :)

Do not be ill, a speedy recovery for you!

Thanks! Farewell and good night

ok, i am here now and we can continue. there's no actual need in changing versioning after updates. please, roll back to 0.1.4
why no need? we already have a thing like pkgrel in AUR's PKGBUILD. change back to x.x.x versioning, delete these two releases and their respective version tags.  then create a new updated v0.1.4 release.

@KikyTokamuro

@q60 All is ready :)

done, i've updated AUR package


Selenium Error

Environment:

Ubuntu Server 22.04
Python 3.10.6
maaspower 0.7.0
Google Chrome 111.0.5563.146
Chromedriver 111.0.5563.64
openjdk 11.0.18 2023-01-17
OpenJDK Runtime Environment (build 11.0.18+10-post-Ubuntu-0ubuntu122.04)
OpenJDK 64-Bit Server VM (build 11.0.18+10-post-Ubuntu-0ubuntu122.04, mixed mode, sharing)

Looks like maaspower chokes while trying to start up on the line self.c_driver = webdriver.Chrome(self.driver, options=options) in web_ui.py. Any thoughts on how to go about debugging this?
$ sudo bin/maaspower run maaspower.cfg
Traceback (most recent call last):

  File "/home/apowers/maaspower/bin/maaspower", line 8, in <module>
    sys.exit(cli())

  File "/home/apowers/maaspower/lib/python3.10/site-packages/maaspower/__main__.py", line 64, in run
    maas_globals.maas_config = MaasConfig.deserialize(config_dict)

  File "/home/apowers/maaspower/lib/python3.10/site-packages/maaspower/maasconfig.py", line 139, in deserialize
    config: Any = deserialize(cls, d)

  File "/home/apowers/maaspower/lib/python3.10/site-packages/apischema/deserialization/__init__.py", line 887, in deserialize
    return deserialization_method(

  File "apischema/deserialization/methods.pyx", line 504, in apischema.deserialization.methods.ObjectMethod.deserialize

  File "apischema/deserialization/methods.pyx", line 505, in apischema.deserialization.methods.ObjectMethod.deserialize

  File "apischema/deserialization/methods.pyx", line 958, in apischema.deserialization.methods.ObjectMethod_deserialize

  File "apischema/deserialization/methods.pyx", line 1291, in apischema.deserialization.methods.DeserializationMethod_deserialize

  File "apischema/deserialization/methods.pyx", line 847, in apischema.deserialization.methods.ListMethod_deserialize

  File "apischema/deserialization/methods.pyx", line 1339, in apischema.deserialization.methods.DeserializationMethod_deserialize

  File "apischema/deserialization/methods.pyx", line 1189, in apischema.deserialization.methods.ConversionUnionMethod_deserialize

  File "apischema/deserialization/methods.pyx", line 1307, in apischema.deserialization.methods.DeserializationMethod_deserialize

  File "apischema/deserialization/methods.pyx", line 1078, in apischema.deserialization.methods.ObjectMethod_deserialize

  File "apischema/deserialization/methods.pyx", line 1348, in apischema.deserialization.methods.Constructor_construct

  File "apischema/deserialization/methods.pyx", line 1227, in apischema.deserialization.methods.RawConstructor_construct

  File "<string>", line 16, in __init__

  File "/home/apowers/maaspower/lib/python3.10/site-packages/maaspower/devices/web_ui.py", line 48, in __post_init__
    self.connect()

  File "/home/apowers/maaspower/lib/python3.10/site-packages/maaspower/devices/web_ui.py", line 56, in connect
    self.c_driver = webdriver.Chrome(self.driver, options=options)

  File "/home/apowers/maaspower/lib/python3.10/site-packages/selenium/webdriver/chrome/webdriver.py", line 80, in __init__
    super().__init__(

  File "/home/apowers/maaspower/lib/python3.10/site-packages/selenium/webdriver/chromium/webdriver.py", line 104, in __init__
    super().__init__(

  File "/home/apowers/maaspower/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 286, in __init__
    self.start_session(capabilities, browser_profile)

  File "/home/apowers/maaspower/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 378, in start_session
    response = self.execute(Command.NEW_SESSION, parameters)

  File "/home/apowers/maaspower/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 440, in execute
    self.error_handler.check_response(response)

  File "/home/apowers/maaspower/lib/python3.10/site-packages/selenium/webdriver/remote/errorhandler.py", line 245, in check_response
    raise exception_class(message, screen, stacktrace)

selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally.
  (unknown error: DevToolsActivePort file doesn't exist)
  (The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
Stacktrace:
#0 0x5630ddcb7243 <unknown>
#1 0x5630dda7b7a6 <unknown>
#2 0x5630ddaa4520 <unknown>
#3 0x5630ddaa049b <unknown>
#4 0x5630ddae22a7 <unknown>
#5 0x5630ddae18cf <unknown>
#6 0x5630ddad8e53 <unknown>
#7 0x5630ddaab9ea <unknown>
#8 0x5630ddaacb2e <unknown>
#9 0x5630ddd0bd5e <unknown>
#10 0x5630ddd0fa80 <unknown>
#11 0x5630ddcf18b0 <unknown>
#12 0x5630ddd10b63 <unknown>
#13 0x5630ddce2f75 <unknown>
#14 0x5630ddd33998 <unknown>
#15 0x5630ddd33b27 <unknown>
#16 0x5630ddd4ec23 <unknown>
#17 0x7f982e5c8b43 <unknown>

I'll have to fire this project up again on the weekend and see if I can reproduce this.
in the mean time does this help at all https://stackoverflow.com/questions/50642308/webdriverexception-unknown-error-devtoolsactiveport-file-doesnt-exist-while-t
One difference between your environ and mine is that I'm using Ubuntu workstation. I assume you can run Chrome OK standalone on your server ? or is it headless - if so that could be an issue.

Installed Ubuntu Desktop and started maaspower from the CLI -- looks like I'm up and running!
How can I buy you a pint?

That's great. This is because selenium is driving an actual chrome instance with hidden window, its not ideal but its the only way to configure many such switches that don't supply an API for configuration.
No need for a pint, I make FOSS because its fun (you could star the project if you feel so inclined :-) )


Feature Request: Continuous evaluation

Hi there,
this is a nice tool, very similar to @gpanders/ijq which I've been using so far. The main difference (and why I'll be continuing to use ijq for now) is that ijq continually evaluates the expression, not just on Enter. This allows iterating, playing and trying things faster.
Maybe this is something you'd consider having as well? If not as default mode then at least with a hotkey for switching?
Thanks for writing this tool! 🙂

Hey @grandchild. Appreciate the suggestion and think it's a great idea. I like the idea of a hotkey for switching also. When I get around to implementing this (hopefully soonish), would you mind giving it a test?

Of course, gladly :) Glad you like the idea.

Oh, this could also be a cmdline flag, so people could make an alias if they like continuous mode as default.


Feature Request: Auto-completion of Quick Reply variables

Variables used in quick reply templates could actually auto-complete rather than just act as highlighted markers for manual substitution.
Eg a {{recipient.firstname}} variable could where possible default to the first name of the email sender.
This feature is pretty widely available in other clients and web based systems (eg Postbox, Helpscout) and is something that I think you'd pretty much expect a template response system to provide now.
Because of the plugin possibilities in Nylas mail it should be possible to make this far more useful than in competing mail products, as once the base is in place it should also be easy for add-on developers to expose their own data sources (eg from CMS systems etc) to a template variable API.
PS I thought this issue already existed, however I can't find it - apologies if it's a dupe!

Agree!


dyld: Symbol not found: _NSURLSessionTaskPriorityDefault

When I install APP demo in iPhone6 ,iOS 8.3,I got this error and below is whole log
dyld: Symbol not found: _NSURLSessionTaskPriorityDefault
Referenced from: /private/var/mobile/Containers/Bundle/Application/*******
Expected in: /System/Library/Frameworks/Foundation.framework/Foundation
in /private/var/mobile/Containers/Bundle/Application/**********
(lldb)

I am not sure how did you try it, but you may need to link to CFNetwork manually.

I install Kingfisher by pod and it perfect work
I find the reason is that I copy files directly to project and I got these errors

Cool. In fact it seems to be a change in the linking system. Before the CFNetwork is auto linked if you refer to Foundation. But the behavior was changed in Xcode 7. See this https://github.com/onevcat/Kingfisher/pull/78 for more.


Memory Write implementation for AXAPI v21/v30

Functional memory write implementation for both AXAPI versions.  Ensures active and alternate shared partitions are written.

check

Requires https://github.com/a10networks/acos-client/pull/109 to be merged before it will pass.

check

Failure appears to be related to pulling outdated acos-client, restarting.

I was wrong.  There was a bug in acos-client.  acos-client PR https://github.com/a10networks/acos-client/pull/115 does a terrible job of dealing with this issue.
The problem is when the A10DeleteContext exists, it runs the "if we have no more LB elements, delete the partition" routine.  So when we go to activate the partition that we have stored as current partition_name`), it fails but the memory write command succeeds.

Local tests indicate this will pass CI once https://github.com/a10networks/acos-client/pull/115 is merged.

check

Failed due to not having latest acos-client in PyPi (my fault for not making sure that was the case before kicking off the job).

check

I'm gonna merge this, but I won't promise not to remove that nasty getattr() later.


build: install files on windows

This is to support my use case that, I build libuv together with my own project, using CMake ExternalProject.  Without an install step, the directory layout of the build tree is different with different generators; e.g. Visual Studio generators produces outputs in <BINARY_DIR>\{Debug,Release}, but Ninja generator, being an single-configuration one, produces outputs in <BINARY_DIR>.  Installing gives better control.
Btw. this cannot build on master directly, because #2112.

Apologies, this fell through the cracks. This looks good to merge at a glance but you probably want to target the v1.x branch, that's what we use for releases.

@bnoordhuis Updated my fork to target v1.x, shall I simply reopen this or open a new PR?

Reopening should work. For some reason I can't, so if you can't either feel free to open a new one.


Add default value DRAFT for DatasetStatus

As far as I know, the DatasetStatus default value is related to any information in the file path. It should be possibly to directly assign the enum value when we instantiate the model here: https://github.com/statisticsnorway/datadoc/blob/3fd4a322385bc7043d0d583263cd0a82895a23f2/src/datadoc/backend/datadoc_metadata.py#L176

@mmwinther
According to the coverage report on Sonar Cloud this pr has 100% coverage.
Is it necessary to add additional tests?


File not found and Incomplete Format Error

HI,
I am running bucket-stream in Debian 9 environment with Python 3.5.3 installed on system. The script is being run as a root on a test environment. Whenever I run the script, a file not found error is encountered for default.txt.
root@test:/home/bucketstream/bucket-stream# python3 bucket-stream.py --ignore-rate-limiting
It is highly recommended to enter AWS keys in config.yaml otherwise you will be severely rate limited!You might want to run with --ignore-rate-limiting
No AWS keys, reducing threads to 5 to help with rate limiting.
Traceback (most recent call last):
  File "bucket-stream.py", line 328, in <module>
    main()
  File "bucket-stream.py", line 300, in main
    .format(ARGS.threads, len([x for x in get_permutations("")])), "green")
  File "bucket-stream.py", line 241, in get_permutations
    perms.extend([line.strip() % domain for line in open(ARGS.permutations)])
FileNotFoundError: [Errno 2] No such file or directory: 'permutations\\default.txt'

If we explicitly specify the path of default.txt, then an incomplete format error is generated. Am I missing something or does the script requires a specific environment setup?
root@test:/home/bucketstream/bucket-stream# python3 bucket-stream.py --ignore-rate-limiting -s keywords.txt --permutations default.txt
It is highly recommended to enter AWS keys in config.yaml otherwise you will be severely rate limited!You might want to run with --ignore-rate-limiting
No AWS keys, reducing threads to 5 to help with rate limiting.
Traceback (most recent call last):
  File "bucket-stream.py", line 328, in <module>
    main()
  File "bucket-stream.py", line 300, in main
    .format(ARGS.threads, len([x for x in get_permutations("")])), "green")
  File "bucket-stream.py", line 241, in get_permutations
    perms.extend([line.strip() % domain for line in open(ARGS.permutations)])
  File "bucket-stream.py", line 241, in <listcomp>
    perms.extend([line.strip() % domain for line in open(ARGS.permutations)])
ValueError: incomplete format

Thanks!

Hello @rishdang,
I have a PR in which should resolve the first issue. However, the second issue appears to be caused by one of your lines in the default.txt not have an s following the % character, which would cause the format string being incomplete.  More than likely this is near the end of the line.
Otherwise, if you wanted to include a % within the text of the permutation you can do so by using %% since this will escape the % symbol.

Hi @ccsplit ,
Thanks, post making the required changes, it works as intended. Thanks for your help.
rish


Broken with latest version of django-jsonfield (again)

django-jsonfield 1.3.1 seems to break this. We have an existing database with switches, a new install with the updated jsonfield seems to break it.
switch = Switch.objects.first()
type(switch.value)
unicode

The database is postgres.
After locking django-jsonfield at 1.2.0 the type of switch.value is back to a dict as expected.

Hey @AgDude - my basic testing on django-jsonfield didn't find any problems. Can you try installing the in-between version 1.3.0 and seeing if that fixed it? There haven't been many changes in the 1.3.x series: https://github.com/adamchainz/django-jsonfield/commits/master . Once you've had a look you might even be half way to a fix...


Fix panics from Viper lib when using proxy

What does this PR do?
The 'Unmarshal' method from viper is no longer thread safe (since viper
autoupdate his internal map to be case insensitive). This may cause the
agent to panic when creating a HTTP transaction while another goroutine
read the configuration.
We now save the proxy settings when we first load the configuration.
This avoids calling 'Unmarshal' each time we create an HTTP transaction
and remove potential panics.

@arbll I don't think it's used anywhere, but I'll sync with kenafeh !
Thanks.


How to hide percent in pie chart that are 0%

i want generate a pie chart about task statistic，whtn "任务1“ percent is 100%, others percent is 0%, how to hide

I have added support to set custom number format for chart data labels and axis. Please upgrade to the master branch code,  now you can specify custom number format in PlotArea's Labels fields like this:
PlotArea: excelize.ChartPlotArea{
    Labels: excelize.ChartLabel{CustomNumFmt: "0.00%;0;;"},
}

This feature will be released in the next version.

I have added support to set custom number format for chart data labels and axis. Please upgrade to the master branch code,  now you can specify custom number format in PlotArea's Labels fields like this:
PlotArea: excelize.ChartPlotArea{
    NumFmt: excelize.ChartNumFmt{CustomNumFmt: "0.00%;0;;"},
}

This feature will be released in the next version.

I have added support to set custom number format for chart data labels and axis. Please upgrade to the master branch code,  now you can specify custom number format in PlotArea's NumFmt fields like this:
PlotArea: excelize.ChartPlotArea{
    NumFmt: excelize.ChartNumFmt{CustomNumFmt: "0.00%;0;;"},
}

This feature will be released in the next version.


Endpoint urls do not resolve.

acorn version v0.7.0-alpha1-67-g64d4d520+64d4d520
Steps to reproduce the problem:
Deploy apps with published port and try to access the endpoint url.
curl http://myweb1-mytest1-d1485bf1.local.oss-acorn.io
curl: (6) Could not resolve host: myweb1-mytest1-d1485bf1.local.oss-acorn.io

@njhale  this is caused by a change in the way we manage records. Specifically, local.oss-acorn.io is now created in the same route53 zone that acorn-dns is managing. Acorn dns has "garbage collection" logic where it will delete records from route53 if a corresponding record doesn't exist in its database.
That logic is here: https://github.com/acorn-io/acorn-dns/blob/main/pkg/backend/purger.go#L21
The way that logic works, we get back the records from the zone create a collection of the records that dont have a corresponding entry in our db (that happens here: https://github.com/acorn-io/acorn-dns/blob/main/pkg/backend/purger.go#L58-L65)
Once we get through all the pages of records returned by route53, we delete whatever is in the collection. So, I think you just need to add some logic once we're outside of the pagination loop (like maybe right above here https://github.com/acorn-io/acorn-dns/blob/main/pkg/backend/purger.go#L74) that deletes "exempt" records from the collection of records to be deleted.

This should be fixed by https://github.com/acorn-io/acorn-dns/pull/70

Endpoint url resolutions works as expected.


Add support for Clojure standard-clj

Adding support for standard-clj.
The filename differs from the other standard linters, but wanted to preserve the command name.
(thanks for conform btw 🍻)

Thanks for the PR!


fix: terraform-docs version 0.10 removed with-aggregate-type-defaults

Fixes #148

v1.41.0 has been just released.


 (GitHub actions all turns green)
[x] CLA has been signed

References to other Issues or PRs
https://github.com/wechaty/puppet/issues/181

Have you read the Contributing Guidelines?
Yes
Brief description of what is fixed or changed
add handle related feature mentioned in https://github.com/wechaty/puppet/issues/181
Other comments
It's my first time editing a grpc project, please feel free to tell me what goes wrong.

It seems shopt -s globstar cannot be run by default mac bash and brew install fails inside the wall. I'll try to build in Ubuntu when I get home.

@huan Go and python build check failed since 1.0.1, so it seems it's not me breaking it...
Can you check this and see if this can be merged? Then we can start working on puppet-service.

Yes, you can just focus on the node js part of it

Yes, you can just focus on the node js part of it

Cool. I think the node part is OK now.

Thanks for the information, I will take a look at it later.

Any progress? I hate to bother you this often, but the changes to puppet-service rely on this PR.

Thanks for the note. I will take time for working on it tonight,  and let know you the result then.

@huan ping

Will try my best to look at it tonight.
I have been stucked with the CQRS typing staffs last weekend, hopefully it can be finalized this afternoon.

@huan ping

Thanks for your explanation on grpc field naming. Your commits look good.

Should be published as v1.3


Visualize features into a CNN+LSTM for video classification

Hi to all,
The network on which I am working aims to classify video sequences composed by 30 frames. Each sequence is labelled with 1 of the 4 classes considered, let's say: [0,1,2,3].
I want to use a CNN feature extraction module, then feed all the features of each image in an LSTM to predict the class. So we are talking about transfer learning: in my example the CNN is InceptionV3.
The idea is to let the last 10 layers trainable (no limits on choosing the trainable layers). I would like to visualize the features through this network. Here the simple code:
`
from keras.applications.inception_v3 import InceptionV3
from keras.layers import Dense, LSTM, TimeDistributed, Dropout
video = Input(shape=(30,299,299,3))
inc = InceptionV3(
weights='imagenet',
include_top=False,
input_shape=(299, 299, 3)
)
cnn_out = GlobalAveragePooling2D()(inc.output)
cnn = Model(inputs=inc.input, outputs=cnn_out)
for layer in cnn.layers:
layer.trainable=False
encoded_frames = TimeDistributed(cnn)(video)
encoded_sequence = LSTM(128, activation='relu', return_sequences=False, kernel_initializer=he_uniform(), bias_initializer='zeros', dropout=0.5)(encoded_frames)
hidden_layer = Dense(1024, activation='relu')(encoded_sequence)
outputs = Dense(4, activation="softmax")(hidden_layer)
model = Model(inputs=[video], outputs=outputs)
adam = Adam(lr=0.001, beta_1=0.9, beta_2=0.999, amsgrad=False)
model.compile(optimizer=adam, loss='categorical_crossentropy', metrics=['accuracy'])
`
You can try the network with any random frame generator, assign random class to each sequence.
First doubt: In the summary of the network any layer of inception appear, since INC is considered as submodel, or nested model. How can i choose which layer consider as feature visualization?
It seems that the TD wrapper just not consider the layers, or the network, before itself. Is that a correct behavior?
Second: Is your package, in general, applicable  to such a network? I would like to have an 'attention map' (I know is not) for each of the frame considered, even if the classification is done per series (return_sequences=False). Is that make sense?
Thank you very much for the help

The latest code should now let you access to the sub-layers (nested=True). Let me know if it solves your problem. I'll close this issue for now.


Grpc.Tools 2.64 fails on macOS arm64 (Apple silicone) machines

What version of gRPC and what language are you using?
Grpc.Tools 2.64 nuget package
What operating system (Linux, Windows,...) and version?
macOS Sonoma (14.5)
What runtime / compiler are you using (e.g. python version or version of gcc)
The nuget package is running in the context of MSBuild, as part of the .NET 8 SDK.
What did you do?
I'm building a C# program that references the gRPC.Tools nuget package.
What did you expect to see?
A successful build, as I see on Windows, Linux, and x64 mac machines.
What did you see instead?
The build failed, because the msbuild target tried to invoke an x64 protoc tool instead of one built for macOS arm64:
/Users/buildagent/myagent/_work/_temp/.nuget/packages/grpc.tools/2.64.0/build/_protobuf/Google.Protobuf.Tools.targets(291,5): error MSB6003: The specified task executable "/Users/buildagent/myagent/_work/_temp/.nuget/packages/grpc.tools/2.64.0/tools/macosx_x64/protoc" could not be run. System.ComponentModel.Win32Exception (86): An error occurred trying to start process '/Users/buildagent/myagent/_work/_temp/.nuget/packages/grpc.tools/2.64.0/tools/macosx_x64/protoc' with working directory '/Users/buildagent/myagent/_work/1/s/src/Nerdbank.Zcash'. Bad CPU type in executable
   at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)
   at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
   at Microsoft.Build.Utilities.ToolTask.StartToolProcess(Process proc)
   at Microsoft.Build.Utilities.ToolTask.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands)
   at Microsoft.Build.Utilities.ToolTask.Execute() [/Users/buildagent/myagent/_work/1/s/src/Nerdbank.Zcash/Nerdbank.Zcash.csproj]

Anything else we should know about your project / environment?
Apparently the nuget package lacks a macosx_arm64 toolset, so the correct choice couldn't have been made by the ProtoToolsPlatform msbuild task anyway.
Since all new macOS hardware ships with Apple Silicone (i.e. arm64), this nuget package should be updated to include macOS arm64 tools or we can't build projects on that hardware.

having a similar problem in building for macos apple arm.
Output (tail) from the 'pip install':
...
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -I/opt/homebrew/opt/openssl@3/include -I/opt/homebrew/opt/zlib/include -D_WIN32_WINNT=1536 -DGRPC_XDS_USER_AGENT_NAME_SUFFIX=\"Python\" -DGRPC_XDS_USER_AGENT_VERSION_SUFFIX=\"1.41.0\" -DOPENSSL_NO_ASM=1 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1 -DGRPC_ENABLE_FORK_SUPPORT=1 "-DPyMODINIT_FUNC=extern \"C\" __attribute__((visibility (\"default\"))) PyObject*" -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I. -Ithird_party/abseil-cpp -Ithird_party/address_sorting/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/cares/config_darwin -Ithird_party/re2 -I/usr/include/openssl -Ithird_party/upb -Isrc/core/ext/upb-generated -Isrc/core/ext/upbdefs-generated -Ithird_party/xxhash -I/usr/include -I/Users/marco/Development/ntoplabs/HackMentor/venv/include<EMAIL_ADDRESS>-c third_party/re2/util/rune.cc -o python_build/temp.macosx-13.0-arm64-cpython-311/third_party/re2/util/rune.o -std=c++11 -stdlib=libc++ -fvisibility=hidden -fno-wrapv -fno-exceptions -DHAVE_UNISTD_H -pthread
      creating None
      creating None/var
      creating None/var/folders
      creating None/var/folders/tq
      creating None/var/folders/tq/pq23_1150_q5my3yj45w7wkw0000gn
      creating None/var/folders/tq/pq23_1150_q5my3yj45w7wkw0000gn/T
      creating None/var/folders/tq/pq23_1150_q5my3yj45w7wkw0000gn/T/tmpnsgf_cwq
      clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -I/opt/homebrew/opt/openssl@3/include -I/opt/homebrew/opt/zlib/include -I/Users/marco/Development/ntoplabs/HackMentor/venv/include<EMAIL_ADDRESS>-c /var/folders/tq/pq23_1150_q5my3yj45w7wkw0000gn/T/tmpnsgf_cwq/a.c -o None/var/folders/tq/pq23_1150_q5my3yj45w7wkw0000gn/T/tmpnsgf_cwq/a.o
      Traceback (most recent call last):
        File "/Users/marco/Development/ntoplabs/HackMentor/venv/lib/python3.11/site-packages/setuptools/_distutils/unixccompiler.py", line 188, in _compile
          self.spawn(compiler_so + cc_args + [src, '-o', obj] + extra_postargs)
        File "/private/var/folders/tq/pq23_1150_q5my3yj45w7wkw0000gn/T/pip-install-y67mp_mb/grpcio_5150c9bf29f64e54ba50c26283d8fcb8/src/python/grpcio/_spawn_patch.py", line 54, in _commandfile_spawn
          _classic_spawn(self, command)
        File "/Users/marco/Development/ntoplabs/HackMentor/venv/lib/python3.11/site-packages/setuptools/_distutils/ccompiler.py", line 1041, in spawn
          spawn(cmd, dry_run=self.dry_run, **kwargs)
        File "/Users/marco/Development/ntoplabs/HackMentor/venv/lib/python3.11/site-packages/setuptools/_distutils/spawn.py", line 68, in spawn
          raise DistutilsExecError(f"command {cmd!r} failed with exit code {exitcode}")
      distutils.errors.DistutilsExecError: command '/usr/bin/clang' failed with exit code 1

I found that installing Rosetta solved the problem. Apparently with just that, macOS will automatically emulate for running x64 executables, without even having to switch modes explicitly.
/usr/sbin/softwareupdate --install-rosetta --agree-to-license

Still, the less software that requires rosetta to be installed, the better. And Grpc.Tools could work by default for more users if it offered osx-arm64 binaries.

I found that installing Rosetta solved the problem. Apparently with just that, macOS will automatically emulate for running x64 executables, without even having to switch modes explicitly.
/usr/sbin/softwareupdate --install-rosetta --agree-to-license

Still, the less software that requires rosetta to be installed, the better. And Grpc.Tools could work by default for more users if it offered osx-arm64 binaries.

Not solving it in my case because rosetta is installed:
$ pgrep oahd
536

Grpc.Tools only supports x64 binaries for MacOS - but these should work on MacOS arm64 when using Rosetta.
See BUILD-INTEGRATION.md
See also https://github.com/grpc/grpc/issues/32006#issuecomment-1369942650

That's what I figured out too. Consider this a request for arm64 support via arm64 binaries. If that's not on the table, then feel free to close the issue, since I'm unblocked using the technique you mentioned, @tonydnewell.
Thanks.

This seems like something that should go on grpc/grpc-dotnet. I wasn't able to transfer this myself. @tonydnewell can I leave it to you to do that please?

@yashykt At the moment Grpc.Tools is built in this repository, so this is the right place for bug reports.
There are too many dependencies to easily move Grpc.Tools to grpc/grpc-dotnet, e.g. building the protoc and plugin binaries, distrib tests, codegen tests.  Maybe one day it can be moved.

got it, thanks @tonydnewell


fix: Scrolling behavior when remote clients are editing

Only consider the dom selection if it's within the editor bounds.
closes #31

Somewhat debugging in public here, it seems like when the selection is collapsed getClientBoundingRect returns zero for all values, if you have an expanded selection it's correct and the bug does not reproduce.

That seems very odd..

Thanks for this PR! I copied the relevant changes and published a new release. The issue should be fixed in<EMAIL_ADDRESS>


Make date listing consitent on Activity Table

Depending on the length of data, the data listing on Activity table sometimes wraps. I propose we choose a fontsize that works without wrapping for the maxium possible date width.

Hi @philltran  we'll be sunsetting the old explorer in the coming weeks and will be focusing new development efforts on explorer v2. If this is still an issue on explorer v2, do you mind filing another issue? thanks!


Ability to provide Filters and Transforms

As with any migration platform need to filter / transform data might be necessary. For instance it might be necessary not to migrate certain fields due to security reasons , fields like SSN, DOB etc. Even more you might want to only bring in most recent data probably by filtering by created date greater than a particular date.

I like it , the only thing I was wondering is would it not be a List of Transforms and a List of Filters ?
in the sense each row can go through multiple transform functions ( kind of like a chain of responsibility/ command pattern)
and filter would be also the same way, I might want to filter on multiple fields this will be extremely useful if I am planning to decompose a table into multiple collection
Say I have a table with regions , east, west,  north and south and within region I have departments and I want to filter those rows by region and department to go into its specific collection

I like it , the only thing I was wondering is would it not be a List of Transforms and a List of Filters ?
in the sense each row can go through multiple transform functions ( kind of like a chain of responsibility/ command pattern)
and filter would be also the same way, I might want to filter on multiple fields this will be extremely useful if I am planning to decompose a table into multiple collection
Say I have a table with regions , east, west,  north and south and within region I have departments and I want to filter those rows by region and department to go into its specific collection

So maybe it becomes List<Func> (or List with abstract approach). I can see the value in that approach.
As far as dividing up a table into multiple collections, that's something that could be done after moving the data over to Couchbase, and probably more efficiently that way. Additionally, a more complex mapping would have to be entered. It's not just putting data into a collection by naming convention, but now I have to explicitly define table -> collection1 when X, table -> collection2 when Y, etc. Unless you have a convention in mind?
Also, that sort of use case might be better served by kafka or other connector than a "one shot" migration tool like this. And that's starting to get into "level 2" migration, where you start to think about changing the structure of the data to be more optimized for Couchbase/JSON.

So maybe it becomes List<Func> (or List with abstract approach). I can see the value in that approach.
As far as dividing up a table into multiple collections, that's something that could be done after moving the data over to Couchbase, and probably more efficiently that way. Additionally, a more complex mapping would have to be entered. It's not just putting data into a collection by naming convention, but now I have to explicitly define table -> collection1 when X, table -> collection2 when Y, etc. Unless you have a convention in mind?
Also, that sort of use case might be better served by kafka or other connector than a "one shot" migration tool like this. And that's starting to get into "level 2" migration, where you start to think about changing the structure of the data to be more optimized for Couchbase/JSON.

I agree that it can be considered as level 2 migration,  not all companies my be vested in using Kafka connectors but yah any it can be thought of as an option to do migration, the tasks can be used to do transformations.
The reason I think Filters being a list would make sense is that I can see a user filtering data on multiple fields or same fields
the use case that I gave might not be trivial , but say I want get data from the database where created date is between 2 dates  I need 2 filters
Where createdate > ? and createdate <= ?

I agree that it can be considered as level 2 migration,  not all companies my be vested in using Kafka connectors but yah any it can be thought of as an option to do migration, the tasks can be used to do transformations.
The reason I think Filters being a list would make sense is that I can see a user filtering data on multiple fields or same fields
the use case that I gave might not be trivial , but say I want get data from the database where created date is between 2 dates  I need 2 filters
Where createdate > ? and createdate <= ?

Yes, I agree filters would be useful for date range limiting, transforms would be useful for PII, and probably dozens of other uses for both.

Yes, I agree filters would be useful for date range limiting, transforms would be useful for PII, and probably dozens of other uses for both.

I'm working on this now. I've created a base class that can be overwritten and used with C# and/or SQL in any combination to perform filtering and transforming. The default class is what's used now, but it can be inherited and overwritten. This is my 2nd or 3rd design iteration, and I've yet to integrate it and try it out (I plan to do so with a Dictionary that maps a pipeline to a table). But I wanted to get some thoughts on naming and design (if you have any).
public class SqlPipelineDefault
{
    public SqlPipelineDefault(string schemaName, string tableName)
    {
        // select every column and every row
        Query = $@"SELECT * FROM [{schemaName}].[{tableName}]";
    }

    public virtual string Query { get; }

    public virtual bool IsIncluded(dynamic row)
    {
        // filters nothing
        return true;
    }

    public virtual dynamic Transform(dynamic row)
    {
        // transforms nothing
        return row;
    }
}

So for instance, if I wanted to filter by a date, I could do either of:
    public class MyCustomCsharpFilter : SqlPipelineDefault
    {
        public MyCustomCsharpFilter(string schemaName, string tableName) : base(schemaName, tableName)
        {
        }

        public override bool IsIncluded(dynamic row)
        {
            DateTime modifiedDate = row.ModifiedDate;
            return modifiedDate >= new DateTime(2014, 05, 26);
        }
    }

or
    public class MyOtherCustomSqlFilter : SqlPipelineDefault
    {
        private readonly string _schemaName;
        private readonly string _tableName;

        public MyOtherCustomSqlFilter(string schemaName, string tableName) : base(schemaName, tableName)
        {
            _schemaName = schemaName;
            _tableName = tableName;
        }

        public override string Query => $@"SELECT * FROM [{_schemaName}].[{_tableName}] WHERE ModifiedDate >= '2014-05-26'";
    }

With the latter probably being the better choice in most situations, but not always. C# might be the better choice in some situations.
And then to add it to the migration process would be:
pipelineDictionary.Add("Person.Address",typeof(MyOtherCustomSqlFilter));
(or something like that--haven't figured that part out yet)

Here's the pull request, let me know what you think - https://github.com/mgroves/SqlServerToCouchbase/pull/2

:shipit:


Arrows of orientation

Arrows of orientation for each individual animal and the centroid

You can find details how to calculate the relative positions of the fish and to the centroid of the group in our paper here: http://www.biorxiv.org/content/early/2017/04/27/131094. Arrows can then be drawn with the length based on the displacement (with a multiplier) and orientation based on the differentiation between subsequent frames.

Started  in the commit 16963ef

Closed with 9404716


Unit tests for Map Options

Made a few unit tests for Map Options - it's primarily checking selecting/clicking on the elements. Please, have a look if the unit tests make sense, or if I should do them differently.
Happy to do some more, but I would appreciate some guidance - let's say a list of things we want and can test with this basic framework setup.

Could you rebase this branch now that the karma framework is merged?

Rebased and added/finished a color reset unit test. I am happy to leave this PR open, but I am not sure whether I will be eager to add more unit tests (in the near future), so it might be good just to get it approved and merge it - so that it lives in the repository as a good 'guidance'/template for other people collaborating and adding their own unit tests.


Exports

Hey! 👋  This is an implementation of parsing exports, except for the parts that involve classes since they're not written yet. I also added support for deserializing and comparing module trees since that's necessary for exports.
This is probably the most Rust I've written to date, so things are probably a bit messy! I'm open to any and all feedback, so let know what's out of place and I'll fix it up.

Looking at this again, I think I'm gonna re-work it with a different approach.


run flopy example and derive requirements for model splitting

In GitLab by @luitjansl on Aug 1, 2023, 16:30
using flopy, we can split a flow-model into several flow models. All these flow models are included in the same simulation, and are solved by running the simulation.
We can use this feature to create requirements for an imod-python implementation of the same function.

In GitLab by @luitjansl on Aug 10, 2023, 16:22
The result of this task is the collection of issues that carry the label "subdomain"


proposal: open github discussion for expert user / anyone

Proposal Details
i understand there's stackoverflow but it's limited etc but if your question is an extreme case / expert level and no one can answer the question, you start to get a lot of very simplistic answer.
Possible to open up the discussion with a section for extreme golang / expert golang dev only? I think with 5k+ issues, if you open up the discussion, some simple questions can be asked there instead of having so many issues created.
i asked for multi process inter process global mutex lock in telegram etc.
my question was, how to get the following to run or is there a way which is supported by golang? i realised i cant run > 80k go routines over cgo without crashing even if i set ulimit -n 1024000 or setmaxthreads 1024000 too. so not sure how to push to make it work. need inter process global mutex lock between golang processes for accessing mmap file contents.
the below doesnt work if the goroutine is set higher to maybe 10000 or if the program is ran multiple times on the same hosts.
i've tried everything including golang futex etc and using other's packages and none works without crashing.
package main

/*
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>

// Helper function to get the current errno value
int get_errno() {
    return errno;
}

// Function to initialize a mutex as process-shared
int setupMutex(void* addr) {
    pthread_mutexattr_t attr;
    pthread_mutex_t* mutex = (pthread_mutex_t*) addr;

    if (pthread_mutexattr_init(&attr)) {
        perror("Mutex attribute init failed");
        return -1;
    }

    if (pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_SHARED)) {
        perror("Setting pshared failed");
        pthread_mutexattr_destroy(&attr);
        return -1;
    }

    if (pthread_mutex_init(mutex, &attr)) {
        perror("Mutex init failed");
        pthread_mutexattr_destroy(&attr);
        return -1;
    }

    pthread_mutexattr_destroy(&attr);
    return 0;
}

// Function to create shared memory with error handling
int createSharedMemory(key_t key, size_t size) {
    int shmid = shmget(key, size, IPC_CREAT | 0666);
    if (shmid == -1) {
        fprintf(stderr, "Failed to create/find shared memory: %s\n", strerror(errno));
    }
    return shmid;
}
*/
import "C"

import (
    "log"
    "sync"
    "sync/atomic"
    "time"
    "unsafe"
)

var (
    lockUnlockCount int64
    reportFrequency = time.Second
)

func main() {
    path := C.CString("/dev/null") // Use an accessible path on your system
    defer C.free(unsafe.Pointer(path))
    id := C.int(123) // Arbitrary project identifier

    key := C.ftok(path, id)
    if key == -1 {
        log.Fatalf("ftok failed: %s", C.GoString(C.strerror(C.get_errno())))
    }

    size := C.size_t(unsafe.Sizeof(C.pthread_mutex_t{}))
    shmid := C.createSharedMemory(key, size)
    if shmid < 0 {
        log.Fatal("Exiting due to previous error.")
    }

    shmaddr := C.shmat(shmid, nil, 0)
    if shmaddr == nil {
        log.Fatalf("Failed to attach shared memory: %s", C.GoString(C.strerror(C.get_errno())))
    }
    defer C.shmdt(shmaddr)

    if C.setupMutex(shmaddr) != 0 {
        log.Fatalf("Failed to setup mutex")
    }

    var wg sync.WaitGroup
    go reportLockUnlockOperations()

    const numGoroutines = 100
    wg.Add(numGoroutines)

    for i := 0; i < numGoroutines; i++ {
        go func() {
            defer wg.Done()
            for {
                if C.pthread_mutex_lock((*C.pthread_mutex_t)(shmaddr)) != 0 {
                    log.Println("Failed to lock mutex")
                    continue
                }
                atomic.AddInt64(&lockUnlockCount, 1)
                if C.pthread_mutex_unlock((*C.pthread_mutex_t)(shmaddr)) != 0 {
                    log.Println("Failed to unlock mutex")
                    continue
                }
            }
        }()
    }

    wg.Wait()
}

func reportLockUnlockOperations() {
    for range time.Tick(reportFrequency) {
        count := atomic.SwapInt64(&lockUnlockCount, 0)
        log.Printf("Lock-unlock operations per second: %d", count)
    }
}

i've tried even this, which doesnt run on 2nd instance on same host:
package main

import (
    "log"
    "sync"
    "sync/atomic"
    "time"

    "modernc.org/libc"
)

var (
    tls             = libc.NewTLS()
    lockUnlockCount int64
    reportFrequency = time.Second
)

func main() {
    const key, size, mode = 2, 4, libc.IPC_CREAT | 0666
    shmid := libc.Xshmget(tls, key, size, mode)
    if shmid < 0 {
        log.Fatalf("Failed to create/find shared memory: %d", shmid)
    }

    shmaddr := libc.Xshmat(tls, shmid, 0, 0)
    if int64(shmaddr) < 0 {
        log.Fatalf("Failed to attach shared memory: %d", int64(shmaddr))
    }
    defer libc.Xshmdt(tls, shmaddr)

    setupMutex(tls, shmaddr)  // Set up the mutex properly

    var wg sync.WaitGroup
    go reportLockUnlockOperations()

    const numGoroutines = 100
    wg.Add(numGoroutines)

    for i := 0; i < numGoroutines; i++ {
        go func() {
            defer wg.Done()
            for {
                if err := libc.Xpthread_mutex_lock(tls, shmaddr); err != 0 {
                    log.Printf("Failed to lock mutex: %d", err)
                    continue
                }
                atomic.AddInt64(&lockUnlockCount, 1)
                if err := libc.Xpthread_mutex_unlock(tls, shmaddr); err != 0 {
                    log.Printf("Failed to unlock mutex: %d", err)
                    continue
                }
            }
        }()
    }

    wg.Wait()
}

func setupMutex(tls *libc.TLS, addr uintptr) {
    // Assume mutexattr is set up elsewhere to configure the mutex as robust and process-shared
    if err := libc.Xpthread_mutex_init(tls, addr, 0); err != 0 {
        log.Fatalf("Failed to initialize mutex: %d", err)
    }
}

func reportLockUnlockOperations() {
    for range time.Tick(reportFrequency) {
        count := atomic.SwapInt64(&lockUnlockCount, 0)
        log.Printf("Lock-unlock operations per second: %d", count)
    }
}

We experimented with allowing questions on the issue tracker but it didn't really work and we decided to keep the github issue tracker strictly for bug reports and change proposals; it seems unlikely that this decision will be reverted.
I understand asking a question and receiving no answer can be frustrating, but the github issue tracker is for bugs only, so I'm going to close this issue.

Yeah, it's not that we don't want to help, it's that in practice questions went unanswered which was a poor user experience.  The forums (https://go.dev/wiki/Questions) really are better places to ask complex questions.


Update ug addnotecommand

Codecov Report

Merging #240 (9c1221a) into master (683df24) will decrease coverage by 0.03%.
The diff coverage is 0.00%.

@@             Coverage Diff              @@
##             master     #240      +/-   ##
============================================
- Coverage     57.61%   57.58%   -0.04%
  Complexity      829      829
============================================
  Files           169      169
  Lines          3124     3126       +2
  Branches        311      312       +1
============================================
  Hits           1800     1800
- Misses         1202     1204       +2
  Partials        122      122

Impacted Files
Coverage Δ
Complexity Δ

...edu/dictionote/logic/commands/EditNoteCommand.java
81.81% <0.00%> (ø)
11.00 <0.00> (ø)

...ionote/logic/commands/MarkAsUndoneNoteCommand.java
44.44% <0.00%> (-5.56%)
6.00 <0.00> (ø)

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 683df24...9c1221a. Read the comment docs.


Update README.md

CORRECTED ALL THE GRAMMATICAL ERRORS

why was this PR closed and declared a spam?

why was this PR closed and declared a spam?

I couldn't connect it with a issue and details about the same were not provided.

I have created an issue now regarding it. Now can I raise a PR?


Add copy to clipboard icons on landing page documentation

I can work on this, if no one has taken this up.

sure, thanks

if anyone is not doing can you assign me I would like to take this issue?

Hi Manav, i have already raised a PR for this issue, its already assigned to me.
However there are a lot of other issues that you can try your hands on.
Thanks!


Fix typos in per-host config keys.

NetflixOSS » eureka » eureka-pull-requests #219 SUCCESS
This pull request looks good

Thank you for spotting it. We cannot merge this however, as this change is not backwards compatible (all user would have to update their configuration files). It is safer to leave it as it is, even if the property name is a bit misleading.

Their configuration files are either setting the right parameter, in which case they do not need to change, or they are setting the wrong parameter, in which case they are wrong. However, it seems very unlikely that any client is using the perHost parameters or they would have already noticed the bug.
So this seems safely mergeable.

You are right. I have missed that we have also getPeerNodeTotalConnections, and the property names overlap:
 @Override
    public int getPeerNodeTotalConnections() {
        return configInstance.getIntProperty(
                namespace + "peerNodeTotalConnections", 1000).get();
    }

    @Override
    public int getPeerNodeTotalConnectionsPerHost() {
        return configInstance.getIntProperty(
                namespace + "peerNodeTotalConnectionsPerHost", 500).get();
    }

I definitely makes sense to merge this in. Thanks.

No worries.


Support minPartitions parameter across load calls

Makes it easier to increase the parallelism when loading a file.

It seems like the only place this can be done is loadFasta. The other textual file formats (minus VCF and FASTQ) already support this parameter, and the other file formats use the new Hadoop APIs, which are incompatible with minPartitions.

Closing as WontFix, loadFasta also uses sc.newAPIHadoopFile(...).


Distinguishing numerical zeroes from complex numbers

When plotting this minimal example for a amplitude sweep
using HarmonicBalance, Plots
using Plots

@variables t x(t)
@parameters ω ω0 F0 Γ λ θ β ψ η
natural_equation = d(d(x, t), t) + Γ*d(x, t) + ω0^2*(1-λ*cos(2*ω*t + ψ))*x + β*x^3 + η*d(x, t)*x^2
forces = F0*cos(ω*t + θ)
diff_eq = DifferentialEquation(natural_equation ~ forces, x)

add_harmonic!(diff_eq, x, ω);
harmonic_eq = get_harmonic_equations(diff_eq);

varied = ω => LinRange(0.75, 1.25, 50)
fixed = Dict(ω0 => 1.0, Γ => 0.01, F0 => 0.0, β => 1.0, λ => 0.03, η => 0.0, θ => 0.0, ψ => 0.0)
result = get_steady_states(harmonic_eq, varied, fixed, random_warmup = false)
plot1 = plot(result, "sqrt(u1^2+v1^2)")

I get a warning that some values with non-negligible complex parts have been projected on the real axis. Although the comples part are negliable (powers to the -51). It would be nice if only warning were issued if the complex part higher than some threshold. Something like 1e-3 maybe.

Could maybe the global variable HarmonicBalance.set_imaginary_tolerance(x::Float64) be used for this. Would be a quick fix.

This is already in place, see  function is_real and global variable im_tol. The problem is how to treat numerical zeros - these appear as very small numbers, whose complex argument is random. Currently there is a cutoff 1e-70 to distinguish this.

Ha, I see. Maybe, the cutoff abs(x) < 1e-70 is a bit overdoing it. Or are values smaller than 1e-20 for some examples important?

So I conclude here the conversion I had with @jdelpino and @jkosata about this problem.
There are two problems to tackle:

First, the code gives a warning when some values are clearly neglectable. This is because it is unclear how to treat the very small numbers, whose complex argument is random. There is a cutoff abs(x) < 1e-70 which addresses this issue but depending on the physical problem and parameters overshoots the neglectable values. However, in the case someone has come across relevant (non-neglectable) really small values in their problem, one can rescale it to regular sized values. As most users will have a scientific education, we will assume this knowledge from the user, and enlarge the cutoff to 10e-20.
The second problem is that these many warnings are not anyway useful. If we could collect them in a single one, that'd be optimal. Nevertheless, @jkosata was already aware of this matter and this seems not so trivial to implement.

We raised the cutoff abs(x) < 1e-70 in pull request #72. However, after a discussion, we concluded that we must instead lower the cutoff abs(x) < 1e-70 again and solve the warning issue.


All Readme.md links are redirected to the 404

Please fix the links on https://github.com/Microsoft/PowerBI-visuals/

Which ones? I went through some of them. They seem fine.

Now, everything is fine. You can close this.
Yesterday all of the links in Readme.rm were without a  'blob/master/' part.
Something like this: https://github.com/Microsoft/PowerBI-visuals/tools/README.md#installation -> 404


request for sodium.(crypto_hash_sha256 && crypto_hash_sha512)

Hi, any chances that there could be support put in for

crypto_hash_sha256 → https://doc.libsodium.org/advanced/sha-2_hash_function#sha-256
crypto_hash_sha512 → https://doc.libsodium.org/advanced/sha-2_hash_function#sha-512

In return, I'd like to PR from_string() and a proper export of the base64_variants enum for the native libs :)

hey @vobu, will give your PR a try later today. And happy to accept another for the hashing functions :)

I tried doing it. But in the time I had for this, couldn't get my head around how the C++ APIs are surfaced in the coding, sorry 😭
Could you jumpstart this, please?!?

would you be willing to sponsor the feature development?
we are happy to share our work open source, by currently I'm paying my team out of personal funds and doing this would cost me or my team member time that I have to pay for while it's not necessary for our project


[project] Improve Docker story .NET Core/ASP.NET Core

This is an issue for discussion related to the .NET Core Docker story.

The goal of this project is to identify and target key articles that can be improved or written to increase our coverage of using Docker with ASP.NET Core/.NET Core.

Host your application in a Docker container.
Use containers to install and run .NET Core without affecting your system.
Building your own custom .NET Core docker image. (add your own global (or other) tools)
Provide a path to Azure Dev Spaces (cross-link)

Project link

These issues were previously opened related to this area:

Migrate the article content from the dotnet docker samples repo
Migrate application to docker

Misc external links with good info

Run on Raspberry Pi

Improvements

[ ] #8905 Rewrite the .NET Framework docker article (since we're looking at docker improvements, this should be easy to a the same time)

Closing this. Don't need a project issue when we have a project-project..


premature palatomaxillary suture closure

premature palatomaxillary suture closure
DEF: early closure of the transverse suture across the back of the hard palate that separates the maxillary shelf of the palate from the horizontal plates of the palatine bones
SYN: early fusion of palatomaxillary suture

premature palatomaxillary suture closure MP:0030424


Base refactoring done, needs further improvement for consistency

I restructured it in a way that is more verbose but the point is that everyone reading it should understand which variable belongs to which object or item.
It would be nice to follow the same structure for consistency when creating new objects:
-plateWars.object
-- plateWars.object.baseData, config, records, refIds and so on.
It's much easier to look something up or reference it within the code.
TODO:
What should be done is creating functions for logging: LogInfo, LogWarning, LogError
Create structure for messages, e.g. plateWars.messages
It will help in creating multiple sessions per server if we have basic stuff organized.

Merged by force into main as this PR had conflicts due to refactor.


ld fails with The gap between .flash.rodata and .eh_frame_hdr must not exist to produce the final bin image. (IDFGH-13388)

Answers checklist.

[X] I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
[X] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
[X] I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.
v5.3
Operating System used.
Linux
How did you build your project?
Command line with CMake
If you are using Windows, please specify command line type.
None
What is the expected behavior?
The project compiles.
What is the actual behavior?
When building the project for esp32-c3 the linker fails with:
/home/build/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20240530/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/13.2.0/../../../../riscv32-esp-elf/bin/ld: The gap between .flash.rodata and .eh_frame_hdr must not exist to produce the final bin image.
/home/build/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20240530/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/13.2.0/../../../../riscv32-esp-elf/bin/ld: warning: blink.elf has a LOAD segment with RWX permissions

The same project builds just fine for the esp32 and esp32-s2 targets.
Steps to reproduce.

Having an existing project that uses cmake (idf_build_process / idf_build_executable)
run cmake with -DCMAKE_TOOLCHAIN_FILE=/path-to-esp-idf-v5/tools/cmake/toolchain-esp32c3.cmake
ninja flash

Unfortunately, I don't have a minimal shareable reproduction scenario.
Build or installation Logs.
[5/8] Linking CXX executable blink.elf
FAILED: blink.elf
: && /home/build/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20240530/riscv32-esp-elf/bin/riscv32-esp-elf-g++ -march=rv32imc_zicsr_zifencei -nostartfiles -march=rv32imc_zicsr_zifencei --specs=nosys.specs -Wl,--eh-frame-hdr -fno-lto -Wl,--gc-sections -Wl,--warn-common -T esp32c3.peripherals.ld -T esp32c3.rom.ld -T esp32c3.rom.api.ld -T esp32c3.rom.libgcc.ld -T esp32c3.rom.version.ld -T esp32c3.rom.eco3.ld -T esp32c3.rom.newlib.ld -T memory.ld -T sections.ld -T rom.api.ld
<a bunch of .obj and .a files>
-Wl,--undefined=FreeRTOS_openocd_params  -u app_main  -u start_app  -u __ubsan_include  -u esp_system_include_startup_funcs  -u __cxa_guard_dummy  -u __cxx_init_dummy  -lstdc++  esp-idf/pthread/libpthread.a  esp-idf/cxx/libcxx.a  -lc  -lm  -lgcc  esp-idf/newlib/libnewlib.a  -u newlib_include_heap_impl  -u newlib_include_syscalls_impl  -u newlib_include_pthread_impl  -u newlib_include_assert_impl  -u newlib_include_init_funcs  -u __assert_func  -u esp_app_desc  -u esp_efuse_startup_include_func  -u esp_timer_init_include_func  -u uart_vfs_include_dev_init  -u usb_serial_jtag_vfs_include_dev_init  -u usb_serial_jtag_connection_monitor_include  -u esp_system_include_coredump_init  -u vfs_include_syscalls_impl  -u include_esp_phy_override  -lphy  -lbtbb  esp-idf/esp_phy/libesp_phy.a  -lphy  -lbtbb  esp-idf/esp_phy/libesp_phy.a  -lphy  -lbtbb  -u pthread_include_pthread_impl  -u pthread_include_pthread_cond_var_impl  -u pthread_include_pthread_local_storage_impl  -u pthread_include_pthread_rwlock_impl  -u pthread_include_pthread_semaphore_impl  -u esp_vfs_include_console_register && :
/home/build/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20240530/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/13.2.0/../../../../riscv32-esp-elf/bin/ld: The gap between .flash.rodata and .eh_frame_hdr must not exist to produce the final bin image.
/home/build/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20240530/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/13.2.0/../../../../riscv32-esp-elf/bin/ld: warning: blink.elf has a LOAD segment with RWX permissions
collect2: error: ld returned 1 exit status

### More Information.

"SDKCONFIG_DEFAULTS" contents:

CONFIG_BOOTLOADER_WDT_TIME_MS=60000
CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y
CONFIG_PARTITION_TABLE_CUSTOM=y
CONFIG_COMPILER_CXX_EXCEPTIONS=y
CONFIG_COMPILER_CXX_RTTI=y
CONFIG_ESP_HTTPS_OTA_ALLOW_HTTP=y
CONFIG_ESP_PHY_MAX_WIFI_TX_POWER=10
CONFIG_ESP_MAIN_TASK_STACK_SIZE=8192
CONFIG_ESP_INT_WDT_TIMEOUT_MS=3000
CONFIG_ESP_TASK_WDT_PANIC=y
# CONFIG_ESP_WIFI_NVS_ENABLED is not set
# CONFIG_ESP_WIFI_ENABLE_WPA3_SAE is not set
CONFIG_ESP_COREDUMP_ENABLE_TO_UART=y
# CONFIG_MQTT_TRANSPORT_SSL is not set
# CONFIG_MQTT_TRANSPORT_WEBSOCKET is not set

@Equidamoid , I could not reproduce it with blink example and with your config. I also had to remove CONFIG_PARTITION_TABLE_CUSTOM=y to build it (this requires partitions.csv file you did not attach). Tested on commit 9a44ced6724707faf73d46fa0c10f46b44f84f3d
To know what exactly is wrong you may try two options:

Enable CONFIG_COMPILER_ORPHAN_SECTIONS_WARNING=y configure option. This should warn you about stray sections you have for your project. Please add output here in case you have new linking warnings after enabling this.

Remove this check and build your app. After the elf file is generated you can see what data was placed between the sections in build/*.map file. Please attach a map file you get if it is possible. I would like to take a look and provide the next steps to fix the issue.

@Lapshin, oh, it's not the blink example. The cmake boilerplate stuff was initially copypasted from the example and nobody bothered to rename the binary since it doesn't affect anything.
Here is the partition table:
nvs,      data, nvs,       0x9000,  0x4000,
otadata,  data, ota,       0xd000,  0x2000,
phy_init, data, phy,       0xf000,  0x1000,
ota_0,    app,  ota_0,  0x10000,  1984K,
ota_1,    app,  ota_1,   0x210000,  1984K,

I added CONFIG_COMPILER_ORPHAN_SECTIONS_WARNING=y to the config, and commented out the line you mentioned.
The build progressed further and failed with "the binary is bigger than the partition". With some size optimization flags set the build succeeded. Here is the resulting defconfig.
CONFIG_BOOTLOADER_WDT_TIME_MS=60000
CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y
CONFIG_PARTITION_TABLE_CUSTOM=y
CONFIG_COMPILER_OPTIMIZATION_SIZE=y
CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT=y
CONFIG_COMPILER_OPTIMIZATION_CHECKS_SILENT=y
CONFIG_COMPILER_CXX_EXCEPTIONS=y
CONFIG_COMPILER_CXX_RTTI=y
CONFIG_COMPILER_ORPHAN_SECTIONS_WARNING=y
CONFIG_ESP_HTTPS_OTA_ALLOW_HTTP=y
CONFIG_ESP_PHY_MAX_WIFI_TX_POWER=10
CONFIG_ESP_MAIN_TASK_STACK_SIZE=8192
CONFIG_ESP_INT_WDT_TIMEOUT_MS=3000
CONFIG_ESP_TASK_WDT_PANIC=y
# CONFIG_ESP_WIFI_NVS_ENABLED is not set
# CONFIG_ESP_WIFI_ENABLE_WPA3_SAE is not set
CONFIG_ESP_COREDUMP_ENABLE_TO_UART=y
# CONFIG_MQTT_TRANSPORT_SSL is not set
# CONFIG_MQTT_TRANSPORT_WEBSOCKET is not set

I don't see any new warnings from ld. Only ld: warning: blink.elf has a LOAD segment with RWX permissions which was already present before.
The .map file didn't appear anywhere in the build dir (at least after ninja app), do I need to make extra changes and/or use different build target?

@Lapshin
Done! (renamed to "blink.txt" because github)
blink.txt

@Equidamoid , is your project built with -fpie or -fpic compile option? In case you don't know please grep build logs for it

Indeed, a dependency (shared between esp and linux builds) has -fpic enabled.

@Equidamoid , could you enable this only for linux builds? Seems it does not make sense to enable it for esp builds

Without -fPIC I don't get the error anymore (and no, I didn't forget to uncomment it in the ld script :P).
Is this a fix or a workaround?

@Equidamoid , I think it's the solution for you. Because -fpic is usually used for linking with shared libraries OR if you want to embed your static library with position-independent code inside. In case you build a monolith application from sources to run on esp32 chip I don't see any advantages in using this flag
BTW we wanted to distribute a library compiled with PIC but riscv linker is not ready for that https://sourceware.org/bugzilla/show_bug.cgi?id=31969
I'm closing this issue. If you have any others, please open a new one

Understood. It is a solution for me indeed. And now others may be able to google this bug to find it =)
Will it be worth documenting somewhere? I can imagine more people may add_subdirectory some sloppy-written code with -fPIC just hardcoded because of a mix of static and shared libs.

@Equidamoid , thank you for your concern! I have already created a merge request in our internal repository to detect such configurations and provide a human-readable explanation to terminal if any are found.


AS unrecorded case percentages stacked area plot

AS-unrec-case-percentages-stacked-area-squared.pdf
AS-unrec-case-percentages-stacked-area.pdf
Generated using https://github.com/SichangHe/internet_route_verification_meta/commit/79eeb32325a9002f877ffc511f23645be15b12bf and data in #89.

Surprisingly, although unrec_import_empty and unrec_export_empty has similar averages, much more AS have the latter. This is also shown in the 75 percentile. All these ASes have no other unrecorded cases.
The large stripe of unrec_aut_num shows that many ASes are not recorded in the IRR.
Most of the rest are unrecorded routes and AS Sets.

Are the unrecorded aut-num objects concentrated in one or two RIR/NIRs?
On Fri, Nov 10, 2023, 02:04 Steven Hé (Sīchàng) @.***>
wrote:

Surprisingly, although unrec_import_empty and unrec_export_empty has
similar averages, much more AS have the latter. This is also shown in the
75 percentile. All these ASes have no other unrecorded cases.
The large stripe of unrec_aut_num shows that many ASes are not recorded
in the IRR.
Most of the rest are unrecorded routes and AS Sets.
—
Reply to this email directly, view it on GitHub
https://github.com/SichangHe/internet_route_verification/issues/92#issuecomment-1805092124,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AACPO574ZQCJ3XHQZAPAUHLYDWYUFAVCNFSM6AAAAAA7FTXYO2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBVGA4TEMJSGQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***
com>

Here's a list of ASes with unrec_aut_num: as_w_unrec_aut_num.csv
I don't have a good way to know which registry they are in because we don't record that information.
For the list of missing ASes (which is what you are probably asking for), I need to write a script to generate all the reports again and extract them out from the report items.

None of the above 17108 ASes have associated AutNum objects in the IRR (just realized that is the reason why they are reported as unrecorded in the first place after trying to extract source for the registry they are in).
I could find some of them as origin in route/route6 objects, though. However, according to #76, there are only 8583 more ASes specified as origin than there are AutNum objects. This might be caused by a subset of ASes that have route objects but no AutNum objects.

I rg'ed 10 of them, they have routes in RADB, ARIN, JPIRR, ALTDB, LEVEL3, and get referred to as members in additionally RIPE, NTTCOM. So, they are not concentrated in a few registries.

I had a look at some of the ASes, they seem to be registered in the ARIN region (whois ASNUM) gets a response from whois.arin.net, but when we query the routing registry (whois -h rr.arin.net ASNUM) we do not get anything. It seems OK to consider these ASes as not having any rule.
@cunha e-mail Randy about what could this be.

The 5 I checked had entries on whois.arin.net, but not rr.arin.net, which I
think we should consider similarly to ASes not declaring any import/export
rue.
On Fri, Nov 10, 2023 at 9:25 PM Steven Hé (Sīchàng) <
@.***> wrote:

I rg'ed 10 of them, they have routes in RADB, ARIN, JPIRR, ALTDB, LEVEL3,
and get referred to as members in additionally RIPE, NTTCOM. So, they are
not concentrated in a few registries.
—
Reply to this email directly, view it on GitHub
https://github.com/SichangHe/internet_route_verification/issues/92#issuecomment-1806592256,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AACPO55IWGH2FCF4ULTMCKTYD3AXBAVCNFSM6AAAAAA7FTXYO2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBWGU4TEMRVGY
.
You are receiving this because you commented.Message ID:
@.***>

Factoring in the special case ratio (blank part for non-special cases):

Commit: https://github.com/SichangHe/internet_route_verification_meta/commit/f7bc65d2fee244eb55d27daaee8305d126c60854

Interestingly, some ASes have unrec_import_empty mixed with non-unrecorded cases, but not the other way round (export).
Those non-unrecorded cases have to be exports.

Latest plots.

AS-unrec-case-percentages-stacked-area-squared.pdf
AS-unrec-case-percentages-stacked-area.pdf

All RIBs.


Support for buffer input and output

This library seems to support files on disk. Is there any plan to support buffer as input and output files?

@NickNaso any thoughts on this?

@NickNaso I can fund development of this functionality if you have time availability. Please let me know.

Yeah it'd be great


github template does not work

Is there an existing issue?

[X] I have searched the existing issues

Experiencing problems? Have you tried our Discord first?

[X] This is not a support question.

Description of bug
I documentation we can find that new risczo project can be intialised by.
cargo risczero new my_project --template https://github.com/risc0/risc0-rust-starter
However when I try it :
cargo risczero new my_project --template https://github.com/risc0/risc0-rust-starter

error: unexpected argument '--template' found

  tip: to pass '--template' as a value, use '-- --template'

Steps to reproduce
As described above

We can update the docs here, but does the 'tip' work?


devmapper: Drop devices lock before returning from function

cleanupDeleted() takes devices.Lock() but does not drop it if there are
no deleted devices. Hence docker deadlocks if one is using deferred
device deletion feature. (--storage-opt dm.use_deferred_deletion=true).
Fix it. Drop the lock before returning.
Also added a unit test case to make sure in future this can be easily
detected if somebody changes the function.
Signed-off-by: Vivek Goyal<EMAIL_ADDRESS>

merged


PoC Commit

Code with four intents that can perform some basic tasks with Alexa

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Setup.py Errors Out Due to Incomplete Requirement Specifiers

Running pip install using the current setup.py leads to an error on my machine:
error in autorl-sweepers setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers; Expected end or semicolon (after name and no valid version specifier)
The install works on my machine if I replace '=' with '==' on lines 36, 37, and 41 for hydra_colorlog, hydra-submitit-launcher, and wandb.
Thanks for the awesome repo and paper!

Thanks for catching this and sorry it took so long - should be fixed in the pending PR.


Disable optimising batch norm as sequence of post ops on AArch64

MKL Tensorflow fuses batch normalisation with convolution by rewriting it as a sequence of four postops (subtraction, two multiplications and addition). When running convolution with postops using Arm Compute Library (ACL) this leads to poorer performance then running ACL convolution followed by ACL batch normalisation, because postops cannot be fused in ACL and are executed sequentially one after the other instead in a single step. This patch disables fusing batch normalisation with convolution as post ops on AArch64 to remove the performance bottleneck

Thank you for the PR. One nit for readability please.
cc: @TensorFlow-MKL FYI. (This shouldn't affect the x86 build.)

Thanks @penpornk  for letting us know.


Remove null from collection that's injected into constructor

I want to avoid few class objects omitted from the collection type in a constructor of a class.
Example,
A class constructor has IEnumerable parameter. This interface "InterfaceImplementor" has 2 class implementation. Using custom builder strategy I am allowing only 1 class object and omitting the other. After the constructor is created, the collection shows total 2 items with 1 object and the second as null.
Could this be fixed?
Solution: In UnityContainer.Resolution class file, the method ResolveArray adds objects in "list"object (Line 199, 201). Please provide null check here.
If this is the right approach could this be changed? Or please provide me a solution to my concern.
Thank you.

Please provide a Unit test demonstrating your problem

Hi,
I have attached the unit test. Kindly review and let me know if this is correct. The idea is to have a specific class with few collection items. If there is any other way to achieve this ,not through configuration/factory or any pattern, then please guide me.
CustomUnityContainerExtension.zip

Hello @ENikS ,
Did you get a chance to look into this issue? I am sure you might be busy, so please let me know if any other approach is possible or I shall wait for the new package. Thank you.

Unfortunately I don't have any time at the moment. I will be more available in September.

You need to modify your registrations so it does not produce null.  Unity treats 'null' as any other
type instance and considers it to be first class citizen of the container.


[Regression] Slider in TabBarView (multi children) triggered onChangeEnd when start dragging.

Steps to Reproduce

In 2.10.5, it is ok, but in 3.0 it occurs. Related #28115 #21069 .

Put a Slider in TabBarView's children;
Drag Slider's thumb, the onChangeEnd callback fired, and TabBarView scrolled;

Expected results:
TabBarView should not scrolled, and onChangeEnd should fired after dragging end rather than when dragging start.

Code sample
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({Key? key, required this.title}) : super(key: key);

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  double _value = 0;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text(widget.title)),
      body: DefaultTabController(
        length: 2,
        child: Column(
          children: [
            const TabBar(
              tabs: [Tab(text: '1'), Tab(text: '2')],
              labelColor: Colors.black,
            ),
            Expanded(
              child: TabBarView(
                children: [
                  const Center(child: Placeholder()),
                  Center(
                    child: Slider(
                      value: _value,
                      onChangeEnd: (value) => debugPrint('onChangeEnd: $value'),
                      onChanged: (value) {
                        debugPrint('onChanged: $value');
                        setState(() => _value = value);
                      },
                      onChangeStart: (value) {
                        debugPrint('onChangeStart: $value');
                      },
                    ),
                  ),
                ],
              ),
            ),
          ],
        ),
      ),
    );
  }
}

Logs

[✓] Flutter (Channel stable, 3.0.0, on macOS 12.3.1 21E258 darwin-arm, locale en-CN)
    • Flutter version 3.0.0 at /Users/yohom/fvm/versions/stable
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ee4e09cce0 (3 days ago), 2022-05-09 16:45:18 -0700
    • Engine revision d1b9a6938a
    • Dart version 2.17.0
    • DevTools version 2.12.2
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/yohom/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • ANDROID_HOME = /Users/yohom/Library/Android/sdk
    • Java binary at: /Users/yohom/Library/Java/JavaVirtualMachines/corretto-11.0.12/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment Corretto-<IP_ADDRESS>.2 (build 11.0.12+7-LTS)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.3.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)

[✓] IntelliJ IDEA Ultimate Edition (version 2021.3.3)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 67.1.3
    • Dart plugin version 213.7371

[✓] IntelliJ IDEA Community Edition (version 2021.2.4)
    • IntelliJ at /Volumes/yohom/private/mac_app/app/IntelliJ IDEA CE.app
    • Flutter plugin version 63.3.3
    • Dart plugin version 212.5632

[✓] IntelliJ IDEA Ultimate Edition (version 2021.2.4)
    • IntelliJ at /Volumes/yohom/private/mac_app/app/IntelliJ IDEA.app
    • Flutter plugin version 64.1.3
    • Dart plugin version 212.5632

[✓] VS Code (version 1.67.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.40.0

[✓] Connected device (3 available)
    • MIX 3 (mobile)              • 84abad0c      • android-arm64  • Android 10 (API 29)
    • sdk gphone64 arm64 (mobile) • emulator-5554 • android-arm64  • Android 12 (API 31) (emulator)
    • Chrome (web)                • chrome        • web-javascript • Google Chrome 101.0.4951.64

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

This should be already fixed by #103569 CC @jonahwilliams

Duplicate of https://github.com/flutter/flutter/issues/103662


Prepare command-bot scripts to work in monorepo

Prepare command-bot scripts to work in monorepo & runtimes in fellowship
What's gonna change

polkadot & cumulus runtimes are moved to https://github.com/polkadot-fellows/runtimes
polkadot/cumulus/substrate will be merged to one repository (something like polkadot-monorepo)

How will it impact command-bot?
Since the runtimes are moved out to fellowship org, as stated in forum post, the only thing to test try-runtime and benchmark remains substrate dev pallet. So scripts for substrate have to be updated to run it from monorepo considering the subfolder "substrate" from root of repo + the paths for weights
Then the moved out runtimes also have weights and need to be re-calculated from time to time. This is what Basti suggests on related thread

Basti: When it comes to benchmarking, I don’t think that the benchmarking machines need to be under control of the fellowship. The nice property of our benchmarking system is that all the weights are in Rust files, which means someone can make a pr to update them. So, on some regular basis (could also be done by some external bot) there will be a pull request to the fellowship repo. This pull request will propose to use the given new weights and explain on what kind of machine the benchmarking was executed. The fellowship members will then be able to re-execute the benchmarking and ensure that they are correct (or just trust the pull request as it is done by some known community member/bot :P). This means that we don’t need any benchmarking machinery in control of the fellowship.

Indeed, if we could fork the runtimes repo to paritytech org, we could add an automation for regular run of the command-bot, which can be called to recalculate all (or any) weights, and then automatically create a PR from fork to upstream with updated weights. This could be done as github action which runs periodically, and if needed could be started manually
To summarize the changes:

some https://github.com/paritytech/command-bot-scripts/ will have to be updated

substrate presets:

presets: change repo to 'polkadot-monorepo'.
update weight paths in bash

polkadot/cumulus presets:

repo to 'runtimes'
update weight paths in bash

install comman-bot (https://github.com/organizations/paritytech/settings/apps/try-runtime-bot) to:

paritytech/runtimes
paritytech/polkadot-monorepo (or whatever the reponame)

Did quick pre-investigation and formed steps in description


Add IPv6 Support

the current version 0.1.1 only supports IPv4, the tool has some functions that scans the network looking for connected hosts then forges fake ARP replies to intercepts packets, I used scapy (a packet manipulation module) and netifaces, it would be great if the tool supports IPv6.

IPv6 doesn't use ARP but the NDP. I will see if implementing everything is possible and refactor the codebase as well if that's okay.

Thanks for mentioning NDP, I didn't know about it, and since it's a different protocol, I think it's a good idea to separate the implementation of ARP from NDP and allow the user to choose between two options when launching the tool eg. --ipv4 or --ipv6.


sqlite3.OperationalError: no such function: JSON_VALID

Describe the bug
SQLite3 is reporting the 'no such function: JSON_VALID' error message when starting a project.
=> Database and media directory:  /root/.local/share/label-studio
Initializing database..
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 82, in _execute
return self.cursor.execute(sql)
File "/usr/local/lib/python3.6/site-packages/django/db/backends/sqlite3/base.py", line 411, in execute
return Database.Cursor.execute(self, query)
sqlite3.OperationalError: no such function: JSON_VALID
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/bin/label-studio", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.6/site-packages/label_studio/server.py", line 238, in main
_apply_database_migrations()
File "/usr/local/lib/python3.6/site-packages/label_studio/server.py", line 57, in _apply_database_migrations
call_command('migrate', '--no-color', verbosity=0)
File "/usr/local/lib/python3.6/site-packages/django/core/management/init.py", line 168, in call_command
return command.execute(*args, **defaults)
File "/usr/local/lib/python3.6/site-packages/django/core/management/base.py", line 371, in execute
output = self.handle(*args, **options)
File "/usr/local/lib/python3.6/site-packages/django/core/management/base.py", line 85, in wrapped
res = handle_func(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/django/core/management/commands/migrate.py", line 245, in handle
fake_initial=fake_initial,
File "/usr/local/lib/python3.6/site-packages/django/db/migrations/executor.py", line 117, in migrate
state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial)
File "/usr/local/lib/python3.6/site-packages/django/db/migrations/executor.py", line 147, in _migrate_all_forwards
state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
File "/usr/local/lib/python3.6/site-packages/django/db/migrations/executor.py", line 227, in apply_migration
state = migration.apply(state, schema_editor)
File "/usr/local/lib/python3.6/site-packages/django/db/migrations/migration.py", line 124, in apply
operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
File "/usr/local/lib/python3.6/site-packages/django/db/migrations/operations/models.py", line 92, in database_forwards
schema_editor.create_model(model)
File "/usr/local/lib/python3.6/site-packages/django/db/backends/base/schema.py", line 324, in create_model
self.execute(sql, params or None)
File "/usr/local/lib/python3.6/site-packages/django/db/backends/base/schema.py", line 142, in execute
cursor.execute(sql, params)
File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 66, in execute
return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
return executor(sql, params, many, context)
File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
return self.cursor.execute(sql, params)
File "/usr/local/lib/python3.6/site-packages/django/db/utils.py", line 90, in exit
raise dj_exc_value.with_traceback(traceback) from exc_value
File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 82, in _execute
return self.cursor.execute(sql)
File "/usr/local/lib/python3.6/site-packages/django/db/backends/sqlite3/base.py", line 411, in execute
return Database.Cursor.execute(self, query)
django.db.utils.OperationalError: no such function: JSON_VALID
To Reproduce
Steps to reproduce the behavior:

sudo /usr/local/bin/label-studio start NEW_PROJECT --init

Environment:

OS: RHEL 7.9
Label Studio Version 1.0.0
SQLite 3.8.3
Python 3.6.8
Django 3.1.4

As far as I remember the minimal working SQLite version is 3.35, but you have 3.8.

I had SQLite 3.7.1 working with the previous release (Label Studio 0.9.1.post1), but then Django 3.1.4 gave an error that SQLite 3.8.3 or later is required after upgrading to Label Studio 1.0.0.

@dalekube yes, LS 0.9 didn't use sqlite at all.

The fast solution is to use our docker with LS

Thank you, @makseq. I downgraded SQLite to the latest stable version (3.35.2) and everything worked as expected. Great work with the 1.0 release!

Hello, I am having the exact same issue. It seems that SQLite is bundled with Django and I cannot seem to get this working even with different versions of the dependencies. Here are my versions I am using. Any help would be appreciated:

Django: 3.1.13
LS: 1.4
Python: 3.8.10
OS: Windows 7

I found the issue with Django here: https://code.djangoproject.com/wiki/JSON1Extension. My Python version (3.8.10) does not include the SQLLite JSON1 extension by default. Switching out the sqlite DLLs fixed the issue. Thank you

Hi,
I also have same error, but if i want compile it in CI/CD is it allowed to change the extension?

just replace sqlite dll file to the correct one - e.g.: https://github.com/heartexlabs/label-studio/blob/master/.github/workflows/tests.yml#L266


Support install without sudo permissions?

Is it possible to have an install route without the need for sudo?

shall i take this issue?

@UchihaSR feel free! But I still don't know what path we should use in this case

@quadebroadwell if you use oh-my-zsh, checkout the PR that I submitted yesterday, it will let you use navi as a widget without having to do a system-wide install.
Alternatively, you can just git clone navi and manually set your PATH to include navi's directory in your dotfiles.
# .zprofile or similar
export PATH="$PATH:/path/to/navi/repo"

You can then manually update using git pull.


Basic OWS Context implementation for ATOM XML and GeoJSON encodings

Basic OWS Context implementation for ATOM XML and GeoJSON encodings.
It is possible to read/parse OWS Context documents in both ATOM XML and GeoJSON formats.
http://www.owscontext.org/
owc atom decode ATOM/XML encode and decode works except automatic geometry/bbox object representation, might not be needed so extensive support (would require extensive GEOJSON and GML parsing, which doesn't seem to be the immediate focus of OWSlib her)

I wasn't able to provide you with any sort of feedback on this. We'll test in the summer and get back to you.

@tomkralidis I'm not to much familiar with OWSContext yet so I can't give a good review by myself. Shall we wait until a review is done before we accept this PR? Or shall we merge it (when it technically works) and mark it as alpha in the docs?
@allixender @tomkralidis Not sure how strict we want to be. Usually we would like to have PRs with one or just a few commits (I have learned that in pywps). But I could also do a "squash" merge in this case.
@allixender Are all the example resources needed?

@cehbrecht thanks for the info.  This is a significant piece of work.  IMHO I took a quick and am +1 to merge and it appears to be a fulsome implementation.  +1 to mark alpha (or beta)?
I would also squash the merge into a single commit so we can revert if needed in a clean manner.

@allixender Would you like to update the docs with OWS Context and mark it something like alpha/beta/in-review? Some modules just reference a doctest for documentation. I can "squash" merge the PR then.

@cehbrecht Where are the docs actually and how are they build? Happy to add examples to docs and add the beta/review text.
@cehbrecht  "Are all the example resources needed?", no actually not, I thought people might be interested as there are currently not many example files available in the web. I can of course reduce to a handful each, 3-5?
@tomkralidis Good hint with the "one commit", after I updated the docs I can create a new pull request with one commit/or Carsten does it?

@allixender The docs are just here:
https://github.com/geopython/OWSLib/blob/master/docs/en/index.rst
You can add the OWS Context to the standards list. Some of the other modules only reference a doctest for documentation. I leave this to you :)
I will do a "squash" merge on github of your pull request ... it will be only one commit in the master. So, you don't need to worry ... you can continue to commit to the current PR.
If the examples are created by you and/or not available elsewhere then better keep them. I thought we could reference some external examples in the docs.

@cehbrecht Added the docs and other recommendations. I tried a rebase locally, but I am not sure if I did it right (doesn't look like it in the PR). I'd appreciat if you still could correct the squashing etc.
Looking forward.
Cheers,
Alex

done :) Thanks @allixender.
I had to restart the test-suite several times to get finally a green light.

Again, just checking if discussion from https://github.com/geopython/pywps/issues/322 should be ported here. We now have official and current OWS Context files from OGC testbed that could be used. Here at CRIM we can't help much in the next 4 to 6 weeks.