supposed compilation errors when using java 17 modules in visual studio code

Type: Bug
When I create the following code I get a compilation error saying that certain packages do not exist. The steps I followed are:

create a project in java in my case it is called OCP JAVA 17
create a folder called 12. Modules (within this folder is the directory with program codes and modules written in Java 17)
create a folder called feeding
inside the feeding folder, create a module-info.java file with the following code

module zoo.animal.feeding {
    exports zoo.animal.feeding;
}

inside the feeding folder, create a package or folders in the following order zoo/animal/feeding and add the Task.java file with the following code

package zoo.animal.feeding;

public class Task {
    public static void main(String... args) {
        System.out.println("All fed!");
    }
}

compile Task.java class and module-info.java with following command in terminal opening from 12.Modules folder
javac -p
mods -d
feeding
feeding/zoo/animal/feeding/Task.java feeding/*.java
create a folder called mods and run the following command in the terminal to package our compiled code from the 12.Modules folder
jar -cvf
mods/zoo.animal.feeding.jar -C
feeding/ .
run the program by entering the following command in the terminal from 12.Modules
java -p
mods
-m
zoo.animal.feeding/zoo.animal.feeding.Task
must be printed in console All fed!
create a folder called care with the following file module-info.java with the code

module zoo.animal.care {
    exports zoo.animal.care.medical; //here is vsc supposed compilation error

    requires zoo.animal.feeding;
}

inside the care folder create 2 packages/folders in the following order zoo/animal/care/details and zoo/animal/care/medical
in the zoo/animal/care/details package add the following file HippoBirthday.java

// HippoBirthday.java
package zoo.animal.care.details;

import zoo.animal.feeding.*;

public class HippoBirthday {
    private Task task;
    public static void main(String... args) { //mio
        System.out.println("Feliz cumple"); //mio
    }
}

in the zoo/animal/care/medical package add the following Diet.java file

// Diet.java
package zoo.animal.care.medical;

public class Diet {
    public static void main(String... args) { //mio
        System.out.println("Diet"); //mio
    }
}

compile and package what is inside the care folder, in the terminal from 12.Modules with the following command
javac -p
mods
-d
care
care/zoo/animal/care/details/.java
care/zoo/animal/care/medical/.java
care/module-info.
java

jar -cvf
mods/zoo.animal.care.jar -C
care/ .
14) run the classes that are inside the zoo.animal.care.medical package (which vsc says does not exist) in terminal from 12.Modules
java -p mods -m zoo.animal.care/zoo.animal.care.medical.Diet
the word Diet should be printed in the console
If the program runs properly, there should be no reason for vsc to mark an error in red, such as in the module-info.java file in the care folder that says that the package zoo.animal.care.medical does not exist. Your help please
attached screenshots

VS Code version: Code 1.84.0 (d037ac076cee195194f93ce6fe2bdfe2969cc82d, 2023-11-01T11:29:04.398Z)
OS version: Windows_NT x64 10.0.22621
Modes:

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-4310U CPU @ 2.00GHz (4 x 2594)

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

Load (avg)
undefined

Memory (System)
15.91GB (8.72GB free)

Process Argv
--crash-reporter-id c60612e1-886e-4632-bada-6f298354cf72

Screen Reader
no

VM
0%

Extensions (15)

Extension
Author (truncated)
Version

prettier-vscode
esb
10.1.0

copilot
Git
1.133.531

copilot-chat
Git
0.10.0

lean
jro
0.16.58

vscode-language-pack-es
MS-
1.84.2023110109

colorful-comments
Par
1.0.0

java
red
1.24.0

open-in-browser
tec
2.0.0

intellicode-api-usage-examples
Vis
0.2.8

vscodeintellicode
Vis
1.2.30

vscode-java-debug
vsc
0.55.0

vscode-java-dependency
vsc
0.23.2

vscode-java-pack
vsc
0.25.15

vscode-java-test
vsc
0.40.1

vscode-maven
vsc
0.43.0

A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492:30256859
vslsvsres303:30308271
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
pythonvs932:30410667
py29gd2263:30880072
vsclangdc:30486549
c4g48928:30535728
dsvsc012:30540252
pynewext54:30695312
azure-dev_surveyone:30548225
282f8724:30602487
f6dab269:30613381
showlangstatbar:30737416
pythonfmttext:30731395
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
pythonnosmt12:30797651
pythonidxpt:30866567
pythonnoceb:30805159
synctok:30869157
dsvsc013:30795093
dsvsc014:30804076
dsvsc015:30845448
pythontestfixtcf:30871695
pythonregdiag2:30871582
pyreplss2:30879913
pythonmypyd1:30879173
pythoncet0:30874138
pythontbext0:30879054

/extJava

It looks like this is caused by the Java extension. Please file the issue to the Java extension repository. Make sure to check their troubleshooting instructions and provide relevant information such as the extension version you're using. See also our issue reporting guidelines for more information.
Happy Coding!


Player fails with master m3u8 but doesn't fail with the variant m3u8.

Have you read the FAQ and checked for duplicate open issues?
**What version of Shaka Player are you using?4.3.4
Are you using the demo app or your own custom app? Chromecast Receiver
What browser and OS are you using? Chromecast
For embedded devices (smart TVs, etc.), what model and firmware version are you using? Chromecast with Google TV with Cast Receiver 1.61.329909
I have a super simple Chromecast receiver with this HTML:
<html>
<head>
  <script type="text/javascript"
      src="//www.gstatic.com/cast/sdk/libs/caf_receiver/v3/cast_receiver_framework.js">
  </script>
      <script<EMAIL_ADDRESS></script>

</head>
<body>
  <cast-media-player></cast-media-player>
  <script>
    const context = cast.framework.CastReceiverContext.getInstance();
    const options = new cast.framework.CastReceiverOptions();
    options.useShakaForHls = true;
    options.shakaVersion = '4.3.4';
    context.start(options);
  </script>
</body>
</html>

I have a simple m3u8 that fails to play if I use the master list but if I use an specific variant (there is only one) then it works fine.
I am attaching as a zip the m3u8 files and the segments.
shakam3u8.zip
To reproduce the issue:

Create a custom Chromecast receiver pointed at some server you have access to and that you can put that m3u8 at.
Copy the m3u8s and segments there.
Copy the custom receiver code there.
Now use a Chromecast sender to send the address to list.m3u8 and the video will fail.
Now use the same sender to send the address to v.m3u8 and it will work.

Please let me know if you have any questions.

Does the same content fail outside of Cast?  If you play the same master playlist in the Shaka Player demo, does it work?
We just released v4.3.5 today, so please test again with that version both in and out of Cast context.  Thanks!

Can you try the main branch and see if it still happens? Thanks!


Unable to use latest spring cloud version for config server

Describe the bug
I am creating config-server with latest spring cloud version

Sample
security:
user:
username:
password:
spring:
application:
name: config-server
server:
port: 8888
management:
info:
env:
enabled: true
build:
enabled: true
endpoint:
health:
show-details: always
endpoints:
web:
exposure:
include: ""
jmx:
exposure:
include: ""

spring:
profiles:
active: composite
cloud:
config:
server:
composite:
- type: git
uri:
username: ${GIT_USER}
password: ${GIT_PASS}
search-paths: '{application}'
cloneOnStart: true
force-pull: true
order: 2
Please address this as soon as possible. it is hard stopper to use latest spring version

Please describe the problem

Problem:
I am developing a config server with above given spring cloud version and spring profile with composite is not accepting.
with this configuration:

org.springframework.boot
spring-boot-starter-parent
2.5.0-M3

com.ex.configserver
config-server
0.0.1-SNAPSHOT
config-server
API is used to implement Spring config server

11
2020.0.3-SNAPSHOT

getting this error:
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled." }
{ "date_time":"2021-03-26 17:01:00,227", "thread":"[main]", "class_name":"LoggingFailureAnalysisReporter", "serviceName":"serviceName", "id":, "log_message":"

APPLICATION FAILED TO START

Description:
Invalid config server configuration.
Action:
If you are using the git profile, you need to set a Git URI in your configuration.  If you are using a native profile and have spring.cloud.config.server.bootstrap=true, you need to use a composite configuration.
" }
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:11 min
[INFO] Finished at: 2021-03-26T17:01:00+05:30
[INFO] Final Memory: 27M/104M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.5.0-M3:run (default-cli) on project prd-config-server: Application finished with exit code: 1 -> [Help 1]
if I use this configuration:
<parent>
	<groupId>org.springframework.boot</groupId>
	<artifactId>spring-boot-starter-parent</artifactId>
	<!--<version>2.5.0-M3</version>-->
	<version>2.3.8.RELEASE</version>
	<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.ex.configserver</groupId>
<artifactId>config-server</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>config-server</name>
<description>API is used to implement Spring config server</description>
<properties>
	<java.version>11</java.version>
	<spring-cloud.version>Hoxton.SR9</spring-cloud.version>
</properties>

No issues occuring

Can you please try with Spring Boo 2.4.4 and Spring Cloud 2020.0.2?

I have same issue after updating,
    <parent>
	<groupId>org.springframework.boot</groupId>
	<artifactId>spring-boot-starter-parent</artifactId>
	<!--<version>2.5.0-M3</version>-->
	<!--<version>2.3.8.RELEASE</version>-->
	<version>2.4.4</version>
	<relativePath/> <!-- lookup parent from repository -->
</parent>

   <spring-cloud.version>2020.0.2</spring-cloud.version>

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled." }
{ "date_time":"2021-03-26 19:22:50,928", "thread":"[main]", "class_name":"LoggingFailureAnalysisReporter", "serviceName":"serviceName", "ex":, "log_message":"

APPLICATION FAILED TO START

Description:
Invalid config server configuration.
Action:
If you are using the git profile, you need to set a Git URI in your configuration.  If you are using a native profile and have spring.cloud.config.server.bootstrap=true, you need to use a composite configuration.
" }
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.363 s
[INFO] Finished at: 2021-03-26T19:22:50+05:30
[INFO] Final Memory: 27M/97M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.4.4:run (default-cli) on project prd-config-server: Application finished with exit code: 1 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Process finished with exit code 1

Hello,
I have the same problem, for me this is due to commit https://github.com/spring-cloud/spring-cloud-config/commit/2ea5e11c9a2c992890fbd8c698e3d6d64e67d99b introducing a check for correct configuration (app was working before that).
My app was disabling spring cloud in the default bootstrap.yml (no profile) but it doesn't seem to work anymore
Configuring spring.cloud.config.enabled=false or spring.cloud.config.import-check.enabled=false in application.yml correct the problem but doesn't seem to be the right solution.
I'm trying to see why the bootstrapEnabled(environment) || useLegacyProcessing(environment) test in spring-cloud-config-client/src/main/java/org/springframework/cloud/config/client/ConfigServerConfigDataMissingEnvironmentPostProcessor.java didn't pickup ... I'll get back at you
regards,
Nicolas

Hello,
Configuring spring.cloud.bootstrap.enabled=true in application.yml solved the issue for me.
It wasn't obvious to me that it was "not enabled" by default, as the only mention of that property in spring-cloud documentation is a negation

You can disable the bootstrap process completely by setting spring.cloud.bootstrap.enabled=false (e.g. in System properties).

I'm reading that as it being enabled by default but it doesn't seem to be "completly" the case and spring-cloud-common define its default (in PropertyUtils) to false.
And documentation is not super clear (at least for a non native english like me) as to what is the default
extract from https://cloud.spring.io/spring-cloud-static/spring-cloud.html#_spring_cloud_context_application_context_services

"applicationConfig: [classpath:bootstrap.yml]" (and friends if Spring profiles are active). If you have a bootstrap.yml (or properties) then those properties are used to configure the Bootstrap context, and then they get added to the child context when its parent is set. They have lower precedence than the application.yml (or properties) and any other property sources that are added to the child as a normal part of the process of creating a Spring Boot application. See below for instructions on how to customize the contents of these property sources.

So bootstrap.yml is taken into account but after application.yml but configure the Bootstrap context without setting spring.cloud.bootstrap.enabled ... I'm lost
regards,
Nicolas

This is the latest documentation https://docs.spring.io/spring-cloud-config/docs/3.0.3/reference/html/#_spring_cloud_config_client

This is the latest documentation https://docs.spring.io/spring-cloud-config/docs/3.0.3/reference/html/#_spring_cloud_config_client

Thanks !

@voodemsanthosh
Can you provide a complete, minimal, verifiable sample that reproduces the problem? It should be available as a GitHub (or similar) project or attached to this issue as a zip file.

@voodemsanthosh
Can you provide a complete, minimal, verifiable sample that reproduces the problem? It should be available as a GitHub (or similar) project or attached to this issue as a zip file.

Please use this Link for git project.

@voodemsanthosh 2 items. bootstrap.yml is no longer read by default. See the release notes for details. Renaming it to application.yml fixes the issue.
Also, config server does not support running as a webflux application, watch #885 if your are interested in that.

Thank you @spencergibb, it is working with your suggestions.


Blur event not thrown when clicking Router.Link

Hi,
I have a textarea with a blur event attached to it. When I click outside the textarea the blur event triggers, but when I click on a Router.Link element the blur event does not trigger.
This is probably due to an event.preventDefault. If so, why is that needed?
Thanks,
Marc

Thanks for your question!
We want to make sure that the GitHub issue tracker remains the best place to track bug reports and feature requests that affect the development of React Router.
Questions like yours deserve a purpose-built Q&A forum. Could you post this question to Stack Overflow with the tag #react-router? https://stackoverflow.com/questions/ask?tags=react-router
We also have an active and helpful React Router community on Reactiflux, which is a great place to get fast help with React Router and with the rest of the React ecosystem. You can join at https://discord.gg/0ZcbPKXt5bYaNQ46.

I fixed it like this:
componentDidUpdate() {
    this._blurNodeAndChildren(this.ul);
  }

 _blurNodeAndChildren(node) {
   node.blur();
   Array.from(node.children).forEach(child => this._blurNodeAndChildren(child));
 }

render() {
  return (<ul ref={node => { this.ul = node; }}>);
}


Added LibreOffice Fresh, WhatsDesk, jumpapp

trying to copy similar solutions on the script, the WhatsDesk one may be a bit tricky but they all seemed to work

Please submit each new package in their own pull requests :+1:


feat: add icons

Some icons are not transparent (AMP)
I think you need only one netlify.png instead of 3 (icons/netlify-cache.png, icons/netlify-files.png, icons/netlify-http2-server-push.png)

@pi0 all icons have been added so this is ready to merge and release


Updated to 1.11.0

yarl 1.11.0
Destination channel: defaults
Links

PKG-5642
Upstream repository
Upstream changelog/diff

Explanation of changes:

Updated version for Spyder 6.0.1 support
Run unit tests with standard pytest command

Linter check found the following problems:
ERROR conda.cli.main_run:execute(125): `conda run conda-lint /tmp/abs_1971lhq2h2/clone` failed. (See above for error)
The following problems have been found:
===== WARNINGS =====

clone/recipe/meta.yaml:23: host_section_needs_exact_pinnings: Linked libraries host should have exact version pinnings.
clone/recipe/meta.yaml:26: host_section_needs_exact_pinnings: Linked libraries host should have exact version pinnings.
clone/recipe/meta.yaml:56: invalid_url: https://yarl.aio-libs.org : Not reachable: 403
clone/recipe/meta.yaml:57: missing_description: The recipe is missing a description
===== Final Report: =====
0 Errors and 4 Warnings were found

Linter check found the following problems:
ERROR conda.cli.main_run:execute(125): `conda run conda-lint /tmp/abs_7425bn52cj/clone` failed. (See above for error)
The following problems have been found:
===== WARNINGS =====

clone/recipe/meta.yaml:57: invalid_url: https://yarl.aio-libs.org : Not reachable: 403
clone/recipe/meta.yaml:26: host_section_needs_exact_pinnings: Linked libraries host should have exact version pinnings.
clone/recipe/meta.yaml:23: host_section_needs_exact_pinnings: Linked libraries host should have exact version pinnings.
===== Final Report: =====
0 Errors and 3 Warnings were found

Linter check found the following problems:
ERROR conda.cli.main_run:execute(125): `conda run conda-lint /tmp/abs_65zwclhkn3/clone` failed. (See above for error)
The following problems have been found:
===== WARNINGS =====

clone/recipe/meta.yaml:26: host_section_needs_exact_pinnings: Linked libraries host should have exact version pinnings.
clone/recipe/meta.yaml:23: host_section_needs_exact_pinnings: Linked libraries host should have exact version pinnings.
clone/recipe/meta.yaml:54: invalid_url: https://yarl.aio-libs.org : Not reachable: 403
===== Final Report: =====
0 Errors and 3 Warnings were found

Linter check found the following problems:
ERROR conda.cli.main_run:execute(125): `conda run conda-lint /tmp/abs_9frjk8b3ib/clone` failed. (See above for error)
The following problems have been found:
===== WARNINGS =====

clone/recipe/meta.yaml:26: host_section_needs_exact_pinnings: Linked libraries host should have exact version pinnings.
clone/recipe/meta.yaml:23: host_section_needs_exact_pinnings: Linked libraries host should have exact version pinnings.
clone/recipe/meta.yaml:54: invalid_url: https://yarl.aio-libs.org : Not reachable: 403
===== Final Report: =====
0 Errors and 3 Warnings were found


examples compile error

build failed in both examples.
error[E0277]: the trait bound `T: tls_api::TlsConnector` is not satisfied
  --> grpc/src/client/mod.rs:50:13
   |
50 |     Explict(ClientTlsOption<T>),
   |             ^^^^^^^^^^^^^^^^^^ the trait `tls_api::TlsConnector` is not implemented for `T`
   |
   = help: consider adding a `where T: tls_api::TlsConnector` bound
   = note: required by `httpbis::ClientTlsOption`

error[E0277]: the trait bound `A: tls_api::TlsAcceptor` is not satisfied
  --> grpc/src/server/mod.rs:77:5
   |
77 |     pub http: httpbis::ServerBuilder<A>,
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `tls_api::TlsAcceptor` is not implemented for `A`
   |
   = help: consider adding a `where A: tls_api::TlsAcceptor` bound
   = note: required by `httpbis::ServerBuilder`

error[E0277]: the trait bound `TLS: tls_api::TlsConnector` is not satisfied
   --> grpc/src/client/mod.rs:144:5
    |
144 | /     pub fn explicit_tls<TLS: tls_api::TlsConnector>(
145 | |         self,
146 | |         tls: ClientTlsOption<TLS>,
147 | |     ) -> ClientBuilder<'a, TLS> {
...   |
154 | |         }
155 | |     }
    | |_____^ the trait `tls_api::TlsConnector` is not implemented for `TLS`
    |
    = help: consider adding a `where TLS: tls_api::TlsConnector` bound
    = note: required by `httpbis::ClientTlsOption`

error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0277`.
error: Could not compile `grpc`.

me,too


billy/1108-small-text

Closes #1108
Description: hinges on https://github.com/tendermint/ui/pull/57 where the transition has been removed from tm-li component

❤ Thank you!

can be reviewed already but should note that actually blocked by publishing new version of tendermint/ui (https://github.com/tendermint/ui/pull/57)

Webpack doesn't seem to use the internal assets in the UI library. :/

working again but blocked by official release of https://github.com/tendermint/ui/issues/60

@NodeGuy just a note: there are still conflicts on the changelog

@okwme this is still failing

thanks @faboweb idk how i typed in the wrong version so many times 🙄
checking the test coverage now and hopefully ready v soon

@faboweb codecov is ok!

Happens to the best. ;)


Add option to upload a directory

Selected directory is uploaded single-file, non-recursively.
Files can be given a prefix (default is directory name).
Hidden files are ignored.
Minor CSS fix to ensure input fields fit inside window.

I haven't read the code yet but..... wow, thanks! Will look at it more over the next few days.

Yo awesome work with this! You understood the code pretty well to do this.
Though I'm curious if and how it works because I'm sketched out by the duplicate html elements with the same id's.

Thanks, I made changes based on your feedback. HTML id's are fixed. Importantly, hideStep() now takes an array as input (saves a few lines overall). In my tests, the results are variable... Usually, I end up getting 500 errors thrown by the backend: "Upload failed: not enough hosts to support upload". This gets worse the more files I try to upload. I'm not sure why, but it does not make for a happy user experience... Any ideas?

Still looks good! As you explore this new option of uploading a directory, feel free to change design and html in large strokes if needed for elegance. Thanks a lot!

If this passes some initial testing/screwing-around, I'm all for merging it. I've not got the time to test it though

We will be testing it today and tomorrow, if all goes well we'll do another pass over the code and then merge it.
Sorry we've been pretty inactive with PRs the past 2 weeks. Been quite busy.

I tested this today and it worked as expected. Just need to tweak the text of the delete confirmation dialog and I'll merge it.

poke @pmknutsen I'm eager to merge this, what's the status on the delete dialog?

@DavidVorick Done. The nick to be deleted is fetched form the innerHTML of .nickname, so I left the string inside the dialog as-is for now, rather than making more changes elsewhere.

You can't close the PR, it has to be open for us to merge it.


Create "What is Jupyter" page(s) + resources

We should create "What is Jupyter" page(s) + resources for subproject/meta documentation, as confusion about the Jupyter ecosystem is commonly observed by those working in the ecosystem:

one of the repeated pieces of feedback we've heard from groups deploying Jupyter components (JupyterLab, JupyterHub, etc.) who aren't active in the community is that it's challenging to get a unified view of "what is Jupyter" and how the components work together.

This effort can include making a set of pages + some reusable diagrams such as the Jupyter client-server architecture, etc.

A current view of "Jupyter", relating the projects. As proposed in issue #16 , a diagram can feature in the page.

I think it'd be helpful if this also explained some of the confusing terminology and names. For example, "notebook" can refer to both the Jupyter Notebook server, and the notebook format. JupyterHub is a server, that runs instances of jupyter-server.

@manics You're absolutely right. The problems you're describing come up frequently in conversations with the community, as many people report experiencing these same points of confusion. These are all key points that should be thoroughly explained and clarified in a "What is Jupyter" document.

Good point, @manics , thanks! I started addressing this issue in PR #23 . You are more than welcome to check if that's what you have in mind and suggest modifications if you have some time available.

Can I steal some of this? I'm gonna open a PR to the jupyter/jupyter repo and we can collaborate more there perhaps?

Yes, sure


Billing of unused phone numbers MS Teams Admin

Hi,
since i can't find good answer on the internet i'll try ask here.
How is it with billing of unused numbers in MS Teams under Voice section?
We have a few numbers unused and we wonder if it's billed as ordinary as someone is using it OR it is not billed or half billed?
Thank you
Best regards,
Tomas

@TomasAEVI Thank you for submitting feedback.
I think the best way forward is if you open a service ticket in your tenant so this can get resolved ASAP. Based on the outcome let me know if it is something that can be called out in the docs.
Please follow this link to contact support for business products:https://docs.microsoft.com/office365/admin/contact-support-for-business-products
Please keep us posted here on the resolution so we can feed whatever information you discover into the content.


maybe a small touch is needed for AWS account id?

Hello,
Great walkthrough.
..but maybe a small touch is needed.

Thank you @tirelibirefe for bringing this to my notice. I will update the solution with a fix for this soon.

I have updated the pre-requisites with the link on how this can be configured


The DEAP Library is included but not used

Last summer (2019) we had the DEAP library working but we stripped it out during the overhaul over the Fall of 2019 and Spring of 2020.  We either need to remove all reference to DEAP or (better yet) get it working again in the new format.

Remove SCOOP dependancy


Deployment stalls because of bad github credentials

Currently travis fails on deployment to github.

@jesse-mm This is something you could fix yourself:
https://github.com/mediamonks/seng-boilerplate/wiki/Travis#github-release

Updated github release token reference 8ec0cef9d89c1895a2419211862f9bdfdc4a1d63


Laravel 8.43.0 Shift

This pull request includes updates for the recent minor version release of Laravel as well as updates to your package dependencies. Feel free to commit any additional changes to the shift-ci-v8.43.0 branch.
Before merging, you need to:

Checkout the shift-ci-v8.43.0 branch
Review all pull request comments for additional changes
Run composer update
Test your application (no tests?)

:warning: You are running version 4.6.0 of spatie/laravel-translatable. The latest version is 5.0.0. You should review this dependency to see if you can upgrade to the latest version.

:information_source: If you are running PHP 8 be sure to run composer update locally to ensure you have the proper versions of your dependencies to reflect your PHP 8 environment.

Latest version of mrmonat/nova-translatable requires ^4.0 of spatie/laravel-translatable.
We can't update to spatie/laravel-translatable to 5.0.


Recurring events duplicated on the first instance

Recurring events seem to get pulled in multiple times when you import events the first day they appear in your calendar. They show up once as a single event, and then get repeated one or more times with "(recurring)" at the end. It doesn't seem to be an issue after the first occurrence.
- [ ] 08:25 📅 Important meeting
- [ ] 08:25 📅 Important meeting (recurring)
- [ ] 08:50 📅 A less important meeting
- [ ] 10:30 📅 Brunch
- [ ] 12:00 📅 Get together
- [ ] 12:00 📅 Get together (recurring)
- [ ] 12:00 📅 Get together (recurring)
- [ ] 12:50 📅 Late lunch (recurring)

Thanks for the report. I'll take a look.

@zakkolar - can you try out https://github.com/muness/obsidian-ics/releases/tag/0.9.9 to check if this is fixed? Thank you!

Yes, this looks good - thank you!
It looks like the first occurrence doesn't have the "(recurring)" label after it. That's fine for my purposes, but just pointing it out since I noticed!

Thank you for spot checking it!
I did that on purpose. Do you think it should indicate that it's recurring?
I am trying to add an indicator attribute for recurring on the event (rather than munging the title) and then let users decide how they want recurring events to be labeled in the formatting markup (TBD).


A small recommendation about Jupyter

Hope HiQ GUI could support Jupyter (or something like an interactive terminal), so many people love it 😃!
Jupyter-Github

(It's just a problem about GUI instead of the Simulator itself, but I still address it here )
Another problem with HiQ online platform is that the result may be missed due to an unstable network if the code requires a long time of running for a big project.
Usually, I will leave the task running after deployed a computation task on HiQ. However, sometimes, I can't receive the result (printout) since the web session is timed out or disconnected due to an unstable network. It really limits the usability of the HiQ cloud service.
Maybe a result saved in some text files is a better solution for user experience.
Best Regards


Menu.Item with  not behaving correctly (styles)

I have a case where, if you click on an "a" tag, the background that shows when you hover on it stays.
In this case I have the following structure:
<DaisyNavBar className="sticky bg-base-100 top-0 shadow">   <DaisyNavBar.Center className="hidden lg:flex">     <Menu horizontal className="px-1">       <Menu.Item>                            <Link to={routes.home} className={clsx({ "underline font-bold": pathname == routes.home })}>Inicio</Link> 	       </Menu.Item>     </Menu>   </DaisyNavBar.Center> </DaisyNavBar >
As you can see, there is a span there, since it fixes my problem. You can remove it and see the error. That Link component is from "react-router-dom", but it also happens if you use an a tag like this A link It only happens inside the Menu.Item directly

It stays with that background color once clicked, and, it's only removed once you click outside of the item.

Hi @axvemi, that is the intended style. What you're describing is the :focus pseudo-class taking effect.


[tranquility-spark] lazy val makeBeam creates a new ZK connection for each RDD of a StreamingContext

Hello,
I'm trying to figure out how to use in a good way tranquility in a Spark Streaming Context.
In the Tranquility Spark Documentation, nothing is said regarding the batchDuration of the Spark Streaming Context.
I'd like to know if there a good practice about that batchDuration, ie : should we have that duration smaller/higher than the segmentGranularity(+ windowPeriod?) or the queryGranularity ?
From what I understand, it should not be correlated (thinking about avoiding too much data loss/duplication in case of a failure of a task), but I'd like to get some confirmation about that.
It brings me to the recommended and documented pattern for creating a BeamFactory (ie, makeBeam as a lazy val), in a StreamingContext :

The BeamFactory instance is created on the SparkDriver
It is then serialized and sent to the Spark Executors

Then, for each partition of each RDD :

That BeamFactory is deserialized
The BeamFactory.makeBeam creates a new Curator/Zookeeper Connection (I was not sure about that, thinking each RDD of a given executor were sharing the same deserialized object, but adding a log line in the lazy val makeBeam = { ... } shows that the method is executed for each partition for each new RDD)

Now, given a batchDuration of 1 second and some events filling 4 partitions, we'll get 4 new Curator/Zookeeper connections each second :

Is that the desired behavior?
If yes, are these Curator/Zookeeper client closed properly by the tranquilizer? (According to the curator.close() call in the Scala example, it is the user's responsability to close the curator. How to do that using the lazy val pattern?). And then, why asking for the user to start the curator using a lazy, when it may be better to start it in the foreachPartition of the BeamRDD.propagatemethod and close it properly at the end?
If no, it seems we got an issue here. I'm thinking about writing an CuratorPool object to avoid this problem. (not sure that it will work)

For the record, here is some spark executor logs (with 2 batches, given batchDuration = 10 seconds), showing the problem (each RDD is empty).
Please take a look to the "EventBeamFactory: Make Beam" and "EventBeamFactory: Start Curator" messages, which are logs added respectively at the very start of the lazy val makeBeam initialization and just before the curator.start() call.
After a while, we're getting a too many connection error on Zookeeper
16/02/05 11:41:30 INFO CoarseGrainedExecutorBackend: Got assigned task 41
16/02/05 11:41:30 INFO Executor: Running task 1.0 in stage 10.0 (TID 41)
16/02/05 11:41:30 INFO TorrentBroadcast: Started reading broadcast variable 10
16/02/05 11:41:30 INFO MemoryStore: Block broadcast_10_piece0 stored as bytes in memory (estimated size 2.7 KB, free 33.7 KB)
16/02/05 11:41:30 INFO TorrentBroadcast: Reading broadcast variable 10 took 73 ms
16/02/05 11:41:30 INFO MemoryStore: Block broadcast_10 stored as values in memory (estimated size 5.0 KB, free 38.7 KB)
16/02/05 11:41:30 INFO KafkaRDD: Beginning offset 0 is the same as ending offset skipping example-topic1 0
16/02/05 11:41:30 INFO EventBeamFactory: Make Beam
16/02/05 11:41:30 INFO EventBeamFactory: Start Curator
16/02/05 11:41:30 INFO CuratorFrameworkImpl: Starting
16/02/05 11:41:30 INFO ZooKeeper: Initiating client connection, connectString=zookeeper:2181 sessionTimeout=60000 watcher=org.apache.curator.ConnectionState@2752d6ff
16/02/05 11:41:30 INFO ClientCnxn: Opening socket connection to server zookeeper_1/<IP_ADDRESS>:2181. Will not attempt to authenticate using SASL (unknown error)
16/02/05 11:41:30 INFO ClientCnxn: Socket connection established to zookeeper_1/<IP_ADDRESS>:2181, initiating session
16/02/05 11:41:30 INFO ClientCnxn: Session establishment complete on server zookeeper_1/<IP_ADDRESS>:2181, sessionid = 0x152b0a3979807d1, negotiated timeout = 40000
16/02/05 11:41:30 INFO ConnectionStateManager: State change: CONNECTED
16/02/05 11:41:30 INFO LoggingEmitter: Start: started [true]
16/02/05 11:41:30 INFO Executor: Finished task 1.0 in stage 10.0 (TID 41). 875 bytes result sent to driver
16/02/05 11:41:30 INFO CoarseGrainedExecutorBackend: Got assigned task 42
16/02/05 11:41:30 INFO Executor: Running task 2.0 in stage 10.0 (TID 42)
16/02/05 11:41:30 INFO KafkaRDD: Beginning offset 0 is the same as ending offset skipping example-topic2 0
16/02/05 11:41:30 INFO EventBeamFactory: Make Beam
16/02/05 11:41:30 INFO EventBeamFactory: Start Curator
16/02/05 11:41:30 INFO CuratorFrameworkImpl: Starting
16/02/05 11:41:30 INFO ZooKeeper: Initiating client connection, connectString=zookeeper:2181 sessionTimeout=60000 watcher=org.apache.curator.ConnectionState@77b39141
16/02/05 11:41:30 INFO ClientCnxn: Opening socket connection to server zookeeper_1/<IP_ADDRESS>:2181. Will not attempt to authenticate using SASL (unknown error)
16/02/05 11:41:30 INFO ClientCnxn: Socket connection established to zookeeper_1/<IP_ADDRESS>:2181, initiating session
16/02/05 11:41:30 INFO LoggingEmitter: Start: started [true]
16/02/05 11:41:30 INFO ClientCnxn: Session establishment complete on server zookeeper_1/<IP_ADDRESS>:2181, sessionid = 0x152b0a3979807d3, negotiated timeout = 40000
16/02/05 11:41:30 INFO ConnectionStateManager: State change: CONNECTED
16/02/05 11:41:30 INFO Executor: Finished task 2.0 in stage 10.0 (TID 42). 875 bytes result sent to driver
16/02/05 11:41:30 INFO BlockManager: Removing RDD 29
16/02/05 11:41:30 INFO BlockManager: Removing RDD 28
16/02/05 11:41:30 INFO BlockManager: Removing RDD 27
16/02/05 11:41:40 INFO CoarseGrainedExecutorBackend: Got assigned task 45
16/02/05 11:41:40 INFO Executor: Running task 1.0 in stage 11.0 (TID 45)
16/02/05 11:41:40 INFO TorrentBroadcast: Started reading broadcast variable 11
16/02/05 11:41:40 INFO MemoryStore: Block broadcast_11_piece0 stored as bytes in memory (estimated size 2.7 KB, free 41.4 KB)
16/02/05 11:41:40 INFO TorrentBroadcast: Reading broadcast variable 11 took 96 ms
16/02/05 11:41:40 INFO MemoryStore: Block broadcast_11 stored as values in memory (estimated size 5.0 KB, free 46.4 KB)
16/02/05 11:41:40 INFO KafkaRDD: Beginning offset 0 is the same as ending offset skipping example-topic1 0
16/02/05 11:41:40 INFO EventBeamFactory: Make Beam
16/02/05 11:41:40 INFO EventBeamFactory: Start Curator
16/02/05 11:41:40 INFO CuratorFrameworkImpl: Starting
16/02/05 11:41:40 INFO ZooKeeper: Initiating client connection, connectString=zookeeper:2181 sessionTimeout=60000 watcher=org.apache.curator.ConnectionState@364ae98f
16/02/05 11:41:40 INFO ClientCnxn: Opening socket connection to server zookeeper_1/<IP_ADDRESS>:2181. Will not attempt to authenticate using SASL (unknown error)
16/02/05 11:41:40 INFO LoggingEmitter: Start: started [true]
16/02/05 11:41:40 INFO ClientCnxn: Socket connection established to zookeeper_1/<IP_ADDRESS>:2181, initiating session
16/02/05 11:41:40 INFO ClientCnxn: Session establishment complete on server zookeeper_1/<IP_ADDRESS>:2181, sessionid = 0x152b0a3979807d6, negotiated timeout = 40000
16/02/05 11:41:40 INFO ConnectionStateManager: State change: CONNECTED
16/02/05 11:41:40 INFO Executor: Finished task 1.0 in stage 11.0 (TID 45). 875 bytes result sent to driver
16/02/05 11:41:40 INFO CoarseGrainedExecutorBackend: Got assigned task 47
16/02/05 11:41:40 INFO Executor: Running task 3.0 in stage 11.0 (TID 47)
16/02/05 11:41:40 INFO KafkaRDD: Beginning offset 0 is the same as ending offset skipping example-topic2 0
16/02/05 11:41:40 INFO EventBeamFactory: Make Beam
16/02/05 11:41:40 INFO EventBeamFactory: Start Curator
16/02/05 11:41:40 INFO CuratorFrameworkImpl: Starting
16/02/05 11:41:40 INFO ZooKeeper: Initiating client connection, connectString=zookeeper:2181 sessionTimeout=60000 watcher=org.apache.curator.ConnectionState@2dd6535a
16/02/05 11:41:40 INFO ClientCnxn: Opening socket connection to server zookeeper_1/<IP_ADDRESS>:2181. Will not attempt to authenticate using SASL (unknown error)
16/02/05 11:41:40 INFO LoggingEmitter: Start: started [true]
16/02/05 11:41:40 INFO ClientCnxn: Socket connection established to zookeeper_1/<IP_ADDRESS>:2181, initiating session
16/02/05 11:41:40 INFO ClientCnxn: Session establishment complete on server zookeeper_1/<IP_ADDRESS>:2181, sessionid = 0x152b0a3979807d8, negotiated timeout = 40000
16/02/05 11:41:40 INFO ConnectionStateManager: State change: CONNECTED
16/02/05 11:41:40 INFO Executor: Finished task 3.0 in stage 11.0 (TID 47). 875 bytes result sent to driver
16/02/05 11:41:40 INFO BlockManager: Removing RDD 32
16/02/05 11:41:40 INFO BlockManager: Removing RDD 31
16/02/05 11:41:41 INFO BlockManager: Removing RDD 30

and here is some of the BeamFactory code :
class EventBeamFactory extends BeamFactory[Map[String,Any]] {

  @transient lazy val log = Logger.getLogger(getClass.getName)

  lazy val makeBeam: Beam[Map[String,Any]] = {

    log.info("Make Beam")
    val curator = CuratorFrameworkFactory.newClient(
      ...,
      new BoundedExponentialBackoffRetry(100, 3000, 5)
    )
    log.info("Start Curator")
    curator.start()

   DruidBreams.builder(...)
      .druidBeamConfig(new DruidBeamConfig(randomizeTaskId=true))
      .curator(curator)
      .discoveryPath(...)
      .location(...)
      .rollup(...)
      .tuning(...)
      .buildBeam()
  }
}

@plelevier thanks a lot for raising this issue. I'm not an expert on spark streaming but I will answer as best as I can.

I think you're right that the batch duration shouldn't matter too much. For perf reasons you don't want it to be super short, because you do have to wait for confirmation at the end of each micro batch, but as long as it's something reasonable then it shouldn't matter exactly what it is. It shouldn't have to be related in any way to the window period, segment granularity, query granularity, etc.

I thought that each partition of an RDD would share the BeamFactory too. But it seems like it doesn't. So I think we'll have to adjust how we recommend doing things.

The lack of closing is definitely not ideal, although I'm not sure how to close shared resources like this in Spark. Maybe there's some way to hook into the context shutdown? Registering a shutdown hook doesn't seem like the right approach since it would execute concurrently with Spark's own hooks, and we don't want to close the pool before the Spark job shuts down.

@gianm Ok, thanks for your answers!
Actually I found a way to manage this problem, using a singleton object (You can see an example of this pattern in the spark-kafka-writer repository )
I've only tested it using empty RDDs, I still need to check if there is no problem when there is something to propagate
Here is what I did :
object CuratorCache {

  val log = Logger.getLogger(getClass.getName)
  val curators = new scala.collection.concurrent.TrieMap[String, CuratorFramework]()

  // Shutdown hook to close the connections when the executor exits
  sys.addShutdownHook {
    curators.values.foreach { curator =>
      curator.close()
    }
  }

  /**
    *
    * @param curatorId The curator instance id
    * @param connectionString The curator quorum connection string
    * @param retryPolicy The curator retry policy
    * @return A new started curator if none has already been set for the curatorId, otherwise the existing one
    */
  def apply(curatorId: String, connectionString: String, retryPolicy: RetryPolicy): CuratorFramework =
    curators.getOrElseUpdate(curatorId, {
      log.info(s"New curator <$curatorId:$connectionString>")
      val curator = CuratorFrameworkFactory.newClient(connectionString, retryPolicy)
      curator.start()
      curator
    })
}

