Add API filter to apim app get command

User story
As an organization admin I want to get all apps (from my organization) for a specific added API.
As an API Manager administrator I want to get all apps (from all orgs) for a specific added API.
Additional context

Will close this issue. The apim api get command is already able to list subscribed apps for an API.

I think this requirements makes sense anyway: Getting a list of apps (not APIs) that are subscribed to an API brings some value.
This is some kind of a different view and easy to implement as the Application-Model internally also knows the subscribed APIs. It's a matter of using that information in a filter.

Added a new option to the apim app get command:
apim app get -s api-env -api "*HIPAA*"
This is new option:
-api <*MyAPI*>                        Filter applications having access to this API. You may use wildcards at the end or beginning.


Check if Mac QSearchField has focus before handling the notification.

Otherwise, the first widget will always get the notifications, even if it is not the current one.

@mikemcquaid do you think you can review this?
I would like to fix few other things here (Cmd+X/C/V not working well because it uses all text, not only the selected text) but I would prefer to have this integrated first, as it touches the same part of the code.
Or if you're too busy, maybe I can ask someone else?

I've been on vacation. I'll review ASAP (some time this week).

ok, np. I didn't want to pressure you: I just wanted to be sure this pull request doesn't get forgotten :)

Thanks for your work here. I'm adding you as a contributor so you can merge your own PRs. Please don't commit directly to master and only merge when PRs are green. Great work!

Yeah! :sparkles: Thanks :-)
Yes, I will do so. But don't hesitate to review my pull requests anyway: as I told you previously, I'm not a Cocoa expert so I might missed things sometimes, and anyway I always prefer if someone can double check what I do ;-)


Problem with R console on VS Code

I'm trying to use vscode-R on Visual Studio Code 1.62.2 (details from help below)
Version: 1.62.2 (user setup)
Commit: 3a6960b964327f0e3882ce18fcebd07ed191b316
Date: 2021-11-11T20:56:38.428Z
Electron: 13.5.2
Chrome: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Windows_NT x64 10.0.22000
I tried to use the terminal to install the languageServer package. Currently, I don't get an error when opening an R file, but the terminal output is as follows.
[chooseTerminal] A. There are 2 terminals: Terminal 0: pwsh Terminal 1: cmd B. There are 2 terminals: Terminal 0: pwsh Terminal 1: cmd C. There are 2 terminals: Terminal 0: pwsh Terminal 1: cmd

Similar to #864, which should have been resolved with vscode 1.62.2.

I've begun running into this too recently. For me, it seems to occur when the terminal state is 'restored'. E.g., opening a new workspace, and then reopening a previous one that had an R terminal running


Liste::key_exists() throws a notice on elements with arrays in them

The method array_diff_assoc on line 352 in lib/core/Liste.php throws a notice when at least one of the two compared objects contain an array. That is because array_diff_assoc then treats the object as a multidimentional array, which it does not support. It then gives the following:
Notice: Array to string conversion in lib/core/Liste.php at line 352
A possible fix would be to serialize the objects before passing them into an array_diff, then unserializing the result, like this:
$diff = array_map('unserialize', array_diff(array_map('serialize', $pageids), array_map('serialize', $parentpage)));

We applied the suggested fix. We'll see how it works before closing the issue.
$diff = array_map('unserialize', array_diff(array_map('serialize', $array_value), array_map('serialize', $array_item)));


Added JSON and text logging

Can be tested with tag... v0.5.0-rc1

Latest test version v0.5.0-rc3

LGTM


Dart 2 boolean conversion must throw on non-boolean value.

In Dart 1, "boolean conversion" allowed any object to be converted to bool in unchecked mode.
Dart 2 only has checked mode, and the required type of all the places that introduced boolean conversion is now bool, so it's alread a type error if the value isn't a subtype of bool.
That doesn't handle null, though. It's still not a boolean value, and it must be a runtime error if the value in a condition is null.
Dart 1 specified this as an assert, because in Dart 1 asserts were enabled in checked mode.
The Dart 2 specification of this has not been written yet, but it will say that it's a run-time error if the value is null.
Currently dart2js does not throw in that case. Run:
main() {
  bool x = null;
  if (x) print("yes");
  else print("no");
}

one dart2js with --preview-dart-2, and it prints "no".

Note that as of 5fab3242f4716c6f14036019acbb55a3fefe282b there is no notion of boolean conversion any more, and it is a run-time error when null is encountered in those situations where boolean conversion used to be applied. This means that the above program should throw at if (x) .., and it shouldn't print anything.

Does this make #dart-lang/linter#1047 obsolete?

@eernstg right, thanks for the explanation.

Closing in favor of #34147.


Censor words

Censor a few more words according to some random censor website I found: https://sapling.ai/utilities/profanity

Probably a bit overkill to censor the word crap, but we might as well be on the safe side


ARROW-6232: [C++] Rename Argsort kernel to SortToIndices

"Argsort" is NumPy specific name. Other languages/libraries use
different name:

R: order

https://cran.r-project.org/doc/manuals/r-release/fullrefman.pdf#Rfn.order

MATLAB: sort

https://mathworks.com/help/matlab/ref/sort.html
"sort" returns sorted array and indices to sort array

Julia: sortperm

https://pkg.julialang.org/docs/julia/THl1k/1.1.1/base/sort.html#Base.sortperm

It's better that we use general name because Arrow C++ isn't a NumPy
compatible library.
"SortToIndices" means "sort that returns indices array".

I would suggest perhaps "IndexSort". "SortIndices" sounds very much like "please sort these indices" to me.
I also wouldn't mind keeping "ArgSort". There doesn't seem to be an established general name.

Other candidates:
<EMAIL_ADDRESS>
sortorder, or sort rank or rank_of_sort or similar

Other candidate:
struct SortMode {
  enum type {
    RETURN_INDICES,
    // RETURN_VALUES, https://issues.apache.org/jira/browse/ARROW-4631 ?
    // IN_PLACE, https://issues.apache.org/jira/browse/ARROW-2685
  };
};

struct SortOptions {
  SortMode mode;
  // SortOrder order; ASCENDING/DESCENDING
};

Status Sort(FunctionContext* ctx,
            Array& values,
            std::shared_ptr<Array>* output,
            const SortOptions& options);

"SortIndices" sounds very much like "please sort these indices" to me.

I guess providing "SortValues" and "SortIndices" together can prevent such misreading.
Another candidate:

"GetSortedValues" and "GetSortedIndices"

Does indices even works, what about ChunkedArray?

Ah, we use "offset" to refer logical index in arrow::Table:
  std::shared_ptr<Table> Slice(int64_t offset) const { return Slice(offset, num_rows_); }

"SortOffsets", "OffsetSort" or something are better than "SortIndices", "IndexSort" or something.

No, I think "offset" is misleading here. We're producing an array of indices into the original array.

But given the difficulty of finding a satisying alternative, I think we should simply keep ArgSort.

Or perhaps "SortToIndex", "SortToIndices".

We're producing an array of indices into the original array.

