Photos loading into mirror but not being displayed.

Hi All,
I'm getting this error in the dev tools when I try to run MMM-GooglePhotos. Any ideas?

The photos are able to be found in Sources in dev tools but are not displayed to the mirror.

Hello,
Are you using the position "middle_third"? If so, please try using a different position.
Kind regards,
Daniel


Ingestion Endpoint in Connection String not respected in WASM standalone mode

I follwed the instructions on setting up a WASM standalone app. My connection string to App insights contains an IngestionEndpoint at the end of it. Here is an example:
InstrumentationKey=00000000-0000-0000-0000-000000000000;EndpointSuffix=applicationinsights.us;IngestionEndpoint=https://usgovvirginia-1.in.applicationinsights.azure.us/;
However, when trace events are sent to app insights, they are still going to the default endpoint: https://dc.services.visualstudio.com/v2/track
If I remove the BlazorApplicationInsights package and use the ApplicationInsightsJs file directly (and update the snippet code to contain my actual connection string), then the correct endpoint is utilized.

Hey,
Looks like when we reload the config, the connection string isnt fully parsed by the appinsights-js library.
As a workaround, you can set it manually:
builder.Services.AddBlazorApplicationInsights(config =>
{
    config.DisableTelemetry = false;
    config.ConnectionString = "InstrumentationKey=00000000-0000-0000-0000-000000000000;EndpointSuffix=applicationinsights.us;IngestionEndpoint=https://usgovvirginia-1.in.applicationinsights.azure.us/;";
    config.EndpointUrl = "https://usgovvirginia-1.in.applicationinsights.azure.us/v2/track";
});

that did the trick. thank you!


reruns used to update opt point average

