ES6 Proxy (WIP)

I'm working on an ES6 Proxy implementation. Traps can be implemented in JavaScript as in the specification or using a Go struct and the specific function implementations.
Currently still work in progress, some tests are still missing, therefore most probably doesn't work yet in all specified situations.
Anyhow would be happy to get some feedback, as this is my first bigger change to commit back to the official goja repository :-)
I bet there would have to be changes here and there to integrate before it can be merged eventually

Still working on it, just was a bit busy during the last days preparing some conference talks :)

This is an exciting idea, @noctarius but I am not familiar with a lot of the terms (what you mean by it being a proxy, traps, what you mean in regards to the invariants, etc) but perhaps I'll eventually learn enough to assist more with projects like Goja. I really like the idea of Goja and like ES6 support tenfold more! I wish we would see more expert community involvement assisting you with things like this.

The proxy is just the struct representing the ES6 Proxy as being defined in the spec. The traps are the interceptors for specific methods (also known hooks). If any of those are defined, they'll intercept the original method call and can either do something completely different from actually being defined in the target object or they can do additional stuff (like logging). The invariants are the checks being defined in the spec of what is legal for a proxy trap to do or not. Anyways, the current implementation can completely work around any of those invariants when traps being defined in go rather than JS. This is for the reason, I actually use proxies to intercept calls between different goja VM instances for isolation and security reasons :)

@noctarius I've been checking back on this a couple times / week to see if there is any more progress as ES6 would be truly extraordinary in Goja. I started to look through code to see if I could help, and while it might still be a bit over my head, I think I understand more and might be able to help if I practice by perhaps starting with some PRs to goja on Annex B functionality. Is there likelihood of more ES6 progress soon? Once I attempt some other work to get more familiar with Goja, would you benefit from some assistance on this project, or are you far enough along that you might be better off completing it yourself?

@dop251 I see you picked up where I left off. Appreciated! After the startup failed, I unfortunately haven't had time to work on it anymore. Our new system uses a duktape wrapper for a bit more control over the way the JS code is executed (fully sandboxed), but I have another thing I'd probably like to use goja for. I may come back, but I'm glad you picked it up and make it nice and working :)

Yeah, I didn't realise how much the internal specification of ES6 was different from ES5... Turns out it requires a lot more work than I initially anticipated.

Now merged into es6 branch.

👍


merged.csv

is there instruction of how to reproduce the merged.csv file? why and what are the use of the random number columns?

merged.csv should be a .csv consisting of 7 columns in the following order with no headers: Random number 1, Misconception ID , Misconception, Tweet, Random Number 2, Annotated Label, Tweet ID.
Misconception ID, Misconception, Tweet ID, and Annotated Label are from the COVIDLies dataset.
Tweets need to be retrieved from Twitter using the Tweet IDs provided in the dataset.
The random number columns are an artifact of how the dataset was constructed. They can be populated with any numbers.

Can I close this issue?

yeah sure!

Thanks!


Minor bug fixes

@rbonghi : Thanks for nice package for Roboteq controller with ros_control. I have fixed couple of minor bugs. Please consider to merge.
Thanks.

Hi @balamuruganky ,
Thank you so much for this pull request!


Continued Project Support?

Is owner not interested in supporting this project anymore? Hasn't been an update in 7 months.

https://github.com/stormlion227/PhotoBrowser.Forms/pull/14


Update howto-authentication-temporary-access-pass.md

Corrected grammar for missing words in sentence

#sign-off


Issue integrating with Windows SDK

Bug category

[x] bug - compilation error
[ ] bug - compilation warning
[ ] bug - runtime error
[ ] bug - runtime warning
[ ] bug - logic error

Describe the bug
When trying to integrate 'small' with Windows, if you include <windows.h> in your project, it has defined small to be char.  See:
https://stackoverflow.com/questions/27793470/why-does-small-give-an-error-about-char
Steps to Reproduce
Using MSVC, include <windows.h> and then include <small/vector.h> - a compiler error will occur
Platform

[ ] cross-platform issue - linux
[x] cross-platform issue - windows
[ ] cross-platform issue - macos

Environment Details:

OS: Windows
OS Version: Windows 10
Compiler: MSVC 16.11
Compiler version:

Additional context

That's correct. For instance, the code in this library that includes windows.h undefines this macro:
https://github.com/alandefreitas/small/blob/9795e1f60eab809b200fc26ad3e7d05fef3cac42/source/small/detail/algorithm/console_unicode_guard.h#L19
Another solution would be to use boost.winapi inside the library to avoid including windows.h at all. That would involve a new dependency though.
In both cases, if you include windows.h before the containers are included, you would have to undefine this small macro yourself. It seems like just one more case of conflict with the macros in windows.h that happen all the time, like the MINMAX macros, that are in conflict even with std::max/std::min.
If you include windows.h before other libraries, I don't see any other possible solution to that other than not letting windows.h define these macros or undefine any macros windows.h defines.


Ordering of @ApiObjectField

Is there a way or workaround to specify the order of the ApiObjectFields? Problem is that if I have a following class as a POST body object:
package com.yt.mps.cmdrs.domain.sendsms;

import org.jsondoc.core.annotation.ApiObject;
import org.jsondoc.core.annotation.ApiObjectField;

@ApiObject
public class Person {

    @ApiObjectField
    private String name;

    @ApiObjectField
    private String email;

    //...
}

Then in Jsondoc UI playground the fields appear in alphabetical order:
{
  "email": "",
  "name": ""
}

This is a simplistic example, but In real world with more complex structures being able to list the fields in logical order makes the API much easier to understand for the clients.

This could be an interesting improvement. The only way I can think of to implement it is to add an additional property "order" to the ApiObjectField annotation or another annotation "ApiOrder" to be placed on the field and use the value in a comparator. What do you think?

I think we could have 2 ways:

By convention - without explicitly specifying the order use the same sequence as pojo properties are defined in.
Explicit - yes, something like @ApiObjectField(order = 1)

Number one can't be done: http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html#getDeclaredFields()

Returns an array of Field objects reflecting all the fields declared by the class or interface represented by this Class object. This includes public, protected, default (package) access, and private fields, but excludes inherited fields. The elements in the array returned are not sorted and are not in any particular order.

OK, I could live without number 1, it's more of a convenience aspect.

Hi, any news in this issue?

Not yet. Don't have time at the moment. Submit a pull request if you can.

I started to work on this.
Do you think that ApiObjectFieldDoc.order should be int or Integer? (-1 or null in comparator as default value)
Also I think that fields with no order should be generated after fields with order. Agree?

Thank you.

should be Integer. I would say that -1 (-2, -3, negative values in general) needs to be considered as a valid value, so a field annotated with order = -1 needs to be shown before the one annotated with order = 0. This would give more flexibility. Default value for the order property should be Integer.MAX, so that in the comparator it will be considered as the last in the list.
a new class JSONDocTemplate could be fine, but if you find that it's not easy to convert the Map to a class, then to keep the field order you should consider having a more convenient Map implementation like LinkedHashMap or TreeMap.
What do you think? Please remember to add unit tests ;)

Released with version 1.1.15


Understanding flatline and use_terms_query setting

Hello,
My goal is to set up an alert if one syslog device stop to send log.
For my test, I have two machine which send syslog logs on a regular and controlled frequency.
To test the rule, I disable the network  card  of the machine.
I read all of the topics but I can't find a good explication.
config.yaml :

run_every:
  minutes: 1

buffer_time:
  minutes: 45

If I use  the setting use_terms_query, it didn't works.
Here is the rule :
index: graylog_*

type: flatline

query_key: event_src

use_terms_query: true

doc_type:  syslog

threshold: 1

timeframe:
  minutes: 3

filter:
- query:
    query_string:
      query: "_exists_:event_src"

Alerts logs ( I never see any query hits )
[...]
2017-04-24 11:40:47,276 DEBG 'elastalert' stderr output:
INFO:elastalert:Queried rule # Log Collection alert from 2017-04-24 11:39 CEST to 2017-04-24 11:40 CEST: 0 buckets
2017-04-24 11:40:47,315 DEBG 'elastalert' stderr output:
INFO:elastalert:Ran # Log Collection alert from 2017-04-24 11:39 CEST to 2017-04-24 11:40 CEST: 0 query hits, 0 matches, 0 alerts sent
[...]
If I don't use use_terms_query, it works :
index: graylog_*
type: flatline
query_key: event_src
doc_type:  syslog
threshold: 1
timeframe:
minutes: 3
filter:

query:
query_string:
query: "exists:event_src"

Alert logs :  (I see query hits and alert trigger)
[...]
2017-04-24 11:32:05,762 DEBG 'elastalert' stderr output:
INFO:elastalert:Queried rule # Log Collection alert from 2017-04-24 11:16 CEST to 2017-04-24 11:31 CEST: 46607 / 6607 hits (scrolling..)
[...]
2017-04-24 11:32:08,083 DEBG 'elastalert' stderr output:
INFO:elastalert:Ran # Log Collection alert from 2017-04-24 11:16 CEST to 2017-04-24 11:31 CEST: 46607 query hits, 2 matches, 1 alerts sent
I see a main difference :
When use_terms_query is used, we have one minute job :
from 2017-04-24 11:39 CEST to 2017-04-24 11:40
When use_terms_query is not used, we have 15 minutes jobs :
from 2017-04-24 11:16 CEST to 2017-04-24 11:31 CEST
I would like to understand why it works if I don't use use_terms_query (because it should works with !), and why the time job are not the same (1 minute  with use_terms_query and 15 minutes without use_terms_query)
Thanks for your support !

Can you post JSON of a document? The two things that could potentially go wrong here at that _type is not "syslog" or that "event_src" doesn't actually exist. You can also add --es_debug_trace logfile to log the full queries being made, which may or may not be helpful in debugging.

You are right ! I used the field "type" (a field in graylog) instead of the field "_type" (from elastic). Problem solved. Thanks for your help ! :-)


Implement switchable interface on Extron driver

Required for PlaceOS Meet Logic

Just went to take a look at this. @stakach beat me to it via https://github.com/PlaceOS/drivers/commit/addd5ae47dc8ec585d41e8d2c7173b14fef2f686#diff-a71518107f3a70bc9b544c75c80bdffa8e8e0def85f68c3277f763d3dd82da32.


Add audit trail

Context
We want to have an audit trail of changes made via the various interfaces to application data (ApplicationForm, ApplicationChoice and friends) to assist with debugging issues in development and support in production. We expect the audit trail to tell us who made what changes to a given application and when.
Changes proposed in this pull request
This PR is just about the backend changes needed to start recording auditing information in our database.

