Implement Neccessary CRT0 Portions

Description
Having worked out (#30) which portions of the CRT are necessary for this effort, we need to provide those functions as polyfills (#25) for our compiler.

This includes our allocator (see #29 for the design).


SPI Issues

First of all, thanks for the library. It is very handy and useful. I am trying to connect SCL3300-D01-PCB to arduino uno through a bidirectional logic converter. Also using a pull up resistor for chip select - 4.7K. DVIO pin is at +3.3 Volts. I have checked all the connections but still I am not getting the communication established. I have provided the serial outputs with debug.

I have also added more serial prints in the code (below output) and still not able to figure out the issue.
14:33:39.307 -> Reading basic Tilt Level Offset values from SCL3300 Inclinometer
14:33:39.384 -> FC000073  Inside transfer I FC 0 0 73 In CRC TrueIn RS True Inside transfer II Status err1 CRC err1 3 FFFF FF 7A 1
14:33:39.502 -> B4002098  Inside transfer I B4 0 20 98 In CRC TrueIn RS True Inside transfer II Status err1 CRC err1 3 FFFF FF 7A 1
14:33:39.618 -> B4000338  Inside transfer I B4 0 3 38 In CRC TrueIn RS True Inside transfer II Status err1 CRC err1 3 FFFF FF 7A 1
14:33:39.739 -> 180000E5  Inside transfer I 18 0 0 E5 In CRC TrueIn RS True Inside transfer II Status err1 CRC err1 3 FFFF FF 7A 1
14:33:39.868 -> 180000E5  Inside transfer I 18 0 0 E5 In CRC TrueIn RS True Inside transfer II Status err1 CRC err1 3 FFFF FF 7A 1
14:33:39.989 -> 180000E5  Inside transfer I 18 0 0 E5 In CRC TrueIn RS True Inside transfer II Status err1 CRC err1 3 FFFF FF 7A 1
14:33:40.101 -> B0001F6F  Inside transfer I B0 0 1F 6F In CRC TrueIn RS True Inside transfer II Status err1 CRC err1 3 FFFF FF 7A 1
14:33:40.244 -> 40000091  Inside transfer I 40 0 0 91 In CRC TrueIn RS True Inside transfer II Status err1 CRC err1 3 FFFF FF 7A 1
14:33:40.358 -> 40000091  Inside transfer I 40 0 0 91 In CRC TrueIn RS True Inside transfer II Status err1 CRC err1 3 FFFF FF 7A 1
14:33:40.484 -> B4000338  Inside transfer I B4 0 3 38 In CRC TrueIn RS True Inside transfer II Status err1 CRC err1 3 FFFF FF 7A 1
14:33:40.605 -> 180000E5  Inside transfer I 18 0 0 E5 In CRC TrueIn RS True Inside transfer II Status err1 CRC err1 3 FFFF FF 7A 1
14:33:40.725 -> 180000E5  Inside transfer I 18 0 0 E5 In CRC TrueIn RS True Inside transfer II Status err1 CRC err1 3 FFFF FF 7A 1
14:33:40.841 -> 180000E5  Inside transfer I 18 0 0 E5 In CRC TrueIn RS True Inside transfer II Status err1 CRC err1 3 FFFF FF 7A 1
14:33:40.968 -> B0001F6F  Inside transfer I B0 0 1F 6F In CRC TrueIn RS True Inside transfer II Status err1 CRC err1 3 FFFF FF 7A 1
14:33:41.085 -> 40000091  Inside transfer I 40 0 0 91 In CRC TrueIn RS True Inside transfer II Status err1 CRC err1 3 FFFF FF 7A 1
14:33:41.202 -> 40000091  Inside transfer I 40 0 0 91 In CRC TrueIn RS True Inside transfer II Status err1 CRC err1 3 FFFF FF 7A 1
14:33:41.320 -> getErrFlag1
14:33:41.320 -> FC000073  Inside transfer I FC 0 0 73 In CRC TrueIn RS True Inside transfer II Status err1 CRC err1 3 FFFF FF 7A 1
14:33:41.447 -> 1C0000E3  Inside transfer I 1C 0 0 E3 In CRC TrueIn RS True Inside transfer II Status err1 CRC err1 3 FFFF FF 7A 1
14:33:41.600 -> 1C0000E3  Inside transfer I 1C 0 0 E3 In CRC TrueIn RS True Inside transfer II Status err1 CRC err1 3 FFFF FF 7A 1
14:33:41.712 -> 65535
14:33:41.712 -> getErrFlag2
14:33:41.712 -> FC000073  Inside transfer I FC 0 0 73 In CRC TrueIn RS True Inside transfer II Status err1 CRC err1 3 FFFF FF 7A 1
14:33:41.838 -> 200000C1  Inside transfer I 20 0 0 C1 In CRC TrueIn RS True Inside transfer II Status err1 CRC err1 3 FFFF FF 7A 1
14:33:41.960 -> 200000C1  Inside transfer I 20 0 0 C1 In CRC TrueIn RS True Inside transfer II Status err1 CRC err1 3 FFFF FF 7A 1
14:33:42.092 -> 65535
14:33:42.092 -> Murata SCL3300 inclinometer not connected.

Just wanted to add that I also did try the loopback test (that has been suggested for the other connectivity issue).
When I loop back the CRC errors go off
18:12:00.841 -> Reading basic Tilt Level Offset values from SCL3300 Inclinometer
18:12:00.925 -> FC000073  Inside transfer I FC 0 0 73 In CRC TrueIn RS True Inside transfer II Status err1 CRC err1 3 FFFF FF 7A 1
18:12:01.040 -> B4002098  Inside transfer I B4 0 20 98 In CRC TrueIn RS True Inside transfer II Status err1 CRC err1 3 FFFF FF 7A 1
18:12:01.174 -> B4000338  Inside transfer I B4 0 3 38 In CRC FalseIn RS True Inside transfer II Status err1 CRC err0 0 3 38 38 0
18:12:01.289 -> 180000E5  Inside transfer I 18 0 0 E5 In CRC FalseIn RS True Inside transfer II Status err1 CRC err0 0 0 E5 E5 0
18:12:01.396 -> 180000E5  Inside transfer I 18 0 0 E5 In CRC FalseIn RS True Inside transfer II Status err1 CRC err0 0 0 E5 E5 0
18:12:01.506 -> 180000E5  Inside transfer I 18 0 0 E5 In CRC FalseIn RS True Inside transfer II Status err1 CRC err0 0 0 E5 E5 0
18:12:01.622 -> B0001F6F  Inside transfer I B0 0 1F 6F In CRC FalseIn RS True Inside transfer II Status err1 CRC err0 0 1F 6F 6F 0
18:12:01.740 -> 40000091  Inside transfer I 40 0 0 91 In CRC FalseIn RS True Inside transfer II Status err1 CRC err0 0 0 91 91 0
18:12:01.856 -> 40000091  Inside transfer I 40 0 0 91 In CRC FalseIn RS True Inside transfer II Status err1 CRC err0 0 0 91 91 0
but when I am connecting to the inclinometer normally without the loopback I am getting the FF errors...

The outputs you have shared point to some sort of connection issue. I've
run into a similar issue when I'm using a breadboard with the scl3300, and
some of the wires end up having a problem. So I'd recommend double checking
there first. (The wires can look right, but any corrosion will cause this
problem. )
Dave
On Mon, Oct 19, 2020, 5:58 AM NeelMani3<EMAIL_ADDRESS>wrote:

Just wanted to add that I also did try the loopback test (that has been
suggested for the other connectivity issue).
When I loop back the CRC errors go off
18:12:00.841 -> Reading basic Tilt Level Offset values from SCL3300
Inclinometer
18:12:00.925 -> FC000073 Inside transfer I FC 0 0 73 In CRC TrueIn RS True
Inside transfer II Status err1 CRC err1 3 FFFF FF 7A 1
18:12:01.040 -> B4002098 Inside transfer I B4 0 20 98 In CRC TrueIn RS
True Inside transfer II Status err1 CRC err1 3 FFFF FF 7A 1
18:12:01.174 -> B4000338 Inside transfer I B4 0 3 38 In CRC FalseIn RS
True Inside transfer II Status err1 CRC err0 0 3 38 38 0
18:12:01.289 -> 180000E5 Inside transfer I 18 0 0 E5 In CRC FalseIn RS
True Inside transfer II Status err1 CRC err0 0 0 E5 E5 0
18:12:01.396 -> 180000E5 Inside transfer I 18 0 0 E5 In CRC FalseIn RS
True Inside transfer II Status err1 CRC err0 0 0 E5 E5 0
18:12:01.506 -> 180000E5 Inside transfer I 18 0 0 E5 In CRC FalseIn RS
True Inside transfer II Status err1 CRC err0 0 0 E5 E5 0
18:12:01.622 -> B0001F6F Inside transfer I B0 0 1F 6F In CRC FalseIn RS
True Inside transfer II Status err1 CRC err0 0 1F 6F 6F 0
18:12:01.740 -> 40000091 Inside transfer I 40 0 0 91 In CRC FalseIn RS
True Inside transfer II Status err1 CRC err0 0 0 91 91 0
18:12:01.856 -> 40000091 Inside transfer I 40 0 0 91 In CRC FalseIn RS
True Inside transfer II Status err1 CRC err0 0 0 91 91 0
but when I am connecting to the inclinometer normally without the loopback
I am getting the FF errors...
[image: image]
https://user-images.githubusercontent.com/12881070/96453852-afb0cc00-1238-11eb-8875-10eef6b79bc9.png
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/DavidArmstrong/SCL3300/issues/21#issuecomment-712138011,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AACGQKLQZMMTY4BZG5JBYXDSLQZWNANCNFSM4SV5IZUQ
.

Thanks. I tried reconnecting and checked all the wire connectivity with multimeter between uno - bidirectional converter - Inclinometer - all board to board instead of the wires.  Changed couple of wires as well. Still facing the same issue.
Is there any way that the Inclinometer inherently is having some component issue? Is there any way to check that?

There is always the possibility of a hardware issue with the scl3300
itself. Another check that could be done is to look at the three SPI line
with an oscilloscope, and see what wave forms they show.
Dave
On Mon, Oct 19, 2020, 9:33 AM NeelMani3<EMAIL_ADDRESS>wrote:

Thanks. I tried reconnecting and checked all the wire connectivity with
multimeter between uno - bidirectional converter - Inclinometer - all board
to board instead of the wires. Changed couple of wires as well. Still
facing the same issue.
Is there any way that the Inclinometer inherently is having some component
issue? Is there any way to check that?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/DavidArmstrong/SCL3300/issues/21#issuecomment-712285691,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AACGQKINUECCIIMPFBE3ZFLSLRS4PANCNFSM4SV5IZUQ
.

Thanks for your suggestion. I reconnected the circuit in a new board with nano and removed the pull up resistor on chip select. It worked fine without the errors. Thanks for your help.

Issue reported as resolved, so closing.


Revising DOM interface, open questions

So, I revised the DOM interface, but encountered some questions during the process:
Separation of DOM and HTML DOM interface
I think separating the DOM and HTML DOM declarations would improve maintainability. The problem is that HTML DOM extends DOM through partial interfaces. I.e. they augment the interface definitions in DOM. There doesn't seem to be a way to do something like this in Flow, so the only way for defining HTML DOM is to add those attributes / methods to the DOM declarations.
Is there anything on the road map which would allow us to extend an existing declaration, just like WebIDL does? This would also be great for managing browser specific extensions.
Some declarations such as File or Blob don't even have anything to do with DOM. Maybe we can at least put those interfaces into their own file.
Interfaces
What are the plans for interfaces? For my changes I had to copy the same definition to multiple class declarations because interfaces are not supported (yet?).
Instance of a class
Hack has the type this to indicate that a method returns an instance of the same class the method is invoked on. That's especially useful for inheritance. In this particular case: cloneNode(), defined in the Node class. What are the plans for this feature and how to handle this now? Would I have to declare that method with the correct return type in every class that extends Node?
Which DOM version?
I followed the declarations of https://dom.spec.whatwg.org/. This section explains the changes to the previous version (DOM Level 3). I assume we also want to include changed or removed attributes / methods from previous versions?
Testing
What would be the best way to test my declarations?

Thank you for reporting this issue and appreciate your patience. We've  notified the core team for an update on this issue. We're looking for a response within the next 30 days or the issue may be closed.

I think some of these questions have been solved, and the rest will be solved by flow-typed. For example, one of the things we hope to do is unbundle the DOM and node libdefs from the flow binary, so that there can be more than one for different versions of DOM and node.


Add hyperlink that will take the search result to the source code.

Hovering over an expression in the search table triggers a highlighting function that highlights the corresponding expression in the code editor. Done in #104.


Bouncer stop if the LAPI is down

If you restart the LAPI (in my case on a central node) the bouncer just stop working.
You got this message in log :
time="10-12-2020 07:37:31" level=error msg="auth-api: auth with api key failed return nil response, error: dial tcp <IP_ADDRESS>:8080: connect: connection refused"
After that the process just stop.
You need to restart the bouncer (and go through the whole process on add/del ban).
This is really a problem on my setup. If I need to change the config on the central node, I have to restart all the bouncer on every servers. And use a lot of time to add/delete again the full ban list.
Maybe if the LAPI doesn't respond wait a little time, and retry connecting, maybe wait 1min or 2 and then restart the whole bouncer. But then we need some improvement on the process start to not use too much cpu time.

Hello @LtSich, sorry for the delay.
This issue was in the go library used by this bouncer to pull decisions from the crowdsec API. I've fixed the issue [here] and i'm now releasing a new version of this bouncer to update it.

Hello @LtSich, sorry for the delay.
This issue was in the go library used by this bouncer to pull decisions from the crowdsec API. I've fixed the issue [here] and i'm now releasing a new version of this bouncer to update it.

Currently seem to experience this exact issue. Has this not been solved still?
Deployed CS in a Docker stack last night. Everything seemed to be fine but was surprised to see 0 active decisions this morning. Simulated a brute force and nothing is being added. Log reports auth-api: auth with api key failed return nil response, error: dial tcp <IP_ADDRESS>:8080: connect: connection refused Upon restarting the firewall bouncer decisions are being received and dealt with once again.

I am experiencing this same issue. I can only assume that it originates from restarting crowdsec while a bouncer is running. If I don't also restart the bouncer, communication stays broken and decisions aren't applied.
I am using the Cloudflare-Worker-Bouncer.

I am experiencing this same issue. I can only assume that it originates from restarting crowdsec while a bouncer is running. If I don't also restart the bouncer, communication stays broken and decisions aren't applied.
I am using the Cloudflare-Worker-Bouncer.

@Staene I have since discovered that the firewall bouncer would start too early in which case it would not listen to decisions. To work around the issue I disable the systemd service in favour of a timer to delay the start. I have not encountered the issue since. Hope this helps.


"Add to home screen" alert

We should add the logic for the "Add to home screen" alert.

[x] Update app manifest
[x] Update pwa assets
[ ] Add js logic to handle banner propt

Uhm...


Improve imports

Fix some imports and set jupyterlab-markup as dependency
I had to remove the auto disabling core factory. If it is set, the notebook editor is not available any more. I don't know why.
Sounds like a bug in JLab because if I manually set jupyter labextension disable "@jupyterlab/notebook-extension:factory", everything works fine.

Thanks for cleaning these up, also needed to be done.
I'm not sure on the protocol for adding dependencies in the Python package, which is why I left it out until now. My gut instinct is that we should assume if the user is installing one extension via PyPI, they want both via PyPI, so I'm on board with the suggestion.

Let's add an install for jupyterlab too so that we have jlpm. I'd still like to use a PEP517 builder with isolation for the package build stage.

LGTM

Thanks I'm trying it on binder as I still have a doubt about the disabledExtensions setup in package.json. If it works, I'll then merge.

I confirm that if disabledExtensions is set, it breaks JupyterLab. So I remove it. I'll merge as the error is unrelated.


Define number of indent spaces.

Is there a way for me to define the number of indent spaces in typstyle? I wanted the number of indent space to be 4 but typstyle defaults at 2 spaces.

i believe this is a deplicate of #116

It is! In my defense, I did search for issues about indents and didn't find any but did not search for issues about tabs. I'll close this issue and follow that one.


Update Blog “why-you-should-avoid-using-the-switch-statement-in-javascript-and-what-to-use-instead”

Automatically generated by Netlify CMS

👷 Deploy Preview for astounding-pika-bfabf8 processing.

Name
Link

🔨 Latest commit
6109e835a0ad645034a49e8ffb37f85c59c149c1

🔍 Latest deploy log
https://app.netlify.com/sites/astounding-pika-bfabf8/deploys/66c91d56ad01400008937541


Use large Noto font in floating billboards

This adds Noto Sans in font size 52 (the current one is 20) with an identical character set and sets it as default font for FloatingTextRenderer. The different fonts look like this:

Note that the old "default" font is unable to display the full text. A second use case for the large font is to replace the current title font, which isn't ready for i18n text either.

Refer to this link for build results (access rights to CI server needed):
http://jenkins.terasology.org/job/TerasologyPRs/260/
Hooray Jenkins reported success with all tests good!

Short and sweet, good stuff. Nice screenies :-)


fix issue when submitting NAR via file url

Motivation
Fix some incorrect logic in validating packages submitting for sources and sinks.
Enable some previously disabled tests because of this issue

@sijie thanks for the review.  I have updated the PR to have more return more specific errors.

run integration tests

rerun integration tests


Clean up whitespace and add simple logging.

Thank you for a pull request! Please check this document for how the Jenkins project handles pull requests


Update notification for message sent status

Is your feature request related to a problem? Please describe.
Could be useful to include indicators that a message has been sent successfully or has failed from a sent message. We have something like that now, but UI can potentially be improved.
Describe the solution you'd like
Update to message sent status with MUI

I've been looking at some MUI features and Snackbar seems like it could be a good use for this:
https://mui.com/material-ui/react-snackbar/
I've experimented with it a bit already. It's a highly customizable pop-up component and looks pretty good in my opinion.

Can certainly look into it. The interface looks really nice having it pop up.

Closing issue in favor of issue #216 and related to moving status notifications to MUI snackbar or equivalent.


pull request for e2e test at 11/19/2016 23:26:07

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

optest/docs/updated_at.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


trying to redefine client but get can't load module

I've trying as said in documentation:
defmodule MyApp.S3 do
  use ExAws.S3.Client, otp_app: :my_app
end

and get
module ExAws.S3.Client is not loaded and could not be found
Trying for all modules but error is still the same.
BTW: as I'm understand right that there is no action for CreatePlatformEndpoint AWS API call in ExAws.SNS module?

What documentation are you reading? I think you have the 1.0 RC release installed, but are reading documentation from 0.5.X. The whole use Client approach is gone now.

@benwilson512 Yes you absolutely right. Thank you! I've just found it by myself too.


hopefully last push

Api calls for students

Codecov Report

Merging #374 (d9e053b) into develop (2b0ca0a) will not change coverage.
The diff coverage is n/a.

@@              Coverage Diff              @@
##             develop        #374   +/-   ##
=============================================
  Coverage   97.82097%   97.82097%
=============================================
  Files             76          76
  Lines           1698        1698
=============================================
  Hits            1661        1661
  Misses            37          37

@stijndcl had to make a new branch because of some mistakes, but here I fixed your requested changes.


wrong selector from xml drawables

selector generated from xml drawables (like shape) is invalid, because drawable names end with .xml
<?xml version="1.0" encoding="UTF-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item<EMAIL_ADDRESS>android:state_selected="false"/>
    <item<EMAIL_ADDRESS>android:state_selected="true"/>
</selector>

I have fix the bug.Download the plugin from here.

I use the method of upstairs to solve the problem;thanks


Ignore parse exceptions

Tests are currently failing in master due to a change in the latest version of REXML.
REXML previously accepted some invalid XML (e.g. foo bar) but raised on other (<foo bar). Since v3.3.3 it also raises on foo bar (see https://github.com/ruby/rexml/pull/184).
Likewise, WebMock::Util::JSON.parse accepts some invalid JSON (e.g. foo bar) but raises on other (e.g. [foo bar).
It seems both matchers should just rescue and ignore parse exceptions.

The Ruby head test fails due to https://github.com/igrigorik/em-http-request/pull/365.

Thank you @c960657 ! I appreciate the explanation and the PR. I agree it makes sense to ignore the parsing exceptions and simply not match the request body.
Any suggestions on how to fix the em-http-client issue in Ruby head, or just wait for em-http-client to be fixed?

Hmm, no, I don't think there is anything WebMock can do about the em-http-client issue.

It is annoying that webmock build fails due to a problem with just one of http clients.

We can use skip to bypass the tests for em-http-client on Ruby HEAD (see #1070).


model values is not binded to injected html

Hello! I was looking for solution to inject html markup with variables from ajax response.
And I have found joicy-html.
here is my code:
<dom-module id="mc-menu-item">
  <template >
    <template
      is="juicy-html"
      content$="{{markup.item}}"
      model="{{menuitem}}"
    ></template>
  </template>

</dom-module>

Where:
markup = {item: "
item type: {{model.type}}
"}
menuitem = {type: 'item'}

As a result I'm getting rendered markup.item inserted   html as is (without data binded)
I was thinking of putting markup.item between dom-bind template like this:
<template is="dom-bind">
item type: {{model.type}}
</template>

But nothing rendered after this change. Please let me know what am I doing wrong?

juicy-html is vanillaJS custom element, so it does not assume any template binding framework. That's why your first attempt does not work.
However,
markup = {item: '<template is="dom-bind">
item type: {{model.type}}
</template>'}
menuitem = {type: 'item'}

should work.
We have a working example of Polymer binding integration at http://juicy.github.io/juicy-html/examples/inline_markup_w_model_binding.html.
@nikopolidi Could you prepare a jsfiddle/jsbin with your use-case?

@nikopolidi I'm closing this as answered, but feel free to re-open it if you have any other comments or questions.


a more suitable URI/IRI representation

Problems of the current use of Elixir's URI structure:

Usually URIs in the context of RDF don't need to be parsed, which means the current implementation does many unnecessary URI parsings.
The decomposed URI structure is larger than the simple string representation of an URI, which means the current implementation has unnecessary high memory demand.

Example:iex> :erlang_term.byte_size("http://www.w3.org/1999/02/22-rdf-syntax-ns#")
56
iex> :erlang_term.byte_size(RDF.uri("http://www.w3.org/1999/02/22-rdf-syntax-ns#"))
376

RDF 1.1 specification relies on the more general IRIs

The new dedicated RDF.IRI structure turned out quite well. Memory consumption was reduced by more than a half, while the performance of the RDF data structures is roughly 10x faster. The construction of RDF.IRIs is now possible in two variants:

RDF.IRI.new! (or its aliases RDF.iri! and RDF.uri!) performs a validation that the given IRI is absolute. This is the version used in most places, most notably in the coercion functions used by the RDF data structures, which lead to the ~10x performance boost, compared to the same validation done within the previous URI-based version.
RDF.IRI.new (or its aliases RDF.iri and RDF.uri) creates an IRI without any validations and has virtually no performance costs (according to the benchmarks it's almost 200x times faster, but it produces a warning that the benchmarked function "is super fast, making measures more unreliable"). If you're sure that your input IRIs are valid, you can construct them with this function and pass them directly into the RDF data structures, bypassing the coercions.

Above that, performance and memory consumption could be further improved by introducing an IRI cache, which might be implemented in the future.
Memory consumption comparison
URI:
1_000_000 bare uris:            336_000_008 bytes
1_000_000 bare triples:       1_008_000_008 bytes
Graph with 1_000_000 triples: 1_485_796_648 bytes

RDF.IRI:
1_000_000 bare iris:            128_000_016 bytes
1_000_000 bare triples:         391_200_032 bytes
Graph with 1_000_000 triples:   660_961_800 bytes

Performance comparison
URI:
Name                        ips        average  deviation         median
bare uri               102.79 K        9.73 μs   ±303.56%        9.00 μs
bare triple             34.75 K       28.78 μs    ±85.95%       26.00 μs
Graph with triple       34.01 K       29.41 μs    ±68.09%       27.00 μs

RDF.IRI:
Name                        ips        average  deviation         median
bare iri                19.47 M      0.0514 μs   ±807.21%      0.0400 μs
bare triple              3.95 M        0.25 μs  ±2458.01%        0.20 μs
Graph with triple        0.82 M        1.22 μs  ±5402.87%        1.00 μs

Benchmark setup
Operating System: macOS
CPU Information: Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz
Number of Available Cores: 4
Available memory: 17.179869184 GB
Elixir 1.5.1
Erlang 20.0

The benchmarks can be found here.


Full height view

Hi guy's,
The calendar fits the div in width. Is it possible to do the same thing in heigth?
I saw that we can change the day height but we would like the calendar to fit to the screen size (not in pixel).

I am hoping I can look into this on the weekend.

Hi Hawkeye64,
I wonder if you had the time to work on this improvement ?
Best,
Olivier

This is fixed in v4.0.0-beta.15
Set a height on the calendar. Set both day-height and day-min-height properties to 0.


Unexpected Galois map index

    Hi contributors

I found that in ckks GenLinearTransform(), the index of map[int]ringqp.Poly vec will be set to idx += slots ( if idx<0) or idx (if idex>=0) . I guess this is doing idx mod slots . But I think this might potentially generate unexpected rotation index for me when I set logslots < logN -1, i.e. when number of slots required is exactly smaller than the maximum. For example, when idx <0 , the galois element that GenLinearTransform generates is 5^(idx mod slots mod N/2) != 5^(idx mod N/2) , where 5^(idx mod N) is generated by  GenRotationKeysForRotations(). Althought the two elements act in the same way, LinearTransformNew will panic when it can't find 5^(idx mod slots mod N) however 5^(idx mod N) is provided.
Not sure if my understanding is correct. But I did encountered this situation these days.
BR
Originally posted by @lilBuffaloEric in https://github.com/tuneinsight/lattigo/discussions/334

I've opened an issue.

@lilBuffaloEric could you provide us with a main that reproduces the bug?

package main

import (
	"errors"
	"fmt"
	"math"

	"github.com/tuneinsight/lattigo/v4/ckks"
	"github.com/tuneinsight/lattigo/v4/rlwe"
)

func Gen_sigma_diagonalVecotrs(d int) (U map[int][]float64, err error) {
	if d <= 0 {
		return nil, errors.New("dimension d <= 0 ")
	}
	U = make(map[int][]float64, 2*d-1)
	for k := -d + 1; k < d; k++ {
		U[k] = make([]float64, d*d)
		for i := 0; i < d*d; i++ {
			if k >= 0 {
				if (i-d*k) >= 0 && (i-d*k) < (d-k) {
					U[k][i] = 1
				} else {
					U[k][i] = 0
				}
			} else {
				if (i-(d+k)*d) >= -k && (i-(d+k)*d) < d {
					U[k][i] = 1
				} else {
					U[k][i] = 0
				}
			}
		}
	}
	return
}

func Sigma_linearTransform(params ckks.Parameters, rlk *rlwe.RelinearizationKey, galk *rlwe.RotationKeySet, ctIn *rlwe.Ciphertext, d int) (ctOut *rlwe.Ciphertext, err error) {
	if d <= 0 || float64(d*d) != math.Pow(2, float64(params.LogSlots())) {
		return nil, errors.New("d<0 or d^2 != 2^logSlots")
	}
	var U_sigma map[int][]float64
	U_sigma, err = Gen_sigma_diagonalVecotrs(d)
	if err != nil {
		return nil, err
	}
	Scale := ctIn.Scale
	encoder := ckks.NewEncoder(params)
	evaluator := ckks.NewEvaluator(params, rlwe.EvaluationKey{Rlk: rlk, Rtks: galk})
	sigmaLT := ckks.GenLinearTransform(encoder, U_sigma, ctIn.Level(), Scale, params.LogSlots())
	ctOut_list := evaluator.LinearTransformNew(ctIn, sigmaLT)
	ctOut = ctOut_list[0]
	err = evaluator.Rescale(ctOut, ctIn.Scale, ctOut)
	if err != nil {
		return nil, err
	}
	fmt.Printf("%d levels consumed for LinearTransform\n", ctIn.Level()-ctOut.Level())
	return
}

func main() {
	var err error
	d := 4
	MatrixA := make([]float64, d*d)
	for i := 0; i < d; i++ {
		for j := 0; j < d; j++ {
			MatrixA[i*d+j] = float64(i*d + j)
		}
	}
	// initialize encryption scheme.
	LogN := 15
	Q := []uint64{
<PHONE_NUMBER>598720513,
<PHONE_NUMBER>897,<PHONE_NUMBER>433,<PHONE_NUMBER>937,<PHONE_NUMBER>153,<PHONE_NUMBER>729}

	P := []uint64{1152921504606584833}
	var params ckks.Parameters
	if params, err = ckks.NewParametersFromLiteral(ckks.ParametersLiteral{
		LogN:         LogN,
		Q:            Q,
		P:            P,
		LogSlots:     int(math.Log2(float64(d * d))), // we only need 16 slots to represent a 4x4 matrix in a ciphertext.
		DefaultScale: 1 << 40,
	}); err != nil {
		panic(err)
	}
	// generate Keys:
	kgen := ckks.NewKeyGenerator(params)
	sk, pk := kgen.GenKeyPair()
	// Relinearization key
	rlk := kgen.GenRelinearizationKey(sk, 1)
	// Galois keys
	// rotation steps {-d+1 ~ d-1}
	steps := make([]int, d+d-1+d-1)
	j := 0
	for i := 0; i < d; i++ {
		steps[j] = i
		j++
		if i != 0 {
			steps[j] = -i // FIXME: -i is original but will cause panic, so we will have to set -i mod d^2 here.
			j++
		}
	}
	galk := kgen.GenRotationKeysForRotations(steps[:], false, sk)

	// Encryptor
	encryptor := ckks.NewEncryptor(params, pk)

	// encoder
	encoder := ckks.NewEncoder(params)
	// encryption
	ptA := encoder.EncodeNew(MatrixA, params.MaxLevel(), params.DefaultScale(), params.LogSlots())
	ctA := encryptor.EncryptNew(ptA)
	// Check Sigma permutation
	var ctSigmaA *rlwe.Ciphertext
	ctSigmaA, err = Sigma_linearTransform(params, rlk, galk, ctA, d)
	if err != nil {
		panic(err)
	}
	fmt.Print(ctSigmaA) // not necessary...
}

Sorry I cant make this simpler, but the main idea is that Gen_sigma_diagonalVectors() generate diagVectors with indexs from -d+1 to d-1, which are exactly same as the steps of rotation generated in main(). Sigma_linearTransform() is the function that conducts the transformation.
I didnt pose the decryption and decoding procedures, since I think they are irrelevant to this issue.

@lilBuffaloEric I have tried your code, it seems that you are manually generating the rotations. However, if you modify it to use the rotations as rotations := sigmaLT.Rotations() it works fine. However, there is currently no good way to get the rotations that you need without first allocating the linear transform, which isn't good. So I'll keep this issue open and rename it appropriately.

Thanks for your reply~
I'm not sure why function ckks GenLinearTransform() will set the index of map[int]ringqp.Poly vec to idx += slots ( if idx<0) or idx (if idx>=0) instead of just idx no matter what sign it has. This might be the place producing the problem.

The user is allowed to give the index of the diagonals as negative values (i.e. in [slots/2, slots/2-1]), but then they are converted back to [0, slots-1] for the evaluation.
Your problem is solved if you use the API provided by the library to generate the rotations for a linear transform, so I don't see what problem you are referring too in your last sentence.

#379


upgrades node and packages

The build did not pass?

@kathleenahall @m0cah ready now!

@kathleenahall @m0cah i'm merging this now


PDF2 build fails on DITA-OT 3.7.2 with java.util.NoSuchElementException

Expected Behavior
PDF is build, replacing the missing glyph with a literal  # as did previous versions of DITA-OT (e.g. 3.6.1) and as described in https://xmlgraphics.apache.org/fop/2.6/fonts.html#missing-glyphs
Actual Behavior
Build fails due to java.util.NoSuchElementException
Possible Solution
The real solution is to

find glyphs that are available in the font to embed in PDF.
embed fonts that contain the glyphs used.

Steps to Reproduce
Complete repository with steps to reproduce is available here:
https://github.com/c-kunz/failing-pdf2-dita-ot-build
Copy of the error message, log file or stack trace
      [fop] [ERROR] Anttask - Error rendering fo file: /tmp/temp20220721110741020/topic.fo <org.apache.fop.apps.FOPException: java.util.NoSuchElementException
      [fop] java.util.NoSuchElementException>org.apache.fop.apps.FOPException: java.util.NoSuchElementException
      [fop] java.util.NoSuchElementException
      [fop] 	at org.apache.fop.tools.anttasks.FOPTaskStarter.renderInputHandler(Fop.java:652)
      [fop] 	at org.apache.fop.tools.anttasks.FOPTaskStarter.render(Fop.java:671)
      ...
      (See full log in https://github.com/c-kunz/failing-pdf2-dita-ot-build )

Environment

DITA-OT version: 3.7.2
Operating system and version: Linux Ubuntu 20.04
How did you run DITA-OT? dita -f pdf2 -i repro.dita
Transformation type: PDF2

Hints

Works as expected on DITA-OT 3.6.1
I could'nt reproduce this issue with a standalone file and FOP 2.6 (the missing glyph is replaced correctly with #)

@c-kunz the Apache FOP processor has a ".fop" folder located in your user home folder containing cached fonts and various other caches, can you remove that ".fop" folder from your side and try to publish again?

Sure, I just ran the following commands:
rm -rf ~/.fop
dita -f pdf2 -i repro.dita --debug

But the same issue occurs.
Since I couldn't reproduce this behavior with DITA-OT 3.6.1 or with a standalone FOP 2.6 I have assumed that the problem must be located somewhere in between.

I'm afraid I do not have Ubuntu, I tested on Mac OS and one of my colleagues tested on Windows and we cannot reproduce the problem. This might also be related to the fonts you have installed on your computer.

Thanks for the tip @raducoravu !
I've tested this again on a different Windows 10 machine and on Ubuntu 22.04 but failed to reproduce on either of those. Afterwards, I simply installed a font that contained the missing glyphs system-wide on Ubuntu 20.04, and the build works again.
The only thing that baffles me is that DITA-OT 3.6.x works on that machine and replaces missing glyphs with # like FOP usually does, but fails to build on 3.7.x
Anyhow, I would consider this issue as resolved. Thanks! :-)


pythonPackages.supervise_api: 0.3.0 -> 0.4.0

Failure on x86_64-darwin (full log)
Partial log (click to expand)
Package ‘supervise-1.3.0’ in /Users/graham/nix-borg/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-ndnd/pkgs/tools/system/supervise/default.nix:15 is not supported on ‘x86_64-darwin’, refusing to evaluate.

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowBroken = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowBroken = true; }
to ~/.config/nixpkgs/config.nix.

Success on x86_64-linux (full log)
Partial log (click to expand)
Successfully installed supervise-api-0.4.0
/build/supervise_api-0.4.0
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/za250k86lngd83cnfsfsp9n7dxk99fv6-python3.6-supervise_api-0.4.0
strip is /nix/store/5qj61lcvzlap87rf6blvf8p577d482bv-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/za250k86lngd83cnfsfsp9n7dxk99fv6-python3.6-supervise_api-0.4.0/lib
patching script interpreter paths in /nix/store/za250k86lngd83cnfsfsp9n7dxk99fv6-python3.6-supervise_api-0.4.0
checking for references to /build in /nix/store/za250k86lngd83cnfsfsp9n7dxk99fv6-python3.6-supervise_api-0.4.0...
/nix/store/za250k86lngd83cnfsfsp9n7dxk99fv6-python3.6-supervise_api-0.4.0
/nix/store/jskvyb9l0wqc9lmp8xcyg7a9pf5w8vfj-python2.7-supervise_api-0.4.0

Success on aarch64-linux (full log)
Partial log (click to expand)
Successfully installed supervise-api-0.4.0
/build/supervise_api-0.4.0
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/jz0mk91rrrnh6xz9rqqvq03i0pkkay1r-python3.6-supervise_api-0.4.0
strip is /nix/store/xmpjypwjmp2qi1chs5kr0hacnh161ls4-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/jz0mk91rrrnh6xz9rqqvq03i0pkkay1r-python3.6-supervise_api-0.4.0/lib
patching script interpreter paths in /nix/store/jz0mk91rrrnh6xz9rqqvq03i0pkkay1r-python3.6-supervise_api-0.4.0
checking for references to /build in /nix/store/jz0mk91rrrnh6xz9rqqvq03i0pkkay1r-python3.6-supervise_api-0.4.0...
/nix/store/jz0mk91rrrnh6xz9rqqvq03i0pkkay1r-python3.6-supervise_api-0.4.0
/nix/store/wrbnr22q8l0p167hrkviaypq65kxmr4r-python2.7-supervise_api-0.4.0


Design general focus trapping solution

We need a way to trap the focus inside a piece of DOM (or outside a piece of DOM), wrapping or refusing to tab in/out.
This includes the task of writing utility functions for detecting focusable elements.

@marcysutton do you have an input on a general focus-trapping utility?
One question I have is whether trapped focus should wrap (forward and backward) in the trapped region, or whether it should just stick to the beginning / end.

That should be a type of trapping.
What I had in mind was something akin to:
<md-dialog class="foo" md-focus-trap="wrapping">
  <!-- ... -->
</md-dialog>

or
<div md-focus-trap="nowrap">
  <!-- ... -->
</div>

Whether the default would be one or the other doesn't matter much. WDYT?

Providing options is nice in an API, however I don't think it's appropriate in this case. The convention is to wrap focus in modal dialogs, and it's what a keyboard or screen reader user would expect. It's also a WAI-ARIA best practice. https://www.w3.org/TR/wai-aria-practices/#modal_dialog
A better question is whether to trap focus inside of the dialog, or allow it to get to the browser chrome. I have heard users say they prefer it to truly be trapped in the dialog (no browser controls).
Here is part of an implementation by @rodneyrehm you can reference: https://github.com/medialize/ally.js/blob/master/src/maintain/tab-focus.js

Unless you're envisioning a keyboard trap for some other purpose than a dialog? I am curious to hear....I still think stopping a keyboard user at the end of an arbitrary tab sequence sounds like a bad idea.

We need a way to trap the focus inside a piece of DOM (or outside a piece of DOM), wrapping or refusing to tab in/out.

Do you need to trap / prevent focus for Tab and Shift Tab only, does this also apply to mouse, touch and other means of shifting focus (e.g. spatial navigation)?
Instead of trapping focus by intercepting user input, you want to simply disable all the elements that should not receive focus at a given time. ally.maintain.disabled can help with that.

This includes the task of writing utility functions for detecting focusable elements.

I've done the research on what is focusable (latest compatibility table, 1.5MB) and turned that into code (e.g. ally.query.focusable, MIT licensed).

One question I have is whether trapped focus should wrap (forward and backward) in the trapped region, or whether it should just stick to the beginning / end.

Most dialog implementations I've come across wrap the focus from last to first and vice versa. But most of the implementations I've seen consider the tabsequence to equal DOM order. However, the tabindex attribute, Flexbox order property in Firefox, Image Maps and Shadow DOM do not agree with that assumption. With ally.query.tabsequence you have a simple query interface accounting for these things.

If you want to play with these tools, I suggest you try 1.1.0-beta.5.

Aside from Dialog, I think focus trapping is also done in some menus and most dropdowns.

@hansl we may want to bump this to alpha.2

While chatting with another Googler, he mentioned the technique of temporarily setting everything outside the trapped region to tabIndex = -1 as being the only thing that truly works on all environments. We should look into this.

[…] setting everything outside the trapped region to tabIndex = -1 as being the only thing that truly works on all environments.

Except for <video controls> and <audio controls> in Blink, and SVG elements in Gecko and Trident, as well as a few other rather unlikely edge cases.

@rodneyrehm do you have any further materials on that technique? I've only heard about it anecdotally.

@jelbourn if by "that technique" you mean "setting negative tabindex to remove elements from the document's tabbing order", see ally.maintain.disabled() for a simple API to do just that (including MutationObserver and support for Shadow DOM). That API uses ally.element.disabled() which modifies elements in such a way that they're not focusable anymore (by keyboard, mouse and script).
Other than the inert-polyfill I have not found much on this subject, which is why I ran the tests and created the library. Maybe you can point me to your fellow googler so we might swap war stories?

@rodneyrehm thanks, that is useful. The person I heard this from also heard it second hand, but didn't remember from whom he had heard it.

Hi. To clarify what we mean by "focus", yes focus using tab, shift-tab needs to be trapped within a dialog. However, for components like menus or radio buttons, it's not focus that is trapped, but up/down and right/left arrow keys. Do we want 1 utility that covers focus and option selection? To me they seem like 2 different things.

@kbae00  For this issue, we're just talking about actual browser focus via Tab and Shift + Tab (i.e., document.activeElement)

Closing this since we have an initial implementation, for which further enhancements will be tracked in their own issues.

jelbourn, what is the initial implementation (or suggested solution)? I need a way to prevent user from clicking outside of the mat-dialog.


albumNameEnc error?

Hello, I just did a fresh install of windows 10, I also tried this on centos. Both give the same error bellow:
Traceback (most recent call last):
  File "icloudpd.py", line 5, in <module>
    main()
  File "C:\Users\Provision\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\click\core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "C:\Users\Provision\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\click\core.py", line 697, in main
    rv = self.invoke(ctx)
  File "C:\Users\Provision\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\click\core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "C:\Users\Provision\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\click\core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "C:\Users\Provision\Desktop\icloud_photos_downloader-master\icloudpd\base.py", line 276, in main
    photos = icloud.photos.albums[album]
  File "C:\Users\Provision\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\pyicloud_ipd\services\photos.py", line 194, in albums
    folder['fields']['albumNameEnc']['value']).decode('utf-8')
KeyError: 'albumNameEnc'

I'm having the same issue.  Ubuntu 20.04
./icloudpd.py -d ~/iCloudPhotos --username=xxxxx --password=xxxxx
2020-06-24 09:19:04 DEBUG    Authenticating...
Traceback (most recent call last):
File "./icloudpd.py", line 5, in
main()
File "/home/pens/.local/lib/python3.8/site-packages/click/core.py", line 722, in call
return self.main(*args, **kwargs)
File "/home/pens/.local/lib/python3.8/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/home/pens/.local/lib/python3.8/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/pens/.local/lib/python3.8/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/home/pens/icloud_photos_downloader/icloudpd/base.py", line 276, in main
photos = icloud.photos.albums[album]
File "/home/pens/.local/lib/python3.8/site-packages/pyicloud_ipd/services/photos.py", line 194, in albums
folder['fields']['albumNameEnc']['value']).decode('utf-8')
KeyError: 'albumNameEnc'

Turns out I had a weird ‘Untitled’/null album with no name and no photos in it.  I deleted that and everything seems to be running now.

I hava the same issues, win10.
Traceback (most recent call last):
  File "c:\users\administrator\anaconda3\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\users\administrator\anaconda3\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\Administrator\Anaconda3\Scripts\icloudpd.exe\__main__.py", line 9, in <module>
  File "c:\users\administrator\anaconda3\lib\site-packages\click\core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "c:\users\administrator\anaconda3\lib\site-packages\click\core.py", line 697, in main
    rv = self.invoke(ctx)
  File "c:\users\administrator\anaconda3\lib\site-packages\click\core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "c:\users\administrator\anaconda3\lib\site-packages\click\core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "c:\users\administrator\anaconda3\lib\site-packages\icloudpd\base.py", line 276, in main
    photos = icloud.photos.albums[album]
  File "c:\users\administrator\anaconda3\lib\site-packages\pyicloud_ipd\services\photos.py", line 194, in albums
    folder['fields']['albumNameEnc']['value']).decode('utf-8')
KeyError: 'albumNameEnc'

same here, Catalina 10.15.4
Traceback (most recent call last):   File "/usr/local/bin/icloudpd", line 8, in <module>     sys.exit(main())   File "/usr/local/lib/python3.7/site-packages/click/core.py", line 722, in __call__     return self.main(*args, **kwargs)   File "/usr/local/lib/python3.7/site-packages/click/core.py", line 697, in main     rv = self.invoke(ctx)   File "/usr/local/lib/python3.7/site-packages/click/core.py", line 895, in invoke     return ctx.invoke(self.callback, **ctx.params)   File "/usr/local/lib/python3.7/site-packages/click/core.py", line 535, in invoke     return callback(*args, **kwargs)   File "/usr/local/lib/python3.7/site-packages/icloudpd/base.py", line 276, in main     photos = icloud.photos.albums[album]   File "/usr/local/lib/python3.7/site-packages/pyicloud_ipd/services/photos.py", line 194, in albums     folder['fields']['albumNameEnc']['value']).decode('utf-8')

While I don't know the origin of the error a fix is rather simple:
Open "/usr/local/lib/python3.7/site-packages/pyicloud_ipd/services/photos.py", line 194 and change it from
folder['fields']['albumNameEnc']['value']).decode('utf-8') to
try:
    folder['fields']['albumNameEnc']['value']).decode('utf-8')