Pull Request Description
What issue does this change request address? (Use "#" before the issue to link it, i.e., #42.)
Closes #1798
What are the significant changes in functionality due to this change request?
Uses successive reruns to improve opt point expected value estimates

For Change Control Board: Change Request Review
The following review must be completed by an authorized member of the Change Control Board.

[x] 1. Review all computer code.
[x] 2. If any changes occur to the input syntax, there must be an accompanying change to the user manual and xsd schema. If the input syntax change deprecates existing input files, a conversion script needs to be added (see Conversion Scripts).
[x] 3. Make sure the Python code and commenting standards are respected (camelBack, etc.) - See on the wiki for details.
[ ] 4. Automated Tests should pass, including run_tests, pylint, manual building and xsd tests. If there are changes to Simulation.py or JobHandler.py the qsub tests must pass.
[x] 5. If significant functionality is added, there must  be tests added to check this. Tests should cover all possible options.  Multiple short tests are preferred over one large test. If new development on the internal JobHandler parallel system is performed, a cluster test must be added setting, in  XML block, the node <internalParallel> to True.
[x] 6. If the change modifies or adds a requirement or a requirement based test case, the Change Control Board's Chair or designee also needs to approve the change.  The requirements and the requirements test shall be in sync.
[x] 7. The merge request must reference an issue.  If the issue is closed, the issue close checklist shall be done.
[x] 8. If an analytic test is changed/added is the the analytic documentation updated/added?
[x] 9. If any test used as a basis for documentation examples (currently found in raven/tests/framework/user_guide and raven/docs/workshop) have been changed, the associated documentation must be reviewed and assured the text matches the example.

Job Test qsubs sawtooth on 0ce5921 : invalidated by @PaulTalbot-INL
sawtooth run did not complete as expected


Update cats-tagless-macros to 0.13.0

Updates org.typelevel:cats-tagless-macros from 0.12 to 0.13.0.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Files still referring to the old version number
The following files still refer to the old version number (0.12).
You might want to review and update them manually.
project/Dependencies.scala
website/static/img/undraw_monitor.svg
website/static/img/undraw_note_list.svg
website/static/img/undraw_online.svg
website/static/img/undraw_operating_system.svg
website/static/img/undraw_react.svg
website/static/img/undraw_youtube_tutorial.svg

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.typelevel", artifactId = "cats-tagless-macros" } ]

labels: library-update, old-version-remains

TODO:

update cats-tagless-macros in derevo
release a new derevo version
update cats-tagless-macros, derevo in tofu

Closed via #603


what's wrong in eval???? VGDataLoader.split ValueError: not enough values to unpack (expected 3, got 2)

I have run the code once, everything goes right. But today, I want to check the result again ,and i run script/eval......sh, and got this :
**ValueError: not enough values to unpack (expected 3, got 2)
**
I recheck the code and error comes from here:
train_loader, val_loader = VGDataLoader.splits(train, val, mode='rel',
batch_size=conf.batch_size,
num_workers=conf.num_workers,
num_gpus=conf.num_gpus)
and the split defined here:
class VGDataLoader(torch.utils.data.DataLoader):
"""
Iterates through the data, filtering out None,
but also loads everything as a (cuda) variable
"""
@classmethod
def splits(cls, train_data, val_data, batch_size=3, num_workers=1, num_gpus=3, mode='det',
           **kwargs):
    assert mode in ('det', 'rel')
    train_load = cls(
        dataset=train_data,
        batch_size=batch_size * num_gpus,
        shuffle=True,
        num_workers=num_workers,
        collate_fn=lambda x: vg_collate(x, mode=mode, num_gpus=num_gpus, is_train=True),
        drop_last=True,
        # pin_memory=True,
        **kwargs,
    )
    val_load = cls(
        dataset=val_data,
        batch_size=batch_size * num_gpus if mode=='det' else num_gpus,
        shuffle=False,
        num_workers=num_workers,
        collate_fn=lambda x: vg_collate(x, mode=mode, num_gpus=num_gpus, is_train=False),
        drop_last=True,
        # pin_memory=True,
        **kwargs,
    )
    return train_load, val_load

It seems that split function have cls, trina, val as input ,
When calling  the function in evaluation,  the code do have less inputs.
but why i got correct reult before today????

all right , I just find that I made a stupid mistake....


Update README to say that the project is no longer maintained

xref #345

/lgtm
/approve
Perhaps we also want to change the wording in https://cert-manager.io/docs/tutorials/acme/migrating-from-kube-lego/ slightly to say it's an archived project.


Feat/export import tx final application state

Deals with https://github.com/neo-project/neo/issues/712 during export and import only.
Under development, this is the initial draft for export, not yet fully tested.

@erikzhang, what solution do you propose?

My solution is to manually copy the ApplicationLogs directory, and then the ImportBlocks plugin directly reads the json files.

We thought about that, @erikzhang, the current Application Logs folder for Mainnet at height 3687369 is 3.9G.
What do you think, @igormcoelho?
That would be the easiest way without making changes.
Furthermore, with the MPT this might be unnecessary, right?

I think there is not reason to push this for 2.x anymore.
In addition, for 3.0 we gonna have better solutions.


feat(pubsub): add schema samples

This was previously reviewed in #2022 but was kept in a branch as it was not GA yet.
Needs to be merged after https://github.com/googleapis/google-cloud-go/pull/4489 is released.

Test failure is unrelated and seems be to a failure in TestCustomerManagedEncryptionKeys. Force merging this for now.


Expose DDP connection

I believe it would be useful to expose the ddp connection in your API. In my case, I would like to listen to low-level DDP messages, and don't think I can do this with the current setup.
As a quick and dirty solution, I just added these lines to my personal copy of Meteor.js:
// Meteor.js
  ...
  connect(endpoint) {
    Data.ddp = new DDP({
      endpoint: endpoint,
      SocketConstructor: WebSocket
    });
    this.ddp = Data.ddp; // added
    ...

I just did what you did, thanks ! Coming in next release.
Do not hesitate to make pull requests ;)

Available in 1.0.0-beta3. Thanks again !

Great. Thanks!


No serial output when code compiled in Arduino IDE

Mac installation - Sonoma 14.2
Arduino 2.2.1
Reference "Spin 2 Motors" example. When compiled and uploaded in Platformio, board writes to serial terminal in VSCode and Arduino. When compiled in Arduino, board writes to neither Arudino nor VSCode serial terminal.
Troubleshooting steps tried:

replacing USB cable
replacing board (issue repeated on 2 MotorGo V1rev2 boards)
simplifying code (only serial.begin in setup and println in loop) - same issue
view in screen in terminal. same issue. no serial output observed when compiled in Arduino.
changing baud rate. did not work for 115200 or 9600.

Thanks for the detailed bug report, I was able to reproduce the bug. I believe the issue is that USB_CDC_ON_BOOT is disabled in the microcontroller settings. The serial output seems to work as expected when this is enabled.

I've created a branch that enables USB CDC on Boot by default. Can you test this branch to see if this fixes the issue.
Uninstall the motorgo boards from Arduino from the boards manager. In the Additional Board Managers URLS, paste the following URL instead: https://raw.githubusercontent.com/Every-Flavor-Robotics/motorgo-arduino/bug-1/enable-usb-cdc/board_definitions/package_motorgo_index.json
Re-install the MotorGo boards and try flashing code again.

Closed by #4


Add create-wrapper example with async demo scripts

Describe your changes
This pull request adds a create-wrapper example with async demo scripts. The create-wrapper function is a generic method that creates a wrapped reusable chat.completion.create function. It includes usage examples and dependencies.
Issue ticket number and link
n/a
Checklist before requesting a review

[ x ] I have performed a self-review of my code
[ - ] If it is a core feature, I have added thorough tests.
[ - ] If it is a core feature, I have added documentation.

:rocket: This PR description was created by Ellipsis for commit bb2b196a1e97b5c483bcb964c45acda442797d26.

Summary:
This PR introduces a generic method for creating a reusable chat.completion.create function and provides examples demonstrating its usage with different asyncio methods and structural pattern matching.
Key points:

Added a generic method to create a wrapped reusable chat.completion.create function in examples/create-wrapper.
Included three examples (run.py, gather.py, as_completed.py) demonstrating the usage of the new function with different asyncio methods and structural pattern matching.

Generated with :heart: by ellipsis.dev

I've added two utility functions to refine the initial concept I had. These additions are well documented and I've included a tests for each. Below, you'll find a brief overview of the newly added functions:
patched_create Function:
Purpose:

Simplifies the usage of the openai_client.chat.completion.create method by allowing the response_model to be automatically included in every call.
Types are maintained as well as the original create method and overload signatures.

Pass client_kwargs to openai.AsyncClient.
Pass mode: instructor.Mode through to instructor.patch.

Particularly useful for adding a typed generation function inside an abstract custom base model.

patched_create_delay_response_model Function:
Purpose:

Same as patched_create with the ability to delay adding the model until calling openai_client.chat.completion.create. This is close to the native behavior although types are maintained and the response_model must be passed as the 1st positional argument __p0.

Tests

To satiate the bots, I've included pytest tests for each of these functions within test_patched_create.py.

These utilities might prove beneficial to someone, in any case let me know if there's an even better way to wrap this up.

We're actually working on a instructor specific client soon. Which will have a bit more better support for not having to wrap any of the functions.


Suggestion: fill map[string]Type as map[string]Type{"": zeroValueOfType} instead of nil

Suppose we have the following type:
type T struct {
	B map[string]int
}

Output:
t := T{
	B: nil,
}

I believe it should output:
t := T{
	B: map[string]int{
		"": 0,
	}
}

Makes it easier in tests to fill them.

@fatih, does #5 implement your idea?


bazel build problem

First, I use 'conda install bazel==0.11.1' to install bazel 0.11.1. I use the default gcc of ubuntu 18.04.2 is 7.5.0. However, when I run 'Bazel build ...', I got these error:

It seems that the bazel can not get the gcc file?
Then, I try to use 'conda install gcc==4.8.5' to install gcc 4.8.5. But after I install gcc 4.8.5, I can not import tensorflow. Here are the errors:

I really want to know how to install the bazel and gcc? Maybe I should not use conda to install them? Thanks for you help!

It is introduced in the readme.md like bazel==10.1, gcc==5.*
If you want to using gcc=4.*, you need to try these two settings, which is used to include old version gcc.
-D_GLIBCXX_USE_CXX11_ABI=0 or -D_GLIBCXX_USE_CXX11_ABI=1

It is introduced in the readme.md like bazel==10.1, gcc==5.*
If you want to using gcc=4.*, you need to try these two settings, which is used to include old version gcc.
-D_GLIBCXX_USE_CXX11_ABI=0 or -D_GLIBCXX_USE_CXX11_ABI=1

Thanks. We use the binary installer to install bazel 0.10.1 and use the default gcc 7.5.0 of ubuntu 18.04. And I use PyTorch 0.4.1 rather than torch 0.4.0 for some reason. Now I can run the test_image.py successfully!

It is introduced in the readme.md like bazel==10.1, gcc==5.*
If you want to using gcc=4.*, you need to try these two settings, which is used to include old version gcc.
-D_GLIBCXX_USE_CXX11_ABI=0 or -D_GLIBCXX_USE_CXX11_ABI=1

Thanks. We use the binary installer to install bazel 0.10.1(do not use conda to install bazel) and use the default gcc 7.5.0 of ubuntu 18.04(do not use conda to install gcc, too) . And I use PyTorch 0.4.1 rather than torch 0.4.0 for some reason(if I use torch 0.4.0, there will be some error). Now I can run the test_image.py successfully!

Hello, could you please tell me more specifically about your environment?
I also use the binary installer to install bazel 0.10.1 and use the default gcc 7.50 of ubuntu 18.04, however, I cannot build the tf_mesh_renderer. Do you download the tf_mesh_renderer repository from  this repository or from the origin? And what is the code you run to build the rendder, just 'bazel test ...' or some other? It confuses me, if you can reply that will be very nice.

It is introduced in the readme.md like bazel==10.1, gcc==5.*
If you want to using gcc=4.*, you need to try these two settings, which is used to include old version gcc.
-D_GLIBCXX_USE_CXX11_ABI=0 or -D_GLIBCXX_USE_CXX11_ABI=1

Thanks. We use the binary installer to install bazel 0.10.1(do not use conda to install bazel) and use the default gcc 7.5.0 of ubuntu 18.04(do not use conda to install gcc, too) . And I use PyTorch 0.4.1 rather than torch 0.4.0 for some reason(if I use torch 0.4.0, there will be some error). Now I can run the test_image.py successfully!

Hello, could you please tell me more specifically about your environment?
I also use the binary installer to install bazel 0.10.1 and use the default gcc 7.50 of ubuntu 18.04, however, I cannot build the tf_mesh_renderer. Do you download the tf_mesh_renderer repository from this repository or from the origin? And what is the code you run to build the render, just 'bazel test ...' or some other? It confuses me if you can reply that will be very nice.

Hi risheng,
Thank you for using our work.
Firstly, we use tensorflow rather than pytorch.
Secondly, the bazel version and gcc version, and the tf_mesh_render are clear in the README.md.
We make changes with tf_mesh_render, so git clone --recursive https://github.com/jiaxiangshang/MGCNet.git.
The git cmd needs this.
Further, gcc version larger the 5.* is not friendly for tf_mesh_render.

It is introduced in the readme.md like bazel==10.1, gcc==5.*
If you want to using gcc=4.*, you need to try these two settings, which is used to include old version gcc.
-D_GLIBCXX_USE_CXX11_ABI=0 or -D_GLIBCXX_USE_CXX11_ABI=1

Thanks. We use the binary installer to install bazel 0.10.1(do not use conda to install bazel) and use the default gcc 7.5.0 of ubuntu 18.04(do not use conda to install gcc, too) . And I use PyTorch 0.4.1 rather than torch 0.4.0 for some reason(if I use torch 0.4.0, there will be some error). Now I can run the test_image.py successfully!

Hello, could you please tell me more specifically about your environment?
I also use the binary installer to install bazel 0.10.1 and use the default gcc 7.50 of ubuntu 18.04, however, I cannot build the tf_mesh_renderer. Do you download the tf_mesh_renderer repository from this repository or from the origin? And what is the code you run to build the rendder, just 'bazel test ...' or some other? It confuses me, if you can reply that will be very nice.

First, I change my path to the root of the ./third_part/tf_mesh/render by cd xxxxxxxxx. Then, I use this command to bulid the tf render:
bazel build ...


Device status changed in removed enrollment when same device enrolled under different user

Description:
Status of removed enrollment change to Unreachable or Inactive when same device enrolled under different user and let it to be Unreachable or Inactive.
Affected Product Version:
EMM-2.2.0
OS, DB, other environment details and versions:
PostgreSQL 9.6, RedHat 6.5
Steps to reproduce:

Create two users, user1 & user2
Enroll device as user1 and disenroll the device
Enroll the same device as user2
Turn off the device and let it to be Unreachable and Inactive

Expectation: Enrollment belonging to user2 should change the status while, removed enrollment of user1 should left without intact.
Actual: Status of both enrollments are changing

This issue has been already fixed in the latest with commit 1a957666e3bbebb9243f9d05dcbd8487948aa713


Vicky 3 dates parsed wrong

When trying to parse a vicky 3 save it will fail to parse the dates. It turns the date string into an int causing the save to be loaded wrong. For an example melt a vicky 3 file and check admirals/generals cooldown_repair_date value.

Ah, the heuristic if a date is present fails on 1.1.1  (which is encoded as 43808760), as the heuristic says "hey, we're playing vic3, anything that decodes to a pre-1700 date must not be a date".
Thanks for the report, I'll push out a fix in a couple hours.

I cut v0.4.6, which should have this fix in there (needs a few more mins to show up in github releases).
Let me know how it goes 😄
I don't think it's perfect yet, as there are some game state models that have a slightly different fixed / floating point encoding than others (like the _strength fields), but I haven't quite nailed down the pattern (it may literally just be anything that ends in _strength uses this alternative encoding). So in your travels if you come across, additional inconsistencies, let me know the pattern and I can adapt it.
EU4 spoiled me with consistent 32bit and 64bit fixed / floating point encoding

Awesome thank you, will let you know when I do the next edit round for our mp game.
To go by what is fixed/floating point, you can use as a rule of thumb that if it is something that needs to be synced over the network it will be fixed point (i.e anything that affects gameplay), if it is cached values for the interface etc it will be a floating point


Changed launch script for bash shell to launch Brackets in a non blocking way

MING32/git bash surprisingly understands start command. So changed the script to launch Brackets in non- blocking mode. However this does not work well with CYGWIN. So retained the earlier way of launching Brackets.exe in blocking mode in CYGWIN.

@rroshan1 @sprintr Could you review this PR?

:cool: Works just as expected on Git bash

@rroshan1 I will change the name of the OF. About the ".". this usually is the case with CYGWIN. This was something I found in my unit tests.

Changes look good. Merging.


[DO NOT MERGE] Porting 3d pooling support to master-rocm-enhanced

This PR is to port the ROCm 3d pooling support from the develop-upstream to the master-rocm-enhanced branch.
We need to have a few pre-reqs in place before we can take this PR

[ ] identidy a commit on the upstream/master branch for which all ROCm CI jobs (rocm, rocm-cpp, rocm-xla)  are passing, aka the ROCm CI qualified commit
[ ] rebase the master-rocm-enhanced branch to the ROCm CI qualified commit
[ ] Setup ROCm CI jobs to run on PRs filed on the master-rocm-enhanced branch

The purpose of filing this PR now is to assist with filtering out the changes in this PR, from the set of diffs in develop-upstream that we need to triage before we abandon that branch
/cc @deven-amd

closing out this PR since 3D pooling functionality has been upstreamed, and this PR is no longer needed


Application hangs when toggling "Disable" properties on CesiumDataPrim if CWT is loaded

To reproduce:

@corybarr do you know if this happens with earlier version of the extension, pre Kit 105.1?

Still early to say, but adding omnihydra.parallelHydraSprimSync = false to cesium.omniverse.dev.kit almost completely fixes the hangs for me. And as a bonus, it doesn't show white tiles.
If the setting works for others I can open a PR to add it to cesium.omniverse.dev.kit and to the Python code.

I'm not able to hang the app with omnihydra.parallelHydraSprimSync = false. It's currently pretty easy for me to hang the app without it. For both of the hangs, the last console output was an error message about an Sprim:
[omni.usd] Coding Error (secondary thread): in _MarkSprimDirty at line 699 of W:\ac88d7d902b57417\USD\pxr\imaging\hd\changeTracker.cpp -- Failed verification: ' it != _sprimState.end() '

I printed the carb settings for USD Composer 2023.2.0 and noticed that it's false there too. I feel pretty confident this is the right fix for us. I'll open a PR.
  "omnihydra": {
    "staticMaterialNetworkTopology": false,
    "parallelHydraSprimSync": false
  },


[PROFILE ADDITION]

Profile screenshot

Hi eddie I custmised my github profile with the help of your Course


Overlay on a Node in Sigma JS

Folks, Trying to create an overlay which is - basically a screen which pops up on a node click and displays some info or the zoomed in version of the selected node. It is possible to do in sigma js? haven't been able to find info regarding this.
screen should pop on the below event,
s.bind('clickNode', function(e) {
alert("Hi Node");
});
Thanks :)

Looks like you're looking for a tooltip, maybe look at sigma.plugins.tooltips

@mdamien nope Im not looking for a tooltip, an overlay , where in the background gets disabled (on node click) and I would be able to display info or images on the overlay; like you have something in jQuery!

@devgitk ok, I will let the sigma maintainers answer. Maybe you're looking for something like:
s.bind('clickNode', function(e) {
displayModal("Hi Node");
});

Where displayModal could be anything (jquery modal, bootstrap,...)

Hello @devgitk. @mdamien is right. You should bind a listener on the clickNode event and then scaffold your overlay.

@mdamien  and @Yomguithereal  thanks :) ll look into it!


Typo "a Azure DevOps" > "an Azure DevOps"

https://learn.microsoft.com/en-us/azure/devops/server/admin/move-across-domains?view=azure-devops-2022