Adds and configures the audited gem (also used in the Find service)
All create/update/delete operations on ApplicationForm and ApplicationChoice are recorded.
ApplicationChoice audit records are associated with their parent ApplicationForm so that we can get a unified view of the audit records for a whole application.
As further model attributes/classes are added they will also be configured to audit changes and be associated with the parent ApplicationForm
Audit records triggered by the candidate interface are associated with a Candidate user.
Audit records triggered by the vendor API are associated with a (new) VendorApiUser that encapsulates what we know about the end user of the API as declared in vendor attribution metadata.

Out of scope here but to be covered by a follow-up PR are changes to the Support UI to make audit trail data visible to developers and support staff.
Guidance to review
Things to look out for:

Naming - we've introduced a new VendorApiUser model among other things.
Specs - auditing is a kind of cross-cutting concern. I wanted to test it at the request spec level to assert that audit records and created and that they are linked to the correct 'user' (which varies depending on the type of request). It didn't seem right to test this kind of stuff at the system spec level because it's about stuff that is hidden from the front-end.
I've added a spec or two for each type of request that we have some kind of authenticated user for at the moment - candidate and vendor API. I'd like to add more specs at this level to all actions in these areas that trigger an audit record but I don't want to swamp this PR and wanted to check what others think first. Thoughts welcome!

Link to Trello card
1119 - Add audit trail for all updates

This seems to work well. I created an application, filled in my personal details, then made an offer via the API. Made a summary, below, using this:
 JSON.pretty_generate(Audited::Audit.all.map {|a| [a.created_at, a.action + ' ' + a.auditable_type, a.audited_changes, a.user.try(:email_address) || a.user.try(:email)] })

An interesting bit of grit here is that VendorApiUser and Candidate don't have the same interface so I needed to map between them when making this synopsis. (Not sure that we'll need to mix these things up in future, but in principle having a consistent name for such fields seems sensible)
[
  [
    "2019-10-24 13:42:57 UTC",
    "create ApplicationChoice",
    {
      "offer": null,
      "status": "unsubmitted",
      "course_option_id": 1,
      "rejection_reason": null,
      "personal_statement": null,
      "application_form_id": 1
    },
<EMAIL_ADDRESS>  ],
  [
    "2019-10-24 13:42:57 UTC",
    "create ApplicationForm",
    {
      "last_name": null,
      "first_name": null,
      "candidate_id": 1,
      "submitted_at": null,
      "date_of_birth": null,
      "first_nationality": null,
      "second_nationality": null,
      "further_information": null,
      "english_main_language": null,
      "other_language_details": null,
      "english_language_details": null,
      "further_information_details": null
    },
<EMAIL_ADDRESS>  ],
  [
    "2019-10-24 13:43:21 UTC",
    "update ApplicationForm",
    {
      "last_name": [
        null,
        "Briggs"
      ],
      "first_name": [
        null,
        "Lamar"
      ],
      "date_of_birth": [
        null,
        "2011-06-20"
      ],
      "first_nationality": [
        null,
        "Moroccan"
      ],
      "second_nationality": [
        null,
        ""
      ],
      "english_main_language": [
        null,
        true
      ],
      "other_language_details": [
        null,
        ""
      ],
      "english_language_details": [
        null,
        "I also speak Latin"
      ]
    },
<EMAIL_ADDRESS>  ],
  [
    "2019-10-24 13:43:41 UTC",
    "update ApplicationForm",
    {
      "further_information": [
        null,
        true
      ],
      "further_information_details": [
        null,
        "Oh I am good at teaching"
      ]
    },
<EMAIL_ADDRESS>  ],
  [
    "2019-10-24 13:43:42 UTC",
    "update ApplicationChoice",
    {
      "status": [
        "unsubmitted",
        "application_complete"
      ]
    },
<EMAIL_ADDRESS>  ],
  [
    "2019-10-24 13:43:42 UTC",
    "update ApplicationForm",
    {
      "submitted_at": [
        null,
        "2019-10-24T13:43:42.024Z"
      ]
    },
<EMAIL_ADDRESS>  ],
  [
    "2019-10-24 13:45:22 UTC",
    "update ApplicationChoice",
    {
      "status": [
        "application_complete",
        "conditional_offer"
      ]
    },
<EMAIL_ADDRESS>  ],
  [
    "2019-10-24 13:45:22 UTC",
    "update ApplicationChoice",
    {
      "offer": [
        null,
        {
          "conditions": [
            "Confirmation of identity"
          ]
        }
      ]
    },
<EMAIL_ADDRESS>  ]
]

Just a couple of non-blocking comments from me:

VendorApiUser has not made it into the data model diagram, and
I had a similar experience when writing specs for basic auth, because this was a cross-cutting concern, too, the way we scoped it. I went the other way and created request specs but placed mine in system/ because the tests there are closer to feature specs. This suggests to me we currently lack the a proper location for cross-cutting rspecs, which could arguably go into either requests or system.

thanks @duncanjbrown
I guess we can make the interfaces for Candidate and VendorApiUser consistent. That's an oversight on my part.
How about we:

rename VendorApiUser#email to email_address
alias Candidate#id as user_id
add a Candidate#full_name method that pulls the first and last names from current_application?

This sounds good. For Candidate#full_name, I guess it would look at application_forms.last?

@duncanjbrown yes application_forms.last makes more sense than current_application I think.

Thinking about it, do we need user_id on the Candidate? The user_id on VendorApiUser is just a bit of foreign metadata.

It feels a bit odd adding a Candidate#full_name method come to think of it. Up to now we've kept this kind of logic in presenters, there is already one presenter that implements this. I'll add it for now but if anybody has any better ideas about where to put it please shout.

Thinking about it, do we need user_id on the Candidate? The user_id on VendorApiUser is just a bit of foreign metadata.
fair point, VendorApiUser#user_id isn't going to be much use to us.

After discussion with @duncanjbrown I have:

Moved the request specs that I added to test the auditing cross cutting concern into their own spec files so that they are not muddled up with the specs that test core application logic.
Renamed VendorApiUser#email to email_address to be a bit consistent with Candidate.

Just a couple of non-blocking comments from me:

VendorApiUser has not made it into the data model diagram, and
I had a similar experience when writing specs for basic auth, because this was a cross-cutting concern, too, the way we scoped it. I went the other way and created request specs but placed mine in system/ because the tests there are closer to feature specs. This suggests to me we currently lack the a proper location for cross-cutting rspecs, which could arguably go into either requests or system.

Thanks @mnacos , I've corrected the ERD diagram and hopefully the changes I made to separate out the cross-cutting request specs will help. In the longer term it might be better to have these as system specs but we will need to implement some kind of front-end for it first.


Broken template for MultiField

In version 1.4.0 we have following templates constants
https://github.com/maraujop/django-crispy-forms/blob/1.4.0/crispy_forms/layout.py#L286
In version 1.5.2 they have been changed into following
https://github.com/maraujop/django-crispy-forms/blob/1.5.2/crispy_forms/layout.py#L300
But template <template_package>/multifield.html for bootstrap/bootstrap3 is not present in repository in version 1.5.2
https://github.com/maraujop/django-crispy-forms/tree/1.5.2/crispy_forms/templates/bootstrap3

Duplicate of #478. PRs welcome.


Biscuit

The Biscuit Language (BL) is simple imperative programming language using LLVM backend implemented in C. Biscuit is designed to be simple, fast and explicit. Language syntax is inspired by JAI.
http://biscuitlang.org/
https://github.com/travisdoor/bl
Features

Strongly typed.
Embedded rich runtime type information.
Polymorphic functions and structures (generics).
Simple structure inheritance.
Compile-time execution (experimental).
Compile-time function arguments; allow passing types as values (experimental).
C ABI compatible (C library functions can be directly called).
Runtime debugging is possible in Visual Studio/gdb/lldb.
Explicit function overloading.
Integrated build system.
Module management.
Unit testing system.
Automatic documentation generation.
Defer statement.
Multiple return values.
Custom memory allocators.
Basic support for game development via extra packages.
Supports Windows, Linux and macOS.
Nested functions.
Clean and simple JAI-like syntax.
And more...

Thanks!


fix : Issue labels are sometimes displayed without padding #144

Nice one, thanks @ShaungBhone! 😄

Heehee thanks. 😁


refactor(group): moving group stuff out of bar

I think this is better, I don't know what you think. I'd love some feedback. Just doing this as a learning exercise

Hmm, yeah, I guess me and clang tidy fundamentally disagree about where the group code belongs. I'm not motivated to see this change through.


incorrect types with object destructurization

I try use typescript in React + redux project and i want use action types. If i use in switch/case action fields with /without destructurization i see different variable types
latest typescript 4.3.x
bug in object destructurization syntax
/// obj = {a: 'my_string'}

// const {
//  a
//} = obj

// types a and obj.a not equal, see reducer and reducer2

all example in playground

i think its normal, because i destruct before switch expression and in this moment payload type => number or string, but how i can use destructurization in this case?
maybe, is this not a bug but a feature request ?

You forgot to fill out the issue template.


ActionOptions Typescript Typedef missing some options?

Hi There,
I'm trying to use decorators with Typescript. In your README.md example, we can set cache value per action:
  // With options
  // No need for "handler:{}" here
  @Action({
    cache: false,
    params: {
      a: "number",
      b: "number"
    }
  })

But when defining an @Action the type checking complains as it isn't defined:
export interface ActionOptions extends Partial<Action> {
  name?: string,
  handler?: ActionHandler<any>, // Not really used
  skipHandler?: boolean
}

It appears, "cache" should be defined in the Typescript typedef? Or perhaps I'm missing something key?

Cache does exist since it extends the moleculer action interface.


Unify and Fix Handling of Test Content

The serialization tests were incorrectly creating the path for the text content, and not running locally. this change unifies how we create paths for test content, and will fail if the test content doesn't exist in automation.

Seems fine to me. Previously, it wasn't possible to run part of the snapshot tests locally?


Fixing a typo in Firewall README

Correct me if I am wrong, I am pretty sure these flags are swapped in the README which caused a small confusion as I was reading it. We can refer to https://github.com/containernetworking/plugins/blob/master/plugins/meta/firewall/iptables.go#L31&#L32 to see what they really are set to.
I was originally going to open the fix in the plugins repo, but then I saw this PR https://github.com/containernetworking/plugins/pull/549 that is migrating everything to this repo.

good catch, thanks!


Reports on courses that have used discourse?

Hey,
This looks great! Do you have any reports from past/current courses about how using Discourse went?
We were chatting about the next run of our MOOC and said "I wonder if we could use Discourse...", so I'm pleased to see MIT has already solved the problem, as usual! :)

