vue {{}} eslint warning

VSCode Version: 1.41.1 (user setup)
Electron: 6.1.5
Chrome: 76.0.3809.146
Node.js: 12.4.0
V8: 7.6.303.31-electron.0
OS: Windows_NT x64 10.0.18363
Steps to Reproduce:
1.update VScode
the code didn't warn before the updateversion . After the update, eslin has various warnings.

Does this issue occur when all extensions are disabled?: No

in my case :
  {{omitClinicalDiagnosisLength>diagnosis.diagnosis.length //err
  {{omitClinicalDiagnosisLength<diagnosis.diagnosis.length //continue

@cool-delete does this happen as well if you run eslint from the command line (e.g. the terminal) ?


[assimp] Fix cmake package config

Fix for #8662
Corresponds to upstream fix https://github.com/assimp/assimp/pull/2722

Thanks for the PR!


feat(textproto): make example plugin more interesting

The example defines semantic nodes in a new language ("textproto_plugin_example" rather than "textproto") and adds edges that cross file boundaries, which is more in line with what a "real" plugin is likely to do.

The example defines semantic nodes in a new language ("textproto_plugin_example" rather than "textproto") and adds edges that cross file boundaries, which is more in line with what a "real" plugin is likely to do.


DNN-8162 fix assembly metadata

This pulls in the shared SolutionInfo.cs file and updates the AssemblyInfo to match other projects.

I'm going to resubmit with a different ID


Typescript: liveQuery() should return Observable<T | undefined>

The observable value from a liveQuery() is initially undefined and therefore undefined should be included in the type. Otherwise, if we forget to wrap the usage of the observable in an if block (or ?., ?? etc.), we receive a runtime error. This should really be enforced by types at compile time.
Example with svelte:
<script>
  import { liveQuery } from "dexie";
  import { db } from "./db";

  const friends = liveQuery(() => db.friends.toArray());
</script>

<p>{$friends.length}</p> /* runtime error */

The returned observable actually never emits undefined - but Svelte's '$' operator will return undefined if the observable hasn't emitted any value yet. Svelte's documentation around this states that they do return undefined in case the store hasn't emitted any value, but normal Svelte stores will always emit values synchronously and having an asynchronous store may be a too specific case in the Svelte world to change their typings.


Feature/update docstrings

Added docstrings where missing to most common functions:  wandb.init(), wandb.login(), wandb.agent(), wandb.sweep() wandb.save(), wandb.restore(), wandb.use_artifact(), wandb.log_artifact(), wandb.finish()
One question I had was the right place to put docstrings for wandb.config so they show up when calling help(wandb.config)

For doc strings to show up for summary and config you should put then on the methods in sdk/wandb_run.py.  You just need to add wandb_sdk.wandb_run.Run.summary and wandb_sdk.wandb_run.Run.config to the PreInitCallable declarations here, like the ones below it: https://github.com/wandb/client/blob/master/wandb/init.py#L112-L113
The magic that makes the doc strings available is here: https://github.com/wandb/client/blob/master/wandb/lib/preinit.py#L39-L41


Make the CI report coverage

I do not sure what I am writing to that task. But doing coverage collection on a build server does not send data to Codacy.
This is build server log. Look like all OK https://circleci.com/gh/kreghek/Zilon_Roguelike/3063
This is Codacy dashboard. No coverage https://app.codacy.com/manual/kreghek/Zilon_Roguelike/dashboard
What I am doing wrong&

Closing since this repository is archived and the reporter deprecated in favor of https://github.com/codacy/codacy-coverage-reporter


Duplicate header when make Recyclerview header session with no children

Hi,
I make an listview as youtube comment:
Level 0 of comment as an HeaderItem (- its name is ItemComment)
Level 1 of comment as an ExpandableHeaderItem (- its name is ItemMoreSubComment)
Level 2 of comment as an SubItem(- its name is ItemMoreSubComment)
if a comment have no subcomment it only have leve0, no level 1, 2
if a comment have subcomment  it have only one level 1 and one or more level 2
This code I init item with level 0 and 1:
    public List<AbstractFlexibleItem> createComments(List<CommentThread> data) {
        List<AbstractFlexibleItem> mItems = new ArrayList<>();
        for (CommentThread c: data) {
            ItemComment header = new ItemComment(c.getId(), c);
            if (c.getSnippet().getTotalReplyCount() > 0){
                ItemMoreSubComment subItem = new ItemMoreSubComment(c.getId() + "more", c);
                subItem.setHeader(header);
                mItems.add(subItem);
            }else {
                mItems.add(header);
            }
        }
        return mItems;
    }

I see that sometime ItemComment  have dupplicate (when ItemComment have subcomment: one have subcomment and one no subcomment)

Can you show the equals methods?

Hi @davideas
Here is my equals method:
@Override
  public boolean equals(Object inObject) {
      if (inObject instanceof ItemComment) {
          ItemComment inItem = (ItemComment) inObject;
          return this.getId().equals(inItem.getId());
      }
      return false;
  }

Example Recycler that I want:

LV01

LV11
-LV21
-LV22

But it show:

LV01
LV01

LV11
-LV21
-LV22

That mean duplicate LV01

@mdtuyen, as per documentation you shouldn't add the HeaderItem to the list. That is done when you invoke setDisplayHeadersAtStartUp().

How do I show a header if it does not already have an item?

@mdtuyen, you have to insert the header with the property hidden = false with the headers already set as shown from the adapter.

That mean with header no item I need use addSection() function ? , I need pass Adapter to createComments ?

@mdtuyen, I do not know your code, I only gave you some methods.

@davideas
At the first comment, I gave you the code I convert tata to  Holder View.

@mdtuyen, it seems I have to write you exactly the lines of code you need, while you can just simply try the methods exposed by Api, and the suggestions i already gave to you.
You asked I need pass Adapter to createComments? boo, how can I know your code? so do whatever you need. I do not know your code means: all code, not simply that routine of the first comment, you have the global vision of your use case!

@mdtuyen Hi,
Do you get any solution as i also faced this issue?
Thank you


[Suggestion] Support folders

Support targeting a folder and "compress" every .json inside that folder and subfolders

Thank you for your suggestion and sorry for late response.  I will try to find some time and revisit this repo for some enhancements. :+1:


Account name seems not to be properly initialized

Hi guys, this one is really trivial ;)
When trying to delete a freshly created account for which the creation wizard did not run all the way through, the confirmation dialogue displays "null" instead of a meaningful value (i.E. the email address).
This does not occur when the account creation wizard was completed to the last page.
Steps to reproduce:

Create a new email account by clicking the "Plus" button.
Enter your email address and your password. Then abort the wizard before anywhere before getting to the last page (where you're asked for the account name) by pressing back.
You return to app's "Accounts" screen. The account has been created (though not completely configured)
Delete it by touching it for two seconds and selecting "Remove account" from the menu displayed.
You should see the confirmation dialogue as shown in the attached screenshot.

It seems the cause of this is because the account name string is not properly initialized until the last page of the account creation wizard shows up. That should be easy to fix ;)
Keep up your great work, I really enjoy that application! :)
Regards - Lucas
Screenshot:

We love pull requests for issues that are "easy to fix".

Sorry, won't touch your code as I neither already know in which file that Bug is sitting nor do I have a ready testing environment or any previous experience with K9's code so it would probably take me much more time to get started than you.
I just wanted to point you guys to this issue in your code, as apparently noone else bothered to take the time to report it. Neither will I in future, when all I get as a response is basically a "fix it yourself" :(

I'm sorry if you had that impression. It's a valid bug and was marked as such. Thanks for reporting it. We'll get to it eventually.
Given that you made a statement about the difficulty of a fix one could assume you knew what you were talking about. In that case it should have been easy for you to just create a pull request with a fix. I now see that this is not the case :)

:+1: Thanks!
I probably should have had pointed out in my original report that I did not actually look into the code but made the assumption based on the app's behaviour. Sorry ;-)


revert(stylelint): Update syntax for stylelint rule

This reverts commit 204be1ae4f9a94fa13d49e865309cd9086bc177a.

Codecov Report

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

@@          Coverage Diff          @@
##           master   #253   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files          21     21
  Lines         415    415
=====================================
  Hits          415    415

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 8e12687...b6ddd61. Read the comment docs.


build(server): add Dockerfile

Codecov Report

Merging #270 (2c13282) into trunk (1d796d7) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##            trunk     #270   +/-   ##
=======================================
  Coverage   96.77%   96.77%
=======================================
  Files          23       23
  Lines        1739     1739
  Branches      111      111
=======================================
  Hits         1683     1683
  Misses         52       52
  Partials        4        4

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

According to #23 I've changed version of package manager as yarn@berry seems to have issues with turbo prune.


ECR Token Refresh Application

*Issue #317
Description of changes:
Go Program that supports reading AWS credentials via environment variables or Assuming a web identity (for uses cases such as IAM for service Accounts). This binary is intended to built into a container and run as a cronjob to keep ECR Tokens up to date.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

It seems that Gosec failed

do you need to rebase this?

I reran gosec and it still fails, so maybe a rebase


Grid.RowDefinitions does not work as intended

<Grid>
    <Grid.RowDefinitions>
      <Grid.RowDefinition Height="200"/>
      <Grid.RowDefinition Height="*" />
    </Grid.RowDefinitions>
</Grid>

The above code throws the exception (below) in the visualizer and when running the application.

'{clr-namespace:Avalonia.Controls;assembly=Avalonia.Controls}Grid.RowDefinitions' threw an exception ---> System.NullReferenceException: Object reference not set to an instance of an object.

<Grid RowDefinitions="*"/>
</Grid>

The above code works without exceptions.
<Grid RowDefinitions="*">
    <Grid.RowDefinitions>
      <Grid.RowDefinition Height="200"/>
      <Grid.RowDefinition Height="*" />
    </Grid.RowDefinitions>
</Grid>

When defining both you do get the expected exception (below)

Property '{clr-namespace:Avalonia.Controls;assembly=Avalonia.Controls}Grid.RowDefinitions' is already set to this '{clr-namespace:Avalonia.Controls;assembly=Avalonia.Controls}Grid' object

I think mixing both definitions should't be possible and an exception should be thrown that tells the consumer that the property was already defined.

I think mixing both definitions should't be possible and an exception should be thrown that tells the consumer that the property was already defined.

I was merely stating that mixing the two throws the appropriate error (as it would with "normal" xaml).
The actual issue is defining Grid.RowDefinitions
<Grid>
    <Grid.RowDefinitions>
      <Grid.RowDefinition Height="200"/>
      <Grid.RowDefinition Height="*" />
    </Grid.RowDefinitions>
</Grid>

Shouldn't it look like this?
<Grid>
    <Grid.RowDefinitions>
      <RowDefinition Height="200"/>
      <RowDefinition Height="*" />
    </Grid.RowDefinitions>
</Grid>


Update write_operations.md

encourage use of bot passwords

The documentation on credentials is centralized in wikibase-edit credentials section, I would prefer to keep it there as it also documents the option to use OAuth

Lgtm now. I did not know api login was deprecated


Use add_to_nwbfile instead of run_conversion in behavior

As in the title plus some other minor improvements.

@h-mayorquin Thanks!


Initial accessibility fix-up for navigation

adds appropriate ARIA role and attributes for navigation disclosure widgets ("Menu" button, expand/collapse controls in left-hand nav)
adds aria-current="page" to the current navigation item
explicitly hides the navigation chevron SVGs from AT (as currently their <title> - "chevron-right" - can get announced by certain AT/browsers under certain conditions)

Awesome, thanks so much!


when I build static library for Mac or iOS, cJson symbols in aws-sdk-cpp-core, crt and aws-c-auth will be duplicated. How can I hide cJson symbols for crt and aws-c-auth?

Confirm by changing [ ] to [x] below:

[x] I've gone though Developer Guide and API reference
[x] I've searched for previous similar issues and didn't find any solution

Platform/OS/Hardware/Device
MacOS and iOS
Describe the question
I'm using 1.9.14
when I build static library for Mac or iOS, cJson symbols in aws-sdk-cpp-core, crt and aws-c-auth will be duplicated. How can I hide cJson symbols for crt and aws-c-auth? Thanks a lot.
Logs/output
ld: warning: duplicate symbol '_cJSON_AddStringToObject' in:
libaws-c-auth.a(cJSON.c.o)
libaws-cpp-sdk-core.a(cJSON.cpp.o)

Hi @wukakuki , I am not seeing these warnings,
Could you walk me through how you are building the SDK so that I can reproduce?

Hi @wukakuki , I am not seeing these warnings,
Could you walk me through how you are building the SDK so that I can reproduce?

build ios libraries with -DBUILD_SHARED_LIBS=OFF and then add it to an ios project. then build the ios project. then a lot of duplicate symbols warnings appear. they are only warning and I can just ignore them. So, it's not a big problem. I just don't like these warnings showing up.
ld: warning: duplicate symbol '_cJSON_AddStringToObject' in:
libaws-c-auth.a(cJSON.c.o)
libaws-cpp-sdk-core.a(cJSON.cpp.o)

@wukakuki ,
Yea it is kind of annoying but for the moment we don't have a workaround for it... we'll try to look into removing the second definition, but it will probably take a while. Sorry

@wukakuki ,
Yea it is kind of annoying but for the moment we don't have a workaround for it... we'll try to look into removing the second definition, but it will probably take a while. Sorry

yep. I can understand.
it's just some warning.
and removing the cJson from aws SDK CPP will make code in aws SDK CPP include the header from aws c auth library directly. It doesn't look beautiful. that's alright.


ci: increase default num_events

Increase the stats a bit so the multiplicity results are believable, but keep the job execution time short.

On 2nd thought, let's keep it very low, since we will be expanding the job matrix soon. We'll have routine high-stats runs anyway.


Layoutlmv3 | Question

Describe
Model I am using (Layoutlmv3.):
the output embedding size is (709, 768). which is greater than the max_position_embeddings = 512.
So I was wondering if the rest (709-512) = 197 is for image embeddings?
Where does that 197 come from
I read the paper it says
, the last layer outputs text-and-image
contextual representations

So is there a way we can separate image and text embedding as we could in layoutlmv2
thanks

You are right. 197 = 14 x 14 + 1, where 14 x 14 is the number of image patches, and 1 represents a special token. Figure 3 in the LayoutLMv3 paper gives an overview of the embedding.
You can separate image and text by splitting the output embedding (e.g.,  [-196:, :] represents image embedding).

Thanks a lot  @HYPJUDY


Fix changelog generation for pre-releases and recreating old releases

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 74.16%. Comparing base (d773605) to head (1fc5406).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #67      +/-   ##
==========================================
+ Coverage   74.00%   74.16%   +0.15%
==========================================
  Files           7        7
  Lines         808      813       +5
==========================================
+ Hits          598      603       +5
  Misses        210      210

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Update checkout action to v3

done finally. i also spotted this PR waaaay too late. Sorry for that. :)


June 17th, 2024 Community Meeting

Please add a topic in this thread and add a link to the GitHub issue associated with the topic.
Please make sure you give folks enough time to review/discuss the topic offline on GitHub before coming into the meeting
(optional) Paste the image of an animal 😸

I suggest to remove that kaniko+trivy build strategy now that vulnerability scans are a first-class capability. Any objections ?

Found this weird behavior: https://github.com/shipwright-io/build/issues/1621

Status update for operator v0.13.0 - needs https://github.com/shipwright-io/operator/pull/218

Meeting minutes:

Yes to comment.
Discussion on the way we write tests, with or without ginkgo.
Close to ship v0.13.0 for the Operator.


Remove bionic/el7 and add el9

Putting on hold, I think we need to get NodeJS up to Node 18 at least before we can do EL9.


Post to PyPI

Looks like this is stable enough and has received enough feedback that I'm ready to start thinking about posting it to PyPI.
Hold tight for pip install switchlang

Please don't
For starters, it's not my intention to be mean or negative. I'm a huge fan of your work, @mikeckennedy  (with this small exception). Talk python to me has been part of my daily/weekly Podcast diet for a while now and I'm a happy customer of your (and Matt Makai's) excellent python for entrepenuers course. I think that by-and-large, the Python community is a lot better off for all your efforts and I really appreciate what you do.
Also, I don't want you to think I'm writing this because you accepted another pull request on this project that was philosophically mutually exclusive to mine. I knew it wouldn't make sense to merge both pull requests -- that's why I closed it myself.
with that out of the way...
switch-lang considered harmful. why?

