[#376] Management: Support compression

Expose a new variable, compress_method, to support compression and reduce bandwidth stress when sending the JSON string.
Implement four types of compression method functions to convert a string to a buffer and convert a buffer back to a string.

Minor comments

I don't understand - no -C none means no compression, as well as -C none does, and it is the default.
If there is no -C then there is no compression, or if there is -C none is means there is no compression

Alright, I’ll update the logic.

Rebase

Since all of my compression functions convert the string into an unsigned char*, which represents the binary data, our function pgmoneta_base64_encode() and pgmoneta_base64_decode() requires a char*. We have to convert the unsigned char* into a char*, which may lead to a failure in properly encoding and decoding the original binary buffer.

@GuChad369 You need to look at the function signatures - a quick look shows that BIO_write() takes a void* instead of char* so likely the function signatures are wrong, and everything need to be changed.
So, in the end we will have a void* so you will need to write that in management.c

Should I modify the current functions, or would it be better to create a new one?

Modify the current ones

We should only have one function across the project for each "area"

I plan to update the functions to the following signatures, along with some minor code adjustments. This change will affect all areas that currently use these two functions:
int pgmoneta_base64_encode(void* raw, size_t raw_length, char** encoded, size_t* encoded_length);
int pgmoneta_base64_decode(char* encoded, size_t encoded_length, void** raw, size_t* raw_length);

I'm concerned that this change might impact the functionality of our project.

It looks correct - of course it will require changes for their usage, but it shouldn't be a problem.
You can do the BASE64 in a separate pull request if you want

The important part is to look at the underlying APIs - in this case from OpenSSL - and align usage against that

This update resolves the previous issue. Please review it, and if you find any problems, let me know.

Yes, you are just missing the documentation -- explain -C in full.
You can use git grep list-backup to find all the files where it maybe should be explained

updated

Direct leak of 355 byte(s) in 1 object(s) allocated from:
    #1 0x7ffbfe376ecd in pgmoneta_base64_decode src/libpgmoneta/utils.c:940:14
    #2 0x7ffbfe303370 in pgmoneta_management_read_json src/libpgmoneta/management.c:891:11
    #3 0x555d32e55576 in process_result src/cli.c:1441:8

Direct leak of 127 byte(s) in 1 object(s) allocated from:
    #1 0x7ffbfe2db1db in pgmoneta_gzip_string src/libpgmoneta/gzip_compression.c:633:35
    #2 0x7ffbfe2feae7 in pgmoneta_management_write_json src/libpgmoneta/management.c:999:17
    #3 0x7ffbfe2fff04 in pgmoneta_management_request_status src/libpgmoneta/management.c:322:8

Check for leaks...

    #1 0x7f6c47576ecd in pgmoneta_base64_decode src/libpgmoneta/utils.c:940:14
    #2 0x7f6c47503370 in pgmoneta_management_read_json src/libpgmoneta/management.c:891:11
    #3 0x558d8fde7033 in accept_mgt_cb src/main.c:827:8

Rebase

This update no longer has memory leaks related to the newly added functions. While there might still be some memory leaks, they are not connected to any of the new functions.

Merged.
Thanks for your contribution !


Support Ember 2.10 / Glimmer 2

Hi,
First of all, I love the addon, it's really great.
However, I tried to upgrade my application to Ember 2.10  with Glimmer 2, and i'm running into an issue that I can trace back to this addon.
I don't really understand that much about it to be honest, but if you need any extra information or I can lend a hand, let me know.
ember.debug.js:16911 Error: Cannot instantiate a component without a renderer. Please ensure that you are creating <Ember.Component:ember5407> with a proper container/registry.

I think this has been fixed by #31

<EMAIL_ADDRESS>

Cheers, confirmed to be fixed with 2.1, I upgraded before, but for some reason only to 2.0.8

Can you confirm that it is working at 2.10.0?

I'm not having any problems with 2.10, working perfectly so far. if there's anything I can do to help you figure it out. Let me know

This is fixed now in the 2.1.1 release I will put out today.  I suspect you are using ember-data models which is working fine.  The problem was with models that were strings.


Show bench icon on default map tiles

Would it be possible to have the default map view show a bench icon, the same as how OSM-carto/Mapnik does? That would make it easier to accurately set the bench location if it is already mapped in OSM.
I realised after I started writing this issue that you can switch between map view and Mapnik in the top right corner - but I still think it would be good to have it for the default map tiles. :)

What do you mean by Bench icon? I'm not familiar with Mapnik.
At the moment, we use some libraries default pin. But I guess we can replace it. Do you have a link to a preferred graphic?

I mean the bench icon used when you zoom in on osm.org - see image.

If you go here: https://openbenches.org/#55.95122/-3.199937/19 you will see the default map view, by Stadia Maps I think.
If you select the switcher in the top right you can select "Mapnik" to get the map tiles used on osm.org, which shows the benches.

Ah, those icons come from the tile provider. I can't add them to Stadia. But if you know of another tile provider, we can switch to them instead.

Ok, just thought there might be a different theme or custom styles from Stadia that might show them.
As a workaround, are you able to make Mapnik available in the layer switcher when uploading a new bench? Because currently only Map View and Satellite View are available.

Cheers - I've changed the default add map to Mapnik and set the zoom to max to show the existing bench icons.
Thank you for all your wonderful benches.


What does 'offline' and 'cache' setting mean in nuxt.config?

I found this example - https://github.com/NicoPennec/nuxt-weather/blob/master/nuxt.config.js
offline: true,
cache: true

I can't find any info regarding this settings. Are they still working? Are they documented?

offline is an old removed option...
https://github.com/nuxt/nuxt.js/commit/592f8cc7337cb9e6d95f945d2944ba2936b36dbc
and probably the same thing about cache
I will clean my repository ;-)

As an alternative you can now use official PWA module supporting offline usage.
https://github.com/nuxt-community/pwa-module

Got is, thank you guys.


distro-base: seperate builds into al2 and al2022

Issue #, if available:
Description of changes:
/hold
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/retest

/test prowjobs-lint-presubmit

/unhold


Find 64 bit Raspberry Pi alternative to demonstrate the Docker-based gateway

Look at minnowboard max

Thanks James. I will add it to my "shopping list" soon then :)
On Tue, Sep 1, 2015, 23:32 James Kirkland<EMAIL_ADDRESS>wrote:

Look at minnowboard max
—
Reply to this email directly or view it on GitHub
https://github.com/rhiot/rhiot/issues/161#issuecomment-136867604.

--
Henryk Konsek
http://about.me/hekonsek

http://http://blog.hypriot.com/ provides an docker stuff env for RaspberryPi

Hypriot doesn't allow you to run your x64 images. You have to use x32 base image. We are looking for something that is capable of running regular x64 images.


Cache Key Filter called on main thread

New Issue Checklist

[x] I have read and understood the CONTRIBUTING guide
[x] I have read the Documentation
[x] I have searched for a similar issue in the project and found none

Issue Info

Info
Value

Platform Name
ios

Platform Version
10.0

SDWebImage Version
4.0.0

Integration Method
carthage

Xcode Version
Xcode 8.3.2

Repro rate
100%

Issue Description and Steps
The SDWebImageManager has a cacheKeyFilter block that is called to allow for removing the dynamic parts of a url before using it as a cache key. The cacheKeyFilter block is executed on the main thread, I think it should be moved to a background thread.
Shaving off a url usually involve getting creating a URLComponents object, filtering the params you don't want from the URLComponent instance and then instantiating a new url. This can be rather costly depending on the url and the number of images you are trying to download at the same time.
For example
SDWebImageManager.shared().cacheKeyFilter = { url in
            let shavedUrl = url?.urlByRemovingQueryParam(named: "authorization")
            return shavedUrl??.absoluteString
}

I suggest changing this so the cacheKeyFilter block is called on a background thread.

Since it should contain trivial computation and that people are already used to being called on the main queue, I would leave it as it is.
PS: it's not guaranteed to be called from the main queue.


make sure figure gets displayed before waiting

fixes show to wait until all tiles are plotted
sets scale=2, since it seems on most devices its super blurry otherwise (including the docs)

Does this fix that slow startup big?

I dont think so... I think that may happen because it downloads way too many tiles...
To get that under control, I think a bit larger refactor is needed.

Oh I think maybe we just need to progressivively download the z the first time and wait so the low-res ones load first then we download more.

Ok, docs work now...
@lazarusA this is ready to be merged!


Race condition in dynamic events active object process

See the image (attached) of the active object’s process. Because the ‘process starter’ is notified that the process is started before the process registered for events, it is possible that events get sent before the register for events node is executed -> race-condition.
To fix this, I think it’s best to move the ‘Started’ notification inside the Init-case and call it after the register for events node has executed.

Thanks, I'm uploading 1.1.15 that have this fixed


[App Service] Allow custom JAVA_OPTS to append into web.config in Windows Java SE deployment

When deploying a JAR to Windows (either v1 or v2), the plugin should allow user to append a custom JAVA_OPTS to the command line to provide other values (e.g. parameters for other Java frameworks)

Fixed in #649


ESP_TLS_ERR_SSL_WANT_READ undeclared (IDFGH-4456)

Hi, I have issue. I'm trying to install sh2lib.h.
I followed instructions: https://techtutorialsx.com/2018/11/23/esp32-http-2-get-request-with-continuous-stream-response/
Also I found almost the same instruction on youtube.
Environment

Development Kit:      [ESP32-Wrover-Kit|ESP32-DevKitC|ESP32-PICO-Kit|ESP32-LyraT|ESP32-LyraTD-MSC|none]
Kit version (for WroverKit/PicoKit/DevKitC): [v1|v2|v3|v4]
Module or chip used:  [ESP32-WROOM-32|ESP32-WROOM-32D|ESP32-WROOM-32U|ESP32-WROVER|ESP32-WROVER-I|ESP32-WROVER-B|ESP32-WROVER-IB|ESP32-SOLO-1|ESP32-PICO-D4|ESP32]
IDF version (run git describe --tags to find it):
// v3.2-dev-1148-g96cd3b75c
Build System:         [Make|CMake|idf.py]
Compiler version (run xtensa-esp32-elf-gcc --version to find it):
// 1.22.0-80-g6c4433a
Operating System:     [Windows|Linux|macOS]
(Windows only) environment type: [MSYS2 mingw32|ESP Command Prompt|Plain Command Prompt|PowerShell].
Using an IDE?: [No|Yes (please give details)]
Power Supply:         [USB|external 5V|external 3.3V|Battery]

