VkResult & vkCreateInstance

from vulkan import *

APP_SHORT_NAME = "LunarG SDK Cube Example"

# Create Instance of Application

# create application info
app_Info = VkApplicationInfo(
    sType = VK_STRUCTURE_TYPE_APPLICATION_INFO, #indicates the type of the structure
    pNext = None,
    pApplicationName = APP_SHORT_NAME,
    applicationVersion = 1,
    pEngineName = APP_SHORT_NAME,
    engineVersion = 1,
    apiVersion = VK_API_VERSION_1_0)

# create application instance info
inst_Info = VkInstanceCreateInfo(
    sType = VK_STRUCTURE_TYPE_APPLICATION_INFO,
    pNext = None,
    flags = 0,
    pApplicationInfo = app_Info,
    enabledLayerCount = 0,
    ppEnabledLayerNames = None,
    enabledExtensionCount = 0,
    ppEnabledExtensionNames = None)

#inst = VkInstance()
#res = VkResult()

# create application instance
instance = vkCreateInstance(
    pCreateInfo = inst_Info,
    pAllocator = None)#,
    #pInstance = inst)

print('vkResult(instance) = ', vkResult(instance))

Error message:
print('VkResult(instance) = ', VkResult(instance))
NameError: name 'VkResult' is not defined

Question 1:
How do I call "VkResult" in your wrapper?  VkResult is use to return the state of Vulkan function. I noticed your example.py code, VkResult is not used. How can I report the state of a Vulkan function in vulkan?
Question 2:
In the definition of instance using vkCreateInstance, what do I give to pInstance? My confusion here is instance is created so what is the purpose of pInstance. I tried inst = VkInstance() but got error message NameError: name 'VkInstance' is not defined. At the moment, I commented it out to avoid error.

Hello @sunbearc22.
Take a look at this part of the README: https://github.com/realitix/vulkan#functions
1
The wrapper handles VkResult for you. If VkResult is not VK_SUCCESS, an exception is raised.
So in your example, If you want to be sure that the function is OK:
try:
    instance = vkCreateInstance(
    pCreateInfo = inst_Info,
    pAllocator = None)#,
    #pInstance = inst)
except VkError:
    print('error')

2
Here the magic of this wrapper, functions will return what you wait for. Don't forget something, in Python, there is no pointer like in C. When you pass pInstance to the function, in the base Vulkan API, it's a pointer which is filled by the driver. You can't do that in pure Python. With CFFI, you can, and the wrapper does that for you. You don't have to know CFFI to use this wrapper, that's my rule.
When you call vkCreateInstance, you don't pass pInstance, you receive it. If the Vulkan function returns several elements, you will get a list. It's what I do in the exemple.py file.
Is this answer enough for you or do you need more informations ?

Don't forget that I am on IRC, we can speak faster by chatting

Thanks. I understood Ans 1. My bad for forgetting you wrote that in Readme. I was just about to reply with the same answer. I think it will be helpful to include your answer 1 as an example to Readme too. Just a suggestion.
For Ans 2, is there another example you can give?

Just tried IRC ##vulkan but you are offline. I am sunbearc22.

How do i see the next level of error message under VkError?
VK_ERROR_OUT_OF_{HOST, DEVICE}_MEMORY
VK_ERROR_{INITIALIZATION, MEMORY_MAP}_FAILED
VK_ERROR_DEVICE_LOST
VK_ERROR_{EXTENSION, FEATURE, LAYER}_NOT_PRESENT
VK_ERROR_INCOMPATIBLE_DRIVER
VK_ERROR_TOO_MANY_OBJECTS
VK_ERROR_FORMAT_NOT_SUPPORTED
VK_ERROR_SURFACE_LOST_KHR
VK_ERROR_OUT_OF_DATE_KHR
VK_ERROR_INCOMPATIBLE_DISPLAY_KHR
VK_ERROR_NATIVE_WINDOW_IN_USE_KHR
VK_ERROR_VALIDATION_FAILED_EXT

Is this correct?
try:
    instance = vkCreateInstance(
    pCreateInfo = inst_Info,
    pAllocator = None)#,
    #pInstance = inst)
except VkError:
    print('error')
    if VkError == VK_ERROR_INCOMPATIBLE_DRIVER:
        print("cannot find a compatible Vulkan ICD")

Sorry I was offline.
For answer 2, I can point you different example in the example.py file:
Return an object:
https://github.com/realitix/vulkan/blob/master/example/example.py#L18
https://github.com/realitix/vulkan/blob/master/example/example.py#L45
https://github.com/realitix/vulkan/blob/master/example/example.py#L200
Return a list:
https://github.com/realitix/vulkan/blob/master/example/example.py#L26
https://github.com/realitix/vulkan/blob/master/example/example.py#L30
https://github.com/realitix/vulkan/blob/master/example/example.py#L137
Return nothing:
https://github.com/realitix/vulkan/blob/master/example/example.py#L684
You can easily know if a function will return a list or an object, for example, if you look at vkCreateInstance documentation here, the last parameter is indicated as
pInstance points a VkInstance handle in which the resulting instance is returned.
It's clear it will return an object.
For vkEnumerateInstanceExtensionProperties here:
pProperties is either NULL or a pointer to an array of VkExtensionProperties structures.
It's clear it will return a list. Moreover, you don't have to bother with pPropertyCount, the wrapper do it for you. It's why you only pass the first parameter pLayerName (None in example.py)
Is it ok now or do you need more informations ?

For the last question:
You must do:
try:
    instance = vkCreateInstance(
    pCreateInfo = inst_Info,
    pAllocator = None)
except VkErrorIncompatibleDriver:
    print("cannot find a compatible Vulkan ICD")
except VkError:
    print('error')

Thanks for the Ans 2 elaboration. Helpful.
Can you clarify if my Exception code is correct for my question on Ans 1? I submitted the code with not python error but not sure if it is correct.

I have just answered above.

Sorry. Screen did not refresh so did not see your answer. So what is the purpose of VkError & VkException given that their subsets may be called directly?