Hey there @cycomachead!  This is probably isn't exactly what you're looking for, but here's a report on the last course we ran using Discourse: https://tsl.mit.edu/wp-content/uploads/2017/06/DTLL_Review_2017.pdf.  It's education-centric rather than product- or tech-centric so might not have what you're looking for but gives some context.
If you have any questions I'm happy to chat about them over issues or email.

@cycomachead I'll close this now unless there's anything else immediate you need here.  Let me know if there's anything else I can do to help!

I got swamped on the weekend prepping a edX course, but this looks great! Thanks! We've been using edX for some online CS PD, so I appreciate that side of things.


acme-dns-auth.py doesn't work for me

When I run certbot with the suggested command line I receive the following error:
Hook command "/etc/letsencrypt/acme-dns-auth.py" returned error code 1
Error output from acme-dns-auth.py:
Traceback (most recent call last):
  File "/etc/letsencrypt/acme-dns-auth.py", line 145, in <module>
    account = client.register_account(ALLOW_FROM)
  File "/etc/letsencrypt/acme-dns-auth.py", line 47, in register_account
    res = requests.post(self.acmedns_url+"/register")
  File "/usr/lib/python2.7/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python2.7/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 514, in send
    raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='localhost', port=81): Max retries exceeded with url: /register (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_get_record', 'wrong version number')],)",),))

These are the versions I have on python-requests. Do you have any suggestion?
# python -m requests.help
{
  "chardet": {
    "version": "3.0.4"
  },
  "cryptography": {
    "version": "2.6.1"
  },
  "idna": {
    "version": "2.6"
  },
  "implementation": {
    "name": "CPython",
    "version": "2.7.16"
  },
  "platform": {
    "release": "4.19.0-6-amd64",
    "system": "Linux"
  },
  "pyOpenSSL": {
    "openssl_version": "1010102f",
    "version": "19.0.0"
  },
  "requests": {
    "version": "2.21.0"
  },
  "system_ssl": {
    "version": "1010103f"
  },
  "urllib3": {
    "version": "1.24.1"
  },
  "using_pyopenssl": true
}

I had  a similar error when working with ACME-DNS directly.
Do you get the same error when you try testing the process: https://github.com/joohoi/acme-dns#testing-it-out
I fixed mine by updating to the latest version and making sure it successfully received a LE cert.

@etcware Still an issue for you or can this be closed?
Were you running your tests against a self-hosted version of acme-dns?  Were you running against letsencrypt staging?

acme-dns server does not retrieve a Let's Encrypt certificate for localhost as this is not allowed by LE.
It retrieves a certificate for its domain.
You must use that domain to connect to the acme-dns server, otherwise you get a certifcate error (non matching domains).
I wrote my own acme-dns-client that works with certbot and acme.sh.
Please have a look here: https://github.com/maddes-b/acme-dns-client-2
Feedback welcome.


Fixes Nearby export: Pins not all around me

Description (required)
Fixes #5650
What changes did you make and why?
Tests performed (required)
Tested prodDebug on Samsung S21 FE with API level 33.
Screenshots (for UI changes only)
https://github.com/commons-app/apps-android-commons/assets/114223204/3e17d042-37ed-496d-9203-66074abf4b06
https://github.com/commons-app/apps-android-commons/assets/114223204/243a49e2-36fa-407b-adf2-c91e65d203b8

@nicolas-raoul, Issue is now fixed!


refactor: stack x:variable and use URIQualifiedName

x:variable is handled in a convoluted way. Stacked as <x:var>, converted to <param> and extracted with namespaces.
This pull request simplifies it. x:variable is stacked as is and expanded to URIQualifiedName.

Looks like we can't be free from namespace troubles without this change. I'm merging this.


Implement different appId for Google and Huawei flavours

Configuration and signing considerations for distributing the app on Huawei devices that still having Google Play Services
The smallest heading
The second largest heading

Text that is a quote

Since the intended behaviour is to have different apps in case CCC is installed from both stores, the applicationId should be different for huawei and google flavors.
ℹ You are advised to use a key different from the signature key. If you do not submit an upload key, you need to use your signature key as the upload key. Source
If your project needs to support different app packages for different channels, the package name needs to vary depending on the channel. Change the package name under productFlavor in the build.gradle file in the app directory.
Source: Huawei Docs
    "package_name": "xxx.huawei"

https://github.com/abusuioc/from-gms-to-hms
Source: here
we added the .huawei, applicationIdSuffix, as it’s a requirement of AppGallery if you plan to use HMS in your app.

Configuration and signing considerations for distributing the app on Huawei devices that still having Google Play Services
Since the intended behaviour is to have different apps in case CCC is installed from both stores, the applicationId should be different for huawei and google flavors.
Sources: Google Docs , Huawei Docs, Production app use case

Moreover, Huawei introduced restrictions for application ID of applications that enable in-app purchases through the AppGallery – application ID must end with .huawei, otherwise the purchases in the application will not be working.

Sources: source1, source2
For security reasons is advised to have different signing keys for releasing the app in both stores.
ℹ You are advised to use a key different from the signature key. If you do not submit an upload key, you need to use your signature key as the upload key. Huawei Docs


Add HaveExecuted matcher

When the order of execution varies, there is no convenient way to match the commands which have executed without adding another matcher.
(Also needed to change package.go for this to compile.)

Thanks, @glyn, sounds reasonable. Prioritizing for the Diego team to evaluate.
Best,
Eric

rebased the pr and shuffled things around a little

@jvshahid Thanks for merging the change!


Publish a global dotnet tool

For me I feel that we should offer a dotnet tool distributed via Nuget which we call AsyncAPI.Saunter.Generation.Tool or Cli which would depend on a AsyncAPI.Saunter.Generation.Core package (https://github.com/asyncapi/saunter/issues/136). This tool would accept in an argument which is the path to the reference doc.

Pls, use issue template

@yurvon-screamo the problem with the issue templates is that they are putting the issues in the wrong project.
I have gone and updated the description.


Swift: Adding Pan Gesture to TopView

Hello i'm trying to add a panGesture to my topViewController with Swift
But i'm getting a fatal error with this.
 var pan = self.slidingViewController().panGesture
if let viewpan = pan{
 self.view.addGestureRecognizer(pan)
 }
fatal error: unexpectedly found nil while unwrapping an Optional value
Any help?,
Thanks

You should add the above code in viewDidAppear. Copy the below code and paste it into your existing code.
override func viewDidAppear(animated: Bool) {         self.view.addGestureRecognizer(self.slidingViewController().panGesture)     }


Is this applicable to images taken by endoscope

Hi,
Thank you for the great work. I have a question about whether this data augmentation method could be applied to natural medical images such as images that are taken by a endoscope? Thank you!

Thanks for your interest! This data augmentation method works best when you have input images with exact correspondences (i.e. you can match all of the anatomy in one image to the anatomy in another). It also works best on images without occlusion (such as 3D MRIs), since it is not explicitly designed to handle occlusions. My guess is that endoscope images contain significant occlusions, so this might not work well.

Thank you very much for your answer! 谢谢姐姐了


Alternative transport methods: Exception when calling the failure callback

Adding the following config causes exception Cannot use 'in' operator to search for 'status' in undefined
transport: (params, success, failure) => {
  // ...
  failure(err); // err object that has a `status` property.
}

I looked into the lib to find where the problem is. It's exactly here
https://github.com/select2/select2/blob/develop/src/js/select2/data/ajax.js#L85
Where the $request will always be undefined.
Fix: Allow receiving an error param which we should check against.
function (err) { // <- Receive an error param here
  if ('status' in err && (err.status === 0 || err.status === '0')) {
    return;
  }
// ...

By the way, the docs says:
request.on('failure', failure);

that indicates that the failure call back accepts parameters.
If this issue and the fix are confirmed, I'm ready for the pull request!

Update: My current workaround:
transport: (params, success, failure) => {
  // ...
  setTimeout(() => failure(err)); // <-- #1
  // ...

   return { };  // <-- #2
}

is it fixed or in the plan?

I believe the best solution would be to check if $request is not null first, before checking that it has the status property.
https://github.com/select2/select2/blob/d0ddab6cebc69e37fe51dfc287c3e3aa37b5cd1d/src/js/select2/data/ajax.js#L85
It's an optional, undocumented feature of transports where you can have it detect an aborted request. We should be fully supporting the case where a transport doesn't provide the status property.

the transport option is expecting a return from function call.
Instead of:
$('#mySelect2').select2({
  ajax: {
    transport: function (params, success, failure) {
      var request = new AjaxRequest(params.url, params);
      request.on('success', success);
      request.on('failure', failure);
    }
  }
});

Do this:
$('#mySelect2').select2({
  ajax: {
    transport: function (params, success, failure) {
      var request = new AjaxRequest(params.url, params);
      request.on('success', success);
      request.on('failure', failure);
      return request;
    }
  }
});


RUMM-1244 Cleanup internal logs

What does this PR do?
Cleanup Internal logs to avoid noise and spam : only keep relevant logs

Codecov Report

Merging #555 (c2a186c) into release/1.9.0 (aef9834) will decrease coverage by 0.10%.
The diff coverage is 80.95%.

@@                 Coverage Diff                 @@
##             release/1.9.0     #555      +/-   ##
===================================================
- Coverage            88.77%   88.67%   -0.10%
- Complexity            1565     1569       +4
===================================================
  Files                  170      170
  Lines                 5211     5199      -12
  Branches               628      627       -1
===================================================
- Hits                  4626     4610      -16
- Misses                 347      358      +11
+ Partials               238      231       -7

Impacted Files
Coverage Δ
Complexity Δ

...l/net/info/BroadcastReceiverNetworkInfoProvider.kt
77.08% <ø> (-1.27%)
27.00 <0.00> (-1.00)

...e/internal/net/info/CallbackNetworkInfoProvider.kt
94.44% <ø> (-0.20%)
18.00 <0.00> (ø)

...sistence/file/advanced/ConsentAwareFileMigrator.kt
91.18% <0.00%> (ø)
13.00 <0.00> (ø)

...og/android/core/internal/utils/WorkManagerUtils.kt
100.00% <ø> (ø)
0.00 <0.00> (ø)

.../instrumentation/gestures/WindowCallbackWrapper.kt
76.19% <0.00%> (+5.36%)
7.00 <0.00> (ø)

.../android/core/internal/time/LoggingSyncListener.kt
61.54% <58.33%> (-13.46%)
3.00 <2.00> (ø)

...rnal/system/BroadcastReceiverSystemInfoProvider.kt
81.25% <75.00%> (+0.60%)
11.00 <0.00> (ø)

...id/core/internal/data/upload/DataUploadRunnable.kt
100.00% <100.00%> (ø)
17.00 <0.00> (ø)

.../android/core/internal/data/upload/UploadWorker.kt
89.66% <100.00%> (-0.34%)
8.00 <0.00> (ø)

...og/android/core/internal/net/DataOkHttpUploader.kt
97.50% <100.00%> (+3.16%)
18.00 <3.00> (ø)

... and 15 more


Issue when loading the model

I tried to load the model imagenet_uni... and got the following error :
AttributeError: module 'tensorflow.python.keras.backend' has no attribute 'tf'
Maybe you can advice the solution, at least please emphasize the correct version of libraries to use. Thank you.

Okay, thanks, I will try it out.
On Mon, 26 Apr 2021 at 11:09, Björn Barz @.***> wrote:

Thanks for reaching out!
As stated in the README, the code was written using TensorFlow 1.8, way
before the release of TF 2.
TensorFlow 2 introduced many backwards-incompatible changes, so the code
in this repository will definitely not run with it. I will state this more
clearly in the README.
Furthermore, you seem to be using the Keras bundled with TensorFlow (
tensorflow.keras), while we used the stand-alone Keras.
In particular, we used the following versions of TensorFlow and Keras:

tensorflow 1.8
keras 2.24
keras-applications 1.0.7
keras-preprocessing 1.1.0

Others might work as well, as long as TF is below 2.0.
If the problem persists with the correct versions of TensorFlow and Keras,
please post the code you are using to load the model.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/cvjena/semantic-embeddings/issues/7#issuecomment-826610756,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKZQECTTXBUNUISKU3QF4R3TKUNTPANCNFSM43RV7X7Q
.

@Callidior , thanks! I've managed to load the model with tensorflow==1.15.0 and keras==2.2.4.


1.9.0rc2 cannot create directory when reinstalling CLN

When turning CLN off and on in the menu, the directory for the logs can't be created since it already exists:
# Set logrotate for lightningd
mkdir: cannot create directory ‘/home/bitcoin/.lightning/bitcoin/cl.log_old’: File exists
/home/bitcoin/.lightning/bitcoin/cl.log

Does this break he script?
Can wrap it in an if -then to not try to create the directory when exists.

No, doesn't break anything IMO, just an error message.


Rename folder

Type: Bug
If a folder has subfolders in a large project, then when renaming there will always be an error stating that the directory is busy and you need to restart the studio several times to rename such a directory
VS Code version: Code 1.87.2 (863d2581ecda6849923a2118d93a088b0745d9d6, 2024-03-08T15:20:17.278Z)
OS version: Windows_NT x64 10.0.22621
Modes:

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-5930K CPU @ 3.50GHz (12 x 3498)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_graphite: disabled_offvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: enabled

Load (avg)
undefined

Memory (System)
47.91GB (33.13GB free)

Process Argv
--crash-reporter-id d3ad7fba-2ab3-4670-91c1-f90e4ab94325

Screen Reader
no

VM
0%

Extensions (10)

Extension
Author (truncated)
Version

font-preview
ctc
2.2.1

prettier-vscode
esb
10.4.0

rest-client
hum
0.25.1

vscode-dependency-cruiser
jua
0.0.1

git-graph
mhu
1.30.0

sqltools
mtx
0.28.1

material-icon-theme
PKi
4.34.0

material-product-icons
PKi
1.7.0

code-spell-checker
str
3.0.1

code-spell-checker-russian
str
2.2.2

A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:30899288
c4g48928:30535728
azure-dev_surveyone:30548225
a9j8j154:30646983
962ge761:30959799
pythongtdpath:30769146
welcomedialog:30910333
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
h48ei257:31000450
pythontbext0:30879054
accentitlementst:30995554
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
d34g3935:30971562
fegfb526:30981948
bg6jg535:30979843
ccp1r6:30993540
dsvsc020:30976470
pythonait:31006305
666c4381:30973075
dsvsc021:30996838
g1icg217:30999571

I would like to work on this.

Do you have an example project?

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!


out of place support in test harness

This PR demonstrates how test harness can be modified to test out-of-place workflow.
@phanimarupaka the change is very minimal and can be added in your out of place support PR because that is required to test this support, hence, keeping this PR in draft mode.
/cc @phanimarupaka @Shell32-Natsu
Basic Idea is:

test should have out directory to indicate that command need to be run in out of place mode
Add out directory to the .krmignore file to exclude the files in out directory in the second run of the command (idempotent tests)

@frankfarzan @Shell32-Natsu @phanimarupaka I don't plan to merge this PR because it requires -o flag which is in the out-of-place PR, but, if we are in agreement on the approach, then @phanimarupaka can pick these changes in the out-of-place PR.
Also, same approach can be leveraged by the e2e tests using the shell scripts (function chaining especially) by using another special directory and adding that to krmignore file.


Test: signature / keytype mismatch

E.g., using an RSA key to verify an ed25519 signature

This might be mitigated by https://github.com/theupdateframework/taps/pull/21

Depends on: https://github.com/theupdateframework/taps/issues/38


Xnero: Watch updateerror.co

Xnero requests the watch of the watch_keyword updateerror\.co. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

updateerror\.co has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Approved by Spevacus in Charcoal HQ


Last circuit on Classical Computation on a Quantum Computer not displaying correctly

Where is the problem?
Classical Computing on a Quantum Computer - Qiskit Textbook
 very near the bottom of the page.
Describe the problem
The output from the last interactive box produces an image different than the original image.  In other words, running (Vf.inverse().compose(copy).compose(Vf)).draw() changes the circuit shown immediately below it.  Instead it shows a circuit with only three qubits.
Expected behavior
The code should display a circuit with four qubits.
Screenshots
This is what you should see (and do immediately after reloading the page):

This is the result you get from running all the code on the page:

Thanks for making this issue. The textbook is being superseded so this will not be fixed.


Minor improvements on upgrade for kubeadm

Signed-off-by: yuexiao-wang<EMAIL_ADDRESS>Fixes: https://github.com/kubernetes/kubeadm/issues/1301

we should suggest apt-mark unhold before and apt-mark hold again after, similar to what already implemented in HA upgrade instructions

apt-get install -y kubeadm should be  apt-get upgrade -y kubeadm  in HA upgrade instructions

/assign
@kubernetes/sig-cluster-lifecycle-pr-reviews PTAL, thanks!

/assign @fabriziopandini

/lgtm

Thanks for reviewing this @detiber!
/lgtm
/approve

Ohhh.  I'm late on this PR. However,
@yuexiao-wang thanks for this PR!


Tahoma integration doesn't find my awnings

**Issue Description
I've integrated Tahoma to Home Assistant.
All of my covers where found but not my awnings
To Reproduce
Delete Integration and redo it.
Expected behavior
Every device should be found and migrated to
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):

**ha-tahoma version: 2020.3.4-15
**Home Assistant version: 0.114.4
**Platform awnings from brand Markilux (somfy io)

Device: (if your problem is related to a specific device)
n/a

Model: [e.g. PositionableScreen, can be gathered from device list in HA]
Type: [e.g. io:DimmableLightIOComponent, can be gathered from device page in HA looking at Firmware] /config/devices/dashboard]

Additional context
n/a
Add any other context about the problem here.
n/a

Can you please give more details? Have you look in the log if any message related to our component? I own myself a Markelux awnings, and I can see it.

Please have a look at 'Device not supported / working correctly
' in the readme. It would be helpful if you turn on debug mode and share the log.
Could you share a screenshot of your integrations / devices page as well?

hi,
Unfortunately  can't see anything in the logs related to this integration.
The following are missing:

Have you turned on debug mode for the integration?

Have you turned on debug mode for the integration?
iMicknl/ha-tahoma#enable-debug-logging

And please share a screenshot of your integrations / devices page in Home Assistant (/config/devices/dashboard). How did you install this custom component? I wonder if you are using our version or the default core version..

enabled the debugger.
I've used the oAuth link.

do you see messages such as those:
2020-09-17 10:59:35 DEBUG (MainThread) [custom_components.tahoma] Finished fetching TaHoma Event Fetcher data in 0.031 seconds
2020-09-17 10:59:35 DEBUG (MainThread) [custom_components.tahoma] Unsupported TaHoma device detected (io:IORemoteController - RemoteController - RemoteControllerOneWay)

@inconsx you are using the Somfy integration, where this is the Somfy TaHoma integration. Unfortunately the Somfy integration, which is using the official API, doesn't support all devices. This integration is using the onofficial API used by tahomalink.com and thus supports all devices out of the box.
Please have a look at the Installation section of the README. I will close this issue for now, feel free to reopen if you still have issues after installing the new integration.

made it and works perfectly now. Thanks


added my profile card

Resolve the conflicts.

Alright.. I would fix that

Heyy,
i have resolved the conflict


win11 build error

After I successfully execute prepare_3rdParty.bat
I execute cd TypeScriptCompiler\tsc and config_tsc_release.bat These errors appear, am I missing any steps
D:\Workspace\TsEngine\TypeScriptCompiler\__build\tsc\msbuild\x64\release>cmake ../../../../../tsc -G "Visual Studio 17 2022" -A x64 -DCMAKE_BUILD_TYPE=Release -Wno-dev
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
-- The CXX compiler identification is MSVC 19.40.33811.0
-- The C compiler identification is MSVC 19.40.33811.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.40.33807/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.40.33807/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- MLIR_DIR is D:/Workspace/TsEngine/TypeScriptCompiler/3rdParty/llvm/x64/Release/lib/cmake/mlir
-- Clang_DIR is D:/Workspace/TsEngine/TypeScriptCompiler/3rdParty/llvm/x64/Release/lib/cmake/clang
-- CMAKE_VS_PLATFORM_TOOLSET_HOST_ARCHITECTURE was x64 and set to x64
CMake Error at CMakeLists.txt:78 (find_package):
  Could not find a package configuration file provided by "MLIR" with any of
  the following names:

    MLIRConfig.cmake
    mlir-config.cmake

  Add the installation prefix of "MLIR" to CMAKE_PREFIX_PATH or set
  "MLIR_DIR" to a directory containing one of the above files.  If "MLIR"
  provides a separate development package or SDK, be sure it has been
  installed.

-- Configuring incomplete, errors occurred!

highly likely your run prepare_3rdParty.bat was not successful and probably you do not have enough space on your drive. Ensure you have 1TB of free space on your drive to build 3rd party libraries as 1 of them us LLVM which takes a LOT of space

Yes, you are right, I re-executed the script and reviewed the errors. It's ok now.


ARROW-6104: [Rust] [DataFusion] Remove use of bare trait objects

Remove use of bare trait objects and use dyn syntax instead

Codecov Report

Merging #5006 into master will decrease coverage by 4.84%.
The diff coverage is 78.94%.

@@             Coverage Diff             @@
##           master    #5006       +/-   ##
===========================================
- Coverage   87.57%   82.72%    -4.85%
===========================================
  Files        1005       87      -918
  Lines      143457    25431   -118026
  Branches     1418        0     -1418
===========================================
- Hits       125630    21039   -104591
+ Misses      17465     4392    -13073
+ Partials      362        0      -362

Impacted Files
Coverage Δ

rust/datafusion/src/execution/projection.rs
91.11% <ø> (ø)
:arrow_up:

rust/datafusion/src/execution/expression.rs
61.29% <ø> (ø)
:arrow_up:

rust/datafusion/src/execution/filter.rs
68% <ø> (ø)
:arrow_up:

rust/datafusion/src/datasource/memory.rs
79.68% <0%> (ø)
:arrow_up:

rust/datafusion/src/sql/planner.rs
75% <100%> (ø)
:arrow_up:

rust/datafusion/src/execution/limit.rs
78.26% <100%> (ø)
:arrow_up:

rust/datafusion/src/execution/aggregate.rs
54.33% <100%> (ø)
:arrow_up:

rust/datafusion/src/execution/relation.rs
100% <100%> (ø)
:arrow_up:

rust/datafusion/src/datasource/parquet.rs
75.91% <75%> (-0.24%)
:arrow_down:

rust/datafusion/src/execution/table_impl.rs
90.06% <75%> (ø)
:arrow_up:

... and 920 more

Continue to review full report at Codecov.

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


Write a user story

As a cook for the family I want a program that can generate random meals every week so that I can plan in advance and not repeat meals too often and try new options.


Create CONTRIBUTING.md

Needs more work obviously... I will keep improving until you can review and merge

I propose we link to https://developers.cardano.org/docs/portal-contribute/#project-structure  for the structure to avoid maintaining two different files.


[RFC]: refactor blas/ext/base/dsnansumors to follow current project conventions

Description
This RFC proposes refactoring @stdlib/blas/ext/base/dsnansumors to follow current project conventions.
These conventions are outlined in more detail in https://github.com/stdlib-js/stdlib/issues/788. Namely, we want to migrate from C++ add-on interfaces to C add-on interfaces and then make various style and simplification changes.
Some example commits which perform most, if not all, of the requested changes include https://github.com/stdlib-js/stdlib/commit/d66d80cfcbab1da95cb5ae8cfae4a1fc4c5129d1 (saxpy),  https://github.com/stdlib-js/stdlib/commit/3c82fe7b6c0f9fd6ef02c86d6e2024d708ac8c14 (cswap), and https://github.com/stdlib-js/stdlib/commit/5b15c9675be434c0e11b1ec1e1f78d7b089abbcd (dasum).
Related Issues
Related issues #788, #1152.
Questions
No.
Other
No.
Checklist

[X] I have read and understood the Code of Conduct.
[X] Searched for existing issues and pull requests.
[X] The issue name begins with RFC:.

@Planeshifter I want to work on this issue please assign this to me


[QUESTION] How do I make the landing page editable in the content manager

Hey there!
I've been trying to get the landing page editable in the content manager, but I'm a bit stuck at the moment. I had an index.md in a /home subfolder in the pages folder, and that showed up fine in the editor (except the slug was not what I wanted). But then as soon as I moved the index.md to the root of the pages folder, it just isn't showing up as an option to edit anymore. I'm not sure what I'm doing wrong.
Here's the link to my repo.
This is what my config.yml file looks like:
backend:
  name: git-gateway
  branch: master

media_folder: static/img
public_folder: /img

collections:
 # blog collection ...
  - name: "pages"
    label: "Pages"
    files:
      # about page ...
      - file: "src/pages/index.md"
        label: "Home"
        name: "home"
        fields:
          - {
              label: "Template Key",
              name: "templateKey",
              widget: "hidden",
              default: "index-page",
            }
          - {
            label: "Jumbotron Image",
            name: jumbotronImage,
            widget: image
          }
          - {
              label: "Services",
              name: "services",
              widget: "list",
              fields:
                [
                  { label: Title, name: title, widget: string },
                  { label: Icon, name: icon, widget: string },
                  { label: Description, name: description, widget: text },
                ],
            }
          - {
            label: Languages,
            name: languages,
            widget: list,
            fields:
              [
                { label: Language, name: language, widget: string },
                { label: Description, name: description, widget: string },
              ]
            }
          - {
            label: Pricing,
            name: pricing,
            widget: list,
            fields:
              [
                { label: Service, name: service, widget: string },
                { label: Rate, name: rate, widget: number, step: 0.01 },
              ]
          }

Let me know if you need any more info

Hi @ChariseWalraven I checked your repo, there's a lot of great stuff you did there, like improving the markup and componentize everything (which we could benefit also!). I couldn't figure out when did you forked the starter but eventually we have this solved in our starter. If it's not showing up in the CMS editor in the left side, then, i think this is a config.yml issue, take a look at ours and note that the formatting is different, and yml is very sensitive to formatting. i think one key difference is in our index-page the graphQL query queries the page by template-key which is unique in the index.md file in the root.
Good luck!

Closed now, but feel free to reopen for further questions


invalid model file (bad magic [got 0x67676d66 want 0x67676a74])

This happen when i try to run the model with tutor in Readme.md
my code:
from pyllamacpp.model import Model

def new_text_callback(text: str):
    print(text, end="")

if __name__ == "__main__":
  prompt = "Once upon a time, "
  model = Model(ggml_model='chat\gpt4all-lora-unfiltered-quantized-ggml.bin', n_ctx=512)
  model.generate(prompt, n_predict=55, new_text_callback=new_text_callback, n_threads=8)

chat\gpt4all-lora-unfiltered-quantized-ggml.bin: invalid model file (bad magic [got 0x67676d66 want 0x67676a74])         you most likely need to regenerate your ggml files         the benefit is you'll get 10-100x faster load times         see https://github.com/ggerganov/llama.cpp/issues/91         use convert-pth-to-ggml.py to regenerate from original pth         use migrate-ggml-2023-03-30-pr613.py if you deleted originals llama_init_from_file: failed to load model llama_generate: seed =<PHONE_NUMBER>

although it is written here that a ggml model is needed, but in fact now llama.cpp uses the ggjt model

Yes, as @DeadRedmond said, llama.cpp is now using a ggjt model format.
You will need to convert the model to the new format using the provided script.
We will change the param name in the future release.

Could you please elaborate more on how to convert ggml to ggjt format?

@VincentWang25 Please try this

Thank you. It works like charm :)