except KeyError:
    continue

this will skip the folder with the bad name.

@DeastinY I have tried your workaround, you seem to have an issue there.
Trying with your suggestion leads to an Syntax Error.
But i got it working:
try:
    folder_name = base64.b64decode(
        folder['fields']['albumNameEnc']['value']).decode('utf-8')
except KeyError:
    continue

@dariks thanks for the fix!

@dariks thanks for the fix!

While I don't know the origin of the error a fix is rather simple:
Open "/usr/local/lib/python3.7/site-packages/pyicloud_ipd/services/photos.py", line 194 and change it from
folder['fields']['albumNameEnc']['value']).decode('utf-8') to
try:
    folder['fields']['albumNameEnc']['value']).decode('utf-8')
except KeyError:
    continue

this will skip the folder with the bad name.

i tried to do this but it said permission denied...

try editing the file with admin rights

While I don't know the origin of the error a fix is rather simple:
Open "/usr/local/lib/python3.7/site-packages/pyicloud_ipd/services/photos.py", line 194 and change it from
folder['fields']['albumNameEnc']['value']).decode('utf-8') to
try:
    folder['fields']['albumNameEnc']['value']).decode('utf-8')
except KeyError:
    continue

this will skip the folder with the bad name.

Heyho,
the script checks for '----Root-Folder----'
if folder['recordName'] == '----Root-Folder----' or \
Within my data there was '----Project-Root-Folder----' as well. With e.g.:
if folder['recordName'] == '----Project-Root-Folder----' or folder['recordName'] == '----Root-Folder----' or \
it works for me.
Regards

