Two tesseract commands at the same time blocks each other from finishing

Environment

Tesseract Version:  4.1.0
Platform:  Ubuntu 18.04

Current Behavior:
Running two tesseract commands at the same time blocks each other from finishing.
If I run just one tesseract command it finishes in 2 seconds.
If I run two at the same time it doesn't finish for more then 20 seconds, if I cancel one then the other finishes immediately.
Expected Behavior:
Not to block each other from execution.
Suggested Fix:
Don't know.

Try running it as
OMP_THREAD_LIMIT=1  tesseract

I have found that while openmp is useful during lstmtraining it slows down lstmeval and tesseract on my system. My workaround has been to use OMP_THREAD_LIMIT=1 before the command.
If you don't plan to do training, you can try to build tesseract with --disable-openmp config option.

Also see https://github.com/tesseract-ocr/tesseract/issues/943

OMP_THREAD_LIMIT=1 seems to be solution, thank you.


fix(host): avoid panic when params is nil

What this PR does / why we need it:

[x] Smoke testing completed
[ ] Unit test written

If yes, write the release branches name in the below format and submit the related cherry-pick PR:

release/3.6

/area host
/cc @zexi

Codecov Report

Merging #11289 (4da6c96) into master (7c6e861) will decrease coverage by 1.53%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master   #11289      +/-   ##
==========================================
- Coverage    5.81%    4.27%   -1.54%
==========================================
  Files         903      373     -530
  Lines      139268    73926   -65342
==========================================
- Hits         8094     3159    -4935
+ Misses     130467    70557   -59910
+ Partials      707      210     -497

Flag
Coverage Δ

