Random messages in terminal: mv: cannot move...: No such file or directory

Occasionally, I randomly get the following message on my terminal:
mv: cannot move '/home/protist/.z.24161' to '/home/protist/.z': No such file or directory

This doesn't necessarily occur after cd-ing; most recently it occurred after ls. There is a file at ~/.z, with user write/read permissions, and recently modified, presumably by z.
I'm not sure if relevant, but I can also see numerous other files with a similar name.
$ ls -al ~/.z{,.*}
-rw-r--r-- 1 protist protist    33436 Nov 20 19:32 .z
-rw-r--r-- 1 protist protist    19561 Aug 15  2017 .z.10923
-rw-r--r-- 1 protist protist        0 Feb  8  2018 .z.11675
-rw-r--r-- 1 protist protist    19561 Aug 15  2017 .z.16124
-rw-r--r-- 1 protist protist    25188 Feb 12  2018 .z.23515
-rw-r--r-- 1 protist protist        0 Feb  8  2018 .z.25040
-rw-r--r-- 1 protist protist    25188 Feb 12  2018 .z.29510
-rw-r--r-- 1 protist protist        0 Feb  8  2018 .z.5317
-rw-r--r-- 1 protist protist    19561 Aug 15  2017 .z.6607

I'm running the latest version, z 1.11 with zsh 5.7.1 on Arch Linux.
EDIT:
I got a different error after another ls.
mv: cannot stat '/home/protist/.z.3141': No such file or directory

It looks like the shell can't find the source file ~/.z.3141, which is true; it doesn't exist. In contrast the original error reported above (i.e. mv: cannot move 'foo' to 'bar': No such file or directory) appears when the target directory cannot be found (and perhaps other situations?).

Same issue. On multiple devices. Also using arch + zsh with same versions as Protist.

After this bug eating my half-typed command once too often, I've moved to z.lua, which doesn't appear to have this bug (yet), seems a lot more powerful ("enhanced matching" is great!), and is still in active development.

any updates on this bug?

For me it is fixed a few updates ago. It was some racing condition that they resolved. You can reliably reproduce by holding the  key in a pre-fix version.
see: https://github.com/rupa/z/pull/247


[RC3][Daito] Release version in the installer should be configurable

Describe the bug
A clear and concise description of what the bug is.
Currently the installer files need to be updated for the release version. This leads to dependency on the other code merges and release of dependent projects.
This value should be configurable. Either through the command line or some other convenient mechanism
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error
For releasing a version, the installer files need to be updated, this leads to a dependency of availability of other binaries as well as the code merges
Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

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

Smartphone (please complete the following information):

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

Additional context
Add any other context about the problem here.

This does not seems to be an issue. Ansible supports command line variable passing (using -e or --extra-vars) which override internal keywords/variables. (Eg. $ ansible-playbook --extra-vars release_version=v1.0.0 ... )


Excuse me, What does the parameter number_of_transformer_layers of TEDPolicy mean? thank you very much!

Rasa Open Source version
3.1.2
Rasa SDK version
3.1.2
Python version
3.8
What operating system are you using?
Linux
What happened?
Excuse me, What does the parameter number_of_transformer_layers of TEDPolicy mean? thank you very much! Its default value is: text: 1, action_text: 1, label_action_text: 1, dialogue: 1，But I don't know at all what is the difference between action_text and label_action_text, It's so hard to understand,I am very anxious,thank you very much!
Command / Request
No response
Relevant log output
No response

thanks for the question, @whrs1 . For questions, please ask on the forum - we only use github issues for bugs and feature requests. FYI there is a paper about the TEDPolicy.


create zip file failed with append mode

use std::fs::OpenOptions;

fn main() {
    let mut zip = zip::ZipWriter::new(
        OpenOptions::new()
            .append(true)
            .create(true)
            .open("test.zip")
            .unwrap(),
    );

    let options =
        zip::write::FileOptions::default().compression_method(zip::CompressionMethod::Stored);
    zip.start_file("hello_world.txt", options).unwrap();

    zip.finish().unwrap();
}

as title, if we create a zip with append mode, it will fail to be unzip

it seems like some zero bytes  were not cleared.

I'm sure the file is new created, not run multile times.

I am pretty sure the append(true) on the file is the culprit here. Can you try without ?

Try changing it to write(true); that's be more convenient since it will overwrite any previous version.


SPFX List view command set not working on page refresh / page hard refresh (ctrl+F5). But working from left navigation bar.

Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Developer environment
Windows
What browser(s) / client(s) have you tested

[ ] 💥 Internet Explorer
[X] 💥 Microsoft Edge
[X] 💥 Google Chrome
[ ] 💥 FireFox
[ ] 💥 Safari
[ ] mobile (iOS/iPadOS)
[ ] mobile (Android)
[ ] not applicable
[ ] other (enter in the "Additional environment details" area below)

Additional environment details

browser version

Microsoft Edge = 90.0.818.62

Chrome = 90.0.4430.212

SPFx version = 1.9.1

Node.js version - 10.18.0

etc

package.txt
Describe the bug / error
The list view command set on the list command bar does not appear when we do hard refresh.
It works when the list is opened from the left or the top navigation bar.
https://user-images.githubusercontent.com/54984424/118278943-2de00300-b4e8-11eb-8fad-ede7c153466f.mp4
The same solution works well in the other tenant.
Based on some research it has been found that Microsoft has update the tenant on 7-May-2021 , while the other tenant updates are not there.

the page-context also not refreshed.
Steps to reproduce
Steps to reproduce error.

Upload List view command set solution in the appcatalog.
Install the uploaded app in site.
Open the list from site content.
The command set will not be visible.
Even if you do hard refresh on that page command set will no visible.

Steps to make it working.

Upload List view command set solution in the appcatalog.
Install the uploaded app in site.
Open the list from left / top navigation menu.
The command will be visible.

Expected behavior
Command set should be visible on hard refresh.

We experience the exact same problem. We run on spfx-version 1.10.0 and I've also tried to run in spfx-version 1.11.0 but with same problem. Any progress with this one?


[WIP] miq_queue.miq_callback to support multiple callbacks

To allow multiple callbacks to a queued item.
(We can have each callback to enqueue another item to allow multiple workers to process these work items.)

@miq-bot add_label wip

It's an interesting idea I've long thought about, but I'm curious how you are planning to use these.
cc @agrare