Problem Description
I get an error:
libraries/sh2lib/sh2lib.c: In function 'callback_send_inner':
libraries/sh2lib/sh2lib.c:42:19: error: 'ESP_TLS_ERR_SSL_WANT_READ' undeclared (first use in this function)
if (rv == ESP_TLS_ERR_SSL_WANT_READ || rv == ESP_TLS_ERR_SSL_WANT_WRITE) {
It looks like const ESP_TLS_ERR_SSL_WANT_READ is not declared. From where it should come? what am I going wrong?
Steps to reproduce

Added folder sh2lib with files sh2lib.c and sh2lib.h
Upload the code.

Code to reproduce this issue
// the code should be wrapped in the ```cpp tag so that it will be displayed better.

extern "C" {
#include <sh2lib.h>
}

@smokezp
This is defined at below:
https://github.com/espressif/esp-idf/blob/b0150615dff529662772a60dcb57d5b559f480e2/components/esp-tls/esp_tls.h#L69
Can you please try with latest IDF release?

@smokezp Closing the issue, please feel free to re-open if you are still facing issue with latest IDF release

Hi Mahavirj, I am having the exact samen problem. Can you explain your solution? How should I try the latest IDF release? Thx in advance!

@raysconcept
Please see following pointers:
https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/index.html#step-2-get-esp-idf
https://docs.espressif.com/projects/esp-idf/en/latest/esp32/versions.html

Thank you very much! I am installing that now.
Though..I have already arduinoIDE, VisualStudio and Eclipse installed. How does IDF relate to any of those?

Hi,
I want to use the sh2lib library for my project.
However i have the same error as the first comment :

I'm currently using the Arduino IDE, and I have already installed ESP IDF 4.3
Can you help me ?


Branding - Set default project name for web exports

Set default project name for web exports

The rebranding change here has been covered in another PR that got merged


Fix behavior of required={false} / email={false}

Creating input programmatically is not really straightforward. Consider the following snippet:
<InputType source={input.name} validation={{ required: input.required }} key={input.name}/>;

Even if input.required is false, the validation will be triggered. This PR improves this behavior.

Thanks for your proposal, but the validation system changes in the next branch (see #420), so we won't invest more time on the current validation system.

Nice improvement!


Calendar part 1: finding acceptable time ranges for meeting

For this one, they have tests already written for us and we just check our code against the tests.


VARIABLE ERROR TYPE

The error of type of undefined variable does not allow the visualization of the download button.

If you are using chrome try Hold down the ctrl key and left-click the Reload button
If you are using firefox try Hold down the shif key and left-click the Reload button
This bypass the cache to refresh possibly outdated or corrupted files

I follow your advice but with same result, also to another PC

We couldn't reproduce this error. It looks like browser cache issue.Do you see download button on mobile browser?
Can you try with another video? or may be open this video  in private window.

@fa305757  We are working on this issue, we will update the code soon,


Add Query Unique

We need a method to query singleton components. We will use this method in many scenarios, such as Player Input, making the code look more concise and readable.
    private QueryDescription mDescription = new QueryDescription{Any = new ComponentType[]{typeof(C_PlayerInput)}};
    public void Query()
    {
        world.Query(mDescription, (ref C_PlayerInput input) =>
        {
            if (input.IsClicked)
            {
                //Query another entity....
            }
        });
    }
    public void QueryUnique()
    {
        var playerInput = world.QueryUnique<C_PlayerInput>();
        //Query another entity...
    }

We need a method to query singleton components. We will use this method in many scenarios, such as Player Input, making the code look more concise and readable.
    private QueryDescription mDescription = new QueryDescription{Any = new ComponentType[]{typeof(C_PlayerInput)}};
    public void Query()
    {
        world.Query(mDescription, (ref C_PlayerInput input) =>
        {
            if (input.IsClicked)
            {
                //Query another entity....
            }
        });
    }
    public void QueryUnique()
    {
        var playerInput = world.QueryUnique<C_PlayerInput>();
        //Query another entity...
    }

Thanks and that's actually a great idea! :)
Im gonna think about different ways of realizing this. I think combining this with the current Query-API is not possible since that would require checks every call which would result in a decreased performance. However the world.QueryUnique approach is probably fine, so we could set components directly on the world itself.
Im gonna take a look at how other ecs solve this problem, or if they actually solve it at all ^^

We need a method to query singleton components. We will use this method in many scenarios, such as Player Input, making the code look more concise and readable.
    private QueryDescription mDescription = new QueryDescription{Any = new ComponentType[]{typeof(C_PlayerInput)}};
    public void Query()
    {
        world.Query(mDescription, (ref C_PlayerInput input) =>
        {
            if (input.IsClicked)
            {
                //Query another entity....
            }
        });
    }
    public void QueryUnique()
    {
        var playerInput = world.QueryUnique<C_PlayerInput>();
        //Query another entity...
    }

Thanks and that's actually a great idea! :) Im gonna think about different ways of realizing this. I think combining this with the current Query-API is not possible since that would require checks every call which would result in a decreased performance. However the world.QueryUnique approach is probably fine, so we could set components directly on the world itself.
Im gonna take a look at how other ecs solve this problem, or if they actually solve it at all ^^

The idea of attaching components to the world is an unusual concept. To my knowledge, both Unity ECS and Svelto ECS are attached to entities. Do you want to view the world as a root entity?

Mounting components on the world may produce another way that is independent of the current architecture. Perhaps we need a dictionary with component type as the key and entity as the value. This way, when we call QueryUnique, we can also determine if the component type is unique (singleton) to ensure that user actions do not produce unexpected results.

I found that the bevy engine use resource for singleton component. the resource stored at spareset.


Update Composer dependencies (2020-10-12-00-12)

Visual regression test passed!
View the visual regression test report


Ken/jan4

Have the layers mounted by pmem Mount use dm-verity.
Note. Using this requires an lcow linux kernel and root fs builds with dm-verity, loop and dm-encrypt support.

Drop this as it targets the wrong branch.

Drop this as it targets the wrong branch.

Drop this as it targets the wrong branch.

Wrong fork indeed.

Drop this as it targets the wrong branch.

Wrong fork indeed.


There is a bug in handling duplicates in your package.

As I was writing a test, I noticed that in most cases you keep the first instance of a tag. All the others will be ignored.
I did not test all the tags or look at your code, but some tags can and are even expected to be duplicated.
Specifically, the TXXX tag has to be distinguished from its label and not the tag itself.
You add tag function works:
id3Tag.AddUserDefinedTextFrame(someFrame)

since it adds a new tag. However, it works the other way around: it accepts new entries which are potentially duplicates.
So... if you find two entries that looks like:
TXXX <size> <flags> 3 <name> \0 <data>

and the <name> are different, keep both in the order they were added. If the user calls AddUserDefinedText(). The reading of the tags should probably make use of the same add functions so that way you do not have to repeat that logic everywhere.
Documentation: http://id3.org/id3v2.3.0#User_defined_text_information_frame

This can be fixed in https://github.com/bogem/id3v2/commit/4de0eaa0900aa89d4fd9abeed5aaf8cf6e6d5d5d. Please check

Add tests for it: https://github.com/bogem/id3v2/commit/0a57fbfd454e5af70820fa8f650a099afd6d6f1b#diff-e205654706d74dd8d206fc612c290191R77. Thank you for bug report!


Cannot request catalog from connector with 1000+ Assets

Bug Report
Describe the Bug
When the connector has more than 1000 assets it returns a 503 for catalog requests.
Expected Behavior
There should not be something like "too many assets to send out contract offers".
Observed Behavior

Steps to Reproduce
Steps to reproduce the behavior:

Create 1000 Assets with one contract offer per Asset
Request Catalog

Context Information

Detailed Description

Possible Implementation

Dominik Pinsel<EMAIL_ADDRESS>Mercedes-Benz Tech Innovation GmbH, legal info/Impressum

Please fill out the bug report properly, in particular information about what database was used, a stacktrace (if available, a 503 suggests that it does), maybe even an exemplary Asset plus DataAddress as well as the version of the connector.
We will be unable to investigate unless all information is provided.

Just tried this with two connectors with ca 50000 assets each, using the in-memory store and it worked on current upstream main.
During my testing I have seen 503's when I entered a wrong providerUrl - it needs to be http://<host>:<ids-port>/api/v1/ids/data, the default ids-port is 8282.

In my experience a stacktrace in case of a 503 does not happen most of the time.

You can also set edc.web.rest.error.response.verbose=true to receive the exception message in the response body.

Just tried this with two connectors with ca 50000 assets each, using the in-memory store and it worked on current upstream main.
During my testing I have seen 503's when I entered a wrong providerUrl - it needs to be http://<host>:<ids-port>/api/v1/ids/data, the default ids-port is 8282.

In my experience a stacktrace in case of a 503 does not happen most of the time.

You can also set edc.web.rest.error.response.verbose=true to receive the exception message in the response body.
Could this be an OOM?

Thanks for trying this out. I will reach out to the person that reported the bug to me, and ask to run the test again with an updated log level

After updating the log level, this is info the provider control plane returns when a different connector tries to request the catalog:
	at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:358) 	at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:311) 	at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:205) 	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:764) 	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:508) 	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:221) 	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1375) 	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:176) 	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:463) 	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:174) 	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1297) 	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:129) 	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:192) 	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122) 	at org.eclipse.jetty.server.Server.handle(Server.java:562) 	at org.eclipse.jetty.server.HttpChannel.lambda$handle$0(HttpChannel.java:505) 	at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:762) 	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:497) 	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:282) 	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:319) 	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:100) 	at org.eclipse.jetty.io.SelectableChannelEndPoint$1.run(SelectableChannelEndPoint.java:53) 	at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.runTask(AdaptiveExecutionStrategy.java:412) 	at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.consumeTask(AdaptiveExecutionStrategy.java:381) 	at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.tryProduce(AdaptiveExecutionStrategy.java:268) 	at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.lambda$new$0(AdaptiveExecutionStrategy.java:138) 	at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:407) 	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:894) 	at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1038) 	at java.base/java.lang.Thread.run(Thread.java:829) Caused by: org.eclipse.jetty.io.EofException 	at org.eclipse.jetty.io.SocketChannelEndPoint.flush(SocketChannelEndPoint.java:116) 	at org.eclipse.jetty.io.WriteFlusher.flush(WriteFlusher.java:421) 	at org.eclipse.jetty.io.WriteFlusher.completeWrite(WriteFlusher.java:377) 	at org.eclipse.jetty.io.SelectableChannelEndPoint$2.run(SelectableChannelEndPoint.java:67) 	at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.runTask(AdaptiveExecutionStrategy.java:412) 	at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.consumeTask(AdaptiveExecutionStrategy.java:366) 	... 6 more Caused by: java.io.IOException: Connection reset by peer 	at java.base/sun.nio.ch.FileDispatcherImpl.writev0(Native Method) 	at java.base/sun.nio.ch.SocketDispatcher.writev(SocketDispatcher.java:51) 	at java.base/sun.nio.ch.IOUtil.write(IOUtil.java:182) 	at java.base/sun.nio.ch.IOUtil.write(IOUtil.java:130) 	at java.base/sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:493) 	at java.base/java.nio.channels.SocketChannel.write(SocketChannel.java:507) 	at org.eclipse.jetty.io.SocketChannelEndPoint.flush(SocketChannelEndPoint.java:110) 	... 11 more