feat(firestore): cache snapshot connections with underlying native listener

Description
Currently, calling .snapshots() twice on the same reference leads to listening the same reference twice, which is a billable operation.
This is a common issue when using reference like so:
StreamBuilder(
  stream: collection.where(...).snapshots(),
  ...
)

where rebuilding the StreamBuilder with the exact same query leads to a "removeListener" followed by "addListener" on the query, which is expensive.
This PR caches the bridge with the native platform so that when rebuilding a StreamBuilder like previously mentioned, this will instead reuse the existing connection instead of opening a new one and closing the previous one.
Related Issues
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]).
This will ensure a smooth and quick review process. Updating the pubspec.yaml and changelogs is not required.

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] My PR includes unit or integration tests for all changed/updated/fixed behaviors (See Contributor Guide).
[x] All existing and new tests are passing.
[x] I updated/added relevant documentation (doc comments with ///).
[x] The analyzer (melos run analyze) does not report any problems on my PR.
[x] I read and followed the Flutter Style Guide.
[x] I signed the CLA.
[x] I am willing to follow-up on review comments in a timely manner.

Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?

[ ] Yes, this is a breaking change.
[x] No, this is not a breaking change.

does it make sense to add tests which verify an actual call count of the method channel?

does it make sense to add tests which verify an actual call count of the method channel?

That'd probably be redundant with the tests for getCachedSnapshot – which verify that the stream is cached already.

I do want to raise an issue this commit created.
You've changed the behavior for listeners of this now cached connection.
The first listener will receive a full list of docChanges (with every record being represented as added).
the N+1 listener will only see the most recent updated records in docChanges initially and instead will need to rely on just docs to get a full list of the documents in the snapshot.
Certainly a breaking change.  And goes against the documented behavior (that the initial stream listener event will contain all documents in the docChanges as added).

cc @rrousselGit

That's a good point.
I'm not too familiar with docChanges. Are we expecting the initial call to simply contains all the "docs" with nothing else?
In particular I'm wondering if we can get this behaviour back without reverting this change.

I'm not sure they charge you for re-reads. The official pricing docs say this:
Listening to query results
Firestore allows you to listen to the results of a query and get realtime updates when the query results change.

When you listen to the results of a query, you are charged for a read each time a document in the result set is added or updated. You are also charged for a read when a document is removed from the result set because the document has changed. (In contrast, when a document is deleted, you are not charged for a read.)

Also, if the listener is disconnected for more than 30 minutes (for example, if the user goes offline), you will be charged for reads as if you had issued a brand-new query.

The last paragraph seem to indicate that the snapshot listener has to be disconnected for more than 30min to be charged again.


introducing an alternative to waitForBlock

Context
@dckc has raised in here that waitForBlock might be racy and pointed some good implementations for an alternative:

https://github.com/Agoric/agoric-sdk/blob/f291362e4bc62ec31552cef29ec1a5f5cfbf7bd7/packages/internal/src/utils.js#L268
https://github.com/Agoric/agoric-sdk/blob/f291362e4bc62ec31552cef29ec1a5f5cfbf7bd7/multichain-testing/tools/sleep.ts#L62

Considerations
What do you think if we include one of the above to @agoric/synthetic-chain ? @turadg

I suggest that the title should be something like: waitForBlock(N) is unreliable for synchronization
As stated, any alternative would address the issue, including one that was functionally identical but refactored in some way.

What do you think if we include one of the above

First implement it locally in a proposal test. If it works well then we can incorporate it upstream.

any alternative would address the issue, including one that was functionally identical but refactored in some way

This would be ideal so the existing uses get automatically improved and no tests have to change.

Thanks, I'm clear now.


Consider using ASG for controller nodes on AWS

To benefit from auto healing and perhaps to be able to provide rolling upgrade of controller nodes and etcd.

Closing as duplicate of #28.


problem read tabel from blueprint pdf

I have encounter problem when extract data to csv from a engineering drawing bill of material table. I works OK when pdf paper size is smaller than A2. But when drawings are A2 and larger the CSV data is not good.
is there an way to solve this?

Hi @TomGap,
Unfortunately, we aren't able of debugging this issue without taking a look at the document. Please upload it to this issue.

crop.pdf
Here is the file with problems. I tried to extract data from the table in the right low corner.
The data extract to Excel is not good.


SSO Login Doesn't Load System Generated Profile Photo

Environment
Docker
Version
0.15.0
Describe the problem
When logging in with SSO, when Homarr Dashboard first loads, the system generated photo that represents the profile picture by adding the users initial shows a broken image. Logs indicate status code 400 (Bad Request).
Steps to reproduce:

Login with SSO
View broken image in top right

Additional Information:
Navigating to another management page, such as /manage, DOES load the image.
Logs
Failed to load resource: the server responded with a status of 400 ()
Context

Please tick the boxes

[X] I confirm that I attached the proper logs
[X] I've read the docs
[X] I've checked for duplicate issues
[X] I've tried to debug myself

I believe the image shown on the top right is related to the user's mail as per @Tagaishi feature of showing a user's gravatar profile image and not linked to SSO in any way. Is that right @Tagaishi ?


[SUGGESTION] U must likely known already.

Please describe your suggestion in detail.
But incase u don't the rename function makes it go 大中國代碼可怕的黑客重命名功能。and not put : for the function so it breaks it ofc u can just add it there but still just pointing out.
Additional context
Add any other context or screenshots about the feature here.

Thanks for pointing that out i actually forgot about that bug :)