It is less functional than an equivalent if/elif statement, single-dispatch, or dictionary-based dispatch.
It is less functional than equivalent switch statements in other languages and doesn't "look" or behave like any of them.
This idea was reviewed and rejected in PEP 3103 for good reasons.
It creates an abstraction over something that should be absolutely crystal-clear - control-flow - with no substantial benefit.
People will use it. Critical portions of someone's code will rely on a library that will need to be understood and maintained over time. Maintainers who would otherwise be able to immediately know what an equivalent if/elif statement does in the code will need to review the documentation for this library. (I would, anyway)
There exists a more powerful library that addresses the shortcomings of switch-lang that the author created as a joke because it's a bad idea (by the author's own admission)

Less functional than if/elif
# old style
var = 'foo'
if True:
    var = 'bar'

# switch-lang style
with switch(True) as s:
    def set_var(arg):
        global var
        var = arg
    s.case(True, lambda: set_var('bar'))

Less functional than other language implementations
A couple examples from swift
let somePoint = (1, 1)
switch somePoint {
case (0, 0):
    print("\(somePoint) is at the origin")
case (_, 0):
    print("\(somePoint) is on the x-axis")
case (0, _):
    print("\(somePoint) is on the y-axis")
case (-2...2, -2...2):
    print("\(somePoint) is inside the box")
default:
    print("\(somePoint) is outside of the box")
}

let yetAnotherPoint = (1, -1)
switch yetAnotherPoint {
case let (x, y) where x == y:
    print("(\(x), \(y)) is on the line x == y")
case let (x, y) where x == -y:
    print("(\(x), \(y)) is on the line x == -y")
case let (x, y):
    print("(\(x), \(y)) is just some arbitrary point")
}

Not only do we have variable-binding, tuple-unpacking, and pattern-matching -- the cases have access to the switch statement's namespace and can have multiple statements without needing to resort to defining a function separately. There exists no implementation of switch statements in any other language where you can't have multiple statements in a case without defining a function in a higher scope -- and where those cases don't otherwise have access to the local scope they're executed in.
This idea was already rejected in PEP 3103
Much of the discussion around a potential switch statement in the language revolved around dispatching on values that weren't hashable. This library doesn't address the issue of what to do in the event that the value being dispatched on isn't hashable.
Obfuscating control-flow
If I'm debugging someone's code and this library is being called at some point in the stacktrace, I'm going to have to go look up what it does, because I'm not going to trust someone's personal implementation of a switch. I wouldn't need to do that if it were just an if/elif or another construct native to Python and/or its stdlib.
Switchcase is better
No need to define functions for multi-statement cases and access to the local namespace. What more is there to say?

I think this is a good library to show off a potential use of context managers, but I would never recommend someone actually use it. I don't think it's terrible to have on github just as an interesting demo/idea, but my fear is that having it on pypi will encourage people to use it in the real-world.


Claimable Balances error when trying to claim the value

Hello everyone!
What version are you using?

SDK Version 4.1.1
What did you do?

I tried to claim a balance for the native asset on the Demo wallet.
First I ran the following script:
import time

from stellar_sdk.exceptions import NotFoundError, BadRequestError, BadResponseError
from stellar_sdk import (
    Keypair,
    Network,
    Server,
    TransactionBuilder,
    Asset,
    Claimant,
    ClaimPredicate,
    CreateClaimableBalance,
)

server = Server("https://horizon-testnet.stellar.org")

sender = Keypair.from_secret("SDZX46FKI6PRND3X6NP4U7W3P4U4GMOXLRXK6SVO2TPYH2K2AICCMDYK")
receiver = Keypair.from_public_key(
    "GAFMXOTSXIDUK64WAOJLWKRA7ELTC53COAQ2GOS3GQY2GV27JC3R7KQP"
)

# NOTE: Proper error checks are omitted for brevity; always validate things!

try:
    aAccount = server.load_account(sender.public_key)
except NotFoundError:
    raise Exception(f"Failed to load {sender.public_key}")

# Create a claimable balance with our two above-described conditions.
soon = int(time.time() + 60)
bCanClaim = ClaimPredicate.predicate_before_relative_time(60)
aCanClaim = ClaimPredicate.predicate_not(
    ClaimPredicate.predicate_before_absolute_time(soon)
)

# Create the operation and submit it in a transaction.
claimableBalanceEntry = CreateClaimableBalance(
    asset=Asset.native(),
    amount="100",
    claimants=[
        Claimant(destination=receiver.public_key, predicate=bCanClaim),
        Claimant(destination=sender.public_key, predicate=aCanClaim),
    ],
)

tx = (
    TransactionBuilder(
        source_account=aAccount,
        network_passphrase=Network.TESTNET_NETWORK_PASSPHRASE,
        base_fee=server.fetch_base_fee(),
    )
    .append_operation(claimableBalanceEntry)
    .set_timeout(180)
    .build()
)
tx.sign(sender)

try:
    txResponse = server.submit_transaction(tx)
    print("Claimable balance created!")
except (BadRequestError, BadResponseError) as err:
    print(f"Tx submission failed: {err}")

After this, I went to the Demo Wallet and logged in with my secret key, then I clicked to claim the balance.
What did you expect to see?
I expect to claim the balance and receive it to my account.
What did you see instead?
I received the following error:
instruction: Claiming asset native:undefined
instruction: Not a trusted asset, need to add a trustline
instruction: Adding native:undefined trustline
instruction: Loading account to get a sequence number for add trustline transaction
instruction: Building add trustline transaction
error: Add trustline transaction failed
Issuer cannot be null

error: Issuer cannot be null

Thanks for the well-written issue @CaioTeixeira95! It was easy to replicate and find the issue. Will be fixing during this sprint.


