[Feature][transform] Add a module to set default value for null field

https://github.com/apache/incubator-seatunnel/issues/1963

Purpose of this pull request
Set default value for null field
Check list

[x] Code changed are covered with tests, or it does not need tests for reason:
[x] If any new Jar binary package adding in your PR, please add License Notice according
New License Guide
[x] If necessary, please update the documentation to describe the new feature. https://github.com/apache/incubator-seatunnel/tree/dev/docs

Please add an issue and describe why you need to add this transform plugin. In fact, I am confusion with the plugin name etl.

Dead Link Checker failed,It doesn't seem to be my problem. Can you help me rerun  the ci

Please fix the scala checkstyle problem.

OK, I will revise it and submit it later :)

Sorry, I accidentally clicked the close button, could you please help to restart the build :)

Generally looks good to me, It might be better if you can submit a PR to add e2e case for this plugin.
I try to add a test case to the e2e module, but the error "Could not find a valid Docker environment" is displayed when I run it. Running other test methods in e2e also reports this error. Why is this and how can I fix it?
The project runs on the win10 operating system and the docker component is installed.

Generally looks good to me, It might be better if you can submit a PR to add e2e case for this plugin.
I try to add a test case to the e2e module, but the error "Could not find a valid Docker environment" is displayed when I run it. Running other test methods in e2e also reports this error. Why is this and how can I fix it?
The project runs on the win10 operating system and the docker component is installed.

Sorry, this is a problem with my local docker installation, which has been solved.


readfile: TypeError: 'NoneType' object is not subscriptable

