Add aeson < 2.2 upper bound to Hackage

aeson-<IP_ADDRESS> was released yesterday, and it removed Data.Aeson.Internal, which breaks hlint when doing a plain cabal install hlint-3.5. Can you make a Hackage revision to hlint 3.5 + 3.6 that bounds aeson < 2.2? Thanks!

I don't think hlint itself uses Data.Aeson.Internal, but presumably one of its dependencies. When I just tried to cabal install it, Cabal picked aeson 2.1, so I guess whatever dependency HLint relied upon added some version bounds?

Yes, you're right. Apologies


Use Abstract Controller for Channels

Use AbstractController::Base to get the action dispatching for ActionChannel::Base as described in #47

Already there are lines drawn between channels and controllers elsewhere - we say they are alike in some way. Though I'm not sure if we should go all the way and subclass from AbstractController::Base, that might set the wrong precedent down the line.
For instance, what if channels evolve to be less like controllers? Admittedly that's a way off, but I think it's tougher to change a superclass versus just extracting the action method logic to a concern and including that in both places.
Either way, I'd rather postpone this decision altogether till Action Cable is merged in to Rails as we have something that works now.
Thanks for all the great work on Action Cable, @lsylvester :heart:


Text recognition using ML Kit

https://user-images.githubusercontent.com/25201623/197140997-791b9f79-be9f-4136-be58-528c4686ac1f.mp4

@Skyyo Thanks, but I had no luck in making the text position on camera more accurate even though I played a bit with it


Darkmode

Added inline dark mode styling overrides for all ffe packages. Removed old darkmode overrides file.

So what is the goal here, could the commit messages maybe be somewhat more descriptive and give someone who hasn't been directly involved a clue about what the change accomplishes?
Also, if all the darkmode things can be nested under a .native class, can we use postcss to make two builds, one where those classes are stripped and one where they're not?
Finally, can we please namespace the .native class so we don't accidentally mess with non-FFE styles? CSS is global.

Finally, can we please namespace the .native class so we don't accidentally mess with non-FFE styles? CSS is global.

I believe the reason .native is used is it already exists on body in web views rendered in the mobile app. Although I do agree a namespaced class would be better.

I have to agree that .native is not a very good choice for a class name.

Coverage remained the same at 84.949% when pulling f32251d394f120e5f273e4d91495fdf9f68e6ec8 on darkmode into daa1152200dccf7bc1c56c3a99439388fee57e1b on develop.

Wait, isn't this going to automatically apply dark styling to any application that is embedded in a mobile app view? That sounds like a profoundly bad idea to me, we have absolutely no guarantee how that will end up looking when custom/local styling is thrown into the mix.

Finally, can we please namespace the .native class so we don't accidentally mess with non-FFE styles? CSS is global.

I believe the reason .native is used is it already exists on body in web views rendered in the mobile app. Although I do agree a namespaced class would be better.

Correct.

Wait, isn't this going to automatically apply dark styling to any application that is embedded in a mobile app view?

I'm not really sure I understand the question, that's pretty much what this does? .native is used to scope the overrides to mobile app views, as there isn't really a unified plan for dark mode in place for the web UI as of right now afaik.

I'm not really sure I understand the question, that's pretty much what this does? .native is used to scope the overrides to mobile app views, as there isn't really a unified plan for dark mode in place for the web UI as of right now, afaik.

I'm asking because we have a web application that is embedded in a web view (mobilbanken) and this looks like it will affect us directly while we've had no chance to test what the result will actually look like, nor do we have the resources to do so right now. A push for us to start supporting dark mode should come via the people managing our priorities and not as a minor update to the designsystem IMO.

I'm not really sure I understand the question, that's pretty much what this does? .native is used to scope the overrides to mobile app views, as there isn't really a unified plan for dark mode in place for the web UI as of right now, afaik.

I'm asking because we have a web application that is embedded in a web view (mobilbanken) and this looks like it will affect us directly while we've had no chance to test what the result will actually look like, nor do we have the resources to do so right now. A push for us to start supporting dark mode should come via the people managing our priorities and not as a minor update to the designsystem IMO.

I believe the reason .native is used is it already exists on body in web views rendered in the mobile app

So if this breaks our UI when our app is embedded as a web view, and I'm fairly sure it will, we'd have to either delegate resources we don't have to fixing any visual issues or start sniffing for and removing the .native class you describe. Both sound like a very unpleasant scenario.

Don't add the native class to the body tag in your webapp until you and your team are dark mode compatible.

So it's not already added like the previous comment suggested?

I'm asking because we have a web application that is embedded in a web view (mobilbanken) and this looks like it will affect us directly while we've had no chance to test what the result will actually look like, nor do we have the resources to do so right now. A push for us to start supporting dark mode should come via the people managing our priorities and not as a minor update to the designsystem IMO.

Dark mode is already in production. This PR is about a re-design of what already is in place. No new features are really added here.

So if this breaks our UI when our app is embedded as a web view, and I'm fairly sure it will, we'd have to either delegate resources we don't have to fixing any visual issues or start sniffing for and removing the .native class you describe. Both sound like a very unpleasant scenario.

As explained, the dark mode styles in ffe will only be applied if the body element has the "native" class. For NPA/Banking apps, this is done by the web template framework. If your team does not use this template framework, your content will not be affected. It will however sort of ruin the "dark mode experience" since it will be displayed as dark text on white background and not the other way around.

So it's not already added like the previous comment suggested?

Not in your app, just everyone else's.

This is the kind of information that should be included in the commit message so it makes it to the changelog, or at least be in the description of an issue linked to the PR.
And yeah, the close-button placement is terrible.

This is the kind of information that should be included in the commit message so it makes it to the changelog, or at least be in the description of an issue linked to the PR.
And yeah, the close-button placement is terrible.

As @palok says above, this PR does not introduce anything significantly new, apart from a refactor of code that is already in production.


Revert "Revert "Update vllm colab to work with asyncio requirements""

This was merged prematurely, but it should work after the 2.61.0 release
Reverts apache/beam#33170

R: @shunping
The content here is only very minorly different from the last pass (installing triton as well, see https://github.com/apache/beam/pull/33171/commits/411db2689b779c920d061f14b800e97d36e7a14f for the diff from #33122 )

R: @shunping
The content here is only very minorly different from the last pass (installing triton as well, see 411db26 for the diff from #33122 )

Where do we reference triton?

It is used by newer vllm versions (but not bundled as a dependency)


Included Fury in the list of users

@propensive I opened https://github.com/coursier/coursier/pull/1072 to mention both bazel-deps and fury. Is that fine for you?

Done in https://github.com/coursier/coursier/pull/1072.


Determine process for MP QA Check Engine

Determine:

Automated vs Unit Testing
Grouping of Rules
Dummy data to send through to ensure QA
Test cases for each of the Checks
Scripts for client
Scripts for the postgres side
Implementing Automated Test cases

No Longer Needed


New version: FastParzenWindows v0.1.6

Registering package: FastParzenWindows
Repository: https://github.com/ngiann/FastParzenWindows.jl
Created by: @ngiann
Version: v0.1.6
Commit: 6a036a92b7f652d15be2d6fc91e235331578d3d9
Git reference: HEAD

Obsolete pull request.


Feature integrate ap3 docu

Some extra descriptions in the data preface for data and parameter-related information from the AP3 documentation.
Please check if they are consistent regarding your AP1 and AP9 activities.

Let me know, when this is ready for review.


Make Python package spec indirect

@nathanielmanistaatgoogle Please review and merge!

LGTM but I'd like a C++ reviewer to also have a look.
@nicolasnoble, please review and merge?


gparyani: Watch vm.tiktok.com/ZSJ6jsuLF

gparyani requests the watch of the watch_keyword vm\.tiktok\.com/ZSJ6jsuLF. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

vm\.tiktok\.com/ZSJ6jsuLF has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Approved by Jeff Schaller in Charcoal HQ


Is there a way to increase the performance of Writng EPC ? at the moment it takes 7 sec to write 2 bytes

Yes, it is possible to write the entire EPC at once instead of 2 bytes at a time. So, the entire 12 byte EPC can be written into the tag at once in less than 7 sec. The only thing that is needed is a bigger antenna and strong, which is found in our recently released J4220UX device also sold at Amazon (https://www.amazon.com/dp/B0CGZJSXS6). J4210U can also write the whole EPC at once after several retries. We will need to update the dll/so/dylib to add this functionality. I will inform you when this function will be added.
Regards,
Mansur.

Thanks for Update. could you send me Project Manager or Engineer Mobile contact? I have few technical questions. Here is my email<EMAIL_ADDRESS>

You can contact us using Skype id jence.com
Our general contact for jence.com is +880<PHONE_NUMBER> and +880<PHONE_NUMBER>. Both are international dialing numbers.
We don't use Facebook because the owner does not like it. We can create Zoom meeting at a time of your convenience.
I can arrange a zoom meeting with you to speak to our team, including project manager.
We are closed on Fridays and Saturday. Sunday - Thursday, we are open.
Our Project Manager will send you his contact info to the email you sent us. My email is<EMAIL_ADDRESS>Regards,
Mansur

We have increased the speed of writing significantly. Several methods have been added:
InventoryOne (returns single tag inventory)
WriteEPC (writes entire 12 byte EPC in a single write instead of 2 bytes at a time)
The new version have been committed.
Regards,
Mansur


[BUG] Armeria exception when under pressure

Describe the bug
When sending large volumes of trace data to Data Prepper, the Data Prepper process has exceptions which are being thrown from the Armeria framework.
2023-01-27T03:11:04,274 [armeria-common-worker-epoll-3-1] WARN  io.netty.util.concurrent.AbstractEventExecutor - A task raised an exception. Task: com.linecorp.armeria.common.RequestContext$$Lambda$1600/0x00000008015ca908@2d24213e
java.lang.NullPointerException: null

(The full stack trace is below)
To Reproduce

Configure Data Prepper with a trace pipeline configure with too large of a buffer. It needs to include stateful processing. I used the following.

entry-pipeline:
  buffer:
    bounded_blocking:
      buffer_size: 20000000
      batch_size: 4000
  source:
    otel_trace_source:
      ssl: true
      sslKeyCertChainFile: "config/default_certificate.pem"
      sslKeyFile: "config/default_private_key.pem"
      port: 21890
      unframed_requests: true
  sink:
    - pipeline:
        name: "raw-pipeline"
    - pipeline:
        name: "service-map-pipeline"

raw-pipeline:
  buffer:
    bounded_blocking:
      buffer_size: 200000
      batch_size: 4000
  source:
    pipeline:
      name: "entry-pipeline"
  processor:
    - otel_trace_raw:
        trace_flush_interval: 1
  sink:
    - opensearch:
        hosts: [ "https://my-aos-domain.es.amazonaws.com" ]
        aws_sts_role_arn: "arn:aws:iam::123456789012:role/MyRole"
        aws_sigv4: true
        bulk_size: 20
        index_type: trace-analytics-raw

service-map-pipeline:
  delay: "100"
  buffer:
    bounded_blocking:
      buffer_size: 200000
      batch_size: 4000
  source:
    pipeline:
      name: "entry-pipeline"
  processor:
    - service_map_stateful:
        window_duration: 10
  sink:
    - opensearch:
        hosts: [ "https://my-aos-domain.es.amazonaws.com" ]
        aws_sts_role_arn: "arn:aws:iam::123456789012:role/MyRole"
        aws_sigv4: true
        bulk_size: 20
        index_type: trace-analytics-service-map

Run Data Prepper. I ran it in the background on an EC2 instance.

nohup env JAVA_OPTS='-Xmx7g -Xms7g bin/data-prepper &

Send a large volume of trace data. I used the tracegen tool from the Open Telemetry collector.

After a short period of time, Data Prepper threw the following exception almost several dozen times.

2023-01-27T03:11:04,274 [armeria-common-worker-epoll-3-1] WARN  io.netty.util.concurrent.AbstractEventExecutor - A task raised an exception. Task: com.linecorp.armeria.common.RequestContext$$Lambda$1600/0x00000008015ca908@2d24213e
java.lang.NullPointerException: null
    at com.linecorp.armeria.internal.shaded.guava.base.Preconditions.checkNotNull(Preconditions.java:889) ~[armeria-1.20.3.jar:?]
    at com.linecorp.armeria.internal.shaded.guava.collect.SingletonImmutableList.<init>(SingletonImmutableList.java:39) ~[armeria-1.20.3.jar:?]
    at com.linecorp.armeria.internal.shaded.guava.collect.ImmutableList.of(ImmutableList.java:100) ~[armeria-1.20.3.jar:?]
    at com.linecorp.armeria.internal.common.stream.OneElementFixedStreamMessage.drainAll(OneElementFixedStreamMessage.java:61) ~[armeria-1.20.3.jar:?]
    at com.linecorp.armeria.internal.common.stream.FixedStreamMessage.collect(FixedStreamMessage.java:201) ~[armeria-1.20.3.jar:?]
    at com.linecorp.armeria.internal.common.stream.FixedStreamMessage.lambda$collect$2(FixedStreamMessage.java:188) ~[armeria-1.20.3.jar:?]
    at com.linecorp.armeria.common.RequestContext.lambda$makeContextAware$3(RequestContext.java:566) ~[armeria-1.20.3.jar:?]
    at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:174) ~[netty-common-4.1.86.Final.jar:4.1.86.Final]
    at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:167) ~[netty-common-4.1.86.Final.jar:4.1.86.Final]
    at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:470) ~[netty-common-4.1.86.Final.jar:4.1.86.Final]
    at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:403) ~[netty-transport-classes-epoll-4.1.86.Final.jar:4.1.86.Final]
    at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997) ~[netty-common-4.1.86.Final.jar:4.1.86.Final]
    at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-common-4.1.86.Final.jar:4.1.86.Final]
    at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[netty-common-4.1.86.Final.jar:4.1.86.Final]
    at java.lang.Thread.run(Thread.java:833) ~[?:?]

