Set image as background in the DXF file.

Hello There,
I want to set an image as a background of the dxf file which I am creating. Other entities should be drawn on that image. Any suggestions on how to do it?
Second thing I want to know is how to add a border to the image?
Thanks in advance.

To work with bitmaps you need to use the Image entity, just place it anywhere with the dimensions you want. Later, you can place any other entities like lines, polylines,... on the same plane. Keep in mind that the drawing entities are drawn in the order they were created. In the TestDxfDocument project there are lots of little samples on how to create and modify the available entities.
In a DXF there is no such thing as a background image, an image is treated like any other entity, properties like Color, Linetype, and Lineweight will control how the image border is drawn; so, there is no need to manually place a rectangle around the image limits.
Daniel

Hello Daniel,
Thanks for your reply. I have changed the order of creating entities and it works. Thanks a lot.
Another thing is when adding the PNG images to the DXF file every image has a border that's making the PNG images non-transparent. And I want to show Images as it is. I mean transparent.
I have tried the Transparency option of the image but it's working like opacity.
Please give any suggestions on that.

Are you talking about preserving the image alpha channel? If this is your problem, it is controlled by the DisplayOptions property of the Image entity, just add the flag TransparencyOn, by default it is off.
Daniel

Hello Daniel,
Setting TransparencyOn makes the image transparent but the border around the image is still there in black color.
as shown in the image the image has a border drawn.

Didn't you want to draw the border of the image? Nevermind, yes you can turn it off with
[your DxfDocument instance].RasterVariables.DisplayFrame = false;

This is a global variable, therefore it will affect all images in your drawing, you cannot turn them off individually.


build throws: Plugin with id 'nebula.provided-base' not found

getting this error when building:
Plugin with id 'nebula.provided-base' not found
any ideas?

It should work if your computer can resolve plugins.gradle.org / "https://plugins.gradle.org/m2/".
In case your cache got a partial you can try ./gradlew <tasks> --refresh-dependencies

@rspieldenner thanks, yep I can resolve that site. I probably should have mentioned I see this when following the instructions from: https://github.com/Netflix/exhibitor/wiki/Building-Exhibitor, which specifies using a different build.gradle than what is in the repo (I tried both). So not sure if its something in that buildfile that is causing it...

Clone from git instead of downloading zip

Closing this for now. You may re-open for further comments.
I would recommend using Maven for this if possible.


Button overlapping

Technical details

Device name: Samsung Galaxy A5 (2017)
Android version: 8
App version: 2.0.3

Describe the bug

Button Jetzt auschecken overlaps the Duration counter.
Steps to reproduce the issue

Check in to any location.
Click Check-in at the bottom of the main screen.
See attached Screen.
Expected behaviour

Possible Fix

Additional context

@DerVogel2020
Could you check if this is the same as https://github.com/corona-warn-app/cwa-app-android/issues/2849?
You might have missed it, since the issue I'm referring to has been closed, although it will not be fixed until the 2.1 release.

Yes, it's the same.


Allows partial regex for named parameters

Hi,
Please find attached my first contribution on this project. This pull request allows partial regular expression for named parameters, like this :
/foo/:bar([0-9]+) is parsed as :
req.params.bar = value that match the pattern.
In other case, route is considered as a "missing route".

Hi, thanks so much for doing this. Could you please run make prepush and ensure lint and style runs clean. Also, if could you please prefix your unit tests with 'gh #704'?

See #763 (because this merge point out a "unknown repository"

See #764


http2: removes nghttp2 types from CodecImpl method signatures

Signed-off-by: Biren Roy<EMAIL_ADDRESS>Commit Message: Removes nghttp2 types from CodecImpl method signatures. Cleanup related to https://github.com/envoyproxy/envoy/issues/23596.
Additional Description: This will make it easier to implement http2::adapter::Http2VisitorInterface in the future.
Risk Level: low
Testing: ran unit tests and integration tests locally
Docs Changes:
Release Notes:
Platform Specific Features:

/assign @bencebeky
/assign @RyanTheOptimist

Ready for merge @yanavlasov @KBaichoo


Use Resources view for notifications?

how use custom views fro mail notify with modules, markdown/view  is not working with Module folder Resources.

I would assume same as normal laravel.

Inside the build() function of a mailable, trying to reference a view that's inside of the module, even with the module's namespace, returns the following:

View [viewname.blade.php] not found.

Code:
public function build()
    {
        return $this->subject($this->data['subject'])
            ->view('module::viewname');
    }

So is not possible to load the markup from the module ?
public function build(): static {         return $this->subject('test')             ->markdown('Modules/Blog/Resources/views/emails/newPost');  }
.... it throws an error: View not found.
I am using laravel/framework: 10 and nwidart/larevel-modules: 10


chore(nextjs)!: Require CLERK_ENCRYPTION_KEY for secretKey as dynamic key

Description
Resolves SDKI-485
Prepares for the major release, replacing the previous warning for missing CLERK_ENCRYPTION_KEY with an actual error.

Checklist

[x] npm test runs as expected.
[x] npm run build runs as expected.
[ ] (If applicable) JSDoc comments have been added or updated for any package exports
[ ] (If applicable) Documentation has been updated

Type of change

[ ] 🐛 Bug fix
[ ] 🌟 New feature
[X] 🔨 Breaking change
[ ] 📖 Refactoring / dependency upgrade / documentation
[ ] other:

We forgot to include this PR on the V6 major version, therefore I'll close this in order to not become stale. Let's come back to it on V7.


Adding Polylines

Hi.
I tried to add some polylines to the map but this resulted in an error.

#35

Fixed #35


Finished shell, bitstring and setup assignments

Hi Tommy,
I can't accept your Pull Request because it would modify other files that aren't your own submissions. The easiest way to fix this is just to re-fork my repo, clone your fork, add your new files to the submission folders, push to your GitHub, then submit a PR. Does that make sense? Msg me on slack if you have questions!


Suggestion password helper

In the recent time I created helper to the password hashing and verify.
My class is smaller and more legible than current. Could somebody look at it and test?
repo: https://github.com/QsmaPL/Simple-PHP-Password-hasher
It is possible so that it is to add it to SMVCF and to replace old class? :)

This looks great but I won't be replacing the password class, their is more content and complexity on the password class granted but it's what's recommended to use the same functionally as the built in password functions for php 5.5.
This is for users that are on a version less then 5.5

Okey, pls update current class to latest version https://github.com/ircmaxell/password_compat/blob/master/lib/password.php ;)

yes good call I will look at updating it this evening.


ci: fix conformance gateway-api & ingress sysdump gathering & upload

Currently, if multiple Gateway API or Ingress matrix runs fail, only one sysdump
is uploaded. The reason is that all sysdumps have the same name.
Therefore, this commit fixes the naming of the upload artifacts by
by appending the matrix values or name to the filename.
In addition, the duplicated fileending .zip.zip is removed from the
final merged ZIP file.

/ci-ingress

/ci-gateway-api

/test


Support for Reverse Layout

Are there any plans to support reverse layouts?

Can you describe how it would work? We don't have any plans to implement
this but feel free to submit a pull request.

Please feel free to reopen if and when you add more details.


Do not activate full CI run when only documents are changed

Brief feature description
It is not necessary to do a full CI run when a pull request contains only non source code files.
Could we introduce an allowed-list of file types which do not trigger the CI, like markdown documents? This means, when a PR consists only of file types from that allowed-list the CI checks only the bare minimum like ECA, checklist etc.
This may improve the review speed and relieves some stress on the CI.

@dkroenke what do you think, could this be something for the future?


[Enhancement] Device type Smoke CO Alarm

Could you consider implementing the device type Smoke CO Alarm?
Smoke-sensors in Homeassistant are currently exported as plain contact-sensors. Apple Home can alter the device-type only to door/window/contact-sensor, but not to Smoke CO Alarm.
Thanks!
Aebgit
PS: awesome project!! Already in alpha-state very useful.

In Home Assistant, is it "smoke" or "cabon_monoxide" or both?

