Upgrade to Jackson 2.7.4 as a proper fix for #1600

Issue #1600 doesn't quite include the correct fix for CVE-2016-3720, because the fix to Jackson is included in 2.7.4 (https://github.com/FasterXML/jackson-dataformat-xml/issues/199) rather than the 2.6 patch version we upgraded to.
To fix in Dropwizard, the Jackson version needs updating to 2.7.4. Doing so locally gives me a few errors when running mvn install:
Running io.dropwizard.util.SizeTest
Tests run: 20, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.151 sec <<< FAILURE! - in io.dropwizard.util.SizeTest
serializesCorrectlyWithJackson(io.dropwizard.util.SizeTest)  Time elapsed: 0.095 sec  <<< ERROR!
java.lang.NoSuchMethodError: com.fasterxml.jackson.annotation.JsonFormat$Value.empty()Lcom/fasterxml/jackson/annotation/JsonFormat$Value;
	at com.fasterxml.jackson.databind.cfg.MapperConfig.<clinit>(MapperConfig.java:50)
	at com.fasterxml.jackson.databind.ObjectMapper.<init>(ObjectMapper.java:543)
	at com.fasterxml.jackson.databind.ObjectMapper.<init>(ObjectMapper.java:460)
	at io.dropwizard.util.SizeTest.serializesCorrectlyWithJackson(SizeTest.java:496)

deserializesCorrectlyWithJackson(io.dropwizard.util.SizeTest)  Time elapsed: 0 sec  <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class com.fasterxml.jackson.databind.SerializationConfig
	at com.fasterxml.jackson.databind.ObjectMapper.<init>(ObjectMapper.java:543)
	at com.fasterxml.jackson.databind.ObjectMapper.<init>(ObjectMapper.java:460)
	at io.dropwizard.util.SizeTest.deserializesCorrectlyWithJackson(SizeTest.java:517)

Running io.dropwizard.util.JarLocationTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.054 sec - in io.dropwizard.util.JarLocationTest
Running io.dropwizard.util.DurationTest
Tests run: 24, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.152 sec <<< FAILURE! - in io.dropwizard.util.DurationTest
serializesCorrectlyWithJackson(io.dropwizard.util.DurationTest)  Time elapsed: 0.095 sec  <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class com.fasterxml.jackson.databind.SerializationConfig
	at com.fasterxml.jackson.databind.ObjectMapper.<init>(ObjectMapper.java:543)
	at com.fasterxml.jackson.databind.ObjectMapper.<init>(ObjectMapper.java:460)
	at io.dropwizard.util.DurationTest.serializesCorrectlyWithJackson(DurationTest.java:810)

deserializesCorrectlyWithJackson(io.dropwizard.util.DurationTest)  Time elapsed: 0 sec  <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class com.fasterxml.jackson.databind.SerializationConfig
	at com.fasterxml.jackson.databind.ObjectMapper.<init>(ObjectMapper.java:543)
	at com.fasterxml.jackson.databind.ObjectMapper.<init>(ObjectMapper.java:460)
	at io.dropwizard.util.DurationTest.deserializesCorrectlyWithJackson(DurationTest.java:837)

Running io.dropwizard.util.SizeUnitTest
Tests run: 25, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.055 sec - in io.dropwizard.util.SizeUnitTest

Results :

Tests in error:
  DurationTest.deserializesCorrectlyWithJackson:837 » NoClassDefFound Could not ...
  DurationTest.serializesCorrectlyWithJackson:810 » NoClassDefFound Could not in...
  SizeTest.deserializesCorrectlyWithJackson:517 » NoClassDefFound Could not init...
  SizeTest.serializesCorrectlyWithJackson:496 » NoSuchMethod com.fasterxml.jacks...

Tests run: 71, Failures: 0, Errors: 4, Skipped: 0

We are upgrading to Jackson 2.7.4 in Dropwizard 1.0.0 which should be released very soon (maybe even this week)

Just an update, but we're blocked on releasing DW 1.0.0 until https://github.com/dropwizard/dropwizard/issues/1604 is fixed.  Hopefully soon.

Thanks @jplock!

Closing because 1.0 is out

:D
On 3 August 2016 at 13:39, Nick Babcock<EMAIL_ADDRESS>wrote:

Closing because 1.0 is out
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/dropwizard/dropwizard/issues/1613#issuecomment-237225626,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AApukVwso5AhC4JaFrjPfJwJzTvtLtctks5qcIwEgaJpZM4I_GaO
.

--
Andrew Langhorn
Senior Site Reliability Engineer
Email<EMAIL_ADDRESS>Telephone +44 7733 339809 <+44+7733+339809>
[image: ThoughtWorks]
http://www.thoughtworks.com/?utm_campaign=andrew-langhorn-signature&utm_medium=email&utm_source=thoughtworks-email-signature-generator


Function response should have empty body if async keyword is missing

- Do you want to request a feature or report a bug?
Bug
- What is the current behavior?
There is a difference in behaviour between local and production if you miss the async keyword in a lambda function. When running netlify dev, the response body is output. However, on production, the body is empty. This is confusing, and the local behaviour should match production.
- If the current behavior is a bug, please provide the steps to reproduce.
Using this function - note, it is missing the async keyword:
exports.handler = function(event) {
    console.log(event);

    return {
        statusCode: 200,
        body: 'Hello world'
    };
};