And I replaced the new curator creation / start in the makeBeam by :
val curator = CuratorCache("tranquility", zkQuorum, new BoundedExponentialBackoffRetry(100, 3000, 5))

By doing that, I always get the same curator connection for every RDD in an executor, I see the log message "New curator <$curatorId:$connectionString>" only once per executor in my logs
And as a bonus, when the executor exits, the curator should close properly
What do you think of this approach?

@plelevier I think you're on the right track, though there are some other heavy per-beam objects (like connection pools to Druid) so I think a pool of Beams would work better than a pool of Curators. #115 updates the docs to reflect that.
About the shutdown hooks, I'm not totally sure that they will always do the right thing- I think Spark registers its own hooks and normally they all run simultaneously. So that might cause the curators to get closed before Spark finished (or even started) shutting down. Do you know if that's a problem?

@gianm Great! I'll check your solution on monday
About shutdown hooks, I'm not sure too. On the other hand, not closing connections should be less an issue with 1 connection per executor. I'll check if I find something to handle that cleanly

@plelevier have you solved the problem ? If yes could you please share you solution.
Thanks

Hi @olegZastavnyi ,
Yes we solved the problem.
The tranquility documentation has been updated : https://github.com/druid-io/tranquility/blob/master/docs/spark.md
By using the pattern described on this page it should be ok (in short : instead of a lazy val, use a singleton object to handle the beam instance)
Please also note that you should use the 0.8.0 version since tranquility for spark 0.7.4 itself was suffering of the same kind of problems with tranquilizer threads (which was resulting in a memory leak)