Hi! I am trying to load this pdf but I have the following error. Any ideas?
I have tested other pdfs, it happens all the time..
Thanks for your work.
{
	"name": "TypeError",
	"message": "'NoneType' object is not subscriptable",
	"stack": "---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[3], line 1
----> 1 doc = readfile(\"/Users/mascit/Downloads/pdftests tests/dino copy.pdf\")

File ~/miniconda3/envs/pdftests/lib/python3.10/site-packages/pdfsyntax/api.py:69, in readfile(filename)
     67 \"\"\"Read file and initialize doc.\"\"\"
     68 with open(filename, 'rb') as file_obj:
---> 69     doc = load(file_obj, \"SINGLE\")
     70 return doc

File ~/miniconda3/envs/pdftests/lib/python3.10/site-packages/pdfsyntax/api.py:57, in load(file_obj, mode)
     55 \"\"\"Load from file.\"\"\"
     56 fdata = bdata_provider(file_obj, mode)
---> 57 return doc_constructor(fdata)

File ~/miniconda3/envs/pdftests/lib/python3.10/site-packages/pdfsyntax/api.py:50, in doc_constructor(fdata)
     48 cache = build_cache(fdata, index)
     49 doc_initial = Doc(index, cache, data)
---> 50 doc_new_rev = commit(doc_initial)
     51 return doc_new_rev

File ~/miniconda3/envs/pdftests/lib/python3.10/site-packages/pdfsyntax/docstruct.py:332, in commit(doc)
    330 def commit(doc: Doc) -> Doc:
    331     \"\"\"Add new index for incremental update.\"\"\"
--> 332     if len(changes(doc)) == 0:
    333         return doc
    334     nb_rev = len(doc.index)

File ~/miniconda3/envs/pdftests/lib/python3.10/site-packages/pdfsyntax/docstruct.py:175, in changes(doc, rev)
    173     previous = doc.index[rev-1]
    174 for i in range(1, len(current)):
--> 175     iref = get_iref(doc, i, rev)
    176     if i > len(previous)-1:
    177         res.append((iref, 'a'))

File ~/miniconda3/envs/pdftests/lib/python3.10/site-packages/pdfsyntax/docstruct.py:151, in get_iref(doc, o_num, rev)
    149 \"\"\"Build the relevant indirect reference for o_num in a doc revision.\"\"\"
    150 current = doc.index[rev]
--> 151 o_gen = current[o_num]['o_gen']
    152 return complex(o_gen, o_num)

TypeError: 'NoneType' object is not subscriptable"
}

Hi @masc-it !
Thank you for your feedback.
I have just pushed a fix. It was the first time I encountered a PDF file with free entries (unused object numbers) in the first revision of a XREF table.


Experimental support for player costumes

The SCUMM engine supported costumes. I've been thinking that it should be relatively simple to support something similar in Escoria, using Godot's animation player, so I've made a rudimentary implementation by adding a new AnimationPlayer to the test player character and the necessary functions to trigger a costume change from an .esc script.
I've added the new images as a new set of animation frames within the same AnimatedSprite, and the key thing to note with this implementation is that one must add key frames on the animation attribute too, so that it's possible to switch between the old "default" set and the new "hat" set that I added.
As I see it, this wouldn't just be useful for changing actual costumes, like when Guybrush puts on a dress in LeChuck's Revenge, but it could also be used for changing player emotions, like requested in #30.
To test this, just start the test scene and "USE" the can to put on the hat. Then "USE" the ice cream to take off the hat again.
What doesn't work so well right now is that the costume change isn't immediate. I'm guessing that it's because the player is standing still when triggering the action, which presumably halts processing somewhere, but I haven't started digging into that yet.

Note: I don't think this should be merged as-is, but I put it up to get a few more eyes on it.

Costume change is now immediate. The problem was pretty obvious really: I needed to play an idle animation from the new set after the player had changed their costume.

I like this approach, why not put 2 parameters on set_costume, to reference
the object that changes costume? This should work on items too.. It would
also remain consistent with almost all the other esc commands, which take
the object as first parameter.
set_costume player hat
we would also need a way to save this in the savegame when the costume is
not the default
On 23 September 2017 at 02:29, Eivind<EMAIL_ADDRESS>wrote:

Costume change is now immediate. The problem was pretty obvious really: I
needed to play an idle animation from the new set after the player had
changed their costume.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/godotengine/escoria/pull/33#issuecomment-331612056,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGVmPayJE0OBwAxhFonpVG4kmoJH6QGIks5slJdLgaJpZM4PdEjI
.

That's a good idea to have a first parameter reference the object. It would also be compatible with a future multiple playable characters scenario.
The item script doesn't keep a reference to the animation node, but instead fetches it by node name every time it's used, so it would be a lot of (trivial) changes. There's also the set_state() function in item, which changes which animation is currently played. Which use cases are there for items where a "costume change" would be better?
Note, I'm not against doing this for items too, I'm just trying to understand how it should be implemented. There's also some animation stuff in interactive.gd, which item.gd extends (and maybe player.gd should do too), so maybe this is generic enough that it should go there.
Yeah, good point; the costume needs to be saved too. If it's just the one player, we could just find that  and check which animation is set, and if not the default, write the proper instructions to file. If items too, we'd need a more generic solution.


Detection of QR-Codes not working on Samsung A23 5G

Hello currently I am developing an app for android and iOS and this library works great and is really fast when detecting a QR Code. So kudos for this package. But i have one problem. On the Samsung A23 5G the scanner does not detect a code at all. I have some ideas about the cause of the problem but i have to check.
So here are some informations about my usage:
Device:
Samsung Galaxy A23 5G
Android 13
Flutter Version:
3.10.6
Package Version:
3.3.0
Issue:
Detection not working
Additional Information:

Working on Galaxy A21, looks like a problem with this specific device.
Camera stream is visible in the app.

Assumptions:

Set Resolution to max (I've read, that this could be a problem with the ml lib from google https://github.com/flutter-ml/google_ml_kit_flutter/issues/285
Using wrong camera (The A23 has 4 different cameras on the back)
Maybe the image stream is rotated

I am willing to help with this problem if i can get additional information or if someone has experienced similar problems with the same or different devices.
Thank you for your hard work on this library!

I noticed that works with front camera (only as workaround)

On the A23? I've tried this as well but without success. But I will try it again later today. Thank you!

Our customer noticed that and after advised to use front camera he succeded to work: device is a SM-A236B

Same goes to Xiaomi 11

I tried on Xiaomi 11T (21081111RG) and works well

Any idea on what the root cause may be?

No. I have no time to dig into this problem at the moment. But did anyone tried if it works with the newest release? 3.4.1?

I actually experience the same problem in React Native, using react-native-vision-camera, which is allowing you to use plugins to process frames (e.g. to look for QR-Codes).
After some debugging I saw that the images that the frame processor receives actually look like this:
Samsung A32 (QR-Code scanning is working fine, image is blurry cause of first frame while debugging I assume):

Samsung A23:

I don't know if this translates to this library as well. It is a strange coincidence that the same problem appears though, so maybe it is the same root cause. Hope this helps in some way.

I'm also having issues  with two Samsung devices.
Samsung S20 Ultra & S10 lite.
They work sometimes but seem to stop working after a bit.
Also dragging the notification bar down makes the camera go white screen.
I  have a feeling that these two problems are connected, something with the notification bar on these samsung devices that's interrupting something with the android lifecycle.

I'm facing the same issue on Samsung A23. It does not detect the QR code. My app is already on production so other devices are working fine but customers with Samsung A23 are facing this issue

This appears to be caused by the output of the camera.
Similar issues mentioning this device (together with camera or MLKit) seem to resolve this by using the nv21 image format on android.
Corrupt camera stream:
https://github.com/flutter/flutter/issues/118350
A23 needs NV21:
https://github.com/flutter-ml/google_ml_kit_flutter/issues/287#issuecomment-1549828057
https://github.com/flutter-ml/google_ml_kit_flutter/issues/285
If this is indeed the problem, this requires a fix in the plugin code, not something a user can change in their config.
I already see some nv21 references in this plugin, but I don't know this plugin well enough to see which format is used for an android device that I don't have.

This appears to be caused by the output of the camera. Similar issues mentioning this device (together with camera or MLKit) seem to resolve this by using the nv21 image format on android.
Corrupt camera stream: flutter/flutter#118350 A23 needs NV21: flutter-ml/google_ml_kit_flutter#287 (comment) flutter-ml/google_ml_kit_flutter#285
If this is indeed the problem, this requires a fix in the plugin code, not something a user can change in their config.
I already see some nv21 references in this plugin, but I don't know this plugin well enough to see which format is used for an android device that I don't have.

@juliansteenbakker

Hey guys.
I have made some changes on the code, and it seems to now be working on our device models A3 that didn't work before.
Could you try to scan a QRCODE on your device too?
if it works on your devices too, I am gonna open a PR
Just point the mobile_scanner to my forked version
  mobile_scanner:
    path: ../mobile_scanner
    # git: git@github.com:ViniciusSossela/mobile_scanner.git

Thank you for your effort! Sadly it's still not working on the A23. I just tested your package in our app.

Thank you for your effort! Sadly it's still not working on the A23. I just tested your package in our app.

Did you tryed to identify what happens on the native android side of the package on your device?

Any one test version 3.5.1

One of our user has just noticed an issue on this device, so it might be still an issue. Our version: mobile_scanner: 3.5.4

A temporary solution for us was to set camera resolution to something above the default but a better solution should be found.

One of our user has just noticed an issue on this device, so it might be still an issue. Our version: mobile_scanner: 3.5.4

A temporary solution for us was to set camera resolution to something above the default but a better solution should be found.

What resolution did you use?
Our user gave more information and indeed camera is being initialised but it does not detect.

Apparently, after setting resolutions manually solved for us.
We used:
height 4000
width 3000
@juliansteenbakker Is the new ResolutionSelector improvement on the version 3.5.6 aims to solve this issue as well? Isn't it?

Facing the same problem on Samsung A23.

I am encountering the same issue with the Samsung A23. My team decided to purchase a Samsung A23 for me to conduct testing. I took screenshots using mobile_scanner version 3.5.6.
Here are the results from a regular phone:

and From Samsung A23

I ensured that the camera distance between the two devices was the same (as shown in the first image) and moved in to position the QR code in the middle of the screen (as shown in the second image).
The problem seems to be that the Samsung A23 zooms in by itself. I retrieved these images by including the saving image code into the Gallery in MobileScanner.kt at line 80 using the captureOutput variables.
To address this issue, I find it strange that the default resolution is 640 x 480 and appears to be broken on the Samsung A23. Therefore, I suggest setting the cameraResolution explicitly in the MobileScannerController. For example, I just set it to Size(640, 480) that's it and it's work!!
Behind the scenes, this will set the resolution in Android and avoid using the default resolution, which seems to be causing the problem.
Hope this help

I think we do always use YUV and not NV21, per the comment in https://github.com/juliansteenbakker/mobile_scanner/blob/b3e5b58660dc78a9e527854fe209e44f32e20b38/android/src/main/kotlin/dev/steenbakker/mobile_scanner/MobileScanner.kt#L68 and the conversion code that is applied for YUV.
@juliansteenbakker Do you remember why we were using YUV on Android? Specifically for the Samsung device that is affected here, we need NV21. I would investigate if we can just switch to NV21 on Android and drop the YUV format there.


Allow sliding up gesture to open the full product

What

V1 users (eg my father) are disoriented by the requirement to tap to open (vs old slide up) on the scan result card
Additionally, sliding up should also open the full product to enable the transition

Part of

#526

PR incoming, but should this also apply to the SearchCard


Provide pre-compiled binaries

It would be awesome if cargo-machete could provide pre-compiled binaries making it much faster to download from CI.
See typos CLI that uses github Release to upload pre-compiled binaries of their typos CLI.

Surely would be nice to do! It seems all of it can be done in Github via workflows, after a quick skim of what typos does, so anybody can feel free to start working on this and I'll provide help with repo admin (setting up secrets, running workflows, etc.).

Forgot to close this one: this is now done via a github action, see https://github.com/bnjbvr/cargo-machete/releases. Thanks for opening that issue!


mat-select change event stopped invoking after 6.2.1 upgrade

Bug, feature request, or proposal:
mat-select change event stopped invoking after 6.2.1 upgrade
What is the expected behavior?
Event handler attached to (change) event should be invoked
What is the current behavior?
The Event handler dosen't get invoked
What are the steps to reproduce?
Providing a StackBlitz reproduction is the best way to share your issue.
StackBlitz starter: https://goo.gl/wwnhMV
What is the use-case or motivation for changing an existing behavior?
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Is there anything else we should know?

mat-select doesn't have a change event, try binding to selectionChange.

This is the code which used to work fine before i upgraded to Material  6.2.1. I also tried to rename the event to selectionChange , still doesn't trigger the event.
<mat-form-field>   <mat-select name="periodFilter" [(value)]="selectedPeriod" (change)="onPeriodSelect($event)">     <mat-option *ngFor="let period of periodList" [value]="period.id">       {{period.text}}     </mat-option>   </mat-select>   <mat-hint>     Show Last   </mat-hint> </mat-form-field>

mat-select did had a change event, it's been renamed to selectionChange in 6.0.2. I renamed the event name and it started working again. Thanks for your help


Waypoint Flag request: knife / melee (depending on mod)

A knife or melee Flag would be useful for waypoints.
For example we can make knife only zones (like the bridge on awp_india), because the bots still shoot there.
I have a plugin that makes weapon damage to 0 on the bridge, but bots doesn't start to knife anyone, but just keep shooting pointlessly.

Hello. Let's track this with https://github.com/jeefo/yapb/issues/191  as it's probably better to do with some kind of API, instead of adding custom waypoint flags.


.carto import won't work with analyses on layers

str

import dataset

paradas_metro_madrid (on 2016-06-02 at 15.26.52).carto.zip

We weren't exporting source_id on widgets until last week. Can you try re-exporting and trying to import again. The .carto.json should have version 2.0.1.

gonna try

Hey how can I export this from the builder UI?

You can't, it's not implemented yet @saleiva

I tried this yesterday with a complex map with analyses, widgets, etc and worked perfectly.

closing, feel free to create a new issue for the builder UI


Brew is emitting a warning with Xcode 8.1

Bug reports:
Using the latest version of Xcode I am seeing this warning -
Warning: You are using a pre-release version of Xcode.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.

I believe Xcode 8.1 was released yesterday.
~ brew config
HOMEBREW_VERSION: 1.0.8-135-g4284b82
ORIGIN: https://github.com/Homebrew/brew
HEAD: 4284b82de4c9ed24ced10adf53c5aad31bc38b00
Last commit: 2 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 516fa7a629fd7eddbb8d9aebceb996dd10fb0a50
Core tap last commit: 12 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local/Homebrew
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com
CPU: octa-core 64-bit haswell
Homebrew Ruby: 2.0.0-p648
Clang: 8.0 build 800
Git: 2.9.3 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Perl: /usr/bin/perl
Python: /usr/local/bin/python => /usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /usr/local/bin/ruby => /usr/local/Cellar/ruby/2.3.1_2/bin/ruby
Java: N/A
macOS: 10.12.1-x86_64
Xcode: 8.1
CLT: <IP_ADDRESS>.1.1476494586
X11: N/A

Thank you for the report; see #1384.


Multiple {{ $value }} in rules

Proposal
Dear team,
I am trying to get multiple values in one rule.
When using the expression below, I am looking for a way to receive the disk size from the alarm together with a percentage.
expr: 100 - (avg by (instance_name, instance)(irate(node_cpu_seconds_total{job="ec2-node",mode="idle", instance_name!~"^KR.*-EKS.*"}[2m])) * 100) > 70
I checked the short discussion about it in the link below, is there anything in progress?
URL: https://groups.google.com/g/prometheus-users/c/Rah4Ck_AoDM
Thanks !

I think the linked thread covers it pretty well:

If you need to alert on two different values independently, use two rules.
If you want to alert if two different expressions both return results, combine them accordingly (e.g. using and, or, unless).
If you want to include multiple values in an alert's metadata, you can do that as well using alert templating. It sounds like this is what you might be after?

All in all, this sounds like a usage question which is better asked in one of the community channels like the prometheus-users mailing list or the forums rather than in a GitHub issue.

If you don't think it's a suitable space, I'll move it soon.
Before that, please kindly let me ask you one more question.
If I combine expressions with and, or, unless, then how can I get those values accordingly?
Should I use like $value[0], $value[1]? (I'm so sorry if it's a basic question.)

If I combine expressions with and, or, unless, then how can I get those values accordingly? Should I use like $value[0], $value[1]?

I think you can't. The expression will return exactly one. Use option (3) from above if you need another (possibly related) value in your alert.

Thank you for your help @hoffie.
I did and operator as you suggest in the option 2.
I tried to track less than 200GB if less than 10% of free space is available.
So I used the query below, and found out that the first query of 'and' is assigned to the $ value.
((node_filesystem_size_bytes{job="ec2-node", instance_name!~"^KR.*-EKS.*", fstype=~"ext4|xfs"} - node_filesystem_avail_bytes{job="ec2-node", instance_name!~"^KR.*-EKS.*", fstype=~"ext4|xfs"}) / 1024 / 1024 / 1024 < 200) and ((1-node_filesystem_avail_bytes{job="ec2-node", instance_name!~"^KR.*-EKS.*", fstype=~"ext4|xfs"} / node_filesystem_size_bytes{job="ec2-node", instance_name!~"^KR.*-EKS.*", fstype=~"ext4|xfs"}) * 100 > 90)
Thanks for the conversation.
Have a great day !


Loading Web UI Node Explorer

We have installed the latest version of
https://github.com/synechron-finlabs/quorum-maker/wiki
All the tests we do work fine, but we have a problem with Quorum Maker Web UI, Node Explorer
It is an erratic problem sometimes it happens and at times it works OK. When the browser is loaded, the page is in load wait state indefinitely and does not finish loading, in the browser console it does not show any errors.
But when the page is refreshed again with [F5] it loads ok.
What could be the problem?
Thank you!

Can you please provide screenshots for each steps that you have gone through. And specially for this =>
"When the browser is loaded, the page is in load wait state indefinitely and does not finish loading, in the browser console it does not show any errors."


More responsive opening of modals

Opening a modal now causes one digest loop less, by the following change: The modalBackdrop directive now schedules switching its animate flag using a $timeout which does not cause a digest loop.
If we assume a modalBackdrop is always followed by a modalWindow directive in the DOM, then we are guaranteed a digest loop by modalWindow's $timeout (which will happen after modalBackdrop's $timeout since it was added after modalBackdrop's $timeout). At least that is my understanding, and it seems to work in my tests.
I think it's worth trying to reduce the number of excessive digest loops since it's very easy (and common) for the digest loop to take 50-100ms when you have a relatively complex app.

Can you add a comment about this in the code?  If the $timeout changes in modalWindow, then this information will be lost on whoever is debugging.

Landed as 7940fd05f01634cd9536379d7dd86a2aae8c2d0a, thanks!

Scratch my previous comment, this seems to fail the tests - can you rebase off of current master and try to fix the test?


Add a method that sends a command to each of the cluster nodes

As Redis does not allow cross-slot commands, there are situations when
it becomes necessary to send a single command to all nodes.
This project already supports cross-slot execution of the command
MGET and it would be natural to support other non-cross-slot commands
such as SCAN.
The file each_test.go contains an example that sends a SCAN command
to all nodes of the cluster. Also note that each_test.go is
formatted for godoc, so that it becames an example embedded in the
documentation.
Please review and let me know if there are any issues.
Thank you.

Hi flavioaraki,
Thanks for you pull. According to official doc, SCAN is a cursor based command. After every call, server returns a cursor to be used in next call. In cluster situation, each nodes may retun different cursor, which means you can't use a single cursor in next call. You may need redisigning your implementation and more careful tests.

Hi Joe,
Thanks for your feedback.
I'll go back to the drawing board because it is exactly as you pointed out, I would need to return results per node, not combined. 👍
I had only tested with a few keys in each node and the behaviour was good with my proposed implementation, but after testing with many (thousands of) keys, the problems were evident.


Artifact lines left over after animation

Describe the bug
Hi, I really love this library!
I'm getting some artifact lines left over after animations: https://imgur.com/a/80Wrr7G
As far as I can tell it only happens when animating to and (sometimes from) a matrix3d target. Also. it is much more noticeable when the element is translating upward, so the bottom edge of the element is leaving the artifacts behind. Although I think other sides can leave them too.
To Reproduce
Steps to reproduce the behavior:
body background-color is #181a1b
First animation:
{
color: "#1A8C8A",
duration: 600,
easing: "easeOutBounce",
height: 236,
matrix3d: "1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 318, 540, 0, 1",
targets: ".animated-color-square-parent",
width: 256
}
Second animation:
{
color: "#695FC8",
duration: 600,
easing: "easeOutBounce",
height: 236,
matrix3d: "1.16435, 0, -0.241922, 0, -0.366877, 1.2, 0, 0, 0.290306, 0, 0.970296, 0, 598, 20, 0, 1",
targets: ".animated-color-square-parent",
width: 256
}
Expected behavior
No artifacts
Screenshots
https://imgur.com/a/80Wrr7G
Desktop (please complete the following information):

Windows 10
Chrome version 90.0.4430.212 (Official Build) (64-bit)

I remember seeing similar artefacts on Safari iOS with CSS transforms animations, but I'm not exactly sure why or how to fix them. Does adding will-change: transforms has any effect on the problem?

That seems to have fixed it, thanks!


PeerId inconsistent between subkey and the printout when starting the node

The subcommand (generate-node-key) of subkey prints a PeerId.
Starting the node with --node-key specifying the generated private key printout another PeerId.

This is caused by a bug / regression in generate-node-key, which at some point started to hex-encode the key it writes to the file. When the node is started with --node-key-file there is no hex-decoding taking place, so in effect the node gets a different secret key and thus a different keypair and peer ID than what was seen by generate-node-key. See https://github.com/paritytech/substrate/pull/7052#issuecomment-689572467.

Closing as duplicate of https://github.com/paritytech/substrate/issues/7045


Refactor: add webpack and jest folder, remove tool folder

Refactor: add webpack and jest folder, remove tool folder

Coverage remained the same at 100.0% when pulling 864f519ff9fd562c3db47fe5ff5efab4594dfc37 on feature/refine-structure into 21fa5e8f84f24c9552297a133804c0dab92c93a1 on master.


8/13/2019 Publish

Docs Build status updates of commit 764c917:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

mapping/groupMapping-2.0-preview.json
:white_check_mark:Succeeded

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.


Fix broken azurefunctions picture

This fixes a broken Azure Functions picture.

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

@apawast
Would you review the proposed changes to your article?
Thank you

The link works on live, so this issue appears to be obsolete. We'll close the PR.


OSX BigSur Panic: Runtime Error

Description
On a clean OSX 11.2.1, following the install instructions at https://craftcms.com/docs/nitro/2.x/installation.html gets me as far as nitro init; but something is horribly wrong at that point...
mattwilcox@Matts-iMac ~ % nitro init
Checking Nitro…
  … creating network ✓
  … pulling image ✓
  … creating volume ✓
  … creating proxy ✓
Checking network…
  ✓ network ready
Checking proxy…
  ✓ proxy ready
Checking databases…
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x40 pc=0x16a22b5]

goroutine 1 [running]:
github.com/craftcms/nitro/command/apply.NewCommand.func2(0xc000390000, 0x1d96ad8, 0x0, 0x0, 0x195fbe0, 0x1d96ad8)
	/home/runner/work/nitro/nitro/command/apply/apply.go:235 +0x695
github.com/craftcms/nitro/command/initialize.NewCommand.func1(0xc000397340, 0x1d96ad8, 0x0, 0x0, 0x0, 0x0)
	/home/runner/work/nitro/nitro/command/initialize/initialize.go:107 +0x696
github.com/spf13/cobra.(*Command).execute(0xc000397340, 0x1d96ad8, 0x0, 0x0, 0xc000397340, 0x1d96ad8)
	/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.1.1/command.go:850 +0x47c
github.com/spf13/cobra.(*Command).ExecuteC(0x1d5aa20, 0x0, 0x174db80, 0xc000108058)
	/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.1.1/command.go:958 +0x375
github.com/spf13/cobra.(*Command).Execute(...)
	/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.1.1/command.go:895
main.main()
	/home/runner/work/nitro/nitro/cmd/nitro/main.go:11 +0x2a
mattwilcox@Matts-iMac ~ %

I have tried nitro destroy and running nitro init again, makes no difference.
Additional info

Nitro version: 2beta7
DockerApp: 3.1.0
OSX: 11.2.1
Intel iMac 2020, i7 3.8Ghz

@MattWilcox can verify you have databases defined in ~/.nitro/nitro.yaml?

I've had to fall back to Nitro1 as I had to get some work done on this machine: but I'm pretty sure it was actually blank when I checked it at the time - as in the entire file was empty. I thought nitro init would just repopulate that though?

Hmm, we would not overwrite if there was an existing file - it would destroy your config. Version 1 and version 2 use two different config files, can you provide the output of the nitro.yaml here? If its empty you can delete and run nitro init and it should resolve your issue...

Yep, nitro.yaml is completely blank. The file exists, but has no content.
Once the work day is done I'll try switching over to Nitro2 again, delete that file, and see how that goes. Thanks Jason.

Ok great! I will see if I can find out why that file is blank... that is the first time hearing about this issue.

I'm trying to remember, but i think I messed up early on - there's no instruction to make sure that Docker is running after installing it, so I think I ran nitro init without having Docker running. It did error, but it may have been later down the line. Honestly can't remember what happened other than I had to go start Docker as it hadn't started itself post install, and maybe that got as far as creating a blank yaml?

This will be resolved in the next release as we now check for empty config files.

This was released with the latest build!


Change NewRelic Add-on plan from stark to wayne

When I tried to create a project, I received the following error message:

Adding heroku addon [newrelic:stark] to 'night-blog'.
! No such add-on plan.

Probably the Stark plan was removed. So I look at New Relic Add-on plans and Wayne is the free plan currently.
This PR changes the plan :smile:

There is a test failing, to make it pass just update this test to reflect the new command https://github.com/Helabs/pah/blob/master/features/runner.feature#L49

Thanks for your contribution!


fix(db): throw readable error when creating _id with background: true

My least favorite bug strikes again: createIndex() falls back to inserting an index doc and swallows the original error. Below is a minimal repro script with<EMAIL_ADDRESS>const { MongoClient } = require('mongodb');

run().catch(error => console.error(error.stack));

async function run() {
  const client = await MongoClient.connect('mongodb://localhost:27017/test');

  const db = client.db();

  await db.collection('Test2').ensureIndex({ _id: 1 }, { background: true });

  console.log('Done');
}

This throws a very unhelpful error:
$ node gh-6109.js
Error: cyclic dependency detected
    at serializeObject (/home/val/Workspace/MongoDB/troubleshoot-mongoose/node_modules/bson/lib/bson/parser/serializer.js:333:34)
    at serializeInto (/home/val/Workspace/MongoDB/troubleshoot-mongoose/node_modules/bson/lib/bson/parser/serializer.js:937:17)
    at serializeObject (/home/val/Workspace/MongoDB/troubleshoot-mongoose/node_modules/bson/lib/bson/parser/serializer.js:347:18)
    at serializeInto (/home/val/Workspace/MongoDB/troubleshoot-mongoose/node_modules/bson/lib/bson/parser/serializer.js:937:17)
    at serializeObject (/home/val/Workspace/MongoDB/troubleshoot-mongoose/node_modules/bson/lib/bson/parser/serializer.js:347:18)
    at serializeInto (/home/val/Workspace/MongoDB/troubleshoot-mongoose/node_modules/bson/lib/bson/parser/serializer.js:937:17)
    at serializeObject (/home/val/Workspace/MongoDB/troubleshoot-mongoose/node_modules/bson/lib/bson/parser/serializer.js:347:18)
    at serializeInto (/home/val/Workspace/MongoDB/troubleshoot-mongoose/node_modules/bson/lib/bson/parser/serializer.js:937:17)
    at serializeObject (/home/val/Workspace/MongoDB/troubleshoot-mongoose/node_modules/bson/lib/bson/parser/serializer.js:347:18)
    at serializeInto (/home/val/Workspace/MongoDB/troubleshoot-mongoose/node_modules/bson/lib/bson/parser/serializer.js:937:17)

Admittedly, trying to create an index on _id is impossible because MongoDB creates one by default, but plenty of people do this in mongoose, so a lot of people are getting this baffling "cyclic dependency detected" error (see https://github.com/Automattic/mongoose/issues/6109). Unfortunately I can't fix this issue from mongoose, so can this get into 3.0.x so I can close out Automattic/mongoose#6109?

Also, a related issue: what do you think about adding a toBSON() method to the ClientSession class? This cyclic dependency is because bson chokes on serializing a session.

@vkarpov15 thanks for this! I agree we should throw a toBSON on ClientSession, if not just to have it throw an exception. I made NODE-1518 to track this, perhaps one of our interns can even pick it up today.


Trait-based Vortex-Buffer

TODO: test performance of this thing. Use vtables if bad.

Taking a different approach now. See #115


An off file cannot be read from an URL

I'm wondering why this ply file cand be read from an URL:
from urllib.request import urlopen
url = 'http://people.sc.fsu.edu/~jburkardt/data/ply/airplane.ply'
respply = urlopen(url)
mesh = meshio.read(respply, file_format='ply')

but when I'm trying to read an off file, meshio cannot identify its file format:
urloff= 'https://raw.githubusercontent.com/empet/Datasets/master/Meshes/tr_reg_011.off'
respoff = urlopen(urloff)
mesh = meshio.read(respoff, file_format='off')

Error:
site-packages/meshio/off/_off.py in read_buffer(f)
     24     line = f.readline()
     25     if line.strip() != "OFF":
---> 26         raise ReadError()
     27
     28     # fast forward to the next significant line

ReadError:

The same file can be read when it is  saved on my system:
mymesh = meshio.read('Meshes/tr_reg_011.off')

Please attach the files, otherwise no one can reproduce the issue.

I gave a link above to each one.

I can read both files without problem:
meshio-info tr_reg_011.off

<meshio mesh object>
  Number of points: 6890
  Number of cells:
    triangle: 13776

Have you read the off file directly from URL? I've just installed the last meshio version and the same error message persists.
I'll close this issue, because  I can read it from my laptop, but I was curious why from URL it's thrown that error. Thanks!

Your basic
from urllib.request import urlopen
url = 'http://people.sc.fsu.edu/~jburkardt/data/ply/airplane.ply'
respply = urlopen(url)

already gives
urllib.error.URLError: <urlopen error [SSL: UNSUPPORTED_PROTOCOL] unsupported protocol (_ssl.c:1108)>

so I'd say you better fix that first.

It' s strange because l can  read the ply file without error from Its url, but not the off file, while you can read the off file and not the ply one

Fix the issue and I'll give it a spin.

Okay, got it now. Your urlopen returns a binary buffer which the off reader can't work with yet. #878 gets you a better error message at least. If you have a good idea how to fix this, feel free to PR!

Thanks for pointing out what's going on!!


PTRun Windows Search plugin, show erroneous non-indexed warning

Microsoft PowerToys version
0.62.1
Running as admin

[X] Yes

Area(s) with issue?
PowerToys Run
Steps to reproduce
I don't understand the logic for when to show the warning:

My files are indexed and enhanced mode is not on:

But the flags that control this depend on number of drives, enhanced mode, and a flag to show the warning or not. If you have more than one drive, enhanced off AND warning off, you get the warning.
        // To display the drive detection warning only when enhanced mode is disabled on a system which has multiple drives.
        // Currently the warning would not be displayed if the enhanced mode is disabled when the user system has only a single fixed drive. However, this warning may be added in the future.
        // This warning can be disabled by checking the disabled drive detection warning checkbox in settings.
        public bool DisplayWarning()
        {
            return !(IsDriveDetectionWarningCheckBoxSelected || IsEnhancedModeEnabled || (_driveHelper.GetDriveCount() == 1));
        }

Also, I check the index and it looks like it's up to date:

@Alekhya, can you help?
I think we should (for now) just always hide the warning. If we feel the warning is need for non-indexed file we should base the need for the warning on the actual status of the index. Which I think we can get with the SearchAPI.
✔ Expected Behavior
It should only show the warning message if configured to show AND the index is really incomplete and has pending items to index.
❌ Actual Behavior
It seems to show the message a "random" time.
Other Software
No response

Same here! I also get the warning, although all files are indexed.

@alekhyareddy28, or perhaps someone else can shed some light on this. @crutkas, do you know who is "in the know" on the details for the logic here Microsoft.Plugin.Indexer.DriveDetection.IndexerDriveDetection.DisplayWarning()?
@raingros if there is no update to this in a week or so I will likely just submit a PR to address this. I hate changing logic that is this old, but since it's fail you and me, it seems worth looking at.

@jefflord Thanks for your message. I somewhat solved the problem for me: In the Windows Search settings of PowerToys Run you can select "Disable non-indexed files warning".

@jefflord the "in the know" would be looking at the code.  It has been years since we touched that.  If we need to revisit it, lets.

Perfect answer. Based on the dates I saw in the repo I pretty much guessed this but wanted to be sure. I do see some comments here regarding "...in the future..."
I think it might be just some confusion about what the error is means. And there is a difference between:

Not having anything indexed (I think this is a possibility)
Indexing not being complete
If "Enhanced" mode is abled or not.
You have more than one drive.

I don't think 4 above should be considered since Enhanced mode does mean "other drives" but also include more stuff on the system drive.
I think the simplest solution would be to:

Revert the code to have the number of drives you have NOT be taken into account (does not matter)
Change the message from from "Warning: Not all files are indexed." to "Warning: Enhanced mode is not enabled."
Change the option from "Disable non-indexed files warning" to "Disable Enhanced mode warning"


Something went wrong installing the "sharp" module

vt git:(master) ✗ gatsby develop
warn Node.js v8.16.1 has reached End of Life status on 31 December, 2019.
Gatsby will only actively support 10.13.0 or higher and drop support for Node 8
soon.
success open and validate gatsby-configs - 0.105 s
ERROR
Something went wrong installing the "sharp" module
Cannot find module '../build/Release/sharp.node'

Remove the "node_modules/sharp" directory, run "npm install" and look for errors
Consult the installation documentation at https://sharp.pixelplumbing.com/en/stable/install/
Search for this error at https://github.com/lovell/sharp/issues

⠋ load plugins
Did you see the documentation relating to installation?
Yes
Have you ensured the platform and version of Node.js used for npm install is the same as the platform and version of Node.js used at runtime?
yes
If you are installing as a root or sudo user, have you tried with the npm install --unsafe-perm flag?
yes
What is the complete output of running npm install --verbose sharp? Have you checked this output for useful error messages?
vt git:(master) ✗ npm install --verbose sharp
npm info it worked if it ends with ok
npm verb cli [ '/Users/peterayeni/.nvm/versions/node/v8.16.1/bin/node',
npm verb cli   '/Users/peterayeni/.nvm/versions/node/v8.16.1/bin/npm',
npm verb cli   'install',
npm verb cli   '--verbose',
npm verb cli   'sharp' ]
npm info using<EMAIL_ADDRESS>npm info using<EMAIL_ADDRESS>npm verb npm-session 992dd9a95f6d200d
npm http fetch GET 304 https://registry.npmjs.org/sharp 124ms (from cache)
npm timing stage:loadCurrentTree Completed in 6827ms
npm timing stage:loadIdealTree:cloneCurrentTree Completed in 51ms
npm timing stage:loadIdealTree:loadShrinkwrap Completed in 4298ms
npm http fetch GET 304 https://registry.npmjs.org/npmlog 52ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/detect-libc 95ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/tar 92ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/prebuild-install 93ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/simple-get 109ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/semver 116ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/gauge 40ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/string-width 48ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/expand-template 48ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/napi-build-utils 47ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/which-pm-runs 48ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/node-abi 51ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/tar-fs 54ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/decompress-response 41ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/simple-concat 40ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/mimic-response 30ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/tar-stream 29ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/readable-stream 36ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/minipass 129ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/minizlib 134ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/yallist 133ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/fs-minipass 135ms (from cache)
npm timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 12858ms
npm timing stage:loadIdealTree Completed in 20304ms
npm timing stage:generateActionsToTake Completed in 403ms
npm verb correctMkdir /Users/peterayeni/.npm/_locks correctMkdir not in flight; initializing
npm verb lock using /Users/peterayeni/.npm/_locks/staging-9ec48310b3434d54.lock for /Users/peterayeni/Desktop/vt/node_modules/.staging
npm timing audit compress Completed in 61ms
npm info audit Submitting payload of 241243bytes
npm timing action:extract Completed in 342ms
npm info lifecycle<EMAIL_ADDRESS><EMAIL_ADDRESS>npm info lifecycle<EMAIL_ADDRESS><EMAIL_ADDRESS>npm verb unbuild rmStuff<EMAIL_ADDRESS>from /Users/peterayeni/Desktop/vt/node_modules
npm info lifecycle<EMAIL_ADDRESS><EMAIL_ADDRESS>npm timing action:unbuild Completed in 5ms
npm timing action:remove Completed in 18ms
npm timing action:finalize Completed in 8ms
npm timing action:refresh-package-json Completed in 12ms
npm info lifecycle<EMAIL_ADDRESS><EMAIL_ADDRESS>npm timing action:preinstall Completed in 0ms
npm info linkStuff<EMAIL_ADDRESS>npm timing action:build Completed in 1ms
npm info lifecycle<EMAIL_ADDRESS><EMAIL_ADDRESS>npm info lifecycle<EMAIL_ADDRESS>ignored because ignore-scripts is set to true<EMAIL_ADDRESS>npm timing action:install Completed in 4ms
npm info lifecycle<EMAIL_ADDRESS><EMAIL_ADDRESS>npm timing action:postinstall Completed in 0ms
npm verb unlock done using /Users/peterayeni/.npm/_locks/staging-9ec48310b3434d54.lock for /Users/peterayeni/Desktop/vt/node_modules/.staging
npm timing stage:executeActions Completed in 420ms
npm timing stage:rollbackFailedOptional Completed in 1ms
npm timing stage:runTopLevelLifecycles Completed in 29213ms
npm verb saving [ { name: 'sharp', spec: '^0.23.4', save: 'dependencies' } ]
npm verb shrinkwrap skipping write for package.json because there were no changes.
npm info lifecycle undefined~preshrinkwrap: undefined
npm info lifecycle undefined~shrinkwrap: undefined
npm timing audit submit Completed in 4444ms
npm http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/audits/quick 4444ms
npm timing audit body Completed in 7ms
npm verb shrinkwrap skipping write for package-lock.json because there were no changes.
npm info lifecycle undefined~postshrinkwrap: undefined

<EMAIL_ADDRESS>updated 1 package and audited 568105 packages in 33.34s
found 1970 vulnerabilities (1565 low, 146 moderate, 259 high)
run npm audit fix to fix them, or npm audit for details
npm verb exit [ 0, true ]
npm timing npm Completed in 33761ms
npm info ok

What is the output of running npx envinfo --binaries --languages --system --utilities?
System:
OS: macOS 10.15.2
CPU: (8) x64 Intel(R) Core(TM) i5-8279U CPU @ 2.40GHz
Memory: 22.57 MB / 8.00 GB
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 8.16.1 - ~/.nvm/versions/node/v8.16.1/bin/node
Yarn: 1.21.1 - ~/.yarn/bin/yarn
npm: 2.15.12 - ~/Desktop/vt/node_modules/.bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
Utilities:
CMake: 3.15.4 - /usr/local/bin/cmake
Make: 3.81 - /usr/bin/make
GCC: 4.2.1 - /usr/bin/gcc
Git: 2.23.0 - /usr/local/bin/git
Languages:
Bash: 3.2.57 - /bin/bash
Go: 1.13.4 - /usr/local/go/bin/go
Perl: 5.18.4 - /usr/bin/perl
PHP: 7.3.9 - /usr/bin/php
Python: 2.7.16 - /usr/bin/python
Ruby: 2.6.1 - /Users/peterayeni/.rvm/rubies/ruby-2.6.1/bin/ruby

The salient part of this log is:

npm info lifecycle<EMAIL_ADDRESS>ignored because ignore-scripts is set to true<EMAIL_ADDRESS>
You'll need to set this to false via something like npm config set ignore-scripts false.

Thank you very much this works. :)


Multi-stage Dockerfile based build process

All needed dev actions are performed through multi-stage Dockerfile,
simplifying significantly the setup and dev experience.
The functionalities are exposed through a tiny Makefile wrapper.
I have:

[x] Read and followed Crossplane's contribution process.
[x] Added or updated unit tests for my change.

This is what I started with, but I decided to roll it back for some reason that I don't quite remember. Let me think on this - not sure I want to introduce a Makefile etc here.


Don't return event numbers in plugin_next()

Event numbers are assigned by the plugin framework, not plugins, so
don't set them when returning values in plugin_next().
Signed-off-by: Mark Stemm<EMAIL_ADDRESS>
What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind bug

/kind cleanup

/kind design

/kind documentation

/kind failing-test

/kind feature

Any specific area of the project related to this PR?

Uncomment one (or more) /area <> lines:

/area source-plugins

/area extractor-plugins

/area build

/area documentation

What this PR does / why we need it:
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?:

Don't fill in event numbers in plugin_next(), they're allocated by the plugin framework.

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: mstemm
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [mstemm]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

/test build-plugins

LGTM label has been added.  Git tree hash: 78a57605a6504779da9daeedccafc3cfc057fab8

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: leogr, mstemm
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [leogr,mstemm]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


ci: drop ok-to-test label when a PR is rebased

When reviews are dropped, tests should most often not automatically start again.

Show available bot commands
These commands are normally not required, but in case of issues, leave any of
the following bot commands in an otherwise empty comment in this PR:

/retest ci/centos/<job-name>: retest the <job-name> after unrelated
failure (please report the failure too!)
/retest all: run this in case the CentOS CI failed to start/report any test
progress or results

@mergifyio queue


Multistage CUDA Dockerfile to reduce image size and allow local repository build

The existing dockerfile for cuda has a few flaws

It builds the pypi package instead of the local repository
Image requires too much space ~4GB

This change rectifies these such as:

The image size is reduced to ~1.5GB (see https://hub.docker.com/r/peturparkur/llama-cpp-python)
It builds the local repository instead of pypi

This allows people to make small local changes and build the image themselves

This is achieved with a multistage build, using the cuda devel image only for building the package and the runtime image for the actual deployment/runtime.

@peturparkur which command are you using to build the docker image?

@jmformenti I just pushed some changes. I'm using the following command to build:
Assuming you're within the repository main folder:
docker build -t <my-tag> -f cuda.Dockerfile .

Nice work! This is exactly what I want, much appreciated.

ARG CUDA_VERSION="12.5.0"
ARG OS="ubuntu22.04"
ARG CUDA_BUILDER_IMAGE="${CUDA_VERSION}-devel-${OS}"
ARG CUDA_RUNTIME_IMAGE="${CUDA_VERSION}-runtime-${OS}"
FROM nvidia/cuda:${CUDA_BUILDER_IMAGE} as builder
RUN apt-get update && apt-get upgrade -y
&& apt-get install -y --no-install-recommends git build-essential
python3 python3-pip python3-venv gcc wget
ocl-icd-opencl-dev opencl-headers clinfo
libclblast-dev libopenblas-dev
&& mkdir -p /etc/OpenCL/vendors && echo "libnvidia-opencl.so.1" > /etc/OpenCL/vendors/nvidia.icd
&& rm -rf /var/lib/apt/lists/*
WORKDIR /llama_cpp_python
COPY . .
setting build related env vars
ENV CUDA_DOCKER_ARCH=all
ENV GGML_CUDA=1
Install depencencies
RUN python3 -m pip install --upgrade pip
RUN python3 -m venv venv
RUN python3 -m pip install --upgrade pip pytest cmake scikit-build setuptools fastapi uvicorn sse-starlette pydantic-settings starlette-context
Install llama-cpp-python (build with cuda)
RUN CMAKE_ARGS="-DGGML_CUDA=on" venv/bin/pip install llama-cpp-python[server]
RUN make clean
FROM nvidia/cuda:${CUDA_RUNTIME_IMAGE} as runtime
We need to set the host to <IP_ADDRESS> to allow outside access
ENV HOST <IP_ADDRESS>
ENV CUDA_DOCKER_ARCH=all
RUN apt-get update && apt-get upgrade -y
&& apt-get install -y python3 python3-pip python3-venv
WORKDIR /llama_cpp_python
COPY --from=builder /llama_cpp_python/venv venv
Run the server
CMD ["venv/bin/python3", "-m", "llama_cpp.server"]

@abetlen test: https://github.com/Smartappli/AIMER/actions/runs/10123177063/job/27996156745


MQTT c2d message handler: Unable to receive the iothub-ack message property

My application implements the message_handler for MQTT c2d messages using the SDK.
When I send the c2d message, everything works expected and all properties/payloads are received except the "iothub-ack" property. I need to make sure this property is actually received by the device and also be able to view it in the message object. However, looking at the message object I don't see this as an attribute and it also doesn't show up inside custom_properties.
As specified by the following doc, this is an essential property which must be contained in the message:
https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-messages-construct#system-properties-of-c2d-iot-hub-messages
Please guide me as to where I can find this property?

@avagraw The feature has been released as part of azure-iot-device 2.6.0


KeyboardInterrupt

The game won't start. Even if I can't do anything

Browser: Chrome, without any extension

https://twitter.com/nickwalton00/status/1203520645104947201


🪸 check if we want runtime typechecking in dev mode

What is this about
Vite is not doing type checking on runtime in the dev mode, so currently a type error will not cause errors when running pnpm dev. Since typechecking is handled in the IDE but also on every commit, for now that's fine. If projects gets bigger or we notice that this is causing problems for others, we can revisit that, e.g. https://github.com/fi3ework/vite-plugin-checker

Talked about that today and we decided not to do this for now.
It has benefits, because it enables us to notice ts errors very soon (even if the files is not open in the IDE right now etc.) but it also has the drawback of slowing down dev-mode.
Since we do typechecking on pre-commit and in the CI, we feel that's good enough for now, so we don't want to impact our development speed with it!


Tweak infolog view for useablility

I LOVE the infolog view, and may I have 4 requests for it?

Display username in the title of it.
Have metadata before the contents in the display field
maybe optionally have a larger-by default contents field?
Maybe a button to resolve or delete (gdpr?) a log?

1    Display username in the title of it.
Will be easy, no problem

2    Have metadata before the contents in the display field
Sure thing, also easy

3    maybe optionally have a larger-by default contents field?
Can do though the idea for that is you'd be copy-pasting them to an actual log viewer rather than the text field here

4    Maybe a button to resolve or delete (gdpr?) a log?
I was going to start auto-deleting logs after a certain period of time anyway. Is 7 days long enough to keep them?

Items now addressed, closing the issue.


ci: add test on big-endian arch in CI

Tests are failing due to endianness issues in YARA, see https://github.com/VirusTotal/yara/pull/1884


bug(mat-date-range-picker): In windows high contrast mode, focus indicator is not present for selected dates

Reproduction
Use StackBlitz to reproduce your issue:

Components: https://stackblitz.com/fork/components-issue
Harnesses: https://stackblitz.com/fork/harness-issue

Steps to reproduce:
1 .Enable High contrast mode in windows machine
2. Open date range picker in example 1 https://material.angular.io/components/datepicker/examples
3. Observe that 'selected date' and 'Down pointing arrow' are not visible in HC mode and does not have focus indicator.
Expected Behavior
In HC mode, all the elements should be visible and also visible focus indicator should be present for all controls
Actual Behavior
'Down pointing arrow' is invisible and the 'selected dates'  does not have a visible focus indicator.
Environment

Angular: 11.0.3
CDK/Material: 11.0.3
Browser(s): Firefox 88
Operating System (e.g. Windows, macOS, Ubuntu): Windows 10 Enterprise

I'm submitting a fix for the focus indication on selected dates. The issue with down arrows is known and it's something that we'd have to tackle across the entire project.


Revert "fix add check for segment num (#14032)"

This reverts commit b7d2bec8ea3baaf8e4d52da5264f148ae827467b.
Proposed changes
some old case may cause this check failed, revert it first, and will add it back after the case fixed.
Problem summary
Describe your changes.
Checklist(Required)

[ ] Does it affect the original behavior
[ ] Has unit tests been added
[ ] Has document been added or modified
[ ] Does it need to update dependencies
[ ] Is this PR support rollback (If NO, please explain WHY)

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

run p0

run p0


Add files via upload

To request teacher licence

@Chanthuon168 Please fork SWOT repository, copy file.zip in the root folder of your forked SWOT repository. Then unzip file.zip there with no changes to the directory structure. Then make a new pull request. If you are not able to make the pull request according the instructions, please send us an email to<EMAIL_ADDRESS>Please mention this request URL in the message. I have to close this request without merging. Thank you for your understanding.


Frontend changes for horizontal regions

Description
Frontend changes to parse with horizontal(region[...]) and build gt_ir.HorizontalRegion nodes into definition IR.
To do:

[x] Add tests for feature
[ ] Ensure frontend changes are compatible with Python 3.9 ast
[ ] Remove outdated ast handling
[ ] Address TODOs

Ah darn. This works with Python 3.8. I'll investigate the AST handling changes today.


  We were sanitizing everything that was displayed in the wiki, so effectively it only was checking the "WATCH VIDEO" label.
Changes

uses content instead of raw_text

QA Notes
Please make verification statements inspired by your code and what your code touches.

Verify
Verify

What are the areas of risk?
Any concerns/considerations/questions that development raised?
Documentation

Side Effects

Ticket
https://openscience.atlassian.net/browse/ENG-4959

Cherry-picked in as 900b33a3f3819d795f69948d845989eadc15bb8c, consider this merged :octocat:


Fix Application documentation

Remove kwargs from Application docs according to #243
And another minor fixes.

Cool! Thank you!


Add test for functional values (wrapped in parens) in wrap()

As of MySQL 8.0.13 (or thereabouts), indexes can be specified with functional key parts, a very powerful feature which allows us to to customize performance and functionality of indexes.  But in Laravel migrations, this would require something like this ...
            $table->unique(['name', '(COALESCE(`scan_code`, ""))', '(COALESCE(`global_scan_type_id`, 0))'], 'global_manufacturer_aliases_unique_index');
This currently won't work, because the Grammar wrap() method simply wraps the entire parenthesized expression in backticks.  My inclination was to modify wrapValue() in MySqlGrammar and test to see if the value already contained a backtick, and if so leave it untouched (on the "let's assume they know what they are doing" basis).  But for reasons not clear to me, that function already converts single backticks to double backticks.  Hence a modification to wrap() in the main Garmmar.
Thank you for your consideration.

I noticed it doesn't like my shortcut for testing the string, I can convert that to use strpos if the PR would be accepted.

Would this work "as-is" without the PR?
use Illuminate\Support\Facades\DB;

// ...

$table->unique([
    'name',
    DB::raw('COALESCE(`scan_code`, "")',
    DB::raw('COALESCE(`global_scan_type_id`, 0)',
], 'global_manufacturer_aliases_unique_index');

Thanks for your pull request to Laravel!
Unfortunately, I'm going to delay merging this code for now. To preserve our ability to adequately maintain the framework, we need to be very careful regarding the amount of code we include.
If possible, please consider releasing your code as a package so that the community can still take advantage of your contributions!
If you feel absolutely certain that this code corrects a bug in the framework, please "@" mention me in a follow-up comment with further explanation so that GitHub will send me a notification of your response.

DB::raw('COALESCE(`global_scan_type_id`, 0)'),

Yes, that does work, thank you!
I was working round it by just doing the whole index creation with a DB:statement(), but your solution is better.
Many thanks.
-- hugh


Heap corruption error when using qpdf dll from C#

I am attempting to use qpdf from C# to replicate this command:
qpdf --qdf --object-streams=disable scan.pdf scanEditable.pdf
And I can successfully output the editable file, but upon calling qpdf_cleanup in the code below I get this error:
Unhandled exception at 0x7707E753 (ntdll.dll) in ConsoleApplication10.exe: 0xC0000374: A heap has been corrupted (parameters: 0x770B4270).
I'm not sure, but I thought that sounded like it was trying to cleanup things that had already been deleted (maybe). The dll I got is from here: https://sourceforge.net/projects/qpdf/
Is this an issue caused by me using qpdf with c# or did I do something wrong?
My code:
[DllImport("qpdf21.dll", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr qpdf_init();

[DllImport("qpdf21.dll", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.Cdecl)]
static extern void qpdf_cleanup(IntPtr qpdfData);

[DllImport("qpdf21.dll", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.Cdecl)]
static extern int qpdf_read(IntPtr qpdfdata, [MarshalAs(UnmanagedType.LPStr)] string fileName, IntPtr password);

[DllImport("qpdf21.dll", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.Cdecl)]
static extern void qpdf_set_object_stream_mode(IntPtr qpdf, int mode);

[DllImport("qpdf21.dll", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.Cdecl)]
static extern void qpdf_set_qdf_mode(IntPtr qpdf, int value);

[DllImport("qpdf21.dll", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.Cdecl)]
static extern int qpdf_init_write(IntPtr qpdf, [MarshalAs(UnmanagedType.LPStr)] string fileName);

[DllImport("qpdf21.dll", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.Cdecl)]
static extern int qpdf_write(IntPtr qpdf);

static void Main(string[] args)
{
	//call init
	IntPtr qpdfData = qpdf_init();

	//call read (which gets and processes the input file)
	//0 result == good
	int result = qpdf_read(qpdfData, @"scan.pdf", IntPtr.Zero);

	//call init_write
	result = qpdf_init_write(qpdfData, @"scanEditable.pdf");

	//set write options
	//disable object stream mode
	qpdf_set_qdf_mode(qpdfData, 1);
	qpdf_set_object_stream_mode(qpdfData, 0);

	//call write
	result = qpdf_write(qpdfData);

	//call cleanup
	qpdf_cleanup(qpdfData);
}

qpdf_cleanup takes a pointer to qpdfData, not qpdfData itself. I'm not a C# programmer, so I'm not sure how you do that, but that's most likely your problem.

Glad it worked. Happy to help. :-)


IANA time zone names in timeZone option

I'm wondering what browsers support IANA time zone names
For more details, please see:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat#Browser_compatibility
You can test by seeing if the following causes an error:
new Intl.DateTimeFormat('en-US', { timeZone: 'America/Cancun' }).format()

I found which browsers support this by expanding DateTimeFormat in the table here: http://kangax.github.io/compat-table/esintl/

Available at https://caniuse.com/#feat=mdn-javascript_builtins_date_tolocalestring_iana_time_zone_names


Improve the font family of FaQ Section

In the FaQ Section Heading, Sub-Heading, and Description all have the same font family and it seems attractive. So can I work on this?

@MohitNamdev22 go for it.


Cannot authenticate on localhost

Issue description
I am using recaptcha v3 with clientside + backend PHP verification.
Environment
PHP 7.2

OS name and version: alpine linux 3.8
PHP version: 7.2
Web server name and version: nginx
google/recaptcha version: 2.1 latest
Browser name and version: safari macos 12.0

Reproducing the issue
I am using a recaptcha v3 where the domain is set to 'localhost'.
I am accessing the website on https://localhost/
I am logged in to my google account.
Logs
 Checking 'login/login' with minimum score 0.5 and timeout 120

...

Failed captcha, reason: score-threshold-not-met with score 0.1

Hi @rowan-m , I always receive a score of 0.1 regardless of running locally (localhost) or more representative when hosted on a provider. (xxx.host.com)
Is there any way to debug -why- I received that score?

I really wouldn't focus on the score you're getting on a developer machine. From https://developers.google.com/recaptcha/docs/v3

reCAPTCHA adapts to your use cases by seeing real traffic on your site. For this reason, scores in a staging environment may differ from production.

As a developer, your usage of the site is unlikely to match a normal user. If you need specific scores in a dev / staging environment I would strongly suggest creating a mock service that you can use that will return predictable scores for you.

I am having the same issue in production by the way. :-)

Closing this off since it's related to scores returned by the service. You need to focus on looking at your overall scores per action in https://www.google.com/recaptcha/admin and create a mock service if you need predictable responses in another environment.


ActiveRecord dependency causes rake assets:compile to fail without access to a database

When I include the gem acts_as_list in my Gemfile, intentionally change my connection string for PostgreSQL database to an invalid DB, and run rake assets:precompile, I receive an ActiveRecord error.  It appears that acts_as_list tries to connect to the database at all times, even during asset compilation.
If you refer to the Heroku post at https://devcenter.heroku.com/articles/rails-asset-pipeline, you will see that this problem unfortunately makes acts_as_list incompatible with Heroku.
I have worked around the problem by doing something along the lines of:
gem 'acts_as_list', require: false

And I have an initializer which does this:
require 'acts_as_list' unless Rails.groups.include?('assets')

Here is the error log which unfortunately does not clearly show where the problem lies:
$ rake assets:precompile
/Users/matt/.rvm/rubies/ruby-1.9.3-p286/bin/ruby /Users/matt/.rvm/gems/ruby-1.9.3-p286/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets
rake aborted!
FATAL:  database "mysite_deploymenta" does not exist
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/activerecord-3.2.12/lib/active_record/connection_adapters/postgresql_adapter.rb:1208:in `initialize'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/activerecord-3.2.12/lib/active_record/connection_adapters/postgresql_adapter.rb:1208:in `new'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/activerecord-3.2.12/lib/active_record/connection_adapters/postgresql_adapter.rb:1208:in `connect'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/activerecord-3.2.12/lib/active_record/connection_adapters/postgresql_adapter.rb:326:in `initialize'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/activerecord-3.2.12/lib/active_record/connection_adapters/postgresql_adapter.rb:28:in `new'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/activerecord-3.2.12/lib/active_record/connection_adapters/postgresql_adapter.rb:28:in `postgresql_connection'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/connection_pool.rb:315:in `new_connection'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/connection_pool.rb:325:in `checkout_new_connection'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/connection_pool.rb:247:in `block (2 levels) in checkout'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/connection_pool.rb:242:in `loop'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/connection_pool.rb:242:in `block in checkout'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/connection_pool.rb:239:in `checkout'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/connection_pool.rb:102:in `block in connection'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/connection_pool.rb:101:in `connection'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/connection_pool.rb:410:in `retrieve_connection'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/connection_specification.rb:171:in `retrieve_connection'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/connection_specification.rb:145:in `connection'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/activerecord-3.2.12/lib/active_record/model_schema.rb:308:in `clear_cache!'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/activerecord-3.2.12/lib/active_record/railtie.rb:97:in `block (2 levels) in <class:Railtie>'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:418:in `_run__3455161023029107272__prepare__737315814947044187__callbacks'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:385:in `_run_prepare_callbacks'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/actionpack-3.2.12/lib/action_dispatch/middleware/reloader.rb:74:in `prepare!'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/actionpack-3.2.12/lib/action_dispatch/middleware/reloader.rb:48:in `prepare!'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/railties-3.2.12/lib/rails/application/finisher.rb:47:in `block in <module:Finisher>'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/railties-3.2.12/lib/rails/initializable.rb:30:in `instance_exec'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/railties-3.2.12/lib/rails/initializable.rb:30:in `run'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/railties-3.2.12/lib/rails/initializable.rb:55:in `block in run_initializers'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/railties-3.2.12/lib/rails/initializable.rb:54:in `each'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/railties-3.2.12/lib/rails/initializable.rb:54:in `run_initializers'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/railties-3.2.12/lib/rails/application.rb:136:in `initialize!'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/railties-3.2.12/lib/rails/railtie/configurable.rb:30:in `method_missing'
/Users/matt/Dropbox/Projects/easybacklog/easybacklog/config/environment.rb:5:in `<top (required)>'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `require'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `block in require'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:236:in `load_dependency'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `require'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/railties-3.2.12/lib/rails/application.rb:103:in `require_environment!'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/railties-3.2.12/lib/rails/application.rb:297:in `block (2 levels) in initialize_tasks'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/task.rb:246:in `call'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/task.rb:246:in `block in execute'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/task.rb:241:in `each'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/task.rb:241:in `execute'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/task.rb:184:in `block in invoke_with_call_chain'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/task.rb:177:in `invoke_with_call_chain'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/task.rb:170:in `invoke'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/actionpack-3.2.12/lib/sprockets/assets.rake:93:in `block (2 levels) in <top (required)>'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/task.rb:246:in `call'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/task.rb:246:in `block in execute'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/task.rb:241:in `each'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/task.rb:241:in `execute'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/task.rb:184:in `block in invoke_with_call_chain'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/task.rb:177:in `invoke_with_call_chain'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/task.rb:205:in `block in invoke_prerequisites'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/task.rb:203:in `each'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/task.rb:203:in `invoke_prerequisites'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/task.rb:183:in `block in invoke_with_call_chain'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/task.rb:177:in `invoke_with_call_chain'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/task.rb:170:in `invoke'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/actionpack-3.2.12/lib/sprockets/assets.rake:60:in `block (3 levels) in <top (required)>'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/task.rb:246:in `call'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/task.rb:246:in `block in execute'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/task.rb:241:in `each'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/task.rb:241:in `execute'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/task.rb:184:in `block in invoke_with_call_chain'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/task.rb:177:in `invoke_with_call_chain'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/task.rb:170:in `invoke'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/application.rb:143:in `invoke_task'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/application.rb:101:in `block (2 levels) in top_level'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/application.rb:101:in `each'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/application.rb:101:in `block in top_level'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/application.rb:110:in `run_with_threads'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/application.rb:95:in `top_level'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/application.rb:73:in `block in run'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/application.rb:160:in `standard_exception_handling'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/application.rb:70:in `run'
Tasks: TOP => environment
(See full trace by running task with --trace)
rake aborted!
Command failed with status (1): [/Users/matt/.rvm/rubies/ruby-1.9.3-p286/bi...]
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/file_utils.rb:53:in `block in create_shell_runner'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/file_utils.rb:45:in `call'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/file_utils.rb:45:in `sh'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/file_utils_ext.rb:37:in `sh'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/file_utils.rb:80:in `ruby'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/file_utils_ext.rb:37:in `ruby'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/actionpack-3.2.12/lib/sprockets/assets.rake:12:in `ruby_rake_task'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/actionpack-3.2.12/lib/sprockets/assets.rake:21:in `invoke_or_reboot_rake_task'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/actionpack-3.2.12/lib/sprockets/assets.rake:29:in `block (2 levels) in <top (required)>'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/task.rb:246:in `call'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/task.rb:246:in `block in execute'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/task.rb:241:in `each'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/task.rb:241:in `execute'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/task.rb:184:in `block in invoke_with_call_chain'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/task.rb:177:in `invoke_with_call_chain'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/task.rb:170:in `invoke'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/application.rb:143:in `invoke_task'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/application.rb:101:in `block (2 levels) in top_level'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/application.rb:101:in `each'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/application.rb:101:in `block in top_level'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/application.rb:110:in `run_with_threads'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/application.rb:95:in `top_level'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/application.rb:73:in `block in run'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/application.rb:160:in `standard_exception_handling'
/Users/matt/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/application.rb:70:in `run'
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)

Sorry to hear that this is the case. I'd like to look into this. Can you confirm it's still a problem with master? If you can trace the query that's being executed when acts_as_list is being initialised that would be helpful. I assume that's what's happening?

I haven't faced this problem before, and I have has a bunch of apps on Heroku with acts_as_list.  Definitely need some more information to understand what's happening.

Closing for now. @mattheworiordan, please feel free to contribute further if it's still a problem for you.

I'm running into the same issue when building a docker container for a solidus app where the database connection is not available when rake assets:precompileis run.
The acts_as_list gem accesses the active record connection in a class method which triggers a database connection:
https://github.com/swanandp/acts_as_list/blob/v0.8.0/lib/acts_as_list/active_record/acts/list.rb#L77
quoted_position_column = connection.quote_column_name(configuration[:column])

Looking at the master branch this method is now lazily evaluated, so it might be fixed in the next version:
https://github.com/swanandp/acts_as_list/blob/master/lib/acts_as_list/active_record/acts/list.rb#L112
@brendon Could you re-open this issue until a fixed version is released?

Reading the code on master more carefully, it doesn't seem to be fixed, because those methods are still called inside the class method duringdefine_singleton_method calls.

That's interesting. Are you able to test it out and let me know? Perhaps there's a way to quote without using the method via the connection?

I switched to master and it seems to work, from reading the code I would have thought that the methods would still be called when the acts_as_list class method is invoked.

Thanks @felixbuenemann, I think that one is only evaluated when the method is actually called. It's certainly difficult to read in its current state.
I'll close this since the latest seems to support what you're after. I'll release a new version now too.


Strings view does not load all strings sometimes

Binary Ninja Version
2.4.3108-dev
Describe the bug
When loading a bndb saved for a larger binary (150mb+), only a few strings appear in the strings view or in bv.get_strings. The only way I've noticed to get them to appear is to reanalyze the entire binary, which can take a long time on these larger binaries, or press "a" on a string. Pressing "a" on a string seems to analyze around 2097000 byte chunks at a time, so to get all the strings to load, I have to constantly press "a" on a string a ton of times. After saving the bndb again with all the strings loaded and reopening the bndb, the strings are gone again and I have to repeat the process.
To Reproduce
Steps to reproduce the behavior:

Open a bndb of a large binary
View strings window and see only a fraction of the strings loaded
Press "a" on a string and see a chunk of strings added to the strings view, but not all of them

Expected behavior
When opening a bndb, all the strings in the binary should appear in the strings window
Version and Platform (required):

Binary Ninja: Dev 2.4.3108
OS: Ubuntu Linux
Version  20.04

thanks I think I have a fix for this issue. Hopefully it will be pushed out today.

Fixed in 2.5.3190

I am seeing this same bug on 3.0.3233 for small binaries.


Improve 11 question explanation

In answer mentioned:

If you want to add a feature to all objects at once, you have to use the prototype instead.

And it looks good, but

You can't add properties to a constructor like you can with regular objects

To my mind it's not correct because function is an object and you can use this approach to create a static method.
For example
new Date() // Date here is a constructor function
Date.now() // static method on this constructor function

👍  for what @ArtyomBobrovnik says above, though I think it's just a phrasing issue. Instead something like this might be more precise?
You can add properties or methods to a constructor function, but they won't be available on instances of objects returned by calling that constructor function with the `new` operator.

Similarly, I was thinking this line -- If you want to add a feature to all objects at once... -- could be reworked to read something like:
If you'd like to make a property or method available to all instances created by a constructor function...

Lastly, I'm wondering if the issue about wasted memory is the most relevant way to explore the tradeoff between a static and instance methods in this example because the example doesn't address the scoping issue of the this and that calling Person.getFullName() would never be correct anyway. Perhaps it's not a huge deal but an example like the following that introduces adding the method to the constructor function and instance  might keep the problem free from the this binding issue?
function Person(firstName, lastName) {
  this.firstName = firstName;
  this.lastName = lastName;
}

const member = new Person('Lydia', 'Hallie');
member.fullName = (member) => Person.getFullName(member);
Person.getFullName = function(person) {
  return `${person.firstName} ${person.lastName}`;
};

console.log(member.getFullName());


Add editor copy keybinding

Requires space-wizards/RobustToolbox/pull/2852
:cl:

add: Added a mapping/editor keybinding that starts placing the entity or tile that the mouse is currently hovering over. Defaults to shift+middle-mouse

isnt shift+mousemiddle point?

isnt shift+mousemiddle point?

.... yes it is....
My middle mouse is broken ATM so I tested locally with a completely different key binding. Uhh... what would be good?


Fixed CTA order - battle command needs to be before battle orders. Added several new assets for white/gray bows, swords and grandfather.

This seems like a good change, but it looks like you included some other changes/files that are not related to this one. I would bet that aeon will want you to split those changes out from the CTA change.

This seems like a good change, but it looks like you included some other changes/files that are not related to this one. I would bet that aeon will want you to split those changes out from the CTA change.

Neither of the changes changes the already existing logic, but I could split them up if needed.

I think swapping keybinds around doesn't make much sense. Instead I'd suggest to make sure that bot is doing the right sequence. And think it does. E.g. It get's Battle Command first to get +1 and then Battle Orders to benefit from Battle Command that he casted before.
So I'd remove CTA portion from here and rename PR to reflect the other changes. That's my 2 cents

I think swapping keybinds around doesn't make much sense. Instead I'd suggest to make sure that bot is doing the right sequence. And think it does. E.g. It get's Battle Command first to get +1 and then Battle Orders to benefit from Battle Command that he casted before.
So I'd remove CTA portion from here and rename PR to reflect the other changes. That's my 2 cents

Honestly If the logic is already fixed (which it is), it's best to have the keybindings following that.
It's a QoL change indeed, but it needs to be there imo.

No reply for ~48 hours, closing for now. Will reopen depending on interest in revising.


Specify the bugfixed git commit of nodetunes directly

What are the symptoms of airplay not working? I can see devices, control volume, but cannot get audio to come out.


[Snyk] Upgrade notistack from 1.0.10 to 2.0.7

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to upgrade notistack from 1.0.10 to 2.0.7.
:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.

Warning: This is a major version upgrade, and may be a breaking change.

The recommended version is 12 versions ahead of your current version.
The recommended version was released 21 days ago, on 2022-10-15.

Release notes

Package name: notistack

2.0.7 - 2022-10-152.0.7

2.0.6 - 2022-10-152.0.6

2.0.5 - 2022-05-122.0.5

2.0.4 - 2022-04-102.0.4

2.0.3 - 2021-10-31

2.0.2 - 2021-09-26

2.0.1-alpha.5 - 2021-08-22

2.0.1-alpha.4 - 2021-04-25

2.0.1-alpha.3 - 2021-04-25

2.0.1-alpha.2 - 2021-04-23

2.0.1-alpha.1 - 2021-04-22

2.0.1-alpha.0 - 2021-04-22

1.0.10 - 2021-07-26

    from notistack GitHub release notes

Commit messages

Package name: notistack

a2c20bc 2.0.7
ea744c0 Minor fix. Update Changelog
b82ab20 2.0.6
bfbc828 Update changelog
f8a44b1 Fix TypeScript cannot be used as a JSX constructor (#519)
d9119b3 Update banner image to be served from doc website
5dabb61 Update URLS
665c353 Add custom content example
f2e2369 Release v2.0.5 (#491)
59a31f6 Update TransitionComponent types (#474)
872c076 Update CHANGELOG
65b0bec 2.0.4
2653059 Update CHANGELOG
64b7661 Support React 18 (#482)
bb06c67 Ensure variant classes are passed to SnackbarContent (#451)
642958b Add CodeSee architecture diagram workflow to repository
2160b28 Publish MUI v5 compatibility as stable release (#437)

Compare

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs

See https://github.com/equinor/witsml-explorer/pull/689
Using Mui4 and should not update yet due to switching over to EDS


[20.09] rspamd: 2.5 -> 2.6

Motivation for this change
Backport https://github.com/NixOS/nixpkgs/pull/100207
rspamadm configtest segfaults on 2.5.
https://github.com/rspamd/rspamd/issues/3475
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

@mweinelt Does the test you enable there exist in 20.09? Why would it exist but not be enabled?

It exists, it was only added as passthru recently.

Result of nixpkgs-review pr 103139 1

1 package built:

rspamd

I ran the tests locally. They pass.


[Fix] solution for some memory leaks

added some missing detaches in activities
changed loading spinner lifecycle to keep animation instances.

We still have some leaks related to anonymous inner functions that point to the context.

Codecov Report

:exclamation: No coverage uploaded for pull request base (develop@57bd633). Click here to learn what that means.
The diff coverage is 81.48%.

@@            Coverage Diff             @@
##             develop     #867   +/-   ##
==========================================
  Coverage           ?   31.64%
==========================================
  Files              ?      326
  Lines              ?    17388
  Branches           ?     1555
==========================================
  Hits               ?     5503
  Misses             ?    11228
  Partials           ?      657

Impacted Files
Coverage Δ

...ain/java/com/mercadopago/GuessingCardActivity.java
0% <0%> (ø)

...rc/main/java/com/mercadopago/CheckoutActivity.java
0% <0%> (ø)

...c/main/java/com/mercadopago/CardVaultActivity.java
65.34% <100%> (ø)

...ava/com/mercadopago/customviews/MPProgressBar.java
89.65% <80%> (ø)

.../com/mercadopago/customviews/MPLoadingSpinner.java
78.88% <92.3%> (ø)

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 57bd633...6511a48. Read the comment docs.


om.datasets.put(), fast_insert can result in ServerSelectionTimeoutError

Currently*

inserting a dataframe via om.datasets.put() and SSL mongodb server connection
may result in "ServerSelectionTimeoutError: connection closed, Timeout: 2.5s, Topology Description: ..."
exception
the error does not occur when using joblib.parallel's multiprocessing backend, i.e.
the problem only occurs with the joblib.parallel Loky backend

Workaround

fix using multiprocessing backend

Expected

make PickableCollection work with loki backend

Reproduce
does not work:
from joblib.parallel import Parallel, delayed

def process2(job):
    obj = coll.insert(dict(foo=1))
    return f'foo {obj}'

with Parallel(backend='loky', n_jobs=2, batch_size=1) as p:
    jobs = zip(range(100), repeat(collection))
    runner = delayed(process2)
    p(runner(j) for j in jobs)

works:
with Parallel(backend='multiprocessing', n_jobs=2, batch_size=1) as p:
    jobs = zip(range(100), repeat(collection))
    runner = delayed(process2)
    p(runner(j) for j in jobs)

It turns out the ultimate roote cause is with omegaml.mongoshim, where we don't
pass the ssl=True flag unless it is in om.defaults.OMEGA_MONGO_SSL_KWARGS
The latter is initialised differently when being called using multiprocessing,
causing it not to retrieve the same om.defaults (this is not a problem in the
context of fast_insert as we're only interested in the mongo connection).

fixed by ensuring MongoClient gets the SSL flag


Version warning error

:: Cyclone 0.5-6 needs at least Pd 0.51-3 (you have 0.52-1, please upgrade!)

The wording seems to suggest "upgrading“ Pd to an older version.
The real problem is that the cyclone version is too old for the Pd version (but the message doesn't say that).

it's been fixed in 0.6-0


Port-Forward Enhancements

What would you like to be added:
Better port-forwarding tools.  It's common to open multiple port-forwards to multiple pods. In the current implementation, there is no way to know if a pod has an active forward. Also, if a forward needs to be stopped, the whole Lens App needs restarting. Lastly, not all forwards are HTTP related, opening a browser is convenient for most, however a customize button to allow mapping from host to local and suppress the browser opening would be productive.
Why is this needed:
The Lens App has become a daily driver for K8s management, however, regular usage of port forwards to perform tasks is cumbersome. Often reverting to command line to perform multiple port forwards.  Adding a bit of instrumentation to the UI, showing active forwards, enable stopping a forward, and customization of a forward, would be hugely beneficial.
Environment you are Lens application on:

Kubernetes distribution: Common to all
Desktop OS: Common to all

related: #2282, #2230, #542, #541

Bump 👍🏻 Our Development teams are using Lens + K9S, where k9S use case is mostly for port-forwarding. Having everything in one tool will be very helpful.