functoolz memoize leaking memory in python3

See https://github.com/cvxgrp/CVXcanon/issues/23 for context - removing the memoize annotations in atom.py fixes the issue.
Perhaps use functools.lru_cache in python3?
Also, we should probably add some tests to catch memory leaks as it seems to come up from time to time...

Are we sure the memory leak isn't in Python 2 as well? Maybe I should just remove the memoize annotations.

would be good to have a second look, but it didnt seem to effect python2
in theory if you memoize a member function, i would think the cache should
be deleted when the object goes out of scope. that doesnt seem to be
happening in python3 for some reason and looking at the memoize code it
seems rather complex
On Fri, May 27, 2016 at 11:05 AM, Steven Diamond<EMAIL_ADDRESS>wrote:

Are we sure the memory leak isn't in Python 2 as well? Maybe I should just
remove the memoize annotations.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/cvxgrp/cvxpy/issues/283#issuecomment-222214914, or mute
the thread
https://github.com/notifications/unsubscribe/AAkH1o68Z9sBoGgeJsZEz37bulx5fRBqks5qFzJ5gaJpZM4IoQ0f
.

I switched from toolz.memoize to fastcache.cru_cache, which works in python 2.7 and python 3. @ihwang try installing cvxpy from source now and see if the memory leak is still there.

Thanks for your attention to this matter! Sorry for the basic question, but how precisely do I install from source? I just tried cloning from git@github.com:cvxgrp/cvxpy.git, but got the following:
Permission denied (publickey). fatal: Could not read from remote repository.

git clone https://github.com/cvxgrp/cvxpy
On Fri, May 27, 2016 at 4:07 PM, ihwang<EMAIL_ADDRESS>wrote:

Thanks for your attention to this matter! Sorry for the basic question,
but how precisely do I install from source? I just tried cloning from
git@github.com:cvxgrp/cvxpy.git, but got the following:
Permission denied (publickey).
fatal: Could not read from remote repository.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/cvxgrp/cvxpy/issues/283#issuecomment-222271801, or mute
the thread
https://github.com/notifications/unsubscribe/AAkH1mbfJsMs79zN7flW17zqBcF1HDOOks5qF3kXgaJpZM4IoQ0f
.

Thanks! Okay, now when I attempt to run the test script with the heap profiler, it's having trouble finding some modules:
Starting tracking the heap
Traceback (most recent call last):
  File "scripts/test.py", line 3, in <module>
    from cvxpy import *
  File "/usr/local/lib/python3.4/dist-packages/cvxpy/__init__.py", line 21, in <module>
    from cvxpy.atoms import *
  File "/usr/local/lib/python3.4/dist-packages/cvxpy/atoms/__init__.py", line 20, in <module>
    from cvxpy.atoms.affine_prod import affine_prod
  File "/usr/local/lib/python3.4/dist-packages/cvxpy/atoms/affine_prod.py", line 20, in <module>
    from cvxpy.atoms.atom import Atom
  File "/usr/local/lib/python3.4/dist-packages/cvxpy/atoms/atom.py", line 30, in <module>
    from fastcache import clru_cache
ImportError: No module named 'fastcache'
Dumping heap profile to /tmp/.0001.heap (Exiting)

Yes, you have to install fastcache. That's a dependency now.

With fastcache, everything looks good--memory usage hovers around 9 MB with no memory leaks. Thanks guys!

awesome!
On Wed, Jun 1, 2016 at 10:17 AM, ihwang<EMAIL_ADDRESS>wrote:

With fastcache, everything looks good--memory usage hovers around 9 MB
with no memory leaks. Thanks guys!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/cvxgrp/cvxpy/issues/283#issuecomment-223062684, or mute
the thread
https://github.com/notifications/unsubscribe/AAkH1gXm84EbZfA_zR-rb971oNKwXqdtks5qHb66gaJpZM4IoQ0f
.


nRF52 syscfg.restrictions bug

The nRF52 syscfg (mcu/nordic/nrf52xxx/syscfg.yml) has a load of restrictions on it serial peripherals, e.g. "!I2C_0 || (I2C_0_PIN_SCL && I2C_0_PIN_SDA)", aiming, presumably, the make sure that any enabled peripheral has it required pins configured.
It seems though that the settings are being evaluated numerically, i.e. the default empty string is true, but a value of 0 is false.  This means that this setting passes through fine:
syscfg.vals:
    I2C_0: 1
    # I2C_0_PIN_SCL: "" (default)
    # I2C_0_PIN_SDA: "" (default)

but this will generate an error:
syscfg.vals:
    I2C_0: 1
    I2C_0_PIN_SCL: 0
    I2C_0_PIN_SDA: 1

I've tried changing the conditions to "... I2C_0_PIN_SCL != \"\" ..." with various different quote characters / methods of escaping, but couldn't find anything that tested the condition properly.  So someone who knows a bit more about newt internals might have to take a look at it.
Thanks!

Hi,
settings evaluation does not look exactly the way you've described it. Empty string should evaluate to false and the reason that it seems to evaluate to true in your case, is probably that syscfg from bsp overrides it to some proper value.
However there is still one problem - as you've noticed pin number 0 is evaluated to false. This is indeed the case and it is problematic. Changing conditions to != \"\" will fix this, but it does not seem like an ideal solution. For now I've created a draft pull request with this kind of workaround: https://github.com/apache/mynewt-core/pull/3279

You're right, turns out I was defining it in both my bsp and my program.  The 0 is false problem still stands though.
I've noticed that the nRF91 syscfg has all its pin settings default to -1, then does != -1 which seems marginally more elegant.
If you find something you like, it might be worth glancing some of the other BSPs; the nRF5340 one only does these checks for its UART settings, which doesn't seem right.


feat(matic.ts): add amWETH to matic list

Closing in favor of https://github.com/IndexCoop/tokenlists/pull/5


Evaluation Metrics

Hi Yuan,
HR is used to performance comparison in your paper, but recall in your code.

Hi, it is various terms for the same concept. “Sensitivity” and “Recall” are the same as “Hit Rate”. We use HR to save space.

OK， Thank you！


please fix attribution

@ilyankou  - please re-add attribution
https://github.com/OnTheLine/otl-redlining/blob/master/script.js#L17
This was bumped off the map by Esri geocoder attribution, similar to my other repo issue

Fixed


Language: German Only not working properly when grabbing releases

German Subbed is interpreted as German language but the language is actually not German. That's why we need a "German & NOT German Subbed" filter to make it work correctly right?

The problem is that sonarr is incorrectly detecting the release as German. I'll get back to you

I asked on Radarr discord and they confirmed that everything with "German" inside the name is categorised as German language.
I'm currently working on a fork/patch for both Radarr and Sonarr to fix the many problems with the language detection, but it might take a while.
So yes, you are correct. You need to add a filter to the German Only custom format that detects german subbed like this:

Regex: german.*subbed
If it works please let me know or share your own solution :)

I just did a "not subbed" filter for "german language only" and it works well for now 👍🏻

This will also be solved once my patch for Sonarr is ready:

I asked on Radarr discord and they confirmed that everything with "German" inside the name is categorised as German language.
I'm currently working on a fork/patch for both Radarr and Sonarr to fix the many problems with the (German) language detection, but it might take a while.
So yes, you are correct. You need to add a filter to the German Only custom format that detects german subbed like this:
Regex: german.*subbed
If it works please let me know or share your own solution :)

Is that needed with the latest Sonarr version?

If you don't want releases that have "German.Subbed" inside their release name to be (wrongly) recognized as German then yes

Having a kind of similiar problem with Sonarr but it's not about subbed releases.
Here's what my Custom Format Scoring looks like

And here's some releases that got grabbed even though they only included an english audio track

I guess the problem is the WEB-DL in the filename? Since DL in this case (probably) means "Download" and not "Dual Language"?

@choque88 Please share the quality section of your quality profile (right side).
Also, if you are using Scenenzbs, make sure to activate the Movies/TV DE category under Settings>Indexers>SceneNZBs

Here's the quality section

And you're right, I forgot to check those categories in Radarr and Sonarr. Changed that and will try again...

Edit: It's still grabbing english only episodes

Do you still have the problem?


How do I dynamically modify the ViewPortWidth configuration?

How do I dynamically modify the ViewPortWidth configuration?
I want to dynamically modify the RPX ratio to dynamically modify the font size

I would also like to know. So for instance I'd like to use a base ViewPortWidth of 1920px, but at @media (max-width: 992px) i'd like to use 992px as ViewPortWidth.

try https://github.com/hemengke1997/postcss-pxtoviewport


Added arm64 support to travis-ci.

Added arm64 with jdk 8 and 11. Openjdk-8-jdk is installed and PATH and JAVA_HOME is set according to it.
Installed maven for arm64 jobs.

Signed-off-by: odidev<EMAIL_ADDRESS>

Hi Team,
Can you plz review this PR?

Hi Team,
Can you please review this PR?

Hi Team, I have rebased the PR and resolved the conflicts. Can you please review the changes?

Hi Team,
Can you please review this PR?

Hi Team,
Can you please review this PR?


MatchResult dictionary for pattern rewrite

Consider a pattern such as Add(MatMul(X,Y), Z). Every successful match of this pattern in an input model will bind variables X, Y and Z to values in the IR representation of the model.
The existing two representations of MatchResult return a dictionary mapping the variable names (like "X") to a value. But one representation returns the IR-value that X is bound to, while the second representation returns the IR-value's name instead. It would be good to reconcile this difference.
My suggestion is to use the first one. This makes it easier for the user-code, because they use this to check things like the shape or type of the value X is bound to, or whether it is a constant-value, etc. Given the name, the users have to do an additional lookup on the model/graph to go from the name to the IR-value. And when we write a rule, we don't even have the model/graph available.
See examples in the repo or this document

Completed


filter out completion results that don't start with the replacement text

I'm not sure if this is going to work for all scenarios... I've done some basic testing with the new embeddable editor