Can I clarify this?
We process only Array in one kernel. (We don't process ChunkedArray in one kernel.) So we don't need to care about ChunkedArray here. Right?

Why are you talking about ChunkedArray?

Because I tought that the following question says "we need to care about ChunkedArray in this situation":

Does indices even works, what about ChunkedArray?

I may misunderstand the question...

Ah. I think the question is entirely irrelevant.

OK. Thanks.
I like "SortToIndices". If anyone doesn't object the name, I'll change to "SortToIndices" in this pull request and wait a few days to accept more comments.
If we don't find any good name, I'll rename "Argsort" to "ArgSort" in this pull request.

I've rebased on master and rename "SortIndices" to "SortToIndices".
I'll wait a few days to accept more comments. If no objection is raised in a few days, I'll merge this.

Codecov Report

Merging #5080 into master will increase coverage by 17.11%.
The diff coverage is 96.55%.

@@             Coverage Diff             @@
##           master    #5080       +/-   ##
===========================================
+ Coverage   72.12%   89.24%   +17.11%
===========================================
  Files         835      731      -104
  Lines      111553   105048     -6505
  Branches     1437        0     -1437
===========================================
+ Hits        80457    93746    +13289
+ Misses      30734    11302    -19432
+ Partials      362        0      -362

Impacted Files
Coverage Δ

.../src/arrow/compute/kernels/sort_to_indices_test.cc
100% <100%> (ø)

cpp/src/arrow/compute/kernels/sort_to_indices.cc
91.11% <92.85%> (ø)

cpp/src/arrow/testing/gtest_util.h
97.36% <0%> (-2.64%)
:arrow_down:

cpp/src/arrow/compute/kernel.h
61.16% <0%> (-1.53%)
:arrow_down:

cpp/src/plasma/thirdparty/ae/ae.c
70.75% <0%> (-0.95%)
:arrow_down:

cpp/src/arrow/result.h
91.3% <0%> (-0.37%)
:arrow_down:

cpp/src/arrow/table.h
100% <0%> (ø)
:arrow_up:

cpp/src/arrow/flight/server.h
100% <0%> (ø)
:arrow_up:

cpp/src/arrow/table_builder.h
100% <0%> (ø)
:arrow_up:

cpp/src/plasma/plasma.h
100% <0%> (ø)
:arrow_up:

... and 706 more

Continue to review full report at Codecov.

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

No objection.
I'll merge this.


upd starknet types core to 0.5.0 and also update it on the runtime crate

TITLE
Description
Description of the pull request changes and motivation.
Checklist

[ ] Linked to Github Issue
[ ] Unit tests added
[ ] Integration tests added.
[ ] This change requires new documentation.

[ ] Documentation has been added/updated.

Codecov Report
Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (1ff2f02) 76.17% compared to head (67acb53) 76.19%.
Report is 1 commits behind head on main.

Files
Patch %
Lines

runtime/src/lib.rs
0.00%
2 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #408      +/-   ##
==========================================
+ Coverage   76.17%   76.19%   +0.01%
==========================================
  Files         108      108
  Lines       27604    27598       -6
==========================================
  Hits        21028    21028
+ Misses       6576     6570       -6

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


Introduce Autoprefixer; closes #236

As discussed in #236, this replaces prefixing mixins with Autoprefixer, making the Sass source a little cleaner and eliminating many unnecessary prefixes from dist/css/. I got some great results:

The combined file size of dist/css/ was reduced by about 47%! (59,878 bytes now vs. 105,605 bytes then!)
dist/css/vex.css in particular dropped 117 lines of code, and some theme files dropped over 200 each.

A few notes on my work:

As mentioned in the issue, supported browser versions are now formally specified in package.json. Some versions are very old and very unused, but I leave any upgrade decisions to you.
In addition to Autoprefixer-related work, I removed a rule from vex.sass that was clearly only there to work around the lack of rgba() support in IE <= 8.
A side effect of my work is that unprefixed versions of things now appear after prefixed versions, which is the recommended practice anyways.
Most of _mixins.sass is gone; only =pie-clearfix and its dependencies remain. I couldn't figure out if it's still helping anything in IE >= 9.

Thanks for doing this! I've looked over the code on GitHub and all of the changes look good. Fantastic results on the filesize reduction of the CSS.
I will checkout your branch on my machine this weekend and doublecheck the build process, make sure everything works together, etc. and merge in after.
Thanks again!


Todo List

[ ] Use MongoDB as database (votings, and attendance)
[ ] Create voting (vote name, vote desc, vote duration (secs, mins, hours, days, or weeks), admin voteable, vote count maximum)
[ ] Voting (by reply, just reply the message with option number or the option name)
[ ] Vote end (vote queue number)
[ ] Attendance (just reply to a message with a reason that must be longer than 10 characters to be the reason for permission)

Additional feature:

[ ] Admin Groups (to show admins who are in this group)


Disable job CredScan for ADO sceurity concern

Disable temporary until CredScan task of Microsoft Security Code Analysis (Preview) installed.

This checklist is used to make sure that common guidelines for a pull request are followed.

For new extensions:

[ ] My extension description/summary conforms to the Extension Summary Guidelines.

If this PR is for a new extension or change to an existing extension, use the following to try out the changes in this PR:
docker run -it microsoft/azure-cli:latest
export EXT=<NAME>
pip install --upgrade --target ~/.azure/cliextensions/$EXT "git+https://github.com/haroldrandom/azure-cli-extensions.git@disable-credscan-temporary#subdirectory=src/$EXT&egg=$EXT"


Links to unpublished sources should not appear on Provenance detail pages

Example: visit http://<IP_ADDRESS>/provenance/3665 (while logged out), click on first link. We get a 403 Forbidden error, since the source is unpublished.
Unpublished sources should not be listed on the Provenance Detail page.
Credit to @zhannaklimanova and her link checker script for catching this bug!

just out of curiosity--how complicated an exercise would it be to have a page like this one list the names of all the sources, but only have the published ones be links?


Dead link on getting-started/docker

I am looking into deploying the IAM service, and wanted to look into Docker for flexibility.
The documentation page points to a configuration reference, but the link is dead:

See the configuration reference for a description of the variables.

I believe the link is just missing the versioning path and instead of:
https://indigo-iam.github.io/docs/reference/configuration/
should be:
https://indigo-iam.github.io/v/v1.7.1/docs/reference/configuration/

Thanks a lot pablo for reporting this, I've just committed a fix, the rpoblem should be solved shortly !


Possible bug that lead to miscalculation

The following are the supporting code

-- List definition

data PolyList [A] = Nil
                  | Cons A (PolyList[A]);

-- String definition

type PolyString = PolyList[Char];

-- Parser type definition

type Parser [A] = PolyString -> PolyList[(A, PolyString)];

-- Utilities

let rec fromString (str : String) : PolyString =
    if length(str) == 0 then
        (Nil[Char])
    else
        (Cons[Char] str.charAt(0) (fromString str.substring(1)));

let singleton [A] (x : A) : PolyList[A] =
    Cons[A] x (Nil[A]);

let rec map [A, B] (f : A -> B) (l : PolyList[A]) : PolyList[B] =
    case l of
        Nil             ->      Nil[B]
     |  Cons x xs       ->      Cons[B] (f x) (map [A, B] f xs);

let rec concat2 [A] (a : PolyList[A]) (b : PolyList[A]) : PolyList[A] =
    case a of
        Nil         ->  b
      | Cons x xs   ->  Cons[A] x (concat2[A] xs b);

let rec concat [A] (l : PolyList[PolyList[A]]) : PolyList[A] =
    case l of
        Nil         ->  Nil[A]
     |  Cons x xs   ->  concat2[A] x (concat[A] xs);

let rec len [A] (l : PolyList[A]) : Int =
    case l of
        Nil         ->  0
     |  Cons x xs   ->  1 + (len[A] xs);

-- Primitive Parsers

let result [V] (value : V) : Parser[V] =
    \(inp : PolyString) -> singleton [(V, PolyString)] (value, inp);

let zero [V] : Parser[V] =
    \(inp : PolyString) -> Nil[(V, PolyString)];

let item : Parser[Char] =
    \(inp : PolyString) ->
        case inp of
            Nil         ->      Nil[(Char, PolyString)]
          | Cons c xs   ->      singleton [(Char, PolyString)] (c, xs);

-- Combinators

let bind [A, B] (p : Parser[A]) (f : A -> Parser[B]) : Parser[B] =
    \(inp : PolyString) ->
        concat [(B, PolyString)]
               (map [(A, PolyString), PolyList[(B, PolyString)]]
                    (\(v : (A, PolyString)) -> f v._1 v._2) (p inp));

let sat (f : Char -> Bool) : Parser[Char] =
    bind [Char, Char] item (\(x : Char) -> if f x then (result [Char] x) else zero [Char]);

let char (x : Char) : Parser[Char] =
    sat (\(y : Char) -> x == y);

let plus [A] (p : Parser[A]) (q : Parser[A]) : Parser[A] =
    \(inp : PolyString) ->
        concat2 [(A, PolyString)] (p inp) (q inp);

First test is to validate whether bind function works as expecting
let seq [A, B] (p : Parser[A]) (q : Parser[B]) : Parser[(A, B)] =
    bind [A, (A, B)] p (\(x : A) ->
    bind [B, (A, B)] q (\(y : B) ->
    result [(A, B)] (x, y)));

len[((Char, Char), PolyString)] (seq[Char, Char] (char 'a') (char 'a') (fromString "aaab"))

The call to seq function should produce output [(('a', 'a'), "ab")], that means the bind function works. But if I write a many function like this
let rec many [A] (p : Parser[A]) : Parser[PolyList[A]] =
    plus [PolyList[A]] (bind [A, PolyList[A]] p (\(x : A) ->
                        bind [PolyList[A], PolyList[A]] (many[A] p) (\(xs : PolyList[A]) ->
                        result [PolyList[A]] (Cons[A] x xs))))
                       (zero [PolyList[A]]);

len[(PolyString, PolyString)] (many[Char] (char 'a') (fromString "aaab"))

The expecting output is [("", "aaab"), ("a", "aab"), ("aa", "ab"), ("aaa", "b)], which length should be 4. But when you run this program, the output is 0!
I tried to write a similar function string, it works correctly.
let rec string (s : PolyString) : Parser[PolyString] =
    case s of
        Nil         ->  result (Nil[Char])
     |  Cons x xs   ->
            bind [Char, PolyString] (char x) (\(dummy1 : Char) ->
            bind [PolyString, PolyString] (string xs) (\(dummy2 : PolyString) ->
            result (Cons[Char] x xs)));

I don't know whether it is a bug, but I can't see any logical errors in many.

Sounds like this could be a backend bug. Can you investigate Jeremy?

You may want to try to minimise the program to make debbuging easier.

I am working on!

@zonyitoo It might be your own problem, but porting your code to Haskell yields 0 as well
type Parser a = String -> [(a, String)]

singleton :: a -> [a]
singleton a = [a]

concat2 :: [a] -> [a] -> [a]
concat2 x y =
  case x of
    [] -> y
    (a:as) ->
      a :
      (concat2 as y)

concat' :: [[a]] -> [a]
concat' xs = case xs of
               [] -> []
               a:as -> concat2 a (concat' as)

result :: a -> Parser a
result v = \s -> singleton (v, s)

zero :: Parser a
zero = \_ -> []

item :: Parser Char
item =
  \s ->
    case s of
      [] -> []
      c:xs -> singleton (c,xs)

bind :: Parser a -> (a -> Parser b) -> Parser b
bind p f = \inp -> concat' (map (\v -> f (fst v) (snd v)) (p inp))

sat :: (Char -> Bool) -> Parser Char
sat f = bind item (\x -> if f x then (result x) else zero)

char :: Char -> Parser Char
char c = sat (\y -> y == c)

plus :: Parser a -> Parser a -> Parser a
plus p q = (\inp -> concat2 (p inp) (q inp))

many :: Parser a -> Parser [a]
many p = plus (bind p (\x -> bind (many p) (\xs -> result (x : xs)))) zero

test :: Int
test = length (many (char 'a') ("aaab")) -- 0

You may want to refer to http://www.cs.nott.ac.uk/~gmh/pearl.pdf

@zonyitoo It's the bug in your definition of many
let rec many [A] (p : Parser[A]) : Parser[PolyList[A]] =
    plus [PolyList[A]] (bind [A, PolyList[A]] p (\(x : A) ->
          bind [PolyList[A], PolyList[A]] (many[A] p) (\(xs : PolyList[A]) ->
          result [PolyList[A]] (Cons[A] x xs))))
          (result[PolyList[A]] (Nil[A]));   -- should wrap it into Parser type constructor

@bixuanzju THANK YOU!!!!! I just read this comment, it is very very helpful!

@zonyitoo I would like to kindly recommend writing code in Haskell first, test it and then port it to our language line by line when writing libraries (this is exactly how I found your bug) :)

@bixuanzju actually, what I write in Haskell is
many :: Parser a -> Parser [a]
many p = [x:xs | x <- p, xs <- many p] ++ [[]]

Actually I have made a mistake on translating [[]] to F2J code... That's my fault.
This make me think about to asking about support of Type Class... Haha ;)


Add support for an encrypting InputStream/ReadableChannel

Currently, encrypting is only supported for "output" and decrypting for "input" channels/streams. The notion of which direction is "input" and which is "output" depends on your point of view.
In my use case I need to add encryption around the jclouds blobstore api which exposes inputstreams for both reading and writing the content of a blob. This kind of makes sense as it allows the user to provide a source of bytes to be written. The blobs are received unencrypted but we don't want to store them in clear on a third party hosting service.
Currently using tink I am forced to read the whole InputStream to get the bytes, encrypt them then recreate a new InputStream of the ciphertext to send to the wrapped API. This is very inefficient for larger messages. I seems like is should be possible to have an InputStream which wraps an existing InputStream but encrypts the content of the underlying stream on the fly as the calls to read() are made.
This would behave in the same way as javax.crypto.CipherInputStream using except tinks StreamingAead implementations instead of a raw cipher allowing it to handle encryption + authentication in a transparent fashion.
Disclaimer: I am a cryptography novice, I may have missed something which makes this idea impossible to implement.

@bleichen
I'm not sure I understand the question. Jean, how do you write to an InputStream [1] which doesn't have any write() method?

Currently using tink I am forced to read the whole InputStream to get the bytes, encrypt them then recreate a new InputStream of the ciphertext to send to the wrapped API. This is very inefficient for larger messages. I seems like is should be possible to have an InputStream which wraps an existing InputStream but encrypts the content of the underlying stream on the fly as the calls to read() are made.

What you want to do is to initialize a StreamingAead with an OutputStream that connects to the destination that you want to write to. Then you loop reading a buffer from the Blobstore InputStream and writing it to the StreamingAead object, until the InputStream is closed.
Why doesn't this work?
[1] https://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html

I'm not sure I understand the question. Jean, how do you write to an InputStream [1] which doesn't have any write() method?

I want to encrpyt the bytes which are returned by the read method of another InputStream, in the exact same fashion as javax.crypto.CipherInputStream except using StreamingAead.
the constructor would look something like
public StreamingAeadEncryptingInputStream(AesGcmHkdfStreaming streamAead,
                                     InputStream clearTextStream,
                                     byte[] associatedData){...}

The read method would work on the following principle :

blockingly read getPlaintextSegmentSize bytes from clearTextStream (or set endOfPlainText)
encrypt the plainTextSegment
handle the read from the caller by setting the destination byte array's bytes from the encryptedSegment

What you want to do is to initialize a StreamingAead with an OutputStream that connects to the destination that you want to write to. Then you loop reading a buffer from the Blobstore InputStream and writing it to the StreamingAead object, until the InputStream is closed.

This does work, however the documentation for PipedStreams states that:

Attempting to use both objects from a single thread is not recommended, as it may deadlock the thread

Since I can't be sure what the consuming thread will be, I have to start a thread for each payload I want to encrypt, or I have to start managing a threadpool which rapidly increases the complexity of the task.
The proposed StreamingAeadEncryptingInputStream would not have this issue and would preserve the InputStreams "pull" model.

Hi Jean,
Could you please explain why PipedStreams is relevant here? Would you mind writing some code (pseudo is fine) that follows my proposal and tells me why it doesn't work for you? Thanks!

Here is what my current implementation looks like
    public Payload write(InputStream is) {
        PipedInputStream snk = new PipedInputStream();
        try {
            PipedOutputStream src = new PipedOutputStream(snk);
            OutputStream outputStream = streamingAead.newEncryptingStream(src, PBKDF2StreamingAeadFactory.EMPTY_ASSOCIATED_DATA);
            Thread copyThread = new Thread(() -> {
                try (PipedOutputStream stream = src) {
                    IOUtils.copy(is, stream);
                } catch (IOException e) {
                    throw new RuntimeException("Stream copy failure ", e);
                }
            });
            copyThread.setUncaughtExceptionHandler((Thread t, Throwable e) -> {
                throw new RuntimeException(e);
            });
            copyThread.start();
            return Payloads.newInputStreamPayload(snk);
        } catch (IOException | GeneralSecurityException e) {
            throw new RuntimeException("Unable to build payload for object storage, failed to " +
                "encrypt", e);
        }
    }

Hello @thaidn, I was wondering if you would share your current thoughts on this.

@przydatek @bleichen hey folks, could you please take a look?

Jean, I understand your problem now. Basically you want an API that wraps an input stream and gives you another input stream, like FilteredInputStream. When you read from the resulting input stream, data from the original input stream is read and encrypted.
This sounds reasonable to me, but let's see what my teammates would say.

Basically you want an API that wraps an input stream and gives you another input stream, like FilteredInputStream.When you read from the resulting input stream, data from the original input stream is read and encrypted.
@thaidn thanks : this is indeed exactly what I want :) sorry if my explanation was unclear, english is not my native language :/

Hi Jean, we discussed the options for providing the functionality you need, and came to conclusion that adding new method(s) to StreamingAead-primitive might be not the best thing to do in the long run.
We'd like to keep the main interfaces/primitives rather small, so that they are manageable and easy to understand.  Given that the problem you describe, i.e. inverting the direction of a stream, has a relatively standard solution (using pipes, something like the code you've posted above), it seems that the reasons to extend the primitive are not very strong. Moreover, the inversion of the stream can be implemented in a generic helper, something like here:
 /**
   * Returns an InputStream that provides ciphertext resulting from encryption
   * of 'plaintextStream' with 'associatedData' via 'streamingAead'.
   *
   * NOTE: this method is for demonstration only, and should be adjusted
   *       to specific needs. In particular, the handling of potential
   *       exceptions via a RuntimeException might be not suitable.
   */
  public static InputStream getCiphertextStream(final StreamingAead streamingAead,
      final InputStream plaintextStream, final byte[] associatedData)
      throws IOException {

    PipedInputStream ciphertextStream = new PipedInputStream();
    final PipedOutputStream outputStream = new PipedOutputStream(ciphertextStream);
    new Thread(new Runnable() {
        @Override
        public void run(){
          try (OutputStream encryptingStream =
              streamingAead.newEncryptingStream(outputStream, associatedData)) {
            byte[] buffer = new byte[1024];
            int length;
            while ((length = plaintextStream.read(buffer)) != -1) {
              encryptingStream.write(buffer, 0, length);
            }
            plaintextStream.close();
          } catch (GeneralSecurityException | IOException e) {
            throw new RuntimeException("Stream encryption failure.", e);
          }
        }
      }
      ).start();
    return ciphertextStream;
  }