This looks like the connection gets terminated either because of a size or time limit or both. Not knowing your exact setup (gateways, load balancers, ingresses, firewalls,...) it's hard to make an accurate diagnosis from afar.
My suggestion to you would be to reproduce this with just two java processes and in-mem stores, then gradually move up to Postgres, then to clusters, etc. to help isolate the problem.

This looks like the connection gets terminated either because of a size or time limit or both. Not knowing your exact setup (gateways, load balancers, ingresses, firewalls,...) it's hard to make an accurate diagnosis from afar.
My suggestion to you would be to reproduce this with just two java processes and in-mem stores, then gradually move up to Postgres, then to clusters, etc. to help isolate the problem.

Thanks for your answer, Paul. It is also worth mentioning that when we register, say 10 assets on an EDC instance with in-memory stores, when requesting the contract offer we get 20 id's (every assets contains 2 submodels, so this is okay and expected). The request takes 538 ms and returns a 22.57 KB json. On the other hand, when registering the same 10 assets in the PostgreSQL EDC and requesting the catalog, it takes 5.9 s and returns a 448.22 KB file. It basically adds 20x times the contract offers. Is this expected? When more assets are registered, the occurrences of each ID grow exponentially and that's why we get a 503 from a certain number of assets registered.

We registered all of the test assets (2600 assets) and we can fetch the catalogue with no problems. So, yes, we can close the issue!!
Thanks you very much for your help! @DominikPinsel @paullatzelsperger

We registered all of the test assets (2600 assets) and we can fetch the catalogue with no problems. So, yes, we can close the issue!!
Thanks you very much for your help! @DominikPinsel @paullatzelsperger

And what you are writing now into the criteria of the contract definition?
Can you give an example?

We registered all of the test assets (2600 assets) and we can fetch the catalogue with no problems. So, yes, we can close the issue!!
Thanks you very much for your help! @DominikPinsel @paullatzelsperger

And what you are writing now into the criteria of the contract definition? Can you give an example?

Of course:
criteria: [{      "left": "asset:prop:id",      "op": "=",      "right": "<asset_id>" }]


Explorar Raise

https://blog.rockthejvm.com/functional-error-handling-in-kotlin-part-3/

https://belief-driven-design.com/looking-at-java-21-structured-concurrency-39a81/
https://www.happycoders.eu/java/structured-concurrency-structuredtaskscope/
https://junki.cn/backend/21_JDK_StructuredConcurrency_Preview.html#_3-3-自定义关闭策略

Extending StructuredTaskScope
StructuredTaskScope can be extended, and the handleComplete overridden, to implement policies other than those implemented by ShutdownOnSuccess and ShutdownOnFailure. The method may be overridden to, for example, collect the results of subtasks that complete with a result and ignore subtasks that fail. It may collect exceptions when subtasks fail. It may invoke the shutdown method to shut down and cause join to wakeup when some condition arises.
A subclass will typically define methods to make available results, state, or other outcome to code that executes after the join method. A subclass that collects results and ignores subtasks that fail may define a method that returns a collection of results. A subclass that implements a policy to shut down when a subtask fails may define a method to retrieve the exception of the first subtask to fail.


Unexpected response

When doing GET /device/{deviceGuid}/command/{id}/poll?waitTimeout={waitTimeout}
If the command is not processed within the waitTimeout period got empty array [ ] in response.
As result expected empty response.
Added python script to reproduce situation:
python_script_to_reproduce.txt

Also unexpected result when waitTimeout=0. Expected that specify 0 to disable waiting and if command was processed must return command without waiting. But returns empty response.
Added python script to reproduce situation:
python_script_to_reproduce2.txt


ubuntu-cx11-02: Am 22.03.21 um 22:59: Transport endpoint is not connected + portainer + syncthing (NBG)