Here we go:
[3d_smoke_alarm_smoke_sensor](https://xxx/#)

3D Smoke Alarm Smoke Sensor
off
device_class: smoke
friendly_name: 3D Smoke Alarm Smoke Sensor

[button.3d_smoke_alarm_identify](https://xxx/#)

3D Smoke Alarm Identify
unknown
device_class: identify
friendly_name: 3D Smoke Alarm Identify

[sensor.3d_smoke_alarm_battery_service](https://xxx/#)

3D Smoke Alarm Battery Service
35
state_class: measurement
unit_of_measurement: %
device_class: battery
icon: mdi:battery-30
friendly_name: 3D Smoke Alarm Battery Service

Thank you.
I do not support combining muiltiple entities to one device at the moment.
There is a feature request for it (#110) but this requires some major changes. So it's something for "later".
Anyhow smoke sensors are still doable by just using the binary_sensor entity.
It will just not expose the battery state and an identify action.

Exposing only the binary_sensor would be perfectly fine from my pov.
However, I just realised that AppleHome (which is my use-case) does not yet support SmokeDetectors via Matter. According to https://support.apple.com/en-us/102135 Apple Supports via Matter currently only motion, ambient light, contact, temperature, and humidity (altough they support more via proprietary HomeKit since several years).
Maybe someone running Google or Alexa can confirm if it is working (same for #48 and many thanks for implementing this!).
Maybe it‘s worth to pin a PSA issue, highlighting the current limitations of AppleHome.

Okay, if its not working anyway for your usecase, i'll do it "later". As long no one else needs this.
As a workaround you could create a template binary_sensor in Home Assistant to change the device_class to something else supported.


utc_offset deprecated?

I get a lot of warnings working with the library. I think this is because utc_offset is included in your model but Strava has deprecated that attribute. Do you think that should be changed? I could also try submitting pull request although I haven't done that before!

Yeah, we probably need to comment it out, though I also have code that uses that I think -- so I probably need to review what they're doing now instead! :)

Cool. Submitted a pull request to try it out.

Thanks - merged!  I'll leave this open for now as a reminder to investigate the change from Strava a little more deeply.

Sorry to be a pain. I'm still getting a lot of warnings about the UTC_offset attribute. I've hunted around to try to work it out but no luck. Any advice?

@pcoster , I assume you're using the version from pypi?  I need to do a new release.  (No need to apologize; I should have done that sooner.)

Yes I was. Now I get the warnings on python3 but not on python2. I've installed with pip and pip3. Might be embarrassing myself but I though I'd ask anyway. Thanks for building this thing, by the way.

I'll do my best to sit down and put together the release this week.  I'd like to take a look at the issues and update changelog, etc.

Cool thanks a lot. Just ignoring the warnings for now seems to be working fine for now. :)

This has been fixed.


Updating MongoDB checkpointer docs

This PR updates the How-to guide on using the MongoDB checkpointer.
The guide currently explains how to create a custom MongoDB checkpointer, but we now have a checkpointer implementation available via the langgraph-checkpoint-mongodb library. This PR updates the current resource to guide users on how to use this implementation.

Awesome, thanks for updating!


Can't open files in PR

Issue Type: Bug
This works in other repos so I don't know what's special about this.

Open microsoft/vscode-remote-ssh in a local window
Create a PR (https://github.com/microsoft/vscode-remote-ssh/pull/116)
Click a file in the PR in the sidebar view
Get this error notification

Unable to open 'README.md (Pull Request)': The file working copy resource pr:/Users/roblou/code/vscode-remote-ssh/open-ssh-remote/README.md?{"baseCommit":"196d8e6fdfa49f5ddc949ec44279f13036c70f25","headCommit":"3637dcbabd3dd5318aa874a732bcd06300515007","isBase":false,"fileName":"open-ssh-remote/README.md","prNumber":116,"status":3,"remoteName":"origin"} does not have an associated file system provider..

Extension version: 2021.4.37984
VS Code version: Code - Insiders 1.56.0-insider (19cda32aafccb88db45622e7ae9be90cb71c9744, 2021-04-27T17:44:21.786Z)
OS version: Darwin x64 20.3.0
Remote OS version: Linux x64 5.4.0-1043-azure
Remote OS version: Linux x64 5.4.0-1043-azure
Fetching remote diagnostics for 'Codespaces' failed: Canceled
Fetching remote diagnostics for 'Codespaces' failed: Canceled

System Info

Item
Value

CPUs
Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz (16 x 2400)

GPU Status
2d_canvas: enabledgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onoop_rasterization: enabledopengl: enabled_onrasterization: enabledskia_renderer: disabled_off_okvideo_decode: enabledwebgl: enabledwebgl2: enabled

Load (avg)
3, 3, 3

Memory (System)
32.00GB (0.25GB free)

Process Argv
--crash-reporter-id a2c1d522-e9f0-4e3f-b78a-9253f1c2d2d3

Screen Reader
no

VM
0%

Item
Value

Remote
SSH: robfast-vnc

OS
Linux x64 5.4.0-1043-azure

CPUs
Intel(R) Xeon(R) Platinum 8171M CPU @ 2.60GHz (4 x 2095)

Memory (System)
15.64GB (3.13GB free)

VM
0%

Item
Value

Remote
SSH: robfast-vnc

OS
Linux x64 5.4.0-1043-azure

CPUs
Intel(R) Xeon(R) Platinum 8171M CPU @ 2.60GHz (4 x 2095)

Memory (System)
15.64GB (3.13GB free)

VM
0%

Fetching remote diagnostics for 'Codespaces' failed: Canceled
Fetching remote diagnostics for 'Codespaces' failed: Canceled

A/B Experiments
vsliv695:30137379
vsins829:30139715
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
pythonvspyt602:30291494
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstry244:30244315
pythonvspyt639:30291487
pythontb:30258533
vspre833:30267464
pythonptprofiler:30281269
vsdfh931cf:30280410
vshan820:30294714
pythondataviewer:30285072
vscus158cf:30286554
vscgsv2ct:30286873
vscorehov:30294388

Hmm this is mysterious to me, there should always be a text document content provider registered when the tree is constructed on activation.
It looks like when opening editors, we first try to see if there is a file system provider for the scheme and then check if there is a content provider:
https://github.com/microsoft/vscode/blob/606bf316c73dcb83413077e2226010c25164bd73/src/vs/workbench/services/textmodelResolver/common/textModelResolverService.ts#L62-L71
I think it has to be going through the first case instead of the second to end up with this error - is there any chance you have an extension installed which also registers for the 'pr' scheme, or any kind of settings that would effect certain schemes?

Interesting, it's this
"workbench.editorAssociations": [
    {
        "filenamePattern": "*.md",
        "viewType": "markdown-notebook"
    },
]

I looked into this and it does appear that the override service is doing the right thing. We return a notebook editor diff to be opened. The error must be in notebook land so leaving it up to @rebornix and @jrieken


Suggestions on how to solder onto my hifiBerry board

Now I've got my RC-522 as well as my hifiberry board working separately (thanks to all the super nice people here!!!)
Now to get both working at the same time, I'd have to solder the RC-522 to the hihiberry board (as that one directly covers up all the pins of the raspberry when but together)
I guess this setup shouldn't be that uncommon here? Does anybody have tips on how to solder the additional cables to the hifiberry board? Pics would be awesome. I am just not sure if I should try to get a female connector thingy (i don't know the real word for that :) ) onto it, or directly solder the cables to the RC-522?!?

Hi @georgbachmann @romanbalsiger
thanks for your contributions! I added this info as a wiki page here: https://github.com/MiczFlor/RPi-Jukebox-RFID/wiki/HiFiBerry-with-hardware-soldering
... and will close this thread. If you have more info, please add it to the wiki.
Thanks again, micz


row number error when using getRadioState after column sort

Version
1.0.0
Link to Minimal Reproduction

Steps to Reproduce

load data ...
sort by other column
check the radio

const i = tableInstance.getRadioState('radioColumn')
const record = tableInstance.getRecordByCell(0, i + 1)

Current Behavior
The row number of tableInstance.getRadioState('radioColumn')  is wrong, when sorting by other column.
Expected Behavior
Returning the new row number instead of original one
Environment
- OS: win10
- Browser: chrome
- Framework: vue3

Any additional comments?
No response

getRadioState function return a radio state array, which is in the order of data records order(not row order). If you want to get the radio state of row order, you need to use getCellCheckboxState API in a loop.

It's still a little bit counterintuitive, checking the radio means user wants to select the row and does something else with this record, but can not getRecordByCell correctly. Thanks anyway for your advice.

const i = tableInstance.getRadioState('radioColumn') # original data index
# const record = tableInstance.getRecordByCell(0, i + 1)
const record = tableInstance.records[i] # original data records

got it!


Next Challenge Button

Challenge http://www.freecodecamp.com/challenges/waypoint-use-clockwise-notation-to-specify-the-margin-of-an-element has an issue. The Go-to-my-next-challenge button takes me a lot of clicks just to activate it, and sometimes it just won't go to the next challenge at all. Is this a bug or is it my own computer problem?

We have fixed this. It was caused by the server wide slow down. Thanks for your patience!


shamsi calendar

i want to used this library for full calendar. i require to shamsi calendar . Can me change miladi calendar to shamsi calendar ?
please help me

@elahehMashhadi
Unfortunately, this library only supports the Gregorian calendar.


braycurtis and sparse matrices

First of all, thanks for the great library!
I was playing with its functionalities and noticed that the braycurtis metric was not available when using sparse matrices.
However, when looking in the code, a sparse implementation is available, but braycurtis is commented out in sparse_named_distances in the sparse module.
Is this a bug or is there any particular reason for this?
Thanks a lot!

I think there were some bugs in corner cases fro sparse Bray Curtis that made things go very badly sometimes. I haven't looked at it for a while though. It might be salvageable now.

I think there were some bugs in corner cases fro sparse Bray Curtis that made things go very badly sometimes. I haven't looked at it for a while though. It might be salvageable now.

A similar change was made in pynndescent, so once these get released (or when you install from the main branches on github), you should be good to go. Thanks for bringing this to my attention. It seems it languished for a while.

A similar change was made in pynndescent, so once these get released (or when you install from the main branches on github), you should be good to go. Thanks for bringing this to my attention. It seems it languished for a while.

Great, thanks a lot for the quick response and fix!

Great, thanks a lot for the quick response and fix!


Remove unused usings

Remove unused usings across the tree in preparation for: https://github.com/dotnet/roslyn-project-system/pull/1002

tag @dotnet/project-system


Update Jerryscript patches to work against v3.0.0.

JerryScript v3.0.0 introduced significant changes to file structures and function interfaces, resulting in incompatibilities with the existing codebase. This pull request addresses these issues by updating function calls, parameters, and other affected parts of the code to ensure compatibility with the latest version of JerryScript.

Cool, thanks!


Makes email usage optional.

Closes issue #44. The addition of a boolean to the config with the
key 'useMail' (default is true). This is checked when requiring email
verification of accounts and sending emails for password resets. If
false, no emails are sent; if true normal behaviour is followed.
Allows for easy use in a test environment where emails cannot be sent.

This seems ok to me.  @andresgutierrez @sergeyklay What do you think?

Looks good to me


Typo "Azure storage emulator"→"Azure Storage Emulator"

https://github.com/MicrosoftDocs/azure-docs/blob/master/articles/vs-azure-tools-storage-manage-with-storage-explorer.md

@hyoshioka0128 : Thanks for your contribution! The author(s) have been notified to review your proposed change.


cgeo cant login

I saw in the android market it said to update the app if login didn't work but I am still having a message popup and say that ot can't login. What can I do??

Let's you can do the following steps.

find a proper support address<EMAIL_ADDRESS>update to latest c:geo version from market
go to settings and type your correct username & password
if it still does not work send us a log http://faq.cgeo.org/#1_11


#12 add support to authentification

fix #12

"The PR still includes the other changes that are unrelated to authentication like HSET testing"
commit 713c113

for metadata file I think it's iceberg who deletes it.
proof:
https://github.com/CafeKrem/RediStick/commit/2bee65193aae9ee7af3f9678749c0de4adc0acf0
I try with a new branch from your dev branch, and you can see that some metadata file is removed

is ok for you?

You can manually salvage unintentionally deleted properties files from the current develop branch and push the PR again.  We are getting close to the merge!

In the future, I will change the file format from Cypress to Tonel, so it would better fit to Iceberg. However, RediStick is still used with some legacy (pharo 6) projects, so we need some time for migration.

"You can manually salvage unintentionally deleted properties files from the current develop branch and push the PR again."
but how I can do this?

I mean via git command

done

"You can manually salvage unintentionally deleted properties files from the current develop branch and push the PR again."
but how I can do this?

You can cherry-pick via git command, but a simpler way is just to clone the develop branch again to other directory (like RediStick-develop) and copy some unintentionally deleted files to your working directory.
I think these files are:
RediStick-Connection-Pool.package/RsRedis.class/methodProperties.json
RediStick-Connection-Pool.package/RsRedisConnectionPool.class/methodProperties.json
RediStick-Connection-Pool.package/RsRedisProxy.class/methodProperties.json

Thank you for your patience. I would like to keep the PR clean.

Thanks for the updates. Unfortunately, many methodProperties files were deleted again. Please salvage them, so I can finally merge.
https://github.com/mumez/RediStick/pull/14/files

OK. I will try to salvage deleted files by myself.  #develop branch will be unstable for a while but recovered soon.


Performance improvements

Fixes #1
I found that all the methods were creating copy of input parameters. This included copies of vector of boids too. These copies were unnecessary, so I have converted all the parameters to const reference. This will save a lot of heap allocations.
Also there was no FPS limit set on main window. I've set that to 60 now. This is not the most correct thing to do but it will at least limit the frame rate when number of biods are less. So here are the new readings.
Release mode

Number of boids: 250
Avg FPS: 60
Memory usage: 30 MB
CPU usage: 2.8%

Number of boids: 1000
Avg FPS: 60
Memory usage: 31 MB
CPU usage: 14-15%

Note: These reading were taken on i5 9th gen + GTX1650 + 8 GB Ram. FPS counts are now 60 because I have set the limit to 60. When left unbound, I was able to see 100+ FPS for 1000 boids.

Additional observations:
Right now the motion of boids is frame rate dependent. This means if FPS count is high, boids will move faster and if FPS is low, boids will move slower. This can be solved easily by accumulating time since last frame and updating state only when accumulated time exceeds a pre-defined time (1/60 for achieving 60 FPS).
I didn't fix this in this PR because it will require so more changes and I think it will be better if a new issue is created for this.

I remember watching Sebastian Lague's youtube video on boids. I wanted to implement it using SFML but wasn't sure how to get started. So this repo is a really great resource for me.
I am also participating in Hacktoberfest this year and I was hoping to get my PR count +1. But it seems only repositories having 'hacktoberfest' as a topic are considered. If it is fine with you guys can you add this topic to your repo.

This is great @ufrshubham, thanks for all the improvements! @chernandez7 and I wrote this back when we were learning C++ many years ago, hence all the silly design choices that we never went back and corrected. And sure, I'll add the hacktoberfest tag to the repo. Cheers.


parallel: 20221122 -> 20221222

Description of changes

Things done

Built on platform(s)

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

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 212021 run on x86_64-linux 1

13 packages built:

adapta-gtk-theme
bash-preexec
bats
image_optim
jpeg-archive
last
packcc
parallel
parallel-full
plata-theme
profile-cleaner
sonic-pi
tebreak


0.0.5 pypi wheel miss rikai.spark.sql.generated module

Reproduce:

Download https://files.pythonhosted.org/packages/ff/f3/a82a666d8a0e52cf7668d3d8d95dc41ed7127382071950deccfa71d52fcb/rikai-0.0.5-py3-none-any.whl
unzip -l rikai-0.0.5-py3-none-any.whl

ok 0.0.4 had the same issue

oh it's because there's no init.py so find_packages doesn't see it

Fixed in #219


Console keeps flashing after starting program. Audio but nothing else.

Helli! I'm extremely stupid when it comes to coding and all things related so sorry if I struggle a bit.
the steps Ive followed so far have been:
-Download the edgewear main zip file from this site
-unzip it to a folder (I've tried multiple locations/drives)
-run the bat (the first time it seemed to do a lot more things, now it just opens the config instantly
-Add a recourse pack and tick "start on save and exit"
-then I save and exit. this is where the console starts flashing but nothing happens.
My python version is 3.11 (64 bit) and windows version is 11. Im not sure how Im supposed to get logs so someone might need to give me a little rundown on how to do so please and thank you!

First I'll suggest to check if there are any shortcuts on your desktop to launch the software.
Second, try to follow the instructions in the issue #47.
Logs should be located in the "logs" folder in your edgeware directory.
You could also share the output when running the debug script. Either from launching the .bat file ou with python(from trying to launching it directly or by command line). If you need more info, please don't hesitate.

Following Issue #47 helped instantly for me. thank you thank you <3 I ended up using your branch.


working TCE time reduction

Redoes the kernel launch and distribution of work for threads in the TCE creation kernel.
Validation: https://www.classe.cornell.edu/~mgr85/www/SegmentLinking_keep/PR113/

timing:

I'm curious about the apparently bad scaling of the TCE kernel vs the number of streams. Everything else seems to be roughly linear. Perhaps it's just round-offs.
@tresreid
Please add one more significant digit to the printout values below 2ms.

thanks. Well, this doesn't look like a round-off; OTOH, perhaps there is an issue in the timing resolution at low values.
e.g. 0.06 for s=1 seems too small.
Is this an average over many events? how many?

Ok Actually i don't think this is real. I think i missed up somewhere.


Support for dynamically rendered iframe like twitter widget

Support for dynamically added iframes like:

Ref: https://github.com/orestbida/cookieconsent/issues/195

Is there already a testable solution for this to provide feedback?

@MaluNoPeleke, it is possible but not ideal.
Unlike traditional iframes, twitter widgets handle their width/height dynamically, which doesn't fit well with iframemanager. You need to specify a fixed height/width to avoid content jumping when the iframe is loaded.
Demo on stackblitz.

+1 for this feature request for me. We have a lot of use-cases for external services that aren't loaded as iframes, but as custom scripts. For example, we often include custom Google Maps oder Mapbox maps using Leaflet or Mapbox GL. In this case, the maps are created using those JS frameworks, not as an iframe. But loading the bitmap or vector tiles requires consent, so we need a placeholder with the option to consent.
In my opinion, this feature can be implemented in a really basic way, it doesn't need a lot of functionality:

I don't need iframemanager to manage scripts for me, that can be handled by cookieconsent. When used standalone, the necessary script can be inserted using a callback function, as in the example.
I also don't think iframemanager needs to care about its own size / aspect-ratio (maybe just set a min-height but that's it). For maps, the size is predefined anyway using a fixed height or aspect ratio, and the placeholder can just fill that space. For things like the Twitter feed, it's impossible to calculate how much space that's going to take up beforehand, so it's perfectly fine and acceptable if the content jumps after consent is given.

Basically, all I would need to consider this feature complete is the ability to tell iframemanager to insert the consent placeholder for a given category in a specific element. Currently this is not possible, so I would have to build my own interface to match iframemanager's interface for the use-cases described above.
As a reference, take klaro's contextual consent feature, which works in a similar way: https://klaro.org/docs/tutorials/contextual_consent

Basically, all I would need to consider this feature complete is the ability to tell iframemanager to insert the consent placeholder for a given category in a specific element. Currently this is not possible, so I would have to build my own interface to match iframemanager's interface for the use-cases described above.

Mhm, I'm not sure I understand. If you have — say — 2 twitter embeds, why would you want to have 2 different consent placeholders even though they belong to the same service?

@orestbida Sorry, maybe I didn't explain it well. I don't want to have two different placeholders. I want to use iframemanager as a placeholder for external content that isn't delivered in the form of an iframe.
For example, I am working on a map component that is powered by Mapbox and initialized through JavaScript using mapbox-gl. In this case, there's no iframe involved, since the map is initialized by my custom JavaScript code. Since loading Mapbox tiles requires consent, I need a placeholder with consent buttons. However, after consent is given, I don't need an actual  on the page, since the map is initialized by my JS callback.
I can actually get really close to what I want with iframemanager:
const initializeMap = () => {
    // JS code that initializes the map using mapbox-gl
}

im.run({
    onChange({ changedServices, eventSource }) {
        if (eventSource.action == 'accept' && eventSource.service == 'mapbox') {
            initializeMap();
        }
    },
})

The problem is that iframemanager always inserts an  into the page and forces it to overlay the existing content. I can solve this by hiding the iframe (or wrapper element) using JS, but that's not a very clean solution.
So to summarize, I want to use the placeholder provided by iframemanager, but I don't need iframemanager to actually insert an iframe in some cases.

More broadly: We're trying to use cookieconsent and iframemanager as a general, GDPR-compliant consent manager solution. Having placeholders for external content is very important – but not every external content is loaded in the form of an iframe. Being able to use the same placeholders for external content regardless of delivery method (iframe or custom JS code) would solve this. This would require an option or configuration that tells iframemanager not to insert an iframe for specific placeholders.
I don't even think this needs to be an additional configuration option. The service definition already includes a embedUrl config – maybe just allow users to leave this empty and skip inserting the iframe is this is the case? Or if you don't like that approach, maybe this can be controlled through another data-* attribute on the placeholder element, data-no-iframe or something like that?

@MoritzLost, there is a custom widgets section which describes how to do this. You use the onAccept and onReject methods to define how the markup is generated and destroyed.
You can find 3 custom widget examples in the /demo dir:

google-maps
leaflet
twitter-tweets

Mapbox should be very similar to leaflet.

@orestbida Thank you, I totally missed that! Sorry for the confusion. Now it's working fine, I'm triggering a CustomEvent in the global onChange callback (and the onAccept callback as well) and using that to initialize my map once consent is given. Then I set div.hidden = true in the onAccept callback.
This works and now the map is displayed correctly!

As a sidenote, I was seeing an issue where I get a flash of black before the overlay is hidden (see screen recording below).
https://github.com/orestbida/iframemanager/assets/10146880/acec9c4d-cbfb-48fa-a9f6-0474be341915
Setting div.hidden = true fixed that. I think that would be a sensible solution to put into iframemanager itself. That would also be good for accessibility, since hidden removes the placeholder from the accessibility tree completely – right now the placeholder is just hidden using opacity and visibility. Should I create a separate issue for that?

I'm not sure why you are setting the div as hidden, when the generated widget is appended inside the div.
Perhaps this issue is specific to Mapbox, as I don't see it in the above 3 mentioned custom widgets.

Perhaps I'm lucky, but I don't see the mentioned issue in this basic example (tested in Chrome and Firefox):

{
    /**
     * @param {HTMLDivElement} div
     */
    onAccept: async (div) => {
        await loadScript('https://api.mapbox.com/mapbox-gl-js/v2.9.1/mapbox-gl.js');
        await im.childExists({childProperty: 'mapboxgl'});

        mapboxgl.accessToken = 'YOUR_TOKEN';

        const map = new mapboxgl.Map({
            container: 'map',
            style: 'mapbox://styles/mapbox/streets-v11'
        });

        await map.once('load');

        // Manually show placeholder
        div.classList.add('show-ph');
    },

    /**
     * @param {HTMLDivElement} serviceDiv
     */
    onReject: (iframe, serviceDiv) => {
        serviceDiv.lastElementChild.firstElementChild.remove();
    },

    languages: {
        // ...
    }
}

@orestbida The map is not rendered inside the placeholder in my case. The code that initializes the map is in a separate file, I don't to have that inside the iframemanager callback and I don't want to couple the map code to iframemanager. That's why I have separate elements for the placeholder the mount point for the map:

location-map is used as a wrapper and provides the map dimensions. The placeholder and map mount are both set to fill the container using position: absolute. Once consent is given, the placeholder is hidden and the map is initialized inside the data-map-mount element. Maybe setting the placeholder to position: absolute is causing the flash of black background? I can't use fixed width/height because the dimensions are dynamic and based on the viewport, and the placeholder needs to occupy the same space the rendered map will.

The plugin was never designed to handle these types of custom use-cases that you're trying to achieve (data-service div wrapped in your own div, and with your custom logic handling).
You need to use a specific structure for this to work as intended. I posted the full example with mapbox in a comment above and I don't face any of the mentioned issues.

The data-autoscale option doesn't work well because it uses height: auto ...

Can you share a demo?
For the sake of clarity: you either use data-autoscale or data-widget, not both.

I noticed the placeholder includes a tiny spinning element at the top right ...

It should be at the bottom right of the div element.

It's invisible by default, but is briefly visible during the transition after clicking one of the buttons.

Yes, to show that "something" is loading. If the widget/iframe loads incredibly quickly, then the loader might not show at all or show for an extremely brief moment, which is normal. Why do you want it removed?

The plugin was never designed to handle these types of custom use-cases that you're trying to achieve (data-service div wrapped in your own div, and with your custom logic handling).

Fair enough. I've given it another try – now I'm following the recommended structure and it's working as intended. Some details below.

onAccept: div => {
    initializeMap();
    div.classList.add('show-ph');
},

Sidenote, why is the class called show-ph? Isn't the consent overlay the placeholder, and the class reveals the actual content beneath the placeholder?
However, now I'm definitely seeing the issue with the flash of black. I think this is the expected behaviour. All the examples in the demo show the same behaviour. If you set everything to Don't ask again and then reload the page, you still see the overlay briefly before the actual content has loaded. That's because all the examples assume that the content will be loaded asynchronously, so the overlay will be visible for at least a couple of seconds. Since we initialize the map synchronously, the overlay only briefly flashes during the page-load, then is immediately hidden when my callback function runs.
Is there a way around this?

For the sake of clarity: you either use data-autoscale or data-widget, not both.

Without data-widget, iframemanager forces a specific aspect ratio using the padding-top method on the ::before method. But my map doesn't have a fixed aspect ratio – the width is always 100% of the viewport, but the height is set dynamically based on the viewport height:
height: min(80vh, 32rem);

The consent overlay needs to cover that space. I think the correct/intended solution is to use data-widget and then set width: 100% and height: 100%?
By the way, it's a bit inconvenient that iframemanager uses all: unset, this forces me to use !important or use a more specific selector everywhere I need to overwrite something (like in this case).

It should be at the bottom right of the div element.

It is now, maybe that was related to the other layout methods I tried.

Yes, to show that "something" is loading. If the widget/iframe loads incredibly quickly, then the loader might not show at all or show for an extremely brief moment, which is normal. Why do you want it removed?

Got it, thanks – in my current use-case, I'm hiding the consent overlay immediately. The map is displayed pretty much immediately in our case because our JS code that initialies the map is already loaded at this point (and it contains mapboxgl as it's installed via NPM and compiled together with our JS). But the loading indicator doesn't hurt in any case.

Sidenote, why is the class called show-ph? Isn't the consent overlay the placeholder, and the class reveals the actual content beneath the placeholder?

"ph" (placeholder) refers to the div with the data-placeholder attribute, although I also am not fond of this name.

However, now I'm definitely seeing the issue with the flash of black.

Mhm, shouldn't it be a transition from black -> iframe rather than a flash? This is what I see:
https://github.com/orestbida/iframemanager/assets/34487268/76787f99-60e2-4040-b230-31eab13e7bee

By the way, it's a bit inconvenient that iframemanager uses all: unset, this forces me to use !important or use a more specific selector everywhere I need to overwrite something (like in this case).

This is (sadly) needed, as there are badly coded websites, that apply global styles that might ruin the layout/look of the plugins generated markup.

The consent overlay needs to cover that space. I think the correct/intended solution is to use data-widget and then set width: 100% and height: 100%?

I will need to look this up in more detail, as currently it breaks some of the demo embeds.

Mhm, shouldn't it be a transition from black -> iframe rather than a flash? This is what I see:

@orestbida I'm seeing a hard transition, for some reason I'm not seeing the placeholder or the transition.
https://github.com/orestbida/iframemanager/assets/10146880/0db5926a-ef15-4145-94a6-cc5092e15442
Without the transition and with the callback adding the ph-show class immediately, it's more of a flash of black.
Just to rule out any issues with my implementation, I tried switching to a fixed width/height and making my callback asynchronous with some delay:
onAccept: div => new Promise(resolve => {
    triggerConsentManagerEvent('mapbox', true);
    setTimeout(() => resolve(div.classList.add('show-ph')), 2000);
}),

But the loading indicator is still not showing, though I do get a short transition now:
https://github.com/orestbida/iframemanager/assets/10146880/012dcacc-4118-4236-aabb-1fdeee20a40f
Any ideas why? What is triggering the loading indicator and the transition? The only difference between the demos and my implementation is that I'm not using im.childExists, can that have something to do with it?

I will need to look this up in more detail, as currently it breaks some of the demo embeds.

I've just set width: 100% !important and height: 100% !important on the placeholder, instead of setting a fixed width/height as in the demos – shouldn't make that much of a difference? Anyway, fixed width & height rarely makes sense for responsive website, so this should be addressed if it is an issue.

"ph" (placeholder) refers to the div with the data-placeholder attribute, although I also am not fond of this name.

Agreed – in my mind the consent overlay is the 'placeholder', so in the callback I'm hiding the placeholder and showing the actual content.

@orestbida Is it possible to somehow skip displaying the black placeholder if consent has already been given? I know my map will load almost instantly, so it will always look like an error if I get a briefly visible black overlay.

@MoritzLost, you need to make sure that the mapbox widget is fully loaded before toggling the show-ph class. Also the triggerConsentManagerEvent function needs to be async or return something promise-like.
The simplest way is to use the async/await syntax:
async function triggerConsentManagerEvent(service, enable) {
    // ...

    const map = new mapboxgl.Map({...});

    // important
    await map.once('load');
}

onAccept: async (div) => {
    await triggerConsentManagerEvent('mapbox', true);
    div.classList.add('show-ph');
}

The only difference between the demos and my implementation is that I'm not using im.childExists, can that have something to do with it?

Nah, this method is a 'safeguard', used to make sure that an object or dom element actually exists, before accessing it. When dynamically loading a script, it may occur that although the script is fully loaded (downloaded), it might not yet have been fully evaluated/executed. childExists does basically this: check every x ms, until it (object/dom element) exists.

Is it possible to somehow skip displaying the black placeholder if consent has already been given?

Technically speaking you can, by checking if the cookie of the mapbox service is set; but its not a pretty solution.
Example (inside the head section):

You also must handle the case when the service is rejected (remove the "im_mapbox" class).

This lib. was designed to be a more "elegant" approach to the usual "load->flash iframe" implementation, which is in contrast with what you're asking. IMO the current approach is the best option to handle all use cases, even though it makes the loading of external resources feel more "sluggish".
With that said, I will consider adding an attribute (and javascript option) to handle this particular preference/use-case. Please open a new issue so that we can better track this feature.

It was really difficult to debug this because of the obfuscated class names – .c-an .cll .c-la-b etc … what's going on there?

Both iframemanager v1.x.x and cookieconsent v2.x.x use short/cryptic classes, for the sake of a lighter plugin. Although they are gibberish to the users, they have a meaning for me as the author of the plugin.

With that said, I will consider adding an attribute (and javascript option) to handle this particular preference/use-case. Please open a new issue so that we can better track this feature.

Fair enough – done! #45

Both iframemanager v1.x.x and cookieconsent v2.x.x use short/cryptic classes, for the sake of a lighter plugin. Although they are gibberish to the users, they have a meaning for me as the author of the plugin.

I very strongly disagree with this. The library has <500 lines of CSS, so a couple dozen selectors at best. Using readable class names would add a couple of kilobytes at best. And those can be compressed very well using DEFLATE, so we're talking miniscule amounts of bandwidth. For those few kilobytes the library is greatly improved:

Other people than you can work on the library, submit PRs and suggest changes.
Other people can read and understand what the library is doing, which would make it much easier to debug when something is going wrong, which will save both your users and you a lot of time.
It's much easier to overwrite the styling of the library if the class names make sense. Right now it's a matter of trial-and-error and much guess-work to try and style anything differently that doesn't use one of the predefined custom properties.

My suggestion would be to use readable class names, ideally scoped to a namespace (like .im-*). To save on bytes, you can in turn drop all the div element selectors – they're not necessary at all.

@MaluNoPeleke, it is possible but not ideal.
Unlike traditional iframes, twitter widgets handle their width/height dynamically, which doesn't fit well with iframemanager. You need to specify a fixed height/width to avoid content jumping when the iframe is loaded.
Demo on stackblitz.

Is there any other problem than the fixed height/width issue?


Update npm dependencies

#764

Codecov Report

Merging #775 into master will increase coverage by 0.13%.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           master   #775      +/-   ##
========================================
+ Coverage   91.86%    92%   +0.13%
========================================
  Files         100    100
  Lines        2964   2964
  Branches        7      4       -3
========================================
+ Hits         2723   2727       +4
- Misses        232    236       +4
+ Partials        9      1       -8

Impacted Files
Coverage Δ

frontend/src/app/header/header.component.ts
50% <0%> (ø)
:arrow_up:

frontend/src/app/homepage-offer/offers.service.ts
56.25% <0%> (ø)
:arrow_up:

frontend/src/app/auth.service.ts
31.03% <0%> (ø)
:arrow_up:

...p/cookie-law-banner/cookie-law-banner.component.ts
50% <0%> (ø)
:arrow_up:

frontend/src/app/login/login.component.ts
73.33% <0%> (+6.66%)
:arrow_up:

.../app/offers/offer-detail/offer-detail.component.ts
92.85% <0%> (+7.14%)
:arrow_up:

...ntend/src/app/organization/organization.service.ts
84.61% <0%> (+7.69%)
:arrow_up:

frontend/src/app/redirect.component.ts
90.9% <0%> (+9.09%)
: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 6f914a7...3fb23e1. Read the comment docs.


Signal Extension - issue fix  #1802

Description
Fixed Open Signal when user interact with the extension #1802
To Fix open chat feature doesn't work when Signal is not opened
Checklist

[x] I read the extension guidelines
[x] I read the documentation about publishing
[x] I ran npm run build and tested this distribution build in Raycast
[x] I checked that files in the assets folder are used by the extension itself
[x] I checked that assets used by the README are placed outside of the metadata folder

Hi @leeraymond78 👋
Did you try the way it's described in the issue report? That sounds like a better solution if it works 😄

@pernielsentikaer I have just implement the way it described, check if Signal not open then open and go into the chart automatically after.

Let's get it merged 💪  Let's see if we can improve further later on, like skipping the setTimeout 🔥


Allow single constraints and overrides to be passed via the CLI

The --constraint and --override flags should be updated to allow single constraints (in addition to the current behavior of accepting a file path), e.g., --constraint "foo>=0.1". In the --constraint case, this is mostly unambiguous — if there's a version specifier then we can treat it as a constraint. It is possible to have a file with that name, but it seems very unlikely in practice. In the --override case, we do allow overriding a dependency to have no specifiers, e.g., --override foo. I'm not sure if we should allow this via this interface? It seems nice to avoid the ambiguity. Historically, we've avoided inspecting the file system to determine the behavior of arguments and I think that is a good goal to maintain.
Previous discussion at

https://github.com/astral-sh/uv/pull/4973#issuecomment-2233540897
https://github.com/astral-sh/uv/issues/4824#issuecomment-2211971741
https://github.com/astral-sh/uv/pull/9547#discussion_r1866759370

This proposal applies to both the uv pip interface (though it would differ from the upstream) and top-level interface (where --constraint and --override is only implemented for uv tool install at the moment but should be added elsewhere)

It is possible to have a file with that name, but it seems very unlikely in practice

You could always check for a file first and then fall back to see if it's a valid version specifier (that includes an operator, e.g. foo>=0.1 not just foo).

You could always check for a file first and then fall back to see if it's a valid version specifier

This is the behavior we have historically avoided. We don't want the CLI behavior to change based on the state of the file system.

Okay but 'constraints.txt' is a valid requirement 😉
>>> from packaging.requirements import Requirement
>>> Requirement('constraints.txt')
<Requirement('constraints.txt')>

we do allow overriding a dependency to have no specifiers, e.g., --override foo

One last thing, the one use case to be aware of here is when specifying an always falsey environment marker, e.g. foo ; sys_platform == 'never'.

Okay but constraints.txt is a valid requirement 😉.

Yeah so that's why I said we'd require a version specifier. A constraint without a version specifier doesn't do anything.

One last thing, the https://github.com/astral-sh/uv/issues/4422#issuecomment-2254182800 to be aware of here is when specifying an always falsey environment marker, e.g. foo ; sys_platform == 'never'.

Good point!

Yeah, I guess we'd say: if it includes :, =, <, or > (and not / or \) we treat it as a specifier.

:

Do you mean ;?

Yes, sorry.

@zanieb -- Just noticed one problem here... The values are technically space-delimited, so you can do UV_CONSTRAINTS="file1 file2" etc. That was initially for pip compatibility. But if they're space-delimited, it becomes much harder to do this... Not impossible, but definitely harder.

Alas. I'm not sure what to do about that.
As a minor note, it's UV_CONSTRAINT.
One alternative option: we could align on the name in the pyproject.toml, which would be --dependency-constraint and --dependency-override. I don't love the setting name though (I find it non-obvious).


How to change pixel size in napari

Describe the problem
When you load an image in napari and click on Apply ADS model, the user is prompted for the pixel size of the image. However, after this initial prompt, I don't think there is a way to change it. For example, if you load a new image and would like to use a different pixel size, there is no way to change it.
Proposed solution
Maybe some field where the user can change this value.

How did we handle this in FSLeyes? I think if we changed images, it prompted us again, but I'm not 100% certain

How did we handle this in FSLeyes?

We asked again.
The reason why this is different with napari is because in the napari plugin, it is added in the image's metadata.
But if a new image is loaded and the pixel size file is not present, I expect it to prompt the user again. Otherwise it might be a bug. I'll have to check

if a new image is loaded and the pixel size file is not present, I expect it to prompt the user again. Otherwise it might be a bug.

I checked and the feature currently works as intended:

If an image is loaded and the pixel size file is not present, a prompt will ask the user for the pixel size.
If a new different image is loaded and the pixel size file is not present, it will prompt the user again.

Now, we can discuss if we want a way to change the pixel size but ideally the user would enter the correct pixel size and then adjust the zoom factor if needed.

Is this still needed now @hermancollin, or has it become obsolete with the new models?


React App: Module not found: Can't resolve '@newrelic/browser-agent/loaders/browser-agent'

Node: v18.20.3
Npm: 10.7.0
Yarn:1.22.22
Browser: Chrome
OS: Windows
@newrelic/browser-agent": "^1.260.1",
I have taken this resource as reference and implemented same as mentioned, I have installed node module using yarn add command, I can see the node module under node_modules and the same has been added to package.json but still I am seeing the below error.
Error:
./src/App.js
Module not found: Can't resolve '@newrelic/browser-agent/loaders/browser-agent' in 'D:\dev\projects\pas-express-ui\src'
I have this code in App.js
import { BrowserAgent }  from '@newrelic/browser-agent/loaders/browser-agent';  --> Causing the error
if (process.env.REACT_APP_NR_DT_ENABLED === 'true') {
const nrConfiguration = {
init: JSON.parse(process.env.REACT_APP_NR_DT_INIT),
info: JSON.parse(process.env.REACT_APP_NR_DT_INFO),
loader_config: JSON.parse(process.env.REACT_APP_NR_DT_LOADER_CONFIG),
}
new BrowserAgent(nrConfiguration);
}
I tried moving the code to index.js, index.html, and also tried loading the script from external js file but still the issue not resolved.
I even tried upgrading node to v20  and latest version
Any help is appreciated, thank you

Hi @vinaykumar515 . I am taking a look at this issue today. Can you provide a small reproduction project for this issue? We have test cases in the project to verify the import statements and those tests are still passing. Unfortunately the node/js ecosystem is a mess of tools and configurations and we may simply be missing something that is unique to your project.

Here is my package.json
{
"name": "dash",
"version": "1.0.0",
"private": true,
"dependencies": {
"@eisgroup/builder": "1.8.11",
"@eisgroup/builder-components": "21.8.0",
"@eisgroup/form": "21.8.0",
"@eisgroup/form-core": "21.8.0",
"@eisgroup/ui-desktop": "1.8.11",
"@emotion/react": "11.10.4",
"@emotion/styled": "11.10.4",
"@fontsource/cabin": "^4.5.6",
"@fortawesome/fontawesome-svg-core": "1.2.36",
"@fortawesome/free-solid-svg-icons": "5.15.4",
"@fortawesome/react-fontawesome": "0.1.15",
"@mui/icons-material": "5.10.6",
"@mui/material": "5.10.8",
"@mui/x-data-grid": "5.17.5",
"@reach/dialog": "0.16.0",
"axios": "0.21.3",
"custom-event-polyfill": "1.0.7",
"date-input-polyfill": "2.14.0",
"fast-json-patch": "3.1.1",
"font-awesome": "4.7.0",
"history": "5.0.1",
"jest-date-mock": "^1.0.10",
"json-logic-js": "^2.0.1",
"latest": "0.2.0",
"lodash.clonedeep": "4.5.0",
"lodash.get": "4.4.2",
"lodash.merge": "4.6.2",
"lodash.set": "4.3.2",
"moment": "2.29.4",
"object-hash": "2.2.0",
"query-string": "7.0.1",
"raleway-webfont-alt-w": "^1.0.0",
"react": "17.0.2",
"react-app-polyfill": "2.0.0",
"react-device-detect": "1.17.0",
"react-dom": "17.0.2",
"react-idle-timer": "4.6.4",
"react-iframe": "1.8.0",
"react-number-format": "4.7.3",
"react-promise-tracker": "2.1.0",
"react-router": "5.2.0",
"react-router-dom": "5.2.0",
"react-scripts": "4.0.3"
},
"devDependencies": {
"@types/react-router-dom": "5.1.8",
"prettier": "2.3.2",
"typescript": "4.3.5"
},
"scripts": {
"start": "react-scripts --openssl-legacy-provider start",
"build": "react-scripts --openssl-legacy-provider --max_old_space_size=4096 build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"build:oc": "env-cmd -f .env.oc npm run build"
},
"eslintConfig": {
"extends": "react-app",
"rules": {
"react-hooks/exhaustive-deps": "off"
}
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
Install the<EMAIL_ADDRESS>using the yarn add command - yarn add<EMAIL_ADDRESS>keep the import statement in src/index.js file (or) src/App.js file
import { BrowserAgent } from '@newrelic/browser-agent/loaders/browser-agent'
compile and run project using yarn start
you will see the below error
Module not found: Can't resolve '@newrelic/browser-agent/loaders/browser-agent'
Note: If I create a brand new create-react-app project it is working fine
suspecting something an issue with my existing project

It looks like your are using a types package, are you using typescript for your JS project? What is your tsconfig?

This is my tsconfig.json
{
"compilerOptions": {
"target": "es5",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"noImplicitAny": false,
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx",
"downlevelIteration": true,
"noFallthroughCasesInSwitch": true
},
"include": [
"src"
]
}

OK so most likely it is one or a combination of options in your tsconfig that is causing issues. Or maybe an outdated version of typescript. We use conditional exports in our package.json.

ok, thank you. What could be the fix in my case?
If I upgrade typescript to a latest version - will it work?

I cannot say exactly what would fix your project. Every project is unique and the node/js tooling ecosystem is diverse. I would suggest reading through the typescript docs, node docs, and trying different settings. If you need further help, I really will need an exact replication project to poke at. For now, I am going to close this issue since it's a project specific configuration.

Will it be possible to connect with me for few mins on zoom? need your help to triage the issue.

@vinaykumar515 Unfortunately, if you need that level of support, the best thing to do would be to reach out to the New Relic Support team. https://support.newrelic.com/s/

Hello @patrickhousley
Can you confirm this please
Does @newrelic/browser-agent node module supports react-scripts:4.0.3 version? I am seeing the issue with version 4.0.3 not seen in 5.0.1. If it supports version 4.0.3, I will look more into version conflicts and other potential causes around react-scripts.
As I can use only version 4.0.3 in my project, do you suggest any fixes to make this work in version 4.0.3.

We do not provide a statement of support for any third party libraries per se. Instead, our top design goal is to be as agnostic to the customer's code/site as possible and just work. However, we have noted some incompatibilities with some third party libraries in our docs.


Codefactor Autofixes

This pull request applies style fixes from code review by CodeFactor.

For more information, click here.

Gonna add some stuff myself.


Operation hot sauce

A Splash Screen created for Operation Hot sauce

if the splash screen is too loud you can turn it down by changing  to


LEGO: Pull request from lego/hb_04604851-bac4-4681-9f74-73de611d6e48_20210718153827699 to main

LEGO: Pull request from lego/hb_04604851-bac4-4681-9f74-73de611d6e48_20210718153827699 to main with localized lcls

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 42.566%

Totals

Change from base Build<PHONE_NUMBER>:
0%

Covered Lines:
26721

Relevant Lines:
56896

💛  - Coveralls


DocsArchive-<IP_ADDRESS>Auto archive content

Auto archive content from https://github.com/OPS-E2E-PPE/docs-archive-test-source

Docs Build status updates of commit c4821f9:
:clock10: Pending: waiting for processors (8 builds ahead of you)
:warning: Docs Build is busy, currently there are 8 builds ahead of this one, for more information you can view the Build queue graph on the Docs Portal.

Docs Build status updates of commit c4821f9:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

[Error]

Cannot sync git repo to specified commit because branch Release_Archive_master_2020-02-19-09-52-55 has been deleted or has been force pushed: fatal: couldn't find remote ref refs/heads/Release_Archive_master_2020-02-19-09-52-55

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


APIView - add auto upgrade when a revision is requested

Currently all revisions are upgraded when a new parser is deployed, and this takes a long time. We should add an additional upgrade feature to upgrade a revision when it is requested and if that revision is not yet upgraded background job. This is to ensure a revision displayed on UI always uses latest parser instead of showing rendering failure.

Completed.


"Please confirm you are human." message blocks bots

DeviantArt's "Please confirm you are human." message prevents dAbot from working. It appears when you try to login. The full message is:
"Access to this page has been denied because we believe you are using automated tools to log into and browse DeviantArt.
This may happen as a result of the following:

Javascript is disabled or blocked by an extension. Please click here to learn how to re-enable Javascript, and avoid using extensions and plugins that hinder necessary parts of the website from loading.
Your browser does not support cookies or you have disabled them. Click here for information on how to re-enable cookies.

Please make sure Javascript and cookies are enabled on your browser in order to browse DeviantArt."

Did you make sure Javascript and cookies are enabled on your browser? It's should be on Develop > Enable Javascript on a Mac

Seems like a temporary issue. It works over here.


update flannel v0.24.2

What this PR does / why we need it:
updates https://github.com/replicatedhq/kURL/pull/5071
Which issue(s) this PR fixes:

Special notes for your reviewer:

Steps to reproduce

Does this PR introduce a user-facing change?

Does this PR require documentation?

@laverya @ricardomaraschini so far I've been looking at base installations for the distros on our supported list at kurl.sh and it looks like ethtool is included by default in all the Ubuntus and centos-7, going to check the redhats but I have a feeling this will reliably exist

@adamancini you need to make sure you're making the same edits to both the template and the actual version

closed in favor of #5071


type name ast::StructFieldKind is undefined or not in scope

Getting this error when building with the latest nightly: rustc 1.9.0-nightly (bf5da36f1 2016-04-06)

That'd be because of https://github.com/rust-lang/rust/pull/32682
Looks like it's all just rolled up into StructField now

Unless someone else is on top of this I'll do a PR for this this evening


add 'Sort By' dropdown to variant menu

sort by:

of evidence items

chromosome position
suggested change count

The current alphabetical ordering of variants is often not what we would want.  Any gene with a reasonable number of variants represents this issue fairly well.
e.g. https://civic.genome.wustl.edu/#/events/genes/58/summary
Alphabetical order would be a nice option perhaps, but I think the default should be coordinate based. When a variant doesn't have coordinates, perhaps they just show at the end of the list until coordinates are added...

Bumping this.  Would be very helpful for some of the long variant lists it would be very helpful to display them ordered by their physical location.

@malachig for calculating chromosome position, when sorting the variant menu, the client would need to first sort by variant.coordinates.chromosome, and then by variant.coordinates.start?

Right now with the gene centric approach, generally all variants displayed together should be on the same chromosome.  So this maybe isn't necessary. However, in anticipation of sorting variants in a variant-group or if we decide to organize them differently in the future, yes we might as well sort by variant.coordinates.chromosome, and then by variant.coordinates.start.


Provide Apple M1 binaries for pypy

While doing some changes in ImageIO I've noticed that our test suite started to fail because it lacks pre-compiled pyav binaries for MacOS on pypy. I suspect that this is because macos-latest runners now use M1 (xref) which also breaks our test suite for FreeImage tests in a different place.
Would it be possible to add builds for this chipset to the build matrix?

Pypy requires the host to be Apple Silicon in order to build Apple Silicon wheels.
from here

Note: pp39-macosx_arm64, pp310-macosx_arm64 were selected, but can't be built on x86_64 so will be skipped automatically.

Done. https://github.com/PyAV-Org/PyAV/pull/1395


feat: implement some "Best Practices" examples

These examples are used in the "Best Practices" page(s):
https://cloud.google.com/functions/docs/bestpractices/tips
https://cloud.google.com/functions/docs/bestpractices/retries
Fixes #95, fixes #96, and fixes #97

Ping


SideMenu is broken

The sidemenu is broken since this commit
https://github.com/driftyco/ionic-conference-app/commit/d1b0aef7d7d68f448a107c9ece7fdf47367a8862
activepage doesn't get highlighted anymore and after clicking the login page i can't go back to the schedulepage
i replaced this code
 if (this.nav.getActiveChildNav() && page.index != undefined) {       this.nav.getActiveChildNav().select(page.index);       // Set the root of the nav with params if it's a tab index     } else {       this.nav.setRoot(page.name, params).catch((err: any) => {         console.log("Didn't set nav root: " + err);       });     }
with this code
if (page.index != undefined) {       this.nav.setRoot(page.component, { tabIndex: page.index }).catch(() => {         console.log("Didn't set nav root");       });       // Set the root of the nav with params if it's a tab index     } else {       this.nav.setRoot(page.name, params).catch((err: any) => {         console.log("Didn't set nav root: " + err);       });     }
this fixed the highlighting and the navigation issue

Thanks for the issue!
Note to team: I fixed this on our lazy loading branch but it needs a different implementation on master.


MMO not working?

I've tried to open sm64js MMO, but it puts me in the vanilla version? I don't know. It's confusing, but basically I can't use multiplayer, it only opens vanilla when I press the mmo button.

The server for it isnt running aka its down

oh ok

so nvm yeah but tell me when it gets back up

I have my own remake (basically reboot and rewrite) of sm64js on my website https://mmo.sm64jsarchive.com the steps to set it up and best browser to use (and a screenshot explaining everytihng and additional info txet) are on this: https://github.com/uuphoria2/sm64jsarchive/blob/MMO/README.md You might need to scroll down a little tho go where it says "Info for MMO on https://mmo.sm64jsarchive.com/:" also you do still need your legally obtained US SM64 ROM as normal sm64js would for legal reasons

so nvm yeah but tell me when it gets back up

so nvm yeah but tell me when it gets back up

The README.md for sm64jsarchive also has some troubleshooting in the additional info within specifically the: "Info for MMO on https://mmo.sm64jsarchive.com/:" section.

@Jujumar123onGITHUB Its not fully ready to be put on web yet

@Jujumar123onGITHUB THE GAME IS NOW FULLY READY AND sm64jsarchive (the rewrite and remake) version of sm64js im making is now released!! come play: https://mmo.sm64jsarchive.com

WOW!

wait its not loading for some reason

its like stuck on redirecting

its like stuck on redirecting

Redirects are actively being fixed by me

its like stuck on redirecting

Everyone and you can play now https://mmo.sm64jsarchive.com/ redirects fixed

its like stuck on redirecting

Only google signin works btw

kk its working

"due to it being very late at night" mfw 9:00 AM (y'all european or smth?)

Its up now I just forgot to change it

"due to it being very late at night" mfw 9:00 AM (y'all european or smth?)

https://mmo.sm64jsarchive.com I just put the website online you just have to wait for the offline screen to go to online which currently its now online :)

"due to it being very late at night" mfw 9:00 AM (y'all european or smth?)

Website may not work temporarily due to server changes right now before you go: site aint working


Debugger fails to attach to extension (localProcessExtensionHost.ts Could not find a free port for debugging?)

Issue Type: Bug
When trying to debug an extension project, the debugger doesn't seem to attach:

Breakpoints are never hit, even though the extension host is running past them
Console output is not sent to the Debug Console (very annoying)
When I close the test window, terminating the process, the debugger doesn't get notified and keeps running
When I stop the debugger, the test window doesn't get notified and stays open

Reproduction uncertain, I'm having about a 95% failure rate trying to debug an extension, with no changes made; it simply works some of the time.
(Race condition?)
In the "test window", the Developer Tools console shows "[Extension Host] Could not find a free port for debugging" from localProcessExtensionHost.ts
I've tried specifying some random ports in launch.json, as suggested here, but to no avail (in fact, I get the Warning "Property port is not allowed.")
Same with the latest insider build.
I'm new to VS Code and dealing with the node debugger, so I don't know what to look out for yet, I'm sorry if I'm missing something obvious in this first step.
I would, for example, like to change the settings with which the extension host tries to find that port:
findFreePort(expected, 10 /* try 10 ports */, 5000 /* try up to 5 seconds */); to increase the default 10 tries and 5 seconds, but I can't find any settings where this would be exposed.
Question asked on Stack Overflow: https://stackoverflow.com/questions/66652751/vs-code-extension-debugger-fails-to-attach
vscode-debugadapter-5c11744c.json.gz
My current launch.json:
{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Launch Extension",
            "type": "extensionHost",
            "request": "launch",
            "runtimeExecutable": "${execPath}",
            "args": ["--extensionDevelopmentPath=${workspaceRoot}" ],
            "stopOnEntry": false,
            "sourceMaps": true,
            "outFiles": [ "${workspaceRoot}/out/src/**/*.js" ],
            "trace": true,
            "preLaunchTask": "npm"
        }
    ]
}

I've attached the trace log
VS Code version: Code 1.54.3 (2b9aebd5354a3629c3aba0a5f5df49f43d6689f8, 2021-03-15T10:55:45.459Z)
OS version: Windows_NT x64 10.0.18363

System Info

Item
Value

CPUs
AMD FX(tm)-6300 Six-Core Processor              (6 x 3588)

GPU Status
2d_canvas: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: enabledopengl: enabled_onprotected_video_decode: unavailable_offrasterization: enabledskia_renderer: enabled_onvideo_decode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
15.95GB (7.70GB free)

Process Argv
--crash-reporter-id 2f190e4f-e294-4871-bce2-3673cd578662

Screen Reader
no

VM
0%

Extensions (10)

Extension
Author (truncated)
Version

vsc-export
asl
1.2.0

vscode-icontheme-nomo-dark
be5
1.3.6

problems-fix-runner
ctf
0.0.9

jshint
dba
0.11.0

vscode-eslint
dba
2.1.17

file-icons
fil
1.0.29

theme-monokai-pro-vscode
mon
1.1.18

vscode-opened-editors
Nic
0.0.6

vscode-editor-group-minimizer
suh
1.3.2

reopenclosedtab
uyi
1.1.0

@weinand your launch.json seems to be a bit outdated (but still correct).
I suggest that you first try to debug a newly generated "hello world" extension by following these steps:
https://code.visualstudio.com/api/get-started/your-first-extension
If this works fine, the try to "upgrade" your extension by using this launch config:
		{
			"name": "Launch Extension",
			"type": "extensionHost",
			"request": "launch",
			"args": [
				"--extensionDevelopmentPath=${workspaceFolder}"
			],
			"outFiles": [
				"${workspaceFolder}/out/**/*.js"
			],
			"preLaunchTask": "${defaultBuildTask}"
		},

and a matching task.json:
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
{
	"version": "2.0.0",
	"tasks": [
		{
			"type": "npm",
			"script": "watch",
			"problemMatcher": "$tsc-watch",
			"isBackground": true,
			"presentation": {
				"reveal": "never"
			},
			"group": {
				"kind": "build",
				"isDefault": true
			}
		}
	]
}

@weinand your launch.json seems to be a bit outdated (but still correct).
I suggest that you first try to debug a newly generated "hello world" extension by following these steps:
https://code.visualstudio.com/api/get-started/your-first-extension

Still having this problem with the yo generated template, but now I get the error message "The terminal process "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command npm run watch" terminated with exit code: 1." in my main window. Just calling it like that, powershell doesn't seem to get the CWD, I switched it out with ComSpec C:\Windows\system32\cmd.exe for testing purposes, that made the build task work again.
Manually running powershell.exe -Command cd -Path 'D:\[Projects]\[JS]\VS Extensions\test\toast'; npm run watch also works, but I couldn't figure out how to integrate that.
In any case, the issue persists 🤔

When I got lucky again, I looked at the trace log of the working debugging session and found that a dap.receive/dap.send object pair differed: The working session had root.metadata.message.arguments.request: "attach" and root.metadata.message.arguments.port: 9218 on receive and root.metadata.message.command: "attach" on send, whereas the failed sessions seem to have root.metadata.message.arguments.request: "launch", no port on receive and root.metadata.message.command: "launch" on send.
This might all happen after the fact when something has gone wrong already, but just in case it helps, I'm including this.
vscode-debugadapter-6a9f59bc.json.gz

@alexr00 are you aware of any Powershell  issues with the default build task in the "hello world" extension? Please see https://github.com/microsoft/vscode/issues/119171#issuecomment-801054630

Looks like it could be https://github.com/microsoft/vscode/issues/106866#issuecomment-696094148

@alexr00 are you aware of any Powershell issues with the default build task in the "hello world" extension? Please see #119171 (comment)

Oh frick, that's because I have square brackets in my path name, which get misinterpreted by powershell. I didn't think that that was the issue at first, because at first I only saw that it was simply launching in C:\Windows\System32\WindowsPowerShell\v1.0\package.json, but when I tried it in an easier-to-handle path, it worked directly.
Sorry for the oversight, even though I did have to manually escape the path when I tried the above. It just didn't say anything about a garbled path in the immediate output

@svArtist If your path makes problems with Powershell, you can try to make VS Code use a different command interpreter just for "automation" (that is when running tasks in terminals). For this there is a setting "terminal.integrated.automationShell.windows"where you could set a different command interpreter (e.g. a classical command prompt). Please note that this setting does not affect the integrated terminals in VS Code.

@svArtist If your path makes problems with Powershell, you can try to make VS Code use a different command interpreter just for "automation" (that is when running tasks in terminals). For this there is a setting "terminal.integrated.automationShell.windows"where you could set a different command interpreter (e.g. a classical command prompt). Please note that this setting does not affect the integrated terminals in VS Code.

Thank you for the tip (I've come across the settings in my efforts above, but I wasn't entirely sure of the definition) 👍

@svArtist what's the state of debugging now?

Same as before, >90% of the time, attachment fails, with the most likely issue looking to be port assignment/finding, if not something further up

This is likely to be some local network/firewall oddity, as this is not an issue reported before by other users.

netsh int ipv4 show excludedportrange protocol=tcp gives

Protocol tcp Port Exclusion Ranges
Start Port    End Port

  2869        2869
  5357        5357
 10243       10243

Administered port exclusions.
so that's only 3 ports... (none for UDP)
TCPView tells me that 69 different ports are being listened to.

I tried disabling my firewall before.
Now I've tried also disabling AV (I've set both to alert/ask me before they block anything new, so that shouldn't be the issue)
I think that may have somewhat increased the chance of the attachment working. It may be because Code is sometimes too busy with getting started for 5+ seconds, which might be acerbated by AV software checking the new processes?
How can I tell VS code to not give up so easily? Increase the number of ports to try, increase the amount of time to do it?
I can see that the function that eventually runs doesn't use hard-coded parameters, but I don't know how and where to tell Code to use more generous values.

I have the same issue with the exact same symptoms, down to the "Could not find a free port for debugging" warning in the Dev Tools Console. I suspect this is due to an extremely restrictive firewall/antivirus. It seems that the Extension Development Host tries to find itself a TCP port to communicate with the debugger client, which fails for some reason. This is the relevant code segment in localProcessExtensionHost.ts:
/**
 * Find a free port if extension host debugging is enabled.
 */
private async _tryFindDebugPort(): Promise<number> {

	if (typeof this._environmentService.debugExtensionHost.port !== 'number') {
		return 0;
	}

	const expected = this._environmentService.debugExtensionHost.port;
	const port = await findFreePort(expected, 10 /* try 10 ports */, 5000 /* try up to 5 seconds */);

	if (!this._isExtensionDevTestFromCli) {
		if (!port) {
			console.warn('%c[Extension Host] %cCould not find a free port for debugging', 'color: blue', 'color:');
		} else {
			if (port !== expected) {
				console.warn(`%c[Extension Host] %cProvided debugging port ${expected} is not free, using ${port} instead.`, 'color: blue', 'color:');
			}
			if (this._isExtensionDevDebugBrk) {
				console.warn(`%c[Extension Host] %cSTOPPED on first line for debugging on port ${port}`, 'color: blue', 'color:');
			} else {
				console.info(`%c[Extension Host] %cdebugger listening on port ${port}`, 'color: blue', 'color:');
			}
		}
	}

	return port || 0;
}

It turns out that the port search in findFreePort just tries ten or so TCP ports starting from the one given in this._environmentService.port, with a default value of 5870 that you can override with command-line arguments, if I believe the unit tests for environmentService in environmentService.test.ts:
	assert.deepStrictEqual(parse([]), { port: 5870, break: false, debugId: undefined });
	assert.deepStrictEqual(parse(['--debugPluginHost']), { port: 5870, break: false, debugId: undefined });
	assert.deepStrictEqual(parse(['--debugPluginHost=1234']), { port: 1234, break: false, debugId: undefined });
	assert.deepStrictEqual(parse(['--debugBrkPluginHost']), { port: 5870, break: false, debugId: undefined });
	assert.deepStrictEqual(parse(['--debugBrkPluginHost=5678']), { port: 5678, break: true, debugId: undefined });
	assert.deepStrictEqual(parse(['--debugPluginHost=1234', '--debugBrkPluginHost=5678', '--debugId=7']), { port: 5678, break: true, debugId: '7' });

In conclusion, adding --debugPluginHost=PORT to your launch configuration with a port other than 5870 seems to make debugging work. Here is an example with port 1234, which finally fixed the hello world example for me:
	{
		"name": "Run Extension",
		"type": "extensionHost",
		"request": "launch",
		"args": [
			"--debugPluginHost=1234",
			"--extensionDevelopmentPath=${workspaceFolder}"
		],
		"outFiles": [
			"${workspaceFolder}/out/**/*.js"
		],
		"preLaunchTask": "${defaultBuildTask}"
	},

You might have to experiment with port numbers to find one that works for you.

I put in a change to increase the "stride" between port attempts so that a wider range of ports is tried.


Regex matching fails in certain cases

Found some odd behavior
/api/something/somelong-string does not match /api/something/.*

I would expect that to match.  There is also a mapping for /api/.* that has a priority of 6 but the other mapping listed above has a priority of 1.  So I don't think it is a precedence bug.

	}

But that passes, I'll close it for now until I can successfully repro the bug. I also tried in my HTTP client to strip off the accept header but make sure the mapping required it, it didn't match but the log was different from what I was seeing.

I'd suggest looking at your other mappings to make sure there isn't a higher priority one matching your request


Remove no_return from function that might return other options as well

no_return() is actually not required and sometimes may make Dialyzer analysis worse. no_return() is typically only used when it is the only option.

https://github.com/elixir-ecto/ecto/pull/3817#issuecomment-1013689802

:green_heart: :blue_heart: :purple_heart: :yellow_heart: :heart:


{Storage} az storage container lease: Track2 migration

Description

track2 migration
Testing Guide

az storage container lease acquire --lease-duration 60 -c {} --if-modified-since {} --proposed-lease-id {}
az storage container lease change -c {} --lease-id {} --proposed-lease-id {}
az storage container lease renew -c {} --lease-id {}
az storage container lease break -c {} --lease-break-period 30
az storage container lease release -c {} --lease-id {}
History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change
[Component Name 2] az command b: Add some customer-facing feature

This checklist is used to make sure that common guidelines for a pull request are followed.

[ ] The PR title and description has followed the guideline in Submitting Pull Requests.

[ ] I adhere to the Command Guidelines.

[ ] I adhere to the Error Handling Guidelines.

Storage


[docs] Add link to GitHub issues under Troubleshooting

What kind of changes does this PR include?

Changes or translations of Starlight docs site content

Description
Removing the banner re: active development also removed the only direct link to GitHub issues. I've added this back in the Troubleshooting section as a helpful directive for people wanting to know whether there is an open issue related to their problem.

size-limit report 📦

Path
Size

/index.html
9.58 KB (0%)

/_astro/*.js
16.33 KB (0%)

/_astro/*.css
8.43 KB (0%)


Add TIKV as a metadata storage method

What changes are proposed in this pull request?
Add Tikv as a new metadata storage method.
Why are the changes needed?
1.To cope with the huge daily growth of data.

Thank you for your contribution.
Can you add some illustrative information about the design? Have you done any actual testing?

Thank you for your contribution. Can you add some illustrative information about the design? Have you done any actual testing?

Thank you very much for raising questions about the code, which can help me better examine and improve the quality of code writing.
We believe that using Racks as a metastore will be a bottleneck in future large-scale application scenarios when using Alluxio. Therefore, we consider using distributed KV storage as a new metastore that can rival racks while achieving higher scalability. At present, our testing metadata has reached a scale of billions and will continue to increase in the future.
We are currently only storing file meta and block meta in TIKV, hoping to receive support and assistance from the community to better improve these features.
The entire PR is only a part of the complete functionality. I will submit a total of 8 PRs, which is the first one. In the final PR, I will modify the POM files at all levels and officially integrate them into Alluxio.

Thanks for your contribution, TiKV is a good try. But I hope you can modify the code and clearly describe the design. It is best to add some tests.

This PR is only a small part of the entire feature, and we have split the entire feature for submission. At present, our functional testing has come to an end, and the data scale can reach billions.We only store file information and block information on TikV.


feat: showcase available storage types

Adds first draft of a contract to showcase all types which can be stored. Not an ink/rust expert so happy to get some review what to improve.
Types:

[x] u[8,16,32,64,128]
[x] i[8,16,32,64,128]
[x] struct
[x] enum
[x] bool
[x] Hash
[x] Balance
[x] AccountId
[x] Tuple
[x] Array
[x] Vec (ink-prelude)
[x] String (ink-prelude)
[x] Option Some
[x] Option None
[x] Result Ok
[x] Result Error
[x] Mapping (ink-storage)
[x] Custom data structure with #[ink::storage_item]

What else is available?
Even more types available via prelude => https://docs.rs/ink_prelude/latest/ink_prelude/
But afaik they are more useful for keeping internal contract state and are not exposed as returned values.

[ ] HashMap (ink-prelude)
[ ] BTreeMap (ink-prelude
[ ] Lazy (ink-storage)
[ ] ...

Origin:
We want such a contract to create some e2e tests showcasing all possible types available in ink for the contracts-ui. Related PR: https://github.com/paritytech/contracts-ui/pull/449 .

there are also Option, Tuple, Array, bool

Hey @SkymanOne, can you have a look at this? Does this look okay'ish to you? Can it be a bit simpler somehow or other recommendations?

@statictype what do you think about this? I would consider this complete enough. Afaik it covers all types meant to be returned by contracts via messages. Stuff like Mappings and BTreeMap etc. from prelude don't seem built to be returned by ink messages and just for internal contract data.
If we call it complete I would add this contract as a e2e test to contracts-ui.

Okay just realized this PR should be into the ink repo itself.
https://github.com/paritytech/ink-examples/commit/ed91979c0c2442370ba2d204b3857ee62dc7dc03

haven't compiled it yet but LGTM! One thing that is missing is something like revertOrTrap in the mother contract. it returns an error object (as opposed to error strings). We can add this later, your call.
It should live in the integration tests folder, indeed. We only use it for testing, not an actual example.

The more I learn about rust and ink, the more I can appreciate the mother contract. Not to convinced off the use of the contract made in this pr anymore

why? the mother contract was incomplete in terms of types and not very specific in terms of naming.

@statictype just added a get_panic message which just panics and together with the get_result_error message it should be the equivalent of the revert_or_trap function of the mother contract.
https://github.com/paritytech/ink-examples/blob/40fbf9d8082174ae11eed87482ed66d167125fec/storage_types/lib.rs#L235-L245
revert_or_trap in mother:
https://github.com/paritytech/ink/blob/bc4786ed4b2007d4b821aea40abb734373477266/integration-tests/mother/lib.rs#L172-L184
What I like about the mother contract is the fact that it's function just echo the input data. But this kind of functionality is maybe nice to have in a separate contract to test the sending of extrinsics from the contracts-ui. Whereas this contract is just focused on decoding the available return types.
Will create the pr for the ink repo now.

Closed in favor of https://github.com/paritytech/ink/pull/1762.


Create InstitutionTab static component

Variants:

default
new
updated
deleted

To avoid developing fully custom component, i will try to adopt Chakra's Tab component https://chakra-ui.com/docs/components/tabs/props

Can be 2 ways:

Create custom component with Chakra style props https://chakra-ui.com/docs/styled-system/chakra-factory
Restyle Chakra's Tab component, extending it's style https://chakra-ui.com/docs/components/tabs/theming #17

#17

I started with altering the component's theme by adding new variant, but for this case, when a unique component is needed it's probably a better strategy to make a wrapper

Will move to building whole tablist instead of Tab in isolation

#12

https://www.chromatic.com/component?appId=65b2882ac1586a6b21cba0dd&csfId=recordform-institutiontab&buildNumber=13&k=65be3ecb526c59b63b31079e-1200px-interactive-true&h=15&b=-1


Hold not working in plots

Description
Holding plots as standard in matplotlib is not working currently and needs fixing.

closed by pull request #22


RPi4 64-bit

Hi,
thank you for your work, in concept it should be all I need.
To put you on context, I'm using a 64-bit OS (Ubuntu Server 20) on my Raspberry Pi 4, 4Gb and need to control the GPIO remotely. Preferably, using a docker container would be ideal. I have tried a couple of things that I would like to share:

Directly using this instructions on the host OS made it possible to remotely control de GPIO. This tells us that is not a host OS related issue.

Adapting you Dockerfile to use ubuntu as it's base image

# Based on Alpine, a tiny linux distribution
FROM ubuntu as builder
# Install basic package to compile source code
#RUN apk add alpine-sdk
RUN  apt-get update \
  && apt-get install -y wget unzip build-essential
# Follow the install guide from creator of pigpio, http://abyz.me.uk/rpi/pigpio/download.html
RUN wget --output-document=download.zip https://github.com/joan2937/pigpio/archive/master.zip \
# Downloaded content is placed inside specific folder to not be depended of branch naming from repo
    && mkdir download \
    && unzip -d download download.zip \
    && cd /download/* \
# Fix for compiling on Alpine, https://github.com/joan2937/pigpio/issues/107
    #&& sed -i -e 's/ldconfig/echo ldconfig disabled/g' Makefile \
    && make \
    && make install
# Start of new base image
FROM ubuntu
LABEL<EMAIL_ADDRESS>COPY --from=builder /usr/local /usr/local
# Copy app into image
COPY start.sh /start.sh
# Make sure file has execution permission
RUN chmod +x /start.sh
# Start app
CMD /start.sh

gave the following error (using or not the --privileged flag)
Checking who is listening/bound to port 8888 ...
/start.sh: 4: netstat: not found
...OK, no process is listing/bound to port 8888
Starting daemon pigpiod ...
pigpiod: error while loading shared libraries: libpigpio.so.1: cannot open shared object file: No such file or directory
... daemon stopped unexpectedly.
netstat -tlep | grep 8888
/start.sh: 24: netstat: not found
sleeping for 20 sec - we hope that this releases the bound TCP port 8888
end of sleep
netstat -tlep | grep 8888
/start.sh: 29: netstat: not found
... start.sh terminated

What should we try next?

First breakthrough! On start.sh, changing pigpiod -g -a 1 to pigpiod -g solves the issue and works, but still requires the --privileged flag. Working on fixing it

Awesome if you get this running on a 64-bit system. Do keep sharing!
I can see why removing -a 1 from the run command would solve some issues as i dont think DMA memory allocation is relevant in 64-bit systems.
But I don't understand why you would want your base image to be Ubuntu(it doesn't need to match the host OS). But then again i didn't start testing with Alpine when making this image. I tested with Debian at the time.
To solve the privileged thing you could find out where the host OS shares it peripherals. Try running ls /dev/*gpio*

But then again i didn't start testing with Alpine when making this image. I tested with Debian at the time.

Same here. Tried with Alpine and was also fixed.

To solve the privileged thing you could find out where the host OS shares it peripherals. Running ls /dev/*gpio* on the host should revival something for you.

Didn’t work. Tried the following:

/dev/mem
/dev/gpiomem
/dev/gpiochip0
/dev/gpiochip1
/dev/ttyAMA0

with --cap-add=ALL but without success.

Tested some stuff on my rpi3 running Raspbian 64bit. I think i fixed the image by removing the -a 1 from the 64-bit editions of the image.
Would you care to test this on your rpi4 and report back if it works?
docker run --rm -it --privileged zinen2/alpine-pigpiod:dev-latest
Also I haven't either found the right combination of privileges to give the container to access the gpios without --privileged flag.

I needed to add -p 8888:8888 but after that it did work

Also I haven't either found the right combination of privileges to give the container to access the gpios without --privileged flag.

My neither...

Maybe @joan2937 could give a help telling us which devices are needed...

This works for me. I'm still not done investigating but though i would share my findings so far.
docker run --rm -it -p 8888:8888 -v /dev:/dev --device-cgroup-rule 'a 1:* rwm' --cap-add CAP_SYS_RAWIO zinen2/alpine-pigpiod

Not sure if its all necessary but this is how i got there.
-v /dev:/dev:
Someone at stack said that in order to run mknod (here in pigpio) in order to make a loop device you need /dev mounted.
--device-cgroup-rule 'a 1:* rwm'
A blog mentioned that you can't just mount devices inside containers and expect your container to have read/write access. But adding a device-cgroup-rule should fix that.
--cap-add CAP_SYS_RAWIO
Again at stack i found this capability mentioned.

Well, isn't giving rwm privileges to /dev the same as using the --privileged flag?

Well, isn't giving rwm privileges to /dev the same as using the --privileged flag?

Privileged gives a bit more access to the host. But I think its close to it... so I'll say yes anyhow.
But it proves to me that I'm closing in on the access requirements of the pigpio library.

Tested as of today with Rpi4, not working
This is the output:
Checking who is listening/bound to port 8888 ... ...OK, no process is listing/bound to port 8888 Starting daemon pigpiod ... 2071-07-13 22:58:24 initPagemapBlock: mmap dma block 0 failed (Invalid argument) Can't initialise pigpio library ... daemon stopped unexpectedly. netstat -tlep | grep 8888 sleeping for 20 sec - we hope that this releases the bound TCP port 8888

Hello,
sorry for not giving any updates for a (big) while...
This actually worked for me!

docker run --rm -it -p 8888:8888 --device /dev/vcio --device /dev/mem --cap-add CAP_SYS_RAWIO zinen2/alpine-pigpiod

Here is the output:
Checking who is listening/bound to port 8888 ...
...OK, no process is listing/bound to port 8888
Starting daemon pigpiod ...

Also, here is the docker-compose.yaml that I am using for this:
services:
  # PiGpiod
  pigpiod:
    container_name: pigpiod
    image: zinen2/alpine-pigpiod:latest
    ports:
      - "8888:8888"
    devices:
      - "/dev/vcio:/dev/vcio"
      - "/dev/mem:/dev/mem"
    cap_add:
      - CAP_SYS_RAWIO

It seams to be working...