Would such a helper be sufficient for your use case?  Or maybe there are some stronger reasons that would justify addition of new methods to StreamingAead?

hi @przydatek,
Last week was very busy,  I didn't find the time to write a proper answer.
All pipe approaches in Java are a misfit for this use case and should only be used for I/O not for in memory CPU bound operations :

The PipedInputStream/PipedOutputStream which I demonstrated in my earlier message and you extracted to a generic helper in your latest comment creates one new thread for each stream. As you probably know, threads are horribly expensive on the JVM not to mention context switching. You could possibly limit the impact by using some kind of executor or thread pool but that's still a heavyweight for something that can easily be avoided by providing a FilterInputStream-based implementation.
The NIO channels do offer a pipe facility too, unfortunately it is system dependant (on unix it actually creates a unix pipe, consuming a file descriptor in the process) again this is

I understand that you don't want to extend the StreamingAead primitive because it is currently designed around the assumption that encrypting is for OutputStream and decrypting is for InputStream. Thus it is hard to provide a consistent name for the EncryptingInputStream.
I don't really care for the helper method on the API as long as I can find an implementation alongside its promoted siblings.
May I suggest that without changing the name of the methods on StreaminAead you start by renaming the actual implementations ?

StreamingAeadDecryptingStream-> StreamingAeadDecryptingInputStream
StreamingAeadEncryptingStream-> StreamingAeadEncryptingOutputStream

Thus you can provide a StreamingAeadEncryptingInputStream (and possibly a StreamingAeadDecryptingOutputStream for the sake of completeness though I don't have a use case for this).
It could even be in a contrib library somewhere if you don't want it in the main library as long as it is discoverable enough. The reason I ask is that I tried to implement it myself and failed, getting this to work requires specialized knowledge on how the byte stream is structured and I wasn't able to figure it out or find proper reference documentation. I can't seem to be able to figure out the proper sizes of the various frames :(
I don't know if the encrypting/decrypting can be abstracted from the stream type if so that would be even better.

We have the same scenario described by @jeantil and it is in fact preventing us from using Tink.
We would like this scenario to be reconsidered into the library interface to make it more flexible and versatile.

16c999e8c71134401a78d4d46435517b2271d6ac
mojombo@16c999e8c71134401a78d4d46435517b2271d6ac
mojombo/github-flavored-markdown@16c999e8c71134401a78d4d46435517b2271d6ac

For of all thanks for this great library!
I've also bumped into this. I think most people who want to use Tink for Crypto for cloud object storage (ie. S3-style storage) run in to the issue that they need to supply and InputStream for encrypting. For the simple reason that in order to upload something with Apache HTTP client, OKHttp, etc. you need to supply an InputStream.
In case of the object store use-case spinning up and tearing down a thread per upload for the PipedInputStream feels kinda dirty for the reasons @jeantil outlines. I guess one could use something like a ExecutorService but all in all technically speaking all that extra complexity and overhead isn't needed.

@przydatek Maybe I'm missing something but are you sure the PipedInputStream example works properly? The Javadoc for PipedInputStream's says (emphasis mine):

Typically, data is read from a PipedInputStream object by one thread and data is written to the corresponding PipedOutputStream by some other thread. Attempting to use both objects from a single thread is not recommended, as it may deadlock the thread.

EDIT: Forget what I said. I was missing something.
hello @siepkes I am still missing it, can you enlighten me (so I can contribute a proper streaming implementation back to the apache james project ... )

@jeantil Unfortunately the "EDIT" remark doesn't apply to the message above it. I don't have a fix for the problem. It's about the message which was in that comment before I removed it by replacing it with "EDIT". You can still view the older message if you press the "edited" button. Apparently I (erroneously) thought there was an error in the example but it turns out there wasn't. Hence the removal of the message.
Sorry to get your hopes up ;-).

@siepkes that's too bad :D I had forgotten about this issue because AES encryption for the blobstore had been dropped from the project during a massive refactoring it is being reintroduced and for now it ended up using non-streaming encryption (reading the whole blob to memory) which is kind of sad. I will try and suggest implementing a FilteredInputStream based implementation as an exercise at the coding dojo... maybe with more brains and a fresh attempt we can make it work !


EliFulkerson.tcping version 0.22

Checklist for Pull Requests

[x] Have you signed the Contributor License Agreement?
[x] Resolve #184426

Manifests

[x] Have you checked that there aren't other open pull requests for the same manifest update/change?
[x] This PR only modifies one (1) manifest
[x] Have you validated your manifest locally with winget validate --manifest <path>?

[x] Does your manifest conform to the 1.6 schema?

Note: <path> is the directory's name containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

Automatic Validation ended with:

Executable C:\Users\Validator\AppData\Local\Microsoft\WinGet\Packages\EliFulkerson.tcping__DefaultSource\tcping.exe returned exit code: 1
Executable C:\Users\Validator\AppData\Local\Microsoft\WinGet\Links\tcping.exe returned exit code: 1

(Automated response - build 897.)


Question: Flutter doctor --verbose question, flutter/dart plugins in android studio

Im using flutter stable version when i run flutter doctor --verbose and i see that , in studio there is no flutter and dart plugins even thought i've install them and configure then inside settings/languages.
When using dev channel On the other hand, the plugins are visible.
How can this be that way?
Stable channel is not that stable?
I know i could use dev channel to avoid this but this issue is not about how to solve this, is about why this happens

@jordantsap
This issue was fixed and merged in master and must have reached dev, but not yet in stable https://github.com/flutter/flutter/issues/67986. You may need to wait till it reaches stable. Until then, you may switch to dev or master.
Closing this as already fixed.

Ok thanks


chore: disabling PR auto-release

It was committed by mistake; one needs to uncomment it before merging:
https://github.com/FuelLabs/fuels-ts/blob/5daeea42b83944e9fc758012f235e41e7aa7bdff/.github/workflows/pr-release.yaml#L11
We could have a routine for automating this.
EDIT: Created an issue for it.

Follow-up issue:

https://github.com/FuelLabs/fuels-ts/issues/2119


Redstone Block can be turned directly into Flux Block

Minecraft 1.12.1
Forge 2484
Flux Networks 1.12.2-3.0.1
Redstone Blocks can be tossed into lava and turned directly into flux blocks, bypassing most of the cost (including the ender eyes).

tested and confirmed in 1.10.2 also.

Confirmed too in 1.12.1
But i cant get any normal flux. I can change redstone blocks to flux blocks, but i cant change redstone to flux :D

Fixed - Removed Redstone Block and Ender Eyes shortcuts


base64

I have a problem when passing data to qr code value as '{' is encoded to %7B whereas I need it to be '{' in the url