@Fryguy the thought was we can use the callback to do any of the post-refresh work that currently requires the sync refresh (e.g.: https://github.com/ManageIQ/manageiq-content/blob/master/content/automate/ManageIQ/System/Event/EmsEvent/EVM.class/reconfigvm_task_complete.yaml#L12-L14)
Currently if the refresh task gets merged with another there could be only one callback, if we could append callbacks on queue merge then we can get away from waiting for the refresh to execute some action.

@Fryguy e.g. in the case of creating credential, we can have 1 callback to notify the user, and another one to e.g. proceed to the creation of the repo

I guess my concern with this has always been that we need to move towards making MiqQueue less complicated so we can move towards using proper queueing systems, and this makes it more complicated.  It sounds like the only reason we need this is because MiqQueue#merge squeezes items together, and MiqQueue.merge is one of those things we desperately want to get rid of.  If we got rid of that for EmsRefresh and made each EmsRefresh request independent, then you don't need multiple callbacks per queue item, because each individual item could have the single callback.  Then you'd just need to change the refresh worker to fetch all of the queue items in a single shot, which might be better.  It also gives us the benefit of being able to put other work items in between like that RHEV "create an empty VM" thing.

@Fryguy e.g. in the case of creating credential, we can have 1 callback to notify the user, and another one to e.g. proceed to the creation of the repo once the refresh finishes (and we now have the new credential in vmdb)

This is the exact reason to NOT use multiple callbacks as you are now implementing a state machine via the queue.  If you want state machines, use an MiqTask or a Job.

This is the exact reason to NOT use multiple callbacks as you are now implementing a state machine via the queue. If you want state machines, use an MiqTask or a Job.

haha, yeah, after writing last comment, I had the same thought that that particular use case is like a state machine.
However, I don't agree this particular PR will make what we have more complicated -- the moment callback is introduced, the effect is there, 1 or multiple is essentially the same.
And yes, the need for this comes from the queue_merge squashing callbacks into 1.  If we have other approaches that can solve this problem, we don't need this. I'm closing this.


Performance monitoring: return time spent in the engine

The idea is that the engine returns how many ms it spent on the query and returns that to Photon.
Then in Photon it will be easier to know what time is spent / where, probably the transport layer.
Does that sounds good to you @janpio?

Yes, that sounds pretty much what we talked about. @timsuchanek had a few suggestions where we could put it, if I remember correctly some data object where this could become a new property or something like that.

(Dom and Julius were adamant that data object would not be a good place, but suggested a header instead.)


Updated README.md to match functionality

Just stumbled across this little issue when I first initiated my own project.
So maybe this would help others to get started faster. 😉

the edits you made were specific to using multiple files, if we need to add documentation for multiple files it should be differentiated from a single file, try to keep the old edits and add a different section for support for multiple files

@NyllRE for me at least the README did not work the way it was before.  The server always throws an error that "file" is not defined. Furthermore as I have seen in the debugger the frontend sends an array "of files" even if it is only one. After I changed the server side to handle it as an array it worked for me, but not before.


Oh Mac OS Pleaseeee

:-)

I have no Apple products myself, so I can't make the Mac version myself. Any help with this project by a Mac programmer would be much appreciated.


Suitable camera lens

First of all, great project!
Currently I'm running a similar setup as the one shown in your youtube video (using the same spectroscope).
I've tried a random camera lens I already had for the Raspberry HQ cam, but the resulting images are really blurry.
I don't know much about camera lenses, but I think you would need a lens with a very short focus length
to get an accurate image. Do you happen to know the technical specs of the lens you used? Much appreciated!

I used a zoom lens with the following specs:
1/3" 9-22mm IR Sensitive Manual Zoom M12 Mount CCTV Lens F1.6
I zoom almost all of the way in, and focus. I suspect the focal length is maybe as high as 18mm. I have fixed focus lenses on order, that I will be testing when they arrive.

Thank you for your response. I ordered a similar lens based on the specs you posted (it will be delivered from china, so this will take a while). I will post some results once I get it in my hands!

My spectroscope arrived last week, and i'm waiting on some lenses to arrive..
DO we have to use a Raspberry PI camera..  Could i use a usb camera?  It might make for a lot more options..
I have one of these arriving, and have both the 2.8 - 12mm and the 5-50mm lensess..      A lot of pixels and hopefully one of the leneses works really well.
http://www.elpcctv.com/elp-sony-imx317-4k-uvc-usb-webcam-with-cs-550mm-varifocal-lens-elpusb4khdr01mfv-550mm-p-182.html

You can use any USB camera (I did not use the picam library, just the standard video lib). So long as it is the first camera on the system, it will be fine.


CME Error: memory full when using MQTT

So I've just gotten started using the MQTT client on the ESP32 with the SARA-R510M8S and I seem to be running into 'memory full' issues on the radio. This causes incoming messages to be delayed, and sometimes causes outgoing messages to fail. For reference, I'm using MQTT over TLS to try to connect to AWS IoT.
I'm not doing anything else with the radio (I was calling uGnssPosGet over and over in another thread to get a constant position, which is my end goal, but even commenting that out and just triggering this publish to occur over the command line with dummy data still causes this issue).
Any thoughts on what might be the issue / what might fix it? Some logs are below.
Memory full on receive:
AT+UMQTTC=9,1,0,"$aws/things/sara-tracker/shadow/update",100
>{"state":{"reported":{"gnss":{"latitude":12.345600,"longitude":-23.448000}}},"clientToken":"000001"}
OK

+UUMQTTC: 9,1

+UUMQTTC: 6,1
The broker says there are 1 message(s) unread.
I (51955) SHADOW: Published!

AT+UMQTTC=6,1

+CME ERROR: memory full
AT+UMQTTER

+UMQTTER: 13,0

OK
U_CELL_MQTT: error codes 13, 0.
AT+UMQTTC=6,1

+CME ERROR: memory full
AT+UMQTTER

+UMQTTER: 13,0

OK
U_CELL_MQTT: error codes 13, 0.
AT+UMQTTC=6,1

+CME ERROR: memory full
AT+UMQTTER

+UMQTTER: 13,0

OK
U_CELL_MQTT: error codes 13, 0.
AT+UMQTTC=6,1

+UMQTTC: 6,1,286,47,"$aws/things/sara-tracker/shadow/update/accepted",239,"{"state":{"reported":{"gnss":{"latitude":12.3456,"longitude":-23.448}}},"metadata":{"reported":{"gnss":{"latitude":{"timestamp":1639522422},"longitude":{"timestamp":1639522422}}}},"version":44,"timestamp":1639522422,"clientToken":"000001"}"

OK
I (54455) SHADOW: Got message from topic $aws/things/sara-tracker/shadow/update/accepted: {"state":{"reported":{"gnss":{"latitude":12.3456,"longitude":-23.448}}},"metadata":{"reported":{"gnss":{"latitude":{"timestamp":1639522422},"longitude":{"timestamp":1639522422}}}},"version":44,"timestamp":1639522422,"clientToken":"000001"}

Memory full on send:
AT+UMQTTC=9,1,0,"$aws/things/sara-tracker/shadow/update",100
+CME ERROR: memory full
AT+UMQTTER

+UMQTTER: 13,0

OK
U_CELL_MQTT: error codes 13, 0.
W (170145) SHADOW: Unable to publish our message "{"state":{"reported":{"gnss":{"latitude":12.345600,"longitude":-23.448000}}},"clientToken":"000006"}"!

Hi again: that's very weird indeed, not a +CME ERROR I've ever seen from a module before, which I know is not what you want to hear.  Let me check internally who knows about this sort of thing.
Could you post here the response to ATI9 (should pop out in the AT log near power-on)?

It might also be worth posting a full AT log, from power up, just to see if there's anything ubxlib might be doing to cause such a pile-up in the module.  Obviously delete any MQTT credentials etc. from such a log.

I've seen this before when there have been a lot of MQTT messages arriving in bursts.
What it the message reception rate typically? Do the messages come down in bursts?

Hi Rob, thanks once more for the help :)
Here's that full log (with a few application log entries mixed in there). Looking at it, I think it's my application logic causing it to repeatedly get that 'memory full' error (I call uMqttClientGetUnread after every uMqttClientMessageRead regardless of return code in a loop until there are no more unread messages), but it's kind of amazing that it eventually yields the message that was pending.

Log
U_CELL: initialising with enable power pin not connected, PWR_ON pin 26 (0x1a) (and is toggled from 0 to 1) and VInt pin 33 (0x21) (and is 0 when module is on).
I (435) gpio: GPIO[26]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (445) gpio: GPIO[33]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
U_CELL_PWR: powering on, module is already on.
ATE0

OK
AT+CMEE=2

OK
ATI9

02.06,A00.01

OK
AT&C1

OK
AT&D0

OK
AT+CPSMS=0

OK
AT&K0

OK
AT+CFUN=0

OK
U_GNSS: initialising with ENABLE_POWER pin not connected, transport type ubx AT.
ATI

SARA-R510M8S-00B-01