@plelevier Nice to hear that.
I have one more problem. Druid stops receive any data when segment granularity ends. I am using Spark Streaming so I need to have like real time processing 24/7. Maybe you had some similar problem?
Thanks

@olegZastavnyi , we've never experienced this kind of problems.
What's your beam configuration (DruidBeamConfig & ClusteredBeamTuning parameters)?

I am using the same example: https://github.com/druid-io/tranquility/blob/master/docs/spark.md
class SimpleEventBeamFactory extends BeamFactory[SimpleEvent]
{
def makeBeam: Beam[SimpleEvent] = SimpleEventBeamFactory.BeamInstance
}
object SimpleEventBeamFactory
{
val BeamInstance: Beam[SimpleEvent] = {
// Tranquility uses ZooKeeper (through Curator framework) for coordination.
val curator = CuratorFrameworkFactory.newClient(
"localhost:2181",
new BoundedExponentialBackoffRetry(100, 3000, 5)
)
curator.start()
val indexService = "druid/overlord" // Your overlord's druid.service, with slashes replaced by colons.
val discoveryPath = "/druid/discovery"     // Your overlord's druid.discovery.curator.path
val dataSource = "foo"
val dimensions = IndexedSeq("bar")
val aggregators = Seq(new LongSumAggregatorFactory("baz", "baz"))

// Expects simpleEvent.timestamp to return a Joda DateTime object.
DruidBeams
  .builder((simpleEvent: SimpleEvent) => simpleEvent.timestamp)
  .curator(curator)
  .discoveryPath(discoveryPath)
  .location(DruidLocation(indexService, dataSource))
  .rollup(DruidRollup(SpecificDruidDimensions(dimensions), aggregators, QueryGranularity.MINUTE))
  .tuning(
    ClusteredBeamTuning(
      segmentGranularity = Granularity.HOUR,
      windowPeriod = new Period("PT10M"),
      partitions = 1,
      replicants = 1
    )
  )
  .buildBeam()

}
}