Expected behavior
I'd expect that Data Prepper gives a clearer exception when under high pressure. Additionally, the exceptions should not be coming from the Armeria framework.
Environment (please complete the following information):

OS: Amazon Linux 2

Additional context
This is on the main branch of Data Prepper, not a build.
Also, I can avoid this error by enabling the circuit breaker.

This may be caused by a bug in Armeria which is scheduled to be fixed in 1.22.0.
https://github.com/line/armeria/pull/4652

The above fix worked, but then another issue was manifest. This issue appears to be resolved in https://github.com/line/armeria/pull/4667.
This issue should be completed after updating to use the latest release of Armeria when it is ready.

Resolved by #2274.


Errors when using Wall Height

Errors appearing in console when using some other modules. Notably, Wall Height.

Hi ! Thanks for you feedback. I try to reproduce this issue. Can you tell me what you are doing to get this error message ?

I believe it happens when you are mousing over wall vertexes using Wall Height and its pop up appears.

I released v1.3.6 to add WallHeight tooltip support. This was a very specific bug when WallHeight display a tooltip when one is already displayed. With new version, WallHeight tooltips are now ignored .


Removed pending from non-imported driver and added reason to forget error.

Problem: The label for pending state should not be red. The "transitioning" field in API should not be error. New clusters should not start as "Active". RKE clusters were not showing "Pending" status before, but now they are.
Solution: Give ForgetError associated with pending state a reason, "Pending". Much like the provisioning state's reason, "Provisioning". The state is now blue, like provisioning and remove states. Transition field has a value of "yes". Removed pending state from non-imported drivers. This will prevent drivers from starting in "Active" state. Execute pending logic once, and return RKEdriver regardless of error. Pending will no longer hang. Driver will return despite inevitable forget error.
Issues: #17281, #15907, #17201, #17673, #17282

LGTM

aslo https://github.com/rancher/rancher/issues/16884


How we can use searchable methods?

As per documentations try sorting based on keys but its not working. Mainly we need ...

Multiple keys
Default filter based on one of key

Then only keys method available for sort.

Hi,
Can you show me some code that you tried so I can help you?


Package and distribute Dapr-Ambient resoruces

[ ] Create a multi-platform Docker container for the init-container
[ ] Helm chart package and host in dapr helm repository
[ ] Add section into the documentation

@yaron2 we might need help on this..
is it possible to add @mcruzdev to the org so he can help with the changes ?

I can help to start to do some basic research for this one

@artursouza can you help us with this? any pointers? I would love @asarenkansah and @mcruzdev to be able to work on this

Yes I'll need answers to the following questions to get started on this:

What is the purpose of the init-container? What code will it use and what does it need to accomplish?
What do you mean by “Helm chart package and host in dapr helm repository”? Are you saying we need to modify an existing helm chart package or create a new one and put it in the dapr helm repo?
What documentation do all these changes need to be added to?

My guess on the answers to the questions go as follows, correct me if any of my assumptions are wrong:

The code that's used is found here. It is trying to do some type of work in order to allow dapr to leverage the daemonsets?
The helm chart package is found here. The deployment file will likely need to be modified to include the init-container
The readme file will likely need to be changed to include these specs

Hi @asarenkansah, how are you?

What is the purpose of the init-container? What code will it use and what does it need to accomplish?

The purpose of the init-container is to setup all necessary configuration for daprd.

What do you mean by “Helm chart package and host in dapr helm repository”? Are you saying we need to modify an existing helm chart package or create a new one and put it in the dapr helm repo?

We need to package our Helm Charts and release it on Helm repository, it allows the user do not worry about package locally the Helm chart and install it. The only thing that the user needs to do is something like it:
helm add repo ambient https://salaboy.github.io/helm/
helm repo update
helm install my-ambient amabient/dapr-ambient  --set ambient.appId=<DAPR_APP_ID> --set ambient.channelAddress=<REMOTE_URL> --set ambient.daprd.app.port=<REMOTE_PORT>

Thanks for the explanation, that helps a lot.
I'll go ahead and create a PR to package and push the helm charts, like shown in the Github Workflow. But my understanding is that we'll want to host this in the 'official' dapr public registry - correct @salaboy? Like as follows:
helm repo add ambient https://dapr.github.io/helm-charts/
If so, I'll need to get a better understanding of how to get write permissions to create and upload the helm chart package to that registry.

@asarenkansah @mcruzdev we need to follow this workflow: https://github.com/dapr/dapr/blob/master/.github/workflows/dapr.yml

Arthur created some of the credentials that we need to push the resources.. @mcruzdev @asarenkansah let me know if you can take a look on this.

@salaboy I am available to add this one!

Made a lot of progress today, but I need some help clarifying some key things.
My major concern is with the makefile. Ours is a lot different than how the official dapr repo has their’s setup. I can’t move much further until I get a better understanding on how different our workflows can be. What exactly do they expect to be constant?
More specifically, the following issues have been difficult to navigate:
The official dapr repo pushes their docker images through some markup kinda like a makefile does (haven’t seen this before). Do we need to create something that does the same? Or do we have freedom to deploy it differently?
The official dapr repo builds their artifact a lot differently as well view the following links in order to follow my logic:

Reference to the make release function in the github workflow

Reference to the release call in the makefile

Reference the the release archive function that is referenced in the release call in the makefile

We’ll need to build out our makefile quite a bit more if we need to mimic their deployment. It’d be easier to talk through all this on a zoom call if anyone’s open to that

@asarenkansah great!
ok.. so let me try to answer those questions:

we just need to deploy a single image for the init-container.. so it should be much straight forward: https://github.com/dapr/dapr/blob/2371d2f44a606a8299f290599c95706658de88e2/docker/docker.mk#L167 like that

For building is the same.. we just need to make sure that we create one binary for arm64 and one for amd64, but we don't need to build different binaries.. we just have one.
Here for the release -> https://github.com/dapr/dapr/blob/2371d2f44a606a8299f290599c95706658de88e2/.github/workflows/dapr.yml#L582 I think the idea is to read the github release tag and from there find out which version of the artifacts to create.. We should do something like that.. so we can create releases and run the workflow on top of the github release.

done in v0.0.10 I will create a separate issue for docs


⚠ Bofrost.at has degraded performance

In 65abee7, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 2339 ms

Resolved: Bofrost.at performance has improved in 4aa3823.


Add L2TP server's interface to mpd.conf (#4830)

https://redmine.pfsense.org/issues/4830
https://forum.pfsense.org/index.php?topic=95908.0

Resubmitted as noted above, with a backport for RELENG_2_2. This can be closed.