OK
I (1755) UBX: Network handle is 256
I (1755) UBX: GNSS handle is 1025
Bringing up the network...
U_CELL_PWR: powering on, module is already on.
ATE0

OK
AT+CMEE=2

OK
ATI9

02.06,A00.01

OK
AT&C1

OK
AT&D0

OK
AT+CPSMS=0

OK
AT&K0

OK
AT+CFUN=0

OK
U_CELL_NET: preparing to register/connect...
AT+CREG=2

OK
AT+CGREG=2

OK
AT+CEREG=2

OK
AT+CIMI

310260944977183

OK
AT+CIMI

310260944977183

OK
U_CELL_NET: APN from database is "epc.tmobile.com".
AT+CGDCONT=1,"IP","epc.tmobile.com"

OK
U_CELL_NET: setting automatic network selection mode...
AT+COPS?

+COPS: 0

OK
AT+CFUN=1

OK
AT+CREG?

+CREG: 2,0

OK
0: NReg
AT+CGREG?

+CGREG: 2,4

OK
0: OoC
AT+CEREG?

+CEREG: 2,0

OK
0: NReg
AT+CREG?

+CREG: 2,0

OK
0: NReg
AT+CGREG?

+CGREG: 2,4

OK
0: OoC
AT+CEREG?

+CEREG: 2,0

OK
0: NReg

+CREG: 6,"5406","00c59105",7

+CEREG: 1,"5406","00c59105",7
7: RegS
7: RegH
AT+COPS=3,0

OK
AT+COPS?

+COPS: 0,0,"Red Pocket",7

OK
AT+CGATT?

+CGATT: 1

OK
AT+CGACT?

+CGACT: 0,0

+CGACT: 1,1

+CGACT: 3,0

OK
AT+UPSD=0,0,0

OK
AT+UPSD=0,100,1

OK
AT+UPSDA=0,3

OK

+UUPSDA: 0,"<IP_ADDRESS>"
U_CELL_NET: connected after 4 second(s).
Checking credentials...
AT+USECMNG=4,1,"ubxlib_test_client_cert"

+USECMNG: 4,1,"ubxlib_test_client_cert","--removed--"

OK
AT+USECMNG=4,2,"ubxlib_test_client_key"

+USECMNG: 4,2,"ubxlib_test_client_key","--removed--"

OK
AT+USECMNG=4,0,"ubxlib_test_server_cert"

+USECMNG: 4,0,"ubxlib_test_server_cert","--removed--"

OK
Opening connection...
AT+USECPRF=0

OK
AT+USECPRF=0,1,3

OK
AT+USECPRF=0,3,"ubxlib_test_server_cert"

OK
AT+USECPRF=0,5,"ubxlib_test_client_cert"

OK
AT+USECPRF=0,6,"ubxlib_test_client_key"

OK
AT+USECPRF=0,0,0

OK
AT+USECPRF=0,10,"--removed--.iot.us-east-1.amazonaws.com"

OK
Connecting to MQTT broker "--removed--.iot.us-east-1.amazonaws.com:8883"...
AT+UMQTT=2,"--removed--.iot.us-east-1.amazonaws.com",8883

OK
MQTT Response error: 0
AT+UMQTT=11,1,0

OK
MQTT Response error: 0
U_CELL_MQTT: trying to connect...
AT+UMQTTC=1

OK
U_CELL_MQTT: waiting for response for up to 30 second(s)...

+UUMQTTC: 1,1
U_CELL_MQTT: connected after 1 second(s).
AT+UMQTTC=8,1

OK
Subscribing to topic "$aws/things/sara-tracker/test"...
AT+UMQTTC=4,1,"$aws/things/sara-tracker/shadow/update/delta"

OK

+UUMQTTC: 4,1,1,"$aws/things/sara-tracker/shadow/update/delta"
AT+UMQTTC=4,1,"$aws/things/sara-tracker/shadow/update/accepted"

OK

+UUMQTTC: 4,1,1,"$aws/things/sara-tracker/shadow/update/accepted"
AT+UMQTTC=4,1,"$aws/things/sara-tracker/shadow/update/rejected"

OK

+UUMQTTC: 4,1,1,"$aws/things/sara-tracker/shadow/update/rejected"
Subscribing successful
AT+UMQTTC=9,1,0,"$aws/things/sara-tracker/shadow/update",100

>{"state":{"reported":{"gnss":{"latitude":12.345600,"longitude":-23.448000}}},"clientToken":"000001"}
OK

+UUMQTTC: 9,1

+UUMQTTC: 6,1
The broker says there are 1 message(s) unread.
I (22035) SHADOW: Publish successful!

AT+UMQTTC=6,1

+CME ERROR: memory full
AT+UMQTTER

+UMQTTER: 13,0

OK
U_CELL_MQTT: error codes 13, 0.
AT+UMQTTC=6,1

+CME ERROR: memory full
AT+UMQTTER

+UMQTTER: 13,0

OK
U_CELL_MQTT: error codes 13, 0.
AT+UMQTTC=6,1

+CME ERROR: memory full
AT+UMQTTER

+UMQTTER: 13,0

OK
U_CELL_MQTT: error codes 13, 0.
AT+UMQTTC=6,1

+UMQTTC: 6,1,286,47,"$aws/things/sara-tracker/shadow/update/accepted",239,"{"state":{"reported":{"gnss":{"latitude":12.3456,"longitude":-23.448}}},"metadata":{"reported":{"gnss":{"latitude":{"timestamp":1639561730},"longitude":{"timestamp":1639561730}}}},"version":60,"timestamp":1639561730,"clientToken":"000001"}"

OK
I (25525) SHADOW: Got message from topic $aws/things/sara-tracker/shadow/update/accepted: {"state":{"reported":{"gnss":{"latitude":12.3456,"longitude":-23.448}}},"metadata":{"reported":{"gnss":{"latitude":{"timestamp":1639561730},"longitude":{"timestamp":1639561730}}}},"version":60,"timestamp":1639561730,"clientToken":"000001"}

Hi @philwareublox, in this case it's occurring even with just one transaction - the device publishes a message, and the server sends down one message in response (the channels are dead silent otherwise). I'm currently just manually triggering messages to be sent, and it seems to occur sometimes on the first message pair, and I seem to always get this error by the third message pair, even if I wait a minute between sending messages.

@Lukanite, oh - that's not good. I don't think this is because of your application. You should be able to read out a message if there is one there or not, and continue to do this in a loop, and when one arrives, it should just pop out.
I've only seen this issue after I've received hundreds of messages.
Is this very repeatable?
Does this happen after you've powered on the module, or only after a number of hours of being on?
Are you able to take a debug trace log of the module using the USB port of the Module?

@Lukanite  Thanks for the full log of the application. Ok I can see this just happens at the start of the application. Let me get back to you...

@philwareublox It's quite repeatable; it happens basically instantly on the first few tries after powering on the module. I should be able to get to the USB on this thing; it'll just just take some soldering which requires me to get some sleep first, haha.

@philwareublox Thanks, and ditto - I'll let you know once I get a cable fashioned and hooked up to this thing.

I've got the cable made and connected now, but I seem to be having issues with not having a driver - it enumerates as "CDC-NCM Trace" with VID 1546 and PID 1223. Is this a thing I can download from somewhere?

Was fooling around with the device in the meantime and discovered that it only happens on some SIMs - my Red Pocket (T-Mobile) and Mint Mobile (T-Mobile) SIMs show this issue, but my Hologram.io (T-Mobile) SIM does not.
I'm really not sure what to think now, but hopefully that helps you out (and at least I have a bit of a workaround now, even though it still takes around 10 seconds to send/receive each transaction, is that normal?)