Are there any plans to create a pull request for this fix?

+1, unfortunately I don't have much time to work on this project, but I'm definitely happy to merge a PR and release a new version if all the tests are passing

I'd be interested in a fix for this, however, there isn't a "fix" as yet, is there?
It was my understanding that the workaround detailed here, only skips the files that present the problem, rather than provide a solution which enables their download.

@maldeS solution worked for me too. Guess that's the most clean solution since the one where we ignore exceptions might give us other problems....

@ndbroadbent
Can you please check this PR: https://github.com/ndbroadbent/pyicloud/pull/4 ?
Thanks!

Can you please check this PR: ndbroadbent/pyicloud#4 ?
Works for me.

Thanks @Vlad1mir-D! I merged your PR and released a new version of icloudpd: 1.6.1. Please try that out and let me know if it fixes the issue

Thank you, @ndbroadbent!
Everything's fine.

cool, works for me as well! thx.

Syn

With this I get 'continue not properly in loop'

@DeastinY I have tried your workaround, you seem to have an issue there.
Trying with your suggestion leads to an Syntax Error.
But i got it working:
try:
    folder_name = base64.b64decode(
        folder['fields']['albumNameEnc']['value']).decode('utf-8')
except KeyError:
    continue

With this I get 'continue not properly in loop'