Hello,
Can you please provide a full example of the QR code generated?  { is url-encoded as %7B.  Typically browsers will url-decode and load the URL containing a {.  What is the behavior you're seeing?

Hello,
Thank you for answering,
I need to implement the QR code component in HTML template having the URL "https://quickchart.io/qr?text={{variable}}&size=200". Because I want to replace the variable with Mustache component later, but, since QR code component is replacing '{' with '%7B' and '}' with '%7D', Mustache can't recognize it.

I know this is a late response, but looks like you'll have to process the template with mustache before the value gets sent to the mjml-qr.


with-docker example fails to build due to /app/yarn.lock: no such file or directory

What version of Turborepo are you using?
latest as of 2022-10-20
What package manager are you using / does the bug impact?
Yarn v1
What operating system are you using?
Mac
Describe the Bug
The with-docker example fails to build. Tested on macOS 12.6, Docker version 20.10.20, Docker Compose version v2.12.0.
The builder target fails:
#24 [with-docker-api builder 7/7] RUN turbo prune --scope=api --docker
#24 0.301  ERROR  could not construct graph: 1 error occurred:
#24 0.301       * reading yarn.lock: open /app/yarn.lock: no such file or directory
#24 0.301
#24 0.301
#24 ERROR: executor failed running [/bin/sh -c turbo prune --scope=api --docker]: exit code: 1

log.txt
Expected Behavior
Example builds following directions at:
https://github.com/vercel/turborepo/blob/d79261f1b6da79ee5cbeb3f0988003a303eb15e3/examples/with-docker/README.md?plain=1#L39-L42
To Reproduce
Check out this commit:
commit d79261f1b6da79ee5cbeb3f0988003a303eb15e3 (HEAD -> main, origin/main, origin/HEAD)
Author: Nathan Hammond<EMAIL_ADDRESS>Date:   Thu Oct 20 05:42:11 2022 +0800

    Specify branch in release process.

Go to the examples/with-docker folder. Run the following command:
COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose -f docker-compose.yml build --parallel --no-cache=true --progress=plain

Did you run yarn install first?

The initial error comes from not running yarn install in with-docker since prune requires a yarn.lock. I'll quick put up a PR to add this to the instructions.


tnt.SideNavigation fails to expand NavigationList after activating "expanded" and then "visible"

URL (minimal example if possible)
https://openui5nightly.hana.ondemand.com/#/entity/sap.tnt.SideNavigation/sample/sap.tnt.sample.SideNavigation
Steps to reproduce the problem

Open the above sample page
Open the Diagnostics window and select the SideNavigation control
Uncheck expanded
Uncheck visible
Check expanded
Check visible

What is the expected result?
The NavigationList is is expanded as well.
What happens instead?
The NavigationList is kept collapsed although the SideNavigation is expanded.

I think SideNavigation exits setExpanded a bit too early. It skips activating expanded on its item aggregation (NavigationList) when there is no DOM reference.
https://github.com/SAP/openui5/blob/9a7267987b3cd93279bc48f0c344599130e69330/src/sap.tnt/src/sap/tnt/SideNavigation.js#L138-L165

Hello @boghyon ,
With which browser you have reproduced the issue. I have tried with Chrome and IE, but don't manage to reproduce it.
Regards, Diana

Hi @Shtilianova,
The issue is reproducible in basically all browsers since the SideNavigation exits without expanding its NavigationList if there were no DOM reference. If the steps are followed accordingly, the issue should be reproducible.

Hello @boghyon,
Thank you for sharing this finding. I've created an internal incident<PHONE_NUMBER>. The status of the issue will be updated here in GitHub.
Regards,
Alexandar Mitsev

Hi,
The issue is fixed in the master branch.
Best,
Teo


Strange thing on hover mouse on TX fee

Strange thing on hover mouse on TX fee

Replicated this when trying to withdraw liquidity from a pool that no liquidity has been provided for - we've already implemented a change to disable these buttons when 0 liquidity provided, and it will be deployed soon, so I'm going to close this issue.


Command failed: git merge-base origin/0 HEAD when running tagged builds

Orb version:
1.6.0

What happened:
When running tagged jobs, the set-shas functionality isn't able to properly resolve the latest successful job and outputs the following:
fatal: Not a valid object name origin/0
node:internal/errors:856
  const err = new Error(message);
              ^

Error: Command failed: git merge-base origin/0 HEAD
fatal: Not a valid object name origin/0

    at checkExecSyncError (node:child_process:841:11)
    at execSync (node:child_process:912:15)
    at /home/circleci/project/index.js:19:16
    at Object.<anonymous> (/home/circleci/project/index.js:53:3)
    at Module._compile (node:internal/modules/cjs/loader:1126:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
    at Module.load (node:internal/modules/cjs/loader:1004:32)
    at Function.Module._load (node:internal/modules/cjs/loader:839:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) {
  status: 128,
  signal: null,
  output: [ null, '', 'fatal: Not a valid object name origin/0\n' ],
  pid: 354,
  stdout: '',
  stderr: 'fatal: Not a valid object name origin/0\n'
}

Base SHA

Head SHA
a2fba2d819a99575b9b3ef5c13e5ec8b5d92fed2

NX_BASE and NX_HEAD environment variables have been set for the current Job
CircleCI received exit code 0

Expected behavior:

Base SHA is resolved to the latest passing build

Additional Information:
Repro config.yml
version: 2.1

commands:
  install-packages:
    steps:
      - restore_cache:
          name: Restore Yarn Package Cache
          keys:
            - yarn-packages-{{ checksum "yarn.lock" }}
      - run:
          name: Install Dependencies
          command: yarn install --frozen-lockfile --cache-folder ~/.cache/yarn

      - save_cache:
          name: Save Yarn Package Cache
          key: yarn-packages-{{ checksum "yarn.lock" }}
          paths:
            - ~/.cache/yarn

orbs:
  # Official NX Orb: https://github.com/nrwl/nx-orb
  nx<EMAIL_ADDRESS>
jobs:
  workflow-experiment:
    docker:
      - image: cimg/node:16.17

    steps:
      - checkout
      - install-packages

      - nx/set-shas:
          skip-branch-filter: true
          workflow-name: prod-deployment

      - run:
          name: Echo SHAs
          command: echo "base=$NX_BASE   head=$NX_HEAD"

# Tag filtering anchor
filters: &tagFilter
  tags:
    only:  /^v[0-9]+(\.[0-9]+)*$/ # only act on version tags

workflows:
  version: 2

  prod-deployment:
    jobs:
      - workflow-experiment:
          filters: *tagFilter

Build environment variables
Using build environment variables:
  BASH_ENV=/tmp/.bash_env-6323bd61a4378057e83df117-0-build
  CI=true
  CIRCLECI=true
  CIRCLE_BRANCH=
  CIRCLE_BUILD_NUM=508
  CIRCLE_BUILD_URL=[REDACTED]
  CIRCLE_JOB=Deploying to Prod
  CIRCLE_NODE_INDEX=0
  CIRCLE_NODE_TOTAL=1
  CIRCLE_PROJECT_REPONAME=[REDACTED]
  CIRCLE_PROJECT_USERNAME=[REDACTED]
  CIRCLE_REPOSITORY_URL=[REDACTED]
  CIRCLE_SHA1=49244e3e111f667cf626c794a59efc05c7377eb6
  CIRCLE_SHELL_ENV=/tmp/.bash_env-6323bd61a4378057e83df117-0-build
  CIRCLE_TAG=v0.0.8
  CIRCLE_USERNAME=[REDACTED]
  CIRCLE_WORKFLOW_ID=9d7d5ff0-e8ee-4adc-950e-acbb3bfcca9d
  CIRCLE_WORKFLOW_JOB_ID=a781656d-18b7-4f6b-affc-c020cd46631f
  CIRCLE_WORKFLOW_WORKSPACE_ID=9d7d5ff0-e8ee-4adc-950e-acbb3bfcca9d
  CIRCLE_WORKING_DIRECTORY=~/project

My Hypothesis
I think that because the CIRCLE_BRANCH variable is empty, that throws the Nx initialization script off and makes it replace arguments and break the script

Current Workaround
Force CIRCLE_BRANCH to some value and the script works

Hey @pedroyan,
Your assumption is correct. I will try to find a clean solution for this.
For the time being, you should not run the orb for tags.


Firebolt version 0.13.0 certification issue

The following failures are observed with the version 0.13.0

[ ] Discovery.launch for search intent
[ ] Parameters.init failure

Believe we retested in 0.14 and closed this one?

Support added for Firebolt 1.0.0 #296


🐛 TextBox is unfocussable

Describe the bug
The TextBox() widget does not focus on tap, and also is non-editable because of it. The Flutter-Inspector, shows it's FocusNode as 'NOT FOCUSABLE'
To Reproduce
Minimal Reproducible example

Create a new Flutter project with windows as a platform
Use fluent_ui: ^4.9.0 as a dependency
Overwrite main.dart with the attachment (main.txt because of Github upload policy)
main.txt
Run the application, and try clicking on the TextBox()

Expected behavior
Tapping the TextBox() widget, should bring the focus on that widget and make it editable
Screenshots
https://github.com/bdlukaa/fluent_ui/assets/132486634/4d348ce7-4ec0-46cf-9306-3d1a84395b9e
Additional context
I was orgininally using this widget as part of the PlatformTextField from flutter_extended_platform_widgets. I reproduced this on Android, and managed to resolve it with some SO isssue, by adding keyboardType: TextInputType.text. But that is not available for this platform. The issue logged was something to do 'Cannot have 0 span ...', but no log from this package

If I replace the pane with content, then it works as expected:
return NavigationView(
      appBar: const NavigationAppBar(),
      content: TextBox(
        placeholder: 'Name',
        expands: false,
        autofocus: true,
        autocorrect: false,
        onTap: () => debugPrint('does detect tap'),
        onChanged: (value) => debugPrint('does not detect change: $value'),
      ),
      // pane: NavigationPane(
      //   items: [
      //     PaneItem(
      //       icon: const Icon(FluentIcons.add),
      //       title: const Text('Add'),
      //       body: const _TextFieldPage(),
      //     ),
      //   ],
      // ),
    );

So the problem seems to be with the pane

I am experiencing this issue as well, and it is quite severe. I rely on a significant number of text boxes within the navigation pane body, which are now affected. Could we please have this issue prioritize? 🥲🥲

Just add this selected: 0, on NavigationPane and it works back.
I don't really know why. But you selected should not be null or you should use content instead of items.
I think it could be documented, but not necessarily need a fix (especially if it's tricky).

@WinXaito Thanks! It fixed the issue after adding the selected: 0. Wishing you all a great day ahead!


CMake Error at /home/user/esp/esp-idf/components/mqtt/CMakeLists.txt:1   (include):   include could not find requested file (IDFGH-11019)

Answers checklist.

[X] I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
[X] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
[X] I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.
v5.1
Operating System used.
Linux
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
None
What is the expected behavior?
I encounter an error when I try to set-my target to esp32s2, using the esp-mesh-lite component, and including mesh_client.h
I expect idf.py to set the target to esp32s2
What is the actual behavior?
Instead, it returns the error

 CMake Error at /home/onepower/esp/esp-idf/components/mqtt/CMakeLists.txt:1
  (include):

    include could not find requested file
CMake Error at /home/onepower/esp/esp-idf/components/mqtt/CMakeLists.txt:1
  (include):

    include could not find requested file:

      /home/onepower/esp/esp-idf/components/mqtt/esp-mqtt/CMakeLists.txt

  Call Stack (most recent call first):

    /home/onepower/esp/esp-idf/tools/cmake/scripts/component_get_requirements.cmake:106 (include)
    /home/onepower/esp/esp-idf/tools/cmake/scripts/component_get_requirements.cmake:124 (__component_get_requirements)

I searched through /esp/esp-idf/components/mqtt/esp-mqtt, and could not locate the required file, CMakeLists.txt, which the error correctly picks out.
Steps to reproduce.

run install.sh for required target, from esp-idf folder
run export.sh
Go to example project (in my case, the project is esp-mesh-lite/examples/mesh_local_control)
Run idf.py set-target esp32s2 (The error occurs here)
...

Build or installation Logs.
Updating lock file at /home/onepower/projects/esp/esp-mesh-lite/examples/mesh_local_control/dependencies.lock
Deleting 1 unused components
 espressif__tinyusb
Processing 7 dependencies:
[1/7] espressif/cmake_utilities (0.5.1)
[2/7] espressif/esp_modem (0.1.28)
[3/7] espressif/esp_modem_usb_dte (1.1.0~1)
[4/7] espressif/iot_bridge (0.7.1)
[5/7] espressif/usb_host_cdc_acm (2.0.0)
[6/7] idf (5.1.1)
[7/7] mesh_lite (0.1.2)
CMake Error at /home/onepower/esp/esp-idf/tools/cmake/component.cmake:224 (message):
  CMake Warning (dev) at build_properties.temp.cmake:8:

    Syntax Warning in cmake code at column 47

    Argument not separated from preceding token by whitespace.

  Call Stack (most recent call first):

    /home/onepower/esp/esp-idf/tools/cmake/scripts/component_get_requirements.cmake:3 (include)

  This warning is for project developers.  Use -Wno-dev to suppress it.

  CMake Error at /home/onepower/esp/esp-idf/components/mqtt/CMakeLists.txt:1
  (include):

    include could not find requested file:

      /home/onepower/esp/esp-idf/components/mqtt/esp-mqtt/CMakeLists.txt

  Call Stack (most recent call first):

    /home/onepower/esp/esp-idf/tools/cmake/scripts/component_get_requirements.cmake:106 (include)
    /home/onepower/esp/esp-idf/tools/cmake/scripts/component_get_requirements.cmake:124 (__component_get_requirements)

Call Stack (most recent call first):
  /home/onepower/esp/esp-idf/tools/cmake/build.cmake:574 (__component_get_requirements)
  /home/onepower/esp/esp-idf/tools/cmake/project.cmake:547 (idf_build_process)
  CMakeLists.txt:7 (project)

-- Configuring incomplete, errors occurred!
See also "/home/onepower/projects/esp/esp-mesh-lite/examples/mesh_local_control/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1, output of the command is in the /home/onepower/projects/esp/esp-mesh-lite/examples/mesh_local_control/build/log/idf_py_stderr_output_2656785 and /home/onepower/projects/esp/esp-mesh-lite/examples/mesh_local_control/build/log/idf_py_stdout_output_2656785

More Information.
No response

I searched through /esp/esp-idf/components/mqtt/esp-mqtt, and could not locate the required file, CMakeLists.txt, which the error correctly picks out.

Can you try running git submodule update --init in /home/onepower/esp/esp-idf? CMakeLists.txt file of the component comes from a submodule. If you don't see it, it is probably because the submodule is not initialized.

I tried it and it worked, thanks


[DOCFIX] [ALLUXIO-1984] Modify cn-doc in docs/cn/Running-Hadoop-Mapreduce-on-Alluxio

This jira ticket is for Nanjing Hackathon.
In the section of Running Hadoop wordcount with Alluxio Locally in docs/en/Running-Hadoop-MapReduce-on-Alluxio.md, there's a statement saying "depends on the hadoop version, you might need to replace ./bin with ./sbin". Update it in the corresponding page of the Chinese version.

Thanks @00charis for the contribution! Overall looks good to me.
Can you please add the JIRA ticket link in the PR description?
Also the format [DOCFIX] [ALLUXIO-1984] Modify ... is preferred, per Alluxio convention.

Can one of the admins verify this patch?

already revised  ：）） @ifcharming

ok to test

LGTM, thanks for the improvement!

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/10270/
Test PASSed.

@00charis thanks for the patch, it seems the quote symbol should be the ASCII quote `. Otherwise it looks good to me

LGTM, thanks @00charis for the improvement!

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/10285/
Test PASSed.


Limit on daily messages

I would like to know if there is any limit on the the number of daily/monthly messages you can send.

The answer is no.
But I recommend you to send messages carefully, especially to unknown contacts. They can recognize you as a spammer and turn your number blocked.


Cart disappeared when my friend got disconnected whilst riding it.

After a sudden disconnection while playing LAN, no trace was found of the supply cart my friend was riding on after he disconnected.

I also found this issue on Aternos Host playing SevTech: Ages 3.2.3

This happened to me too, when my friend tried to reconnect they got kicked immediately.


feat: Enhance Material Colors on Send

Description

One thing that occurred to me while using the blender connector was the ability to set a default colour, based on the average texture colour of the blender material, on export. This could be a good interim solution to full texture support, currently the texture is stripped and the colour returned to default grey. Maybe I’m missing something and there is a better way?

Another option, that may be easier to implement, would be to set the viewport colour in Blender (averaged from a texture input and material shader parameters), I beleive there is an add-on which already does this. Could Speckle then use this as viewport colour as the display colour in the web viewer.

Related Forum Thread
https://speckle.community/t/speckle-2-4-0-connector-changes-enhanced-material-support/2442/14

Closing this ticket as we are moving to Jira to reduce noise. You can access it there.


az containerapp up fails with: TypeError: argument of type 'NoneType' is not iterable

Describe the bug
Az containerapp up command is failing with  TypeError: argument of type 'NoneType' is not iterable
Related command
/usr/local/bin/az containerapp up -n genevabuddytest-fpa -g grafanaEmbedding -i .azurecr.io/genevabuddytest:1.2.0-buddy.108 --registry-server .azurecr.io --registry-username  --registry-password *** --env-vars GFAZPL_USER_IDENTITY_ENABLED=true GFAZPL_USER_IDENTITY_CLIENT_ID=*** GFAZPL_USER_IDENTITY_CLIENT_SECRET=*** GFAZPL_USER_IDENTITY_TOKEN_URL=https://authproxytest.blackisland-51b08931.westus3.azurecontainerapps.io/oauth2/v2.0/token GFAZPL_USER_IDENTITY_ASSERTION=username --ingress external --target-port 3000
Errors
WARNING: Using resource group 'grafanaEmbedding'
WARNING: Using ContainerAppEnvironment 'authproxytest-env' in resource group grafanaEmbedding
WARNING: Updating Containerapp genevabuddytest-fpa in resource group grafanaEmbedding
ERROR: The command failed with an unexpected error. Here is the traceback:
ERROR: argument of type 'NoneType' is not iterable
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
File "/usr/local/lib/python3.8/site-packages/azure/cli/core/commands/init.py", line 663, in execute
raise ex
File "/usr/local/lib/python3.8/site-packages/azure/cli/core/commands/init.py", line 726, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
File "/usr/local/lib/python3.8/site-packages/azure/cli/core/commands/init.py", line 718, in _run_job
return cmd_copy.exception_handler(ex)
File "/usr/local/lib/python3.8/site-packages/azure/cli/command_modules/containerapp/_client_factory.py", line 28, in _polish_bad_errors
raise ex
File "/usr/local/lib/python3.8/site-packages/azure/cli/core/commands/init.py", line 697, in _run_job
result = cmd_copy(params)
File "/usr/local/lib/python3.8/site-packages/azure/cli/core/commands/init.py", line 333, in call
return self.handler(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
return op(**command_args)
File "/usr/local/lib/python3.8/site-packages/azure/cli/command_modules/containerapp/custom.py", line 3612, in containerapp_up
##[error]Error Code: [1]
##[error]Error: Unable to update Azure Container App via 'az containerapp update' command.
app.create(no_registry=bool(repo))
File "/usr/local/lib/python3.8/site-packages/azure/cli/command_modules/containerapp/_up_utils.py", line 392, in create
return containerapp_up_logic(
File "/usr/local/lib/python3.8/site-packages/azure/cli/command_modules/containerapp/custom.py", line 3632, in containerapp_up_logic
return update_containerapp_logic(cmd=cmd, name=name, resource_group_name=resource_group_name, image=image, replace_env_vars=env_vars, ingress=ingress, target_port=target_port,
File "/usr/local/lib/python3.8/site-packages/azure/cli/command_modules/containerapp/custom.py", line 387, in update_containerapp_logic
if "properties" in containerapp_def and "template" in containerapp_def["properties"] and "containers" in containerapp_def["properties"]["template"]:
TypeError: argument of type 'NoneType' is not iterable
Issue script & Debug output
I can attach if needed
Expected behavior
Able to deploy containerapp
Environment Summary
{
"azure-cli": "2.56.0",
"azure-cli-core": "2.56.0",
"azure-cli-telemetry": "1.1.0",
"extensions": {
"amg": "1.2.9"
}
}
Additional context
No response

Thank you for opening this issue, we will look into it.

https://github.com/Azure/azure-cli/releases/tag/azure-cli-2.58.0
The fix has been released from azure-cli version 2.58.0.


[CARBONDATA-1483] Open auto merge when loading and inserting into

auto compaction when loading and inserting into

set DEFAULT_ENABLE_AUTO_LOAD_MERGE as true
add test case and verify the change is ok

Build Failed with Spark 1.6, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder/84/

Build Failed  with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/207/

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/208/

Build Success with Spark 1.6, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder/85/

SDV Build Fail , Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/839/

SDV Build Fail , Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/840/

@xubo245   please correct your pr title with the correct format , like : [CARBONDATA-1483] Open auto merge when loading and inserting into

@chenliang613 OK

Build Success with Spark 1.6, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder/87/

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/211/

SDV Build Success , Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/842/

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/226/

Build Success with Spark 1.6, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder/102/

SDV Build Success , Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/857/


add git repo finding to workspace root + temporary fix for issue #3

add some code to search for a git repo as well as a temporary fix for issue #3 on windows.

This should also maybe help with issue #2

I'll merge the fix for #3.
Git workspace detection should be implemented with vim.fs.find and also return the URL.

Also note that the fix will most likely result in a false positive when you start Neovim before Discord.

Git workspace detection should be implemented with vim.fs.find and also return the URL.

so something like this, but also with a git remote show origin or similar to get the url?
---@param path string?
---@return string?
local function find_git_repo_dir(path)
    -- use current working directory if no path specified
    path = path or vim.loop.cwd()

    local repos = vim.fs.find('.git', {
        upward = true,
        stop = vim.loop.os_homedir(),
        path = path
    })

    return repos[1]
end


NumericUpDown Culture problem

Hello,
I'm using the NumericUpDown control in a app with the culture pt-PT, in this culture the decimal point is ',' and using a numeric key pad the decimal key is ignored.
When the user press the decimal key, even when the decimal point is not the dot, the text entered should be the given culture decimal separator, like System.Globalization.CultureInfo.CurrentCulture.NumberFormat.NumberDecimalSeparator.
Is any way to do this, or is this a limitation of the current control.
I've tested with the 1.1.2 and 1.1.3-ALPHA174 versions, in the MetroDemo.NET45 project.
Thanks,
Frederico

@fredericoregateiro it seems you must set the Culture explicit https://github.com/MahApps/MahApps.Metro/blob/master/MahApps.Metro/Controls/NumericUpDown.cs#L294
cause NumericUpDown uses Language.GetSpecificCulture(); by default https://github.com/MahApps/MahApps.Metro/blob/master/MahApps.Metro/Controls/NumericUpDown.cs#L442
NumericUpDown check and use NumberDecimalSeparator already
https://github.com/MahApps/MahApps.Metro/blob/master/MahApps.Metro/Controls/NumericUpDown.cs#L651

@punker76 i have the culture set on the control also
Culture="pt-PT"
With this culture, the decimal point on my keypad doesn't work, only the comma on the qwerty keyboard sets the decimal point correctly. The decimal key works only with the culture set like "en-US" or similar.
Using the pt-PT culture, the users expect that the decimal point on the keypads set the comma ',' and start to fill the decimal places.
Thanks,
Frederico

@fredericoregateiro how is your os keyboard configured?

Is this picture enough?

The keypad i'm using is the numeric keypad, the most used to enter numeric values. Like this one:

question is, what comes in OnPreviewTextInput if you hit the numeric delete key?
        protected void OnPreviewTextInput(object sender, TextCompositionEventArgs e)
        {
            e.Handled = true;
            if (string.IsNullOrWhiteSpace(e.Text) ||
                e.Text.Length != 1)
            {
                return;
            }

            string text = e.Text;

            if (char.IsDigit(text[0]))
            {
                e.Handled = false;
            }
            else
            {
                CultureInfo equivalentCulture = SpecificCultureInfo;
                NumberFormatInfo numberFormatInfo = equivalentCulture.NumberFormat;
                TextBox textBox = (TextBox)sender;
                bool allTextSelected = textBox.SelectedText == textBox.Text;

                if (numberFormatInfo.NumberDecimalSeparator == text)
                {

Pressing the decimal key on the keyboard:
e.Text: "."
numberFormatInfo.NumberDecimalSeparator: ","
On the OnTextBoxKeyDown event the keypad decimal key returns: e.Key: Decimal System.Windows.Input.Key
and the period key on the normal keyboard returns: e.Key: OemPeriod System.Windows.Input.Key
I've used the MahApps sample app to test this, and set the culture to portuguese:

Pressing the decimal key on the keyboard: e.Text: "."

So how do we should solve this? Cause this is what the TextBox us give.

@fredericoregateiro but maybe this one could the answer: http://stackoverflow.com/a/3879284/920384
public partial class App : Application
{
    static App()
    {
        FrameworkElement.LanguageProperty.OverrideMetadata(
            typeof(FrameworkElement),
            new FrameworkPropertyMetadata(
                XmlLanguage.GetLanguage(CultureInfo.CurrentCulture.IetfLanguageTag)));
    }
}

@fredericoregateiro if i do this, then it works for me ™
    public partial class App : Application
    {
        protected override void OnStartup(StartupEventArgs e)
        {
            Thread.CurrentThread.CurrentCulture = new CultureInfo("pt-PT");
            FrameworkElement.LanguageProperty.OverrideMetadata(typeof(FrameworkElement),
                                                               new FrameworkPropertyMetadata(
                                                                   XmlLanguage.GetLanguage(CultureInfo.CurrentCulture.IetfLanguageTag)));
            base.OnStartup(e);
        }
    }

Strange, i still get the same result, the e.Text="." and the numberFormatInfo.NumberDecimalSeparator=","
I would suggest that the "." could be treated like the decimalSeparator all the time, and so the comma or the decimal key would give the same result, start to edit the decimal part of the number.
Or some property that allow us to give the decimal key this behavior, even if the numberFormatInfo.NumberDecimalSeparator is not the "."

@fredericoregateiro maybe you must set the CurrentUICulture too. I think this is not MahApps related stuff here and I don't want any other hack in the control.

Yes, i really don't like hacks too :smile:
Setting the CurrentUICulture don't fix this.
And given the decimal key the behavior of the decimal point, i don't think it's a hack.
Fot example, on the devexpress control
https://demos.devexpress.com/MVCxDataEditorsDemos/Editors/SpinEdit
pressing de decimal key or the comma on the keyboard, gives the same result, starts to edit the decimal digits of the number.

Another example is the windows calculator, the decimal key or the comma key is allways translated to the NumberDecimalSeparator, "," in my case.
One example of handling the decimal separator:
https://www.devexpress.com/Support/Center/Question/Details/Q94237

So, i've been testing the changes that i was talking before, and the change should be done in the OnTextBoxKeyDown
private void OnTextBoxKeyDown(object sender, KeyEventArgs e)
{
    _manualChange = true;

    if (e.Key == Key.Decimal || e.Key == Key.OemPeriod)
    {
        TextBox textBox = sender as TextBox;

        if (this.Culture != null)
        {
            if (textBox.Text.Contains(this.Culture.NumberFormat.NumberDecimalSeparator) == false)
            {
                //the control doesn't contai the decimal separator
                //so we get the current caret index to insert the current culture decimal separator
                var caret = textBox.CaretIndex;
                //update the control text
                textBox.Text = textBox.Text.Insert(caret, this.Culture.NumberFormat.CurrencyDecimalSeparator);
                //move the caret to the correct position
                textBox.CaretIndex = caret + 1;
            }
            e.Handled = true;
        }
    }
}

@punker76 do you think this should integrate the control code?


Allow KBKDF to use KMAC

Currently KBKDF has explicit checks for CMAC or HMAC and if neither is being used, it errors out.  This prevents the use of KMAC.
All three options are defined for the SP 800-108 KDF.

This has been done.


Use results of whole program analysis to drive devirtualization

Split into 3 commits for better reviewability.
Fixes #5019. Besides fixing that, I also made this do "sealing" of types that we see never have a derived type allocated (because it was easy). This results in more than double the number of potential successful devirtualizations (for the web app template, we see an increase from 800 to 1800 cases where resolveVirtualMethod returns a method that is reported as final).

Could it also switch interface params to concrete types where there is a single caller type? Though may not be worth it.

Could it also switch interface params to concrete types where there is a single caller type? Though may not be worth it.

Yes, I have that in my backlog already. Might be particularly useful for things like dependency injection where interfaces are basically only needed because of testability. It will need a RyuJIT change though.


Android ffmpeg binary and other .so files execution error

Firstly, Thanks for simplifying all the steps in single script..
Have executed script and got ffmpeg/ffprobe binary and other .so files i.e. libavcodec.so, libavdevice.so, libavfilter.so, libavformat.so, libavutil.so, libswresample.so, libswscale.so.
Now when applying to android project using below process:
I have put all these .so files in jniLibs->arm64-v8a->... and same for other 3 CPU architecture like x86 and x86_64.
I have put binary ffmpeg and ffprobe in assets folder with similar CPU architecture. i don't have JNI folder, not any C++ native code in my project.
Now i am loading these so files using System.loadLibrary("") for all 7 .so files and it loads successfully.
Have moved ffmpeg  binary from assets to data/data/ folder.
But when I run any command: it shows error:
CANNOT LINK EXECUTABLE "/data/user/0/<pkg_name>/files/ffmpeg": library "libavdevice.so" not found
What could be the reason? any idea what mistakes I am doing?
I went thru your part 2 of integration (https://github.com/Javernaut/WhatTheCodec), but that's using JNI and Cpp, which is out of scope for me as not aware about JNI and C coding and calling native methods from java code.

Hello @mihir0109 ,
In the past I succeeded in executing ffmpeg binary in Android's terminal only (both via adb and from Android device itself). I haven't embedded it to an Android application.
The ffmpeg binary searches for *.so files by a relative path. All these *.so files should be accessible by ../lib/*.so relatively to ffmpeg binary. The ffmpeg binary doesn't expect the installation directory to be changed anyhow.
You can try placing all necessary files in assets rather than in jniLibs and move them all to device's storage. And then the binary should work properly.

@mihir0109 ,
Consider the 'portable' application. It has its file structure which shouldn't be messed. Only this way such an app can work if you just copy it into a target environment.
That is why you shouldn't change the structure of what FFmpeg building process prepared for you.

Hi @Javernaut ,
Thanks a lot for quick reply and suggestion.
Tried moving all .so files to data/ folder same like ffmpeg, but still getting same error.
CANNOT LINK EXECUTABLE "/data/user/0/com.app.picodio/files/ffmpeg": library "libavdevice.so" not found

@mihir0109 ,
Did you make the structure of files on the device like at the image below?

This way it should work properly.

I have put all these .so files in jniLibs->arm64-v8a->... and same for other 3 CPU architecture like x86 and x86_64.
And all files in assets -> arm64-v8a -> ... (all 7 .so files and ffmpeg and ffprobe binary)
then moving all these assets file to data/ folder.
static boolean copyBinaryFromAssetsToData(Context context, String fileNameFromAssets, String outputFileName) {
	// create files directory under /data/data/package name
	File filesDirectory = getFilesDirectory(context);

	InputStream is;
	try {
		is = context.getAssets().open(fileNameFromAssets);
		// copy ffmpeg file from assets to files dir
		final FileOutputStream os = new FileOutputStream(new File(filesDirectory, outputFileName));
		byte[] buffer = new byte[DEFAULT_BUFFER_SIZE];

		int n;
		while(EOF != (n = is.read(buffer))) {
			os.write(buffer, 0, n);
		}

        Util.close(os);
        Util.close(is);

		return true;
	} catch (IOException e) {
		Log.e("issue in coping binary from assets to data. ", e);
	}
    return false;
}

my cpu architecture is: arm64-v8a
copyBinaryFromAssetsToData(context,  cpuArchNameFromAssets + File.separator + "libavcodec.so", "libavcodec.so");

System.loadLibrary(xxx); isn't needed at all if you don't use the JNI bindings.
I would like to repeat again the thing regarding file structure of binaries and shared libraries. They have to be in separate directories with specific names. See my screenshot above. You shouldn't place into a single directory - that just will not work.

Hello,
Yes, but i said above, try moving .so files from assets folder to data/ folder same like ffmpeg binary.
The ffmpeg binary searches for *.so files by a relative path. All these .so files should be accessible by ../lib/.so
i tried earlier removing system.loadlibrary, but same issue.

Is there any way i can create ffmpeg itself with all necessary .so files.. i.e. using this scripe, i can generate ffmpeg with just 250 kb of binary.. can i get it which includes all .so files i.e. ffmpeg binary itself 20 mb, so other .so files dont required?

Not sure if this is possible. The ffmpeg binary is just a facade for a set of av** libraries. And there are other binaries that work with these shared libraries as well.

I've compiled the ffmpeg binary and tried everything myself. Indeed there is an issue just as you described: "CANNOT LINK EXECUTABLE "./ffmpeg": library "libavdevice.so" not found".
I'm sure the executable worked for me in the past, but I don't remember details.
I'll investigate this issue further, but it isn't my priority for now.

Thanks a lot champ.. waiting for the updated one if can be fixed soon.

Transferred this issue to private Jira


Update README.md

Add shields.io generic badge types and ama in Bulgarian

Shields.io general badge should already be there, and sorry but I won't accept badges in Bulgarian there are too many languages to consider sorry.


[question] handling multi region database best practices

Hi,
Have anyone encounter the need to have regional base instances that may requires read replica of postgresql in those region and automatically write to central postgresql on update/insert/delete?
i know with serverless and aws, aurora does support this. but i belief this could be a costly setup.
I'm thinking maybe another 2 instances with its own read replica and pgpool that writes to central
database. handling this manually might be troublesome to sync database across all instances...
and also, how do we modify database.yml to handle same deployment on different region?
Please share if you have any opinions :)

Hi, @u007
How about CockroachDB?
Recently I just tested this cute distributed database built for the cloud environment and distributed service, and I found that the setup for this is quite simple and it works great across distributed nodes in point of distribution, replication and load balancing.
Pop also support cockroach.
I guess you might already consider this database. If so, can you share your experiences?

hi @sio4
guess we have to setup environment variables for the region of db to connect to ?

Oh, I just want to share my idea for globally distributed environment. If your service is distributed across the world, and it does not have heavy traffic yet, I think cockroach is good candidate against postgres.
It born to be distributed, easy to setup. For connection setting, we can use a LB since its symetric architecture. (There is no central master node for write, and it follows the work load.)

yes im aware of it :) thanks for sharing


Upgrade to HAPI v17

Hi, are there any plans migrating to HAPI v17. Their plugin interface has changed. Thanks.

I've started upgrade today at https://github.com/maxaus/hapi-etags/tree/hapi-17 , will make pull request when everything is finished.

#6


updated .env.example

Description:
updated .env.example

Hey, it seems as no file has been changed? 🤔


Use Twig_Loader_Filesystem instead of Twig_Loader_String?

Great work on this plugin. We use Twig on my team at work and it is world's apart from sprawling php functions or heredoc templates. Embedding it into WordPress is awesome.
Just curious why you opted to use Twig_Loader_String instead of Twig_Loader_Filesystem and setting a basepath for the location of views?
In the Sensiolabs documentation it does state "This loader should NEVER be used. It only exists for Twig internal purposes".

+1, I'd like to know that too :).

+1 as well.

Oh geeze, what have I done?!?!?! I'm not sure. I'll take a look and see if I can figure out why I did that

Discussion for this has moved to #863 and will be resolved soon.


[Example] Refactor examples

Move GPU resource files to conf
Rename run.sh & run-gpu-standalone.sh to run-cpu.sh & run-gpu.sh
Separate scala and python examples into examples/scala and examples/python directories.
Add pyspark examples

@argentea could you help to refactor examples?

Sure. Will do.


Add target selection for cargo kani

Description of changes:
In #2491 we added target selection to playback subcommand. In this change, we add those options to the overall verification workflow.
Resolved issues:
N/A
Related RFC:

Optional #ISSUE-NUMBER.
Call-outs:
Given the driver architecture, I explicitly added a check to ensure standalone Kani does not accept the new arguments.
Testing:

How is this change tested?

Is this a refactor change?

Checklist

[ ] Each commit message has a non-empty body, explaining why the change was made
[ ] Methods or procedures are documented
[ ] Regression or unit tests are included, or existing tests cover the modified code
[ ] My PR is restricted to a single feature or bugfix

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.

In this change, we add those options to the overall verification workflow.

Can you clarify a bit the purpose of this change? Is it a cleanup PR or is it adding a new feature?

In this change, we add those options to the overall verification workflow.

Can you clarify a bit the purpose of this change? Is it a cleanup PR or is it adding a new feature?

Sure. We are adding a new feature, and I believe the title "Add target selection" reflects that, but I can definitely expand the description.


Fix a few C++ and Compiler longevity issues in our code

This pull request fixes a few issues in our code and toolchain support:

NSLayoutConstraint was constructing basic_regex instances incorrectly
ClangCompileTask was parsing the (fragile) output of --version to determine Clang's version
We've had a directory called LLVM-3.6.0 that has, for some time, contained Clang 3.7.0.

This also fixes a very minor performance issue in parsing layout constraints by way of caching compiled regular expressions.

This change is

Hilariously, this failed due to a disk space issue and not because I moved the compiler all around.


yarn add ltijs-postgres

Hello,
Whenever I am trying yarn add ltijs-postgres
it throws this error  (No valid versions found for "ltijs-postgres". The package may be unpublished).

I just realized that the documentation is wrong. Jesus, I'm sorry. The correct package name is ltijs-postgresql, I updated it and forgot to change the docs.


Bug: Change in Twitter logo

What happened?
Want to Change the twitter logo as the website changes its logo @priyankarpal
Add screenshots
.
What browsers are you seeing the problem on?
Chrome
Record

[X] I have checked the existing issues
[X] I have read the Contributing Guidelines
[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSoC'23 contributor
[X] I want to work on this issue

@PatilHarshh Where's the Twitter logo? Why should we think about changing it?

on footer ! For just update things XD

on footer ! For just update things XD

I think we don't need to change any icons.


DEM enrolled device apps after migration

So what if we have DEM enrolled devices on SCCM, and we deploy the apps to the device collection in SCCM? Will the apps be removed after we change the tenant MDM authority to Intune, and the DEM devices are migrated to Intune? As far as we run the import tool, the apps are imported to Intune already but not the assignment to DEM device collection. So there will be a gap between the transition.
If the apps will be lost and will need to be re-assigned on Intune portal, is there a way to prevent this? Eg. will the powershell cmd Switch-MdmDeviceAuthority to migrate individual devices to Intune help?

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

ID: 4913cd11-dd09-791f-af96-9849efa08ef9
Version Independent ID: 4e271b5d-8d9f-7837-867e-1fc1fffd3242
Content: Change the MDM authority - Configuration Manager
Content Source: sccm/mdm/deploy-use/migrate-mixed-authority.md
Product: configuration-manager
Technology: configmgr-hybrid
GitHub Login: @aczechowski
Microsoft Alias: aaroncz

We discontinued the hybrid MDM service in September 2019. For more information, see the main hybrid MDM article. We plan to completely retire the documentation in a couple of months. Since we're no longer maintaining this content, I'm closing this issue.


Microsoft.Bcl not available for iOS and Android

Granted, this might not be Bigsby's issue, but, while installing via NuGet in Visual Studio 2017, a dependency issue threw a wrench into the works:
For iOS:

Install failed. Rolling back...
Package 'Microsoft.Bcl.Build.1.0.14' does not exist in project 'My_Project.iOS'
Package 'Microsoft.Bcl.Build.1.0.14' does not exist in folder 'C:\Users\me\source\repos\My_Project\packages'
Could not install package 'Microsoft.Bcl.Build 1.0.14'. You are trying to install this package into a project that targets 'Xamarin.iOS,Version=v1.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

For Android:

Could not install package 'Microsoft.Bcl.Build 1.0.14'. You are trying to install this package into a project that targets 'MonoAndroid,Version=v8.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

Related conversation: https://forums.xamarin.com/discussion/43098/microsoft-bcl-build-reference-warning

Here's the fix for those who need it (it's basically a dependency version dance):

In the NuGet Package Manager, find the Xamarin Forms OAuth package
Choose the "Latest stable" Version (1.2.1 when I wrote this)
Expand Options
Take note of your current Dependency behavior in case you want to switch it back (default is Lowest)
Set the Dependency behavior to Highest
Install!
(Optional) Switch back Dependency behavior to previous setting

The problem is ultimately with the lowest version of Microsoft.Bcl.Build (1.0.14) - it doesn't exist for Android or iOS, but the latest versions do (1.0.21 when I wrote this).
Note that installing all the latest versions can screw you up if you already have NuGets (or your own code) that depend on something specific that only exists in an older version of the dependencies, such as Newtonsoft JSON, for example.  Granted, that should be rare, but possible.  In this case, install Microsoft.Bcl first using the "Highest" setting, and then install Xamarin Forms OAuth using "Lowest."


Fix radio validation error

What has changed and why?
For fields 'lived_here_before_july_2017' and 'has_home_business'
Added toggleByOption
How to test this change

[ ] has automated tests
[ ] at least one a reviewer ran the code
[ ] tested in small screen
[ ] tested in Chrome
[ ] tested in Firefox
[ ] tested in IE
[ ] tested in Safari
[ ] i18n
[ ] tested in screen reader/contrast <-- remove this if no UX change

The radio button appears.
When applying, has_home_business appears on the server
but the answer to the 2nd question doesn not get sent to the server. "Did you deduct over 50% of your rates as expenses for the 2016/2017 tax year?"

it comes through as "has_home_business_reponse"
Can this change?
how about deducts_over_half_rates


Feature suggestion - menu bar position

Hi here and many thanks for this wonderful window manager.
I think it will be great to have the choice of selecting the position of the status bar. I will not expect left and right, but I think bottom can be helpful.
e.g. yabai -m config status_bar_position bottom

The status bar will be removed some time in the future. Doing a proper customizable bar is more work than I want to take upon me (due to other projects), and so I feel like adding the bar in yabai was a mistake I made early on. You can see #463 and #476 for other people whom are interested in doing a proper bar project for macOS.

Thanks for the quick reply, it makes sense; I will propose the feature to the *bar projects. Thanks for your work.


Add nest detection to snakemake workflow

Adding nest detection to the snakemake workflow is tricky because the wildcard inputs are year and site, where as for the bird detection component they are year, site, and flight. So we either need a better understanding of who to use wildcards or we need to setup a separate workflow that runs after the bird detection workflow.
@bw4sz has started a branch - https://github.com/weecology/EvergladesTools/tree/snakemake_nest_detection
Some notes from a Slack exchange a few months ago:

The central challenge is that input is specifying dependencies, so it needs a list of files that if they are updated then the rule gets run again. Components to solving this probably involve:

Partial expand https://snakemake.readthedocs.io/en/stable/project_info/faq.html#i-don-t-want-expand-to-use-every-wildcard-what-can-i-do
Checkpoints http://ivory.idyll.org/blog/2021-snakemake-checkpoints.html

This is implemented in #93


Quote variables to prevent splitting

URUHA_WORK_DIRECTORY is set to the user's current working directory. It's entirely possible that this directory contains whitespace. Therefore, all usages of this variable should be quoted to prevent word splitting. For example, in activate.sh, there is the line $SUDO umount $URUHA_WORK_DIRECTORY/rootfs/$name. If I run this from directory /home/florine/cool directory/, then without quotes this line would be executed as sudo umount /home/florine/cool home directory/rootfs/dev. In other words, you'd be telling umount to unmount home!
I also replaced $(pwd) with $PWD because (1) why not and (2) you can't accidentally suppress an error exit code if you don't use a subshell.
And I replaced the quotes when defining SUDO from ' to ", but that's purely for consistency with the other quotes I've added.
(The reason no quotes are added around usages of SUDO is because its value is always either the empty string or sudo. No word splitting can occur here.)

Thanks :smiley:


Add an option to select the desired region

As of now, only the fastest region can be selected by the scripts, or all server details need to be provided to the connection script. In most cases, you get your own country as a region, which makes the scripts much less useful for circumventing IP-based geolocation blocks.
Please add an option to preselect a region and skip the latency test, e.g. a variable PIA_REGION that accepts the country code for the desired region.

There actually was a PR for that. No idea why, but it got closed before I got to merge it.
This feature is highly required. It will get added soon enough.

This will come with version v2.0.0

Please check https://github.com/pia-foss/manual-connections/pull/52

Please check https://github.com/pia-foss/manual-connections/tree/v2.0.0

Solved in release v2.0.0.

Solved in release v2.0.0.


fix condition for checking unique_id in autosave option

when autosave is not defined

Instead of removing one of the checks, can you add options.autosave != undefined &&  directly after the if(?

@WesCossick updated.

Thanks


Enable API 33 for Robolectric

Codecov Report

Merging #401 (f051d00) into main (2e3c623) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #401   +/-   ##
=======================================
  Coverage   75.30%   75.30%
=======================================
  Files          79       79
  Lines        4050     4050
  Branches      691      691
=======================================
  Hits         3050     3050
  Misses        587      587
  Partials      413      413

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more


Getting this error on localhost:3000

Run npm run compile first

@iamareebjamal I also faced this error after pulling from upstream. Even after npm run compile, development server still showing the same error.

Checking

It seems that there is some mistake in logic used for locale detection. Error is produced when there is no cookie for locale.

This is in production. :(

I also get this error but after some time it get corrected by itself

can you tell how to debug such error

It will be fixed once #42 gets merged.


Ability to integrate a delay when list is driven by an AJAX request

When an autocomplete list is driven based off of data sent back from an AJAX request, the hintsFetcher function would be called for each character typed. An example where this could be problematic would be a text-box that populates the autocomplete list of users based on the value typed into the autoCompleteElement textbox.
var inp = document.getElementById("autoCompleteElement");
 autoComplt.enable(inp, {
     hintsFetcher: function (val, openList) {
           var params = {};
            // setup the user parameter for AJAX call
            params.user = val;
            $.ajax({
                type: 'GET',
                url: ...,
                dataType: "jsonp",
                data: params,
                success: function (jsonData) {
                    openList(jsonData.data);
                },
            });
        }

An AJAX request will be generated for each character typed into the box. This is undesirable if I were to be typing an user with an extremely long name where N requests is generated for N characters.
One approach to mitigate this sort of problem would be to incorporate a property that can be set on autoComplt to delay hint fetching after a certain time once the user had stopped typing.
This would resolve the problem for multiple requests being sent over to the server as it would only be generated once when the user has stopped typing.

Another feature that would be nice to have for the same sort of example usage would be to have a property on the autoComplt object to accept an optional function that would be invoked after the end-user had selected an item in the dropdown list.

Thanks for feedback.
The 1st issue of multiple requests:
It is able to config the delay time already. The default is 250 ms. Increasing the delay would ease the multiple request issue but sacrifice the responsiveness. A trade-off.
I also add one fix to check the current input value is equal to the value passed to the hintFetcher before calling the hintFetcher. If not, no call happens so as to reduce the redundant calls.
The 2nd issue about the select event listener:
Just add this.
p.s:
I found that Gmail puts the emails from Github into the junk email box. The result is that I miss lots of Github notifications and respond kind of late ...


Bump Mandrel from 22.2.0 to 22.3.1

There is a bug that has been fixed between Mandrel 22.2.0 and 22.3.1, upgrading the version of Mandrel will fix the bug.

However starting from Mandrel 22.3.1 only Java 17 is supported, can a still propose a PR to upgrade?

Not until everything is in place to support jdk 17

So it cannot be upgraded until Camel-K supports Camel 4 and Camel-Quarkus 3, is it what you mean? Because as you can see from the CI of Camel and Camel-Quarkus, they are both already tested against Java 17, isn't it good enough?

There was a discussion a while ago about this: https://github.com/apache/camel-k/issues/3817

I know well that both Camel and CQ could be build with JDK 17 and run correctly with it, but we don't release them using Java 17, we built with Java 11.

I see, it's clear now, thx for the input.

So at some point we should switch and probably this will be with Camel 4.

With the work I'm doing to address #3831 this is not going be any longer necessary. Everything related to the build and runtime (including Mandrel distro) will be only configured in the runtime, hence will be part of the configuration required to run Camel Quarkus/Camel (with JDK 17 most presumably).

BTW, is there any technical lock with Mandrel, or in theory, Camel-K should also work with GraalVM as the root image for the operator?
I'm asking that because, with Mandrel as the root image, there is no way to support the native mode for the JS DSL or once done, predicate and expression expressed in Python.

That's exactly the scope of https://github.com/apache/camel-k/pull/4025. Right now we need to keep it as it is (with Mandrel) as the build time requires the very same bits of the runtime to build natively. If this is limiting some DSL in native mode, we can mark them as not yet available.

Since Camel K 2 onward, this should not be any longer a concern of the operator but of the runtime.


How to fit with nonlinfit if no EquationOfStateOfSolids exist?

After #3, we use the closure approach, and now the return type of energyeos is hard to reference:
julia> x = BirchMurnaghan3rd(40.98926572528106, 0.5369258245417454, 4.178644235500821)
BirchMurnaghan{3,Float64}((40.98926572528106, 0.5369258245417454, 4.178644235500821))

julia> eos = energyeos(x)
#3 (generic function with 1 method)

julia> typeof(eos)
EquationsOfStateOfSolids.Collections.var"#3#4"{Float64,Float64,Float64}

julia> fieldnames(typeof(eos))
(:v0, :b0, :b′0)

If we want to use LsqFit.curve_fit, we would want "what to fit" separated from what the "parameters" are. Now it is not possible: We may have access to the fields of a Parameters type, but we can't know what is going to be fitted (energy, pressure, bulk modulus, etc.).

The sad thing is, this is not even possible:
julia> @set! eos.v0 = 1.0
ERROR: MethodError: no method matching EquationsOfStateOfSolids.Collections.var"#3#4"(::Float64, ::Float64, ::Float64)
Stacktrace:
[1] macro expansion
  @ ConstructionBase ~/.julia/packages/ConstructionBase/BMpJA/src/ConstructionBase.jl:0 [inlined]

[2] setproperties(obj::EquationsOfStateOfSolids.Collections.var"#3#4"{Float64,Float64,Float64}, patch::NamedTuple{(:v0,),Tuple{Float64}})
  @ ConstructionBase ~/.julia/packages/ConstructionBase/BMpJA/src/ConstructionBase.jl:46

[3] set(obj::Function, l::Setfield.PropertyLens{:v0}, val::Float64)
  @ Setfield ~/.julia/packages/Setfield/XM37G/src/lens.jl:110

[4] top-level scope
  @ ~/.julia/packages/Setfield/XM37G/src/sugar.jl:182

[5] include_string(mapexpr::Function, m::Module, txt_::String, fname::String)
  @ Base /Applications/Julia-1.5.app/Contents/Resources/julia/bin/../share/julia/base/loading.jl:1088

What if using ``?
using LeastSquaresOptim

function costfunction(volumes, energies)
    function h(p)
        map(energyeos(BirchMurnaghan{3}(p)), volumes) .- energies
    end
end

function nonlinfit(eos, xs, ys; kwargs...)
    params = [eos.v0, eos.b0, eos.b′0, 0]
    f = costfunction(xs, ys)
    return optimize(f, params, LevenbergMarquardt())
end # function nonlinfit

It even introduces more difficulties:

How does function h know what EOS it should choose? Here we manually write BirchMurnaghan{3} to make it work.
The current implementation of BirchMurnaghan{3} makes no room for e0, so we will either fit a wrong result or cannot fit at all.

We should go back to the type approach.


fix the location from which settings are source when using upstart on el6

Currently the upstart configuration is hard code to source its settings from /etc/default/$UPSTART_JOB, however the helper module method docker_settings_file returns /etc/sysconfig/docker so this is where all the daemon_options are written to. This has the effect that none of the daemon options are honored.

@tduffield  Is there a branch/fork somewhere I can point at to pick this fix up?

If you want to rebase this PR on the current master I will get it merged into master.

This would be nice to fix! Could you please rebase and we'll get this pulled in?

I might have some time this weekend to get to it. You won't hurt my feelings if just take the diff and apply it.

This should be working in master now. Closing


Default normalization std

❓ Questions and Help
When normalizing input images, it seems that the default INPUT.PIXEL_STD is set to [1.0, 1.0, 1.0] in defaults.py. The only stds that are set to values above 1 are the fbnet configs. What is the consideration of this?
I'm asking this because I'm training on my own dataset in COCO format. Like the default settings, it works well when I set INPUT.PIXEL_MEAN to my own custom mean value. However, when I set INPUT.PIXEL_STD above 1 I often get NaN loss quickly.
Any help is greatly appreciated!

Hi,
According to my understanding,
The INPUT.PIXEL_MEAN and INPUT.PIXEL_STD are set according to how the pre-trained model is trained for ImageNet Classification task. So, they are not customized to the COCO.
So, if you are training your network from scratch, you can adjust the parameters to better fit your dataset, otherwise, you do not need it. If the color distribution of your dataset is similar to ImageNet dataset, I do not think you need to adjust it. However, if it does not, it could be a domain transform problem and I think it's an open research problem now.

Closing following the comments from @chengyangfu . Thanks!


After install, user's need to refresh youtube page to start showing the icon in video bar

Version 1.0 on release will have this bug fixed.


NullInjectorError: No Provider for MatDialog Scroll Strategy After Setting Up Native Federation in Angular 18 Nx Monorepo

With what library do you have an issue?
native-federation
Reproduction of the bug/regression with instructions
I am working with an Angular 18 application inside an Nx monorepo, and I've configured Angular Material (version 16) for UI components, specifically using MatDialog for dialogs.
To set up native federation, I ran the following command:
ng add @angular-architects/native-federation --project mfe1 --port 4201 --type remote
After running this command to configure the app as a remote module, the application broke with the following error:
NullInjectorError: No provider for InjectionToken mat-dialog-scroll-strategy!
It seems that the MatDialog scroll strategy is not properly injected after configuring the app for native federation. This issue only occurs after applying the native federation setup.
Steps to Reproduce:
Set up an Angular 18 application inside an Nx monorepo.
Install and configure Angular Material (version 16).
Add native federation with the following command:
ng add @angular-architects/native-federation --project mfe1 --port 4201 --type remote
Attempt to use MatDialog in the application.
Expected behavior
The MatDialog should work as expected, without any provider injection errors.
Versions of Native/Module Federation, Angular, Node, Browser, and operating system
Angular version: 18.2.0
Angular Material version: 16.2.14
Nx Monorepo: 20.0.0
Native federation version: 18.2.2
Other information
No response
I would be willing to submit a PR to fix this issue

[x] Yes
[x] No

@amitkumartech we've created a stackblitz example that helps us speeding up the support. But you would have to come with a reproducible example please


Document OpenRAIL licenses

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.