On the DruidBeams builder there is a mthod druidBeamConfig which takes a DruidBeamConfig as a parameter, you can define some parameters with it if needed.
You should review your spark logs to see if something related to tranquility is happening.
If nothing special is found, review the druid logs.
Take also a look to your simpleEvent timestamps :
if your tests are pushing events that have a timestamp older than 1 hour and 10 minutes they will be discarded (timestamp < now - segmentGranularity - windowPeriod), it can happen if you are making a simple loop to push always push the same event

plelevier. Fixed. Window period was the issue.


MANIFEST.in: Add docs and test data

Closes https://github.com/tableau/server-client-python/issues/779

@jayvdb thanks for submitting this pull request - change looks good!
Before we merge this in, could you change the base branch to 'development' rather than master?
Also, could you read and send a CLA to<EMAIL_ADDRESS>if you haven't already?
Thanks!

Switched branch the easy way here on Github.  I'll do the CLA and rebase this PR properly.  Worth noting that no CLA request occurred on https://github.com/tableau/TabPy/pull/473 .  There are automated CLA bots which IMO would be a good idea if the intention is to catch all contributors.

Ugh. https://tableau.github.io/2017.02-TableauIndividualCLA.pdf is not an e-form PDF.  How are we supposed to electronically sign it as mentioned on https://tableau.github.io/contributing.html ?  Use a PDF editor, potentially injecting some modification into the text that your lawyers need to manually check for ?

@jayvdb yes we are looking at improving the process with CLAbot in the future but at the moment are still using the PDF + email path.

Hi @jayvdb sorry for the inconvenience on our current PDF based solution. (A better way is in the works.) I did just test with Adobe Acrobat Reader (free version) and using the "Sign & Fill" option it does work on this particular PDF.

Sent via DocuSign.  Hopefully that does the trick.

@jayvdb received the CLA and everything looks good, thanks! @shinchris this is ready now from a CLA perspective.