closes dart-lang/dart-pad/#1014

added the case-insensitive piece. it's certainly fast on when the server is running locally :)


Search files/no collapsed results

This PR addresses Search modifications requested for Books viewlet :

Users wanted to see just the files without the matches being exposed in an expanded tree.
On click open the file instead of collapsing the results.

Summary: We added a new search property showOnlyFileWithoutCollapsedResults which is set only when launched from books viewlet. Added custom code on searchView to handle the above two requests when showOnlyFileWithoutCollapsedResults is set.
Behavior: Users only see result files and can open the file on click when they launch search from books viewlet. If they want the default behavior, they need to exit the search viewlet and open it again (every time search viewlet is open, we're resetting the values to default).
Search when launched from books viewlet:

Default search with collapsible results:

Please add a screenshot

@kburtram These changes only apply to searches from the Book viewlet - not as a general change to the search experience.
Not saying that your points aren't valid and should be discussed, but making sure it's clear that this isn't (supposed to at least) modify the default search experience for users.

@Charles-Gagnon having it scoped to Books is a good mitigation.  But having dynamic UX based on launch point, particularly with no visual indication to the user as to why, has been confusing when we've tried it in the past (and we backed out those types of changes).  I would rather see progress on a longer-term search solution, in my opinion, such as adding a Books section to the find in files experience that behaved like this.  Rather than bolting on different behaviors to existing experiences in an non-intuitive way.

We've decided to not go with this PR for April.
Main reason is not to confuse users with different experiences within 3 months span and to avoid dead code.
Alternative for now is using workspace search setting to "alwaysCollapse" search results, which alleviates some of the "ugliness" with existing experience.


Added mocha as dev dependency.

I am so sad, I had nearly finished the new GH css fix...
Here is all what is left ^^.

I am so sad, I had nearly finished the new GH css fix...

Oh noooo \o/

Here is all what is left ^^.

:+1:

w8 a few secs, I have got other fine tunings


Merge gate in Bamboo

Hi Team,
Currently our merge gate is in place for Develop.
The bamboo specs which is currently written runs the lane check_snapshot (which works absolutely fine for develop) which pulls the binaries from snapshot folder in artifactory
But for release we would like to run lane check_beta for the merge gates which will pull binaries from beta folder in artifactory. Any idea how this could be done via scripts in bamboo

Unfortunately the term "merge gate" don't mean anything to me, so I am not sure what you are asking here. You also didn't include your fastlane env output, so I have no idea what your lanes look like :/

Output of fastlane env below
✅ fastlane environment ✅
Stack

Key
Value

OS
10.14.5

Ruby
2.3.8

Bundler?
false

Git
git version 2.17.2 (Apple Git-113)

Installation Source
/usr/local/lib/ruby/gems/2.3.0/bin/fastlane

Host
Mac OS X 10.14.5 (18F132)

Ruby Lib Dir
<EMAIL_ADDRESS>

OpenSSL Version
OpenSSL 1.0.2q  20 Nov 2018

Is contained
false

Is homebrew
false

Is installed via Fabric.app
false

Xcode Path
/Applications/Xcode.app/Contents/Developer/

Xcode Version
10.1

System Locale

Variable
Value

LANG
en_AU.UTF-8
✅

LC_ALL

LANGUAGE

fastlane files:
No Fastfile found
No Appfile found
fastlane gems

Gem
Version
Update-Status

fastlane
2.123.0
💥 Check failed

Loaded fastlane plugins:
No plugins Loaded
Loaded gems

Gem
Version

did_you_mean
1.0.0

slack-notifier
2.3.2

rouge
2.0.7

xcpretty
0.3.0

terminal-notifier
2.0.0

terminal-table
1.8.0

plist
3.5.0

CFPropertyList
3.0.0

public_suffix
2.0.5

addressable
2.6.0

multipart-post
2.0.0

word_wrap
1.0.0

tty-spinner
0.9.0

babosa
1.0.2

colored
1.2

highline
1.7.10

commander-fastlane
4.4.6

faraday
0.15.4

unf
0.1.4

domain_name
0.5.20180417

http-cookie
1.0.3

faraday-cookie_jar
0.0.6

fastimage
2.1.5

gh_inspector
1.1.3

mini_magick
4.5.1

multi_json
1.13.1

multi_xml
0.6.0

security
0.1.3

xcpretty-travis-formatter
1.0.0

bundler
1.17.3

faraday_middleware
0.13.1

naturally
2.2.0

simctl
1.6.5

uber
0.1.0

declarative
0.0.10

declarative-option
0.1.0

representable
3.0.4

retriable
3.1.2

mime-types
3.2.2

signet
0.11.0

memoist
0.16.0

googleauth
0.6.7

httpclient
2.8.3

google-api-client
0.23.9

google-cloud-env
1.0.5

google-cloud-core
1.3.0

digest-crc
0.4.1

google-cloud-storage
1.16.0

tty-cursor
0.6.1

tty-screen
0.7.0

json
2.2.0

io-console
0.4.5

excon
0.64.0

rubyzip
1.2.3

mini_portile2
2.4.0

nokogiri
1.10.1

atomos
0.1.3

claide
1.0.2

colored2
3.1.2

nanaimo
0.2.6

xcodeproj
1.9.0

unicode-display_width
1.6.0

jwt
2.2.1

os
1.0.1

psych
<IP_ADDRESS>

mime-types-data
3.2019.0331

generated on: 2019-08-07


Discuss merging strategy for this repo

The contributing.md document (Merging Strategy section) states that non-linear merges are the preferred strategy. However, this hasn't been explicitly discussed.
Discuss the merging strategy and either:

select another merging strategy and document it. Close the issue.
or
accept the documented section as is. Close the issue.

@MS-Santi I don't see anything in the Contributing.md section.
I do see that the merging strategy for this repo is already configured to disable merge commits (and our default is squash and merge).
Seems that the merging strategy has already been defined, so I'm going to close this.


StorageLinkedMap trait does not provide hashed_key_for equivalent

I've been migrating from 1.0 to 2.0 and one of the pain points I've had is there used to be a key_for method available on all map types. Somehow now they don't all share some common trait (which seems like a slip backward in usability of the api).
I would expect the linked map and double map to both provide a hashed_key_for method - ideally through some common trait that all maps share.
But, as it stands, although https://substrate.dev/rustdocs/master/srml_support/storage/generator/trait.StorageLinkedMap.html#method.storage_linked_map_final_key exists, it is inaccessible (seemingly due to some macro weirdness generating traits behind hidden_include modules).
The functions on https://substrate.dev/rustdocs/master/srml_support/storage/trait.StorageLinkedMap.html are accessible, but provide no way for me to even get the storage prefix, and hence I'm forced to manually re-implement storage_linked_map_final_key in a way that I can access.
Overall pleased with a lot of the improvements in 2 but this one felt like a bit of a regression

Why do you need these methods?

I wanted to remove this method for all storage map actually. I would be interesting by your usecase as well.
Also the generator should be accessible at https://crates.parity.io/srml_support/storage/generator/trait.StorageLinkedMap.html

The use-case here is constructing the right hash I need to pass to the getStorage JSON RPC call. I found I wasn't able to call anything on the generator trait, even after trying to bring it into scope a bunch of different ways.
If there's a much simpler way to get the data I want from RPC in 2.0 now, I'm all ears :smile:

diff --git a/srml/staking/src/lib.rs b/srml/staking/src/lib.rs
index 23f0d7715..960c5f2d8 100644
--- a/srml/staking/src/lib.rs
+++ b/srml/staking/src/lib.rs
@@ -1037,6 +1037,8 @@ impl<T: Trait> Module<T> {
                controller: &T::AccountId,
                ledger: &StakingLedger<T::AccountId, BalanceOf<T>>
        ) {
+               use support::storage::generator::StorageLinkedMap;
+               Validators::<T>::storage_linked_map_final_key(&T::AccountId::default());
                T::Currency::set_lock(
                        STAKING_ID,
                        &ledger.stash,

I don't see the problem?

@bkchr Weird. I wasn't able to get that to compile before, kept complaining about some generated hidden namespaces inside the macro, but now it's working fine. I might've had two things going on at once conflicting with each other.
I think it'd still be nice if there was a common trait for getting the storage keys, unless there is/will be an improved mechanism for looking up stored values via rpc.
Thanks!

There can not be a common trait, as a StorageValue does not hashes the key for example.
Your problem was that you did not import the corresponding trait and so, rustc recommended to import the trait from our hidden imports.

@bkchr
There easily could still be a common trait. You could have a key_for() -> StorageKey. The key would either be hashed or not, as appropriate for the type. If you need to know if it was, it could return an enum with Hashed and Unhashed variants.
So, definitely possible, and the kind of thing that I think improves usability for people getting started with the platform.

This is all internal api that can change in any moment, just how the key is build is fixed.
For a StorageValue a single key_for() works, but for a map this doesn't work. key_for for a map requires the key as input to generate you the final storage key. A double map even requires 2 keys to generate the final key. You see, there is no real common interface.

People starting with Substrate should use the provided tools, if you come to the point where you want to reimplement some internals, fine, but then you need to use either unstable internal apis or generate the keys on your own.
Given your description, I assume that you build a rpc client? Why do you not use the metadata? The metadata already contains the required data for you. If you not use the metadata, your rpc client will only work for one specific runtime.

Maybe if you describe your use case better and what you want to do, we can help you better.

Sorry for the late reply.
Sure, I see how the interface isn't precisely common across all storage types, but there could at least be one for maps, and someone added exactly what I was getting at in any case, which is all I really wanted: https://github.com/paritytech/substrate/pull/4120
Yes, I am building an rpc client (though it only needs to be specific to my runtime). I'd like to use the metadata, unfortunately I can't find much in the way of documentation on how to actually do that. I'm not trying to re-implement internals, in fact I would love to avoid that - that's exactly why I opened this item. I can find this: https://substrate.dev/docs/en/next/runtime/runtime-metadata
Which helps me get the metadata, but it doesn't help much in terms of telling me how to actually use it. It doesn't particularly help with this situation, for example. Metadata for a linked map looks something like:
 {
                  "name":"PendingMints",
                  "modifier":1,
                  "type":{
                     "Map":{
                        "hasher":"Blake2_256",
                        "key":"FiatReqNonce",
                        "value":"PendingMint",
                        "linked":true
                     }
                  },
                  "fallback":"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
                  "documentation":[

                  ]
               }

This data helps me with knowing which hasher to use, but I still would need to know how exactly to construct the storage hashes to get items in the map over RPC, and that process is difficult to figure out from documentation. I've just had to read source like https://substrate.dev/rustdocs/master/src/srml_support/storage/generator/linked_map.rs.html#43-76
I think the bigger story here is that I'm asking these questions that might seem wrong because it's hard to figure out what the right path is purely from docs.
Thanks!

You don't need these interfaces, as they are only usable from within the runtime. When you have the metadata, you can do the following. Here is documented on how to calculate the keys for the storage. So, for example to access the head key:
blake2_256("head of " ++ "NAME_OF_YOUR_MODULE" ++ "  " ++ "MyMap")
To access a value:
blake2_256("NAME_OF_YOUR_MODULE" ++ " " ++ "MyMap" ++ KeyYouWantToAccess)
NAME_OF_YOUR_MODULE is also available in the metadata.


decode fails at _decode_outputs sufficient length check throwing error on valid transaction

$hex = "0100000001552eed137888e6a6c2c69ded505d9e573c3d78ab0f478ecbdaf74b99b40f350d010000006b483045022100d958e320b5bbc700e7862b7832fc86d18f50be7a272399c38b35a6aecd471d68022014a02f0387a0971c4e06cac086d662615a3e07a0323e1f138d96c54c7f6aaead012102af6034f808ee5989a7ea0304cc7d464edb22a86d362739aeb4e52e759436b7f5ffffffff0240480801000000001976a91415df9c5643a3ef61ee05a92a7703f47a4ffbbcdb88ac8b0361695e0000001976a91490967f997eda3a1c0bd4358b3cd19824e46538b688ac00000000";

RawTransaction::decode($hex, '6f', 'c4');

decoding works fine if i comment out the throw

hmm, you're right, @afk11 I think it should be substr($tx, 16, 2) in _decode_outputs because it's supposed to get the script length varInt.
but since its a varInt doing substr($tx, 16, 2) is not really correct either, see PR https://github.com/Bit-Wasp/bitcoin-lib-php/pull/68 to fix this

Hmm, yeah that's not right. Depending on the usage it could die on a transaction it created itself. I'll have a look at properly decoding varints, as their length can be > 1 byte..

Not closing this just yet as there still technically is a problem in how the library loads varints, I'll follow up with a PR for this.


Attempt to Rename Database in OE Failed

(Latest insiders, Windows)
Right click on a database -> Rename.
Expected: rename succeeds
Actual: Get error message in tasks pane:
Rename database 'Northwind' to 'Northwind2': An error occurred while renaming database 'Northwind' to 'Northwind2'. Error parsing message contents
...
Error converting value "Database" to type 'Microsoft.SqlTools.ServiceLayer.ObjectManagement.SqlObjectType'. Path 'params.objectType', line 1, position 573. ---> Requested value 'Database' was not found.

(note: connected to local docker sql instance)

I see renaming 'Database' is probably not supported by Object Management Service..
@alanrenmsft can you confirm? Is it something that SMO supports?
If not, we should probably remove 'Rename' operation from 'Database' objects.

Fixed with #2030


Typescript types out of date for generated file

I've had an issue for a while where the lint results shown from VSCode seem to use out-of-date types for generated types. This comes about in two ways:

I generate graphql types using some codegen (I modify schema.graphql, which generates some types in __generated__/schema.graphql.ts)
I modify source types in another package of a monorepo and rebuild, generating new types in /dist/index.d.ts (note that the dist folder is referenced rather than source to ensure separate compilations, with separate typescript settings potentially)

The result is that I get lint issues such as "Unsafe call of an any typed value." because the linter doesnt seem to know that something exists. When I run tsc or eslint directly via terminal, the issues are not present. This seems to indicate the extension (or eslint server) may be doing some special caching of the types which fails to re-evaluate files modified by codegen. The only easy way to fix this is by reloading the window or restarting the eslint server.
Note that the Typescript tooltips in vscode do correctly reflect the types, so I will see somethign like this:

(Notice that Typescript knows the function returns a "string", yet the eslint extension complains about an "any" type)
Interestingly if I have the generated file open in VSCode when I run the codegen (ex. I open __generated__/schema.graphql.ts then run codegen), it seems to correctly detect that the file changed and updates the linting shortly after.

@alex-statsig this is something the TypeScript ESLint plugin needs to address and to my knowledge they have an issue for this. It is that plugin that caches the types. The Extension doesn't know anything about this.

@alex-statsig this is something the TypeScript ESLint plugin needs to address and to my knowledge they have an issue for this. It is that plugin that caches the types. The Extension doesn't know anything about this.

I filed it here because I don't run into the issue when running lint in my terminal though, only through the plugin. Perhaps only the plugin is using caching, but then what caching mode is being used which causes the issue? (I know some of lint's cache modes are not guaranteed to give correct results)

When you run eslint in the terminal it is a new process on every run. That it is why it works there. Fror performance reasons the extension runs a server which reuses eslint. Otherwise validate on typing would be slow. TypeScript in general supports such a server mode. So the eslint plugin could as well.
You can use tasks to execute eslint freshly for validation. But as said that has performance implications.

The plugin maintainers pinged be here to see if there is something we can find out to make the work better: https://github.com/microsoft/vscode-eslint/issues/1774

@dbaeumer The distinction here compared to https://github.com/microsoft/vscode-eslint/issues/1774 is that it only seems to apply to generated files.
For example:
If I have file A.ts referencing a type from file B.ts both in the same local package, and I update the contents of file B.ts, I can return to file A.ts and see the relevant linting errors (Ex. @typescript-eslint/no-unsafe-call if I typo the name of a function, but not if it matches the name I just added).
However, when the change is codegen (two examples of this are a monorepo where the source .ts file generates built .d.ts files, or graphql code-gen type generation; the former being very common and painful), the changes are not reflected in A.ts until I restart eslint. This means any function calls will show up failing "@typescript-eslint/no-unsafe-call" regardless of if they dont exist or do exist.
It's possible I'm incorrect about the exact details of the trigger here (i.e. that its codegenned), but it definitely seems different from https://github.com/microsoft/vscode-eslint/issues/1774 because of the circumstances which it does / doesn't cause issues for me.


show written labels instead of only color-based visual cues

Is your feature request related to a problem? Please describe.
I was annotating some data and found it difficult to recall colour-label combinations. I love the visual colour cues but it remains difficult to remember the actual labels.

Describe the solution you'd like
A way to continuously show the written labels during annotation.

Describe alternatives you've considered
Recall colours and labels.
Additional context
N.A.

Closing this issue, as this improvement has now been incorporated into the SpanQuestion in Feedback datasets. v1.26.0


Add howto for WKWebViewOnly

We recently got a lot of duplicate questions about the WKWebViewOnly flag. I think we should post this quick reference to direct people towards until the new cordova-ios major release is released.
Most of the text is copied from @erisu s response https://github.com/apache/cordova-ios/issues/661#issuecomment-599500855 and this issue thread is a good example why we need such summary.
I would love to hear feedback and fixes for this post and post this in the next days.

@erisu Thank you for your edits. Good to merge and deployment?

Great, thanks Niklas!


New Version of IPhone App Rejected

In-App Purchase Programming Guide
Which method would I call in a "restore" button ?

This issue has a similar type of discussion :
https://github.com/dooboolab/react-native-iap/issues/90
Although I have no consumables, it is just a single purchase for each install.
Using V0.7.0

This also has a similar discussion.
https://github.com/dooboolab/react-native-iap/issues/3

As descried in dooboolab/react-native-iap#90, you should have restore button inside your app to solve this restriction. The Apple reviewer is not a developer, they are just normal user who follow Apple's ux guideline.

As descried in dooboolab/react-native-iap#90, you should have restore button inside your app to solve this restriction if it isn't a consumable. The Apple reviewer is not a developer, they are just normal user who follow Apple's ux guideline.

As descried in dooboolab/react-native-iap#90, you should have restore button inside your app to solve this restriction if it isn't a consumable. The Apple reviewer is not a developer, they are just normal user who follow Apple's ux guideline.


Upload legit version to Modrinth

This is a request to upload the legit version of Odin to Modrinth (Modrinth doesn't allow cheats so only the legit version can be uploaded). Most major skyblock mods now have downloads available on Modrinth which allows people using Prism or Modrinth launcher to automatically update their mods, which would be very useful.

Odin is planned to be uploaded to modrinth once it is stable and useable to avoid releasing a mod that isn't functional


[Arbimon Legacy] Remove related code to recordings.mic recorder and version columns removal

Ant:

I don’t think we can just delete the 3 columns because some users might want this data. I was thinking to move the data into the meta column, but now i suspect that it won’t make much difference to reducing the table size.
4:48
So perhaps we have to leave those 3 columns for now.


[Event Request] codeunit 378 Transfer Extended Text - Function InsertPurchExtTextRetLast

Dear ALAppExtensions Team,
We would like to request the following event publisher in codeunit 378 function InsertPurchExtTextRetLast, of course without the prefix DIN.
    OnBeforeInsertPurchExtText(PurchLine, TempExtTextLine, IsHandled, MakeUpdateRequired);
    if IsHandled then
        exit;

    ToPurchLine.Reset();
    ToPurchLine.SetRange("Document Type", PurchLine."Document Type");
    ToPurchLine.SetRange("Document No.", PurchLine."Document No.");
    ToPurchLine := PurchLine;
    // DINNL <<
    DINOnInsertPurchExtTextOnBeforeFindNext(ToPurchLine);
    // DINNL >>
    if ToPurchLine.Find('>') then begin
        LineSpacing :=
          (ToPurchLine."Line No." - PurchLine."Line No.") div
          (1 + TempExtTextLine.Count);
        if LineSpacing = 0 then
            Error(Text000);
    end else
        LineSpacing := 10000;

local procedure DINOnInsertPurchExtTextOnBeforeFindNext(var PurchaseLine: Record "Purchase Line")

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. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


MSF4j Service to receive analytics zip files from Microgateway

Purpose
MSF4J service to upload stats from microgateway. This endpoint can only be invoked using credentials of a user who has admin role in SP.
This PR also consists of auto-generated code using swagger2ms4j plugin.

@isharac @pubudu538 @praminda changes done


Use 'kubernetes.io/tls' instead of SecretTypeTLS which is not being substituted

/assign @sttts

/lgtm
/approve


Binding Ctrl+X such that it does not delete a blank line if no selection is present

Issue Type: Bug
I oftentimes switch between Visual Code and Emacs. Emacs uses a combination Ctrl-X Ctrl-S to save a file. Unfortunately, Ctrl-X on Visual Code uses Ctrl-X to delete a line if no selection is present. I tried to change the Ctrl-X behavior by using the When clause in the keybindings. I have set the When clause to "editorHasSelection && editorTextFocus", but this seems to have no impact on the Ctrl-X key behavior, it still deletes a line when there is no selection.
I am looking for work arounds. I have searched for other options to disable this functionality, but have been unable to find one yet.
VS Code version: Code 1.48.2 (a0479759d6e9ea56afa657e454193f72aef85bd0, 2020-08-25T10:13:11.295Z)
OS version: Windows_NT x64 10.0.17763
Remote OS version: Linux x64 4.4.0-17763-Microsoft
Extensions (14)

Extension
Author (truncated)
Version

python-snippets
cst
0.0.8

remote-wsl
ms-
0.44.5

vscode-autohotkey
sle
0.2.2

TabOut
alb
0.2.0

save-as-snippet
art
0.0.1

excel-to-markdown-tabl

This can be controlled via "editor.emptySelectionClipboard". You can set it to false.


Remove unnecessary stdio.h from gdextension interface

Nothing in gdextension_interface.h depends on stdio.h.

Thanks!

Btw I wouldn't bother myself removing this kind of stuff - it doesn't really affect performance or program size.

I was testing out gdextension with Zig.
When importing a C header, it only provides a stdio.h if you explicitly link against libc. I'm not sure if it's a good design decision for Zig. But removing this inclusion makes both sides clean & happy :stuck_out_tongue:


[Feature Request]: Add TeamsAttachmentDownloader in Python SDK

Scenario
To support inline image inputs for user, a TeamsAttachmentDownloader which can be configured in Application is needed.
Just like what is done in JS.
Solution
The class should be used like this:
downloader = TeamsAttachmentDownloader(
  botAppId=config.APP_ID,
  adapter=TeamsAdapter(config),
)
app = Application[TurnState](
    ApplicationOptions(
        bot_app_id=config.APP_ID,
        storage=storage,
        adapter=TeamsAdapter(config),
        ai=AIOptions(planner=planner),
    ),
    downloader=downloader
)

Additional Context
No response

Hi @frankqianms, thanks for the suggestion and proposed implementation! Closing as we already have this tracked as an upcoming feature through #1331 - estimated release around early May.


Enable test on windows

This does not solve #3 completely, but there are some improvements.

bors r+


Show Azure storage container region (WOR-740).

At some point, the region was added to the controlledResourceMetadata.

Integration test failures (IA tests) are unrelated. I added the list of regions from https://github.com/DataBiosphere/terra-ui/pull/3724.


fix(run-ignite): defaults and forward pkg mgr

What it does

Fixes cli input to Ignite, removes some undefined string that got carried on into the name and project directory
Forwards on the user's package manager choice from create-expo-stack

What it looks like
create-expo-stack CesIgnite2 --npm --ignite

create-expo-stack CesIgnite --yarn --ignite

@frankcalise just to make sure, running the CLI without passing a project name still works yeah?
create-expo-stack --npm --ignite
Also, any feedback on the contributing guide?
Lastly, did you make sure that the tests still pass?

@danstepanov
Pushed a commit for the default project name. For some reason, Ignite requires PascalCase, so I put that detail in here for now but I'll look to ask the team why (might just be a legacy thing that can go away - if so I'll fix upstream and come back here to let the kebab-case through).
Tests pass, although there isn't an Ignite specific one at the moment.  Do you want one added specifically for that?
The assertion seems light other than the right package manager was chosen in this case? Did you want to check package.json contents or dir structure at all?
The contributing guide worked just fine

@frankcalise the tests are pretty light atm, yea, will need something more sophisticated (a separate issue). For now, no need to add a test.


Fix prop types in Section and Grid to prevent yellow box warnings

Nice one @DaKaZ !  I'm getting this too.

Yes!  I'm running into this as well @DaKaZ.  This should be easy to review.  @MislavMandaric - any chance you could check it out soon and merge?

Hi, thank you for contribution.
I will merge the PR, we just need to update master to the new circleci build script, I have opened the PR to do so https://github.com/axilis/react-native-responsive-layout/pull/42 once it is merged tomorrow, you can rebase on master and we will release patch update to npm.

The test is failing since the peer dependency for library is older version react-native which doesn't have the support for ViewPropTypes: https://github.com/facebook/react-native/issues/14032#issuecomment-360607525
Likely we can bump the peer-dependency version since the one referenced is outdated these days.

@srolija Please see the updated deps I needed to complete this PR.

Seems ok, can you just update the README.md to mention it RN 0.52 is a requirement. Then I will merge it to master.

@srolija sorry for the delay, its updated  👍

Sweet!  One of my yellow warnings is about to go away!

@srolija Does the README.md update look good?

Yeah, I merged it, will bump up version and release it to npm this weekend, in meanwhile you can reference the master commit.


Bad URL to Erlang for Ubuntu

When trying to launch/provision the Vagrant box via vagrant up or vagrant provision, I'm getting this error:
TASK [switchboard : download the erlang deb] ***********************************
fatal: [default]: FAILED! => {"changed": false, "dest": "/tmp/erlang.deb", "failed": true,
"msg": "Request failed", "response": "HTTP Error 404: Not Found", "state": "absent",
"status_code": 404,
"url": "http://packages.erlang-solutions.com/site/esl/esl-erlang/FLAVOUR_3_general/esl-erlang_17.1-1~ubuntu~trusty_amd64.deb"}

Note that it's not a timeout error. I went poking around on packages.erlang-solutions.com and discovered that the URL should be http://packages.erlang-solutions.com/site/esl/esl-erlang/FLAVOUR_1_general/esl-erlang_17.1-1~ubuntu~trusty_amd64.deb (note that it's FLAVOUR_1_general, not FLAVOUR_3_general).

I'm testing a fix for this currently. Hopefully I'll have a PR for you soon.

Closing in favor of #60


[Roadmap] 1.1.0 Roadmap

@dmlc/xgboost-committer please add your items here by editing this post. Let's ensure that

Each item has to be associated with a ticket
Major design/refactoring are associated with a RFC before committing the code
Blocking issue must be marked as blocking
Breaking change must be marked as breaking

For other contributors who have no permission to edit the post, please comment here about what you think should be in 1.1.0.

[x] Add Survival analysis objective: Accelerated Failure Time (#4763)
[x] Optimized ApplySplit and UpdatePredictCache functions on CPU (#5244). This concludes the 'hist' optimization work by @SmirnovEgorRu. Roadmap: #5104
[x] Refactored setup.py (#5271, #5280)
[x] Gradient based sampling for GPU Hist (#5093)
[x] Wide dataset quantile performance improvement (#5306)
[x] Thread safe in-place prediction (#5389).
[ ] JSON serialization of R XGBoost object (#5123)
[ ] DMatrix refactoring (WIP) (#5327, #5220, #5302, #5312, #5315, #5321). RFC #4354, Roadmap #5143
[ ] Pass feature count from JVM to native layer (#5199, #5202, #5303)
[x] Deterministic GPU Histogram building (#5023).

Proposal: this time, let us not wait too long until the next release.

@JohnZed @datametrician

Please Add Survival analysis objective: Accelerated Failure Time https://github.com/dmlc/xgboost/issues/5337

LGTM especially #5023. Thanks @hcho3!

@avinashbarnwal See the first item in the list.

@tqchen I will look.

@CodingCat can please you help us resolve the last JVM issue for the release?

Reverting the status for DMatrix refactoring.

@trivialfis Is DMatrix refactor blocking 1.1.0 release?

@hcho3 I just want https://github.com/dmlc/xgboost/pull/5504 before 1.1, the PR fixes prediction on device dmatrix which is part of dmatrix refactoring.   Also, the weighted sketching is not yet implemented for device dmatrix, but this is not blocking.

Also please let me give a deeper look into https://github.com/dmlc/xgboost/issues/5285 .  Will continue profiling in coming days.

Got it. I am now reviewing #5123.

Labelled https://github.com/dmlc/xgboost/issues/5529 as breaking.

@tqchen I cannot reproduce the issue in apache/incubator-tvm#4953.

I cannot reproduce the issue in apache/incubator-tvm#4953.

@tqchen Neither can I.
@hcho3 I'm happy to make the next release.

#5209 is marked as blocking.

@hcho3 All blocking bugs are closed.  Can we branch out?  What can I help with the release process?

@trivialfis If you can provide a summary of your contribution that would be great.

@hcho3 Here is a lists of PR that are related to me, I omitted some trivial changes.
Python

Rewritten setup.py for aligning with Python package convension. (#5271, #5280)

[Breaking] Now the scikit-learn featured package is called
xgboost[scikit-learn] instead of xgboost[sklearn] (#5310).

Enable parameter validation for scikit-learn interface. (#5477)

Fix booster checks in scikit-learn interface. (#5505)

Document update for cache and parameter validation. (#5517)

Fix scikit-learn nan tag for accepting inputs containing nan. (#5538)

Assert matching length of evaluation inputs in scikit-learn interface. (#5540)

R

R can now call xgb.config to get a JSON representation of internal
configuration from booster.
Full raw serialization with model and parameters, which is used by bst$raw. (#5123)
Fix r interaction constraints when number of features is greater than 1e5. (#5543)
Fix dropped booster attributes by restoring attributes in
xgb.Booster.complete. (#5573)
Enable parameter validation. (#5569)

JVM

Add JVM_CHECK_CALL macro in JVM C++ wrapper, this avoids some segfaults when
dmlc::Error is thrown in C++. (#5199)
Pass number of features from JVM to C++.  Lower level code now doesn't have to guess the
data shape. (#5202)

C++

Refactor prediction cache. (#5302, #5220, #5312)
Now XGBoost caches all DMatrix, and release the cache once DMatrix is expired.
This way users no longer have to delete the booster before deleting DMatrix.
Also the caching logic is simplified.

Run GPU prediction on Ellpack page, which is part of the DMatrix refactoring. (#5327)

Various fixes for pruner. (#5335, #5504)

Deterministic GPU histogram. Regression and classification are now deterministic for GPU
Hist tree method. (#5361)

[maintenance] Split up LearnerImpl. (#5350)

Check whether current updater can modify a tree, avoids using wrong updaters. (#5406)

Force GPU compressed buffer to be 4 bytes aligned to fix running
cuda-memcheck. (#5441)

[maintenance] Refactor tests with data generator. (#5439)

Reduce span check overhead. (#5464)

[maintenance] Upgrade clang-tidy on CI, fixing all previously not detected errors in
header files (#5469)

Fix GPU tree statistic.  Requires setting leaf stat when expanding tree. (#5501)

Remove distcol updater. (#5507)

[maintenance] Unify max nodes. (#5497)

[Breaking] Remove makefiles. (#5513)

Fix loading binary model by adding a header. (#5532)

Fix slice and get info for classification and Accelerated failure time training. (#5552)

Fix non-openmp build. (#5566)

Group aware GPU sketching, now GPU sketching algorithm can handle per-group
weight. (#5551)

Fix configuration status with loading binary model. (#5562)

Dask

Integrate DMLC_TASK_ID for rabit initialization for better logging messages. (#5415)
Fix prediction result when the order of partitions on different workers are not
consistent. (#5416)
Honor nthreads from dask worker. (#5414)
Accept inputs other than DaskDMatrix for prediction, now dask package can return a
series when input is a dataframe. (#5428)
Fix ignored missing value for dask scikit-learn wrapper. (#5435)

General

Thread safe, inplace prediction. (#5396, #5389, #5512)
Now users can use inplace_predict on Python and C for thread safe, lock free
prediction on both CPU and GPU inputs.

[Breaking] silent parameter is completely removed.  Setting it will no-longer have any
effect.

[Breaking] Set output margin to True for custom objective. (#5564)
Now both R and Python interface custom objectives get un-transformed prediction
outputs.

CLI

Fix model dump. (#5485)
Fix CLI model IO. (#5535)
Remove hard coded seed. (#5563)

I'll create new release branch after #5577.

All blockers have been addressed. I will start a new release branch.

1.1.0 is now released.


Add a command that provides detailed information about a job

It is currently hard to provide the correct feedback to users in just the job listing overview:

Show command and arguments used to run the job
Show all events that happened with the underlying error

We probably want a job status or job describe command that shows this

@advanderveer do you think it should be added to the milestone 1.3?


Fix pileup data location in global workqueue

Fixes #10040
Status
ready
Description
MSTransferor does not make pileup container level rules with grouping=DATASET, thus when a workqueue element is getting created, pileups always have an empty location until the LocationUpdateTask thread kicks in and update those elements (that thread does not filter by grouping type!).
Is it backward compatible (if not, which system it affects?)
yes
Related PRs
none
External dependencies / deployment changes
none

Works fine!


Just a minor spelling-thing this.

The text:
"enabling you to grant permissions to a directly to a specific playbook"
Is probably intended to read "enabling you to grant permissions directly to a specific playbook "

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

ID: 95a6bcf5-2399-cbdf-aed4-12fd4a3fd887
Version Independent ID: 2dc6c43b-20af-5169-71ef-f89af205d3e8
Content: What's new in Azure Sentinel
Content Source: articles/sentinel/whats-new.md
Service: azure-sentinel
Sub-service: azure-sentinel
GitHub Login: @batamig
Microsoft Alias: bagol

@injosef Thank you for your feedback . We will investigate and update the thread.

@injosef This has been fixed and closed in MicrosoftDocs/azure-docs-pr/pull/145439. Thank you @batamig for fixing this.


Fix for superlu_dist 6.3.

Some SuperLU_Dist structures are now prefixed with 'd' (real double) or 'z' (complex double), etc. so that codes can link both real and complex versions of the SuperLU_Dist library.
See https://portal.nersc.gov/project/sparse/superlu/changes.html#slu_dist_change

PR
Author
Editor
Reviewers
Assignment
Approval
Merge

#1528
@pghysels
@tzanio
@stefanhenneking + @tzanio
06/08/20
06/08/20
⌛due 06/10/20

One question: Did you fix this for MFEM complex version? The current fix seems specific for the real version.

MFEM only uses the real double precision interface

Merged in next for testing...

LGTM


Update DataRow.php

Adds a fix for saving relations on bread
because of the $value could be already a valid JSON there is NO need to encode it again. it causes an error when trying to decode it back to an object!

But that value shouldn't already be a json string. Anywhere you store that value, you should be passing an associative array, and the setter will handle converting it. When you get the value back, it will automatically convert it back

I thought so too, but when I tried to create a new relation in the database BREAD creator i got an exception. And when i looked under the hood i noticed that the value is being sent as a string and not as an array nor even as an object.

You have more information on this?
Exceptions, Stacktrace and so on?

You have more information on this?
Exceptions, Stacktrace and so on?

Sure, here is a stacktrace:
[2018-11-14 09:28:35] local.ERROR: Trying to get property 'type' of non-object (View: /Users/alexrb/Development/RoutePerfect/DataStore/vendor/tcg/voyager/resources/views/tools/bread/relationship-partial.blade.php) (View: /Users/alexrb/Development/RoutePerfect/DataStore/vendor/tcg/voyager/resources/views/tools/bread/relationship-partial.blade.php) {"userId":1,"email":"alex.r@routeperfect.com","exception":"[object] (ErrorException(code: 0): Trying to get property 'type' of non-object (View: /Users/alexrb/Development/RoutePerfect/DataStore/vendor/tcg/voyager/resources/views/tools/bread/relationship-partial.blade.php) (View: /Users/alexrb/Development/RoutePerfect/DataStore/vendor/tcg/voyager/resources/views/tools/bread/relationship-partial.blade.php) at /Users/alexrb/Development/RoutePerfect/DataStore/storage/framework/views/c82d2041b0a73b283acb45fa68198bf85feae16c.php:55, ErrorException(code: 0): Trying to get property 'type' of non-object (View: /Users/alexrb/Development/RoutePerfect/DataStore/vendor/tcg/voyager/resources/views/tools/bread/relationship-partial.blade.php) at /Users/alexrb/Development/RoutePerfect/DataStore/storage/framework/views/c82d2041b0a73b283acb45fa68198bf85feae16c.php:55, ErrorException(code: 0): Trying to get property 'type' of non-object at /Users/alexrb/Development/RoutePerfect/DataStore/storage/framework/views/c82d2041b0a73b283acb45fa68198bf85feae16c.php:55)
[stacktrace]
#0 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php(45): Illuminate\View\Engines\CompilerEngine->handleViewException(Object(ErrorException), 1)
#1 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(59): Illuminate\View\Engines\PhpEngine->evaluatePath('/Users/alexrb/D...', Array)
#2 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/View/View.php(142): Illuminate\View\Engines\CompilerEngine->get('/Users/alexrb/D...', Array)
#3 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/View/View.php(125): Illuminate\View\View->getContents()
#4 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/View/View.php(90): Illuminate\View\View->renderContents()
#5 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/Http/Response.php(42): Illuminate\View\View->render()
#6 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/symfony/http-foundation/Response.php(202): Illuminate\Http\Response->setContent(Object(Illuminate\View\View))
#7 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/Routing/Router.php(747): Symfony\Component\HttpFoundation\Response->__construct(Object(Illuminate\View\View))
#8 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/Routing/Router.php(719): Illuminate\Routing\Router::toResponse(Object(Illuminate\Http\Request), Object(Illuminate\View\View))
#9 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/Routing/Router.php(679): Illuminate\Routing\Router->prepareResponse(Object(Illuminate\Http\Request), Object(Illuminate\View\View))
#10 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(30): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#11 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/tcg/voyager/src/Http/Middleware/VoyagerAdminMiddleware.php(27): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#12 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(151): TCG\Voyager\Http\Middleware\VoyagerAdminMiddleware->handle(Object(Illuminate\Http\Request), Object(Closure))
#13 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#14 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(41): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#15 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(151): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#16 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#17 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(75): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#18 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(151): Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle(Object(Illuminate\Http\Request), Object(Closure))
#19 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#21 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(151): Illuminate\View\Middleware\ShareErrorsFromSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#22 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#23 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(63): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#24 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(151): Illuminate\Session\Middleware\StartSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#25 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#27 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(151): Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(Object(Illuminate\Http\Request), Object(Closure))
#28 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#29 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(66): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#30 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(151): Illuminate\Cookie\Middleware\EncryptCookies->handle(Object(Illuminate\Http\Request), Object(Closure))
#31 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#32 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(104): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#33 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/Routing/Router.php(681): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#34 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/Routing/Router.php(656): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#35 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/Routing/Router.php(622): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#36 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/Routing/Router.php(611): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#37 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(176): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#38 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(30): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#39 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(31): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#40 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(151): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#41 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#42 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(31): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#43 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(151): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#44 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#45 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#46 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(151): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php(62): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#49 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(151): Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure))
#50 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#51 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/voyager-redirects/src/Http/Middleware/VoyagerRedirectMiddleware.php(27): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#52 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(151): VoyagerRedirects\Http\Middleware\VoyagerRedirectMiddleware->handle(Object(Illuminate\Http\Request), Object(Closure))
#53 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#54 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(104): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#55 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(151): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#56 /Users/alexrb/Development/RoutePerfect/DataStore/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(116): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#57 /Users/alexrb/Development/RoutePerfect/DataStore/public/index.php(53): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#58 {main}
"}

I guess thats somewhere around here?
voyager/resources/views/tools/bread/relationship-partial.blade.php
Lines 41 to 44 in 4b6b3a3
type) && $relationshipDetails->type == 'hasOne'){{ 'selected="selected"' }}@endif>{{ __('voyager::database.relationship.has_one') }}
type) && $relationshipDetails->type == 'hasMany'){{ 'selected="selected"' }}@endif>{{ __('voyager::database.relationship.has_many') }}
type) && $relationshipDetails->type == 'belongsTo'){{ 'selected="selected"' }}@endif>{{ __('voyager::database.relationship.belongs_to') }}
type) && $relationshipDetails->type == 'belongsToMany'){{ 'selected="selected"' }}@endif>{{ __('voyager::database.relationship.belongs_to_many') }}
There's only getting something from details, not setting.

Right but, the problem is when tou save the new relation it was saved as:
$example = json_encode('{"foo":"bar"}')
$this->atributes['some_attribute'] = json_encode($example) // double encoded!
And when the view is trying to decode the property it is still a string and thats why you get the error.

Closing as this is not necessary.


Nested Rooms in React causing error

Bug Report
In my application, I have a 'home' room and then session rooms. Currently I have the application structured like:
<>
   <RoomProvider id="home">
        ... other stuff ...
       <Suspense fallback={<Loader />}>
         <RoomProvider={sessionId} initialStorage={{ input: new LiveObject({ value: '' }) }}>
             <Suspense fallback={<Loader />}>
               <MyComponent />
             </Suspense>
         </RoomProvider>
       </Suspense>
   </RoomProvider>
</>

and in MyComponent I would like to set the input.value as the user types like:
  const updateInput = useMutation(
    ({ storage }, value) => {
        storage.get("input").set("value", value);
    },
    []
  );

however, whenever I run the follow I get an error BEFORE storage.get is even hit when invoking updateInput that reads:
This mutation cannot be used until connected to the Liveblocks room

however, if I put the following code above the invocation of the updateInput function:
    const room = useRoom();
    const status = room.getStatus();
    if (status === 'connected') {
       updateInput(inputVal)
    }

the code still fails. I'm wondering if it has something to do with the nested rooms though this should totally work in react context.
Additional Info
    "@liveblocks/client": "^1.12.0",
    "@liveblocks/react": "^1.12.0",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",

Hi @amcdnl – thanks for opening a support ticket. The nesting of RoomProviders should not be an issue indeed—it's supported since v1.5.0.
The useMutation callback can only be called after the initial storage document has been loaded by your application. Waiting for status === 'connected' is not enough for this. That is only the WebSocket status. After the WebSocket is connected, the Storage loading phase begins. You can listen for the storageStatus status instead. If it's synchronized or synchronizing, it means it has been loaded. You can find the relevant docs here.
Hope that helps to resolve it for you!

I realize that the error message may have put you on the wrong track. I'll get that fixed 👍

@nvie - Sadly, it never moves out of not-connected. Any clues why this might be?

@nvie - Here is the console output:

And here is my room structure - I have 1 main room called home and then a room for each session tab.

@amcdnl Oh yeah, you will need to trigger a storage load explicitly, either by doing a .getStorage() call, or by using a hook like useStorage. I was under the assumption you were doing that already. Once storage starts loading, this should work for you. Please lmk if it is not!

Yup that works. Perhaps you should call that out in the docs. I'm going to close this now :D


What's the easiest way to retrieve swagger.json documentation file and generate Web Api Controller and action methods

Hi,
I'm not sure whether this question sounds weird. But I was wondering when we can create a swagger.json file from our web api controller. So, is there a way where we can generate controller and all action methods automatically in my web api controller locally using the swagger.json file.
I apologize if this question sounds irrelevant. I'm just learning.
Thank you!
Best Regards,
Sandeep

Might you be looking for the Swagger CodeGen tool? I've not used it personally, but it looks as though you can generate server-side code in ASP.NET and ASP.NET Core. Might be worth looking into.


compilation error - function 'new' not found in Config<_>

This error suggests that the new function is not found for the flipt::Config struct related to the flipt crate.
How to reproduce
run test for workspace

cargo test --workspace

or running tests inside crate

cd crates/flipt/ && cargo test

error[E0599]: no function or associated item named `new` found for struct `flipt::Config` in the current scope
--> crates/flipt/src/flipt.rs:42:43
|
42 |    let flipt_config = flipt::Config::new(url, config.authentication_strategy, config.timeout);
|                      ^^^ function or associated item not found in `Config<_>`

Github action
https://github.com/jbovet/rust-sdk-contrib/actions/runs/9309610680/job/25625393051
Let me know if you need any additional information.

it seems that the flipt library changed its interface regardless of its minor semver change.
I am trying to fix it.


App should run at windows startup

I'm submitting a...

[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report
[x] Feature request
[ ] Question

Current behavior
Expected behavior
App should run at windows startup
Steps to reproduce the behavior
Environment

I think this should be an option in settings, if at all people want this.

Actually in my view, it seems that it is a needed feature for background tasks to show notification, otherwise it might not be needed

If you are working on this, I'll merge your branch into a feature branch and keep it for future release.

Yes, I'm working on this, but did not created a pull request for it yet.


Fix podman-remote version to print client and server

If the user specifies .Server.* on a non podman-remote,
substitute .Client for .Server and return the value.
This is for compatability with Docker.
Since prior versions documented --format {{ .Version }}, we
have to continue to support that.
Signed-off-by: Daniel J Walsh<EMAIL_ADDRESS>

Fixes: https://github.com/containers/libpod/issues/4602

@vrothberg @giuseppe @mheon @jwhonce @TomSweeneyRedHat @mheon @baude PTAL

Does this actually fix the issue? It only affects remote Podman, and it doesn't look like they're running remote.

@mheon Yes it does.
$ ./bin/podman version --format '{{.Server.Version}}'
1.6.4-dev
$ ./bin/podman version --format '{{.Client.Version}}'
1.6.4-dev
$ ./bin/podman version --format '{{.Version}}'
1.6.4-dev

The big difference is that now we print out Client and Server versioning.
./bin/podman version --format json
{
    "Client": {
        "RemoteAPIVersion": 1,
        "Version": "1.6.4-dev",
        "GoVersion": "go1.13.4",
        "GitCommit": "a27fa50b7317bae073bcaa15c743e07be47a0e41-dirty",
        "Built":<PHONE_NUMBER>,
        "OsArch": "linux/amd64"
    },
    "Server": {
        "RemoteAPIVersion": 1,
        "Version": "1.6.4-dev",
        "GoVersion": "go1.13.4",
        "GitCommit": "a27fa50b7317bae073bcaa15c743e07be47a0e41-dirty",
        "Built":<PHONE_NUMBER>,
        "OsArch": "linux/amd64"
    }
}

As opposed to:
$ podman version --format json
{
    "RemoteAPIVersion": 1,
    "Version": "1.6.4-dev",
    "GoVersion": "go1.13.4",
    "GitCommit": "f5b510d387af311af8b76e043ec58df2e89472fd-dirty",
    "Built":<PHONE_NUMBER>,
    "OsArch": "linux/amd64"
}

@mheon I enhanced the tests to make sure all of them are valid, also enabled the remote tests.  Do not know why they were disabled before.

Tests are passing @mheon @vrothberg PTAL

LGTM

Ahh. I see what's going on now.
/lgtm

Would be cool, if this one could be added:
❯ podman version --format '{{.Server.APIVersion}}'
Error: template: image:1:9: executing "image" at <.Server.APIVersion>: can't evaluate field APIVersion in type define.Version


feat-4129-Dart -generateMap()-Function

This PR adds an example of Appwrite function to generate base64 encoded map image from latitude and longitude.
Closes https://github.com/appwrite/appwrite/issues/4129
The example uses MapQuestApi.
Working screenshots of the function:

Success

Failures

@Aadeesh11 , thanks for the PR! 🤯 Please give us some time to review it.

Do let me know if something needs to be changed.

Thank you so much for the PR 🤩. We're adding the hacktoberfest-accepted label to ensure this PR counts towards your Hacktoberfest contributions count. With that said, please stay active on this PR to address any comments once you receive a review. Happy Hacktoberfest! 🎃

@stnguyen90 I have made the required changes!

THANK YOU! All changes merged 🥳
Please reach out to me on our Discord server if you would like to claim your Appwrite swags! As a way of saying thank you, we would also love to invite you to join the Appwrite organization on GitHub. Please share your GitHub username with us on Discord.
You can accept the invite by visiting https://github.com/orgs/appwrite/invitation. By joining our team, you will officially be an Appwrite maintainer on GitHub.
You can change your membership visibility settings, so your new Appwrite team membership badge will show up on your personal GitHub profile.
Please feel free to look for more PRs you might be interested in helping with on our long list of Hacktoberfest friendly issues and help make Appwrite better :)


flexible velocity indicator, it can be changed as you like

flexible velocity indicator, it can be changed as you like you can change from its position, its speed colors,  as like :negative speed red neutral speed yellow positive speed green, you can also change from a color that depends on the speed to just rainbow

and if this is possible i want see velocity indicator made on imgui (like cs go cheats)


Missing of implementation of GroupSoftmax

This is a great project for long-tail visual recognition.
I wonder the current repo is complete or not?
There is missing of implementation of GroupSoftmax
Thanks.

@tonysy No, this is not a complete version and we are still in progress. A init version may be avaliable today. Thanks for your attention!


prometheus server cash

prometheus server cash error
level=info ts=2021-10-26T12:47:53.092Z caller=main.go:794 msg="Server is ready to receive web requests."
panic: runtime error: slice bounds out of range [-7783:]
goroutine 740 [running]:
github.com/prometheus/prometheus/tsdb/encoding.(*Decbuf).Skip(...)
/app/tsdb/encoding/encoding.go:196
github.com/prometheus/prometheus/tsdb/index.(*Writer).writePostingsToTmpFiles(0xc002bac6e0)
/app/tsdb/index/index.go:891 +0x139c
github.com/prometheus/prometheus/tsdb/index.(*Writer).ensureStage(0xc002bac6e0, 0x3)
/app/tsdb/index/index.go:378 +0xc5
github.com/prometheus/prometheus/tsdb/index.(*Writer).Close(0xc002bac6e0)
/app/tsdb/index/index.go:1010 +0x27
github.com/prometheus/prometheus/tsdb.(*LeveledCompactor).write(0xc000dd4b40, {0x7ffeb3720a62, 0x10}, 0xc002ff90e0, {0xc0033de480, 0x3, 0x4})
/app/tsdb/compact.go:612 +0xdfa
github.com/prometheus/prometheus/tsdb.(*LeveledCompactor).Compact(0xc000dd4b40, {0x7ffeb3720a62, 0x10}, {0xc0033de440, 0x3, 0x2ae4c80}, {0xc002bd8800, 0x4b, 0x58})
/app/tsdb/compact.go:437 +0x22a
github.com/prometheus/prometheus/tsdb.(*DB).compactBlocks(0xc000de6000)
/app/tsdb/db.go:1008 +0xdf
github.com/prometheus/prometheus/tsdb.(*DB).Compact(0xc000de6000)
/app/tsdb/db.go:948 +0x5d2
github.com/prometheus/prometheus/tsdb.(*DB).run(0xc000de6000)
/app/tsdb/db.go:829 +0x40f
created by github.com/prometheus/prometheus/tsdb.open
/app/tsdb/db.go:762 +0xe16

Since you are probably not using a posix-compliant filesystem, I am going to close this issue.
If you can reproduce this issue with a Posix-Compliant file system, please reopen this issue or open a new one, thanks!

Since you are probably not using a posix-compliant filesystem, I am going to close this issue.
If you can reproduce this issue with a Posix-Compliant file system, please reopen this issue or open a new one, thanks!

use seaweedfs， now use disk storage not error, thanks


Incorrect escaping of \ in tail position

The MWE is the following
julia> L"\\" # expected "\$\\\\\$"
L"$\$"

julia> L"$\\$" # works as expected
L"$\\$"

julia> L"$\\" # also works as expected
L"$\\"

julia> L"\\" # "eats" the last backslash
L"$\$"

julia> L"\\\\" # expected "\$\\\\\\\\\$" = L""
L"$\\$"

julia> println(L"\\$") # works as expected
$\\$$

(I guess this is simply a symptom of Julia escaping rules for strings.)

Yes, backslashes before the final quote mark must be escaped in Julia custom string-literal syntax.  See https://docs.julialang.org/en/v1/manual/strings/#man-raw-string-literals
Nothing we can do about it in individual packages.

Individual packages can call escape_raw_string (as noted in that link) at the start of the macro, if they meet the conditions  that (a) users do not call them with @L_str "normal string" syntax (b) a trailing \ has no useful meaning (it is an error) (c) the sequence \" would be interpreted as a plain " (d) the escape character is \. For example, macro b_str meets these restrictions, so a valid improvement to that implementation would have been to call unescape_string(escape_raw_string(str))) to reverse the raw-string transform then apply the unescape_string transform which is a superset of it (unfortunately for b_str itself, doing so now might be considered a breaking change)


downloadStore.removeDownloadId is not a function

Describe the bug
Direct download is enabled. Clicking download opens a new window and successfully downloads the asset. Next step is to remove the downloadById from session store. However, this function doesn't exist.
Download.js (AssetShare.Download)  defines a function removeDownloadById but the download functionality is calling removeDownloadId
https://github.com/adobe/asset-share-commons/blob/c1315317a6a9a26c8d50ae5f1825e33f9ee9453a/ui.apps/src/main/content/jcr_root/apps/asset-share-commons/clientlibs/clientlib-site/js/download.js#L148
https://github.com/adobe/asset-share-commons/blob/c1315317a6a9a26c8d50ae5f1825e33f9ee9453a/ui.apps/src/main/content/jcr_root/apps/asset-share-commons/clientlibs/clientlib-site/js/stores/download-store.js#L112
Environment

AEM Version: N/A
Asset Share Commons Version: 2.0.6
Author, Publish or both? both

Expected behavior
Call the right function.

@joeri-peeters-emk  - hows this look? https://github.com/adobe/asset-share-commons/pull/636/files
Also - thanks for determining the problem and solution :) - made this a very quick fix to execute! 🙌


.NET 5

Release Notes
Please report any issues you find with .NET 5, either responding to this issue, creating a new issue or creating a new issue in one of the following repos:

dotnet/aspnetcore - for ASP.NET Core questions
dotnet/efcore - for Entity Framework Core questions
dotnet/sdk - for CLI tools and questions
dotnet/runtime - for runtime, API, or installer issues and questions
dotnet/winforms - for WinForms issues
dotnet/wpf - for WPF issues
nuget/home - for NuGet questions and issues

Status of availability of SDK on Linux feeds:

Distro
5.0.0

Ubuntu 16.04
✅

Ubuntu 18.04
✅

Ubuntu 20.04
✅

Ubuntu 20.10
✅

Centos 7
✅

Debian 9
✅

Debian 10
✅

Fedora 32
✅

Fedora 33
✅

OpenSUSE 15
✅

SLES 12
✅

SLES15
✅

Note: This list refers to the Microsoft-provisioned feeds (packages.microsoft.com) and does not in any way represent direct availability in distros (eg RHEL, Fedora).
Known Issues
If there are any issues with the November 2020 release we will track them here and check issues off as they're resolved. See the linked issues for details on progress and resolution details.

[x] Unable to install .NET 5 RC2, .NET Core 2.1, .NET Core 3.1 on Ubuntu 20.10 - This is resolved for 5.0 and 3.1. See https://github.com/dotnet/core/issues/5017#issuecomment-729208437 for more details.

[x] .NET 5 is missing in SLES15 https://github.com/dotnet/core/issues/5623

[ ] Unable to build .NET 5 on some Linux distros (Fedora, CentOS, RHEL) https://github.com/dotnet/core/issues/5545#issuecomment-726803619

Anyone already had some same problems?  I tested .NET5 WPF on the linux system, but there was a big problem that I wanna why I used .NET5  to create a WPF project, as a result, I cat *csproj file  contained "netcoreapp3.0". I need your help,please.

These announcements are very misleading. .NET 5 is not "source-buildable" yet and therefor not available in many distributions. The checkmarks should be only partial.
And Fedora 30 and 31 shouldn't be in the list at all.

These announcements are very misleading. .NET 5 is not "source-buildable" yet and therefor not available in many distributions. The checkmarks should be only partial.
And Fedora 30 and 31 shouldn't be in the list at all.

Yes! .NET5 cross platforms, but WPF not. "These announcements are very misleading" I am backing you absolutely!   I spent two days to figure it out if WPF could run on the linux system. I really need a UI project that can run on linux and finally I chose Avalonia.

You can look into Avalonia if you haven't found one yet.

Anyway my point is more about the way you get to install .NET 5 - it is not available in most Linux distributions like this checklist would lead you to believe. To take an example closest to me, Fedora. Fedora has dotnet 3.1 in its core repositories and Microsoft now refers to that as means of installing it via simply using Fedora's own package manager dnf install dotnet (or specifically dnf install dotnet-sdk-3.1) - however this is not the case with .NET 5 because it is not possible to build it from source yet. Microsoft prioritized producing it in binary form with the source-build being on the sidelines. As a result, the download page was also referring to .NET5 in Fedora repositories, while it's not there yet (this was patched today I believe) [2]
And on the 2nd paragraph - Fedora 30 reached end of life half a year ago and Fedora 31 is about to reach it next week. As such .NET 5 should not ship for either of those versions. It should not be mentioned in this list - it's not mentioned on [1] or [2] either.
And it's very similar case with RHEL - both 7 and 8 mentioned on [1] and [3] (And CentOS which is a clone of RHEL)
[1] https://docs.microsoft.com/en-us/dotnet/core/install/linux
[2] https://docs.microsoft.com/en-us/dotnet/core/install/linux-fedora
[3] https://docs.microsoft.com/en-us/dotnet/core/install/linux-rhel

TLDR: These checklists should not have checkmarks until the product is actually released for said platform.

@richlander @davidortinau @brunoborges can you comment on the questions from @masters3d?

Anyway my point is more about the way you get to install .NET 5 - it is not available in most Linux distributions like this checklist would lead you to believe. To take an example closest to me, Fedora. Fedora has dotnet 3.1 in its core repositories and Microsoft now refers to that as means of installing it via simply using Fedora's own package manager dnf install dotnet (or specifically dnf install dotnet-sdk-3.1) - however this is not the case with .NET 5 because it is not possible to build it from source yet. Microsoft prioritized producing it in binary form with the source-build being on the sidelines. As a result, the download page was also referring to .NET5 in Fedora repositories, while it's not there yet (this was patched today I believe) [2]
And on the 2nd paragraph - Fedora 30 reached end of life half a year ago and Fedora 31 is about to reach it next week. As such .NET 5 should not ship for either of those versions. It should not be mentioned in this list - it's not mentioned on [1] or [2] either.
And it's very similar case with RHEL - both 7 and 8 mentioned on [1] and [3] (And CentOS which is a clone of RHEL)
[1] https://docs.microsoft.com/en-us/dotnet/core/install/linux
[2] https://docs.microsoft.com/en-us/dotnet/core/install/linux-fedora
[3] https://docs.microsoft.com/en-us/dotnet/core/install/linux-rhel
TLDR: These checklists should not have checkmarks until the product is actually released for said platform.

It help me a lot. Thank you very much!

@richlander @davidortinau @brunoborges can you comment on the questions from @masters3d?

I'm not aware of what sort of Java interoperability exists in .NET.

@brunoborges FYI this statement was included when we introduced .NET 5
https://devblogs.microsoft.com/dotnet/introducing-net-5/
I can’t remember if we ever mentioned in subsequent posts what would happen to that feature. Was it just cut?

I just update to .NET 5 and I see this false positive for the result could be null.

As you can see the property is there and the result cannot be null.

Closing in favor of https://github.com/dotnet/core/issues/5719


[style]: improving dark mode

What's the style idea?
As we can see on attached SS the cards on Schedule and contributors will look more good if we give them colors like this on dark mode instead of white which is looking bit odd and not matching with overall styling
Add screenshots

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Thank you for raising this issue, it has just been updated. Could you take a look at the website and eventually suggest any additional changes?

Thank you for raising this issue, it has just been updated. Could you take a look at the website and eventually suggest any additional changes?

Ahhh np , yes sure ill create a issue whenever i find one


General attribute docs improvements

Each commit does its own small thing.
This builds on top of #350, so merge that before taking a look at this.

Addressed comments. Also added which attributes are allowed on block expressions. And apparently, as per the example I included on the block expressions page, block expressions also allow outer attributes and the only place you'd be able to tell that isn't overlapping with statements taking attributes is the return expression of a block expression. Go figure.
I'll add which attributes are allowed on functions / modules / the main module/ other items / variants and fields later.

Rebased against master due to merge conflict.

Rebased again for another merge conflict.


PCL can not found on this meachine

I've installed pcl though  vcpkg as below

Then I  tried to create a cmake project on vs2017 with CMakeLists.txt:
cmake_minimum_required(VERSION 2.6)

project(point2mesh)
find_package(pcl CONFIG REQUIRED)
add_subdirectory("point2mesh")

also with CMakeSetting.json
"configurations": [
    {
      "name": "x64-Debug",
      "generator": "Visual Studio 15 2017 Win64",
      "configurationType": "Debug",
      "inheritEnvironments": [ "msvc_x64" ],
      "buildRoot": "${projectDir}\\build\\Release_x64",
      "installRoot": "${env.ProgramFiles}\\${name}",
      "cmakeCommandArgs": "-T host=x64",
      "buildCommandArgs": "",
      "ctestCommandArgs": "",
      "variables": [
        {
          "name": "CMAKE_TOOLCHAIN_FILE",
          "value": "E:/dev_tool/vcpkg/scripts/buildsystems/vcpkg.cmake"
        }
      ]
    },
    {
      "name": "x64-Release",
      "generator": "Visual Studio 15 2017 Win64",
      "configurationType": "RelWithDebInfo",
      "inheritEnvironments": [ "msvc_x64" ],
      "buildRoot": "${projectDir}\\build\\Release_x64",
      "installRoot": "${env.ProgramFiles}\\${name}",
      "cmakeCommandArgs": "-T host=x64",
      "buildCommandArgs": "",
      "ctestCommandArgs": "",
      "variables": [
        {
          "name": "CMAKE_TOOLCHAIN_FILE",
          "value": "E:/dev_tool/vcpkg/scripts/buildsystems/vcpkg.cmake"
        }
      ]
    }
  ]

but when I generate cmakecache, error occurs:
1> CMake Warning at E:/dev_tool/vcpkg/installed/x64-windows/share/pcl/PCLConfig.cmake:58 (message):
1>   PCL can not be found on this machine
1> Call Stack (most recent call first):
1>   E:/dev_tool/vcpkg/installed/x64-windows/share/pcl/PCLConfig.cmake(437): (pcl_report_not_found)
1>   E:/dev_tool/vcpkg/scripts/buildsystems/vcpkg.cmake(241): (_find_package)
1>   E:\workspace\Lab\point2mesh\point2mesh\CMakeLists.txt(4): (find_package)

By setting the PCL_DIR
set(PCL_DIR "E:\dev_tool\vcpkg\installed\x64-windows\share\pcl") it finally worked; But I want to know set_DIR is a normal way to use vcpkg?

Hi @sunchaothu, thanks for reporting this issue!
We can use the installed port without setting the PORT_DIR path, you only need to change a few configurations:
Modify CMakeSettings.json

add these configure:

  {
    "name": "CMAKE_TOOLCHAIN_FILE",
    "value": "F:\\vcpkg\\scripts\\buildsystems\\vcpkg.cmake"
  }
]

modify "generator" from "ninja" to "Visual Studio 15/16 2015/2017 Win64"
comment "buildCommandArgs": "-v",
Modify other parameters related to the triplet.

I guess your problem may be these:

inheritEnvironments should be msvc_x64_x64.
vcpkg.cmake path is wrong.
your vcpkg files are broken.

Thank you for your  reply @JackBoosY ! I have modified CMakeSetting as [above] (https://github.com/Microsoft/vcpkg/issues/5664#issuecomment-472693482) before，but I still have to set PORT_DIR;  I also changed inheritEnvironments from msvc_x64  to msvc_x64_x64 and I am sure vcpkg.cmake path is right, but it didn't work. I notice that the error is report by /vcpkg/installed/x64-windows/share/pcl/PCLConfig.cmake:58 , so the config.cmake is found but the PCL DIR seems not be set properly.

@sunchaothu  Are the other ports working properly? And, did you integrate vcpkg by these command  vcpkg integrate project /  vcpkg integrate install?

We haven't been able to repro this; if more information comes up, or this issue appears again, please reopen.


Version Change

Version should be listed as release 0.1, currently listed as 1.0

Updated to 0.1 in Bug fixes


Add TypeScript sample

Coverage remained the same at 95.487% when pulling bc0fa47ed7e97177a96c7157f3e1fc888425c626 on ts-sample into e622de067af4072c794fd980a7f4badbab1b1190 on master.


Rely on cross-platform font

Currently, roadmapper relies on the font Arial, which seems to be specific to Windows. Users of roadmapper on different platforms (Mac and Linux) need to manually ensure the presence of this font on their system. This provides further hurdles for potential users of roadmapper and might even prevent them from adopting roadmapper. Even though different fonts can be specified, this customisation requires more work to get started.
Besides the required work for new users, our CI agents would have to be customised by installing this font. Even though this is possible, more required customisation steps of the used CI agents increase the time for CI test execution (think of apt update && apt install...).
To provide users with a more seamless option to start using roadmapper, we should implement a standard setup which works on every platform. AFAIK, this requires the usage of a font which is preinstalled on every platform (Windows, Mac and Linux) and we should provide Arial as a custom option. Alternatively, roadmapper can be system agnostic by not enforcing the usage of Arial and selecting different fonts based on the used OS.

This sounds like a feature request than a defect or issue.
Roadmapper uses Pillow library and Pillow refers to font by font file name instead of file and each OSes uses different file name. Do you have any suggestion on how to support cross-platform fonts with Pillow library? I tried to avoid installing custom font. One way is to detect OS type and then alter the font file name during runtime.

probably you can use ImageFont.load_default() as a workaround

probably you can use ImageFont.load_default() as a workaround

Text rendered using the 'load_default()' method is horrible! 😄

It seems like I have use if..else statement to detect OS type and replace it with appropriate font file. This should be added in v1.2.0.

Could you add it as an optional argument for Roadmap?
I solved issue replacing arial.ttf with Arial.ttf
One can pass dictionary with fonts

@antmanin The fix that I put in will resolve your need to replace font file name. The fix will be available in v1.2.0.

This is now fixed in v1.2.0. No absolute font like 'arial.ttf' is referenced in the code. Based on the OS you code is running on, the library will use the right font file name.


Use AngularJS $document service instead of DOM's global window.document

Thanks! I don't remember any good reason why this was using the document global directly, so this seems like a good change to me.


fix: avoid unused variable warning

The statements problem and solution produce an unrelated warning on Rust 1.62 .
   Compiling playground v0.0.1 (/playground)
warning: unused variable: `v`
 --> src/main.rs:5:9
  |
5 |     let v = match b {
  |         ^ help: if this is intentional, prefix it with an underscore: `_v`
  |
  = note: `#[warn(unused_variables)]` on by default

warning: `playground` (bin "playground") generated 1 warning
    Finished dev [unoptimized + debuginfo] target(s) in 0.57s
     Running `target/debug/playground`
thread 'main' panicked at 'we have no value for `false`, but we can panic', src/main.rs:10:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Success!

IMO it's better not to confuse beginners with warnings that aren't related to the feature they're trying to understand.  Especially since the fix is trivial and present in other examples.  It's bad enough that when the example is correct  it causes the application to panic.  But it doesn't matter much to me.


Automated Package Upgrade

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


How to judge the end of the map load?

How to judge the end of the map load?
How to judge a vector layer load end?
The postcompose event is not triggered by a vector layer load

To know when a map is loaded, you have to monitor loading progress of all of its sources. For vector sources that are configured with a url, a 'change' event will be triggered when it is loaded. I have created a CodePen which prints 'loaded' to the console when loading has finished: https://codepen.io/anon/pen/JNRWBB?editors=0010#. If you need to know when the map is loaded to e.g. create a screenshot, call map.renderSync() when loaded, before taking the screenshot.