route53

I'm loving rancher more than life - intuitive as heck.  However route 53 dns is constantly showing degraded - restarting - and overall just not working - I'm a bit confused when it comes to this - I already use route53 - also dns and myself do not get along and quite frankly it sucks - so this was one thing that led me to choose rancher as a container management registry as dns entries would be created and private ips would be fully taken advantage of - however I cannot get the route53 dns stack running although it claims that it is running in a "degraded state" - I have lost all network monitoring tools including cpu monitoring - yet the external hosts remain functional - I need to get into a container to make a change but I cannot from the ui - which I loved - also is there any way to setup permanent ssh keys?  I have to constantly reset root passwords and then upload my ssh keys to authenticate.  I setup all public facing route53 dns manually - i was really hoping that there was a way to get entries to be created in the format mentioned during the creation of a dns stack.

Just to add - as soon as I reset my root password - the entire host get's shut down - so when i cannot access a shell via the ui - and need to get into my host - which I still don't get how it how the ssh keys and pw have been changed again - I already went in and set them once and went through this - then they were changed on me - it's important that I always have access and any user has access - if there is some way to setup the keys for each host that would be amazing - rather than rancher set them up - we set them up and rancher uses them.

I don't know what's going on, but Rancher does not get involved in, change, or know the root password, ssh key, nor ever shutdown/restart a host.  If your hosts are running RancherOS then we are somewha involved, but not in a way that makes sense with what you described.  What hosts are you running the Rancher agent on and how were they created?
If you are using the "Add Host" screen that calls docker-machine to deploy hosts on a provider and generates a SSH key, which is available from the "Download Machine Config" action on the host once it is setup.
The Route53 integration issues seem like a symptom of other issues/the least of your problems right now.  It runs as a container and needs to have a working environment in the first place.

i gotcha - regarding ssh keys - i was just hoping that i could use my keys across the board - route53 - I have working environments actually :-)  - so I'm not sure as to why entries cannot be created - I run everything (almost) as a service - in a stack - made of of the linked containers that are required for applications.  Perhaps I am doing something wrong?

Maybe I'm not being clear enough - The route53 service is integral in the development of rancher - as a beta tester I'm simply pointing out a few issues I notice as I test the platform in productin/development.   I have read the documentation inside and out looking for possible errors on my part regarding several things.

The addition and/or creation of route53 dns stacks as the initial service or service addition to existing stacks with port mappings, service mappings etc., does not seem to be able to create entries within the hosted zone for the zone specified nor use anything other than private ips which is fine in many cases - however upon the creation of eg. a nodejs app that needs to be publicly available upon creation of the rancher-compose / docker-compose files or if created within the ui - is unable to create dns entries in the format specified within the api.   - this is both for instances created or running on ec2 or another provider - I use route53 dns for everything so any domain I add to the application/stack/service.

2nd I have noticed that upon the entry of a wildcard ssl cert - using the ui - will completely block the creation of new hosts, load-balancers - and back to our favorite subject - external dns of any sort (route53) - I have installed many ssl certs in my day so prior to placing them in the UI, naturally I concencate, then place my private key in.  I have tried using the domain cert, key file, and chain separately as well just for troubleshooting.  Now if I create an nginx container - exec into the container - put the cert in the config - and use this as an lb or proxy then boom we are good.   However it appears that rancher is not able to recognize a cert installed in this fashion - I have looked through the documents regarding ssl termination however I found it a bit unclear - I find myself regularly destroying rancher servers - then manually creating my apps from the cli using docker-compose, and then adding the server and running the discover command on each host in order to monitor apps - which I believe is what you are trying to eliminate.

I only mention things to let you know specific issues that I notice so you guys can be aware of them and version/update accordingly.  It's not to embarrass, just being helpful because I believe in what you guys are doing - there are 100 addons to docker that can do quite a bit of amazing container manipulation/scheduling/volume creation etc. - but I have found that rancher has taken the best of all of them, added even more, and overall is the number one ui for containers and complex containerized infrastructure management.

@Jdesk

However route 53 dns is constantly showing degraded - restarting

Could you provider route53 container logs? You can get them either from Rancher UI or from docker side by running "docker logs [container_uuid]" command.

sure can - actually at this point - rancher is creating entries however at the same time deleting entries in the zone - which has completely confused me as there are so many entries (or were) - and I can't possibly remember what was where and what app was delegated to what ip.  Also purging containers is failing and rancher repeatedly restarts them - one being redis - a zone entry has been created for redis however my concern is the repeated restart of the redis db - in relation to queries made to route 53 - not sure if this is how rancher is operating but as we all know amazon charges for what you use and although route53 is not very expensive - when queries are being made repeatedly (I have to setup a cloudfront log to check) -  - but I did look at the zone and there was an entry created for the redis container and kubernetes api proxy as well as controller.  the redis container keeps restarting (didn't have an issue in the previous version of rancher - however the latest release seems to have an issue with this container - it's my image (cloned from the official images and pused to our docker hub and quay account.   - however it keeps restarting - I'm going to get the logs right over.  give me a few minutes.

i'm grabbing all logs for rancher/server and route53 - grabbing from cli - it's my home and for some reason it just makes more sense :-).  Rancher server failed just now - It could be because I added the rancher agent to the rancher server as my curiosity got the best of me and I actually have containers on there that were there prior to the installation of rancher and I also started rancher with an nginx container - however all was fine until I added the agent the the server - also added agent to several other hosts where containers are running - is there a way for me to provide the keys to the rancher server for custom host registrations?  To give it full control and also allow me to grab machine config for easy restoration.   I'm gonna gist the logs - they are extremely long.  Or pastebin.  I'll get the link over shortly.

and fyi - i'm noticing steady improvement - she recovered herself ;-).  Redis is still an issue and route53 - I am going to remove the containers from the backend for redis but I'll grab logs for you first.  Also I'm really liking the additions eg. etcd - real discovery - I have made multiple attempts to install on coreos - not sure if compatibility is there yet - but an idea for the future and perhaps I can help out if you want - getting compatibility with coreos stabilized - I just find the coreos and I know it's kind of a competitor for you guys - but I think a strategic partnership would be beneficial to both of you being as both have been adopted by all the big players.

https://gist.github.com/Jdesk/e8657dc9cd7a8480e894
https://gist.github.com/Jdesk/e8657dc9cd7a8480e894
https://gist.github.com/Jdesk/2cad90c0c4b2dc76b19c

Based on your logs, it looks like you were having network connectivity issues with your setup. The provider is Amazon Route 53 service, so for some reason you weren't able to connect with it.
time="2015-12-01T05:20:17Z" level=error msg="Healtcheck failed: unable to reach Cattle"
time="2015-12-01T05:20:21Z" level=error msg="Healtcheck failed: unable to reach a provider"

I'm getting rate limited hard - and also system failed as a result - it was after the ratelimit was exceeded that the entire cluster shut down - and atm i'm currently screwed as I had to destroy the main server - what do you recommend in terms of size for a 10+ host network for the rancher server - the machines still exist - but the keys are not working - I can reset root pw - but that's going to take out the machine as well (at least it has in the past - but i need to reconnect them to the server) - i think my main server needs to be on aws as I can setup an auto scaling policy without shutting down the machine

@Jdesk I'm not sure where you're at in your setup, but I believe your initial issue with route 53 was related to some networking connectivity.
If you have other issues, please open a new one.


Dialog Box Out of Control

When I use tkinter or pygame, the new dialog box created is always out of control after I press the close button on the top-right.
It seems that the only way to get it closed is to restart the ipython console, which is hardly convenient.
I don't know wheather it is a common problem.
If yes, could you please fix it in the next version?

Did you set your Graphics backend and restarted Spyder before running your code?

Did you set your Graphics backend to Tk and restarted Spyder before running your code?

I did, several times, but still fail.

You need to restart your kernel or Spyder after doing that. Did you do that?

Finally, the problem was solved by upgrading ipython. Thanks.

Great! Thanks for letting us know about it.


Renaming the register_component twig function

Currently the register_component twig function is a little bit misleading and get confused with the webJS web.registerComponent function when try to explain the concepts of web twig / web js.
It would be great to find a better name for it, the task of the function currently the following:

if no id is given a id is unique id is generated
in all cases the component is remembered to later get outputted over the get_components function
the id is returned by the twig function so it can be set on the dom element

At current state I'm thinking about remember_component as this best described what in all cases happens. I was also thinking about create_component but it does just create an id (and not in all cases), actually create the component instance and starting it is handled by the JS. Was also thinking about just using component when thinking about the asset twig function. When changing it for backward compatibility the old function name will still be available but marked as deprecated.
Would be great to get here some feedback what you think about remember_component or maybe somebody have another idea.

From your suggestions I like remember_component the most. Another idea would be js_component - this makes clear that it has something to do with a JS component.

@thomasduenser Thank you for your feedback. Yeah js_component would be a better fit then component. I think then I would maybe rename all function to add the js prefix maybe also the Extension to JsComponentExtension, the problem I see with component or js_component is that it does not really tell something what this function is for or what it does.

mh... like the ideas, maybe a use_component is the thing we are looking for...

@Quehnie use_component sounds also not so bad 🤔

remember_component sounds a bit confusing to me, not sure what I would expect to happen when calling such a function. What do you think about prepare_component or initialize_component?

I also think that remember_component sounds a bit confusing. My first thought was find_or_create_component, but I think this would be to long. So I would stick with prepare_component or initialize_component.

@nnatter initialize_component would conflict also with the webjs initialize method so I would avoid that.
@mfehr94 thank you for your feeback find_or_create I think isn't anything matching because it doesn't search for something or create something.
About prepare_component I need to think about a little bit because for me prepare does tell also zero about what really happens. Why you think remember is confusing? For me it currently does represent it the best what really happens in that function remember it that it can be letter get it with the get_components function, maybe we should then rename it to get_remember_components but not sure about that.

@alexander-schranz i would go with initialize_component at the end this function calls the JS method - so no conflict for me

The current problem is that its really confusing having the same name for something in twig and js as the js and twig are doing something complete different and renaming it from register_component to initialize_component would end into the same problem again when try to explain the concepts.

I think we should go with prepare_component, as it prepares (and collects) the component instances for the usage in JS. remember_component is also fine for me.

At current state I think prepare_component would be the best match. In this case I think it would also make sense to rename the call_service function to prepare_service_call:
So the following would change:
register_component -> prepare_component
call_service -> prepare_service_call
What do you think about this change?

I think we should go with prepare_component, as it prepares (and collects) the component instances for the usage in JS. remember_component is also fine for me.

@thomasduenser reading your comment collect_component / collect_service would have been an alternative 🤔

@alexander-schranz That sounds very good! I would use collect_component and collect_service.


Download link not working

The editor download link here is http://www.endrov.net/temp/, which gives me:

This site can’t be reachedhttp://www.endrov.net/temp/ is unreachable.
ERR_ADDRESS_UNREACHABLE