Thanks @jayvdb!


Added capability to pass a filename to the downloader component

Description:
Added capability to pass a filename to the downloader component
Related issue (if applicable): https://github.com/home-assistant/home-assistant.github.io/pull/3705#issuecomment-338500800
Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.github.io#3730
Example entry for configuration.yaml (if applicable):
downloader:
  download_dir: downloads

python_script example used on this test

# obtain ring doorbell camera object
# replace the camera.front_door by your camera entity
ring_cam = hass.states.get('camera.front_door')

subdir_name = 'ring_{}'.format(ring_cam.attributes.get('friendly_name'))
filename = 'test.mp4'

# get video URL
data = {
    'url': ring_cam.attributes.get('video_url'),
    'subdir': subdir_name,
    'filename': filename,
}

# call downloader component to save the video
hass.services.call('downloader', 'download_file', data)

Result

(python:ha-py36) ↪ tree ~/.homeassistant_tests/downloads/
/home/mdemello/.homeassistant_tests/downloads/
└── ring_FrontDoor
    └── test.mp4

Checklist:
If user exposed functionality or configuration variables are added/changed:

[x] Documentation added/updated in home-assistant.github.io

If the code does not interact with devices:

[x] Local tests with tox run successfully. Your PR cannot be merged unless tests pass
[ ] Tests have been added to verify that the new code works.

@balloob code updated!! Thank you for reviewing it!

It seems the travis/lint failed due to a timeout error, however it passed on my local branch https://travis-ci.org/tchellomello/home-assistant/builds/291878165

Restarted lint.


Does not Delete NIC when replacing a VirtualMachine

Maybe related to #440 ?
When changing the hostname of a virtual machine: azure.compute.VirtualMachine, the attempt to replace it results in:
error: compute.VirtualMachinesClient#CreateOrUpdate: Failure sending request: StatusCode=400 --
Original Error: Code="NicInUse" Message="Network Interface server-nic159a15ce is used by existing resource /subscriptions/1980e26b-ac5d-4145-9f2e-22243071cc08/resourceGroups/server-rg7f560b7b/providers/Microsoft.Compute/virtualMachines/server-vm5da1da8e.
In order to delete the network interface, it must be dissociated from the resource. To learn more, see aka.ms/deletenic." Details=[]

Had the same issue because I had a VM associated to a Network Interface and Azure refused to create a new VM with the same Network Interface (seems fair). Using deleteBeforeReplace on VM fixes the issue:
const networkInterface = new azure.network.NetworkInterface(`networkInterface`, {
    // ...
    });

new azure.compute.LinuxVirtualMachine(`virtualMachine-${num}`, {
      // ...
      networkInterfaceIds: [networkInterface.id],
      // ...
    }, {
      deleteBeforeReplace: true
    });


adding PR template

Digital Ocean recommends a PR template for hacktobervest and this was approved by CZ and RQ.

 Review PRs


Decide behaviour when overwriting state during migration

When a collition happens during copying the L2 contracts into the state we currently overwrite the existing state.
https://github.com/celo-org/optimism/blob/b5a2af7f414a2359a2925946c1a03f8aa88c4f9b/op-chain-ops/cmd/celo-migrate/state.go#L266
This might not be what we want to do during mainnet migration though. Alternative options include stopping the migration when this happens or logging a warning (although this risks a broken state after migration).

@palango Can you expando on what this is? The problem? context, etc?

Fail, and we know this beforehand and then manual intervention

I closed this prematurely, even though we have decided the behaviour we now need to implement this decision.

@palango should "Elapsed + remaining (hours)" be updated to 5? Is that number final?


Implemented PyInstaller toolchain

Added PyInstaller to the toolchain along with a Makefile that automates the dependency installation, building, and then formal installation of clip.
Also removed old scripts that became outdated as a result of these changes.

Closes #2


Permissions should mirror GitHub's

Anyone who can view a repo on Github should be able to view the builds for that repo on Linty.

Duplicate of #63


Possible to strip out just JavaScript?

The <script> tag is pretty straightforward, but how about leaving all HTML as is and stripping out only global event handlers, like onclick?

I'm looking for a solution, too.

You would also have to clobber any javascript: URLs.
We would look at a PR for an option that just disabled all JavaScript.

Im in the browser, I was going with this solution: https://vanillajstoolkit.com/helpers/sanitizehtml/


Feature: Need ability to add/remove multiple items in list/Array

Is your feature request related to a problem? Please describe.
I have usecase of adding multiple items from previous field to list and remove multiple / all options.
Describe the solution you'd like
I would like to have few more hooks/function from renderProps(children)
Describe alternatives you've considered
For now, I have to do forEach and call add/remove function from render prop
Additional context
Pls let me know if you need further details

I believe this can be done with initialValue prop, which will reinitialize the list for you.

Initial value fine. But after that there need a capability to remove all if required in a single button or action and similarly adding bulk instead of just one. Hope this adds more context ! Let me know If I am missing something.

You should use the setValue action from useFieldActions. See example for more https://form-atoms.github.io/list-atom/?path=/docs/components-list--docs#programmatically-set-value.
If you need to "append" multiple values to the current ones, or prepend etc, first read your list value with useFieldValue and pass it to the setValue combined with your new items.


Unknown the meaning of this selector

I don't know if is a bug or I don't understand the way this type of selectors works.
http://jsbin.com/nawanoqiju/edit?html,js,output
A div with id innner is inside the x-test component, the stylesheets returns this selector:
#inner.x-test As far as I know "." is reserved for class and could not concate with any other token.
Could anyone explain me how this works ?
Best

Stackoverflow.com would be a better place for such generic development questions. This selector looks for elements with id inner AND class x-test. If you leave a space like #inner .x-test it looks for descendants of the element with id inner which have the class x-test. #inner.x-test is a bit weird because usually an id identifies a single element because the DOM should not contain mir than 1 element with the same id. I don't know how shady DOM handles multiple custom elements which have an element with an id in their content.

Please close this issue.


Identify precip sources for HI, AK, PR

I can access precip data for the whole world from NOAA GOES data here: https://www.ncdc.noaa.gov/data-access/satellite-data/goes-r-series-satellites#QPE (called Rainfall Rate Quantitative Precipitation Estimation (RRQPE)). I have an example pipeline for how to access GOES data in viz-scratch here: https://github.com/USGS-VIZLAB/viz-scratch/pull/60. In the example, I pull cloud cover data, but you can change the product_nm in the fetch step to be ABI-L2-RRQPEF to pull the precip product.


Access-Control-Allow-Origin: * conflicts with Access-Control-Allow-Credentials: true

With this in an express application:
var cors = require('cors');
app.use(cors({credentials: true}));

requests with a CORS header like:
Origin: http://foo/bar

result in responses with the following CORS headers:
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true

This is not a combination or CORS headers allowed by Firefox. The error message Firefox produces is:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at ‘http://foo/bar’. (Reason: Credential is not supported if the CORS header ‘Access-Control-Allow-Origin’ is ‘*’).

When the Access-Control-Allow-Origin response header is changed to http://foo/bar instead, everything works as expected.
The cors module should produce correct and acceptable response headers by default.

When I add the following option to cors, things work as expected:
origin: function(origin, callback) {
  callback(null, true);
}

The problem still persists, I'm having same troubles with an Angular 2 application and Express right now and I tested every option without luck

@ScorpionXII: Well, a workaround is described in comment 2 but it's not ideal that this workaround is needed.

This is what I use to be compatible with most array use cases with credentials: true
const corsUrls = (process.env.CORS_URLS || '*').split(','); // ['*'] or ['http://example.com', 'https://example.com'];
cors({
  origin: (origin, cb) => cb(null, corsUrls.includes('*') || corsUrls.includes(origin)),
  credentials: true,
})

@andreas-gruenbacher what happens when you add origin: true as part of the cors options? Or do you have a list of accepted values?

According to docs at https://www.npmjs.com/package/cors :
origin: Configures the Access-Control-Allow-Origin CORS header. Possible values:

Boolean - set origin to true to reflect the request origin.

Which means { origin: true } will fix it, as it will set the response header Access-Control-Allow-Origin to the value of its requesting origin.

All good points. So what changes (or any?) should we make here? Perhaps someone would be willing to make a pull request?

For future reference, if somebody is using this with Apollo Server, take a look at https://github.com/expressjs/cors/issues/134#issuecomment-413543241

@dougwilson The problem is chrome blocks the request if you're using allowCredentials and the server returns Access-Control-Allow-Origin: *. That's what @xemasiv shows above. Unfortunately this library is effectively unusable if those are your requirements and you just have to write your own middleware.
IMO, he fix is, if you're using a function to set the origin, or if you're using a regexp, the library should set the Access-Control-Allow-Origin to the request origin if the test passes.

Hi @ajsharp I think you may be misunderstanding. The library is only "unusable" if you do app.use(cors({credentials: true})) as shown by the OP. All you need to do is add origin: true if you want to allow all in combination with credentials: app.use(cors({credentials: true, origin: true}))

If you have a fix in mind, though, you're welcome to make a pull request. I don't believe anyone has actually made a pull request yet around this issue, so one is welcome so we can look at. Even if that pull request would result in a breaking change release, that is perfectly fine.

@ajsharp can you clarify what specifically you're referring to when you say

Unfortunately this library is effectively unusable if those are your requirements

I only have two comments above that I made:
https://github.com/expressjs/cors/issues/119#issuecomment-360864174

Needs to be fixed still.

https://github.com/expressjs/cors/issues/119#issuecomment-374484742

All good points. So what changes (or any?) should we make here? Perhaps someone would be willing to make a pull request?

What requirements did I make? Is it just the request for a pull request?

@dougwilson Hey, apologies if "effectively unusable" came off harsh. Definitely not my intention, though realized after the fact it could've come off that way. To clarify, what I meant was, if you need credentials and want to use a function to whitelist the domains you want to allow, returning * for the Access-Control-Allow-Origin header breaks chrome.
I'll try to put together a PR and we can continue the discussion there. Thanks!

@dougwilson Oh man, my sincere apologies.  This indeed does work as expected, setting the Access-Control-Allow-Origin header to the request origin. So sorry for wasting your time!
FWIW, I think this issue can be closed.
const express = require('express')
const cors = require('cors')

const server = express()
const allowedOrigins = ['https://my.origin.com']

server.use(cors({
  credentials: true,
  origin: (origin, callback) => {
    if (allowedOrigins.includes(origin)) {
      callback(null, true)
    } else {
      callback(new Error(`Origin: ${origin} is now allowed`))
    }
  }
}))

Hi. I'm a weird CORS security person who sometimes looks in to different libraries and have fixed a number of CORS issues in different libraries. This issue caught my eyes. I reviewed the code for just a couple of minutes and the implementation looked fine to me.
One issue I see regularly is libraries will take a origin: * configuration and reflex all origin headers, which can result in users of the library having unexpected Access-Control-Allow-Credentials: true and Access-Control-Allow-Origin: <reflected>

I am using app.use(cors({credentials: true, origin: true})).
With that it will work for the OPTION request ~ access-control-allow-origin contains the domain. But the followup request POST (in my case) will fail because will contain *. And chrome does not like this.
Anyone having the same phenomenon?

Just an idea: if the user sets credentials: true but has no value for origin, would it be appropriate to immediately log a warning, e.g.

Express CORS middleware configuration invalid: when setting credentials=true, a value must be supplied for origin.