Refs 4271: improve err logging for fetchRepoConfigsForRepo

Summary
We're seeing this error, but the actual error isn't logged. Need to see the error to debug further.
Testing steps
Checklist

[ ] Tested with snapshotting feature disabled and pulp server URL not configured if appropriate

https://issues.redhat.com/browse/HMS-4271

⚠ This task currently requires qe-approval, but this PR does not fully resolve the task.  Please contact QE to determine appropriate testing required.


Switch build system

System information

TensorFlow version (you are using): 2.8
Are you willing to contribute it (Yes/No): Only with a system change

Describe the feature and the current behavior/state.
Building TensorFlow on Windows is a nightmare. A big problem is that either TensorFlow's Bazel scripts or Bazel itself is quite buggy. Examples:

Visual Studio 2022 does not work
LLVM does not always work under Windows
Admin rights are needed to build

With Bazel, building TF is a gamble. For example, if you install VS2022 next to VS2019 it doesn't work anymore without workarounds. Another problem with Bazel is that the files are always stored in C:\Users\username\ _bazel_username. You can't easily change the directory to e.g. move the build to a fast SSD or when C is running out of space.
TF has used CMake in the past. A switch back to CMake would be desirable.
Who will benefit with this feature?
Anyone who builds TensorFlow on Windows.