[KYUUBI apache#3008]Bump prometheus from 0.14.1 to 0.16.0

Why are the changes needed?
upgrade prometheus from 0.14.1 to 0.16.0
How was this patch tested?

[ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

[ ] Add screenshots for manual tests if appropriate

[x] Run test locally before make a pull request

Thanks, merging to master


Missing files for test suite

This usually means you're missing some other-modules info in your .cabal file:
Building test suite 'katydid-test' for katydid-<IP_ADDRESS>..
[1 of 1] Compiling Main             ( test/Spec.hs, dist/build/katydid-test/katydid-test-tmp/Main.o )

test/Spec.hs:10:1: error:
    Could not find module ‘ParserSpec’
    Use -v to see a list of the files searched for.
   |
10 | import qualified ParserSpec
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^

test/Spec.hs:11:1: error:
    Could not find module ‘Suite’
    Use -v to see a list of the files searched for.
   |
11 | import qualified Suite
   | ^^^^^^^^^^^^^^^^^^^^^^

test/Spec.hs:12:1: error:
    Could not find module ‘RelapseSpec’
    Use -v to see a list of the files searched for.
   |
12 | import qualified RelapseSpec
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

I am also running on travis using the travis file provided by stackage docs and I am not seeing this problem.
How do I reproduce this problem?

Unpack the tarball that's on Hackage and try building from inside there, e.g. stack unpack katydid && cd katydid-* && stack init && stack test should do the trick.

Ah ok cool.  I see.  I can reproduce.
I used stack sdist to create the tar ball, what command should I have used?

That's the right command. As I mentioned initially: you need to modify your cabal file to include an other-modules section for the test suite. As an example: https://github.com/snoyberg/conduit/blob/5e2a7bcd4ec2755a9597b2f0dc3e15800c3d42e6/conduit-extra/conduit-extra.cabal#L96

Ah thanks :)
I have updated hackage with the new file
https://hackage.haskell.org/package/katydid-<IP_ADDRESS>
created by this new commit
https://github.com/katydid/katydid-haskell/commit/77fe190da9e115de857907b2871caacb3ed1e771

Thanks!

No no no.  I am thanking you @snoyberg
Stackage is the reason I tried using haskell again.  cabal hell was too much for me.
Thanks for maintaining such a great project.

Happy to hear it 👍


Identity combinator

Argonaut library has functions to deal with lot of builtin types including Maybe, though I cannot find an option for Identity.
identity combinator, besides making the library more logically complete, has common usecase - a front-end application has a high kinded type to represent partial value for a complex type (structural editor) e.g.
data ValT f = Val (f Number)
data OpT f
  = Const (f Val)
  | Prod (f (OpT f)) (f (OpT f))
  | Sum (f (OpT f)) (f (OpT f))

Form validation deals with type OpM = OpT Maybe, but server expect a complete object, so type Op = Op Identity is going to be serialized to JSON.
valCodec :: CA.JsonCodec Val
valCodec = idCodec CA.number

import Data.Identity (Identity (..))
import Data.Profunctor (dimap)

unIdentity :: ∀ a. Identity a -> a
unIdentity (Identity a) = a

idCodec :: ∀ a. CA.JsonCodec a -> CA.JsonCodec (Identity a)
idCodec = dimap unIdentity pure

We could add something for this, but it's so simple to write inline that I usually just do that. Two alternatives to dimap:
import Data.Profunctor (wrapIso)

valCodec = wrapIso Identity CA.number

import Data.Lens.Iso.Newtype (_Newtype)

valCodec = _Newtype CA.number

Or probably the better option is to use the coercible codec. I say "better" because it also allows you to name the type to help with debugging:
valCodec = CA.coercible "Val" CA.number


No able unzip when the source file over 20mb folder when Zip file with LZMA2 and AesEncoder

Modify the sandbox-7z project and add a file more than 20mb to the debug folder
Zip file with LZMA2 and AesEncoder
node1 = encoder.CreateEncoder(new ManagedLzma.SevenZip.Writer.Lzma2EncoderSettings(new ManagedLzma.LZMA2.EncoderSettings() {  }));                             node2 = encoder.CreateEncoder(new ManagedLzma.SevenZip.Writer.AesEncoderSettings(ManagedLzma.PasswordStorage.Create("test")));
But I got exception when I try to readArchive
Non-negative number required. Parameter name: count
trace:
   at System.Buffer.BlockCopy(Array src, Int32 srcOffset, Array dst, Int32 dstOffset, Int32 count)    at ManagedLzma.LZMA2.Decoder.ReadOutputData(Byte[] buffer, Int32 offset, Int32 length) in C:\Project\Code\OpenSource\managed-lzma-master\shared\Compression\Lzma2\Decoder.cs:line 122    at ManagedLzma.SevenZip.Reader.Lzma2ArchiveDecoder.Read(Byte[] buffer, Int32 offset, Int32 count) in C:\Project\Code\OpenSource\managed-lzma-master\shared\SevenZip\Decoders\Lzma2Decoder.cs:line 120    at ManagedLzma.SevenZip.Reader.Lzma2ArchiveDecoder.OutputStream.Read(Byte[] buffer, Int32 offset, Int32 count) in C:\Project\Code\OpenSource\managed-lzma-master\shared\SevenZip\Decoders\Lzma2Decoder.cs:line 19    at ManagedLzma.SevenZip.Reader.ArchiveSectionDecoder.Read(Byte[] buffer, Int32 offset, Int32 count) in C:\Project\Code\OpenSource\managed-lzma-master\shared\SevenZip\ArchiveDecoder.cs:line 207    at ManagedLzma.SevenZip.Reader.DecodedStream.Read(Byte[] buffer, Int32 offset, Int32 count) in C:\Project\Code\OpenSource\managed-lzma-master\shared\SevenZip\ArchiveReader.cs:line 272    at System.IO.Stream.InternalCopyTo(Stream destination, Int32 bufferSize)    at System.IO.Stream.CopyTo(Stream destination)    at sandbox_7z.Program.Main() in C:\Project\Code\OpenSource\managed-lzma-master\sandbox-7z\Program.cs:line 169    at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)    at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)    at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()    at System.Threading.ThreadHelper.ThreadStart_Context(Object state)    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)    at System.Threading.ThreadHelper.ThreadStart()

Looks like a bug in how the decoder is called.

Both fixes are included in alpha-6 on nuget


[Event Request] Codeunit 6620 OnBeforeCleanSpecialOrderDropShipmentInSalesLine and OnBeforeCleanSpecialOrderDropShipmentInPurchLine

We Need a two new Event trigger OnBeforeCleanSpecialOrderDropShipmentInSalesLine and OnBeforeCleanSpecialOrderDropShipmentInPurchLine in Codeunit 6620 "Copy Document Mgt.":
Procedure CopyArchSalesLine
…
ToSalesLine."Appl.-from Item Entry" := 0;
ToSalesLine."Appl.-to Item Entry" := 0;
//+++++++++++++++++++++++++++++++++++++++++++
OnBeforeCleanSpecialOrderDropShipmentInSalesLine(VAR ToSalesHeader : Record "Sales Header";VAR ToSalesLine : Record "Sales Line";VAR FromSalesHeader : Record "Sales Header";VAR FromSalesLine : Record "Sales Line";CreateToHeader : Boolean)
//-------------------------------------------
CleanSpecialOrderDropShipmentInSalesLine(ToSalesLine);
Procedure CopyArchPurchLine
…
ToPurchLine."Appl.-to Item Entry" := 0;
IF FromPurchLineArchive."Drop Shipment" OR FromPurchLineArchive."Special Order" THEN
ToPurchLine."Purchasing Code" := '';
//+++++++++++++++++++++++++++++++++++++++++++
OnBeforeCleanSpecialOrderDropShipmentInPurchLine(VAR ToPurchHeader : Record "Purchase Header";VAR ToPurchLine : Record "Purchase Line";VAR FromPurchHeader : Record "Purchase Header";VAR FromPurchLine : Record "Purchase Line";CreateToHeader : Boolean)
//-------------------------------------------
CleanSpecialOrderDropShipmentInPurchLine(ToPurchLine);

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.


TPU num_processes indentation error

In file https://github.com/huggingface/accelerate/blob/main/src/accelerate/commands/config/cluster.py there is an indentation error, leading to num_processes being undefined when using TPU.
if distributed_type == DistributedType.TPU:
        main_training_function = _ask_field(
            "What is the name of the function in your script that should be launched in all parallel scripts? [main]: ",
            default="main",
        )
    else:
        main_training_function = "main"

        num_processes = _ask_field(
            "How many processes in total will you use? [1]: ",
            lambda x: int(x),
            default=1,
            error_message="Please enter an integer.",
        )

        if distributed_type != DistributedType.TPU:
            fp16 = _ask_field(
                "Do you wish to use FP16 (mixed precision)? [yes/NO]: ",
                _convert_yes_no_to_bool,
                default=False,
                error_message="Please enter yes or no.",
            )
        else:
            fp16 = False

Can you point me to the contribution guidelines and I can submit a fix?

Oh yes, that's a bad one. Thanks for pointing it out! Feel free to open a PR, the main guideline is to run make style on your branch before pushing to have the auto-formatting applied (though I doubt it will change much in this case).

Great, all done. https://github.com/huggingface/accelerate/pull/35

Fixed by #35


Breaking change in nullsafety.8

I'm in the process of migrating path_provider_windows to null-safety, and between when I started the patch (where I set the version constraint to ^2.0.0-nullsafety.7) and today, it broke:
../lib/src/path_provider_windows_real.dart(34,47): error GDAEE715C: The argument type 'Pointer<IntPtr>' can't be assigned to the parameter type 'Pointer<Pointer<NativeType>>'. [C:\b\s\w\ir\k\plugins\packages\path_provider\path_provider_windows\example\build\windows\flutter\flutter_assemble.vcxproj]
../lib/src/path_provider_windows_real.dart(123,33): error GB1B8BC88: Method not found: 'GUID.fromString'. [C:\b\s\w\ir\k\plugins\packages\path_provider\path_provider_windows\example\build\windows\flutter\flutter_assemble.vcxproj]
../lib/src/path_provider_windows_real.dart(129,9): error GDAEE715C: The argument type 'Pointer<IntPtr>' can't be assigned to the parameter type 'Pointer<Pointer<Utf16>>'. [C:\b\s\w\ir\k\plugins\packages\path_provider\path_provider_windows\example\build\windows\flutter\flutter_assemble.vcxproj]

Was breaking semver in the nullsafety releases intentional? It makes the migration trickier.