You could then treat credentials as unset / false, because the browser is going to ignore the ACA-Credentials header anyway, if you set it.
My original suggestion was going to be that credentials: true should be treated as also setting origin: true if no value is passed, but technically that's a breaking change that weakens security so I'm not sure it's a good idea.

CORS is a confusing and misunderstood specification for most developers. It would be very irresponsible on our part to assume that someone forgetting to set the origin value meant to make it reflective.
The current behavior is the best default: since the combination is not acceptable to the browser, you will encounter an error and will be forced to review your code.
To those setting {credentials: true, origin: true}, it  is effectively taking
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true

to the backend. Browsers don't allow that combination for a reason - it is too dangerous.
And you won't be able to undo your bad CORS setting by simply updating your code, the browser will decide when it should (if you didn't set the Access-Control-Max-Age).

@hacksparrow  are you opposed to adding a server-side warning (i.e., in this library) when options are supplied that are guaranteed to generate browser errors?  If so, maybe at least a warning in the docs for credentials along the lines of "must be used with an origin value other than false"?  Just thinking of something to sand down rough edges for new users.


fix(core): fix benchmark in core with types

forces a dereference onto query and then creates an option to wrap the
query
Closes #994

bors try


Only store JSON? Create CSV on demand?

Less disk, more CPU.

No, store both. For simplicity and speed of access.


Revise API documentation for Extended Profile

Overview
Update the draft extended profile API documentation to reflect the completed implementation and include the following

New endpoints
New extended field query parameters on the facility search endpoint
Updated examples of request and response JSON objects
Details explanation of the data schema for extended profile values returned from the APIs

The document is available here
https://docs.google.com/document/d/1tfkLpzhIDbvsTKYUTWchHTq2yt-a_-_U6XSuwPhJniE/edit#

@jwalgran I added a few notes to the document, but it's looking good. We might want to add the new product_types endpoint (in progress) to the docs as well


Add support for Ubuntu Kylin

Description
Add support for Ubuntu Kylin, the long time absent official flavor of Ubuntu.

Support ubuntu flavor detecting with XDG_CONFIG_DIRS.
Add the ubuntu kylin ascii art logo. (shown as below)
Add the distribution name (ID) into the comments / help information.

If there are something I can improve, please tell me.
Features

Issues
TODO

Thank you for your contribution!
This PR is merged into hyfetch since this repo (dylanaraps/neofetch) seems no longer maintained.
HyFetch is a fork of neofetch with LGBTQ pride flags, but the repo also maintains an updated version of the original neofetch, addressing many pull requests that are not merged in the original repo.
Read the "Running Updated Original Neofetch" section for more info!


Add capacity argument to make map/slice if it is known

Jenkins job manager/presubmit passed

Jenkins job manager/e2e-smoketest passed

Jenkins job manager/presubmit passed

@rkpagadala did you find this thru linters or code inspections?

Jenkins job manager/e2e-smoketest passed


[Java] add an util method for buffer's pretty hex dump

hi! My colleagues had some experiments with Netty and they showed me beautiful logging of byte buffers and I thought that it would be nice to have in aeron for debug purposes.
So I adopted that code for MutableDirectBuffer
results seems like this
for buffer
final UnsafeBuffer buffer = new UnsafeBuffer(new byte[128]);

final int length = buffer.putIntAscii(INDEX, -123);

System.out.println(PrintBufferUtil.prettyHexDump(buffer));

output will be
         +-------------------------------------------------+
         |  0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f |
+--------+-------------------------------------------------+----------------+
|00000000| 00 2d 31 32 33 00 00 00 00 00 00 00 00 00 00 00 |.-123...........|
|00000010| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
|00000020| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
|00000030| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
|00000040| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
|00000050| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
|00000060| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
|00000070| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
+--------+-------------------------------------------------+----------------+

or for
final byte[] testBytes = "Hello World".getBytes();
final ByteBuffer srcBuffer = ByteBuffer.allocateDirect(testBytes.length);
srcBuffer.put(testBytes).flip();

final UnsafeBuffer srcUnsafeBuffer = new UnsafeBuffer(srcBuffer);

srcUnsafeBuffer.getBytes(0, buffer, INDEX, testBytes.length);

output is
         +-------------------------------------------------+
         |  0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f |
+--------+-------------------------------------------------+----------------+
|00000000| 48 65 6c 6c 6f 20 57 6f 72 6c 64                |Hello World     |
+--------+-------------------------------------------------+----------------+

oh, right,  I also made your build.gradle file a little bit more IDE-friendly.

about licence, my understanding as well as I noticed that original code is from netty project,  i kept the header and your code is under the same Apache 2.0 licence there is no problems here.

Sounds good to me 👌

Sorry i was out of my desc, thank you @mjpt777 for the tidy up and improvements.
thanks everyone for review and merge!


bump for v0.9.0

Not sure on your version increment procedures, but I took a stab at it.

I'm ok with the release. Any objection from someone (eg. a PR that we should merge beforehand)?

Seems like it's good to go


Invalid props key event with latest beta version

I read on the README that the key props was changed from key to track-by. Even with this, I still get this error :
[Vue warn]: "key" is a reserved attribute and cannot be used as component prop.  (found in component <multiselect>)
Install process :
npm install --save vue-multiselect@next
Component template:
<multiselect
  v-model="selected_customer"
  id="ajax"
  label="name"
  track-by="id"
  :searchable="true"
  :options="customers_list"
  :internal-search="false"
  :close-on-select="true"
  :limit="5"
  @search-change="fetch_customers">
<multiselect>

Component script :
import Multiselect from 'vue-multiselect'
import axios from 'axios'

export default {
  components: {
    Multiselect
  },
  data: function () {
    return {
      selected_customer: null,
      customers_list: []
    };
  },
  methods: {
    fetch_customers: function (term) {
      axios.get('/customers/autocomplete', {
        params: {
          term: term
        }
      })
      .then( (response) => {
        this.customers_list = response.data;
      })
      .catch( (error) => {

      })
    }
  }
 }

Closed, dependencies problems.

Can you give more details of this problem?


Change tutorial knight position to match screenshot

In the tutorial docs the knight position applied by hard-coding the prop doesn't match the screenshot. The image shows a knight in position [7,4] (instead of [4,7] like the code).
Have updated the code example.

I got confused there too, thanks!


Allow date manupulation in template variables

In my weekly notes, I would have template variables like

{{date:YYYY-MM-DD}}
{{date+1d:YYYY-MM-DD}}
{{date+2d:YYYY-MM-DD}}
...

I'd use these variables in dataview queries to find files with text strings for "this week in history" or "this day in history" type features.
Would it be possible to add this, similar to what Periodic Notes has, as I'm keen to replace periodic notes with Journals?

this is great idea and I will definitely add it
btw it is hard to say from your description for sure but if you try to find all days in some week won't it be easier to use fields that plugin adds in frontmatter (for week you have first and last day of week in there)?

My primary use for this:
I have notes for people, and in the frontmatter I add a property "dates" which is a list of date strings and notes
dates:
- "1979-05-20: birthday"
- "2020-08-10: something of note"
- "2021-09-01: something interesting"