Agreed. But since Keras requires to bazel for its build tensorflow had to follow the same. Sadly everything is tested on Linux OSS. So I don't see this being solved in near future.

Google uses an equivalent of Bazel internally. We cannot maintain a CMake build, the existing one was always getting out of date and was more broken than actually working.
If an external contributor were to provide CMake support and maintain it, we can take that, but otherwise, sadly we cannot.

Bazel is just a single disaster. I have now tried to build TF on three computers and it only worked on one. Most users use Windows, so it makes no sense to build everything on Linux. In the long run, a Bazel alternative would be very desirable.

windows build is almost impossible these days,  I've built tensorflow with cuda so many times before(2016~2021), but now I gave up

Hi
I'll also add that it would be significantly easier to package and maintain tensorflow for nixpkgs without Bazel. Running Bazel in isolation is very hard and the maintenance burden is unreasonably high because of the way Bazel handles dependencies and platforms. CMake's find_package/Meson's dependency implement a sort of a dependency injection mechanism and are much easier to hand dependencies to

If an external contributor were to provide CMake support and maintain it, we can take that, but otherwise, sadly we cannot

I.e. you'd be OK merging it?

@perfinion is working on unbundling TF's dependencies so you could use those installed on the system. He's doing this for Gentoo, maybe this can also work for nix?