Unfortunately FFI changed in a way that breaks me, so you can no longer add a factory constructor like GUID.fromString() to a Struct. And FFI itself hasn't reached a stable release.
(FWIW, as I understand it, semver doesn't guarantee stability between pre-release versions. https://semver.org/#spec-item-9.)
More generally, I'm allowing for some minor breaking changes now (as noted in the README) as I stabilize and publish my 2.0 release based on the FFI stable release. With the work I've put in over these pre-releases, I feel confident that this will be a stable API contract moving forward.

Unfortunately FFI changed in a way that breaks me, so you can no longer add a factory constructor like GUID.fromString() to a Struct. And FFI itself hasn't reached a stable release.
(FWIW, as I understand it, semver doesn't guarantee stability between pre-release versions. https://semver.org/#spec-item-9.)
More generally, I'm allowing for some minor breaking changes now (as noted in the README) as I stabilize and publish my 2.0 release based on the FFI stable release. With the work I've put in over these pre-releases, I feel confident that this will be a stable API contract moving forward.


Fixing Windows module compatibility

The /tmp reference in setup.cfg is causing pip install to fail on
Windows.  Reverting setup.cfg and adding relevant .gitignore entries for
eggs.

@nicholjy Oops. Didn't realise it would break windows compatibility. Thanks


feat: add GitHub#commitsSince and GitHub#findMergeCommit

Adds a GraphQL query that looks at commits to the current branch and iterates/pages through them to find a commit that matches certain conditions. We use this to find the last commit to a branch that looks like a release.
GitHub#latestTag now uses this method of finding the last release PR. The previous method looks at the base branch of a pull request.
Fixes #740

@chingor13 since this makes the "setting up your repo" initially story worse. I'd love for us to introduce the ability to provide a --first-sha, as an argument before we remove looking at tags.
Otherwise this seems like a good refactor to me.

I found that graphql queries often initially timeout, which is why I had retry logic built in (could we figure out a way to abstract retrying).

Let's push the 502 retries into GitHub#graphqlRequest in a separate PR


Interactions don't appear when resize windows

The cube's interaction is able only if the first-person camera is enabled when resizing to fullscreen:
Screencast from 28-02-24 12:37:28.webm
zombie-shooter example:
Screencast from 28-02-24 15:40:06.webm
sliding-door example:
Screencast from 28-02-24 16:09:12.webm
coconut-shy example:
[coconut-shy.webm](https://github.com/decentraland/godot-explorer/assets/22157752/0f0c6537-102b-41ee-8db5-
b94f14f3349c)

Desktop problem, solved in the bugfixing stage


#16 upgrade to gradle 7

Signed-off-by: Nigel Jones<EMAIL_ADDRESS>

Upgrades to Gradle 7.0.2
Required to work with Java 16 & above


[Draft] PHPInfo

Add support for a phpinfo command with some handy php configuration values you need. In the app, the extensions line is not wrapped, so we need to wait for a fix before we can merge this.

Thanks!

Thanks!


fix: readme broken link

To Reviewers

[x] Skipping review is not a problem (style, chore ONLY)
[ ] Not that difficult

Type of Change

[ ] New feature
[ ] Bug fixes
[ ] Feature improvement

[ ] These changes require a usage change

[x] Others (performance improvement, refactoring, CI/CD, etc.)

Checklist

[ ] Updated Storybook documents
[ ] Tested with console

Description
Things to Talk About

:tada: This PR is included in version 1.1.0-beta.391 :tada:
The release is available on:

npm package (@beta dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


ship.getPitch() always returns nan

This issue occurs when only Valkyrien Skies and addons are installed and no other mods

[X] I have tested this issue and it occurs when no other mods are installed

Minecraft Version
1.20
Mod Loader
Forge
Issue description
Whenever I try to use ship.getPitch(), it just returns nan rather than any useful value. ship.getRoll() and ship.getYaw() work just fine, it's specifically ship.getPitch() that doesn't work.
Issue reproduction

Create a platform
Infuse with physics
Place CC computer on physics-infused platform
Start computer, enter lua, followed by ship.getPitch()

Logs
No response

Update your CC:VS


CPU Inference After GPU Training

Hi - I trained an Implicit Sequence Model and loaded it in my Flask API for serving locally on my machine and I cannot seem to get CPU inference working.
The model works correctly when a GPU is available.
Steps to recreate:

Run flask server locally
e.g.  model = torch.load('./my_model_v0.13.pt', map_location='cpu')`

Post a JSON payload with sequence values. I've already tested that the server can correctly parse the response.

Server error when model attempts to predict preds = model.predict(arr)

RuntimeError: torch.cuda.LongTensor is not enabled.
More trace below.
Traceback (most recent call last):
  File "/Users/aldrinclement/anaconda/lib/python2.7/site-packages/flask/app.py", line 1982, in wsgi_app
    response = self.full_dispatch_request()
  File "/Users/aldrinclement/anaconda/lib/python2.7/site-packages/flask/app.py", line 1614, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/Users/aldrinclement/anaconda/lib/python2.7/site-packages/flask/app.py", line 1517, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/Users/aldrinclement/anaconda/lib/python2.7/site-packages/flask/app.py", line 1612, in full_dispatch_request
    rv = self.dispatch_request()
  File "/Users/aldrinclement/anaconda/lib/python2.7/site-packages/flask/app.py", line 1598, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "main.py", line 77, in predict
    preds = model.predict(arr)
  File "/Users/aldrinclement/anaconda/lib/python2.7/site-packages/spotlight/sequence/implicit.py", line 323, in predict
    sequence_var = gpu(sequences, self._use_cuda)
  File "/Users/aldrinclement/anaconda/lib/python2.7/site-packages/spotlight/torch_utils.py", line 9, in gpu
    return tensor.cuda()
RuntimeError: torch.cuda.LongTensor is not enabled.

def load_model():
    """Load the pre-trained model, you can use your model just as easily."""
    global model
    model = torch.load('./justlook_v0.13.pt', map_location='cpu')

You need to also turn the flag model._use_cuda off. Otherwise the input will be converted to cuda tensors: sequence_var = gpu(sequences, self._use_cuda)

That's correct. There really should be a better way of doing this but I'm short on time and GPU testing runs.


[Document Request] Time Zone and/or Ability to Execute Command

I believe below is how you can 1) run any shell command during installation and 2) set the timezone of the machine. I think it would be helpful if this kind of information was spelled out in the documentation over at https://docs.fedoraproject.org/en-US/fedora-coreos/
This is technically a systemd service, but it only runs once. Seems an odd way to set the timezone to me, but I am not sure how else to do it in the fcc file.
systemd:
  units:
    - name: settimezone.service
      contents: |
        [Unit]
        Description=Set the time zone

        [Service]
        ExecStart=/usr/bin/timedatectl set-timezone Europe/Paris
        RemainAfterExit=yes
        Type=oneshot

Thanks for the report. While you are correct in general, there are two interesting bits specific for your case:

setting a timezone to something non-UTC is an operational anti-pattern (see https://coreos.com/os/docs/latest/configuring-date-and-timezone.html#recommended-utc-time).
timezone configuration follows https://www.freedesktop.org/software/systemd/man/localtime.html#. You should be able to set it up without any command invocation, but using a storage.links entry instead.

I'd say that the links approach is preferred path here. If you manage to get it working, I'd kindly ask to post back the new fcct snippet so that we can directly put it in https://github.com/coreos/fedora-coreos-docs (PRs welcome too!).


🐛 Bug Report: cannot access owner page if the name contains # character

📜 Description
Navigation to the page of the owner with # character in name results in broken page. It happens because request to BE is sent with part of owner name (the part before #)
👍 Expected behavior
It should be possible to view the page with route group/team-name-part1#team-name-part2. Request to BE should be catalog/entities/by-name/group/default/team-name-part1#team-name-part2
👎 Actual Behavior with Screenshots
The page with route group/team-name-part1#team-name-part2 has an error.
This happens because not correct request is sent to BE:
catalog/entities/by-name/group/default/team-name-part1
(#team-name-part2 is cut)

👟 Reproduction steps

Have some owner with # in name, e.g. team-name-part1#team-name-part2
Click to open it in catalog
Page with route group/team-name-part1#team-name-part2 has an error.

Not correct request is sent to BE:
catalog/entities/by-name/group/default/team-name-part1
(#team-name-part2 is cut)
📃 Provide the context for the Bug.
No response
🖥 Your Environment
No response
👀 Have you spent some time to check if this bug has been raised before?

[X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

[X] I have read the Code of Conduct

Are you willing to submit PR?
No, I don't have time to work on this right now

are you sure you want to use the fragment identifier? the fragment identifier won't be included in the request because it's meant for client-side navigation within the webpage. Have you considered using another separator for example -?

@fedy97 We have pretty large company where we started the integration with Backstage. We already have some teams with # and it'll be complicated to change their titles. Maybe having the urls encoded will resolve this issue?

make sense @ypetrych, let me check whether this is something doable

make sense @ypetrych, let me check whether this is something doable

hi @vinzscam do you have any updates on it? thank you

any updates on this? i have the same problem

Closed by #19575


Etherpad 1.5.6 regressions

The buttons to the left of the Style dropdown and the user button have visually regressed. They are smaller and less bold than before. The toggle authorship colors and print icons are as expected.

Toggling authorship colors no longer works
Exporting to PDF produces a 403 - Can't touch this

Assigning to @simong for fix

Dixita got this error when clicking to a pad from her notifications:
[2015-05-07 16:11:37.538] [WARN] client - Uncaught TypeError: Cannot read property 'setChannelState' of null -- { errorId: 'JxzzmgXzz4bHwphvfwbR',
  msg: 'Uncaught TypeError: Cannot read property \'setChannelState\' of null',
  url: 'https://oae.oae-qa0.oaeproject.org/etherpad/0/p/g.QKBKAR9XsgSx5ddt$c_oae_NkxlsuE7',
  linenumber: 266,
  userAgent: 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36' }

I sudo'd as her and couldn't reproduce it.

I have found a number of additional regressions:

Line spacing has regressed, especially at the bottom of lists and around headings. You can see the difference when comparing these screenshots from production and QA1:

The size and spacing around the toolbar buttons has changed, causing the responsive behavior to no longer be as expected. The intended behavior is that, as the screen becomes smaller, the print icon disappears first, then the toggle authorship colors, then the headings dropdown (so far so good), after which the the entire toolbar should disappear.

Sorry to be nitpicky about this, but a few small issues remain:

The font size of the Styles dropdown is too small compared to what's around it. See production environment for desired font size
The spacing below heading 4, heading 5 and heading 6 is still a bit smaller compared to the production environment. Can we replicate what's on there?

All of the above regressions have now been fixed.


How to await "fetchcomplete"?

I'm using promises in "fetchcomplete" function. After crawling is done, it is going to "complete" function. I want to await "fetchcomple" function until all my promises get resolved and then go to "complete". Is there any way for this?

The fetchcomplete and complete are just the events the Simplecrawler sends upon corresponding conditions. It doesn't wait when the event callbacks are finished. It's up to you how to handle this situation. Please describe in more detail what do you do in fetchcomplete event listener?


List does not have "/" error

https://github.com/pyscf/pyscf/blob/7b36f4654dedcf4502f8e0ce998d99ba5762f666/pyscf/pbc/df/aft.py#L319
Running, https://github.com/pyscf/pyscf/blob/master/examples/pbc/32-graphene.py, I get this error:
******** <class 'pyscf.pbc.df.aft.AFTDF'> ********
mesh = [30, 30, 40] (36000 PWs)
eta = 5.821445762846135
len(kpts) = 1
kpts = [[0. 0. 0.]]
Traceback (most recent call last):
File "./ceph/pyscf_16-10-2019_qcint-gcc/examples/pbc/32-graphene.py", line 54, in
e.append(mf.kernel())
File "/mnt/home/blau/ceph/pyscf_16-10-2019_qcint-gcc/pyscf/lib/misc.py", line 586, in aliased_fn
return getattr(self, fname)(*args, **kwargs)
File "/mnt/home/blau/ceph/pyscf_16-10-2019_qcint-gcc/pyscf/scf/hf.py", line 1518, in scf
self.build(self.mol)
File "/mnt/home/blau/ceph/pyscf_16-10-2019_qcint-gcc/pyscf/pbc/scf/khf.py", line 481, in build
self.check_sanity()
File "/mnt/home/blau/ceph/pyscf_16-10-2019_qcint-gcc/pyscf/pbc/scf/khf.py", line 715, in check_sanity
return KSCF.check_sanity(self)
File "/mnt/home/blau/ceph/pyscf_16-10-2019_qcint-gcc/pyscf/pbc/scf/khf.py", line 466, in check_sanity
self.with_df.check_sanity()
File "/mnt/home/blau/ceph/pyscf_16-10-2019_qcint-gcc/pyscf/pbc/df/aft.py", line 318, in check_sanity
if (cell.mesh[cell.dimension:]/(1.*meshz) > 1.1).any():
TypeError: unsupported operand type(s) for /: 'list' and 'float'
Which I fixed by changing
if (cell.mesh[cell.dimension:]/(1.*meshz) > 1.1).any():
to
any([x/(1.*meshz) for x in cell.mesh[cell.dimension:]])

Bryan, thanks for catching the bug. It's fixed in the latest update.
On Tue, Dec 10, 2019 at 07:22:22AM -0800, Bryan Lau wrote:

https://github.com/pyscf/pyscf/blob/7b36f4654dedcf4502f8e0ce998d99ba5762f666/pyscf/pbc/df/aft.py#L319
Running, https://github.com/pyscf/pyscf/blob/master/examples/pbc/32-graphene.py, I get this error:
******** <class 'pyscf.pbc.df.aft.AFTDF'> ********
mesh = [30, 30, 40] (36000 PWs)
eta = 5.821445762846135
len(kpts) = 1
kpts = [[0. 0. 0.]]
Traceback (most recent call last):
File "./ceph/pyscf_16-10-2019_qcint-gcc/examples/pbc/32-graphene.py", line 54, in
e.append(mf.kernel())
File "/mnt/home/blau/ceph/pyscf_16-10-2019_qcint-gcc/pyscf/lib/misc.py", line 586, in aliased_fn
return getattr(self, fname)(*args, **kwargs)
File "/mnt/home/blau/ceph/pyscf_16-10-2019_qcint-gcc/pyscf/scf/hf.py", line 1518, in scf
self.build(self.mol)
File "/mnt/home/blau/ceph/pyscf_16-10-2019_qcint-gcc/pyscf/pbc/scf/khf.py", line 481, in build
self.check_sanity()
File "/mnt/home/blau/ceph/pyscf_16-10-2019_qcint-gcc/pyscf/pbc/scf/khf.py", line 715, in check_sanity
return KSCF.check_sanity(self)
File "/mnt/home/blau/ceph/pyscf_16-10-2019_qcint-gcc/pyscf/pbc/scf/khf.py", line 466, in check_sanity
self.with_df.check_sanity()
File "/mnt/home/blau/ceph/pyscf_16-10-2019_qcint-gcc/pyscf/pbc/df/aft.py", line 318, in check_sanity
if (cell.mesh[cell.dimension:]/(1.*meshz) > 1.1).any():
TypeError: unsupported operand type(s) for /: 'list' and 'float'
Which I fixed by changing
if (cell.mesh[cell.dimension:]/(1.*meshz) > 1.1).any():
to
any([x/(1.*meshz) for x in cell.mesh[cell.dimension:]])
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/pyscf/pyscf/issues/464

--
Dr. Qiming Sun
Principal Researcher, Tencent Quantum Laboratory


Question about the development environment

Hello
I don't have a specific issue for this project but I want to thank every contributor to this guide because it really helped me!
I was wondering if there is a good way to develop a Laravel package in a real Laravel app (packages folder).
For example, if I'm doing much with UI or like assets in general I always need to build it and then force publish it to the app. Also for contributors, it's annoying to first create a Laravel app and then pull the package into the package folder, etc.
Do you guys maybe understand what I mean? Maybe it would be cool to like mirror it directly into the app or have a wrapper for it or something.
Or maybe I'm completely missing on something out xD.

Hey @Jhnbrn90
First of all, thank you very much for this fast response!
This seems like a pretty cool tool and has some very useful things in it. I'm just not sure if really solves my problem (even if I didn't look completely deep into it).
My vision was like a development environment that would also be easy to setup for contributors and everyone else. Not running multiple commands and pasting config files where needed.
In the repo, I just want to have the package itself of course and not the whole Laravel app around it. But as a contributor I want to be able to setup the project easily.
I'm not sure if this is understandable and even doable. It currently just is a bit annoying to develop UI when every change takes around 5 sec to show up.

Do you mean like in this section? https://laravelpackage.com/02-development-environment.html#importing-the-package-locally

I'm not sure if this solves my problem 😥
I guess for development I can just use the css/js build files from the package directly in the blade. (Like put vendor path into assets in main blade).
With that I should be able to fix my problem kind of for the moment.
Still, thank you very much for your help @Jhnbrn90

@Jhnbrn90 well this doesn't work... it works when I have my tailwind in the blade it self. But if I have it in an extra file I need to run the vendor publish (+ force) command to publish the asset file.
I'm not sure if there's a symlink for something like that because I also can't put the path to this file from vendor folder into the blade head.

Closing for now as it has been a while. @jannismilz feel free to reopen :)


⚠ ClamAV has degraded performance

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

HTTP code: 200
Response time: 48 ms

Resolved: ClamAV performance has improved in 6c5f5f1.


Use a relation for groups when testing current region specs

With strict partial validation enabled, this spec currently fails because an array doesn't implement a where method. In RSpec 4 this will be enabled by default, so I'd like to clean it up.
This PR simply changes the array to an actual relation.

@miq-bot add_label test, refactoring

@miq-bot add_reviewer @bdunne

@Fryguy updated

@Fryguy Updated.


Convert wasm ppn to hexadecimal

Hey, we just got a new license and are trying to integrate the received keyword. We received .ppn file for WASM platform. How to convert it to an hexadecimal ?

You need to read the file as binary data and transform each byte to a hex value. I personally use xxd utility from commandline. But you can do this using any other utility of choice as well .

I used xxd, then I had to write some code to convert it into a byte array. It would be good to illustrate this process in the docs.


article update

Please use this template to ensure easier processing of your pull request
Category

[ x] Content fix
[ ] New article

Docs Build status updates of commit efd8438:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

Community/microsoft365-maturity-model--intro.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


[Do not merge] Rerun fontconfig

Installing fontconfig on linux platform failed with following failures locally, test it in CI testing machines.
configure: error:
*** uuid is required. install util-linux.

Installing package fontconfig[core]:x64-linux...
Installing package fontconfig[core]:x64-linux... done

also it should be using libuuid.  Could you post the config.log ?

config.log

@PhoebeHui That is the elfutils config.log.

Sorry, I uploaded a wrong one, I have updated it.

I noticed that fontconfig:x64-linux passed in CI test machines.
Starting package 177/323: fontconfig:x64-linux
Building package fontconfig[core]:x64-linux...
-- Downloading https://gitlab.freedesktop.org/fontconfig/fontconfig/-/archive/844d8709a1f3ecab45015b24b72dd775c13b2421/fontconfig-844d8709a1f3ecab45015b24b72dd775c13b2421.tar.gz...
-- Extracting source /mnt/vcpkg-ci/downloads/fontconfig-fontconfig-844d8709a1f3ecab45015b24b72dd775c13b2421.tar.gz
-- Applying patch remove_tests.patch
-- Applying patch build.patch
-- Applying patch build2.patch
-- Using source at /mnt/vcpkg-ci/buildtrees/fontconfig/src/75c13b2421-01343638ab.clean
-- Configuring x64-linux-dbg
-- Configuring x64-linux-rel
-- Generating configure for x64-linux
-- Finished generating configure for x64-linux
-- Configuring x64-linux-dbg
-- Configuring x64-linux-rel
-- Building x64-linux-dbg
-- Installing x64-linux-dbg
-- Building x64-linux-rel
-- Installing x64-linux-rel
-- Fixing pkgconfig file: /mnt/vcpkg-ci/packages/fontconfig_x64-linux/lib/pkgconfig/fontconfig.pc
-- Fixing pkgconfig file: /mnt/vcpkg-ci/packages/fontconfig_x64-linux/debug/lib/pkgconfig/fontconfig.pc
-- Installing: /mnt/vcpkg-ci/packages/fontconfig_x64-linux/share/fontconfig/copyright
-- Performing post-build validation
-- Performing post-build validation done

configure:17233: checking for UUID
configure:17240: $PKG_CONFIG --exists --print-errors "uuid"
Package uuid was not found in the pkg-config search path.
Perhaps you should add the directory containing `uuid.pc'
to the PKG_CONFIG_PATH environment variable
No package 'uuid' found
configure:17243: $? = 1
configure:17257: $PKG_CONFIG --exists --print-errors "uuid"
Package uuid was not found in the pkg-config search path.
Perhaps you should add the directory containing `uuid.pc'
to the PKG_CONFIG_PATH environment variable
No package 'uuid' found

Missing *.pc file from libuuid?

After I rebuild libuuid, it passed, thank you @Neumann-A for your help!


Swipe from left should dismiss the controller

at least on ios, preferably all, if it makes sense with other app guidlines

won't fix. cleaning up.


fix: FeePayment conversion

Pull Request type
Please add the labels corresponding to the type of changes your PR introduces:

Bugfix

What is the current behavior?
Resolves: #385
What is the new behavior?

the UnitPrice for FeePayment depends on the transaction version

Does this introduce a breaking change?
data for FeePayment in older databases is incorrect for transaction V3
Other information

hello ser, can you share some docs/spec to read from about this?

there aren’t really any specs for the sequencer types

https://docs.starknet.io/architecture-and-concepts/network-architecture/transactions/
In this document, only the V3 transactions have their fees expressed in Fri.


Cherry-pick 23417 to release6x

So that we can easily update them in the future.

@bot-gradle test and merge

No milestone for this PR. Please set a milestone and retry.

@bot-gradle test and merge

I've triggered a build for you.

Pre-tested commit build failed.


07/03/2018 03:57 : Create Pull Request for branch prTesting_2018070303 -> master

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

split/updateTestCon.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.


The Enable Dynamics 365 apps decision

Hello,
The documentation says :
The Enable Dynamics 365 apps decision is not reversible: Once you create an environment, if you don't select Enable Dynamics 365 apps at the time of database provisioning, you won't be able to make this change later nor be able to install Dynamics 365 apps on this environment.
But is doesn't say why one would choose an option or the other. In doubt we are tempted to enable it.
Can you clarify the consequences and use case of enabled/Not enabled?
Thank you
Pierre-Olivier

Refers to this topic: https://docs.microsoft.com/en-us/power-platform/admin/create-environment

@popujol
Sorry for the delayed response and thank you for the suggestion. We'll be updating this content in the future and will review your suggestion then.


Changing Gear/Gems Cumulative Lag

Describe the bug
Changing gems or gear slowly adds more and more lag into the sim. Switching gear or gems goes from a near instant interact to something that take 5 seconds or more,
To Reproduce
Steps to reproduce the behavior:

Go to any sim gear set
Click on each item and swap gems multiple times, go to the next item and repeat. Or swap items multiple times.
Every change adds more and more lag to the interaction. By the time you reach the last piece changing gems takes 5+ seconds (i'm on a 5950x, I assume this is much worse for lower end cpus)

Expected behavior
The time it takes to change gear/gems remains consistent.
Desktop (please complete the following information):

OS: PC
Browser: Chrome, happens with both localhost and wowsims.github.io
Version 0.1.5

Additional context
Refreshing the browser resets the issue, and gem/gear go back to being a near instant interaction.

At a quick glance I wonder if this is because of event handlers being added and not properly cleaned up?


Asya Kolodko test task - Modifying several docs

Motivation and context
Here is my take on how to improve the instructions.
How has this been tested?
By me and spellcheckers.
Checklist

[x] I submit my changes into the develop branch
[ ] I have added a description of my changes into CHANGELOG file
[x] I have updated the documentation accordingly
[ ] I have added tests to cover my changes
[ ] I have linked related issues (read github docs)
[ ] I have increased versions of npm packages if it is necessary (cvat-canvas,
cvat-core, cvat-data and cvat-ui)

License

[x] I submit my code changes under the same MIT License that covers the project.
Feel free to contact the maintainers if that's a concern.

@AsyaKolodko , thanks for the contribution! We are happy to collaborate with you. I hope to speak with you soon.
A couple of problems that I have found:

Tabs are great, but the first item is shifted and the whole text is escaped. Could you please look?

@AsyaKolodko , in general, I like the simplification. But it looks like you didn't check your changes. Please run hugo server to see what you will have.
Another problem is the markdown linter. Could you please look at the report: https://github.com/opencv/cvat/suites/8699490759/artifacts/392673460?

@nmanovic Thank you for the feedback! I fixed the tabs and the rest, as well as I checked it with hugo server.


Remove intermediate copy in the frame write path

Archana wanted to be able to write a frame from separate goroutines and that does sound like a good idea (because the protocol has some notifications and that's handy to send them from any goroutine we want). The easy way to do that is that have a single Write() but, currently, it means w need to copy the payload to write into a bigger header+payload buffer.
We should be able to do better, my suggestion from PR #11 copied below:
mean the api package, not the client<->proxy on-wire protocol. If we want to avoid a copy we need to change the API exposed by the api package (yes, too many APIs). For instance, the following doesn't work anymore as payload is given by the caller which means we would need to copy it into the big header+payload buffer:
func WriteCommand(w io.Writer, op Command, payload []byte) error {
 	return WriteFrame(w, NewFrame(TypeCommand, int(op), payload))
 }

So, instead, we need to ask Frame for the payload slice which would point to the underlying big buffer. Now the problem is that solution requires to know the size of the payload before asking the Frame for the payload slice. It's not possible to known the slice length beforehand in all cases. When using json.Marshal() for instance, we're given the encoded byte buffer back and only then we know the size of the JSON serialization.
So, to solve all of the above, an interface that works is getting an io.Writer from the Frame struct. That io.Writer would be on top of a byte buffer that grows on demand and we can give the io.Writer to json.Encode to have the JSON serialization happen in the big (header+payload) buffer.
That would look like:

func NewFrame(t FrameType, op int) *Frame
func NewFrameWithPayloadSize(t FrameType, op int, payloadSize int) *Frame

func (f *Frame) getPayloadWriter() io.Writer

NewFrameWithPayloadSize() is the usual optimization of sizing the buffer correctly when knowing the size beforehand (say for stream frames) and avoid multiples reallocations.
In the Frame struct, the frame data could a bytes.Buffer with the constructor writing the header.
All in all, a bit of complexity, but may be worth it.

I came across this obscure system call writev(https://linux.die.net/man/2/writev) that helps avoid copies by writing suffer buffers atomically. This sounds like what we want. Maybe we could use this instead. A quick search pointed me to a vectorio golang package that has implementation for this. I will look further next week to see if golang1.8 has support for this and test out if this works as expected.

@amshinde 'Obscure' - I like that :-)  That is 'classic' scatter-gather : https://en.wikipedia.org/wiki/Vectored_I/O which indeed could be a good way to avoid copies, if it fits in with the API.

@grahamwhaley Thanks for pointing me to the link! I havent myself seen it used much, but now that I read more, I see that quite a few web platforms and servers use it heavily for performance improvement.


Delete product cache for items not present in index

In current production database there are caches for 2220 items, but latest index only contains 1621 items.
I would prefer to keep caches for a month or so after they've been removed from index, but i assume items missing from index for a month are either sold or scrapped

The next step would be to implement some kind of "last seen on %date%" property storage for every item and gather data for a month.
Then, have a function to delete caches for items not seen for a month

stalwart@hindenburg:/var/www/sites/banknote-tabulator/inventory/products $ ls */last_seen | wc -l
1720
stalwart@hindenburg:/var/www/sites/banknote-tabulator/inventory/products $ ls | wc -l
2771

since initial scrape of banknote, >1000 laptops had been either sold or scrapped
that's 250 laptops per month


Custom Resolvers (seemingly) incompatible with @auth directive.

Describe the bug
It would appear that there's no way to affect the permissions of a custom resolver via the @auth directive, or via a custom stack.
Amplify CLI Version
4.16.1
To Reproduce

have a custom resolver with it's own .stack file (as described in the docs)
Add an @auth directive to say allow IAM & Cognito auth
Get an error that you can only have one type of resolver per field

Expected behavior

Either the above works magically -OR-
Pass the authRoleName and unauthRoleName into the custom resolver

Additional context
I've got custom resolvers (that look up an object via two fields and require a match, instead of one).
These resolvers map onto a query in my schema. I want to automatically create the policy that would allow public access to these fields. The @auth directive was my first go, but that caused an error because my custom resolver stack was defining a resolver, and @auth was trying to define another one.
I also can't do the auth myself in my custom resolver, because the auth roles aren't passed in. This should be a simple fix to just pass the auth roles in as params when generating the cf-template.

@nagey Could you share with us a sample schema as to how you're setting this @auth directive?

the schema context was along the lines of:
type Query {
  myCustomResolvedQuery(id: ID!, nonce: String!): SomeObject @aws_iam @aws_cognito_pools @auth(rules:[{ allow: public, provider: iam }])

This very much doesn't work. We are setting up the resolver for myCustomResolvedQuery in a custom stack in the stacks directory.
Thinking about this, and reading through the code, I don't believe that my option 1 for expected behavior is viable, and that the #2 is the only possible way to make it happen.
If we had the auth & unauth role names in the custom stack as parameters (they're not currently passed it would seem), then we could manually define the IAM policies for them.

Hello @nagey
Are you still experiencing issues with
Did you add the resolver cfn portion inside CustomResources.json?
I tested this on 4.16.1 and the latest version of the CLI and it generated a policy for the unauth role to access the query. It also passed the @aws_cognito_user_pools.
Schema I used
type Post {
	id: ID!
	title: String!
	tag: String
	createdAt: AWSDate
	updatedAt: AWSDate
}
# the resolver would read from posts from another table that has posts.
type Query {
	customGet(id: ID!): Post @aws_cognito_user_pools @auth(rules: [{ allow: public, provider: iam }])
}


old-style-definition warnings

Compiling Jerryscript (+ RIOT) on my Linux VM, I get the below old-style-definition warnings (by default treated as errors, though they can be bypassed by tweaking the CFLAGS).
/home/vagrant/RIOT/examples/javascript/bin/pkg/iotlab-m3/jerryscript/jerry-core/jmem/jmem-allocator.c:40:1: warning: old-style function definition [-Wold-style-definition]
 jmem_finalize ()
 ^

/home/vagrant/RIOT/examples/javascript/bin/pkg/iotlab-m3/jerryscript/jerry-core/jmem/jmem-poolman.c: In function 'jmem_pools_collect_empty':
/home/vagrant/RIOT/examples/javascript/bin/pkg/iotlab-m3/jerryscript/jerry-core/jmem/jmem-poolman.c:194:1: warning: old-style function definition [-Wold-style-definition]
 jmem_pools_collect_empty ()
 ^

/home/vagrant/RIOT/examples/javascript/bin/pkg/iotlab-m3/jerryscript/jerry-core/parser/regexp/re-compiler.c: In function 're_cache_gc_run':
/home/vagrant/RIOT/examples/javascript/bin/pkg/iotlab-m3/jerryscript/jerry-core/parser/regexp/re-compiler.c:491:1: warning: old-style function definition [-Wold-style-definition]
 re_cache_gc_run ()
 ^

/home/vagrant/RIOT/examples/javascript/bin/pkg/iotlab-m3/jerryscript/targets/default/jerry-port-default-date.c: In function 'jerry_port_get_current_time':
/home/vagrant/RIOT/examples/javascript/bin/pkg/iotlab-m3/jerryscript/targets/default/jerry-port-default-date.c:53:8: warning: old-style function definition [-Wold-style-definition]
 double jerry_port_get_current_time ()
        ^

/home/vagrant/RIOT/examples/javascript/bin/pkg/iotlab-m3/jerryscript/targets/default/jerry-port-default-fatal.c: In function 'jerry_port_default_is_abort_on_fail':
/home/vagrant/RIOT/examples/javascript/bin/pkg/iotlab-m3/jerryscript/targets/default/jerry-port-default-fatal.c:39:6: warning: old-style function definition [-Wold-style-definition]
 bool jerry_port_default_is_abort_on_fail ()
      ^

@emmanuelsearch could you please add some details? What is the version of JerryScript you are using (git hash)? Which compiler are you using and which version? How do you compile JerryScript (what is your build command and/or what are your cmake arguments)?

Sorry for not giving more details in the first place:
Commit: e993ee6cdc955218a534cb397da9e95eeaf8b5c8
Obtained using: make jerry-core (invoked in here).
Compiler: arm-none-eabi-gcc 4.9.3


Error after install 3.0.2

npm install -g<EMAIL_ADDRESS>node -v - 10.15.3
error on any commands
/home/dinfy/.nvm/versions/node/v10.15.3/bin/prism: line 1: use strict: command not found
/home/dinfy/.nvm/versions/node/v10.15.3/bin/prism: line 2: syntax error near unexpected token `exports,'
/home/dinfy/.nvm/versions/node/v10.15.3/bin/prism: line 2: `Object.defineProperty(exports, "__esModule", { value: true });'

Yeah I noticed, something probably went wrong during the publish process. I've removed it and I'll republish. Thanks for the notice 👍


⚠ Bofrost.com has degraded performance

In db23f84, Bofrost.com (https://www.bofrost.com) experienced degraded performance:

HTTP code: 200
Response time: 708 ms

Resolved: Bofrost.com performance has improved in 437428d.


Request: Post your extension in the Edge store as well

Hello! I really like this addon/extension, but it seems to be missing from the Edge extension store. Could you add it there? :)
It would bring in more users + it would make it (marginally) easier to install the extension in Edge.

I forgot to comment on this, but I sent SpotiShush to the Edge store 8 days ago, but it's still under review:

We'll see.

It just got accepted: https://microsoftedge.microsoft.com/addons/detail/cfohjlnnhademjaockpjlilclkiimchg
Unfortunately, it took them 10 days to review and accept it, and the version I sent them is the previous one (v2022.4.30). I've sent them the new version (v2022.5.9) already, so let's just hope it doesn't take them another 10 days to accept this one.


The iPython notebook file is not found

@VioletVivirand commented 21 hours ago — with docs.microsoft.com
The iPython notebook file at https://raw.githubusercontent.com/microsoft/sql-server-samples/master/samples/features/sql-big-data-cluster/spark/data-virtualization/mssql_spark_connector.ipynb is not found, please update the hyperlink of the file.

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

ID: 4a9e7588-f740-33b4-303b-e927f3400414
Version Independent ID: 186607e3-fd55-5d9b-2cfc-26120fc438ad
Content: Connect Spark to SQL Server - SQL Server big data clusters
Content Source: docs/big-data-cluster/spark-mssql-connector.md
Product: sql
Technology: big-data-cluster
GitHub Login: @MikeRayMSFT
Microsoft Alias: mikeray

Hi Team,
Could you please check issue from user?
Kind regards,
Microsoft DOCS International Team

@VioletVivirand, @ticianaciminari -- Chung-Ping, Ticiana, thank you for your feedback.
@MikeRayMSFT -- Mike, please look into this issue #4156.

The article was updated on January 24 with a new link.
The link may not have been updated on all localized versions. What locale is being used?
Here's the updated content:
Run the sample notebook
To demonstrate the use of the MSSQL Spark Connector with this data, you can download a sample notebook, open it in Azure Data Studio, and run each code block. For more information about working with notebooks, see How to use notebooks in SQL Server.

From a PowerShell or bash command line, run the following command to download the mssql_spark_connector_non_ad_pyspark.ipynb sample notebook:
curl -o mssql_spark_connector.ipynb "https://raw.githubusercontent.com/microsoft/sql-server-samples/master/samples/features/sql-big-data-cluster/spark/data-virtualization/mssql_spark_connector_non_ad_pyspark.ipynb"

@RyanKing77 - can we follow up on this as a possible localization error?

@ticianaciminari and @VioletVivirand, I've confirmed that this is in fact being corrected in the localized paths. It should be done in a week or so. In the mean time the correct path is in my previous comment.


Add code climate badge to README

part of https://github.com/fromAtoB/kenny/issues/7

Thanks @lucasrenan 👍


Improve the ordered scope

Follow up to #11
I hadn't actually used the method I sent earlier to sort my users, but some another resource. Now that I tried sorting users, it turned out the method I proposed breaks where() clauses (as where('id', ...) cannot distinguish between model ID and group ID). This is especially bad due to Laravel built in auth provider using where clause to get the current user.
The new proposed method only fetches group priority.

Cheers!


parseInt shouldn't auto-oct when the radix is 16

Test case:
print(parseInt('00e1',16))

It prints 0 in duktape 1.3.0. It should print 225 (0xe1).
In duk_bi_global_object_parse_int, the radix!=16 hack should unset DUK_S2N_FLAG_ALLOW_AUTO_OCT_INT instead of leaving strip_prefix as 1 when radix is indeed 16.

Thanks. I'll look into it!

Hmm, somewhat unrelated, but there's a different between Node.js v0.12.1 and Rhino in handling automatic octal parsing:
parseInt('0123');    // -> 123 in Node.js, 83 in Rhino
parseInt('0123', 8); // -> 83 in Node.js and Rhino
parseInt('0xff');    // -> 255 in Node.js and Rhino

So, hex autodetection works without explicit radix but octal is not autodetected. The E5.1 specification is a bit vague for octal because it's an optional feature so I'm not sure which is correct, I'll try to figure it out. As a user I'd prefer V8's behavior though.

Here's a write-up from Mozilla re: octal radix:

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseInt#ECMAScript_5_Removes_Octal_Interpretation

This matches Node.js behavior so I'll change Duktape to do this too - for me it's also the most sensible behavior.

That would be great, thanks!

Specify 10 for the decimal numeral system commonly used by humans

I find that profoundly amusing. :)


Documentation clarity

Describe the bug
Hi, this Workbook looks awesome. I'm just confused with the Documentation.

To use the Workbook with Resource Specific logs enabled, use the deployment button below.

In Firewall context, what does this mean? What's the difference between the two Workbooks?

When deploying via ARM Template, please make sure you know what Resource ID (Log Analytics Workspace) you're wanting to use.

Why do I need to know it? At least I don't see which Template parameter should take this value. The Workbook itself then has selectors for any Workspace in any Subscription.
Many thanks for clarification. :)

Update: I've deployed both options, providing Workspace ID to parameter Workbook Source Id instead of default Azure Monitor. But I don't see difference in behavior between the two.

@Tbohunek Thank you for the feedback. Response will be provided in 3 business days concerning this issue about clarity

Please see more information about resource specific logs (vs All logs) in this documentation.
Closing issue, please feel free to open this again.


List all tools in API

The idea: Make a list of all the tools we support available through the endoflife.date API. That way, someone can use the API without the need to know the exact tool name and url.
For example, we could generate a JSON at https://endoflife.date/api/all.json containing a list with every name and type available in our tools/ folder. Someone could request that JSON, iterate over the array and get all the data, one after another, via https://endoflife.date/api/{names[i]}
Alternatively, we could let any GET routed to https://endoflife.date/all fetch all JSON files/generations available server-side, merge them to a big JSON and return that.

Covered in #273. Coming 🔜

Covered in #273. Coming 🔜

=> Closed.


Angular 1.6 incompatibility

Angucomplete-alt fails because legacy $http .success() and .error() has been removed.
See: https://github.com/ghiden/angucomplete-alt/pull/452

+1

Released v3.0.0


Add 'New User' dimension to session/user dimension models

Google provided some sample queries that demystify how they make certain counts. We can use the following to determine if a user is considered a new user as part of the session/user dim models
https://developers.google.com/analytics/bigquery/basic-queries?authuser=0
WITH
  UserInfo AS (
    SELECT
      user_pseudo_id,
      MAX(IF(event_name IN ('first_visit', 'first_open'), 1, 0)) AS is_new_user
    -- Replace table name.
    FROM `bigquery-public-data.ga4_obfuscated_sample_ecommerce.events_*`
    -- Replace date range.
    WHERE _TABLE_SUFFIX BETWEEN '20201101' AND '20201130'
    GROUP BY 1
  )
SELECT
  COUNT(*) AS user_count,
  SUM(is_new_user) AS new_user_count
FROM UserInfo;

Realizing that this will calculate whether a user is new based on the date range is queried. That doesn't work when we're incrementally updating data each day. Going to close.


ORCA/plotlyJS seems to be causing issues with MathJax in Jupyter notebooks (using Julia language)

I'm not sure if this is due to an issue with Orca or PlotlyJS (or Julia itself), but something is causing LaTeX to not display properly.
The problem occurs in both block equations (inside $$) and in align environments as well.
Here is an example of a notebook not using Orca or PlotlyJS:

And the accompanying markdown:
# Ellipsoid mass

> Write an MCI routine using your better random generator algorithm to find the mass of an ellipsoid given by:
>
> $$2x^2 + 3y^2 + z^2 = 25 \;, \text{ with } \rho = 1.000 \; \frac{kg}{m^3}$$
>
> What is the analytic solution? How close can you get with a reasonable number of random points? Compare a reasonable run to the analytic solution and give the percentage error.

And here is the result of the same markdown in a notebook using Orca and PlotlyJS:

I'm new to Orca and PlotlyJS, so I honestly have no idea where to look, or even what to look for with this issue. I mention in the title that I'm also using Julia, so its possible the issue is with Julia itself, as I have not tested this issue in Python.

Hi @ddejohn could you tell us where you took those screenshots from?
Are they from a Jupyter Notebook, a plain web page, or something else?
Thanks.

@etpinard sorry, yes those screenshots were taken inside a Jupyter notebook,

Ok great. Could you share that notebook with us to help us debug?

https://github.com/ddejohn/jupyter/blob/master/PHY 4611/Project_2.ipynb


Add clarification

On Windows, the - script shorthand would use cmd.exe and not bash

@steved0x
Can you review this PR?
IMPORTANT: When this content is ready to merge, you must add #sign-off in a comment or the approval may get overlooked.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

@jruales Good catch! We just migrated our tasks to a new repository, and I have made this change there and it will be live later today.
https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/bash-v3?view=azure-pipelines#examples


Python/Django: accounts app correct portal/gateway redirects

When a web visitor clicks “Logout?” (at the bottom of portal.html template), the user returns to gateway.html. But when the web visitor in their web browser enters, http://<IP_ADDRESS>:8000/portal , the web visitor is routed to portal.html without having to enter the passphrase. This is a security risk. Instead, on gateway.html, the web visitor should always be required to enter a passphrase even if they have entered a valid passphrase successfully in the past.

I realized that when logged in as the admin user into the Dashboard, the passphrase is not required. See here:  https://youtu.be/zcmNxZUkczA
So that is what was throwing me off. Since web visitors will never login to the admin Dashboard, this means that after the web visitor clicks “Logout” and Django will serve the gateway template and always require a passphrase to proceed. So I will mark this issue as closed.


fix(tidb): master jobs not response to release-7.x

master jobs not response to release-7.x

Hello, I am a serverless review bot on flows.network. Here are my reviews of code commits in this PR.

Commit 1
Key changes:

Removed regular expressions that specify the branches for which the jobs in the YAML file will be triggered. Specifically, the ^release-7\.[1-9](\.\d+)?(-\d+)?(-v[\.\d]+)?$ pattern was removed from all jobs' branch specifications.

Potential problems:

It's not clear from the commit message or the code changes what the purpose of this patch is, what issues it aims to address, and how it does so. The commit message simply says that it introduces a new feature of jobs responding to release-7.x, but the actual changes suggest that the feature is removed instead. This can be confusing and make it difficult for other developers to understand the reasoning behind the changes.
The removal of the regular expressions that specify the branches for which the jobs will be triggered may have unintended consequences on the CI/CD pipeline for this project. It's not clear from the patch why these branches were removed and whether this change is intentional or a mistake. It's possible that removing these branches may cause some jobs to stop running or run on the wrong branches. Therefore, it's important to have a clear explanation of the reasoning behind this change and to thoroughly test the changes to make sure they work as intended.


Buggy @html tag on page load/refresh

Describe the bug
The @html tag is buggy on initial page load/refresh.
For example, in the reproduction repo (https://github.com/kelvinsjk/sveltekitHTMLTag), we have const a = 1, b = 2, c = 3 and {a} {@html b} {c}.
The SSR rendered page correctly shows 123 but upon page load and hydration it becomes 13 instead.
On HMR it then works as intended, and certain combination of text around those tags could lead it to work as well, but other times it doesn't.
Reproduction
https://github.com/kelvinsjk/sveltekitHTMLTag
Logs
No response
System Info
System:
    OS: Linux 5.11 Pop!_OS 20.04 LTS
    CPU: (4) x64 Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz
    Memory: 4.05 GB / 14.60 GB
    Container: Yes
    Shell: 5.0.17 - /bin/bash
  Binaries:
    Node: 16.9.0 - ~/.nvm/versions/node/v16.9.0/bin/node
    Yarn: 1.22.11 - ~/.nvm/versions/node/v16.9.0/bin/yarn
    npm: 7.21.1 - ~/.nvm/versions/node/v16.9.0/bin/npm
  Browsers:
    Firefox: 88.0.1
  npmPackages:
    @sveltejs/kit: next => 1.0.0-next.180
    svelte: ^3.42.6 => 3.43.1

Severity
annoyance
Additional Information
Can be worked around by re-assigning the variable in action onMount, but rather annoying as I haven't been able to discern a pattern as to when this will strike.

Okay, I'm pretty sure I've identified the precise cause of the bug. I'm not familiar enough with the Svelte code to fix the bug, but I know why it's happening, which will hopefully give the Svelte maintainers a head start on writing a fix.
When Svelte compiles your repro to Javascript code, it looks like this:
function create_fragment(ctx) {
	let t0;
	let t1;
	let html_tag;
	let t2;
	let t3;

	const block = {
		c: function create() {
			t0 = text(/*a*/ ctx[1]);
			t1 = space();
			html_tag = new HtmlTagHydration();
			t2 = space();
			t3 = text(/*c*/ ctx[0]);
			this.h();
		},
		l: function claim(nodes) {
			t0 = claim_text(nodes, /*a*/ ctx[1]);
			t1 = claim_space(nodes);
			html_tag = claim_html_tag(nodes);
			t2 = claim_space(nodes);
			t3 = claim_text(nodes, /*c*/ ctx[0]);
			this.h();
		},
		h: function hydrate() {
			html_tag.a = t2;
		}
        // Rest of block omitted for space
    }
}

When the component is created by client-side Svelte code (for example, when you load a different page and navigate to the page with this component, or after HMR), the create() function is called. It creates an HTML structure like this: text node "1", whitespace node, @html node (which will contain the text node "2"), whitespace node, text node "3". When the component takes server-side rendered HTML, the claim() function is called. It expects an HTML structure of the same shape as the structure the create() function would produce: text 1, space, @html containing text 2, space, text 3.
Here's the HTML that's produced by the server-side rendering, exactly as it was delivered to the browser (including the extra newlines and one line that's nothing but three tabs and a newline):

1 2 3

There's more HTML, of course, but that's the important part for understanding the cause of this bug. You'd think that this would produce the same node structure as create(), i.e. text 1, space, @html, space, text 3. But in fact, when I set a breakpoint at the start of claim() and inspected the nodes array in the Firefox debugger, this is what it contained:
text node: "\n\n\n1 "
comment node: " HTML_TAG_START "
text node: "2"
comment node: " HTML_TAG_END "
text node: " 3\n\n\n\n\t\t\t\n\t\t"

Notice how the first and last text nodes don't just contain "1" and "3", they contain "(whitespace)1(whitespace)" and "(whitespace)3(whitespace)". That's the root cause of this bug.
The way the rest of the bug plays out is that the line t0 = claim_text(nodes, /*a*/ ctx[1]) looks at first glance to be doing exactly what it should. Before it runs, nodes = [text 1, HTML_TAG_START, text 2, HTML_TAG_END, text 3]. And after it runs, t0 = text 1 and nodes = [HTML_TAG_START, text 2, HTML_TAG_END, text 3]. It has claimed and removed the correct node. But in fact, claim_text has not done the right thing, because of the whitespace around the node. First let's look at the source of claim_text, and then we'll see how its implementation is failing in this case.
function claim_text(nodes, data) {
  return claim_node(nodes, (node) => node.nodeType === 3, (node) => {
    const dataStr = "" + data;
    if (node.data.startsWith(dataStr)) {
      if (node.data.length !== dataStr.length) {
        return node.splitText(dataStr.length);
      }
    } else {
      node.data = dataStr;
    }
  }, () => text(data), true);
}

When t0 = claim_text(nodes, ctx[1]) gets run, ctx[1] contains the value of a (the integer 1), so dataStr above becomes the string "1" with no space around it. The HTML node being claimed at that point is the text node "\n\n\n1 ", so node.data contains "\n\n\n1 ". Since that does not start with "1", the if block is false and the contents of that text node are set to "1" instead, with no whitespace before or after it. The whitespace after it, though, was important, as we'll see in just a couple of paragraphs.
What should have happened here was that the SSR should have returned a div with no extraneous whitespace around the contents. Instead of the HTML I linked above with several blank lines around the
, it should have contained exactly this:
1 2 3
. Because then, inside claim_text, the node would have been a text node containing exactly "1 " (a single trailing space after the 1). Then the node.data.startsWith(dataStr) test would have been true, the node.data.length !== dataStr.length test would have been true, and the node.splitText(dataStr.length) function would have run. That would have done the right thing, because then there would have been a text node containing "1" followed by a whitespace node. I.e., the nodes array after claim_text was finished should have contained [text " ", HTML_TAG_START, text 2, HTML_TAG_END, text 3].
But instead, because the splitText function never ran, the nodes array ended up containing [HTML_TAG_START, text 2, HTML_TAG_END, text 3]. And the next function call, claim_space, is where the bug's effects start to be visible. Because its implementation is just claim_text(nodes, " "). And claim_text calls claim_node looking for a node of nodeType 3 (a text node). I haven't shown you the claim_node implementation because it's long, but it moves forward through the node list looking for one that matches the predicate, which here is just "a text node". And therefore, when it finds the text node "2", it says "Okay, that's a text node, sot hat's the one I'm looking for". It then checks whether "2" starts with " " and when the answer is no, it runs the else block, which sets node.data (which was "2") to dataStr (which is " "). This is the part where the "2" disappears from your HTML, because the claim_text function has incorrectly converted it to a space.
But the root cause of the bug is the extraneous whitespace before the text node "1", because that made the claim_text function not split off the whitespace after the node "1". And therefore the whitespace node that should have been claimed by claim_space was missing, and so claim_space incorrectly claimed the text node "2".
To solve this bug, the SSR needs to not render extraneous whitespace around the contents of
...
. Then this whole thing would have worked correctly.


Consider editing repository setings to remove "Packages" section

"Packages No packages published" is displayed right now, fortunately this pointless section can be removed.
Edit repo page config to remove it (cog next to the description).
I am not making a PR as it is defined in proprietary github settings, not in a git repository - and I have no rights to modify repo settings.

No need, I have a branch locally setup to be spun up in a docker container that could eventually go there. It just hasn't been pushed.


Excessive malloc time on Nvidia Ampere Arch

We recently upgraded our servers from V100s to A100s and encountered a lengthy initialization cupy.cuda.runtime.malloc issue. Narrowing down the problem we were able to reproduce it with:
docker run -it --rm cupy/cupy:v8.0.0 python3 -c 'import time, cupy; start=time.time(); ptr=cupy.cuda.runtime.malloc(1); end=time.time(); print(end-start); cupy.cuda.runtime.free(ptr)'
This took 67 seconds to malloc a single byte. However, successive mallocs within the same process took fractional seconds:
docker run -it --rm cupy/cupy:v8.0.0 python3 -c 'import time, cupy; start=time.time(); ptr=cupy.cuda.runtime.malloc(1); end=time.time(); print(end-start); cupy.cuda.runtime.free(ptr); start=time.time(); ptr=cupy.cuda.runtime.malloc(1); end=time.time(); print(end-start); cupy.cuda.runtime.free(ptr)'
Prints 67 seconds followed by 0.15 seconds. We put the V100s back into the same server and ran the same docker command and it resulted in 0.15s always. We have also tried to malloc different amounts, but whether it is 1 byte or multiple gigs, the first initialization is always roughly 67 seconds. Most of our processes do not last that long so the initial delay is doubling or tripling our runtimes.
We have contacted Nvidia and they were able to reproduce the same lengthy cupy.cuda.runtime.malloc on Ampere A100 and RTX A6000, with no such delay on Volta and Turing (they tested cuPy on A100, RTX A6000, GV100, & T4).
We plan on additional testing when time permits, but were wondering if this is something already known by cuPy (a quick search for Ampere and/or malloc delay returned nothing), and if there are additional commands or configurations we can try to help debug this problem once we have the hardware setup again.

Could you try an equivalent C code calling cudaMalloc (should just be a few lines) and see if there's something odd on the local environment? IIRC at least @anaruse has done some tests for CuPy on A100 but I don't think this issue was raised before.

We had tested it with a few of the example code listed in /usr/local/cuda/samples/0_Simple/ (such as matrixMul) at the host level rather than in a docker container, and none of them took more than factional seconds to cudaMalloc. We have not ran it in n nvidia profiler however, as it was just a quick test for ourselves to narrow the problem. Sorry I didn't mention that in the initial.

I see, how about running the same codes in a docker (as you did in your original report) instead of on bare metal? Would it be Docker's fault?

btw which driver version are you on?

I can't reproduce this on bare metal:
$ python -c "import cupy; cupy.show_config()"
OS                           : Linux-5.4.0-64-generic-x86_64-with-glibc2.10
CuPy Version                 : 9.0.0b2
NumPy Version                : 1.20.0
SciPy Version                : 1.6.0
Cython Build Version         : 0.29.21
Cython Runtime Version       : 0.29.21
CUDA Root                    : /usr/local/cuda-11.0
CUDA Build Version           : 11000
CUDA Driver Version          : 11000
CUDA Runtime Version         : 11000
cuBLAS Version               : 11200
cuFFT Version                : 10201
cuRAND Version               : 10201
cuSOLVER Version             : (10, 6, 0)
cuSPARSE Version             : 11101
NVRTC Version                : (11, 0)
Thrust Version               : 100909
CUB Build Version            : 100909
Jitify Build Version         : <unknown>
cuDNN Build Version          : 8005
cuDNN Version                : 8005
NCCL Build Version           : None
NCCL Runtime Version         : None
cuTENSOR Version             : None
Device 0 Name                : A100-SXM4-40GB
Device 0 Compute Capability  : 80
Device 1 Name                : A100-SXM4-40GB
Device 1 Compute Capability  : 80
Device 2 Name                : A100-SXM4-40GB
Device 2 Compute Capability  : 80
Device 3 Name                : A100-SXM4-40GB
Device 3 Compute Capability  : 80
Device 4 Name                : A100-SXM4-40GB
Device 4 Compute Capability  : 80
Device 5 Name                : A100-SXM4-40GB
Device 5 Compute Capability  : 80
Device 6 Name                : A100-SXM4-40GB
Device 6 Compute Capability  : 80
Device 7 Name                : A100-SXM4-40GB
Device 7 Compute Capability  : 80
$ python -c 'import time, cupy; start=time.time(); ptr=cupy.cuda.runtime.malloc(1); end=time.time(); print(end-start); cupy.cuda.runtime.free(ptr)'
0.3536720275878906

Due to permission issue I can't run Docker on this machine, though, so can't test if Docker is to blame. Perhaps you could build CuPy locally?

We had not considered if it might be a docker issue, simply because the same docker run of cupy with the V100 slotted back in did not exhibit the same malloc delay. We may try to test that theory further once we have free hardware (all are currently being used).
We are running cuda 11.0.3 with nvidia-driver latest-dkms 450.51.06

Yeah give it a try. It could be that the driver has a bad interplay with Docker on a new architecture, since you said NVIDIA could also reproduce this issue.
Our driver is 450.102.04.

$ python -c 'import time, cupy; start=time.time(); ptr=cupy.cuda.runtime.malloc(1); end=time.time(); print(end-start); cupy.cuda.runtime.free(ptr); start=time.time(); ptr=cupy.cuda.runtime.malloc(1); end=time.time(); print(end-start); cupy.cuda.runtime.free(ptr)'
0.3302488327026367
0.0004801750183105469

Another way to run on bare metal without building from source: Installing CuPy from conda-forge.
$ conda create -n test -c conda-forge -y python=3.8 cupy cudatoolkit=11.0
$ conda activate test
$ python -c 'import time, cupy; start=time.time(); ptr=cupy.cuda.runtime.malloc(1); end=time.time(); print(end-start); cupy.cuda.runtime.free(ptr); start=time.time(); ptr=cupy.cuda.runtime.malloc(1); end=time.time(); print(end-start); cupy.cuda.runtime.free(ptr)'
0.4425685405731201
0.0004782676696777344

Thanks for reporting! Currently, the CuPy image on Dockerhub uses CUDA Toolkit 10.2 (Dockerfile), which does not support A100. We also had similar issue even in the bear metal environment with CUDA 10.x + A100.
We will consider upgrading it to CUDA 11 or later in v9 releases.

We also had similar issue even in the bear metal environment with CUDA 10.x + A100.

I thought A100 is only supported since CUDA 11.0?

I thought A100 is only supported since CUDA 11.0?

Right, but it runs while the initialization takes much time.