It's a classic Python pattern.
The goal of the parent exception is to catch all others errors.
For example, you could want to react if there is an error (and you don't need to know the exact error)...
In well written Python script, you will always find this patter, a precise exception that extend a global exception.
It gives you much freedom.

Got it.

Can I close this issue ?

yep. Thanks.

You're welcome !


1407 logo placement

Coverage remained the same at 74.218% when pulling fa48e12aabd6fbb82cc0007e0b3e2577715ec854 on 1407-logo-placement into bd2f1f668f474b42d15d430c8e5e9b4943c23652 on master.

Coverage remained the same at 74.218% when pulling fa48e12aabd6fbb82cc0007e0b3e2577715ec854 on 1407-logo-placement into bd2f1f668f474b42d15d430c8e5e9b4943c23652 on master.


Schema updated with same version

Problem description
When edit the. policy schema after published  then republished policy, the schema was published with same version
Step to reproduce
Steps to reproduce the behavior:

create policy with a schema then published as 1.0.0
Update policy with changes in schema then republish policy
the policy is published and the updated schema will be published with same version.

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots

@samuraitruong Thank you for the ticket.
Can you please help us out in reproducing this issue. We tried it internally, but couldn't do it.
Also, can you please explain us more of how you were able to republish the policy in Guardian?
Thanks,
Prernaa


Transactional queries execution context

After #5151 current block header was introduced into every smart contract executor. For free queries (coming over HTTP) there is no current block so latest block header was used. However, it was incorrectly assumed that this is the case for all queries. For queries executed from a transaction (like from a wasm) there is a current block and it's header should be given to validate_query entrypoint instead of latest block header

context
My point was that if we introduce query validation, we need to be careful what CommonState each validate_query is based on. There are SmartContract Trigger ExecuteTransaction ExecuteInstruction Migrate ValidateQuery states and for example, by-call trigger executions seems to validate_query as ExecuteTransaction


String/bytes confusion

I was trying Wren last week and the biggest problem I had was with manipulating binary data. String.byte yields a list of numbers which is less clean from manipulating from the C API, and does not have a clean way of going back to String.
A proposal would be that a byte sequence should be either a first class object with a corresponding WREN_TYPE_BYTES that  wrenGetSlotBytes and wrenSetSlotBYtes operate on.
Alternately, the String class could be extended with byteAt() and byteCount() methods to enable
extracting bytes with byte, not codepoint granularity.
Possibly it is doable but it wasn't apparent from the docs, if so, perhaps a more explicit example in the docs.

In the documentation for String you'll find the distinctions I think you're looking for!
Let me know if that's not what you're after.
http://wren.io/modules/core/string.html

If you want to get at the raw bytes, call bytes. This returns a Sequence that ignores any UTF-8 encoding and works directly at the byte level.

1: The documentation is unclear how to go from String.bytes back to and equivalent String
2: From the c_api, they type of String.bytes is WREN_TYPE_LIST and which implies it cannot be retrieved with getSlotBytes (if it converts for you this would be nice to see in the docs)

To be clear, I was proposing that String.byteAt return a 1 byte String as opposed to a Number, or that String.bytes return a type that can be getted, and set via getSlotBytes as a char * and size_t

Ah I misunderstood, sorry about that.
For what it's worth, in my use cases I pass the string itself in (not string.bytes) and use wrenGetSlotAsBytes which I think is the intended workflow. Then setSlotAsBytes can return the same value.
It's interesting to consider a bytes type, I think the minimalist intention was that String doubles as both (since it's not zero terminated or anything, and the wrenGetSlotAsBytes asserts that it's a String too). So my assumption is that you shouldn't be passing the sequence in but the string itself.
for 1. I don't think script side there is a way back to string from bytes, aside from iterating and using String.fromCodepoint(byte) which, gives you a one byte string of the given Number. It translates the byte (0...255) as a codepoint so if you're dealing with literal raw bytes then you'll get random gibberish string but your contents should match as intended. I think a more direct fromBytes is interesting to consider.

The following code
var seq1 = [255]
System.print("Seq1 %(seq1)")
var str1 = ""
for (byte in seq1) {
    str1 = str1 + String.fromCodePoint(byte)
}
var seq2 = str1.bytes
for (byte in seq2) {
    System.print("Byte: %(byte)")
}

Yields
Seq1 [255]
Byte: 195
Byte: 191

String works fine if all of the byte manipulation is done from the C API and Wren just holds onto chunks of memory, however if you attempt to construct byte sequences from Wren or manipulate them is where the problems start. I found the mismatch between the fact that String.count counts codepoints, but that the index operator indexed from byte offsets and did not only return codepoints or only return bytes unsettling. In particular my intuition from most languages supporting an index operator is that regardless of whether String prefers to deal with codepoints or bytes, the index and count operators should be linked and that the last valid index should be count-1.
In principle it should be able to add a Byte and ByteSeq foreign class instead of the core language, but it appeared not possible to create a class instance from a foreign method. Searching online yielded some references to the WrenVM not being re-entrant, so I'm not sure if its a design decision or on the roadmap to fix.

It is a little confusing trying to use a single type for both byte arrays and textual strings, but I think that overall it's worth it to keep the language and implementation smaller.

I found the mismatch between the fact that String.count counts codepoints, but that the index operator indexed from byte offsets and did not only return codepoints or only return bytes unsettling.

I think the mental model to have is:

Most methods defined directly on Strings return opaque cursors that point back into the string. They happen to be integer byte offsets, but that's an implementation detail you shouldn't rely on. What you can rely on is that you can take the value returned by, say, indexOf() and pass it back in to the subscript operator.

If you want to work with a string as a raw byte array, call .bytes and use the resulting object.

If you want to work with a string as a sequence of code points, call .codePoints and use the result. If you want to have constant time access to individual code points and the length, call .toList on the result of that.

That leaves an open question as to what happens if you iterate a string directly, instead of calling .byte or .codePoints and iterating that. It's basically a question of what the default should be. I think most strings contain text and it's a very common bug in other languages to write code that intends to work with code points but actually works with bytes or code units. That code then breaks when given a non-ASCII string. So iterating a string defaults to walking the code points. It can still do that relatively efficiently since advancing a single UTF-8 code point at a time is straightforward.
If that's what iterating a string does, then .count should align with that, so it does.

Most methods defined directly on Strings return opaque cursors that point back into the string. They happen to be integer byte offsets, but that's an implementation detail you shouldn't rely on. What you can rely on is that you can take the value returned by, say, indexOf() and pass it back in to the subscript operator.

If indexing on a byte offset is the logical equivalent of casting a random memory address as an iterator and dereferencing it, then erroring on an index not on a code point boundary would make more clear that String index operator is dereferencing an iterator/cursor and not performing a offset based lookup more clear.  I'm not sure under what conditions a one byte string is a useful thing to return. In the case you wanted to display to the user that byte XX at offset Y is invalid utf-8, where would you have gotten offset Y from?
Having the ability to read bytes via String.bytes implies that the user might want to manipulate byte sequences inside of Wren and not via foreign functions. Currently there is no way to build arbitrary byte sequences inside of Wren programatically, they must be constructed via foreign functions. Looking at the code a String.fromBytes, or String.fromByte constructor looks like it would be the most minimal modification.


Should define something easy searchable alias for nyc

I'm recently struggling to use this library.
When I search about nyc in Google, of course it reach something related to New york city. That is not problem.
However, even I searched in "nyc code coverage" or "nyc node", most of pages are the pages related to Hackathon or conferences.
Download count of this library is currently growing, so I guess many people will struggle with this problem when many people use this library. Therefore, I suggest to define something alias for nyc.
For example, if you name code name for nyc versions like Android versions, users will write articles with these name, and articles related to nyc will be easier to be found in Google.

I found the easiest way to learn more about a particular package is to use http://npm.im/{PACKAGE_NAME}, which redirects to the npm page for that package. That page usually has a README and links to issue trackers etc.

@LimeStreem I've struggled with this as well, I like the name nyc but it does make the library hard to search for. any thoughts?
Perhaps change the README.md to:

nyc - for coverage

the name nyc, and this project, seems to be getting some traction ... I think we can stick with the short hard to search name at this point.


Enabling 'use_home_tilde' applies root color to the entire path

flexprompt.settings.use_home_tilde = true

Before and after:

Seems like just removing this break fixes it
https://github.com/chrisant996/clink-flex-prompt/blob/8a9c36b1ac6886afe41c47209526dc5efc14dbc5/flexprompt_modules.lua#L237

Is there a reason for it to be there?

Thanks for reporting this!
It should be fixed by 48f0ca7e798640ed0d90eb4f242c05a8e753c4c5.

https://github.com/chrisant996/clink-flex-prompt/commit/48f0ca7e798640ed0d90eb4f242c05a8e753c4c5 doesnt seem to work properly with subdirectories

Should be fixed now.


Firmware incompatible with Standard Extension Speaker/Mic/PTT Issue

I would like to clarify, as I have had a snotty emails saying this is a hardware problem. Which it most certainly is NOT.
I, like many ham radio operators, use a remote speak/microphone, equipped with a PTT button and red LED indicator like in the the attached photo.
A remote  speaker/mic/PTT, is a device connected by cable to the provided port on my K5(8) radio (same port as you connect your programming cable) - and remote because it is remote from the internal speaker, microphone and PTT button .
I have gone to such length, to explain this device because I continue to get emails slighting me for not explaining the equipment and issue fully.
I, like many amateur radio operators, use these devices attached to portable radio's. It allows the radio to sit on your belt while the speaker/mic/ptt is attached to your lapel, simplifying operation... ergo, the operating device (speaker/mic/ptt) is remote from the radio! OK.
This radio and speaker/mic/ptt combination works well enough with other firmware's installed on the K5(8), but not THIS firmware, ergo, it is a firmware issue and not a hardware problem... OK!
It would be really good for the standard "Baofeng" remote speak/mic/ptt would work correctly with this firmware as it did on the standard factory firmware in this K5(8) radio, and other firmware's for this radio that I have tested. Sadly the PTT fails to operate under certain conditions (if the channel is occupied, ergo: operating via a repeater, or on an open channel).
I am aware there is mention of "an issue" in the paperwork, and that the remedial compromise involves electronically altering the remote device. This then could render the device Un-serviceable on other radios, and, should I install other firmware in this K8(5) it could remain un-serviceable.
For ME, the failure of the PTT to operate as per other firmware on this K5(8), is a major draw back as it will prevent me using this radio on portable events and when out and about.
Is there any chance of a fix please.. pretty please.. with knobs on !!!!
Thank you.. Len

I do not understand... Is this a firmware/software issue ?
This Github is for EGZUMER firmware for the radio
If not than please close the issue.

It is a firmware issue, for if I chsnge firmware,  all is good.
Thank you for your input.
Len Gurney
On Tue, 30 Jan 2024, 20:22 ErikS-web, @.***> wrote:

I do not understand... Is this a firmware/software issue ?
This Github is for EGZUMER firmware for the radio
If not than please close the issue.
—
Reply to this email directly, view it on GitHub
https://github.com/egzumer/uv-k5-firmware-custom/issues/449#issuecomment-1917828098,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BFWVSN535Q4I2MUJWQ2SJHTYRFJA3AVCNFSM6AAAAABCRLGWZWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJXHAZDQMBZHA
.
You are receiving this because you authored the thread.Message ID:
@.***>

A remote speaker/mic is just that, a combined soeaker and microphone with
ptt attached to a curly cable that plugs into the side of the radio and
allows you to hsve the radio clipped to your belt, and the speaker/mic on
your lapel.
Ok?
Cheers
Len Gurney
On Tue, 30 Jan 2024, 15:49 OE1MWW, @.***> wrote:

what do you mean by 'remote speak/mic/ ? what does not work for you
Have a look here
https://github.com/egzumer/uv-k5-firmware-custom/discussions/267
http://url
—
Reply to this email directly, view it on GitHub
https://github.com/egzumer/uv-k5-firmware-custom/issues/449#issuecomment-1917306495,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BFWVSN2U26FP5JX35XTFYITYREJAZAVCNFSM6AAAAABCRLGWZWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJXGMYDMNBZGU
.
You are receiving this because you authored the thread.Message ID:
@.***>

I have edited the issue description, to clarify this is not a hardware issue but a firmware one.
Thank you.

How can this be...
And  explain what is working and what not.
You have made nothing clear at this moment !
An external microphone is nothing more than x functionalities

PTT switch
Microphone
Speaker
optional PTT-LED
optional earphone connector

What type of microphone do you using?
Make a photo and reply.
This is all hobby for us, so if you want help. Would be nice to read full information

@G8VJN, you complain about snotty email, but you did not explain your working conditions

it's a 'speaker/mic' and not a 'speak/mic' and this device is not 'remote', because it is connected to the device.
you never told us, do you use a UV-K5 or a UV-K5(8), sometimes called UV-K6
on the UV-K5(8), there is a known hardware bug. See atached required capacitor

so - what is your problem now ? what and how does it not work in your setup ?

btw, my UV-K5(8) with the shown speaker/mic as in
https://github.com/egzumer/uv-k5-firmware-custom/discussions/267#discussioncomment-7855807
works perfect with the v0.22 release - so what's up with yours ?

The issue is described.. please read again..
From: OE1MWW @.***
Sent: 01 February 2024 10:03
To: egzumer/uv-k5-firmware-custom
Cc: G8VJN; Mention
Subject: Re: [egzumer/uv-k5-firmware-custom] Firmware incompatible with Remote Speaker/Mic/PTT (Issue #449)
now you have posted 5 entries plus a picture - but still not explained what 'does not work' ?
Dont complain about 'snotty emails', a title like 'remote speak/mic' is not a common term.
There is a known hardware issue (bug), as long as squelch is open, (signal is present) you
can not PTT via the not so 'remote connected' speaker/mic - is this your problem ?
Had been discussed in another thread in detail.
—
Reply to this email directly, view it on GitHub https://github.com/egzumer/uv-k5-firmware-custom/issues/449#issuecomment-1920953113 , or unsubscribe https://github.com/notifications/unsubscribe-auth/BFWVSN66NCIBQIYOTTLI34TYRNR63AVCNFSM6AAAAABCRLGWZWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRQHE2TGMJRGM .
You are receiving this because you were mentioned.  https://github.com/notifications/beacon/BFWVSN5UJYQWZVZCSZ3LWBTYRNR63A5CNFSM6AAAAABCRLGWZWWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTSP5VRS.gif Message ID: @.***>

Please provide evidence of this, for it did not on others of my hand held radio’s
From: OE1MWW @.***
Sent: 01 February 2024 10:18
To: egzumer/uv-k5-firmware-custom
Cc: G8VJN; Mention
Subject: Re: [egzumer/uv-k5-firmware-custom] Firmware incompatible with Remote Speaker/Mic/PTT (Issue #449)
and this modified speaker/mic works on an Kenwood TH-D74E without any glitches.
Same with any other firmware on the UV-K5(8) - no problems seen.
Your 'This then could render the device Un-serviceable on other radios' is not the case.
—
Reply to this email directly, view it on GitHub https://github.com/egzumer/uv-k5-firmware-custom/issues/449#issuecomment-1920979321 , or unsubscribe https://github.com/notifications/unsubscribe-auth/BFWVSN2U7JDXKMXNWBHNX5TYRNTUZAVCNFSM6AAAAABCRLGWZWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRQHE3TSMZSGE .
You are receiving this because you were mentioned.  https://github.com/notifications/beacon/BFWVSN375VT2MGRPCMN2B5TYRNTUZA5CNFSM6AAAAABCRLGWZWWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTSP7IXS.gif Message ID: @.***>

Yes, as described in the edited issue..as for a previous discussion, I neither looked for nor saw such a discussion. I find GITHUB confusing at my age.
From: OE1MWW @.***
Sent: 01 February 2024 10:03
To: egzumer/uv-k5-firmware-custom
Cc: G8VJN; Mention
Subject: Re: [egzumer/uv-k5-firmware-custom] Firmware incompatible with Remote Speaker/Mic/PTT (Issue #449)
now you have posted 5 entries plus a picture - but still not explained what 'does not work' ?
Dont complain about 'snotty emails', a title like 'remote speak/mic' is not a common term.
There is a known hardware issue (bug), as long as squelch is open, (signal is present) you
can not PTT via the not so 'remote connected' speaker/mic - is this your problem ?
Had been discussed in another thread in detail.
—
Reply to this email directly, view it on GitHub https://github.com/egzumer/uv-k5-firmware-custom/issues/449#issuecomment-1920953113 , or unsubscribe https://github.com/notifications/unsubscribe-auth/BFWVSN66NCIBQIYOTTLI34TYRNR63AVCNFSM6AAAAABCRLGWZWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRQHE2TGMJRGM .
You are receiving this because you were mentioned.  https://github.com/notifications/beacon/BFWVSN5UJYQWZVZCSZ3LWBTYRNR63A5CNFSM6AAAAABCRLGWZWWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTSP5VRS.gif Message ID: @.***>

"Please provide evidence of this,"  no, sorry, I give up in this thread
Has been discussed in detail here https://github.com/egzumer/uv-k5-firmware-custom/discussions/267

This IS a hardware issue. You've been pointed to the cause and the solution.

Rubbish.... One should not need to modify hardware to work with firmware... I remson unsure what planet you are on... Seeing as YOU closed the issue, we will never get the correct remidial action instigated. Thanks a bunch.On 1 Feb 2024 19:29, egzumer @.***> wrote:
This IS a hardware issue. You've been pointed to the cause and the solution.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

One should not need to modify hardware to work with firmware...

This won't work on any firmware. Firmware is unable to distinguish between internal or external PTT.

Yes it does.. It worked perfectly on the stock firmware on this very K5(8)....as it works on two other radios..... You have no Idea what you are talking about sir.On 1 Feb 2024 21:02, egzumer @.***> wrote:
One should not need to modify hardware to work with firmware...
This won't work on any firmware. Firmware is unable to distinguish between internal or external PTT.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

Show a video of how it works.

And to be clear, I wan't you to show how it works on the same radio on which it doesn't work with my firmware. Flash a stock firmware back on this radio and do the test.

I wish I could flash the original firmware back on this radio.....It seems to defy my attempts to do just that. Anyway sir, my treatment on this platform for trying to raise an issue has been deplorable, and consequently I have washed my hands of this and am moving on.I applaud your inginuity and intellect, and congratulate you on your achievement, but sadly your followers are a inconsiderate and bullying bunch, yes, bullying me in writing, at least that is how it felt, nay, feels to me, and being 72 years old, I know bullying when it happens. I hope they are proud of themselves.Kindly do not bother yourself further sir, for your bully boy followers have succeeded in driving me away and I shall try some other person's genius instead, and report back on the user group forum of my treatment on this platform. I wish you well, with peace and happiness. Just try to keep the dogs under control please.Kind regards, Len Gurney ISMOn 1 Feb 2024 22:33, egzumer @.***> wrote:
And to be clear, I wan't you to show how it works on the same radio on which it doesn't work with my firmware. Flash a stock firmware back on this radio and do the test.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

You are mistaken, for when on a busy of open channel, and the external pgg does not operate, the built in pgg still does, so the firmware IS able to distinguish between the two.LenOn 1 Feb 2024 21:02, egzumer @.***> wrote:
One should not need to modify hardware to work with firmware...
This won't work on any firmware. Firmware is unable to distinguish between internal or external PTT.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

Well, one can't always be right. I'll accept my defeat this time.

Forget it sir, life is too short for regrets.
Have a good life.
L W Gurney ISM
On Thu, 1 Feb 2024, 23:10 egzumer, @.***> wrote:

Well, one can't always be right. I'll accept my defeat this time.
—
Reply to this email directly, view it on GitHub
https://github.com/egzumer/uv-k5-firmware-custom/issues/449#issuecomment-1922452848,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BFWVSN2CXLRCGLLMJOYTILLYRQOGVAVCNFSM6AAAAABCRLGWZWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRSGQ2TEOBUHA
.
You are receiving this because you were mentioned.Message ID:
@.***>

You have no Idea what you are talking about sir.

You have no idea what you are talking about, sir.
There is a DC voltage present on the external speaker output when the amplifier is turned on, and the radio only turns on the amplifier when it needs to output sound.
The GPIO for the PTT functionality must be pulled low to register as a key press, and as you can imagine having ~4V DC present on that GPIO pin might be a problem...

72 years old

Yes, and it clearly shows..
Multiple people have tried to explain that this is a hardware issue but you insist on blaming the firmware which makes absolutely no sense.
What happened is; when you tried to use the PTT on the external speaker/mic using the stock firmware the radio did not have the amplifier turned on, in other words it wasn't outputting sound which caused no problems, but when you tried to use the external PTT with the custom firmware the DC voltage present on the amplifier's output did not allow the GPIO to be pulled low.

Yes I am 72 years old, and yes it does show, in more way than one. Nevertheless  at least I have managed to learn and preserve the basics of respectful and reasoned communication.
Your insolent and antagonistic trolling is not appreciated. However the technical content is; for you have qualified better than I ever could, that this firmware differs from the original (or “stock”),  in the way that it manages the external speaker/mic port.
You explain that the “stock” firmware does NOT have the amplifier (?) turned on, whereas the “custom” (this) firmware does, so thank you,  Mr/Mrs/Ms mysterious hidden behind keyboard warrior, you have just PROVED my case, that the difference in external speaker/mic management IS the reason for the issue.
I had actually let this issue drop after an admin told me he had closed the “case”. I was comfortable with that, as I do not appreciate silly little, partially educated people  being boorish, invasive, discourteous and disrespectful. I do however, thank you for proving my case which I had dismissed as an insignificance.
Kind regards,
G8VJN
L Gurney, ISM
From: bsdinis1 @.***
Sent: 21 February 2024 00:24
To: egzumer/uv-k5-firmware-custom
Cc: G8VJN; Mention
Subject: Re: [egzumer/uv-k5-firmware-custom] Firmware incompatible with Standard Extension Speaker/Mic/PTT Issue (Issue #449)
You have no Idea what you are talking about sir.
You have no idea what you are talking about, sir.
There is a DC voltage present on the external speaker output when the amplifier is turned on, and the radio only turns on the amplifier when it needs to output sound.
The GPIO for the PTT functionality must be pulled low to register as a key press, and as you can imagine having ~4V DC present on that GPIO pin might be a problem...
72 years old
Yes, and it clearly shows..
Multiple people have tried to explain that this is a hardware issue but you insist on blaming the firmware which makes absolutely no sense.
What happened is; when you tried to use the PTT on the external speaker/mic using the stock firmware the radio did not have the amplifier turned on, in other words it wasn't outputting sound which caused no problems, but when you tried to use the external PTT with the custom firmware the DC voltage present on the amplifier's output did not allow the GPIO to be pulled low.
—
Reply to this email directly, view it on GitHub https://github.com/egzumer/uv-k5-firmware-custom/issues/449#issuecomment-1955494664 , or unsubscribe https://github.com/notifications/unsubscribe-auth/BFWVSN6DVKWMORKTMAISWFLYUU5DZAVCNFSM6AAAAABCRLGWZWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJVGQ4TINRWGQ .
You are receiving this because you were mentioned.  https://github.com/notifications/beacon/BFWVSN46ZLDG2YEKY6PO5A3YUU5DZA5CNFSM6AAAAABCRLGWZWWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTURZ5QQ.gif Message ID: @.***>

You explain that the “stock” firmware does NOT have the amplifier (?) turned on, whereas the “custom” (this) firmware does

He didn't proove anything because his description is wrong in that part. You see bulies evereywhere around you, there is something wrong with your eyesight. You're the one who is impossible to reason with, you know better no matter what.

Perhaps that comes with age, experience and, oh yes, knowledge and in this
case particularly, no ego to feed, what ho.
On Wed, 21 Feb 2024, 12:51 egzumer, @.***> wrote:

You explain that the “stock” firmware does NOT have the amplifier (?)
turned on, whereas the “custom” (this) firmware does
He didn't proove anything because his description is wrong in that part.
You see bulies evereywhere around you, there is something wrong with your
eyesight. You're the one who is impossible to reason with, you know better
no matter what.
—
Reply to this email directly, view it on GitHub
https://github.com/egzumer/uv-k5-firmware-custom/issues/449#issuecomment-1956587340,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BFWVSN4EWMNW6XIH4YA22STYUXUVRAVCNFSM6AAAAABCRLGWZWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJWGU4DOMZUGA
.
You are receiving this because you were mentioned.Message ID:
@.***>

Oh, so you came just to mentor us, thanks a lot.
what a joke 🤣🤣🤣

You explain that the “stock” firmware does NOT have the amplifier (?) turned on, whereas the “custom” (this) firmware does, so thank you, Mr/Mrs/Ms mysterious hidden behind keyboard warrior, you have just PROVED my case, that the difference in external speaker/mic management IS the reason for the issue.

Why did I even bother try to explain anything to you...?
I'll accept my defeat, there is no arguing with you... this feels like trying to explain to a monkey how a car works.

You explain that the “stock” firmware does NOT have the amplifier (?) turned on, whereas the “custom” (this) firmware does

He didn't proove anything because his description is wrong in that part. You see bulies evereywhere around you, there is something wrong with your eyesight. You're the one who is impossible to reason with, you know better no matter what.

you mean HIS description?
I definitely did not say that "the stock firmware turns on the amplifier" and that the "custom firmware does not".

you mean HIS description?
I definitely did not say that "the stock firmware turns on the amplifier" and that the "custom firmware does not".

I meant yours. You didn't say that, and actually you can be right, but a solder blob is more likely cause.


Azure Application Gateway : SOAP API  issue

I have deployed a Virtual Machine scaleset with an application gateway. VMs in VMSS has a soap api configured. Now when I download WSDL for my soap api by going through application gateway's DNS name, for soap:addresslocation tag in WSDL it gives privateip of VM as url for example https:\<IP_ADDRESS>:443\servicetag while if I access same API WSDL directly by using DNS name of VM it gives same URL in this for :  https\\servicetag.
Please tell me what is causing this behaviour.
Also while googling I found out that this could be due X-forward setting. Is there is any way to modify these settings . Also How to see what settings are been sent
MY VMs are centos with Tomcat server

What CLI command are you trying to use?

Got it resolved this was happening as I had -pickhostnamefrombackend flag true due to which it is taking private ip of the backend VM . For this issue I set the hostname of application gateway to its fqdn


Asset Distribution by validators is wrong

Inside the Portfolio page, if I select the by validators option of the Asset distribution graph, I see that each validator has the same percentage associated to it. It appears that percentage is calculated as
percentage = 100 / num_validators

Eg. I have delegate to 20 validators and each of them is showing 5%
I believe it should instead be computed as
percentage = tokens_delegated / total_tokens * 100%

@RiccardoM the percentage is based on the USD value of delegated tokens. As DSM's price is 0 now the percentage will always be equal among the validators
the reason for using USD value is if users delegate different tokens, say ATOM and DSM to the same validator, we cannot compare the token amount since their price is different
conclusion, this should be solved when DSM has non 0 price

@calvinkei Than maybe it's better to indicate this somewhere, maybe with a :question: icon that describes this behavior?

@Rooty2020 any suggestion?


Error (clean install)

Did you read the README?: There's a lot of information in the README, if you ask a question that is answered in the README, you will be told to "Read the README"
Yes. I've read it
Describe the bug
I just installed pma-voice, wrote setr's and stuff. Voice doesn't work. When player uses button - every sound arround blocks (ambient) and players can't hear each other (silence)
To Reproduce
Steps to reproduce the behavior:
Install the module
Expected behavior
Working script
Server Info:

Server Version: FXServer 5181
Client Version: production
Client Build: b2640
Game: FiveM

Additional context
My CFG:
start pma-voice
setr voice_enableUi 1
setr voice_enableProximityCycle 1
setr voice_defaultCycle "F11"
setr voice_defaultRadioVolume 0.3
setr voice_defaultPhoneVolume 0.6
setr voice_defaultVoiceMode 2
setr voice_enableRadios 0
setr voice_enablePhones 1
setr voice_enableSubmix 0
setr voice_enableRadioAnim 1
setr voice_defaultRadio "LALT"
setr voice_refreshRate 200
setr voice_allowSetIntent 1
setr voice_externalAddress "<IP_ADDRESS>"
setr voice_externalPort "64738"
setr voice_debugMode 0
setr voice_externalDisallowJoin 0
setr voice_hideEndpoints 1
Error:

When I've filled in port and ip there are no errors anymore
But still no one can hear anyone

Having this exact same issue.

I do believe both of these errors are self-explanatory, the first one you're passing invalid data to setRadioChannel, and the second error you set an invalid port
See: https://i.dillonskaggs.dev/JEgJZ3e6


limit allgathers

Summary:
For SEV debugging
Created from CodeHub with https://fburl.com/edit-in-codehub
Reviewed By: XiaoliangDai
Differential Revision: D47302456

Close the PR as replaced by https://github.com/facebookresearch/d2go/pull/598


How to use the m_timeout when usb is in fastboot mode for bulk transfer?

Hi Frank,
When I used uuu_1.4.243 to run the flash images, sometimes I find out it happens to stop or issue because of timeout. If I have changed it to 5000ms, it could fix the problems. Could you please introduce the m_timeout? it has 2000ms by default, and also max value of 10000ms, I also see it's 5000ms in test cases.

"FB[-t 100000]" at your uuu script

Hi, is it 10000ms or 100000ms?

unit is ms

thanks


Re-enable tiling after manually dragging a window

Is there a command to re-enable tiling after manually dragging a window?
I don't like Safari full width, so I often make it smaller on its own workspace. But, I inevitably want to bring something else in, but it's now outside of the tiling system. I thought -c refresh might be candidate, but it doesn't seem to do it.
Thanks!

 kwmc window -t float should do the trick.

I'll give that a shot! I also just realized if I hide a window and restore it, kwm fires back up.

kwmc config dragndrop is enabled by default, which will auto toggle a window to floating when it is resized or moved. (I run with this disabled)
Toggling the window floating again through the previously mentioned command is how you would tell kwm to tile it again.

The space method does work! And if I just resize without switching the space to float mode, switching to float and back right away resets everything just right.
The second idea doesn't seem to work though. I have Safari full screen, via kwm, then drag it around and resize. I next hit cmd+alt+ctrl-w, which is kwm's example config's shortcut for float toggle. It resizes Safari into a small box right in the center, but doesn't return it to tiling. If I open other windows they just go full screen on top of Safari.
Thanks for the help!

When you want to manually manage windows like you are talking about it's probably "best practice" to have the space set to floating anyway.
Both methods I described work for me, I'd be curious to know what your space is set to. What you are describing makes it sound like the space isn't set to bsp.
I have created this bitbar script for kwm: https://gist.github.com/chrishoage/4a767c064bbd75f65d58
it has some simple commands and shows what the currently focused tiling mode is set to. It is still very much a WIP and you might have to modify it slightly, but it will allow you to have more info about the state of kwm

The second idea doesn't seem to work though. I have Safari full screen, via kwm, then drag it around and resize. I next hit cmd+alt+ctrl-w, which is kwm's example config's shortcut for float toggle. It resizes Safari into a small box right in the center, but doesn't return it to tiling. If I open other windows they just go full screen on top of Safari.

If i make a window floating using drag&drop (move the window around), it becomes floating for me.
If i perform the command kwmc window -t float again, it gets tiled as expected.
I'm unable to reproduce the problem you have with this.

I tinkered with it some more, and I think it's setting it back to tile mode, but not actually retiling it immediately. If I then open another window, it tiles properly. Maybe that's the expected behavior, but I was thinking it would jump back to full screen after using window -t float.
I also just suddenly lost my OSX space switching shortcuts, which came back after killing and restarting kwm.
kwm is great though, I'm really enjoying it!

It should re-tile immediately.
Are you sure the space is in bsp (binary space partitioning) mode, and not monocle?

Well, I just realized I had commented out drag to float while I was tinkering. It does now seem to work well with my workflow!
But, I think there is still something weird going on, and maybe just with Safari windows, or two windows from the same application. Here's what I'm doing:

Open Safari on an empty space: It fills the screen
Drag and resize Safari to the center of the screen
Open a new Safari window: They both tile as if I hadn't dragged the first one, like it's not really in float mode

As a test I also tried this:

Open iTerm: It filles the screen
Open Safari: They both tile
Drag Safari a little and let go: It moves, but the iTerm stays in its spot
Drag Safari some more: iTerm fills the screen, Safari stays the same size
Hit window -t float on Safari and it tiles everything again

In that scenario, the weird part is that I have to move Safari several times for the iTerm to resize, or if I drag if on top of the iTerm window with the first drag, it will resize the iTerm.
I wonder if Safari just does some unexpected things and I was seeing some of that while trying to figure out and reproduce what I was seeing.
Either way, it does work well for me!

In that scenario, the weird part is that I have to move Safari several times for the iTerm to resize, or if I drag if on top of the iTerm window with the first drag, it will resize the iTerm.

I don't think is Safari specfic, but there is some delay to how often it can check for window movement, you might have to "keep it moving" for like 1-2sec before stopping, for Kwm to be able to detect it.

How to re-tiling in the latest version? I try kwmc window -t float but it tells me that
Unknown selector 'float'


[r] Ensure factors are releveled before appending w/ expanded levels

Issue and/or context:
When a factor variable factor(c("A", "B", "A")) is written, we write vector c(1,2,1) and labels c("A", "B").  So far, so good.  As @bkmartinjr demonstrated if we then append a factor(c("B", "C", "B")) that is constructed without knowledge of the prior factor we also see c(1,2,1) and labels c("B", "C")).   We were already correctly augmenting the stored enumeration labels to be c("A", "B", "C") but we still wrote c(1,2,1) -- when it should be c(2, 3, 2).
Changes:
The missing step of 're-levelling' the factor variable that is appended is now added.
New tests have been added.
Notes for Reviewer:
SC 38305

No rush @nguyenv we can wait.
The key of the PR is one-line resetting the factor (aka dictionary) column to the expanded set of levels noticed -- the fix to the error @bkmartinjr reported for SOMA in Python, and the same issue @atolopko-czi reported to tiledb-py (for which I have an R repro).  The deeper issue really is the possibly disconnect between 'global' factor levels in the schema and the 'local' ones in the ephemeral data.frame object which are wrong as long as they ignore the global levels.
The one-liner resets the factor to levels corresponding to the global set, and the unit test shows that.  There are two more CI tweaks in the PR (as we discussed) that also help to move us along.


Flag emojis have differing widths

I originally asked this as a question on Stack Overflow, but I'm thinking it might be because of a bug rather than something else.
Some flag emoji seem to have extra padding. See the image below:

You can see the Danish flag is taking double width, but the British flag has the correct width.
Here is the complete project code:
    import 'package:flutter/material.dart';
    import 'package:flutter/rendering.dart';

    void main() {
      debugPaintSizeEnabled = true;
      runApp(MyApp());
    }

    class MyApp extends StatelessWidget {
      @override
      Widget build(BuildContext context) {
        return MaterialApp(
          home: Scaffold(
            appBar: AppBar(title: Text('My App')),
            body: BodyWidget(),
          ),
        );
      }
    }

    class BodyWidget extends StatelessWidget {
      @override
      Widget build(BuildContext context) {
        return Container(
          width: 100,
          margin: const EdgeInsets.all(50),
          child: Column(
            children: <Widget>[
              Text('🇩🇰', style: TextStyle(fontSize: 30),),
              Text('🇬🇧', style: TextStyle(fontSize: 30),),
            ],
          ),
        );
      }
    }

Probably a duplicate of https://github.com/flutter/flutter/issues/41792

@jason-simmons That does look like the same problem, but it doesn't seem to be limited to Android M devices. I get the same behavior on the iOS simulator.

Do you think you can provide the flutter version as well as a list of devices/OSs that you are seeing this on? I tried a bunch of devices on tip of tree and am unable to repro.

I believe it was on Flutter 1.9 that I noticed this behavior on the iOS simulator. I tested it again with Flutter 1.12 and I no longer get the error so I am closing this issue.

Ok thanks!


Highlight not working in Unity 6

I think highlight asset on click used to work before? Now it opens the containing folder but for some reason stopped highlighting the asset, making it harder to locate.

Thanks for reporting it, not sure if it is an issue related with the change of adding the open folder with double click capability (and unity 6). You still can highlight with right click or with magnifier icon I believe, that should be working since it uses editor ping utility. I have to test everything with Unity 6.

Ok, tested in latest Unity 6 and it is working, just have to use right click and/or the icon.


Building a Better Repository: The Fedora API Specification and Implementations

"Fedora, the flexible, extensible, open source repository platform for managing, preserving, and providing access to digital content, is a key component of most Samvera implementations. Fedora 4.x, the latest version of Fedora, has been in production since 2015, and since then the real-world experience of the community’s use cases has clarified Fedora’s role in supporting preservation and access in the context of large collections and performance at scale. This understanding led to an effort to formally specify the Fedora application programming interface (API) that provides a stable layer of abstraction between clients and repository instances. In this way, alternate back-end implementations suited for specific user cases can all expose the same core services to repository clients. This initiative will allow the Fedora project to adapt to technological change more easily over time while insulating clients from changes in the underlying implementation.
This presentation will provide an overview of the the API specification effort, including current status, motivations, and benefits, with a particular focus on the relevance to Samvera. A brief survey of alternate implementations will provide context for the different use cases that will be enabled by the specification. This will be of interest to current and future Fedora implementers looking for an update on the current status and technical roadmap of the project."
David Wilcox<EMAIL_ADDRESS>

David Registered on 8/15
Confirmation and recording Ok on 8/15


Error while training - unrecognized arguments

from text4gcn.models import Builder as bd
from text4gcn.models import Layer as layer
from text4gcn.models import GNN
gnn = GNN(
dataset="R8",
path="data",
log_dir="log",
layer=layer.GCN,
epoches=200,
dropout=0.5,
val_ratio=0.1,
early_stopping=10,
lr=00.2,
nhid=200,
builder=bd.Embedding
)
gnn.fit()
============================== MODEL CONFIGURATION
usage: ipykernel_launcher.py [-h]
ipykernel_launcher.py: error: unrecognized arguments: -f /root/.local/share/jupyter/runtime/kernel-186e3023-b97b-4c0b-a063-b85b06c09087.json
An exception has occurred, use %tb to see the full traceback.
SystemExit: 2
/usr/local/lib/python3.9/dist-packages/IPython/core/interactiveshell.py:3561: UserWarning: To exit: use 'exit', 'quit', or Ctrl-D.
warn("To exit: use 'exit', 'quit', or Ctrl-D.", stacklevel=1)

Unable to fix


[Feature Request] Overlayed Text and photos

Is there's a chance to do the following:

Show an Overlayed title of the current playing now media displayed in a specific time (customized), show the next coming media title right afterwards. Showed in one of the four corners.
Show overlayed uploaded pictures to present now playing and what's next Or ADs, or Even Coming soon announcement (Like sliding right to one of the corners).  Showed in one of the four corners.
Urgent announcements (text only or text with pictures) on the bottom using marquee effect.
How to customize channel playlist to specify Comedy Movies (or any specific movies) in the afternoon, then play Romance Movies by the night?
Adding PG-Rate before every single movie

If it's not available right now I highly recommend that in your coming versions, and can't wait to see it.
Thank you so much

No, hasnt even been triaged


Support GCC 9

sscanf’: ‘nonnull’, ‘nothrow’ [-Werror=missing-attributes]
  134 | int __isoc99_sscanf(const char *str, const char *format, ...) __attribute__((weak, alias("sscanf")));
      |     ^~~~~~~~~~~~~~~
/home/ex/ClickHouse/libs/libglibc-compatibility/glibc-compatibility.c:124:5: note: ‘__isoc99_sscanf’ target declared here
  124 | int sscanf(const char *restrict s, const char *restrict fmt, ...)
      |     ^~~~~~
cc1: all warnings being treated as errors
make[2]: *** [libs/libglibc-compatibility/CMakeFiles/glibc-compatibility.dir/build.make:63: libs/libglibc-compatibility/CMakeFiles/glibc-compatibility.dir/glibc-compatibility.c.o] Error 1

FYI @kmeaw current AUR build is broken :(

Fixed in aur:clickhouse-static

This issue is not related to gcc-9.
It is related to the newer version of libc in your system.
What is the output of ldd --version?

ldd (GNU libc) 2.29
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.

Ok, thank you!
PS.
milovidov@milovidov-Latitude-E7470:~$ docker run --rm -it ubuntu:bionic ldd --version
ldd (Ubuntu GLIBC 2.27-3ubuntu1) 2.27
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
milovidov@milovidov-Latitude-E7470:~$ docker run --rm -it ubuntu:cosmic ldd --version
ldd (Ubuntu GLIBC 2.28-0ubuntu1) 2.28
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.

This issue is not related to gcc-9.
It is related to the newer version of libc in your system.

Actually I was wrong. The issue is related to more strict attributes for builtin function in gcc-9.

Thank you!

@alexey-milovidov Thanks! How about removing gcc7 from https://clickhouse.yandex/docs/en/development/build/ ?

@mariusa Ok.


400 Error talking to Octopus 3.0 API

I tried to use client.helper.simpleCreateReleaseAndDeploy with an Octopus Deploy 3.0 server. It gave me a 400 response with the error:
No package version was specified for the step \'Deploy Front-end Website\'

It seems the Octopus Deploy API has changed - as per this support ticket:
http://help.octopusdeploy.com/discussions/problems/35372-create-release-a-version-must-be-specified-for-every-included-nuget-package
The linked gist provides a fix in Powershell:
https://gist.github.com/Dalmirog/0fa1116a496b8b545a7d
In the current client.helper.simpleCreateReleaseAndDeploy interface there is no way to specify either:

a list of selected packages, or
a default package version for all steps

One or both of these are needed I think. I think (2) provides a better option as I don't have to specify the full list of step names and it's probably the more common scenario. However, for some reason the API doesn't seem to take in a single default package version.
So my suggestion would be to make the interface:
helper.prototype.simpleCreateReleaseAndDeploy =
    function (projectSlugOrId, version, packageVersion, releaseNotes, environmentName, comments, variables)

The change is that packageVersion parameter has been added and can be passed down into release.create.
This would require doing a get on /deploymentprocesses (https://github.com/OctopusDeploy/OctopusDeploy-Api/wiki/DeploymentProcesses) which returns a an object with a collection of Steps.
Then in release.create it could create the list of SelectedPackages as per the gist linked above and set the version on each one to the passed-in packageVersion.
What do you think?

Thanks for the feedback.  I'm no longer using this library, therefore have no interest in maintaining it.
Are you interested in taking ownership of this library?

I don't think I can actively maintain it myself (am a bit new to open-source programming to be honest). However, I have submitted a pull request with the fix, which I've tested on my current project. It works.

Can I close this?

Yes fine by me. Thanks.


added sdg anonymity evaluation (singling-out)

ContributorAgreement.txt

@josiah-chua ,
Good work.  Please resolve the comments made inline. The intent is to follow a standard style.
I'll also run your code in a Workbench environment shortly and merge after the same if no issues.
A suggestion :   You might like to make your intro a little more brief, and also highlight that your notebook considers only Singling Out Risk at this point.  Once you have the other metrics included, we can update your contribution.
Thank you.

Hi @josiah-chua , some minor (clean up ) notes and then an error which you may like to correct.

A title and section header for first cell (Imports) for your notebook

Consider calling "Original" as "training" data ?

Error:  We get an OSError here.

Reason : data may not be identified at the root directory level (where the notebook is being run from
Solution:  Consider using the os package.  So, based on where you are running the notebook from,

os.path.join(os.getcwd(),"..", "data","org_adult_census_data.csv")

Review still underway....

@josiah-chua ,
Thank you.  I gave it a run and was able to run the main notebook successfully.
One last additional note:  consider uploading a small number  (maybe ~ 3000 - 4000) records of synthetic data  (which you generated)  to an input directory , which you can then refer in the notebook.  This will help provide actual cases of singled out records and help establish the plots for singling out risk further.
Pending the same and earlier notes above, happy to merge.

synthetic_data_evaluation.html.txt

@SundareshSankaran Thanks for the feedback! I have made the necessary changes

@josiah-chua , a final request is to also add a reference to the Anonymeter paper in the README.  It will be interesting reference for those interested.  No need for the bibtex entry,, but at the least, the following reference:
"A Unified Framework for Quantifying Privacy Risk in Synthetic Data", M. Giomi et al, PoPETS 2023.
Thanks.

synthetic_data_evaluation-20241216.html.txt
Tested 16 Dec.  (Change extension to html in order to view)


Provide all media && design assets

Create a drive with all media assets and link(s) to all designs and prototypes.

style guide
webite dev
website prototyope

@allcontributors please add @perriefidelis for design

@perriefidelis can you please provide the GitHub username(s) of all the designers who worked on this project or rather ask them to comment under this thread?
So we can appreciate them on the README.md

@perriefidelis can you please provide the GitHub username(s) of all the designers who worked on this project or rather ask them to comment under this thread?
So we can appreciate them on the README.md

@BolajiAyodeji add @mrstevea and @legendaryofor as contributors!

@allcontributors please add @mrstevea for design

@allcontributors please add @legendaryofor for design


Add butterfly to false positives

Describe the feature request
Add butterfly to false positives
Why do you personally want this feature to be implemented?
Usernames with butterfly are blocked 🦋
How long have you been using this project?
No response
Additional information
Thanks so much!

You're fast!
Thanks so much


gk-deploy error: cat: /tmp/heketi-storage.json: No such file or directory

Dears,
when i tried to execute gk-deploy on my k8s cluster i get the following error after topology load:
cat: /tmp/heketi-storage.json: No such file or directory command terminated with exit code 1 error: no objects passed to create Failed on creating heketi storage resources.
any help here !!!

i tried to make some troubleshooting  and i find out that when the gk-deploy script come to execute the below line:
 heketi-cli -s http://localhost:8080 --user admin --secret '' setup-openshift-heketi-storage --listfile=/tmp/heketi-storage.json ' '
it hang for a while and skip the execution. that's why  /tmp/heketi-storage.json was not created.
what can be the route cause . ?

Could you have a look at the output of kubectl logs <heketi_pod> and see if you can find what commands it failed on?

Hi, the issue was that forgot to load kernel modules, thank you . issue resolved


Find incorrect inheritance order

Right now some modules contain a code like this:
class ResourceLoader(Loader): ...

# ...
# Many-many lines more
# ...

class Loader: ...

And since mypy allows this for stubs, it is not marked as an error.
But, today I was really confused finding this in https://github.com/python/typeshed/blob/875f0ca7fcc68e7bd6c9b807cdceeff8a6f734c8/stdlib/importlib/abc.pyi
I was like "What the heck, what's Loader? It must be imported somewhere..."
Since it is breaking a very basic python reading order, I propose to forbid such ordering.
Loader must be defined before its subclasses.

Could we simply get rid of the override of CLASSDEF since that's what allows the forward declarations to happen in the first place (assuming we're ok with a generic flake error message and not our own)?
From some quick testing, it seems to work.

That sounds worth trying out! If you file a PR, we can analyse the results of the typeshed_primer workflow, and see if it looks like the change causes flake8 to start emitting false positives on typeshed.
In general, less awful monkeypatching of pyflakes == good!


format conversion?

i just saw when i tried to test the v1.5.0 with album, it outputs as .m4a.
is it possible to get directly as .flac or add an conversion module, so the output results as .flac?

You can use ffmpeg
ffmpeg -i input.m4a output.flac

We can't get directly flac file for some tracks as they are fragmented in mp4 urls.
We must save them as m4a and then use audio conversion tools.
I will implement this feature but ffmpeg will be needed to run conversion.


Rename demo folder to sample folder

This patch also add IO sample
Signed-off-by: Bruno Bottazzini<EMAIL_ADDRESS>

how does this differ from Soletta's own samples?
If you're just copying it here, I'd rather take a different approach, to use /usr/share/soletta/samples and install that from inside Soletta. Then devapp just consumes it.
In the same fashion, we could have more folders to be monitored, like /usr/share/nodejs/samples. And similar for docs, /usr/share/doc/soletta would host the html for nodetypes and c-api

This is a really good approach, I haven't thought that.
I will make a new pr with this feature.


Add CameraIOS API to take pictures

Would be amazing if the picture was returned in Base64 similar than http://ngcordova.com/docs/plugins/camera/

What's the point of having base64 representation? seems just a waste of CPU

To send via WS is a good way using base64. What is your proposal @vkurchatkin?

The way we deal with images in React Native is that we keep the image data in obj-c land and only pass a handle (a small string) to JS. Then we can send this handle to  to display it, send to an image manipulation library to apply filters, save to cameraroll... This way we don't have to copy this huge image twice.

If you have to send this image via WS you need to send this handle @vjeux?

Transferring images as base64 is a waste of both CPU and traffic (~33.3%)

@danicomas: have your websocket bindings know how to send this image handle. For example our internal implementation of XHR.send(image) will send the raw data when passed an image handle (we need to reproduce this feature in open source btw).

Nice @vjeux We will need to wait for this.

+1

@vjeux do image "handles" exist in open source react-native? I do not see anything in RCTConvert.m

The "handles" are just urls. They reference an image in the camera roll, or a temporary local file.

@danicomas - not using websockets but you could adapt this accordingly: https://github.com/kamilkp/react-native-file-transfer

@vjeux - I'm using React Native and have a websocket that delivers raw image data (RGBA video frames) that I need to display at around 20 fps but I can't find a way to get Image or any other RN component to display raw data. Most components assume they will load the data (and decode it) before displaying it. I just need to display existing data stored in an ArrayBuffer.
Our existing webapp (pure JS) uses the websocket to get the data and displays it directly on a canvas element. This works great for our purposes. Is there a viable replacement for the canvas element in React Native or is there a way to get the Image component to load raw data without creating my own react image loader or writing to a local/temp file?
Thanks in advance!

@kahunamoore you can pass the <Image/> component a base64-encoded image url. If you can efficiently convert your video frames to base64 on the JS side then that might work. I suspect that won't be fast enough, but it's probably the first thing you should try.
The ideal solution would be to pass the data directly from the native web socket to the native imageView without the round trip via JS (which actually involves two base64 conversions both ways), but setting that up will involve a lot of complex changes to the way React Native works, and we'd have problems with tracking the lifecycle of the data to avoid memory leaks.

That is kind of what I thought... although I didn't realize the existing base64 encoding happening on the websocket. My other thought was to try to leverage one of the opengl/webgl components. TBD.
Thanks for the quick response!


Topic recognition

Pull request to merge my Siamese Network based classifier.
This library implements a Siamese Triplet Network to learn divisive embeddings for the ANDI dataset for Alzheimer’s disease. Using these embeddings, it then trains a binary classifier to classify the images.
topic-recognition branch
Commit log history
Detailed README.md file
modules.py containing the source code of the components of my model. Each component must be implemented as a class or a function.
dataset.py containing the data loader for loading and preprocessing the data.
train.py containing the source code for training, validating, testing and saving your model. The model should be imported from “modules.py” and the data loader should be imported from “dataset.py”. Make sure to plot the losses and metrics during training.
predict.py showing example usage of my trained model. Print out any results and / or provide visualisations where applicable.
Thanks,
David Lake 45330212

This is an initial inspection, no action is required at this point
Difficulty: Hard
Readme: OK

plots are provided within a folder but doesn't show up on the readme
not a lot of information provided on the algorithm, training details
some loss plots provided, but unclear if they are just for the training set
minimal results shown, no accuracy plots or 2D manifolds, or prediction results

Commit messages: Good
Code:

good design
well commented

Functionality/Performance:

classifier achieves only 71% on the test set
not enough results/plots shown to determine triplet network performance

General comments:

solves the problem apporpriately with a triplet network followed by a classifier, although performance is poor

Marking
Good Practice (Design/Commenting, TF/Torch Usage)
Adequate design and implementation
Good spacing and comments
Header blocks
Recognition Problem
Solves problem
Driver Script present
File structure present
Shows Usage & Demo & Visualisation & Data usage, plots present but not in readme, no manifold output -1
Module present
Commenting
No Data leakage
Difficulty: Hard
Commit Log
Meaningful commit messages
Progressive commits used
Documentation
ReadMe OK, no outputs etc. -2
Model/technical explanation minimal -1
Good Description and Comments
Markdown used and PDF submitted
Pull Request
Successful Pull Request (Working Algorithm Delivered on Time in Correct Branch)
No Feedback required
Request Description good


Add Card to Collection View [Question]

Hey so i am trying to add the card to a horizontal scrolling collection view. However, I have tried several things and none seem to work. The card at its base is just a UIView I believe but ive still had no luck implementing it as such. Any help is appreciated :D Thanks!

Yes, Card is an UIView. You can use is as you would do in a tableview.
In the storyboard placing an UIView inside the prototype cell and subclassing it into Card.
Or by code instantiating it in a Custom Cell Class


python38Packages.browser-cookie3: 0.12.1 -> 0.13.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python38Packages.browser-cookie3 is: "Loads cookies from your browser into a cookiejar object"
meta.homepage for python38Packages.browser-cookie3 is: "https://github.com/borisbabic/browser_cookie3"
meta.changelog for python38Packages.browser-cookie3 is: ""
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS

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

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

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

found 0.13.0 with grep in /nix/store/k92x9in2f0jlmsgmj4b9hym5zcnxp3ph-python3.8-browser-cookie3-0.13.0

found 0.13.0 in filename of file in /nix/store/k92x9in2f0jlmsgmj4b9hym5zcnxp3ph-python3.8-browser-cookie3-0.13.0

directory tree listing: https://gist.github.com/1d2a373ceb2bb5352805c322403e5f05

du listing: https://gist.github.com/08ef4e4e409b0cfa30d2d6ed5f27ff1c

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

12 total rebuild path(s)

3 package rebuild(s)

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

First fifty rebuilds by attrpath
python38Packages.browser-cookie3
python39Packages.browser-cookie3
wapiti

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/k92x9in2f0jlmsgmj4b9hym5zcnxp3ph-python3.8-browser-cookie3-0.13.0 \
  --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 python38Packages.browser-cookie3 https://github.com/r-ryantm/nixpkgs/archive/ee165d92222b96a4a989abc6c37ac9f3f4a90d18.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/k92x9in2f0jlmsgmj4b9hym5zcnxp3ph-python3.8-browser-cookie3-0.13.0
ls -la /nix/store/k92x9in2f0jlmsgmj4b9hym5zcnxp3ph-python3.8-browser-cookie3-0.13.0/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

3 packages built:

python38Packages.browser-cookie3
python39Packages.browser-cookie3
wapiti

Maintainer pings
cc @borisbabic for testing.

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

3 packages built:

python38Packages.browser-cookie3
python39Packages.browser-cookie3
wapiti


Introduce a Config subclass for Entities

the _search_fields variable already led to confusion and there is also the wish to be able to store human readable metadata in the classes (a description of the entity that is used in the documentation)
We could use a subclass for that, similar to the Django Meta class

Decided to use a APIS inner class for adding configurations and documentation strings that are APIS specific.
Inheritance needs to be still sorted out.

inner classes are inherited. so we should find a similar solution as django does with model classes by removing abstract=True


"Sort By" in Extensions filter options intermittently is disabled or freezes/hangs entire interface

Issue Type: Bug
Steps to replicate:

Open Extensions panel
Search for anything that has at least 3 results
Select filter button/menu and hover mouse or use keyboard to highlight "Sort By"

Applies when accessing local extensions with remote extension disabled, and when accessing either local or remote extensions with remote extension enabled.
Troubleshooting limitations used:

Remote extension disabled to eliminate possibility of it being primary cause
Search options identical between tests
Window/panel sizes identical between tests
Window focus unchanged between search input and menu focus

Accessing the "Sort By" menu will:
a) Display fully functional options menu - Appropriate behavior
b) Display entirely disabled options menu - May be appropriate behavior if menu is truly inapplicable, e.g. 0 or 1 result(s)
c) Momentarily display entirely disabled options menu - Inappropriate behavior for all cases; confusing and inconsistent UX
d) Cause the entire interface, other than base Electron window, to freeze/hang - Inappropriate behavior for all cases.
Experiences:
The inappropriate behaviors (c and d) listed above happen more frequently with higher numbers of results of the search.

Using an uncommon term with 3 results, it took at least 54 attempts to access the "Sort By" menu before it showed one of the above "inappropriate" behaviors, usually disabled menu either consistently displayed or disappearing unexpectedly and unintentionally.
Using a more common term with 20 results, it took 6 attempts before increasingly inappropriate behaviors began to manifest, and 23 subsequent attempts before a complete freeze occurred.
Using a very common term such as "theme" caused the interface to freeze or hang every single time the "Sort By" menu was accessed.

No other menus seem to show these inappropriate behaviors under the same circumstances used in the above examples.

I added a fix to reuse sort actions instead of recreating them. This fix will be available in tomorrow's insiders. Please try out and see if you can repro again?


Add ImageButtonWithText

Been using egui with the sdl2 backend for a short while now and it's been a great experience, making UI has been nicely easy with it after learning it.
One of the things I was wanted to do which the integration with sdl2 made possible was to have a hybrid mouse and controller UI, where someone could navigate and press buttons using the controller as well.
Part of that I wanted to be able to have a button with a controller icon in it, to show which one could trigger it. I created a "ImageButtonWithText", which tried to merge the ideas of an ImageButton and a Button, similar to how the Radio Button or Checkbox ones work.
This was mainly copying and pasting the Button implementation and adding the necessary spacing and positions for putting the image and text inside the button. It worked well visually, as can be seen in the screenshot below, which was built using this idea, although not sure if it may be better to add this as an additional feature to the "Button" instead of it being its own Button type.
The code to add this type looks like this, assuming that "texture_confirm" was already created (same idea behind adding an Image to the ui).
if ui.add(egui::ImageButtonWithText::new("Ok", texture_confirm, egui::vec2(32 as f32, 32 as f32))).clicked() {
    ok = true;
}

I re-based with the latest and removed the ui... function.
I added the change to the example glium but not sure how to test it, I didn't see a way to run it like you can with the demo, but it should work.

cargo run --example native_texture

The composition is not great. Both the image and the text is too far to the left


fix add support for orc binary type

Proposed changes
Problem summary
Fix three bugs:

DataTypeFactory::create_data_type is missing the conversion of binary type, and OrcReader will failed with error like:

msg:errCode = 2, detailMessage = Not support arrow type: LO_ORDERPRIORITY BINARY

ScalarType#createType is missing the conversion of binary type, and ExternalFileTableValuedFunction will failed with error like:

ERROR 1105 (HY000): IllegalStateException, msg: java.lang.IllegalStateException: null

fmt::format can't generate right format string, and will be failed with error like:

terminate called after throwing an instance of 'fmt::v7::format_error'
  what():  argument not found
*** Query id: 0-0 ***
*** Aborted at<PHONE_NUMBER> (unix time) try "date -d @1671196995" if you are using GNU date ***
*** Current BE git commitID: 9831be623 ***
*** SIGABRT unkown detail explain (@0x2edd19) received by PID 3071257 (TID 0x7f9e481fd700) from PID 3071257; stack trace: ***
 0# doris::signal::(anonymous namespace)::FailureSignalHandler(int, siginfo_t*, void*) at /mnt/disk2/gaoxin/ws/doris/be/src/common/signal_handler.h:420
 1# 0x00007F9EAEE68090 in /lib/x86_64-linux-gnu/libc.so.6
 2# raise at ../sysdeps/unix/sysv/linux/raise.c:51
 3# abort at /build/glibc-SzIz7B/glibc-2.31/stdlib/abort.c:81
 4# __gnu_cxx::__verbose_terminate_handler() [clone .cold] in /mnt/disk1/lqf/doris-1.2/apache-doris-be-1.2.0-bin-x86_64/lib/doris_be
 5# __cxxabiv1::__terminate(void (*)()) in /mnt/disk1/lqf/doris-1.2/apache-doris-be-1.2.0-bin-x86_64/lib/doris_be
 6# 0x000055BFBCDF60A1 in /mnt/disk1/lqf/doris-1.2/apache-doris-be-1.2.0-bin-x86_64/lib/doris_be
 7# 0x000055BFBCDF61F5 in /mnt/disk1/lqf/doris-1.2/apache-doris-be-1.2.0-bin-x86_64/lib/doris_be
 8# fmt::v7::detail::error_handler::on_error(char const*) [clone .constprop.0] in /mnt/disk1/lqf/doris-1.2/apache-doris-be-1.2.0-bin-x86_64/lib/doris_be
 9# char const* fmt::v7::detail::parse_replacement_field<char, fmt::v7::detail::format_handler<fmt::v7::detail::buffer_appender<char>, char, fmt::v7::basic_format_context<fmt::v7::detail::buffer_appender<char>, char> >&>(char const*, char const*, fmt::v7::detail::format_handler<fmt::v7::detail::buffer_appender<char>, char, fmt::v7::basic_format_context<fmt::v7::detail::buffer_appender<char>, char> >&) in /mnt/disk1/lqf/doris-1.2/apache-doris-be-1.2.0-bin-x86_64/lib/doris_be
10# void fmt::v7::detail::vformat_to<char>(fmt::v7::detail::buffer<char>&, fmt::v7::basic_string_view<char>, fmt::v7::basic_format_args<fmt::v7::basic_format_context<fmt::v7::detail::buffer_appender<fmt::v7::type_identity<char>::type>, fmt::v7::type_identity<char>::type> >, fmt::v7::detail::locale_ref) in /mnt/disk1/lqf/doris-1.2/apache-doris-be-1.2.0-bin-x86_64/lib/doris_be
11# fmt::v7::detail::vformat[abi:cxx11](fmt::v7::basic_string_view<char>, fmt::v7::format_args) in /mnt/disk1/lqf/doris-1.2/apache-doris-be-1.2.0-bin-x86_64/lib/doris_be
12# doris::vectorized::VFileScanner::_init_src_block(doris::vectorized::Block*) at /mnt/disk2/gaoxin/ws/doris/be/src/vec/exec/scan/vfile_scanner.cpp:215
13# doris::vectorized::VFileScanner::_get_block_impl(doris::RuntimeState*, doris::vectorized::Block*, bool*) at /mnt/disk2/gaoxin/ws/doris/be/src/vec/exec/scan/vfile_scanner.cpp:143
14# doris::vectorized::VScanner::get_block(doris::RuntimeState*, doris::vectorized::Block*, bool*) at /mnt/disk2/gaoxin/ws/doris/be/src/vec/exec/scan/vscanner.cpp:53

Checklist(Required)

Does it affect the original behavior:

[ ] Yes
[x] No
[ ] I don't know

Has unit tests been added:

[ ] Yes
[x] No
[ ] No Need

Has document been added or modified:

[ ] Yes
[x] No
[ ] No Need

Does it need to update dependencies:

[ ] Yes
[x] No

Are there any changes that cannot be rolled back:

[ ] Yes (If Yes, please explain WHY)
[x] No

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...

TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 35.07 seconds
load time: 658 seconds
storage size:<PHONE_NUMBER>7 Bytes
https://doris-community-test-1308700295.cos.ap-hongkong.myqcloud.com/tmp/20221216145750_clickbench_pr_64547.html


⚠ Mobitopup has degraded performance

In 253c54f, Mobitopup (https://napcard.voz.tech) experienced degraded performance:

HTTP code: 200
Response time: 4827 ms

Resolved: Mobitopup performance has improved in efa7074.


pip installation not working?

I installed dask using pip:
pip install dask[complete]

which gives me:
pip list
....
dask (0.15.1)
numpy (1.8.2)
....

I then created a wee little test script:
import dask.dataframe as dd
print 'done'

But that fails with the following error:
/usr/local/lib/python2.7/dist-packages/dask/array/numpy_compat.py:32: RuntimeWarning: divide by zero encountered in divide
  not np.allclose(np.divide(1, .5, dtype='i8'), 2) or
Traceback (most recent call last):
  File "./tools/panda_test.py", line 1, in <module>
    import dask.dataframe as dd
  File "/usr/local/lib/python2.7/dist-packages/dask/dataframe/__init__.py", line 3, in <module>
    from .core import (DataFrame, Series, Index, _Frame, map_partitions,
  File "/usr/local/lib/python2.7/dist-packages/dask/dataframe/core.py", line 19, in <module>
    from .. import array as da
  File "/usr/local/lib/python2.7/dist-packages/dask/array/__init__.py", line 13, in <module>
    from .ufunc import (add, subtract, multiply, divide, logaddexp, logaddexp2,
  File "/usr/local/lib/python2.7/dist-packages/dask/array/ufunc.py", line 138, in <module>
    cbrt = ufunc(np.cbrt)
AttributeError: 'module' object has no attribute 'cbrt'

Should I install something else as well?

Tried installing from source and then pip installing the deps and running the tests:
============================================================================== test session starts ===============================================================================
platform linux2 -- Python 2.7.9, pytest-3.2.0, py-1.4.34, pluggy-0.4.0
rootdir: /opt/dask, inifile:
/opt/dask/dask/array/numpy_compat.py:32: RuntimeWarning: divide by zero encountered in divide
  not np.allclose(np.divide(1, .5, dtype='i8'), 2) or
collected 0 items / 1 errors

===================================================================================== ERRORS =====================================================================================
_______________________________________________________________________________ ERROR collecting  ________________________________________________________________________________
/usr/local/lib/python2.7/dist-packages/py/_path/common.py:372: in visit
    for x in Visitor(fil, rec, ignore, bf, sort).gen(self):
/usr/local/lib/python2.7/dist-packages/py/_path/common.py:411: in gen
    if p.check(dir=1) and (rec is None or rec(p))])
/usr/local/lib/python2.7/dist-packages/_pytest/main.py:728: in _recurse
    ihook = self.gethookproxy(path)
/usr/local/lib/python2.7/dist-packages/_pytest/main.py:632: in gethookproxy
    my_conftestmodules = pm._getconftestmodules(fspath)
/usr/local/lib/python2.7/dist-packages/_pytest/config.py:356: in _getconftestmodules
    mod = self._importconftest(conftestpath)
/usr/local/lib/python2.7/dist-packages/_pytest/config.py:381: in _importconftest
    raise ConftestImportFailure(conftestpath, sys.exc_info())
E   ConftestImportFailure: AttributeError("'module' object has no attribute 'cbrt'",)
E     File "/opt/dask/dask/array/__init__.py", line 14, in <module>
E       from .ufunc import (add, subtract, multiply, divide, logaddexp, logaddexp2,
E     File "/opt/dask/dask/array/ufunc.py", line 138, in <module>
E       cbrt = ufunc(np.cbrt)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
============================================================================ 1 error in 0.43 seconds =============================================================================

np.cbrt seems to have appeared in numpy version 1.10.0

Yeah, I just re-created my docker image from scratch (and thereby updated a bunch of things), and now I'm running
numpy 1.13.1
and all is well again :-)


tatakae

Shinzou Wo Sasageyo

You're pushing a Vscode folder with a settings.Json, no need for that, just the html

@44jax44 Done 👍


Fix Accessing ['yum-ius'] ['repos'] Attribute

Description
Changes node['yum-ius']['repos'] to node.default['yum-ius']['repos'] in the default recipe so access to the attribute can happen correctly.
Issues Resolved
Fixes undefined method `[]' for nil:NilClass error raised when trying to include the default recipe in another cookbook.
Check List

[x] A summary of changes made is included in the CHANGELOG under ## Unreleased
[ not applicable ] New functionality includes testing.
[ not applicable ] New functionality has been documented in the README if applicable.

Released as: 3.2.11


#8 Added Liveness Test Credentials

Added credentials to the liveness test.

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

@mdb I can see you have reviewed the previous PRs any chance you could take a look?


Fix mariadb CVE-2024-5991

Merge Checklist

All boxes should be checked before merging the PR (just tick any boxes which don't apply to this PR)

[x] The toolchain has been rebuilt successfully (or no changes were made to it)
[x] The toolchain/worker package manifests are up-to-date
[x] Any updated packages successfully build (or no packages were changed)
[x] Packages depending on static components modified in this PR (Golang, *-static subpackages, etc.) have had their Release tag incremented.
[x] Package tests (%check section) have been verified with RUN_CHECK=y for existing SPEC files, or added to new SPEC files
[x] All package sources are available
[x] cgmanifest files are up-to-date and sorted (./cgmanifest.json, ./toolkit/scripts/toolchain/cgmanifest.json, .github/workflows/cgmanifest.json)
[x] LICENSE-MAP files are up-to-date (./LICENSES-AND-NOTICES/SPECS/data/licenses.json, ./LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md, ./LICENSES-AND-NOTICES/SPECS/LICENSE-EXCEPTIONS.PHOTON)
[x] All source files have up-to-date hashes in the *.signatures.json files
[x] sudo make go-tidy-all and sudo make go-test-coverage pass
[x] Documentation has been updated to match any changes to the build system
[ ] Ready to merge

Summary

What does the PR accomplish, why was it needed?
Fix CVE-2024-5991 in mariadb with a patch
Change Log

Fix CVE-2024-5991 with a patch

Does this affect the toolchain?

NO
Associated issues

#xxxx

Links to CVEs

https://nvd.nist.gov/vuln/detail/CVE-2024-5991

Test Methodology

Buddy build: https://dev.azure.com/mariner-org/mariner/_build/results?buildId=632803&view=results

maridb is built without vendored wolfssl and uses system openssl instead. Disputed the CVE. closing the PR.


Provide PHAR-file over HTTPS

Please consider providing the deployer.phar-file over HTTPS.
Currently the recommended form of installation is:
$ curl -L http://deployer.org/deployer.phar -o deployer.phar
$ mv deployer.phar /usr/local/bin/dep
$ chmod +x /usr/local/bin/dep

While this command can be vulnerable to a MITM-attack.
If you can, I would love to see the deployer.org website to provide HTTPS (which is easy and free with the Let's Encrypt project).
Additionally, providing a checksumming hash or some form of signature would be greatly appreciated.
I currently cannot be certain that the pharchive I am downloading, is actually what you intended to provide.
Thanks!

Hi,
I'm really want to do this stuff. And https will be soon.
But what best way to work with checksums? md5? PGP?

Hi, any movement on this?

I have planned to add https on site. Also i planning to sign phar with PGP.
But now i have a lot of work, so i don't know then i can come back on this issue. I hope it will be in next month.

Done! Now with https!
https://deployer.org/download

Thanks a lot for this! I really appreciate it!

Took about 7 months(!) to do it)) Main problem — just don't have enough time. So i'm looking to sponsors. Created page at https://www.patreon.com/deployer


404 - page not found  /articles/ai-services

The documentation link https://github.com/MicrosoftDocs/azure-docs/tree/main/articles/ai-services appears to be broken or unavailable. Users attempting to access this link encounter a 404 page not found error.
Please investigate and update the link to ensure that users can access the relevant documentation for Azure AI services.
Thank you for your attention to this matter!

@bzbwqz
Thanks for your feedback! We will investigate and update as appropriate.

@bzbwqz
Thank you for bringing this to our attention.
I've delegated this to content author @eric-urban, who will review it and offer their insightful opinions.

@bzbwqz - Out of curiosity where is this linked from? We just moved files from azure-docs to azure-ai-docs.
https://github.com/MicrosoftDocs/azure-ai-docs/tree/main/articles/ai-services
@nitinme FYI

#please-close


Support configure thread number per completion queue?

Currently threads on a completion queue is fix to 1.

:laughing: I'm not sure if this is a bug. @BusyJay , what do you think?

No, it's intended. For the reason in #148 and avoiding potential context switches.

Thanks @BusyJay ! I'll close this since it's not an issue.


성장일지(Diary) CRUD

https://github.com/sparta-Sounganization/Botanify/issues/11#issue-2722091929

완전 꼼꼼하십니다 멋져요 LGTM


Cardano-Perf Regression: Future Proof

This is the Future Proof patch for the cardano-perf investigation project.
What it does:
It's my best guess to future proof Cardano.Ledger.Address by reading the Core output. In general:

If a function was exported we set it to INLINEABLE so that it can be optimized at call sites in other modules and libraries
If a function is relatively simple then I INLINE'd it. I also INLINE'd a few that are in a hot loop in decodeAddrStateLeftoverT
If a function used MonadFail, I SPECIALIZED it. This will result in larger Core, but 9.2 generally specializes against these MTL type classes less aggressively than 8.10. From reading Core a lot of these failed specializations were from FailT.

NOTE:
This is not intended to be merged. This patch is intended to be tested on either db-analyzer or beacon. cc @dnadales

Same as #3757


Add imu bias config to sim

Also added some logic to ground truth localizer so that it responds to service commands even if they don't serve a purpose in ground truth mode (otherwise the loc manager waits for a response and stalls).

@KhaledSharif this fixes the imu bias initialization in simulation we had chatted about a month or so ago


Hello world in Html

Fixes: #30 #17
Hello world in html with cool animation from Kevin Powel
https://github.com/trishan9/HelloWorld/assets/85205148/2d487414-6b34-4c62-91fe-6411d9cfc93b

@trishan9 do i need to get assigned first to work on an issue? I just made a PR thinking it was in the issue was that okay?

lgtm

Thanks for your contribution @mohammdowais


DataFrameGroupBy attribute access for columns

Describe the bug
When accessing a column on a DataFrameGroupBy object via attribute-access (see below), mypy complains that no such attribute exists.
To Reproduce

Provide a minimal runnable pandas example that is not properly checked by the stubs.
Indicate which type checker you are using (mypy or  pyright).
Show the error message received from that type checker while checking your example.

df = pd.DataFrame({'a': [1, 1, 2], 'b': [3, 4, 5]})
gb = df.groupby('a').b

mypy 0.991 says: "_DataFrameGroupByNonScalar" has no attribute "b"

Need to do what we did in core/frame.pyi by adding __getattr__() to DataFrameGroupBy

Need to do what we did in core/frame.pyi by adding __getattr__() to DataFrameGroupBy

but DataFrameGroupBy is in core/groupby/generic.pyi

Need to do what we did in core/frame.pyi by adding __getattr__() to DataFrameGroupBy

but DataFrameGroupBy is in core/groupby/generic.pyi

Yes, so what's the issue.  The change that was made for DataFrame.__getattr__() should be the same for DataFrameGroupBy.__getattr__()

Yes, so what's the issue.

I misunderstood, no issue thanks


Netatmo ERROR should be a WARNING

Home Assistant release with the issue:

0.93.0
Last working Home Assistant release (if known):
0.92.x
Operating environment (Hass.io/Docker/Windows/etc.):

Docker
Component/platform:

Netatmo
Description of problem:
The Netatmo component uses pyatmo to discover devices in sensor.py. When no device is discovered, an error message is send. I believe this should be a warning instead -- an error should result in a problem, a warning should highlight information that is relevant to the admin.
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
netatmo:
  api_key: !secret netatmo_api_key
  secret_key: !secret netatmo_secret_key
  username: !secret netatmo_username
  password: !secret netatmo_pw
  discovery: false

sensor:
  platform: netatmo
  station: !secret netatmo_station

Traceback (if applicable):

Additional information:
One might consider changing the error level based on the discovery flag.

! not working too.

Seems to be similar to https://github.com/home-assistant/home-assistant/issues/23865


Does not register component named differently then it's filename

Example bellow would not work:
# in ./system/boot/hell.rb
Container.finalize :heaven do |container|
  container.register('heaven', 'string')
end

I spent several hours struggling with this issue.
If this is necessary, having a warning or error on boot would be helpful.

This is fixed via #48


npm peer dependency warning with Angular 6

Versions
ng-select: 1.0.0-rc.5
@angular: 6.0.0

Issue Description
ng-select v1.0.0-rc.5 appears to be working just fine with Angular 6; however, npm produces the following warnings:
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none is installed. You must install peer dependencies yourself.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none is installed. You must install peer dependencies yourself.

Peer dependencies include angular6 in the latest release (v1.0.0).


Add FileHandler errors argument

Closes https://github.com/microsoft/picologging/issues/98
This was added in Python 3.9+
Ref:
https://github.com/python/cpython/blob/f2eaa92b0cc5a37a9e6010c7c6f5ad1a230ea49b/Lib/logging/__init__.py#L1209
https://github.com/python/typeshed/blob/4c4278e80c74b10548f83236e0f56c0104bd4ed2/stdlib/logging/__init__.pyi#L828C35-L828C35

Codecov Report

Merging #161 (dd21c18) into main (a2842b9) will decrease coverage by 0.37%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #161      +/-   ##
==========================================
- Coverage   88.86%   88.49%   -0.37%
==========================================
  Files          11       11
  Lines        2146     2147       +1
==========================================
- Hits         1907     1900       -7
- Misses        239      247       +8

Files
Coverage Δ

src/picologging/__init__.py
91.59% <100.00%> (+0.03%)
:arrow_up:

... and 1 file with indirect coverage changes

thanks @aminalaee


⚠ Bofrost.be has degraded performance

In 6fb55b4, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 801 ms

Resolved: Bofrost.be performance has improved in a046e67 after 10 minutes.


Take into account vite.config.envDir or provide a kit.env.dir option

Describe the problem
It appears that in its current state, the kit.config does not allow us to specify a .env checkup directory other than the project's root. This can be a bit annoying when working with monorepos where .env files can often be defined in a parent folder. Vite's config already provides an envDir option covering such cases, yet it is my understanding that it doesn't work with kit. As is, none of the $env/... imports seem to include env vars defined in a parent folder pointed to by vite's config.
Describe the proposed solution
I see two avenues:
1- take into account vite.config.envDir, or;
2- provide a kit.env.dir option to stay more in line with kit's own handling of env.publicPrefix.
Alternatives considered
Make developpers copy the necessary .env files when they reside outside the kit project's root.
Importance
nice to have
Additional Information
No response

@Rich-Harris
Happy to tackle this one, since it's part of my "pet project"... I'd probably vote that we have our own config for it (config.kit.env.dir seems fine).


added the possibility to use imagemagick's -alpha option

Is Set the default alpha if none is provided?

Is Set the default alpha if none is provided?

Reading through their documentation that is not the impression I get: http://www.imagemagick.org/script/command-line-options.php#alpha
I think what would prefer to see here is for the command to only have the alpha flag if it is intentionally set, otherwise roll without it.

When I originally wrote this I thought it was (few weeks ago) but after jnunemakers comment read it again and I think you are right.
I'll try to update my PR in a few minutes.

Done ... its not the most beautiful solution so if you come up with something better feel free to correct me :)

Updated the PR :balloon:

@jonmagic Of course I would! ... Jokes aside, made another PR, overlooked the -interlace because it was no variable.

:sparkles: I'll update the README and cut a new version later today! Thank's everyone, super rad :zap:

Tonight I changed the README from textile to markdown, added @victormier to the contributors list, added some docs with options you can pass to save (and their defaults), and then cut a new release!
Thanks again for your work, y'all rock :metal:


nimble-wafer-map component spec document

Pull Request
🤨 Rationale
We are planning to move the O+ wafer-map Angular component from AzDO into the ni/nimble repository and with this change, switch from an Agular component to FAST component.
👩💻 Implementation
This PR contains the nimble spec document that must be submitted for approval before starting to work on a new nimble component.
🧪 Testing
N/A
✅ Checklist
N/A

The test failure in the current PR build should go away when you update the branch with the latest from main.

Once @atmgrifter00 approves, this PR can be completed 🎉