Thank you and sorry, there is an access issue currently with the server location in the Swedish university network. We are on it!

We are currently identifying a replacement server, as the current one can no longer guarantee public access. This pursued as a matter of priority.


Converted ItSessionMigration.java to use JUnit5 jenkins-ignore

Use case:

Install Operator
Build a web app that returns WebLogic primary and secondary server name and HTTP session info (session state, session ID and session create time)
Create domain image using model in image with model file to deploy the web app
Create a one-cluster domain
In a factory method referred by the parameterized test method, send a HTTP request to set http session state (count number) and return the primary server, the secondary server and session create time to the parameterized test method
stop the primary server by changing ServerStartPolicy to NEVER and patching domain
send a HTTP request again to get http session state (count number), primary server and session create time
verify that a new primary server is picked, and HTTP session state is migrated

Local run passed:
[INFO] Results:
[INFO]
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO]
[INFO] --- maven-failsafe-plugin:3.0.0-M4:verify (verify) @ new-integration-tests ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  07:08 min
[INFO] Finished at: 2020-05-21T23:45:58-07:00
[INFO] ------------------------------------------------------------------------

Jenkins jobs passed:
https://build.weblogick8s.org:8443/job/weblogic-kubernetes-operator-model-in-image-tests-10/159/consoleFull

Jenkins jobs passed:
https://build.weblogick8s.org:8443/job/weblogic-kubernetes-operator-kind-new/177/consoleFull

Jenkins jobs passed:
https://build.weblogick8s.org:8443/job/weblogic-kubernetes-operator-model-in-image-tests-10/204/console

Jenkins job in Kind now passed again:
https://build.weblogick8s.org:8443/job/weblogic-kubernetes-operator-kind-new/237/
Previous Jenkins jobs passed:
https://build.weblogick8s.org:8443/job/weblogic-kubernetes-operator-model-in-image-tests-10/204/console


Add procps to Dockerfile

This resolves the following warning message when importing qsharp via Python:
/bin/bash: free: command not found
Dependency was introduced in https://github.com/microsoft/iqsharp/pull/528

It looks like the build is blocked on alpha packages having aged out of the feed; I'll go on and update the packages on a separate PR to restore the build, then.

/azp run


Fixes 142: support cert via env variable

as well as via filename

TODO:  update deployment.yaml

https://issues.redhat.com/browse/HMSCONTENT-142

did deployment changes as part of a 2nd pr:  https://github.com/content-services/content-sources-backend/pull/71

I'm not sure how to test this, could you add a couple of testing steps?

oh yes, that would be helpful!
First import the repos:
make repos-import

I'll send you a keypair to use.  Today you can set cert_path in your config.yaml to point to the cert:
certs:
  cert_path: "/home/jlsherri/cdncert/cert.pemz"

so when you run 'go run cmd/external-repos/main.go introspect-all`  it will use that cert to fetch red hat repo metadata.
With this pr, that should still work, but if you specify the cert contents via an ENV variable, it will use that instead:
export RH_CDN_CERT_PAIR=`cat /home/jlsherri/cdncert/cert.pem`
go run cmd/external-repos/main.go introspect-all

and will ignore whatever cert_path is set to.  If you don't set the env variable, it should still use cert_path

Launched from inside the pod by exporting the env variable by hand before executing the command:
sh-4.4$ time ./external-repos introspect-all
{"level":"error","error":"Config File \"config\" Not Found in \"[/configs]\"","time":"2022-08-05T20:04:38Z"}
{"level":"debug","time":"2022-08-05T20:04:38Z","message":"Introspecting http://mirror.centos.org/centos/8-stream/AppStream/x86_64/os/"}
{"level":"debug","time":"2022-08-05T20:09:06Z","message":"Introspecting http://mirror.centos.org/centos/8-stream/BaseOS/x86_64/os/"}
{"level":"debug","time":"2022-08-05T20:10:36Z","message":"Introspecting http://mirror.centos.org/centos/8-stream/extras/x86_64/os/"}
{"level":"debug","time":"2022-08-05T20:10:36Z","message":"Introspecting http://mirror.stream.centos.org/9-stream/AppStream/x86_64/os/"}
{"level":"debug","time":"2022-08-05T20:12:13Z","message":"Introspecting http://mirror.stream.centos.org/9-stream/BaseOS/x86_64/os/"}
{"level":"debug","time":"2022-08-05T20:12:28Z","message":"Introspecting https://cdn.redhat.com/content/dist/layered/rhel8/x86_64/ansible/2/os"}
{"level":"debug","time":"2022-08-05T20:12:28Z","message":"Introspecting https://cdn.redhat.com/content/dist/rhel8/8.4/x86_64/appstream/os"}
{"level":"debug","time":"2022-08-05T20:16:33Z","message":"Introspecting https://cdn.redhat.com/content/dist/rhel8/8.4/x86_64/baseos/os"}
{"level":"debug","time":"2022-08-05T20:17:32Z","message":"Introspecting https://cdn.redhat.com/content/dist/rhel8/8.5/x86_64/appstream/os"}
{"level":"debug","time":"2022-08-05T20:22:49Z","message":"Introspecting https://cdn.redhat.com/content/dist/rhel8/8.5/x86_64/baseos/os"}
{"level":"debug","time":"2022-08-05T20:24:02Z","message":"Introspecting https://cdn.redhat.com/content/dist/rhel8/8.6/x86_64/appstream/os"}
{"level":"debug","time":"2022-08-05T20:30:53Z","message":"Introspecting https://cdn.redhat.com/content/dist/rhel8/8.6/x86_64/baseos/os"}
{"level":"debug","time":"2022-08-05T20:32:18Z","message":"Introspecting https://cdn.redhat.com/content/dist/rhel9/9.0/x86_64/appstream/os"}
{"level":"debug","time":"2022-08-05T20:32:36Z","message":"Introspecting https://cdn.redhat.com/content/dist/rhel9/9.0/x86_64/baseos/os"}
{"level":"debug","time":"2022-08-05T20:32:40Z","message":"Introspecting https://packages.cloud.google.com/yum/repos/cloud-sdk-el8-x86_64"}
{"level":"debug","time":"2022-08-05T20:32:48Z","message":"Introspecting https://packages.cloud.google.com/yum/repos/cloud-sdk-el9-x86_64"}
{"level":"debug","time":"2022-08-05T20:32:54Z","message":"Introspecting https://packages.cloud.google.com/yum/repos/google-compute-engine-el8-x86_64-stable"}
{"level":"debug","time":"2022-08-05T20:32:54Z","message":"Introspecting https://packages.cloud.google.com/yum/repos/google-compute-engine-el9-x86_64-stable"}
{"level":"debug","time":"2022-08-05T20:32:54Z","message":"Successfully Inserted 94614 packages"}

real	28m16.073s
user	7m47.465s
sys	0m33.434s

LGTM


Ping monitoring returns garbled data upon failure

📑 I have found these related issues/pull requests
No related issues found
🛡 Security Policy

[X] I agree to have read this project Security Policy

Description

👟 Reproduction steps
A ping monitoring has been configured, and when a fault alarm occurs in the ping monitoring, the returned information is garbled
👀 Expected behavior
Will result in the inability to analyze and determine the specific cause of the malfunction
😓 Actual Behavior
The actual returned code is garbled and cannot determine the specific fault phenomenon
🐻 Uptime-Kuma Version
1.23.12
💻 Operating System and Arch
WindowsServer2012 Installed the relevant environment as required
🌐 Browser
Version 124.0.6367.61 (official version) (64 bit)
🖥 Deployment Environment

Runtime: WindowsServer2012 Node.js v20.12.2 npm10.5.0
Database: sqllite
Filesystem used to store the database on: ntfs
number of monitors: 41

📝 Relevant log output
���� Ping IPaddress ���� 56 �ֽڵ�����: ����ʱ�� IPaddress �� Ping ͳ����Ϣ: ���ݰ�: �ѷ��� = 1���ѽ��� = 0����ʧ = 1 (100% ��ʧ)��

See https://github.com/louislam/uptime-kuma/issues/570
This issue is not easy to be fixed in our side unfortunately. You have to change your Windows' language to English in order to display it correctly.

WindowsServer2012

Please consider upgrading. That is a really old OS

Is it calling the ping tool of the Windows system or?

The arguments for child_process.spawn code executing the ping on windows is found here:
https://github.com/louislam/node-ping/blob/master/lib/builder/win.js

What do you mean by reference method?

I don't get what happened here. @niujinkai what do you mean?
So you set the default character set in the Windows built-in command prompt and this fixes the character encoding issue?

Did it do it for the whole system (including uptime-kuma) or just the command prompt in question?

Does uptime-kuma still return garabled ping responses changing said setting?


Handle non-zero error codes in Revision module update_all() method

Expected Behavior
When one or more nodes in the Revision data model tree fails to update properly, the user should be informed (via dialog).  Additionally, details regarding which node(s) failed to update should be written to the debug log.
Actual Behavior
RTK simple prints 'FIXME: Handle non-zero error codes in rtk.revision.Model.update_all()' to the terminal.  This print statement is simply a placeholder and useless to the end user.
Steps to Reproduce the Problem

Launch RTK.
Open a Program database.
Select the Revision tab in the Module Book.
Press the 'Save All' button in the Module Book.

The top node in all data model trees does not contain a data object, so the update() method will return a non-zero error code.
Proposed Solution (optional)

Create a requirement/specification for the update_all() method to handle non-zero error codes from the update() method.  This requirement will cover the update_all() method in all RTK Modules.
Create a test to verify the requirement is implemented properly.
Ignore the top node in the update_all() method.
Create a descriptive error message to, ultimately, pass to the data controller.  This error message will be written to the debug log for later inspection.  Since the update() method that is called for each node in the update_all() method returns an error code and message, the update_all() method will need unique error code and message variables.  The error code variable must retain a non-zero value after one update error.  The error message variable must be appended to for each node that raises a non-zero error code in the update() method.
Have the Revision Module View raise a Warning dialog informing the user one or more Revisions failed to update properly and to check the debug log for more details.

Operating Environment (not required for a [REQUIREMENTS] error)
Not required.  This is a [REQUREMENTS] error.

The AttributeError also needs handling in the update_all() method.  Refer to the HazOps module for reference on the AttributeError.

Issue fixed in commit 480b548548c4d4c1755241762ef417e6c6db54c9


NETOBSERV-1369: Disable http/2

Additional remediations for CVE-2023-39325 CVE-2023-44487: Disable HTTP/2 on:

Webhook server
Metrics server
FLP and Console plugin via env GODEBUG
Update kube-rbac-proxy to v0.14.4

Also bump all k8s / contorller-runtime dependencies Stop support for go1.19, add support for go1.21 (still uses 1.20 for builds)
Description

Dependencies