Drat, spoke too soon. The Hologram.io SIM also fell victim to it; completed about 7 transactions and then couldn't do any more due to 'memory full'.

Apologies for the delay in getting back to you.  Can you give me an e-mail address I can send the [Windows 10] NCM drivers to?

No worries Rob, sent you an email :).
It looks like it's something with the MQTT client itself; I've managed to hack together core_mqtt on top of the TLS socket driver here and that seems to be working, but trying to use this client either encrypted or not seems to run into this issue.

Interesting: have sent you an e-mail with the logging drivers and instructions on how to capture a log.  Would be really useful to get to the bottom of this.

Any update on the status of this? No rush, since coreMQTT is working for now but I'm curious about this odd issue.

Apologies for the delay, our internal module-related support processes now picking up on this will reply with more detail via e-mail where I can name names.

Hi again.  I think we have determined what is going on here and, in so-doing, I have learned something; I know what I can do to prevent it happening in ubxlib and what you could do to workaround the problem in the application.
The issue is that the inactivity timeout in the module (which is set with uCellMqttSetInactivityTimeout(), i.e. AT+UMQTT=10,<timeout>) is at the default value, which is 0.  Then uCellMqttSetKeepAliveOn() is called (which sends AT+UMQTTC=8,1) .  The MQTT implementation in the module takes these values literally, i.e. just before zero seconds have elapsed a ping should be sent to the server.  These outgoing MQTT ping messages pretty much immediately fill up the outgoing message queue and you get the "queues full" result.
I knew about the dangers of setting an inactivity timeout value of 0 and so I check for this and stop it being set, what I hadn't appreciated is that setting ping to "on" without setting a non-zero inactivity timeout first would be just as bad.  It so happens that in my testing I do set the inactivity timeout first and I have to leave it there because of my cross-check, so I do not see this in any of my testing, the inactivity timeout is never at 0 when I set ping to "on".
From the point of view of the application, if it called uCellMqttSetInactivityTimeout() first, then provided the inactivity timeout is set it to a minute or few, the problem should go away.  From the point of view of ubxlib, I will make a change to read the inactivity timeout before I set ping to "on"; if the inactivity timeout is 0 I will return an error instead of switching ping on.
Does all of that makes sense?  As you say, rather a good learning experience, thanks very much for raising this!

Hi Rob,
What a breakdown! That makes a lot of sense, and 'my device has turned into a ping-flooding weapon' is a fun answer to this query. I switched my application back to using ubxlib for MQTT, added the timeout (60 seconds), and was able to get 50 messages up and 50 messages down, so I do believe the workaround is working on my end. Resolution sounds good, too.
Thanks again for all of your help with this, and for enlightening me with the details! You guys are awesome, and I look forward to using more of ubxlib as it grows :)
(feel free to close this at your leisure)