Fix pivot.sql

I won’t take any credits, I found this fix in Chris King’s response to your article.
Edit: Also added backticks around function call within the procedure because dashes in my project name seem to break it without them.
PS @fhoffa Could you also provide this function with “EU” as data location?

@googlebot I signed it!

@fhoffa can you please provide this function with India (asia-south1) as data location.


Compress-Archive - Require native password encryption option

Summary of the new feature / enhancement
Compress-Archive should have a password encryption option. This is a basic required feature for all archives and should have been included natively, since day one.
Specific use case: doing an Azure live response session and trying to grab a potentially malicious file from the system. Looking to zip and encrypt the file with a password (standard malicious file handling procedures). However cannot utilize native PowerShell to accomplish this without installing 7zip or 7zip4powershell.
Please include parameters for zip password/encryption into Compress-Archive cmdlet for future releases.
Proposed technical implementation details (optional)
No response

That cmdlet is in another repository.
https://github.com/PowerShell/Microsoft.PowerShell.Archive

We've archived the archive repo as we have no immediate plans to address open issues.  However, we do intend to eventually re-write the archive module, but will probably be in a new repo.
As for this issue, the archive module solely depends on the .NET ZipFile class which doesn't appear to support encryption.  I would suggest up-voting this https://github.com/dotnet/runtime/issues/1545 and once that is implemented, it can be exposed via an Archive module.