n/a
Checklist
If you are not familiar with our processes or don't know what to answer in the list below, let us know in a comment: the maintainers will take care of that.

[x] Is this PR backed with a JIRA ticket? If so, make sure it is written as a title prefix (in general, PRs affecting the NetObserv/Network Observability product should be backed with a JIRA ticket - especially if they bring user facing changes).
[ ] Does this PR require product documentation?

[ ] If so, make sure the JIRA epic is labelled with "documentation" and provides a description relevant for doc writers, such as use cases or scenarios. Any required step to activate or configure the feature should be documented there, such as new CRD knobs.

[ ] Does this PR require a product release notes entry?

[ ] If so, fill in "Release Note Text" in the JIRA.

[ ] Is there anything else the QE team should know before testing? E.g: configuration changes, environment setup, etc.

[ ] If so, make sure it is described in the JIRA ticket.

QE requirements (check 1 from the list):

[x] Standard QE validation, with pre-merge tests unless stated otherwise.
[ ] Regression tests only (e.g. refactoring with no user-facing change).
[ ] No QE (e.g. trivial change with high reviewer's confidence, or per agreement with the QE team).

/ok-to-test

/label qe-approved

/approve


Fixing (error.error === 603) always results false

if (error.error === 603) {...} is always resulting false even error.error is "603" and the codes insides is never executed.
It is because error.error is string "603".
It is need double quote to be  if (error.error === "603") {...}

Thanks :)


feat: support fallback probes when a probe attach fails

This should address the issue mentioned in https://github.com/pixie-io/pixie/issues/932. I ran into this while trying to run Stirling on WSL.

Thanks @ddelnano. I've addressed the linting issues

@JamesMBartlett sorry it took so long. Updated it now.

@CameronHall thanks again for getting this PR open. There was recent interest in this change from a community slack discussion, so I went ahead and added on top of your change to address the remaining feedback.
@JamesMBartlett std::unique_ptr runs into problems since this relies on a copy constructor being present. Instead of trying to working around that, I chose to use a std::shared_ptr. Let me know what you think.

@JamesMBartlett std::unique_ptr runs into problems since this relies on a copy constructor being present. Instead of trying to working around that, I chose to use a std::shared_ptr. Let me know what you think.

I think we should reserve using shared pointers for when the memory is actually shared between two different owners (in this case its just allocated at init), so IMO we should just change the usage in BCCWrapper. Looking at it, it seems that the probe specs are only ever used as a const reference so we should just change the class to store const references instead of copying the probe spec.

it seems that the probe specs are only ever used as a const reference so we should just change the class to store const references instead of copying the probe spec.

@JamesMBartlett are you talking about changing the kprobes_ member to that data type? I believe std::vector elements need to be assignable and after trying that I haven't been able to find an option that compiles. I feel like std::vector is probably not the right fit and a read only container would make it easier to accomplish what you described.
If that wasn't what you were thinking, let me know and I'm happy to try it.


Local transcription python

Adds support for transcribing audio offline on the CPU. Utilizes compiled python code on the backend to accomplish this.

This does not currently work when sent as a dmg to macs other than the one that built it. When you attempt to run it, it says "dmg is damaged". I believe that this is due to the app not being code signed, so I think it can be resolved with the command mentioned in this article. If it can indeed be resolved, then I will merge this and we can deal with code signing stuff later. (you might need an apple dev account to do it anyways)

Mac issues appear to be related to code signing. I can merge this for now, and figure the rest out later.


openimageio: 1.8.15 -> 1.8.16

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/openimageio/versions.
meta.description for openimageio is: '"A library and tools for reading and writing images"'.
Compare changes on GitHub

Checks done (click to expand)

built on NixOS
Warning: no invocation of /nix/store/2abi46qy245wa8l6chmgr37chp9asd99-openimageio-1.8.16-bin/bin/iconvert had a zero exit code or showed the expected version
Warning: no invocation of /nix/store/2abi46qy245wa8l6chmgr37chp9asd99-openimageio-1.8.16-bin/bin/idiff had a zero exit code or showed the expected version
Warning: no invocation of /nix/store/2abi46qy245wa8l6chmgr37chp9asd99-openimageio-1.8.16-bin/bin/igrep had a zero exit code or showed the expected version
/nix/store/2abi46qy245wa8l6chmgr37chp9asd99-openimageio-1.8.16-bin/bin/iinfo passed the binary check.
/nix/store/2abi46qy245wa8l6chmgr37chp9asd99-openimageio-1.8.16-bin/bin/maketx passed the binary check.
/nix/store/2abi46qy245wa8l6chmgr37chp9asd99-openimageio-1.8.16-bin/bin/oiiotool passed the binary check.
3 of 6 passed binary check by having a zero exit code.
0 of 6 passed binary check by having the new version present in output.
found 1.8.16 with grep in /nix/store/2abi46qy245wa8l6chmgr37chp9asd99-openimageio-1.8.16-bin
directory tree listing: https://gist.github.com/7b74519984c0d7e145eb2a86f456fb3e
du listing: https://gist.github.com/c1b031d510893f621fbd007887b1c125

Outpath report (click to expand)

Outpath difference report
23 total rebuild paths
8 package rebuilds
8 x86_64-linux rebuilds
7 i686-linux rebuilds
1 x86_64-darwin rebuilds
7 aarch64-linux rebuilds
First ten rebuilds by attrpath
appleseed
blender
embree2
luxcorerender
natron
openimageio
osl
python27Packages.appleseed

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/2abi46qy245wa8l6chmgr37chp9asd99-openimageio-1.8.16-bin \
  --option binary-caches 'https://cache.nixos.org/ https://r-ryantm.cachix.org/' \
  --option trusted-public-keys '
  r-ryantm.cachix.org-1:gkUbLkouDAyvBdpBX0JOdIiD2/DP1ldF3Z3Y6Gqcc4c=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(r-ryantm's Cachix cache is only trusted for this store-path realization.)
Or, build yourself:
nix-build -A openimageio https://github.com/r-ryantm/nixpkgs/archive/6be46a2b9f8343d4349e8591c35a97e6006dcba8.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/2abi46qy245wa8l6chmgr37chp9asd99-openimageio-1.8.16-bin
ls -la /nix/store/2abi46qy245wa8l6chmgr37chp9asd99-openimageio-1.8.16-bin/bin

cc @cillianderoiste for testing.

Failure on x86_64-darwin (full log)
Attempted: openimageio
Partial log (click to expand)
  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:3 (project)

-- Configuring incomplete, errors occurred!
See also "/tmp/nix-build-openimageio-1.8.16.drv-0/source/build/CMakeFiles/CMakeOutput.log".
See also "/tmp/nix-build-openimageio-1.8.16.drv-0/source/build/CMakeFiles/CMakeError.log".
builder for '/nix/store/yy41ynzdbp90vmiwcwjapivw4p9fi4z4-openimageio-1.8.16.drv' failed with exit code 1
error: build of '/nix/store/yy41ynzdbp90vmiwcwjapivw4p9fi4z4-openimageio-1.8.16.drv' failed

Success on aarch64-linux (full log)
Attempted: openimageio
Partial log (click to expand)
checking for references to /build in /nix/store/3nwr84lv4c4jwkjjn0w10j85pm9pb8xm-openimageio-1.8.16...
shrinking RPATHs of ELF executables and libraries in /nix/store/dnqazy1azm3j0dzphbzhc7c0wapp4m94-openimageio-1.8.16-dev
strip is /nix/store/p9akxn2sfy4wkhqdqa3li97pc6jaz3r1-binutils-2.30/bin/strip
patching script interpreter paths in /nix/store/dnqazy1azm3j0dzphbzhc7c0wapp4m94-openimageio-1.8.16-dev
checking for references to /build in /nix/store/dnqazy1azm3j0dzphbzhc7c0wapp4m94-openimageio-1.8.16-dev...
shrinking RPATHs of ELF executables and libraries in /nix/store/6hyjqjjr650gj3ghi7b4c8xg4gscrlx1-openimageio-1.8.16-doc
strip is /nix/store/p9akxn2sfy4wkhqdqa3li97pc6jaz3r1-binutils-2.30/bin/strip
patching script interpreter paths in /nix/store/6hyjqjjr650gj3ghi7b4c8xg4gscrlx1-openimageio-1.8.16-doc
checking for references to /build in /nix/store/6hyjqjjr650gj3ghi7b4c8xg4gscrlx1-openimageio-1.8.16-doc...
/nix/store/synwap2mpiwgaxgc6fdzk143v6i5yp2i-openimageio-1.8.16-bin

Success on x86_64-linux (full log)
Attempted: openimageio
Partial log (click to expand)
checking for references to /build in /nix/store/9an4974kkhh0ivspm55962civa24mm95-openimageio-1.8.16...
shrinking RPATHs of ELF executables and libraries in /nix/store/6g1a7hnq5r112s9qac3q9pcqjknjn01h-openimageio-1.8.16-dev
strip is /nix/store/vcc4svb8gy29g4pam2zja6llkbcwsyiq-binutils-2.30/bin/strip
patching script interpreter paths in /nix/store/6g1a7hnq5r112s9qac3q9pcqjknjn01h-openimageio-1.8.16-dev
checking for references to /build in /nix/store/6g1a7hnq5r112s9qac3q9pcqjknjn01h-openimageio-1.8.16-dev...
shrinking RPATHs of ELF executables and libraries in /nix/store/32lrvshg5i3hk2pngkzzy3qqdfzqlw41-openimageio-1.8.16-doc
strip is /nix/store/vcc4svb8gy29g4pam2zja6llkbcwsyiq-binutils-2.30/bin/strip
patching script interpreter paths in /nix/store/32lrvshg5i3hk2pngkzzy3qqdfzqlw41-openimageio-1.8.16-doc
checking for references to /build in /nix/store/32lrvshg5i3hk2pngkzzy3qqdfzqlw41-openimageio-1.8.16-doc...
/nix/store/2abi46qy245wa8l6chmgr37chp9asd99-openimageio-1.8.16-bin


Dropdown fix

Status :
Ready

Description :

Fix dropdown bug on multiselect and select components where on triggering the dropdown, other components in the page are affected.

Related Issues :
#176
Todos

[x] Tests
[x] Documentation

Codecov Report

Merging #187 into development will not change coverage.
The diff coverage is n/a.

@@             Coverage Diff              @@
##           development     #187   +/-   ##
============================================
  Coverage        82.21%   82.21%
============================================
  Files               24       24
  Lines              703      703
============================================
  Hits               578      578
  Misses             125      125

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 746284f...5282062. Read the comment docs.


Enchance documentation

This PR enhancing documentation by splitting it into multiple files and making it much more organized.
Additionally, this also updates version format to 0.x.x and adds badges to the repository.

I just realized that we should also update the version printed via the 'version' command.

I just realized that we should also update the version printed via the 'version' command.

Good catch!
Also, please join #12 before this one :)


Feature request: exposing function equivalent to get_dummies?

In the documentation, there's a reference to auto-conversion of PooledDataArray into 0/1 columns. Can this be exposed as a public function within DataFrames, similar to get_dummies in pandas?
Yes, it's unnecessary/wasteful in terms of calculation performance within Julia, but it's a useful step when dumping a DataFrame to .csv for other uses.
Pooling columns is important for working with the GLM package. When fitting
regression models, PooledDataArray columns in the input are translated into 0/1
indicator columns in the ModelMatrix – with one column for each of the levels of the
PooledDataArray. This allows one to analyze categorical data efficiently.

@nalimilan, can you say whether this is still relevant?

Certainly not in DataFrames. There's StatsBase.indicatormatrix, and we could add a specialized method for CategoricalArray.


[WIP] Use Context API + some improvements

I did a couple of changes, mostly to support an old & new way of doing things without breaking anything. Sadly I've managed to break some tests anyway. And some Typescript definitions are missing as well.
@johot Let me know if you want to have a look at it. Otherwise, I'll get to it probably later today or tomorrow.

Looks good! I'll merge it! Would love for you to take a crack at the tests, I haven't worked in the mobx-react code base much before and only have limited experience with the new context api so go ahead!
I'll merge this in and test with some real react projects.

Well, you were not supposed to merge it (there was a WIP in title) :) Oh well...