Kinda scary that we can create ping-flooding weapon to be frank with you ;-(.  I will link the eventual resolution of the problem to this issue so will leave it open for now.

Now fixed and pushed here in commit 169fc35353ae05e379c51a5709125eccec0b7dad.


Implement Layers3DRender typehint annotation

Annotation already existing in: PropertyTypeHintAnnotation.kt (already there, needs to be uncommented.
Add typehint and typelimiting support in PropertyHintTypeMapper.kt

Closing in favor of #155


Add a missing return in SBPlatform::IsConnected and test

for the behavior - using the fact that the Host platform
is always present & connected.
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@327448 91177308-0d34-0410-b5e6-96231b3b80d8
(cherry picked from commit 0a70baf276505ccfe4bce1acc4017c44565011d7)

@swift-ci please test

@swift-ci please test


Resolving dependency conflicts in requirements.txt

Description:
I encountered several errors while trying to install the required packages with pip install -r requirements.txt. Initially, the installation process reported a conflict with the ray package:
INFO: pip is examining multiple versions of vllm to find compatibility with other dependencies. This process might take some time.
ERROR: Installation from requirements.txt (line 25) and ray==2.6.1 has failed due to conflicting dependencies.
The conflict arises from:
    The required version of ray is 2.6.1
    vllm 0.3.2 depends on ray version 2.9 or higher

After removing the specified version for ray, I continued to face issues:
ERROR: Installation from requirements.txt (line 20), (line 25), and pydantic==1.10.12 has failed due to conflicting dependencies.
The conflict arises from:
    The required version of pydantic is 1.10.12
    deepspeed 0.9.5 depends on pydantic version less than 2.0.0
    vllm 0.3.2 depends on pydantic version 2.0 or higher
Suggestions to resolve this issue:
1. Adjust the specified package version ranges.
2. Remove specific package versions to allow pip to resolve dependency conflicts.
ERROR: ResolutionImpossible: Further assistance can be found at https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

I would greatly appreciate it if a requirements.txt file without dependency conflicts could be provided.

We have updated the requirements. The minimal requirements for vllm inference are:
transformers==4.38.1
vllm==0.3.2
ray==2.11.0


2.0: Improve code coverage rate to 80%.

With Build 168, Coverage is 52%.
http://mobile.jenkins.couchbase.com/view/Core_Based_Builds/job/couchbase-lite-android/168/artifact/reports/reports-android-24/coverage/debug/index.html

Notes
Unavoidable miss-coverage

private constructor

public class LiteCoreBridge {
    private LiteCoreBridge(){}
}

60% - 12/13/2017
http://mobile.jenkins.couchbase.com/job/couchbase-lite-android/179/artifact/reports/reports-android-24/coverage/debug/index.html

Reached 79% for EE
Reached 76% for CE
EE

CE

Hence closing this for now.


CDNServlet does not work with scopes

I had to hack it around with my custom servlet that will parse @something/something@version correctly by doing this:
private static final String PATH_PATTERN = "/([^/]*)/([^/@]*)@?([^/]*)/(.*)";
private static final Pattern PATH_REGEXP = Pattern.compile(PATH_PATTERN);

CDNRequest request;
Matcher m = PATH_REGEXP.matcher(req.getPathInfo());
if (m.matches()  && m.group(1).startsWith("@")) {
    request = new CDNRequest(m.group(1) + "/" + m.group(2), m.group(3), m.group(4));
} else {
    request = CDNRequest.valueOf(req.getPathInfo());
}

@Enerccio , pushed to mvn as snapshot. Please check.


Fix that inspektor-gadget couldn't call api/v1/nodes/NODE_NAME/proxy/configz

The nodes/proxy resource was missing from the node-agent RBAC ClusterRole.
Overview
Adds the nodes/proxy resource to the list of resources on the node-agent ClusterRole.

Additional info
This PR: https://github.com/inspektor-gadget/inspektor-gadget/pull/2794/ in the Inspektor-gadget project ( that KubeScape seems to use for generating network policies ) - determines the container runtime socket path by querying the kubelet API at the node level. Therefore the need for the permission on nodes/proxy.
As far as I've been able to conclude signaling/setting the INSPEKTOR_GADGET_CONTAINERD_SOCKETPATH no longer does anything. At least when configuring that on the node-agent DaemonSet deployment it isn't picked up as far as I can see.
I had a good long forth and back on Slack on this matter. See this link.

How to Test

if one does NOT have this permission the following error will reveal its ugly face:

{"level":"info","ts":"2024-11-06T19:42:00Z","msg":"credentials loaded","accountLength":0}                                                 W1106 19:42:00.795912 3943570 client_config.go:659] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.                                                                                {"level":"info","ts":"2024-11-06T19:42:00Z","msg":"Detected container runtime","containerRuntime":"containerd"}                           {"level":"info","ts":"2024-11-06T19:42:00Z","msg":"starting health manager","port":7888}                                                  time="2024-11-06T19:42:00Z" level=warning msg="Runtime enricher (containerd): couldn't get current containers: listing containers with request &ListContainersRequest{Filter:nil,}: rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing: dial unix /run/containerd/containerd.sock: connect: no such file or directory\""                                                          time="2024-11-06T19:42:01Z" level=warning msg="Failed to retrieve socket path for runtime client from kubelet: getting /configz: fetching /configz from \"test-test-worker-106\": unknown (get nodes test-test-worker-106). Falling back to default container runtime"              {"level":"info","ts":"2024-11-06T19:42:03Z","msg":"main container handler started"}

Specifically:
time="2024-11-06T19:42:00Z" level=warning msg="Runtime enricher (containerd): couldn't get current containers: listing containers with request &ListContainersRequest{Filter:nil,}: rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing: dial unix /run/containerd/containerd.sock: connect: no such file or directory\""                                                          time="2024-11-06T19:42:01Z" level=warning msg="Failed to retrieve socket path for runtime client from kubelet: getting /configz: fetching /configz from \"test-test-worker-106\": unknown (get nodes test-test-worker-106). Falling back to default container runtime"

Is interesting. Where the unknown error is the tattle teller.
When working the output looks like this in X node-agent Pod.
{"level":"info","ts":"2024-11-08T13:46:02Z","msg":"Detected container runtime","containerRuntime":"containerd"}
{"level":"info","ts":"2024-11-08T13:46:02Z","msg":"starting health manager","port":7888}
time="2024-11-08T13:46:02Z" level=warning msg="Runtime enricher (containerd): couldn't get current containers: listing containers with request &ListContainersRequest{Filter:nil,}: rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing: dial unix /run/containerd/containerd.sock: connect: no such file or directory\""
time="2024-11-08T13:46:03Z" level=info msg="using the detected container runtime socket path from Kubelet's config: /run/k3s/containerd/containerd.sock"
{"level":"info","ts":"2024-11-08T13:46:05Z","msg":"main container handler started"}
{"level":"debug","ts":"2024-11-08T13:46:05Z","msg":"WatchHandler - getting existing objects from storage","resource":"seccompprofiles"}
{"level":"debug","ts":"2024-11-08T13:46:05Z","msg":"WatchHandler - starting watch","resource":"pods"}
{"level":"debug","ts":"2024-11-08T13:46:05Z","msg":"WatchHandler - starting watch","resource":"seccompprofiles"}

Now we see:

```text
time="2024-11-08T13:46:03Z" level=info msg="using the detected container runtime socket path from Kubelet's config: /run/k3s/containerd/containerd.sock"

Which is very nice :+1:

Checklist before requesting a review

[NOT_RELEVANT] My code follows the style guidelines of this project
[NOT_RELEVANT] I have commented on my code, particularly in hard-to-understand areas
[X] I have performed a self-review of my code
[NOT_RELEVANT] If it is a core feature, I have added thorough tests.
[NOT_RELEVANT] New and existing unit tests pass locally with my changes

Please open the PR against the dev branch (Unless the PR contains only documentation changes) < I can't see any dev branch. Please guide me here if there's another branch to create the PR on. Checked other PR's and they seem to use the main branch.

Can you please run the helm unittest https://github.com/kubescape/helm-charts/tree/main/charts/kubescape-operator/tests to update the snapshot?

This should be good to now as well. @amitschendel or @matthyx.
Thank you very much :+1:


Create public IPs in the json to have in the resource group at startup time

Is this a request for help?: No

Is this an ISSUE or FEATURE REQUEST? (choose one): FEATURE REQUEST

Orchestrator and version (e.g. Kubernetes, DC/OS, Swarm): Kubernetes
Anything else we need to know:
It would be really awesome if I could pre-provision static ips that I want to assign to my ingresses. This will make creating my cluster easier as I wont have to remember to create a static IP to assign to my ingress that I want to have setup in my public DNS, I can create it with the cluster.
Example Json
{
    "apiVersion": "vlabs",
    "properties": {
      "orchestratorProfile": {
        "orchestratorType": "Kubernetes",
        "orchestratorRelease": "1.10",
      },
      "AzurePublicIPPool": {
        "dnsPrefix": "mystatictestip",
        "sku": "Standard",
        "IpAddr":"static"
      },
      "AzurePublicIPPool": {
        "dnsPrefix": "mystatictestipenv2",
        "sku": "Standard",
        "IpAddr":"static"
      },
      "AzurePublicIPPool": {
        "dnsPrefix": "mystatictestipdev2",
        "sku": "Standard",
        "IpAddr":"static"
      },
    }
  }

Would also be nice to have Public IPs that are created from within the cluster to be assigned DNS names. For example, when you try to map that IP as a TrafficManager endpoint, it cannot because theres no DNS name configured;

This does work however for public IPs that are created during provisioning for API server access.

Would be cool to see this work, then maybe we could have the JSON provision a traffic manager instead and then pre-provision some service IPs to go through TM


Docs: Parts of sentences in wrong places on HTTP API pages?

For example, the following half sentence:

returns all documents of a collection near a given location

is between the example code of Simple range query and the next headline Find documents near a coordinate, but shouldn't it be below that next headline (or even further down that section)?
https://docs.arangodb.com/devel/HttpSimpleQuery/index.html
Current and devel docs (2.5/2.6)

Yes, the order seems wrong. I think that part of the documentation is generated.

I fixed that in the documentation rework without knowing this bug - closing it now ;-)


clippy: remove needless returns from code.

New rule blocks CI since validation against clippy is failing hence
remove needless returns from serve and run.
See: https://rust-lang.github.io/rust-clippy/master/index.html#needless_return

Unblocks @cevich's PR here: https://github.com/containers/aardvark-dns/pull/207

@cevich PTAL and please merge if CI goes green.

@cevich @lsm5 @mheon @baude @rhatdan merge me plz, this is blocking CI.

LGTM
@baude PTAL

@baude Merge me plz then i'll rebase other PR's

Thanks @flouthoc

/lgtm

Why does this keep breaking? We should only ever update versions via specific PRs (i.e. image updates) and not on every PR!


warn on unresolved references

Doing some performance optimisation for a large project with several contributors, I found it to be very useful to add some logging in here that warns me about unresolved references, since these need to be checked on each data change. If you have many of them it can therefore slow things down a fair bit. The problem might go away with #1740 (@martypdx?) but if not then it would be good to add some proper logging around this, with guidance for developers that helps them understand what's going on and how to optimise their apps

The problem might go away with #1740 (@martypdx?)

Yes, I changed how unresolved refs work because the runloop was trying to re-resolve every unresolved on every runloop end which, as you point out, leads to perf problems with large number of unresolved.
In 0.8 (#1740) there's the ability to add watchers to binding contexts. An unresolved reference will add a watcher to each context in its context stack that will be called if a matching key gets added to that context (first match wins, others watchers in the stack are removed once resolved). So now instead of trying all unresolved refs on every data change, a data change that adds a child to a context with a matching key notifies the unresolved with its resolved context.
Watchers are also used for pattern observers and for object hash iteration to notify on any new child add.
Been meaning to add some perf tests to measure this, would welcome good test case example for current perf problems, though I suspect adding a deeply nested section with couple hundred items in a list that each have an unresolved (or share same unresolved for that matter) would do the trick.

There is value in warning about ambiguous references, independent of the performance impact.  I've had more than a handful of cases where things didn't work quite as expected, unless my data was properly initialized, so it would be a very useful tool for debugging.  It should also make code substantially easier to hand off when working on a large team.

There's now a flag, warnAboutAmbiguity, on edge.


butano: deque::erase fixed

Issue
bn::deque::erase(first, last) can't receive end() iterator as an argument for last.
Reproduce
Code
#include <bn_core.h>
#include <bn_deque.h>
#include <bn_log.h>

int main() {
    bn::core::init();

    bn::deque<int, 8> dq;
    dq.push_back(5);
    dq.push_back(6);
    dq.push_back(7);

    dq.erase(++dq.begin(), dq.end());

    for (int elem : dq)
        BN_LOG(elem);

    while (true)
        bn::core::update();
}

Result

I've fixed it here: https://github.com/GValiente/butano/commit/cac5c8ee7353041220bdf382d7a1b17fb40a3a0c
The range check of the first iterator was wrong too.
Thanks a lot for your pull request :)


mousai: 0.4.2 -> 0.6.6

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for mousai is: "Identify any songs in seconds"
meta.homepage for mousai is: "https://github.com/SeaDve/Mousai"
meta.changelog for mousai is: ""
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

/nix/store/4v314dp6p6s7c22rwik9hw011c0a8d8k-mousai-0.6.6/bin/..mousai-wrapped-wrapped passed the binary check.

/nix/store/4v314dp6p6s7c22rwik9hw011c0a8d8k-mousai-0.6.6/bin/.mousai-wrapped passed the binary check.

/nix/store/4v314dp6p6s7c22rwik9hw011c0a8d8k-mousai-0.6.6/bin/mousai passed the binary check.

0 of 3 passed binary check by having a zero exit code.

3 of 3 passed binary check by having the new version present in output.

found 0.6.6 with grep in /nix/store/4v314dp6p6s7c22rwik9hw011c0a8d8k-mousai-0.6.6

found 0.6.6 in filename of file in /nix/store/4v314dp6p6s7c22rwik9hw011c0a8d8k-mousai-0.6.6

directory tree listing: https://gist.github.com/c49e00d35d15baafe32ebb9f5d961978

du listing: https://gist.github.com/65415325e26b37cd876215966fba02dc

Rebuild report (if merged into master) (click to expand)

4 total rebuild path(s)

1 package rebuild(s)

1 x86_64-linux rebuild(s)
1 i686-linux rebuild(s)
1 x86_64-darwin rebuild(s)
1 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
mousai

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/4v314dp6p6s7c22rwik9hw011c0a8d8k-mousai-0.6.6 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A mousai https://github.com/r-ryantm/nixpkgs/archive/f6e7b3ba0896a404714e836869464f73e139ae71.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/4v314dp6p6s7c22rwik9hw011c0a8d8k-mousai-0.6.6
ls -la /nix/store/4v314dp6p6s7c22rwik9hw011c0a8d8k-mousai-0.6.6/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

mousai

Maintainer pings
cc @dotlambda for testing.

Duplicate of:

https://github.com/NixOS/nixpkgs/pull/141314
https://github.com/NixOS/nixpkgs/pull/134155

Included in:

https://github.com/NixOS/nixpkgs/pull/141299

Will be nice to keep this in the draft state before #141299 is merged so the bot won't create similar PRs.

Will be nice to keep this in the draft state before #141299 is merged so the bot won't create similar PRs.

It would be nice to fix the bot.


Notebooks: More specific descriptions for Python configuration blade

"Configure Python for Notebooks" blade should have more specific descriptions about what is being installed.
If I select 'Use existing Python location', what am I installing here? If I select this option and click 'Install', will we overwriting my existing python3 installation with a new one? If we are just installing additional packages in this location, we should make this clear with a short description.
Is there a recommended configuration option here? If so, it could be helpful to specify "(recommended)."

Also we heard the following feedback:
ADS installs (upgrades and forcibly overwrites) a bunch of Python packages into my Python environment.
It would be useful for Python installation for ADS to take into account user's virtual environment - for example: is it possible to install on an existing Python virtual environment (out of many).

We've since made improvements to this flow, and make it much more clear which package(s) are installed, and which versions are currently installed.


Implement validation for CommandTypes and PayloadTypes

completed
https://damienbod.com/2016/09/09/asp-net-core-action-arguments-validation-using-an-actionfilter/


ANE problem for android

I trying to publish the project for android. When i try to publish i get following error:
The content cannot be loaded because there was a problem loading an extension: Error: Requested extension com.rainbowcreatures.FWEncoderANE is not supported for Windows-x86.
Is there any solution for this problem?
P.S. I am using animate cc

You are definitely not publishing your project for Android, but trying to run it in Win simulator. Make sure that project settings are correct and it's really targeting Android platform (and for debug version - it should be set up to run on a real device, not simulator).

Yeah "is not supported for Windows-x86" confirms what vorlovksy said.


This change has been tested on a polyrepo, but not on a monorepo. We have to get a hotfix out for another issue, so reverting until we can confirm that it works on a monorepo.

I guess we don't need to release this change right now, we can just cut a new backport release off of the commit before this. Closing.


Warn users when projects have unnecessary search paths

Search paths that include sections of the active environment's library are almost always unnecessary, as the completion DB should have the required info. Adding these to the search path will also attempt to load and analyze far more modules than VS can handle, leading to OOMs and other issues.
We should warn about search paths that are within the active environment's prefix path.
(Note there are some legitimate needs for this, so we shouldn't ignore them completely or be too aggressive. The cross-module analysis limit prevents too many major issues.)
(See #236 for an example of this causing trouble)

Please also warn users when there's too many search paths. I have a very big solution where Intellisense is broken (everything gives "") because there are too many files added to it, and even with empty search paths Intellisense didn't work.
I've created a new solution with the same Python Environment and just a few modules/folders and Intellisense was working. So I've proceeded to clean up all non-essential modules from the original solution (Exclude From Project) and got it working again. It's a bit annoying because then I will need another solution (or Sublime or some other editor) only to do CTRL+SHIFT+F in all files.

"Too many" is very hard to define, as it really comes down to the number of files in each referenced search path - "one" can be too many if it happens to be your Lib/ folder (which we see fairly often).
Two alternative fixes for this that may make it into 3.0 are:

revise code analysis completely to avoid these issues
generate cached DBs for search paths

Yes, I'm sorry I can't be much specific because I couldn't find a way in Solution Explorer to see how many files were added to the solution. Some random numbers:

There are 2015 .py files total inside the folders of the solution, that were all added in a flin. (4988 files in total with dlls, pyd, pyc, Maxscripts, and other formats), so it's ok to assume there were between 1800 to 2015 .py files added.
After cleaning the solution I had 763 files listed in  tag and 246 folders in  in my .pyproj

Btw, before doing the solution cleaning I've had changed HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\12.0\PythonTools\Options\Advanced@CrossModuleAnalysisLimit from 1300 to 13000, and restarted the computer, without any effect.
The biggest problem was that Intellisense was not giving any reason for failing, and I was left alone only with my the problem and my google-fu to solve it. Which brought me here and I started trying different things. If you could warn users that Intellisense is failing because there are too much references/search paths it would save a lot of time and/or the life of everybody that didn't reached this thread. ;)

Yeah, the lack of useful feedback in that case is a much bigger problem :(
We're stabilizing for our next update right now and won't be able to add it, but we'll definitely do something for our next release.

Great, thanks!

We don't need to provide feedback now because adding unnecessary search paths is no longer a problem (we use them lazily, rather than eagerly loading every .py file we can find).


motion2 isn't working with substitute.range

I am unable to type the replacement text with the following mappings/commands.
I have tried the following mappings, trying both silent=true|false, and noremap=true|false:
-- Using `.operator()`
map(
    "n",
    "s;",
    "<Cmd>lua require('substitute.range').operator({motion1 = 'iw', motion2 = 'ie'})<CR>",
    {silent = false, noremap = true}
)

-- Or use `.word()`
map(
    "n",
    "s;",
    "<Cmd>lua require('substitute.range').word({motion2 = 'ie'})<CR>",
    {silent = false, noremap = true}
)

-- Or using a Lua function
map(
    "n",
    "s;",
    function()
        return require("substitute.range").word({motion2 = "ie"})
    end,
    {silent = false, noremap = true}
)

I have also tried to run these commands with command mode, and I am still unable to type in the replacement text. (i.e., :lua require("substitute.range").word({motion2 = "ie"})).
I am able to successfully provide the replacement text after I manually enter the second motion if I use the following mappings:
map(
    "n",
    "s;",
    "<Cmd>lua require('substitute.range').operator({motion1 = 'iw'})<CR>",
    {silent = false, noremap = true}
)

map(
    "n",
    "s;",
    "<Cmd>lua require('substitute.range').word()<CR>",
    {silent = false, noremap = true}
)

Configuration
require('substitute').setup({
    yank_substituted_text = false,
    range = {
        prefix = "s",
        suffix = "",
        prompt_current_text = false,
        group_substituted_text = true,
        complete_word = true,
        confirm = false,
        register = nil
    }
})

I think I see where it comes from, it could be a caused by #55 fix

Should be fixed now, can you confirm ?


Fixed latest Vulnerabilities related to Babel/traverse

Task name: DownloadFileshareArtifacts, DownloadBuildArtifacts, AzureVmssDeployment, JenkinsDownloadArtifacts
Description: Bumped root dependency "Artifact-Engine" which fixed latest Vulnerabilities related to Babel/traverse
Documentation changes required: (Y/N)
Added unit tests: (Y/N)
Attached related issue: WI 2115038, 2115020
Checklist:

[x] Task version was bumped - please check instruction how to do it
[ ] Checked that applied changes work as expected

@v-mohithgc for the task DownloadBuildArticatsV0 i could see the package.json file is missing on this commit ? Is it already merged with some other PR ?

@v-mohithgc for the task DownloadBuildArticatsV0 i could see the package.json file is missing on this commit ? Is it already merged with some other PR ?

yes, it's been merged with previous PR, https://github.com/microsoft/azure-pipelines-tasks/pull/19266

/azp run

/azp run


Add or change users section has conflicting instructions

The "Add or change users who can manage a reservation" section specifically says "it’s best to grant permissions to the reservation order, not the reservation," but then immediately (and only) gives instructions on how to grant permissions to the reservation itself...
It might also be nice to mention that it is not possible to do this programmatically (I cannot find a way to do this, at least)

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

ID: 9be8cdc6-1a0e-25d6-8131-a56c5c0029a5
Version Independent ID: d27499e5-c8d4-2de0-273d-09f64aec3121
Content: Manage Azure Reservations
Content Source: articles/cost-management-billing/reservations/manage-reserved-vm-instance.md
Service: cost-management-billing
Sub-service: reservations
GitHub Login: @bandersmsft
Microsoft Alias: banders

@bsod99 Thank you for your feedback! We will review and update as appropriate.

@bandersmsft For visibility

@bsod99 We recently updated the article to clarify guidance about taking ownership and granting access to reservation orders. As for taking ownership of a reservation order programmatically, we don't have that documented - we're still testing our APIs.
#please-close


renderBase64('GIF') returns empty string

<EMAIL_ADDRESS>commented:

Running binary version of Phantom JS 1.7.0 under W8.
page.renderBase64('GIF') returns an empty string, although the same code works perfectly with either 'PNG' or 'JPG'.

Disclaimer:
This issue was migrated on 2013-03-15 from the project's former issue tracker on Google Code, Issue #888.
:star2:   3 people had starred this issue at the time of migration.

Ok so it's only been a few years.

Right, on investigation.
QImageWriter doesn't actually support PDF (at all), or GIF (writing).
PDF working for render() is explained in that WebPage::render has a special if case if the format is pdf/filename is pdf. This calls WebPage::renderPdf which does it's own thing.
This if statement is not reflected in renderBase64 and thus, because PDF/GIF are not in QImageWriter::supportedImageFormats():
https://github.com/ariya/phantomjs/blob/master/src/webpage.cpp#L987
It returns an empty string, which is really bad as it should really throw some sort of error here.
I'd suggest that we adapt WebPage::renderPdf for use in renderBase64 (in fact, I'm not sure why there isn't more code-reuse between WebPage::render and WebPage::renderBase64 - it seems more like an after-though), and add in a gif library (from what I've read there's a GIF plugin that's disabled by default in QT-4.8?) and add that them to the default build process.
Unfortunately I'm not super knowledgeable about building C++ stuff so unless someone could guide me in the right direction I can't do a PR or anything.

As of 2.0 we don't support rendering to GIF anymore.

PNG


Problem.solve() gives ValueError with constraints (Cannot reduce problem to symbolic QP)

I have the following code:
import numpy as np
import cvxpy as cvx

A0 = np.array([0+1j, 2-1j])
A1 = np.array([[2, -1+1j], [4-3j, -3+2j]])
Z = cvx.Variable(complex = True)
X = cvx.Variable(2)
B = np.array([2+1j, -2j])

objective = cvx.Minimize(cvx.sum_squares(A0*Z + A1@X - B))
prob = cvx.Problem(objective)
prob.solve()
>>> 1.083377539867636e-41

print(Z.value)
>>> (-0.5000000000000001-0.4999999999999998j)
print(X.value)
>>> array([1.5, 1.5])

As you can see it works perfectly fine and as expected.
However, if I put constraints on X:
constraints = [X >= 0]
prob = cvx.Problem(objective, constraints)
prob.solve()

I get the following:
Traceback (most recent call last):
  File "test.py", line 14, in <module>
    prob.solve()
  File "/users/nsr/wyngaard/miniconda3/lib/python3.7/site-packages/cvxpy/problems/problem.py", line 396, in solve
    return solve_func(self, *args, **kwargs)
  File "/users/nsr/wyngaard/miniconda3/lib/python3.7/site-packages/cvxpy/problems/problem.py", line 745, in _solve
    solver, gp, enforce_dpp)
  File "/users/nsr/wyngaard/miniconda3/lib/python3.7/site-packages/cvxpy/problems/problem.py", line 525, in get_problem_data
    data, inverse_data = solving_chain.apply(self)
  File "/users/nsr/wyngaard/miniconda3/lib/python3.7/site-packages/cvxpy/reductions/chain.py", line 71, in apply
    problem, inv = r.apply(problem)
  File "/users/nsr/wyngaard/miniconda3/lib/python3.7/site-packages/cvxpy/reductions/qp2quad_form/qp2symbolic_qp.py", line 59, in apply
    raise ValueError("Cannot reduce problem to symbolic QP")
ValueError: Cannot reduce problem to symbolic QP

I would expect constraints to work, as both values for X are greater than 0 in the solution.
I am using Ubuntu 18.04 LTS, with CVXPY 1.1.4 on Python 3.7.4.

Strange I seem to be struggling to reproduce this issue when I add the constraint and then solve I don't receive an error. Is anyone else able to reproduce?

I tried using python 3.6.9 from a non-miniconda version (still with CVXPY 1.1.4), and I still have the error.
Here is the complete code and error:
import numpy as np
import cvxpy as cvx

A0 = np.array([0+1j, 2-1j])
A1 = np.array([[2, -1+1j], [4-3j, -3+2j]])
Z = cvx.Variable(complex = True)
X = cvx.Variable(2)
B = np.array([2+1j, -2j])

objective = cvx.Minimize(cvx.sum_squares(A0*Z + A1@X - B))
prob = cvx.Problem(objective)
prob.solve()

print(Z.value)
print(X.value)

constraints = [X >= 0]
prob = cvx.Problem(objective, constraints)
prob.solve()

Output:
(-0.5000000000000001-0.4999999999999998j)
[1.5 1.5]
Traceback (most recent call last):
  File "test_128_0.1_p1/test.py", line 21, in <module>
    prob.solve()
  File "/users/nsr/wyngaard/.local/lib/python3.6/site-packages/cvxpy/problems/problem.py", line 396, in solve
    return solve_func(self, *args, **kwargs)
  File "/users/nsr/wyngaard/.local/lib/python3.6/site-packages/cvxpy/problems/problem.py", line 745, in _solve
    solver, gp, enforce_dpp)
  File "/users/nsr/wyngaard/.local/lib/python3.6/site-packages/cvxpy/problems/problem.py", line 525, in get_problem_data
    data, inverse_data = solving_chain.apply(self)
  File "/users/nsr/wyngaard/.local/lib/python3.6/site-packages/cvxpy/reductions/chain.py", line 71, in apply
    problem, inv = r.apply(problem)
  File "/users/nsr/wyngaard/.local/lib/python3.6/site-packages/cvxpy/reductions/qp2quad_form/qp2symbolic_qp.py", line 59, in apply
    raise ValueError("Cannot reduce problem to symbolic QP")
ValueError: Cannot reduce problem to symbolic QP


Inspect.Ecto.Query don't allow another defimpl

Environment

Elixir version (elixir -v): Elixir 1.12.3
Database and version (PostgreSQL 9.4, MongoDB 3.2, etc.): Postgres SQL 13.4
Ecto version (mix deps): 3.7.1 (but still possible on current version)
Database adapter and version (mix deps):
Operating system: Mac OS

Current behavior
Current implementation of  Inspect, for: Ecto.Query add the function to_string/1, which is not part of the protocol, but expected to be part of by ecto, this presents a problem when trying to redact a field
If I don't redact, my users personal info it's leaked.
insert(:user, first_name: "Jerry", last_name: "Seinfield")
insert(:user, first_name: "Jerry", last_name: "Mouse")

query =
     User
      |> where([u], u.first_name == "Jerry")
      |> Repo.one

** (Ecto.MultipleResultsError) expected at most one result but got 2 in query:

     from u0 in User,
       where: u0.first_name == "Jerry"

if I do redact with the protocol
redacted_fields = [:ssn, first_name, last_name]

defimpl Inspect, for: Ecto.Query do
  def inspect(data, opts) do
          data
          |> redact_fields(redacted_fields)
          |> Inspect.Any.inspect(opts)
  end
end

insert(:user, first_name: "Jerry", last_name: "Seinfield")
insert(:user, first_name: "Jerry", last_name: "Mouse")

query =
     User
      |> where([u], u.first_name == "Jerry")
      |> Repo.one

** (UndefinedFunctionError) function Inspect.Ecto.Query.to_string/1 is undefined or private

It will break because expected function added by the protocol, that it's removed when I reimplement the protocol
https://github.com/elixir-ecto/ecto/blob/master/lib/ecto/exceptions.ex#L36
Expected behavior
Allow the programmer to use it's  own protocol if chooses to do so.

I see some ways around this, not formatting the exception with Inspect.Ecto.Query.to_string, or making it two different protocols so the function don't get overwritten and this can be expanded and changed by the programer

@LucasPaszinski overwriting protocol definitions is not really an Elixir feature though and, if you try to do it, you will get conflicts.
In this particular case though, we support field :password, redact: true. Maybe we should try redacting it when building the inspect? Maybe there is enough metadata on the query, such as the field type, or even looking in the AST, to tell you the field and then you can check if the field is redacted or not.

Yeah apparently the query does not have the required information for this.
I end-up using  this, I don't think it's ideal but other alternatives would require a lot more work.
use Ecto.Repo

def one(query) do
  super(query)
rescue
  Ecto.MultipleResultsError -> reraise My.MultipleResultsError, "my message", __STACKTRACE__
end

Thanks for the help!


Run regression test

Run regression test
!story G17.3
!component test

This will happen when the baseline is tagged and move to server to run Ossim Batch Scritps.

The Regression Test has been run.  They are still building the 1.8.20 baseline so I will give one more run after the build has been completed.


Suggest existing organisations / teams on signup with matching non-generic domains

Is your feature request related to a problem? Please describe.
A common problem is that users incorrectly create a duplicate organisation because they haven't received / seen an invite from their team.
Describe the solution you'd like.

Allow users with non-generic emails to see existing organisations created by users with the same domain.
Allow users to request an invite to an organisation

Additional context
This was brought up as a way to improve time to first feature / improve onboarding

Hmm this would need to be designed very carefully so as not to leak information. I'm worried it would be hard to get any sort of canonical list of "non generic emails"

Maybe there is a way for us to not show the users but instead send an invite to the admin to request to join an org.

Yeah, I think we can get a good list of generic emails but it'll never be 100%. Maybe we should only suggest when the number of orgs is < than a suitable number.
It'd be worth looking at what other products do here, I've definitely seen this pattern.


APM/OTel Relationship with AWS MQ Topic

Relevant information
For any service instrumented using Otel or New Relic APM, a service map is shown in the new relic dashboard which displays the relationship between the service in question and other entities it is dependent on.
In case a service calls a MQ service of AWS, this relationship is not shown in the service map. Instead, it shows that the service calls an external entity.
With the code changes in this PR, the user can correctly see the relationship between the Otel/APM service and Amazon MQ Topic (ActiveMQ or RabbitMQ)
Checklist

[ ] I've read the guidelines and understand the acceptance criteria.
[ ] The value of the attribute marked as identifier will be unique and valid.
[ ] I've confirmed that my entity type wasn't already defined. If it is I'm providing an explanation above.

Hi @Sanjalee-NewRelic.
We will be closing PR's that haven't had any interaction in a month. If this PR is still needed please reopen the PR and answer the feedback requests.


fix: increase zindex to be greater than satellite.nvim

The satellite.nvim plugin will create a window that spans a couple of
columns at the right-hand side of each window.
They use a zindex of 40 for their windows.
Closes #7.

I'm not sure if there's a well-defined range of which zindex to use for specific use cases, but I decided to go with 50 because it's a multiple of 10 and greater than 40

If it fixes the issue then it is definitely a good zindex value 😉
Maybe we'll need to make that somewhat configurable at some point to avoid having to change that too often.
Do you think you can do that in this PR?

Do you think you can do that in this PR?

One final thing: could you update the documentation?
Maybe mention that this option is to use with care...

One final thing: could you update the documentation? Maybe mention that this option is to use with care...

Ah I missed this. Done!


Fix (Feat?): Bump is not made depending on scope convention

Hi. First of all, let me thank you for creating this module. It fits my needs in private repositories really well.
However, I use to write my commit messages like this:
fix(component/sidebar): Fixes onChange event
feat(component/header): Adds <HeaderComponent>
When using this kind of convention in the scope, the module just ignores it and doesn't bump a new release. When not using /, it works really well.

Hi Armando, this sounds like a bug. It should work if your scopes contain slashes.
We'll have to look at this. Feel free to send a PR if you like. Otherwise I (or anyone else) will get on this when possible.

@armand1m Looking at a few other libraries that parse commits (such as https://github.com/conventional-changelog/conventional-changelog/blob/master/packages/conventional-commits-parser/index.js#L9), you can see that the commit message RegEx for the scope [\w\$\.\-\* ] only allow ASCII letters & numbers & underscore ([A-Za-z0-9_]), $, ., -, *, and   (space) characters. / is not allowed.
The risk of changing the behaviour for this package is that one of our downstream dependencies (e.g. conventional-changelog) may not work with this character. And if you change to another tool and it parses your commits with / in them, it may not work either.
In short, the / should not be used in the scope of the commit message.