Delay after capture button clicked.

I am getting issue in almost all devices except nexus devices. when I click on capture button it almost take 4,5 seconds to capture image.
Here are logs which are causing delays. can you let me know how to fix that issue..?
Thanks in advance.
D/dalvikvm: GC_FOR_ALLOC freed 2959K, 21% free 18966K/23960K, paused 165ms, total 165ms
D/dalvikvm: GC_FOR_ALLOC freed 1441K, 21% free 19137K/23960K, paused 112ms, total 112ms
I/Choreographer: Skipped 32 frames!  The application may be doing too much work on its main thread.

Build.MANUFACTURER = Samsung
Build.PRODUCT = S5 SM-G900I

Build.MANUFACTURER = Samsung
Build.PRODUCT = S5 SM-G900I
Unfortunately unable to upload sample project but this issue happen in your demo project you can check it.
Issue is same as described above.

Thanks for the details.
You might try putting the CameraActivity in a separate process. You might also try skipOrientationNormalization(), which means that if the camera hardware sets the EXIF Orientation header, we leave it alone rather than rotate the image to try to remove the need for the header.

It works. Now delays reduced from 4 second to 57ms.
I thinks issue was: Most phone cameras are landscape, meaning if you take the photo in portrait, the resulting photos will be rotated 90 degrees. In this case, the camera software should populate the EXIF data with the orientation that the photo should be viewed in.
so skipOrientationNormalization() did worked.

delays reduced from 4 second to 57ms.

Normalizing the orientation should not take anywhere near that amount of time. I'll see what I can do.

I cannot reproduce the problem. I purchased one of these devices, and taking a picture using demo-playground/ works quickly, with both front-facing and rear-facing cameras, and in both portrait and landscape orientations.
If you can provide instructions for reproducing the issue, please post them.
In the interim, I an closing this issue as not reproducible.


Max height without paging?

Hello, first of all, thank you for wonderful component, it looks really great, documentation and storybook is also well done.
I would like to use it with lot of rows, but instead of paging I prefer render with specified max-height and scroll through rows (sometimes called table freeze headers) Is it possible without writing my own render?
Thank you

Should be. Just put a css max height on the table body and it will scroll
vertically as well :)
On Thu, Mar 9, 2017 at 6:19 AM PetrSnobelt<EMAIL_ADDRESS>wrote:

Hello, first of all, thank you for wonderful component, it looks really
great, documentation and storybook is also well done.
I would like to use it with lot of rows, but instead of paging I prefer
render with specified max-height and scroll through rows (sometimes called
table freeze headers) Is it possible without writing my own render?
Thank you
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/tannerlinsley/react-table/issues/120, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AFUmCbRSCnyzVvnJEylwzIn24uD6QvXqks5rj_xEgaJpZM4MYEgf
.

I hope so, but when I add height:100px on rt-tbody, it stretch rows height to unusable low height

Ah. That's because the whole table layout is based on flex box. You will
probably need to change the table body to have justify-content: flex-start
and possibly give your tr rows a fixed height.
On Thu, Mar 9, 2017 at 7:53 AM PetrSnobelt<EMAIL_ADDRESS>wrote:

I hope so, but when I add height:100px on rt-tbody, it stretch rows height
to unusable low height
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/tannerlinsley/react-table/issues/120#issuecomment-285372900,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFUmCTPTCG8P_NpfTpyVpOibEebNqTP8ks5rkBJ8gaJpZM4MYEgf
.

Thanks, it needs some more css tweaks, If anyone is interested here is working css:
(based on https://codepen.io/anthonyLukes/pen/DLBeE)
.rt-tbody {
        height:100px;
        justify-content: flex-start;
        flex: 1 1 auto;
        position: relative; /* need this to position inner content */
        overflow-y: auto;
      }
      .rt-tr-group {
        min-height:25px
      }
      .rt-thead {
        flex: 0 0 auto;
      }

Improvements or suggestions welcomed


include docs/ in debian package?

is debhelper creating or using the docs?  Or is blindly running make because it detected a makefile?  If we remove the make step from the package building then we no longer need the python-sphinx dependency.

closed via #83


API: remove geom, keep _geom read-only access to GEOS pointer

Closes https://github.com/shapely/shapely/issues/999. This removes the __geom__ dunder attribute and keeps _geom (renaming the _ptr inherited from pygeos to _geom).

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.004%) to 84.358%

Totals

Change from base Build<PHONE_NUMBER>:
-0.004%

Covered Lines:
2141

Relevant Lines:
2538

💛  - Coveralls

Looks great, two quick questions.

Is this _geom correct?
https://github.com/shapely/shapely/blob/8d1911e4684f53261419abfb015e53e64b7acfb4/shapely/_geos.pxi#L59

Slightly related to this PR, should this _ptr also be renamed? https://github.com/shapely/shapely/blob/8d1911e4684f53261419abfb015e53e64b7acfb4/src/strtree.c#L1283

Is this _geom correct?

Ah, that's actually in a file that is no longer used. Cleaning that up separately -> https://github.com/shapely/shapely/pull/1419

2. Slightly related to this PR, should this _ptr also be renamed?