Oops :P I will revert then hehe

Well, so I've pushed some changes to master, but these tests are rather problematic and I cannot figure what's wrong there. What's for sure, it's caused by that new observer with hooks. Once I disable that, all tests are passing.

Well, so I've pushed some changes directly to master, mostly about deprecating Provider/inject, but avoiding any breaking changes.
Tests are rather problematic and I cannot figure what's wrong there. I don't have much experience with rendering in tests just yet. What's for sure, it's caused by that new observer with hooks. Once I disable that, all tests are passing.
@mwestrate I think your help will be needed here.


Failed to parse command arguments: Failed to parse command arguments.

When we give no arguments to quickwit, we get
the following error.
Failed to parse command arguments: Failed to parse command arguments.
The help screen would be nicer.

I get the help message printed
➜  quickwit-indices quickwit
Quickwit 0.2.1 (commit-hash: a287f35)
Index your dataset on object storage & make it searchable from the command line.
  Find more information at https://quickwit.io/docs

Telemetry: enabled

USAGE:
    quickwit [SUBCOMMAND]

OPTIONS:
    -h, --help       Print help information
    -V, --version    Print version information

SUBCOMMANDS:
    run       Runs quickwit services. By default, `indexer` and `searcher` are started.
    index     Create your index, ingest data, search, describe... every command you need to
                  manage indexes.
    source    Manages sources.
    split     Performs operations on splits (list, describe, mark for deletion, extract).


WeBWorK PG files not recognized

For example the files in the Open Problem Library, https://github.com/openwebwork/webwork-open-problem-library
The extension is .pg, and the syntax is a combination of perl and tex

All your .pg files are being identified as Perl. The predominance of PostScript in your language stats bar is because of all the .eps and .ps files you have in the directories in https://github.com/openwebwork/webwork-open-problem-library/tree/master/Contrib/CAPA/CAPA_Graphics (~14.4MB in total).
As the parent directory is called Contrib it suggests to me that it contains third-party code you probably don't want it counted in you language stats so the best thing to do is implement a override and mark this directory as vendored.
This will cause that entire directory to be ignored when calculating the language stats.

Hmmm, I think I was wrong, but I am still confused.  I realized that I can click on the language details to see which files are recongized as what.  But it seems the .pg files aren't recognized as anything.  I'll edit the title of the issue.  Under "Perl" I only find actual ".pl" files

Keep scrolling through the results; they're definitely classified as Perl as you can see at https://github.com/openwebwork/webwork-open-problem-library/search?l=perl&p=12

There are 50586 .pg files in the repository, that page only lists 187 files.  That's basically 99.7% of them aren't recognized.

If I am counting right, even by file size the .pg files should win by a longshot, there's 228megs of .pg files, there are only 20 megs of .eps files (817 files).

Ok, I see what's happening now. Those that are being recognised as Perl have a modeline in the file identifying them as Perl, eg https://github.com/openwebwork/webwork-open-problem-library/blob/0914437ac334603bf1f15257757073ac63121956/OpenProblemLibrary/Westmont/ActiveCalculus/Preview_5_2/preview_5_2_abcde.pg. Those that aren't recognised, don't, like https://github.com/openwebwork/webwork-open-problem-library/blob/master/OpenProblemLibrary/CollegeOfIdaho/setAlgebra_01_01_AlgebraicExpressions/11IntAlg_01_AlgebraicExpressions.pg
I've just double checked and the .pg extension isn't associated with any languages either.
The best thing to do is to add a language override for the .pg extension.

Well 1) that's why I'm reporting it, because there's quite a few PG files out there, not just in the open problem library.

I've been testing overrides on my own repository of webwork problems, and adding "*.pg linguist-language=WeBWorKPG" to .gitattributes doesn't seem to have any effect.  It seems to work to set it to show up as Perl but I don't think it would be correct to classify it as Perl, it really isn't normal Perl.  For example perl syntax highlighting, isn't totally correct.  PG files have a specific syntax, mix a-kind-of-LaTeX (that's where Perl syntax highlighting fails), and can't be run in anything other than webwork software.

that's why I'm reporting it, because there's quite a few PG files out there, not just in the open problem library.

Ah, I thought you were reporting a problem and expecting them to be identified as Perl. As that's not the case and you wish to have support, please review the details in CONTRIBUTING.md and if WeBWorKPG meets all the requirements, we'd be pleased to get a PR for it.

I've been testing overrides on my own repository of webwork problems, and adding "*.pg linguist-language=WeBWorKPG" to .gitattributes doesn't seem to have any effect. It seems to work to set it to show up as Perl but I don't think it would be correct to classify it as Perl, it really isn't normal Perl. For example perl syntax highlighting, isn't totally correct. PG files have a specific syntax, mix a-kind-of-LaTeX (that's where Perl syntax highlighting fails), and can't be run in anything other than webwork software.

Yeah, the overrides can't be used to set a language Linguist doesn't know about.

Looks like the next step is to submit a pull request and use the Linguist overrides in the meantime. Closing.


lang: add support for range pats

This PR adds support for range patterns on the AST, Parser, Semantics, and typechecking levels.
closes #438

Nice one!

@kontheocharis re-review?


How can I retrain this model ?

Thank you for this implementation.
I want to know how to use this as transfer learning.
Would you please tell me step by step.

Refer to Keras fine tuning blog post. You can swap out the VGG model there for DenseNet from here, but since I don't have weights for imagenet, you will have to use 'cifar10' instead of 'imagenet'

This is what I meant - https://blog.keras.io/building-powerful-image-classification-models-using-very-little-data.html

Thank you


ERROR can't reuse a ProvisionalLoginContext!

I always get this error when trying to log in from an ubuntu server, desktop ubuntu and macbook are fine
my log id:<PHONE_NUMBER>fd14f8aa86711c

I can verify that using my user name instead of email to login allowed me to login successfully.
But I had to guess my username, is there somewhere in the account/profile area that would state that more directly?

the website can tell you and supported email login without a problem


200 Number of Islands Union Find solution

@neetcode-gh please, grant collaborator permission

thanks @MaratKhakim !

thanks @MaratKhakim !

Thanks Mitchell. It would be great if you can tell me how to get Collaborator permission?


Preliminary changes for release (WIP)