you'd be OK merging it?

Yes, either here or on tensorflow/build. The second is slightly better as we're trying to separate files that are used both internally and externally from files which are only community owned.

Hi,
Thank you for opening this issue. Since this issue has been open for a long time, the code/debug information for this issue may not be relevant with the current state of the code base.
The Tensorflow team is constantly improving the framework by fixing bugs and adding new features. We suggest you try the latest TensorFlow version with the latest compatible hardware configuration which could potentially resolve the issue. If you are still facing the issue, please create a new GitHub issue with your latest findings, with all the debugging information which could help us investigate.
Please follow the release notes to stay up to date with the latest developments which are happening in the Tensorflow space.

the code/debug information for this issue may not be relevant with the current state of the code base.

I assume this was an automated message? Adding support for a build system that features a proper dependency injection system (meson, cmake) is still... well I'll just phrase it as if it were a fact, but obviously it's an opinion: is of utmost importance for long-term sustainability of TF and for making the research of today less irreproducible. Frankly speaking, I'm suspicious it might not even be possible today to build tensorflow starting from bootstrap (happy to be wrong).

you'd be OK merging it?

Yes, either here or on tensorflow/build. The second is slightly better as we're trying to separate files that are used both internally and externally from files which are only community owned.

I'm hoping this road is still open. I haven't been able to allocate enough spare time so far, but am semi-actively looking for other ways to make this happen