#PingMSFTDocs
Thank you for your feedback!
The issues in this repo are for documentation feedback.
If you are submitting your documentation feedback issue directly through GitHub, please provide the URL of the article so we can route the feedback to the correct author.
Please report Azure DevOps or TFS software bugs, feedback, or questions in the Azure DevOps Developer Community.

Thanks, we'll fix this shortly.


Could I use React Router?

Excuse me , I have never been to build a ios app.
but i have used reactjs + flux + react-router to build a web app. So I'm confused that if i can or need to use react router.
Can someone give me some help?

Most people use Navigator instead which is in react-native core.
This module will work with either solution


instructions for VS for Mac?

This seems to be Windows-specific.  Where is the VS for Mac instructions??

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: a3b20c46-c5f1-3a2a-738d-8aa8e69cf10c
Version Independent ID: 7055e752-859b-6106-6802-70010d0305d9
Content: NuGet Package Restore
Content Source: docs/consume-packages/Package-Restore.md
Product: nuget
GitHub Login: @JonDouglas
Microsoft Alias: jodou

Visual Studio for Mac also has documentation around this subject!
https://docs.microsoft.com/en-us/visualstudio/mac/nuget-walkthrough?view=vsmac-2019
They should share similarities of automatic & manual restore.

@JonDouglas , thanks!  Probably these two pages should be linked together.

@mrward or @jmatthiesen thoughts on above?
@tele-bird we can probably add a Visual Studio for Mac section that links to the same doc provided above.


new problem

Me again.:-)
When I tried to translate the sentence "field managements across China, was developed to estimate rice grain yield and NUE in various rice production regions" to Japanese , I get nothing.

Run the following google-translate -vv --disable-cache -d ja <your sentence> and paste the output between triple backquotes (e.g. ```output```) here.

Sorry, I don't have a Linux environment.
I just write the following code and run it and get none.
import google_translate
translator = google_translate.GoogleTranslator()
print translator.translate("field managements across China, was developed to estimate rice grain yield and NUE in various rice production regions", "ja")

Try running the following in the Python interpreter window
import logging
logging.basicConfig(level=logging.DEBUG)

import google_translate

# Make sure it says 0.2.2
print google_translate.__version__

translator  = google_translate.GoogleTranslator()
print translator.translate("field managements across China, was developed to estimate rice grain yield and NUE in various rice production regions", "ja")

Thanks.  I re-install the program and get version 0.2.2. Finally, get the right result. :)
You can close this issue.