Checkers policy
As mentioned in the #33, more structured way for checks should be made, namely, string-base constants should be replaced with enumerators and special objects for checking should be implemeneted.
Builders
Structure of builder was changed in order to prevent double-call of objects in builder_base. Because of this also useless variables (i.e. `skeleton') was removed.

Hello @Roman223! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file bamt/networks/base.py:

Line 306:25: W503 line break before binary operator
Line 307:25: W503 line break before binary operator
Line 490:17: W503 line break before binary operator


Does not support editor settings with arguments

When using an editor which makes use of arguments, it fails to run.
To reproduce:
$: export EDITOR="emacs -nw"

https://github.com/dpc/crev/commit/a9502b3281f6d0513f262399b89752389427e296 should fix it.


Issues with unitframes

when i want to move the bars around it looks like this the party frames are unable to be moved and the other frames have some issues as well. the main actionbar the one with the gryphons or Chimera depending which faction are you dissapear if you move the main action bar

thanks in advance

well i came with more info regarding this issues its the addon moveanything which causes this issues i reset most of the frames affected and now works perfectly still the issue now is the scale of the bars i can use moveanything to rezise it or change its orientation except bar one the one with the chimera icons its bugs the hell out if i use moveanything to scale it down

Try use in-game scale (video options). I need to improve the frame editing mode to be able to change the scale of individual frames

Try use in-game scale (video options). I need to improve the frame editing mode to be able to change the scale of individual frames

no ill wait until you can resolve the  issues at had. best of luck and blessings

it would be great to have an option to scale the action bar... also the ability to remove/hide the gryphon...


fixes numeric expiresIn sign option by normalizing handling in timest…

Documentation says a number of seconds before expiration can be specified in the expiresIn option of the sign() function. Nevertheless, function was handling numeric values as milliseconds.
This commit multiplies input by 1000 to fix this issue and make the library act as documented.

[ ] This change adds test coverage for new/changed/fixed functionality

Checklist

[NA] I have added documentation for new/changed functionality in this PR or in auth0.com/docs
[ ] All active GitHub checks for tests, formatting, and security are passing
[X] The correct base branch is being used, if not master

I will be analyzing this more extensively as a lot of tests seems to be failing after my change. I will open a new PR after I finish with it.


Unable to lock packages with odd version numbers

Issue description
Running pipenv install pdfminer.six fails.
Expected result
It succeeds to install the package
Actual result
> pipenv install pdfminer.six --verbose
Installing pdfminer.six…
⠋Installing 'pdfminer.six'
$ ['/Users/tom/.virtualenvs/tempenv-6fe770333809/bin/pip', 'install', '--verbose', '--upgrade', 'pdfminer.six', '-i', 'https://pypi.org/simple']
Created temporary directory: /private/var/folders/9w/twrv54nd0v19gsbjhjs3mlhc0000gn/T/pip-ephem-wheel-cache-fojnad2a
Created temporary directory: /private/var/folders/9w/twrv54nd0v19gsbjhjs3mlhc0000gn/T/pip-req-tracker-avndeix4
Created requirements tracker '/private/var/folders/9w/twrv54nd0v19gsbjhjs3mlhc0000gn/T/pip-req-tracker-avndeix4'
Created temporary directory: /private/var/folders/9w/twrv54nd0v19gsbjhjs3mlhc0000gn/T/pip-install-putzczfh
1 location(s) to search for versions of pdfminer.six:
* https://pypi.org/simple/pdfminer-six/
Getting page https://pypi.org/simple/pdfminer-six/
Looking up "https://pypi.org/simple/pdfminer-six/" in the cache
Request header has "max_age" as 0, cache bypassed
Starting new HTTPS connection (1): pypi.org:443
https://pypi.org:443 "GET /simple/pdfminer-six/ HTTP/1.1" 304 0
Analyzing links from page https://pypi.org/simple/pdfminer-six/
  Found link https://files.pythonhosted.org/packages/ab/60/8df8a1f2c56e191fef9cb3dc70f951ef7ef5df85523382d45a94180d38de/pdfminer.six-20140915.zip#sha256=b734cbad2d9431a794e2c9cb6edfb1aad36f20461b65d20af8d89c3469453fe6 (from https://pypi.org/simple/pdfminer-six/), version: 20140915
......
Cleaning up...
Removed build tracker '/private/var/folders/9w/twrv54nd0v19gsbjhjs3mlhc0000gn/T/pip-req-tracker-avndeix4'

Adding pdfminer.six to Pipfile's [packages]…
Pipfile.lock not found, creating…
Locking [dev-packages] dependencies…
Locking [packages] dependencies…
using sources: [{'url': 'https://pypi.org/simple', 'verify_ssl': True, 'name': 'pypi'}]
Using pip: -i https://pypi.org/simple

                          ROUND 1
Current constraints:
  pdfminer-six

Finding the best candidates:
Using pip: -i https://pypi.org/simple

                          ROUND 1
Current constraints:
  pdfminer-six

Finding the best candidates:

Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies.
  First try clearing your dependency cache with $ pipenv lock --clear, then try the original command again.
 Alternatively, you can use $ pipenv install --skip-lock to bypass this mechanism, then run $ pipenv graph to inspect the situation.
  Hint: try $ pipenv lock --pre if it is a pre-release dependency.
Could not find a version that matches pdfminer-six
No versions found
Was https://pypi.org/simple reachable?
Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies.
  First try clearing your dependency cache with $ pipenv lock --clear, then try the original command again.
 Alternatively, you can use $ pipenv install --skip-lock to bypass this mechanism, then run $ pipenv graph to inspect the situation.
  Hint: try $ pipenv lock --pre if it is a pre-release dependency.
Could not find a version that matches pdfminer-six
No versions found
Was https://pypi.org/simple reachable?

Steps to replicate
pipenv install pdfminer.six
Support
$ pipenv --support
Pipenv version: '2018.10.10.dev0'
Pipenv location: '/Users/tom/projects/pipenv/pipenv'
Python location: '/Users/tom/.virtualenvs/tempenv-6fe770333809/bin/python3'
Python installations found:

3.7.0: /Users/tom/.pyenv/shims/python3.7m
3.7.0: /Users/tom/.pyenv/shims/python3.7
3.7.0: /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/bin/python3.7
3.7.0: /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/bin/python3.7m
3.6.5: /Users/tom/.virtualenvs/tempenv-6fe770333809/bin/python3
3.6.5: /Users/tom/.pyenv/shims/python3
3.6.5: /Users/tom/.pyenv/shims/python
3.6.5: /Users/tom/.pyenv/shims/python3.6
2.7.15<EMAIL_ADDRESS>2.7.10: /usr/bin/python
2.7.10: /usr/bin/pythonw
2.7.10: /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7

PEP 508 Information:
{'implementation_name': 'cpython',
 'implementation_version': '3.6.5',
 'os_name': 'posix',
 'platform_machine': 'x86_64',
 'platform_python_implementation': 'CPython',
 'platform_release': '18.0.0',
 'platform_system': 'Darwin',
 'platform_version': 'Darwin Kernel Version 18.0.0: Wed Aug 22 20:13:40 PDT '
                     '2018; root:xnu-4903.201.2~1/RELEASE_X86_64',
 'python_full_version': '3.6.5',
 'python_version': '3.6',
 'sys_platform': 'darwin'}

System environment variables:

AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
AWS_SESSION_TOKEN
Apple_PubSub_Socket_Render
COLORFGBG
COLORTERM
EDITOR
HEX_REPO_KEY
HOME
HOMEBREW_AUTO_UPDATE_SECS
ITERM_PROFILE
ITERM_SESSION_ID
LANG
LC_ALL
LC_CTYPE
LOGNAME
OL_client_id
OL_client_secret
OL_region
OL_username
ONFIDO_PROFILE
ONFIDO_ROLE
OP_SESSION
OP_entry_name
PATH
PWD
PYENV_SHELL
SECURITYSESSIONID
SHELL
SHLVL
SSH_AUTH_SOCK
TERM
TERM_PROGRAM
TERM_PROGRAM_VERSION
TERM_SESSION_ID
TMPDIR
USER
VIRTUAL_ENV
VIRTUAL_ENV_DISABLE_PROMPT
XPC_FLAGS
XPC_SERVICE_NAME
__CF_USER_TEXT_ENCODING
nvm_prefix
PYTHONDONTWRITEBYTECODE
PIP_SHIMS_BASE_MODULE
PIP_PYTHON_PATH

Pipenv–specific environment variables:
Debug–specific environment variables:

PATH: /usr/local/sbin:/Users/tom/.local/bin/:/Users/tom/.virtualenvs/tempenv-6fe770333809/bin:/Users/tom/.pyenv/shims:/Users/tom/.cargo/bin:/Users/tom/bin/:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/MacGPG2/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Wireshark.app/Contents/MacOS
SHELL: /usr/local/bin/fish
EDITOR: charm
LANG: en_US.UTF-8
PWD: /private/var/folders/9w/twrv54nd0v19gsbjhjs3mlhc0000gn/T/tmp.ALE4xMXP
VIRTUAL_ENV: /Users/tom/.virtualenvs/tempenv-6fe770333809

Contents of Pipfile ('/private/var/folders/9w/twrv54nd0v19gsbjhjs3mlhc0000gn/T/tmp.ALE4xMXP/Pipfile'):
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
pdfminer-six = "*"

[dev-packages]

[requires]
python_version = "3.6"

This appears to be because the package name is installed as pdfminer.six, but sent to pipenv.resolver as pdfminer-six which then fails.

Looks like another duplicate of https://github.com/pypa/pipenv/issues/2956

I tested this with the latest master though. It worked if I added "pdfminer.six" with quotes to Pipfile. Without the quotes it would try and lock pdfminer.

Unfortunately I'm not really sure there is a way around that, the PEP around package naming itself specifies this normalization and much of the tooling performs it, so the fact that PyPI's simple index doesn't handle the translation is probably the real culprit.

It does handle the normalization it seems: https://pypi.org/simple/pdfminer-six/

Ok, so I've narrowed down the issue.
egg_info_matches() doesn't seem to handle normalization properly. In the case above it is passed pdfminer.six as the search_name, but all the links are to pdfminer.six (without the dash), and so are skipped.

I have a hacky fix in #3008. It seems to work fine for me.

I believe this is fixed for now, so closing this issue but let us know if not


Null is being returned as string

Return null as null instead of string?

sorry. its a problem on my end


Toggle "Fill Column Indicator" only works in one direction

What did you expect to happen?
Pressing SPC t c would toggle (both on and off) the fill column indicator.
Feature just merged, PR#3982
What actually happened?
On a text buffer, the column indicator is shown as a vertical bar (as expected).
SPC t c has no effect.  Note that SPC t shows the ivy menu offering c -> Fill Column Indicator) as an option.
Workaround: Typing SPC : display-fill-column-indicator-mode disables the fill column indicator. At this point, SPC t c enables the fill column indicator correctly, but typing SPC t c again has not the desired effect.
Additional details:
:ui fill-column enabled @ doom/init.el.
I've tried doing a git clean -fxd; rm -rf .local to get a clean slate, but that didn't help.
Steps to reproduce:

Create and save a text buffer with a line that exceeds 80 columns, like this:

emacs sample.txt

Add this content:
This is a text buffer with a line long enough to trigger the fill column character display.
It will be shown only after *saving* the buffer, though (`SPC f s`).

Save the buffer to disk, with SPC f s
Observe the fill column indicator being shown in the 80th column
Type SPC t c to try and disable the aforementioned column indicator.  Notice perplexed (or aghast, either-or) how nothing happens.

System information:
Running current emacs 27.1 on Archlinux.

((system
  (type . gnu/linux)
  (config . "x86_64-pc-linux-gnu")
  (shell . "/usr/bin/fish")
  (uname . "Linux 5.8.13-arch1-1 #1 SMP PREEMPT Thu, 01 Oct 2020 20:40:35 +0000 x86_64")
  (path "~/.pyenv/bin" "~/.nix-profile/bin" "~/.nix-profile/bin" "/nix/var/nix/profiles/default/bin" "~/.local/bin" "~/go/bin" "/usr/local/bin" "/usr/bin" "/bin" "/usr/local/sbin" "/usr/lib/jvm/default/bin" "/usr/bin/site_perl" "/usr/bin/vendor_perl" "/usr/bin/core_perl" "~/.config/emacs/bin" "/usr/lib/emacs/27.1/x86_64-pc-linux-gnu"))
 (emacs
  (dir . "~/.config/emacs/")
  (version . "27.1")
  (build . "Aug 28, 2020")
  (buildopts . "--prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --with-x-toolkit=gtk3 --with-xft --with-wide-int --with-modules --with-cairo --with-harfbuzz 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now")
  (features . "XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD JSON PDUMPER LCMS2 GMP")
  (traits batch))
 (doom
  (dir . "~/.config/doom/")
  (version . "2.0.9")
  (build . "HEAD -> develop 0feacd4ce 2020-10-06 00:20:17 -0400")
  (elc-files . 196)
  (modules :completion company (ivy +icons) :ui doom doom-dashboard fill-column hl-todo minimap modeline nav-flash ophints (popup +defaults) treemacs vc-gutter vi-tilde-fringe window-select workspaces zen :editor (evil +everywhere) file-templates fold format snippets word-wrap :emacs dired electric ibuffer undo vc :term vterm :checkers syntax spell grammar :tools ansible docker editorconfig ein (eval +overlay) lookup (lsp +eglot) (magit +forge) make pdf terraform :lang cc data emacs-lisp (go +lsp) (haskell +lsp) json (javascript +lsp) latex (markdown +grip) nix (org +hugo +pandoc +pomodoro +present +dragndrop) (python +lsp +pyenv) raku rest rst rust scheme sh web yaml :config (default +bindings +smartparens))
  (packages (flycheck-popup-tip :disable t) (hide-lines) (ivy-avy))
  (unpin "n/a")
  (elpa "n/a")))

As of 729e8d8 this issue should be resolved. Let me know if that isn't the case and I'll reopen it. Thanks for bringing it to my attention!


docs: python sdk uses package api names

Based on the changes in https://github.com/treeverse/lakeFS/pull/6296
Merge after lakeFS release
Part of https://github.com/treeverse/lakeFS/issues/6262

Was there a particular reason why you deprecated the non-_api-suffixed members in #6296?

The two main reasons - one of the categories called 'import' which is a keyboard in python and made it had to add as a member.
The second. We wanted to to generate the code with the supported categories and the generator, without modify the generator itself, only <name>_api in the build time for us to use while using the template engine.
In order not to break the current code and still give access to the same categories create property for all the current categories and marked them deprecated so we can remove them over time and get automatic generated client with all the categories.


Buttons in input groups have height mismatched and not align properly with the input box on IE

So on IE with the latest dev commit, I noticed that the button addon within the .input-group-btn does not have the proper height or align properly with the input box. I believe this is a regression issue because when I checked with the Alpha 6 on the official website, this does not happen. I already checked both case #20155 and case #18083 but they already have been fixed and applied only to the Alpha 6 version.
Here is the codepen to demonstrate the problem with up to date Bootstrap dev commit CSS and JS:
https://codepen.io/nguyenthai/pen/QvYXJz
Viewing it on IE yield the problem. Also I have attached some screenshots.
This is what it looks like on the Alpha 6 version on IE

This is what it looks like on the latest dev commit on IE

Chrome nor Firefox does not have this issue. IE version is 11.296.15063 running on latest Windows 10 v1703.

I'm seeing the same thing on 3.3.7 + Electron 1.6.2. The bottom row of the input jitters up and down 1-pixel as the responsive columns change size. I can make it go away by reordering the position of the rows, or using multiple containers, but it is super annoying.

Seeing the same of v4.beta

Fixed by #23810.


Need to apply CI testing/style checking to "done" Knack command modules

We need a mechanism to apply our static checks and tests only to the command modules we have deemed complete. In this way we can still use the CI to monitor for regressions without all the modules needing to be converted over. The modules not yet converted will fail with 100% certainty.

Done


Receive Third Party Token when integrating Slack command Bot

Description
@seratch Hi I have task to update an old php slack command bot to async Nodejs.
About the current PHP bot and the app:
The command which we are using is used to create task for that user, we have a web-app where we are giving option for a user to integrate it into slack, and once the user integrates the app and start using we are get oauth token which we use to create a task from that command in our database and send back a response.
Describe your issue here.
Here's what i did, i opened the Boltjs Docs start reading it, open slack tutorial and created a simple bot which takes command with argument and sending i'm assuming to send back a block response, is this achievable via Boltjs if yes then can you guide me how can i authenticate the user with the token from web-app to match with database and create task based on user id, i saw an example where they were showing how to dynamically generate Token, but that was bot token, can we receive such data when user enter command, e-g /todo "Pay bills on Monday" (user token which was authenticated when user integrated from web-app)
ref to web-app:   https://www.todo-cloud.com/#/task
guide ref: https://support.appigo.com/support/solutions/articles/4000169817-use-slack-with-todo-cloud
Arigato gozaimas
What type of issue is this? (place an x in one of the [ ])

[ ] bug
[ ] enhancement (feature request)
[x] question
[ ] documentation related
[ ] example code related
[ ] testing related
[x] discussion

Requirements (place an x in each of the [ ])

[x ] I've read and understood the Contributing guidelines and have done my best effort to follow them.
[x ] I've read and agree to the Code of Conduct.
[ x] I've searched for any related issues and avoided creating a duplicate issue.

Bug Report
Filling out the following details about bugs will help us solve your issue sooner.
Reproducible in:
package version:
node version:
OS version(s):
Steps to reproduce:

d
d
3.d

Expected result:
d
What you expected to happen
d
Actual result:
d
What actually happened
d
Attachments:
Logs, screenshots, screencast, sample project, funny gif, etc.

Hi @kashanghori, thanks for asking the question!

guide ref: https://support.appigo.com/support/solutions/articles/4000169817-use-slack-with-todo-cloud

I checked how this flow works and found that it's "Sign in with Slack" flow. Unfortunately, bolt-js does not yet support the feature as of today. You can use the underlying module instead.
Your service currently uses the "identity" user scope flow. Here is a simple example app demonstrating how it should work: https://github.com/slackapi/node-slack-sdk/tree/main/examples/legacy-sign-in-with-slack
The legacy "identity" scope flow still works. However, if you would like to migrate to the latest way, which is OpenID Connect compatible, you can do something like this example: https://github.com/slackapi/node-slack-sdk/tree/main/examples/openid-connect
When your OAuth flow app for "Sign in with Slack" completes, the app must save the generated tokens and its metadata in your database. And then, your bolt-js app can use the token when responding to incoming event requests (such as slash command invocations) from Slack API server.
Does this make sense to you?

@seratch  thanks for the quick reply, i followed some tutorials on slack oauth and i  have achieved most of the things, after user has installed the app on his workspace i want to get user token ( access token), I'm using fetchInstallation and when i console installQuery param i get an object with user data but the user token is null , i'm getting other data though like bot token , user id etc etc/

@seratch  yes it make sense , currently I'm using mongodb to store token and use them later

@seratch can i get code from redirect URL in /slack/oauth_redirect/ as i'm pointing to this and bolt handles for me, what i want to achieve is get user access token from boltjs or do i have to use @slack/oauth or   https://github.com/slackapi/node-slack-sdk/tree/main/examples/openid-connect as you suggested above

@kashanghori The OAuth flow itself needs to be done outside your bolt-js app. Also, as you can see in the examples, you don't need to import any @slack/xxx packages for the app (because the packages do not support "Sign in with Slack" as of today). The app is responsible to store the OAuth result data in your MongoDB database.
And then, your bolt-js's fetchInstallation function can look up the OAuth result data by team_id and user_id when the bolt-js app receives incoming requests from Slack.

@kashanghori The OAuth flow itself needs to be done outside your bolt-js app. Also, as you can see in the examples, you don't need to import any @slack/xxx packages for the app (because the packages do not support "Sign in with Slack" as of today). The app is responsible to store the OAuth result data in your MongoDB database.
And then, your bolt-js's fetchInstallation function can look up the OAuth result data by team_id and user_id when the bolt-js app receives incoming requests from Slack.

@seratch  again thanks for the quick reply, I understand that the south has to be done outside of bolt app, thanks

@seratch I was wondering why "The OAuth flow itself needs to be done outside your bolt-js app"?

@dt-nwx As mentioned above, there are two reasons:

bolt-js does not provide a functionality to handle "Sign in with Slack" OAuth flow
You cannot mix OAuth scopes for "Sign in with Slack" with Slack app installation scopes such as "commands"

Specifically, the second point means that it's not possible to complete your Slak app installation into a Slack workspace (this is referred to as the typical OAuth flow for a Slack app) and the "Sign in with Slack" OAuth flow (this is OpenID Connect flow; it doesn't install your app into a Slack workspace; instead, it provides your app the ability to access Slack user information with the permissions provided) at a time.
In a nutshell, regardless of how you build your Slack app, the "Sign in with Slack" flow must be implemented as a separate user interaction from Slack app installation.


[MINOR][DOCS] Fix typos

What changes were proposed in this pull request?

Fix typos in the repo.
Why are the changes needed?

Improve readability.
Does this PR introduce any user-facing change?

No
How was this patch tested?

No tests are needed.

@srowen FYI

I did enable action on my forked repo and rebase to apache/spark master.
Can anyone re-run the workflows?

Mind double checking? Seems they are not running https://github.com/sudoliyang/spark/actions

Merged to master.


copycat serializers

#22

Drops the whitelist for copycat serialization and registers all types that are directly serialized.
The JournalStateMachine is refactored to keep the serialized state in a single object.

LGTM :smile:


Update students.txt

@gplassais next time don't start PRs from your main branch, this will make future PRs more complex. Create a dedicated branch instead (see the Readme)


Doesn't works well with ScrollView

I have troubles when play a TourGuide on a View inside a ScrollView. I think overlay should scroll with the content.

Same here. I have this issue too.
I think the developer is not supporting this library anymore?

any luck on this?

Yep, I gave up on this library. I'm using a library called simple-tooltip.
https://github.com/douglasjunior/android-simple-tooltip


Fix Travis-CI link

Fixes #61
NONE

/approve
/lgtm

Weird, prow added the retest-not-required-docs-only label, but then ran the tests anyway 🤔


Update tag after merge

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 2 committers have signed the CLA.:white_check_mark: tamirkiviti13:x: tzurielweisbergYou have signed the CLA already but the status is still pending? Let us recheck it.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 2 committers have signed the CLA.:white_check_mark: tamirkiviti13:x: tzurielweisbergYou have signed the CLA already but the status is still pending? Let us recheck it.


Multiple config files

Why is there a /both/config/_config.coffee and /lib/config/_config.coffee? Furthermore, it seems that some of the vars that the templates require access to aren't working out of the box, since they're not present in both (but they're in lib). E.g. dashboardRoute

The one in lib/ is loaded first and there's no merging going on, so it will be overwritten by the other one.

@chmac Sorry if this is a stupid question, but why do they both exist?

I came to report the same bug and saw your ticket! I guess it's a bug.

From what I've observed, it seems like the config file in the lib directory should be the default config file. The one in the both directory overrides what config file in the lib directory contains. I'd assume that all configuration should be done through the config file in the both directory.
I've also noticed that if you want to specify something from the config file in the lib directory, it has to be prefixed with Config.

From what I've observed, it seems like the config file in the lib directory should be the default config file. The one in the both directory overrides what config file in the lib directory contains. I'd assume that all configuration should be done through the config file in the both directory.
I've also noticed that if you want to specify something from the config file in the lib directory, it has to be prefixed with Config.

@justintieu True, the file in both/ will overwrite the file in lib/, but it will not extend it. So anything you set in lib/ will be 100% ignored. The file is therefore 100% redundant. Maybe it exists to show the available config options, but I don't see that documented anywhere.
If it's supposed to be the default config file, then the both/ config file should use some kind of _.extend() or comparable operation to overwrite the defaults, rather than simply obliterating the existing value of @Config.

@justintieu True, the file in both/ will overwrite the file in lib/, but it will not extend it. So anything you set in lib/ will be 100% ignored. The file is therefore 100% redundant. Maybe it exists to show the available config options, but I don't see that documented anywhere.
If it's supposed to be the default config file, then the both/ config file should use some kind of _.extend() or comparable operation to overwrite the defaults, rather than simply obliterating the existing value of @Config.

@etcook @chmac @justintieu That's right. It's been fixed now... see #101


How to use with expect?

      expect(WebMock).to have_requested(:get, "http://google.com").once

Is this supported?

Also wanting to know this. The ruby version of webmock has the a_request method, something like that would be nice.

Late to the party but I've decided to comment for once because this is the second time I've figured this out from looking into the source (tried it last year and since forgot haha).
mock = WebMock.stub(:put, url).to_return(body: "")
HTTP::Client.get(url)
mock.calls.should eq 1


Saved model failing to be loaded

Model loading from py36 is failing as somewhat expected, given that you mentioned you used py37.
Trying py37, there seems to be no matching torch1.6.0gpu distribution found for windows/py37.
Are you on Windows or Linux?

This was done on windows; can you share the error and stacktrace?

My apologies. This is the stack trace for py37:

I am using this project together with other open source tools, like super resolution gans, landscape gans, music gans, and pokemon name lstms, to generate Non fungible token based art, seen here:
https://opensea.io/collection/fakemon
So far, I've used my trained weights from your code, but your saved model would produce even more refined results.
The creature below may not look like one of yours, but it is, having gone through a number of Ai filters, including super resolution.

Ah interesting! As for your error, it looks like it's just a file not found error; is the path correct?
Rather than doing PATH_PART_1 + PATH_PART_2, consider using os.path.join(PATH_PART_1, PATH_PART_2) (documentation) to join the path components in a way that respects your OS's filesystem. Also, python file paths are relative to the current working directory (os.getcwd()), not the location of the running script (__file__), so make sure that's all correct too.
If it's not that, then I'm not sure 🤷

Ah interesting! As for your error, it looks like it's just a file not found error; is the path correct?
Rather than doing PATH_PART_1 + PATH_PART_2, consider using os.path.join(PATH_PART_1, PATH_PART_2) (documentation) to join the path components in a way that respects your OS's filesystem. Also, python file paths are relative to the current working directory (os.getcwd()), not the location of the running script (file), so make sure that's all correct too.
If it's not that, then I'm not sure 🤷

Thanks.
I shall try that suggestion, although the model is training from checkpoints using the same simple concatenation method above.

@JordanMicahBennett
Use this to load the model:
gan.generator.load_state_dict(torch.load('trained_generator_weights.pt'))

Thanks. I shall try as soon as I restore python to utilize pokegan. I re-ordered it to work on another project.

@ConorLazarou @giorgiop
The other project I was talking about involved integrating pytorch into blnder3d, to facilitate the generation of a 3d human I call "Cryptosynth Aeon", which was itself also formed by other Ai methods, including stylegan 2.
Quite content that the 1st functional piece already sold for a measly 0.008 ETH, and I am quite happy :)
1970 will be sold, homage to 1970, when Sepp 1st implemented the Neural Network :)
A "[Cryptosynth-Aeon](Look out for the 2nd drop of Cryptosynth Aeon 0001 today, with a different Aeon appearance/Ai personality as usual, for only 0.008 ETH.
A Cryptosynth is an Ai powered, artistically realistic 3d being, that anyone can actually hold a conversation with.
https://opensea.io/collection/cryptosynth/)" is an Ai powered, artistically realistic 3d being, that anyone can actually hold a conversation with.


How to save text from StyleClassedTextArea

I define some css and use StyleClassedTextArea to display some colorful text.How can I save already displayed text with color?
now I used
this.styleClassedTextArea.getText()

You can either process each styled part yourself with for example:
area.getParagraphs().stream()
    .flatMap( p -> p.getStyledSegments().stream() )
    .forEach( ss -> System.out.println( ss.getStyle() +" text: "+ ss.getSegment() ) );

or you could save in binary format using the codecs, see the RichTextDemo

It's a good plan.But it doesn't know whitch is Enter.
such as, I have a text:

it will output:
1.[black] text: My
2.[red] text: dog
3.[black] text: so
4.[green] text: cute
5.[black] text: .
6.[black] text: My dog so cute.
there is a Enter between 5 and 6

Yeah, you're right - so then the stream needs to be expanded into two for loops:
for ( Paragraph<Collection<String>,String,Collection<String>> p : area.getParagraphs() )
{
    for ( StyledSegment<String,Collection<String>> ss : p.getStyledSegments() )
    {
        System.out.println( ss.getStyle() +" text: "+ ss.getSegment() ) );
    }
    System.out.println();
}


#34, Fixes Heroes mode crash with 4.1

This is a hotfix for a game-breaking change we made to Gilga for Heroes mode.
To reiterate:  Heroes mode does NOT work without this fix on 4.1

Closing this to open in a new branch, this was actully issue 35


Use webpack4 hooks

Looks like this project would need an update to babel7 :)

I didn't update to babel7, but the same test is failing now.

Coverage remained the same at 100.0% when pulling cc4a11c4d3516725e92b30f7359ecc93827f6de7 on Industrial:master into 3462b0d34e970b9f5962bd1ac266be3ee03f41d9 on 60frames:master.

Hmm, that's weird: https://travis-ci.org/60frames/webpack-hot-server-middleware/jobs/348935426#L520
I'm not sure what to do now.

Also, I'll take a look at the CI error shortly.

I have found the package test-all-versions which allowed me to set up tests for webpack 3 and 4.
Right now, the webpack config is different for 3 and 4. How would you like to structure the tests for webpack 3 and 4?

@Industrial thanks for your efforts!
I feel test-all-versions is a little too involved / requires quite a lot of buy-in -- I think I'd rather migrate to yarn and use their aliases so we could do something like this:
// package.json
{
  "devDependencies": {
    "webpack": "^4.0.0",
    "webpack-legacy"<EMAIL_ADDRESS>  }
}

// index.test.js
const webpack = require('webpack');
const webpackLegacy = require('webpack-legacy');
...

re: the webpack config between the two versions being incompatible, I think it'd be fine to just create a new fixture called 'webpacklegacy' which is the same as the old esmodule fixture.
If this is too much effort up front we can go ahead with what you've got and I'll create a separate ticket to migrate to yarn?

Glad to help :+1:
test-all-versions was just something I found, so I'll undo it and move to yarn. I'll create the new fixture for the old webpack version next to the existing ones too.

@richardscarrott not sure why it fails.
Also, if the package.json now references 4.0, how will someone actually use it with 3?

Now the package.json is correct for webpack, @richardscarrott, I hope you could try this test =)

@Industrial I've sent a PR into your branch to fix up the unit tests, at which point this should be good to go -- https://github.com/Industrial/webpack-hot-server-middleware/pull/1

Done

@Industrial awesome, thanks for the PR -- it's now available at<EMAIL_ADDRESS>🎉


unsupported.js not found

Current Behavior

After running npm run rename I get an error:
module.js:559
    throw err;
    ^

Error: Cannot find module '../lib/utils/unsupported.js'
    at Function.Module._resolveFilename (module.js:557:15)
    at Function.Module._load (module.js:484:25)
    at Module.require (module.js:606:17)
    at require (internal/module.js:11:18)
    at /usr/local/lib/node_modules/npm/bin/npm-cli.js:19:21
    at Object.<anonymous> (/usr/local/lib/node_modules/npm/bin/npm-cli.js:145:3)
    at Module._compile (module.js:662:30)
    at Object.Module._extensions..js (module.js:673:10)
    at Module.load (module.js:575:32)
    at tryModuleLoad (module.js:515:12)

Expected Behavior

A cli installer runs to rename files for development.
Possible Solution

The file it's looking for doesn't exist, nor dose the directories its looking in:
../lib/utils/unsupported.js'
Should this file and folders  be in the repo? or am I missing something in the readme?
Steps to Reproduce (for bugs)

Installed WP on MAMP
Downloaded wp-boilerplate
Put all files in wp-boilerplate into new wp install
In terminal in wp install folder npm run rename

Your Environment

PHP version: 7.10
Development environment: MAMP
Server type: Apache
Operating System and version: OSX

What node and npm version do you have on your mamp?

I'm trying to "re" install node now.
I think it's a node problem more than this repo's. I'll close the issue.
Sorry for the inconvenience.

No problem, if you find any bug or something just ask 😄


Different command for SSHkit on local environment?

In my production server, I can't install stuff globally. Because of that, in my deploy/production.rb file, I have the following config:
SSHKit.config.command_map[:composer] = "/home/web720/composer.phar"

This is respected by capistrano-wpcli, but unfortunately it is used the same way on local as well, which results in following error for me:
| => bundle exec cap production wpcli:uploads:rsync:pull
INFO [29d88580] Running /usr/bin/env rsync -avz --rsh=ssh --progress web720@<IP_ADDRESS>:/www/itvar.cz/wwwroot/www/shared/web/app/uploads/ web/app/uploads/ as Cibulka@localhost
(Backtrace restricted to imported tasks)
cap aborted!
SSHKit::Command::Failed: rsync exit status: 65280
rsync stdout: Nothing written
rsync stderr: ssh: connect to host <IP_ADDRESS> port 22: Operation timed out
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: unexplained error (code 255) at /SourceCache/rsync/rsync-45/rsync/io.c(453) [receiver=2.6.9]

Tasks: TOP => wpcli:uploads:rsync:pull
(See full trace by running task with --trace)

Is it possible to make capistrano-wpcli use different command on production (/home/web720/composer.phar) and development (composer)?
Thanks in advance!

Hi @cibulka.
As far as i can see your command from above has nothing to do with composer since you are trying to sync uploads.
Your connection to the server fails.

Jeremy, thanks for an answer!
And yes, you are right - the main issue is with port 22. So I guess that before dealing with development/production command for Composer (composer//home/web720/composer.phar) I need to resolve the issue with the port setting.
Because of that, do you have any updates on https://github.com/lavmeiker/capistrano-wpcli/issues/28? Thank you!

With regards to using different commands on remote and local servers we use
SSHKit.config.command_map[:wp] = "$(if [ $(which wp) ]; then echo 'wp'; else echo 'php55-cli #{shared_path.join(wp-cli.phar)'; fi)"

which will use wp if its available (local) or use the other define when not (remote).
So you'd want something like:
SSHKit.config.command_map[:composer] = "$(if [ $(which composer) ]; then echo 'composer'; else echo '/home/web720/composer.phar'; fi)"

in your config/deploy/production.rb file.

@davestevens your fix works for me, thanks!
Is there a more elegant solution, like using sh instead of run_locally as mentioned by @leehambley in https://github.com/capistrano/sshkit/pull/153#issuecomment-47422332 ..?


Ensure no validation when active_validation is False

Description:
This PR addresses performance issues in #269
JSON schema validation decreases the performance of the function and should be bypassed if
the user does not want the validation and requires performance.
Changed to fastjsonschema which is much faster.

I ran the example in the issue #269 locally and results are for active_validation=True:
Before:

with JSON Schema validation: ~10 ms
without validation: 0.01 - 0.04 ms

After:

with JSON Schema validation: ~0.01 - 0.04 ms
without validation: 0.01 - 0.04 ms

Fixes issue: #269
Checklist:

[ ] Add tests for the change to show correct behavior.
[ ] Add or update relevant docs, code and examples.
[ ] Update CHANGELOG.rst with relevant information and add the issue number.
[ ] Add .. versionchanged:: where necessary.

I am still unsure if we want to acknowledge active_validation value here, but the default should be True.

I will close this in favor of #271  As this is out of scope for #269 .
Will revisit the overall performance improvements later.


Fix TS Errors

There are a few instances that I'm currently using // @ts-expect-error due to not knowing how to solve these TS issues
These should be cleaned up.

It isn't too difficult. Let me give you an example:
If you go to packages > loader > src > plugins > overlays.ts line 36 and forward where you pass data into the applyOverlay function. You have the codesection:
applyOverlay({
      // @ts-expect-error
      text: {
        ...DEFAULT_TEXT_OPTIONS,
        text
      }
    })
  } else if ( typeof text === 'object' ) {
    applyOverlay({
      text: {
        ...DEFAULT_TEXT_OPTIONS,
        ...text
      }
    })
  }

If you hover DEFAULT_TEXT_OPTIONS the fontSize attribute takes a number (or undefined as the attribute is optional) but in the ApplyOverlaySettingsText interface you type the optional fontsize attribute as string.

Generally it is easiest to start reading the typescript errors from the bottom up, but it takes a bit of getting used to. Generally I think that is where most people are struggling with TypeScript,

okay here's another one:
https://github.com/colbyfayock/cloudinary-util/blob/main/packages/loader/src/plugins/overlays.ts#L179
      if ( typeof text === 'object' ) {
        (Object.keys(text) as Array<keyof typeof text>).forEach(key => {
          // @ts-expect-error
          if ( !qualifiersText[key] ) return;

i have a few configuration objects set up that define what qualifiers are available. in this code, i'm checking to see if it exists, and if it does, i do something later
im getting errors when i use this pattern in this file

Hmm... this one is a bit more tricky. One thing I would start with: If you go into /constants/qualifiers
export const primary = {
  aspectRatio: {
    qualifier: 'ar'
  },
  crop: {
    qualifier: 'c'
  },
  gravity: {
    qualifier: 'g'
  },
  height: {
    qualifier: 'h'
  },
  width: {
    qualifier: 'w'
  },
} as const

try hovering the different parameters like eg. qualifier: 'w' - they are all typed as string. That could be anything. Then try adding the as const as I did.

In typeScript you really can't use strings to index objects. Example:
const parameter:string = 'ar'.
const example = object[parameter] will give you a type error.
So using the as const will help you and make your strings way more specific.

okay here's another one:
https://github.com/colbyfayock/cloudinary-util/blob/main/packages/loader/src/plugins/overlays.ts#L179
      if ( typeof text === 'object' ) {
        (Object.keys(text) as Array<keyof typeof text>).forEach(key => {
          // @ts-expect-error
          if ( !qualifiersText[key] ) return;

i have a few configuration objects set up that define what qualifiers are available. in this code, i'm checking to see if it exists, and if it does, i do something later
im getting errors when i use this pattern in this file

As pointed out above this way you will effectively try to index the qualifiersText with string - that won't work. Try this instead:
(Object.keys(options).forEach((key:keyof typeof options) => {

      if ( !qualifiersPrimary[key] ) return;
      // @ts-expect-error
      const { qualifier } = qualifiersPrimary[key];
      primary.push(`${qualifier}_${options[key]}`);
    }));

that got me closer, then it got me thinking about that list of definitions and i found this:
https://stackoverflow.com/a/62650775/844780
and it got most of that solved!
only some oddities i fix:
   if ( hasPosition ) {
      (Object.keys(position) as Array<keyof typeof position>).forEach((key) => {
        if ( !qualifiersPosition[key as string] ) return;

        const { qualifier } = qualifiersPosition[key as string];

the key as string which wondering why i need that from https://github.com/colbyfayock/cloudinary-util/blob/main/packages/loader/src/plugins/underlays.ts#L94
which interestingly i needed to fix in that file, but not overlays.ts
and trying to now solve this one:
https://github.com/colbyfayock/cloudinary-util/blob/main/packages/loader/src/plugins/overlays.ts#L187
where any instance of text[key] gives me:

 if ( hasPosition ) {
      Object.keys(position).forEach((key:keyof typeof position) => {

try this instead. Try hovering key now: They are no longer just typed as string.

is this what you mean?

gives me an erro after removing the as string when doing that

We actually have to go a step backwards here to //General options. If you hover key in line 75:
const { qualifier } = qualifiersPrimary[key]; you will see that typescript really do not understand that we are returning if the key is not in the qualifiersPrimary object - and worse yet: qualifier is typed as any 🤪.
This is actually something missing a lot in TypeScript - hopefully it will be solved soon. Until that you need to use something called a Type Predicate - this is a small helper function:
function objHasKey<T>(obj: T, key: PropertyKey): key is keyof T {
  return Object.prototype.hasOwnProperty.call(obj, key);
}

And now we can do:
 // Gemeral options

    (Object.keys(options).forEach((key:keyof typeof options) => {

      if ( !(objHasKey(qualifiersPrimary, key)) ) return;

      const { qualifier } = qualifiersPrimary[key];
      primary.push(`${qualifier}_${options[key]}`);
    }));

Now try hovering key: TypeScript now knows that key can only be "crop" | "height" | "width".
And magically qualifier is now typed as string.
You can read about type predicates here: https://www.typescriptlang.org/docs/handbook/advanced-types.html#using-type-predicates
Happy coding!

awesome thanks @LarsEjaas


Harbor UI admin用户登陆401

1)Version of docker engine and docker-compose.
Client:
 Version:      17.05.0-ce
 API version:  1.29
 Go version:   go1.7.5
 Git commit:   89658be
 Built:        Thu May  4 22:04:27 2017
 OS/Arch:      linux/amd64

Server:
 Version:      17.05.0-ce
 API version:  1.29 (minimum version 1.12)
 Go version:   go1.7.5
 Git commit:   89658be
 Built:        Thu May  4 22:04:27 2017
 OS/Arch:      linux/amd64
 Experimental: false

docker-compose version 1.15.0, build e12f3b9

2)Config files of harbor, you can get them by packaging "harbor.cfg" and files in the same directory, including subdirectory.
3)Log files, you can get them by package the /var/log/harbor/ .
Oct 20 17:43:44 <IP_ADDRESS> ui[6066]: 2017/11/20 09:43:44 #033[1;34m[router.go:829][D] | POST       | /login                                   | 8.208231ms       | match      | /login                                   | #033[0m
Oct 20 17:43:44 <IP_ADDRESS> ui[6066]: 2017-10-20T09:43:44Z [DEBUG] [security.go:283]: user information is nil
Oct 20 17:43:44 <IP_ADDRESS> ui[6066]: 2017-10-20T09:43:44Z [DEBUG] [security.go:296]: using local database project manager
Oct 20 17:43:44 <IP_ADDRESS> ui[6066]: 2017-10-20T09:43:44Z [DEBUG] [security.go:298]: creating local database security context...
Oct 20 17:43:44 <IP_ADDRESS> ui[6066]: 2017-10-20T09:43:44Z [INFO] unauthorized
Oct 20 17:43:44 <IP_ADDRESS> ui[6066]: 2017/11/20 09:43:44 #033[1;34m[router.go:829][D] | GET        | /api/users/current                       | 202.576µs        | match      | /api/users/:id                           | #033[0m

烦请帮忙看看，谢谢。

Try to restart Harbor, login again and package all logs.

Here are the harbor log:
log.zip
And the harbor installed version is v1.2.0. BTW, incorrect passwd will show Invalid user name or password. in ui, and correct passwd shows nothing, and login button would be disabled.

Do you disable the cookie in your browser?

According to the logs of proxy:
Oct 23 17:22:20 <IP_ADDRESS> proxy[6066]: <IP_ADDRESS> - "POST /login HTTP/1.1" 200 0 "http://shylf-harbor.bilibili.co/harbor/sign-in" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36" 0.006 0.006 .
Oct 23 17:22:20 <IP_ADDRESS> proxy[6066]: <IP_ADDRESS> - "GET /api/users/current HTTP/1.1" 401 1 "http://shylf-harbor.bilibili.co/harbor/sign-in" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36" 0.001 0.001 .

The POST /login got 200. But the GET /api/users/current got 401.

Thanks, I will confirm whether there is any issue on gateway.

@Colstuwjx  Would might tell us how you solved this problem?

If you can login success through the command， but error in ui.
plseas try to clean your autocache in your browser.


Add AttributeCompletion API.

Added a GetAttributeCompletions API that's consistent with current Razor's editor expectations.
Added unit tests to validate all code paths of the new GetAttributeCompletions method.

#1120

🆙 📅

Let's do a VS insertion once this is in.

You totally closed my PR. I'll never forgive you. :trollface:

Setting @ajaybhargavb 's items to Working had such a positive impact. I'm trying all kinds of new ideas to increase productivity.

Let's do a VS insertion once this is in.

I assume you want to insert dev correct?

Yes. We haven't done anything in dev yet that will break WTE 😁


Support for Xcode 10, iOS 12, etc.

          1 Warning

:warning:
Big PR

  Generated by :no_entry_sign: Danger

Hi, I had to bump some versions in wherever I could find old one 😄


[BUG] JMP crashes when scaling bodies

Steps to reproduce
Create an xml file to scale a body with JMP.
Expected result
The GUI outputs a file with xml elements <scale_body>
Actual result
The GUI outputs a file with xml elements <scale_bodies>, resulting in a crash.
Environment and GUI version
Windows 11, Opensim 4.5, GUI version 0.1

closing as fixed, please reopen if can't be verified in next build/release.


Compressed CSS

Hi Chris, Why have you started compressing your CSS? It's so unfriendly for those of us who want to see how you did something, and maybe contribute a snippet or two.

What are you talking about? This Alfred workflow does not have any css.


Improve grammar: Best practices for Azure Maps Route service

#sign-off

@stevemunk - because we don't have staging, you'll need to follow-up to make sure the live page is displaying images correctly and that links all work. thanks


Update layout styles for Onboarding component

Adjust the layout styles to match those of the design.

@lkpttn @jessleenyc thoughts on this at "tablet" size. It would help moving forward if we all 3 "sizes" (or approximations) are accounted for when passing along designs. Sometimes we can infer what a design could look like on tablet just based on seeing mobile and desktop designs, but other times we are just left with a bunch of questions.
@lkpttn we chatted with @DFurnes about the cards not having a fixed max-width and it being determined more by the size of the container they sit in. But I feel there are a few exception like in the situation above for tablet size. Thoughts? Maybe it's exclusive to just the onboarding card, or maybe there's a max-width up until it get to desktop and then the layout changes dictate its width?

It might make sense to have a container variation that has 2/3 - 1/3 columns on desktop, 1/2 - 1/2 on table, and stacked on mobile. It seems like an option we might use elsewhere. I definitely think the layout concerns should be handled by some sort of "layout" pattern, rather than baked in to the card.
(Or maybe this is a .figure.-right and the card is always a certain fixed-width on the right, and then stacks on mobile?)


cli_evaluate calls simple_evaluate with the same verbosity.

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