In my weekly notes I have a search query that looks for each of the days of the current week:
\```query
[dates:/\d{4}(-04-08|-04-09|-04-10|-04-11|-04-12|-04-13|-04-14): */]
\```

When I open my weekly note I can see a list of any special events I need to remember this week.
I'm still looking for a better way to store a list of dates and special events, but this is what I've come up with for now. :P

Another use-case:
I use quarterly notes, but I also add an alias for the financial year's quarters.
In my quarterly notes template I would add
aliases:
  - FY{{start_date+9M:YYYY-[Q]Q}}

In periodic notes, Liam added {{quarter}} template variables, and at https://github.com/liamcain/obsidian-periodic-notes/blob/f3d7266cdeb59b6f17a18a728c04219e19bac07d/src/utils.ts#L116 you can see the interval changes being applied.


Add Ayatul Kursi Page

Premise:
Ayatul Kursi is one of our highest queried by impression but is ranked poorly. This is an attempt to give it a little bump.

Deployed to: http://staging.quran.com:32792

Deployed to: http://staging.quran.com:32794

Thanks @naveed-ahmad  :)


Code of CVPR 2019 Paper: Region Proposal by Guided Anchoring

I tried this myself and encountered the following error: ModuleNotFoundError: No module named 'mmdet.ops.masked_conv.modules'. What could be the problem? Thanks!

I tried this myself and encountered the following error: ModuleNotFoundError: No module named 'mmdet.ops.masked_conv.modules'. What could be the problem? Thanks!

You can run:
bash ./compile.sh
python setup.py install

I tried this myself and encountered the following error: ModuleNotFoundError: No module named 'mmdet.ops.masked_conv.modules'. What could be the problem? Thanks!

You can run:
bash ./compile.sh
python setup.py install

I pulled your most recent updates, recompiled and reinstalled, but the problem persists.

I tried this myself and encountered the following error: ModuleNotFoundError: No module named 'mmdet.ops.masked_conv.modules'. What could be the problem? Thanks!

You can run:
bash ./compile.sh
python setup.py install

I pulled your most recent updates, recompiled and reinstalled, but the problem

I tried this myself and encountered the following error: ModuleNotFoundError: No module named 'mmdet.ops.masked_conv.modules'. What could be the problem? Thanks!

You can run:
bash ./compile.sh
python setup.py install

I pulled your most recent updates, recompiled and reinstalled, but the problem persists.

Does any error appears when you compile it? If it is compiled successfully, there will be a file like
mmdet/ops/masked_conv/masked_conv2d_cuda.cpython-36m-x86_64-linux-gnu.so

There isn't, and the .so file exists.

Sorry, I have no idea about your problem. But there is a similar issue https://github.com/open-mmlab/mmdetection/issues/367.

Thank you for your great work. Can you share the benchmark of GA-RPN and detectors on the PR discription?

@myownskyW7 Could you provide a checkpoint file?

@thangvubk @lawpdas
You can find benchmarks and checkpoints in README.

eNotFoundError: [Errno 2] No such file or directory: 'data/VOCdevkit/proposals/ga_rpn_r50_fpn_1x_train2017.pkl'


JsonPath parse json error in leaf

This is the JSON:
{
"datas": {
    "selling": {
        "3": [
            26452067,
            31625950
        ],
        "206": [
            32381852,
            32489262
        ],
        "208": [
            458
        ],
        "217": [
            27364892
        ],
        "226": [
            30474109
        ]
    }
},
"status": 0
}

My path is         $.datas.selling['3','206'].*
And I want to get both of '3' and '206' data. Like this JSON:
[
26452067,
31625950,
32381852,
32489262
]
But now it is not working.The error message is
Multi properties can only be used as path leafs: $['datas']['selling']['3', '206']
My JsonPath version is 2.0.0.
I remember it can run in low-level version like 0.9.1.
How can I do it?

This works as you expect in upcoming release.


Book 1, Ch. 4, Figure 4.3

Figure 4.3 lists (a) for both short and long memory.  Long memory should be labeled (b) according to the $\beta$ used on the subplot (b).

Huh?


Save model to file for reuse

Hello,
I've been digging through the archive here and come across several discussions on saving and restoring a GPflow model (m) (e.g. #753, #689, #543). I can't seem to get the various methods discussed to work myself. I want to save the model so that I don't have to reoptimize every time I want to sample from the model in a new session (the particular problem I care about takes about 35 minutes to optimize as I have a lot of data points).
I'm running with python 3.5.2, on a Jupyter notebook for save and restore (each separate), and I cloned the repository on 5/31/18.
Here is an example code that I have been working with:
Save:
import gpflow
import numpy as np
import random
import tensorflow as tf

rng = np.random.RandomState(4)
X = rng.uniform(0, 5.0, 15)[:, np.newaxis]
Y = np.sin((X[:, 0] - 2.5) ** 2).reshape(len(X),1)

with gpflow.defer_build():
    k = gpflow.kernels.Matern32(1)+gpflow.kernels.RBF(1)
    m = gpflow.models.GPR(X, Y, kern=k,name='model')
    m.likelihood.variance = 1e-03
    m.likelihood.trainable = False

tf.local_variables_initializer()
tf.global_variables_initializer()

tf_session = m.enquire_session()
m.compile( tf_session )

gpflow.train.ScipyOptimizer().minimize(m)

saver = tf.train.Saver()
save_path = saver.save(tf_session, "./model.ckpt")
print("Model saved in path: %s" % save_path)

and restore:
import gpflow
import numpy as np
import random
import tensorflow as tf

rng = np.random.RandomState(4)
X = rng.uniform(0, 5.0, 15)[:, np.newaxis]
Y = np.sin((X[:, 0] - 2.5) ** 2).reshape(len(X),1)

with gpflow.defer_build():
    k = gpflow.kernels.Matern32(1)+gpflow.kernels.RBF(1)
    m = gpflow.models.GPR(X, Y, kern=k)
    m.likelihood.variance = 1e-03
    m.likelihood.trainable = False

tf.local_variables_initializer()
tf.global_variables_initializer()

tf_graph = m.enquire_graph()
tf_session = m.enquire_session()
m.compile( tf_session )

saver = tf.train.Saver()

save_path = saver.restore(tf_session, "./model.ckpt")
print("Model loaded from path: %s" % save_path)

The error I am getting for this method is:
NotFoundError: Key GPR-2f9a4138-12/X/dataholder not found in checkpoint
I also tried to implement the saver, (https://github.com/GPflow/GPflow/blob/fd6beaafd27c5c48d09f037b1b46f56260da424c/gpflow/saver/saver.py) and it didn't work for me. But I noticed discussion elsewhere that hinted maybe this isn't supported anymore?
Thanks for any help you can provide in advance, and sorry that I'm asking a redundant question.

In the code snippet that restores the model, you are missing the name='model' part - does it work if you add that? (Your code would be more robust if you have a single function that builds the model both for optimising/saving and restoring/predicting, which you then import in both parts)

I never got a chance to come back to this. Sorry about that @st--
I add name='model' as suggested to the restore code and it "works" in the sense that I don't get the same error any more, but now I have a different problem.
When I inquire of the restored model what its parameters are, they remain the untrained/not optimized versions, which is not the behavior I am looking for.

Huh, looks like there's an issue with the restore not actually anchoring the tensorflow values to the numpy view: if you print m.kern.kernels[0].lengthscales.value, you get the default of 1.0, if you print m.kern.kernels[0].lengthscales.read_value(tf_session), it prints the correct value (9.292... for me). After calling m.anchor(tf_session), then m.kern.kernels[0].lengthscales.value works as intended, as well.
This is an intricacy of how tensorflow graphs&sessions work ... @awav, is there any reason why we can't make the saver.restore() call the anchor() as well ?

Thanks for following up @st-- , I really appreciated it!
I'm giving this a try with:
m.anchor(tf_session) m.as_pandas_table()
And I also see the same hyperparameter value for m.kern.kernels[0].lengthscales.value (9.292...), so that's a good sign. It seems to be working now.
I'm wanting to construct a workflow that is repeatable and reliable for saving/loading, should I just go through these steps?:

create/optimize the model
set tf.global_variables_initializer()
create the saver
save the session
reconstruct the model
create the saver
restore the session
call m.anchor(tf_session)

Trying to figure out what is the bare minimum in the code I made above to get the expected behavior. My relative unfamiliarity with Tensorflow means its difficult for me to judge which parts are useful (I copied much of it from previous examples that people had reported).

Looks about right, though you don't need to optimize the variables after creating the model (if anything, that is something I suspect you'd do before optimizing!) - your example works just fine without the initializer calls. So, (1. 3. 4.) / (5. 6. 7. 8.) :)

Closing this as we'll no longer actively maintain gpflow pre-2.0 - if you care about getting this fixed in the 1.x release branch, please make a PR.


fix(server): fix parsing lyrics in uncommon format

The lyric of song 仲村芽衣子 - Scarlet Faith is:
[00:00.000] 作词 : 仲村芽衣子
[00:00.000] 作曲 : 水夏える
[0:00.000]
[0:14.880]離れて君を手繰るその指は
[0:18.480]ただ儚い時を辿って
[0:21.280]終わらない夢を彷徨い続けた
[0:24.770]迷い無き僕の目で
[0:28.000]熱き鼓動を響かせて
[0:31.400]
[0:37.750]
[0:43.910]この両手が歪ませた
[0:47.080]罪と制裁の狭間で
[0:50.230]塵に紛れて 錆び付く刃
[0:55.250]
[0:56.330]何が正義であるべきか
[0:59.750]その目で見つめた物が
[1:03.000]答えじゃないのならば
[1:06.100]何を信じればいい？
[1:09.530]
[1:10.540]A change out その日 was my sanctuary
[1:14.080]その声が胸を焦がして
[1:16.880]走り出す影が届かない場所へ
[1:20.450]消えてしまう前に 抱きしめに行く
[1:23.230]
[1:23.840]離れて君を手繰るその指は
[1:26.800]ただ儚い時を辿って
[1:29.620]終わらない夢を彷徨い続けた
[1:33.140]迷い無き僕の目で
[1:36.370]熱き鼓動を響かせて
[1:39.740]
[1:45.840]まだ芽生えたての種が
[1:49.090]古き戦場に塗れて
[1:52.210]息を殺して流した涙
[1:57.220]
[1:58.380]やがて事実は凌がれて
[2:01.800]行き場のないこの声が
[2:04.940]世界を枯らすのなら
[2:08.130]壊してしまえばいい
[2:11.520]
[2:12.520]Another to change out my precious life and history
[2:16.100]未来を抜き 今スピード上げ
[2:18.880]届かないなんて諦める前に
[2:22.450]握り締めた剣 振りかざし続け
[2:25.250]
[2:25.820]終わらない夢を彷徨い続けて
[2:28.800]僕の目は炎宿して
[2:31.570]空を舞う灰が降り注いでいた
[2:35.120]味気ないこの世界
[2:38.340]君という光で溶かして
[2:41.730]
[2:49.690]...music...
[3:05.570]
[3:08.140]佇むものは星の数ほどに
[3:11.730]発つ者は一握りだけ
[3:14.480]意味があるようで でも見つからずに
[3:18.010]進む戦火の海駆け抜けた 降り注ぐ灰
[3:22.460]
[3:23.040]A change out その日 was my sanctuary
[3:25.980]その声が胸が焦がして
[3:28.790]走り出す影が届かない場所へ
[3:32.340]消えてしまう前に 抱きしめに行く
[3:35.100]
[3:35.750]まだ終わらない 手繰るその指は
[3:38.700]ただ儚い時を辿って
[3:41.500]守りたいだから 刃をかざした
[3:45.070]迷い無き僕の目で
[3:48.270]願うのはみな同じ
[3:51.250]そうどこまでも切り裂いて
[3:56.430]
[4:09.160]-END-

From the third line, the timestamps are in [0:00.000] format, instead of the commonly found [00:00.000].
With current parsing logic, all those lines will be discarded.

This PR allows minute number in any length, thus fixing parsing such lines. It also trims leading and trailing spaces from each line to better align with official web player.

Some random things:
I really don't like you writing TypeScript in Rust flavor.
My compiled server.js stuck at Song: Loading at startup, with no error in stderr. After manually pick one to play, it appears to be playing, but without sound.

Some random things:

I really don't like you writing TypeScript in Rust flavor.
My compiled server.js stucks at Song: Loading at startup, with no error in stderr. After manually pick one to play, it appears to be playing, but without sound.

Actually, I'm new to typescript and rust.
Do you mean there is no problem with the server.js compiled in github actions?

Do you mean there is no problem with the server.js compiled in github actions?

Didn't try builds from GitHub Actions. Visual Studio Code Marketplace released version is ok.
My steps:
git clone ...
git checkout v8.3.8
yarn
yarn generate-css
yarn build
cd crates/native
cargo build
cd ../..
mkdir build
cp crates/native/index.node build/win32-x86.node
node dist/server.js

Then activate official release version 8.3.8, it will connect to my dev server.
But initially it looks like this:

The queue is empty (should be daily recommended songs), and status bar shows "Song: Loading"
There is no error in node dist/server.
By selecting a song in my favorite playlist, it starts "playing", just has no sound

I'm not sure:

Why does it require installing LLVM?
https://github.com/YXL76/cloudmusic-vscode/blob/9cf8fd7db8819a74903bb182531a02c335ef4722/.github/workflows/release.yml#L100-L104
Does neon compile for Electron or Node.js? I see you enabled the n-api feature, does the produced binary support all Node.js versions and variants because of it?
What does wasi package do? wasm-pack installation is broken now on Windows so I didn't build it, and it seems like still working fine.
https://github.com/YXL76/cloudmusic-vscode/blob/9cf8fd7db8819a74903bb182531a02c335ef4722/.github/workflows/release.yml#L185-L186

A development guide will be extremely helpful.

@yume-chan

The server starts before the client, and the client thinks another client has existed before, so it did not initialize (e.g., getting recommended song lists, setting volume). If you set volume manually, it will have sound.
It needs llvm for bindgen.
You can check the Node-API version matrix for the supported versions.
Wasi is of no use right now, it will be used in v9.x.x.

and the client thinks another client has existed before, so it did not initialize

Understood. There should be a better way to debug the server, for example allowing specifying custom server path and pass --inspect/--inspect-brk when forking the server. Like how TypeScript language feature extension did https://github.com/microsoft/vscode/blob/39510d4778bcd683a7b76461785fe0ee966eaf1a/extensions/typescript-language-features/src/tsServer/serverProcess.electron.ts#L178-L182

It needs llvm for bindgen.

Where is it used? I can build everything following workflow file fine on Windows.

Where is it used? I can build everything following workflow file fine on Windows.

Actually, I don't know. But building it in Github Action will fail without llvm.
https://github.com/neon-bindings/neon/blob/65c076829d403f04cd3ea7a5f0f3457ad525e955/.github/workflows/windows.yml#L36-L40


Add new schemas from DMa local repo: segment, propensity

What are the schemas that are affected by the issue
new schemas
-segment
-propensity
What are examples of products that are impacted by the issue
platform xdm definition

Close this. @cmathis @cdegroot-adobe


New packages for future deployments

mamba (https://anaconda.org/conda-forge/mamba, https://github.com/mamba-org/mamba)
py-spy (https://anaconda.org/conda-forge/py-spy, https://github.com/benfred/py-spy)
httpie (https://anaconda.org/conda-forge/httpie)

We can package https://github.com/conda-forge/httpie-feedstock/blob/master/recipe/meta.yaml with @kbeeperez as a training exercise.


FEATURE: Have ability to run pcloud on headless server/terminal

Tried pcloud using oauth, which works fine, but then the API is looking for a firefox browser or similar on a desktop/GUI. The script should be able to run within console/terminal (headless server). See output below:
$ python
Python 3.9.6 (default, Jul  6 2021, 19:38:26)
[GCC 10.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from pcloud import PyCloud
>>> pc = api.PyCloud.oauth2_authorize(client_id="MY_CID", client_secret="MY_CS")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'api' is not defined
>>> from pcloud import api
>>> pc = api.PyCloud.oauth2_authorize(client_id="MY_CID", client_secret="MY_CS")
/usr/bin/xdg-open: line 881: x-www-browser: command not found
/usr/bin/xdg-open: line 881: firefox: command not found
/usr/bin/xdg-open: line 881: iceweasel: command not found
/usr/bin/xdg-open: line 881: seamonkey: command not found
/usr/bin/xdg-open: line 881: mozilla: command not found
/usr/bin/xdg-open: line 881: epiphany: command not found
/usr/bin/xdg-open: line 881: konqueror: command not found
/usr/bin/xdg-open: line 881: chromium: command not found
/usr/bin/xdg-open: line 881: chromium-browser: command not found
/usr/bin/xdg-open: line 881: google-chrome: command not found
/usr/bin/xdg-open: line 881: www-browser: command not found
/usr/bin/xdg-open: line 881: links2: command not found
/usr/bin/xdg-open: line 881: elinks: command not found
/usr/bin/xdg-open: line 881: links: command not found
/usr/bin/xdg-open: line 881: lynx: command not found
/usr/bin/xdg-open: line 881: w3m: command not found
xdg-open: no method available for opening 'https://my.pcloud.com/oauth2/authorize?response_type=code&redirect_uri=http://localhost:65432/&client_id=MY_CID'

You can use username/password authentication (see https://github.com/tomgross/pycloud#usage-of-api) instead of OAuth 2.0 authentication.
OAuth 2.0 is designed to include a web page in its flow (see https://docs.pcloud.com/methods/oauth_2.0/authorize.html).
What you can try is to generate an access token somehow and pass it to PyCloud directly. As documented, the access token currently will not expire (see https://docs.pcloud.com/methods/oauth_2.0/)
>>> access_token = "..."
>>> pc = PyCloud("", access_token, oauth2=True)

Is there a way to get the browser redirect address and then the user can plug that into a webbrowser? Then take the token code and paste it back into the script on the command line and then it gets the access_token that way? That is how some of the other cloud-type scripts work to gain access via command line.

I've been looking at your code and would you entertain a PR that would give the user the ability to run this on a headless server, the script outputs the link to input into a browser (laptop) and then the access token that is returned from the request_uri can be pasted back into a users script of pycloud that authenicates them...?

Hi to use a headless-type server..I've created a script that includes a TokenHandler class in the same file as my script but when I pass my TokenHandler into PyCloud.oauth2_authorize like so:
class TokenHandler:
    redirect_url = "localhost"

    def __init__(self, client_id):
        self._id = client_id
        self.auth_url = f"https://my.pcloud.com/oauth2/authorize?response_type=code&redirect_uri={self.redirect_url}&client_id={self._id}"
        #print(self.auth_url)

    def get_access_token(self):
        print("Copy url into browser: {0}".format(self.auth_url))
        access_token = input("\nCopy/paste the 'code' portion of the link in address bar here: ")
        return access_token, "localhost"

th = TokenHandler(client_id)

pc = PyCloud.oauth2_authorize(client_id=client_id,
        client_secret=client_secret, tokenhandler=th)

I get a
File "/home/alarm/.local/lib/python3.10/site-packages/pcloud/api.py", line 114, in oauth2_authorize
code, hostname = tokenhandler(client_id).get_access_token()
TypeError: 'TokenHandler' object is not callable

I know this might be more of a python-type question, but I thought you may be able to help me out faster as I don't have the most experience with python and classes, etc.

In order for the user to create their own TokenHandler class, I think you need to make the endpoint var available to pass into oauth2_authorize as a variable so the headless server can set endpoint.

you can disregard the above two comments. I figured out after.


fix: config max zoom 0

as per #870, setting max_zoom to 0 currently causes the layer to bleed through
over the entire zoom range. Either we fix filtering as per #871
or make sure max_zoom is never 0 as I do in this PR.

Pull Request Test Coverage Report for Build bec5b46dc-PR-874

8 of 8 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.04%) to 45.309%

Totals

Change from base Build ac60a09d3:
0.04%

Covered Lines:
5607

Relevant Lines:
12375

💛  - Coveralls


Support for Makefile and custom errorformat

I am using this plugin to run tests on Ada code. This required me to use a Makefile and AUnit (like JUnit) to execute my tests. I have the test cases running using :TestSuite. The errorformat for the tests needs to be different from the errorformat when compiling. Is this possible?

If you're using the dispatch strategy, you can tell vim-dispatch to use a specific Vim compiler for your make command:
let g:dispatch_compilers = { 'make test': 'your-compiler' }

That Vim compiler should then set the correct errorformat. A "Vim compiler" is a vim file compilers/<name>.vim in runtime path. You can check some existing ones that came with your Vim distribution to get the gist, so you can create your own. Or you can import/use an existing AUnit/JUnit Vim compiler if one exists.
Test.vim itself doesn't deal with Vim compilers or setting errorformat, as that's strategy-specific.


FOV changes is bugged

When it says "FOV changes enabled" it is actually disabled.
When it says "FOV changes disabled" there are sporadic FOV changes when sprinting.
RandomTweaks version: <IP_ADDRESS>
Minecraft version: 1.12.2
Modpack: Project Gear

same with me. do you have numina installed?

Custom pack, 1.12.2, RandomTweaks 2.7.10 . Can't reproduce the issue.

Another mod may be adjusting the FoV. I'm not sure what I can do about that.


Added resampling when previewing a PDF for better quality.

Addresses issue #71 by adding resample=True to resize().

@lebouquetin @inkhey It does improve the quality, there is still some noise around letters but the shape of them is consistent.

Without zoom, it is a lot easier to read and doesn't change the quality of images.
Files have the same size.

Thanks @edwardvk

Thanks @edwardvk for thoses fix,
Can you create another pull request for the file decryption issue fix (see issue #52 ) ?

@edwardvk for extra explanation:

we want to merge your code but we prefer to merge it as 2 features (it implements improvment in pdf quality + support for encrypted PDF)
by the way, the given pdf file for test case seems to be a real PDF file. Is it the case? Is it safe to publicly use it?

I've closed the re-opened the pull request. (I think it will include the new commit?)
It is a real PDF. I was unable to create a non-worked PDF myself, so I used a real one. It does not contain any interesting information. You can make it public.

@edwardvk We move theses fix in 2 other MR :

https://github.com/algoo/preview-generator/pull/75 - for resampling
https://github.com/algoo/preview-generator/pull/76 - for decryption fix.


Implementation of GRU

Hi, guys! First, thanks for your library, i found it nice and very useful.
I decided to implement GRU(Gated Recurrent Unit) , which descripted on the paper Empirical Evaluation of Gated Recurrent Neural Networks on Sequence Modeling and this is very similar to LSTM, but with less numbers of steps. Therefore, i took LSTM class and just "adapt" it to GRU.
And my results(training with RMSProp): after 25 iterations of GRU i've got a loss=2.993710 and after 40 iterations of LSTM, loss = 3.501202.
I'm not provide example, because to run it, you can just change lstm to gru from file lstm_chime.py(from examples)
from
def layer(n):
    return dict(form='bidirectional', worker='lstm', size=n)

to
def layer(n):
    return dict(form='bidirectional', worker='gru', size=n)

And just run it.
What do you think about it?

Fantastic, thank you!!


Include and ThenInclude not working after select

Microsoft.AspNetCore.All - 2.1.3
 var userCourses = await ctx.UserCourses
        .Include(x => x.User)
            .ThenInclude(x => x.UserCompanies)
                .ThenInclude(x => x.Company)
                    .ThenInclude(x => x.Licenses)
                        .ThenInclude(x => x.CompanyCourseLicenses)
        .Select(x => new
        {
            x.Course.Title,
            x.User
        })
        .ToListAsync();

All User navigation property ICollection is null
If i remove select, then userCourse have User with all ICollection's

Duplicate of #12737


Link civil parishes to gazetteer

Problem is transcriber types TWYS rather than the PARMS form.
Please would it be possible to code civil parish name check to use alternate names in gazetteer? answer: not possible.
Coords are getting error messages for parish names even if there is a correct alternative spelling in the gazetteer.
Process for Transcriber for dealing with errors is documented in the handbook.
E2 U7 S9 C6: P24

On second thoughts could this impact on rationalisation of parish names across census years, so perhaps not such a good idea?

It is good that you ask the question.
Since we use the "standard" parish name in all the displays there should not be any issue. (Says he but will think a bit more)

@PatReynolds to let SuffolkRoots know

We need to show linkages in the gazetteer. @AnneV-Learn to think about how this can be achieved.

@geoffj-FUG When showing the information for a specific place in the Gazetteer have renamed 'records online' to 'search records online' (as that is what that is) and added 'Number of pieces'. See screenshot below and has been deployed to Test3. Is this sufficient information?

I have had a look and the renaming the stat as search records is better.
Is it possible to include a "Linked to PARMS record" Yes/No stat as well. It would save a lot of problems knowing what unseen links are there.
Geoff

Ok @geoffj-FUG I have added "Linked to PARMS record" stat and the change has been deployed to Test3.

@geoffj-FUG to test

Looks Good. This can be deployed
Geoff

The original request cannot be done. The Civil parish links and tests to teh PARMS, not the Gazetteer. The PARMS entry is then linked to the Gazetteer.

Done so closing


ARROW-1425: [Python][Documentation] Examples of convert Timestamps to/from pandas via arrow

This is an attempt to shorten (https://github.com/apache/arrow/pull/1575) which I didn't have access to directly.  The results were a little surprising and it has been a while since i played with spark ( I just pip installed pyspark and nothing else) so its possible my configuration was slightly off

pip install pyspark gives you a whole working Spark install?

Enough that the commands here worked.  I think this might gave been some sort of local only mode since I didn't see any information about submitting jobs or anything like that (which is why it would be nice if someone more experienced with modern spark can chime in)

pip install pyspark gives you a whole working Spark install?

It's not a complete install, I don't think you can setup a cluster. It works fine for local mode though.

Does it have Arrow support?

@wesm Tried to cleaned up  some of the more egregious grammar, I'm sure there is more.
@BryanCutler Just to be clear, is there an expected difference between local mode and clustered mode in pyspark for timestamp conversion?

Does it have Arrow support?

Yes, there is Arrow support, but pyarrow is not automatically installed when you do pip install pyspark.

@BryanCutler Just to be clear, is there an expected difference between local mode and clustered mode in pyspark for timestamp conversion?

There is no difference for running something like this in local mode vs cluster, so it is fine to use to check out the behavior.

A naive timestamp is treated as system local time zone

I don't use spark, but this behaviour is IMHO a really bad idea and was considered a bug in numpy:

https://github.com/numpy/numpy/issues/3290#issuecomment-17462003
https://github.com/numpy/numpy/issues/3388

I don't use spark, but this behaviour is IMHO a really bad idea and was considered a bug in numpy:

I totally agree @dhirschfeld , and I'm not sure of the reason for this in Spark. Thanks for the reference, I know there is an effort to improve timestamps right now, so maybe that will be good to bring up.