When I run this locally using netlify dev, I see Hello world output when I hit the local endpoint. However, when it is uploaded to the production environment, the function runs (the console.log output is visible in the function log), but the response body is empty.
- What is the expected behavior?
Local netlify dev should match the production behaviour, i.e. there should be no response body output from this function.
(Note that if the first line is changed to add the async keyword, i.e. exports.handler = async function(event) {, then both local and production behave the same - i.e. you do see the "Hello world" output in the body. Not sure why removing the async keyword results in this change in behaviour, as the function doesn't await anything, but this is a difference in observed behaviour between local and production environments, and it confused me for a while)
- Local Environment Information

────────────────────┐
 Environment Info   │
────────────────────┘

  System:
    OS: macOS 10.15.5
    CPU: (8) x64 Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
  Binaries:
    Node: 12.16.3 - /usr/local/bin/node
    npm: 6.14.4 - /usr/local/bin/npm
  Browsers:
    Chrome: 84.0.4147.105
    Firefox: 56.0
    Safari: 13.1.1
  npmGlobalPackages:
    netlify-cli: 2.58.0

netlify-cli/2.58.0 darwin-x64 node-v12.16.3

Can confirm I've run into similar problems due to the mismatched behavior between local behavior and prod. The async keyword appears to be unnecessary in some cases when running locally, which can lead to difficult to track bugs for users less familiar with the necessary async syntax even for synchronous Netlify functions.
Thread documenting my experience here: https://answers.netlify.com/t/functions-error-decoding-lambda-response-invalid-status-code-returned-from-lambda-0/53861


request dissect curl upload file size error.

Problem Description
As photo show blew, when I use curl upload file and use file_content = flow.request.multipart_form.get(b'file') get file content and len(file_content) is not correct, thanks.

System Information

Please follow the template when opening a new bug report. Provide the exact curl command and a mitmproxy script.

def upload_check(self, flow):
    parsed_url = urlparse(flow.request.url)
    path = parsed_url.path
    if(path == '/upload_check'):
        if flow.request.method == "POST" and flow.request.multipart_form:
            for key, value in flow.request.multipart_form.items():
                print(f"Key: {key}, Value size: {len(value) if value else 0}")

            file_content = flow.request.multipart_form.get(b'file')
            password = flow.request.multipart_form.get(b'password')
            size = flow.request.multipart_form.get(b'size')
            type = flow.request.multipart_form.get(b'type')
            if file_content:
                file_data = file_content
                file_size = len(file_data)
                print(f"Received file size: {file_size} bytes")
                with open(f"received_file.{type}", "wb") as f:
                    f.write(file_data)
                print("File saved for debugging")
                raw_size = len(flow.request.content)
                print(f"Raw size:  {raw_size} bytes")
                with open("raw_request.bin", "wb") as f:
                    f.write(flow.request.content)

As the code, use command curl -F<EMAIL_ADDRESS>-F  "type=xlsx" http://<IP_ADDRESS>:8080/upload_check
Result is raw size is correct but file size incorrect.

2.xlsx
curl use file.

Thanks, I can repro this. It seems that in particular \n is not correctly handled.
This make this a duplicate of https://github.com/mitmproxy/mitmproxy/issues/4466


updated the Copyright text for the mailer

Fixes #
Updated the Copyright Text from Copyright © 2021 CircuitVerse. All rights reserved. For any issues, reach out to us<EMAIL_ADDRESS>to Copyright © %{time_current_year} CircuitVerse, All rights reserved.

Coverage remained the same at 81.785% when pulling 41b49f6611fa73c90e03dda5cc56433ff8a53c67 on VedanshArun:update-mailer-copyright-text#3008 into 80b1a0ba56231b1b43d4d1355cf033ee36fe4025 on CircuitVerse:master.

Closing due to inactivity


Consumer stop receive messages from broker

Actual behavior
A process subscribe a topic with 2 subscriptionName. After a few hours, we found backlog of 1 subscriptionName growing continuous, then check the broker stats:

Stats of unackedMessages and availablePermits looks weird, i don't understand why both of them is 0 at the same time.
Then make the heap dump of client, but did not find anything abnormal. I'm already upload the heap dump to slack:
https://apache-pulsar.slack.com/files/UC0BYCXKQ/FELNFAZ6W/heap.hprof
System configuration
Pulsar Broker version: 2.2.0
Pulsar Client version: 2.2.0

Hi @codelipenghui, Do you think this is related with #3185?

Consumer in the same subscription stop consume messages, seems like broker update available permits problem?


Clinic Locator Spanish Translation

I rule and have completed some work on Case Manager that's ready for review!
This pull request makes the following changes:

Translates the clinic finder box

It relates to the following issue #s:

Bumps #1572

@montanezp for spanish review! :smile_cat:

@colinxfleming if you'll quickly eyeball the merge I'd appreciate it!


[RFE] Add the ability to load a cluster through the UI (desktop only)

Current situation
When running in the desktop, Headlamp loads all the clusters automatically from the user's kube config. If the user wants to add a new cluster, they have to change that kube config and then relaunch Headlamp.
Impact
Users cannot pick which clusters to add nor can they load a cluster without restarting Headlamp.
Ideal future situation
We have a way for the user to load a new kube config and pick the wanted clusters from there.
Implementation options
The clusters that the user wants to use should be remembered the next time Headlamp is used.
This means that if such config is not found, we should show the default kube config clusters and ask the user to confirm they're interested in loading all of those.
At any moment, the user will be able to click an "Add a cluster" button from the cluster chooser dialog and add more clusters.
Additional information
We are doing the final touches on the design for this feature. It'll be added later.

Here's the design:

Done by #904


gdb server doesn't provide information about memory regions with device registers

Description of defect
gdbserver of pyocd doesn't return memory regions of peripheral registers with $qXfer:memory-map:read command. Only flash and SRAM regions are returned.
It doesn't prevent debugging, but causes that gdb cannot read peripheral registers that are defined by SVD files.
Probably pyocd should return memory map that contains device register regions, as some software (gdb with QtCreator) uses this information to display peripheral registers.
QtCreator example

debugging with PyOCD:

The info mem gdb command shows the following results:

server command:
$ pyocd gdbserver --target stm32f303vctx

client command:
$ arm-none-eabi-gdb
...
(gdb) target remote localhost:3333
Remote debugging using localhost:3333
...

(gdb) info mem
Using memory regions provided by the target.
Num Enb Low Addr   High Addr  Attrs
0   y  	0x08000000 0x08040000 flash blocksize 0x800 nocache
1   y  	0x10000000 0x10002000 rw nocache
2   y  	0x20000000 0x2000c000 rw nocache

note: 0x48001000 address absents in the memory regions

debugging with OpenOCD:

The info mem gdb command shows the following results:

server command:
$ openocd -f 'board/stm32f3discovery.cfg' -f 'interface/stlink-v2-1.cfg'

client command:
$ arm-none-eabi-gdb
...
(gdb) target remote localhost:3333
Remote debugging using localhost:3333
...

(gdb) info mem
Using memory regions provided by the target.
Num Enb Low Addr   High Addr  Attrs
0   y  	0x00000000 0x08000000 rw nocache
1   y  	0x08000000 0x08040000 flash blocksize 0x800 nocache
2   y  	0x08040000 0x100000000 rw nocache

note: the region addresses aren't correct (some addresses are invalid),
but 0x48001000 address presents in the last region, so QtCreator is able to display peripheral registers

If I add device regions with monkey patching using the following script, it will also work:

 #!/usr/bin/env python3
 import sys
 from unittest.mock import patch

 from pyocd.__main__ import main as pyocd_main
 from pyocd.core.memory_map import DeviceRegion
 from pyocd.gdbserver.context_facade import GDBDebugContextFacade

 def main(args=None):
     # add "gdbserver" command
     sys.argv.insert(1, 'gdbserver')

     original_get_memory_map_xml = GDBDebugContextFacade.get_memory_map_xml

     def patched_get_memory_map_xml(self):
         memory_map = self._context.core.memory_map

         # save original regions
         original_regions = memory_map.regions.copy()

         # modify regions
         # see: "2.2.3 Behavior of memory accesses"
         # in the https://www.st.com/resource/en/programming_manual/dm00046982-stm32-cortex-m4-mcus-and-mpus-programming-manual-stmicroelectronics.pdf
         memory_map.regions.extend([
             DeviceRegion(start=0x40000000, end=0x5FFFFFFF),  # STM32 Cortex M4 "Peripheral"
             DeviceRegion(start=0xED000000, end=0xED0FFFFF),  # STM32 Cortex M4 "Private peripheral bus"
             DeviceRegion(start=0xED100000, end=0xFFFFFFFF),  # STM32 Cortex M4 "Memory mapped peripherals"
         ])

         # build memory map
         memory_map_xml = original_get_memory_map_xml(self)

         # restore original regions
         memory_map.regions[:] = original_regions

         return memory_map_xml

     # patch get_memory_map_xml to add device regions and run pyocd gdbserver
     with patch.object(GDBDebugContextFacade, 'get_memory_map_xml', patched_get_memory_map_xml):
         pyocd_main()

 if __name__ == '__main__':
     main()

The info mem gdb command shows the following results:

server command:
$ pyocd  ./pyocd_openocd_server.py --target stm32f303vctx

client command:
$ arm-none-eabi-gdb
...
(gdb) target remote localhost:3333
Remote debugging using localhost:3333
...

(gdb) info mem
Using memory regions provided by the target.
Num Enb Low Addr   High Addr  Attrs
0   y  	0x08000000 0x08040000 flash blocksize 0x800 nocache
1   y  	0x10000000 0x10002000 rw nocache
2   y  	0x20000000 0x2000c000 rw nocache
3   y  	0x40000000 0x60000000 rw nocache
4   y  	0xed000000 0xed100000 rw nocache
5   y  	0xed100000 0x100000000 rw nocache

note: the 0x48001000 address presents in a memory region, so QtCreator is able to read it

Toolchain(s) (name and version) and target

pyOCD 0.27.1.dev104
GNU Arm Embedded Toolchain 9-2020-q2-update (<IP_ADDRESS>91211-git)
Qt Creator 4.11.0
target:

stm32f303vctx
CMSIS-Pack: STM32F3xx_DFP, version 2.1.0

Possible solution
Add common "Peripheral" regions for all targets with corresponding cortex-m cores according cortex-m documentation:
https://developer.arm.com/documentation/ddi0439/b/Programmers-Model/System-address-map

Thanks a lot for the really detailed issue! I agree that it would be nice to have the device regions represented correctly in the memory map.
The canonical solution for this is to issue the command set mem inaccessible-by-default off to gdb. This enables access to the full 4GB address space, so the memory map is only used to determine read/write-ability and set the gdb cache policy.
I've also thought about always adding in the standard Cortex-M Peripheral range. The problem with that is it adds a very large (256 MB) range that is normally very sparsely populated with peripherals. In addition, a number of devices have peripherals in different regions, and it wouldn't cover the PPB and Vendor PPB regions. Those could of course be added, but you end up with something like 1/3 the address space covered by a Device region. 😄
Probably the best option is to examine the SVD file and extract a region that covers all defined peripherals. Or several regions, with a heuristic for when to split based on how far apart nearly-contiguous regions are. The issue here is that parsing SVD files is currently quite slow, which would negatively affect pyOCD's startup performance with a very noticeably
delay. We could compromise by making it a user-configurable option that is disabled by default.
One issue with all options is they don't distinguish between S and NS attributions in v8-M devices with TrustZone-M. Not sure how to address this without proper information in the CMSIS-Pack. (This isn't covered by the SVD data.)

Another possibility that's already supported is to add memory regions with a user script.
It would be possible to have a session option to add memory regions, but doing it via the user script is probably better anyway.

Thanks for advice about user script. This approach with adding extra memory regions inside user script suites me.

Glad the user script will work for now. I'm going to continue working towards a good solution based on SVD and other CMSIS-Pack data. Thanks for raising the problem.

@flit @vznncv Thanks for the info provided. I also meet this issue in when using arm gdb, so it is very useful for me.
Besides, I wanna ask whether it is possible (or there is an easy way) to read all of the I/O traffic inside the memory regions of peripheral registers when the MCU is running by leveraging pyOCD? What I understand from above is that we could “see” this peripheral memory region when debugging the firmware, which means we should stop the firmware/binary and run the gdb command e.g. x/10x [somewhere between 0x40000000 0x60000000]. However, what I want to achieve first in my research project is to export all of the changes inside peripheral memory regions by sequence when the firmware is continuously running. You could regard this as you not only run continue command inside GDB, but also output the peripheral region at the same time. Is it possible to have this sort of automation by using pyOCD (sorry I am a newbie for pyOCD😅..)?
Thanks a lot if you could provide any ideas/suggestions!

Hi @DarknessChen
If I understand correctly, it sounds like you want to record every read or write to the peripheral memory region. I'm afraid it isn't directly possible on any off the shelf system. It would require a system-level bus trace capability that would record every bus transaction (read or write) to the peripheral memory region (or whatever address range you want).
There are some options, however.

Instrument your code. Modify the peripheral register access macros to record the operation somewhere like a ring buffer.
Similarly, you could also redirect all peripheral accesses through a couple functions, then set breakpoints that log a message in the debugger (called logpoints in some debuggers). This would be very slow.
Use instruction + data trace to reconstruct peripheral accesses. Only possible on Cortex-A/R devices, because Cortex-M cores do not support data trace (only instruction trace).
Use a system simulator. If you are doing your research in a university, you can contact the Arm University Program (google it) to get access to tools like the different Arm models and simulators.
Use a microarchitectural simulator like gem5.
Build your own system in RTL and run in an RTL simulator, then examine the recorded signals in a wave viewer.
Build your system with a custom trace feature on the bus fabric and run on an FPGA. For these RTL options, the Arm University Program can also provide materials to help you.

Hope that helps!

Yeah, what you understand is exactly what I want to do. These advice is really helpful for me.
To be more specific, currently I want to directly record every read or write to the peripheral memory region when the real-world IoT device is running (a lot of vendors may only provide the executable so we should assume we only have the binary file without the source code). I am exploring that whether I could get those I/O traffic on-the-fly via Jtag, but as you said it may be not possible directly.
What's more, I guess another way is to run the firmware in QEMU (an emulator) and forward the I/O operations to the real hardware, which may give me a chance to observe the read/write operation. Actually this is what avatar2 could do https://github.com/avatartwo/avatar2.
Anyway, I am very glad to hear the ideas from you, if you have any other suggestions please let me know.
Thank you so much @flit !

That's right, another emulator such as QEMU is a good option. And even if it doesn't already give you the observation ability you need, you have the source code so you can add it. 😄
Are you doing this for security research? I'd like to hear a little more about the purpose of your research if you don't mind. If you want to talk more privately, just send me an email (see my github profile for the address).

Yeah, you are right. Open source tool deserves our appreciation. And it is amazing that QEMU was firstly made by a single person..


Channel customization for service channel

According to this line the name of the channel is set to App name. But it should be configurable by developer to show like "Tracking Location" or something else he needed.
Although it is coming from strings xml sheet, but this value effect the Account name and lable, so i think we need to use different string value like @strings\service_channel_name so that developer can customize. If needed we can also keep another varibale for description as well. @strings\service_channel_description.
But the name and description for Sync channel is enough as you coded.

Yes why not. Feel free to submit PR


How to stake with 2 pc [Help]

I have 2 pc but my total plots wont combine same like chia, both my pc shows different stacking address .

Can you show me the screenshot in the "Stake" tab on 2 pc?

Can you show me the screenshot in the "Stake" tab on 2 pc?

Well, you have two farmer keys in your plots, that means you have two staking addresses. So stake to these two addresses on either PC will be OK.


Fix to allow a publish only use case without a SubscriberFactory

Quick fix suggested in issue #816
Added additional comments in the default constructor which clarifies
that only a PublisherFactory is required when wanting to use publish
methods and only a SubscriberFactory is required when wanting to use
subscribe / pull methods.
Changed constructor code to handle a null SubscriberFactory - common
for a subscriber / pull only use case.
Added constructor that only requires a PublisherFactory - common
for a publish only use case.
Added constructor that only requires a SubscriberFactory - common
for a subscriber / pull only use case.

@artembilan given comments by @meltsufin in https://github.com/spring-cloud/spring-cloud-gcp/issues/816 I am going to close this PR.
Splitting the publish / subscription operations is a much cleaner implementation.


Why not provide a configuration to close the first-level cache

Why not provide a configuration to close the first-level cache, I think whether to use the first-level cache can also be controlled by the user.
When the localCacheScope is set to the statement ,the simple query will create a CacheKey object, save the current result to the cache, and finally clean up

MyBatis version
3.3.1
Database vendor and version
Test case or example project
Steps to reproduce
Expected result
Actual result

Hi @zhangweidavid ,
Local cache is used by some basic functionality (association/collection mapping, circular references).
Besides, the current result mapping code heavily relies on CacheKey, so it may be quite difficult (if possible) to add such option.
If localCacheScope="statement" is not good enough for you, you should consider using SqlSession#selectCursor(), probably (see #1174 ).

@harawata How to become a Mybatis contributor？

@zhangweidavid ,
You mean a committer? The team invites a contributor who is contributing mergeable patches continuously or an owner of a subproject, I think.

@harawata is it possible to cache raw result rather than the final result? For example:
list = mapper.selectList(params)
list.removeAll()
// in another method
list2 = mapper.selectList(params)
// list2 would be empty, but it's not my expectation.

Hello @wwulfric ,
I'm not sure what you mean by 'raw result'.
Are you proposing to add another cache before local cache?
If yes, it probably won't improve the situation.
If no, could you elaborate?
Regarding the behavior you observe, it should not happen if you set localCacheScope="statement".
Please try it if you haven't.

@harawata Sorry, I try to explain myself explicitly.
I want to use session scope cache, i know it's useful for me. But the current cache mechanism cannot prevent developer from misusing it. The example is as above. Right now my solution is:
list = mapper.selectMyList(params)
list = Lists.newArrayList(list)
list.removeAll()

But others wouldn't understand it clearly. The problem is that developers may destroy cache without realizing it.
So I guess if mybatis saves raw result in cache, rather than the org.apache.ibatis.executor.SimpleExecutor#doQuery's return. I don't know much about mybatis source code, maybe the raw result is ResultSetWrapper in org.apache.ibatis.executor.resultset.DefaultResultSetHandler#handleResultSets.
I am not asking whether mybatis provide raw result cache or not, but asking why mabtis choose org.apache.ibatis.executor.SimpleExecutor#doQuery's return as cache, not the raw result.

Thank you for the explanation, @wwulfric .
But you cannot get values out of ResultSet once it is closed, so it may not be possible to cache 'raw result', I'm afraid.
This issue is about disabling local cache, so it may be a little bit off-topic.
Please use the mailing list if you have further questions.


Doubts with Resizing the stickers.

In the previous code that I had, the animated figurines (stickergif) when made, were resized, that is, it would not cut if it was too wide.
However, this new code, the animated figures are becoming centralized, cut if the figure is wide.
I would like to know how I do to resize.
Thank you very much in advance.

In the previous code that I had, the animated figurines (stickergif) when made, were resized, that is, it would not cut if it was too wide.
However, this new code, the animated figures are becoming centralized, cut if the figure is wide.
I would like to know how I do to resize.
Thank you very much in advance.

What module did you use for creating a GIFs?

In the previous code that I had, the animated figurines (stickergif) when made, were resized, that is, it would not cut if it was too wide.
However, this new code, the animated figures are becoming centralized, cut if the figure is wide.
I would like to know how I do to resize.
Thank you very much in advance.

What module did you use for creating a GIFs?

case 'stickergif':             case 'stikergif': 			case 'sgif':                 if (!isRegistered) return await bocchi.reply(from, br.notRegistered(), id)                 if (isMedia && type === 'video' || mimetype === 'image/gif') {                     await bocchi.reply(from, br.wait(), id)                     try {                         const mediaData = await decryptMedia(message, uaOverride)                         const videoBase64 = data:${mimetype};base64,${mediaData.toString('base64')}`
await bocchi.sendMp4AsSticker(from, videoBase64, { fps: 30, startTime: '00:00:00.0', endTime : '00:00:05.0', loop: 0 })
						.then(async () => {
                            //await bocchi.sendText(from, br.ok())
                        })
					console.log(timeLog)
                } catch (err) {
                    console.error(err)
                    await bocchi.reply(from, br.videoLimit(), id)
                }
            } else if (isQuotedGif || isQuotedVideo) {
                await bocchi.reply(from, br.wait(), id)
                try {
                    const mediaData = await decryptMedia(quotedMsg, uaOverride)
                    const videoBase64 = `data:${quotedMsg.mimetype};base64,${mediaData.toString('base64')}`
                    await bocchi.sendMp4AsSticker(from, videoBase64, { fps: 30, startTime: '00:00:00.0', endTime : '00:00:05.0', loop: 0 })
						.then(async () => {
                            //await bocchi.sendText(from, br.ok())
                        })
					console.log(timeLog)
                } catch (err) {
                    console.error(err)
                    await bocchi.reply(from, br.videoLimit(), id)
                }
            } else {
                await bocchi.reply(from, br.wrongFormat(), id)
            }
        break
		/*
		 *  STICKERGIF = VERSÃO NOVA
		 */
		case 'stickergif2':
		case 'sticergif2':
		case 'sgif2':
			if (isMedia && mimetype == 'video/mp4' || mimetype == 'image/gif') {
				decryptMedia(message).then(mediaData => {
				bocchi.sendMp4AsSticker(from, mediaData, null, { author:`${arg.split('|')[1]}`, pack: `${arg.split('|')[0]}` })
				})
				console.log(timeLog)
			} else if (quotedMsg && quotedMsgObj.mimetype == 'video/mp4' || quotedMsgObj.mimetype == 'image/gif') {
				decryptMedia(quotedMsg).then(mediaData => {
				bocchi.sendMp4AsSticker(from, mediaData, null, { author:`${arg.split('|')[1]}`, pack: `${arg.split('|')[0]}` })
				console.log(timeLog)
				})
			}
		break`

In the previous code that I had, the animated figurines (stickergif) when made, were resized, that is, it would not cut if it was too wide.
However, this new code, the animated figures are becoming centralized, cut if the figure is wide.
I would like to know how I do to resize.
Thank you very much in advance.

What module did you use for creating a GIFs?

how do i see the module? sorry, I'm a layman

this is my case => https://pastebin.com/iu3Eb04s

May I see your previous code that will resize the input, please?

May I see your previous code that will resize the input, please?

case stickergif: https://pastebin.com/H07UzRKR
I noticed that when using the old code, it appears in cmd:

When using the updated code, no in cmd does not appear:

In the previous code that I had, the animated figurines (stickergif) when made, were resized, that is, it would not cut if it was too wide.
However, this new code, the animated figures are becoming centralized, cut if the figure is wide.
I would like to know how I do to resize.
Thank you very much in advance.

What module did you use for creating a GIFs?

how do i see the module? sorry, I'm a layman

this is my case => https://pastebin.com/iu3Eb04s

You can set the crop to false

Based on how @VideFrelan answers, this should be done by adding a crop parameter in client.sendMp4AsSticker.
In this case, it can be done something like this:
await bocchi.sendMp4AsSticker(from, videoBase64, { crop: false, fps: 30, startTime: '00:00:00.0', endTime:'00:00:05.0', loop: 0 })

There's more options you can configure, consider to read the docs here.
Reminder:
Please close the issue if your issue(s) has been resolved, thanks.

Thank you very much for your help, problem solved.


Prvent clone duplicates

Given the following example:
HTML

		{{item.label}}

		{{item.label}}

Typescript
constructor() {
    for (let i = 0; i < 30; i++) { this.itemsSource.push({ id: i, label: "Item #" + i, isSelected: false }); }
}

public readonly itemsSourceOptions: Options = {
    group: {
        name: "items",
        pull: "clone",
        put: false
    },
    sort: false,
    removeOnSpill: false,
    revertOnSpill: true
};

public readonly selectedItemsOptions: Options = {
    group: {
        name: "items",
        pull: false,
        put: true
    },
    sort: true,
    removeOnSpill: false,
    revertOnSpill: true
};

public itemsSource = [];
public selectedItems = [];

Is there any way to prevent items from the sourceList, which get cloned, from being dragged to the selectedItems list more than once?
Or at least is it possible to access the dragged item (not the UI HTMLElement) via the Sortable's event handlers (onStart, onEnd, etc.)?
Thank you very much!

I'm not sure what you mean by UI HTMLElement, but you can get the dragged HTMLElement by using event.item in the events, and write custom code to achieve what you want.

Hi owen, thank you for your reply. I mean, the HTMLElement is created via *ngFor starting from a list of items. I need to know the item which the element being dragged represents.

Not sure, check this repo: https://github.com/SortableJS/ngx-sortablejs


Entity hub: Small refactor and add product & version

Changelog Description
Refactored BaseEntity a little to support all common attributes so they don't have to be reimplemented in each entity. Also added basic support for product and version.
Additional info
Modified arguments in EntityHub methods and in base classes to make a little bit more sense. That might be backwards incomaptible a little, but as EntityHub is used by services at the first place, it should be ok for them to update code with update of ayon api.
Only remainders are that folder and task types are kept as first argument in add_new_ methods -> those would couse most damage.
Entity hud changes:

In some cases parent_id was renamed to be more specific (e.g. folder_id in case of task entity).

TODOs future PRs

Add more helper functions to get product and versions (e.g. by name/version and parent it).
Add products as children of folder and versions as children of product.

Testing notes:

First of all existing functionality should work as before - all syncs (ftrack, shotgrid, editorial) should work.
It is possible to create and update products and versions.

If there is too much changes I can split the PR to refactor and adding new entity types.


Step name incorrect when multiple backslashes in Examples block

Summary
Step name is incorrect when multiple backslashes are present in the Examples block.
Expected Behavior
The step name should be obtained by just filling the placeholders with the values in the Examples block
The only escaping should be that defined by the Gherkin grammar:
The \-character will be considered as an escape in table cell iff it is followed by a |-character, a \-character or an n.
I would expect this feature to pass:
Feature: Escaping

  Scenario Outline:
    * '<a>' should equal '|'
    * '<b>' should equal '\\\+'
    * '<c>' should equal '\\\\\\'

    Examples:
      | a  | b       | c            |
      | \| | \\\\\\+ | \\\\\\\\\\\\ |

If run with this step definition:
Given(/^'([^']*)' should equal '([^']*)'$/) do |x,y|
  x.should == y
end

The same feature passes if run with Cucumber-JVM and this step definition:
@Given("^'([^']*)' should equal '([^']*)'$")
public void checkEquality(String x, String y) {
    assertEquals(y, x);
}

Current Behavior
It fails on the second step with:
      expected: "\\\\\\+"
           got: "\\" (using ==) (RSpec::Expectations::ExpectationNotMetError)
      ./features/step_definitions/escaping.rb:6:in `/^'([^']*)' should equal '([^']*)'$/'
      features/escaping.feature:10:in `* '\' should equal '\\\+''
      features/escaping.feature:5:in `* '<b>' should equal '\\\+''

By printing the step name in an AfterStep hook, the above Scenario Outline gets expanded to:
Feature: Escaping

  Scenario Outline:
    * '|' should equal '|'
    * '\' should equal '\\\+'
    * '\\\' should equal '\\\\\\'

Possible Solution
Escaping seems to be correct in the Gherkin parser (at least 4.0.0). The same issue is present at least from version 1.3.20 to the latest 2.4.0, so it's probably not a parser problem. No idea where to look in Cucumber-Ruby.
Steps to Reproduce (for bugs)

Create a feature file and a step definition file as described in the "Expected Behavior" section
Run Cucumber-Ruby

Context & Motivation
Was writing scenarios to test regex escaping in the snippets generation of Cucumber-CPP, that still uses Cucumber-Ruby and Aruba for E2E testing.
Your Environment

Version used: 1.3.20 (gherkin 2.12.2), 2.0.0 (gherkin 2.12.2), 2.4.0 (gherkin 4.0.0)
Operating System and version: OSX 10.11.6, Ruby 2.3.0 with RVM

Sorry, submitted this with the work account :-)


Issue downloading datasets

Hi!  I'm taking a look at CoreWeave's LLM documentation, and I'm trying to get GPT-J fine-tuned with the example dataset.
There seems to be an issue with the dataset-downloader -- my PVC does not get populated with the dataset.
I'm currently trying to understand if there's an issue with the path being passed to it, or if the internals of main.go aren't working correctly. Debugging this is a bit more involved because the dataset-downloader is running in a GitHub-produced distroless container, so it will take some extra effort to inspect the state during run time.
My K8s logs for the relevant pod only show this:
2023/01/17 20:04:12 Getting book links from https://www.smashwords.com/books/category/1245/downloads/0/free/any/140
2023/01/17 20:04:12 Getting book links from https://www.smashwords.com/books/category/1245/downloads/0/free/any/0
2023/01/17 20:04:12 Getting book links from https://www.smashwords.com/books/category/1245/downloads/0/free/any/20
2023/01/17 20:04:12 Getting book links from https://www.smashwords.com/books/category/1245/downloads/0/free/any/40
2023/01/17 20:04:12 Getting book links from https://www.smashwords.com/books/category/1245/downloads/0/free/any/60
2023/01/17 20:04:12 Getting book links from https://www.smashwords.com/books/category/1245/downloads/0/free/any/80
2023/01/17 20:04:12 Getting book links from https://www.smashwords.com/books/category/1245/downloads/0/free/any/100
2023/01/17 20:04:12 Getting book links from https://www.smashwords.com/books/category/1245/downloads/0/free/any/120

I'd expect the logs to also show something like the following (from this Printf statement):
Downloaded XYZ to /data/finetune-data/dataset/xyz

Anyway, I'm still debugging this, but just wanted to reach out and see if you have suggestions in the meantime.  Thanks in advance!

Side note:  I've been working to debug the distroless container using an ephemeral container.
However, it looks like CoreWeave's Managed K8s doesn't allow ephemeral containers:
$ kubectl run debug-download --image=ghcr.io/coreweave/dataset-downloader/smashwords-downloader:836cea3 --restart=Never -- sleep 1d
pod/debug-download created

$ kubectl debug -it debug-download --image=busybox:1.28 --target=debug-download
Targeting container "debug-download". If you don't see processes from this container it may be because the container runtime doesn't support this feature.
Defaulting debug container name to [SNIP].
Error from server (Forbidden): pods "debug-download" is forbidden: User "[SNIP]" cannot patch resource "pods/ephemeralcontainers" in API group "" in the namespace "[SNIP]"

Had some time to dig further -- just doing some note-taking here.
Let's try to simplify the setup by avoiding any Kubernetes unknown variables.  Using a standalone golang:newest docker container as a more simple test, here's the expected output:
$ go run main.go --data_dir=/mnt/pvc/dataset
2023/01/19 01:45:48 Getting book links from https://www.smashwords.com/books/category/1245/downloads/0/free/any/140
2023/01/19 01:45:48 Getting book links from https://www.smashwords.com/books/category/1245/downloads/0/free/any/100
2023/01/19 01:45:48 Getting book links from https://www.smashwords.com/books/category/1245/downloads/0/free/any/20
2023/01/19 01:45:48 Getting book links from https://www.smashwords.com/books/category/1245/downloads/0/free/any/0
2023/01/19 01:45:48 Getting book links from https://www.smashwords.com/books/category/1245/downloads/0/free/any/120
2023/01/19 01:45:48 Getting book links from https://www.smashwords.com/books/category/1245/downloads/0/free/any/80
2023/01/19 01:45:48 Getting book links from https://www.smashwords.com/books/category/1245/downloads/0/free/any/60
2023/01/19 01:45:48 Getting book links from https://www.smashwords.com/books/category/1245/downloads/0/free/any/40
2023/01/19 01:45:48 Downloaded Mail Order Bride: Blinded By Love (Brides Of The West: Book 1) to /mnt/pvc/dataset/MailOrderBrideBlindedByLoveBridesOfTheWestBook1
2023/01/19 01:45:48 Downloaded Jackson: The Sons of Dusty Walker to /mnt/pvc/dataset/JacksonTheSonsofDustyWalker
2023/01/19 01:45:48 Downloaded The Treasure Bride to /mnt/pvc/dataset/TheTreasureBride
2023/01/19 01:45:48 Downloaded Mail Order Bride Margaret (Montana Destiny Brides, Book 1) to /mnt/pvc/dataset/MailOrderBrideMargaretMontanaDestinyBridesBook1
2023/01/19 01:45:48 Downloaded Stage West - David to /mnt/pvc/dataset/StageWestDavid
2023/01/19 01:45:48 Downloaded Cowboy Paradise to /mnt/pvc/dataset/CowboyParadise
2023/01/19 01:45:48 Downloaded Learning To Love (Carson Hill Ranch: Book 1) to /mnt/pvc/dataset/LearningToLoveCarsonHillRanchBook1
2023/01/19 01:45:48 Downloaded Ty Hard to /mnt/pvc/dataset/TyHard
2023/01/19 01:45:48 Downloaded Historical Cowboy Romance Two Book Box Set - Mail Order Brides to /mnt/pvc/dataset/HistoricalCowboyRomanceTwoBookBoxSetMailOrderBrides
2023/01/19 01:45:48 Downloaded Maralie to /mnt/pvc/dataset/Maralie
2023/01/19 01:45:48 Downloaded December Love to /mnt/pvc/dataset/DecemberLove
2023/01/19 01:45:48 Downloaded A Cowboy Sunrise to /mnt/pvc/dataset/ACowboySunrise
2023/01/19 01:45:48 Downloaded No More Tears to /mnt/pvc/dataset/NoMoreTears
2023/01/19 01:45:48 Downloaded Lost in Texas to /mnt/pvc/dataset/LostinTexas
2023/01/19 01:45:48 Downloaded Blame it on Texas to /mnt/pvc/dataset/BlameitonTexas
2023/01/19 01:45:48 Downloaded Revenge Requires Two Graves to /mnt/pvc/dataset/RevengeRequiresTwoGraves
2023/01/19 01:45:48 Downloaded Mending Fences (Texas Heat: Book 1) to /mnt/pvc/dataset/MendingFencesTexasHeatBook1
2023/01/19 01:45:48 Downloaded 3 Book Romance Bundle: "Love in the Jungle" & "Falling for the Bull Rider" & "Flown by the Billionaire" to /mnt/pvc/dataset/3BookRomanceBundleLoveintheJungleFallingfortheBullRiderFlownbytheBillionaire
2023/01/19 01:45:48 Downloaded Maddy's Oasis to /mnt/pvc/dataset/MaddysOasis
2023/01/19 01:45:49 Downloaded An Unexpected Widow (The Colorado Brides Series) to /mnt/pvc/dataset/AnUnexpectedWidowTheColoradoBridesSeries
2023/01/19 01:45:49 Downloaded Stage West - Dalton to /mnt/pvc/dataset/StageWestDalton
2023/01/19 01:45:49 Downloaded Ridge to /mnt/pvc/dataset/Ridge
2023/01/19 01:45:49 Downloaded Mail Order Bride: The Irish Runaway to /mnt/pvc/dataset/MailOrderBrideTheIrishRunaway
2023/01/19 01:45:49 Downloaded Mail Order Bride: Westward Winds (Montana Mail Order Brides: Book 1) to /mnt/pvc/dataset/MailOrderBrideWestwardWindsMontanaMailOrderBridesBook1
2023/01/19 01:45:49 Downloaded Texas Rose to /mnt/pvc/dataset/TexasRose
2023/01/19 01:45:49 Downloaded Forever His (A 30 Book Steamy Contemporary Romance Bundle) to /mnt/pvc/dataset/ForeverHisA30BookSteamyContemporaryRomanceBundle
2023/01/19 01:45:49 Downloaded Silver Heart (Historical Western Romance) to /mnt/pvc/dataset/SilverHeartHistoricalWesternRomance
2023/01/19 01:45:49 Downloaded Cowboys for Christmas to /mnt/pvc/dataset/CowboysforChristmas
2023/01/19 01:45:49 Downloaded Dream Kisses to /mnt/pvc/dataset/DreamKisses
2023/01/19 01:45:49 Downloaded Abby: Mail Order Bride (Unconventional Series #1) to /mnt/pvc/dataset/AbbyMailOrderBrideUnconventionalSeries1
2023/01/19 01:45:49 Downloaded Make Mine a Cowboy to /mnt/pvc/dataset/MakeMineaCowboy
2023/01/19 01:45:49 Downloaded Chase and Seduction to /mnt/pvc/dataset/ChaseandSeduction
2023/01/19 01:45:49 Downloaded Stage West - Lindsay to /mnt/pvc/dataset/StageWestLindsay
2023/01/19 01:45:49 Downloaded Violet's Mail Order Husband (Montana Brides #1) to /mnt/pvc/dataset/VioletsMailOrderHusbandMontanaBrides1
2023/01/19 01:45:49 Downloaded Texas Tornado to /mnt/pvc/dataset/TexasTornado
2023/01/19 01:45:49 Downloaded 3 Book Romance Bundle: "Her Last Love Affair" & "Loving Him Peacefully" & "Unwelcome Reunion" to /mnt/pvc/dataset/3BookRomanceBundleHerLastLoveAffairLovingHimPeacefullyUnwelcomeReunion
2023/01/19 01:45:49 Downloaded Hot in the Saddle to /mnt/pvc/dataset/HotintheSaddle
2023/01/19 01:45:49 Downloaded The Callahans (Prequel - Tempted By A Texan Series) to /mnt/pvc/dataset/TheCallahansPrequelTemptedByATexanSeries
2023/01/19 01:45:49 Downloaded Love on the Ranch to /mnt/pvc/dataset/LoveontheRanch
2023/01/19 01:45:49 Downloaded Western Romance: Cowboy Romance: Sally and Evan: Clean Slate (Western Historical Short Story Romance) to /mnt/pvc/dataset/WesternRomanceCowboyRomanceSallyandEvanCleanSlateWesternHistoricalShortStoryRomance
2023/01/19 01:45:49 Downloaded Kate to /mnt/pvc/dataset/Kate
2023/01/19 01:45:49 Downloaded At the Cowboy's Mercy to /mnt/pvc/dataset/AttheCowboysMercy
2023/01/19 01:45:49 Downloaded Romance on the Ranch to /mnt/pvc/dataset/RomanceontheRanch
2023/01/19 01:45:49 Downloaded Big Sky Blue to /mnt/pvc/dataset/BigSkyBlue
2023/01/19 01:45:49 Downloaded 3 Book Romance Bundle: "Loving The Bull Rider" & "Cowboy Down Under" & "The Escort Next Door" to /mnt/pvc/dataset/3BookRomanceBundleLovingTheBullRiderCowboyDownUnderTheEscortNextDoor
2023/01/19 01:45:49 Downloaded Stranded, Stalked And Finally Sated to /mnt/pvc/dataset/StrandedStalkedAndFinallySated
2023/01/19 01:45:49 Downloaded Mail Order Bride: Hannah's Dilemma to /mnt/pvc/dataset/MailOrderBrideHannahsDilemma
2023/01/19 01:45:49 Downloaded Perpetual Love to /mnt/pvc/dataset/PerpetualLove
2023/01/19 01:45:49 Downloaded Western Romance: Cowboy Romance: Love of A Good Cowboy (Western Historical Short Story Romance) to /mnt/pvc/dataset/WesternRomanceCowboyRomanceLoveofAGoodCowboyWesternHistoricalShortStoryRomance
2023/01/19 01:45:50 Downloaded Once Upon The Prairie (The Brides Of Courage, Kansas, Book 1) to /mnt/pvc/dataset/OnceUponThePrairieTheBridesOfCourageKansasBook1
2023/01/19 01:45:50 Downloaded Alma's Mail Order Husband (Texas Brides Book 1) to /mnt/pvc/dataset/AlmasMailOrderHusbandTexasBridesBook1
2023/01/19 01:45:50 Downloaded 3 Book Romance Bundle: "Loving His Cowgirl" & "Love, Forgiveness & Horseshoes" & "Loving the Escort" to /mnt/pvc/dataset/3BookRomanceBundleLovingHisCowgirlLoveForgivenessHorseshoesLovingtheEscort
2023/01/19 01:45:50 Downloaded A Cowboy's Love to /mnt/pvc/dataset/ACowboysLove
2023/01/19 01:45:50 Downloaded Contemporary Cowboy Romance 3 Book Box Set to /mnt/pvc/dataset/ContemporaryCowboyRomance3BookBoxSet
2023/01/19 01:45:50 Downloaded Cry of the West: Hallie (Finding Home Series #1) to /mnt/pvc/dataset/CryoftheWestHallieFindingHomeSeries1

I found a workaround that downloads the dataset as expected into a K8s PVC.
The workaround was to roll a new docker image from scratch and then use it in finetune-download-dataset.yaml.
$ cat Dockerfile
FROM golang:latest
WORKDIR /app
COPY . .
WORKDIR /app/cmd/smashwords-downloader
RUN go build -o main main.go
ENTRYPOINT ["./main"]

That being said, it still isn't clear why the original image fails.  I'll probably just use my workaround for the time being.  Closing this issue.

@parallelo Thank you for reporting this! We'll figure this out and update the Docker image and/or documentation accordingly.

Completed.


WIP - Agpush 1621 promises

This is pretty much a total rewrite of the sender.
More to come,  just getting travis setup

Changes Unknown when pulling ebb733ad35ba1ef596651f1a749177c54d4594c4 on lholmquist:AGPUSH-1621-promises into ** on aerogear:master**.

Changes Unknown when pulling b8b825fab3f4c61cf511a732575c6c567c9500fe on lholmquist:AGPUSH-1621-promises into ** on aerogear:master**.

Changes Unknown when pulling b8b825fab3f4c61cf511a732575c6c567c9500fe on lholmquist:AGPUSH-1621-promises into ** on aerogear:master**.

Looks good :) Does it need a minimum version of Node ? (asking for a friend)

@sebastienblanc i believe the minimum is 4 for this.  because of the Arrow Functions and WeakMap,
looks like i have travis testing on 5, i will change this to be 4.
i'm adding the old tests back in,  so lets no merge until those are in too

Changes Unknown when pulling f2d1a10bed1d6338142413a572824f7cd6436d4b on lholmquist:AGPUSH-1621-promises into ** on aerogear:master**.

Changes Unknown when pulling a78003c2ea652645dc074ea487492e5545fbb994 on lholmquist:AGPUSH-1621-promises into ** on aerogear:master**.

Changes Unknown when pulling 35338eba108692dd1a1fe102aee830dadf625417 on lholmquist:AGPUSH-1621-promises into ** on aerogear:master**.

Changes Unknown when pulling 35338eba108692dd1a1fe102aee830dadf625417 on lholmquist:AGPUSH-1621-promises into ** on aerogear:master**.

@sebastienblanc @matzew i think this is ready to go.
i think once we merge this, we should probably do a 0.13.0 release.  then i can blog about it, then perhaps we do a 1.0.0 .  I feel like i want these changes to "sink in" with devs first, before going straight to a 1.0.0 since there have been major changes

👍

@matzew coolio, i'll probably merge later today, and get a release out


There was a problem with the selected skills response...

Hi,
YouTube API working fine.
I can see traffic hitting my Google Search API, but I just can't get the images to load.
CSE setup as per the documentation, and CSE ID and API key both in the keys.json file.
Any help appreciated.
Thanks

@cd360 did you enable image search in your CSE? I made that simple mistake of not toggling it on.


feat: chapter 3 - the activity cycle

Chapter 3: The Activity Cycle
This pull request adds a new feature to the application.
Topics Covered

Rotating GeoQuiz
Activity States and Lifecycle Callbacks
Logging the Activity Lifecycle
Exploring How the Activity Lifecycle Responds to User Actions
Device Configuration Changes and the Activity Lifecycle

How to Test
To test the new feature, you can do the following:

Clone the repository.
Install the dependencies.
Run the application.
The new feature should be available.

Screenshots

Known Issues
There are no known issues with this pull request.
References
Reviewers
Thanks!

Looks good to me.


Issues with VS 2015 F# tooling to address in VS "15" F# tooling

I'm not sure if this is the right forum, and I'm not sure if this has already been addressed elsewhere, but I wanted to bring up some known issues with the current VS F# tooling and try to get some insight into whether they are being addressed in the work for VS "15" F# tooling, and if not, try to provide some motivation for doing so.
Native Support for Web Project templates and Web Item templates
The F# Community Templates have been indispensable in my attempts to introduce F# at work. However, despite valiant efforts, the templates retain a certain brittleness stemming from things like having to reference a specific version of the MSBuild.Extension.Pack in a specific location and the use of registry "hacks" to allow use of Web Item templates to add items to the project. Both these workarounds have their issues as the reference to MSBuild.Extension.Pack will show up as an upgrade-able or outdated package in either NuGet or Paket and if upgraded will break the build, as will invoking MSBuild from a unexpected location which seems to break resolution of the path to MSBuild.Extension.Pack. As for the Web Item templates, they remain a constant source of problems as even with the registry hacks (whether done manually, or through scripts, or through the extension) the Web Item templates have a tendency to disappear at some point, perhaps due to VS config/option changes or extension installs/upgrades/uninstalls. It would be immensely empowering if more fundamental support for F# Web Project templates and Web Item templates could be arranged that obviate the need for the MSBuild.Extension.Pack and registry hack workarounds.
supporting links
https://visualstudio.uservoice.com/forums/121579-visual-studio-ide/suggestions/2313421-more-f-project-types
https://github.com/fsprojects/FSharpCommunityTemplates/issues/51
https://github.com/fsprojects/FSharpCommunityTemplates/issues/100
Native Support for File & Folder management, incl Add/Rename/Remove Folder, Drag n Drop, Copy/Paste, Show All Files and Include in Project
I can't begin to express how much I appreciate the work the community has done on the Visual F# Power Tools, however, one of the less stable features has to be Folder Organization. In fact, the maintainers themselves say the following

This feature is disabled by default. Because there are known issues with F# Project System in Visual F# Tools, folder organization may not work 100% correctly in all cases.
We do not advice you to introduce complicated folder structure within F# projects. You should keep number of folders within your project as low as possible.

I know that there are points to be made on how code organization in F# is different from more imperative languages but I think this is a bit of a red herring. This is basically like saying that limited file and folder management is a feature of the language tooling because it is more idiomatic to use less files and folders in the language. File and folder management is such a basic part of editing code, and while there are legitimate reasons why it has been challenging to sort this out, it really should be a top priority for the next version of VS F# tooling. Despite it being such a minor thing, it nonetheless becomes a constant sticking point anytime I show F# non-trivial apps to co-workers (in fact, it is precisely because it is a minor thing that I get particularly pitiable looks whenever I try to trivialize the need to my coworkers since they find it hard to accept that one should move on with coding as if file and folder management did not matter).
supporting links
https://visualstudio.uservoice.com/forums/121579-visual-studio-ide/suggestions/6077963-add-folders-for-visual-f-projects
https://visualstudio.uservoice.com/forums/121579-visual-studio-ide/suggestions/7031159-better-support-for-fsproj
https://visualstudio.uservoice.com/forums/121579-visual-studio-ide/suggestions/11043387-enable-drag-and-drop-to-change-compilation-order-i
https://vfpt.uservoice.com/forums/247560-general/suggestions/8089230-add-existing-folder-to-project
https://fsprojects.github.io/VisualFSharpPowerTools/folderorganization.html
https://github.com/fsprojects/VisualFSharpPowerTools/issues/116
Manual rebuild necessary in order to detect changes from other files
This one is not as bad the other two, however, it does kinda get in the way of attaining flow. The usual response I see is that in F# you typically start with everything in a script file and then once you have it working correctly, then you break it up into files...but not into too many files. This also seems like a bit of a red herring. While I find the script workflow very productive, there is no reason why working with code across files cannot also be productive.

Please use https://visualstudio.uservoice.com/forums/121579-visual-studio-ide/category/30935-languages-f-tools to request and vote on VS IDE features


empty modules & font config

I'm trying to setup polybar 3.0.4 with a font config as such...
font-0 = "Noto Sans:pixelsize=12;1"
font-1 = "Ionicons:pixelsize=12;0"

but it seems the only way my modules render is if i use the fixed font very specifically for font-0, but then ionicons still does not load.
is this a known issue, or am i doing something wrong here? using FC_DEBUG=1 everything seems to be going fine. running polybar with --log=info seems to be fine as well. the only warning i see is moduel/wlan: Failed to query interface..., but i know that's expected because of the transition away from wireless_tools

What happens if you replace pixelsize with size?

Other than that I would check the fontconfig env (usually /etc/fonts/conf.d)

@jaagr ahh yess, thank you. changing to size works just fine.

Great! I'll try to remember to add that to the wiki. Tricky one to figure out.


Missing Frames In Gallery App

In a lot of places in the gallery app i'm seeing missing frames. Expected animations to be smooth but this is not always the case.
Steps to Reproduce
Goto Shrine, click on the sneakers, then press back: 26 fps.
(Also saw this in the pesto demo, and the dialog boxes animation seems slow (no hard data))
Device: Galaxy S6
Flutter Doctor
[✓] Flutter (on Mac OS, channel alpha)
• Flutter at /Users/tjerkw/dev/tools/flutter
• Framework revision 9a0a0d9903 (11 days ago), engine revision f8d80c4617
[✓] Android toolchain - develop for Android devices (Android SDK 24.0.0-preview)
• Android SDK at /Users/tjerkw/Library/Android/sdk
• Platform android-N, build-tools 24.0.0-preview
• Java(TM) SE Runtime Environment (build 1.8.0_74-b02)
[✓] iOS toolchain - develop for iOS devices (Xcode 7.3.1)
• XCode at /Applications/Xcode.app/Contents/Developer
• Xcode 7.3.1, Build version 7D1014
[x] Atom - a lightweight development environment for Flutter
x Atom not installed; download at https://atom.io.
Logs and Crash Reports
See screenshot.

For more information about diagnosing and reporting Flutter bugs, please see https://flutter.io/bug-reports/.

Thanks for the report! We're still working on performance optimizations.
See also: https://github.com/flutter/flutter/issues?q=is%3Aopen+is%3Aissue+label%3A"customer%3A+gallery"+label%3A"⚠+astounding+performance"
Keep the feedback coming!

Really appreciate the testing. I'm going to close this particular issue because we're tracking individual Shrine perf issues in other bugs. Definitely interested in how Flutter behaves on a variety of different devices.


Add parameter to allow for prefixing all generated types

Please Add parameter to allow for prefixing all generated types
We are looking at using graphql-liftoff in conjunction with schema stitching from multiple swagger files and have some type naming collisions occurring.  i.e. ...system1/api/user & system2/api/user in two separate swagger files both generate a User typeDef.  We would like to suggest an optional parameter be added that allows for prefixing resulting generated typeDefs to prevent these collisions

Apparently this functionality already exists. Closing this issue.
export function usage(parser: string): void {     const args = [         {             short: 'c',             long: 'camel-case',             description: 'convert all keys from snake_case to camelCase'         },         {             short: 'p',             long: 'prefix-type-name',             description: '[--prefix-type-name|-prefix]="prefix" prefix type names'         },         {             short: 'y',             long: 'yaml',             description: 'parse swagger specification of YAML format'         }     ]     parserUsage(parser, args) }


Blocked: ECDSA Signature Verification in PKC

Description
This PR adds ECDSA signature verification in the private kernel circuit. This is necessary as the final transaction from a client (i.e. the user) needs validation that the intended user has initiated the intended transaction with correct inputs.
C++ Changes Overview
To implement ECDSA signature verification in the private kernel circuit, we add signing_key to the signed_tx_request:
template <typename NCT> struct SignedTxRequest {
    TxRequest<NCT> tx_request{};
    secp256k1_point signing_key;
    Signature signature{};
}

From here on, we will use $S\in\mathbb{G}_{\textsf{secp256k1}}$ to denote the signing key. We use the ECDSA signing algorithm to ensure that the existing Ethereum public keys can sign transactions without needing to generate any new keys. The private key $s\in\mathbb{F}_{q, \textsf{secp256k1}}$ corresponding to the signing key $S$ is used to sign a transaction.
message = tx_request.hash();
signature = crypto::ecdsa::construct_signature(message, private_key)

This signature then needs to be verified in the private kernel circuit.
verification_result = crypto::ecdsa::verify_signature(message, signing_key, signature)

More on the ECDSA algorithms can be found in this discourse post.
In addition to the signature verification, we also need to check if the Ethereum address correctly maps to the public key.
compute_ethereum_address(signed_tx_request.signing_key) == tx_request.from

We assume that the from field in the tx_request is an ethereum address and ensure in the circuit that this address indeed was computed from signing_key.
TS Changes Overview
Obviously, we need to add a signingKey to signedTxRequest to replicate the ABI structure from C++. For this, we implement a keyStore for the secp256k1 curve. Further, while running the PKC, it may not always have access to the Ethereum public key of the sender. We might only have access to the Ethereum address and the app sends a signature to our TS code to initiate PKC. So we needed to implement public key recovery from ECDSA signature in C++. We expose a C++ method called crypto::ecdsa::recover_public_key to TS for TS to compute the signing key from a signature.
Checklist:

[x] I have reviewed my diff in github, line by line.
[x] Every change is related to the PR description.
[x] I have linked this pull request to the issue(s) that it resolves.
[x] There are no unexpected formatting changes, superfluous debug logs, or commented-out code.
[x] The branch has been merged or rebased against the head of its merge target.
[x] I'm happy for the PR to be merged at the reviewer's next convenience.

I guess this PR has been superseded by 'account abstraction'?
Are there parts of this PR which would be useful to keep, for use by account contracts?

@suyash67 ^ thoughts?

No longer relevant in light of full account abstraction


[BUG] ReadMe is not up to date

ReadMe is missing:

Links to Downloadpage at "Install Guide"
Guide is missing clearing options
Rename Guide to User Guide
Errors are not at the bottom
Ads "___ to description"
Replace Header with Icon+Title as one picture in Century Gothic to match the UI of the program
Add last commit ()
Add commits since release ()

Fixed for 1.5 release


[dashboard fix] force refresh charts under tabs

when user created top level tabs and place charts under it, initial page load won't fetch those charts data. But if user force refresh dashboard, currently we force refresh all charts even not visible ones. It cause js exception because some attributes are not well initialized.
updated solution: when user force refresh whole dashboard, don't fetch data for charts that haven't been rendered.

@graceguo-supercat what do you think about a different fix where we simply don't fetch data for charts that haven't been rendered? that would reduce the query time as well.

Codecov Report

Merging #5291 into master will decrease coverage by <.01%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master    #5291      +/-   ##
==========================================
- Coverage    61.3%   61.29%   -0.01%
==========================================
  Files         368      368
  Lines       23455    23457       +2
  Branches     2715     2716       +1
==========================================
  Hits        14379    14379
- Misses       9064     9066       +2
  Partials       12       12

Impacted Files
Coverage Δ

superset/assets/src/chart/chartAction.js
50.45% <0%> (-0.93%)
:arrow_down:

Continue to review full report at Codecov.

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


Theme work with CPS plugin?

Hi, the theme work with CPS plugin?

Hi, just try and see https://tryitands.ee/


cmd/compile: misleading compiler error

What version of Go are you using (go version)?

$ go version
go version devel go1.18-eaf0405 Wed Feb 16 21:34:51 2022 +0000 darwin/amd64

Does this issue reproduce with the latest release?
Yes
What did you do?
https://go.dev/play/p/PzbJGM7V9dn?v=gotip
 package main

 type RC[RG any] interface {
 	~[]RG
 }

 type Fn[RCT RC[RG], RG any] func(RCT)

 type FFn[RCT RC[RG], RG any] func() Fn[RCT]

 type F[RCT RC[RG], RG any] interface {
 	Fn() Fn[RCT]
 }

 type concreteF[RCT RC[RG], RG any] struct {
- 	makeFn FFn[RCT]
+ 	makeFn FFn[RCT, RG]
 }

 func (c *concreteF[RCT, RG]) Fn() Fn[RCT] {
 	return c.makeFn()
 }

 func main() {}

What did you expect to see?
Nothing.
What did you see instead?
./prog.go:20:9: invalid operation: cannot call non-function c.makeFn (variable with invalid type)

If I change the line from the red version to the green version (adding the explicit type), then the compilation error disappears. I expected the compiler to figure out RG since it was part of the definition of RCT.
If type inference isn't able to figure this out, then it would be good to fix the compiler error to be less confusing. makeFn is a function, the error is actually that the compiler can't infer how to instantiate it.
Notes

This isn't actually quite the error I originally ran into, but it's similar enough that it's likely related
I ran into https://github.com/golang/go/issues/51232 while trying to distill this, if that's helpful

There is no form of type inference that will figure out the additional type argument for FFn.  This code is not valid according to the current rules.
That said I agree that the error message is pretty bad.

@ianlancetaylor something that's a bit confusing about this is that it only seems to be a compile error when I actually call makeFn. See the following two examples that do not result in compiler errors with the same struct definition:

Not using it at all
Returning makeFn is fine

Is this expected behavior? It's a bit weird to me that changing something outside of the struct definition can magically cause a compilation error in a struct definition that hasn't changed.


Add StreamingRequestMiddleware to stream incoming requests, mark StreamingServer as internal

This changeset adds a new StreamingRequestMiddleware to stream incoming requests and marks the existing StreamingServer as internal:
// unchanged: Server class is unchanged
$server = new React\Http\Server($handler);

// old: advanced StreamingServer is now internal only
$server = new React\Http\StreamingServer($handler);

// new: use StreamingRequestMiddleware instead of StreamingServer
$server = new React\Http\Server(array(
     new React\Http\Middleware\StreamingRequestMiddleware(),
     $handler
));

I've tried to keep the changeset as minimal as possible and most changes are in fact documentation only. See also each individual commit. Among others, this allows us to streaming the documentation and will allow us to improve default buffering behavior as discussed in #365/#360 and others. This will be filed as a follow-up PR once this PR is in.
Resolves #343

@jsor Thanks for spotting, updated :shipit:


[SPARK-17484] Prevent invalid block locations from being reported after put() exceptions

What changes were proposed in this pull request?
If a BlockManager put() call failed after the BlockManagerMaster was notified of a block's availability then incomplete cleanup logic in a finally block would never send a second block status method to inform the master of the block's unavailability. This, in turn, leads to fetch failures and used to be capable of causing complete job failures before #15037 was fixed.
This patch addresses this issue via multiple small changes:

The finally block now calls removeBlockInternal when cleaning up from a failed put(); in addition to removing the BlockInfo entry (which was all that the old cleanup logic did), this code (redundantly) tries to remove the block from the memory and disk stores (as an added layer of defense against bugs lower down in the stack) and optionally notifies the master of block removal (which now happens during exception-triggered cleanup).
When a BlockManager receives a request for a block that it does not have it will now notify the master to update its block locations. This ensures that bad metadata pointing to non-existent blocks will eventually be fixed. Note that I could have implemented this logic in the block manager client (rather than in the remote server), but that would introduce the problem of distinguishing between transient and permanent failures; on the server, however, we know definitively that the block isn't present.
Catch NonFatal instead of Exception to avoid swallowing InterruptedExceptions thrown from synchronous block replication calls.

This patch depends upon the refactorings in #15036, so that other patch will also have to be backported when backporting this fix.
For more background on this issue, including example logs from a real production failure, see SPARK-17484.
How was this patch tested?
Two new regression tests in BlockManagerSuite.

/cc @ericl @srinathshankar for review

Test build #65330 has started for PR 15085 at commit 6609c2a.

Test build #65330 has finished for PR 15085 at commit 6609c2a.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/65330/
Test PASSed.

Test build #65337 has started for PR 15085 at commit f69a5ea.

Test build #65339 has started for PR 15085 at commit 8ab3108.

Ok, lgtm then
On Tue, Sep 13, 2016, 3:48 PM Apache Spark QA<EMAIL_ADDRESS>wrote:

Test build #65339 has started
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/65339/consoleFull
for PR 15085 at commit 8ab3108
https://github.com/apache/spark/commit/8ab3108569e5812e0e81b77e3dfb0be1f7e557ce
.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/apache/spark/pull/15085#issuecomment-246850430, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAA6Sl9ErPKKdmjfmFXccG2eAwr92H20ks5qpyhMgaJpZM4J8FrF
.

Test build #65339 has finished for PR 15085 at commit 8ab3108.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/65339/
Test PASSed.

Test build #65342 has started for PR 15085 at commit f60c4be.

Test build #65337 has finished for PR 15085 at commit f69a5ea.

This patch fails from timeout after a configured wait of `250m`.
This patch merges cleanly.
This patch adds no public classes.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/65337/
Test FAILed.

Merged build finished. Test FAILed.

Test build #65342 has finished for PR 15085 at commit f60c4be.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/65342/
Test PASSed.

Merged build finished. Test PASSed.

Test build #65410 has started for PR 15085 at commit 47f9636.

Test build #65410 has finished for PR 15085 at commit 47f9636.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/65410/
Test PASSed.

I'm going to merge this to master and branch-2.0. Thanks for reviews @ericl and @srinathshankar!


Added some more color to IP addresses

Please confirm accuracy. Wanted to better tie "why should I care" to this definition. Carly happy to talk through my thoughts here if helpful.
Description of the change:
Reason for the change:
Link to original source:

Closes #

Hello @lweinig,Thanks again for the PR! We appreciate your contribution and look forward to                                              continued collaboration. Thanks!                                             Team SendGrid DX


Update documentation

Description of what I changed
Fix #493

Moved HAPI examples first, and moved OpenMRS examples below
Updated commands and made sure the pipelines ran
Removed deprecated docker compose file

E2E test

TESTED:
Please replace this with a description of how you tested your PR beyond the
automated e2e/unit tests.
Checklist: I completed these to help reviewers :)

[x] I have read and will follow the review process.

[x] I am familiar with Google Style Guides for the language I have coded in.
No? Please take some time and review Java and Python style guides.

[x] My IDE is configured to follow the Google code styles.
No? Unsure? -> configure your IDE.

[ ] I have added tests to cover my changes. (If you refactored existing code that was well tested you do not have to add tests)

[x] I ran mvn clean package right before creating this pull request and added all formatting changes to my commit.

[x] All new and existing tests passed.

[x] My pull request is based on the latest changes of the master branch.
No? Unsure? -> execute command git pull --rebase upstream master

Thanks for the review @bashir2 ! Implemented all the suggested changes


grab clicks on svg elements

Hi and thanks for this plugin!
I am successfully using this to track events on buttons and anchors.
I wish also to grab links on SVGElement with nodeName: image which do not trigger a pageview. Basically elements of a d3js based data visualization.
I'm using this code
.plugin('aurelia-google-analytics', config => {
      config.init('xxxxxx');
      config.attach({
        logging: {
          enabled: true, // Set to `true` to have some log messages appear in the browser console.
        },
        pageTracking: {
          enabled: true, // Set to `false` to disable in non-production environments.
          // Optional. By default it tracks clicks on anchors and buttons.
          filter: (element) => {
            return (element instanceof HTMLElement &&
              (element.nodeName.toLowerCase() === 'a' ||
                element.nodeName.toLowerCase() === 'button')) ||
              (element instanceof SVGElement &&
                (element.nodeName.toLowerCase() === 'image' ||
                element.nodeName.toLowerCase() === 'circle' ||
                element.nodeName.toLowerCase() === 'line'));
          },
        },
        clickTracking: {
          enabled: true, // Set to `false` to disable in non-production environments.
        },
      });
    });

I added the proper analytics attributes with
nodes.selectAll('.node__image')
        .attr('xlink:href', d => d.media)
        .attr('data-analytics-category', THAT.id)
        .attr('data-analytics-action', 'node')
        .attr('data-analytics-label', d => d.id)
        .on('click', nodeClick)

I also tried the same with svg:line and svg:circle elements.
But I can't manage to generate any of those events yet.

Hi, would you mind providing sample HTML?
On Nov 21, 2017 6:19 PM, "Miro Marchi"<EMAIL_ADDRESS>wrote:

Hi and thanks for this plugin!
I am successfully using this to track events on buttons and anchors.
I wish also to grab links on SVGElement with nodeName: image which do not
trigger a pageview. Basically elements of a data visualization.
I'm using this code
.plugin('aurelia-google-analytics', config => {
config.init('UA-92351657-1');
config.attach({
logging: {
enabled: true, // Set to true to have some log messages appear in the browser console.
},
pageTracking: {
enabled: true, // Set to false to disable in non-production environments.
// Optional. By default it tracks clicks on anchors and buttons.
filter: (element) => {
return element instanceof HTMLElement || SVGElement &&
(element.nodeName.toLowerCase() === 'a' ||
element.nodeName.toLowerCase() === 'button' ||
element.nodeName.toLowerCase() === 'image');
},
},
clickTracking: {
enabled: true, // Set to false to disable in non-production environments.
},
});
});
But I can't manage to generate the event yet.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/miguelzakharia/aurelia-google-analytics/issues/28,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AApp7BbfwqlJnG5eBHS7TNBRbfvgOXe5ks5s41pogaJpZM4Qmohd
.

Sure, thanks.
This is a simplified version of a one-node visualization. Node is a group containing circle, text and image with mask.
<svg id="EcosystemSvg" width="804" height="733">
    <rect opacity="0" height="733" width="804"></rect>
    <g id="main-group" width="804" height="733">
        <g id="graph-group" transform="translate(-509.2254622382578,-451.4287720825889) scale(2.24388696106097)">
            <g class="links-group"></g>
            <g class="nodes-group">
                <g id="node_1" transform="translate(402, 366.5)">
                    <circle class="node__circle" id="node_1_circle" r="31.335750000000004" style="fill: url(#radial-gradient_4);"></circle>
                    <defs>
                        <clipPath id="node_1_clip" class="node-clip" r="31">
                            <circle r="31"></circle>
                        </clipPath>
                    </defs>
                    <text id="node_1_label" class="node-label" text-anchor="middle" dy="0" clip-path="url(#node_1_clip)" fill="#4f4c4d" y="0.6em" style="font-size: 7.83394px;">
                        <tspan x="0" dy="0em">Node title </tspan>
                    </text>
                    <image id="node_1_image" class="node__image" preserveAspectRatio="xMidYMid slice" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="media/20171122_122050_daffodil-2-wallpaper-3840x2160_sm.jpg" clip-path="url(#node_1_clip)" data-analytics-category="graph" data-analytics-action="bubble" data-analytics-label="node_1" width="68" height="68" x="-34" y="-34"></image>
                </g>
            </g>
        </g>
    </g>
</svg>

Ok, I think I know what the problem is. The criteria object needs to be expanded to include an isSvgElement property and hasTrackingInfo needs to be modified to take into consideration an SVG. Once that is complete, you will be able to override the filter property in clickTracking to include svg in addition to a and button.
I probably will not have a chance to complete the changes tonight, but I should have something by the end of this week.

A few days turned into several months 😞
I have the code written (branch issue-28) and preliminary tests look good. I ran into problems linking the plugin and I'm still working those out.


Use Service Registry Terms and Conditions check instead of Kafka

Feature or problem description
Use Service Registry Terms and Conditions check instead of Kafka - when creating Registry instance

on the UI side this is the tracker: https://issues.redhat.com/browse/MGDSTRM-5165

@paoloantinori This seems like it is resolved but we are missing technical details needed to implement it.
Is my understanding right?

this is actually outdated, since it's been fixed directly on the RHOSR UI:
a new user that tries to use the service, is going to be redirected to the correct SR terms and condition page.
But I know how to express this problem only in terms of the UI, I don't know what impacts it could have to the CLI and if it applies at all or not

Is terms event code the same: onlineService ?
https://github.com/redhat-developer/app-services-cli/blob/main/internal/build/build.go#L29-L32

Done


fix proxy configuration

use .curlrc

fix connection timeout

manager's default configuration is depend on https_proxy

pass timeout configuration.
it's not need for now.

and configured my $https_proxy.
so, i implemented nothing.


Split Form using *Elements and createPaymentMethod (lack of examples in documentation)

I can't figure out how to use createPaymentMethod with split form (separate elements)
It works fine with the single cardElement, but I don't understand the documentation, and I'm unable to replicate the example (I'm using NextJS).
As in the documentation, I have Checkoutform.js
async getPaymentMethod() {
    const { stripe } = this.props;
    const cardElement = this.props.elements.getElement('card');
    const { paymentMethod } = await stripe.createPaymentMethod({
      type: 'card',
      card: cardElement
    });
...

SplitFieldForm.js
import React, { Component } from 'react';
import {
  CardNumberElement,
  CardExpiryElement,
  CardCvcElement
} from 'react-stripe-elements';

class SplitFieldsForm extends Component {
  render() {
    return (
      <>
        <CardNumberElement id="card_number" />
        <CardExpiryElement id="card_expiry" />
        <CardCvcElement id="card_cvc" />
      </>
    );
  }
}

export default SplitFieldsForm;

I have tried various ways to 'getElement' separately, but just can't figure out a way to make it work. Is there a similar example that I could follow or more explicit documentation ? Thanks.

As Stripe.js can pull in other elements, you just have to give the first one, in this case, the cardNumber.
Documentation could mention it, it would save perhaps some time to other users.
async getPaymentMethod() {
    const { stripe } = this.props;
    const cardElement = this.props.elements.getElement('cardNumber');
    const { paymentMethod } = await stripe.createPaymentMethod({
      type: 'card',
      card: cardElement
    });

This should be added into the docs for sure.

This defo should be explained, wasted hours on this issue

Thanks for this ! I was also trying to figure this out. As we stand today the docs does not seems to be updated yet. The new Git repo sample works this way, but its not explicit that the others data (CVC, Expiry) are automatically pulled along with the number behind the scene

This defo should be explained, wasted hours on this issue

my support 🙌🏻

+1 on this defo need to be explained on the documentation

Why hasn't this been documented yet? Principle of Least Astonishment

Hi all, sounds like we reached a resolution here. We'll definitely consider this as a docs improvement to make.
I will close the issue for now -- people will still be able to find it, but the project has moved to React Stripe.js. I'll make sure this is tracked internally as a docs improvement task.


Potential error in BAM class

At line 46 in bam.py you multiply self.channel_att(in_tensor) and self.spatial_att(in_tensor) whereas the paper suggests that they should be added. Am I missing something or is this an error? If so, do you expect significant impact on the performance?

Yes, you are right. Our paper does have a few minor issues with the details, and everything should refer to our code. Thanks!


Remove jovyan user from docker images

Fixes #1067
Deploying with these 3 new images on Minikube results in this error:
INFO:qhub.provider.terraform:terraform apply took 4.189 [s]
INFO:qhub.provider.terraform:terraform=/tmp/terraform/1.0.5/terraform output directory=stages/06-kubernetes-keycloak-configuration
INFO:qhub.provider.terraform:terraform output took 0.351 [s]
/home/tyler/miniconda3/envs/qhub/lib/python3.9/site-packages/urllib3/connectionpool.py:1013: InsecureRequestWarning: Unverified HTTPS request is being made to host 'github-actions.qhub.dev'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
  warnings.warn(
/home/tyler/miniconda3/envs/qhub/lib/python3.9/site-packages/urllib3/connectionpool.py:1013: InsecureRequestWarning: Unverified HTTPS request is being made to host 'github-actions.qhub.dev'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
  warnings.warn(
Attempt 1 succeded connecting to keycloak and qhub realm=qhub exists
Keycloak service successfully started with qhub realm

Problem encountered: not enough values to unpack (expected 2, got 1)

Will take a look into this more tomorrow, but I don't think this error is related to the images themselves

I'm seeing the following error on deployment.
       File "/opt/conda/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 476, in checkout                                                                                │
│         rec = pool._do_get()                                                                                │
│       File "/opt/conda/lib/python3.7/site-packages/sqlalchemy/pool/impl.py", line 256, in _do_get                                                                                │
│         return self._create_connection()                                                                                │
│       File "/opt/conda/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 256, in _create_connection                                                                              │
│         return _ConnectionRecord(self)                                                                                │
│       File "/opt/conda/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 371, in __init__                                                                                │
│         self.__connect()                                                                                │
│       File "/opt/conda/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 666, in __connect                                                                                │
│         pool.logger.debug("Error on connect(): %s", e)                                                                                │
│       File "/opt/conda/lib/python3.7/site-packages/sqlalchemy/util/langhelpers.py", line 72, in __exit__                                                                                │
│         with_traceback=exc_tb,                                                                                │
│       File "/opt/conda/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 207, in raise_                                                                                │
│         raise exception                                                                                │
│       File "/opt/conda/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 661, in __connect                                                                                │
│         self.dbapi_connection = connection = pool._invoke_creator(self)                                                                                │
│       File "/opt/conda/lib/python3.7/site-packages/sqlalchemy/engine/create.py", line 590, in connect                                                                                │
│         return dialect.connect(*cargs, **cparams)                                                                                │
│       File "/opt/conda/lib/python3.7/site-packages/sqlalchemy/engine/default.py", line 597, in connect                                                                                │
│         return self.dbapi.connect(*cargs, **cparams)                                                                                │
│     sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) unable to open database file                                                                                │
│     (Background on this error at: https://sqlalche.me/e/14/e3q8)

Closing this in favor of #1089


Update de-de.all.json

Coverage remained the same at 24.341% when pulling<PHONE_NUMBER>0f43ccc7c4e763a669c394ec806ff9 on Lamppostmanufacturer:patch-3 into 8044336cf13194ba22ca78511f9bd3a6ddaebb77 on NyaaPantsu:dev.


Add animations library?

Animations make a website look cool. Suggestions:

react-spring
Framer Motion

I am always a huge fan of stuff like this lol

+1 for React-Spring

LottieFiles ✨ integration would be superb.


Suggestions for project names

parrent: #902
Suggesting project names
-odo project delete

every command that has --project flag

@kadel I want to work on this as #939 will need this to be completed first

why #939 needs this?


Adjust Adumbral glory value depending on day phase

Meets criteria of issue #206 :

When a small, medium or large adumbral mob dies during night, the full glory value amount should be given to all nearby players (current functionality that should not change).
When a small, medium or large adumbral mob dies during dusk or dawn, then 66% of the full glory value amount should be given to all nearby players.
When a small, medium or large adumbral mob dies during day, then 33% of the full glory value amount should be given to all nearby players.

Revised the code mentioned, tested at all 3 day phases and worked as intented


add Tor support (plus a few random changes)

Tor clients cannot send or receive any CTCP messages (other than ACTION).

Looks alright, I'm interested to see how we'll extend this into a more general connect-class system when we integrate things like DNSBL checking, but that'll come down the line. Thanks for the change as always :)


Unable to load (in Mono/C#/.NET version of Godot)

Same issue as the guys posted above

Unable to load addon script from path: 'res://addons/waterways_net/WaterwaysPlugin.cs'.

Except I followed all the steps mentioned in the docs, including installing .NET 8.0 and creating a C# solution

It's likely the aftermath of using .NET version of Godot. First of all be sure that you've created a solution with Project -> Tools -> C# -> Create C# Solution and make sure that it is using .NET 8.0 (in .csproj). After that just build the project and it will generate .NET binaries, now reload Godot and enable the addon - it should now read the scripts correctly.

What exactly does 'build the project' mean in this? Is there another step I'm missing?
Thank you for the help.

Figured it out :) my bad. Just needed to click 'build' in the top right


Nested quote in French Tapuscrit style

Zotero version: 5.0.97-beta.51+6206209ed
BBT version:  5.6.2
Support log ID: ~HK2K2Z6B-euc~ (needs a -refs log ID)
Exporter used: BibLaTeX
Expected behavior: opening and closing quotation marks in a sentence with quotation marks.
Actual behavior: when there is a need to put quotation marks in a title of an article with French quotation marks, two closing quotation marks appear, even at the beginning of the quoted text.
Illustration:

The log you added is not the right kind of log. I need a -refs log.

closing for inactivity


Hint: epoll Update regarding Windows.

Regarding the following statement:

Please note that this module has a dependency on epoll and that currently it is only possible to build and develop the module on Linux systems.

Is just want to point out the following epoll issue
https://github.com/fivdi/epoll/issues/31
Maybe thats a "fix" for that?
Context: I also develope on a windows machine but can't use npm install rpi-gpio as its explodes with an error.

Hi, thanks for pointing this out. I've pushed a branch epoll-2.0.9 that bumps to this version, which includes that fix. Do you have time to give it a test please? I don't have time to get a Windows system set up for dev at the moment.
npm install git://github.com/JamesBarwell/rpi-gpio.js.git#epoll-2.0.9 --save

Another possible option (not one I've tried myself) is to use a docker-based dev environment running on Windows (or other platforms!).

Sure I will as soon as I have time

Might take a little longer.

<EMAIL_ADDRESS>install correctly on Windows 10, just tested it.
But I have problem installing latest version of rpi-gpio on Raspberry/Raspbian/Armv71:
Looks like this:
pi@raspberrypi:~/repos/rpi-led-local-server-nodejs $ npm i rpi-gpio

><EMAIL_ADDRESS>install /home/pi/repos/rpi-led-local-server-nodejs/node_modules/rpi-gpio/node_modules/epoll
> node-gyp rebuild

make: Entering directory '/home/pi/repos/rpi-led-local-server-nodejs/node_modules/rpi-gpio/node_modules/epoll/build'
  CXX(target) Release/obj.target/epoll/src/epoll.o
In file included from ../../nan/nan.h:192:0,
                 from ../src/epoll.cc:15:
../../nan/nan_maybe_43_inl.h: In function ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’:
../../nan/nan_maybe_43_inl.h:112:15: error: ‘class v8::Object’ has no member named ‘ForceSet’
   return obj->ForceSet(isolate->GetCurrentContext(), key, value, attribs);
               ^~~~~~~~
In file included from ../src/epoll.cc:15:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Valu

Thanks for testing.
I'm a bit confused - from your output there, it looks like it's trying to install an older version of epoll. I can't see which version of node you're on, but we need to be on epoll 2.x to work in node 10 (see: https://github.com/fivdi/epoll/issues/27). Do you have a package.json in there referencing the old 1.x version perhaps?
I just tried it myself, running npm i rpi-gpio in a clean directory, and it installs epoll 2.0.9.


mapEventToState removed in favor of on

https://bloclibrary.dev/#/migration?id=❗🧹-remove-deprecated-apis

Hello @LennyLip, the project and the articles have been updated to the latest changes.


引用H5对象报错

ready: function () {
var file = new FileReader()
file.readAsDataURL(this.files[0].file)
}
error  no-undef  'FileReader' is not defined

I really can't see how this is vue-cli related.
Otherwise, if you're using FileReader see browser compatibility table here: https://developer.mozilla.org/en-US/docs/Web/API/FileReader

I guess it's just an eslint error 😓


add win arm64 dist

fix https://github.com/jupyterlab/jupyterlab-desktop/issues/735 . I built it with this command and it works.

thank you @xgdgsc !


testing pull request

testing pull request

Hi Doris-
Please put your exercises into a separate directory (called, e.g., dorislee) inside the exercises folder (so we can keep peoples' solutions separately organized).
Thanks,
Tim

General comment: please make all your programs command-line executable, so they can be run like this:
$ ./make_sentence.py

rather than having to do
$ python make_sentence.py

If you're working on Windows, it might work on your computer, but this will not work on mac/linux as you have it now.
make_sentence.py
Here's an example of me running this; can you fix it so it behaves as it should?
$ python make_sentence.py
Enter a word (. ! or ? to end): yo
Enter a word (. ! or ? to end): what's
Enter a word (. ! or ? to end): up
Enter a word (. ! or ? to end): ?
yowhat'sup?

Also within the code, you define a variable called str.  This is a big no-no, as this is the name of the string type in Python!  So within this script you've overwritten the string type, which is a pretty nasty action.  If you noticed that str turned a funny color in your code editor, that's why!
When you test something for equality/inequality, etc., it's good style to have spaces around the test operator; e.g., word != '!' rather than word!='!'.  Helps readability a lot.
sum_digits.py
This is not implemented as requested in the exercise; I would like to be able to run, e.g.,
$ ./sum_digits.py 4

or
$ ./sum_digits.py 4 20

from the command line and see the results as in the instructions.
q5.py
So if you'll notice, your results are slightly different from mine.  This is because the way that you're counting does count, e.g., 'that' and 'That' to be the same word.  Also some of your "words" have punctuation attached to them.  See if you can figure out how to correct for this!  Also I note that some of the words you count to have frequencies of 0?  That shouldn't be the case; and so that seems to be a bug.
solarsystem.py
Style comment (also applies to other files too, occasionally).  Please have at least one blank line between the end of one class/function definition and the beginning of the next one.  Helps readability, which is important!  Also, I see no documentation strings anywhere; please put those in.  Good to build good habits.
Presumably you're still working on this one?  It doesn't look like it will work in its current form.


Add Swagger Bearer Authentication Scheme

Is your feature request related to a problem? Please describe.
Not having this feature creates a poor user experience if the services uses Bearer Token authentication.
Describe the solution you'd like
https://swagger.io/docs/specification/authentication/bearer-authentication/
Would like to have another @security annotation maybe @securitydefinitions.bearer
Describe alternatives you've considered
Adding Description into the header for auth which means the user still has to enter it before they enter their Token into the authorization header field in swagger docs.
Additional context
This is supported in Swagger 2.0 and Up.

Opened this as I see you leverage the go-openapi to validate schemes https://swagger.io/docs/specification/authentication/bearer-authentication/

Ah so bearer authentication is only for 3.0... I guess the better question would be when would swaggo move to 3.0 API spec

Running into this now, so is the current state that we can't do more than just:
// @securityDefinitions.apiKey JWT
// @in header
// @name Authorization

Or is there a way within the latest release to specify bearer-type authorization?

We may switch to OAS3 in v2. Meanwhile, you need to use the securityDefinition.ApiKey as an alternative.

Any news about this ?