use-package integration causes incorrect symbol-file

What's wrong
If I add a package with use-package and :straight t, then evaluating (symbol-file 'the-package) will give the location of the use-package call, not the location of the package itself. This is not the case when one adds the package with straight directly.
This has caused bugs in packages I use such as julia-snail
Directions to reproduce
Put the following in your init.el:
(use-package julia-snail
  :straight t)

and then evaluate (symbol-file 'julia-snail). This will return e.g. "/home/mason/.emacs.d/myinit.el", whereas if you do
(straight-use-package 'julia-snail)

then (symbol-file 'helm) correctly returns "/home/mason/.emacs.d/straight/build/julia-snail/julia-snail.elc"
Version information

Emacs version: GNU Emacs 29.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.40, cairo version 1.18.0)
Operating system: Manjaro Linux

I get the same result with or without use-package on Emacs 30.0.50.

Test Case
(straight-bug-report
  :post-bootstrap
  (use-package julia-snail :defer t :straight t)
  (print (symbol-file 'julia-snail)))

Test run at: 2024-02-29 12:22:29
system-type: gnu/linux
straight-version: prerelease (HEAD -> develop, origin/develop) b1062df 2024-02-26
emacs-version: GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.41, cairo version 1.18.0) of 2024-02-28

Output
Bootstrapping straight.el...
Bootstrapping straight.el...done
Looking for gnu-elpa-mirror recipe → Cloning melpa...
Looking for gnu-elpa-mirror recipe → Cloning melpa...done
Looking for nongnu-elpa recipe → Cloning gnu-elpa-mirror...
Looking for nongnu-elpa recipe → Cloning gnu-elpa-mirror...done
Looking for emacsmirror-mirror recipe → Cloning nongnu-elpa...
Looking for emacsmirror-mirror recipe → Cloning nongnu-elpa...done
Looking for emacsmirror-mirror recipe → Cloning el-get...
Looking for emacsmirror-mirror recipe → Cloning el-get...done
Looking for straight recipe → Cloning emacsmirror-mirror...
Looking for straight recipe → Cloning emacsmirror-mirror...done
Building straight...
Building straight...done

Test run with version: prerelease (HEAD -> develop, origin/develop) b1062df 2024-02-26
Cloning julia-snail...
Cloning julia-snail...done
Building julia-snail...
Building julia-snail → Cloning dash.el...
Building julia-snail → Cloning dash.el...done
Building julia-snail → Building dash...
Building julia-snail → Building dash...done
Building julia-snail → Cloning julia-emacs (for julia-mode)...
Building julia-snail → Cloning julia-emacs (for julia-mode)...done
Building julia-snail → Building julia-mode...
Building julia-snail → Building julia-mode...done
Building julia-snail → Cloning s.el...
Building julia-snail → Cloning s.el...done
Building julia-snail → Building s...
Building julia-snail → Building s...done
Building julia-snail → Cloning spinner...
Building julia-snail → Cloning spinner...done
Building julia-snail → Building spinner...
Building julia-snail → Building spinner...done
Building julia-snail → Cloning popup-el (for popup)...
Building julia-snail → Cloning popup-el (for popup)...done
Building julia-snail → Building popup...
Building julia-snail → Building popup...done
Building julia-snail...

Bootstrapping straight.el...done
Looking for gnu-elpa-mirror recipe → Cloning melpa...
Looking for gnu-elpa-mirror recipe → Cloning melpa...done
Looking for nongnu-elpa recipe → Cloning gnu-elpa-mirror...
Looking for nongnu-elpa recipe → Cloning gnu-elpa-mirror...done
Looking for emacsmirror-mirror recipe → Cloning nongnu-elpa...
Looking for emacsmirror-mirror recipe → Cloning nongnu-elpa...done
Looking for emacsmirror-mirror recipe → Cloning el-get...
Looking for emacsmirror-mirror recipe → Cloning el-get...done
Looking for straight recipe → Cloning emacsmirror-mirror...
Looking for straight recipe → Cloning emacsmirror-mirror...done
Building straight...
Building straight...done

Test run with version: prerelease (HEAD -> develop, origin/develop) b1062df 2024-02-26
Cloning julia-snail...
Cloning julia-snail...done
Building julia-snail...
Building julia-snail → Cloning dash.el...
Building julia-snail → Cloning dash.el...done
Building julia-snail → Building dash...
Building julia-snail → Building dash...done
Building julia-snail → Cloning julia-emacs (for julia-mode)...
Building julia-snail → Cloning julia-emacs (for julia-mode)...done
Building julia-snail → Building julia-mode...
Building julia-snail → Building julia-mode...done
Building julia-snail → Cloning s.el...
Building julia-snail → Cloning s.el...done
Building julia-snail → Building s...
Building julia-snail → Building s...done
Building julia-snail → Cloning spinner...
Building julia-snail → Cloning spinner...done
Building julia-snail → Building spinner...
Building julia-snail → Building spinner...done
Building julia-snail → Cloning popup-el (for popup)...
Building julia-snail → Cloning popup-el (for popup)...done
Building julia-snail → Building popup...
Building julia-snail → Building popup...done
Building julia-snail...

I get this error when trying to load the package:
ELISP> (require 'julia-snail)
*** Eval error ***  Neither vterm nor eat dependencies detected; please install one or the other

However, modifying the init-file as follows can reproduce the problem:
(defvar bootstrap-version)
(let ((bootstrap-file
       (expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
      (bootstrap-version 6))
  (unless (file-exists-p bootstrap-file)
    (with-current-buffer
        (url-retrieve-synchronously
         "https://raw.githubusercontent.com/radian-software/straight.el/develop/install.el"
         'silent 'inhibit-cookies)
      (goto-char (point-max))
      (eval-print-last-sexp)))
  (load bootstrap-file nil 'nomessage))

(straight-use-package 'vterm)
(straight-use-package 'julia-snail)

(require 'julia-snail)

As you can see there use-package does not have anything to do with the problem. Here are the test results:
ELISP> (featurep 'julia-snail)
t
ELISP> (symbol-file 'julia-snail)
"/home/raxod502/files/temp/jeorigjeorig/init.el"

Looking at load-history there is an entry for (defun . julia-snail) under julia-mode.elc, but there is also an entry for (autoload . julia-snail) under init.el. Because init.el finishes loading later, it is earlier on the list, so gets returned.
It was unclear to me how this was supposed to work so I set up package.el and installed julia-snail and vterm, then used this init-file:
(package-initialize)
(require 'julia-snail)

and this early init-file:
(setq package-enable-at-startup nil)

Turns out, the reason things work in this situation is that the autoloads are stored in an actual separate file, hence get added to load-history earlier:
 ("/home/raxod502/.emacs.d/elpa/julia-snail-20240227.1914/julia-snail-autoloads.el"
  (autoload . julia-snail)
  (autoload . julia-snail-mode)
  (autoload . julia-snail-repl-mode))

Whereas straight.el is just evaluating them. Easy fix - we have straight.el set the load file correctly while evaluating autoloads. I'll fix.

Heh, well, we are already trying to do that. But apparently Emacs does not believe it.
https://github.com/radian-software/straight.el/blob/b1062df10ba4c10ff7a3c61b9e124b3242b11bb2/straight.el#L5492-L5498
It appears you can (setq straight-cache-autoloads nil) to work around the problem. Which means that something is different between the eval above, and the load that is the other branch:

Radon Rosborough @.***> writes:

Heh, well, we are already trying to do that. But apparently
Emacs does not believe it.
https://github.com/radian-software/straight.el/blob/b1062df10ba4c10ff7a3c61b9e124b3242b11bb2/straight.el#L5492-L5498
It appears you can (setq straight-cache-autoloads nil) to work
around the problem.
Which means that something is different between the eval above,
and the load that is the
other branch:

eval does not retain the outer lexical environment.
We could either "bake" the form into the eval, or construct the
lexical environment and pass it as the second arg to eval.

It doesn't retain the lexical environment, but that is not an issue here because the variables we are binding are dynamic. It's an issue with what load does to load-history, which we didn't replicate. https://github.com/radian-software/straight.el/pull/1151 should fix this


[tool_crash] SocketException: Send failed, OS Error: No route to host, errno = 65

Command
flutter run

Steps to Reproduce

...
...
...

Logs
SocketException: Send failed, OS Error: No route to host, errno = 65
#0      _NativeSocket.send (dart:io-patch/socket_patch.dart:1275:34)
#1      _RawDatagramSocket.send (dart:io-patch/socket_patch.dart:2590:15)
#2      MDnsClient.lookup (package:multicast_dns/multicast_dns.dart:219:22)
#3      MDnsVmServiceDiscovery._pollingVmService (package:flutter_tools/src/mdns_discovery.dart:232:66)
<asynchronous suspension>
#4      MDnsVmServiceDiscovery.firstMatchingVmService (package:flutter_tools/src/mdns_discovery.dart:188:56)
<asynchronous suspension>
#5      MDnsVmServiceDiscovery.getVMServiceUriForLaunch (package:flutter_tools/src/mdns_discovery.dart:433:50)
<asynchronous suspension>
#6      Future.any.onValue (dart:async/future.dart:628:5)
<asynchronous suspension>

[✓] Flutter (Channel stable, 3.24.0, on macOS 15.0.1 24A348 darwin-arm64, locale en-PH)
    • Flutter version 3.24.0 on channel stable at /opt/homebrew/Caskroom/flutter/3.24.0/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 80c2e84975 (3 months ago), 2024-07-30 23:06:49 +0700
    • Engine revision b8800d88be
    • Dart version 3.5.0
    • DevTools version 2.37.2

[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html

Closing this as a duplicate of https://github.com/flutter/flutter/issues/150131


4 GB file limit for file uploads

<?xml version="1.0" encoding="UTF-8"?>
<Error>EntityTooLarge<Message>Your proposed upload exceeds the maxim (truncated...)
 EntityTooLarge (client): Your proposed upload exceeds the maximum allowed size - <?xml version="1.0" encoding="UTF-8"?>
<Error>EntityTooLarge<Message>Your proposed upload exceeds the maximum allowed size</Message><ProposedSize>9404996013</ProposedSize><MaxSizeAllowed>5368709120</MaxSizeAllowed><RequestId>6AD270C8C7AE93D0</RequestId><HostId>...</HostId></Error>

soubor by se měl uploadovat multipartem (https://github.com/keboola/kbc-ui/issues/965)
https://connection.keboola.com/admin/utils/logs?file=2017/04/24/18/2017-04-24-18-07-10-58fe22aebffcd-exception
Will be solved in https://github.com/keboola/storage-api-php-client/issues/131

Solved in 07b91e8e9b07c164865e18c75bb54d60e1b1fbf4


Feature Request: Ability to change default compendiums that sheets pull from

For those of us who use homebrew feats/deities/ancestries/backgrounds/classes it would be helpful to be able to change the default compendiums that the character sheets open when a player searches for one of the above options.

I can see potentially introducing flags for third party content to add additional ABCD compendiums to pull choices from.

I think a simpler solution would be to have show a menu containing all options from all compendiums, which can be quickly narrowed from indexes

I forget that searching across all compendiums is fast enough nowadays.

Also interested in this. Could the compendium browser be reused here (with those new categories added)?

Seconding this request.

Specific compendiums are generally no longer targeted since since version 5.


Double quotes URL-escaped in attribute when using JRuby

Hi!
When using JRuby to parse, modify, and output an HTML document with double quotes in an attribute, the double quote is URL-escaped as %22.  I believe this is wrong behaviour.  The double quote should be left alone as it is when using MRI.
$ rvm use jruby-1.7.22
Using ~/.rvm/gems/jruby-1.7.22
$ irb
jruby-1.7.22 :001 > require 'nokogiri'
 => true
jruby-1.7.22 :002 > puts Nokogiri::HTML(%q{<tag attr='"' />}).to_html
<tag attr="%22"></tag>
 => nil

$ rvm use jruby-<IP_ADDRESS>
Using ~/.rvm/gems/jruby-<IP_ADDRESS>
$ irb
jruby-<IP_ADDRESS> :001 > require 'nokogiri'
 => true
jruby-<IP_ADDRESS> :002 > puts Nokogiri::HTML(%q{<tag attr='"' />}).to_html
<tag attr="%22"></tag>
 => nil

$ rvm use 2.2.2
Using ~/.rvm/gems/ruby-2.2.2
$ irb
2.2.2 :001 > require 'nokogiri'
 => true
2.2.2 :002 > puts Nokogiri::HTML(%q{<tag attr='"' />}).to_html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<tag attr='"'></tag>
 => nil

@donv Thanks for asking this question. This may simply be a difference in how the parsers in Nokogiri work (Xerces on JRuby, libxml2 on MRI), and if so there's not much we can do.
Summoning @jvshahid to validate my thinking.

Hi @flavorjones !
Thanks for the reply!
As far as I can see this is not just a cosmetic difference in handling.  The resulting document is changed, and is no longer equivalent.  In my case it results in a broken web page.
If it is all handled by an upstream library, we should file an issue in their tracker.  Which project would that be?  Any easy way I can test that library without Nokogiri?

Thanks @donv for reporting this issue. I'll have some time the next few days to take a look at this issue. Hopefully it's an easy fix.

Thanks @jvshahid !  Much appreciated!

Hi @jvshahid !
I tried a Xerces example using JRuby <IP_ADDRESS> without Nokogiri.  It seems Xerces is included in JRuby somehow:  https://gist.github.com/donv/ed8b296ccfc99f927f71
It does not URL-escape the attribute in any way.  Maybe this helps.  :smile:

Hi @jvshahid !
Have you had time to look at this?

Unfortunately I haven't. I am currently working on 1.6.8 issues and prs (in particular #1251). I'll take a look at this issue once all 1.6.8 issues are fixed. Thanks for your patience.

Hi @flavorjones @jvshahid !
Happy new year!  How is the 1.6.8 release coming along?  Going well, I hope.  Hang in there!

Hi @flavorjones @jvshahid !
How are you doing?  I am just checking in to say that this issue is still a problem.  I see 1.6.8 has had some progress.  I wish you a happy release!  😄

Hi @flavorjones @jvshahid !
Have you had time to look at this issue?  My PR succeeds for JRuby, but fails for MRI.  That is weird since the manual test in IRB works with all versions of MRI.

Hi @donv,
Apologies for the lack of response. I think we both deprioritized looking at this because we don't totally understand the problem you're trying to solve, nor why you believe this is a problem.
The three representations of a quote (", ", and %22) are all equivalent. Why is it important to you that you get a specific one of the three in your output? I can't find in the XML Spec much about how these characters should be rendered.
Have you looked at Node#canonicalize, though? Canonicalization ("C14N") is intended to solve this exact problem, and in fact this code:
puts Nokogiri::VERSION_INFO.to_yaml
node = Nokogiri::HTML(%q{<tag attr='"%22"' />}).at_css("tag")
puts node.to_html
puts node.canonicalize

renders the attribute identically on both JRuby (xerces) and MRI (libxml2):
---
warnings: []
nokogiri: <IP_ADDRESS>
ruby:
  version: 2.4.0
  platform: x86_64-linux
  description: ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux]
  engine: ruby
libxml:
  binding: extension
  source: packaged
  libxml2_path: "/home/flavorjones/.rvm/gems/ruby-2.4.0/gems/nokogiri-<IP_ADDRESS>/ports/x86_64-pc-linux-gnu/libxml2/2.9.4"
  libxslt_path: "/home/flavorjones/.rvm/gems/ruby-2.4.0/gems/nokogiri-<IP_ADDRESS>/ports/x86_64-pc-linux-gnu/libxslt/1.1.29"
  libxml2_patches: []
  libxslt_patches: []
  compiled: 2.9.4
  loaded: 2.9.4
<tag attr='"%22"'></tag>
<tag attr=""%22""></tag>

and
---
warnings: []
nokogiri: 1.7.0
ruby:
  version: 2.3.1
  platform: java
  description: jruby <IP_ADDRESS> (2.3.1) 2016-11-09 0150a76 OpenJDK 64-Bit Server VM 25.111-b14 on 1.8.0_111-8u111-b14-2ubuntu<IP_ADDRESS>-b14 [linux-x86_64]
  engine: jruby
  jruby: <IP_ADDRESS>
xerces: Xerces-J 2.11.0
nekohtml: NekoHTML 1.9.21
<tag attr="%22%22%22"></tag>
<tag attr=""%22""></tag>

I hope this helps?
We historically have not accepted PRs that try to work around these smaller differences in how xerces and libxml2 format their output. Better to let the parser be the parser, in our opinion. There are simply too many differences in output to take care of (e.g., "should an html doc always have a head node?", "how should whitespace be handled?"), and so we've identified EXACTLY equal output as an anti-goal.
But again, try #canonicalize and let us know if that helps you get where you need to be.

Thanks.  Using #canonicalize seems to solve my problems.


moving expand_sections to a config value

Codecov Report

Merging #74 into master will decrease coverage by 0.88%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #74      +/-   ##
==========================================
- Coverage   91.76%   90.87%   -0.89%
==========================================
  Files           2        2
  Lines         267      241      -26
==========================================
- Hits          245      219      -26
  Misses         22       22

Flag
Coverage Δ

#pytests
90.87% <100.00%> (-0.89%)
:arrow_down:

Impacted Files
Coverage Δ

sphinx_book_theme/__init__.py
91.33% <100.00%> (-1.29%)
:arrow_down:

Continue to review full report at Codecov.

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


Routing falls over if URL has a trailing slash

Here's a self-contained example:
from random import uniform

FLASK = False

if FLASK:
    from flask import Flask as App
    from flask import jsonify as json
else:
    from sanic import Sanic as App
    from sanic.response import json

app = App(__name__)
DATA = dict()

@app.route('/data', methods=['POST'], strict_slashes=False)
def create_data(*args):
    DATA[int(uniform(0, 1e6))] = 1
    return json('post ok')

# this is broken if URL contains a trailing slash, and the handler
# is the second function in the module (works fine for topmost function)
@app.route('/data', methods=['GET'], strict_slashes=False)
def list_data(*args):
    return json(DATA)

app.run(port=8000)

Make the following calls (httpie syntax):
http get localhost:8000/data
http post localhost:8000/data
http post localhost:8000/data/

http get localhost:8000/data/

The first three work as expected, the last one raises sanic.exceptions.InvalidUsage: Method GET not allowed for URL /data/. The same code works as expected on Flask- change the FLASK constant at the top of the provided script.
The issues appears to be with the order in which routes are added to the app. If I swap the order of create_data and list_data, then create_data starts failing with the same exception.

PS I found a workaround. I don't think it is particularly elegant, but it gets the job done until the cause of the issue is resolved.
from httptools import parse_url

@app.middleware('request')
def strip_trailing_slash(request):
    if request.url.endswith('/'):
        request._parsed_url = parse_url(request.url.rstrip('/').encode('utf8'))

Closing per #816


[fix][doc][do-not-merge] Update description about the initialization of cluster metadata

Motivation
Fix the doc issue #12448.
The initial doc PR #12567 didn't fix the issue properly due to the incorrect file directory.
Modifications

Update the description about the initialization of cluster metadata (content inherited from initial doc PR).
Remove the incorrect object "for each cluster in your instance" because it is a deployment topic for a single Pulsar cluster.

Note that the same changes will be applied to more versioned docs since 2.7.2 as soon as the PR gets approval.
Documentation

[x] doc

@codelipenghui @Anonymitaet can you please review this doc PR? Thanks.

is this the correct file? or is this (https://github.com/apache/pulsar/blob/master/site2/website/versioned_docs/version-2.7.3/deploy-bare-metal.md) the correct one?

I think it is a common issue that should be fixed in multiple versions. So I started with the latest one.


Improve onboarding by good default config

Description of problem:
Currently it requires user to configure it a lot and it is not well documented what to do - no easy instructions in addon README and too much instructions (cometimes unrelated to addon) in linked docs of zigbee2mqtt.
Proposed solution
It least have a complete required steps in the readme or docs (that accessible in hassio UI).
Better to generate all required configs automatically - generate random network_key and pan_id, because it is not secure to keep default one and some neighbours can have it the same.
I am not sure about the MQTT config, but ideal would be if it could seamlessly connect to mosquitto with default config. Of again, at least provide clear instructions in a README what to do.

If it has not been improved, then it is still the issue.


ORCID not displaying

eg  https://data.hpc.imperial.ac.uk/resolve/?doi=935 no longer displays the  ORCID identifiers.

We are about to go "live" on https://data.hpc.imperial.ac.uk/resolve/?doi=3702&access=k63k-ew4w.  None of the  ORCIDs display.  Could  I ask this as a high priority. Thanks!


chore: Add passing Markdownlint config

Suppressed all currntly failing rules.
Makes it less noisy editing with the MS Docs Authoring Pack

@nenonix @JohanFreelancer9 Copy editing is needed for this PR. Thanks.

@dstrome could you look at this one?

@dstrome PR has been copyedited and is ready for final review, could you please check and merge? Thanks!

I'm not going to approve this change at this time. However, we'll review the markdownlint config syntax and, if it makes sense, will apply this broadly across the repos. Thanks for suggesting this @nschonni.

No problem, but note that it is already in azure-docs, dotnet, visualstudio, aspnet, etc...
Although only some teams actually laid out a preference of the rules vs. just adding the config like this and then cleaning up

Yup, understood. This is more a matter of ensuring that our repo configs are consistent. We have a few dozen repos and I want to avoid one-off configurations. This is something that makes sense to apply broadly so we'll investigate and roll out across our repos in a controlled way.


Pin feature with UI bug fix

v1.2: Pin feautre
This PR introduces the new pin feature and some minor UI bug fixes.
Commands:

pin  - to pin the index on the current list
viewPin - to view all previously pinned clients
pin  - unpins the index on the viewPin list.

(Image of pin person, after the command pin 3)

(View all the pinned people, after the command viewPin)

Codecov Report
Base: 45.86% // Head: 45.48% // Decreases project coverage by -0.37% :warning:

Coverage data is based on head (9860482) compared to base (ef921fc).
Patch coverage: 32.00% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff              @@
##             master      #48      +/-   ##
============================================
- Coverage     45.86%   45.48%   -0.38%
- Complexity      423      424       +1
============================================
  Files           104      109       +5
  Lines          2069     2117      +48
  Branches        249      253       +4
============================================
+ Hits            949      963      +14
- Misses         1069     1103      +34
  Partials         51       51

Impacted Files
Coverage Δ

...rc/main/java/seedu/address/logic/LogicManager.java
68.18% <ø> (ø)

.../java/seedu/address/logic/commands/PinCommand.java
0.00% <0.00%> (ø)

...a/seedu/address/logic/commands/ViewPinCommand.java
0.00% <0.00%> (ø)

.../seedu/address/logic/parser/AddressBookParser.java
66.66% <0.00%> (-6.07%)
:arrow_down:

...a/seedu/address/logic/parser/PinCommandParser.java
0.00% <0.00%> (ø)

...edu/address/logic/parser/ViewPinCommandParser.java
0.00% <0.00%> (ø)

src/main/java/seedu/address/model/Model.java
100.00% <ø> (ø)

...rc/main/java/seedu/address/model/ModelManager.java
59.03% <ø> (ø)

...c/main/java/seedu/address/model/client/Client.java
0.00% <ø> (ø)

...du/address/model/person/PinnedPersonPredicate.java
0.00% <0.00%> (ø)

... and 3 more

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

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

LGTM!!!


Point tutorial links to right places

If this is not the right place to fix these links please point me in the direction.

Looks good, thanks for your contribution!


Remove TYPE_NAME from Language

The TYPE_NAME token could be (IMHO) removed from the language definition.
I don't see its usage. It could be easily replaced by the IDENT token :)

Thx... I will remove it and in addition use labeling + sub rules:
Everything can be accessed by label or sub rule, this avoids implicit IDENT parsing.

implemented in master for V8 release


Minimal bootstrapped version.

Write a shell script that:

[x] Fetches the latest default ZIP file from puphet.com.
[x] Unpacks the zip into the local folder. (A subfolder maybe? We could keep the tooling in the root then.)
[x] Commits all changes unceremoniously.
[x] Adds a semver tag for the new commit that is one point release (1.0.x) greater than the largest in the repo.
[x] Pushes the commit and the tag to the remote.

Additional work:

[x] Write a README explaining what this is and how it works.
[x] Write a minimal composer.json file to make this repo a Packagist package.
[x] Write a minimal post-install composer script that will:  (This may be the trickiest part.)

[x] Move/overwrite(?) the ROOT/vendor/loadsys/puphpet-release/release/Vagrantfile to ROOT/Vagrantfile
[x] Move/overwrite(?) ROOT/vendor/loadsys/puphpet-release/release/puphpet/ to ROOT/puphpet/.
[x] Replace the stock ROOT/puphpet/config.yaml (that comes with our composer package) with the (customized) version from ROOT/puphpet.yaml (???), if present.

[x] Change this project's composer.json to use that custom composer installer.

Final steps:

[x] Make the repo public.
[x] Enable the packagist web hook.
[ ] Set this repo up somewhere and schedule the script described above as a cron job.
[ ] Test it in a few target projects, and open issues for things that don't work correctly or need improvement (exec-* scripts, for example.)

What am I forgetting?

The only thing hold us up from scheduling the scraper to run regularly on our testing server is #3. We need that clone of this repo to auto-update itself before it fetches a new puphpet release and tries to push it back to the remote (GitHub).


Tz aware predict

This PR builds upon the changes from https://github.com/theastropath/turbot/pull/49
This adds the command !timezone which lets a user set their timezone preference. It also updates the !predict command to use that preference if it's available.

I think the changes to force the price types caused the following issue when trying to register a sell command (At least when there is existing data):
Ignoring exception in on_message
Traceback (most recent call last):
  File "pandas/_libs/parsers.pyx", line 1152, in pandas._libs.parsers.TextReader._convert_tokens
TypeError: Cannot cast array from dtype('O') to dtype('int64') according to the rule 'safe'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/gogo/.local/lib/python3.6/site-packages/discord/client.py", line 312, in _run_event
    await coro(*args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/turbot-2.0.0-py3.6.egg/turbot/__init__.py", line 390, in on_message
    await self.process(message)
  File "/usr/local/lib/python3.6/dist-packages/turbot-2.0.0-py3.6.egg/turbot/__init__.py", line 371, in process
    response, attachment = method(message.channel, message.author, params)
  File "/usr/local/lib/python3.6/dist-packages/turbot-2.0.0-py3.6.egg/turbot/__init__.py", line 458, in sell_command
    last_price = self.get_last_price(author.id)
  File "/usr/local/lib/python3.6/dist-packages/turbot-2.0.0-py3.6.egg/turbot/__init__.py", line 277, in get_last_price
    prices = self.load_prices()
  File "/usr/local/lib/python3.6/dist-packages/turbot-2.0.0-py3.6.egg/turbot/__init__.py", line 162, in load_prices
    self._prices_data = pd.read_csv(src, names=cols, dtype=dict(zip(cols, dtypes)))
  File "/home/gogo/.local/lib/python3.6/site-packages/pandas/io/parsers.py", line 676, in parser_f
    return _read(filepath_or_buffer, kwds)
  File "/home/gogo/.local/lib/python3.6/site-packages/pandas/io/parsers.py", line 454, in _read
    data = parser.read(nrows)
  File "/home/gogo/.local/lib/python3.6/site-packages/pandas/io/parsers.py", line 1133, in read
    ret = self._engine.read(nrows)
  File "/home/gogo/.local/lib/python3.6/site-packages/pandas/io/parsers.py", line 2037, in read
    data = self._reader.read(nrows)
  File "pandas/_libs/parsers.pyx", line 860, in pandas._libs.parsers.TextReader.read
  File "pandas/_libs/parsers.pyx", line 875, in pandas._libs.parsers.TextReader._read_low_memory
  File "pandas/_libs/parsers.pyx", line 952, in pandas._libs.parsers.TextReader._read_rows
  File "pandas/_libs/parsers.pyx", line 1084, in pandas._libs.parsers.TextReader._convert_column_data
  File "pandas/_libs/parsers.pyx", line 1158, in pandas._libs.parsers.TextReader._convert_tokens
ValueError: invalid literal for int() with base 10: 'author'


Locust UI is opening but after putting the users and hatc rate nothing happened

I am able to deploy  in EB and state is Degraded and able to open Locust ui but after putting the value nothing happened.
[2018-10-31 11:40:10,290] /INFO/locust.main: Starting web monitor at *:9876
[2018-10-31 11:40:10,291] 3/INFO/locust.main: Starting Locust 0.8.1
[2018-10-31 11:40:56,468] /WARNING/locust.runners: You are running in distributed mode but have no slave servers connected. Please connect slaves prior to swarming.
[2018-10-31 11:41:30,289] /WARNING/locust.runners: You are running in distributed mode but have no slave servers connected. Please connect slaves prior to swarming.

@ashish2007csGit you are running the locust in master-slave mode with 1 master and 0 slaves. You need to configure your Procfile.


CASSETTE Animation[GSSOC'23]

Title and Issue number

CASSETTE Animation
Issue #4035
Close #4035

Checklist:

[X] I have mentioned the issue number in my Pull Request.
[X] I have commented my code, particularly in hard-to-understand areas
[X] I have created a helpful and easy to understand README.md

@MohitGupta121 @TusharKesarwani @pranjay-poddar please take a review of my PR & merge my PR.

@MohitGupta121 @TusharKesarwani @pranjay-poddar please take a review of my PR & merge my PR.


TypeError: t.map is not a function

Describe the bug
Traceback seen:
TypeError: t.map is not a function at https://unpkg.com/netlify-cms@%5E2.0.0/dist/netlify-cms.js:668:2698 at Ko (https://unpkg.com/netlify-cms@%5E2.0.0/dist/netlify-cms.js:188:57930) at gs (https://unpkg.com/netlify-cms@%5E2.0.0/dist/netlify-cms.js:188:104169) at ul (https://unpkg.com/netlify-cms@%5E2.0.0/dist/netlify-cms.js:188:96717) at sl (https://unpkg.com/netlify-cms@%5E2.0.0/dist/netlify-cms.js:188:96642) at Js (https://unpkg.com/netlify-cms@%5E2.0.0/dist/netlify-cms.js:188:93672) at https://unpkg.com/netlify-cms@%5E2.0.0/dist/netlify-cms.js:188:45314 at t.unstable_runWithPriority (https://unpkg.com/netlify-cms@%5E2.0.0/dist/netlify-cms.js:196:3844) at qi (https://unpkg.com/netlify-cms@%5E2.0.0/dist/netlify-cms.js:188:45023) at Vi (https://unpkg.com/netlify-cms@%5E2.0.0/dist/netlify-cms.js:188:45259)

To Reproduce
Expected behavior
Screenshots
Applicable Versions:

Netlify CMS version<EMAIL_ADDRESS>Git provider: github
Browser version: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36

CMS configuration
backend:
  name: github
  repo: orionrobots/orionrobots.github.io
  branch: master
  base_url: https://github-oauth2.orionrobots.co.uk
media_folder: galleries
collections:
  - name: blog
    label: Blog
    folder: _posts
    create: true
    slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
    fields:
      - label: Layout
        name: layout
        widget: hidden
        default: post
      - label: Title
        name: title
        widget: string
      - label: Publish Date
        name: date
        widget: datetime
      - label: Description
        name: description
        widget: string
        required: false
      - label: Tags
        name: tags
        widget: list
        summary: "{{fields.tag}}"
        field:
          label: Tag
          name: tag
          widget: string
      - label: Category
        name: category
        widget: string
        required: false
      - label: Thumbnail
        name: thumb
        required: false
        widget: image
        allow_multiple: false
      - label: Lead image
        name: lead_image
        required: false
        widget: image
        allow_multiple: false
      - label: Body
        name: body
        widget: markdown
    view_groups:
      - label: Year
        field: date
        pattern: \d{4}
        id: date__\d{4}
    publish: true
    type: folder_based_collection
    sortable_fields:
      - commit_date
      - title
      - date
      - commit_author
      - description
    view_filters: []
publish_mode: simple
slug:
  encoding: unicode
  clean_accents: false
  sanitize_replacement: "-"
public_folder: /galleries
isFetching: false
error: null

Additional context
It's likely that this is due to opening an old markdown/jekyll file authored pre-using netlify.

Hi @dannystaple, please fill out all the fields in the issue template. The information you provided is not enough to debug the problem.
I'm closing the issue for now. Once you add the missing information, I can open it again.


set up jQuery as global object

Hi,
How can i set up jQuery object as global in my app?
When I'm using:  window.jQuery = window.$ = require('jquery') if i go to different route like /about and refresh the page, then I recive the some error msg like "window object is undefined".
Or maybe some of you have some example repo with how to integrate next and materialize.css ?
Thank you.

Use https://github.com/zeit/next.js/tree/v3-beta/examples/layout-component and define it in the layout component. That should work :)

doesnt work, same issue

@wjelen26 you can't do that because when the page is being server rendered the object window doesn't exists, you can import jQuery and then set it as a global object in the componentDidMount of a layout component, that way you can be sure the window object exists.


WAL-1486: Unit Tests

Description
Added unit tests on Crossmint-SDK AA.

Coverage:  47.72% lines covered
Test plan
yarn run test
yarn run test-coverage

Updated PR


"Edit with vim in Windows Terminal" context menu option

"Edit with vim in Windows Terminal" context menu option

My apologies if this is already possible or already has been requested as I wasn't able to find it.

I'm thinking that the best way of addressing this will be with #492. That'll let you configure a "default terminal application" on Windows. That means your already existing "Edit with vim" context menu entries will open up in the Windows Terminal by default.


Feature/clipboard place holder

Adding a placeholder that inserts the textual content of the clipboard into the command line.
Courtesy of @supermerill.
This adds two new placeholders to the extension:

%v to insert the content of the XA_PRIMARY selection content (think middle mouse button)
%V to insert the XA_CLIPBOARD selection content (think CTRL-V)

If the selected text contains quotes, parameter quoting may be corrupted, so these should be used carefully.
Hopefully, we'll address parameter quoting in general in a future PR to alleviate these issues.

Hey there @supermerill
So this is what I've come up with - I'd really appreciate you testing this to see if it fulfills the use cases you had in mind.


DOM doesn't update until mouse is moved in the playground Counter Example

Congrats on version 1.0.0 release.
I would like to present two scenarios:

On Solid JS - Playground, the button text does not get updated until mouse is moved. This happens once every couple of button clicks.
I tried the same code on CSB using the link on Playground itself, used TAB key on keyboard to focus on the HTML button object in ouput window, pressed SPACEBAR few times (while mouse pointer was outside the button), and observed the same behaviour as on playground.

Is this behaviour by design or bug in implementation code?

Sorry that link appears to go to some broken code. Can either of you link a reproduction. There is also a short link form by pressing the share button that makes it easier to copy paste the URLs.

Here's the link using Share button:
https://playground.solidjs.com/?hash=-355074000&version=1.0.0

Here's a clip of a similar issue where sometimes a change will wipe the output pane and it won't come back until a refresh
https://user-images.githubusercontent.com/14153763/147422526-c35fbeed-ead9-49c4-a4f4-73adcdc82cd6.mov

This is now resolved.


First release publish on npm

@ellisonbg, Jupyterlab commenting is ready to be released on npm.
If there is anything that is needed to be added before it is published to npm, let me know.
My username for npm is hoo761 so you can add me to the package.

@hoo761 does this mean I can install it in my Jupyter instance?

@gogasca Not from npm yet. It needs to be published to the official Jupyterlab npm account. Once that is done, the normal installation through npm will work. For now, only the developer build of commenting works.

Thanks @hoo761 will keep an eye on the official npm, is there an ETA on that?
Thanks again

@gogasca The extension is now published and the install command in the readme will work.


Add kernel modules, tuning and support packages for hosts

This patch adds several packages requested by RPC support to all hosts and
containers, adds kernel module loading and sysctl tuning to all hosts.
The reference for all additions can be found in the description and comments
for https://bugs.launchpad.net/openstack-ansible/+bug/1400424
This is a backport of PR #81, and fixes #210.

:+1: Good backport.

Building an AIO with this code right now to ensure it works.

I have run this and it successfully makes the kernel changes on the host.

:+1: as well

Already in master, looks reasonable and @nrb confirmed it all works as expected.  Merging.


adm/export.h missing from include folder

adm/export.h used in various program header files (example in errors.hpp) not found in source code.

Hi, sorry for the delay.
That file is generated by cmake here:
https://github.com/ebu/libadm/blob/56e7bc512823eb83b8ad48c24cbd3c41e817f4b0/src/CMakeLists.txt#L114-L129
Are you using cmake to build this? if so, it may be a bug. If not, there are some instructions in the README for that.

Hi, no problem. No I am not, I'll try using cmake now. Thank you!


Create a Neon.YugaByte library

While working on the YugaByteFixture it appears that we'll end up needing some YugaByte related extensions and classes:

[ ] The Cassandra driver doesn't appear to have a nice connection string format.  It looks like you need to use their Cluster.Builder() to configure a connection.  We're going to want to be able to pass connection strings to services as single environment variables.  We should add methods that establish Cassandra and Postgres connections via nice connection strings.

[ ] Executing Postgres commands is pretty awkward: you need to create the command, passing the connection and then execute the command in a separate statement.  I'm thinking about extending the standard client to add methods like:

[ ] ExecuteNoQuery()
[ ] ExecuteScaler()
[ ] ExecuteReader()
[ ] The reader mechanism also seems awkward.   I wonder if we can augment this to work more like an enumerable.

[x] Now that we've integrated prometheus-net, we may want to emit metrics about things like connection pools, connections/sec, etc if possible.
UPDATE: It looks like Postgres might be exposing this sort of thing via DiagnosticSource: https://github.com/npgsql/npgsql/pull/1910

I'm going to close this one.  We did create Neon.Cassandra and Neon.Postgres libraries with some helpers and we also created Neon.YugaByte as well, but it's basically just a placeholder for now.

I'm going to close this one.  We did create Neon.Cassandra and Neon.Postgres libraries with some helpers and we also created Neon.YugaByte as well, but it's basically just a placeholder for now.


Test format

Codecov Report

Merging #11 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #11   +/-   ##
=======================================
  Coverage   22.74%   22.74%
=======================================
  Files         140      140
  Lines       10731    10731
  Branches     1945     1945
=======================================
  Hits         2441     2441
  Misses       8028     8028
  Partials      262      262

Continue to review full report at Codecov.

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


Black screen on boot in low temperature

Describe the bug
In low temperature the Comma3 doesn’t turn on the screen during boot.
Need to heat up the C3 display before it will boot with screen initialized.
Similar to previous bug here. And it worked for some time, but seeing it again now with cold weather.
But it’s still able to operate the car and it’s working well, it’s just the screen there doesn’t turn on.
Temperature where approx 10degC the other morning in the route below.
Provide a route where the issue occurs
7291d51974eb2d1d|2023-10-31--07-15-54
openpilot version
0.9.5
Additional info
No response

@robbederks got any ideas or want to try an RMA?

Think we probably need to RMA

@lskov open a ticket at https://comma.ai/support and post a screenshot of this conversation. we'll swap the device for you and see if that fixes it. once your screen is here, we'll also test it to see if we can also reproduce it


access google sheets without authentication

@rcf18 and I would like to be able to access google sheets without authentication for those sheets where "Anyone with the link can view the spreadsheet" has been set as an option.
sqlitebiter -v gs https://docs.google.com/spreadsheets/d/1Wd0RMKAMaTptZ43Bcll664HL9HtMjExrL4
AmDHCee-A/edit

Usage: sqlitebiter gs [OPTIONS] CREDENTIALS TITLE

Anyone working on enabling that as a feature yet?
Thanks!

As far as I know, google sheets API does not have the interface to access to sheets without authentication (even if public sheets). However. I could be enhanced to convert only the first sheet in the book by scraping from a public google sheets URL.
Is this enough for your use case?
If yes, I would try to implement the feature.
Thanks,

hi there, thanks for responding right away!
yes, if you'll be interested in doing that, we can then continue with the practice session that we started the other day. thanks in advance!

Thank for your answer.
I found another limitations to convert from a public google sheets URL as it is
(number of columns limited to 26, and number of rows limited to 100).
So, it may not an effective solution.
I found two workarounds.
Both of the methods can convert the whole book (even when included multiple sheets).
Are these workarounds could solve your issue?

a. Publish the book as a web page and convert the page by using sqlitebiter url subcommand
b. Download as an Excel file and convert the file by using sqlitebiter file subcommand

a. Publish the book

Select menu: File -> Publish to the web
Select Link tab
Select Entire Document and Web page
Press Publish button

If you check Automatically republish when changes are made the page automatically update when you edit the page

Convert from the published web page URL to a SQLite file by using sqlitebiter url subcommand

In this method, sheet names are dropped during conversion

$ sqlitebiter url https://docs.google.com/spreadsheets/d/e/XXXXX-XXXXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXXX/pubhtml

b. Download the book

Select menu: File -> Download as -> Microsoft Excel (.xlsx)
Convert from the downloaded Excel file to a SQLite file by using sqlitebiter file subcommand

$ sqlitebiter file book.xlsx

yap, after we opened a github issue, we did the option b =)
good to learn from you that there is also option a.
thanks for sharing!

I'll close the issue, then.
Feel free to reopen if you still have any other issues.


Returned post ReadCSV example

In file included from C:\Program Files (x86)\Arduino\libraries\Arduino-CSV-File-master\examples\ReadCSV\ReadCSV.ino:15:0:
C:\Program Files (x86)\Arduino\libraries\Arduino-CSV-File-master/CSVFile.h:16:32: error: expected class-name before '{' token
class CSVFile : public FatFile {
                            ^

C:\Program Files (x86)\Arduino\libraries\Arduino-CSV-File-master/CSVFile.h:137:17: error: 'FatFile' has not been declared
byte copyField(FatFile * target);
             ^

C:\Program Files (x86)\Arduino\libraries\Arduino-CSV-File-master/CSVFile.h: In constructor 'CSVFile::CSVFile()':
C:\Program Files (x86)\Arduino\libraries\Arduino-CSV-File-master/CSVFile.h:35:14: error: class 'CSVFile' does not have any field named 'FatFile'
CSVFile() : FatFile() {}
          ^

C:\Program Files (x86)\Arduino\libraries\Arduino-CSV-File-master\examples\ReadCSV\ReadCSV.ino: In function 'void initSdFile()':
ReadCSV:78: error: 'class CSVFile' has no member named 'open'
if (!csv.open(FILENAME, O_RDWR | O_CREAT)) {
        ^

C:\Program Files (x86)\Arduino\libraries\Arduino-CSV-File-master\examples\ReadCSV\ReadCSV.ino: In function 'void loop()':
ReadCSV:100: error: 'class CSVFile' has no member named 'write'
csv.write("One;Two;Three\n");
   ^

ReadCSV:101: error: 'class CSVFile' has no member named 'write'
csv.write("Very long long field.;Second long field.\n");
   ^

ReadCSV:102: error: 'class CSVFile' has no member named 'write'
csv.write("zaÅ¼Ã³Å‚Ä‡ gÄ™Å›lÄ… jaÅºÅ„\n");
   ^

ReadCSV:103: error: 'class CSVFile' has no member named 'write'
csv.write("11;22\0;3df;null\n");
   ^

ReadCSV:104: error: 'class CSVFile' has no member named 'write'
csv.write(";");
   ^

ReadCSV:206: error: 'class CSVFile' has no member named 'close'
csv.close();
   ^

exit status 1
'class CSVFile' has no member named 'open'

Hi!
Are you sure that you have SdFat library in your Arduino libraries directory?
You must place SdFat in C:\Users\YOUR_USERNAME\Documents\Arduino\libraries (default directory) first.
I see that your IDE not found "FatFile" class. This class is part of SdFat library. My CSVFile inherit this class.


docs: add security policy

:tada: This PR is included in version 2.2.0 :tada:
The release is available on:

GitHub release
npm package (@latest dist-tag)

Your semantic-release bot :package::rocket:


elm-19: thread blocked indefinitely in an MVar operation

I was trying to make some code more generic and ran into this:
elm-19: You ran into a compiler bug. Here are some details for the developers:
[00]
[00]     ? [rank = 1]
[00]
[00] Please create an <http://sscce.org/> and then report it
[00] at <https://github.com/elm/compiler/issues>
[00]
[00]
[00] CallStack (from HasCallStack):
[00]   error, called at compiler/src/Type/Solve.hs:205:15 in main:Type.Solve
[00] elm-19: thread blocked indefinitely in an MVar operation
[00] (error exit: exit status 1)

So, here's the minimal example that produces the error.  Depends on elm-ui v 1.0.0.
Minimal.elm.txt

module Main exposing (main)

import Platform

type Form model formData
    = SimpleForm (model -> formData)
    | AdvancedForm (model -> Bool)

initForm : Form model formData -> model -> Maybe formData
initForm formHelper model =
    case formHelper of
        SimpleForm toForm ->
            toForm model

        AdvancedForm _ ->
            Nothing

type alias Model internalModel formData =
    { internalModel : internalModel
    , form : formData
    }

processAction : Form internalModel formData -> Model internalModel formData -> Model internalModel formData
processAction formHelper model =
    { model | form = initForm formHelper model.internalModel }

main : Program () () ()
main =
    Platform.worker
        { init = \_ -> ( (), Cmd.none )
        , update = \_ _ -> ( (), Cmd.none )
        , subscriptions = \_ -> Sub.none
        }

Another example. The issue is that toForm model should be Just (toForm model).

I'm getting something similar
type Vector a
    = Vector (List a)

type Matrix a
    = Matrix (List (Vector.Vector a))

multiplyComplexMatrices : Matrix (Vector.Vector (ComplexNumbers.ComplexNumberCartesian number)) -> Matrix (Vector.Vector (ComplexNumbers.ComplexNumberCartesian number)) -> Matrix (Vector.Vector (ComplexNumbers.ComplexNumberCartesian number))
multiplyComplexMatrices matrixOne matrixTwo =
    liftA2 Vector.multiplyComplexVectors matrixOne (transpose matrixTwo)

apply : Matrix (a -> b) -> Matrix a -> Matrix b
apply (Matrix fMatrix) (Matrix matrix) =
    Matrix <| List.map2 (\fVector xVector -> Vector.apply fVector xVector) fMatrix matrix

liftA2 : (a -> b -> c) -> Matrix a -> Matrix b -> Matrix c
liftA2 f a b =
    apply (map f a) b

transpose : Matrix a -> Matrix a
transpose (Matrix matrix) =
    matrix
        |> List.map (\(Vector.Vector x) -> x)
        |> List.Extra.transpose
        |> List.map (\x -> Vector.Vector x)
        |> Matrix

map : (a -> b) -> Matrix a -> Matrix b
map f (Matrix matrix) =
    Matrix <| List.map (Vector.map f) matrix

{-| Vector map
-}
map : (a -> b) -> Vector a -> Vector b
map f (Vector vector) =
    Vector <| List.map f vector

ComplexNumber package here
https://package.elm-lang.org/packages/jonathanfishbein1/complex-numbers/latest/ComplexNumbers

Hi! I'm interested in automatic reduction of elm codebases, so one does not have to do it by hand, like you did.
I'm working on elm-reduce, which is something similar to creduce as my bachelor's thesis, and I need as much test-data for it as possible.
I would love to get into contact with you, but two of you don't have emails listed on your profile. Would you mind sending me a mail? (You can find the address in my profile)

Getting the exact same error when using Monocle.Lens. :| It's killing me. I can prepare a simple case if what's above isn't enough.

I had a similar issue where there was a compiler crash with the MVar issue:
$ elm make .\src\Main.elm --output=/dev/null
Compiling ...elm.exe: .\\Data\\Vector\\Generic\\Mutable.hs:703 (modify): index out of bounds (3,3)
CallStack (from HasCallStack):
  error, called at .\\Data\\Vector\\Internal\\Check.hs:87:5 in vector-<IP_ADDRESS>-GC2xzdMF0QQGz7ZCcRBJRL:Data.Vector.Internal.Check

The issue seemed to be that the Elm compiler couldn't figure out the Elm error in my code and crashed, because fixing the issue also made the compile work.
I tried to make an ellie of it, but I couldn't make up an example that was able to reproduce it. It would be on line 70 of this successfully-compiling ellie, if looking at this gives any sort of hint (as unlikely as it is though, since I couldn't reproduce it outside my codebase), where I had foo2 = getLocations m while it should have been foo2 = getLocations m.locations.
I do have a branch saved that reproduces in my 6k line project, if someone on the dev team would like access, please let me know.


How to send back the user information to the front end apps ?

Dears,
assuming :

the front end website (in react) is calling the server (node/express) - Just a A HREF link in a button
Then the servers calls the Google oAuth2 api
Then the server callbackURL manages the user info, authorization,... based on the code returns by Google Api.

How to send back these user info to the initial URL of front end ? res.redirect() is not working as the res in the callbackURL is related to the google req/res and not the initial req/res from the front end
Thks

Greetings!  If you're looking for an end to end solution of doing OAuth2 with flows with a user, this is a great guide:
https://github.com/googleapis/google-api-nodejs-client/blob/master/samples/sampleclient.js
If that doesn't help - it would be super helpful if you could post the code you're trying today, what's working, what's not working, and which parts we can help with :)
Let us know if you're still having issues!


Ensure that an iframe will always be processed in processAttributes method.

The code that processes an iframe is inside of a conditional that requires the element to have attributes.  Make sure that there will never be an iframe that should not be ignored but has not attributes.

See https://github.com/stevenbfine/snap-it/issues/21


Document last char/string in tick style being the "final" state

The last item in tick chars/strings won't ever show unless a progress bar is finalized.  This also self-clarifies the requirement for at least two chars/strings.
Related: https://github.com/console-rs/indicatif/issues/477

Thanks!


Activity 1: What story are we telling?

Start by thinking about what the story is that you want to tell with your dataset. Write a paragraph describing what questions you want to investigate with your data, or what messages you want to convey using the data. Note that, as we progress with the projects, the story you want to tell may change. It's okay if you come back later and revise or update this. But describe what, at the moment, you think your story will be.

see #13


Fix F# build on Windows.

Correcting the shell extension and the PATH manipulation.
@dotnet/source-build-contrib

Windows issue is a long path problem.
Could not copy the file "D:\j\workspace\Windows_NT_Re---a3f4c8f6\src\core-setup\Bin\obj\win81-x64.Release\sharedFrameworkPublish.packages\runtime.win81-x64.microsoft.netcore.app\2.0.2-servicing-25806-0\runtimes\win81-x64\lib\netcoreapp2.0\System.Diagnostics.TextWriterTraceListener.dll"

D:\j\workspace\Windows_NT_Re---a3f4c8f6\src\core-setup\Bin\obj\win81-x64.Release\sharedFrameworkPublish.packages\runtime.win81-x64.microsoft.netcore.app\2.0.2-servicing-25806-0\runtimes\win81-x64\lib\netcoreapp2.0\System.Diagnostics.TextWriterTraceListener.dll is 261 characters.  Fixing by shortening sharedFrameworkPublish.packages directory name.

Adding @nguerrera and @livarcocc for awareness on the CLI changes necessary.
🤞 that Windows finally succeeds now.

Looks like the new issue is:
The "DownloadFile" task failed unexpectedly. [D:\j\workspace\Windows_NT_Re---a3f4c8f6\src\cli\build.proj] [D:\j\workspace\Windows_NT_Re---a3f4c8f6\targets\repository.proj]
D:\j\workspace\Windows_NT_Re---a3f4c8f6\src\cli\build\Prepare.targets(35,5): error MSB4018: System.IO.FileNotFoundException: Could not find file 'D:\j\workspace\Windows_NT_Re---a3f4c8f6\bin\obj\x64\Release\blobs\Runtime\2.0.2-servicing-25806-0\dotnet-runtime-2.0.2-servicing-25806-0-win-x64.zip'.

The problem here is that the CLI is looking for the portable assets from core-setup win-x64.zip, however, core-setup is producing the non-portable assets during source-build - win10-x64.zip.
I will need to fix the CLI to look for the non-portable assets during source-build.

Don't we want portable out of the build?

I had the same impression as @Petermarcu. However, if we have to do this, let's please figure out how to make it work in the CLI rather than put a patch in place.

Don't we want portable out of the build?

So far, we aren't building portable during source-build.  For Linux and other Unix variants, this is important because the idea is the binaries are built for the local machine.  So when RedHat builds, they get RedHat specific assets, not Linux portable assets.
We haven't been specializing Windows vs. Mac vs. Linux so far.  We have just been specifying PortableBuild=false in source-build.
https://github.com/dotnet/source-build/blob/347223d8e7510ad8c5146f4c972295381ec6ce9f/targets/coreclr.props#L5
If we don't ever want non-portable Windows assets, maybe the question should be - why is there the option to build non-portable Windows assets for CoreCLR and CoreFX?  When would we want non-portable Windows assets?

We want both. You are right, when we build for a distro, we don't want portable but when we build our official builds we absolutely want portable. The flag needs to be preserved and full stack needs to be portable when set.

Portable builds for Windows will be needed once S.R.Intrinsics.X86 is shipped as part of S.P.CoreLib. It is to be expected that later S.R.Intrinsics.Arm will be added.

However, if we have to do this, let's please figure out how to make it work in the CLI rather than put a patch in place.

It isn't as simple as that right now.  You can't really make a change to the CLI and then sync that one change into source-build very easy.  If you try to do that, you need to move the CLI's SHA up to the current HEAD of the branch.  Any changes in the branch to the files that are currently patched will break applying the existing patches.  So we can't really move the SHA up until the patches are removed.

We want both. You are right, when we build for a distro, we don't want portable but when we build our official builds we absolutely want portable. The flag needs to be preserved and full stack needs to be portable when set.

Yes we will need both modes eventually.

When you say eventually, what do you mean. Are we doing one first and then the other? The official builds from Microsoft are portable

When you say eventually, what do you mean. Are we doing one first and then the other? The official builds from Microsoft are portable

Correct the official builds will be portable. Right now we are working on enabling RID specific builds for a given OS. We will soon start looking at how to orchestrate and build the our official MS builds and those will need to be portable.

Merging to get Windows unblocked.

Thanks a lot for your effort !

cc  @dotnet/source-build-contrib

cc @dotnet/source-build-contrib

IMO, portable is also an overloaded term here. Would it be possible to document/clarify what it means here?
I seem to recall that it means we have no hard dependencies on libraries but we dlopen everything instead. Does it relate to current host RID being identified as linux-x64 vs rhel.7-x64?

@omajid we do have some basic documentation at https://docs.microsoft.com/en-us/dotnet/core/rid-catalog. It doesn't go into great detail but your assumption is correct it is just a more generic RID that tries to limit native dependencies to maximize usability/portability across different OS's.


Add statsd client

Add statsd client that configures itself from NCOLONY_CONFIG {ncolony.statsdserver: port}, and has a simple interface.

Statsd support will be added via a 3rd party library.


feat(event): Revamp to v1.1 - OEL-1056

would you add:
badgesConfig: {
      stable: {
        title: "v1.1",
      },
    },

in the parameters so we show the v1.1 badge for this feature..? To me the implementation is good, i've found issues in the design while checking it, and indeed i don't see needed changes on our side (the listing looks really different, though), just maybe we could take the chance to fix these file icons, or we do it in a different ticket.

to make the badge for the versioning "visible" we also need to declare it as a parameter, i only gave you the code to alter its configuration, so in the parameters object please add also:
badges: ['stable],


Revert "[CI/CD/E2E] Add a fake metrics server for tests using a Kind" -- Moving this to a feature branch

We should revert out the fake metrics server code since it is not being used at the moment since the broader CI/CD project got deprioritized in favor of other projects.
I will be moving this code to a feature branch and making PR's against that branch to keep the main branch clean.

For reference could you just link the original PR in the description of this one?


mention Ruby 2.2 in README.md

ping

Does omniauth support Ruby 2.2?

Agreed. Also 2.3 -- is there any reason I shouldn't do a PR to see if that works smoothly?

This at some point was updated in the README. Thanks!


Update reflect extension

Description

Screencast

Checklist

[x] I read the extension guidelines
[x] I read the documentation about publishing
[x] I ran npm run build and tested this distribution build in Raycast
[x] I checked that files in the assets folder are used by the extension itself
[x] I checked that assets used by the README are placed outside of the metadata folder

@pernielsentikaer do you need any additional work done before this is merged?


TypeError: 'ShapedArray' object is not iterable

Hi,
I tried to run the example code, but the code stops at primal_output = self.bind(*arg_values, **kwargs), and returns the error "TypeError: 'ShapedArray' object is not iterable". Could you please help me to solve this problem? Thanks.

I had the same issue.
Here is my environement:
python==3.9.8
jax==0.3.6
jaxlib==0.3.5
kfac-jax==0.0.1

Could you let me know which example exactly are you running, just so I can reproduce this.

The example in the README and tests both run correctly if I install from the git repository. I get the same error as above if I install kfac_jax from PyPI. I think a small jax upgrade since version 0.0.1 was released broke kfac_jax but is fixed in the git repository (I have not spent time tracking down exactly which commit fixed it though).


Instruction seems not right for MacOS High Serra

MacOS High Serra 10.13.4，
$ sed -i 's/^Libs: .*/& -lblas -llapack/' /usr/local/lib/pkgconfig/dlib-1.pc
sed: 1: "/usr/local/lib/pkgconfi ...": extra characters at the end of l command
$ go run main.go
#pkg-config --cflags dlib-1
pkg-config: exec: "pkg-config": executable file not found in $PATH
The solution is :
$ brew install pkg-config
After that it works.
Thanks

Fixed, thanks!
I've seen you had additional question, is it still relevant?

The additional question, at beginning I had thought jpgs in testdata are the training data. But I get the point later (maybe I am wrong, though), the model has been trained by dlib, the result are dlib_face_recognition_resnet_model_v1.dat and shape_predictor_5_face_landmarks.dat. The project is only using the final model, not trained from the jpgs from scratch, the jpgs only keep here for our testing its validation.  Just for fun, I download http://asianwiki.com/images/2/29/Kang_Sung-Yeon-p5.jpg and but it is recognized as Nayoung :)

Yes, you're right.

but it is recognized as Nayoung

I guess among 10 faces from pristin.jpg (if you used the example) her face is closest to Nayoung :)


Bulk Data Delete Request

This will cancel the javabatch job.
After a javabatch job is submitted, there will be response like this:
{
"jobName": "bulkexportchunkjob",
"instanceId": 1,
...
"_links": [
{
"rel": "self",
"href": "https://localhost:9443/ibm/api/batch/jobinstances/1"
},
{
"rel": "job logs",
"href": "https://localhost:9443/ibm/api/batch/jobinstances/1/joblogs"
}
]
URL to stop the above job is:
https://localhost:9443/ibm/api/batch/jobexecutions/1?action=stop
}

I'd really like to be assigned this work in sprint planning.


rdar://problem/27616753 Improve Foundation overlay to handle bridging subscripts and dictionary literals.

SE-0072 took implicit bridging conversions away, which regressed the ability to express NSDictionaries as dictionary literals and index them using literal keys. Address this by changing the signature of init(dictionaryLiteral:) to use Hashable and Any, and by replacing the subscript from Objective-C with one using _Hashable that does the bridging on the user's behalf. This largely restores the QoI of working with NS collections.

@phausler Does this look good for Swift 3.0?

@swift-ci Please smoke test

I think this looks good on Darwin, I have not yet taken a look how doable this will be on linux yet.

@phausler Should I hold off on committing this until you've investigated corelibs support?

It occurs to me that the CVarArg implementation for NSObject and these bridged types relies on _autorelease to handle the lifetime extension, which (unless something's changed recently) isn't available to the corelibs.

Not having autorelase has been a bit of a thorn for Linux but I don't think we should hold up a good improvement for Darwin because of it. I have some ideas for a way we can perhaps get a decent emulation of it for Linux that I will follow up later.


Fix Enigma using third-party simulator

This is the best simulator I found so far, showing the encoding path step by step: http://www.enigmaco.de/enigma/enigma.swf. Let's use it to benchmark my Enigma simulator implementation.

My problem now is with the rotor encryption, which was mistakenly understood.
When a letter goes through the rotor's outer ring, it is encoded to its inner ring. So far so good, I got this part. The problem is that the outer ring rotates with respect to the next rotor's outer ring.
For instance, let's consider a letter A going through rotor V. First, it steps, rotating the outer ring w.r.t. the static rotor A -> Z. Next, since it has rotated one position, the output of the rotor goes through the Y input of the next rotor. In the current implementation, the letter is going to Z :(


Link to cancer gene resources

Description:
As a user, I want to be able to understand the relevance of gene mutations.
Jira ticket PDXI-13
Proposed resolution:
1-
http://cancer.sanger.ac.uk/census/
The Cancer Gene Census is an ongoing effort to catalogue those genes for which mutations have been causally implicated in cancer. The original census and analysis were published in Nature Reviews Cancer and supplemental analysis information related to the paper is also available.
2-
https://ckb.jax.org/about/downloadPDF
Acceptance criteria:

[ ] plan in place for linking to cancer resources
[ ] implementation in place

Might need a different implementation thatn PDX-gun with the new web portal


Feat/remove ocelot middleware

Fixes / New Feature #
In order to take advantage of Microsoft's  YARP project. We need to remove the Ocelot specific middleware. This was used to enable request aggregation and make data available in the pipeline that isn't on HttpContext.
Proposed Changes

Huge refactor that remove the Ocelot specific Middleware
Replaces it by accessing data from HttpContext
Request aggregation now works by making a copy of the HttpContext and passing this into the next middleware chain.
Updated docs to reflect changes to IDefinedAggregator

This looks interesting @TomPallister. Could you perhaps elaborate a little bit about how you see Ocelot and YARP going forward?

@jmezach I will start to to use YARP inside Ocelot....I have a lot of refactoring to make this work, over time I expect to deprecate Ocelot in favor of YARP but some of the Ocelot middleware might complement YARP.

@TomPallister We'd be honored if you incorporated YARP into Ocelot.
While there is some overlap between YARP and Ocelot - AFAIK the goals are a bit different. In YARP we are essentially a request router, and are prioritizing performance. YARP operates on the headers of the request - the bodies are streamed and not "processed". As a API gateway, Ocelot is processing the bodies and therefore offers a richer set of functionality that we don't intend to build in to YARP.
One of the goals for YARP is to be extensible, and enable custom middleware to be slotted into the pipeline. The concept of adding Ocelot middleware to YARP or building Ocelot on top of YARP components is something we'd love to see as it provides a set of functionality that we are not planning to deliver and Ocelot already has a lot of happy customers.
YARP is young, and we are only just starting to define how middleware can be slotted in. If there are changes we can make to ease the slotting in of Ocelot middleware, then don't hesitate to file issues or PRs.
The secondary goal of YARP beyond providing a reverse proxy is to act as a forcing function to ensure that the underlying infrastructure and APIs in ASP.NET and networking are as performant as possible and facilitate building a high scale edge service. These changes in .NET 5(+) will probably have benefits for Ocelot or other services. For example:

We are working on an Async callback to intercept connections as part of the TLS handshake
Improving the performance of header processing in HttpClient
Looking at connection management in HttpClient
Logging improvements in ASP.NET and HttpClient

These should benefit Ocelot regardless of whether you utilize YARP infrastructure.
Please reach out if we can help in any way.

@samsp-msft Hi Sam, I'm sorry I missed this someone messaged me on LinkedIn to show it to me recently. I would be happy for someone to merge YARP into Ocelot. If you want write permission to the project let me know!

@TomPallister  Hi Tom!
I am so sad that you try to kill/delegate your project to Microsoft!
Do you understand that after delegating the owner right to engineers/managers from Microsoft your project will be dead (deleted), archived or just frozen? The most optimistic scenario is just having a few updates from community being managed by Microsoft team member(s). Nothing more!
Let's wait a Sam's feedback on your request.
Another side of this Ocelot/YARP dangerous pairing is that most of members of YARP team members are Microsoft engineers.
Look at this YARP Contributors graphs which show that the most active members of YARP are Chris and Miha. Warning! They are both true employees of Microsoft!
Of course, they can collaborate on any open-source projects on GitHub including YARP, this is their right, but it is strange the Ocelot people consider them being active collaborators of Ocelot in the future, who really cares about Ocelot Gateway destiny.
Do you expect that YARP members will contribute to Ocelot repository? Really? A couple of Microsoft employees will contribute to non-Microsoft initiative, really?
Tom, you should understand that YARP is a "competitor" of Ocelot, because there are no much .NET gateway solutions on the market that are changing the API gateway industry. I cannot predict the future of Ocelot after your delegation to Microsoft, but as a realist I expect some bad things will happen.
Why are you having an intention to delegate management of Ocelot repo? To Microsoft? Are you impressed by key benefits of YARP? Why not to take Ocelot to the next level? Constant enhancements, constant moving forward...
Are you tired with the project in 2020? Don't you have much time to manage the repo and move the project forward? I see 2-3 releases only with .NET version upgrade last 3 years.
Ok, I will watch this thread during this summer. But I don't expect extra super- productive offers for you from Microsoft.
On my opinion it is impossible to "merge" YARP to Ocelot, because there are no resources, no time, etc. And what's the final goal of such merging? In theory it is possible to merge, but it will be nightmare. Introduce a gateway inside of another one? It is strange approach. But we can discuss that.
And, I am pretty on 100% sure that Ocelot will never be merged to YARP. Just never!
Let's save the Ocelot project! Do not delegate owner right to this corporation please! To someone else, but not to Microsoft!
Hope you understand!
And sorry, I had to express myself directly.

@raman-m I understand your point of view! I don't really see YARP as a competitor...I don't really care about competition though! If someone from MS wants to implement YARP to do the heavy lifting inside Ocelot then that surely is a good thing? I doubt they will though!
In terms of maintaining Ocelot I will always update it to the latest version of dotnet but I don't have time to look after the project more than that now. Someone would have to pay me a full time salary and no one has ever offered :) Who knows I may get back into it one day! My current job is all nodejs so that took me away from the world of dotnet :(

@TomPallister

I doubt they will though!

I think so too! :rofl:
Forget about Yarp! This is a good product made by Microsoft engineers. But this project has a completely different philosophy and the goal (I have some feelings but don't want to express them). So, Yarp is developing for some Microsoft needs. It is like a laboratory for networking tools. This is my opinion.
And I believe Ocelot has completely different philosophy on my opinion. Ocelot is an open-source .NET gateway for a lot of startups in the world. Isn't it wonderful?
Some people said that: "Yarp is production ready, but Ocelot not". This is wrong! Sure, Yarp can be a part of production ready software even for enterprises. What's the problem when enterprises will use Ocelot?
Some people said that: "Yarp has super performance in proxying traffic, but Ocelot has worst performance". OK. But having a super performance of software for enterprises, such unicorns have big DevOps and Development departments to build and link all services communication without any gateways! This is super performant to link two service endpoints directly without gateways, without Ocelot, without Yarp.
Another vision is that modern cloud service providers like Azure, Aws allow to build direct communication without any gateways.
Finally, I would say that Ocelot and Yarp cover different markets: Yarp will cover Enterprises and large business, and Ocelot can cover markets for medium, mini, micro businesses in the world, including startups.

Someone would have to pay me a full time salary and no one has ever offered :)

But I cannot too! :smile_cat:
Look into my LinkedIn profile: Raman Maksimchuk | LinkedIn
My avatar has #OpenToWork badge. I have lost my full time job more that one year ago.
So, I cannot hire you to develop your project. :rofl:
I could invest or donate some money to the development of Ocelot to support the project. But I need more rights in the project.
Tom, it is time to decide! This summer...
I will be very glad if you come back to the project in future spending most of the day, but I don't expect that. And I don't wish you to lose any full time jobs! One our member of Ocelot team said: "We all have full time jobs, why..."
Anyway,
For now it will be performant if you review current open PRs on monthly basis and merge those PRs which have "Accepted" label with approvals enough. Better to check biweekly. Checking & Merging PRs weekly is super cool!
Read my latest message in LinkedIn chat please. I will share my significant ideas via LinkedIn only.
Happy Friday! And, have a great summer!
Raman

@TomPallister
I hope your summer and vacation were just great! 🌞
Congratulations with promotion to VP of Technology at News UK! 🎉
Now I completely understand why you are so busy. 🥇
It seems it is time to close ThreeMammals org. It is a joke! 😉
⚠ It is definitely right time to decide! See LinkedIn messaging chat please. 🙏


Create LICs 3-5 in CMV

There exists at least one set of three consecutive data points that are the vertices of a triangle
with area greater than AREA1.
(0 ≤ AREA1)

There exists at least one set of Q PTS consecutive data points that lie in more than QUADS
quadrants. Where there is ambiguity as to which quadrant contains a given point, priority
of decision will be by quadrant number, i.e., I, II, III, IV. For example, the data point (0,0)
is in quadrant I, the point (-l,0) is in quadrant II, the point (0,-l) is in quadrant III, the point
(0,1) is in quadrant I and the point (1,0) is in quadrant I.
(2 ≤ Q PTS ≤ NUMPOINTS), (1 ≤ QUADS ≤ 3)

There exists at least one set of two consecutive data points, (X[i],Y[i]) and (X[j],Y[j]), such
that X[j] - X[i] < 0. (where i = j-1)

See #41.


More greediness in repeat operator.

Can one of the admins verify this patch?

Jenkins, test his please.


feat: added Home Assistant notification integration

Description
Adds a new Home Assistant notification integration.
Although Home Assistant notifications can be added via the Apprise notification integration, there are a couple features that Apprise currently doesn't provide:

Notifications cannot be scoped to a particular Notification Service/device, so the notification is sent to all devices/mobiles signed into Home Assistant. This integrations allows you to optionally set which mobile/device to send the notification to.
This notification integrations also allows optional automation of devices connected to Home Assistant. For example when a service goes down an RGB light could turn red and change back to green when it's back up.

Type of change

User interface (UI)
New feature (non-breaking change which adds functionality)

Checklist

[x] My code follows the style guidelines of this project
[x] I ran ESLint and other linters for modified files
[x] I have performed a self-review of my own code and tested it
[x] I have commented my code, particularly in hard-to-understand areas
(including JSDoc for methods)
[x] My changes generate no new warnings

Screenshots (if any)

Please don't just add a new translation to all languages. Only add translations to the languages you know and leave the others. If a translation is not found then it will fall back to the English version.

FYI Home Assistant is in apprise - maybe this can be done through that method?


How do I obtain the DesktopSiteBridge object in an instance of the WinUI 3 Window class?

How do I obtain the DesktopSiteBridge object in an instance of the WinUI 3 Window class?
-------------------------------
如何获取 WinUI 3 Window 类实例下的 DesktopSiteBridge 对象？

WinUI 3 的 Window 类的实例是对 DesktopWindowXamlSource 创建窗口的一个高级包装，如何在 Window 类实例中获取 DesktoSiteBridge 对象？我在 WinUI 3 源代码中发现了 IContentIslandPartner 接口，通过这个接口可以把 ContentIsland 对象转换为 DesktopSiteBridge 对象，请问一下这个接口该怎么实现呢？
-------------------------------
The Window class instance of WinUI 3 is a high-level wrapper for the DesktopWindowXamlSource creation Window. How to obtain the DesktoSiteBridge object in the Window class instance? I found IContentIslandPartner interface in WinUI 3 source code, through which ContentIsland object can be converted to DesktopSiteBridge object, may I ask how to implement this interface?

https://github.com/microsoft/microsoft-ui-xaml/blob/d74a0332cf0d5e58f12eddce1070fa7a79b4c2db/src/dxaml/xcp/dxaml/lib/XamlRoot_Partial.cpp#L284

What's the point? most method DesktopSiteBridge defined is exposed via AppWindow.


Support for basic LRO polling

Added type LROPoller and supporting types for basic polling on long
running operations.
Fixed content type detection bug in logging.

[ ] The purpose of this PR is explained in this or a referenced issue.
[ ] The PR does not update generated files.

These files are managed by the codegen framework at Azure/autorest.go.

[ ] Tests are included and/or updated for code changes.
[ ] Updates to CHANGELOG.md are included.
[ ] MIT license headers are included in each file.

/azp run


Add customisable note

Hi, sorry for letting this rot. I think it had a few issues at first but never came back to check up on it. Looks like this still needs to get done:

Update your local copy with what's currently in master to resolve any conflicts. After this, there may be more changes needed after review (very difficult to read and interpret changes). It should help that I've updated from tabs to spaces (better standard anyway).
Could you submit a PR as well for the auto completer? If so, please set that up as a separate option (i.e. removeAutocompleter with a setter and default it to true).

Thank you very much for the contributions!

Hi, sorry, didn't have much time too, hopefully I'll manage to get this done soon, as it's also annoying for us to use custom fork's branch instead of the module's main one in composer.json :-D

Yeah -- and good on you for having that motivation. That's the same reason why submit a PR to SS core (framework/cms) whenever I can if I absolutely must make a core modification. Even then, I avoid having to modify core like the plague due to the (albeit necessary) standards.

Bump.

Bump received! Let me see what I can do in next few days.


Why is TemplateAttribute sealed?

I'm working on Pixi.js bindings and I've faced some duplicating templates:
https://github.com/Dia6lo/Bridge.Pixi/blob/master/Bridge.Pixi/Core/DisplayObject.cs#L187
For example
[Template("on('click', {action})")]
public extern DisplayObject OnClick(Action<InteractionEvent> action);

Could be replaced with
[OnTemplate("click")]
public extern DisplayObject OnClick(Action<InteractionEvent> action);

With some sort of this
public class OnTemplateAttribute: TemplateAttribute
{
    public OnTemplateAttribute(string eventName)
    {
        // Some initialization code.
    }
}

Or even better
public class OnTemplateAttribute: TemplateAttribute
{
    public OnTemplateAttribute(EventType eventType)
    {
        // Some initialization code.
    }
}

So, why is TemplateAttribute sealed?

Template attribute is just instruction for Bridge compiler. That attribute is implemented inside assembly which uses non standard .NET core library (to have ability to use it inside Bridge libraries). Therefore that attribute cannot contain any logic (Bridge compiler cannot use that logic due different core library). So, any extention of that attribute has no any sense

Oh, okay. So, I guess, there will be no point of extension of attributes in the future?

When we add reflection support then you can create own attributes with required logic and analyze attributes using reflection (except Bridge attributes, like Template)


A confusion about the variable 'data_num' in tool_createdb.cpp.

Hi,
the variable data_num  in tool_createdb.cpp at line 87, it is computed by dividing by  FLAGS_chunksize and then multiplying by `FLAGS_chunksize'.
  const uint chunkMax = DataReader.num() / FLAGS_chunksize;
  const uint data_num = chunkMax * FLAGS_chunksize;

and the result of this computing is data_num  = 0.
is it right to calculate in this way ?
Why not using  DataReader.num() directly like data_num  = DataReader.num()?

This GIT contains the code we ran our experiments. Event after a bit of polishing there are some dead code parts which were only used to test some ideas.


Error when computing Jacobian in eager mode

Please make sure that this is a bug. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:bug_template
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux version 3.10.0-957.10.1.el7.x86_64<EMAIL_ADDRESS>(gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) )
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: N/A
TensorFlow installed from (source or binary): binary pip install
TensorFlow version (use command below): v1.13.1-0-g6612da8951 1.13.1
Python version: 3.6.4
Bazel version (if compiling from source): N/A
GCC/Compiler version (if compiling from source): N/A
CUDA/cuDNN version: N/A (CPU)
GPU model and memory: N/A (CPU)

Describe the current behavior
Error occurs when trying to compute the Jacobian in the following code
Describe the expected behavior
<tf.Tensor: id=XXX, shape=(2, 1), dtype=float32, numpy=array([[1.], [1.]], dtype=float32)>
Code to reproduce the issue
Provide a reproducible test case that is the bare minimum necessary to generate the problem.
import tensorflow as tf
tf.enable_eager_execution()

with tf.GradientTape() as g:
    x  = tf.constant([1.0])
    g.watch(x)
    y = tf.concat([x,x], axis=0)

g.jacobian(y, x)

Other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.
Additional info: the expected behavior occurs when creating the GradientTape with persistent=True and replacing the last line of code with g.jacobian(y, x, experimental_use_pfor=False). However, that workaround is extremely slow with real data.
Log of the code that reproduces the issue:
AttributeError Traceback (most recent call last)
in ()
9 # y = tf.concat([y,y], axis=0)
10
---> 11 g.jacobian(y, x)
/opt/conda/lib/python3.6/site-packages/tensorflow/python/eager/backprop.py in jacobian(self, target, sources, unconnected_gradients, parallel_iterations, experimental_use_pfor)
1021 try:
1022 output = pfor_ops.pfor(loop_fn, target_size,
-> 1023 parallel_iterations=parallel_iterations)
1024 except ValueError as err:
1025 six.reraise(
/opt/conda/lib/python3.6/site-packages/tensorflow/python/ops/parallel_for/control_flow_ops.py in pfor(loop_fn, iters, parallel_iterations)
149 if context.executing_eagerly():
150 f = function.defun(f)
--> 151 return f()
152
153
/opt/conda/lib/python3.6/site-packages/tensorflow/python/eager/function.py in call(self, *args, **kwargs)
862 def call(self, *args, **kwargs):
863 """Calls a graph function specialized to the inputs."""
--> 864 graph_function, args, kwargs = self._maybe_define_function(args, kwargs)
865 return graph_function._filtered_call(args, kwargs) # pylint: disable=protected-access
866
/opt/conda/lib/python3.6/site-packages/tensorflow/python/eager/function.py in _maybe_define_function(self, args, kwargs)
1174 self._input_signature,
1175 autograph=self._autograph,
-> 1176 arg_names=arg_names),
1177 self._function_attributes)
1178 if self._input_signature:
/opt/conda/lib/python3.6/site-packages/tensorflow/python/framework/func_graph.py in func_graph_from_py_func(name, python_func, args, kwargs, signature, func_graph, autograph, add_control_dependencies, arg_names, op_return_value)
446 tf_decorator.rewrap(python_func, original_func, converted_func)
447
--> 448 func_outputs = python_func(*func_args, **func_kwargs)
449
450 # invariant: func_outputs contains only Tensors, IndexedSlices,
/opt/conda/lib/python3.6/site-packages/tensorflow/python/ops/parallel_for/control_flow_ops.py in f()
146 """
147 def f():
--> 148 return _pfor_impl(loop_fn, iters, parallel_iterations=parallel_iterations)
149 if context.executing_eagerly():
150 f = function.defun(f)
/opt/conda/lib/python3.6/site-packages/tensorflow/python/ops/parallel_for/control_flow_ops.py in _pfor_impl(loop_fn, iters, parallel_iterations)
157 with ops.name_scope("loop_body"):
158 loop_var = array_ops.placeholder(dtypes.int32, shape=[])
--> 159 loop_fn_outputs = loop_fn(loop_var)
160 new_ops = set(ops.get_default_graph().get_operations()) - existing_ops
161 iters = ops.convert_to_tensor(iters)
/opt/conda/lib/python3.6/site-packages/tensorflow/python/eager/backprop.py in loop_fn(i)
1011 self._pop_tape()
1012 return self.gradient(y, flat_sources,
-> 1013 unconnected_gradients=unconnected_gradients)
1014
1015 try:
/opt/conda/lib/python3.6/site-packages/tensorflow/python/eager/backprop.py in gradient(self, target, sources, output_gradients, unconnected_gradients)
944 flat_sources,
945 output_gradients=output_gradients,
--> 946 unconnected_gradients=unconnected_gradients)
947
948 if not self._persistent:
/opt/conda/lib/python3.6/site-packages/tensorflow/python/eager/imperative_grad.py in imperative_grad(tape, target, sources, output_gradients, unconnected_gradients)
70 sources,
71 output_gradients,
---> 72 compat.as_str(unconnected_gradients.value))
/opt/conda/lib/python3.6/site-packages/tensorflow/python/eager/backprop.py in _gradient_function(op_name, attr_tuple, num_inputs, inputs, outputs, out_grads)
129 return [None] * num_inputs
130
--> 131 return grad_fn(mock_op, *out_grads)
132
133
/opt/conda/lib/python3.6/site-packages/tensorflow/python/ops/array_grad.py in _ConcatGradV2(op, grad)
220 def _ConcatGradV2(op, grad):
221 return _ConcatGradHelper(
--> 222 op, grad, start_value_index=0, end_value_index=-1, dim_index=-1)
223
224
/opt/conda/lib/python3.6/site-packages/tensorflow/python/ops/array_grad.py in _ConcatGradHelper(op, grad, start_value_index, end_value_index, dim_index)
115 out_grads = array_ops.split(grad, sizes, non_neg_concat_dim)
116 else:
--> 117 if constant_op.is_constant(concat_dim):
118 # If concat_dim is a constant defined in a different context,
119 # then we duplicate it in the current context to avoid passing it
/opt/conda/lib/python3.6/site-packages/tensorflow/python/framework/constant_op.py in is_constant(tensor_or_op)
293 def is_constant(tensor_or_op):
294 if isinstance(tensor_or_op, ops.Tensor):
--> 295 op = tensor_or_op.op
296 else:
297 op = tensor_or_op
/opt/conda/lib/python3.6/site-packages/tensorflow/python/framework/ops.py in op(self)
925 def op(self):
926 raise AttributeError(
--> 927 "Tensor.op is meaningless when eager execution is enabled.")
928
929 @Property
AttributeError: Tensor.op is meaningless when eager execution is enabled.

@sarshalom I am able to reproduce the issue with Tensorflow version 1.13.1 on Colab.

Apologies for the delay in response. Looks like this is fixed in TF 1.14. I get following output with eager execution enabled:
<tf.Tensor: id=117, shape=(2, 1), dtype=float32, numpy=
array([[1.],
       [1.]], dtype=float32)>

Thanks!


Fixes the internal issue where after invoking add environment dialogue box, focus is directly on second element.

This pull request fixes internal issue #1486766 and #1486787 where after invoking the add environment dialogue box, the focus is on the second element of that page.
The focus is now on the first element after opening the environment dialogue box.

@StellaHuang95 I approved this, feel free to merge it in whenever you like 😄


Works with VTO 2101

I just want to say thank you for this integration.  I have a VTO 2101.  I recently migrated my HA from supervised to docker container.  I was looking for a simple, straightforward, and reliable way to integrate the basic doorbell functions into my installation.  There are other options out there that require more complex setup and are focused more on door control.  I use Blue Iris for the unit's camera functions.
Your integration fit the bill for me.  I can easily determine doorbell button presses to trigger automations in my system.
The VT 2101 is not listed as a doorbell camera that works with this integration, but it does--at least for my purposes.  You may want to consider adding it to your list.
Thanks again for this integration!

@FlaMike I've got a VTO 2101 as well but it's unable to detect button presses at all, did you do anything special/different to get it working?

Michael,
It's been a while since I did this, but I believe the sequence of events was the following:
I added the HACS integration & & restarted HA
I went to the "integrations" tab in HA & then searched for and added Dahua as  described in this integration's instructions under "HACS Install."
I assume "configuring the camera" the action needed was to enter the VTO's IP address.  As I said, it's been a while since I did this.
The VTO and it's entities should show up in HA, including "Button Pressed" which I use in an automation to let me know someone's at the door.  The automation I have uses TTS to play a chime & announce that someone is at the door.  It also takes snapshots from the camera & sends a notification to my phone along with the pictures.
I've done several updates to this integration, as they become available but not done anything special to get it working.  I've been using this integration for about a year & it's been rock solid.
I hope you get it going & find it helpful.
Mike


Red and purple PP color indicators switched

Buildings and upgrades colored red have a longer payback period than purple-colored ones, which disagrees with the color legend. The cause appears to be a reversed comparison operator here (the > should be <).

Good catch, will fix in next update.


Document print_schema_as_code in README

Document print_schema_as_code in the README
Also make a post on LinkedIn to show users about this functionality.

I would like to work on this one. Experienced with Python and I understand Spark, but my git/github knowledge is limited.

Sounds good @michel-public, just assigned this issue to you.  Thanks!

@michel-public - please let us know when the PR Is ready for review, thank you!

@MrPowers
came here from the below reditt thread.
https://www.reddit.com/r/dataengineering/comments/ms33t0/open_source_contributions_for_a_data_engineer/
It looks like this can be closed as I see print_schema_as_code is available in README now

@kavinrites Thank you for pointing our attention to it. You are absolutely right, it is Done.


Sync tsserver.js and lib.d.ts version with TypeScript repo

To incorporate several bug fixes after 1.5 beta was published in the TypeScript repo. Also last time a locally built version of tsserver.js was committed. Changed them back to be the same with the ones in the TypeScript repo.

This version of typescript has not been released yet. I would stick with TypeScript 1.5 beta for now.

I think fixes may have gone in since 1.5 beta.

We have not shipped a sublime plug in release since. that means if we ship today, users will get an inconsistent behavior specially with respect to the library.. things that work fine in the editor will break at compile time, and navigating to the error locations in the editor will show different definitions based on the new library.
We either stick with 1.5-beta that we shipped, or ship another version, say 1.5-beta2 to match it. i am fine either ways..

@mhegazy  Because there are sublime-related changes (for example https://github.com/Microsoft/TypeScript/pull/3016 that fixes the indentation configuration problems) after 1.5 beta release, I think at least that bit should be incorporated. Do you think it is better for consistence if I only change that bit, and keep the rest of the content the same with 1.5 beta?

The library is the one that is a bit tricky.. specially that we had 4-5 fixes since 1.5-beta. so i am fine with this plan as well.


Create a simple front end app that will be able to interact with snapshot APIs

A user should be able to get a snapshot by providing:
stakingContractDataItems

Implemented here:
https://github.com/ferrumnet/admin-portal/pull/2


Show all deployments toggle isn't working correctly

Description
A clear description of the bug is:
What is the use of this toggle?
From the tooltip, it shows that if it is turned off, only deployments from the dashboard will be listed, but as you can see below, it lists all the deployments even from outside the dashboard when the toggle is off.

If it is to show the deployment with no metadata, then the tooltip should be corrected and shouldn't be placed on all the solutions (Micro VM only would be enough for that).

Work Completed:
Update show all deployments info tooltip message

Verified, Devnet e7fe24d.
The toggle message was updated to Didn't find your deployments in the list? Enable to show all deployments., and now the toggle is only shown on 2 deployments pages: MicroVM and Kubernetes.

Verified:

Devnet
c98400f


[rom_ctrl] KMAC interface optimization

As discussed in #12429, the KMAC interface actually supports byte strobes. Since the ROM controller only reads out 39bit per cycle, it therefore makes sense to only transmit 5 bytes worth of data to KMAC per cycle instead of a zero padding to the maximum interface with and transferring 8 bytes per cycle.
This change should improve the ROM hash time by almost 50%.
Signed-off-by: Michael Schaffner<EMAIL_ADDRESS>

Yeah I have not run all regressions just yet - let me do that.
I'll also tag some LR folks.

@GregAC @prajwalaputtappa can you help take a look as well? This should speed up our overall boot time.

I double checked this in simulation and the initialization time reduces to 0.625% which is exactly a factor of 5/8 - so this seems to work!


Op [hashcode] failed check for output [0], DataType: [FLOAT];

Issue Description
When running ticktoe example I encounter the following error.  Interesting thing - I don't have drive D
INFO: Data Processing Started
o.n.l.f.Nd4jBackend - Loaded [CpuBackend] backend
o.n.n.NativeOpsHolder - Number of threads used for linear algebra: 4
o.n.l.c.n.CpuNDArrayFactory - *********************************** CPU Feature Check Warning ***********************************
o.n.l.c.n.CpuNDArrayFactory - Warning: Initializing ND4J with Generic x86 binary on a CPU with AVX/AVX2 support
o.n.l.c.n.CpuNDArrayFactory - Using ND4J with AVX/AVX2 will improve performance. See deeplearning4j.org/cpu for more details
o.n.l.c.n.CpuNDArrayFactory - Or set environment variable ND4J_IGNORE_AVX=true to suppress this warning
o.n.l.c.n.CpuNDArrayFactory - *************************************************************************************************
o.n.n.Nd4jBlas - Number of threads used for OpenMP BLAS: 4
o.n.l.a.o.e.DefaultOpExecutioner - Backend used: [CPU]; OS: [Windows 10]
o.n.l.a.o.e.DefaultOpExecutioner - Cores: [8]; Memory: [7,1GB];
o.n.l.a.o.e.DefaultOpExecutioner - Blas vendor: [OPENBLAS]
Op [hashcode] failed check for output [0], DataType: [FLOAT];
o.n.l.c.n.o.NativeOpExecutioner - Failed to execute op hashcode. Attempted to execute with 1 inputs, 1 outputs, 0 targs,0 bargs and 0 iargs. Inputs: [(FLOAT,[1,9],c)]. Outputs: [(FLOAT,[],c)]. tArgs: -. iArgs: -. bArgs: -. Op own name: "91decc42-7145-4e8a-9bba-52eac91a131a" - Please see above message (printed out from c++) for a possible cause of error.
дек 26, 2019 12:38:23 AM org.deeplearning4j.examples.tictactoe.TicTacToeData main
SEVERE: java.lang.RuntimeException: Op [hashcode] execution failed
дек 26, 2019 12:38:23 AM org.deeplearning4j.examples.tictactoe.TicTacToeData main
INFO: Total time = 1417
Validation error at D:/jenkins/ws/dl4j-deeplearning4j-1.0.0-beta6-windows-x86_64-cpu/libnd4j/include/ops/declarable/impl/DeclarableOp.cpp:515 code=34() "this->validateDataTypes(*block)"
Process finished with exit code 0
Version Information
<parent>
    <groupId>org.deeplearning4j</groupId>
    <artifactId>deeplearning4j-examples-parent</artifactId>
    <version>1.0.0-beta6</version>
</parent>

Duplicate of #8554

Sorry, I thought this was related to the AVX warning, but maybe it's now related @raver119 ?

It's a bug, described here: https://github.com/eclipse/deeplearning4j/issues/8566
Already fixed on master. Will be available in snapshots shortly.