Yeah, it was kinda automated to match some metrics.
Note that since 2022 the team has changed, there is no one left that was working on TF before the pandemic that is there now. This also means the build organization has changed.


Support ServcieComb

Coverage decreased (-0.5%) to 93.096% when pulling af800f783f73ab7f288602eef959fd32bbad7a60 on performance-test into 1df1cfd8c9d7e9c8a7ba5e1a964f36ac774e4c81 on master.

please reformat the changed files with google style

Coverage decreased (-0.5%) to 93.111% when pulling cc941d26e520156821b15b1685cc5ed1ab1b9efc on performance-test into 1df1cfd8c9d7e9c8a7ba5e1a964f36ac774e4c81 on master.

Coverage decreased (-0.3%) to 93.291% when pulling f7baeb5256f41cd9ad026df2eaa58688d9d68438 on performance-test into 1df1cfd8c9d7e9c8a7ba5e1a964f36ac774e4c81 on master.

Coverage decreased (-0.3%) to 93.291% when pulling e10085ee5bc1eab254c9c96828932fcc5398f876 on performance-test into 1df1cfd8c9d7e9c8a7ba5e1a964f36ac774e4c81 on master.


Added backup warning after PK account import

Resolved: #948

Nice one, 👍 could you add language files for Japanese and others?

@rg911
What placeholder for values should I use, just to copy English?

Nice one, 👍 could you add language files for Japanese and others?

@rg911
What placeholder for values should I use, just to copy English?

Nice one, 👍 could you add language files for Japanese and others?

@rg911
Sure. What placeholder for values should I use, just to copy English?

For the PR review, you can use translation software (e.g. google) for now

Nice one, 👍 could you add language files for Japanese and others?

@rg911
Sure. What placeholder for values should I use, just to copy English?

For the PR review, you can use translation software (e.g. google) for now

Nice one, +1 could you add language files for Japanese and others?

@rg911
Sure. What placeholder for values should I use, just to copy English?

For the PR review, you can use translation software (e.g. google) for now, placeHolder should be the same for all languages,

@rg911 how you after that find messages to translate? Isn't better to use English (easier to find not translated messages)?

Nice one, +1 could you add language files for Japanese and others?

@rg911
Sure. What placeholder for values should I use, just to copy English?

For the PR review, you can use translation software (e.g. google) for now, placeHolder should be the same for all languages,

@rg911 how you after that find messages to translate? Isn't better to use English (easier to find not translated messages)?

Nice one, +1 could you add language files for Japanese and others?

@rg911
Sure. What placeholder for values should I use, just to copy English?

For the PR review, you can use translation software (e.g. google) for now, placeHolder should be the same for all languages,

@rg911 how you after that find messages to translate? Isn't better to use English (easier to find not translated messages)?

@rg911 @cryptoBeliever I would suggest to add some set of chars to determine which translation is mock. Let say >> in the beginning

Nice one, +1 could you add language files for Japanese and others?

@rg911
Sure. What placeholder for values should I use, just to copy English?

For the PR review, you can use translation software (e.g. google) for now, placeHolder should be the same for all languages,

@rg911 how you after that find messages to translate? Isn't better to use English (easier to find not translated messages)?

@rg911 @cryptoBeliever I would suggest to add some set of chars to determine which translation is mock. Let say >> in the beginning


update go.mod go version and deps

Signed-off-by: Steve Kriss<EMAIL_ADDRESS>

I'll add a dependabot config to this repo to just to help keep things up-to-date going fwd.


Dark Mode

Summary
Full style guidance for dark mode. Every component provided dark mode alternative.
💰 User value
Describe why this is important and how it will help users (either developers, designers or the end-users). Think about how it makes people's lives easier, more accessible or quicker to build stuff.
📚 User Stories
If relevant, describe the high-level functionality as user stories.
As an ICDS user:
I need
So that
📝 Acceptance Criteria
If relevant, describe in full detail the different interactions and edge cases that the component or patterns needs to fulfil.
Given
When
Then
✏ Designs
If there's a Figma design file (or other mock-up), include it here.
## 🧾 Guidance
If there's written guidance or documentation, include it here.

For the developers, when building this consider how we could build it in a way to have other themes down the line, e.g. a company can add their own branding or switch to dark mode and how that'd work (they may be separate matters)

Duplicate


feat(XRFrameworkNodeRecord): simplify record by extending base class

The XRFrameworkNodeRecord now extends the BaseDeviceDetailsRecord which
handles many of the core functions so this class can be simplified.

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

npm package (@latest dist-tag)
v1.4.0
GitHub release

Your semantic-release bot :package::rocket:


Sparrow Wallet (on Windows) stalls/crashs when closing wallet

Hi Craig!
Updated to 1.8.6 today on Windows, but there are problems. 🫠 I was able to narrow it down to:
When a wallet with multiple Accounts, especially Whirlpool accounts, is opened, I can not:

close the wallet's tab (with small × button)
close the whole program (with window's × button)
use menu File → Close Tab (to close the wallet tab)

The programm freezes and does not respond any more, aka crashes. Then there's this messages displayed:

Sometimes it also sais the number 0, but that only occured one time so far. 🤷♂
I can only:

close the whole program regularly via menu File → Quit

It does not matter if there are Whirlpool transactions present or if the accounts are fresh. If a wallet does not have Whirlpool accounts or when no wallet is opened at all, then all the UI elements for closing work as intented and there's no crash.
Interestingly enough, if I lock the wallet first and then close it, it also works. 🥴
Could this bug be connected to the new "Show All Wallets Summary" feature? 🤔 Just guessing here.
Would be nice if you could look into this, it's obviously very annoying and not very "trust-building". 😉

Ok, this is fixed in 1.9.0.
It seemed to be a problem with (currently) non-functioning Whirlpool features that caused the wallet to crash.


Fixes crash when AuctionViewController re-appears without a populated view model

I was looking through Sentry and found this crash: https://sentry.io/organizations/artsynet/issues/739658774 I'd seen the crash before, but the solution just kind of clicked so I thought I'd get a fix in quickly.
The problem is that the viewWillAppear callback assumes that the saleViewModel is already loaded if the view is re-appearing. If the network is slow, this might not be the case, so I've added a guard to check that the saleViewModel is non-nil before trying to access any of its properties. (Note: this would normally be caught by the Swift compiler, but we're using an implicitly-unwrapped optional here. Ideally we'd avoid this and use a view controller containment to deal with the optionality of the view model, but that's a much larger refactor.)

#mergeOnGreen


⚠ ClamAV has degraded performance

In b0c5684, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 457 ms

Resolved: ClamAV performance has improved in c4f6163.


perdown

What about a countdown timer?
Issue inspired from this tweet mention
I am currently thinking of two options for this (perdown) css class:

countdown time
(short) text to be displayed inside the circle object after time's up

Any feedback will be highly appreciated.

We should consider of an alterative naming for this functionality/attribute, as perdown seems to be delivering a negative vibe.
Examples:

pertimer


"Corbu" and "Capu Corbului" are listed in the drop-down menu

Description:
"Corbu" and "Capu Corbului" are listed in the drop-down menu alongside its corresponding county and commune, according to the law
Precondition:
The website is up an running.

Step 1
Type "Corbu" in the search bar.

Expected results
The location is listed in the drop-down menu as "Sat Corbu, HARGHITA (Corbu)".

Step 2
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 3
Type again "Corbu" in the search bar.

Expected results
The location is listed in the drop-down menu as "Comuna Corbu, HARGHITA".

Step 4
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 5
Type "Capu Corbului" in the search bar.

Expected results
The location is listed in the drop-down menu as "Sat Capu Corbului, HARGHITA (Corbu)".


updated dropwizard version to 0.8.0-rc2

This plugin is very useful for building within PaaS containers such as Heroku or Deis. We are currently using version 0.8.0 of Dropwizard and would like to submit this PR to upgrade the version.