No Issue due to:
GraphQL error: Could not resolve to a User with the login of 'https://github.com/thomasmerz/upptime/'.
But some down checks (without issues due to #94 ) at 23:45:
🟥 Portainer-NBG is down https://github.com/thomasmerz/upptime/commit/239b37c67e3f69a832aa22d308751720a153aa15
🟥 Syncthing-NBG is down https://github.com/thomasmerz/upptime/commit/7366320e234bef9d2f270dcdebe28cd7162f12a7
Resolved at next check / 23:56 by quarter-hourly cronjob:
🟩 Syncthing-NBG is up https://github.com/thomasmerz/upptime/commit/d5d9bea1730ca128706fe8f8e53d9bbc798ffa2a
🟩 Portainer-NBG is up https://github.com/thomasmerz/upptime/commit/00a3e9a60261ebf4a302f451c8ef67a8b6377993

Problems for Syncthing occurred at:
Mar 22 22:56:40 - Mar 22 23:00:02
Mar 22 23:41:04 - Mar 22 23:45:02

Portainer - can't see anything in logs…


feat: support yaml file for Hazelcast configuration

Description
Supporting Yaml configuration file should ease the overriding config in Helm chart. Currently, with the XML file, we can't use Helm/Go template function to merge properties.
With the YAML, we should be able to define a default configuration in the Helm chart and, let users overrides part of that configuration with values, using https://rm3l.org/merging-dynamic-config-data-in-helm-charts/

Gravitee.io Automatic Deployment
🚀 A prerelease version of this package has been published on Gravitee's private artifactory, you can:

use it directly by updating your project with version: 1.26.0-hazelcast-support-yaml-config-file-SNAPSHOT
download it from Artifactory here

:tada: This PR is included in version 1.26.0 :tada:
The release is available on:

1.26.0
GitHub release

Your semantic-release bot :package::rocket:


Finished Board.py

Cleaned up math in Board.py
Updated documentation in Board.py

Realized the board was being drawn out of order, will close and make new PR.


python3-bindings: Add pyproject.toml to support pip build and installation

This PR proposes to add a pyproject.toml file, allowing the python3 bindings to be built and installed with pip.
# To build the bindings
pip3 wheel -w builddir-pip .
# To install the bindings
pip3 install $(ls builddir-pip/libcsp*.whl)

Please note that this initial suggested implementation uses meson-python as its build backend. I am unsure how we should structure the pyproject.toml to also support waf and cmake.
Also; please refer to this description from 93f4b5c, regarding concessions made to the meson.build script:

'pure' and 'copy' args used in meson.build,
these were introduced after the minimum specified meson version,
which we should therefore probably bump (unless workarounds can be found).
Headers are now longer installed when building with enable_python3_bindings=true,
as meson-python doesn't know what to do with them.
configure_file('autoconfig.h') has explicit install: false,
as it otherwise breaks meson-python.

Additionally, the resulting pip .whl installs as a Python package (directory with init.py).
A copy of libcsp.so is then bundled into this package, and will be used as a fallback to the system dependency.
This makes it possible to import the bindings without needing to worry LD_LIBRARY_PATH, PYTHONPATH or other system configuration.
It should also leave the library compatible with any previous use-cases.
Alternatively the bindings may easily be linked statically with libcsp.so, but this may conflict with some existing use-cases where the bindings are linked with existing symbols/namespace.
What do you guys think?
I also took the liberty of creating a .pyi file for intellisense, and fixed some minor errors in the bindings themselves.
I initially suggested an init.py wrapper in #712, and suggested a pyproject.toml in #636

I am considering whether marking pycsp_buffer_get() with METH_NOARGS in 6a458dc was a mistake. It removes the option to call the function with the unused size argument, and therefore deviates from the C API.
It broke the examples/tests, but I would argue that they should demonstrate that the argument is optional/unused anyway.
If corrective action is to be taken, I think we should leave the tests calling the function without the argument. But pycsp_buffer_get() should specifically only parse the unused size argument, such that it may still raise exceptions for incorrect or excessive arguments.

I am beginning to doubt that a bundled libcsp.so can be made as backwards compatible as I had initially hoped.
The way the bindings are currently built, they will link against a system library for libcsp (eg. /usr/local/lib/libcsp.so).
The import will then fail if this file doesn't exist, no matter if all symbols are resolved through the bundled library.
It seems to me that the system library must be resolved in the _init_.py, if we are to have a bundled version as a fallback.
But I am unsure if there is a clean way to abstract the location of the system dependency, keeping the path identical to those linked by meson.build.


Curse URL has changed

I noted lcurse stopped being able to find a few add-ons.   Going to the curse site, it appears you're now redirected to https://www.curseforge.com/wow/addons/.
Looks like lcurse needs to update the source URL now.  Gotta love Curse and their random changes.

I confirm, does not work at all for me

Worst thing is that the version number is gone from the first page.... I am trying to fix it in my fork and will submit a PR if I succeed

pull-request is up. You can get it from my repository (same user of previous comment, I plane hate how github is not smart in managint 2 accounts)

Ephraims version is not working anymore so I tried youts, Alar. This is what I get:
python3 /opt/lcurse-alar/lcurse Folders Preferences/wowfolder /home/.../.wine/drive_c/Program Files (x86)/World of Warcraft Traceback (most recent call last):   File "/opt/lcurse-alar/lcurse", line 44, in <module>     from modules import application   File "/opt/lcurse-alar/modules/application.py", line 19, in <module>     from modules import waitdlg   File "/opt/lcurse-alar/modules/waitdlg.py", line 15, in <module>     from cryptography.hazmat.primitives.hashes import MD5 ImportError: No module named 'cryptography'

I am glad it works, I didnt add (at least, not willingly) any dependency, had you already installed ephraims version before or you started straight on with mine?

I had an older version of  Ephraims before. In the version I used there was no cryptography or hash function in waitdlg.py. I think he introduced this sometime ago and made another change stuff recently, see https://github.com/ephraim/lcurse/commit/ef70ea78882fd19d47cd60afdeb98d4d12382ade - but without eliminating the dependency, contrary to what the title says.


Output is just a Hello World!

I am getting nothing more than a Hello World! in the browser.

Hi!
The root route is just a Hello World, this is right.
The available pages are /login and /tasks, as you can see in the index.jsx file


Add scrollFade similar to scrollShadow

Using mask-image / -webkit-mask-image with a linear-gradient, fade content if scrollable, similar to scrollShadow.  See REPL (without scroll adjustment like scrollShadow)

[x] Ease in fade based on scroll amount (like scrollShadow)
[ ] Enable/disable per side (use shadow for top, fade for bottom, for example)
[ ] Support vertical and horizontal at same time (difficult with mask-image and linearGradient)

Create A Fade Out Overflow Effect Using CSS Mask-Image

https://twitter.com/johnphamous/status/1724491202148675590?s=46&t=NkyuWxqLoCUsNawsW7EzfA


ARROW-9287: [C++] Support unsigned dictionary indices

Summary of places where changes were needed:

Add to integration tests. uint64 does not work in JavaScript so this is disabled temporarily (NEEDS TICKET)
Support in DictionaryArray::GetValueIndex, Transpose, FromArrays
Support in C interface implementation
Support in IPC read/write
Handle in DictionaryScalar::GetEncodedValue
Relax checks in DictionaryType argument validation
Add unsigned int support to internal::TransposeInts
Support in Parquet direct dictionary encoding (PutIndices)

Converting to pandas from unsigned indices is disabled (raises exception). That turned out to be somewhat involved because of how nulls are handled (pandas only accepts signed integers), so think we should deal with this as follow up (NEEDS TICKET).

Please add the unsigned types to the DictionaryScalar as well.

@kszucs done

+1


Run3 sf defaults additions

Added some new defaults for Run3:

PUid: Added 2022/2023 periods in pocket_coffea/parameters/pileup.yaml
Lumi: Corrected the defaults in pocket_coffea/parameters/lumi.yaml according to the current recommentations (with normtag, see here)
Added feature, that iso cut on electrons is not needed to be given in params, since current recommendation includes no iso cut on electrons, since mva ID includes iso information
sf_ele_reco/id:

Changed mapping of params for electron id/reco sfs, since pt_regions are different for Run3 and therefore depend on the year
Adapted sf_ele_reco function to account for the changes and enable more than 2 pt_regions
Cross checked implementation for 2018, seems to give same results, still left old function in for reference

Added "jetVetoMaps" params according to current recommentdation, could also add my corresponding function evaluating the correctionlib file to cut_functions.py? Currently have it in my custom_cut_functions.py

Thanks @phnattla !


Propose alternative structure

This PR proposes an alternative structure for the solution.
Changes:

All GitHub API side-effects were put into a single class

The interface to these functions are types defined within in the library itself

RepoStarCount
UserDetails

API interfaces are easy to mock in testing

CLI command structure was simplified and adapted
CLI is now available through task cli -- ... or poetry run githubcli ... or after installation githubcli

I really like the solution you proposed. It tought me to think more about code expandability and better UI design.
Keypoints I took away

Easy install / usage option should be the goal if it shall be used
Expandability is key
Think about the usage from the user's point of view. How would I want to use the cli - thats's how I suppose you came up with the clear status (which was not given as a requirement)
Mocking of the most abstract level helps to generate easier testing functions. To moch the GitHub instance directly never came to my mind

As much as I like the solution, here is what I have found confusing:

The amount of files/classes, strikes you in the face. After having read through them, it gets clearer and they make sense, but I would suspect, we could shrink them a bit
Testing, especially with the Mocks is not entirely clear to me, but that's on me. Have to read more about it.

So thank you very much for the time and effort you have put into the code and PR. Its a great learning opportunity and that's why I would like to let it stay in this repo like this.


How to deal with associations that refer to other associated fields

When I have associations that refer to records created by other associations, I'm having trouble because ex machina seems to be trying to insert some of them twice. For example, the following code seems to try to insert users with the same name twice, resulting in a uniqueness error:

# in factory.ex
def user_factory do
  %User {
    name: sequence("User ")
  }
end

def team_factory do
  %Team {
    name: sequence("Team "),
    users: build_pair(:user)
  }
end

def company_factory do
  teams = build_pair(:team)
  users = Enum.flat_map(teams, fn(team) -> team.users end)
  %Company {
    teams: teams,
    users: users
  }
end

# in my test file
company = insert(:company)

I was able to do a workaround like so:
  users = insert_list(4, :user)
  team1 = insert(:team, users: Enum.take(users, 2))
  team2 = insert(:team, users: Enum.take(users, -2))
  company = insert(:company, teams: [team1, team2], users: users)

But it would be nice not to have to create each association separately.

Hey @cayblood, I've taken a look at issue you've raised and I think what happens is rather correct behaviour.
To understand what's happening (and why it is correct), let's talk through the code with tiny steps (and those will be manual, to make it clearer what happens ~more or less~ behind factory functions).
# Those will belong to Team 1
u1 = %User{name: "User 1"}
# => %User{id: nil, name: "User 1"}
u2 = %User(name: "User 2"}
# => %User{id: nil, name: "User 2"}

# Those will belong to Team 2
u3 = %User(name: "User 3"}
# => %User{id: nil, name: "User 3"}
u4 = %User(name: "User 4"}
# => %User{id: nil, name: "User 4"}

Then, let's take a look at Teams:
t1 = %Team{name: "Team 1", users: [u1, u2]}
t2 = %Team{name: "Team 2", users: [u3, u4]}

and finally, let's bind all of them together within Company:
c = %Company{
  teams: [t1, t2],
  users: [u1, u2, u3, u4]
}

Let's assume, there is no DB index enforcing uniqueness. Once the c attempted to be persisted:
Repo.insert(c)

We would end up with following:
%Company{
  id: 1,
  teams: [
    %Team{
      id: 1,
      users: [
        %User{id: 1, name: "User 1"},
        %User{id: 2, name: "User 2"}
      ]
    },
    %Team{
      id: 2,
      users: [
        %User{id: 3, name: "User 3"},
        %User{id: 4, name: "User 4"}
      ]
    }
  ],
  users: [
    %User{id: 5, name: "User 1"},
    %User{id: 6, name: "User 2"},
    %User{id: 7, name: "User 3"},
    %User{id: 8, name: "User 4"},
  ]
}

Do you see the problem here now? The names have been generated correctly, but due to immutable nature of Elixir this is what happens:

u1 is as follows: %User{id: nil, name: "User 1"}
When Elixir attempts to save the u1 associated to Team - it get's created successfully
Because Elixir's data is immutable, u1 is not updated with id of newly created User. As u1 is associated to Company (via users association), another record in DB is created (with the same name)

Your second approach works properly, because you've created users in first place:
u1 = Repo.insert(%User{name: "User 1"})
# => %User{id: 1, name: "User 1"}
# ...

and the records could be properly associated in DB, because the id attributes had values at that point.
As a sidenote - it feels a little bit brittle to keep users association both in Team and in Company (there are no rules that DB could enforce removing a User from Company once it's removed from Team). Did you know that Ecto.has_many/3 supports :through (similar to Rails one).
Please, take a look at example changes here how you could try to use :through to obtain the same list of users (note, TeamMember is used instead of User not to get into conflict with already defined models).
Hope that helps and clarifies things a little bit.

That is helpful. Thanks for the explanation.

Thanks for helping clarify the situation with some great examples @pdawczak. I'm going to go ahead and close this


enable offline running

Assuming you've already ran a ./dind-cluster-v1.6.sh up successfully once, it would be nice to allow the cluster to still start up offline with no internet connection (airplane, park, etc.).
Turn off wifi on your laptop and run ./dind-cluster-v1.6.sh up
$ ./dind-cluster-v1.6.sh up
* Making sure DIND image is up to date
Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on <IP_ADDRESS>:53: read udp <IP_ADDRESS>:43749-><IP_ADDRESS>:53: i/o timeout

Thanks, will try and fix this

@djschny can you verify if ./dind-cluster-v1.6.sh reup (defined there, which is almost the same as up) does what you are asking for?

@djschny ping.
That works for me.

I just tried ./dind-cluster-v1.7.sh reup and it definitely gets further, but unfortunately it hangs on the dashboard. I observed this by waiting forever at the dashboard setup and then examined the pods:
$ kubectl get pods --namespace=kube-system
NAME                                        READY     STATUS         RESTARTS   AGE
calico-etcd-4m229                           1/1       Running        0          1m
calico-node-9s9bj                           2/2       Running        21         16d
calico-node-rdvbd                           2/2       Running        20         16d
calico-node-zpcx3                           2/2       Running        19         16d
calico-policy-controller-1727037546-m95wk   1/1       Running        12         16d
etcd-kube-master                            1/1       Running        6          16d
kube-apiserver-kube-master                  1/1       Running        6          16d
kube-controller-manager-kube-master         1/1       Running        6          20s
kube-dns-2185897156-mxp7c                   3/3       Running        0          1m
kube-proxy-ljdcn                            1/1       Running        0          1m
kube-proxy-pr1ld                            1/1       Running        0          1m
kube-proxy-t9wtq                            1/1       Running        0          1m
kube-scheduler-kube-master                  1/1       Running        6          16d
kubernetes-dashboard-1136505239-k8dr4       0/1       ErrImagePull   0          1m

I have managed to put kubeadm-dind into one big docker image (docker-in-docker-in-docker), but the image is 5GB big.
Would there be a way to reduce drastically the size of the whole cluster?

@zoobab Can you share your Dockerfile?

@webwurst I hit a problem trying to do a docker build combined with privileged mode (needed to launch the dind-cluster-v1.6.sh shell script). So my attempt to make a Dockerfile stopped there.
See:
https://github.com/moby/moby/issues/1916
Then I just made a container by hand with ubuntu, and saved the container with a docker save as an output. The only thing I had to change was the listening address on <IP_ADDRESS> in order to expose the ports externally.
Note that should be fairly scriptable, but not as a Dockerfile atm.

The issue with reup is that dashboard is scheduled on another node where image is not available. I'm not sure if we can do much about it.


[dev] Create a view IJKToRasDir selection object, get rid of the if-else's

Solved with different approach 60790c0ed0c4d5f5dcbddf5d4d99cc657af97019


List of backers: doesn't work when backer is called 'member'

See https://opencollective.com/ConsciousnessHackingSF
Related to https://github.com/OpenCollective/website/pull/195
The way to solve this is to go through the group.tiers array and for each tier.name, count the number of members. And then order them by tier.range[0] in ascending order.

@xdamman Why do I need to order them, if all that is needed the length/count?
Would this not be enough?:
const memberCount = filterCollection(group.tiers, {name: 'member'}).length;

Then we'd add it to backerCount

No because you can't make any assumption on the name of the tier. It could be contributor, member, sponsor, supporter, etc... It's up to the collective.
So you need to circle through all the tiers and for each find out how many members and then show:
"We have X tier1.name, Y tier2.name and Z tier3.name"
where, X, Y and Z are in descending order.

@xdamman i've made a PR with the fixes please review
https://github.com/OpenCollective/website/pull/205

Fixed and deployed.
Thanks @carlosascari!


Locations page

Closes https://ethyca.atlassian.net/browse/PROD-1491
Description Of Changes
Adds a locations page!
https://github.com/ethyca/fides/assets/24641006/9df012ac-7659-4ccd-8560-91c4413b821f
Code Changes

[x] New page for locations
[x] PickerCard to be reused by regulations page
[x] Checkbox behavior and grouping by continents
[x] Search bar + "regulated" toggle
[x] Cypress tests

Steps to Confirm
The preview env won't work here because the backend changes from https://github.com/ethyca/fidesplus/pull/1269 are needed

[ ] Run fidesplus on this branch: https://github.com/ethyca/fidesplus/pull/1269
[ ] Run the admin UI via turbo run dev in the admin UI. the feature flag is only enabled for dev/test environments
[ ] Click the settings gear icon
[ ] You should see a new "Locations" option in the side nav. Click it
[ ] Check and uncheck various locations and make sure all works as expected

Note: the "View more" button is a separate ticket: https://ethyca.atlassian.net/browse/PROD-1493
Pre-Merge Checklist

[ ] All CI Pipelines Succeeded
[x] Issue Requirements are Met
[x] Update CHANGELOG.md

Current status
https://github.com/ethyca/fides/assets/24641006/615f96ac-a4a7-472c-a449-fff6b9729c00

UAT: tested locally and working 👍
@allisonking This works great! Why wasn't formik used for form? Not a blocker but I'm curious what it was done this way.

heh good question! I did it this way first, and then thought "wait maybe I should've used formik here" and then spent some time refactoring it to use formik but the logic actually became quite complicated with using nested array keys (so the name of a checkbox might be North America[2].selected for "California" and that was difficult to grok). in the end I reverted back to this method since formik is great for anything that needs validation or required fields (most forms!) but for a list of checkboxes, it was causing me more confusion than it was helping me. I did save my half done refactor to another branch just in case though...


[BUG] Ingame "Invite Friends" join button exits to desktop with setting enabled

Acknowledgement of preliminary instructions

[X] I have read the preliminary instructions, and I am certain that my problem has not already been addressed.
[X] I have thoroughly looked through the available Wiki articles and could not find a solution to my problem.
[X] I am using the latest version of Bloxstrap.
[ ] I did not answer truthfully to all the above checkboxes.

What problem did you encounter?
When a friend invites you while you're ingame, a popup will appear in the top right.
If the "Don't exit to desktop app" setting is enabled when you click join, Roblox will close instead of joining the new game.

This issue doesn't seem to occur when the setting is disabled.
Bloxstrap Log
N/A

Thanks for reporting, wasn't aware about this.
Unfortunately, I don't think I can workaround this issue. We'll just have to warn people about this when they enable it.


add --newest option in rhnpush configuration

add --newest option in rhnpush configuration

Unfortunately this is not responsibility of this plugin, I made the pull request for this: https://github.com/jenkinsci/rhnpush-plugin/pull/3 please follow there for further information


Rewrite

Final PR for rewrite & 5.0.0 release

@tjallingt this look good to you? We're all set after this

Just ran through everything and it looks great; all tests pass and lint doesn't complain :smile:
I ran a quick npm update --save to make sure almost (check below) everything is up to date.
D:\Github\react-youtube>npm outdated
Package               Current  Wanted       Latest  Location
babel-eslint            4.1.6   4.1.6  5.0.0-beta6  react-youtube
eslint-config-airbnb    0.1.1   0.1.1        2.0.0  react-youtube

Not sure what is up with babel-eslint beta6 being tagged as the latest release and eslint-config-airbnb has some breaking changes apparently so I didn't want to touch it right before a possible release...
Lastly kudos for #48 @goto-bus-stop, it never crossed my mind to import the functions and shave some weight off the package... :+1:

@tjallingt the NPM --save flag saves everything as dependencies and not devDependencies, so 3d0bb04 added all devDependencies as normal dependencies as well.
looks like only devDependencies were actually updated, so npm update --save-dev should work instead.
Rest LGTM, thanks a lot :v:

Sigh... I see it now :cry:
I think that is not supposed to happen; I understand separating --save and --save-dev but why would you make --save update the devDependencies to the normal dependencies?
Ill revert and npm update --save-dev for now...

Sorry for the trouble guys. :sob:
It seems that because of a mistake on my side while updating my node modules npm got confused and just dumped all the devDependencies in the dependencies list. It turns out (after just deleting the node modules folder and rerunning npm install) that all dependencies are completely up to date after all :+1:.
Anyway this means that as far as I can tell everything is ready for release...
Quick, before I accidentally screw up again :fearful:

Haha it's all good dude, don't even worry about it! Releasing now, thanks for all the help  🎉

My pleasure, going to try the release asap :P


Highlight layer may have some issues..Need to check

https://playground.babylonjs.com/#CK01ZE
https://www.babylonjs-playground.com/#YYFP8D%231

Maybe automatically exclude alpha blended meshes: https://playground.babylonjs.com/#CK01ZE#1

Automatically is not an option as we need to connect to onBefore/onAfter render to turn stencil on and off


I keep getting the 'Anthropic is not a constructor' error, and the Client is not functioning properly.

I have tried repeatedly, but strangely, I can't reference the Client class. So, I directly called the Client to make requests, but I received a 404 error, and it is not functioning properly. In my view, it's odd that there is no reference at all.
const Anthropic = require("@anthropic-ai/sdk");
console.log("Anthropic: ", Anthropic);

const anthropic = new Anthropic({
  apiKey: process.env["ANTHROPIC_API_KEY"], // This is the default and can be omitted
});

async function main() {
  const message = await anthropic.messages.create({
    max_tokens: 1024,
    messages: [{ role: "user", content: "Hello, Claude" }],
    model: "claude-3-opus-20240229",
  });

  console.log(message.content);
}

main();

Anthropic:  {
  HUMAN_PROMPT: '\n\nHuman:',
  AI_PROMPT: '\n\nAssistant:',
  Client: [class Client]
}
/Users/eojin-kim/dev/tistory-auto-posting/src/api/js.js:4
const anthropic = new Anthropic({
                  ^

TypeError: Anthropic is not a constructor
    at Object.<anonymous> (/Users/eojin-kim/dev/tistory-auto-posting/src/api/js.js:4:19)
    at Module._compile (node:internal/modules/cjs/loader:1369:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1427:10)
    at Module.load (node:internal/modules/cjs/loader:1206:32)
    at Module._load (node:internal/modules/cjs/loader:1022:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
    at node:internal/main/run_main_module:28:49

Node.js v20.12.2

This has been fixed; please update to the latest SDK version.


Event failed to update

Seen in integration test output:
E0311 14:09:25.955280   99741 event.go:127] Unable to write event '&api.Event{TypeMeta:api.TypeMeta{Kind:"", APIVersion:""}, ObjectMeta:api.ObjectMeta{Name:"<IP_ADDRESS>.13ca8dd23271fd55", GenerateName:"", Namespace:"default", SelfLink:"", UID:"", ResourceVersion:"", CreationTimestamp:util.Time{Time:time.Time{sec:0, nsec:0x0, loc:(*time.Location)(nil)}}, Labels:map[string]string(nil), Annotations:map[string]string(nil)}, InvolvedObject:api.ObjectReference{Kind:"Minion", Namespace:"default", Name:"<IP_ADDRESS>", UID:"<IP_ADDRESS>", APIVersion:"", ResourceVersion:"", FieldPath:""}, Reason:"starting", Message:"Starting kubelet.", Source:api.EventSource{Component:"kubelet", Host:"<IP_ADDRESS>"}, FirstTimestamp:util.Time{Time:time.Time{sec:63561704965, nsec:0x38560b55, loc:(*time.Location)(0x12138e0)}}, LastTimestamp:util.Time{Time:time.Time{sec:63561704965, nsec:0x38560b55, loc:(*time.Location)(0x12138e0)}}, Count:1}': 'events "<IP_ADDRESS>.13ca8dd23271fd55" already exists' (will not retry!)

@saad-ali

We talked about this and thought it was suspicious.

There is a race condition in pkg/client/record/event.go. If the same event is created in rapid succession it is possible that ResourceVersion used to update one of the events becomes out-of-date.

The integration test error  is not caused by the race condition I mentioned above (I'll create a separate issue to track that).
This error, events ... already exists, indicates that an event with the same key already exists in etcd.
It happens because etcd is called two times to create the same exact event. This happens because the integration test creates two kubelet instances (on two different ports), however the setup process creates two different event listeners that listen to the same event channel. Thus, when an event is generated by either instance of kubelet, it is passed through the shared channel, and is consumed by both instances of kubelet, both of which issue calls to the API server to create the same exact event in rapid succession (which ever call arrives first, succeeds, and the subsequent call fails with this error).
Proposed fix:

Create a new watch.NewBroadcaster on each StartRecording(...) call.
Have SetupEventSending(...) return the watch
Modify event recorder recorderImpl to store the watch.
Then when recorder.Eventf(...) is called it only triggers it's own watcher.
Will also need to fix tests relying on record.GetEvents(...).


Merge dev site into Master.

Sponsors, robot facts, typos, matches page, videos and more. See commits

Please add links to the robot page for this year:

CAD: https://cad.onshape.com/documents/161f53c7e7c1d5a50fee0d60/w/e3abc8177a33b2a9d11c6c4c/e/e01990c9971fd2c87bd7c4a2?renderMode=0&uiState=64c04c93651fae04d82b37a3
Code: https://github.com/FRCTeam1987/Robot2023 (we need some code clean up before this can be made public, but add the link anyways)

Remember that many smaller PRs are better than one big one!

Please address merge conflicts - they prevent merging.

After this PR goes through, please open a new one with updated dependencies. (ex. Gemfile.lock)


Implement the new API method for getting messages from a timestamp(as JSON)

When this is implemented in the web client & bot library, this new method should replace the old one

The method was already implemented a while ago, now we only need to fix #2.


Setting up linters

Hello Microverse First Project: Setting Up Linters
In this pull request I added the following files:

Linters.yml
gitignore

Hey you, Have a nice day!!

Dear reviewer I want to know if I should hide all of these files, not only the node modules and test files but also the following files:

Thank you for your answer.

Dear reviewer I want to know if I should hide all of these files, not only the node modules and test files but also the following files:  Thank you for your answer.

Hi @danifromecuador, you shouldn't hide the files you highlighted in red. For most projects, you will need to hide the node_modules. For this project, you need to hide both the node_modules and the test.md file. 👍


Make _packedOwnershipOf internal

Hey, another member of our team asked if you guys could make all internal/pub functions virtual recently and you guys got back to us really quickly on that, so thanks ! I was just wondering if you could also make _packedOwnershipOf internal and virtual as its difficult to override and change the ownerOf function without access to that function. Thanks a lot.

Also _packOwnershipData

See: #362
Some reference code for you to use.
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.4;

import 'erc721a/contracts/ERC721A.sol';

contract ERC721ADirect is ERC721A {

    // Make sure ERC721A is the first in the inheritance order.
    uint256 private constant PACKED_OWNERSHIPS_SLOT = 4;

    constructor() ERC721A("Direct", "DIR") {}

    function _getPackOwnershipDataAt(uint256 index) internal view returns (uint256 result) {
        assembly {
            mstore(0x00, index)
            mstore(0x20, PACKED_OWNERSHIPS_SLOT)
            return sload(keccak256(0x00, 0x40))
        }
    }

    function _setPackOwnershipDataAt(uint256 index, uint256 packed) internal {
        assembly {
            mstore(0x00, index)
            mstore(0x20, PACKED_OWNERSHIPS_SLOT)
            sstore(keccak256(0x00, 0x40), packed)
        }
    }

    function _getPackedOwnershipOf(uint256 tokenId) internal view returns (uint256) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr)
                if (curr < _nextTokenId()) {
                    uint256 packed = _getPackOwnershipDataAt(curr);
                    // If not burned.
                    if (packed & BITMASK_BURNED == 0) {
                        // Invariant:
                        // There will always be an ownership that has an address and is not burned
                        // before an ownership that does not have an address and is not burned.
                        // Hence, curr will not underflow.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed is zero.
                        while (packed == 0) {
                            packed = _getPackOwnershipDataAt(--curr);
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

    function mint(uint256 quantity) external {
        _mint(msg.sender, quantity);
    }
}

I see! Thanks a lot. :)

Hey everything is working great I was just wondering if there was an equivalent method for getPackedOwnershipAt for address data. I assumed the packedAddressData mapping would occupy the next storage slot (5) but I guess I'm wrong there...
this is what I've tried
function getPackedAddressDataAt(uint256 index)     public     view     returns (uint256 result)   {     assembly {       mstore(0x00, index)       mstore(0x20, PACKED_BALANCES_SLOT) //packed balances slot = 5       result := sload(keccak256(0x00, 0x40))     }   }
My assembly is pretty shocking so any tips would be mega appreciated! Still wrapping my head around this and grateful for the help you already provided :).  Working fine now haha


Collapse the node context to show the node based on its sythn.

Currently these are the definition of the synth.
form -> Form,
str -> Stringable,
elcln -> Eloquent Collection,
elmdl -> Eloquent Model (Legacy),
int -> Int,
arr -> Array,
clctn -> Collection,
elcl -> Eloquent Collection (Legacy),
float -> Float,
enm -> Enum,
cbn -> Carbon,
fil -> File,
std -> StdClass,
mdl -> Model,
wrbl -> Wireable

Hi @eznix86
Can you provide some more context on this, not sure I fully understand.

It is a quick example:

Livewire sends data in a hydrated form, which Caleb calls Synths, this is hydrated into a json in the frontend, when it is sent back to the server, we can translate it back to what is was "originally" was.
Ex. Have an Eloquent Class, it would be better, to show this Eloquent Class/Model with an icons to present what it is, maybe if we click on it we see the attributes, a bit like a die dump of the data.
Basically instead of expanding known synth (the list above), we can display them in a way where it make sense for a dev.


Compilation on Linux failed: unknown type name ‘sigset_t’

Compilation finished.
gcc  -O1 -g -O2 -ffile-prefix-map=/build/gambc-YYEQDb/gambc-4.9.3=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security   -Wno-unused -Wno-write-strings -Wdisabled-optimization -fwrapv -fno-strict-aliasing -fno-trapping-math -fno-math-errno -fschedule-insns2 -fomit-frame-pointer -fPIC -fno-common -mpc64   -D___SINGLE_HOST  -I"/usr/include" -c -o "midijoystick.o" -std=c11 -Wall -g -O0 midijoystick.c
In file included from midijoystick.c:452:
/usr/include/gambit.h:8493:5: error: unknown type name ‘sigset_t’
 8493 |     ___sigset_type sigset[3]; /* increase if other interrupts are added */
      |     ^~~~~~~~~~~~~~
*** ERROR IN ##main -- target compilation or link failed while compiling "/home/guru/src/MidiJoystick/midijoystick.c"
make: *** [Makefile:5: midijoystick] Error 70

Ubuntu 22.04
reproducible.
Am I missing some #defines?

Hoi @relascope ,
I have written this against Gambit 4.2 and haven't got it to compile against newer versions.
I assume the cffi has changed and the glue.c/h need to be refactored to work with the new gambit versions.
Right now I do not have time to work on this.


chore: bdd-nh-1592901898 to 0.0.1

chore: Promote bdd-nh-1592901898 to version 0.0.1

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

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


switch_port_power_on/off issues

executing switch_port_power_on or switch_port_power_off will modify the port overrides such that the assigned network is set to "default".  the port configuration gets into a jacked up state where the only way to fix it is to reset the port overrides and then reassign the network. not sure why this is happening because the json payload only contains the poe setting.  i'm using a udmpro with the current firmware. i suspect that the pyunifi usage of these apis is not what is expected by the udmpro.
i really didn't need power off & power on but really wanted the power cycle api. so i implemented the devmgr/power-cycle for my purposes.

It is a known issue. See here :
https://github.com/finish06/pyunifi/issues/68#issue-1007501223


Allow passing options for pip into convergeenvs

Nah never mind, pip supports environment variables too, not sure why this is better than just using those.


Subscriptions doesn't work when 'where' filter is applied to node field

When I try to subscribe using a where filter applied to a node field my subscription doesn't receive any updates.
The same query works directly on prisma server playground but when I use nexus subscriptionField I don't get the same behavior.
Mutation:

Prisma server playground query that works:

Yoga playground query (not working):

Code:

Prisma client generated code seems ok:

If I remove the node>conversation>id filter the query works. Any suggestions?

@tgriesser can you help me with this one?

This might be better asked in https://github.com/prisma/nexus-prisma, I don't know a whole lot about how the subscriptions are supposed to work here.

@nevescode I manage to make it work in my project.
I think you have an argument issue. it should be
return prisma.$subscribe.message(where)

instead of
return prisma.$subscribe.message({where})


Run dita command using java headless mode

On OS X (also Windows?), running DITA builds annoyingly steals the focus when the java process is started. However, java can be run in headless mode and not do this. Headless mode also consumes fewer system resources, and as far as I can tell there's no reason not to build in headless mode.
To do this now, users need to set ANT_OPTS before running the dita command:
export ANT_OPTS="$ANT_OPTS -Djava.awt.headless=true"
We could improve the dita command by running java in headless mode by default. If there's a reason why headless mode might be problematic for some users, we could add a build flag "--not-headless" to override this behavior.

+1, we also run the DITA OT Java process headless when running it from Oxygen.

This should be added to dita command and our build scripts, but not to e.g. startcmd.*.


my error

Name: cfscrape
Version: 2.0.8
code :
url='https://explorer.ravencoin.world'
scraper = cfscrape.create_scraper(delay=5)
data=scraper.get(url).content
print(data)
status:
no return,always wait for it ,no stop

Hi! I have this error too. It has begun start a ~10 day ago, when cloudflare launched a new protection method.

For those of you who can't wait for a new version to get published to pypi, you can patch it yourself. There is a fix from @alzamer2 in the pull requests:
https://github.com/Anorov/cloudflare-scrape/pull/315
To find where your cfscrape module is stored, the easiest way is with the python interpreter from the environment you want to fix.  Type python to open up the interpreter and you'll be greeted with a similar prompt as the one below:
Python 3.7.4 (default, Aug 13 2019, 20:35:49)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>

Type the following two commands:
import importlib
importlib.util.find_spec('cfscrape').origin

...which will give you a string path location (similar to the one below):
'/home/user/anaconda/lib/python3.7/site-packages/cfscrape/__init__.py'
Open that __init__.py file in an editor and replace all the contents with the raw contents from the pull request:
raw text from pull request 115
Save it and your cfscrape should work again.
Once the pull request is pushed to pypi just update as normal and the contents will be replaced.

This should be fixed in the latest version. Please update with pip install -U cfscrape.


Python 2.7.1 Build 3 release - make error 65 - Xcode 6.4

Hello, I'm getting this error when compiling the "Python 2.7.1 Build 3 release" on Mac OS X.10.4 with Xcode 6.4. Do you have any clue what's wrong ?
thanks

** BUILD FAILED **
The following build commands failed:
CompileC build/libffi.build/Release-iphoneos/libffi\ iOS.build/Objects-normal/armv7/ffi-4991BAD58BBECA5E.o ios/src/x86/ffi.c normal armv7 c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
make: *** [build/ffi.framework] Error 65

I got compilation working with Xcode 6.1


Generate random params fix

@martamau This should help! I'll also update the template in core to optionally take in a seed for the random generator so that we can still seed the template


chore: add height/width for Lighthouse performance

Motivation
Minor thing flagged by Lighthouse in the performance section. Took values from the values inside the SVG
Have you read the Contributing Guidelines on pull requests?
(Write your answer here.)
Test Plan
(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work. Bonus points for screenshots and videos!)
Related PRs
(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/facebook/docusaurus, and link to your PR here.)

In the end, these are constrainted by CSS values anyway

Looks like they are not properly scaled anymore (compare https://deploy-preview-6385--docusaurus-2.netlify.app/ with https://docusaurus.io/)
Maybe you should change some CSS? Looks like we have a hard-coded max-height but a relative max-width.


@conda-forge-admin, please check version

Additional comment:
No response

@conda-forge-admin, please check version


Proposal: Move the "feature" of standardx into standard

It's difficult & time consuming to maintain two npm packages ( https://github.com/standard/standardx and https://github.com/standard/standard ).
Standardx has some open issues that we don't have much bandwidth for ( https://github.com/standard/standardx/issues/27 & https://github.com/standard/standardx/issues/7 ).
What do you think about taking the standardx features and moving them into standard itself so that it's simpler to maintain both packages. The amount of code in standardx is pretty small.

cc @feross @LinusU

Ultimately up to @feross, I'm okay with it ☺

Speaking as a user that is currently blocked from using Standard at all because of TS compatibility issues, if this is better for the respective maintainers, this does seem ideal for the users.
Thanks for all the hard work!

@JeffSpies for TypeScript, I think that use case is better served by ts-standard, until we potentially can merge that into standard. Have you tried ts-standard? ☺

I got your message about ts-standard in another thread; I'll give it a try. Should we submit PRs to update docs/readmes with this recommendation?
I'll be happy with any solution that works, as I've discovered roadblocks at the end of every path I've tried (hence you seeing me in multiple threads).  And you all know better than I do on what the right solution is.
If it helps, my primary concerns with whatever solution is chosen are (1) editor support (I know a PR exists against the Standard VSCode plugin to support ts-standard although I'm a bit hesitant having to ask my colleagues to pull and build it), (2) Vue support for both JS and TS script types in Vue files (I don't think I've seen too many issues with this), and (3) mixed repo support--I've seen a few attempts at making TS and Standard (rules not library) work together that raise TS-specific lint errors on JS files.

@JeffSpies Your usecase sounds very custom.
I had a custom use case for standard + typescript + .js files with jsdoc comments. I ended up creating https://github.com/Raynos/tsdocstandard
Creating a module that uses standard-engine and customizes rules to be favorible for JS / TS / Vue etc will get you good bang for buck.

@JeffSpies Just wanted to say that we've merged the ts-standard VSCode support PR and released a new version now :)
As to the original suggestion of merging standardx into standard, I agree that maintaining all these variants is too time-consuming. Is it possible that standardx should never have been released? What's the advantage of a middle-ground between standard and just ejecting out to raw eslint with an .eslintrc that extends eslint-config-standard, etc.?

@feross
The main advantages of standardx are

Install one top level dependency. ( eslint requires many top level dependencies because of plugins and configs and so much bullshit )
No extra files in my project, just a single standardx key in my package.json
I can npm install standard@latest to get new rules, there's no way of getting new rules if I ejected to a 100 line .eslintrc; forget about it.

I just really want standard but i also want 'use strict' linting and no-console linting.
The alternative is to do ${company}-standard using standard-engine like I've done with http://ghub.io/tsdocstandard
But that has a high overhead of having to create & maintain 2 github repos & 2 npm packages instead of just installing a package and editing a few lines of JSON in my package.json.

I think this is still an interesting approach


Chore/review logs

Review ios Logs and add prefix "RNV:" to all logs for easier filtering

Mix between 2 changes. This PR will be canceled and replaced by other one


[Dataverse] search feature

As a As a user in the Dataverse page
I want to be able to perform a dynamic text search for resource titles so that
So that I can quickly find relevant resource based on my search queries.

Acceptance criteria
Scenario: Dynamic search
Given that I am in Dataverse page
And I am using a any device,
When I type in a text in the search bar,
Then the resource cards should dynamically update based on the entered text.
And the search results should include all resources whose titles contain the entered text
And the search results should be updated in real-time as I continue to type or modify the text in the search bar.
When no matching item titles are found,
Then the search results should display a message indicating "No results found"
Resources
Mockups
Desktop

Environment

staging URL: https://app.staging.okp4.network/

Additional informations
None.

The logic part has already been implemented in the Share Data feature.
So, there is only the SearchBar component to add and to style regarding the existing Explore page.

Hey team! Please add your planning poker estimate with Zenhub @0xLodz @AnjaMis @ErikssonJoakim @fredericvilcot


thread 'main' panicked at 'called Result::unwrap() on an Err value: GAX(InvalidEmulatorHOST(""))', src/main.rs:15:45

thread 'main' panicked at 'called Result::unwrap() on an Err value: GAX(InvalidEmulatorHOST(""))', src/main.rs:15:45. How do i resolve this? I ran the code as is

I am using Google-cloud-pubsub, can you point me to that documentation with
the info using client config
On Mon, Mar 27, 2023 at 7:28 PM Naohiro Yoshida @.***>
wrote:

if you are going to use emulator

Set OS env var SPANNER_EMULATOR_HOST to use spanner emulator.
Set OS env var PUBSUB_EMULATOR_HOST to use pubsub emulator

if you are not going to use emulator google_cloud_default::WithAutoExt
and call with_auth for ClientConfig is required
https://github.com/yoshidan/google-cloud-rust-example/blob/547aa0f2e7ac81a09dc130617c841ba9bf4526ed/webapi/src/main.rs#L20
—
Reply to this email directly, view it on GitHub
https://github.com/yoshidan/google-cloud-rust/issues/124#issuecomment-1486115599,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJSK7L5BFXZSH53HUQMEZ5TW6JEFNANCNFSM6AAAAAAWJ34KII
.
You are receiving this because you authored the thread.Message ID:
@.***>

Here is the google-cloud-pubsub readme.
You must use google-cloud-default together as described in the readme.
https://github.com/yoshidan/google-cloud-rust/tree/main/pubsub
I am sorry but the method of using emulator is not described in the documentation and should be clearly stated.
google-cloud-pubsub reads environment variables at the following location
https://github.com/yoshidan/google-cloud-rust/blob/1043d7019daed0c7c4a0c178a3fbdddf98f14015/pubsub/src/client.rs#L32

Hey, Thank you. How do I publish/subscribe to pubsub without using emulator. Can you pls help me with it. Thank you

It looks that no credentials is found.
You must set google credential file into os env 'GOOGLE_APPLICATION_CREDENTIALS' before calling with_auth.
ClientConfig.default().with_auth() reads the project_id from GOOGLE_APPLICATION_CREDENTIALS outside the GCP without emulators.
export GOOGLE_APPLICATION_CREDENTIALS=/path/your_credentials.json

let config = ClientConfig::default().with_auth().await.unwrap();
let client = Client::new(config).await.unwrap();

Thank you, I had set the GOOGLE_APPLICATION_CREDENTIALS, still the same. When I print the config, its showing me the project_id is None.
ClientConfig {
pool_size: Some(
4,
),
project_id: None,
environment: GoogleCloud(
,
),
endpoint: "pubsub.googleapis.com",
}
thread 'main' panicked at 'called Result::unwrap() on an Err value: ProjectIdNotFound', src/main.rs:16:45

Also in the client.rs, I noticed that its looking for PUBSUB_EMULATOR_HOST instead of GOOGLE_APPLICATION_CREDENTIALS.
/// ClientConfigs created by default will prefer to use PUBSUB_EMULATOR_HOST
impl Default for ClientConfig {
fn default() -> Self {
let emulator = var("PUBSUB_EMULATOR_HOST").ok();
let default_project_id = emulator.as_ref().map(|_| "local-project".to_string());
Self {
pool_size: Some(4),
environment: match emulator {
Some(v) => Environment::Emulator(v),
None => Environment::GoogleCloud(Box::new(NopeTokenSourceProvider {})),
},
project_id: default_project_id,
endpoint: PUBSUB.to_string(),
}
}
}
Is my understanding correct? Pls suggest so that i can test the publish message and subscribe message later

Thank you, tried hard coding now and it worked.
On Wed, Mar 29, 2023 at 5:19 PM Naohiro Yoshida @.***>
wrote:

ClientConfig::default() is configured to use emulator, but gets the
project_id from credentials by calling google-cloud-default's with_auth
method.
https://github.com/yoshidan/google-cloud-rust/blob/1043d7019daed0c7c4a0c178a3fbdddf98f14015/default/src/lib.rs#L32
If the project_id is empty even though with_auth is called, then the
project_id in the credentials file is empty.
I do not know what kind of credentials file you are using, but it is
possible to specify the project_id directly in ClientConfig.
let mut config = ClientConfig::default().with_auth()
config.project_id = Some("your_project_id".to_string());
—
Reply to this email directly, view it on GitHub
https://github.com/yoshidan/google-cloud-rust/issues/124#issuecomment-1489512566,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJSK7L3ZN44VIHGZAGHX6XDW6TGPXANCNFSM6AAAAAAWJ34KII
.
You are receiving this because you authored the thread.Message ID:
@.***>

If you are still having trouble the documentation was updated in #126

If the project_id is empty even though with_auth is called, then the project_id in the credentials file is empty.

This happens with gcloud auth login --update-adc
Credentials File ends up as:
{
  "client_id": <client_id>,
  "client_secret": <client_secret>,
  "refresh_token": <refresh_token>,
  "type": "authorized_user"
}

If the credentials does not include the project_id, the project_id must explicitly set the project_id.
let mut pubsub_config = google_cloud_pubsub::client::ClientConfig::default().with_auth().await?;
pubsub_config.project_id = Some(xxx);


Issue #689: Raise Exception for Duplicate Key

Added feature:

When Azure Vault has a duplicate key for configuration, an
invalidOperationException will be thrown that will indicate that there
is a duplicate key, as well as the key itself.

Related Bugs/Issues:

Issue #689 on github.

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

@husainaloos Thanks for submitting this. After looking at the behavior of all providers, the behavior is not consistent, but most providers throw an ArgumentException or a FormatException--https://github.com/aspnet/Extensions/issues/601. We would be open to a PR that changes these into a consistent single exception (InvalidOperationException is fine), but since this is a breaking change the value needs to be somewhat high, we would only do it as a consistent change across all providers. We would consider taking a PR for this.
We have recently consolidated the configuration code into the https://github.com/aspnet/Extensions repo. Unfortunately, it is not trivial to move PRs over to another repo, so will not be moving this PR over. However, it should not be too difficult to recreate in the new location if you wish to continue pursuing it.


make error

when I git the rep, so I "cd" the dir, cuda.
Then, I use "make"
I get this problem: make: *** No rule to make target 'diff.h', needed by 'tvq2opt'.  Stop.
please how to fix it ? thanks

The Makefile was outdated, thanks for pointing this out.
I have pushed a commit with the correct Makefile.
Let me know if you still face any issues.


[FEATURE] Adding Scroll to top Button feature

Detailed description
Adding Scroll to top Button feature
It will scroll the website to the top.
Assign this to me.
Context
After Scrolling down too much , it will make easier to go to the top without again scrolling that much.
Possible implementation
No response
Additional information
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

Great, I am assigning this issue to you.

please assign this to me

please assign this to me

Can you share your tech-stack so i can provide issues related to it

@kabir0x23 I can only submit PR for this issue when my already submitted PR gets merged otherwise all the commits will be done in the same PR.
So kindly review My already submitted PR @kabir0x23

@kabir0x23 I can only submit PR for this issue when my already submitted PR gets merged otherwise all the commits will be done in the same PR.
So kindly review My already submitted PR @kabir0x23

done

@kabir0x23 I can only submit PR for this issue when my already submitted PR gets merged otherwise all the commits will be done in the same PR.
So kindly review My already submitted PR @kabir0x23

done

Okay
PR for this issue will be submitted by today

@kabir0x23 I can only submit PR for this issue when my already submitted PR gets merged otherwise all the commits will be done in the same PR.
So kindly review My already submitted PR @kabir0x23

done

Okay
PR for this issue will be submitted by today

Greate 💪🏽


2.2.13 not in npm

2.2.13 made it to the cdn (https://cdnjs.com/libraries/semantic-ui)
but not to npm(https://www.npmjs.com/package/semantic-ui-css)
npm has 2.2.12 as the latest

Having same issue. Is there any other option to install 2.2.13?

2.2.14 is available in the NPM :tada:


Add GitHub Actions

As I'm sure you are aware from the TSC minutes, it appears that Travis is transitioning towards a paid pricing model. It would be opportune for active FOSS Projects to migrate to use the integrated GitHub Actions. It looks like each GitHub account is safe until January, but then travis-ci.org goes read-only then the 100000 credits start counting down. There is no clarity over if/how to obtain more credits, and indeed if they can be obtained in a timely manner.
Background links
https://www.jeffgeerling.com/blog/2020/travis-cis-new-pricing-plan-threw-wrench-my-open-source-works
https://www.reddit.com/r/programming/comments/jou1k9/travis_cis_new_pricing_plan_threw_a_wrench_in_my/
https://www.reddit.com/r/haskell/comments/jvbs49/psa_maintainers_should_think_about_migrating_off/
https://www.reddit.com/r/programming/comments/jmwj9m/the_travis_ci_blog_the_new_pricing_model_for/
This PR sets up the equivalent GitHub Action CI to the old Travis . Markdown and Docker linting are also working. A commented out Flake Lint setup has also been added - please amend with the correct code linter.

Sample CI job: https://github.com/jason-fox/firos/actions/runs/393899676


New Validation Rule: Number of Trips per Day(s)

Hi folks,
Thank you so much for providing and maintaining this repository. Chapeau!
A transport authority is looking for a validator, or even better the extension of an existing validator, that is best suited to add one of their use cases. What validator is funded best to suit their purpose? This use case is explained here now but is also related to issue 1117.
What problem in GTFS datasets does this new rule address? Please describe.
A passenger information system (PIS) is based on GTFS for static transit data. On a regular basis, the PIS is not providing most of the trips closer to end_date of calendar.txt. The reason is a great number of exceptions from calendar_dates.txt close to end_date of calendar.txt. As the consequence, the authority is asked to create another GTFS file not based on end_date of calendar.txt but when the number of trips per day is falling under a certain threshold.
For the mentioned transport authority, a GTFS file with a certain number of days with an amount of trips lower than the threshold indicates low data quality. That observation would trigger the creation of another GTFS file.
Describe the new validation rule
A GTFS file is invalid when one day or a configurable number of days between start_date and end_date of calendar.txt has a number of trips of trips.txt smaller than a configurable threshold.
Error vs warning
I am neither an expert of GTFS spec nor of the best practices. If the result of this rule is an error, info or warning might depend on perspective and a topic of discussion. It would probably be an error from the perspective of the mentioned transit authority.
I appreciate any hint in the right direction!
Cheers!

Another possible metric would be the ratio of trips running vs those "cancelled" by calendar_dates.txt.

Another possible metric would be the ratio of trips running vs those "cancelled" by calendar_dates.txt.

👍  If calculated per service day, this would also help catch the common mistake where an agency cancels service for a holiday but forgets or incorrectly configures the replacement service, resulting in no scheduled service (as far as the GTFS dataset shows) on the holiday.

Another possible metric would be the ratio of trips running vs those "cancelled" by calendar_dates.txt.

Personally, I have in mind a calculation per service days according to the trip_id -> service_id ->  service interval start_date to end_date of calendar.txt. Somehow, I like to know not a single day but a number of days where the ratio of trips with normal service vs. removed service indicates a mistake or a low quality in GTFS data.
Any thoughts if this validator is suited to be extended with such a rule?
Cheers!

Personally, I have in mind a calculation per service days according to the trip_id -> service_id -> service interval start_date to end_date of calendar.txt. Somehow, I like to know not a single day but a number of days where the ratio of trips with normal service vs. removed service indicates a mistake or a low quality in GTFS data.

I don't quite understand what exactly you're describing here. The amount/ratio of running (as in non-"cancelled") trips over the whole (start_date, end_date) period of the server, for each service/trip combination?

Personally, I have in mind a calculation per service days according to the trip_id -> service_id -> service interval start_date to end_date of calendar.txt. Somehow, I like to know not a single day but a number of days where the ratio of trips with normal service vs. removed service indicates a mistake or a low quality in GTFS data.

I don't quite understand what exactly you're describing here. The amount/ratio of running (as in non-"cancelled") trips over the whole (start_date, end_date) period of the server, for each service/trip combination?

@derhuerst You are right, the more time I spend on this matter, the more use cases are coming up.

You could state a maximum 'allowed' number of cancelled days on which trips are not offered during the service period. This might be an interesting investigation.
You could be interested in the  number of cancelled days that make it happen that trips are effectively running out of service before the overall defined end of service period stated in calendar.txt.

The transit authority I have in mind might be more interested in the later case. When you know the service period of the current GTFS data ends at the end of next month, you might think you have plenty of time to get hold a new GTFS data.
However, when you learn that the current GTFS data does not provide schedule information for certain trips starting tomorrow (due to exceptions in calendar_dates), you might panic on how to get the missing data already today as it does not correspond with the official and public schedule. This situation arises from a poorly created GTFS data file.
Does this example makes the use case clear?

Labeling as a "community rule" because we don't have an explicit mention in the spec or best practices.
This validator contains a few rules that aren't clearly mentioned in the spec or best practice, because the community sees them as highly valuable (fast travel, for example).
We are in favor of modifying the specification first before adding this type of check in the validator, in order to keep both aligned.


Added D (under dlang) and Fixed C++ Error

I managed to make a port of bunnymark for D.  Additionally, I change owner->remove_child(bunny) to bunnies->remove_child(bunny) in the BunnymarkV2.cpp.   Although, I couldn't figure out what was up with BunnymarkV2.cs.
My Benchmarks for D:

Draw Texture:   15100
Sprites: 10500
V2: 8720

Nice work!  I also couldn't figure out the V2.cs issue.  I think it might be a lifetime problem with GetChildren().  Maybe @neikeq knows.
@neikeq: any insights?  we're getting this exception in BenchmarkV2.cs where we wouldn't expect one:
Unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of an object
  at BunnymarkV2._Process (System.Single delta) [0x0004c] in /home/carter/Code/godot3-bunnymark/benchmarks/BunnymarkV2/cs/BunnymarkV2.cs:31

@cart Are all children of type Sprite?

I've tried finding the offending value but It never shows up.  This might be an issue with Godot, because the error even appears when doing a type check:
if (bunnyChildren == null)
    Console.WriteLine("BunnyChildren is null??"); // Not Called

else if (bunnyChildren[i] == null)
    Console.WriteLine($"Index {i} is null"); // Not Called

else if (!(bunnyChildren[i] is Sprite)) // This line will raise a System.NullReferenceException
    Console.WriteLine($"Index {i} is not a Sprite");

Additionally it seems multiple updates were made to GD Mono.

@neikeq:  all children should be of type Sprite.  I created the member bunnies = new Node2D() and the only AddChild call is bunnies.AddChild(bunny), where bunny is of type Sprite.  But as @Capital-EX pointed out its pretty hard to verify that its actually true.

@cart
After some poking a round it seems that an object at random will not be of type Sprite.  However, this bad object has some nastier properties:

bad.GetType() == typeof(Sprite) will be false for this object.
Any usage of is or as will throw a NullReferenceException
Any attempt to access the properties/methods of it's type will throw a NullReferenceException.

So given all that I thought the type was some how null. However, bad.GetType() == null will return false.

@Capital-EX  I couldn't reproduce your first bullet but i could reproduce the others.  A bit more data:

bunnyChildren[i].GetType() == typeof(Sprite) is true for both "good" and "bad" objects
bunnyChildren[i].ToString() is "Godot.Sprite" for "good" objects
bunnyChildren[i].ToString() is "False" for "bad" objects.

The issue should be fixed by godotengine/godot#12546.

@neikeq Nice work 👍


[FR] Modifying structure for samples

Note that general readme or samples for V4 have not been created/updated

API changes have been detected in this PR. You can review API changes here

API changes have been detected in this PR. You can review API changes here

API changes have been detected in this PR. You can review API changes here


Windows object detection

So I know that it's not working for windows right now, but I tested it on windows.
My experiences are that when League of Legends is in fullscreen, the bot move correctly to the tower position, but when in window/borderless it doesn't do it.
When in fullscreen the object detection doesn't work, but when in the other 2 modes, it will work perfectly fine.
I am wondering if you are working on a fix for this? Or if not, what macos do you recommend for me to use instead so the bot works?
Also, how would I implement auto confirming/claiming champions on level ups, because right now the bot will not press out of it, and it will end the loop of starting games.
Thanks!

Something to add;
when a game is done, and a level up has appeared and therefore a screen with new features comes up, it doesn't move on UNLESS i refocus the league client by clicking on it.

Okay. Thank you for your time. I think it is a very nice project and I'll try to make some of the changes you suggeseted.
Thanks again!


"commentend" has a hardcoded space?

I'm trying to configure codedox to generate comments with the style with which they're commently used in the Haxe standard library (and also vshaxe).
They look like this:
/**
	Description
**/

To achieve this, I added this setting: "commentend": "**/"
However, it looks like there's no way to avoid an extra space in front of **/ from being generated:

Thanks.  This is fixed via 616f9e6d91462b693c857f143cad8dec03e173ce.
If you don't want to wait for a marketplace release (probably next week) you can haxe build-release.hxml from master and copy out/codedox.js to your extensions directory .../.vsode/extensions/wiggin77.codedox-1.2.3/out/codedox.js.  Or just clone the repo there.

... also these settings should give you what you want:
"codedox": {
    "commentbegin": "/**",
    "commentprefix": "      ",
    "commentend": "**/",
}

Thanks! 👍


Support for feature-policy: None, etc...?

Was wondering if there was a future release that would support feature-policy.
Feature Policy allows web developers to selectively enable, disable, and modify the behavior of certain APIs and web features in the browser.

This would be great ... upvote, upvote.


Add publish to MavenCentral

Was added:

GitHub actions:

For publish to MavenCentral when create new release
For publish to stagingMaven when push to develop

GPG signing key for sign artifacts and signing step - fearless-utils/signing/key.gpg
Separate script for publication to nexus - scripts/publish-root.gradle
Pom file for maven, it condition for maven publication (please review information in pom)

Can't be tested on pull_request action:
https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#accessing-secrets
Signed-off-by: Stepan Lavrentev<EMAIL_ADDRESS>

Please do not forget to Squash commits


Implementation for IGameServersService - CreateAccount

This endpoint allows creation of so called GSLT (Game Server Login Tokens) used to host dedicated server without providing real account credentials and allowing you to play on such server simultaneously as you host it.

key
string

Access key

appid
uint32

The app to use the account for

memo
string

The memo/description to set on the new account