Temporary solution for you
In my project, there is a “node_stcript” directory:
https://gitee.com/chuanjiao10/kasini3000/tree/master/node_script/7z
Use my project, When you first connect to a controlled machine, this directory will be copied to the controlled machine.
In this directory, I have placed the 7z toolkit.
The 7z directory can be used independently. This means you can use it separately from the Kasini3000 project.
For you, just change the script inside and add the 'password' parameter.

Welcome to the powershell script framework I wrote: kasini3000
main site: https://gitee.com/chuanjiao10/kasini3000
site mirror: https://github.com/kasini3000/kasini3000 --- Welcome give star to project
win,linux devops automation batch script framework.(It is similar to Puppet，Ansible，pipeline)
Open source, free, cross-platform
English manual:
https://gitee.com/chuanjiao10/kasini3000/blob/master/docs/kasini3000_manual.xlsx
tech：
https://www.cnblogs.com/piapia/p/16534765.html


Add dampening to file watcher. It will only deliver 1 event per maxDelay

File watcher waits for maxDelay duration to deliver notification to updatefunc().
What this PR does / why we need it:
Current file watcher passes all events from fsnotify up to the agent.
This can (and has) cause excessive event generation.
It can also cause related events to be processed separately. For example cert and key file change events may be delivered separately even though they change together.
Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #
This is related to pr #1331
Special notes for your reviewer:
NONE

@mandarjog: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/pilot-presubmit.sh
ce84d0ced71aefbeb2fe6bec9e9bbb727223baa2
link
/test pilot-presubmit

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@mandarjog: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/pilot-presubmit.sh
5dba1f6b904236480e0b4774aa8003188c491d51
link
/test pilot-presubmit

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@mandarjog: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/pilot-presubmit.sh
0d5b4a7b902f2093ca7f6dd41af97408f7331402
link
/test pilot-presubmit

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/retest

@mandarjog: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/pilot-presubmit.sh
0d5b4a7b902f2093ca7f6dd41af97408f7331402
link
/test pilot-presubmit

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

It's not the linter gotype that's the problem; it's incorrect parameters from metalinter.

Can we merge this ? Can we fix the linter in another commit @kyessenov

@kyessenov or I will fix the linter in another commit.


Short solution needed: "proxy authentication" (proxychains)

Please help us write most modern and shortest code solution for this issue:
proxy authentication (technology: proxychains)
Fast way
Just write the code solution in the comments.
Prefered way

Create pull request with a new code file inside inbox folder.
Don't forget to use comments explain solution.
Link to this issue in comments of pull request.

How to set username/password for proxy authentication


feat: Make this repository versioned

The apache/apisix, apache/apisix-dashboard, and some other projects are using this tool for building and packaging. But they seem always rely on the latest code from the master branch, which actully is a non-persistent dependency.
For example, the https://github.com/api7/apisix-build-tools/pull/67 renamed the rpm name, which caused CI failures in both apache/apisix and apache/apisix-dashboard.
So I would propose to make this repository under versioning control, as well as only the versioned code could be the dependency of other projects. I would recommend the first version/tag to be 2.0.0.
What do you think? @spacewander @tzssangglass

LGTM


fix: Python version

Summary
In flags, exit_on_error is used which was introduced in python 3.9 and in examples u have used | for typing.Union which was introduced in 3.10. This breaks backward compatibility

Checklist

[ ] This PR has breaking changes
[ ] This PR fixes an issue
[x] This is not a code change
[ ] If code changes were made they have been tested
[ ] I have properly changed the docs to appeal to this change

Union was not added in 3.10, from the docs it seems like it was added in 3.6. and I think you’re confusing this as | being a new feature in that version

I am not talking about Union. I mentioned about | syntax for Union which was introduced in 3.10
Few examples uses them
And exit_on_error used in Argument Parser in flags


Programmatic redirect in 1.x?

I'm trying to upgrade to 1.x, but am having problems trying to find a substitute for programmatically doing a redirect.
I used to have named routes and would pass the router down the context. I would sometimes have events that fire that would trigger something like this:
this.context.router.replaceWith('<route_name>')
What's the equiv for 1.x? I couldn't find anything in the upgrade documentation.

From the react-router Slack room:
this.props.history.replaceState(null, <path>)
like
this.props.history.replaceState({}, '/manage/card/12')

@theogravity you don't happen to have a server side example of programmatically redirecting also?

:white_check_mark:


Add German translation - What to translate?

Heyho!
This looks very cool! :+1:
I would like to contribute a German translation, but I have absolutely no idea where to find the Strings that need translating.
Could someone maybe point in the right direction?

Thank you! Fly-Pie is not yet translatable. Once localization support is implemented, I will come back to you! I will leave this issue open till then.

OK cool :+1:
Is there anything else a not-very-Programmer-y person can do to help you out?

I have an idea: If you want to, you could create some awesome theme presets!

I added now the possibility to translate Fly-Pie in develop. However, as German is my mother tongue as well, I already translated it on the way. It would be great, if you could check the translation for any spelling errors! Also, feel free to suggest better translations, some of the terms sound quite weird in German :wink:
Thank you!

Aw bummer...
I also speak French, so maybe I can provide a translation there.  Quality control is definitely necessary!


Custom dialog options not working on different locales

Hello, I tried using the custom dialog strings as mentioned and they work fine on the default locale, but if I change them to one of the supported languages it reverts back to the default text.
Any clue on what to do?

@Azgraal You need to add string values for that particular locale.


The package ( @noble/ed25519 ) is throwing some math errors in production works fine in local

Usage of the module
import * as ed from '@noble/ed25519';

const someFunction = async() => {
    const privateKeyRaw = ed.utils.randomPrivateKey(); // 32-byte Uint8Array or string.
    const publicKeyRaw = await ed.getPublicKey(privateKeyRaw);
}

I'm using this in a react app onClick the function triggers but on production even before the button is pressed I'm getting this error
TypeError: Cannot convert a BigInt value to a number
    at Math.pow (<anonymous>)
    at 88238 (index.js:7:21)
    at __webpack_require__ (create fake namespace object:19:32)
    at 26554 (392.8554e2b8.chunk.js:1:221)
    at Function.__webpack_require__ (create fake namespace object:19:32)

I believe the error is arising from the import statement.

I also have this problem

update to 1.7.0

update to 1.7.1


ng-2: added top secret Soviet military development

https://trello.com/c/6TMsBO7y

Needs improvements

Needs improvements


[Using tf.function()] ValueError: Input 0 of layer dense is incompatible with the layer

Set up: Using tensorflow 2.2.0 on python 3.7.
Background: I'm just trying to get the concrete function of a simple tf.keras.Model to save it using SavedModel and use it later, yet there is no example of doing so in the documentation. Trying to perform this simple task following the documentation gives the following problem:
Issue (possibly bug)
I'm trying to run a very simple concrete function based on the documentation:
import tensorflow as tf

inputs = tf.keras.Input(shape=(3,))
x = tf.keras.layers.Dense(4, activation=tf.nn.relu)(inputs)
outputs = tf.keras.layers.Dense(5, activation=tf.nn.softmax)(x)
model = tf.keras.Model(inputs=inputs, outputs=outputs)

x = tf.constant([[1.0,2.0,3.0], [1.0,2.0,3.0]])
model.predict(x)

# outputs: array([[0.19964378, 0.23859118, 0.17491119, 0.15458305, 0.23227075],
#       [0.19964378, 0.23859118, 0.17491119, 0.15458305, 0.23227075]],
#      dtype=float32)
# OK!

Now using tf.function:
@tf.function(input_signature=[tf.TensorSpec(shape=(None, 3), dtype=tf.float32)])
def predict(x):
  return model.predict(x)
p = predict.get_concrete_function()

# TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

Without None :
@tf.function(input_signature=[tf.TensorSpec(shape=(3,), dtype=tf.float32)])
def predict(x):
  return model.predict(x)
p = predict.get_concrete_function()

# ValueError: Input 0 of layer dense is incompatible with the layer:
# expected axis -1 of input shape to have value 3 but received input with shape [None, 1]