Hello @yunspace and thanks for the PR. Your help is really appreciated but I don't really get the point. Why is it necessary to change the version of the Dropwizard dependency of this plugin in order to support Dropwizard 0.8.0-rc2 in your project? You can always tweak your POM to get the right version afterall. In fact, that's not even necessary. I did a quick test with the following stuff in my POM:
[...]
    <dependencies>
        <dependency>
            <groupId>io.dropwizard</groupId>
            <artifactId>dropwizard-core</artifactId>
            <version>0.8.0-rc2</version>
        </dependency>
        <dependency>
            <groupId>de.thomaskrille.dropwizard</groupId>
            <artifactId>dropwizard-environment-configuration</artifactId>
            <version>1.0</version>
        </dependency>
    </dependencies>
[...]

This will use the right Dropwizard version 0.8.0-rc2 for the whole project, regardless of what my plugin depends on. Maybe you can tell more about the issues you are facing while using my plugin in a project that uses Dropwizard 0.8.0-rc2.

Thanks @tkrille for the prompt reply. We've ran into issues in the past when pulling in transitive dependencies such as conflicting Jersey versions (symptoms described in https://github.com/dropwizard/dropwizard/issues/828) or conflicting Guava versions (ie Governator's v14 vs DW's v18). These errors are not detected at compile time and can be quite confusing when they pop up. Thus we got into a habit of trying to enforcing [dependency convergence] (http://maven.apache.org/enforcer/enforcer-rules/dependencyConvergence.html)
When using your plugin, there weren't any breaking issues actually. The one thing I noticed was that you are dependent on commons-lang 2.6 following DW 0.7.1:
org.apache.commons.lang.StringUtils

Where as DW 0.8.0-rc2 uses commons-lang3 3.3.2:
org.apache.commons.lang3.StringUtils

I wrote a quick test for both cases and they both work side by side without any clashes. So I guess we could indeed just use version 1.0. It's just minor house keeping issues such as having 2 versions of commons-lang downloaded into the classpath, and (I haven't tried this yet) not being able to compile when maven-enforcer-plugin is used.

thanks for clarification. I remember having such issues myself in the past. Principally, this plugin should be kinda independent of the actual Dropwizard version used. So afaic, bumping the version like you propose might not be a good idea. It will definitely solve your issue but creates issues for other people still using 0.7.1 or a future version.
Thinking this through, I noticed, that you can easily exclude all the transitive dependencies coming from my plugin by declaring the dependency like this in your POM:
        <dependency>
            <groupId>de.thomaskrille.dropwizard</groupId>
            <artifactId>dropwizard-environment-configuration</artifactId>
            <version>1.0</version>
            <exclusions>
                <exclusion>
                    <groupId>io.dropwizard</groupId>
                    <artifactId>dropwizard-core</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

But I really see the disadvantages in using this approach. Luckily Maven offers a solution for stuff like that: provided scope. I tried this out in #2. Would be nice if you can review the solution there. If it satisfies your needs, I would rather go with the provided scope instead of bumping the dependency every time Dropwizard makes a new release.


Update scalafmt-core to 3.2.1

Updates org.scalameta:scalafmt-core from 2.7.5 to 3.2.1.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Files still referring to the old version number
The following files still refer to the old version number (2.7.5).
You might want to review and update them manually.
.github/workflows/format.yml

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scalameta", artifactId = "scalafmt-core" } ]

labels: library-update, early-semver-major, semver-spec-major, old-version-remains

Coverage decreased (-0.5%) to 94.304% when pulling a14b66d871443ec68ba9fcada4d6e7d92f75805c on scala-steward:update/scalafmt-core-3.2.1 into ca10c64b98af9973d1b830d6a180d8b2c8898d98 on iheartradio:master.

Superseded by #192.


Cannot install in either Windows or GNU/Linux

Hi.
Is this library still installable in current Windows  or GNU/Linux versions?
I get errors when installing editdistance, dlib, etc.
I've tried lots of combinations with python, pip, virtualenv versions.

i have the same problems


AI Report Summary

Before Merging:

Hide collapse for Executive summary in Malware Archive
Add button for all AI section to generate a new summary (bypass cache)


Upgrade from 2.8 to 2.9.1 results in broken install.

Distribution: Ubuntu LTS
Distribution version: 16.04

Kernel version: 4.4.0-59-generic
LXC version: 2.9.1
LXD version: 2.9.1
Storage backend in use: dir

Had many containers initiated from version 2.0.x to 2.8, dir backend storage and all went fine. Since update to 2.9.1, lxd refuses to start, with this error message :
"error: UNIQUE constraint failed: storage_pools.name"
As a matter of fact, I've never defined any storage pool, since this was not supported by earlier versions. Furthermore, since there is none configured, there shouldn't be named duplicates. So, I'm stuck still and cannot run lxd anymore on these hosts.
Steps to reproduce

Step one
Install lxd version prior to 2.9.1, use dir backend and do not define any storage pool.
Step two
Create one or more container.
Step three
Update to 2.9.1

[ ] output of the daemon with --debug
lxd --debug
INFO[02-21|10:09:39] LXD 2.9.1 is starting in normal mode     path=/var/lib/lxd
WARN[02-21|10:09:39] CGroup memory swap accounting is disabled, swap limits will be ignored.
INFO[02-21|10:09:39] Default uid/gid map:
INFO[02-21|10:09:39]  - u 0<PHONE_NUMBER>6
INFO[02-21|10:09:39]  - g 0<PHONE_NUMBER>6
DBUG[02-21|10:09:39] Initializing and checking storage pool "default".
DBUG[02-21|10:09:39] StoragePoolInit                          driver=storage/dir
DBUG[02-21|10:09:39] StoragePoolCheck                         driver=storage/dir
DBUG[02-21|10:09:39] Applying patch: storage_api
error: UNIQUE constraint failed: storage_pools.name

We've pushed a new version to the PPAs yesterday night: LXD 2.9.2 which hopefully fixes these issues.

Right, that particular issue is something that 2.9.2 is meant to address. Please update your system, that will get you LXD 2.9.2 which should pick up that broken upgrade and fix it.
If you still run into issues with LXD 2.9.2, please reopen the bug.


Transaction Page - Multiple Select Action Required

Problem-
No problem New functionality
This was rejected last time, but as no other solution possible this is required
Initially required for Multiple Email Send for Transaction
Last time it was rejected for Reason- Don't want to send multiple emails for different Transaction, User want to send only Ledger with full view.
Technical Details-

There is no way email template and Multiple Transaction combine email possible, so there is only logical solution is send Email for each Transaction
Email for Ledger is already exists, on company object
if Multiple Transaction Email required then only possible through Fix Email, not customization possible in email

Initially Reported by @vinpahilwani
Verified by @mitulpanch

Time required -
3-4 Days for Design and Back end Development for One to One Email

Additional Development required on Email Template / SMS Template / Notification Template, will create new Issue if passed


Contact Page

Objective Create a welcoming introduction to your portfolio with easy navigation.
Header
Navigation bar with links to Home, Projects, Blogs, About, and Contact.
Left side Logo or name. Right side Navigation links.
Main Hero Section
Brief introduction (your name, title, tagline).
Include a call to action (e.g., “View My Projects” button).
Profile Picture
Display prominently next to the introduction.
Skills Section
Logos or icons of the technologies you use (Python, Rust, Spark, etc.).
Highlighted Projects
Feature 3 projects with images, short descriptions, and links to the Projects page.
Footer
Social media links (consistent across all pages), copyright, and contact button.

https://github.com/tylerengland25/personal-website/pull/34


[zeroc-ice] Added icelocatordiscovery feature

Added IceLocatorDiscovery library for C++11 bindings(as zeroc-ice currently only provides the C++11 bindings)

[x] Changes comply with the maintainer guide
[ ] ~SHA512s are updated for each updated download~
[ ] ~The "supports" clause reflects platforms that may be fixed by this new version~
[ ] ~Any fixed CI baseline entries are removed from that file.~
[ ] ~Any patches that are no longer applied are deleted from the port's directory.~
[x] The version database is fixed by rerunning ./vcpkg x-add-version --all and committing the result.
[x] Only one version is added to each modified port's versions file.

I hope this time the hash and version updating worked correctly :D

All features passed with following triplets:
x86-windows
x64-windows

Thanks again for the fast review and merging ;)


遇到错误

此外，doc的示例也有些许错误，直接使用import m3u8_to_mp4将会报错，改用了import m3u8_To_MP4

Thank you for your correction. and i have corrected it to m3u8_To_MP4.
The wheel downloaded from pypi.org is behind the current development progress, so downloading from m3u8 files is not supported.
Please clone from this repository and call the API.