@TarasSavchuk Since my resubmit was not acceptable due to authorship, you can either take that code from my PR referenced above and resubmit this yourself (it will probably only keep working for a couple of days at best before there's another bunch of conflicts), or live with the bug in pfSense code.
There is also a backport of the code to RELENG_2_2 in PR #1911, feel free to resubmit that as well.
Nothing more I could do here, sorry for the waste of your time.
Have a nice day.


Integrate Travis-CI to run installation tests

I'm closing this because the build takes ~30 minutes to complete and it does not add much. Let's just run tests locally.


how to exclude submodules?

I got a rexo + live unit tests working in C, but, it is guts to make to ignore completely src/rexo folder, which is actually a git submodule and i do not need to cover it (it is project dependencies)

https://github.com/default-writer/c

Closing as per comment : https://github.com/tenninebt/vscode-koverage/pull/26#issuecomment-1351626540


Future of this project

Now that parse.com is officially shut down, it's worth having a discussion about the future of this project.
Since I imagine most of the current parse users will either be using javascript (or a hosted solution, but that's $$ and the original draw of parse was the lack of cost), the active maintenance of this gem makes less sense than it did a few years ago.
For me personally, the shutdown means I don't really use Parse for anything anymore. Separately, I write less ruby code than I used to. Between those two factors, my devotion and ability to maintain this (awesome) library hasn't been what it could be. @rhymes is doing an awesome job and if they've got the time/need for it, there's no reason to shut anything down.
So really, the purpose of this is to get a feel for how much demand there is here and as a result, what sorts of resources we should try to allocate.
Thanks for reading!

Hi,
after the shutdown (actually before that) many hosted Parse Servers popped up (see https://www.sashido.io/, https://www.nodechef.com/parse-server, https://www.back4app.com/ and more).
It is true that many people just migrated away from Parse altogether but some just took the easier route of self-hosting o using one of the mentioned hosted services. In the case of a client I work for I had to setup two Parse Server installations on Heroku and we still use parse-ruby-client to communicate with those servers, though it's just a temporary solution until they migrate the mobile clients away from Parse altogether.
I myself have not much time to keep maintaining this library and I agree there's probably less interest in it (not much to begin with?) but I would try to reach the mythical 1.0 anyway.

👋 Using a Parse community server here.


Access to storage.cloud.google.com

Hello!
I hope this is the right repository to ask this question so here we go.
I am trying to implement custom authentication for my resources on Google Cloud Storage using this module with a service account. I am trying to abstract away the need for a Google account for my end users.
What the idea workflow would look like:

User queries https://cdn.example.com/[[BUCKET]]/[[FILENAME]] using Bearer token
The API on that end intercepts the bucket and file name and checks the validity of the token
The API then would request the resource at https://storage.cloud.google.com/[[BUCKET]]/[[FILENAME]]
Step 3 Returns the Location header that I will pass over to the user

After snooping around a bit I found out that the Location header returned in step 3 in the form of https://[[DATA]].googleusercontent.com/download/storage/v1/b/[[BUCKET]]/o/[[FILENAME]]?qk=[[KEY]] is a public link that can be accessed by anonymous users too. Which is exactly what I want. However while using the storage API I can only see selfLink and mediaLink, not the link above.
I tried using google-auto-auth to sign the request with my service account towards the storage.cloud.google.com endpoint but I get an Unauthorized error.
From looking here I understand that to access the storage.cloud.google.com is based on cookie authentication, which google-auto-auth doesn't seem to do. All it does is add a Bearer token to the header of the request.
This looks like you need signedUrls
Yea, that would be great, if it didn't expose the email of the service account.
Cheers!
TL;DR How to get the redirect URL from storage.cloud.google.com links using a service account?

I think these questions are more appropriate for someone on the Storage team, or the wider community of users themselves. You can get links to both from the Support page: https://cloud.google.com/storage/docs/support.

Alright, posted it here in case someone wants to help out.


Updates to the ORDS API definitions

This change has been merged with https://github.com/bcgov/jag-rsbc-digital-forms-vips-integration/pull/55


[BUG] Generic typehints causing mypy errors

Describe the bug
The following code results in a mypy error
from typing import List
from fastapi import FastAPI, params

def admin_dependencies() -> List[params.Security]:
    return []

app = FastAPI()

@app.get("/", dependencies=admin_dependencies())
def admin_endpoint():
    pass

The mypy error is
error: Argument "dependencies" to "get" of "FastAPI" has incompatible
    type "List[Security]"; expected "Optional[List[Depends]]"

This error is occurring because List is invariant. However, if I understand correctly, in this case dependencies can be safely type hinted as Sequence, which is covariant (and would fix the mypy error). This specific case (for dependencies) occurs in a few places that could probably be replaced.
This is probably also the case for the routes argument to FastAPI.

Thanks for the report. I'll check it soon.

Thanks for the clear report, with auto-contained test and explanation :heavy_check_mark:
This is handled in #338 and will be included in the next release :rocket:


[QA] Scene shader alpha looks wrong

Problem
Most of the textures with any alpha look broken in the scenes.

Do we have a location for these issues?


Add example of how to use this library for protractor. A complete setup will be really helpful

I can't understand how to configure it in an Angular 9 project (protractor 5). I've already wasted a lot of time trying. An example would help me a lot.

@vinibas you can use the new version of ng-apimock. It has been split up into modules.
here you can find a demo of protractor configuration.


Implementation of hinge loss does not match the paper

Hello Kipf, I find there is a discrepancy between the loss mentioned in the paper.
According to Eq(5) in paper, for negative samples, you calculate the Euclidean distance between negative state sample at timestep t and state at timestep t+1.
However, in the code below, state and neg_state are both at timestep t.
self.neg_loss = torch.max(
    zeros, self.hinge - self.energy(
        state, action, neg_state, no_trans=True)).mean()

I noticed that the same question was also asked here.
I want to know if this is a bug ? Does the discrepancy affect the final performance ?

Thanks for your comment. This is indeed a (small) difference and it should
not affect performance in any significant way. I expect that one could show
that both formulations are equivalent for a system where the probability of
visiting any state in the MDP is the same (which should be the case for the
randomly initialized block pushing tasks and the physics simulation). For
the Atari games this assumption is violated however and there could be
(minor) differences in performance between either of the two
implementations, but I would expect them to be smaller than the variance
you get from the parameter initialization. If you happen to test this
experimentally, please share your results here :)
On Sun, Feb 7, 2021 at 11:17 AM Alex<EMAIL_ADDRESS>wrote:

Hello Kipf, I find there is a discrepancy between the loss mentioned in
the paper.
According to Eq(5) in paper, for negative samples, you calculate the
Euclidean distance between negative state sample at timestep t and state
at timestep t+1.
However, in the code below, state and neg_state are both at timestep t.
self.neg_loss = torch.max(
zeros, self.hinge - self.energy(
state, action, neg_state, no_trans=True)).mean()
I noticed that the same question was also asked here
https://github.com/tkipf/c-swm/issues/3.
I want to know if this is a bug ? Does the discrepancy affect the final
performance ?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/tkipf/c-swm/issues/7, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABYBYYCJMHLDCPCGIYKGDL3S5ZSCBANCNFSM4XHJKOYQ
.

Hi, thanks for your answer.
I now understand that that both formulations are equivalent.
But I have another question:
For the Atari games, even if I set the same random seed, multiple executions of the application behave differently.
According to my understanding, when I set the same seed, multiple calls to the program will produce the same result.
Are there other nondeterministic operations in the code that cause the randomness ?

Yes, I believe either the frame_skip between the individual actions (or for
how many frames an action is applied) is not fully deterministic in the gym
environment that our codebase uses. If you happen to have more insight into
this, please feel free to share it here.
On Wed, Feb 24, 2021 at 4:34 AM Alex<EMAIL_ADDRESS>wrote:

Hi, thanks for your answer.
I now understand that that both formulations are equivalent.
But I have another question:
For the Atari games, even if I set the same random seed, multiple
executions of the application behave differently.
According to my understanding, when I set the same seed, multiple calls to
the program will produce the same result.
Are there other nondeterministic operations in the code that cause the
randomness ?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/tkipf/c-swm/issues/7#issuecomment-784727128, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ABYBYYCQ3FYYXDUHQ75IVWLTARXWDANCNFSM4XHJKOYQ
.


Make "/" and "" equal the same thing

Sounds like everyone is on board with this. Make the use of "/" equivalent to using "" (empty quotes). See https://github.com/angular-ui/ui-router/issues/174#issuecomment-19330523

This will kill the HTML standard use of '#' navigation. Right now it is not working with #, every #identifier link is replaced to a #/identifier url. Can you guys stop messing html standards?!

I'm pretty sure this is resolved (and, correctly) by the $location service.

are you saying, use $location instead of url like below?
.state('contact', {
url: '#contact-div',     // $location='#contact-div'
    templateUrl: ''

  })

I'm saying that, under the hood, UI-Router uses the $location service.

I know. Just to make it easy,
How would you do this simple page with ng-ui when I DO NOT WANT TO or NEED TO chop all the <  div > into a separate .html file (I really don't understand why  should I have to have 100 .html files?)
http://www.codeply.com/render/DRBmOoChfM

@eddiemonge Don't we basically have this now with being able to turn strict matching off?

not sure. maybe? would need to test to verify


Update handlers.py

Fixes # .
Changes proposed in this pull request:

Added comments to make the handlers more justified.

Coverage remained the same at 100.0% when pulling 408f9429d1c4a38af6984d058dbbc8c89cac6968 on rtspeaks360:master into 10a0c15f6fb3208ae4de9b59b1ff82058af55b6c on zalando:master.


address snyk high and critical issues

Address critical and high vulnerabilities of SNYK
Description

Address critical and high vulnerabilities of SNYK by updating transformers
How Has This Been Tested?

Merge criteria:

[x] The commits are squashed in a cohesive manner and have meaningful messages.
[ ] Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
[ ] The developer has manually tested the changes and verified that the changes work

/lgtm


ManagedServiceIdentityClient.user_assigned_identities.create_or_update fails

Package name: azure.mgmt.msi:
Package version: 6.0.0:
Operating system: MacOS:
Python 3.10:

Describe the bug
I have a python code written to create a managed identity, which fails.

        The base implementation authorizes the request with a bearer token.

        :param ~azure.core.pipeline.PipelineRequest request: the request
        """
        self._enforce_https(request)

        if self._token is None or self._need_new_token:
>           self._token = self._credential.get_token(*self._scopes)
E           AttributeError: 'AzureIdentityCredentialAdapter' object has no attribute 'get_token'

../venv/lib/python3.10/site-packages/azure/core/pipeline/policies/_authentication.py:94: AttributeError

This was not happening in 1.0.0.
But with 6.0.0, it is throwing the above error. Please help.

Thanks for the feedback, we'll investigate this asap.

Could you please provide an update on this? Or should we look at the possibility of downgrading the version from 6.0.0 to a lower stable version?

Hi, 1.0.0 is  track1 version, and >=6.0.0b1 is track2 version: changelog
There is slight difference between track1 and track2. Here is the migration guidance and hope the doc could help you


[Feature][Showcase] Java agent injection for kubernetes

Description
Introduce a new case that shows how the java agent injector works to showcase repo.
We can add a new feature into the repo by referring to the agentless case which is recommended by @kezhenxu94
In this feature, we should

create a new namespace for the operator
deploy the swck operator.
remove the java app image with the java agent. Use the java agent injector to attach the official agent image.
update the agent's backend address to the single-node or cluster feature. (Their address is identical. One of them should be deployed with this feature)

@dashanji Do you interest in this?
@wu-sheng @kezhenxu94 any insight about this?

Are we going to remove the agent-image based solution? Using injection to replace?

Are we going to remove the agent-image based solution? Using injection to replace?

FWIK, agent-image solution is broadly used in kubernetes environment. I prefer adding a new feature instead of replacing it.

I would recommend you to read this discussion context. https://github.com/apache/skywalking-kubernetes/pull/83#issuecomment-979649648
I don't have to make showcase complex, as we never have a chance to cover all user cases. Showcase should be simple, straight forward, no option. Otherwise, it makes no different with current documentation.
I prefer to write a document(I think we have it already, right?) and a step-by-step blog(more searchable in the search engine) to introduce this feature.
What do you think?

I don't have to make showcase complex, as we never have a chance to cover all user cases. Showcase should be simple, straight forward, no option. Otherwise, it makes no different with current documentation. I prefer to write a document(I think we have it already, right?) and a step-by-step blog(more searchable in the search engine) to introduce this feature.

Make sense. a canonical path is better and neater than many options. I will update the task list accordingly.

Yes, I'd like to do it.


Rancher/cattle 1.6.12 Vxlan: hosts unable to communicate in Vsphere 6.7 environment

Hi everyone,
I have a problem about the communication between containers of different docker hosts managed by Rancher (therefore on the internal network <IP_ADDRESS>/16).
Network communication is via VxLan, port 4789 is correctly open and reachable and healthcheck istatus is OK.
In detail, I see the traffic going correctly up to the vxlan router related to the vxlan of the source host, and then it stops. It therefore does not communicate with the vxlan router relative to the vxlan of the destination host. Infact, if I launch a traceroute I see the following behavior:
traceroute  <IP_ADDRESS>
traceroute to <IP_ADDRESS> (<IP_ADDRESS>), 30 hops max, 60 byte packets
1  <IP_ADDRESS> (<IP_ADDRESS>)  0.297 ms  0.222 ms  0.216 ms   <------ SOURCE IP VXLAN-ROUTER
2  * * *
3  * * *
4  * * *
5  * * *
6  * * *
...
Sniffing the traffic on the source router I see packets going to the destination vxlan router but if I sniff the traffic on the destination vxlan router I don't see any packets.
Of course, on the same host, the communication between the containers works correctly.
The virtual environment on which docker hosts are virtualized is Vmware (Vsphere 6.7).
I also have another environment managed with the same version of Rancher and with the exactly same docker hosts (Ubuntu 16.04), the only thing that changes is the virtualizer, which this time is Ovirt (4.2). In this environment the communication between the containers works correctly. The two environments are on the same infrastructure at the level of physical hosts and network.
The tests I have already done are the following:

Disabling all firewalls (including the one on Esxi)
Host docker management via Swarm instead of Rancher/Cattle: it works!
Use of other OS for docker hosts

Here are all details about the software versions:
Rancher Version: 1.6.12
Rancher services details:
rancher/net:v0.11.9
rancher/healthcheck:v0.3.3
rancher/dns:v0.15.3
rancher/storage-nfs:v0.8.5
rancher/net:holder
rancher/net:v0.13.1
rancher/metadata:v0.9.5
rancher/network-manager:v0.7.18
rancher/agent:v1.2.7
Ovirt version: <IP_ADDRESS>-1.el7
Vsphere Vmware version: 6.7
Docker host OS: Ubuntu 16.04
Thank you in advance for any help or suggestion
Best Regards

Are you perhaps running NSX in your vSphere cluster? NSX will add VMkernel dvfilter rules to silently drop any VXLAN packets which aren't NSX traffic.. in which case the solution is to 1) change NSX to use a different port for VXLAN, or 2) Configure Rancher/Kubernetes to use a different port for VXLAN.

Are you perhaps running NSX in your vSphere cluster? NSX will add VMkernel dvfilter rules to silently drop any VXLAN packets which aren't NSX traffic.. in which case the solution is to 1) change NSX to use a different port for VXLAN, or 2) Configure Rancher/Kubernetes to use a different port for VXLAN.

Thank you for reply. No, I'm not using NSX but only standard vswitch.


Add is_of__class in application model

Add is_of__class in application model
Change-type: minor
Signed-off-by: Andrea Rosci<EMAIL_ADDRESS>
Contributor checklist

[ ] Includes tests
[ ] Includes typings
[ ] Includes updated documentation
[ ] Includes updated build output

@balena-ci rebase

@balena-ci I self-certify!

@balena-ci restart

@balena-ci retest


Source maps have null sourcesContent for all TypeScript files in sub folders

In version 3.1.3, I'm seeing a very similar behavior as the one described in #256. Source map contents of top-level files are included, but for each and every TypeScript file located in a sub folder, the generated source map only contains "null" entries for the content.
I'm currently trying to find out whether this is a regression after the 3.x release which supposedly fixed the above mentioned issue. I spent some time trying to track this down, but no matter what features and settings of the involved tools I use, there doesn't seem to be a workaround.
Any idea?

This might be caused by an external tool not handling the rewritten path finding in gulp-typescript 3 correctly, because it seems to be working fine in a repro without using that said tool.
I opened an issue there too: https://github.com/aurelia/cli/issues/455

The testcase (test/sourceMaps) still passes, so I suspect that it is a configuration error. Though if you can provide a small testcase that clearly demonstrates the bug, then I can investigate it.

Could you try to upgrade to 3.1.4? That includes #472, which might fix your issue.

Perfect, that fixes it! Thanks also to @nenadvicentic!


ribbit.network: Set ribbit.local as the mDNS hostname

What?
Expose a user-friendly hostname for the Ribbit sensor on the local network.
Fixes #10
How?
The Micropython ESP32 port already have (via ESP-IDF) an mDNS responder. We just need to set its hostname properly.

Oh perfect! Thanks!

I've confirmed this to be working:


Owen Hines: Watch techwhoop.com

Owen Hines requests the watch of the watch_keyword techwhoop.com. See the Metasmoke search here

!!/approve


@save vs. >>

I was looking for a way to save responses to a file with this extension. The first thing I saw was output redirection, but I couldn't get it to work.
GET https://httpbin.org/get
>> c:/users/me/desktop/test.json

I tried also with backslashes instead of slashes, and a blank line after the GET line, but no file was saved.
Then I found Save, which does work.
 Or am I not using output redirection correctly?
Edit: Redirection does seem to work if I just give it a filename -- the file is created in the same directory as the .http file. but I can't seem to get it to work with a full path.

The feature is supposed to work, though I included mainly for compatibility with Intellij Http Client. # @save was initially my idea and I had implemented before. They behave differently because the outputRedirection automatically saves the response, # @save is a manual step.
I also just ran it successfully for relative paths. Absolute paths does not work. Will look into it.

I have now published the fix with v5.2.0


feat: add mutation support to solid-query

Add mutation support to the solid-query PoC port of react-query.

👍🏻


Assign tasks to specific student

As a TA, I can assign tasks to a specific student so that I can allocate and track a task that is given to the student.

Implmentation of Assign command is done. Test cases are yet to be updated.


[SQL][PARQUET] Fix for Vectorized Parquet filter pushdown

What changes were proposed in this pull request?
Fix parquet filter pushdown from not reaching all the way down to the file level
Use of previous deprecated constructor defaults to null metadata, which
prevents pushdown from reaching the Parquet level.
How was this patch tested?
Looking at output of collects from SparkShell, before were printing warnings about CorruptStatistics, preventing pushing down filters to individual parquet files. Now able to use the metadata in each file to pushdown.
(If this patch involves UI changes, please attach a screenshot; otherwise, remove this)

Can one of the admins verify this patch?

https://github.com/apache/spark/pull/14160 solves the same thing.

Yep, looks like the other one was closed by the committer. I saw Sean commented that this might need to be tested against 2.2, is that going to be necessary?

bump?

@hvanhovell Anything new on this front?

@andreweduffy not much. I'll trigger a test.
@liancheng could you take a look at this?

Could you open a JIRA or add the existing JIRA to the PR?

Test build #3211 has started for PR 14159 at commit e64251a.

Actually it appears that since this was opened, later PR #14450 fixes this. Should be safe to close now.

Ok :)... Could you close then?

Yep, closing now

Test build #3211 has finished for PR 14159 at commit e64251a.

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


Similar project

I just found https://hackmd.io/features, it's open source and the backend it's written in Node. It has tons of super useful features, and a very nice frontend.
Maybe you want to take a look!

wow! This is a NICE project!


Bug: Notebook Editor, Interactive Window, Python Editor does not work with diff

Bug: Notebook Editor, Interactive Window, Editor cells
Steps to cause the bug to occur

Select two .ipynb files from explorer
Right click, select "Compare Selected" from context menu

Actual behavior
Two diff panels open up for a split second, then close.
Expected behavior
The diff panels show up and allow user to inspect files.
Your Jupyter and/or Python environment
Please provide as much info as you readily know

Jupyter server running:  N/A
Extension version: 2020.5.80290
VS Code version: 1.45.1
Setting python.jediEnabled: true
Setting python.languageServer: Jedi | Microsoft | None
Python and/or Anaconda version: 3.6.1 (but it's irrelevant)
OS: Windows 10
Virtual environment: N/A

Developer Tools Console Output
None

Looks very similar to this: https://github.com/microsoft/vscode-python/issues/7905#issue-505479525
but it's triggered differently.

In my case, the automatically loaded Notebook Editor always mess up with diffs inside the Source Control panel. And setting "python.dataScience.useNotebookEditor": false works as a temporary solution.

@harvastum Repro-ed. We'll triage this, thank you for the bug report!


[UI] [Monitoring] The first row in selector is empty.

For replay this bug you need:
Test case

Go to SS and login under any account.
Go to 'Monitoring' page, click on 'Environment' title and click on 'Peer' title.

Result: you can observe empty row in selector

Tested.


Does "Door" accessoryType work for someone?

When I use "motion" as the accessoryType I do see my motions in the history graph and in the data log. However, if I use "door", I don't see anything in the graph and if I click on the "..." it's just spinning and not showing any data?
Do someone else see the same issue?

For "door" you have to add all the extra characteristics to the ContactService

Can you give me a hint, what characteristics are needed.

See here https://github.com/ebaauw/homebridge-lib/blob/master/lib/EveHomeKitTypes.js for extra characteristics in Door and here https://github.com/simont77/fakegato-history/wiki/Services-and-characteristics-for-Elgato-Eve-devices for meaning

// Used in Eve Door       this.createService('ContactSensor', hap.Service.ContactSensor.UUID, [       hap.Characteristic.ContactSensorState,       eve.Characteristic.TimesOpened,       eve.Characteristic.OpenDuration,       eve.Characteristic.ClosedDuration,       eve.Characteristic.LastActivation     ])

Thanks for all your help...meanwhile I was able to get the things running....

Hi sorry for comment to closed question, i create ContactSensor and add all eve characteristics:
this.alarmService = new Service.ContactSensor(this.name + " Alarm");
          this.alarmService.addCharacteristic(CustomCharacteristic.OpenDuration);
          this.alarmService.addCharacteristic(CustomCharacteristic.ClosedDuration);
          this.alarmService.addCharacteristic(CustomCharacteristic.TimesOpened);
          this.alarmService.addCharacteristic(CustomCharacteristic.LastActivation);
          this.alarmService.addCharacteristic(CustomCharacteristic.ResetTotal);

          this.alarmService.log = this.log;
          this.alarmLoggingService = new FakeGatoHistoryService("door", this.alarmService, {
            storage: this.storage,
            minutes: this.refresh * 10 / 60,
          });
          this.alarmLoggingService.subtype = "alarm";

And when i logging like this:
var state = notDetected ? Characteristic.ContactSensorState.CONTACT_NOT_DETECTED : Characteristic.ContactSensorState.CONTACT_DETECTED;

this.alarmService.setCharacteristic(Characteristic.ContactSensorState, state);
this.alarmLoggingService.addEntry({
  time: moment().unix(),
  status: state
})

But in eve app shows no data for contact history
Do i need do sometihig else? Compute and set those characteristicts?
Thank you for answers

Hi sorry for comment to closed question, i create ContactSensor and add all eve characteristics:
this.alarmService = new Service.ContactSensor(this.name + " Alarm");
          this.alarmService.addCharacteristic(CustomCharacteristic.OpenDuration);
          this.alarmService.addCharacteristic(CustomCharacteristic.ClosedDuration);
          this.alarmService.addCharacteristic(CustomCharacteristic.TimesOpened);
          this.alarmService.addCharacteristic(CustomCharacteristic.LastActivation);
          this.alarmService.addCharacteristic(CustomCharacteristic.ResetTotal);

          this.alarmService.log = this.log;
          this.alarmLoggingService = new FakeGatoHistoryService("door", this.alarmService, {
            storage: this.storage,
            minutes: this.refresh * 10 / 60,
          });
          this.alarmLoggingService.subtype = "alarm";

And when i logging like this:
var state = notDetected ? Characteristic.ContactSensorState.CONTACT_NOT_DETECTED : Characteristic.ContactSensorState.CONTACT_DETECTED;

this.alarmService.setCharacteristic(Characteristic.ContactSensorState, state);
this.alarmLoggingService.addEntry({
  time: moment().unix(),
  status: state
})

But in eve app shows no data for contact history
Do i need do sometihig else? Compute and set those characteristicts?
Thank you for answers

Does the history appear (even if empty) or not? I'm not completely sure that the subtype is well accepted by Eve.

Does the history appear (even if empty) or not? I'm not completely sure that the subtype is well accepted by Eve.

@simont77 hi thank you for answer
subtype is only for homebridge, when i add two FakeGatoHistoryService services (one for temperature one for alarm). I will try create only one alarm service but i think it is not issue. (it is standart way to add more service same type)
Yes all characteristics are displayed in EVE app but without history. Opened state is not working too. GUI shows loading but no data, homebridge logs seems OK, i see adding and retrieving history

@simont77 hi thank you for answer
subtype is only for homebridge, when i add two FakeGatoHistoryService services (one for temperature one for alarm). I will try create only one alarm service but i think it is not issue. (it is standart way to add more service same type)
Yes all characteristics are displayed in EVE app but without history. Opened state is not working too. GUI shows loading but no data, homebridge logs seems OK, i see adding and retrieving history

Yes, try to add only one FakeGatoService. Eve's real accessory has only one, I don't know what will happen with 2 in the same Accessory, since they will use the same Characteristics to speak with Eve.

Yes, try to add only one FakeGatoService. Eve's real accessory has only one, I don't know what will happen with 2 in the same Accessory, since they will use the same Characteristics to speak with Eve.

i have two accessories and two fakegato services, one per accessory, but i will try and i let you known :)

i have two accessories and two fakegato services, one per accessory, but i will try and i let you known :)

Two accessories and two fakegato is ok. If the log are ok, but data is not appearing if may be some issue with time. Check that ios and homebridge are reasonably on time and in the same time zone. Eve will not show event is the future. If your history start time was set in the future you have to reset the history in the app. Unfortunately where is no way to do that when no data is shown apart from reinstalling Eve. A workaround is to change accessory name and serial, so that it is considered a new one. Also check that the name and serial only use valid character (see on the readme).

Two accessories and two fakegato is ok. If the log are ok, but data is not appearing if may be some issue with time. Check that ios and homebridge are reasonably on time and in the same time zone. Eve will not show event is the future. If your history start time was set in the future you have to reset the history in the app. Unfortunately where is no way to do that when no data is shown apart from reinstalling Eve. A workaround is to change accessory name and serial, so that it is considered a new one. Also check that the name and serial only use valid character (see on the readme).

Other fakegato service displays history data OK (for temperature and/or humidity), so i think homebridge and ios timezone and time is ok (and i see in your source code that you use unixtimestamp and it is timezone independent). Both accessory has different name. (door/contact service has " alarm" suffix)
this is current code snippet of getServices method:

   // Information Service
var informationService = new Service.AccessoryInformation();

informationService
    .setCharacteristic(Characteristic.Manufacturer, "homebridge-rtl_433")
    .setCharacteristic(Characteristic.SerialNumber, hostname + "-" + this.name)
    .setCharacteristic(Characteristic.FirmwareRevision, require('./package.json').version);

this.sensorService = new Service.TemperatureSensor(this.name);

this.sensorService
    .getCharacteristic(Characteristic.CurrentTemperature)
    .setProps({
        minValue: -100,
        maxValue: 100
    });

this.timeoutCharacteristic = Characteristic.CurrentTemperature;
this.timeout = setTimeout(deviceTimeout.bind(this), this.deviceTimeout * 60 * 1000); // 5 minutes

this.sensorService.log = this.log;
this.loggingService = new FakeGatoHistoryService("weather", this.sensorService, {
    storage: this.storage,
    minutes: this.refresh * 10 / 60
});
if (this.alarm !== undefined) {
    this.alarmService = new Service.ContactSensor(this.name + " Alarm");
    this.alarmService.addCharacteristic(CustomCharacteristic.OpenDuration);
    this.alarmService.addCharacteristic(CustomCharacteristic.ClosedDuration);
    this.alarmService.addCharacteristic(CustomCharacteristic.TimesOpened);
    this.alarmService.addCharacteristic(CustomCharacteristic.LastActivation);
    this.alarmService.addCharacteristic(CustomCharacteristic.ResetTotal);

    this.alarmService.log = this.log;
    this.alarmLoggingService = new FakeGatoHistoryService("door", this.alarmService, {
        storage: this.storage,
        minutes: this.refresh * 10 / 60,
    });
    this.alarmLoggingService.subtype = "alarm";
    debug("XXX Subtype", this.alarmLoggingService.subtype)
    debug("XXX getServiceId()", this.alarmLoggingService.getServiceId())
    informationService
        .setCharacteristic(Characteristic.Model, "Temperature Sensor with Alarm @ " + this.alarm);
} else {
    informationService
        .setCharacteristic(Characteristic.Model, "Temperature Sensor");
}

if (this.alarm !== undefined) {
    return [informationService, this.sensorService, this.alarmService, this.loggingService, this.alarmLoggingService];
} else {
    return [informationService, this.sensorService, this.loggingService];
}

I will try later today remove all other accessory code and test only one accessory with one history service and if it will not working i will attach code and homebridge logs.
Thank you for cooperation :)

Other fakegato service displays history data OK (for temperature and/or humidity), so i think homebridge and ios timezone and time is ok (and i see in your source code that you use unixtimestamp and it is timezone independent). Both accessory has different name. (door/contact service has " alarm" suffix)
this is current code snippet of getServices method:

   // Information Service
var informationService = new Service.AccessoryInformation();

informationService
    .setCharacteristic(Characteristic.Manufacturer, "homebridge-rtl_433")
    .setCharacteristic(Characteristic.SerialNumber, hostname + "-" + this.name)
    .setCharacteristic(Characteristic.FirmwareRevision, require('./package.json').version);

this.sensorService = new Service.TemperatureSensor(this.name);

this.sensorService
    .getCharacteristic(Characteristic.CurrentTemperature)
    .setProps({
        minValue: -100,
        maxValue: 100
    });

this.timeoutCharacteristic = Characteristic.CurrentTemperature;
this.timeout = setTimeout(deviceTimeout.bind(this), this.deviceTimeout * 60 * 1000); // 5 minutes

this.sensorService.log = this.log;
this.loggingService = new FakeGatoHistoryService("weather", this.sensorService, {
    storage: this.storage,
    minutes: this.refresh * 10 / 60
});
if (this.alarm !== undefined) {
    this.alarmService = new Service.ContactSensor(this.name + " Alarm");
    this.alarmService.addCharacteristic(CustomCharacteristic.OpenDuration);
    this.alarmService.addCharacteristic(CustomCharacteristic.ClosedDuration);
    this.alarmService.addCharacteristic(CustomCharacteristic.TimesOpened);
    this.alarmService.addCharacteristic(CustomCharacteristic.LastActivation);
    this.alarmService.addCharacteristic(CustomCharacteristic.ResetTotal);

    this.alarmService.log = this.log;
    this.alarmLoggingService = new FakeGatoHistoryService("door", this.alarmService, {
        storage: this.storage,
        minutes: this.refresh * 10 / 60,
    });
    this.alarmLoggingService.subtype = "alarm";
    debug("XXX Subtype", this.alarmLoggingService.subtype)
    debug("XXX getServiceId()", this.alarmLoggingService.getServiceId())
    informationService
        .setCharacteristic(Characteristic.Model, "Temperature Sensor with Alarm @ " + this.alarm);
} else {
    informationService
        .setCharacteristic(Characteristic.Model, "Temperature Sensor");
}

if (this.alarm !== undefined) {
    return [informationService, this.sensorService, this.alarmService, this.loggingService, this.alarmLoggingService];
} else {
    return [informationService, this.sensorService, this.loggingService];
}

I will try later today remove all other accessory code and test only one accessory with one history service and if it will not working i will attach code and homebridge logs.
Thank you for cooperation :)

@simont77 you was right, i created one accessory with two services: temperature and contact which each has own logging service. And this was problem for EVE app.
If i create only one contact service with history - it is working for "times opened" but not for "contact" state history, and also "Last Opened" info is wrong (i think it shows time of first log entry)
I manage to this state: https://github.com/simont77/fakegato-history/issues/29#issuecomment-378197180
But now i known that problem is in my code and as you say, I must simulate real eve door device as much is possible :)
PS: logs seems OK:
[1/19/2021, 20:13:31] [rtl_433] **Fakegato-timer: addData  Door obyvacka Alarm { time:<PHONE_NUMBER>, status: 0 }  immediate:  true
[1/19/2021, 20:13:31] [rtl_433] **Fakegato-timer callbackDoor:  Door obyvacka Alarm , immediate:  true , entry:  { time:<PHONE_NUMBER>, status: 0 }
[1/19/2021, 20:13:31] [rtl_433] First entry Door obyvacka Alarm: 0
[1/19/2021, 20:13:31] [rtl_433] Last entry Door obyvacka Alarm: 2
[1/19/2021, 20:13:31] [rtl_433] Used memory Door obyvacka Alarm: 2
[1/19/2021, 20:13:31] [rtl_433] 116 Door obyvacka Alarm:<PHONE_NUMBER>000000db66b72501 06010300c00f00000000000000000101
[1/19/2021, 20:13:58] [rtl_433] Data request Door obyvacka Alarm:<PHONE_NUMBER>0000
[1/19/2021, 20:13:58] [rtl_433] Address requested Door obyvacka Alarm: 0
[1/19/2021, 20:13:58] [rtl_433] Door obyvacka Alarm Entry: 2, Address: 2
[1/19/2021, 20:13:58] [rtl_433] Data Door obyvacka Alarm:<PHONE_NUMBER> 0100 0000 81db66b7250000 0000 00 0000 0b<PHONE_NUMBER>0000000100
[1/19/2021, 20:19:45] [rtl_433] **Fakegato-timer callbackDoor:  Door obyvacka Alarm , immediate:  false , entry:  { time:<PHONE_NUMBER>, status: 0 }
[1/19/2021, 20:19:45] [rtl_433] First entry Door obyvacka Alarm: 0
[1/19/2021, 20:19:45] [rtl_433] Last entry Door obyvacka Alarm: 3
[1/19/2021, 20:19:45] [rtl_433] Used memory Door obyvacka Alarm: 3
[1/19/2021, 20:19:45] [rtl_433] 116 Door obyvacka Alarm:<PHONE_NUMBER>000000db66b72501 06010400c00f00000000000000000101
[1/19/2021, 20:20:10] [rtl_433] Data request Door obyvacka Alarm:<PHONE_NUMBER>0000
[1/19/2021, 20:20:10] [rtl_433] Address requested Door obyvacka Alarm: 3
[1/19/2021, 20:20:10] [rtl_433] Door obyvacka Alarm Entry: 3, Address: 3
[1/19/2021, 20:20:10] [rtl_433] Data Door obyvacka Alarm:  0b<PHONE_NUMBER>0100000100
[1/19/2021, 20:22:27] [rtl_433] **Fakegato-timer: addData  Door obyvacka Alarm { time:<PHONE_NUMBER>, status: 1 }  immediate:  true
[1/19/2021, 20:22:27] [rtl_433] **Fakegato-timer callbackDoor:  Door obyvacka Alarm , immediate:  true , entry:  { time:<PHONE_NUMBER>, status: 1 }
[1/19/2021, 20:22:27] [rtl_433] First entry Door obyvacka Alarm: 0
[1/19/2021, 20:22:27] [rtl_433] Last entry Door obyvacka Alarm: 4
[1/19/2021, 20:22:27] [rtl_433] Used memory Door obyvacka Alarm: 4
[1/19/2021, 20:22:27] [rtl_433] 116 Door obyvacka Alarm:<PHONE_NUMBER>000000db66b72501 06010500c00f00000000000000000101
[1/19/2021, 20:22:27] [rtl_433] Data request Door obyvacka Alarm:<PHONE_NUMBER>0000
[1/19/2021, 20:22:27] [rtl_433] Address requested Door obyvacka Alarm: 4
[1/19/2021, 20:22:27] [rtl_433] Door obyvacka Alarm Entry: 4, Address: 4
[1/19/2021, 20:22:27] [rtl_433] Data Door obyvacka Alarm:  0b<PHONE_NUMBER>0200000101
[1/19/2021, 20:24:40] [rtl_433] **Fakegato-timer: addData  Door obyvacka Alarm { time:<PHONE_NUMBER>, status: 1 }  immediate:  true
[1/19/2021, 20:24:40] [rtl_433] **Fakegato-timer callbackDoor:  Door obyvacka Alarm , immediate:  true , entry:  { time:<PHONE_NUMBER>, status: 1 }
[1/19/2021, 20:24:40] [rtl_433] First entry Door obyvacka Alarm: 0
[1/19/2021, 20:24:40] [rtl_433] Last entry Door obyvacka Alarm: 5
[1/19/2021, 20:24:40] [rtl_433] Used memory Door obyvacka Alarm: 5
[1/19/2021, 20:24:40] [rtl_433] 116 Door obyvacka Alarm: 9d02000000000000db66b72501 06010600c00f00000000000000000101
[1/19/2021, 20:27:04] [rtl_433] Clock adjust Door obyvacka Alarm: 086ab725
[1/19/2021, 20:27:04] [rtl_433] Data request Door obyvacka Alarm:<PHONE_NUMBER>0000
[1/19/2021, 20:27:04] [rtl_433] Address requested Door obyvacka Alarm: 5
[1/19/2021, 20:27:04] [rtl_433] Door obyvacka Alarm Entry: 5, Address: 5
[1/19/2021, 20:27:04] [rtl_433] Data Door obyvacka Alarm:  0b 050000009d0200000101
[1/19/2021, 20:27:06] [rtl_433] Clock adjust Door obyvacka Alarm: 0a6ab725

@simont77 you was right, i created one accessory with two services: temperature and contact which each has own logging service. And this was problem for EVE app.
If i create only one contact service with history - it is working for "times opened" but not for "contact" state history, and also "Last Opened" info is wrong (i think it shows time of first log entry)
I manage to this state: https://github.com/simont77/fakegato-history/issues/29#issuecomment-378197180
But now i known that problem is in my code and as you say, I must simulate real eve door device as much is possible :)
PS: logs seems OK:
[1/19/2021, 20:13:31] [rtl_433] **Fakegato-timer: addData  Door obyvacka Alarm { time:<PHONE_NUMBER>, status: 0 }  immediate:  true
[1/19/2021, 20:13:31] [rtl_433] **Fakegato-timer callbackDoor:  Door obyvacka Alarm , immediate:  true , entry:  { time:<PHONE_NUMBER>, status: 0 }
[1/19/2021, 20:13:31] [rtl_433] First entry Door obyvacka Alarm: 0
[1/19/2021, 20:13:31] [rtl_433] Last entry Door obyvacka Alarm: 2
[1/19/2021, 20:13:31] [rtl_433] Used memory Door obyvacka Alarm: 2
[1/19/2021, 20:13:31] [rtl_433] 116 Door obyvacka Alarm:<PHONE_NUMBER>000000db66b72501 06010300c00f00000000000000000101
[1/19/2021, 20:13:58] [rtl_433] Data request Door obyvacka Alarm:<PHONE_NUMBER>0000
[1/19/2021, 20:13:58] [rtl_433] Address requested Door obyvacka Alarm: 0
[1/19/2021, 20:13:58] [rtl_433] Door obyvacka Alarm Entry: 2, Address: 2
[1/19/2021, 20:13:58] [rtl_433] Data Door obyvacka Alarm:<PHONE_NUMBER> 0100 0000 81db66b7250000 0000 00 0000 0b<PHONE_NUMBER>0000000100
[1/19/2021, 20:19:45] [rtl_433] **Fakegato-timer callbackDoor:  Door obyvacka Alarm , immediate:  false , entry:  { time:<PHONE_NUMBER>, status: 0 }
[1/19/2021, 20:19:45] [rtl_433] First entry Door obyvacka Alarm: 0
[1/19/2021, 20:19:45] [rtl_433] Last entry Door obyvacka Alarm: 3
[1/19/2021, 20:19:45] [rtl_433] Used memory Door obyvacka Alarm: 3
[1/19/2021, 20:19:45] [rtl_433] 116 Door obyvacka Alarm:<PHONE_NUMBER>000000db66b72501 06010400c00f00000000000000000101
[1/19/2021, 20:20:10] [rtl_433] Data request Door obyvacka Alarm:<PHONE_NUMBER>0000
[1/19/2021, 20:20:10] [rtl_433] Address requested Door obyvacka Alarm: 3
[1/19/2021, 20:20:10] [rtl_433] Door obyvacka Alarm Entry: 3, Address: 3
[1/19/2021, 20:20:10] [rtl_433] Data Door obyvacka Alarm:  0b<PHONE_NUMBER>0100000100
[1/19/2021, 20:22:27] [rtl_433] **Fakegato-timer: addData  Door obyvacka Alarm { time:<PHONE_NUMBER>, status: 1 }  immediate:  true
[1/19/2021, 20:22:27] [rtl_433] **Fakegato-timer callbackDoor:  Door obyvacka Alarm , immediate:  true , entry:  { time:<PHONE_NUMBER>, status: 1 }
[1/19/2021, 20:22:27] [rtl_433] First entry Door obyvacka Alarm: 0
[1/19/2021, 20:22:27] [rtl_433] Last entry Door obyvacka Alarm: 4
[1/19/2021, 20:22:27] [rtl_433] Used memory Door obyvacka Alarm: 4
[1/19/2021, 20:22:27] [rtl_433] 116 Door obyvacka Alarm:<PHONE_NUMBER>000000db66b72501 06010500c00f00000000000000000101
[1/19/2021, 20:22:27] [rtl_433] Data request Door obyvacka Alarm:<PHONE_NUMBER>0000
[1/19/2021, 20:22:27] [rtl_433] Address requested Door obyvacka Alarm: 4
[1/19/2021, 20:22:27] [rtl_433] Door obyvacka Alarm Entry: 4, Address: 4
[1/19/2021, 20:22:27] [rtl_433] Data Door obyvacka Alarm:  0b<PHONE_NUMBER>0200000101
[1/19/2021, 20:24:40] [rtl_433] **Fakegato-timer: addData  Door obyvacka Alarm { time:<PHONE_NUMBER>, status: 1 }  immediate:  true
[1/19/2021, 20:24:40] [rtl_433] **Fakegato-timer callbackDoor:  Door obyvacka Alarm , immediate:  true , entry:  { time:<PHONE_NUMBER>, status: 1 }
[1/19/2021, 20:24:40] [rtl_433] First entry Door obyvacka Alarm: 0
[1/19/2021, 20:24:40] [rtl_433] Last entry Door obyvacka Alarm: 5
[1/19/2021, 20:24:40] [rtl_433] Used memory Door obyvacka Alarm: 5
[1/19/2021, 20:24:40] [rtl_433] 116 Door obyvacka Alarm: 9d02000000000000db66b72501 06010600c00f00000000000000000101
[1/19/2021, 20:27:04] [rtl_433] Clock adjust Door obyvacka Alarm: 086ab725
[1/19/2021, 20:27:04] [rtl_433] Data request Door obyvacka Alarm:<PHONE_NUMBER>0000
[1/19/2021, 20:27:04] [rtl_433] Address requested Door obyvacka Alarm: 5
[1/19/2021, 20:27:04] [rtl_433] Door obyvacka Alarm Entry: 5, Address: 5
[1/19/2021, 20:27:04] [rtl_433] Data Door obyvacka Alarm:  0b 050000009d0200000101
[1/19/2021, 20:27:06] [rtl_433] Clock adjust Door obyvacka Alarm: 0a6ab725


fix: wizard show project only once after login [FTL-9022]

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

GitHub release
npm package (@latest dist-tag)

Your semantic-release bot :package::rocket:


Some errors when processing DGCNN

Hi Muhan, can you help me deal with two errors?
When I tried to follow the Readme to make -j4 under the "lib" it shows like following:
Nothing to be done for `all'.
And when I make the command "./run_DGCNN.sh", it feedbacked the following error:
Traceback (most recent call last):
File "main.py", line 14, in
from DGCNN_embedding import DGCNN
File "/Users/jishilun/Desktop/DGCNN_official/DGCNN_embedding.py", line 17, in
from gnn_lib import GNNLIB
File "/Users/jishilun/Desktop/DGCNN_official/lib/gnn_lib.py", line 87, in
GNNLIB = _gnn_lib(sys.argv)
File "/Users/jishilun/Desktop/DGCNN_official/lib/gnn_lib.py", line 12, in init
self.lib = ctypes.CDLL('%s/build/dll/libgnn.so' % dir_path)
File "/anaconda3/lib/python3.7/ctypes/init.py", line 356, in init
self._handle = _dlopen(self._name, mode)
OSError: dlopen(/Users/jishilun/Desktop/DGCNN_official/lib/build/dll/libgnn.so, 6): no suitable image found.  Did find:
/Users/jishilun/Desktop/DGCNN_official/lib/build/dll/libgnn.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
/Users/jishilun/Desktop/DGCNN_official/lib/build/dll/libgnn.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
Above all are the errors, which I can not handle.
So Can you tell me where the error occurs?
Thank you very much!

Seems that you are installing in Windows. Please see https://github.com/muhanzhang/pytorch_DGCNN/issues/27.

Thank you, but I used the code in Mac OS. :(

I see. Can you try "make clean" and then "make -j4" again? Thanks.

It works! Thank you :)
And may I ask another question?
Since I use my Mac to run the code, it does not have any GPU to accelerate the speed, so I just wanna to change the code to another server which have GPU, and can I just copy the code which have been made already to the server or rebuild it?

Yes, another "make clean" and "make -j4" should rebuild it on another machine.

Thank you very much! It works :)

OK , and I have another question.
Owing to some reason, I have to run the main.py directly, so I just copy some hyper-parameter in run_DGCNN.sh into util.py and make them as following:
cmd_opt = argparse.ArgumentParser(description='Argparser for graph_classification')
cmd_opt.add_argument('-mode', default='cpu', help='cpu/gpu')
cmd_opt.add_argument('-gm', default='DGCNN', help='gnn model to use')
cmd_opt.add_argument('-data', default='MUTAG', help='data folder name')
cmd_opt.add_argument('-batch_size', type=int, default=50, help='minibatch size')
cmd_opt.add_argument('-seed', type=int, default=1, help='seed')
cmd_opt.add_argument('-feat_dim', type=int, default=0, help='dimension of discrete node feature (maximum node tag)')
cmd_opt.add_argument('-edge_feat_dim', type=int, default=0, help='dimension of edge features')
cmd_opt.add_argument('-num_class', type=int, default=0, help='#classes')
cmd_opt.add_argument('-fold', type=int, default=1, help='fold (1..10)')
cmd_opt.add_argument('-test_number', type=int, default=0, help='if specified, will overwrite -fold and use the last -test_number graphs as testing data')
cmd_opt.add_argument('-num_epochs', type=int, default=300, help='number of epochs')
cmd_opt.add_argument('-latent_dim', type=str, default='32-32-32-1', help='dimension(s) of latent layers')
cmd_opt.add_argument('-sortpooling_k', type=float, default=0.6, help='number of nodes kept after SortPooling')
cmd_opt.add_argument('-conv1d_activation', type=str, default='ReLU', help='which nn activation layer to use')
cmd_opt.add_argument('-out_dim', type=int, default=1024, help='graph embedding output size')
cmd_opt.add_argument('-hidden', type=int, default=128, help='dimension of mlp hidden layer')
cmd_opt.add_argument('-max_lv', type=int, default=4, help='max rounds of message passing')
cmd_opt.add_argument('-learning_rate', type=float, default=0.0001, help='init learning_rate')
cmd_opt.add_argument('-dropout', type=bool, default=True, help='whether add dropout after dense layer')
cmd_opt.add_argument('-printAUC', type=bool, default=False, help='whether to print AUC (for binary classification only)')
cmd_opt.add_argument('-extract_features', type=bool, default=False, help='whether to extract final graph features')
Then I run the main.py. What surprised me is that the code run just 35 seconds and finished. I think  maybe the deep learning code should run more time. So is there anything wrong happend?
I copy some output log as following:
loss: 0.15370 acc: 0.98000:   0%|          | 0/3 [00:00<?, ?batch/s]
loss: 0.15370 acc: 0.98000: 100%|██████████| 3/3 [00:00<00:00, 32.33batch/s]
0%|          | 0/1 [00:00<?, ?batch/s]
loss: 0.81523 acc: 0.72222:   0%|          | 0/1 [00:00<?, ?batch/s]
loss: 0.81523 acc: 0.72222: 100%|██████████| 1/1 [00:00<00:00, 135.93batch/s]
0%|          | 0/3 [00:00<?, ?batch/s]
loss: 0.11178 acc: 0.96000:   0%|          | 0/3 [00:00<?, ?batch/s]
loss: 0.15390 acc: 0.96000:   0%|          | 0/3 [00:00<?, ?batch/s]
loss: 0.15579 acc: 0.94000:   0%|          | 0/3 [00:00<?, ?batch/s]
loss: 0.15579 acc: 0.94000: 100%|██████████| 3/3 [00:00<00:00, 31.58batch/s]
0%|          | 0/1 [00:00<?, ?batch/s]
loss: 0.83672 acc: 0.72222:   0%|          | 0/1 [00:00<?, ?batch/s]
loss: 0.83672 acc: 0.72222: 100%|██████████| 1/1 [00:00<00:00, 134.19batch/s]
0%|          | 0/3 [00:00<?, ?batch/s]
loss: 0.15884 acc: 0.98000:   0%|          | 0/3 [00:00<?, ?batch/s]
loss: 0.14649 acc: 0.94000:   0%|          | 0/3 [00:00<?, ?batch/s]average training of epoch 292: loss 0.13054 acc 0.96000 auc 0.00000
average test of epoch 292: loss 0.81523 acc 0.72222 auc 0.00000
average training of epoch 293: loss 0.14049 acc 0.95333 auc 0.00000
average test of epoch 293: loss 0.83672 acc 0.72222 auc 0.00000
loss: 0.05917 acc: 1.00000:   0%|          | 0/3 [00:00<?, ?batch/s]
loss: 0.05917 acc: 1.00000: 100%|██████████| 3/3 [00:00<00:00, 31.86batch/s]
0%|          | 0/1 [00:00<?, ?batch/s]
loss: 0.79635 acc: 0.72222:   0%|          | 0/1 [00:00<?, ?batch/s]
loss: 0.79635 acc: 0.72222: 100%|██████████| 1/1 [00:00<00:00, 120.32batch/s]
0%|          | 0/3 [00:00<?, ?batch/s]
loss: 0.15357 acc: 0.94000:   0%|          | 0/3 [00:00<?, ?batch/s]
loss: 0.12796 acc: 0.96000:   0%|          | 0/3 [00:00<?, ?batch/s]
loss: 0.13958 acc: 0.94000:   0%|          | 0/3 [00:00<?, ?batch/s]
loss: 0.13958 acc: 0.94000: 100%|██████████| 3/3 [00:00<00:00, 31.31batch/s]
0%|          | 0/1 [00:00<?, ?batch/s]
loss: 0.78103 acc: 0.72222:   0%|          | 0/1 [00:00<?, ?batch/s]
loss: 0.78103 acc: 0.72222: 100%|██████████| 1/1 [00:00<00:00, 132.03batch/s]
0%|          | 0/3 [00:00<?, ?batch/s]
loss: 0.15517 acc: 0.94000:   0%|          | 0/3 [00:00<?, ?batch/s]
loss: 0.10185 acc: 0.98000:   0%|          | 0/3 [00:00<?, ?batch/s]average training of epoch 294: loss 0.12150 acc 0.97333 auc 0.00000
average test of epoch 294: loss 0.79635 acc 0.72222 auc 0.00000
average training of epoch 295: loss 0.14037 acc 0.94667 auc 0.00000
average test of epoch 295: loss 0.78103 acc 0.72222 auc 0.00000
loss: 0.12484 acc: 0.96000:   0%|          | 0/3 [00:00<?, ?batch/s]
loss: 0.12484 acc: 0.96000: 100%|██████████| 3/3 [00:00<00:00, 31.56batch/s]
0%|          | 0/1 [00:00<?, ?batch/s]
loss: 0.79782 acc: 0.77778:   0%|          | 0/1 [00:00<?, ?batch/s]
loss: 0.79782 acc: 0.77778: 100%|██████████| 1/1 [00:00<00:00, 127.08batch/s]
0%|          | 0/3 [00:00<?, ?batch/s]
loss: 0.06225 acc: 1.00000:   0%|          | 0/3 [00:00<?, ?batch/s]
loss: 0.23531 acc: 0.92000:   0%|          | 0/3 [00:00<?, ?batch/s]
loss: 0.11926 acc: 0.94000:   0%|          | 0/3 [00:00<?, ?batch/s]
loss: 0.11926 acc: 0.94000: 100%|██████████| 3/3 [00:00<00:00, 31.07batch/s]
0%|          | 0/1 [00:00<?, ?batch/s]
loss: 0.83252 acc: 0.77778:   0%|          | 0/1 [00:00<?, ?batch/s]
loss: 0.83252 acc: 0.77778: 100%|██████████| 1/1 [00:00<00:00, 136.37batch/s]
0%|          | 0/3 [00:00<?, ?batch/s]
loss: 0.17074 acc: 0.94000:   0%|          | 0/3 [00:00<?, ?batch/s]
loss: 0.12587 acc: 0.94000:   0%|          | 0/3 [00:00<?, ?batch/s]average training of epoch 296: loss 0.12729 acc 0.96000 auc 0.00000
average test of epoch 296: loss 0.79782 acc 0.77778 auc 0.00000
average training of epoch 297: loss 0.13894 acc 0.95333 auc 0.00000
average test of epoch 297: loss 0.83252 acc 0.77778 auc 0.00000
loss: 0.08625 acc: 0.98000:   0%|          | 0/3 [00:00<?, ?batch/s]
loss: 0.08625 acc: 0.98000: 100%|██████████| 3/3 [00:00<00:00, 30.47batch/s]
0%|          | 0/1 [00:00<?, ?batch/s]
loss: 0.77952 acc: 0.77778:   0%|          | 0/1 [00:00<?, ?batch/s]
loss: 0.77952 acc: 0.77778: 100%|██████████| 1/1 [00:00<00:00, 137.40batch/s]
0%|          | 0/3 [00:00<?, ?batch/s]
loss: 0.12798 acc: 0.94000:   0%|          | 0/3 [00:00<?, ?batch/s]
loss: 0.21450 acc: 0.92000:   0%|          | 0/3 [00:00<?, ?batch/s]
loss: 0.05701 acc: 1.00000:   0%|          | 0/3 [00:00<?, ?batch/s]
loss: 0.05701 acc: 1.00000: 100%|██████████| 3/3 [00:00<00:00, 31.61batch/s]
0%|          | 0/1 [00:00<?, ?batch/s]
loss: 0.78236 acc: 0.77778:   0%|          | 0/1 [00:00<?, ?batch/s]
loss: 0.78236 acc: 0.77778: 100%|██████████| 1/1 [00:00<00:00, 139.01batch/s]average training of epoch 298: loss 0.12762 acc 0.95333 auc 0.00000
average test of epoch 298: loss 0.77952 acc 0.77778 auc 0.00000
average training of epoch 299: loss 0.13316 acc 0.95333 auc 0.00000
average test of epoch 299: loss 0.78236 acc 0.77778 auc 0.00000
The total cost is 34.45206904411316
I just do the experiments under dataset MUTAG.
Thx!

Oh I forget to inform that I run the code on a MacBook Pro with only a CPU available. That is what puzzles me.

That's normal. MUTAG is a rather small dataset with only ~170 graphs. And you are only running the with fold 1. You should do cross validation to iterate over the 10 folds to get average accuracy.

OK, I got it. Thx! :)


Compilation failed.

I follow the README to build gllvm. However, it fails. I want to know which specific version of go should I use to compile gllvm. When I use go1.16 and add GO111MODULE=off, the error is:
malformed import path "gllvm/cmd/gclang++": invalid char '+'

When I use go1.15, the error is:
# github.com/SRI-CSL/gllvm/shared
../shared/compiler.go:193:18: undefined: os.CreateTemp
../shared/extractor.go:469:21: undefined: os.MkdirTemp
../shared/extractor.go:609:21: undefined: os.MkdirTemp
../shared/extractor.go:621:18: undefined: os.CreateTemp
../shared/extractor.go:645:19: undefined: os.CreateTemp
../shared/extractor.go:780:13: undefined: os.WriteFile
../shared/extractor.go:786:13: undefined: os.WriteFile
note: module requires Go 1.16

And if you use 1.17? The + problem was fixed by the go folks in a minor 1.6 update.

And if you use 1.17? The + problem was fixed by the go folks in a minor 1.6 update.

Thanks, it works.


Fix typescript version issues

Listing typescript as a direct dependency can cause tslint to pass an AST from an older version to a typescript version that introduced breaking changes. Since dtslint acts as a plugin to tslint it should use the same version.
I incrementally increased the minor version from typescript until all tests where passing (which happened at 2.5.0). Using a newer version for development is still fine since it's mostly related to disallowed fallthroughs or undefined enum values.
This is in line with other tslint plugins such as tslint-plugin-prettier or tslint-no-circular-imports which also list typescript as a peer.
This will cause additional errors when using in DefinitelyTyped for packages with older typescript version but those are warranted because tests are failing for those versions.
I used<EMAIL_ADDRESS>to reinstall the packages which added a significant amount of noise to the lockfile diff. If I'd knew the originally used npm version I could use that version and repeat the steps to remove noise.
Related Issues:

#119
#115

It sounds like you're using some dtslint rules from within your tslint configuration -- maybe it would be better if we submitted those as pull requests to tslint so you could drop the dtslint dependency? Which rules did you find useful?
dtslint actually does depend on typescript directly and isn't just a tslint plugin, so I'm worried that this PR would break a simple direct installation and usage of dtslint.

dtslint itself might but the rule uses the typescript version that is required by this project. However the AST is generated by the typescript version that tslint uses.
I'm going to close this for now until I can come up with a repro to illustrate the issue.


Problems on rendering

Thank you for your work. When I rendered the result,  I met the problems as following:

Do you know how to deal with it?

I have dealt with it by changing the version of ray. Thank you.


Enforce the usage of modern TLS versions (1.2 or higher) for S3 connections

what
This variables adds a policy to the bucket to deny connections that do not use TLS 1.2 or higher.
why
This is required by our security team.
references
https://repost.aws/knowledge-center/s3-enforce-modern-tls

@amontalban that's a nice feature.
Can we refactor code a bit. I think we need to parameterize tls minimum version to have code like this
  dynamic "statement" {
    for_each = var.minimum_tls_version != null? [var.minimum_tls_version] : []

    content {
      sid       = "EnforceTLSVersion"
      effect    = "Deny"
      actions   = ["s3:*"]
      resources = [local.bucket_arn, "${local.bucket_arn}/*"]

      principals {
        identifiers = ["*"]
        type        = "*"
      }

      condition {
        test     = "NumericLessThan"
        values   = [each.value]
        variable = "s3:TlsVersion"
      }
    }
  }

@goruha thanks for reviewing the PR, what do you think about it now?

@amontalban that's a nice feature. Can we refactor code a bit. I think we need to parameterize tls minimum version to have code like this
  dynamic "statement" {
    for_each = var.minimum_tls_version != null? [var.minimum_tls_version] : []

    content {
      sid       = "EnforceTLSVersion"
      effect    = "Deny"
      actions   = ["s3:*"]
      resources = [local.bucket_arn, "${local.bucket_arn}/*"]

      principals {
        identifiers = ["*"]
        type        = "*"
      }

      condition {
        test     = "NumericLessThan"
        values   = [each.value]
        variable = "s3:TlsVersion"
      }
    }
  }

/terratest

@amontalban have you tested that the code works?
I am a bit confused that terraform hcl https://developer.hashicorp.com/terraform/language/meta-arguments/for_each#basic-syntax
use toset for list in for_each for_each = toset(["Todd", "James", "Alice", "Dottie"])
Can you add minimum_tls_version = 1.12 to
https://github.com/amontalban/terraform-aws-s3-bucket/blob/am/enforce_tls12/examples/complete/fixtures.us-east-2.tfvars ?

/terratest

/terratest


Test

****************************************************************

libgrpc.so

     VM SIZE                                                          FILE SIZE
 ++++++++++++++ GROWING                                            ++++++++++++++
  +1.4%    +108 src/core/ext/transport/chttp2/transport/parsing.cc    +108  +1.4%
      +2.7%    +108 grpc_chttp2_perform_read                              +108  +2.7%

 -------------- SHRINKING                                          --------------
  -0.0%     -12 [None]                                                -188  -0.0%

  +0.0%     +96 TOTAL                                                  -80  -0.0%

****************************************************************

libgrpc++.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

[trickle] No significant performance differences

[microbenchmarks] Performance differences noted:
Benchmark                                                            cpu_time    real_time
-------------------------------------------------------------------  ----------  -----------
BM_StreamingPingPongMsgs<InProcess, NoOpMutator, NoOpMutator>/32768  -6%         -6%
BM_UnaryPingPong<InProcess, NoOpMutator, NoOpMutator>/0/262144       +5%         +5%
BM_UnaryPingPong<InProcess, NoOpMutator, NoOpMutator>/262144/262144  +4%         +4%


Hackpad

There likely something I'm not getting however the example and the tutorial https://hackpad.hackclub.com/submitting is very different.

Oh like the .sch one?

.pro, .sch. etc - all of it!

Is this all I need?

Hey - You have some extra holes drilled here, is that intentional?

The firmware does not contain anything , you should have the basic code set up...


Due to Python 3.10, python-libmaas v0.6.8 is now required

I wan't able to quite get this working in the end, however did spend quite a bit of time debugging until I realized that there was an update to the python-libmaas library.  Once upgraded from 0.6.6, you're able to connect with out a bunch of collections errors.  However, I'm not getting the json result in the readme; I get the tags and hostnames, but not any of the machine details.  I'm new to maas, so could be just something I'm missing.

I will take a look. Just upgraded the lab so I will try to reproduce.
Billy
Get Outlook for iOShttps://aka.ms/o0ukef

From: dwilson1251 @.>
Sent: Wednesday, May 10, 2023 8:54:18 PM
To: billyFelton/AnsibleMaaS @.>
Cc: Subscribed @.***>
Subject: [billyFelton/AnsibleMaaS] Due to Python 3.10, python-libmaas v0.6.8 is now required (Issue #1)
I wan't able to quite get this working in the end, however did spend quite a bit of time debugging until I realized that there was an update to the python-libmaas library. Once upgraded from 0.6.6, you're able to connect with out a bunch of collections errors. However, I'm not getting the json result in the readme; I get the tags and hostnames, but not any of the machine details. I'm new to maas, so could be just something I'm missing.
—
Reply to this email directly, view it on GitHubhttps://github.com/billyFelton/AnsibleMaaS/issues/1, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATO3Y74M5AIFOEQONMAVCD3XFRBEVANCNFSM6AAAAAAX5OFVEQ.
You are receiving this because you are subscribed to this thread.Message ID: @.***>


[Bug] Column.data_type does not take into account the data_length

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
When using column.data_type for columns of type varchar or numeric, the adapters just gives back the column_type, without the size / data_lengths. You can see this behaviour for example when using dbt_utils.union:

Thsi results in ORA-00906: missing left paranthesis
Expected Behavior
Return the data_lengths/size in parathesis:

This can be done by overiting the following methods:
`
@dataclass
class OracleColumn(Column):
def is_string(self):
    # in Oracle, 'varchar2' is also a string:
    if self.dtype.lower() in ['varchar2', 'char', 'varchar']:
        return True
    return super().is_string()

@classmethod
def string_type(cls, size: int) -> str:
    return "varchar2({})".format(size)

def is_numeric(self) -> bool:
    # in Oracle, 'number' is also a numeric:
    if self.dtype.lower() in ['number', 'float']:
        return True
    return super().is_numeric()

`
Steps To Reproduce
No response
Relevant log output using --debug flag enabled
No response
Environment
- OS: Windows
- Python: Python 3.8.10
- dbt: 1.1.1

What Oracle database version are you using dbt with?
19c
Additional Context
No response

Hi @sandhein
This is fixed now and we plan to release the fix in the upcoming dbt-oracle version 1.1.1. Meanwhile, you can test the fix using the release candidate. It can be installed using pip
pip install dbt-oracle==1.1.1rc1

Let me know if you have any questions

This is now fixed in dbt-oracle==1.1.1 Please test it and let me know if you face this issue.


Merge pull request #68 from VedantMahabaleshwarkar/crd_fix

fix the need to have istio crds for modelmesh reconciliation #68

merging as it is a cherry pick


Follower: check if join block different from fetched block

Change-Id: I7089df4f1bfc200a5f17582df0da7d4172f8f09b
Type of change

Bug fix

Description
Follower: revert check of join block different from fetched block
Related issues
Addresses #4264

I don't think that simply removing the check without providing a countermeasure in the same fix is a good idea.
With this change, the code allows an orderer to pull blocks while disregarding the join block, which obviously was retrieved from somewhere.
The genesis block cannot be validated, and thus the current code completely puts the validity of the genesis block in the mercy of the orderer it is retrieved from.
This check lets you know that you have diverged from the chain.

I agree with what you said. I am changing the mechanism such that:
The follower checks if join block different from fetched block, both header and data, and

it happens before fetched block is committed, otherwise if the orderer is restarted, the follower continues past that block
don't panic, since it can affect other channels
continue to retry, as it might have been an error in a single remote orderer

In the future, we may consider to stop the chain in events like this and reflect it in the status, as proposed in FAB-18106
and as you can see in the issue description, I intend to address that.
In the mean time, if you prefer to keep a counter measure I think returning with an error
I don't think the countermeasure needs to be placed in the follower though.

I don't think that simply removing the check without providing a countermeasure in the same fix is a good idea.
With this change, the code allows an orderer to pull blocks while disregarding the join block, which obviously was retrieved from somewhere.
The genesis block cannot be validated, and thus the current code completely puts the validity of the genesis block in the mercy of the orderer it is retrieved from.
This check lets you know that you have diverged from the chain.

@yacovm I agree with what you said. I am changing the mechanism such that: The follower checks if join block different from fetched block, both header and data, and
* it happens before fetched block is committed, otherwise if the orderer is restarted, the follower continues past that block

* don't panic, since it can affect other channels

* continue to retry, as it might have been an error in a single remote orderer

I also added a couple of unit tests for this scenario.

As long as the follower doesn't evolve into a fully fledged consenter, we're good.


Add 'REQUIRES: asserts' to new test because -eanble-experimental-feature is disabled in noassert builds

@swift-ci Please smoke test


Critical dependency error with gulp-wrap-umd [webpack2]

Do you want to request a feature or report a bug?
May be bug)

What is the current behavior?

Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

If the current behavior is a bug, please provide the steps to reproduce.
I use the library https://github.com/HubSpot/shepherd and it uses gulp module https://github.com/phated/gulp-wrap-umd . This module wraps script in
(function(root, factory) {
  if (typeof define === 'function' && define.amd) {
    define(["tether"], factory);
  } else if (typeof exports === 'object') {
    module.exports = factory(require('tether'));
  } else {
    root.Shepherd = factory(root.Tether);
  }
}(this, function(Tether) {
....

and i get the following error(only when i use with babel):

Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

How can i fix this, without change library source code?

What is the expected behavior?
No error :)
Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.

nodejs v7.4.0
webpack 2.2.1 ( webpack 2.1.0-beta.27 doesn`t have this error)
OS:  Linux 4.2.0-16-generic Ubuntu
babel:
"babel-core": "^6.10.4",
"babel-loader": "^6.2.4",
"babel-plugin-transform-runtime": "^6.9.0",
"babel-preset-es2015": "^6.16.0",
"babel-runtime": "^6.9.2",

I found problem. Shepherd uses https://github.com/HubSpot/tether and it have header :
  if (typeof define === 'function' && define.amd) {
    define(factory);
  } else if (typeof exports === 'object') {
    module.exports = factory(require, exports, module); // problem it is this place.
  } else {
    root.Tether = factory();
  }

@bebraw How can i work around this across webpack config?

Temporary fix, add to ignore tether in .babelrc.

I found next bug(in other library), with empty require()
(function (root, factory) {
    if (typeof define === 'function' && define.amd) {
        define([], factory);
    } else if (typeof exports === 'object') {
        module.exports = factory(require()); // problem in this place
    } else {
        root.AceDiff = factory(root);
    }
}(this, function () {

Next problem, library have code
module.exports = diff_match_patch;
module.exports['diff_match_patch'] = diff_match_patch;
module.exports['DIFF_DELETE'] = DIFF_DELETE;
module.exports['DIFF_INSERT'] = DIFF_INSERT;
module.exports['DIFF_EQUAL'] = DIFF_EQUAL;

this code after build (with babel)

/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(module) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ 33);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof__);

....code

// The following export code was added by @ForbesLindesay
module.exports = diff_match_patch;
module.exports['diff_match_patch'] = diff_match_patch;
module.exports['DIFF_DELETE'] = DIFF_DELETE;
module.exports['DIFF_INSERT'] = DIFF_INSERT;
module.exports['DIFF_EQUAL'] = DIFF_EQUAL;
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(/*! ./../../~/webpack/buildin/harmony-module.js */ 38)(module)))

/***/ })

after build (without babel)
/***/ (function(module, exports, __webpack_require__) {
..code
// The following export code was added by @ForbesLindesay
module.exports = diff_match_patch;
module.exports['diff_match_patch'] = diff_match_patch;
module.exports['DIFF_DELETE'] = DIFF_DELETE;
module.exports['DIFF_INSERT'] = DIFF_INSERT;
module.exports['DIFF_EQUAL'] = DIFF_EQUAL;

/***/ })

https://github.com/webpack/webpack/issues/4039


select from server should only appear after the first photos have been properly uploaded

What

get into product addition
get into photo manager
select from server should only appear after the first photos have been properly uploaded

Duplicate with #3974.

I've added the screen video there, thanks