Finally, without declaring the input attribute on the tf.function:
@tf.function
def predict(x):
  return model.predict(x)

p = predict.get_concrete_function(x=tf.TensorSpec(shape=(1,3,), dtype=tf.float32))
#  AttributeError: 'Tensor' object has no attribute 'numpy'

(Among many other permutations, none o which works, because either it's a bug, or somehow you've made this thing unusably  complicated, or I'm missing something)

I have tried in colab with TF 2.2 and was able to reproduce the issue. But with TF nightly version(2.3.0-dev20200614) i am seeing  different error RuntimeError.Please, find the gist here.Thanks!

@ravikyram thanks for the collab file.
So, my question is if I'm doing it wrong or is it a bug. I tried following exactly the way it is instructed on the docs, but they are quite confusing.
My goal is just to get the concrete function of the model's predict method, so I can save it using SavedModel and use it elsewhere.

I see that on nightly the error message is more useful:
RuntimeError: Detected a call to `Model.predict` inside a `tf.function`. `
Model.predict is a high-level endpoint that manages its own `tf.function`.
Please move the call to `Model.predict` outside of all enclosing `tf.function`s.
Note that you can call a `Model` directly on `Tensor`s inside a `tf.function` like: `model(x)`.

So, when I did:
# Using Model instead of Model.predict
@tf.function(input_signature=[tf.TensorSpec(shape=(None, 3), dtype=tf.float32)])
def predict(x):
  return model(x)
p = predict.get_concrete_function()

# Test
x = tf.constant([[1.0,2.0,3.0], [1.0,2.0,3.0]])
p(x)

# out -> <tf.Tensor: shape=(2, 5), dtype=float32, numpy=
# array([[0.104079  , 0.3223787 , 0.28109816, 0.18215933, 0.11028478],
#       [0.104079  , 0.3223787 , 0.28109816, 0.18215933, 0.11028478]],
#      dtype=float32)>

It actually worked! For some reason, you can't call model.predict(x) inside a tf.function, but you can call model(x) inside a tf.function (they should be equivalent... oh well)

@dhiegomaga Sorry for the delay in my response.
The decorator tf.function will automatically transform the code in a function into the graph-style code for execution. As mentioned in the above RuntimeError,  under the hoods, model.predict manages its own execution graph. decorating with   another tf.function results in internal error.
I understand you already resolved this issue. If this is not an issue, please feel free to close the issue. Thanks!

a


Update functions-auth.php

Issue when webserver serving YOURLS is set with default/empty SERVER_NAME (e.g. _ in nginx) and server name is set by reverse proxy in front.
Security issue with some overridable values : https://expressionengine.com/blog/http-host-and-server-name-security-issues
Using defined constant is sufficient

I've just come up with the same fix for the same problem. LGTM!

I don't think this is going to work when YOURLS is installed in a subdirectory

It should work just fine if YOURLS_SITE is defined with the subdirectory part included, which it should be if properly configured.

Superseded by #2438.


outref<'a> should not allow read access

As https://github.com/fsharp/fslang-design/blob/master/FSharp-4.5/FS-1053-span.md reads:

Semantically outref means "the holder of the byref pointer may only use it to write". It doesn't imply that other threads or aliases don't have read access to that pointer.

outref should not allow read access, but the following code compiles:
let changeDate(date: outref<DateTime>) =
    let d: DateTime = date
    date <- DateTime.Now

Nope. "The out keyword causes arguments to be passed by reference. It is like the ref keyword, except that ref requires that the variable be initialized before it is passed."
https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/out-parameter-modifier

outref<'T> is only considered for documentation purposes only. In the future we may change this by adding some flow analysis.

This sounds like a spec bug, then. I think that the spec definitely implies that date cannot be read in the changeDate function.

As a note if we restrict it as-is today to disallow reads, that would be a breaking change to document

Closing as by design; the spec and docs explain this now.


Several errors in Chatterbot

Hello,
I am having horrendous problems getting chatterbot to work:

It will not install in command prompt despite installing pyYaml etc
After installing via ubuntu it still causes errors:
chatbot = ChatBot("botname") produces an error 'name not defined' when it is clearly defined (note I have also tried chat_bot)
from chatterbot.trainers import ListTrainer produces error 'corpus' not found.
Even after installing chatterbot-corpus as well as providing the filepath to the master corpus it still produces the same error.

Please help as I am wanting to use Chatterbot for a university project.

These are the errors in more detail running jupyter in Ubuntu:
Collecting PyYAML
Installing collected packages: PyYAML
Successfully installed PyYAML-5.1.2
pip install chatterbot-corpus
equirement already satisfied: chatterbot-corpus in ./anaconda3/lib/python3.7/site-packages (1.2.0)
Collecting PyYAML<4.0,>=3.12 (from chatterbot-corpus)
chatterbot 1.0.5 has requirement pyyaml<5.2,>=5.1, but you'll have pyyaml 3.13 which is incompatible. (AS ABOVE I NOW HAVE 5.1.2)
Installing collected packages: PyYAML
Found existing installation: PyYAML 5.1
Cannot uninstall 'PyYAML'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
Chatterbot:
from chatterbot import ChatBot
chatbot.set_trainer(ListTrainer)
chatbot.train(Chatbot)
chatbot.set_trainer(ListTrainer)
chatbot.train(Chatbot)
#creating a new chatbot
chatbot = ChatBot("bot")
trainer = ChatterBotCorpusTrainer (chatbot)
trainer = ListTrainer (chatbot)
trainer.train (
"chatterbot.corpus.english"
)
trainer.train (
"chatterbot.corpus.french"
)
trainer.train()
NameError                                 Traceback (most recent call last)
 in
----> 1 chatbot.set_trainer(ListTrainer)
2 chatbot.train(Chatbot)
3
4 #creating a new chatbot
5
NameError: name 'chatbot' is not defined

Your code looks valid to me. Writing:
chatbot = ChatBot("bot")

should not result in an error such as
NameError: name 'chatbot' is not defined

in the same file. I'm not certain what would cause this.


chore: Bump google.golang.org/grpc

What this PR does / why we need it:
Bump google.golang.org/grpc to the latest version.
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #
Special notes for your reviewer:
Release note:

None

/retest-required


Can`t find the 'dist' folder.

It seems that the 'dist' folder of chart.js or chart.min.js is just missed. And the htmls of simple folder show 404 about 'dist' src.  Should I build the project manul?

This is covered in previous issues: #3961, #3524, among others, and in the documentation - basically, there won't be a 'dist` folder. You're expected to build the project, assuming you're cloning the source.

Closing as answered

i also preferred having the dist folder in. using composer to "update" libraries etc in the project. this breaks chartjs in my work flow now :(

@WilliamStam dist files are in the repository but only for tags so composer should be fine if you require a specific version and not the master branch.

yeah i saw. but no way to "get latest" when i do a composer update :P its not the end of the world. just inconvenient at present.
my workflow:

composer update
gulp build (concats the js files from vendor folders and builds a js file for the project - as far as i can see i cant get gulp to first go into the chartjs folder execute gulp build there then back to the root. also if running gulp inside vendors it would dirty the folder up a bit :(  )
run tests
push changes to staging server

previously it was easy to just include the files from the dist folder in the concat. still trying to find  way to get it back into the work flow. at the moment ive manually downloaded the zip release and added it to the ui folder. but this is a manual process which obviously will be skipped over regularly.
sorry for all this. i know why you made the change to the repo. just trying to find a way to update my workflow i guess.

master is not the latest version but the development version which is not intended to be integrated in projects because not stable. Having dist files in master is definitely not ideal because they are never up to date and confusing since you never know what's code inside (because not updated for every commit). It also pollutes git history and PRs (contributors used to push their built files).
Previously, when dist files were in master, they were updated for every release: so what the difference with using the latest version instead? why not setup composer to require ~2.6 for example?

seems i owe you an apology. didnt know you could reference chartjs like that in composer. oops sorry! grrrrrr feel like an idiot now. got some projects im pulling using composer git. which is master / dev and no other real options.

No worries :) I don't use composer but I guess that works according the documentation.


[IOTDB-1574] [ISSUE-3786] Data file is deleted while file handle is not released

#3786
This problem is caused by the reference number of query reader is not decreased corrcetly, which leads to the reference number is not 0 and the object can not be closed.

jira https://issues.apache.org/jira/browse/IOTDB-1574

Coverage decreased (-0.01%) to 67.28% when pulling e7598300f535e1116fb8eed95ff078abc35f1bfc on filehandle into 89bcef8a1bde3599c7d0f4f6ebe1744dc6359917 on master.


Get rid of emotion dependency

Internally we have a stylesheet manager which can do its job instead. Replace uses with that.

Duplicate


SAML IDP Invalid Signature

Invalid response from Idp: ["Invalid Signature on SAML Response"]
What does this mean and how do I fix it?

This probably means a certificate mismatch.
The service provider probably is trying to validate a SAML Response
signature with a publix x509 certificate A but the identity provider signed
it with certificate B's private key.
So, make sure the IDP and SP are working from the same certificate.
On Wed, Oct 21, 2020 at 12:37 PM Daniel Gleason<EMAIL_ADDRESS>wrote:

Invalid response from Idp: ["Invalid Signature on SAML Response"]
What does this mean and how do I fix it?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/onelogin/ruby-saml/issues/551, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACXOM7VI5WLW6D6WH4PTISLSL4E5LANCNFSM4S2A2TAA
.

--
Darryl Hopkins
Director, Business Analysis
2300 N Street NW, Suite 500
Washington, DC 20037
*C *571.296.3359
<EMAIL_ADDRESS>everfi.com http://www.everfi.com/

You can debug in your code, analyze the SAMLResponse XML, and check if the x509CertData element matches the value you registered at settings.idp_cert


test on Linux

Download and run:
npm start

If it looks good try out bundling it with:
npm run build:lin

This works as expected 😄
However I'm getting some WebGL errors in (Firefox 50.0.2/Ubuntu 14.04 LTS) and so WebGL examples aren't loading, moving to another issue.


Unable to read List

I keep getting the following error from the autogenerated adapter.
I/flutter (30530): type 'List<dynamic>' is not a subtype of type 'List<String>'
My schema is below. The put works fine. It errors when I call get.
import 'package:hive/hive.dart';

part 'chapter.g.dart';

@HiveType()
class Chapter {
  Chapter(
      {this.number,
      this.numVerses,
      this.numSections,
      this.sectionTitles,
      this.sectionStartVerses,
      this.verses});

  @HiveField(0)
  int number;

  @HiveField(1)
  int numVerses;

  @HiveField(2)
  int numSections;

  @HiveField(3)
  List<String> sectionTitles;

  @HiveField(4)
  List<int> sectionStartVerses;

  @HiveField(5)
  List<String> verses;
}

I/flutter (30530): type 'List' is not a subtype of type 'List'

From the docs

Lists returned by get() are always of type List (Maps of type Map<dynamic, dynamic>). Use list.cast() to cast them to a specific type.

Do you have an example? I tried casting in the read function itself and it still fails.

I got it to work by changing the read code in the generator to the following:
        case 3:
          obj.sectionTitles =
              reader.read()?.cast<String>();

Would it be worth changing the generator to have this as the default case for processing list in Adapters?

Which version of hive_generator are you using? The newest version should cast automatically...

hive_generator: ^0.4.0+1
It was trying to cast like this

          obj.verses = reader.read()?.map((dynamic e) => e as String)?.toList();

but would still throw the same error.

Thanks, I'll investigate that.

Could you please share the output of hive_generator?

// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'chapter.dart';

// **************************************************************************
// TypeAdapterGenerator
// **************************************************************************

class ChapterAdapter extends TypeAdapter<Chapter> {
  @override
  Chapter read(BinaryReader reader) {
    var obj = Chapter();
    var numOfFields = reader.readByte();
    for (var i = 0; i < numOfFields; i++) {
      switch (reader.readByte()) {
        case 0:
          obj.number = reader.read() as int;
          break;
        case 1:
          obj.numVerses = reader.read() as int;
          break;
        case 2:
          obj.numSections = reader.read() as int;
          break;
        case 3:
          obj.sectionTitles =
              reader.read()?.map((dynamic e) => e as String)?.toList();
          break;
        case 4:
          obj.sectionStartVerses =
              reader.read()?.map((dynamic e) => e as int)?.toList();
          break;
        case 5:
          obj.verses = reader.read()?.map((dynamic e) => e as String)?.toList();
          break;
      }
    }
    return obj;
  }

  @override
  void write(BinaryWriter writer, Chapter obj) {
    writer.writeByte(6);
    writer.writeByte(0);
    writer.write(obj.number);
    writer.writeByte(1);
    writer.write(obj.numVerses);
    writer.writeByte(2);
    writer.write(obj.numSections);
    writer.writeByte(3);
    writer.write(obj.sectionTitles);
    writer.writeByte(4);
    writer.write(obj.sectionStartVerses);
    writer.writeByte(5);
    writer.write(obj.verses);
  }
}

Hive version:
Hive
hive: ^0.5.0

This is fixed with hive_generator: 0.4.0+2


fix 8Bitdo SF30 Pro in Linux

changes:

lefttrigger:a5 → leftrigger:b8
righttrigger:a4 → rightrigger:b9

This will kill analogue, can you confirm you're on the latest firmware, and see if you can get axis values? You can get the axis values by pressing lightly when using the configuration tool, or test with jstest-gtk.gitlab.io or equivalent and manually edit the map.

@8BitDo

Okay, we are not yet familiar with GNU/Linux, and it will take a while to check this issue. thanks.

This will kill analogue, can you confirm you're on the latest firmware, and see if you can get axis values? You can get the axis values by pressing lightly when using the configuration tool, or test with jstest-gtk.gitlab.io or equivalent and manually edit the map.

sorry for the delay in responding, I'm on firmware 1.33 (latest is 1.38) since I've been unable to update the controller from linux.
Before these changes I had wrong reports for those axis values. I did use gamepadtool to get the right values.

@joseluis you should be able to update the firmware from Linux fine using fwupd: https://github.com/fwupd/8bitdo-firmware

I did use gamepadtool to get the right values.

Those are button mappings. The triggers are analogue. Pull lightly while mapping, or use jstest-gtk.gitlab.io or equivalent and manually edit the map.

@joseluis @8BitDo since it's been a month without reply here I'm going to close this PR, if you're able to confirm an improved mapping with up to date firmware, or can confirm that on up to date firmware with this GUID, the analogue triggers return only digital results making this mapping correct, feel free to reply here or submit a new issue or PR.


Support setting approval permissions to multiple operators

Current implementation allows this for a single operator but it should allow multiple assignments.

@RitaMAllenCA @darthsiroftardis @EdHastingsCasperLabs Error excepted I believe this issue should actually not be out of next release for future retro compatibility so planning to work on it next sprint.


Horror Check Reminder

In the official app there is a dialog box that pops up after the monsters have activated to reminds players to take horror checks. One of my play tests, we kept forgetting horror checks.
I want to replicate this but I cant seem to.
Here's my problem, if I create an event and trigger on the "Mythos" trigger, it runs before the creature activates. So by the time you've done your checks and are allowed to click to make a horror check, chances are you've forgotten again.
If you set it to EndRound, then it pops up the box then goes right to the Investigator phase, giving the player no option to make the horror check.
How can I make this dialog pop up after the monster activation, but before the investigators round? Is it currently possible.
I am also trying to add in an "nvestigator Phase" and "Mythos Phase" splash screens (UI elements) like the official app (but without the animation). Investigator Phase works fine with "StartRound" although it sometimes pops up after or before other events that also use the StartRound trigger (but its not big deal).
The Mythos I can't seem to get working. Same problem as the Horror check event, it pops up before the Monster Activates (but you also can't get rid of it, due to it being the horror phase and no clicking is allowed), if I use EndRound it comes up at the same time as the Investigator Phase UI element.
Does anyone have any tricks to get this to work, or is this going to be an Enhancement request?

I recommend doing this in Valkyrie rather than the scenario for consistency.  I just found them annoying and not helpful, so I didn't include them, but I can add them as an option.

Funny thing is, I never even noticed it was missing. I guess over the play throughs I've just gotten use to it as part of the flow. Maybe it could even be an option from an end user standpoint. That way it's not hardlocked for seasoned MoM players. But it could default to 'on' so that new users will remember until the option is turned off.

I personally didn't notice them either. But when a friend (who had not played in a while) was "driving" as we  play test my scenario, he forgot to click the monster to perform a horror check.
Also being his first time using Valkyrie he said that he felt like the new turn started quite "abruptly".
Adding an "Investigator Phase" splash on "start turn" is really clunky and can be confusing when other events trigger from start turn (since it randomly assigns order).

For this request, it would make sense to display a warning dialog only if the player press the "next phase" button, and no horror check have been done yet for this round.
And we could also add an option in the settings to disable it.


latest version of o2g.hiposfer.com returns invalid zip file

following the links in the README (https://github.com/hiposfer/osmtogtfs#web-api-with-overpass-query) returns an invalid zip file (cannot be opened).
The zip file is also extremely small (44 KB for freiburg) which might indicate that this is a bug when building the file

I noticed this today and have already a PR for it. However the zip file is valid but your client doesn't support it. You can open it with 7zip. I was going to switch the compression to DEFLATE which is almost universally supported, however need a bit more space, 160kb in this case.
What do you think?

I think going with the safe option is better in this case. Sure we were a bit of storage here but the size of the file is so small that it barely matters; compared to the previous 12mb vs 2mb. 160kb is great :)


Contact Form

I think the addition of a Contact Form is a great addition
may be at the end of about_me section
maybe keeping the users on the same page is great here is an example

Thanks, its great work

+1 thi


:egg::egg: Using port 1919 of host, because 80 was busy

I haven't tried @dotdc's solution, but I think using :80 is a bit extreme. I switched to a "random" other port, and got this result :
▶ make curl_measure
curl -v -X POST -H "Content-Type: application/json" http://localhost:1919/measure  -d '{"temperature": 31.2, "humidity": 41.6}'
Note: Unnecessary use of -X or --request, POST is already inferred.
*   Trying <IP_ADDRESS>:1919...
* TCP_NODELAY set
* Connected to localhost (<IP_ADDRESS>) port 1919 (#0)
> POST /measure HTTP/1.1
> Host: localhost:1919
> User-Agent: curl/7.68.0
> Accept: */*
> Content-Type: application/json
> Content-Length: 39
>
* upload completely sent off: 39 out of 39 bytes
* Mark bundle as not supporting multiuse
< HTTP/1.1 201 Created
< Date: Sat, 23 Jul 2022 17:32:41 GMT
< Content-Length: 0
< Connection: keep-alive
<
* Connection #0 to host localhost left intact

I was getting the following error, even after a reboot of my computer:
▶ make deploy
./deploy/deploy.sh

       ___  _              _ _
      |_ _|<_>._ _  _ _   | | | ___ ._ _
       | | | || ' || | |  | - |/ ._>| ' |
🐓     |_| |_||_|_|\_. |  |_|_|\___.|_|_|v     🐓
                   <___|
---------------- 🏠 Create cluster tinyhen ----------------
Creating cluster "tinyhen" ...
 ✓ Ensuring node image (kindest/node:v1.24.0) 🖼
 ✗ Preparing nodes 📦
ERROR: failed to create cluster: command "docker run --name tinyhen-control-plane --hostname tinyhen-control-plane --label io.x-k8s.kind.role=control-plane --privileged --security-opt seccomp=unconfined --security-opt apparmor=unconfined --tmpfs /tmp --tmpfs /run --volume /var --volume /lib/modules:/lib/modules:ro -e KIND_EXPERIMENTAL_CONTAINERD_SNAPSHOTTER --detach --tty --label io.x-k8s.kind.cluster=tinyhen --net kind --restart=on-failure:1 --init=false --publish=<IP_ADDRESS>:80:80/TCP --publish=<IP_ADDRESS>:443:443/TCP --publish=<IP_ADDRESS>:33581:6443/TCP -e KUBECONFIG=/etc/kubernetes/admin.conf kindest/node:v1.24.0@sha256:406fd86d48eaf4c04c7280cd1d2ca1d61e7d0d61ddef0125cb097bc7b82ed6a1" failed with error: exit status 125
Command Output: b1a3b32d6fdd314ce13c66c8f2eb7d16f42f322c3ee85c9a3d596d8289de9d50
docker: Error response from daemon: driver failed programming external connectivity on endpoint tinyhen-control-plane (482752aa895533ef405c699afbc9fa434526a91a83857cb8e0d0df24987c4752): Error starting userland proxy: listen tcp4 <IP_ADDRESS>:80: bind: address already in use.


Get carvel style left hand nav for docs.

Tighter padding and blue submenus is much easier to read than what we have right now.

Looks like this was finished in #474


Add cloud7 to pr gating

cloud-automation-pr-trigger: pr gating for devel and stable release
Due to changes meant for the development release sometimes builds for the stable releases break.
To prevent such changes from being merged we will also build mkcloud for the stable release.

stable builds are now required for PRs to the automation repo