Sorry, it still doesn't work. I am too happy to see Japanese chars. But the result is still None.
The output is
E:\google-translate-master>python
Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:42:59) [MSC v.1500 32 bit (
Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.

import logging
logging.basicConfig(level=logging.DEBUG)
import google_translate
Make sure it says 0.2.2

... print google_translate.version
0.2.2

translator  = google_translate.GoogleTranslator()
DEBUG:google_translate.cache.Cache:Cache initiated max_size: (500), valid_period
: (604800.0)
DEBUG:google_translate.utils:Trying to load content from file: u'E:\google-tran
slate-master\google_translate\data\languages'
DEBUG:google_translate.utils:Ignoring line: '#Chinese Simplified:zh-cn'
DEBUG:google_translate.utils:Ignoring line: '#Chinese Traditional:zh-tw'
print translator.translate("field managements across China, was developed to
estimate rice grain yield and NUE in various rice production regions", "ja")
DEBUG:google_translate.translator.GoogleTranslator:Max input size: (1980)
DEBUG:google_translate.translator.GoogleTranslator:Unquoted text size: (117)
DEBUG:google_translate.translator.GoogleTranslator:Quoted text size: (153)
INFO:google_translate.translator.GoogleTranslator:Translating word: 'field manag
ements across China, was developed to estimate rice grain yield and NUE in vario
us rice production regions'
DEBUG:google_translate.translator.GoogleTranslator:src_lang: 'auto' dst_lang: 'j
a'
DEBUG:google_translate.cache.Cache:Searching cache for key: 'field managements a
cross China, was developed to estimate rice grain yield and NUE in various rice
production regionsjaauto'
INFO:google_translate.cache.Cache:Item not in cache
INFO:google_translate.translator.GoogleTranslator:Building the request
DEBUG:google_translate.translator.GoogleTranslator:Request url: u'https://transl
ate.google.ru/translate_a/single?client=t&sl=auto&tl=ja&dt=t&dt=bd&dt=rm&dt=qca&
ie=UTF-8&oe=UTF-8&tk=666080.794028&q=field%20managements%20across%20China%2C%20w
as%20developed%20to%20estimate%20rice%20grain%20yield%20and%20NUE%20in%20various
%20rice%20production%20regions'
DEBUG:google_translate.translator.GoogleTranslator:URL size: (284)
INFO:google_translate.translator.GoogleTranslator:Attempt no. 1 out of 5
DEBUG:google_translate.utils:Headers: [(u'Host', u'translate.google.ru'), (u'Acc
ept-Language', u'en-US,en;q=0.8'), (u'Accept-Encoding', u'gzip, deflate, sdch'),
(u'Referer', u'https://translate.google.ru/'), (u'Connection', u'close'), (u'Ac
cept', u'/'), (u'User-Agent', u'Mozilla/5.0')]
DEBUG:google_translate.utils:Proxy: None
DEBUG:google_translate.utils:Socket timeout: (10.0)
INFO:google_translate.utils:Sending request
INFO:google_translate.translator.GoogleTranslator:Parsing reply
DEBUG:google_translate.translator.GoogleTranslator:Raw data: [[["様々な米生産地
における米収量とNUDEを推定するために、中国全域の圃場管理を開発した","field manag
ement across China, was developed to estimate rice grain yield and NUDE in vario
us rice production regions",null,null,3],[null,null,"Samazamana Amerika seisanch
i ni okeru Amerika shūryō to NUDE o suitei suru tame ni, Chūgoku zen'iki no hojō
kanri o kaihatsu shita"]],null,"en",null,null,null,0.59784472,["field \u003cb\u
003e\u003ci\u003emanagement\u003c/i\u003e\u003c/b\u003e across China, was develo
ped to estimate rice grain yield and \u003cb\u003e\u003ci\u003eNUDE\u003c/i\u003
e\u003c/b\u003e in various rice production regions","field management across Chi
na, was developed to estimate rice grain yield and NUDE in various rice producti
on regions",[1],null,null,true],[["en"],null,[0.59784472],["en"]]]

DEBUG:google_translate.translator.GoogleTranslator:JSON data: [[['様々な米生産地
における米収量とNUDEを推定するために、中国全域の圃場管理を開発した', 'field mana
gement across China, was developed to estimate rice grain yield and NUDE in vari
ous rice production regions', None, None, 3], [None, None, u"Samazamana Amerika
seisanchi ni okeru Amerika shūryō to NUDE o suitei suru tame ni, Chūgoku zen'iki
no hojō kanri o kaihatsu shita"]], None, 'en', None, None, None, 0.59784472, ['
field management across China, was developed to estimate rice grai
n yield and NUDE in various rice production regions', 'field manag
ement across China, was developed to estimate rice grain yield and NUDE in vario
us rice production regions', [1], None, None, True], [['en'], None, [0.59784472]
, ['en']]]
DEBUG:google_translate.translator.GoogleTranslator:Extracted data: {'original_te
xt': 'field management across China, was developed to estimate rice grain yield
and NUDE in various rice production regions', 'extra': {}, 'has_typo': True, 'ro
manization': 'field management across China, was developed to estimate rice grai
n yield and NUDE in various rice production regions', 'src_lang': 'en', 'transla
tion': '様々な米生産地における米収量とNUDEを推定するために、中国全域の圃場管理を
開発した', 'match': 0.59784472}
DEBUG:google_translate.cache.Cache:Adding new item to cache, key: 'field managem
ents across China, was developed to estimate rice grain yield and NUE in various
rice production regionsjaauto'
None

You get None because Google detects a typo (has_typo = True). You have two options here you can either correct all the typos in the text or use the get_info_dict method which returns the complete info dictionary and gives you more control.
Something like this should do the trick:
import google_translate

translator = google_translate.GoogleTranslator()

info_dict = translator.get_info_dict(<text here>, "ja")
print info_dict["translation"]

@wotanzheng if the above solution works please close this issue.

Thanks. it works on one sentence. I am just trying to txt batch translation.
Sorry. I forgot to close it.

Since the command line utility does not work for Windows you can copy the code from https://github.com/MrS0m30n3/google-translate/blob/master/bin/google-translate#L135 (until line 155) and make some changes to make it run. Also, you should change line-150 to use the get_info_dict method like this:
info_dict = translator.get_info_dict(utils.unquote_unicode(text), args.dst_lang, args.src_lang)
trans_content.append(info_dict["translation"])

Thank you so much:-) I'll try it.

Here is a quick script i wrote just now. You can adjust it to make it better
import re
import sys

from google_translate import GoogleTranslator, utils

encoding = "UTF-8"

NEWLINE_REPLACE = '\n\u2622\n'

NEWLINE_REPLACE_PATTERN = re.compile('\n?\u2622\n?', re.UNICODE)

def translate(filename, dst_lang):
    with open(filename) as input_file:
        translator = GoogleTranslator()

        content = [line.strip().decode(encoding) + NEWLINE_REPLACE for line in input_file]

        content = ''.join(content)

        quoted_punctuations = [utils.quote_unicode(char) for char in utils.PUNCTUATIONS]
        quoted_content = utils.quote_unicode(content)

        # Split the text into chunks of max size and translate each one
        trans_content = []
        for text in utils.split_text(quoted_content, GoogleTranslator.MAX_INPUT_SIZE, quoted_punctuations):
            info_dict = translator.get_info_dict(utils.unquote_unicode(text), dst_lang)

            trans_content.append(info_dict["translation"])

        trans_content = ' '.join(trans_content)

        # Replace the NEWLINE_REPLACE chars with the newline char
        results = NEWLINE_REPLACE_PATTERN.sub('\n', trans_content)

        print results

if __name__ == "__main__":
    if len(sys.argv) != 3:
        print "Usage: ./translate-file.py <file> <dst-lang>"
        exit(1)

    translate(sys.argv[1], sys.argv[2])

Thank you so much. You are so nice. I will test the program tomorrow.:-P


Fix issue with LZSS compression interactive encoding text incorrectly

This PR addresses a bug in the LZSS interactive where the text is not being encoded correctly for some strings.
The problem
The sliding window and encoded message are initialised to the first 6 characters. This means the first 6 characters can never be pointers - even if there are repeating strings within these 6 characters. This does not work correctly for small strings or for strings of a repeating nature, e.g ababababababab.
Changes

Initialise sliding window and encoded message to only contain the first 2 characters (minimum match length).
Raise max length of match to 16 (4 bits). This used to be 5 which is unusually small.
Replace space characters in the encoded message with the open box character. This addresses part of #1253
Add small note under the encoded text stating that spaces are replaced with the open box character.

Resolves #1271

Also this sentence in the chapter content:

The options in the interactive above allow you to require the replaced length to be at least two characters, to avoid replacing a single character with a reference.

There are no replaced length options for the interactive, so please reword this sentence


purge-cluster: Add support for user prompt

Add support for user prompt before purging the cluster. This
ensure that accidental invocation of purge-cluster won't
purge the cluster. Defaults to no purging, unless user either
says 'yes' on the prompt or invokes the playbook with:
-e ireallymeanit=yes. This also aligns neatly with ceph cli's
--yes-i-really-mean-it option
Signed-off-by: Deepak C Shetty<EMAIL_ADDRESS>

@leseb done, posted next patchset

Could you please add the instruction with -e ireallymeanit=yes into the playbook as well?

@leseb I think ben's patch was not merged by the time i sent the first one in this series.
I will send again with rebase.
Reg. adding the instruction you mentioned, it was not clear whether you wanted to add it as part of the comments in yml file or as part of the msg, so i added in both :)
Will rebase and send again

Hmm for some reason my pull req to update my local repo, also is being listed, along with the
actual patch... investigating

@leseb rebased my patch on top of latest ceph/master.


Current implementation to block cd-undo will break undo chain

User is unable to undo anything before any cd command as the current solution to the cd-undo bug blocks any undo operation on cd.
Related to #201
Problem: Undo/redo works by capturing the current Anakin state every time another command is executed and storing it in an Array. Calling undo or redo will replace the current Anakin with a captured version from the Array.
This assumes that the entire Anakin is immutable, however the current implementation of cardlist in Anakin is a mutable structure. This creates a problem when the cardlist is modified without the intention of changing it permanently. Most notably, when a cardlist is cleared via an undo following a cd command, the cardlist of that deck is erased permanently (See #191).
Potential Solution(s):
Implement immutable Anakin: Every time Anakin is committed, create an deep clone of Anakin to be stored in the VersionedAnakin StatePointer.
Attempted Solutions:
Implement immutable decks: Cards lists cannot be edited directly. Any Card update operation must go through the Deck. Any time a Deck or its Cards are updated, create and return a new Deck to Anakin.
Problem: Creating a new Deck will break the link between Anakin's decklist and the Deck, meaning to say no deck changes will be permanent.

I suggest disabling undo for cd and cd .. commands because they're basically the opposite of each other. So instead of undoing, user can just cd to undo cd .. and vise versa.


[Bug] De-sync when macros change

Problem
Whenever a macro file is changed, Tangerine doesn't recompile the entire config, leaving some files that used those (now changed) macros to become outdated.
Solution
Check if any macro file has changed and recompile the entire config.

@alexmozaidze This is not really possible with current architecture of tangerine. You should just use :FnlCompile! to force compile all files. the only way to keep track of macro files would be to maintain a dependency graph of every file, which will just turn tangerine into hotpot.


Create forking.txt

what

if your on mobile, for somereason there is no fork button, just go to the main repo page and add /fork to the end of the page


How to access MySQL service from VM in workspace?

Description
In my Azure TRE deployment I am trying to access a MySQL service that I've deployed in my workspace. The MySQL service details tab gives me the host name, but I don't have the username or password that I need to connect to it.
Looking in the Terraform code, it's clear a random password is generated, but how do I find out what it is?
Bonus points, there doesn't seem to be any documentation for the MySQL service in the AzureTRE documentation site?

Hi @TonyWildish-BH the password gets stored into key vault so currently you would need access to the key vault secret.
Yes I've noticed there's no documentation for the MySQL service, I've raised a separate issue for the documentation. #3958

Thanks. I've looked in the vault in my workspace, and found the password. However, I don't see how this is supposed to get from the vault to the user.
I don't want users going into the Azure portal to dig into the vault, and I don't want to have to go digging into it myself every time a user sets up a MySQL service, so what's the recommended way for a workspace admin to get their MySQL password?

I am aware of this being used where the researcher was granted cli access to the KeyVault.
However another approach discussed, probably better, but never implemented was to deploy https://github.com/phpmyadmin/phpmyadmin alongside the service to provide access and allow users to mange MySQL.


[Core feature request] Support for getting full uses string and action inputs as string

This time I have an actually rather specific request.
I'm in the need of retrying a step on error due to environmental flakiness.
I found an action that seems to be very nice for that and not only supporting run actions, but also many regular and docker actions: https://github.com/marketplace/actions/retry-action
For the non-run actions, you give it the uses string and the action inputs as YAML-style string.
It would be nice if we had some possibility to support this nicely using this lib.
Currently, in simple cases, i. e. only single-line values and no need for YAML escaping due to reserved keywords or similar, you can do something like (of course in the end refactored into some util extension function):
val setupJava11 = SetupJava(
    javaVersion = "11",
    distribution = Temurin
)

uses(
    name = "Setup Java 11",
    action = WretryAction(
        action = setupJava11.let {<EMAIL_ADDRESS>},
        with = setupJava11.toYamlArguments().entries.joinToString("\n") { (key, value) ->
            "$key: $value"
        }
    )
)

But this is a bit ugly, you need to copy it between projects, and more complex cases like escaping needed or multi-line strings are not supported by this.
It would be awesome if we would have some methods helping with this so that it more looks something like:
val setupJava11 = SetupJava(
    javaVersion = "11",
    distribution = Temurin
)

uses(
    name = "Setup Java 11",
    action = WretryAction(
        action = setupJava11.usesString,
        with = setupJava11.inputsYaml
    )
)

Quick idea, haven't tested it. How about making https://github.com/typesafegithub/github-workflows-kt/blob/0bea0bf49cabdce357263211c7f1f27a75424ec4/github-workflows-kt/src/main/kotlin/io/github/typesafegithub/workflows/domain/actions/Action.kt#L10 public, and then retrieving the args with https://github.com/typesafegithub/github-workflows-kt/blob/0bea0bf49cabdce357263211c7f1f27a75424ec4/github-workflows-kt/src/main/kotlin/io/github/typesafegithub/workflows/domain/actions/Action.kt#L6 and passing them to the retry action with _customArguments?

Right about the first part I guess, hence the naming I used :-)

The second part is probably not so easy, as

the values in toYamlArguments() are not yet yamlified
would be serialized as "sub-map", not as String
needs to then specify all inputs in _customArguments

So
val setupJava11 = SetupJava(
    javaVersion = """
        11
        12
    """.trimIndent(),
    distribution = Temurin
)
uses(
    name = "Setup Java 11",
    action = WretryActionMain(),
    _customArguments = mapOf(
        "with" to mapOf(
            "action" to setupJava11.usesString,
            "with" to setupJava11.toYamlArguments()
        )
    )
)

would become
- id: 'step-4'
  name: 'Checkout'
  uses: 'actions/checkout@v4'
- id: 'step-5'
  name: 'Setup Java 11'
  uses: 'Wandalen/wretry.action/main@v3'
  with:
    action: 'actions/setup-java@v4'
    with:
      java-version: |-
        11
        12
      distribution: 'temurin'

while as far as I understood their docs it would need to be
- id: 'step-4'
  name: 'Checkout'
  uses: 'actions/checkout@v4'
- id: 'step-5'
  name: 'Setup Java 11'
  uses: 'Wandalen/wretry.action/main@v3'
  with:
    action: 'actions/setup-java@v4'
    with: |-
      java-version: |-
        11
        12
      distribution: 'temurin'

I've had a quick look at their sources and they use the with string and give it to js-yaml's load method to parse it: https://github.com/Wandalen/wretry.action/blob/js_action/src/Common.js#L104-L105
I'm not sure whether GHA would accept an actual YAML map there and make it an actually parseable YAML string before giving it to the action?

No it does not:

Invalid workflow file: .github/workflows/test.yaml#L35
The workflow is not valid. .github/workflows/test.yaml (Line: 35, Col: 11): A mapping was not expected

See https://github.com/typesafegithub/github-workflows-kt/pull/1584, making internal Any.toYaml() public does the job, we could consider if exposing it this way is the best idea. Among other problems, I'm afraid of this extension function being present in the scope of virtually any object (Any), thus cluttering the autocomplete and slowing down the IDE. I'd rather create something similar to toYamlArugments(), like an extension function on Action called toYamlArgumentsAsString().
But yeah, this works:
val setupJava11 = SetupJava(
    javaVersion = "11",
    distribution = SetupJava.Distribution.Temurin,
)

uses(
    name = "Setup Java 11",
    action = WretryAction(
        action = setupJava11.usesString,
        with = setupJava11.toYamlArguments().toYaml(),
    )
)

And maybe use a multi-line String in the e2e test. :-)
Do you really think Any.toYaml significantly slows down IDE completion?
Well, either way, would be fine for the retry action of course.
The toYaml might be helpful in other situations we both do not envision right now.
But specifically for the retry action toYamlArgumentString or similar is sufficient of course.
Actually right now it is a run action I need retried, so this change is more for when I need to retry something else in the future which certainly can happen. :-D

Do you really think Any.toYaml significantly slows down IDE completion?

This one extension - no, but it's generally a bad pattern to extend such general scope IMO. Imagine we follow this pattern for a few more extensions, and other libraries do the same. Then suddenly after pressing the dot in the context of any object, we get extensions that have little or nothing to do with what the user wants.
I think we can go with toYamlArgumentString for starters, and then see if it's enough in practice.
Regarding exposing usesString, we can do it right away if you want! Feel free to post a PR.

Actually, both changes are rather trivial :-)


Nick: Watch newchinaeat.com

Nick requests the watch of the watch_keyword newchinaeat\.com. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

newchinaeat\.com has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Approved by Jeff Schaller in Charcoal HQ


Payload refactoring

Payload refactoring

some goals

unify how we handle various types of payloads
2 unify client/server implementation
3 it needs to be backward compatible with existing clients

note: this is only about how we send payload

added streamer decorator for coroutine support as data provider
for usage check test_client_functional.py::test_POST_STREAM_DATA

@kxepal is this content-disposition right? inline; filename="test.txt"; filename*=utf-8''test.txt

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@5500a39). Click here to learn what that means.
The diff coverage is 94%.

@@            Coverage Diff            @@
##             master    #1664   +/-   ##
=========================================
  Coverage          ?   94.97%
=========================================
  Files             ?       36
  Lines             ?     7406
  Branches          ?     1272
=========================================
  Hits              ?     7034
  Misses            ?      244
  Partials          ?      128

Impacted Files
Coverage Δ

aiohttp/payload_streamer.py
100% <100%> (ø)

aiohttp/http_message.py
91.95% <100%> (ø)

aiohttp/init.py
100% <100%> (ø)

aiohttp/abc.py
98.18% <100%> (ø)

aiohttp/client_reqrep.py
96.19% <91.3%> (ø)

aiohttp/payload.py
92.74% <92.74%> (ø)

aiohttp/multipart.py
90.9% <94.11%> (ø)

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 5500a39...94a233d. Read the comment docs.

@kxepal I need you to review MultipartWriter related changes specifically

I'll take a second look at the evening if it wouldn't be too late (:
Massive changes, but I like the way it goes.

accidentally removed branch, now GitHub does not allow reopen PR.
@kxepal let's continue here, in any case I am mostly done with refactoring.

@asvetlov comment?


Long Press does not appear to work on Android 5.x

Steps to reproduce:

Use Android 5.x
Open Tables
"Long press" a table in the list of downloaded tables

Expected behavior: A menu with further options for the table is meant to appear (delete table, rename, etc.)
Observed behavior: Nothing happens

Fixed or not an issue as of RC2 or earlier


According to the official example, an error is reported after introducing the corresponding components as needed.

Version
5.1.2
Reproduction link
https://codesandbox.io/embed/magical-dew-r7jyd?fontsize=14&hidenavigation=1&theme=dark
Steps to reproduce
According to the official example, an error is reported after introducing the corresponding components as needed.
What is expected?
Normal operation
What is actually happening?
An error occurred

The error disappears after the full quantity is introduced

It needs to install TransformComponent if you are using dataset transforming.
import {
    DatasetComponent,
    TransformComponent
} from "echarts/components";

echarts.use([DatasetComponent, TransformComponent]);

I think this should be mentioned especially in the documentation and example page.

@plainheart Thanks, it seems to work.

There's a problem here. How can I fix it.

@pissang Ok, thanks。

https://echarts.apache.org/examples/zh/editor.html?c=data-transform-multiple-pie
This problem also arises here.

Thanks. All examples with data-transform have the same issue.


Test against Ruby 2.6 and fix Travis

@shishirmk friendly ping ;)

Resolves #371?

I think so.

I'll reach out to @shishirmk and see if we can get this moving along :) Sorry for the delay!


The book title should be italicized

At https://beta.rust-lang.org/learn, the book title should be italicized.
Currently

Affectionately nicknamed “the book,” The Rust Programming Language will give you an overview of the language from first principles. You’ll build a few projects along the way, and by the end, you’ll have a solid grasp of the language.

At first glance, it's hard to tell if "The Rust Programming Language" refers to the book or the language. Italics makes it unambiguous:

Affectionately nicknamed “the book,” The Rust Programming Language will give you an overview of the language from first principles. You’ll build a few projects along the way, and by the end, you’ll have a solid grasp of the language.

i would happily accept a PR for this, nice catch!


add systemd config

Summary
Add an example configuration file.
This configuration file is what I actually use on UbuntuServer.
Related issues
Changes these areas

[ ] Bugfixes
[ ] Feature behavior
[ ] Command line interface
[ ] Configuration options
[ ] Internal architecture
[ ] Snapshot data layout on disk

looks good, thanks!
do you mind swapping all the archive-box strings with archivebox? we don't use the dash form anywhere else so it makes sense to be consistent

of course


Have SQL JOB message appear only once then remember my seting

Describe the enhancement
Is it feasible to make the start up question remember what I asked it to do and not ask unless the question is not found in the settings?
I typically do not want to start the server job (so I click No), so I am okay with being asked if I attempt to do an action that requires it.
To Reproduce
Steps to reproduce the behavior:

Start up product
Connect to IBM i extension
Message appears, every time.

Screenshots

Environment

OS: [Windows 10]
VS Code [1.81]
Extension Version [e.g. 0.4.1]

Additional context

Seems to me like we need a 'Never' option?

I don't know, but whenever you try an action like run an SQL statement from an .SQL or .INB document then it routes the statement through the new DB processor and ask to start the job anyway (if not started), so maybe its a no setting found message instead?
I just see a lot more notifications and questions pop up with the last few releases, they tend to quietly go away, so maybe I am making more of it than I should.
But if Never allowed the message to Never appear then I am good with that direction.

Makes sense, but for the record, you will only see that message if you try to run a statement and no job is running.

That is a direction I would prefer unless there is something that I don't realize needs the SQL JOB and wouldn't ask me to start it.

Most things in the extension use the SQL job, though, including the schema browser (and soon, the SQL editor).
What tasks do you expect to accomplish without an SQL job?

I don't use the DB2 for i extension that much and when I do use it the extension will ask me to start a job, which is pleasant to me.  I was just wondering if the initial start up message mentioned in the OP can be set to remember my choice after the first time I select it.

There are now four options:

Yes - just this once
Always - always start a job up for me
No - no, just this once
Never - use this to never be asked on startup again


Support OPA query evaluation in CI

Description
We have the ability in our engine to output errors related to queries execution. We now have unit tests that execute for each query, but each query can run with all the present samples/all unit test samples. We're getting errors that are not visible in the unit tests, but should be fixed before merging into master.
We should then add a check on our CI to validate the exit status when running our program with all of our samples and check the exit status code is 0

Closed by PR #966


GROOVY-3270: GroovyConsole: Configurable output area size

Based on the solution started byJohn Wagenleitner.

Thanks!


Question: Is reveal possible to return?

I love reveal effect, I think this is one of the souls of Fluent Design (the other is acrylic). I noticed that the new design no longer has reveal, is it possible to return?

@chigy had said they were not happy with Reveal and are adding animations to controls to meet the same goal of indicating interactive controls on hover.
There was a proposal that was discussing possible changes, but it seemed to not go anywhere
https://github.com/microsoft/microsoft-ui-xaml/issues/1126
They may be open to future ideas, but are not actively working on a replacement for now.
@chigy we are going away with reveal effect. With the new styles of visuals, reveal just does not work as an effective visual effect to express interaction. We are looking into micro-animations or other types effects (you might have seen in some other controls we are working on) to ensure controls get the interaction communicated. That said, I would say, consider this as we are halting on reveal. We may find a good use for it in the future (or not...). We just haven't found effective one at the moment...

We try to be thoughtful on adding effects or visual feedback and be systematic about it. We are currently busy with the visual refresh this is not something we are focused on at the time.

@chigy had said they were not happy with Reveal and are adding animations to controls to meet the same goal of indicating interactive controls on hover.
There was a proposal that was discussing possible changes, but it seemed to not go anywhere
https://github.com/microsoft/microsoft-ui-xaml/issues/1126
They may be open to future ideas, but are not actively working on a replacement for now.
@chigy we are going away with reveal effect. With the new styles of visuals, reveal just does not work as an effective visual effect to express interaction. We are looking into micro-animations or other types effects (you might have seen in some other controls we are working on) to ensure controls get the interaction communicated. That said, I would say, consider this as we are halting on reveal. We may find a good use for it in the future (or not...). We just haven't found effective one at the moment...

We try to be thoughtful on adding effects or visual feedback and be systematic about it. We are currently busy with the visual refresh this is not something we are focused on at the time.

Please don't get rid of it. WinUI on the desktop is in desperate need of any kind of visual flourish it can get - it looks barren and lifeless as it is. And it appears as though the acrylic material isn't available in desktop apps as well. If that's the case, that's again a real shame, for the same reason.

Please don't get rid of it. WinUI on the desktop is in desperate need of any kind of visual flourish it can get - it looks barren and lifeless as it is. And it appears as though the acrylic material isn't available in desktop apps as well. If that's the case, that's again a real shame, for the same reason.

Microsoft got rid of Reveal because it's hard to implement on their websites efficiently and users do except a similar look across platforms.

Microsoft got rid of Reveal because it's hard to implement on their websites efficiently and users do except a similar look across platforms.


Factor out common test setup in DefundChannel tests

Sharing common test setup makes it easier to reason about how tests differ from each other. This PR is a refactor.
This work follows https://github.com/statechannels/statechannels/pull/3257

(This comment feels like deja vu.)
This PR claims it is "factoring out common test setup", but the first commit makes a significant change to the channel-closer protocol.
Am I reviewing the correct changeset?

(This comment feels like deja vu.)
This PR claims it is "factoring out common test setup", but the first commit makes a significant change to the channel-closer protocol.
Am I reviewing the correct changeset?

I think we need to come up with a way to signal that PRs are stacked. I tried to signal that by stating that this work follows up on another PR. But that obviously was not clear enough.

@andrewgordstewart This PR is more reasonable to review now.


Initial authorization

Hello @simonrob ,
thank you very much for the contribution. I am using Debian server without GUI and I am trying to set proxy for SMTP and IMAP.
First: suggestion

I've spent some time looking at the errors while starting py script and at the end I figured it out I need to install Python 3 and run script with explicit python3 command

Second: Authorization error

I've managed to start the proxy which is listening to request
I've reconfigured my e-mail service to use port 1587 and localhost (for SMTP)
when I try to send e-mail I get error message in my e-mail service "An error occurred while sending mail (535 5.7.8 Authentication credentials invalid. Email OAuth 2.0 Proxy: Login failed for account<EMAIL_ADDRESS>- please check your internet connection and retry )"
this error is understandable as I haven't done initial authorization
I tried to run script with --external-auth --no-gui and --local-server-auth --no-gui but in both cases I get proxy error "Caught exception while requesting OAuth 2.0 credentials for<EMAIL_ADDRESS>{'error': 'unsupported_grant_type', 'error_description': "AADSTS70003: The app requested an unsupported grant type<EMAIL_ADDRESS>ID: xxxxx\r\nCorrelation ID: xxxxxx\r\nTimestamp: 2023-01-18 23:53:27Z", 'error_codes': [70003], 'timestamp': '2023-01-18 23:53:27Z', 'trace_id': 'XXXX', 'correlation_id': 'XXXXX'}"

Can you please share what I am doing wrong? I've red all documentation and other support cases but cannot find the cause.
Thank you in advance.

run script with explicit python3 command

The readme does already mention the need to use Python 3.6 or later. python3 is normally just an alias of python.

'error': 'unsupported_grant_type', 'error_description': "AADSTS70003: The app requested an unsupported grant type

This is the root of the issue you are encountering, and is because your O365 configuration either does not support or is not set up properly for the OAuth flow you are requesting. It is best to start with the default configuration first before trying more advanced setups.

It is best to start with the default configuration first

I've tried with default configuration but got the same error. I'll check O365 configuration once again and get back with results.

I got it working! Thank you very much Simon


Deploy to diversity.buffer.com

Hey there @davidgasquez and @michael-erasmus! 👋
Thanks again for helping out with this. I pulled the rocker/shiny image instead of the rocker/tidyverse one for this -- everything seems to be working properly for me when I run the app locally! 😄
Please let me know if there's anything at all I can help out with here. I really appreciate your help! 🌮

Hey there @jwinternheimer!
I copied the configuration we had in the segmenter and deployed the dashboard at <IP_ADDRESS>.
Sadly, the app times out too :cry:. I think we'll need to place these apps behind a reverse proxy like Nginx. I'll need to explore this option further! :mag:

Hey @davidgasquez, thanks so much for that! Aw dang, that's a bummer about the app timing out.
I can ask some folks in the R community for help. Do you happen to have logs I could share with them? Thanks again so much for helping out!

Sharing this issue with the R community might be useful!
To be honest, I haven't been able to find logs that share anything about the issue as running the dashboard remotely returns the same logs that locally.
Perhaps you could point them to the issues we've previously shared or share a screenshot of what's happening?
Happy to dig more for the logs if needed!

Got an interesting answer that shared these docs! http://docs.rstudio.com/shiny-server/#application-timeouts

@jwinternheimer @davidgasquez Maybe that could work ? https://github.com/virtualstaticvoid/heroku-buildpack-r/issues/97#issuecomment-354934433

I've added the code to the dashboard.Rmd file but seems that doesn't work. :thinking:
I've also added it as a standalone file without much success.
I think we'll need to write some custom Javascript since this one is for Shiny. @erickhun, would you mind if I pick your brain around this sometime this week?

Thanks for helping out @erickhun and @davidgasquez! If this proves too difficult, I can rewrite the dashboard and use Shiny instead of Flexdashboard when I get back from vacation 😎

Hey Julian! I got some good news, I think I finally managed to get everything working the latest Shiny app you did and got it deployed without the 'greying-out' issue.
The app is now running at: https://diversity.buffer.com
It turns out the main issue was caused by the way we we're running the app in the Dockerfile.
After looking at some examples, I realized that we're running the app from R directly instead of using shiny-server, which I suspected might be what's causing the issue.
I modified the Dockerfile to run shiny-server instead and serve the app from the /srv/shiny-server directory in this commit https://github.com/bufferapp/diversity-dashboard/commit/fe8003e097be33a2e3f84f416284562840ee8c83
One added benefit is that we'll also not have logs in place in the /var/log/shiny-server directory.
I then tested that image in K8s quickly and it seems to have fixed the issue with the app greying out!
I also took the opportunity to simplify the deployment with some of the learnings from @davidgasquez in this PR, so the app can be deployed using Cloud Build.
I wasn't able to get the Github integration working since I think I might need admin access to the repo, but I think that should be pretty easy to add, and then we should be able to deploy by just pushing a new version to the master branch (@davidgasquez do you perhaps have admin permissions on the repo? if so could you perhaps help us set that up, or just make me an admin?)
I also set things up so that we can use SSL by default like we did on suspender.buffer.com.
After all of that I was able to deploy the service to Apollo and then point cloudflare to use the subdomain.
So far it seems to be working great, so I'm closing the issue for now :smile:

Thanks for jumping in @michael-erasmus!

After looking at some examples, I realized that we're running the app from R directly instead of using shiny-server, which I suspected might be what's causing the issue.

Awesome! That was the main reason to use straight Shiny instead of Flexdashboard. :smile:

I wasn't able to get the Github integration working since I think I might need admin access to the repo, but I think that should be pretty easy to add, and then we should be able to deploy by just pushing a new version to the master branch (@davidgasquez do you perhaps have admin permissions on the repo? if so could you perhaps help us set that up, or just make me an admin?)

Sure! I'll make you a repository owner although we might still need to chat with Colin or José to activate the Github App in this repository.

Thanks again for taking care of this tricky one! Would love to hear a bit more of the technical details (I see a reverse proxy in Apollo) in our next chat. :smile:


firmware cannode-v1 not fit in flash

Hello,
I'm trying to build bootloader for PX4 cannode-v1 and:
arm-none-eabi/bin/ld: px4cannode-v1.elf section .text' will not fit in region flash'
arm-none-eabi/bin/ld: region `flash' overflowed by 62 bytes
I'm using toolchain version from documentation GCC 7-2017-q4
https://dev.px4.io/v1.9.0/en/setup/dev_env_linux_ubuntu.html
on Ubuntu 16.04.6
I've checked out latest commit and commit named "All targets fit in FLASH".
Overflow is the same: 62 bytes.
I assume that system or toolchain differs.
Any idea where to start resolving issue?
On what system/toolchain will it fit 8K?
Best regards.
Jakub Zdroik

For others with the some problem, using gcc-arm-none-eabi-5_3-2016q1 solved this for me without any changes.
Later versions require the cmake script to ensure LTO is enabled, but I have no cmake-foo powers to dare to advise anyone on this (I can hack a fix to the 2017q1 version by forcing the commented "-flto" line on add_compile_options).

Please ONLY use with is listed in the CI  containers
https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2020q2/gcc-arm-none-eabi-9-2020-q2-update-x86_64-linux.tar.bz2

I see. Please forget anything I said. My use-case is outside of the PX4 environment.
I do find it hilarious that was needed for someone to be wrong on the internet for a 2 year old issue to be answered ;-)

This is an obsolete repo the UAVCAN bootloaders are now in-tree in PX4.


GoogleMapsUtils module build incompatible with latest swift version

Environment details

Mac os Big Sur Version 11.4
XCode version Version 13.0 (13A233)
GoogleMapsUtils version 4.1.0

Steps to reproduce

Add GoogleMapsUtils in my SPM Project (next major version)
Build app
Error hapend (cf screenCap below)

The library is built with library evolution support (BUILD_LIBRARY_FOR_DISTRIBUTION is set to YES) so it should work on the latest version of Xcode/Swift. I did test this on Xcode 13 and was able to get it to work. Perhaps a clean build might do the trick?

Same problem with Version 13.2.1 (13C100)
It might work for the who updated Xcode from App Store for some time (I assume some old compilers might exist on local machine). But if you download latest Xcode build from App Store or Apple Developer website, the only option you have is latest compiler. GoogleMapsUtils version 4.1.0 is not compiled on Xcode 13.2.1 (13C100)

Having the same issue with Xcode 13.2.1

Will take a look

I'm having the same issue using SPM on:

Xcode Version 15.0.1 (15A507)
macOS Sonoma 14.0 (23A344)
GoogleMapUtils 4.2.2

Failed to build module 'GoogleMapsUtils'; this SDK is not supported by the compiler
(the SDK is built with 'Apple Swift version 5.5.2 (swiftlang-13<IP_ADDRESS> clang-13<IP_ADDRESS>)',
while this compiler is 'Apple Swift version 5.9 (swiftlang-<IP_ADDRESS>.108 clang-15<IP_ADDRESS>)').
Please select a toolchain which matches the SDK.

I cleaned the project and packages, deleted deriveddata, started again... I think this should work, right? I see that BUILD_LIBRARY_FOR_DISTRIBUTION is true in the project. What am I missing?

This should be fixed with v5.0.0+ as of #444 which uses Swift 5.9.


FUTURES can be used when not shorting

I see this condition:
if short:
trading_mode = CandleType.FUTURES
stake = f"{stake_currency}:{stake_currency}"
But you can use leverage without shorting and the code needs to take into account the $stake later.
Would recommend renaming short to futures in:
short = False

Fair point - I'll update this in the next update.


Immunofluorescence data

Hi,
Thank you for the wonderful tutorial. I am working on some immunofluorescence data and this is my first time looking at it, would be great if you could provide some insights on my workflow.  I am doing this to quantify immune cells (three channels corresponds to three stains) in the biopsy samples.
I have three channels and DAPI. I am trying to run your notebook for cell segmentation in one of the channel image to look at the stained cells. Some caveats, my files are RGB instead of the CMY on QuPath, I wonder what difference would it make?
Should I be using overlaid image (which has all three colors) or individual tiff files?
I basically loaded my tif files and ran the commands from [https://haesleinhuepf.github.io/BioImageAnalysisNotebooks/20b_deep_learning/cellpose.html].
Would appreciate any suggestions.
Thank you!

Hi @apal6 ,
that's not my core expertise unfortunately. I recommend reaching out to the bio-image analysis experts on https://image.sc . They are a very friendly community. Also consider sharing example data and screenshots to make it easier to support you.
Best,
Robert


docs(notifications): Update notifications V2 Swagger doc

fix #3609
Signed-off-by: Ginny Guan<EMAIL_ADDRESS>PR Checklist
Please check if your PR fulfills the following requirements:

[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

If your build fails due to your commit message not passing the build checks, please review the guidelines here: https://github.com/edgexfoundry/edgex-go/blob/master/.github/Contributing.md.
What is the current behavior?

Issue Number:
#3609
What is the new behavior?
Does this PR introduce a breaking change?

[ ] Yes
[x] No

New Imports

[ ] Yes
[x] No

Specific Instructions
Are there any specific instructions or things that should be known prior to reviewing?
Other information

Codecov Report

Merging #3610 (3d16764) into main (e67b96f) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #3610   +/-   ##
=======================================
  Coverage   47.13%   47.13%
=======================================
  Files         111      111
  Lines        8142     8142
=======================================
  Hits         3838     3838
  Misses       3937     3937
  Partials      367      367

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 e67b96f...3d16764. Read the comment docs.


Error: Packets out of order. Got: 1 Expected: 0 (MySQL/MariDB)

When trying to connect to my mariaDB container, it will always fail with an error! I'm using the latest 1.7.0 image and mariaDB:latest! I hope this is not some stuff on my end :/
The warning in the mariaDB container log:

[Warning] Aborted connection 8 to db: 'unconnected' user: 'unauthenticated' host: '<IP_ADDRESS>' (This connection closed normally without authentication)

PiGallery's logs:

pygallery       | 8/13/2019, 6:38:11 PM[INFO] [server] Listening on port 80
pygallery       | 8/13/2019, 6:39:31 PM[WARN] Handled error:
pygallery       | ErrorDTO {
pygallery       |   code: 13,
pygallery       |   message:
pygallery       |    'Error while saving database settings: Error: Packets out of order. Got: 1 Expected: 0',
pygallery       |   details:
pygallery       |    { Error: Packets out of order. Got: 1 Expected: 0
pygallery       |        at Parser._tryReadPacketHeader (/pigallery2-release/node_modules/mysql/lib/protocol/Parser.js:470:15)
pygallery       |        at Parser.write (/pigallery2-release/node_modules/mysql/lib/protocol/Parser.js:33:29)
pygallery       |        at Protocol.write (/pigallery2-release/node_modules/mysql/lib/protocol/Protocol.js:38:16)
pygallery       |        at Socket. (/pigallery2-release/node_modules/mysql/lib/Connection.js:91:28)
pygallery       |        at Socket. (/pigallery2-release/node_modules/mysql/lib/Connection.js:525:10)
pygallery       |        at Socket.emit (events.js:198:13)
pygallery       |        at addChunk (_stream_readable.js:288:12)
pygallery       |        at readableAddChunk (_stream_readable.js:269:11)
pygallery       |        at Socket.Readable.push (_stream_readable.js:224:10)
pygallery       |        at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)
pygallery       |        --------------------
pygallery       |        at Protocol._enqueue (/pigallery2-release/node_modules/mysql/lib/protocol/Protocol.js:144:48)
pygallery       |        at Protocol.handshake (/pigallery2-release/node_modules/mysql/lib/protocol/Protocol.js:51:23)
pygallery       |        at PoolConnection.connect (/pigallery2-release/node_modules/mysql/lib/Connection.js:119:18)
pygallery       |        at Pool.getConnection (/pigallery2-release/node_modules/mysql/lib/Pool.js:48:16)
pygallery       |        at /pigallery2-release/node_modules/typeorm/driver/mysql/MysqlDriver.js:764:18
pygallery       |        at new Promise ()
pygallery       |        at MysqlDriver.createPool (/pigallery2-release/node_modules/typeorm/driver/mysql/MysqlDriver.js:761:16)
pygallery       |        at MysqlDriver. (/pigallery2-release/node_modules/typeorm/driver/mysql/MysqlDriver.js:274:51)
pygallery       |        at step (/pigallery2-release/node_modules/tslib/tslib.js:136:27)
pygallery       |        at Object.next (/pigallery2-release/node_modules/tslib/tslib.js:117:57) code: 'PROTOCOL_PACKETS_OUT_OF_ORDER', fatal: true } }

Hi,
You get this error while he app tries to connect to your db and it seems that it cannot.
At the first look it seems that the error is some configuration error.
Can you please check if your are trying to connect to an existing dabatase within your mariadb? (the app can only create the tables within the db, not the db itself)
Also can maybe check if you can connect to the db from an other application?
Best,
Patrik

closing this due to inactivity


pythonPackages.pysideTools: fix compilation

Motivation for this change
Fixes build of the pysideTools python package. Without this patch, cmake will not be added to the path and the cmake hooks will fail to find and run cmake.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[x] Determined the impact on package closure size (by running nix path-info -S before and after)
[x] Assured whether relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

@GrahamcOfBorg build python2Packages.pysidetools python3Packages.pysidetools

@GrahamcOfBorg build python2Packages.pysideTools python3Packages.pysideTools
Someone also please backport this to 19.03. #56826

Btw, does anyone know why we still have the deprecated PySide and not PySide2?
I'd think we'd like to move away from it in nixpkgs.

@worldofpeace Sorry for the absence. Fix was already merged with 6b8f8005, so I rebased the patch to  keep the other suggested changes.

@worldofpeace Sorry for the absence. Fix was already merged with 6b8f800, so I rebased the patch to keep the other suggested changes.

Sounds good.

Thanks for the follow through in the end @FlorianFranzen :sparkle:


Additional annotations for Trec-covid

Just saw the submission to Neurips (https://openreview.net/forum?id=wCu6T5xFjeJ), great work!
I was just wondering whether you plan to release the additional annotations for Trec-covid’s hole filling? Thanks!

Hi @ji-xin
That was quick to notice.
In the appendix (sadly a separate file for the NeuRIPS submission) the link is provided:
https://public.ukp.informatik.tu-darmstadt.de/thakur/BEIR/datasets/trec-covid-beir.zip


Add venv in gitignore

Coverage remained the same at 27.263% when pulling bbb5d6ad059820efd5d9f1371d072eade7f6ceaf on calixteman:venv into 63d62444da870ebcfaba2d4e6fff659d70994765 on mozilla:master.

You could add the things from https://github.com/github/gitignore/blob/master/Python.gitignore.


electron-255: fixes electron-255

Description
As a result of electron-205, on Windows, when an item was asked to be "Show in Folder", the item was not being highlighted.
This was because we need to use backslashes and escape them on Windows. It has been fixed now.
Approach
As per this ticket, found the fix -> https://github.com/electron/electron/issues/11362

@VikasShashidhar Please review.


implement type ahead dropdown for search results

Please describe.
Using type ahead will reduce guesswork for the user & ensure that the selected entry is a valid search term and/or nav path.
Possible feature would be a toggle to switch typeahead off.
Describe the solution you'd like
add ui dropdown element to search bar to display possible search results
resources
[https://github.com/darrenjennings/vue-autosuggest] (https://github.com/darrenjennings/vue-autosuggest)
backup option: https://github.com/pespantelis/vue-typeahead

Please consider adding feature that automatically selects and opens an account when typeahead only delivers one search result, as implemented in EOS Authority.


A fix and more reliability for the vale tests

Vale has changed behaviour slightly (see comments in the shelltest.text file for the "bad references" test), so take account of that.
Also revert to piping the tests through sort, since the vale --sort is not stable when there is more than one issue on a line (only in the tests where this is an issue). That also makes it necessary to check the return code as a separate check.

@TibsAtWork can you give me any hint on how to test this change?

On a Mac, install shelltest with
brew install shelltest

and then, in the top-level directory, run
shelltest .github/vale/tests/shelltest.test

and you should see
:.github/vale/tests/shelltest.test:1: [OK]
:.github/vale/tests/shelltest.test:2: [OK]
:.github/vale/tests/shelltest.test:3: [OK]
:.github/vale/tests/shelltest.test:4: [OK]
:.github/vale/tests/shelltest.test:5: [OK]
:.github/vale/tests/shelltest.test:6: [OK]
:.github/vale/tests/shelltest.test:7: [OK]
:.github/vale/tests/shelltest.test:8: [OK]

         Test Cases  Total
 Passed  8           8
 Failed  0           0
 Total   8           8

@TibsAtWork do we need this change? I think we may need to advocate for it, find a reviewer, or somehow move it forward. I can't see it being picked up as it is.

I use this test-suite to validate that I've not broken anything when I add/change tests, so yes please.
I keep meaning to ask for someone to check it and merge it, but I figured it could wait with everyone being busy in the last parts of the "finishing the help transfer" work.
The instructions given (which are essentially those in the test file itself) should work.

@TibsAtWork I can review this PR next week, if it's OK with you.

Thanks @dewan-ahmed, that would be wonderful.

Ah - apologies! The curse of assumptions (on my part).
Yes, you need vale installed (brew install vale).
make livehtml and make linkcheck don't use vale - it's make spell that uses vale.
I've added a note to the comments at the start of shelltest.test
(just for myself, I double checked we'd remembered to say that in the README - it's at https://github.com/aiven/devportal/blob/main/README.rst#running-build-tasks-locally)
(I checked because I know I should re-read the README and CONTRIBUTING guides regularly myself!)

I've also fixed the brew install shelltestrunner command - you're right about what it should be (hmm - I wonder if it changed?)

Works like a charm now:

         Test Cases  Total
 Passed  8           8
 Failed  0           0
 Total   8           8

Had to rebase the branch because I see the CloudFlare build fails.


Make more pythonic

A handful of changes to clean up this code a little bit. Mostly fixing up whitespace, removing unnecessary imports, and making the docstrings more pythonic.
I'm working on a different PR that'll add the ability to create events on a google calendar, and in order to keep that one smaller, I figured it made more sense to create a separate PR with these cosmetic changes.

Hi @alexandrinaw !! Thank you so much for contributing to RSVPBot.
I really like this PR, but because I merge the PR's in the order they come, this PR now has some merge conflicts.
Would you mind fixing them and letting me know? Looking forward to the new functionalities you're working on. :D

@kokeshii done!

@alexandrinaw Thank you!!!


Change border Color of the Chart (radar)

I reviewed an issue that was earlier closed, but it did not help with my problem on a radar chart
the issue for reference "Change border Color of the Chart #2443"
The rings are getting styled correctly, but the spokes are staying as default.
I have tried what I think is everything and just wanted to see if anyone has a solution or is this a bug.
Most of what I tried was through the global changes.
`
var ctx = document.getElementById("WeightChart");
Chart.defaults.global.tooltips.titleFontSize = 18;
Chart.defaults.global.tooltips.bodyFontSize = 18;
Chart.defaults.global.tooltips.titleMarginBottom = 10;
Chart.defaults.global.elements.line.tension = .01;
Chart.defaults.global.elements.point.hoverRadius = 10;
Chart.defaults.global.elements.point.hitRadius = 3;
Chart.defaults.global.legend.display = false;
Chart.defaults.scale.lineArc = false;
Chart.defaults.global.defaultFontColor = "rgba(255,255, 255, 1)"
Chart.defaults.scale.gridLines.color = "rgba(255,0,0,1)";
Chart.defaults.scale.gridLines.zeroLineColor = "rgba(255,0,0,1)";
Chart.defaults.global.defaultColor = "rgba(255,0,0,1)";
Chart.defaults.global.elements.arc.backgroundColor = "rgba(255,0,0,1)";
Chart.defaults.global.elements.line.backgroundColor = "rgba(255,0,0,1)";
Chart.defaults.global.elements.point.backgroundColor = "rgba(255,0,0,1)";
Chart.defaults.global.elements.rectangle.backgroundColor = "rgba(255,0,0,1)"
Chart.defaults.global.elements.arc.borderColor = "rgba(255,0,0,1)";
Chart.defaults.global.elements.line.borderColor = "rgba(255,0,0,1)";
Chart.defaults.global.elements.point.borderColor = "rgba(255,0,0,1)";
Chart.defaults.global.elements.rectangle.borderColor = "rgba(255,0,0,1)";
new Chart(ctx, {
type: "radar",
data: {
  labels: ["E01", "E02", "E03", "E04", "E05", "E06", "E07", "E08", "E09", "E10"],
  datasets: [{
    label: " character name goes here",
    backgroundColor: "rgba(0, 153, 247,.5)",
    borderColor: "rgba(0, 153, 247,1)",
    pointBackgroundColor: "rgba(0, 153, 247,1)",
    pointBorderColor: "rgba(0, 153, 247,1)",
    pointHoverBackgroundColor: "rgba(0, 153, 247,1)",
    pointHoverBorderColor: "rgba(0, 153, 247,1)",
    data: [19, 21, 23, 18, 16, 24, 15, 5, 8, 13]
  }]
},

options: {
  scale: {
    pointLabels: {
      fontSize: 18
    },
    ticks: {
      backdropColor: 'black',
      maxTicksLimit: 10,
      max: 30,
      stepSize: 5,
      beginAtZero: true,
      fontSize: 10,
      backdropPaddingX: 5,
      backdropPaddingY: 5
    }
  }
}

});
`
here is a Fiddle to show what I am talking about
https://jsfiddle.net/kzco8m49/16/

@empessah the lines that radiate outward are controller by a different setting options.angleLines.color.
I've updated your fiddle to set this and it works as expected
https://jsfiddle.net/hvenb74o/1/

I had to change Chart.defaults.scale.gridLines.color in the fiddle not angleLines.


[RND-698] Postgresql insert/get

Requires Postgres with a "MeadowlarkNet" database, and hardcoded postgres/abcdefgh1! credentials (Gave up on getting .env loading working)

Requires Postgres with a "MeadowlarkNet" database, and hardcoded postgres/abcdefgh1! credentials (Gave up on getting .env loading working)

appSettings file is the way to go for .NET applications. There are also methods for reading environment variables to override the appSettings file. reference


Update config translation

App posibility to add custom translations. update/delete as config file.
Update translation file in gitlab.  mw-ms-config-repository tenants/XM/webapp/public/translations
Before every update loading actual translations

@grankovsky  can we split this pr to two separate?
1 - custom translation from config
2 - ui components and admin page

There is no reason to separate logic and ui  its only one service to work with config. Now it's completed functional


Add server properties mapping for ENFORCE_SECURE_PROFILE for 1.19.1+

Enhancement Type
Improve an existing feature
Describe the enhancement
Add server properties mapping for ENFORCE_SECURE_PROFILE for 1.19.1+ so that it can be set via the environment

Was already added in #1558


Include Facility Group support in BrokeredOrderItemsSyncQueue view

NetSuite has certain warehouses which are used for fulfillment.
Thus a check is required that can fetch details from all the facilities that are used for fulfillment.
Such facilities are grouped together and Facility Group is created for NetSuite.
So, we have to add Facility Group Type ID parameter in Brokered Order Items view.
So that this field can be checked while feed is generated

Closing this issue

Facility Group support is not required in the BrokeredOrderItemsSyncQueue view as it might make the view specific to NetSuite and the view is meant to be generic for all the brands.
Facility Group type id condition will be handled in service during the feed generation.


Socket fixes and improvements

All Submissions:

[X] Have you followed the guidelines stated in CONTRIBUTING.md file?
[X] Have you checked to ensure there aren't any other open Pull Requests for the desired changed?

Type of change
Please delete options that are not relevant.

[X] Bug fix (non-breaking change which fixes an issue)
[X] New feature (non-breaking change which adds functionality)
[X] This change requires a documentation update

New Feature Submission:

[X] Does your submission pass the tests?
[X] Have you linted your code locally prior to submission?

Changes To Core Features:

[X] Have you added an explanation of what your changes do and why you'd like us to include them?
[X] Have you written new tests for your core changes, as applicable?
[X] Have you successfully ran tests with your changes locally?

Description of changes:
Users can now select Socket.IO transport methods
A new option has been added to pcconfig.py pc.Config
backend_transports=pc.Transports.POLLING_WEBSOCKET
There are 4 options:

pc.Transports.POLLING_WEBSOCKET – the default, initially connect to the back end using http/s requests (long polling) and upgrade to websockets
pc.Transports.WEBSOCKET_POLLING – connect using websockets outright, and fall back to long polling if they're blocked
pc.Transports.WEBSOCKET_ONLY – connect using websockets only, often faster
pc.Transports.POLLING_ONLY – connect using long polling only (don't use websockets)

Additional configuration options for backend connections
cors_allowed_origins=["*"] – List of origins that are allowed to connect to the backend API. It will be useful to set this to a non-catchall on production servers.
Example usage when on a production server: cors_allowed_origins=["https://website.com", "https://myothersite.com"],
cors_credentials=True – Whether credentials (cookies, authentication) are allowed in requests to the backend API.
polling_max_http_buffer_size=1000*1000 – The maximum size of a message when using the polling backend transport in bytes. Defaults to 1MB. This is useful to increase if you want to send images and bigger data sets using long polling.
New state getters which return session id, client IP and client headers
This is useful for various reasons such as wanting to control API access or rates by IP, getting the visitor's browser, language settings, etc.
Example usage:
class State(pc.State):
    """The app state."""

    @pc.var
    def sid(self):
        # session id
        return self.get_sid()

    @pc.var
    def ip(self):
        # client IP
        return self.get_client_ip()

    @pc.var
    def headers_ua(self):
        # browser user-agent, always check whether the key exists
        d, k, v = self.get_headers(), 'user-agent', ''
        if k in d:
            v = d[k]
        return v

Called using
pc.text(
    State.sid,
),
pc.text(
    State.headers_ua,
),
pc.text(
    State.ip,
),

Note that these default to reasonable blanks. These variables only return useful information upon firing of the first event, which usually happens on page load anyway. It's still important to check these have been obtained before using them.
Fixes
Closes #481.
The socket.io app was previously mounted on / which caused problems with dynamic routes. It has now been moved to /event proper. No server re-configuration is necessary as the API endpoint remains the same. Initially I thought this wasn't doable but it's possible to set the socket.io path to "".
Tested locally and a production server.

I see there's issues with how the transports defaults are pulled out. I'm not exactly sure what the best option is for lists of strings, but I can simply make the option a string and that will fix the errors. Let me know.

Needs more work to get the CORS config be reasonable. Currently it can be either a string, an empty list, or a list of strings.

Ok should be done now, let me know your thoughts.

Are you getting this error:
RuntimeError: Expected ASGI message 'http.response.start', but got 'websocket.accept'.

Are you getting this error:
RuntimeError: Expected ASGI message 'http.response.start', but got 'websocket.accept'.

I’ve gotten the opposite error before. I did a bunch of investigation and while it looks like an error caused by the back end, it’s actually an error triggered from the browser-end.
It happened to me when I had an old window open which was trying to connect to the websocket interface using old front end code. Why that should cause such a backend error is a uvicorn mystery.
I’m not 100% sure this is the cause in your case, but try closing old windows and tabs with Pynecone or refreshing them.

Wierd I exited out of all browsers and still seems to be getting it, I think @picklelo is getting it to

I'll look into it rn


Changed into documentation

Here, hope this is good

Thank you @Kevv-J for the PR!
Since we want to keep the mistakes for other participants to work on, we wouldn't be merging this PR. Hope the practice was good nevertheless :)


Cordova implementation guide. iOS and Android dont work on ionic!!!!

I am looking for the right uri to set my redirect URI too. A small notice in the readme about it would be awesome!  I tried to set it to localhost but it cannot load localhost.
Below is my configuration where i try to login on facebook with the app installed on my phone. I use NO cordova plugins.
       // social providers
        $authProvider.facebook({
            clientId: 'super secret or something',
            url: 'openshifturl.com/auth/facebook',
			redirectUri: 'http://localhost/',
			popupOptions: {
				location: 'no',
				toolbar: 'no',
				width: window.screen.width,
				height: window.screen.height
			  }
        });

I get the error: Failed to load webpage with error: Could not connect to the server.
i use iOS 8 and iPhone 6 Plus

.. Forgot to include cordova.js file..


Option to disable scroll acceleration?

Are you guys open to adding this. I love this parallax so much but I don't like how it upsets the expected tactile feedback of dragging.
I could attempt to add it, if you guys are open to it.

After looking at this, I'm not even sure how to disable the scroll acceleration without messing up the rest of the parallax (the image no longer grows or slides when I remove the parts where I think it would be). Any ideas? :|

@9mm Can you provide a small example to show the problem at hand? I can try to find a solution once I know the full detail of the problem.

Also, any description, screenshots, GIFs, etc. to help illustrate the problem might help too.

Sure!
Essentially the 'problem' looks more like a design decision rather than a bug. This is such a fantastic library, however and definitely want to use it.
I believe the expected behavior when one drags their finger is that the content drags at the same speed as their thumb moves.
This library however, in order to achieve the parallax effect, moves the header image at 1x dragging speed while the content travels at ~2x drag speed.
I believe the expected behavior should be that the content travels at 1x speed, and the image moves at ~0.5x speed.
This manifests itself I think as a confusion because you might be using 50 other pages of the app which involve long lists, and they get a tactile feedback response they're used to, and then suddenly they land on a page which zooms at 2x the speed it's a little jarring.
I looked at it to try to fix it myself, however and I am just unsure. I think I am too dumb to figure that out in a reasonable amout of time :laughing:

@9mm I see. So basically, the top of the content scrolls up faster due to the parallax view then it would using a normal list view.
For example, if a user drags their finger up 10 dp on a ListView, they would drag the content up by 10 dp. However, with the ParallaxScrollView, when the user drags their finger up 10 dp, the content goes up more than 10 dp.
Is that correct?

Yep, exactly - that's correct.
I think a lot of other parallax solutions solve this dilemma by having the image go slower than drag speed, rather than the same speed (basically that becomes the variable which changes rather than the content which would remain constant).
And yes you're right about the scrolling is faster only at the start, and then it slows down to 1x speed. I just think it would be great if it were 1x 100% of the time, and then the image becomes the variable which changes (probably slower, I think having that go faster wouldn't work)

I can take a look tonight. The main work would be to come up with the formula for header height, background image offset, etc based on the scroll position of the scroll view.

You are so immensely awesome, thank you so much.

I think FWIW it might be cool to have both options, like acceleratedMode or something

@9mm I don't think we need a different behaviour for it. I didn't really realize it before, but I think what you described should be the only correct behaviour.
Scrolling speed can be changed by providing a different ScrollView via renderScrollComponent prop.
Thanks for bringing this to my attention. :)

I have a cool idea, if you haven't already started yet. It's not a big deal, just something I am experiencing, and if you have to do some of this over anyway, it might be worth pointing out.
Lets say you had a square image in renderBackground, and the phone is 300 wide. Then let's say you  set parallaxHeaderHeight to height * 0.8 (so that it doesnt take up so much room).
It would be cool if, as you scroll down, the parallax would uncover the remaining 0.2 left of the image before 'widening' or becoming elastic. It would allow taller images to be used, so that the user can still see all the content if they want to, but it doesnt take up so much space on the initial page render.

@9mm I have some changes locally that fixes the speed issue. I'm thinking about adding two optional props for controlling the scrolling speed of the background and header, relative to the scroll content.
The thing I'm trying to figure out is how I can persist press events to the header, since I have it behind the scroll content at the moment (for performance and simplicity reasons).
Can you open your last suggestion as a separate issue? I've that behaviour in other components before, and can probably address it at a later date.

Sure! And I liked your idea about the props controlling the speed.

Out of curiosity, do you use any press handlers on the header? Because you could try the 9-scroll-speed branch if you don't need it.
Not sure if I can get this working tonight. Need to look into the gesture system or an alternative way to set this up.

Yep, I use an onPress inside renderParallaxHeader

Gonna take another shot tonight by redoing the scrolling behaviour a bit. THe problem with layering the header behind scroll component is that there is no way to interact with i.

@9mm Can you try npm install<EMAIL_ADDRESS>The updated README is here.
The new version will get rid of parallax effect on the foreground header (unfortunately). But I think it's more important to keep the scroll speed in sync with user scroll speed.
I am coming up with some ideas on having parallax effect on layer elements above background, but they most likely won't respond to touch events.
Can you give it a shot and let me know?

It works great so far. Is it possible not to have the foreground fade out to 0 opacity?

As far as the foreground, thats something I won't ever use parallax on, so that part doesn't bother me.
It works with touch events perfectly as well.
Great work!
The last thing I will do is check the performance on old iPhone, because thats one thing your library did 100x better than the other parallax library.

Yeah, there is a fade, but it is scaled to be non-linear with a bias towards the end. I can tweak it so it's more linear (maybe with an option later to take in user-specified value).
Let me know re: performance. That's something I definitely care about. :)
Thanks!

Yeah I'd definitely say have an option to be constant the whole way without fade. That was another thing I also really liked about your lib.
Will check perf tonight

Tested on an older iphone and performance is :100: top notch. Awesome work!

Let me know what your thoughts are on the opacity thing. Thanks again, you are so awesome :D

I'm going to be adding a fadeOutForeground boolean prop tonight (default to true). Potentially I could provide further customizations by allowing an animation factory function or something. Will need to think about it more. :)

@9mm Just pushed version 0.17.2 with a more prominent fade out of the foreground. Let me know how it's working out and we can close this issue.

It's absolutely awesome!