aFlag
4.27% <ø> (-1.54%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

pkg/appsrv/response.go
64.40% <0.00%> (-3.39%)
:arrow_down:

pkg/mcclient/options/k8s/secret.go

pkg/multicloud/aws/keypair.go

pkg/util/stringutils2/i18n.go

pkg/multicloud/esxi/datacenter.go

pkg/mcclient/options/k8s/storageclass.go

pkg/multicloud/aws/zone.go

pkg/compute/baremetal/diskconfig.go

pkg/webconsole/command/ssh_command.go

pkg/compute/guestdrivers/utils.go

... and 521 more

Continue to review full report at Codecov.

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


fix: PostList overlapping view correction

What type of PR is this? (check all applicable)

[x] 🐛 Bug Fix

Description

This PR fixes the bug that shows up on mobile view when you switch from grid view to list view. The cards start to overflow out of the screen and it makes it look weird. I have made the necessary correction and everything looks fine now
Related Tickets & Documents

Fixes #53
Mobile & Desktop Screenshots/Recordings

Screenshot of what my change looks like

Added tests?

[x] 🙅 no, because they aren't needed

Added to documentation?

[x] 🙅 no documentation needed

cc @bdougie

LGTM, thank you for your contribution! Just needs merge with main branch 🍕

Hello @0-vortex
I have resolved all merge conflicts and passed all the necessary checks
The PR is good to go


[Bots][versionupdatefrombetatov1.0][1509329]

Updated the version from beta to v1.0 for information AppCatalog, Managing Apps for  a user/ a team in the document.

Docs Build status updates of commit cf53d39:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

msteams-platform/graph-api/proactive-bots-and-messages/graph-proactive-bots-and-messages.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel

@aosolis - Have updated the document based on the following task requirement:
https://domoreexp.visualstudio.com/MSTeams/_workitems/edit/1508385
Request you to review and provide your comments / approval on the PR.
Thank you.

@Wajeed-msft - please review and provide inputs / approval for the PR.
Thank you.


Integrate ESLint into Workflow?

Perhaps it's a good idea to add ESLint to deliberation-empirica so that we can catch typos and other compile bugs more easily and also standardize our code style to make it easy for fall RA's to take over.
Here are some options for style guides to use with ESLint:

airbnb style

Probably the most popular style guide, very comprehensive and most rules are reasonable
Used in CIS350, CIS197
https://github.com/airbnb/javascript

eslint-plugin-react

Styling plugin specifically for react
Probably should use this in conjunction with other JS main guides we choose
https://www.npmjs.com/package/eslint-plugin-react

eslint-plugin-cypress

Released by cypress, useful for getting suggestions in writing cypress tests
https://www.npmjs.com/package/eslint-plugin-cypress

JS Standard Style

minimal style guide, but can autoformat any styling issues on its own without eslint
https://standardjs.com/
https://www.npmjs.com/package/eslint-config-standard

Google Style

style guide used by Google dev team
plugin has not been updated since 2020
https://github.com/google/eslint-config-google

Thoughts on which to use? I can take care of the setup work.

Use in CIS350 is a big plus from a dev perspective. Are the options mutually exclusive? Ie, can we use 1,2 and 3 together?
Also, what will this require everyone to do? I assume there will be a Github PR check involved, and some tooling setup on everyone's dev machine?
If the tooling setup is significant, we might consider ending the summer with a final PR to get everything in the proper style, and then requiring it going forwards?

1,2,3 can be used together. 1, 4, 5 are mutually exclusive.
There will be 1 PR required to include eslint in package.json and to add a eslint config file.
As for individual setup, all that is required is the installation of the ESLint extension on VSCode, and to install the relevant eslint packages through npm install. (This would need to be installed locally, not through docker)
I would personally recommend installing eslint package globally npm install -g eslint, but if that proves too much work, a project-specific installation can be easily achieved by just running npm install.

to install the relevant eslint packages through npm install. (This would need to be installed locally, not through docker)

What folder would they live in? why can't they be on docker? Currently, only cypress has npm installs locally...

We have decided on implementing ESLint, using a combination fo 1+2+3.
The issue will remain open as an ongoing discussion of specific rules that might want to be enforced/disabled.

linebreak-style
I decided to disable this rule because github by default uploads to remote with crlf line endings, so it doesn't make sense to enforce lf endings
semi
Should we enforce semicolons at end of every statement or no? It doesn't matter to the compiler
quotes
This rules enforces single quotes arround strings. I personally like this one because it helps avoid silly errors like forgetting to escape double quotes, but thoughts?
import/prefer-default-export
This rules enforces the use of default export export default function smth { when there is only one export in the file. I've been using this one in the past, but I guess there is also an argument that it is harder to mess up imports if every import is wrapped in object destructuring syntax
object-curly-newline
This one is interesting. https://eslint.org/docs/latest/rules/object-curly-newline The default complains when a object has 3+ attributes and wants you to add line breaks. I'm guessing the argument for this rule is that when objects get too long, it might be hard to read what's in the object and what's not at a quick glance, or just to prevent the line from getting too long. I don't feel strongly either way about this one. One option we can do is to just set it to check for consistency (content and braces all on the same line or content and braces each on their own line)

can ignore crlf
yes enforce semicolons
yes enforce single quotes
ambivalent? Prefer named exports to default exports.
I like multiline: https://eslint.org/docs/latest/rules/object-curly-newline#multiline

Nicolas recommends "prettier". You can add it as a hook. "Husky" is a good tool to run before commits (on hooks).
Add prettier as a dev dependency in package.json, set it up as a pre-commit hook.
One of our objective functions is giving coders fast feedback so that they can learn how to be better coders. If we just used an automated tool that did formatting for you, we'd get nice code, but we might not develop as much as coders. Having ESLint enforce a style in a way that is really visible to the coder makes sense. Not sure if we also need prettier as well, in that case.

closed by https://github.com/Watts-Lab/deliberation-empirica/pull/251


Add a page that lists packages published by a single author

We currently have /packages/author/package and /packages/author/package/version. It'd be nice to have /packages/author as well.

Hi, you can use this thing in a meantime:
https://elm.pravdomil.com/packages/
And search for "rl-king/".


[PE-D] Deleting an employee when there is a task assigned to him/her.

Currently, there is some functionality bug for deleting an employee. If an employee still has a task assigned to him/her, the employee can still be deleted.
For example:
Assigning Alex Yeoh to Review Monthly Finance KPI

Deleting Alex Yeoh subsequently

This is a feature flaw, because an employee with still a task assigned shouldn't be able to be deleted? Perhaps there should be a check to show an error if an employee still has tasks but is being deleted.

Labels: severity.Medium type.FeatureFlaw
original: yuqitanyq/ped#4

The intension of this feature is working as intended. A manager can fire his own employee hence through this command we  unassign all the task that was previously assigned to the fired employee.
But thank you for the feature suggestion. We will take this into consideration after v1.4.


Training loss is negative

Hi @sihyun-yu,
I have applied the idea of your work on my DiT model and found that my training loss is becoming negative after several training steps. Did you see similar situation in your model training and is this normal? Do I need to scale down the value of proj-coeff?

Hi, it is natural because they are defined as a negative cosine similarity.


Cu mzdawp drone that moves through the level using waypoints

Task linked: CU-mzdawp Drone that moves through the level


fix: Replaces periods in email with underscores when creating a username.

Closes #350.

Updated PR title to match conventional commits.


Activity

Is this project dead?

The last release was 1 year ago
There are opened pull requests and people willing to improve/use it

We need at least to update the dependencies over here and fix the debugger thing.
I can create a pull request to update the dependencies only and another to remove any dependency on debuggers as mentioned here.
cc/ @nixme

@nixme Would it be better to give @plribeiro3000 commit access so that we don't have two forks being maintained of this project?

(trying to decide whether to switch to jazz_fingers or if this project will ever get updated again.


[BUG] Start of a spectated game, replay or live and it Crashes

Describe the bug
The app crashes whenever I start spectating a live game or I start a replay (In the case of replays, it even crashes league of legends)
To Reproduce
Steps to reproduce the behavior:

Turn on Essence (Client Connected)

Spectate a Live Game

Crash occurs

Start a replay

Whenever the game start and some time elapses, it sometimes crashes.

Expected behavior
It should not crash and work as expected, as before the last update.
Material
Crash Logs:
Crash-2021-07-21-19-26.log
Crash-2021-07-21-19-34.log
Logs:
Log-2021-07-21-19-14.log
Log-2021-07-21-19-33.log
Log-2021-07-21-19-34.log
Desktop (please complete the following information):

Windows 10

Additional Information
It may be unrelated but the spectator, seems to also crash whenever I put the mouse over the timeline of the game.

Can you send me the replay file you used?
I have a theory but no good way to test it without the specific replay

Okay. I will send it.
EUW1-5378141950.zip

Just watched the full game with both exp tab and gold graph open without issue.
Does it crash for you every time you open the game?

Just watched the full game with both exp tab and gold graph open without issue.
Does it crash for you every time you open the game?

The issue has not to do with either of those graphs. The issue is that when the mouse hovers on the timeline of the replay, it makes the replay crash.
When having the program not started, it doesn't crash neither causes any problems.

if the game crashes while you do something in game, that isnt a problem with this. Seems like a patch/installation/PC issue.
Cannot reproduce


Codelens Freezes when double clicking in the codelens view.

Issue Type: Bug
Open any project that has language support for reference counting and codelens, click on one of the 2 references (or any number) links to open a Codelens view. Edit something in the codelens view (like add a comment, or anything really) and do not save. Now double click in the codelens view, to go to the file in full view mode.
Expected results: takes you to the file, leaving codelens.
Actual result: codelens glitches out and stops being interactable, cannot be closed, and often glitches out line numbers in the reference display. It also prints this in the corner if I try to close the codelens view clicking a reference count link:
Cannot read property 'getStartPosition' of null.
and if I press escape:
Cannot read property 'getStartPosition' of null
Doing a vs-code soft reload (reload command) fixes the bugged out codelens view, but the line number references are all garbled and highlight non-matching things, not the actual references. This persists past saves and soft reloads, the only way to fix is to actually quit the app and open it again. I did not file separate issues for these two problems (window being frozen, and line numbers being off) because they seem to have the same root cause: codelens not working properly with unsaved file modifications.
VS Code version: Code 1.21.1 (79b44aa704ce542d8ca4a3cc44cfca566e7720f1, 2018-03-14T14:39:09.335Z)
OS version: Darwin x64 17.4.0

System Info

Item
Value

CPUs
Intel(R) Xeon(R) W-2140B CPU @ 3.20GHz (16 x 3200)

Load (avg)
1, 1, 1

Memory (System)
32.00GB (18.28GB free)

Process Argv
/Applications/Visual Studio Code.app/Contents/MacOS/Electron

Screen Reader
no

VM
0%

Extensions (11)

Extension
Author (truncated)
Version

haskelly
UCL
0.4.29

idris-highlighting
arc
0.0.2

code-runner
for
0.9.3

language-haskell
jus
2.4.0

python
ms-
2018.2.1

cpptools
ms-
0.15.0

csharp
ms-
1.14.0

shader
sle
1.1.2

cmake
twx
0.0.17

cmake-tools
vec
0.10.4

Idris
zjh
0.9.8

Reproduces only with extensions

Can you attach the stack trace that printed onto the console (F1 > Developer Tools > Console) or even better, select 'Break on all errors' in F1 > Developer Tools > Sources and provide the full trace and source (screen shot is enough) when this happens. Thanks

Here it is:

Thanks

Thanks. That's a good stack trace but it seems to come from the suggest widget... In your original comment you mentioned getStartPosition is called on null. Can you also reproduce that?

Sure! Im not sure what the suggest widget is, but if I hit resume execution it immediately errors again and yields the stack trace you are looking for:

Thanks.

I was able to reproduce but I have pushed code to prevent the getStartPosition error from happening. Please try soon again with insiders. Leaving the suggest widget to @ramya-rao-a


Created a migration and the command get_prefix

The PR is good, there are just some few comments easily fixable. As soon you fix them, we merge it <3


build: Support building without a version number.

If I download the ZIP file from the GitHub homepage, and try to build with -DBUILD_SHARED_LIBS=TRUE:
curl -L -o uvgRTP-master.zip https://github.com/ultravideo/uvgRTP/archive/refs/heads/master.zip
unzip uvgRTP-master.zip
cd uvgRTP-master
mkdir build ; cd build
cmake -DBUILD_SHARED_LIBS=TRUE ..
make

I get the following error:
[  2%] Built target uvgrtp_version
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/uvgrtp.dir/build.make CMakeFiles/uvgrtp.dir/depend
CMakeFiles/uvgrtp.dir/build.make:560: *** missing separator.  Stop.
make[2]: *** [CMakeFiles/uvgrtp.dir/all] Error 2

Looking at line 560 of CMakeFiles/uvgrtp.dir/build.make, I see:
libuvgrtp.2.0.1;+;-;+.dylib: CMakeFiles/uvgrtp.dir/src/clock.cc.o

";+;-;+" is added by this line in cmake/Versioning.cmake:
else()
    set (LIBRARY_VERSION ${PROJECT_VERSION} + "-" + ${uvgrtp_GIT_HASH})

because uvgrtp_GIT_HASH is not defined. So I fix that and now CMake builds these libraries:
uvgRTP-master/build/libuvgrtp.dylib
uvgRTP-master/build/libuvgrtp..dylib
uvgRTP-master/build/libuvgrtp.2.dylib

So I changed CMakeLists.txt to only set the target property SOVERSION conditionally (when LIBRARY_VERSION is known).

Oops I just realized that's what RELEASE_COMMIT is for. Nevermind.


💭 Capturing iPhone photos in max resolution

Question
Not sure if this is a bug, a feature request, or a question, sorry!

On an iPhone 14 Pro or 15 Pro, I can enable resolution control in the camera settings. This allows me to take 24 or 48MP photos in HEIF or JPEG using the wide angle camera. But when I pass an array of physical devices in vision camera, like this:

const physicalDevices =
        cameraPosition === 'back'
            ? [
                  'ultra-wide-angle-camera',
                  'wide-angle-camera',
                  'telephoto-camera',
              ]
            : ['wide-angle-camera']
    const device = useCameraDevice(cameraPosition, { physicalDevices })

There is no format available with a resolution higher than 3024x4032. However, when I include only wide-angle-camera in the physicalDevices array, more formats are available, including some with 6048x8064 resolution. Is this expected? Is it possible to use a multi-camera device but still use the 48MP resolution when the wide angle camera is active?

When I pass only wide-angle-camera and select the highest resolution format, which looks like this:

autoFocusSystem: "phase-detection"
fieldOfView: 72.044113
maxFps: 30
maxISO: 12320
maxZoom: 189
minFps: 1
minISO: 55
photoHeight: 6048
photoWidth: 8064
pixelFormats: (9) ['yuv', 'yuv', 'rgb', 'unknown', 'yuv', 'unknown', 'yuv', 'unknown', 'rgb']
supportsDepthCapture: false
supportsPhotoHdr: false
supportsVideoHdr: false
videoHeight: 3024
videoStabilizationModes: (2) ['auto', 'off']
videoWidth: 4032

xcode logs this when I initialize the camera:
VisionCamera.configureFormat(configuration:device:): Configuring Format (8064x6048 |<EMAIL_ADDRESS>(ISO: 55.0..12320.0, Pixel Formats: [VisionCamera.PixelFormat.yuv, VisionCamera.PixelFormat.yuv, VisionCamera.PixelFormat.rgb, VisionCamera.PixelFormat.unknown, VisionCamera.PixelFormat.yuv, VisionCamera.PixelFormat.unknown, VisionCamera.PixelFormat.yuv, VisionCamera.PixelFormat.unknown, VisionCamera.PixelFormat.rgb]))...
VisionCamera.configureFormat(configuration:device:): Successfully configured Format!
VisionCamera.onSessionInitialized(): Camera initialized!

But the result of Camera.takePhoto (taken at neutral zoom) only has 3024x4032 resolution. Is this expected? Is it possible to take photos in higher resolution?
Here are the xcode logs when I take the photo:
VisionCamera.takePhoto(options:promise:): Capturing photo...
VisionCamera.didSetProps(_:): Updating 1 props: [isActive]
VisionCamera.configure(_:): configure { ... }: Waiting for lock...
VisionCamera.configure(_:): configure { ... }: Updating CameraSession Configuration... Difference(inputChanged: false, outputsChanged: false, videoStabilizationChanged: false, orientationChanged: false, formatChanged: false, sidePropsChanged: false, torchChanged: false, zoomChanged: false, exposureChanged: false, audioSessionChanged: false)
CGAffineTransformInvert: singular matrix.
{ width: 4032,
  metadata:
   { Orientation: 6,
     DPIWidth: 72,
     '{Exif}':
      { DateTimeOriginal: '2024:03:07 20:05:21',
        ExposureTime: 0.011111111111111112,
        FNumber: 1.7799999713897705,
        LensSpecification:
         [ 6.764999866485596,
           6.764999866485596,
           1.7799999713897705,
           1.7799999713897705 ],
        ExposureBiasValue: 0,
        ColorSpace: 1,
        OffsetTimeDigitized: '-05:00',
        BrightnessValue: 3.2894448964615726,
        ExposureMode: 0,
        LensModel: 'iPhone 15 Pro back camera 6.765mm f/1.78',
        SceneType: 1,
        ExposureProgram: 2,
        SensingMethod: 2,
        ShutterSpeedValue: 6.48383958192882,
        SubjectArea: [ 2013, 1511, 2116, 1330 ],
        ApertureValue: 1.6637544360060017,
        SubsecTimeDigitized: '879',
        LensMake: 'Apple',
        FocalLength: 6.764999866485596,
        SubsecTimeOriginal: '879',
        PixelYDimension: 3024,
        ISOSpeedRatings: [ 125 ],
        WhiteBalance: 0,
        DateTimeDigitized: '2024:03:07 20:05:21',
        OffsetTimeOriginal: '-05:00',
        ExifVersion: '0232',
        PixelXDimension: 4032,
        OffsetTime: '-05:00',
        Flash: 16,
        CompositeImage: 2,
        FocalLenIn35mmFilm: 24,
        MeteringMode: 5 },
     DPIHeight: 72,
     '{MakerApple}':
      { '1': 14,
        '2': null,
        '3':
         { timescale:<PHONE_NUMBER>,
           epoch: 0,
           value:<PHONE_NUMBER>6833,
           flags: 1 },
        '4': 1,
        '5': 187,
        '6': 184,
        '7': 1,
        '8':
         [ 0.001691519864834845,
           -0.9887068271636963,
           -0.14766597747802734 ],
        '12': [ 0.4609375, 1.0625 ],
        '13': 18,
        '14': 0,
        '16': 1,
        '20': 10,
        '23': 5251108,
        '25': 2,
        '31': 0,
        '32': 'E996A6DC-C68B-4668-81BA-5E3D1C7BEF66',
        '33': 1.0099999904632568,
        '35': [ 56, 268435550 ],
        '37': 4238,
        '38': 3,
        '39': 43.61827850341797,
        '40': 1,
        '43': '134578D5-C74C-4431-B39F-B3CF69916EC5',
        '45': 3367,
        '46': 1,
        '47': 117,
        '48': 0.009671603329479694,
        '51': 4096,
        '52': 4,
        '53': 3,
        '54': 654,
        '55': 8,
        '56': 44,
        '57': 0,
        '58': 0,
        '59': 0,
        '60': 4,
        '61': 93,
        '63': 1,
        '64': { '0': 1, '1': 0, '2': 0 },
        '65': false,
        '66': false,
        '67': 0,
        '68': 0,
        '69': 0,
        '70': 0,
        '72': 0,
        '73': 0,
        '74': 2,
        '77': 43.896392822265625,
        '78':
         { '1': 1,
           '2':
            [ { '2.1': 89.58319091796875, '2.2': 65408 },
              { '2.1': 0, '2.2': 16 } ] },
        '79': 0,
        '82': 1,
        '83': 1 },
     '{TIFF}':
      { ResolutionUnit: 2,
        Software: '17.4',
        Make: 'Apple',
        DateTime: '2024:03:07 20:05:21',
        XResolution: 72,
        HostComputer: 'iPhone 15 Pro',
        Model: 'iPhone 15 Pro',
        YResolution: 72 } },
  height: 3024,
  isMirrored: false,
  thumbnail: null,
  path: '/private/var/mobile/Containers/Data/Application/18A5B58A-7804-4581-8673-36FF41BA6D59/tmp/ReactNative/13D5CB20-1E4B-42CC-A0F0-1C68EDA9988A.jpeg',
  isRawPhoto: false,
  orientation: 'landscape-right' }

What I tried
No response
VisionCamera Version
3.9.1
Additional information

[X] I am using Expo
[X] I have read the Troubleshooting Guide
[X] I agree to follow this project's Code of Conduct
[X] I searched for similar questions in the issues page as well as in the discussions page and found none.

High res would be RAW, I think.

48 MP is HEIF - 24 MP is JPEG.
Currently only JPEG is supported, HEIF isn't.
Then it's not RAW but rather HEIF that needs to be supported.
Can you create a feature request?


Setting option defaults

We should make our option defaults all be set in index.js, if possible. It's getting too scattered and confusing (all the files except Writer.js change the options)

I was just thinking about this actually. I think eventually it will become several smaller modules #22
So for each small modules they will have their defaults set. For this module, as a wrapper, will also have defaults set.

:+1: best case scenario accomplished

:+1: best case scenario accomplished
I love the work you're doing btw Steve.  All good stuff. you've actually inspired me to finally pull down the latest and fix a few things that have been bugging me!

Thanks @ajoslin :smile:

Please checkout the rewrite on the master branch and see if the problem still exists. Thanks.


Axum and Actix Integrations Do Not Properly Handle Windows Directory Style

When building examples todo-app-sqlite and todo-app-sqlite-axum on Windows the buttons generate with function names which are different than the integration handlers expect:
(actix) handle_server_fns()
(axum) handle_server_fns()
Actix:
When placing this line on line 50 in the integrations lib.rs:
println!("landed at handle_server_fns, looking for {path}");

The following output is generated:
landed at handle_server_fns, looking for examples/todo-app-sqlite/src/todo.rs-add_todo
landed at handle_server_fns, looking for examples/todo-app-sqlite/src/todo.rs-get_todos

Axum:
When placing this line on line 50 after / is removed in the integrations lib.rs:
println!("landed at handle_server_fns, looking for {fn_name}");

The following output is generated:
2022-12-01T02:33:01.373Z DEBUG [hyper::proto::h1::io] parsed 17 headers
2022-12-01T02:33:01.373Z DEBUG [hyper::proto::h1::conn] incoming body is content-length (4 bytes)
2022-12-01T02:33:01.374Z DEBUG [hyper::proto::h1::conn] incoming body completed
landed at handle_server_fns, looking for examplestodo-app-sqlite-axumsrctodo.rs-delete_todo
Body: b"id=4"
2022-12-01T02:33:01.377Z DEBUG [hyper::proto::h1::io] flushed 132 bytes
2022-12-01T02:33:01.380Z DEBUG [hyper::proto::h1::io] parsed 17 headers
2022-12-01T02:33:01.380Z DEBUG [hyper::proto::h1::conn] incoming body is empty
landed at handle_server_fns, looking for examplestodo-app-sqlite-axumsrctodo.rs-get_todos
Body: b""

Relevant lines only for clarity:
landed at handle_server_fns, looking for examplestodo-app-sqlite-axumsrctodo.rs-delete_todo
landed at handle_server_fns, looking for examplestodo-app-sqlite-axumsrctodo.rs-get_todos

Merged your PR fixing it. Thanks so much!


Issue repro: different vscode order in completion entries

Demonstration that completion entries appear in vscode in an order different than the order in which tsserver sent them, given that their score and sortText is the same.
Code to complete:
interface IFoo {
    bar(x: number): void;
    foo(y: string): string;
}

const obj: IFoo = {
    |
}

Order of entries in the tsserver logs:

non-snippet bar
snippet bar
non-snippet foo
snippet foo
JSON:

"entries": [
        {
            "name": "bar",
            "kind": "method",
            "kindModifiers": "",
            "sortText": "11"
        },
        {
            "name": "bar",
            "kind": "method",
            "kindModifiers": "",
            "sortText": "11",
            "insertText": "bar(x: number): void {\r\n    $0\r\n},",
            "isSnippet": true,
            "source": "ObjectLiteralMethodSnippet/",
            "sourceDisplay": [
                {
                    "text": "bar",
                    "kind": "text"
                },
                {
                    "text": "(",
                    "kind": "punctuation"
                },
                {
                    "text": "x",
                    "kind": "parameterName"
                },
                {
                    "text": ":",
                    "kind": "punctuation"
                },
                {
                    "text": " ",
                    "kind": "space"
                },
                {
                    "text": "number",
                    "kind": "keyword"
                },
                {
                    "text": ")",
                    "kind": "punctuation"
                },
                {
                    "text": ":",
                    "kind": "punctuation"
                },
                {
                    "text": " ",
                    "kind": "space"
                },
                {
                    "text": "void",
                    "kind": "keyword"
                }
            ]
        },
        {
            "name": "foo",
            "kind": "method",
            "kindModifiers": "",
            "sortText": "11"
        },
        {
            "name": "foo",
            "kind": "method",
            "kindModifiers": "",
            "sortText": "11",
            "insertText": "foo(y: string): string {\r\n    $0\r\n},",
            "isSnippet": true,
            "source": "ObjectLiteralMethodSnippet/",
            "sourceDisplay": [
                {
                    "text": "foo",
                    "kind": "text"
                },
                {
                    "text": "(",
                    "kind": "punctuation"
                },
                {
                    "text": "y",
                    "kind": "parameterName"
                },
                {
                    "text": ":",
                    "kind": "punctuation"
                },
                {
                    "text": " ",
                    "kind": "space"
                },
                {
                    "text": "string",
                    "kind": "keyword"
                },
                {
                    "text": ")",
                    "kind": "punctuation"
                },
                {
                    "text": ":",
                    "kind": "punctuation"
                },
                {
                    "text": " ",
                    "kind": "space"
                },
                {
                    "text": "string",
                    "kind": "keyword"
                }
            ]

Order that vscode shows:

snippet bar
snippet foo
non-snippet bar
non-snippet foo

The entries all have the same score (-100) and same sortText ("11").
The snippet entries that appear first, however, have insertText, sourceDisplay, source, and isSnippet set, while the non-snippet ones do not have those fields.

@typescript-bot pack this

@jrieken Can you please help out with these questions? I'm not familiar enough with suggestion sorting to know what is going on here and if it's expected or not

@gabritto What's the value of this setting editor.snippetSuggestions

Oh, wait these aren't snippet of completion item kind Snippet, right? It is just using snippet strings?

When you toggle explain mode (cmd+? while suggestion shows) what does that index read? If all scores are equals than that should be the effective sort order

Oh, wait these aren't snippets in the sense of CompletionItemKind.Snippet, right? It is just using snippet strings?

Yes, they're just using snippet strings (in insertText).

When you toggle explain mode (cmd+? while suggestion shows) what does that index read? If all scores are equals than that should be the effective sort order

The indexes are 0 through 3, corresponding to the order of the completion entry. But where does that index come from? Does vscode compute it based on something? The text on the explain mode just says 'index: 0, based on sortText: "11"', but the sortText is the same, so it's hard to tell where the difference in the indexes is coming from.
To make it more clear what the problem is, we thought that if the score and sortText were equal for two entries, they would show up in vscode in the order in which they are sent from tsserver, and that is not the case.

To make it more clear what the problem is, we thought that if the score and sortText were equal for two entries, they would show up in vscode in the order in which they are sent from tsserver, and that is not the case

Yes, that's not the case. With equal sortText values we use the label and kind to find a difference between two items. We do this because the norm is that multiple extensions/providers contribute completions. We therefore need to establish one "global" order of all these results.


Make all functions from cmorizers/obs/utilities.py public

Related to discussion in issue and comments https://github.com/ESMValGroup/ESMValTool/pull/1554#issuecomment-624028743 and https://github.com/ESMValGroup/ESMValTool/pull/1554#issuecomment-624028743

Moving this to the next milestone, as @jvegasbsc is working on a major overhaul of the cmorizers in  #1657


NetFlow v9 - Codes/Types pretty-values

Describe the bug
I can't seem to find out why GoFlow2 does not resolve the types & codes (Etype, Proto, ...) of my flows to their 'pretty-values' (IPv4, TCP, ...).
Sorry if it's just a config issue - but I haven't found any information regarding this problem.
To Reproduce
Steps to reproduce the behavior:

Run GoFlow2:
/usr/local/bin/goflow2 -listen 'netflow://<IP_ADDRESS>:2055' -transport 'file' -transport.file '/var/cache/netflow_data.flowlog' -loglevel 'warn' -workers 2

The codes & types are not resolved to 'pretty' values:
{"Type":"NETFLOW_V9","TimeReceived":1701698130,"SequenceNum":14,"SamplingRate":0,"FlowDirection":1,"SamplerAddress":"<IP_ADDRESS>","TimeFlowStart":1701697829,"TimeFlowEnd":1701697829,"TimeFlowStartMs":1701697828395,"TimeFlowEndMs":1701697828395,"Bytes":101,"Packets":1,"SrcAddr":"<IP_ADDRESS>","DstAddr":"<IP_ADDRESS>","Etype":2048,"Proto":17,"SrcPort":39918,"DstPort":53,"InIf":0,"OutIf":0,"SrcMac":"00:00:00:00:00:00","DstMac":"00:00:00:00:00:00","SrcVlan":0,"DstVlan":0,"VlanId":0,"IngressVrfId":0,"EgressVrfId":0,"IpTos":0,"ForwardingStatus":0,"IpTtl":0,"TcpFlags":0,"IcmpType":0,"IcmpCode":0,"Ipv6FlowLabel":0,"FragmentId":0,"FragmentOffset":0,"BiFlowDirection":0,"SrcAs":0,"DstAs":0,"NextHop":"","NextHopAs":0,"SrcNet":0,"DstNet":0,"BgpNextHop":[],"BgpCommunities":[],"AsPath":[],"HasMpls":false,"MplsCount":0,"Mpls_1Ttl":0,"Mpls_1Label":0,"Mpls_2Ttl":0,"Mpls_2Label":0,"Mpls_3Ttl":0,"Mpls_3Label":0,"MplsLastTtl":0,"MplsLastLabel":0,"MplsLabelIp":[],"ObservationDomainId":0,"ObservationPointId":0,"CustomInteger_1":0,"CustomInteger_2":0,"CustomInteger_3":0,"CustomInteger_4":0,"CustomInteger_5":0,"CustomBytes_1":[],"CustomBytes_2":[],"CustomBytes_3":[],"CustomBytes_4":[],"CustomBytes_5":[],"CustomList_1":[]}

Expected behavior
I would expect the values to be resolved to the ones listed in https://github.com/netsampler/goflow2/blob/main/producer/proto/render.go#L57 (EDIT: sorry - just saw that this file did not exist in the version I'm using)
Did I miss a config-flag? Or is this functionality not available in versions < 2.x?
The Getting started information is showing these pretty-values by default.
Sampler device:

In my case softflowd is used to gather the flows:
/usr/sbin/softflowd -i 'any' -P 'udp' -n '<IP_ADDRESS>:2055' -v 9 -T 'full' -m 8192 -t 'expint=0'

Version: 1.1.0

Estimated flow traffic: few hundred samples per minute (LAB environment)

GoFlow2:

Version: GoFlow2 v1.3.6 (2023-09-01T22:03:32+0000)
Environment: Debian package
OS: Debian 12 LVM

To keep it short: Is that kind of 'pretty-rendering' already supported in Version 1.3.x or was it just now implemented in Version 2.x?

No - I did not realize this flag could be used that way. The help-text is a little generic List of fields to do keep in output
My search for some information on how to use this flag did not yield any useful results. (grepping over the repo and reading over the code in format/* )
When I only provide -format.selector 'EtypeName' I get an empty JSON output.
Could you help me out with an example?
Edit:
I found some example after asking Google..
But the *Name fields seem to be ignored:
/usr/local/bin/goflow2 -listen netflow://<IP_ADDRESS>:2055 -format json -transport file -transport.file /var/cache/shieldwall/netflow_data.flowlog -loglevel warn -workers 2 -metrics.addr <IP_ADDRESS>:9102 -format.selector TimeReceived,TimeFlowStartMs,TimeFlowEndMs,SequenceNum,FlowDirection,InIf,OutIf,SrcVlan,DstVlan,VlanId,Bytes,Packets,SrcAddr,DstAddr,Etype,EtypeName,Proto,ProtoName,SrcPort,DstPort,SrcMac,DstMac,IcmpType,IcmpCode,IcmpName,NextHop,IpTos,IpTtl,TcpFlags,ForwardingStatus,FragmentId,FragmentOffset

> {"TimeReceived":1701765004,"TimeFlowStartMs":0,"TimeFlowEndMs":0,"SequenceNum":11,"FlowDirection":0,"InIf":0,"OutIf":0,"SrcVlan":0,"DstVlan":0,"VlanId":0,"Bytes":46,"Packets":1,"SrcAddr":"79.124.x.x","DstAddr":"138.201.x.x","Etype":2048,"Proto":6,"SrcPort":40659,"DstPort":32602,"SrcMac":"00:00:00:00:00:00","DstMac":"00:00:00:00:00:00","IcmpType":0,"IcmpCode":0,"NextHop":"","IpTos":0,"IpTtl":0,"TcpFlags":2,"ForwardingStatus":0,"FragmentId":0,"FragmentOffset":0}

Let me know if https://github.com/netsampler/goflow2/pull/250 fixes your issue. Will make a v1.3.7 afterwards.

Seems to work:
{"TimeReceived":1701853308,"Etype":2048,"EtypeName":"IPv4","Proto":6,"ProtoName":"TCP","IcmpType":0,"IcmpCode":0,"IcmpName":""}

Tagged v1.3.7


Query: Building for python2 on m1 mac

Hi,
I am assuming that this will be a though ride since python2 support is long gone but maybe it's doable
I am trying to build scipy for python2 on my m1 mac.
I have checked out the maintenance/0.16.x branch and trying to install it
The errors come from SuperLU
                    ztrsv_( "L", "N", "U", &segsze, &lusup[luptr],

It seems that somehow the OpenBLAS functions are not found. I tried to add the openblas location with -L but no luck
Any other tips or tricks would be extremely appreciated

Hi @maczikasz. I am afraid this will never happen from us. As of today, we are only supporting Python >3.8. It just cannot work on previous versions because we use features which are not present in Python version bellow that point.

I understand, but anyway it seems the issue is with SuperLU and M1 macs, since I cannot even build that

If you followed the contributor guide and can reproduce with Python >= 3.8, then feel free to open a new issue.
I doubt there is anything here. Some maintainers, including myself, have an M1 and don't have any trouble building from source using our instructions.


Angular 15 compatibility

Is this a plan anytime soon? I am upgrading from Angular 13 to 15 and I use this library in my project.

+1

@fatcatt013 & @WojciechNagorski ignore stalebot. This did slip off my radar, but stalebot reminded me. Ixm having to upgrade from v13 -> v14 -> v15 one at a time. v14 is done and a new version is up. I'll try to get v15 done this weekend. Sorry for the severe delay.

@fatcatt013 @WojciechNagorski Angular 15 is now supported by ng-toggle 11.0.0
Sorry again it took so long. Work and personal life got in the way.


ClickAwayListener triggered by descendant Select

I'm opening this issue because I saw the discussion here but the pull request closing the issue doesn't seem to apply to my case.
I have a Select component which is a descendant of a ClickAwayListener component. Clicking on one of the MenuItems triggers the callback of ClickAwayListener.
I saw the pull request adding disablePortal option but I couldn't find a way to apply it to Select (I saw it only in Popper and Modal components).

[x] This is not a v0.x issue.
[x] I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

ClickAwayListener callback shouldn't be triggered clicking on a descendant component.
Current Behavior

But it does and I can't find a way to apply the disablePortal fix to Select component. I'd like to avoid using native select to solve the issue.
Steps to Reproduce

Link:

Basic Example

Context

I have a Collapse containing several filters which closes every time I select an item from the Select filter.
Your Environment

Project generated with create-react-app, not ejected.

Tech
Version

Material-UI
v3.1.2

React
v16.5.2

Browser
Chrome

TypeScript
No

etc.

@pleopardi
      <ClickAwayListener onClickAway={this.handleClickAway}>
        <Select
          value={this.state.selected}
          onChange={this.handleChange}
          MenuProps={{ disablePortal: true }}
        >
          <MenuItem value="first">First Option</MenuItem>
          <MenuItem value="second">Second Option</MenuItem>
        </Select>
      </ClickAwayListener>

https://codesandbox.io/s/qv6z7k32nw

This only works with first child https://codesandbox.io/s/jzj7np639v
Is this expected?
The only notion of this in docs is that "The wrapped element" is referred to in singular.

Name
Type
Default
Description

children *
element

The wrapped element.

--
--
--
--

@octavioamu Thanks for clarification. I didn't see any warnings in my code and thought there was a bug in it. But after some investigation got it clear.

Add
MenuProps={{ disablePortal: true }}
prop to Select component. This fixed mine
Just like mentioned here https://github.com/mui-org/material-ui/issues/13216#issuecomment-429527839

Duplicate of #18586.


Fix links in 'Contributing'

Add absolute links to the repo issue pages
Make correction

closed via https://github.com/pydelhi/pydelhi-infra/commit/507efd35b8962627172f3f51183333ce6cd3c5ad


[COMMENTS] Battersea shirt

It looks so good!!! 👌 Who's your photographer? What great pictures! You should give him a raise..


AroonIndicator from trend.py based on inadequate input

The AroonIndicator in trend.py uses close(pandas.Series) as price data input.
But the indicator arron_up() is based on N-day high. This means that arron_up() should use high(pandas.Series) as input and not close data.
Accordingly, arron_down() should use low(pandas.Series).
This means that AroonIndicator  should have two pandas.Series as input (Args): high(pandas.Series) as well as low(pandas.Series).

I solved this issue in pull request #316.

Hi @jennerwein,
The last version of the library (0.10.3) implements these changes.
Thank you all!
Best,
Dario


apa102 module not implemented in firmware - potential fix

apa102 module is not available in firmware.
Uploading a generic Dotstar driver (https://github.com/RobertJBabb/micropython_generic_apa102/blob/master/generic_dotstar.py) allows the LED to be accessed easily like so:
import time
from generic_dotstar import SpiDotStar as SPIDotStar
from machine import SPI, Pin

clock = Pin(39)
data = Pin(40)
num_pixels = 1

print('Testing MicroPython 1.10 SPI DotStar Compatibility Class')

spi = SPI(2, sck=clock, mosi=data, baudrate=1000000)
pixelp = SPIDotStar(spi, num_pixels)
pixelp[0] = (0, 255, 0)
pixelp.show()
r, g, b = pixelp[0]
time.sleep(2)
pixelp.deinit()

Best not to use the HW SPI as it is also defined in tft_config.py for use with st7735. Better to use SoftSPI instead.

Maybe this SPI is already occupied by the screen. Modifying the SPI index number may solve it.

I did try using the other SPIs.
but two of them are used by the board (for flash/mem IIRC) the other one returned with an 'invalid configuration' no matter what I tried.
could you provide a working example using one of the other HW SPIs ?

Ah yes, FastLED, but I'm using micropython.
I can't get SPI1 to work though, it returns with invalid configuration...


Update Tests to include a Unit Test bridging Header

Update unit tests to use a bridging header in test imports app

@tinder-maxwellelliott want to take a pass at getting this setup working?

@tinder-maxwellelliott want to take a pass at getting this setup working?

@tinder-maxwellelliott want to take a pass at getting this setup working?

Will give this a go, thanks @segiddins

@tinder-maxwellelliott want to take a pass at getting this setup working?

Will give this a go, thanks @segiddins

If you point this back at master I'll merge it in!


Airflow Lineage DAG serializer

Affected module
Lineage Backend
Describe the bug
There are some tasks that fail during the backend lineage processing due to an internal error on Airflow when calling serialize_dag.
Let's check what is going on in order to not lose information from any task during the processing.
[2022-02-12, 19:35:32 UTC] {utils.py:291} INFO - Parsing Lineage for OpenMetadata
[2022-02-12, 19:35:32 UTC] {openmetadata.py:113} ERROR - Traceback (most recent call last):
  File "/Users/pmbrull/projects/OpenMetadata/venv/lib/python3.9/site-packages/airflow/serialization/serialized_objects.py", line 826, in serialize_dag
    serialize_dag["tasks"] = [cls._serialize(task) for _, task in dag.task_dict.items()]
  File "/Users/pmbrull/projects/OpenMetadata/venv/lib/python3.9/site-packages/airflow/serialization/serialized_objects.py", line 826, in <listcomp>
    serialize_dag["tasks"] = [cls._serialize(task) for _, task in dag.task_dict.items()]
  File "/Users/pmbrull/projects/OpenMetadata/venv/lib/python3.9/site-packages/airflow/serialization/serialized_objects.py", line 304, in _serialize
    return SerializedBaseOperator.serialize_operator(var)
  File "/Users/pmbrull/projects/OpenMetadata/venv/lib/python3.9/site-packages/airflow/serialization/serialized_objects.py", line 574, in serialize_operator
    serialize_op['params'] = cls._serialize_params_dict(op.params)
  File "/Users/pmbrull/projects/OpenMetadata/venv/lib/python3.9/site-packages/airflow/serialization/serialized_objects.py", line 447, in _serialize_params_dict
    if f'{v.__module__}.{v.__class__.__name__}' == 'airflow.models.param.Param':
AttributeError: 'str' object has no attribute '__module__'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/pmbrull/projects/OpenMetadata/venv/lib/python3.9/site-packages/airflow_provider_openmetadata/lineage/openmetadata.py", line 109, in send_lineage
    parse_lineage_to_openmetadata(
  File "/Users/pmbrull/projects/OpenMetadata/venv/lib/python3.9/site-packages/airflow_provider_openmetadata/lineage/utils.py", line 294, in parse_lineage_to_openmetadata
    dag_properties = get_properties(dag, SerializedDAG.serialize_dag, ALLOWED_FLOW_KEYS)
  File "/Users/pmbrull/projects/OpenMetadata/venv/lib/python3.9/site-packages/airflow_provider_openmetadata/lineage/utils.py", line 99, in get_properties
    props: Dict[str, str] = {key: value for (key, value) in serializer(obj).items()}
  File "/Users/pmbrull/projects/OpenMetadata/venv/lib/python3.9/site-packages/airflow/serialization/serialized_objects.py", line 847, in serialize_dag
    raise SerializationError(f'Failed to serialize DAG {dag.dag_id!r}: {e}')
airflow.exceptions.SerializationError: Failed to serialize DAG 'lineage_tutorial': 'str' object has no attribute '__module__'

To Reproduce
Screenshots or steps to reproduce
Expected behavior
A clear and concise description of what you expected to happen.
Version:

OS: [e.g. iOS]
Python version:
OpenMetadata version: [e.g. 0.8] main
OpenMetadata Ingestion package version: [e.g. openmetadata-ingestion[docker]==XYZ] main

Additional context
Add any other context about the problem here.

I'll try to prepare a workaround to get even if it is only part of the info

@pmbrull we should also support the 1.x with lineage backend work. The earlier version of lineage backend will work with 1.x and 2.x .Can you please make sure we are supporting both.
Also is this bug causing to miss some details or we are not able to look at any tasks or their details?

@pmbrull we should also support the 1.x with lineage backend work. The earlier version of lineage backend will work with 1.x and 2.x .Can you please make sure we are supporting both. Also is this bug causing to miss some details or we are not able to look at any tasks or their details?

Hi, @harshach, this error makes the lineage backend crash when extracting the task information, so the task remains unprocessed. I'll work on finding a workaround in case we can skip the serialiser and obtain the properties from somewhere else.


README

README
User Story
As a boot camp student,
I want the prework notes to be structured on a webpage,
So that I can easily find and read the information.
Acceptance Criteria
GIVEN the prework project repository,
WHEN I view the README for the repository,
THEN I can see a professional README that provides information on the project and how to use it

README has been filled out and branch is merged with main


Add MIT license header and file since that is the license described i…

Hello. I added a MIT license header and file since that is the license described in the readme file. If you agree, could you merge it? Regards. Pablo.-

@pabloa merged. thank you!


Reorganize public API

This closes #32.
This reorganizes the public API and moves lots of functions out of cluttered rasta.hinto events.h and handlers.h. We now also provide rasta_ wrapper functions for all functions that were only available as sr_ before, so that the user can use a more consistent API. Furthermore, lots of documentation comments for functions were added. Lastly, this renames rasta_lib.h to rasta_init.h and makes rasta.h the main header that the user should include.

Regarding your comments:

This might save the user some typing, but is very tedious to change in the library code. Also, I think it's good that the user still knows that they are using a pointer. Did not implement it.
Renamed it to rasta_connection.h, which broadly fits what is defined in there.
There is no such header, so I did nothing (rasta_init.h still contains a function that should be publicly visible).
Looking into this tomorrow.


[BUG] Are proxies being blocked?

Before submitting a bug report...

[X] This bug wasn't already reported.
(I have checked every bug report on GitHub)

Title

[X] The title is no longer "[BUG] Title" and I edited it with the right error name.

Describe the bug
cant seem to login via a proxy from the same country
never had these issues before,is microsoft blocking proxy connections to paid proxy services?
Copy and paste your error
na
Screenshots
na
Value of dashboard variable
na

It is not possible that a proxy being blocked is anything related to the script other than general use.
Similar to bringing your car to the dealership for service because you ran out of gas.

its completely touch and go now with a proxy using debian chromium 121,as getting a lot of hanging and errors
do you think its the proxy side?


rate-limit: implement connection level local rate limiting

Description:
Adds support for rate limiting L4 TCP connections.
Part of #2018

Testing done:

Unit tests
Demo

Affected area:

Functional Area

New Functionality
[X]

Control Plane
[X]

Please answer the following questions with yes/no.

Does this change contain code from or inspired by another project? no

Did you notify the maintainers and provide attribution?

Is this a breaking change? no

Has documentation corresponding to this change been updated in the osm-docs repo (if applicable)? yes: https://github.com/openservicemesh/osm-docs/pull/389

Codecov Report

Merging #4823 (bee4244) into main (a5b3716) will increase coverage by 0.03%.
The diff coverage is 68.88%.

@@            Coverage Diff             @@
##             main    #4823      +/-   ##
==========================================
+ Coverage   68.48%   68.52%   +0.03%
==========================================
  Files         223      223
  Lines       16096    16141      +45
==========================================
+ Hits        11023    11060      +37
- Misses       5021     5029       +8
  Partials       52       52

Flag
Coverage Δ

unittests
68.52% <68.88%> (+0.03%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

pkg/envoy/lds/inmesh.go
76.26% <68.88%> (-1.01%)
:arrow_down:

pkg/ticker/ticker.go
87.17% <0.00%> (+3.84%)
:arrow_up:

pkg/messaging/workqueue.go
100.00% <0.00%> (+10.71%)
:arrow_up:

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 a5b3716...bee4244. Read the comment docs.


Big update to the config

I changed several files. I will not detail anything; anything you disagree with, just tell me here.

I'll make a better pull request. This is unorganized.


xwayland: 22.1.6 -> 22.1.7

Description of changes
Changelog: https://lists.x.org/archives/xorg-announce/2022-December/003309.html
Things done

Built on platform(s)

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

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

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

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

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

[x] Fits CONTRIBUTING.md.

Merged. Thank you!


Fix focus states

This PR aims to remove focus states that may be confusing to the user (when identical to a hover state) and provide a fallback or default focus state for clickable elements.

Best way of testing is clicking an element from the list of commits above and making sure there is no residual focus state that looks like a hover state

It looks/works as expected for me. Hopefully this goes over well in review. 👍

Rebased onto release-0.25.1 for you. I tested this by going to linodes/:id/settings, scrolling to and clicking Add Configuration, then hitting escape to close the drawer. The "Add Configuration" still has, what appears to be, the old focus state. Am I wrong?

Coverage increased (+0.008%) to 27.262% when pulling 85ca91bf2a7e68c5645259c8625d3d6f496f595f on alioso:fix-focus-states into 4d9e80be6a49524fd57a27565b885bdedb66eefb on linode:develop.

@asauber added a commit for the hover/focus state for selected items

@asauber is this good to go? Looks like @alioso has updated per your request.


How to set up this model

Hi,
how should I set up the following model with pykalman
Y_t = Beta_t * X_t + Normal(0, Q_t)
Beta_t = Beta_t-1 + Normal(0, R_t)
The second one should be the state equation. Y_t and X_t are two time-series of stock prices.

Hello, colleagues !
I try to use pykalman for car track filtration contains latitude, longitude, speed and direction. I init matrices such this.
transition_matrix = [[1, 0, 1, 0],
[0, 1, 0, 1],
[0, 0, 1, 0],
[0, 0, 0, 1]]
observation_matrix = [[1, 0, 0, 0],
[0, 0, 1, 0]]
initial_state_mean = [measurements[0][0],
0,
measurements[0][1],
0
]
kf1 = KalmanFilter(
                   transition_matrices = transition_matrix,
                   observation_matrices = observation_matrix,
                   initial_state_mean = initial_state_mean,
                   n_dim_obs = 2)
measurements = np.array ([meas[0][3], meas[0][4], meas[0][6], meas[0][7]])
for i in range (n_timesteps-1):
    measurements = np.vstack ((measurements, np.array ([meas[i][3], meas[i][4], meas[i][6], meas[i][7]])))
kf1.em (measurements)

where is meas[i][3] -- latitude, meas[i][4] -- longitude, meas[i][6] -- speed of car, meas[i][7] -- direction
and this produce an error
File "kalman_test.py", line 140, in main
kf1.em (measurements)#, n_iter=10)
File "/home/yrusinov/.local/lib/python3.5/site-packages/pykalman/standard.py", line 1409, in em
Z
File "/home/yrusinov/.local/lib/python3.5/site-packages/pykalman/standard.py", line 393, in _filter
observations[t]
File "/home/yrusinov/.local/lib/python3.5/site-packages/pykalman/standard.py", line 278, in _filter_correct
+ np.dot(kalman_gain, observation - predicted_observation_mean)
File "/usr/lib/python3/dist-packages/numpy/ma/core.py", line 3990, in sub
return subtract(self, other)
File "/usr/lib/python3/dist-packages/numpy/ma/core.py", line 1016, in call
result = self.f(da, db, *args, **kwargs)
ValueError: operands could not be broadcast together with shapes (4,) (2,)
I suppose that I make an error in matrices dimensions, but could you tell me more details ?
Best regards,
Yuriy Rusinov.

Sorry, it is similar that I made some errors.
Yuriy Rusinov.


All my Augur funds on my no-trump bet on October 7 disappeared

Describe the bug
I logged in under the fortmatic account<EMAIL_ADDRESS>and all $1300 of my shares suddenly and mysteriously disappeared.
https://imgur.com/a/aN6PnrF shows the screenshots between October 7 and today. There is no transaction history for the no-trump bet either.
etherscan - https://etherscan.io/address/0x58c1d190f7d49ad445d98b494394092fe9a42bc0
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. iOS]
Browser: [e.g. chrome, safari]
Version: [e.g. 22]

Smartphone (please complete the following information):

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

Additional context
Add any other context about the problem here.

The same happened to me, and I reported it weeks ago - no resolution yet.

Hey all,
Could you try this build? The link is to a reporting build.
We've been working on fixing a few significant bugs with syncing. This is a partial fix and is being worked on actively.
https://bafybeicigoahjsgnu3zhjbp6sm36bbrxhp47kvloig5bnsxmndqc35zmcy.ipfs.dweb.link/

Dear Paul - here the position is visible, great! Looking forward to having a trading UI where I can access it, too. Best,


PostgreSQL - A5 polygon template - Uninc_Cond field is set as Required in script while it is conditional in data model

Issue: PostgreSQL creates Uninc_Cond field on the A5 polygon as NOT NULL while the data model does not require values.
A5 polygon data model:

A5 polygon Esri fgdb script (nulls allowed):

A5 polygon PostgreSQL script (nulls not allowed):

Recommended action: Make the field nullable in PostgreSQL.
-HT to Hung Giang at the City of Mississauga and Michael Fashoway at Montana State Library for this submission.

Thank you and confirmed.


Add config option for including all files in SBOM

Add a configuration option for including all files in an SBOM, regardless of if they are a recognized type or not.

This should also be added as an option to the specimen config files, so that infoextractors that extract files (or a file) from other files can say that the extract files should all be included in the SBOM. This could allow forcing inclusion of the binary file extracted from a s-rec or hex file, even if that file has no magic bytes identifying it as a file type Surfactant recognizes.


Is this app working

Is this app working fine? How to login?

the app seems not working
it is stuck at "loading" screen and not doing anything
unfortunately have to remove app


feat: Force the checkbox color (on iOS)

Hi everyone,
When we use Checkbox.adaptive(), it uses the Material one on all platforms and CupertinoCheckbox on iOS/macOS.
However, the implementation of this widget is very shitty, as it doesn't try to inherit the accent color.
The only way is to force a color on the constructor, otherwise it will be blue.
So here is a one-line fix because we use a Checkbox only in one place.
Android

VS iOS (with this PR)

It will fix #4395

Codecov Report

Merging #4398 (4f453b3) into develop (a08a2f9) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

@@             Coverage Diff             @@
##           develop    #4398      +/-   ##
===========================================
- Coverage    10.29%   10.29%   -0.01%
===========================================
  Files          293      293
  Lines        14757    14758       +1
===========================================
  Hits          1519     1519
- Misses       13238    13239       +1

Files Changed
Coverage Δ

packages/smooth_app/lib/pages/image_crop_page.dart
0.99% <0.00%> (-0.01%)
:arrow_down:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


feature: Do not format the files listed in .prettierignore

Now format the files listed in .prettierignore.
See .prettierignore and do not format the listed files.

Thanks for the PR, but I took a different approach in 4c17f1e -- filtering should happen in the coordinator process, and I read the ignore file once instead of once per prettier file.

Thanks for the PR, but I took a different approach in 4c17f1e -- filtering should happen in the coordinator process, and I read the ignore file once instead of once per prettier file.


Prepare for Polkadot launch and Sustrate 2.0 freeze

On the Substrate side:

[x] Lazy payouts: https://github.com/paritytech/substrate/pull/4474/
[ ] Offchain Phragmen: https://github.com/paritytech/substrate/pull/4517/
[x] Lazy reaping: https://github.com/paritytech/substrate/pull/4895
[ ] Migrate storage maps: https://github.com/paritytech/substrate/issues/4917
[ ] Dispatch & block weights CC @shawntabrizi et al.

[x] Macro: https://github.com/paritytech/substrate/pull/4962
[ ] Pallets: https://github.com/paritytech/substrate/issues/4876
[ ] on_initialize/on_finalize
[x] Root calculation with extrinsic benchmarks. https://github.com/paritytech/substrate/pull/5035
[ ] Root calculation (amortized).
[ ] Rest of block execution init/teardown in executive.
[ ] Combine benchmark timing and complexity analysis to derive weight predictors.
[ ] Create sufficiently accurate weight formula, based solely on call data (not on state!), refactoring dispatches as necessary.
[ ] Implement weights through all pallets (FunctionOf).

[ ] Assign unique storage names to pallets: https://github.com/paritytech/substrate/pull/5010

On the Polkadot side:

[x] Corresponding PR for #4895 and #4820: https://github.com/paritytech/polkadot/pull/834
[ ] Upgrade/migrate Kusama with that ^^^
[ ] Corresponding PR for #4917.
[ ] Upgrade/migrate Kusama with the corresponding PR for #4917

IMO this is also worth fixing https://github.com/paritytech/substrate/issues/2494

That's very much on-trivial and there may be no good solution. Until we have a solution that works with staking being off-chain, then I would leave it.

Create sufficiently accurate weight formula, based solely on call data (not on state!), refactoring dispatches as necessary.

A few months ago I came up with this pattern where the weight of a call seems like it shold depend on state. The caller passes the expected value of the state, the weight is calculated based on that expected value, and the call ensures that the passed value is accurate.
https://github.com/substrate-developer-hub/recipes/blob/fc4c625addf43cb5088a73f6f0559db24fc2bd95/pallets/weights/src/lib.rs#L144-L149


Added graphql queries and added API cache.

Thank you for releasing this API; it's greatly appreciated. I've expanded the queries for LeetCode and integrated API caching and Axios for faster updates. Please review the changes at your convenience. I've also removed the personalized content.

Thanks my friend. To answer your question: The need for both /dailyQuestion and /questionOfTodayQuery routes, despite having /daily, there are specific requirements of the iOS build I am working on. The raw daily question includes extra properties that are highly beneficial for my iOS app.
The change required:
Answer:
Absolutely, it makes sense. my current focus is on the iOS project, which is quite demanding. As soon as I have some bandwidth, I'll refactor the code, moving all route logic into the leetCode.ts file and ensuring data formatting code is separated. I will raise a new PR then.

Thank you @changchunlei for your answers 😊
Do not need to do the changes right away, first you build your project, then make changes and raise a new PR.

🎉 Thanks for your contribution! 😊
Your code looks great, and I appreciate the thoroughness of your work. The new features you added are well-implemented, and I've reviewed everything. I'm happy to approve it for merging. 🚀 Thanks again for your valuable contribution 😄
‼ Please remember to update the code after you have finished your project.
Best of luck 🤞 For your Project


Manage isolated connection

add balance from main wallet
withdraw balance to main wallet
changing expiration

@matjaz I feel like the adding balance is the most important thing for a first iteration. Changing expiration is here: https://github.com/getAlby/hub/issues/598
I'm not sure about whether we should expose withdrawing balance, although this is a trusted setup anyway


pub.dev has 2.4.0

FYI seems the repository is out of sync with version on pub.dev.

I'll create a bash script to upload to Git and pub at the same time, the git code is sometimes out of date. Thanks for reminding me

Updated


Results have incomplete data records

version:1.2.4
I query datas while inserting, then I find the records has null field(insert with data).

meet the same issue.
my measurement has 10 columns, which all have different value.
but occasionally, my program can only fetch 2 or 3 columns, others were all null

@shuiyue0626 please update to the latest version — 1.5.3. Version 1.2.4 is so far behind we can't practically support/triage issues for it.
Feel free to open another issue if you can reproduce with a more recent version.


100% Reduced Arctic Armor Mana Reservation with The Perfect Form

When using The Perfect Form Body Armor, http://pathofexile.gamepedia.com/The_Perfect_Form The application still calculates the Arctic Armor reservation.

Red color - affix/modificator aint supported yet.

In theory that modifier should have been recognised, but it seems the modifier parser had difficulty reading that one. It's fixed in the next update.


test: add more multicall tests

:notebook: Overview

assert multicall cannot bypass protocol checks
test a few edge scenarios

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 97.979%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
1286

Relevant Lines:
1294

💛  - Coveralls


Cant install module

i cant download module because node-gyp failing:
Could not find any visual studio installation to  use

Try installing using npm or yarn directly.  Installation using visual studio in whatever way you are trying is not supported.


Create CONTRIBUTING.md

Added the contributing.md file to the repository but the License was already added, so didn't add it. Fixes #33
Please add labels and ssoc to the issue

Merging it @Priyanshu2631


Text input broken on iOS

Steps to Reproduce
flutter create, then replace the stateful widget with ExampleWidget from https://flutter.io/text-input/.
Run on iOS simulator or iPod. Enter abc. Observe: characters are overwritten, and we end up with c as the text. Typing again after a little while appears to insert new text at the beginning.
Works fine on Android.
The differences in the platform messages shown below might be related.
Logs
On Android, the text-related platform messages received have the following form:
I/flutter (17084): received value: {composingExtent: -1, text: , composingBase: -1, selectionBase: 0, selectionExtent: 0}
I/flutter (17084): received value: {composingExtent: 1, text: a, composingBase: 0, selectionBase: 1, selectionExtent: 1}
I/flutter (17084): received value: {composingExtent: 2, text: ab, composingBase: 0, selectionBase: 2, selectionExtent: 2}
I/flutter (17084): received value: {composingExtent: 3, text: abc, composingBase: 0, selectionBase: 3, selectionExtent: 3}

On iOS, we get the following instead
received value: {selectionBase: 1, composingExtent: 0, selectionAffinity: TextAffinity.upstream, text: a, selectionIsDirectional: false, selectionExtent: 1, composingBase: 0}
received value: {selectionBase: 2, composingExtent: 0, selectionAffinity: TextAffinity.upstream, text:  b
, selectionIsDirectional: false, selectionExtent: 2, composingBase: 0}
received value: {selectionBase: 3, composingExtent: 0, selectionAffinity: TextAffinity.upstream, text:   c
, selectionIsDirectional: false, selectionExtent: 3, composingBase: 0}

Looks like the state on the plugin side is getting corrupted somehow.

It appears to be the _text field that is corrupted. There is no obvious breaking change in the history of that code, but we recently introduced nsstring_utils in fml (https://github.com/flutter/engine/pull/3492). They are probably fine, but it is not obvious (to me) that the length conversions are correct. @chinmaygarde, do we have a unit test for these?

@cbracken who's also been in this code recently.

By solving this issue a new issue has come up. One can't add characters in the middle of an already written string.
Reproduce: Go To Date and time pickers in the gallery, enter any string to the TextField, try to add another character at the beginning of the TextFiel. The new character is appended to the end of the String

Thanks for reporting! Can you confirm what you're seeing is iOS-specific?
If you also see this behaviour on Android devices, I suspect that what you're seeing is a separate bug on the framework side: #9180.

@cbracken I hadn't checked that. This behaviour also affects android devices.

Thanks for confirming!


Mealie v2.0.0 Shopping List API Not Working with Mealient #335

The endpoints for interacting with shopping lists have changed in Mealie. This may cause issues for users who have integrated with the Mealie API, particularly those using the shopping list functionality.
Previous Endpoints:
Example of an old endpoint: /api/groups/shopping/lists
New Endpoints:
Example of an new endpoint: /api/households/shopping/lists

This already looks good to me :D
But this PR would break the app for users still running mealie 1.x. I think a better approach would be to dynamically select the required endpoint based on the version of the mealie instance mealient is connected to.
This can be done pretty easily as the version number is included in the /api/app/about endpoint (https://docs.mealie.io/api/redoc/#tag/App:-About).
This endpoint is also already used in the tryBaseURL function, and we should be able to relatively easy extract the version number from here and use it to dynamically use the correct endpoint based on the version of the connected mealie instance.
What do you think about this? :-)
I've already implemented this in my own fork HowRuck/Mealient@858e664 (unit tests and some polish still missing), but I am still working on another PR/feature that I want to complete before "pull requesting" upstream, which is why I haven't done so already. Feel free to use this code as a starting point if we decide to go that route :-)


Added --quiet

Added abilities to quieten output, and also choose between stdout (default) and stderr (on a flag).
Also removed use of es!() to make it work, if any of this is unwanted happy to discuss how best to make it work.

Sorry, conflict after the other mr. This seems fine to me, quiet is probably reasonably necessary.  I'm fine with stderr too, but what's the use case for that?

AFAIK the standard use case is to use println!() for general information and eprintln!() for actual errors. However in my experience being able to use stdout or stderr is particularly useful when working with CI/CD pipelines. Happy to discuss/look into this further of course.

Ah gotcha.  I think there's a second standard for stdout/stderr which is that because stdout is captured by | on the command line, data output (anything that should be consumed) should go to stdout where informational messages, error or otherwise, should go to stderr.
Ex: if you have a command that outputs json, but emits stats like "processed NMiB in Y seconds", the stats should be sent to stderr so the json can be piped to jq regardless.
I think that's the convention I'd like to stay with here at least for now, unless it causes something else to blow up.

Sounds very reasonable. I've made those changes let me know how it all looks :).

Nice, thanks!

TIL matches!, that'll be really helpful...


Randomly not working

I just reinstalled this plugin which seems very promising but randomly, in some notes, is not working.
I have to toggle the buttons on top several times and (maybe) the diagrams appear. In some other cases the problem is not fixing and the only thing I see is the blue background.
Any idea? Maybe plugin conflicts?
I upload an image from one of the notes which is not working.
Thank you

!

I just ran into the same issue myself. I am not looking for the root cause.

seems as if there has been a change to dataview.

I just released the fix 0.1.10


docs: Update Matthew's affiliation to University of Wisconsin-Madison

Matthew Feickert is a postdoc at University of Wisconsin-Madison as of June 2022.

(Sorry for the noise, Leo, just doing some "chores" :slightly_smiling_face:)


CSV.parse() fails with buf.slice is not a function

ExhibitorClean1.csv
error log
$ genaiscript run perplexity_test_2.genai.mts
(node:32472) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
genaiscript: perplexity_test_2.genai.mts
trace: /home/ben/Devs/notes/Acitivities/Bauma China 2024/Company/.genaiscript/runs/perplexity_test_2/2024-11-24T02-07-09-666Z.trace.md
buf.slice is not a function
TypeError: buf.slice is not a function
    at Object.parse (/home/ben/.local/share/mise/installs/npm-genaiscript/1.78.3/lib/node_modules/genaiscript/built/genaiscript.cjs:56367:38)
    at parse2 (/home/ben/.local/share/mise/installs/npm-genaiscript/1.78.3/lib/node_modules/genaiscript/built/genaiscript.cjs:56786:23)
    at Object.CSVParse [as parse] (/home/ben/.local/share/mise/installs/npm-genaiscript/1.78.3/lib/node_modules/genaiscript/built/genaiscript.cjs:58153:10)
    at file:///home/ben/Devs/notes/Acitivities/Bauma%20China%202024/Company/perplexity_test_2.genai.mts?tsx-namespace=1732414029941:1:98
genaiscript: error
  trace: /home/ben/Devs/notes/Acitivities/Bauma China 2024/Company/.genaiscript/runs/perplexity_test_2/2024-11-24T02-07-09-666Z.trace.md
buf.slice is not a function

reproducible
script({
    model: "small",
    // model: "perplexity:llama-3.1-sonar-small-128k-online",
    // model: "perplexity:llama-3.1-sonar-large-128k-online",
    // model: "perplexity:llama-3.1-sonar-huge-128k-online",
})

const csv = await workspace.readText("ExhibitorClean1.csv")
const rows = CSV.parse(csv)

console.log(rows)

It probably failed to read the file. Try console.log(csv) to see what it read.
workspace.readText(...) takes a relative path to the workspace so that might be the issue

File is normal. Generated by pandas, python. Tested read by others already
Console.log the file show expected filename and its contents

I havd't noticed the attached file! Thanks!

fixed in 1.78.3


split-pay Add AccountManagementService / transfer capability to SDK

The goal of this PR is to add the capability to transfer funds among linked accounts to the paysafe SDK. As transfers are part of the Account Management API, this required adding Account Management to the SDK.
Highlights:

Add incomplete implementation of AccountManagementService

The AccountManagementService added in this PR only implements three methods:

monitor - verifies that account management api is active and responding
transferDebit - Move funds from the account identified in the API endpoint URI to the linked account in the body of the request
transferCredit - Move funds from the linked account in the body of the request to the account identified in the API endpoint URI.

Add new class Transfer that extends JSONObject

this new class is used as the value object for new transferDebit and transferCredit methods

Add PHPUnit tests for all of the above

@jbPayLease Please take a look at this PR and let me know what you think. Most of the work is from your original commit. I mostly just added some tests, and cleaned up a couple of minor items revealed in testing.


Feature/updates2023

Issue #, if available:
Description of changes:

used latest mysql version
corrected typo in VPC name
cosmetic changes

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Merge


@LyricZhao Can you add a tutorial for the tile pointer? I think that could be helpful.

          @LyricZhao Can you add a tutorial for the tile pointer? I think that could be helpful.

Originally posted by @Jokeren in https://github.com/openai/triton/issues/1392#issuecomment-1481324741

IGNORE this issue please.


Section: "Considerations for Implementing a Virtual datacenter?" Feedback: First section has the same content twice.

Same content twice in the first section of "Considerations for Implementing a Virtual datacenter":
Identity and directory services
Identity and directory services are a key aspect of all datacenters, both on-premises and in the cloud. Identity is related to all aspects of access and authorization to services within the VDC. To make sure that only authorized users and processes access your Azure account and resources, Azure uses several types of credentials for authentication. These include passwords to access the Azure account, cryptographic keys, digital signatures, and certificates.
Identity and Directory Service
Identity and Directory services are a key aspect of all datacenters, both on-premises and in the cloud. Identity is related to all aspects of access and authorization to services within a VDC implementation. To help ensure that only authorized users and processes access your Azure Account and resources, Azure uses several types of credentials for authentication. These include passwords (to access the Azure account), cryptographic keys, digital signatures, and certificates. Azure Multi-Factor Authentication (MFA) is an additional layer of security for accessing Azure services. Azure MFA provides strong authentication with a range of easy verification options — phone call, text message, or mobile app notification — and allow customers to choose the method they prefer.

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

ID: 82d8a578-f9f1-53af-64d0-808f1fde6c9c
Version Independent ID: 8a647cb7-2d10-53ed-5459-4356ef607e77
Content: Azure virtual datacenter: A network perspective
Content Source: docs/vdc/networking-virtual-datacenter.md
Service: virtual-network
GitHub Login: @tracsman
Microsoft Alias: jonor

Thanks - maybe a badly resolved merge conflict 😺


fix(translate) use Ingress-specific regex prefix

What this PR does / why we need it:
Translate between an Ingress-compatible regex prefix and the Kong regex prefix. Allow users to override the default regex prefix using an annotation.
Add tests for regex Ingress paths using the prefix.
By default, Ingress paths beginning with /~ will translate to Kong route paths beginning with ~. This functionality is not version-gated, with the expectation that such paths are uncommon in the wild. For users that do need these paths translated verbatim, overriding the prefix with the konghq.com/regex-prefix allows you to preserve /~-prefixed paths as they are.
Which issue this PR fixes:
Fix #2945
Special notes for your reviewer:
PR Readiness Checklist:
Complete these before marking the PR as ready to review:

[x] the CHANGELOG.md release notes have been updated to reflect any significant (and particularly user-facing) changes introduced by this PR

Can we add a tests, that overrides the prefix-path, but uses the route with /~ that is not a regex? I didn't find this combination in tests.


Replace @JvmSynthetic with a custom type alias annotation

The @JvmSynthetic annotation is not very descriptive and does not explain why we are using it. That's why we've introduced a type alias for it, to change its name and make it more meaningful.

This will be addressed elsewhere https://github.com/ably/ably-asset-tracking-android/issues/711


CLOUDP-60098: Update api clients

Proposed changes

Jira ticket: CLOUDP-60098

@andreaangiolillo let's merge this and then let's merge events


pod framework XXX.podspec --spec-sources=http://xxx/PubSpecs.git,https://github.com/CocoaPods/Specs.git --verbose

-> Pod installation complete! There are 27 dependencies from the Podfile and 23 total pods installed.
Building framework XXX (<IP_ADDRESS>0) with configuration Release
Work dir is :/var/folders/02/vv9z58b97hqdw5nytjh2jc2w0000gn/T/frameworks-ssnk9wrx/Pods
--- Building framework XXX (<IP_ADDRESS>0) with general device
--- Building framework XXX (<IP_ADDRESS>0) with simulator device
<<-EOF
Build command failed: xcodebuild -create-xcframework -output /var/folders/02/vv9z58b97hqdw5nytjh2jc2w0000gn/T/frameworks-ssnk9wrx/Pods/XXX.xcframework 2>&1
Output:
error: at least one framework or library must be specified.
              EOF

看起来没有simulator的产物


OpenSSL 1.1.0f - SSL routines:ssl3_get_record:decryption failed or bad record mac

I'm keep getting that error, even though that I've tried to check 'every' little detail in order to make sure that it is not some kind of misconfiguration.
Here is my full question: https://serverfault.com/questions/859987/im-getting-error-ssl3-get-recorddecryption-failed-or-bad-record-mac
So based on what I have done so far and error is keep coming I'm afraid that this issue is related to OpenSSL bug.

I'm sorry to bother you, but we are still having issue on our production server and consequently many of our users are experiencing this trouble.
Could anybody help us regarding this issue?

Errors like this "SSL routines:ssl3_get_record:length too short:../ssl/record/.." and "SSL routines:SSL3_GET_RECORD:block cipher pad is wrong" are indicative of a fairly low level problem. These should just not happen in normal operation. Did you compile OpenSSL yourself or are you using the stock OS provided version?

No it was pre-compiled so it came with OS. I have tried many things but still no success, so I had in my mind that maybe this can be u bug in openssl.
Do you have any other idea of what can I try more in order to fix this issue?

My suggestion would be to try compiling OpenSSL yourself and use that instead. That way we can know for sure what config options were used, and run the tests to make sure everything is working as expected.

Will compiling OpenSSL require removing existing OpenSSL from OS, and is there any risk of doing that in a way that it can effect other services on the server? Thank you

No, you can have multiple versions of OpenSSL installed at the same time in different locations. There is no need to remove the OS version (and in fact I would recommend against doing that). The main risk in having multiple instances is that an application picks up the wrong version of OpenSSL. Typically though if you have a custom OpenSSL installation it is in a separate location that the rest of the system doesn't know about. You have to explicitly tell the application to load its libraries from there (e.g. using LD_LIBRARY_PATH).

Is there anything that can be done in order to solve this issue, before we start compiling OpenSSL from scratch. We are still seeing the same error;
SSL Library Error: error:140940F4:SSL routines:ssl3_read_bytes:unexpected message
After so many tries we are unable to make working properly. Any ideas? Thanks

Your problem is unlikely to be with the SSL options given above. It appears to be something quite fundamental. You could try running an openssl s_server instance on your server and see if you can successfully connect to that. That might at least prove whether the openssl installation itself is sound or not.
One other thought - all the error messages you are seeing could be explained if the network stream is somehow being corrupted between the client and openssl. Are there any middleboxes or any other configuration that could do that?

If I run:
openssl s_server -accept 7569 -cert /etc/letsencrypt/live/als-0001/cert.pem -CAfile /etc/letsencrypt/live/als-0001/chain.pem -key /etc/letsencrypt/live/als-0001/privkey.pem
and try to connect: openssl s_client -connect localhost:7569
everything it seems to work just fine.
Yes I'm running firewall and IDS (pfsense) in front of our server.

One more question, if I compile new OpenSSL by running:
curl https://www.openssl.org/source/openssl-1.0.2l.tar.gz | tar xz && cd openssl-1.0.1g && sudo ./config && sudo make && sudo make install
and then: ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl
how can I go back to original OpenSSL which is part of OS (in my case OpenSSL-1.1.0f)?
Can I use this one (1.0.2l) on Ubuntu 14.04.5 LTS?

If you are using the vendor-supplied version, you should try contacting your vendor.

What I find amazing is how far can it go without asking most obvious questions. It was said "it's vendor-supplied", but who is vendor? Ubuntu 14 was mentioned, but at the same time it was asserted that we are looking at OpenSSL 1.1.0f... But Ubuntu 14 comes with 1.0.1f... [In the context it should be noted that anything below 1.0.2 is sole vendor's responsibility. In sense that they are responsible to tracking bugs and backporting fixes if such would be required. This means that if we are in fact talking about Ubuntu 14 and 1.0.1f, you will end up contacting your vendor no matter what happens here.]
Next obvious question which cipher is it that is failing? Can one reproduce failure with s_client -cipher same-cipher? Against localhost and from outside?
What is processor?

My bad, now it's clear to me. As for using -cipher it fails on any chosen cipher, like:
Remotely: openssl s_client -debug -connect server:443 -cipher AES256+EDH
Error: SSL routines:SSL3_GET_RECORD:decryption failed or bad record mac:s3_pkt.c:535:
From localhost:
openssl s_client -debug -connect localhost:443 -cipher AES256+EDH
3073194560:error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac:../ssl/record/ssl3_record.c:469:
write to 0x8c02ee8 [0x8c0c5eb] (31 bytes => -1 (0xFFFFFFFF))

Processor: model name	: Intel(R) Xeon(R) CPU           X3430  @ 2.40GHz

Does reply mean that we are talking about Ubuntu 14 and bundled 1.0.1f? Something might be clear to you, but I'm still in the dark of wild guesses. But in either case. Once again, anything below 1.0.2 is vendors' responsibility. Though processor is old enough, there are no processor-specific fixes that would be essential. Secondly, since openssl s_client always works against openssl s_server, and apparently never against application, one has to draw conclusion that problem ought to be with interfacing of the application with openssl shared libraries. And here comes second boundary of responsibility, we can't possibly trouble-shoot it for you, you're pretty much on your own. Apache 2.4.27 was mentioned. But Ubuntu 14 comes with 2.4.7 (16 with 2.4.18). So that one can as well ask where does 2.4.27 binary come from, how was it (or more specifically mod_ssl) compiled... But once again, these are questions you should ask in first hand yourself...

Yeah you were right, I had to downgrade my Apache to 2.4.7 and now everything works just fine. Thank you very much for your help.

It's not like there are irreconcilable incompatibilities between Apache 2.4.27 and OpenSSL 1.0.1f but they have to be built "right". And that's what Linux vendors do, or have to do to call themselves ones. However, definition of "right" falls beyond this forum. Which means that this case is resolved as non-OpenSSL problem. Cheers.


Update delete tag feature in UG

Changed the delete by tag feature to only allow deleting one tag at a time.

LGTM

LGTM


[CP][beta channel] Cherry-pick dart:html bug fix

commit(s) to merge: TBD (CL about to land)
merge instructions: clean merge
What is the issue: fix bug in algorithm in dart:html
What is the fix: small change to the algorithm
Why cherrypick:  address bug b/143778164
Risk: low
/cc @kevmoo @mit-mit @whesse @athomas @vsmenon @franklinyow @srujzs

lgtm

Approved

Commit hashes:
For the fix: ce5a1c2392debce967415d4c09359ff2555e3588
For the CHANGELOG: adc36a6563614a7c3ba29d9911e57fc68e7d9ac0

Merged to beta in go/dart-hash/94162a28126443d4c3f1a7c9267ec1d69d38b330 (2.13.0-211.6.beta).


Can not take effect after installed

Description
I have installed nvim-autopairs.
But  can not make it effect (append auto after " ` or { [
How to resolve it?
Mapping  bug
1.If you report a bug about indent. Please remember that plugin doesn't do anything about indent.
It just trigger the indent of your vim config so if you have wrong indent config then it will do wrong indent.
You can check by select a block of code and press ==
2. provide result of command :verbose imap <cr>.
Steps to reproduce
this is my simple config:
local ensure_packer = function()
    local fn = vim.fn
    local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
    if fn.empty(fn.glob(install_path)) > 0 then
      fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
      vim.cmd [[packadd packer.nvim]]
      return true
    end
    return false
  end

local packer_bootstrap = ensure_packer()

return require('packer').startup(function()
    use 'wbthomason/packer.nvim'

    use 'glepnir/zephyr-nvim'
    use("folke/tokyonight.nvim")
    use 'bluz71/vim-moonfly-colors'

    -- nvim-tree (新增)
    use {
        'kyazdani42/nvim-tree.lua',
        requires = 'kyazdani42/nvim-web-devicons'
    }

    use { "beauwilliams/focus.nvim", config = function() require("focus").setup() end }

    -- for this completion
    use "ms-jpq/coq_nvim"
    use "ms-jpq/coq.artifacts"

    -- auto pairs
    use {
      "windwp/nvim-autopairs",
      config = function() require("nvim-autopairs").setup {} end
    }

end)

Minimal config
vim.cmd [[set runtimepath=$VIMRUNTIME]]
vim.cmd [[set packpath=/tmp/nvim/site]]
local package_root = '/tmp/nvim/site/pack'
local install_path = package_root .. '/packer/start/packer.nvim'
local function load_plugins()
  require('packer').startup {
    {
      'wbthomason/packer.nvim',
      {
        'windwp/nvim-autopairs',
      },
      -- ADD PLUGINS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE
    },
    config = {
      package_root = package_root,
      compile_path = install_path .. '/plugin/packer_compiled.lua',
      display = { non_interactive = true },
    },
  }
end
_G.load_config = function()
  require('nvim-autopairs').setup()
end
if vim.fn.isdirectory(install_path) == 0 then
  print("Installing nvim-autopairs and dependencies.")
  vim.fn.system { 'git', 'clone', '--depth=1', 'https://github.com/wbthomason/packer.nvim', install_path }
end
load_plugins()
require('packer').sync()
vim.cmd [[autocmd User PackerComplete ++once echo "Ready!" | lua load_config()]]

it should work on nvim 0.7

@windwp hello, my nvim is just 0.7. Does there need any further configuration after required in packer?

I just wanted to note that I am also having this issue.  I have a very minimal set up as I am configuring neovim from scratch.  I'm not sure why, but it just doesn't seem to work. I'm using 0.7.2 of neovim.

Strangely after I restart terminal or something else setup, it now seems can autopair my [ or { etc. not sure if it was autopairs's functionality or others. I also have COQ installed.

@bthooper you can check by running verbose imap [ or running :lua require("nvim-autopairs).setup() on command and test again.
maybe it have some problem with your config.

@windwp  Thanks. When I run the command from the nvim command line, it works....so something must be wrong with my config.....even though I thought it was simple :)

so strange to me. I have this line in my init file:
use { "windwp/nvim-autopairs",  config = function() require("nvim-autopairs").setup()  end }
Is it clear what could be wrong? When I run that require command it works, but it isn't running it when I start nvim.

I had the same problem too. Restarting the terminal, not just closing and opening neovim solved it.

I have the same problem, neovim version: NVIM v0.9.1

Same problem here

NVIM 0.9.1, I couldn't get it to work either, so I tried doing require("nvim-autopairs").setup {} ouside of the Packer use directive and it activates it correctly.

Had the same problem, forgot to use opts = {} -- this is equalent to setup({}) function in my lazy Installation.

Can someone who made it work provide their whole init.vim? I did everything right in theory, but it is still not working


cmgen's mirror gives strange image result

Describe the bug
cmgen's --mirror gives unexpected image result.
For example,  with Ditch River IBL image from http://www.hdrlabs.com/sibl/archive.html,
NX

NX with --mirror

To Reproduce
$ ./cmgen -x ibls --mirror input.exr

Expected behavior
https://github.com/google/filament/blob/master/tools/cmgen/src/CubemapUtils.cpp#L197
Multiplier N is the source of an issue.
We could simply rewrite it to
src.sampleAt(double3{ -N.x, N.y, N.z })

to get mirrored image? 🤔

Thanks! Confirmed now --mirror works well.


signals cannot be used in directord because they are incompatible with taskflow

Describe the bug
#351 has broken task-core's execution with task flow.
[2021-12-20 14:27:22,072] [DEBUG] repos-setup==1.0.0 directord execute - args: (), kwargs: {}, hosts: ['task-core-1', 'task-core-2', 'task-core-3', 'task-core-4'], data; {'id': 'setup', 'action': 'run', 'driver': 'directord', 'provides': ['repos.init'], 'jobs': [{'RUN': '--skip-cache --stdout-arg tripleo_repo_rpm curl -s https://trunk.rdoproject.org/centos8/component/tripleo/current/ | egrep -o \'"python3-tripleo-repos.*rpm"\' | tr -d "\\""'}, {'RUN': '--skip-cache dnf -y -q install https://trunk.rdoproject.org/centos8/component/tripleo/current/{{ tripleo_repo_rpm }}'}, {'RUN': '--skip-cache tripleo-repos --stream -b master current-tripleo ceph'}, {'RUN': '--skip-cache dnf -y -q clean all'}, {'RUN': '--skip-cache dnf -y -q makecache'}]}
[2021-12-20 14:27:22,072] [INFO] repos-setup==1.0.0 | Running
[2021-12-20 14:27:22,201] [DEBUG] Applying resolver 'RevertAll(strategy=REVERT_ALL)' to resolve failure 'Failure: ValueError: signal only works in main thread' of atom 'repos-setup==1.0.0'
[2021-12-20 14:27:22,278] [DEBUG] Modified/tweaked 103 nodes while applying resolver 'RevertAll(strategy=REVERT_ALL)'
[2021-12-20 14:27:22,279] [DEBUG] Discarding failure 'Failure: ValueError: signal only works in main thread' (in response to outcome 'executed') under completion units request during completion of atom 'repos-setup==1.0.0' (intention is to REVERT)
[2021-12-20 14:27:22,488] [DEBUG] Applying resolver 'RevertAll(strategy=REVERT_ALL)' to resolve failure 'Failure: ValueError: signal only works in main thread' of atom 'hostname-init==1.0.0'
[2021-12-20 14:27:22,491] [DEBUG] Modified/tweaked 103 nodes while applying resolver 'RevertAll(strategy=REVERT_ALL)'
[2021-12-20 14:27:22,491] [DEBUG] Discarding failure 'Failure: ValueError: signal only works in main thread' (in response to outcome 'executed') under completion units request during completion of atom 'hostname-init==1.0.0' (intention is to REVERT)
Traceback (most recent call last):
  File "/usr/bin/task-core", line 10, in <module>
    sys.exit(main())
  File "/usr/lib/python3.6/site-packages/task_core/cmd.py", line 154, in main
    e.run()
  File "/usr/lib/python3.6/site-packages/taskflow/engines/action_engine/engine.py", line 247, in run
    for _state in self.run_iter(timeout=timeout):
  File "/usr/lib/python3.6/site-packages/taskflow/engines/action_engine/engine.py", line 340, in run_iter
    failure.Failure.reraise_if_any(er_failures)
  File "/usr/lib/python3.6/site-packages/taskflow/types/failure.py", line 341, in reraise_if_any
    raise exc.WrappedFailure(failures)
taskflow.exceptions.WrappedFailure: WrappedFailure: [Failure: ValueError: signal only works in main thread, Failure: ValueError: signal only works in main thread]

To Reproduce
Steps to reproduce the behavior:

Run basic task-core PoC

Expected behavior
No failures.

Correction: They can be used. Just not in the client library to interact with directord.