Yeah, I wondered the same. But the problem is that renaming it to _geom would not be correct since it is not a geometry pointer (but STRtree). For consistency we could rename it to something else than _ptr, but leaving it as _ptr also seems fine for me (it won't be exactly the same as _geom for the geometry class anyway)


remove locale from support.md

There was incorrect link with locale merged in which caused the aggregate pipeline to fail
Pipeline not getting triggered on PR so manually queued for verification - https://dev.azure.com/azure-sdk/internal/_build/results?buildId=891892&view=results

/azp run js - aggregate - reports

/check-enforcer evaluate

/azp run js - aggregate-reports

/azp run js - core


Add UnconnectedPeerException and consider HanshakeTimeout as "regular" timeout

About considering "consider HanshakeTimeout as regular timeout" (see https://github.com/eclipse/californium/issues/1223)

@msangoi, I merged it in master but you can still have a look and giving feedback if you want :)


Scoped register()?

One thing I learned from this so-so conference talk is that LiveView allows you to scope your MorphDom target to arbitrary elements.
In theory, that means you could have multiple reflex "widgets" going at once on the same page. We already have controller scoped reflexes working (at least in my PR! cough) and it seems like we could pass that context to CableReady instead of assuming that we want to replace the whole body tag.
DHH got everyone obsessed with REST but there's nothing stopping devs from setting up actions that render arbitrary HTML for a widget with render(layout: false).

This is on the roadmap. I'm waiting for Rails 6.1 as I anticipate that partial page updates will be supported specifically with ActionView::Component. See this effort for some additional context. https://github.com/effkay/stimulus_reflex/commit/91f855ba2febc05bc376affa5e0e592866a2ba8b


Rerun workflow failures

Users have repeatedly asked for the ability to rerun just the failed jobs from a submission. For example, say 10% of their workflows failed due to a transient error. They want a single-click relaunch that would issue a new submission recreating just those workflows. How are we identifying such workflows? How are we creating the new submission out of them? This will require eng design!
See the UI affordance in the submission list-entry dropdown from invision:
https://projects.invisionapp.com/d/main#/console/13746874/304975026/preview

Options:

Have a backend API to rerun submission failures
Create an ad-hoc set for the data from failed workflows. In which case blocked on #404

I'm not sure that creating an add-hoc set is actually blocked on #404, which specifies that this set can be created from the UI. In this case the set can be generated programmatically.
For example, when querying a submission, you get the following:
{
"submissionId": "string",
"submissionDate": "2018-10-16T15:53:53.287Z",
"submitter": "string",
"methodConfigurationNamespace": "string",
"methodConfigurationName": "string",
"submissionEntity": {
"entityType": "string",
"entityName": "string"
},
"workflows": [
{
"workflowId": "string",
"status": "Queued",
"statusLastChangedDate": "2018-10-16T15:53:53.287Z",
"workflowEntity": {
"entityType": "string",
"entityName": "string"
},
"inputResolutions": [
{
"value": "string",
"error": "string",
"inputName": "string"
}
],
"messages": [
"string"
],
"cost": 0
}
],
"status": "Accepted",
"cost": 0,
"useCallCache": true,
"workflowFailureMode": "NoNewCalls"
}
https://rawls.dsde-prod.broadinstitute.org/#!/submissions/getSubmissionStatus
So it seems like it would be possible to get this info for a particular submission and do the following:

Filter the list of workflows on the "status" key to get just the failed ones
Pull out the entity type and the list of entity names from the list of failed workflows from step(1)
Create a new "entity"_set containing the entity names from step(2), named something like "<WorkflowName>-<first 5 digets of parent submission id>-resubmission"
Launch a new submission against the new set we created in step3

This seems like it ensures provenance while avoiding backend work and getting us moving. Y'all, if we can get this feature in place it would be a huge win over FireCloud! Folks have been asking for this forever!


if Oreo is installed will I loose CARSTREAM?

Hello everyone, I have a galaxy s8 Plus and I wanted to install Oreo, but I'm afraid Carstream is not compatible.
Has anyone installed Oreo?
Does the application work?
Thanks so much
Greetings
Luca

Android Version should not matter

I install oreo 8.0 and the app is not working anymore.
I have a s8 with android auto 3.0 and carstream 1.8.3
When i connect the phone to the car, Android auto starts up. So far, so good. When i press the button at the bottom right side, the button to go to carstream is disappear...
Is there a fix???
best regards

@dirk1980dirk revert Android Auto to 2.9 or see issue #116

i downgrade it to AA2.9, and it works fine again.
THX very mush!!!
keep up the good work!!!!

I downgraded to AA2.9, but it refused to install and insisted on being updated
Can anyone help?

Uninstall 3.0 first and then disable auto updates from play store

so you installed carstream, then went to aa2.9 and all good you did nothing else?


mediumlevelil.py missing operand for MLIL_SET_VAR_ALIASED

MediumLevelILOperation .MLIL_SET_VAR_ALIASED in mediumlevelil.py appears to be missing an operand type.  The python binding has two operands, not three like the C++ version.
Attempts to process a MLIL_SET_VAR_ALIASED will raise an IndexError.
Here's th C++ link for MLIL_SET_VAR_ALIASED.
Here's the Python link for MLIL_SET_VAR_ALIASED.
It appears index 2 is missing (SourceExprMediumLevelOperandUsage).

Just an update after talking to certfor. It sounds like DestSSAVariableMediumLevelOperandUsage is missing.

var_ssa_dest_and_src combines DestSSAVariableMediumLevelOperandUsage and PartialSSAVariableSourceMediumLevelOperandUsage, so this is not an issue.
Cannot replicate any issue related to processing MLIL_SET_VAR_ALIASED on my side, and the original reporting account has been deleted, so closing this on account that we cannot request clarification.


Allow to have additional properties for KyselyPlugin.

This change allow create plugin like this:
const plugin: KyselyPlugin = {
  data: new WeakMap<QueryId, SomeData>(),

  transformQuery(args: PluginTransformQueryArgs) {
    this.data.set(args.queryId, something);
    return args.node;
  },

  async transformResult(args: PluginTransformResultArgs) {
    const data = this.data.get(args.queryId);
    return args.result;
  },
};

For now, data property not allowed in KyselyPlugin.

By the way, should KyselyPlugin properties really be required? It seems to me that most often the user passes either transformQuery or transformResult, but not both.

KyselyPlugin is just an interface. Simply leave out the explicit type in your example and the object will implement KyselyPlugin AND have extra properties.


Add http2 listen support.

There is no http2 support right now ?

@tmc You should probably have added a description.
I've looked at the generated nginx.conf and nginx version.
The router currently uses nginx 1.10.1, so enabling http2 support should be as easy as adding http2 to the listen 6443 directive in the nginx.conf.

I've pushed PR #216 which enables http2.


Support non-extern-C symbols

This is a C++ library for working with shared objects, but it only supports unmangled, C-style functions. That means it doesn't serve its primary function. The library must support any C++ function one can load from a shared object. Naturally, this is ABI-specific, but that's either for the user to configure and build accordingly, or potentially a case for multi-ABI support. The latter is much more complicated, and would be a feature request in itself, but function symbols should definitely be looked up by their mangled name, if they're not extern-C.

Current status
Hello,
I'm currently working on that.
The goal is to add a feature to dylib to be able to load c++ symbols
Linux
Variables
I can now access a mangled variable within a namespace :
dylib lib("lib.so");
auto ver = lib.get_variable<double>("driver::infos::version");

Functions
To be able to mangle functions within a namespace, or / and in an overload situation, i need to have access to each function parameter types. But currently, the template you need to specify to get_function is the following :
dylib lib("lib.so");

// get_function<T> for T = [module *(const char *)]
auto mod = lib.get_function<module *(const char *)>("driver::factory");

To be able to iterate over variadic template arguments, i temporally replaced the current syntax with the following one :
// old syntax
// get_function<T>
auto mod = lib.get_function<module *(const char *)>("driver::factory");

// temporary new syntax
// get_function<Ret, Args...>
auto mod = lib.get_function<module *, const char *>("driver::factory");

Do you know if there is a way to "decompose" a function template argument to get its return value as Ret and its arguments as Args... ?
Windows
TODO

Update
Linux and MacOS
Variables
I can now access a mangled variable within a namespace :
dylib lib("lib");
auto ver = lib.get_variable<double>("driver::infos::version");

Functions
I can now access a mangled function within a namespace  with any types of arguments :
dylib lib("lib");

auto mod = lib.get_function<module *, const char *>("driver::factory");
auto set_inst = lib.get_function<void, module &&>("driver::instance::set");
auto print = lib.get_function<void, std::ostream &, const std::string &>("driver::tools::print");

Windows
TODO (Next step)
Question

Do you know if there is a way to "decompose" a function template argument to get its return value as Ret and its arguments as Args... ?

Do you know if there is a way to "decompose" a function template argument to get its return value as Ret and its arguments as Args... ?

Well, std::result_of for the result.

Ah, right, abi:: is just for demangling. typeid(T)::name() doesn't need an extra library. But if that's the case - you're saying the problem is cutting out the return type?

Also, this may be relevant for Windows.

typeid(T)::name() doesn't need an extra library; but then - it doesn't mangle names in the sense of getting you the symbol name to look for in an object.

You are right, to do so, i made the following code to have at the end the accurate symbol mangled name in all situations on unix :
    template <typename T, typename U, typename... Args>
    static std::string TemplateMangle()
    {
        return TemplateMangle<T>() + TemplateMangle<U, Args...>();
    }

    template <typename T>
    static std::string TemplateMangle()
    {
        std::string t = typeid(T).name();
        if (std::is_lvalue_reference<T>::value) {
            std::string tmp = "R";
            if (std::is_const<typename std::remove_reference<T>::type>::value)
                tmp += 'K';
            t = tmp + t;
        }
        else if (std::is_rvalue_reference<T>::value) {
            std::string tmp = "O";
            if (std::is_const<typename std::remove_reference<T>::type>::value)
                tmp += 'K';
            t = tmp + t;
        }
        return t;
    }

    template<typename ReturnType, typename Arg1, typename ...Args>
    static std::string mangle_function(const std::string &name) {
        return "_Z" + std::to_string(name.size()) + name + TemplateMangle<Arg1, Args...>();
    }

    template<typename ReturnType>
    static std::string mangle_function(const std::string &name) {
        return "_Z" + std::to_string(name.size()) + name + typeid(void).name();
    }

Let me first note I've asked about this at StackOverflow.
Now, for your implementation.

I think all of this code should be made constexpr - since it's all information that we know at compile-time.
The T and U in one of your function variants are ambiguous. Give them more specific names?
I suggest we don't use std::string's, but rather a string_view (or a char* and size_t pair in C++11) as the target buffer. We have rather expensive string concatenations in our code, that's true - but that only happens when handling errors.
... actually, we may want to have a "poor man's span" structure with just those two fields
Same point about the inputs. So, something like:template <typename Function>
mangle_function(dylib::detail_::poor_span<char> mangled_name, dylib::detail_::poor_span<char> function_name)`

TemplateMangle - what exactly does it mangle? It seems like it mangles the name of a type, right? Then better call it mangle_type(). Or perhaps just mangle().
Don't use the same string literal in multiple places.
You can probably have an outer mangle() function with a single template parameter, like I suggested above - since it can distinguish at compile-time between whether it was asked to mangle a function or a variable, and call inner code - possibly with a different function name - as necessary.
Have you checked this against the Itanium ABI document to make sure it's valid? That should also get you going with namespace and pointers.
What about mangling a variable?

I think all of this code should be made constexpr - since it's all information that we know at compile-time.
The T and U in one of your function variants are ambiguous. Give them more specific names?
I suggest we don't use std::string's, but rather a string_view (or a char* and size_t pair in C++11) as the target buffer. We have rather expensive string concatenations in our code, that's true - but that only happens when handling errors.
... actually, we may want to have a "poor man's span" structure with just those two fields
Same point about the inputs. So, something like:
template
mangle_function(dylib::detail_::poor_span mangled_name, dylib::detail_::poor_span function_name)`
TemplateMangle - what exactly does it mangle? It seems like it mangles the name of a type, right? Then better call it mangle_type(). Or perhaps just mangle().
Don't use the same string literal in multiple places.

You're right, but currently I prefer to focus on making the proof of concept work

Have you checked this against the Itanium ABI document to make sure it's valid? That should also get you going with namespace and pointers.

Yes, i'm using this document to implement the feature

What about mangling a variable?

The following code mangles namespaced varibles on unix :
class dylib {
private:
    static std::vector<std::string> string_to_vector(const std::string &str, const char *delimiters) {
        std::vector<std::string> tokens;
        std::string::size_type lastPos = str.find_first_not_of(delimiters, 0);
        std::string::size_type pos = str.find_first_of(delimiters, lastPos);
        while (std::string::npos != pos || std::string::npos != lastPos) {
            tokens.push_back(str.substr(lastPos, pos - lastPos));
            lastPos = str.find_first_not_of(delimiters, pos);
            pos = str.find_first_of(delimiters, lastPos);
        }
        return tokens;
    }

    static std::string mangle_variable(const std::string &name) {
        if (name.find("::") == std::string::npos)
            return name;
        auto ns_list = string_to_vector(name, "::");
        if (ns_list.size() == 1)
            return ns_list.front();
        std::string mangled = "_ZN";
        for (auto &ns : ns_list)
            mangled += std::to_string(ns.size()) + ns;
        return mangled + 'E';
    }
}

I think you may be misusing the delimiters parameter... it takes several chars, each of which is a delimited.

I'm gonna release 2.0.0 without this remangling feature since i dont have many time to work on that actually.

@martin-olivier : There's always version 3.0...

Here are some outstanding SO questions about doing this:

Can I mangle C++ names without compiling anything?
What is Linux utility to mangle a C++ symbol name?
C++ name mangling by hand
How do I mangle C++ names (for GCC-compiled objects on Linux)?

So, about this kind of a line:
auto mod = lib.get_function<module *, const char *>("driver::factory");

I find that's not good enough. It's neither here nor there. If you want something fully dynamic, then don't even pass the type via a template, but as a string, e.g.
lib.get_function("driver::factory(module *, const char *)");

where users would manage the calling conventions themselves using a void*.
Similarly, you would also accept
lib.get_function("foo driver::factory(module *, const char *)");

for any foo, i.e. be willing to ignore the return type in the string (but also to check it if that's at all possible).
However, if you do have the namespace, name and signature at compile-time, then I would expect something like:
namespace driver {
foo (*factory)(module *, const char *) = nullptr;
} // namespace driver
lib.populate(driver::factory);

I realize this might be wishful thinking, but aesthetically, this sounds more right than what you have now

On the other hand, what you're suggesting is not different from what you already have for C-style functions. So maybe my complaint is not relevant to this bug specifically.

Good news - here's MSVC mangling code for you:
https://godbolt.org/z/nnW19qzYE
Right now, that code requires C++20, but with a little work you can bring that down to C++11 and integrate it into yur own code.

Good news - here's MSVC mangling code for you:
https://godbolt.org/z/nnW19qzYE
Right now, that code requires C++20, but with a little work you can bring that down to C++11 and integrate it into yur own code.

Hey, did anyone did that "little work"? I kinda need it to build in some old compilers. :/

Don't know if this is of any help. When demangling the other way, I always use boost. There is also a nice static type_info that uses a string_view and the PRETTY_FUNCTION macro in order to extract the unmangled names. There a few around and can't remember which I used but here is one of them. Either way I'd probably buy not build and would've thought a compiler/support library builtin must be able to mangle names. Last time I looked at libsupcxx many years ago I think I saw one.
Personally though I'd probably rather use the compiler and register something into my library. I appreciate that only works for some usecases though, where you can modify the sources and you're generating something more like a plugin, rather than just very late binding of an arbitrary function. Let the compiler do that work and pull symbols in using something more like a factory with my own key.


Shorthand for bind:attribute missing from docs

The docs write:

If the attribute and the bound property share a name, you can use this shorthand:
<CategoryChooser bind:category/>

But in this case an even shorter version can be used if I am not mistaken:
<CategoryChooser :category/>

This shorthand is not mentioned in the docs.

:category isn't actually a shorthand for bind:category, it's a shorthand for category={{category}}. You're right, we do need to document that!


SQLite speed needs to be drastically increased

Every DbHandler call will create a a new connection to the database, which increases the duration of each insert by 100%. (around 200q/s vs 100q/s)
Since every insert statement starts a transaction and commit it right after, this will drastically reduce the number of queries per second. If I could manage to make a queue with queries needed for execution every-so-often, the queries can go from 200/s up to 65k/s
https://www.sqlite.org/faq.html#q19
I will probably drop Sqlite-net for something else

I made slight modifications which are on the branch for this issue, but i'm afraid to merge it into dev since i don't know how well it will work :\

Originnaly I Have made sme modification to SQLite-net before it was changed. I added a extra text like for Insert "ON COLLICT IGNORE", to be sure that if one query fail, others still execute. With this one, Insert are safe, but I think that if one update fails, transaction will be stopped.

I really feel like i should just leave it as it is, and rewrite it to use SQL server in 1.0, since we're moving to .net core


Why where is mandatory param? Shouldn't it be optional as per chromadb?

ERROR -- : message=Client error response code=400 body={"error":"InvalidArgumentError","message":"Expected where to have exactly one operator, got {}"}
/usr/local/rvm/gems/default/gems/irb-1.14.1/lib/irb.rb:1260:in `full_message': InvalidArgumentError (Chroma::APIError)

I've got same error.
>  question_embedding  = [1.8638756275177002,
 -0.023308515548706055,
 -2.544995069503784,
 1.411717176437378,
 1.2810852527618408,
 1.5934257507324219,
 0.3053443729877472,
 -1.9993882179260254,
 0.11245744675397873,
 -0.8461968302726746,
 -2.4017527103424072,
 -1.3157418966293335,
 -4.111044406890869,
 -0.6862623691558838,
 0.6185646653175354,
 -1.1491460800170898]
> collection = Chroma::Resources::Collection.get(collection_name)
> collection.query(query_embeddings: question_embedding)

Then I got following error from the
E, [2024-11-13T23:36:07.016314 #154] ERROR -- : message=Client error response code=400 body={"error":"InvalidArgumentError","message":"Expected where to have exactly one operator, got {}"}
(my-rag):115:in `<main>': InvalidArgumentError (Chroma::APIError)

Server version
> Chroma::Resources::Database.version
=> "0.5.18"

I've also tried following option according to the option shown in the python library but the errror message does not change.
     collection.query(
        query_embeddings: [ question_embedding ],
        where: {"metadata_field": "is_equal_to_this"}
      )

I've got the same error.
@matsubo thanks for workaround.

Chroma API changed at some point that made invalid to send empty Hashes for where and where_documents.

New release was pushed to Ruby gems v0.8.2


Implement new regex_substring jinja filter

Closes https://github.com/StackStorm/st2/issues/3343

Added a couple of comments, would also be good to open a corresponding PR with docs in st2docs.

@Kami yes I have "opening a PR for st2docs" in my TODO list, will do that as soon as my two filters are merged.

Okay I took the liberty of adding all regex examples in contrib, and I should have already addressed your other comments.


Added buffer between Lifecycle and private Label

@snittoor You should connect your PR and issue via phrase "Closes #" and issue number in description box. In your case you need to write "Closes #223" (no bold)


Permissions problem on OSE endpoint

Both OSE user and Admin cannot access the ose endpoint. OSE user gives permissions issue and Admin user gives "unprocessible entry" error. Tested locally from /docs interface.

If we could also remove "roles" from the /docs sign in that would be nice. I don't think they do anything at this point.

I've added the OSE scope and given it to both the admin and OSE user. When testing in SwaggerUI I believe you need to use this format for datetimes '2020-09-15T15:53:00+05:00' and when testing with postman this format '2020-09-15T15%3A53%3A00%2B05%3A00'. I would think it should be working now.


ci: build images before runs compatibility tests

Coverage increased (+2.6%) to 74.531% when pulling fb02bab599bdd17bf191cb2ffe42f88ba5bd1d6b on Rory-Z:ci/update-workflows into a6c30f8d7728b02020fd4c3527ab12d84664f201 on emqx:main.


Upgrade fails to load Web part on CustomLearningAdmin after running script

Repro
Customer has App Catalog, Site Collection Admin Perms
Customer uploads v49 package to Tenant App Catalog & deploys - no errors
Customer runs CustomLearningConfiguration.ps1 script without errors.
Customer with Tenant Admin perms goes to Custom Learning site.
CustomLearningAdmin.aspx is in Site pages but doesn't load the Web part.
1553813754155 - Copy.log

Web parts were not loaded into the site when pages were first created, therefore the CustomLearningAdmin and CustomLearningViewer pages need to be deleted and then the powershell script (CustomLearningConfiguration.ps1) re-run to recreate those pages with the -SiteAdminOnly switch to add the webparts to them.


Compilation error due to ambiguity of :< and :>

I'm getting a compilation error due to ambiguity between the :< and :> defined in Expr.hs and the ones imported from Control.Lens in the latest committed version.
Screenshot of cmd for reference:

I can't reproduce this error, can you find out what version of lens you've got?

4.14

I've got the same. Not sure why this is happening, but you can just modify the import for Control.Lens to:
import Control.Lens hiding ((:>),(:<))
and it should fix it.
If it works, commit the changes and we'll see what happens.

Yea, that fixed it -- committed changes.


issue when running dist application on ubuntu 64

I just did "grunt dist-linux", then moved the files from my darwin to linux, and then when trying to execute i get this error message
./node-webkit
[2159:1120/165651:ERROR:icu_util.cc(149)] Couldn't mmap /home/beaglert/Desktop/Linux64/icudtl.dat
[2159:1120/165651:FATAL:content_main_runner.cc(716)] Check failed: base::i18n::InitializeICU().
Aborted (core dumped)

Am i supposed to build the linux dist on a linux computer ?
Shall I try use a different version of node-webkit bin ?

Thank you @arminhammer for the patch its merged

Thank you @arminhammer for the patch its merged

Yes it is in the repo but currently not released. So you have to apply the changes yourself or install from the repository.


Port over Editors

Initial port of Editor configuration with some minor formatting changes.
For https://github.com/ember-learn/cli-guides-source/issues/3

Fantastic, thank you!


Fix git-init for Git 2.35.2

Changes
https://github.blog/2022-04-12-git-security-vulnerability-announced/ was announced
and then fixed in Git 2.35.2. This ends up creating issues like https://github.com/actions/checkout/issues/760,
where the directory the git repo lives isn't owned by the same user performing the
git operations. This does appear to be affecting us - see https://tekton-releases.appspot.com/build/tekton-prow/pr-logs/pull/tektoncd_pipeline/4750/pull-tekton-pipeline-integration-tests/1514143139193950210/
for example, which has the telltale error message of fatal: unsafe repository ('/workspace/go/src/github.com/GoogleContainerTools/skaffold' is owned by someone else).
This is an attempt to fix that by having git-init call git config --global --add safe.directory [repo dir]
before fetching, etc.
/kind bug
Submitter Checklist
As the author of this PR, please check off the items in this checklist:

[ ] Docs included if any changes are user facing
[x] Tests included if any functionality added or changed
[x] Follows the commit message standard
[x] Meets the Tekton contributor standards (including
functionality, content, code)
[x] Release notes block below has been filled in
(if there are no user facing changes, use release note "NONE")

Release Notes
Fixed git-init behavior to work with Git 2.35.2 changes.

/test pull-tekton-pipeline-build-tests

/test pull-tekton-pipeline-integration-tests

/assign @wlynch
/assign @imjasonh
/assign @mattmoor
Assigning people who I see have done stuff in pkg/git/git.go in the past and may feel qualified to review this. =)

I think this works - the alpha integration tests passed (build and integration jobs never properly launched, so I'm re-running them), but they fail consistently on other PRs, like #4750's https://tekton-releases.appspot.com/build/tekton-prow/pr-logs/pull/tektoncd_pipeline/4750/pull-tekton-pipeline-alpha-integration-tests/1514243048417005569/

And fwiw, I'm more than a little confused as to how git-init is ending up with Git 2.35.2 on it - when I build it locally, it's Git 2.32.1, but that error message is new in 2.35.2, as seen at https://github.com/git/git/commit/8959555cee7ec045958f9b6dd62e541affb7e7d9#diff-c4fe8341fe7387f617eb30b841ca114b8b62ccb94403fc6a04cd7fc188dc2961R1303

Just as a datapoint (context #4752):
# docker run -ti ghcr.io/distroless/git --version
Unable to find image 'ghcr.io/distroless/git:latest' locally
latest: Pulling from distroless/git
6c6f69aa2550: Pull complete
Digest: sha256:107c3bcf9a5d92c88e1085cb949d247ebe95cfbf6235d4a4307d129d2874de71
Status: Downloaded newer image for ghcr.io/distroless/git:latest
git version 2.35.1

Was this introduced in .2? 🤔

I misread the title, I see fixed in .2 ok 👍
I'll talk to Ariadne about where that is in Alpine edge.

/retest
Quota flakiness on pipeline-integration-tests this time.

It’s already in edge, I’ll rebuild and check the version again before attempting the switch 👍


Reset Http1Transaction before adding vc to keep_alive_queue

Fix #7891.
Mark as a draft, after this change ASan reports another heap-use-after-free. I'll check it is uncovered by this or made by this.

Cherry-picked to v9.1.x branch.


TypeError: unsupported operand type(s) for +: 'dict_items' and 'dict_items'

this happens using exploreV2 with python 3

Please update this issue by adding the missing information that are requested in the issue template.

@danialgood exploreV2 is not yet ready for prime time, it's still in development.


A function publicPath into 'false' in the loader.

 // loader
{
  test: /\.(?:jpg|gif|png|svg)$/,
  loader: 'file',
  query: {
    limit: 1024,
    name: `${IMGPATH}/[hash:20].[ext]`,
    publicPath: url => path.relative(CSSPATH, url),
  },
}

var publicPath = "__webpack_public_path__ + " + JSON.stringify(url);
// output
console.log(config.publicPath);// false
if (config.publicPath) {
  // support functions as publicPath to generate them dynamically
  publicPath = JSON.stringify(
    typeof config.publicPath === "function"
    ? config.publicPath(url)
    : config.publicPath + url
  );
}

But A string publicPath,  the output is corrent.
thx.

@coderwin Could you please try to explain the problem again, I don't get the issue tbh :)
- var publicPath = "__webpack_public_path__ + " + JSON.stringify(url);
+ var publicPath = "__webpack_public_path__ " + JSON.stringify(url);

+1

This is not a bug. If you want to use function publicPath query. You should define it in webpack config object root, not in loader query object.
module: {
  loaders: [
    {
      test: /\.(?:jpg|gif|png|svg)$/,
      loader: 'file'
    }
  ],
},
fileLoader: {
  limit: 1024,
  name: `${IMGPATH}/[hash:20].[ext]`,
  publicPath: url => path.relative(CSSPATH, url),
}


Proxy giving error killed by Global_block

Proxy giving error killed by Global_block for all connections, http and https on Ubuntu 18.04

What error? Make sure to use the issue template and fill in the information we ask for.
Please provide more information, mitmproxy version, the error message, your command line arguments, etc.


Correct the inputTooShort message

This pull request includes a

[ ] Bug fix
[ ] New feature
[x] Translation

The following changes were made

The french translation for the inputTooShort message give the false idea that this limit is strict. Add the 'or more' equivalent that was missing.

@Jir4 Don't you think it would be better french to say "Saisissez au moins n caractère(s)" ?

Looks like this has been dealt with in recent changes to fr.js.  Please feel free to discuss if you believe that additional changes to the French translation are needed.


aio-lib-osgi should export io.openapitools.jackson.dataformat.hal.* packages

aio-lib-osgi should export io.openapitools.jackson.dataformat.hal.* packages
but it does not, as a result any osgi bundle importing Registration  (and their HAL links) will fail to load

fix released as part of https://github.com/adobe/aio-lib-java/releases/tag/aio-lib-java-1.0.6


gcc version

Hi,
I am using macOS and I was using the function std::to_string(myDoubleVar); which is working fine. However, I was compiling it in the linux setup and it's not recognized 'to_string' is not a member of 'std'
It seems that the function is C++11, but I thought we were using already the C++11.
Any ideas? Do we need to upgrade the linux setup with a newer version?
Thanks,
Alex.

Hi @amaroyo,
C++11 is not enabled by default on Linux, or at least on certain flavors of Linux; therefore, you have to explicitly tell CMake to compile the code with C++11 features enabled.
There are multiple ways of doing this. If you have CMake 3.1, try this:
set (CMAKE_CXX_STANDARD 11)

C++11 (actually C++14) will be the default from GCC 6.1 (https://gcc.gnu.org/projects/cxx-status.html#cxx14), that I think is the default since Ubuntu 16.10 .


⚠ Bofrost.de has degraded performance

In 92cc9aa, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1813 ms

Resolved: Bofrost.de performance has improved in c05bb7f after 21 minutes.


Add ability to set a MaxVersion when forming a request

When making a kmsg.Request by hand for example SyncGroupRequest it would be nice to be able to specify a custom MaxVersion that will override the hard coded max version in the messages.
Certain requests (SyncGroupRequest has been the only one I've found so far) when made by hand for older versions cause Kafka to return an error because Franz always upgrades the version to the MaxVersion.
i.e If I send a SyncGroupRequest that doesn't have ProtocolType and Protocol set (version 4 or bellow) franz auto upgrades it to version 5, sends them to Kafka as nil. This is causes Kafka to return InconsistentGroupProtocol (err 23).
My usecase for this is probably very specific to what I'm building so I completely understand if you don't want to add something like this.

That's already available, just set it in the options when you create the client.
	return []kgo.Opt{
		kgo.SeedBrokers(seeds...),

		// SASL Options
		kgo.SASL(scram.Auth{
			User: user,
			Pass: pass,
		}.AsSha256Mechanism()),

		kgo.MaxVersions(kversion.V2_4_0()),

		// Configure TLS. Uses SystemCertPool for RootCAs by default.
		kgo.Dialer(tlsDialer.DialContext),
	}

Interesting, so you have a use case to send v4 of a request, and then v5 when using the same client?

Yep, I'm using this client to create a proxy in essence so I need the ability to flip versions on a request by request basis.
My setup is Kafka Clients -> My Proxy -> backend kafka clusters. Kinda like an Nginx but Kafka protocol aware where there's multiple kafka cluster backends and the proxy smartly distributes requests based on what that client is making. Inspired by this blog post https://www.confluent.io/blog/tencent-kafka-process-10-trillion-messages-per-day/ as the software mentioned there was never open sourced so I thought to give it a shot.
Most requests don't seem to care about having the version match exactly and proxy through fine to the backend kafka cluster but the SyncGroupRequest is being extra picky due to the extra fields being sent in v5. I believe this is due to how consumer groups determine which protocol to use for the group and SyncGroup v5 changes that up slightly.
I currently got around this issue by coping the generated code and removing the version 5+ bits and setting the max version to 4. Then I just use that one to send v4 messages and everything works fine.

Perhaps this could be done with a different option, kgo.ExactVersions (or maybe a different name) that obeys the version in the field of the request and never overrides it.
I'm currently wondering how much to include for an eventual v1.5, and I'm not sure I'd want to cut a v1.5 with this option alone, so I'm not sure on the exact timeline of any new option offhand.

Oh I like that idea.
Yup I agree just changing 1 thing is probably not enough for a 1.5 release. I do have a work-around for now so I'm not too concerned about needing timelines or anything. If I have any more idea for what to include in 1.5 I'll let you know!

When making a kmsg.Request by hand for example SyncGroupRequest it would be nice to be able to specify a custom MaxVersion that will override the hard coded max version in the messages.
Certain requests (SyncGroupRequest has been the only one I've found so far) when made by hand for older versions cause Kafka to return an error because Franz always upgrades the version to the MaxVersion.
i.e If I send a SyncGroupRequest that doesn't have ProtocolType and Protocol set (version 4 or bellow) franz auto upgrades it to version 5, sends them to Kafka as nil. This is causes Kafka to return InconsistentGroupProtocol (err 23).
My usecase for this is probably very specific to what I'm building so I completely understand if you don't want to add something like this.

Actually, I think this can be done without any new APIs in this library: you can have a helper type that explicitly overrides SetVersion to be a no-op:

type ExactVersionRequest struct{ kmsg.Request }

func (ExactVersionRequest) SetVersion(int16) {}

and whenever you want to disable any version setting from kgo, wrap your request in ExactVersionRequest.
I've realized that kgo.ExactVersions doesn't exactly work within kgo itself, because if you issue any group request, kgo issues a FindCoordinator request to learn which broker to issue your group request to. If ExactVersions were used, then FindCoordinator would be bound to 0. v0 doesn't allow looking up transactional requests. As well, the client internally issues metadata request sometimes (learn of the coordinator, learn where to split topics); this would bound those requests to v0 as well. For the most part, v0 for metadata works, but no reason to avoid going higher.
I was then going to some exact version optional interface to kmsg, and have it auto implemented by all requests there, and this method would disable SetVersion ... and then I realized, why not just use a wrapper?
I think this small wrapper is better left to external libraries, but lmk if you think this should be added in kmsg or if this wrapper doesn't work for you. For now, I'll close the issue, but again feel free to open.

Yea but that's for the life of the client. I would like to be able to
customize it for each request without needing to make a new client.
On Sun, Mar 27, 2022, 5:11 PM Martin Schneppenheim @.***>
wrote:

That's already available, just set it in the options when you create the
client.
return []kgo.Opt{
kgo.SeedBrokers(seeds...),
  // SASL Options
  kgo.SASL(scram.Auth{
  	User: user,
  	Pass: pass,
  }.AsSha256Mechanism()),

  kgo.MaxVersions(kversion.V2_4_0()),

  // Configure TLS. Uses SystemCertPool for RootCAs by default.
  kgo.Dialer(tlsDialer.DialContext),

}
—
Reply to this email directly, view it on GitHub
https://github.com/twmb/franz-go/issues/153#issuecomment-1080029344, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAEE6IK5J5BU2HU5IZWUU6DVCDTI5ANCNFSM5RZCVEZA
.
You are receiving this because you authored the thread.Message ID:
@.***>

Isn't the above suggested specific for each request? SetVersion ignores the version being set, so the version in the kmsg.Request as specified by you pins the exact version to be used.
It's very coincidental that you messaged on this comment, I was thinking to add a new PinVersion API for #214 but revisiting this thread because of the ping, I think the ExactVersionRequest idea above is even easier.

Err that's weird... I totally did not comment that 7 hours ago and it said it was sent via email... which I didn't send O.o
Changing passwords...

Actually scanning through my email. This looks like a github bug. I sent an email comment with that exact contents back in March 27th, it never went through so I made https://github.com/twmb/franz-go/issues/153#issuecomment-1080831278 in the UI. Looks like now it finally went through haha.
Anyway, I did end up using kgo.ExactVersions but if you are working on a better solution ExactVersionRequest seems like a good one.


beRsvpAnswersRoutes: Started endpoints and  helpers.

Merging to backend for answers table and routes.

All is good in Backend world


C++ Namespace alias "ERROR translating statement"

Infer crashes on the following source code. This came from a real project, where most files included some template-heavy headers with namespace aliases in them. So basically no files were analysed, unfortunately.
namespace boost {
  namespace spirit {
    namespace qi {
      using symbols = int;
    }
  }
}

int foo() {
  namespace qi = boost::spirit::qi;
  qi::symbols x = 0;
  return x;
}

int main() {
  return foo();
}

Output contains:
main.cpp:10:3-35: ERROR translating statement 'DeclStmt'
main.cpp:9:11-13:1: ERROR translating statement 'CompoundStmt'

The log files say:
[18438][ intern err] main.cpp:10:3-35: ERROR translating statement 'DeclStmt'
[18438][ intern err] main.cpp:9:11-13:1: ERROR translating statement 'CompoundStmt'
[18438][ intern err]
[18438][      debug] Aborting translation of method 'foo' in file 'main.cpp'
[18438][      debug] Unimplemented feature:
[18438][      debug]   In DeclStmt found an unknown declaration type <"NamespaceAliasDecl":({"pointer":16,"source_range":({"file":"/Users/joshua/Documents/Projects/Temp/main.cpp","line":10,"column":3},{"file":"/Users/joshua/Documents/Projects/Temp/main.cpp","line":10,"column":33})},{"name":"qi","qual_name":["qi"]},{"namespace_loc":{"file":"/Users/joshua/Documents/Projects/Temp/main.cpp","line":10,"column":3},"target_name_loc":{"file":"/Users/joshua/Documents/Projects/Temp/main.cpp","line":10,"column":33},"nested_name_specifier_locs":[{"kind":<"Namespace">,"ref":{"kind":<"Namespace">,"decl_pointer":7,"name":{"name":"boost","qual_name":["boost"]}}},{"kind":<"Namespace">,"ref":{"kind":<"Namespace">,"decl_pointer":8,"name":{"name":"spirit","qual_name":["spirit","boost"]}}}],"namespace":{"kind":<"Namespace">,"decl_pointer":9,"name":{"name":"qi","qual_name":["qi","spirit","boost"]}}})>

Infer version v0.15.0
OS: MacOS Mojave
command: infer run -- clang++ main.cpp

Thanks for a very detailed error report.
I tested it with a newer version of infer, and I didn't get the "Aborting translation".
Can you try it with v0.16 and/or a master build?

Hi, thanks for a very detailed bug report.
Indeed, infer doesn't know how to translate NamespaceAliasDecl.

Thanks for confirming.
As a side-question: Is there a page which lists the unimplemented features? It would help me to guess whether I will succeed at using infer at some projects.

I'm working on fixing this particular case.
I'm curious: infer doesn't actually crash when encountering unknown instructions like this, just logs the error, skips the function, then continues. If infer indeed crashed then is there another error showing in its output?

In this instance, a lot many functions were skipped. This codebase uses a lot of namespaces.
There was also a crash (sigsegv). I initially thought this was related, but I couldn't reproduce it on the small example above. Later I found an issue here which probably explains that crash (it is unrelated).
Thanks again!

@Jaxan I see, thanks again for the report. It's fixed in master now.


Local variables don't get defined under the correct environment

Description:
function testRun(string name) returns int {
    if !(name is "") {
        return 1;
    }

    string testvar = "toyota";
   <cursor>
}

Try getting the completions at the <cursor> position.
Here testvar will be visible if we remove return 1 line
Steps to reproduce:
Affected Versions:
OS, DB, other environment details and versions:
Related Issues (optional):

Suggested Labels (optional):

Suggested Assignees (optional):

Original Issue: https://github.com/wso2-enterprise/internal-support-ballerina/issues/12

Some Findings: https://github.com/wso2-enterprise/internal-support-ballerina/issues/12#issuecomment-995721633

Fixed in https://github.com/ballerina-platform/ballerina-lang/pull/34449


[release/1.7] ci: disable marking 1.7 releases as latest

This change makes it so new tags of 1.7.x are not marked as latest over 2.0 releases.

oh vagrant, you silly you

should be able to rebase to get passing CI


Where can I submit PRs for https://umbrelinfo.gitlab.io/troubleshooting.html?

So I'm going through the motion and ordering a USB to TTL Serial Cable for the RPI, and will probably be able to contribute back how to troubleshoot when SSH no longer works.
The question: where do I submit my troubleshooting steps if the troubleshooting.html page is at a different domain (umbrelinfo.gitlab.io, other repo) than the official one (getumbrel.com, this github repo)?

info.umbrel.tech (The new domain for UmbrelInfo) has a button "Contribute! Source n GitLab." Click there and you can contribute to it on GitLab

But not sure if this is needed, 0.3.9 will fix 99% of these issues.

But not sure if this is needed, 0.3.9 will fix 99% of these issues.

I think you'll find that an umbrel node whose SSH port does not respond will continue to happen after 0.3.9, with 100% certainty. My question was a preemptive one, so that, once I have the steps documented, I may share them.
I now know what to do to contribute to troubleshooting.html, and will close the issue, thanks.

I think you'll find that an umbrel node whose SSH port does not respond will continue to happen after 0.3.9, with 100% certainty. My question was a preemptive one, so that, once I have the steps documented, I may share them.

This is very unlikely after the update, the only cause could be a bad power supply. Also, I would never recommend users to use a  USB to TTL Serial Cable, but just to connect a screen to the Raspberry Pi, it's probably simpler for most users, but as something that probably won't happen, I don't think it's worth it putting that on info.umbrel.tech.

@lestephane the issue with the Pi randomly not responding is that the USB ports on the Raspberry Pi aren't up to spec and in some scenarios when the device is under load and the SSD is being used frequently the Pi is not able to supply enough power to both the USB port and itself. Either the SSD or the Pi (or both) experience extreme instability.
This (https://github.com/getumbrel/umbrel/pull/722) goes a long way to reducing the chance of running into the issue, but you're right, it won't completely prevent it, not much will until there's a new Pi release with adequate power circuitry.
At least that's our perspective on it after spending a considerable amount of time investigating it. By all means get your hands dirty and take a further look though, I'd love to hear your findings and if you think there could be another causing factor!

Thanks for the heads up. Out of curiosity, what fixes in 0.3.9 are going to
help with these usb ports problems (issue numbers welcome)?
It sounds like something that is a deal breaker for the current recommended
board. Maybe I won‘t bother much with RPI 4 then.
You may have to start getting feedback about other boards. If you already
have eyes on a specific board alternative, let me know so i can purchase it
and try it out.
On Sat 17. Apr 2021 at 15:36, Luke Childs @.***> wrote:

@lestephane https://github.com/lestephane the issue with the Pi
randomly not responding is that the USB ports on the Raspberry Pi aren't up
to spec and in some scenarios when the device is under load and the SSD is
being used frequently the Pi is not able to supply enough power to both the
USB port and itself. Either the SSD or the Pi (or both) experience extreme
instability.
This (getumbrel/umbrel#722 https://github.com/getumbrel/umbrel/pull/722)
goes a long way to reducing the chance of running into the issue, but
you're right, it won't completely prevent it, not much will until there's a
new Pi release with adequate power circuitry.
At least that's our perspective on it after spending a considerable amount
of time investigating it. By all means get your hands dirty and take a
further look though, I'd love to hear your findings and if you think there
could be another causing factor!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/getumbrel/umbrel-website/issues/25#issuecomment-821816207,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABJVHFEXBSSKPR7BSIW4TR3TJF6FFANCNFSM43CV7QRQ
.

--

Out of curiosity, what fixes in 0.3.9 are going to help with these usb ports problems (issue numbers welcome)?

https://github.com/getumbrel/umbrel/compare/v0.3.8...master All of this.

This is the main one: getumbrel/umbrel#722

It sounds like something that is a deal breaker for the current recommended board. Maybe I won‘t bother much with RPI 4 then.

For me the above patch resolves all issues on the Raspberry Pi 4.

I'm going to close this issue as my question has basically been answered. Thanks

Thanks @lestephane. Just FYI, v0.3.9 is now released which resolves most of the SSD/power/stability issues.

It will be interesting to see whether dropping UASP will actually cause
initial block download time in increase for users.
That's another use case for a metric we could collect over time (in an
anonymized fashion), like memory usage.
On Fri, Apr 23, 2021 at 11:53 PM Luke Childs @.***>
wrote:

Thanks @lestephane https://github.com/lestephane. Just FYI, v0.3.9 is
now released which resolves most of the SSD/power/stability issues on Pi
hardware.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/getumbrel/umbrel-website/issues/25#issuecomment-825919360,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABJVHFB2JU464CXORRDE2DTTKHM3DANCNFSM43CV7QRQ
.

--


Move SPIRV global variables into a context variable

Fixes #4722
Move SPIRV global variables into a context such that spirv-opt can SROA the variables if multiple entry-point's are used.
Note: SROA will only run for 100 elements if spirv-opt does not manually set the spirv-opt scalar-replacement option.
Note: some tests need adjustments due to assuming variables are in global scope.

We need to have a test to make sure we don't break the ray tracing variables and other builtin variables, especially when using glsl.meta.slang.

We need to have a test to make sure we don't break the ray tracing variables and other builtin variables, especially when using glsl.meta.slang.

👍 I will add a test

What about global groupshared variables?

Since this pass has the potential of introducing regressions, let's roll it out progressively. Let's add a -enable-experimental-passes flag (default off) and put the pass underneath the flag.


angular.element.scope() returns undefined

angular.element.scope() is undefined when the application is loaded in iframe by changing the iframe src attribute.
The following code should return reference to scope but returns undefined:
angular.element(document.body).scope()

The code above is executed in the onclick handler after the document is loaded and angular has finished bootstrap:
<script>
    document.addEventListener("click", function(){
        console.log(angular.element(document.body).scope());
    });
</script>

The issue manifests itself only when the document is loaded in the iframe by modifying its src attribute.
Tested with 1.3.0-rc.5, without jquery.

...

...

setTimeout(function() {
console.log(angular.element(document.body).scope());
}, 100);

@ronnievdv

Is there a way around this; having debugInfoEnabled(false), but still being able to access the scope of an element?

I've used the following snipet (not recommended) method in the link function of the directive definition.
link: function(scope, element, attrs) {
  var isolatedScope = scope.$$childTail;
}

Is there any way to check if debugInfo has been disabled or any flag for it?

From within the app, you can use $compileProvider.debugInfoEnabled().
If you want to debug a live instance that has debug info disabled (e.g. a production deployment), you can call angular.reloadWithDebugInfo() from the console and it will reload the app with debug info enabled.

@gkalpak I just want to check if debug info is enabled or not. Somewhat like this.
if(angular.isDebugInforEnabled()) {
  // Do something
}

@hemkaran , it is still not obvious where you want to check it from. I assume from inside your app.
If that is indeed the case, you can use $compileProvider.debugInfoEnabled().

@Toilal Did you write a directive like that? If so, would you mind sharing? I'm having this problem right now. I assume I'll find a solution, but having a second opinion on how to solve it really wouldn't hurt.
cc @ocombe

Sorry I don't use Angular 1 anymore, and I never had to write such a directive (because I only needed this info in dev mode)

I did the following. We'll see if my teammates will let it through the review :)
function exposeScope() {
    return {
        restrict: 'A',
        link: function(scope, element) {
            element[0].APPNAME = {
                getScope: function() {
                    return scope;
                }
            };
        }
    };
}

return {
        restrict: 'A',
        scope: false,
        link: function(scope, elem) {
            elem.data('$scope', scope);
        }
    };

You can also set $isolateScope to the same if you need it.


Fix setup for development with ganache

The docker compose files were outdated.
Last month apparently the web3 dependency was updated to v5.28 which makes some changes to maxPriorityFeePerGas which were causing the used ganache-cli version to no longer work.
Web3 was making a eth_maxPriorityFeePerGas call that was failing against ganache v6 and thus we were no longer able to install the contracts.
The dockerhub image of ganache is no longer called ganache-cli, but ganache. By switching to trufflesuite/ganache we are installing ganache v7 where maxPriorityFeePerGas is available.
Also I was trying to build on a M1 but the built images were amd64. I updated the readme to reflect that docker can build multi-architecture images by using the buildx command.

Btw the link to the documentation in the README is also wrong: https://docs.gnosis-safe.io/docs/services_relay/

This was already addresed by #480


remove nuget.org feed and add private org feed

Removed the public OSS endpoint nuget.org and added our tools azure artifacts feed for addressing security requirements.

Going to set the feed in the pipeline runs instead as discussed offline.


Plugin name
Stargate
download page
https://hangar.papermc.io/Stargate/Stargate
Source code URL
https://github.com/stargate-rewritten/Stargate-Bukkit
Paid?

[ ] is paid for?

The legacy 1.19 edition works on soak 1.19 after this update
https://github.com/SoakProject/Soak-Plugin/pull/8
However there are small faults that dont affect the plugins ability such as the nether portal blocks facing the wrong direction


(ccleaner) Installing 5.92.9652 vs 6.02.9938

Checklist

[X] I have checked the moderation queue that no new version has been submitted (only visible when logged in), or the submitted package version has failed the automated checks.

Please navigate to the following link to view the moderation queue.

[X] I have verified that the new version is a stable release.
[X] I have looked to see if there are any Bug reports that prevents a new version being submitted and that no existing Outdated Reports have been created.
[X] I have verified the new version has a Windows binary (EXE or MSI installer, Zip or other archive, etc).

New Software Version
6.02.9938
Download location
https://www.ccleaner.com/ccleaner/download/standard
Package Page
https://community.chocolatey.org/packages/ccleaner

This will be fixed by https://github.com/chocolatey-community/chocolatey-packages/issues/1960.


drawElementsType and drawArrayType should be more robust

Make sure uninindexed draw calls work.

unindexed drawcalls work. Tested with pointcloud rendering.

drawElements is now robust enough to be able to run multiple PG (PP, point cloud, RTT,...). More work on draw call will appear but it will be related to a more complex use case. Closing.


Add Robot Scouter to the list

I'll be upfront on this one, I'm the main dev for Robot Scouter so if this is crossing the line, that's fine. However, I think Robot Scouter has some really cool features that are useful for other devs to look at:

Completely automated Play Store publishing
Tight integration with Firebase libraries and custom builds of FirebaseUI (I'm always pushing back upstream, but it can take some time for new releases to come out)
Really advanced spreadsheet exporting with Apache POI on Android (which is rare and was a pain to optimize proguard)
Some pretty intense RecyclerView.Holder abstraction to support over a dozen different view types in the same list (The app lets the user build a fairly customizable template, hence all the different views)
Some pretty sick Material Design: the screenshots in my readme are all old because I'm building v2.0, but I'll share some of the new designs here:

Sweet! 😀


[DOCS] Add Trino and Pulsar to homepage

Redesigned home page image on lucidchart
Lucidchart is now shared in community gdrive
Added docs/support matrix for trino

Tips

Thank you very much for contributing to Apache Hudi.
Please review https://hudi.apache.org/contributing.html before opening a pull request.

What is the purpose of the pull request
(For example: This pull request adds quick-start document.)
Brief change log
(for example:)

Modify AnnotationLocation checkstyle rule in checkstyle.xml

Verify this pull request
(Please pick either of the following options)
This pull request is a trivial rework / code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)

Added integration tests for end-to-end.
Added HoodieClientWriteTest to verify the change.
Manually verified the change by running a job locally.

Committer checklist

[ ] Has a corresponding JIRA in PR title & commit

[ ] Commit message is descriptive of the change

[ ] CI is green

[ ] Necessary doc changes done or have another open PR

[ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.

@wangxianghu could please take a look
@bvaradar can you quickly eye ball the trino instructions?

@leesf Can we also add the OBS product (object storage) of Huawei Cloud into the storage layer?

@leesf Can we also add the OBS product (object storage) of Huawei Cloud into the storage layer later?

@yanghua Sure, @xiarixiaoyao would you please provide obs image so that we would add it in landing page?

Added! Will land once CI passes.


Mineraft Bedrock - Automatic save pasuing for backups

Feature Request
It has been only mentioned once back in 2019, but I wanted to confirm if save hold was ran at the time a backup begins, and save resume is run once the backup finishes running. In the past, I have as a precaution always scheduled a server stop, then started a backup. I heard that this might not be necessary for content to be saved and wanted to confirm that before I begin relying on this setup.
Feature Information:

One issue per post! Do not try and bring up multiple requests in a single post.
What should it do?
Pause and automatically resume minecraft bedrock saves "save hold save resume
Is it specific to a given application module?
Minecraft Bedrock Edition

I confirm:

[x] that I have searched for an existing feature request matching the description.

AMP already does this for bedrock edition. Has done so for over a year.

Please see attached log file. A file is locked when the server is running, and due to this when you restore from a backup the server will not boot. The solution is updating the server's copy of MC bedrock after restoring, but at the loss of the whitelist file. It would appear that bedrock does indeed need to be shut down to back up safely.
AMPLOG 2020-12-20 02-33-53.log

Also, this happens some days by not shutting the bedrock server down first. This error does NOT occur when the server is gracefully shut down one minute before the backup is performed.
Figured I'd let you know @PhonicUK - this also causes everything to kinda hang until a user manually accepts the error message, and then forcibly shuts down their server.


CORS policy

Access to XMLHttpRequest at 'http://<IP_ADDRESS>:18000/AuthenticateUserTest' from origin 'http://localhost:4200' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

I'm not sure how /AuthenticateUserTest works, but it doesn't seem related to Crow itself, rather the route code.


Reformat BIDS publications in wiki to include full reference

We have a page of BIDS publications in the wiki and I think it would make sense to include the full reference to the paper, eg in APA style.
So for example:

MEG-BIDS, the brain imaging data structure extended to magnetoencephalography

G Niso et al (2018)

could be formatted as:

Niso, G., Gorgolewski, K. J., Bock, E., Brooks, T. L., Flandin, G., Gramfort, A., … Baillet, S. (2018). MEG-BIDS, the brain imaging data structure extended to magnetoencephalography. Scientific Data, 5, 180110. 10.1038/sdata.2018.110

I'd be open to other ways of formatting the publications though to make that page most useful.
This is a good-first-issue which means it's particularly appropriate for someone looking to make their first contribution. Please don't pick this issue if you're already comfortable contributing to github (please DO choose another way to add what you know about BIDS though!)

Hey Kirstie!
Just updated the concerned wiki page by referencing it in APA style. Have a look!


Ability to open local files

Hello again,
I know this is probably impossible but is there a way to open a local file clicking on that file and upload and open it directly to MS-365-ELECTRON?
This would be THE killer feature :)
Thank you for doing this app,
Best regards

Yeah, that feature would be awesome, but the issue is that I'm currently quite busy and since this would require a lot of time, I might not be able to implement it right away. I'll definitely keep it in mind and implement it, if possible.


fixed docker-swarm integration

@rajthilakmca  @morpheyesh  Good team.
@morpheyesh  Add a few lines of comment on each function/at top of the class.


Property 'on' does not exist on type 'RNSimplePeer'

Hello I'm trying to use react-native-simple-peer, however, I'm getting the following error
Error: Property 'on' does not exist on type 'RNSimplePeer'

Code

import RNSimplePeer from "react-native-simple-peer";

const peer = new RNSimplePeer({
    initiator: false,
    trickle: true,
    config: undefined,
    stream,
  });

  peer.on("signal", (data: any) => {
    socket.emit("action", { signal: data });
  });

Environment

typescript: 4.3.5
react 17.0.2
react-native: 0.68.2
react-native-simple-peer: 0.1.5

please use react-native-webrtc dont use this lib


data

Dear author, I am very interested in your research. Could you please share your original tweet data for my reference? If possible, my email is<EMAIL_ADDRESS>

Hello @luoluoluoyl , thank you for your interest!
Apologies, I have been busy and couldn't respond to your request sooner, but I would like to point to a new version of the repository which has the complete data available instead of just the Twitter ids.
https://github.com/ndionysus/multitask-cyberthreat-detection
Hopefully soon I will have more time to update the repo above. But in the meantime you can use the data from there.
Let me know if you need anything else from my end!


Getting -40

Hello,
I am using an esp32 and a dfrobot 0546 sdensor that uses the CHT8305.  When i ran the Minimal Example i get -40 for temperature and 0 for humidity.  Any ideas as to why this is happening?  The Wire scanner does find a device in address x040 so its finding the sensor.
Any ideas?
thanks

Thanks for the question,
I have no clue at the moment. As I am working on another project I will dive into this later today if time permits.

int CHT8305::_readRegister(uint8_t reg, uint8_t * buf, uint8_t size)
{
  _wire->beginTransmission(_address);
  _wire->write(reg);
  int n = _wire->endTransmission();
  if (n != 0) return CHT8305_ERROR_I2C;

  if (reg == CHT8305_REG_TEMPERATURE)  //  wait for conversion...
  {
    delay(_conversionDelay);  //  2x 6.5 ms @ 14 bit = 14  (10 works).
  }

  n = _wire->requestFrom(_address, size);
  if (n == size)
  {
    for (uint8_t i = 0; i < size; i++)
    {
      buf[i] = _wire->read();
    }
  }
  return CHT8305_OK;
}

if low level read got an I2C error, the data will not be filled.
==>so need to implement the error handling.

Added bug  label as this should be fixed.

Can you run CHT8305_status.ino and post a dozen lines of its output?

Created a develop branch with a new function getLastError().
this patch captures current errors in a variable which is accessible via getLastError()
More code is needed to catch all errors but this is a start.
Can you test this branch?
You can adjust the minimal sketch to print the last Error after reading the sesnor.
Thanks, back to my own project

@arifainchtein

Any ideas?

Do you have pull up resistors on the SDA/SCL lines?
Long wires?

Hi Robert,I am in Australia and just got your messages.  I do have the i2c lines pull up with a 10k resistors.  The length of the cable is about 50cm.i will use the development branch you created to test.  i will also connect the sensor directly to the board and test to eliminate  that variable.will report later on todaythanks againSent from my iPhoneOn 16 Sep 2024, at 23:54, Rob Tillaart @.***> wrote:
@arifainchtein
Any ideas?
Do you have pull up resistors on the SDA/SCL lines?
Long wires?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

I do have the i2c lines pull up with a 10k resistors.  The length of the cable is about 50cm

Should be OK, especially the device sees its address ("The Wire scanner does find a device")
@arifainchtein
just thinking what could cause the failure:

Are there more devices on the I2c/Wire bus? If those also have the address 0x40 ?
The AD0 pin is connected to GND and not floating?
Have you tried another address e.g. VCC to AD0 to get 0x41?

@arifainchtein
I have tested her with an CHT8305 sensor and cannot reproduce the error you have.
Please give the develop branch a try and add Serial.println(cht.getLastError()); where appropriate.
Might give a clue why it fails.

@arifainchtein

will report later on today

Did you test your project with the latest develop branch already?
Anything to report?

hi Robert,weird i sent you a message a few days ago  but somehow it did not get to you. Yes, your develop branch worked perfect.  i even berified that it was your code because i used the dfrobot example (the sensor is dfrobot) and it did not work, but when i used your develop branch it works perfect. send me an mail to confirm that you received this one.thanks a lot for your time, really appreciated.Sent from my iPhoneOn 21 Sep 2024, at 20:24, Rob Tillaart @.***> wrote:
@arifainchtein
will report later on today
Did you test your project with the latest develop branch already?
Anything to report?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

Thanks for the update, I got this message.
Given that the code works, I will merge the develop branch asap.
Thanks again for the feedback

Merged develop branch into master,
Again, thank you for reporting the issue


[Challenge] Flag "Додати реєстрацію" is absent from the "Додайте челендж" modal window

Environment: Win 11 OS, Google Chrome, 110.0.5481.104
Reproducible: always
Preconditions

Go to TeachUA website : https://speak-ukrainian.org.ua/dev/
Log in as a 'Адміністратор' (email<EMAIL_ADDRESS>password: admin)
Click on the user icon
In the dropdown menu, hover over the "Контент" and then "Челенджі" links
Click on the "Челенджі" link

Steps to reproduce

Click on the "Додати челендж" button
Verify that flag "Додати реєстрацію" is available.

Actual result
A flag "Додати реєстрацію" is absent from the modal window.

Expected result
A flag "Додати реєстрацію" is available and clickable.

User story and test case links
"User story #1418
Test case"
Labels to be added
"Bug", Type ("UI, "Functional")

The functionality has not been developed yet


When I save my changes in go file. the cursor will go to the bottom of the file. But When i closed the Go Extension, it get dissapeare. it's that mirosoft go Extension get confilct in vscode?

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

VS Code Version:
OS Version:

Steps to Reproduce:

install Go Extension
open a go file and wirte more the 1000 lines code
make changes, like make some empty lines.
the cursor will go to the button of the file

Hiya @SanJan-Loe,
As an indie open-source contributor, I’ve come across similar editor behaviors, particularly involving language extensions like the Go extension. The issue you’re describing could be linked to the extension’s handling of file changes and cursor placement. Here are some steps to help identify and potentially resolve the issue:

Run VS Code Without Extensions: Open VS Code with all extensions disabled using the code --disable-extensions to rule out whether it's specific only to the Go extension. This helps to isolate if there was any conflicting behavior with other extensions.

Install the Go Extension: Ensure having the latest version of the Go extension. If already updated, reinstall it to clean out any misconfiguration or cached settings that might be affecting the editing behavior.

Editor Settings: Check settings.json, especially go.* or editor settings, for any setting that might affect the position of the cursor. Sometimes certain settings will result in some aberration regarding how the extension acts upon files when editing.

Enable Verbose Logging: If this still doesn't help, enable the verbose logging by adding "go.trace.server": "verbose" to settings.json and reproduce the problem. This will log additional context invaluable to the extension developers in helping diagnose the issue.

Kindly let me know if the given solution solves the problem or if further investigation is required.

Please file the issue against the extension that you use for Go.


how come the readme says $ git clone git@github.com:yamakira/censys-enumeration.git ?

his mistake


Use IL assemblies for NuGet packages to reduce size

PR Summary
The framework dependent build, builds IL assemblies. This PR uses those assemblies to build the packages. This drastically reduces the nuget package size.
PR Context

PR Checklist

[x] PR has a meaningful title

Use the present tense and imperative mood when describing your changes

[x] Summarized changes
[x] Change is not breaking
[x] Make sure all .h, .cpp, .cs, .ps1 and .psm1 files have the correct copyright header
[x] This PR is ready to merge and is not Work in Progress.

If the PR is work in progress, please add the prefix WIP: or [ WIP ] to the beginning of the title (the WIP bot will keep its status check at Pending while the prefix is present) and remove the prefix when the PR is ready.

User-facing changes

[x] Not Applicable
OR
[ ] Documentation needed

[ ] Issue filed:

Testing - New and feature

[x] N/A or can only be tested interactively
OR
[ ] Make sure you've added a new test if existing tests do not effectively test the code changed

[ ] Add [feature] to your commit messages if the change is significant or affects feature tests

/cc @TylerLeonhardt


No such module "HttpPipeline"

Really great stuff you created! Anyway, I have some problems getting it up and running...
I followed exactly the description to setup the environment and the application. The first thing I noticed is, that you're talking of the creation of an Xcode project when executing "make", but this does not happen. The other checks are all ok.
When performing a "xed .", I get a package project; after switching to "PointFree" scheme, building (CMD-B) and trying to execute the Episode Page playground, I get an error 'No such module 'HttpPipeline'".

I'm using Version 13.1 (13A1030d) of Xcode on an Intel iMac.
How can I fix this missing library?

Hey @innoreq! Some of the docs are a little outdated since this is a project mostly used by us and not a library we expect there to be many users of 😅 If you'd like to PR any updates to the README that would have helped you get started we'd appreciate any help!
First, we definitely don't generate an Xcode project anymore, and rely fully on Xcode's SPM support.
Second, our playground-driven development approach didn't work with SPM for awhile, so we fell out of relying on it. I think it should work these days, but you almost certainly need to enable the new "Build Active Schemes" setting:

@stephencelis I modified the README a bit. I never did a PR before; tried to create a local branch for that and to push it, however, it was rejected. May it be necessary to get any permissions?

@innoreq You may need to fork the repo if you made changes locally. Alternately you could copy the local README and paste it into GitHub's editor.


Show db saved date value on datepicker field

Hi ,
I am trying this module and so far its seems ok.But when I try load already saved date in the datepicker field it wont show.
Actually saved date format is 'YYYY-MM-DD' and current format is LL.
<DatePicker id="deadline"                                 selected={this.state.deadline}                                 onChange={this.handleDeadlineChange}                                 dateFormat="LL"                                 scrollableYearDropdown                                 yearDropdownItemNumber={15}                                 showYearDropdown                             />
All the newly created dates are on new format which is LL, but when i try to load old date format, datepicker doesn't work.
Any idea?

You must pass a moment() object to the selected prop.  https://momentjs.com/docs/#/parsing/

Hi rafeememom,
It works. But can we have something like this?.
selected={moment(data.meta.deadline) || moment()}
if there is no data then show the current date.Something like that.
Thanks


Excluded_if Doesn't behave as expected

[x] I have looked at the documentation here first?
[x] I have looked at the examples provided that may showcase my question here?

Package version:
v10
Issue, Question or Enhancement:
Validator excluded_if doesn't behave as the documentation describes.
The documentation says:The field under validation must not be present or not empty only if all the other specified fields are equal to the value following the specified field..
The validator does: fail if any of the other specified fields are not equal to the value following the specified field.
Code sample, to showcase or reproduce:
type Struct struct {
	Field1 string
	Field2 string `validate:"excluded_if=Field1 exclude"`
}

errs = validate.Struct(Struct{Field1: "dontExclude", Field2: "value"}) // -> Returns error, but shouldn't
errs = validate.Struct(Struct{Field1: "dontExclude"}) // -> Returns error, but shouldn't
errs = validate.Struct(Struct{Field1: "exclude", Field2: "value"}) // -> Returns no error, but it should

It looks like current version of the "excluded_unless" validator is also wrong and works as the "excluded_if" should. As a temporary solution i used "excluded_unless"


Parmed package

Hello, getting below error in first cell when loading packages.  !pip install parmed in a separate cell will return that the package is already installed, but I'm not sure if its in the right place etc.

ModuleNotFoundError                       Traceback (most recent call last)
 in <cell line: 30>()
28 #load dependencies
29 sys.path.append('/usr/local/lib/python3.7/site-packages/')
---> 30 import parmed as pmd
31 from biopandas.pdb import PandasPdb
32 import os
ModuleNotFoundError: No module named 'parmed'

NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the
"Open Examples" button below.

Hi,
Thank you for letting me know abou the issue. Which notebook are you using? I will check and back to you.
Best,
Pablo

Hello, this was in the EquiBind notebook:
https://colab.research.google.com/github/pablo-arantes/Cloud-Bind/blob/main/EquiBind.ipynb
Thanks!
On Thu, Feb 29, 2024 at 4:24 PM Pablo Ricardo Arantes <
@.***> wrote:

Hi,
Thank you for letting me know abou the issue. Which notebook are you
using? I will check and back to you.
Best,
Pablo
—
Reply to this email directly, view it on GitHub
https://github.com/pablo-arantes/Cloud-Bind/issues/2#issuecomment-1971986305,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAM5XMXZI4Y2BF6FI7UYRMTYV6OADAVCNFSM6AAAAABEAVMNU2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZRHE4DMMZQGU
.
You are receiving this because you authored the thread.Message ID:
@.***>


Multipart Uploads / Composite Uploads

It'd be nice if CF could transparently take advantage of multipart uploads for very large files.
https://docs.aws.amazon.com/AmazonS3/latest/dev/uploadobjusingmpu.html
https://cloud.google.com/storage/docs/composite-objects

For google, this capability seems to be you upload smaller individual files then compose them into a single unit. That could be pretty useful for multi-process upload, less so for multi-threaded upload.

Resolved in https://github.com/seung-lab/cloud-files/pull/86 and https://github.com/seung-lab/cloud-files/pull/85


Multithreading performance issues

Yesterday I tried to write a simple (bulk) image analysis program and ran into a strange behaviour. I tried to somehow strip it down into the following code. The method #x does the work (ok, it probably could still be cut down a little bit more; nevertheless it calculates some gibberish now).
First thing I learned is that using dynamic object creation/deletion a lot things can get real slow (e.g. running the below program without arguments) - ok, this is probably unavoidable, but the root cause seems to be a coarse-grained GC synchronization, since the number of utilized cores drops substantially. Feels like a problem somehow.
Second thing I learned is that the --release version can even get slower than the non-release version - this does not feel right.
# crystal 0.36.1 on ubuntu 18.04 with Ryzen 7 2700 eight-core processor × 16

# four ways to run (all yield the same result); timing from "CPU"/"elapsed"
# crystal build -Dpreview_mt src/parallel.cr ; CRYSTAL_WORKERS=16 time ./parallel
#    -> 22s (using roughly 6 cores)
# crystal build -Dpreview_mt src/parallel.cr --release ; CRYSTAL_WORKERS=16 time ./parallel
#    -> 33s (using roughly 3.5 cores)
# crystal build -Dpreview_mt src/parallel.cr ; CRYSTAL_WORKERS=16 time ./parallel fast
#    -> 5s (using all 16 cores),
# crystal build -Dpreview_mt src/parallel.cr --release ; CRYSTAL_WORKERS=16 time ./parallel fast
#    -> 0.4s (using all 16 cores)

CORES = 16
class X
    def initialize
        @channel = Channel(Nil).new
        @mutex = Mutex.new(Mutex::Protection::Reentrant)
        @res = 0
        # dispatch
        CORES.times do |i|
            spawn(name: "#{i}") {x}
        end
        # collect
        CORES.times do
            @channel.receive
        end
        p @res
    end
    def rms(input = [] of Int32) : Float64
        res = 0.0
        input.each {|el| res += el**2}
        res ** 0.5
    end
    def x
        @mutex.synchronize {p [Fiber.current.name, "start"]}
        my_res = 0
        s = [1,2,3]
        xx = [0,0,0]
        10_000_000.times do
            if ARGV.size == 0
                # the "slow" variant, where we probably use the GC a lot
                s = [1,2,3]
                xx = s.map {|el| el+2}
            else
                # the fast variant
                s.size.times {|i| xx[i] = s[i]+2}
            end
            delta = rms(xx)
            my_res += delta.to_i32
        end
        @mutex.synchronize {p [Fiber.current.name, "end"]; @res += my_res}
        @channel.send(nil)
    end
end

X.new

dynamic object creation/deletion a lot things can get real slow

Well... the slow code allocates 10 million arrays. Thats a lot 🤷 No wonder it's pushes a high load on the GC.

yes, I know (probably even 20 mio arrays). But that's not my point.
Point no. 1 is that --release can make your program slower.
And (minor) point no. 2 is the utilization of the available cores in case of the heavy GC usage is really bad.

@wolfgang371 If you run the same test over and over do you get consistent results across runs?
e.g. does running the following consistently give 5s?
# CRYSTAL_WORKERS=16 crystal build -Dpreview_mt src/parallel.cr ; time ./parallel fast
#    -> 5s (using all 16 cores)

I tried to rerun and realized that the commands I gave were actually mixed up; I used a global CRYSTAL_WORKERS=16 last time in addition that shadowed this...
old, wrong command: CRYSTAL_WORKERS=16 crystal build -Dpreview_mt src/parallel.cr ; time ./parallel
new, corrected command: crystal build -Dpreview_mt src/parallel.cr ; CRYSTAL_WORKERS=16 time ./parallel
I updated my initial post accordingly - sorry for this.
Now to your question: I'd say yes - I rerun all four scenarios five times each and noted the output:
# four ways to run (all yield the same result); timing from "CPU"/"elapsed"
# crystal build -Dpreview_mt src/parallel.cr ; CRYSTAL_WORKERS=16 time ./parallel
#    -> 22s (using roughly 6 cores)
#   rerun 10.2.2021: 621%/21.5s, 622%/21.5s, 627%/21.4s, 626%/21.4s, 637%/21.3s
# crystal build -Dpreview_mt src/parallel.cr --release ; CRYSTAL_WORKERS=16 time ./parallel
#    -> 33s (using roughly 3.5 cores)
#   rerun 10.2.2021: 344%/33.3s, 347%/32.6s, 348%/32.7s, 348%/32.7s, 354%/32.9s
# crystal build -Dpreview_mt src/parallel.cr ; CRYSTAL_WORKERS=16 time ./parallel fast
#    -> 5s (using all 16 cores),
#   rerun 10.2.2021: 1264%/5.8s, 1191%/5.6s, 1422%/4.1s, 1298%/6.1s, 1209%/5.6s
# crystal build -Dpreview_mt src/parallel.cr --release ; CRYSTAL_WORKERS=16 time ./parallel fast
#    -> 0.4s (using all 16 cores)
#   rerun 10.2.2021: 981%/0.4s, 1202%/0.4s, 1164%/0.4s, 1195%/0.5s, 1086%/0.5s

It's hard to say without further experiments, but:

--release will trigger llvm optimizations that can affect a lot the binary. That could impact in performance, but is not something easy to measure. See https://github.com/plasma-umass/coz
bdw-gc has a stop-the-world policy. All threads will be paused. You can tweak some settings or even disable the GC temporarily or completely. In some cases that is feasible.
If I read correctly: in some cases --release might run slower than without it. Slightly unexpected but it could happen. I fail to see if you are implying that this is something particularly in multithreading or in general.

shameless plug I've used https://github.com/manastech/benchy to run some benchmarks in the past. Maybe you would like it,.

@bcardiff:
2. GC.disable doesn't work here (I tried just now), since the program quickly eats all the memory.
3. I was somehow assuming that the "performance inversion" applies to multithreading only; I just checked with a stripped-down version to one core and in this case --release was faster, so I feel confirmed.
Nevertheless this issue puzzles me; this example gives --release a -50% penalty in the heavy-GC-usage case and I have no clue why.
Thanks for your links!

The surprising aspect is that in some multithreading contexts, the program compiled with release mode runs actually slower than the non-release build.
@caspiano Did a benchmark series with different thread counts (https://gist.github.com/caspiano/89f9eeb1cc330a50ff66f61c2bf54ced). The runtime speed increase of the release mode varies a lot:

Single thread: 247%
3 threads: 112%
5 threads: 99%
8 threads: 81%
12 threads: 113%

Best performance is observed for the release build in single-threaded mode. The more threads are added, the worse it gets (for the release build).
This suggests that the program is just not very appropriate for multi-threaded use. Multi-threading does not make everything faster magically. It does not fit for every problem. The program should either run in single-threaded mode or it must be refactored to accommodate multi-threading.
I presume the effect that the release build is sometimes even less performant than the non-release build may be caused by optimizations being invalidated and turning into the reverse effect due to problems in the multi-threading context, such as resource contention. An involvement of the GC might be possible.
Either way, I'd see this as a problem of the program's architecture, not the compiler. The program seems to be work in a way that it doesn't run well with multi-threading.


Beam search usefulness ?

In most text generating architecture, beam search provide a quality improvement by generating more natural text.
Is it useful to use beam search with XLNet ?

As far as I understand, since token are generated one by one, beam search is completely useless.
But what about generating tokens 2 by 2 ? Would it be useful to add beam search ?
Are you going to try it ?

Beam search and greedy decoding causes degradation of text (it becomes repetitive) in open ended generation tasks. More discussion at https://arxiv.org/abs/1904.09751. I have observed that the same issues persist with XLNet.