How do i add redirect to the routes dynamically?

I have sign in component, which should be available for unauthenticated users. And right after the authentication this component should become unavailable.
   var routes = (
      <Route handler={App}>
        <Route name="signIn" handler={signIn}/>
        {/* redirect, if user is already authenticated */}
        { localStorage.userToken ? (
            <Redirect from="signIn" to="/user"/>
          ) : null
        }
      </Route>
    );

Router.run(routes, (Handler, state) => {
  React.render(<Handler {...state}/>, document.getElementById('main'));
});

This code works perfect if user have reloaded webapp for any reason after the authentication, but of course it doesn't if user didn't reload the webapp. I've tried to use this.context.router.transitionTo right to the SignUp component, but it works awful - the component gets rendered, then this script is getting executed.
So I want to add the redirect right into the routes variable to make the router redirect without even trying to render the component.

please have a look at the auth-flow example. It shows exactly what you are trying to do.


Unnecessary new rows with line number

⚠ Please verify that this bug has NOT been reported before.

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

🛡 Security Policy

[X] I agree to have read this project Security Policy

Description
If the text is too long, it is wrapped and it looks as if it is a new line.

👟 Reproduction steps
Enter a long text into the compose file section.
👀 Expected behavior
Something like this:

Or with a scrollbar:

😓 Actual Behavior
The text gets wrapped and it looks as if it is a new line.
Dockge Version
1.3.3
💻 Operating System and Arch
x86_64 GNU/Linux
🌐 Browser
Firefox 120.0.1 (64-Bit)
🐋 Docker Version
No response
🟩 NodeJS Version
No response
📝 Relevant log output
No response

Duplicate of #105


Controllable iteration

added TableIterator class, which controls commands executions + is more low level access to the table
rewritten Table class to use TableIterator extensively
optimized operations for speed + standardized operations behaviour

this does #2  and enables development of #5


splitting a vector at an index (and other such functions)

Hi, what's your thinking on how to handle such functions? My intuition says they probably belong in immer::algorithm and that in the future there can be some nice concepts collection that abstract over the various types?
I'm now using immer quite avidly in a soon-to-be-open-sourced project so I'd be happy to contribute some time to add functions like this if you don't mind offering guidance and answering questions.

Hi @jjl,
awesome to hear that you are moving forward with your project. The library already provides the methods take(idx) and drop(idx) in order to do slicing. The immer::vector class supports only take(), but immer::flex_vector supports both. Is that API suficient? It is not very STL-like, but I was unsure about what the right API should be so I went for this Scala-like naming... What do you think?

Hi,
I've been thinking about this and playing with things and I think that if we're aiming for a std-like interface, there are a few things are missing.
Here's my first contribution:
template <typename Iterator, typename T>
Iterator find(Iterator first, Iterator last, T& t)
{
    for_each_chunk_p(first, last, [&] (auto first, auto last) {
        for (; (first != last) && (*first != t); ++first);
        return first == last;
    });
    return first;
}

I'm not familiar with the range api, so I haven't been able to write a version that uses Range. Is there somewhere I can read about it?
I intend to contribute a few more useful api functions along this line.

Hi!

I've been thinking about this and playing with things and I think that
if we're aiming for a std-like interface, there are a few things are
missing.

Yes, the algorithms section is quite incomplete as I've just been
adding things on a as-needed basis.  Note that STL algorithms should
still work using iterators, but custom versions can be added that are
more efficient.  Feel free to suggest anything you need.

Here's my first contribution:
template <typename Iterator, typename T>
Iterator find(Iterator first, Iterator last, T& t)
{
    for_each_chunk_p(first, last, [&] (auto first, auto last) {
        for (; (first != last) && (*first != t); ++first);
        return first == last;
    });
    return first;
}

Did you try that?  I think that wouldn't work, because the things passed
to the callback are not the same as Iterator, but they are just
pointers in the contiguous blocks of memory that the vectors holds.  The
fastest version of that would probably be something like... (note: I
haven't actually tried this code):
template <typename Iterator, typename T>
Iterator find(Iterator first, Iterator last, const T& t)
{
    using size_t = typename Iterator::size_type;
    auto offset = size_t{};
    for_each_chunk_p(first, last, [&] (auto first, auto last) {
        for (; first != last && !(*first == t); ++first) ++offset;
        return first == last;
    });
    return first + offset;
}

(I also changed it there so it uses == instead of !=, like the STL
equivalent).
I will try to add that when I am back from vacation.

I'm not familiar with the range api, so I haven't been able to write a
version that uses Range. Is there somewhere I can read about it?

Well... actually Range is a bit of a misnomer and probably I should
change that, because in this case Range is just a container (e.g. an
immer::vector).
Another thing to note is that if you are just using iterators to mark
positions in the vector, an index can be more efficient than iterators.
That is why most of the vector API is index based.  And also often it is
more usable that way, but that may be debatable.
For this reason I am considering adding algorithm overloads postfixed
with a _i or something that are similar to the STL equivalents but use
indexes in it.  The pieces are there but a bit of cleanup might be
needed...  You can try hacking something like this in your codebase:
template
std::size_t find_i(const immer::vector& v,
std::size_t fst, std::size_t lst,
const T& x)
{
return v.impl().for_each_chunk_p(fst, lst,  [&] (auto first, auto last) {
for (; first != last && !(*first == t); ++first) ++fst;
return first == last;
});
return fst;
}
This uses the impl() part of the vector which is meant to be
private-y, but it might allow you to experiment until we add something
to immer itself...
Let me know what you think about this.
--
∿∿∿  https://sinusoid.al
∿∿∿  https://sinusoid.es

Hi!
The code compiled, but I didn't test it. My C++ is a bit rusty, I've only recently picked it back up seriously for more than a decade and I'm trying to bring myself up to date with modern c++ (which feels like a totally different language to me, albeit a way cooler one!), so I'm grateful for your patience.
I think I misunderstood the interface a bit :) I inferred that the lamba was receiving an interator rather than a pointer. I also assumed that the iterator interface was likely to be more efficient because of the way you're going for the STL style API. I suspect I'm going to have to bite the bullet and figure out the benchmarking apparatus and get a feeling for reading the results - any tips?
I'll have a play with your code locally. I'm currently implementing the desugaring for something like an infix lisp (yes, all these hints I keep dropping are one big project), so I'm sure I'll have to attempt to solve plenty of vector and map-based algorithms locally and then we can see if there's anything salvageable for immer amongst it.
Enjoy your holiday!

Sorry to drop a ton of code on you while you're on holiday, don't worry about for a few days :)
I've been playing around and wrote some type traits that seem like I might find them useful for some metaprogramming stuff:
namespace immer::type_traits {

  // Defaults
  template<typename T> struct is_ordered       : std::false_type {};
  template<typename T> struct is_random_access : std::false_type {};
  template<typename T> struct is_indexed       : std::false_type {};
  template<typename T> struct is_keyed         : std::false_type {};
  template<typename T> struct is_vector        : std::false_type {};
  template<typename T> struct is_set           : std::false_type {};
  template<typename T> struct is_map           : std::false_type {};
  template<typename T> struct is_transient     : std::false_type {};
  template<typename T> struct is_persistent    : std::false_type {};

  // is_random_access
  template<typename ...Ts> struct is_random_access<immer::array<Ts...>>       : std::true_type {};
  template<typename ...Ts> struct is_random_access<immer::vector<Ts...>>      : std::true_type {};
  template<typename ...Ts> struct is_random_access<immer::flex_vector<Ts...>> : std::true_type {};
  template<typename ...Ts> struct is_random_access<immer::map<Ts...>>         : std::true_type {};
  template<typename ...Ts> struct is_random_access<immer::set<Ts...>>         : std::true_type {};

  // is_indexed
  template<typename ...Ts> struct is_indexed<immer::array<Ts...>>       : std::true_type {};
  template<typename ...Ts> struct is_indexed<immer::vector<Ts...>>      : std::true_type {};
  template<typename ...Ts> struct is_indexed<immer::flex_vector<Ts...>> : std::true_type {};

  // is_keyed
  template<typename T>
  struct is_keyed<
    std::conjunction<
      is_random_access<T>,
      std::negation<is_indexed<T>>
    >
  > : std::true_type {};

  // is_ordered
  template<typename ...Ts> struct is_ordered<immer::vector<Ts...>>                : std::true_type {};
  template<typename ...Ts> struct is_ordered<immer::flex_vector<Ts...>>           : std::true_type {};
  template<typename ...Ts> struct is_ordered<immer::vector_transient<Ts...>>      : std::true_type {};
  template<typename ...Ts> struct is_ordered<immer::flex_vector_transient<Ts...>> : std::true_type {};

  // is_vector
  template<typename ...Ts> struct is_vector<immer::vector<Ts...>>                : std::true_type {};
  template<typename ...Ts> struct is_vector<immer::flex_vector<Ts...>>           : std::true_type {};
  template<typename ...Ts> struct is_vector<immer::vector_transient<Ts...>>      : std::true_type {};
  template<typename ...Ts> struct is_vector<immer::flex_vector_transient<Ts...>> : std::true_type {};

  // is_set
  template<typename ...Ts> struct is_set<immer::set<Ts...>>           : std::true_type {};
  template<typename ...Ts> struct is_set<immer::set_transient<Ts...>> : std::true_type {};

  // is_map
  template<typename ...Ts> struct is_map<immer::map<Ts...>>           : std::true_type {};
  template<typename ...Ts> struct is_map<immer::map_transient<Ts...>> : std::true_type {};

  // is_transient
  template<typename ...Ts> struct is_transient<immer::array_transient<Ts...>>       : std::true_type {};
  template<typename ...Ts> struct is_transient<immer::vector_transient<Ts...>>      : std::true_type {};
  template<typename ...Ts> struct is_transient<immer::flex_vector_transient<Ts...>> : std::true_type {};
  template<typename ...Ts> struct is_transient<immer::set_transient<Ts...>>         : std::true_type {};
  template<typename ...Ts> struct is_transient<immer::map_transient<Ts...>>         : std::true_type {};

  // is_persistent
  template<typename ...Ts> struct is_persistent<immer::array<Ts...>>       : std::true_type {};
  template<typename ...Ts> struct is_persistent<immer::vector<Ts...>>      : std::true_type {};
  template<typename ...Ts> struct is_persistent<immer::flex_vector<Ts...>> : std::true_type {};
  template<typename ...Ts> struct is_persistent<immer::set<Ts...>>         : std::true_type {};
  template<typename ...Ts> struct is_persistent<immer::map<Ts...>>         : std::true_type {};

}

You noted earlier that we might want some template overloads for different collections. I've also explored that idea a touch, along with some of the _i-suffixed, indexed-based algorithms necessary to implement them:
namespace immer {

  template <typename Coll, typename T>
  std::size_t find_i(const Coll& c, const std::size_t fst, const std::size_t lst, const T& t) {
    static_assert(std::is_same<T, typename Coll::value_type>::value);
    std::size_t offset = fst;
    return c.impl().for_each_chunk_p(fst, lst, [&] (auto first, auto last) {
      for (; first != last && !(*first == t); ++first)
        ++offset;
      return first == last;
    });
    return offset;
  }

  template <typename Coll, typename Pred>
  std::size_t find_if_i(const Coll& c, const std::size_t fst, const std::size_t lst, const Pred& p) {
    std::size_t offset = fst;
    return c.impl().for_each_chunk_p(fst, lst, [&] (auto first, auto last) {
      for (; first != last && !p(*first); ++first)
        ++offset;
      return first == last;
    });
    return offset;
  }

  template <typename Coll, typename Pred>
  std::size_t find_if_not_i(const Coll& c, const std::size_t fst, const std::size_t lst, const Pred& p) {
    std::size_t offset = fst;
    return c.impl().for_each_chunk_p(fst, lst, [&] (auto first, auto last) {
      for (; first != last && p(*first); ++first)
        ++offset;
      return first == last;
    });
    return offset;
  }

  using namespace immer::type_traits;

  // dropping
  template <typename T, typename ...Ts>
  immer::flex_vector<T,Ts...> drop_until(const immer::flex_vector<T,Ts...>& c, const T& t) {
    auto len = c.size();
    if (len == 0) return {};
    auto i = immer::find_i(c, 0, len, t);
    if (i == len) return {};
    return c.drop(i);
  }
  template <typename T, typename ...Ts>
  immer::flex_vector<T,Ts...> drop_past(const immer::flex_vector<T,Ts...>& c, const T& t) {
    auto len = c.size();
    if (len == 0) return {};
    auto i = immer::find_i(c, 0, len, t);
    if (i+1 >= len) return {};
    return c.drop(i+1);
  }

  template <typename ...Ts, typename Pred>
  immer::flex_vector<Ts...> drop_until_p(const immer::flex_vector<Ts...>& c, const Pred& p) {
    auto len = c.size();
    if (len == 0) return {};
    auto i = immer::find_if_i(c, 0, len, p);
    if (i == len) return {};
    return c.drop(i);
  }
  template <typename ...Ts, typename Pred>
  immer::flex_vector<Ts...> drop_past_p(const immer::flex_vector<Ts...>& c, const Pred& p) {
    auto len = c.size();
    if (len == 0) return {};
    auto i = immer::find_if_i(c, 0, len, p);
    if (i+1 >= len) return {};
    return c.drop(i+1);
  }

  template <typename ...Ts, typename Pred>
  immer::flex_vector<Ts...> drop_while_p(const immer::flex_vector<Ts...>& c, const Pred& p) {
    auto len = c.size();
    if (len == 0) return {};
    auto i = immer::find_if_not_i(c, 0, len, p);
    if (i == len) return {};
    return c.drop(i);
  }

  // taking
  template <typename T, typename ...Ts>
  immer::flex_vector<T,Ts...> take_until(const immer::flex_vector<T,Ts...>& c, const T& t) {
    auto len = c.size();
    if (len == 0) return c;
    auto i = immer::find_i(c, 0, len, t);
    if (i == len) return c;
    return c.take(i);
  }
  template <typename T, typename ...Ts>
  immer::flex_vector<T,Ts...> take_past(const immer::flex_vector<T,Ts...>& c, const T& t) {
    auto len = c.size();
    if (len == 0) return c;
    auto i = immer::find_i(c, 0, len, t);
    if (i+1 >= len) return c;
    return c.take(i+1);
  }

  template <typename ...Ts, typename Pred>
  immer::flex_vector<Ts...> take_until_p(const immer::flex_vector<Ts...>& c, const Pred& p) {
    auto len = c.size();
    if (len == 0) return c;
    auto i = immer::find_if_i(c, 0, len, p);
    if (i == len) return c;
    return c.take(i);
  }

  template <typename ...Ts, typename Pred>
  immer::flex_vector<Ts...> take_past_p(const immer::flex_vector<Ts...>& c, const Pred& p) {
    auto len = c.size();
    if (len == 0) return c;
    auto i = immer::find_if_i(c, 0, len, p);
    if (i+1 >= len) return c;
    return c.take(i+1);
  }

  template <typename ...Ts, typename Pred>
  immer::flex_vector<Ts...> take_while_p(const immer::flex_vector<Ts...>& c, const Pred& p) {
    auto len = c.size();
    if (len == 0) return c;
    auto i = immer::find_if_not_i(c, 0, len, p);
    if (i == len) return c;
    return c.take(i);
  }

}

I haven't yet written any code that uses it, so it hasn't even been properly checked by the compiler, but perhaps it gives you enough of a taste to see what you think of this direction?


[BUG] Int type doesn't include 0

Describe the bug
A clear and concise description of what the bug is.
Playground link
Please paste the code needed to replicate the bug in the playground ans share the link with us.
Expected behavior
A clear and concise description of what you expected to happen.
Additional context
Add any other context about the problem here.

Ignore me, my test was wrong


The highlight plugin throws an exception if the current spineItem doesn't have a 'paginationInfo'

This issue is a Bug
Expected Behaviour
The highlight manager should handle to add highlights event if the current context have a spineItem without paginationInfo.
Observed behaviour
The highlight plugin throws an TypeError if the current context have a spineItem without paginationInfo:
TypeError: Cannot read property 'isVerticalWritingMode' of undefined
    at Class._getPaginationLeftOffset (https://local.unibok.no:7011/js/thirdparty/readium/readium-plugin-highlights.js:1916:82)
    at Class.addHighlight (https://local.unibok.no:7011/js/thirdparty/readium/readium-plugin-highlights.js:1558:34)
    at HighlightsManager.options.addHighlight (https://local.unibok.no:7011/js/thirdparty/readium/readium-plugin-highlights.js:2104:53)
    at Object.addHighlight (https://local.unibok.no:7011/js/thirdparty/readium/readium-plugin-highlights.js:2367:39)
    at Object.colorHighlightAnnotation (https://local.unibok.no:7011/js/HighlightManager.js:101:55)
    at https://local.unibok.no:7011/js/views/ReaderView.js:971:61
    at Function._.each._.forEach (https://local.unibok.no:7011/js/thirdparty/readium/readium-external-libs.js:13642:9)
    at n.forEach (https://local.unibok.no:7011/js/thirdparty/backbone-1.3.3.min.js:1:774)
    at https://local.unibok.no:7011/js/views/ReaderView.js:968:65

Steps to reproduce

Start Readium with Readium::openPackageDocument where openPageRequest has idref and elementCfi.

Product

Web app which uses ReadiumJS to render epubs

tested on 0.23.0
any browser
any OS

Additional information
Readium::openPackageDocument indirectly calls ReaderView::openSpineItemElementCfi.
The spineItem is then found in ReaderView::openSpineItemElementCfi from the function getSpineItem and the returned spineItem doesn't have paginationInfo.
When the event 'Globals.Events.CONTENT_DOCUMENT_LOADED' is triggered the highlight plugin listens for this event and calls HighlightManager::attachAnnotations with the spineItem from before. Further down the call stack the private method HighlightController::_getPaginationLeftOffset is called and expects that the current spineItem has paginationInfo. Hence the plugin crashes with the TypeError mentioned earlier.

Is that related to https://github.com/readium/readium-shared-js/issues/280 ?


Determine a way to get a value for costs

The main constraint in the game is to stay below a certain cost limit.
The cost for the rods are calculated by the following algorithm:

each new element for costs x/ [length unit] but the first segment costs more
e.g. 1 grid length of wood costs 400 and for every additional grid-length it costs 100 more, 150 if its a diagnoal: so basically:

Cost of one rod: 300+100*(lengthOfBeamInGridlengths)

I can sum up all the rod costs over all rods

Ideally, later when the loop is closed, I want to import an optimization proposal from optistruct and eliminate all rods with density < threshold and then calculate the costs and take that as a constraint (to stay below a set value (i.e. budget))

closed by #11


Ensure that catalog files are added to the native image

Fixes #686

Thanks for the improvements. I still think the config options we expose should be documented so that they make sense to a newcomer. If there is no Camel page explaining the nature and purpose of the catalog, then I vote for adding a sentence here rather than waiting for it to happen elsewhere. I'd be ready to write that sentence but I am quite frankly missing the required knowledge.

Thanks for the improvements. I still think the config options we expose should be documented so that they make sense to a newcomer. If there is no Camel page explaining the nature and purpose of the catalog.

Please rise an issue on camel side, we should improve camel in general rather than this specific sub-project so we can do the work only once for everyone to benefit.
btw, there are already some javadocs - maybe limited - on the related classes on camel side:

https://github.com/apache/camel/blob/master/catalog/camel-catalog/src/main/java/org/apache/camel/catalog/CamelCatalog.java
https://github.com/apache/camel/blob/master/core/camel-api/src/main/java/org/apache/camel/catalog/RuntimeCamelCatalog.java

Done https://github.com/apache/camel-quarkus/issues/706 and https://issues.apache.org/jira/browse/CAMEL-14545


Usage with static assets?

Would it be possible to use this plugin with static assets so that I can reference my own hosted files rather than having to use github?

Right now it is hard coded to GitHub but it is surely possible to allow static assets too. Any contribution would be appreciated!

It turns out this is basically built in to docusaurus by importing code snippets!
Thanks for the quick response though.


Update quick-start.md

Fix nbviewer link to introductory Jupyter notebook.

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 remained the same at 79.562%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
1125

Relevant Lines:
1414

💛  - Coveralls


Allow the functionality to shallow clone a graph

We have a scenario where we have a "base" graph and then a number of enhanced graph which is just "base" graph + a few extra nodes and edges.
Instead of rebuilding the "base" graph each time, it would be nice to have the ability to clone this dictionary https://github.com/matiii/Dijkstra.NET/blob/master/src/Dijkstra.NET/Graph/Graph.cs#L12 and return a new Graph.

@matiii : if you think this is a good idea, i can work on this.  thanks

@matiii : if you think this is a good idea, i can work on this.  thanks


Handle multiple dc:rights fields (OAIRepository)

FRDR now splits rights metadata into dc.rights and dc.rights.uri, for example: https://www.frdr-dfdr.ca/oai/request?verb=ListRecords&metadataPrefix=oai_dc
We could attempt to combine these instead of having separate rights entries.

I've seen repositories that have multiple different XML siblings for "rights" in their OAI and while some are always free text and some are always URIs, they aren't distinguished in the data model -- that seems worse to me, so I'd like to double-check what we're trying to achieve here. I think I'm just concatenating them for the harvester in some cases, and even then having the freedom to do that feels better.

That's a good point--I'm not sure how we should decide whether to concatenate or leave them as separate fields. I'll look at what we have in place currently.

Leave separate; closing.


Add comment to stash when issue does not belong to diff view

Addressing issue 135

Any updates on this?

Hi @mdanielak ,
unfortunately there are some issues with this aproach:

The plugin will now try to add a file-wide comment for all comments that can not be posted on a specific file. This will break if the issue does not belong to a file in the diff.
This aproach breaks the detection whether a comment has been already submitted, resulting in duplicated comments

This is now superseeded by #161.


feat: update default gov voting period

Description
Updates the default gov voting period to 3 days, instead of the default 5.

Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...

[ ] included the correct type prefix in the PR title
[ ] added ! to the type prefix if API or client breaking change
[ ] added appropriate labels to the PR
[ ] targeted the correct branch
[ ] provided a link to the relevant issue or specification
[ ] added a changelog entry to CHANGELOG.md
[ ] included comments for documenting Go code
[ ] updated the relevant documentation or specification
[ ] reviewed "Files changed" and left comments if necessary
[ ] confirmed all CI checks have passed

Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...

[ ] confirmed the correct type prefix in the PR title
[ ] confirmed all author checklist items have been addressed
[ ] reviewed state machine logic
[ ] reviewed API design and naming
[ ] reviewed documentation is accurate
[ ] reviewed tests and test coverage
[ ] manually tested (if applicable)

Codecov Report

Merging #171 (a8d922b) into main (82b1d5d) will not change coverage.
The diff coverage is n/a.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@           Coverage Diff           @@
##             main     #171   +/-   ##
=======================================
  Coverage   17.38%   17.38%
=======================================
  Files          46       46
  Lines       12028    12028
=======================================
  Hits         2091     2091
  Misses       9828     9828
  Partials      109      109

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


len(tmp_observations) < 2 on PPO raise ValueError: The parameter probs has invalid values

It seems that your code produce error if the len of your trajectory < 2 ( len(tmp_observations) < 2). I tested this on PPO I don't know if this happens with all algorithms.
The error:
ValueError: The parameter probs has invalid values

Sorry for the late comment, that's definitely a boundary case that needed to be fixed. I'm working on a paper recently and my computer also got hacked so this problem might hang around here a little longer, I'm really sorry for the inconvenience.


Move _hydrate_from_app from Handle to Provider

Last large method. The rest is a bunch of tiny stuff that should be easy to remove.

@prbot approve


Add python test for stickyness using a proxy.

trying to reproduce https://issues.redhat.com/browse/JBCS-1856

@jajik I have noted the thread keep running after one stopped, using daemon=True allows to stop all the threads, note the print()s in the thread cause:
Fatal Python error: _enter_buffered_busy: could not acquire lock for <_io.BufferedWriter name=''> at interpreter shutdown, possibly due to daemon threads
Python runtime state: finalizing (tstate=0x00007f38843ce338)
so I remove them.

@jajik I have noted the thread keep running after one stopped, using daemon=True allows to stop all the threads, note the print()s in the thread cause: Fatal Python error: _enter_buffered_busy: could not acquire lock for <_io.BufferedWriter name=''> at interpreter shutdown, possibly due to daemon threads Python runtime state: finalizing (tstate=0x00007f38843ce338)
so I remove them.

Wouldn't flushing help?
print(..., flush=True)

@jajik flush=True in the print()s doesn't help

@jajik PR should be OK now ;-)


PDF not rendered correctly in canvas

Attach (recommended) or Link to PDF file here:
https://github.com/Priestch/issue-assets/tree/master/pdfjs/10339
Configuration:

Web browser and its version: Chrome 70.0.3538.110
Operating system and its version: Ubuntu 18.04
PDF.js version: latest source code
Is a browser extension: no

Steps to reproduce the problem:

replace defaultUrl with pdf file list in google drive.
pdf not rendered correctly in canvas.

What is the expected behavior? (add screenshot)
issue1(Background Cover Text)

issue2(Background Color Not Correct, left is pdfjs, right is pdf app)

What went wrong? (add screenshot)
issue1(Background Cover Text)

issue2 (Background Color Not Correct, left is pdfjs, right is pdf app)

The screenshots in your description aren't working for me.

What do you mean "aren't working for me"?

The links cannot be opened, but the images are available on the first (Google Drive) link.

What do you mean "aren't working for me"?

I didn't see that the images were in the Google Drive link you put in the message, my mistake.

The links cannot be opened, but the images are available on the first (Google Drive) link.

Oops, I didn't see that. Thanks for pointing it out.

Sorry for broken links.
This is the first time use share of google drive, and I checked in incognito mode of chrome, these links can be viewed that time.
I edited and fixed the broken image links.

What's the current status of this issue? Is these display problems been confirmed?

Perhaps this is related to #9971.

Been fixed!


Updated director VM vlock file

This patch updates the director VM vlock file to resolved issues that have
resulted of RHEL 7.5 shipping.

LGTM.  This is what I tested and is working to get past the initial install issues.

The line +0:subscription-manager-plugin-container-1.20.11-1.el7_5* is missing a . at the end before the .  Should be:
+0:subscription-manager-plugin-container-1.20.11-1.el7_5.


Access-Control-Allow-Credentials header

Add Access-Control-Allow-Credentials header to othrerwise methods.
for non-preflight request environment.

Thanks.


[TIR] Move SplitHostDevice to before MakePackedAPI

This simplifies the logic used in MakePackedAPI, as it is now the last user of the host parameter in a function's target.  After MakePackedAPI, every PrimFunc has a "target" attribute without a "host".
This is part of a series of commits to simplify the handling of multi-target builds.

This PR is a subset of the changes introduced in https://github.com/apache/tvm/pull/14862, split out for ease of testing and reviewing.  It is currently a draft PR, as it interacts with the same functionality that is being fixed in https://github.com/apache/tvm/pull/14982, and should probably re-run CI to avoid a similar breakage being reintroduced.
While I've tested this PR against the specific VTA failure that is https://github.com/apache/tvm/pull/14982 fixes, we may want to re-run CI on top of main to avoid similar breakage.

@tvm-bot rerun


Apply Bootstrap Graphic Design to Diegesis

We have an almost completed design: https://xd.adobe.com/view/bec91e7d-23c8-43ef-80d8-6d804367bea5-eb9a/?hints=off
We should have the Bootstrap static HTML by the end of the month.
We need to decide how to do this - options include

React Bootstrap
Vanilla HTML with 'normal' HTML in JSX.

I chatted with Mark. I don't want to edit his original post so here is the update. We will use MUI and the ui-kit repo and build out all the components necessary for the app design linked above. Be sure to click on everything to see all that the app will do.


⚠ ClamAV has degraded performance

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

HTTP code: 200
Response time: 53 ms

Resolved: ClamAV performance has improved in d05e0bc.


use API: esp_log_set_vprintf to redirect logs to the file system and print them may cause system blocking. (IDFGH-11881)

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.
tag v5.1.1
Espressif SoC revision.
ESP32C6
Operating System used.
Windows
How did you build your project?
Command line with Make
If you are using Windows, please specify command line type.
None
Development Kit.
ESP32C6 DevKitC-1
Power Supply used.
External 3.3V
What is the expected behavior?
system running as normal
What is the actual behavior?
system was blocked and never resume
Steps to reproduce.
fatfsgen_example_main.zip
I have reproduce the problem using fatfsgen_example code, and the problematic code has been uploaded above.
Debug Logs.
No response
More Information.
No response

In my code, when the issue occurs, most tasks cannot be scheduled normally.

I think this is a duplicate of https://github.com/espressif/esp-idf/issues/5933.

I ran into a similar problem when trying to log to Flash.  The system would lock up and the watchdog timer would not work to restart.  I don't think this is a recursive call problem since I added a semaphore to prevent recursion and it still hung.  It seems that there are some ESP subsystems that can't be called from the esp_log_set_vprintf callback function.
My workaround was to send to a ringbuffer and then store these logging strings into Flash in my main loop in the main thread.
I've found, as a general rule, that callbacks in ESP code are very limited in terms of what you can do from them.  The same limitation of not being able to log to flash also occurs from event handlers (such as when using the WiFi library) and the solution is the same which is to use a ringbuffer and do the Flash logging in the main thread processing loop.
It appears that doing printf to serial works without a problem, but writing to Flash either directly (say via esp_partition_write) or via a file system as you tried to do is a bridge too far.

Hi @Jcc99 , thank you for the report.
I tried replicating the issue with the provided code, but wasn't able to.
All the tasks got scheduled correctly.
(I was testing on C3, but I assume the problem isn't caused by C6 specifically, but I will test that later.)
Does the problem occur immediately or only after some time?.

As you said, this problem occurs over a period of time, but it is bound to happen.  @haberturdeur


[Question] How to setup the starting message to show the IP address

Sorry if it is explained already in some document, but could not find it.
I am planning on having a private server using Radmin with multiple people being able to open the server from their computer with their own IP address. Is there a way that when the server opens, it displays the current IP of the server?

I see this went unanswered.
Sadly, there is no reliable way to do this in minecraft, as often time the server itself doesn't even know what the real IP of the server is. So the only way to do this would be add the IP manually into the starting messages


Add C implementation for @stdlib/math/base/special/sinh

Resolves #747.
Checklist

[x] update readme.md
[x] include.gypi
[x] binding.gyp
[x] include/stdlib/math/base/special/
[x] evalrational.js
[x] src
[x] manifest.json
[x] lib
[x] examples
[x] benchmark
[x] test

@kgryte

All tests passed and benchmarks cleared, this PR can have a final review.


Resolve conflicts hangs after git pull (organize imports)

IDEA 2016.2.5, win7 64bit
Save actions 0.12 / Organize imports turned on
If I do a git pull with auto stash, when I click on the "Merge" button on the resolve dialog the merge panel appears but immediately after this there comes a progress popup with "Organize imports". But this organize imports never finishes, the cancel button on the popup does nothing, only closing the IDEA process from the task manager helps.
After restarting IDEA, clicking on Git -> Resolve conflicts... works as intended, I can merge the files.

OK I'll check it out, thanks.


[Docs]：add links to our slack channel and LinkedIn in doc

File: /docs/introduction/StarRocks_intro.md

#10659


STORM-2197: NimbusClient connections leak due to leakage in ThriftClient.

This is #1770 for master.

+1


pass-authz integration tests failing due to github move

Using Java 8, run the ITs with
mvn verify

The underlying errors are problems like:
java.lang.RuntimeException: A problem occurred while attempting to create a Resource: Failed to update null - unexpected status code 400: Could not parse jsonld: loading remote context failed: https://oa-pass.github.io/pass-data-model/src/main/resources/context-3.5.jsonld
        at org.dataconservancy.pass.authz.PassAuthzIT.userBasedPermissionIT(PassAuthzIT.java:96)
Caused by: java.lang.RuntimeException: Failed to update null - unexpected status code 400: Could not parse jsonld: loading remote context failed: https://oa-pass.github.io/pass-data-model/src/main/resources/context-3.5.jsonld
        at org.dataconservancy.pass.authz.PassAuthzIT.userBasedPermissionIT(PassAuthzIT.java:96)

This occurs because pass-java-client needs to be updated to the new JSON-LD context location.

Fixed by making the context resolvable again.


Question: What is difference between Nuget Linqkit and Linqkit.EntityFramework packages?

Unless I missed something, I couldn't find any documentation explaining the difference.

There is no difference in code, the LinqKit package is just there for backwards compatiblity.

There is no difference in code, the LinqKit package is just there for backwards compatiblity.


Update "Authorized App" display

To make the "Authorized Apps" display more similar to the designs using the data we already have:
Remove

contractId label (keep the value)
publicKey label and value

Change

allowance/amount to "Fee Allowance: <0.1% of N Balance"

Add

default app icon (seems to be implemented but hidden?)

Screenshot

@kcole16 it's ready in #161
default app icon was implemented, but since we don't have real icons for apps yet, a recent decision was to hide it.

@kcole16 I misunderstood amount line, now should be fine


Deployment GH actions

Resolves https://github.com/UCLH-Foundry/FlowEHR/issues/78
Includes the fix from https://github.com/UCLH-Foundry/Dash-Seedling/tree/jjgriff93/sync-with-app-infra – thanks @jjgriff93

works ok:


Reform serialization (do not merge)

Motivation:
Explain the context, and why you're making that change.
To make others understand what is the problem you're trying to solve.
Modification:
Describe the idea and modifications you've done.
Result:
Fixes #.
If there is no issue then describe the changes introduced by this PR.

Codecov Report

Merging #300 into 5.4 will increase coverage by <.01%.
The diff coverage is 82.94%.

@@             Coverage Diff              @@
##                5.4     #300      +/-   ##
============================================
+ Coverage     71.84%   71.84%   +<.01%
- Complexity      966      978      +12
============================================
  Files           342      346       +4
  Lines         14279    14315      +36
  Branches       2301     2304       +3
============================================
+ Hits          10259    10285      +26
- Misses         2825     2831       +6
- Partials       1195     1199       +4

Impacted Files
Coverage Δ
Complexity Δ

.../main/java/com/alipay/sofa/rpc/common/Version.java
100% <ø> (ø)
0 <0> (ø)
:arrow_down:

...a/rpc/codec/sofahessian/SofaHessianSerializer.java
86.66% <100%> (+1.04%)
19 <2> (-20)
:arrow_down:

...essian/serialize/AbstractRpcSerializeObjector.java
58.33% <58.33%> (ø)
11 <11> (?)

...an/serialize/SofaResponseRpcSerializeObjector.java
84% <84%> (ø)
8 <8> (?)

...ian/serialize/SofaRequestRpcSerializeObjector.java
85.93% <85.93%> (ø)
11 <11> (?)

...fa/rpc/codec/sofahessian/HessianDecodeManager.java
87.5% <87.5%> (ø)
3 <3> (?)

...ipay/sofa/rpc/codec/bolt/SofaRpcSerialization.java
74.22% <93.75%> (+0.75%)
24 <0> (ø)
:arrow_down:

...sian/MultipleClassLoaderSofaSerializerFactory.java
86.66% <0%> (-6.67%)
4% <0%> (-1%)

.../main/java/com/alipay/sofa/rpc/tracer/Tracers.java
39.74% <0%> (-2.57%)
0% <0%> (ø)

...om/alipay/sofa/rpc/common/json/JSONSerializer.java
64.93% <0%> (-0.43%)
0% <0%> (ø)

... and 10 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 9f72fb4...4602fed. Read the comment docs.


Update to use Node 20

Github is deprecating Node 16 as it is now EOL.
This change is just to change the action to use Node 20 in the actions.yml file.
It has been tested in my own workflows and appears to need no other changes.
My suggestion would be to increment the version tag to v4, but that is truly up to the owner of this repo.

Thanks for this PR, I'd welcome the update :)

Would be nice to have this in! Thanks

Up @orgoro :)

Thanks!
I will rebuild the workflow and publish


Load the blockchain into the node quickly

Find a solution to loading the chain into a node on node startup quickly. Progressive loading checkpoints? This is related to the issue about not holding the entire chain in memory in a node.

Current thinking on holding a subset of the chain in memory is that we'll hold about 2 days worth of blocks in memory, which (at an average of 2 seconds per block) is 1440 blocks.  A quick benchmark on my 2.6Ghz Intel Core i7 Macbook yields just about one minute to load and validate 1440 blocks from the database.

done - another issue raised for securing the syncing


Correct BioCheck to be Bio Check

This will conflict with my PR since I have moved the line that you changed out of options.js to another file. So please hold of on this until https://github.com/wikitree/wikitree-browser-extension/pull/90 is merged.


Bad file number

I'm trying you example with my preferences, but it seems not connecting because there is something wrong. Does this sound familiar?

esp32
Arduino IDE 1.8.16
Arduino ESP 2.0.4

Connecting to MQTT...
[ 22006][I][Packet.cpp:322] _allocate(): Alloc (l:53)
[ 22007][V][ssl_client.cpp:62] start_ssl_client(): Free internal heap before TLS 90320
[ 22009][V][ssl_client.cpp:68] start_ssl_client(): Starting socket
[ 22060][V][ssl_client.cpp:149] start_ssl_client(): Seeding the random number generator
[ 22073][V][ssl_client.cpp:158] start_ssl_client(): Setting up the SSL/TLS structure...
[ 22073][V][ssl_client.cpp:181] start_ssl_client(): Loading CA cert
[ 22107][E][ssl_client.cpp:37] _handle_error(): [start_ssl_client():190]: (-8576) X509 - The CRT/CRL/CSR format is invalid, e.g. different type expected
[ 22110][E][WiFiClientSecure.cpp:135] connect(): start_ssl_client: -8576
[ 22124][V][ssl_client.cpp:324] stop_ssl_socket(): Cleaning SSL connection.
[ 22124][E][WiFiClient.cpp:313] setSocketOption(): fail on -1, errno: 9, "Bad file number"
[ 22140][V][ssl_client.cpp:324] stop_ssl_socket(): Cleaning SSL connection.
[ 22141][I][MqttClient.cpp:627] _clearQueue(): clearing queue (clear session: false)
Disconnected from MQTT: 0.

I haven't tried all the TLS features. The lib merely passes the methods from the TCP client to the mqtt client's interface.
Now, the real error is obviously not bad file number but The CRT/CRL/CSR format is invalid, e.g. different type expected.
How did you specify the certificate?

Yes, the error seems familiar. It is well know in the lastest. I think where to look!

The certificate is OK now. I accidentally changed something in my code. I didn't expected that.
Still having that bad file number. I don't get it why this setSocketOption() is called.

Obtained IP address: <IP_ADDRESS>
Connecting to MQTT...
[  6385][I][Packet.cpp:322] _allocate(): Alloc (l:53)
[  6386][I][MqttClient.cpp:263] loop(): Stack usage: 9444/10000
[  6391][V][ssl_client.cpp:62] start_ssl_client(): Free internal heap before TLS 92660
[  6399][V][ssl_client.cpp:68] start_ssl_client(): Starting socket
[  6464][V][ssl_client.cpp:149] start_ssl_client(): Seeding the random number generator
[  6465][V][ssl_client.cpp:158] start_ssl_client(): Setting up the SSL/TLS structure...
[  6470][V][ssl_client.cpp:181] start_ssl_client(): Loading CA cert
[  6480][V][ssl_client.cpp:257] start_ssl_client(): Setting hostname for TLS session...
[  6483][V][ssl_client.cpp:272] start_ssl_client(): Performing the SSL/TLS handshake...
[  9324][V][ssl_client.cpp:293] start_ssl_client(): Verifying peer X.509 certificate...
[  9325][V][ssl_client.cpp:301] start_ssl_client(): Certificate verified.
[  9337][V][ssl_client.cpp:316] start_ssl_client(): Free internal heap after TLS 47540
[  9337][E][WiFiClient.cpp:313] setSocketOption(): fail on -1, errno: 9, "Bad file number"
[  9355][I][MqttClient.cpp:263] loop(): Stack usage: 6964/10000
[  9355][V][ssl_client.cpp:369] send_ssl_data(): Writing HTTP request with 53 bytes...
[  9358][I][MqttClient.cpp:309] _checkOutgoing(): tx 53/53
Guru Meditation Error: Core  1 panic'ed (Double exception).

Exception:Error:
/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port/xtensa/xtensa_context.S:195:::0x40095c62:_xt_context_save
/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port/xtensa/xtensa_vectors.S:1820:::0x40080080:_WindowOverflow8
/builds/idf/crosstool-NG/.build/HOST-i686-w64-mingw32/xtensa-esp32-elf/src/newlib/newlib/libc/machine/xtensa/strlen.S:84:::0x40092f39:strlen
/builds/idf/crosstool-NG/.build/HOST-i686-w64-mingw32/xtensa-esp32-elf/src/newlib/newlib/libc/machine/xtensa/strlen.S:96:::0x40092f49:strlen
/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port/xtensa/xtensa_context.S:194:::0x40095c5f:_xt_context_save
G:\Documents\Visual Studio 2019\Arduino\libraries\espMqttClient\src\Transport/ClientSecureSync.cpp(39): error 0x40221279:espMqttClientInternals
/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port/xtensa/xtensa_vectors.S:1799:::0x4008007d:_xt_alloca_exc
0x40078000: ?? ??:0
??:?:::0x40080400:_init
0x400805f0: ?? ??:0

It's crashing because it didn't had a proper socket to read I think.

No, that is a bug in the WiFiClientSecure library. It doesn't do any harm though. It's just trying to set an option.
There is a bug in my code. I fixed it in the main branch. Will publish a bugfix release later today.
See https://github.com/bertmelis/espMqttClient/commit/9cba9bcc5a4e2d90aedccc3b1c3637772eaadf1a

It can wait. No problem!

https://github.com/bertmelis/espMqttClient/releases/tag/v1.2.2

It's connected now! I don't see the setSocketOption() anymore. Seems to be solved too.
To login to server I needed to add this line to the onConnect()... You will probably know.
Serial.print("Client ID: ");
Serial.println(mqttClient.getClientId());

I only initialized these.
mqttClient.setCACert(root_ca);
mqttClient.setCredentials(MQTT_USER, MQTT_PASS);
mqttClient.onConnect(onMqttConnect);
mqttClient.onDisconnect(onMqttDisconnect);
//mqttClient.onSubscribe(onMqttSubscribe);
//mqttClient.onUnsubscribe(onMqttUnsubscribe);
//mqttClient.onMessage(onMqttMessage);
//mqttClient.onPublish(onMqttPublish);
mqttClient.setServer(MQTT_HOST, MQTT_PORT);
mqttClient.setCleanSession(true);

And it seems it is checking for messages

[  9715][I][MqttClient.cpp:383] _checkIncoming(): Parsed 4 - remaining 0
[ 24607][I][MqttClient.cpp:405] _checkPing(): Near keepalive, sending PING
[ 24608][I][Packet.cpp:322] _allocate(): Alloc (l:2)
[ 24609][V][ssl_client.cpp:369] send_ssl_data(): Writing HTTP request with 2 bytes...
[ 24625][I][MqttClient.cpp:309] _checkOutgoing(): tx 2/2
[ 24676][I][MqttClient.cpp:331] _checkIncoming(): rx len 2
[ 24676][I][Parser.cpp:111] _fixedHeader(): Packet type: 0xd0
[ 24676][I][Parser.cpp:174] _remainingLengthNone(): Remaining length: 0

Can I turn it off?

Can I turn it off?

Turn off what? The debug messages? That's a compile time option. Are you using Arduino IDE or Platformio?

You always need to check for messages. You need to check if the server is responding.
You can safely disable the onConnect callback if you don't need it and use connected() to check if the client is connected. Mind though there is no automatic reconnect logic. You have to do that in your code.

Ok.
Closing as it seems solved with the latest release.
Feel free to reopen or create a new issue if it doesn't work.

The socketoption is back, but it is connecting...

Connecting to MQTT...
[  6516][I][Packet.cpp:322] _allocate(): Alloc (l:53)
[  6517][I][MqttClient.cpp:263] loop(): Stack usage: 9444/10000
[  6522][V][ssl_client.cpp:62] start_ssl_client(): Free internal heap before TLS 92532
[  6530][V][ssl_client.cpp:68] start_ssl_client(): Starting socket
[  6608][V][ssl_client.cpp:149] start_ssl_client(): Seeding the random number generator
[  6620][V][ssl_client.cpp:158] start_ssl_client(): Setting up the SSL/TLS structure...
[  6636][V][ssl_client.cpp:181] start_ssl_client(): Loading CA cert
[  6657][V][ssl_client.cpp:257] start_ssl_client(): Setting hostname for TLS session...
[  6658][V][ssl_client.cpp:272] start_ssl_client(): Performing the SSL/TLS handshake...
[  9919][V][ssl_client.cpp:293] start_ssl_client(): Verifying peer X.509 certificate...
[  9920][V][ssl_client.cpp:301] start_ssl_client(): Certificate verified.
[  9923][V][ssl_client.cpp:316] start_ssl_client(): Free internal heap after TLS 47524
[  9934][E][WiFiClient.cpp:313] setSocketOption(): fail on -1, errno: 9, "Bad file number"
[  9939][I][MqttClient.cpp:263] loop(): Stack usage: 6964/10000
[  9951][V][ssl_client.cpp:369] send_ssl_data(): Writing HTTP request with 53 bytes...
[  9953][I][MqttClient.cpp:309] _checkOutgoing(): tx 53/53
[ 10071][I][MqttClient.cpp:331] _checkIncoming(): rx len 4
[ 10072][I][Parser.cpp:111] _fixedHeader(): Packet type: 0x20
[ 10072][I][Parser.cpp:124] _remainingLengthFixed(): Remaining length: 2
[ 10087][I][Parser.cpp:198] _varHeaderConnack2(): Packet complete
[ 10087][I][MqttClient.cpp:627] _clearQueue(): clearing queue (clear session: true)
Connected to MQTT.

Don't know why, but when I login to the Websockets Client on the webpage it connects for 5sec to the client and then disconnect. When I connect again, it does the same thing again. That's new for me (the ping too)... Any idea's? The connection doesn't seems lost on the esp. I read a note in the documentation of the MQTT...

"KeepAlive"
Q: What does a PING message look like? Does the KeepAlive timer get reset when data is sent/received? Is the ping sent just when the KeepAlive time is about to be lapsed?
As long as messages are exchanged frequently and the keep-alive interval is not exceeded, there is no need to send an extra message to establish whether the connection is still open. As and when the client sends PINGREQ/PUBLISH/SUBSRIBE packets to the broker the keepAlive timer gets reset.

Do I need to modify this somewhere on my esp "PINGREQ/PUBLISH/SUBSRIBE"?

Read my previous comment on the "bad file number". It doesn't influence this lib.
I cannot help with your websocket client. That is not my work, please ask the maintainer of that lib.
You cannot change the behaviour of the ping/pong mechanism. It's part of the MQTT specification to ensure both client and server are sure the other end is still connected.

Your right, it doesn't.

Don't know why, but when I login to the Websockets Client on the webpage it connects for 5sec to the client and then disconnect. When I connect again, it does the same thing again. That's new for me (the ping too)... Any idea's? The connection doesn't seems lost on the esp. I read a note in the documentation of the MQTT...

I choose the same clientID for the webviewer... I forgot. That was why it disconnected. It's running fine now.
You can place HiveMQ on your checklist! Thanks for helping me out.

Super!


UI - Make it pretty

Since you delve in the realm of backend engineering.
I'd recommend a combination of tailwindcss alpinejs & htmx
It's what I use and I find it phenomenal.
I built https://psync.club with it.


Warp-taskbar crashes because GTK or does not find its files.

Describe the bug
Warp-taskbar does not open beacuse a GTK assertion.
Steps To Reproduce
Steps to reproduce the behavior:
I am using a flake.nix with the nixpkgs inputs are on master branch.
nixpkgs.url = "github:nixos/nixpkgs/master";

Also I have tried with nixos-unstable branch.

Put the following snippet in you conf

systemd.packages = [ pkgs.cloudflare-warp ]; # for warp-cli
systemd.targets.multi-user.wants = [ "warp-svc.service" ]; # causes warp-svc to be started automatically
services.cloudflare-warp.enable = true;

environment.systemPackages = [ pkgs.cloudflare-warp ]; # for warp-svc

or
environment.systemPackages = [ pkgs.cloudflare-warp ]; # for warp-svc

Expected behavior
The expected behavior when you install the package cloudflare-warp is that you can open warp-taskbar program (2nd conf snippet). As you can see in first screenshot, it complains about a folder. Probably because conf of this program is not binded to /usr.
As it is explained in this issue #323580.
for some reason this behavior is different if you enable warp service (1st conf snippet).
Screenshots
2nd conf behavior

1st conf behavior
A capture of the journal

Additional context
this a new issue because @marcusramberg wants to close previous one #213177.
Notify maintainers

@marcusramberg
Add a :+1: reaction to issues you find important.

behavior of the service is different in master branch and nixos unstable for some reason
nixos unstable behavior.
Service launches but warp-taskbar not.

nixos master behavior
Services not launches as you can see in the journal screenshot.

You'll have to use the included warp-taskbar user service which works around the hard-coded /usr bindings. I have a PR up to bump cloudflare-warp to the latest release btw, https://github.com/NixOS/nixpkgs/pull/336116

could you do a mini conf snippet ?

You'll have to use the included warp-taskbar user service which works around the hard-coded /usr bindings. I have a PR up to bump cloudflare-warp to the latest release btw, #336116

could you do a mini conf snippet ?

You'll have to use the included warp-taskbar user service which works around the hard-coded /usr bindings. I have a PR up to bump cloudflare-warp to the latest release btw, #336116

I guess it depends on how you manage user config.
You can just systemctl --user enable --now warp-taskbar tho.

I have managed to enable and start it but i dont know how it works. There is no any logo as your screenshot of the previous issue.

Also , how is the proper way to do it with home-manager ?

when i try to register with warp-cli
this happens

Not sure about home-manager, but you can enable the user unit from your nixos configuration like this:
  systemd.packages = [ pkgs.cloudflare-warp ];
  systemd.user.services.warp-taskbar.wantedBy = [ "graphical.target" ];

^^ This might be a good candidate for inclusion in the warp module, @treyfortmuller ?
The other problems (not being able to open a browser/not getting the widget) seems like problems with your wm configuration and not cloudflare-warp. I've tested it to work in both gnome and hyprland.

how do you make it work in gnome ??
What do you think I miss configured ?

Did you enable the AppIndicator Support extension? The registration issue seems to be related to not having configured a default browser somehow. At least both of those work for me without issue, I haven't done anything special. I was under the assumption that you were using a more bare-bones wm based on the Couldn't register callback error above. Anyways, I'm going to close this as desktop configuration support kinda falls outside of the cloudflare-warp package.
This opens a browser just fine for me:

Hi, I have researched , once i have installed AppIndicator Support extension and enabled in gnome extensions.
I got this behavior
it could not write something, somewhere in the filesystem but it actually register and it is working. As you can see in the image.
but now the app is working.

when i try to register with warp-cli
this happens

I think i might have something more missconfigured.
Thanks for your assitance.


error fetching checks

Hangs on Fetching checks and then notifies with failed to fetch remote branch
Neovim version -
v0.8.0-dev+160-gdbdd58e54
Config-
 use({
            'ldelossa/gh.nvim',
            event = 'InsertEnter',
            requires = 'ldelossa/litee.nvim',
            config = function()
                require('litee.lib').setup()
                require('litee.gh').setup()
            end
        })

Expected Outcome -
The remote branch should have been fetched and the PRs to be seen

Can you provide more info? Its most likely not hanging on "fetching checks", thats just the final API call.
gh.nvim is attempting to do git operations at that point, it wants to add the remote of the repo locally and then fetch the pull. Do you have permissions to do that?

Yes, it does have permissions to do as far as I know
what would be the equivalent git commands, maybe I can try to run that to see if I run into an error

https://github.com/ldelossa/gh.nvim/blob/8ed9bec691000f78dbd162baf02e1beb43f487e0/lua/litee/gh/pr/handlers.lua#L54-L70 - these are the lines which are giving you a problem.
gh.nvim is pretty new, so unfortunately logging is not great yet. But for your repo the gitcli.fetch seems to be failing. This equates to a this function call: https://github.com/ldelossa/gh.nvim/blob/8ed9bec691000f78dbd162baf02e1beb43f487e0/lua/litee/gh/gitcli/init.lua#L34-L41
You'll need to log out the remote and branch name in your particular case which is causing the issue. Also, is your repo public ? If so I can just try to reproduce on my end.

After going through the remotes and branches I found that another remote litee-gh_<username>/<repository-name> was created. And this one has an issue
The authenticity of host 'github.com (<IP_ADDRESS>)' can't be established.
ED25519 key fingerprint is SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])?

Yup, we try to add the remote ourselves so we can pull the code. Did we create the remote incorrectly?

The solutions say that I need to add SSH Keys. I am not sure if I want to set that up. Is there a workaround

@Arjun31415 so I determined that is just my git configuration setting, I swap all http remotes to SSH.
We can theoretically avoid ssh all together and use the https remote, the user will deal with pushing/pull on their own as gh.nvim does not involve itself with that.
Are you able to try this branch? And add the necessary config value? https://github.com/ldelossa/gh.nvim/pull/3

Up to you, if you prefer no to use SSH keys, this should be an option for you. If not, its okay I'll still merge as some ppl may want to not use ssh keys.

cool, will merge now.

Happy to help

Closing issue, feel free to re-open if any other problems.


[ci] run Azure linux tasks on self-hosted runner pool

To help with #3519, @guolinke has created a pool of self-owned runners for CI jobs on Azure DevOps. https://github.com/microsoft/LightGBM/issues/3519#issuecomment-748589207
This PR proposes moving the linux jobs we currently run on Azure DevOps to that pool. This should have no effect on those jobs, since they are containerized and run in containers based on the image from https://github.com/guolinke/lightgbm-ci-docker.
Running on this pool should decrease our overall CI time. See some of the comments from https://github.com/microsoft/LightGBM/pull/3672#issuecomment-753727415. Azure allows us 10 concurrent builds across all operating systems for all jobs using microsoft-hosted runners. After this change, those 10 concurrent builds would only be used by Mac and Windows jobs.
Notes from Reviewers
I think this PR needs approval from both @StrikerRUS and @guolinke . This will lead to 3 runs on the sh-ubuntu pool per commit pushed, and I want to be sure @guolinke is ok with whatever the cost implications of that is.

I'm very unsure about what I'm saying 😃
But seems the cost is calculated only for usage of virtual machines, all parallel jobs are free

I'm very unsure about what I'm saying 😃
But seems the cost is calculated only for usage of virtual machines, all parallel jobs are free

Can confirm that this PR utilized agents from sh-ubuntu pool:

Can confirm that this PR utilized agents from sh-ubuntu pool:

great! BTW, do we need the windows self-hosted pool?

great! BTW, do we need the windows self-hosted pool?

great! BTW, do we need the windows self-hosted pool?

The Windows self-hosted pool would definitely be helpful too, but I haven't moved to it yet because differences between that VM image and the microsoft-hosted runner's image might affect artifacts. Like @StrikerRUS said in https://github.com/microsoft/LightGBM/pull/3672#issuecomment-753727415,

Artifacts are something that are quite sensitive to the environments where they are built.

This wasn't a concern with linux because we use docker for isolation.
I think we should not use the Windows pool until we notice a problem with long build times because of a lot of jobs queued up. So if having it is costing you money I think you could probably remove it.

great! BTW, do we need the windows self-hosted pool?

The Windows self-hosted pool would definitely be helpful too, but I haven't moved to it yet because differences between that VM image and the microsoft-hosted runner's image might affect artifacts. Like @StrikerRUS said in https://github.com/microsoft/LightGBM/pull/3672#issuecomment-753727415,

Artifacts are something that are quite sensitive to the environments where they are built.

This wasn't a concern with linux because we use docker for isolation.
I think we should not use the Windows pool until we notice a problem with long build times because of a lot of jobs queued up. So if having it is costing you money I think you could probably remove it.

Also, given that we moved all Linux jobs to self-hosted pool, now we have only macOS and Windows jobs on Microsoft-hosted pool. And on Microsoft-hosted pool we have 10 free parallel jobs, but only 5 of them can be macOS jobs. So, I think it makes sense to keep Windows jobs on Microsoft-hosted pool to fully utilize it.

10 free Microsoft-hosted jobs across different OSes, but always only 5 for macOS;

Also, given that we moved all Linux jobs to self-hosted pool, now we have only macOS and Windows jobs on Microsoft-hosted pool. And on Microsoft-hosted pool we have 10 free parallel jobs, but only 5 of them can be macOS jobs. So, I think it makes sense to keep Windows jobs on Microsoft-hosted pool to fully utilize it.

10 free Microsoft-hosted jobs across different OSes, but always only 5 for macOS;


iOS Input Issue in relation with Cordova and Iframe

This is a (multiple allowed):

[x] bug

[ ] enhancement

[ ] feature-discussion (RFC)

Framework7 Version: 1.6.5

Platform and Target: Cordova, iOS

Input fields are not working correctly in relation with iOS and Cordova.
When you tap on the input field the keyboard pops up, but while typing no characters appear. Also copy, cut etc. does not work. When tap the input field a little longer (1-2 seconds) the focus is correct and you can start typing. A second click in the input field and typing does not work anymore, but keyboard is still there. It must be something that happens when Framework7 is initialized. I've tested with only the Framework7 styling and everything was fine. No problems with Android devices.
HTML and JS files are on our server and not inside the app. Cordova is used as an iframe and not using the inapp browser.

This issue with inputs in iframe has been introduced in iOS 11, it is a system issue. Can't really do anything with it

I had the same issue with multiple iFrames. Have solved it by remove the following lines in the function handleTouchStart()
			 if (needsFastClickTimeOut) { clearTimeout(needsFastClickTimeOut); } needsFastClick = targetNeedsFastClick(e.target);
and some lines below
trackClick = true;

sorry, have not seen that this is regards to 1.6x version ... had the problem with 2.x


xcodebuild now autodetects workspace, if present.

Default behavior of xcodebuild --  if no workspace is passed in -- is to use the .xcodeproj. This PR enables the xcodebuild action to autodetect and use the .xcworkspace instead, removing the need to specify the workspace.

Looks great, thanks, just added a few comments.

I made it so that it will warn when multiple workspaces are present, but it will let you know which one it will use. I didn't think that it should fail if there are multiple workspaces, but I do think that it should be more verbose about which workspace it will use.
What do you think?

Perfect, looks great :+1:


Blank screen on startup

I just managed to build the ReConstruct solution and then tested it on a DICOM dataset but nothing is displayed but a blank screen with some controls at the top.
What I did was to open the solution in VS and then set ReConstruct.UI as the startup project.  Then I created a Reconstruct.Data directory and placed the DICOM files in there.
I also had to change VolumeViewOpenGL.New on line 24 in dicom-controller.fs (ReConstruct.UI.Controllers) to VolumeView.New otherwise the solution would not build.
Could I get some help with this. Thanks.

Hello, if I remember correctly you have to choose the folder containing your DICOM stack.
Till you do so, all you will see is that blank screen.
I am afraid I cannot do a quick check for you as I dropped Windows years ago and only work with Linux
(the GUI is WPF so it won't work in Linux).
Also, I would start testing the app with lightweight DICOM images e.g. around 100KB per image.
And after go for the heavier datasets, if any.
Give it a try and if it does not work can you please post some screenshots to help me refresh my memory, as I say it has been ages since I last touched this project.


Re-adds Heroku deployment hooks removed from bugsnag-ruby

Adds the deployment hooks from bugsnag-ruby back into the bugsnag-capistrano repo.
Updates rake example with explanation of Heroku deployment.
Fixes issue with bugsnag-capistrano not requiring logger before use
Ensures rake task can work standalone (without bugsnag-ruby installed)

Has this been tested on a heroku app?

Approved - once https://github.com/bugsnag/bugsnag-capistrano/pull/5 is shipped this is good to go

Yes, can confirm this is tested with heroku.


Cupertino - Letter to Mayor and City Council

To<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>Subject: [*** INSERT UNIQUE SUBJECT LINE ***]
Message (Don't forget to replace the [x]'s with your information!) 🔗
To Mayor Scharf and Cupertino City Council Members,
My name is [YOUR NAME], and I am a resident of Cupertino. Over the last few weeks, I’ve seen an outpouring of rage and grief over an occurrence common in the United States: the police killing of an unarmed Black person. George Floyd, Breonna Taylor, Tony McDade, Ahmaud Arbery. I say their names to honor the lives lost to police violence. I demand that the city of Cupertino respond to this moment, not just with rhetoric, but with change that addresses the systems that encourage anti-Black racism in small towns all over the United States.
Currently, Cupertino spends 14 million on law enforcement each year, and in 2014, the Mercury News reported that 9 million of that goes directly to contracting with Santa Clara County Office of the Sheriff. In doing so, Cupertino is supporting a system of discrimination and brutality against Black people.
County sheriffs and the criminal “justice” system disproportionately police and incarcerate Black people in Santa Clara. In 2017, the Santa Clara County District Attorney reported that while Black residents make up only 2% of the county, a statistic that already points to deep patterns of segregation, Black residents make up 12% of felony defendants and “a disproportionately high number of Black and Hispanic defendants were sentenced to prison as compared to their representation in the community.”
Cupertino spends 9 million dollars contracting with Santa Clara County Police despite the over policing of Black communities, despite the crisis in affordable housing in the South Bay, despite the fact that Cupertino has no homeless shelters. The average Cupertino resident pays $348 a year for Law Enforcement, $139 for Parks and Recreation, $12 for affordable housing, and $2 for support for unhoused people. As a city, I ask that Cupertino answer the call from the Movement for Black Lives and other Black organizations to defund the police and invest instead in community based organizations that truly promote public safety, health, harm reduction, and de-escalation. I ask that:
Cupertino pledges to defund the police in the upcoming 2024-2025 contract with the Santa Clara Office of the Sheriff.
Cupertino immediately defunds the 48,000 annual subsidy of School Resource Officers in FUHSD and CUSD schools.
Cupertino instead funds affordable housing, support for unhoused people, and youth mental health.
I was heartened to see Cupertino pass a resolution on June 5, 2020 affirming that Black Lives Matter. In order to, as the resolution states, “oppose any attempts to undermine the safety, security, and rights of members of our community,” it is essential that Cupertino moves to defund the police and reroute that funding to truly support Black people and communities of color.
Best,
[YOUR NAME]
[YOUR ADDRESS]
[YOUR EMAIL]
[YOUR PHONE NUMBER]

Thank you for submitting your city to defund12.org! Your request is now in the queue for review and publishing. We’ll reply here if we have any questions.

To<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>Subject: [*** INSERT UNIQUE SUBJECT LINE ***]
Message (Don't forget to replace the [x]'s with your information!) 🔗
To Mayor Scharf and Cupertino City Council Members,
My name is [YOUR NAME], and I am a resident of Cupertino. Over the last few weeks, I’ve seen an outpouring of rage and grief over an occurrence common in the United States: the police killing of an unarmed Black person. George Floyd, Breonna Taylor, Tony McDade, Ahmaud Arbery. I say their names to honor the lives lost to police violence. I demand that the city of Cupertino respond to this moment, not just with rhetoric, but with change that addresses the systems that encourage anti-Black racism in small towns all over the United States.
Currently, Cupertino spends 14 million on law enforcement each year, and in 2014, the Mercury News reported that 9 million of that goes directly to contracting with Santa Clara County Office of the Sheriff. In doing so, Cupertino is supporting a system of discrimination and brutality against Black people.
County sheriffs and the criminal “justice” system disproportionately police and incarcerate Black people in Santa Clara. In 2017, the Santa Clara County District Attorney reported that while Black residents make up only 2% of the county, a statistic that already points to deep patterns of segregation, Black residents make up 12% of felony defendants and “a disproportionately high number of Black and Hispanic defendants were sentenced to prison as compared to their representation in the community.”
Cupertino spends 9 million dollars contracting with Santa Clara County Sheriff despite the over policing of Black communities, despite the crisis in affordable housing in the South Bay, despite the fact that Cupertino has no homeless shelters. The average Cupertino resident pays $348 a year for Law Enforcement, $139 for Parks and Recreation, $12 for affordable housing, and $2 for support for unhoused people. As a city, I ask that Cupertino answer the call from the Movement for Black Lives and other Black organizations to defund the police and invest instead in community based organizations that truly promote public safety, health, harm reduction, and de-escalation. I ask that:

Cupertino pledges to defund the police in the upcoming 2024-2025 contract with the Santa Clara Office of the Sheriff.
Cupertino immediately defunds the 48,000 annual subsidy of School Resource Officers in FUHSD and CUSD schools.
Cupertino instead funds affordable housing, support for unhoused people, and youth mental health.

I was heartened to see Cupertino pass a resolution on June 5, 2020 affirming that Black Lives Matter. In order to, as the resolution states, “oppose any attempts to undermine the safety, security, and rights of members of our community,” it is essential that Cupertino moves to defund the police and reroute that funding to truly support Black people and communities of color.
Best,
[YOUR NAME]
[YOUR ADDRESS]
[YOUR EMAIL]
[YOUR PHONE NUMBER]


Currently running status screen a bit wonky

The status screen in currently running got a bit wonky by accident:

I think this was just caused by us writing updates at the same time; I made some changes and I'm sure you did too. So fixes:

If running, we should hide the "Finished" row in the in the job info table.
Use the "empty" modifier in the for loop for counts and errors to indicate that there are no counts or errors yet (which will generally fix the case where there are in fact, no counts and errors).
Colorize the job running row and the job info panel with the info class for at a glance-running indicator.

@bahadasx another blip when the job has failed:

There are three td in the first row, causing the table to break.


Add policy via adapter screen

Casdoor version: V1.382.0

Added a new policy and then exited the screen and came back to the same adapter but the policy was missing. Not sure if i'm missing anything here but I was expecting to see the policy in the adapter

@leo220yuyaodog

@satishviswanathan It will be fied by #2190. But one thing to note, the built in api policy will be reload when Casdoor restart. So any modify in the adapter will override.


vscode.executeDefinitionProvider fails to return result if the document is not shown in a window

VS Code Version: 1.54.0
OS Version: Windows 10 20H2

Steps to Reproduce:
As I am trying a workaround of  #118085, I found out that a call to vscode.executeDefinitionProvider would fail if the uri of a document is not displayed in a window, not even after vscode.workspace.openTextDocument, but it must be opened in a window after a call to vscode.window.showTextDocument. Again, I am testing it with microsoft vscode cpp-tool and I am trying to get the file path of some C++'s #include <...> statement.
1.
function getDefinition(uri: vscode.Uri, position: vscode.Position)
{
    return vscode.commands.executeCommand("vscode.executeDefinitionProvider", uri, position) as Thenable<(vscode.Location | vscode.LocationLink)[]>;
}
function getCurrentUri()
{
    return vscode.window.activeTextEditor?.document.uri;
}
function getFileUri(definition: (vscode.Location | vscode.LocationLink)[])
{
    return (definition[0] as vscode.Location).uri;
}

async function testGood()
{
    const uri = getCurrentUri()!;
    const pos = new vscode.Position(0, 10); //the position of an include statement
    const includeDefinition = await getDefinition(uri, pos);   //ok, but returns a bad vscode.Location, which contains a bad vscode.Uri
    const uri2 = getFileUri(includeDefinition);

    const pos2 = new vscode.Position(8, 10); //the position of another include statement in the file denoted as "uri2", which is not opened yet

    vscode.workspace.openTextDocument(uri2).then(async doc => //"uri2" is opened
    {
        vscode.window.showTextDocument(doc).then(async () => //"uri2" is shown in a window
        {
            const definition2 = await commands.definitionProvider(doc.uri, pos2); //SUCCESS
        });
    });
}

async function testBad()
{
    const uri = getCurrentUri()!;
    const pos = new vscode.Position(0, 10); //the position of an include statement
    const includeDefinition = await getDefinition(uri, pos);   //ok, but returns a bad vscode.Location, which contains a bad vscode.Uri
    const uri2 = getFileUri(includeDefinition);

    const pos2 = new vscode.Position(8, 10); //the position of another include statement in the file denoted as "uri2", which is not opened yet

    //directly using the uri2 to getDefinition() would fail like mentioned in #118085, but open it then get the uri property would results in a good uri
    vscode.workspace.openTextDocument(uri2).then(async doc => //"uri2" is opened but not shown in a window
    {
        const definition2 = await getDefinition(doc.uri, pos2); //STILL FAILS HERE
    });
}

I am not sure whether this behavior is "by design", but it makes it very inconvenient to find out symbol definition in unopened files.

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

const definition2 = await getDefinition(doc.uri, pos2); //STILL FAILS HERE

What does failure mean to you?

@jrieken It returns an array of length 0 and no error printed in the console. The successful call returns an array of length 1.

Please forward this to the C++ extensions.


How can we configure the GPIO pins to be used for the HAP-NodeJS

How can we configure the GPIO pins to be used for the HAP-NodeJS in Raspberry Pi? I don't see it anywhere

You can create a php script which calls your GPIO pin.
Then, create an accessory in HAP which call the php script.
Here is an example of an accessory (just a part of the accessory) :
var jardin = {
  powerOn: false,
  brightness: 100, // percentage

  setPowerOn: function(on) {
    console.log("Turning the light %s!", on ? "on" : "off");
    jardin.powerOn = on;
    var status = "off";
    if (on) {status = "on"};
    var req = new XMLHttpRequest();

      req.open('GET', 'http://<IP_ADDRESS>/path/to/my/site/myscript.php?name=jardin&status='+status, true);

    req.onload = function(e) {
        //console.log(selectedDevice+' set to '+on);
    };
    req.send(null);
  },
  setBrightness: function(brightness) {
    console.log("Setting light brightness to %s", brightness);
    jardin.brightness = brightness;
  },
  identify: function() {
    console.log("Identify the light!");
  }
}

I was following this video https://www.youtube.com/watch?v=lG5oE-Xrtu0 but I got the updated HAP-NodeJS instead of using that. Still I can't find how he manage to use the GPIO pins in the raspberry pi to the relay. And can you give a sample php script cause not sure what you meant by that. Thanks

Nevermind, I just used Python instead of PHP


Add support for choco download

Add support for choco download which would allow to use a Cake script for internalizing Chocolatey packages from the community feed and publish them to an internal feed.

@pascalberger I like it! I think we can safely assume that consumers of that function have a licensed edition of choco, and just try to execute it.

OK, will create a PR in this case :)

Sweet!


ts-node-dev sometimes uses old versions of files for compilation

I am seeing ts-node-dev fail to hot reload files sometimes (even though it notices the file changes and tries to restart according to the output). I don't have any steps to repro and I'm seeing this randomly every 2-3 days.
It seems different enough from the other issues i've seen on here to make its own thread.
I will fully explain my workflow for the most recent case as it may shed some light.
the error looked like:
[INFO] 15:58:29 Restarting: /Users/ryan/app_engine/StoryDoodle/src/server/util/redis.ts has been modified
Using ts-node version 8.0.2, typescript version 3.3.3333
[ERROR] 15:58:32 ⨯ Unable to compile TypeScript:
src/server/cache/JSONCache.ts(5,34): error TS2551: Property 'getAsync' does not exist on type 'IPromisifedRedis'. Did you mean 'hmgetAsync'?
src/server/cache/JSONCache.ts(16,17): error TS2339: Property 'setAsync' does not exist on type 'IPromisifedRedis'.

This is a normal and explainable error but it was only possible with an old file of /util/redis.ts because that's the only time I had hmgetAsync type defined. In addition, other files which depend on this file are compiling correctly. (they should fail on that version of the file)
My flow:

Make /util/redis.ts with version A (which would not have this error)
Make another file that debends on and works with /util/redis.ts
Modify /util/redis.ts to version B (which should produce this error)
Change my mind and change /util/redis.ts back to version A
Compilation is fine.
Create a new file that depends on /util/redis.ts
Get this error (which could only occur on version B of /util/redis.ts)
Try to resolve error by editing files. This causes visible reloads but error still persists
Restarting ts-node-dev by killing and re-running compiles properly

my command: ts-node-dev --respawn src/server/index.ts
OS: MAC OSX 10.14
ts-node-dev version: 1.0.0-pre.32
I can do additional debugging the next time this happens. Just let me know what might help.

After having other things failing, I suspect this may be a silently caught error somewhere related to OSX hitting the max number of files. If you are seeing similar strange behaviour in OSX I would sugget running the following (stolen from elsewhere on the internet):
$ echo kern.maxfiles=65536 | sudo tee -a /etc/sysctl.conf $ echo kern.maxfilesperproc=65536 | sudo tee -a /etc/sysctl.conf $ sudo sysctl -w kern.maxfiles=65536 $ sudo sysctl -w kern.maxfilesperproc=65536 $ ulimit -n 65536

Maybe something like this possible, if you find a way to reproduce it consistently, please show it.

Also experiencing this issue. My reproduction steps are basically the same as the issue author.
Here's the simplified version:

Create file util.ts with a function accepting a string.
Create file test.ts which calls the function in util.ts, but passes in a number instead of a string (which rightfully causes a compilation error).
Modify the function in util.ts to accept a number, which should fix the compile error.
The compile error persists unless test.ts is modified to have different content. Just saving the file again will cause a recompile, but the error still persists.
Restarting ts-node-dev completely fixes the error.

This is extremely annoying to deal with and results in having to restart the compilation quite often, which can take close to a minute.

@PachowStudios maybe you could create a repo to reproduce?

I think this issue is same as #60 . As I commented in #60, there is a non-intuitive (but NOT bug) behavior due to combination of TypeScript nature and incremental compilation.

I think it should considered as a bug since it prevents the app from starting without killing and restarting the whole process.

Yes, I totally agree which is why I stopped using ts-node-dev and opted for a combination of tsc-watch (for the first_succes and success options it offers) and node-dev and it's been perfect. No issues whatsoever, but the config is not as straightforward. There are a few gotchas. Mainly, --noEmitOnErrors does not work with tsc's --watch option (which tsc-watch uses internally).

Or webpack :D

The compile error persists unless test.ts is modified to have different content. Just saving the file again will cause a recompile, but the error still persists.

I'll try to fix this will reinitializing compilation on compiler's error, not sure how it will affect large codebase, but this is the only way to get rid of this.

Maybe a potential solution would be to just recompile files with errors (after dumping the cache) instead of restarting the entire compilation?
Restarting the compilation will still likely result in this package being unusable.

I've just started having similar issues constantly, where the Node server is restarted but uses old version of code, without any errors being present.  Killing and restarting ts-node-dev takes the new code into use.  This didn't happen earlier, I'm unsure what has changed.  I think I upgraded Node in between.
I'm able to reproduce the problem with the following steps:

Start the server with ts-node-dev
Call an API with curl (not strictly necessary, reproduces without this step)
Modify the controller to add console.log('HERE')
Save the file --> the server restarts
Call the API with curl  -->  'HERE' does not get printed
Modify the controller line to console.log('HERE2')
Save the file --> the server restarts
Call the API with curl -->  'HERE2' is printed

I've tested this on 1.0.0-pre.50 (I'm unable to test on newer versions due to #208).  Running on macOS.  Raising the ulimit -n 30000 limit did not help, the suggested sysctl values are already >40000.
Any ideas?

@plaa make reproducible example repository.

@whitecolor I minimized the repo and finally figured out that if I remove the explicit --watch 'src' option, it starts reloading the files properly.  This seems like a clear bug to me.
Example repo with reproduction instructions: https://github.com/plaa/ts-node-dev-watch-bug

I'll take a look.

@plaa  why you are watching the required code that is already watched? This definitely may lead to some problems. --watch option is for watching arbitrary files/files, it is not intended to be used this way.

@whitecolor Configuration was like this when I joined the project.  Possibly because there's some configuration / YAML files under src/ to be watched as well.
In any case, I wouldn't expect specifying files to be watched multiple times to cause such erratic behaviour. It should either cause a clear error, or (preferably) just ignore duplicates.

@plaa ok will see how to resolve it.

I'm having the same same problem with ts-node, version v9.1.1.  The file under test was renamed from 'test.ts' to 'testset1.ts'.  Compiling with tsc and executing the js file runs correctly.  But ts-node seems to be using a cached old version -- perhaps the new name has messed up the method by which it detects a changed source file?
The npm page for ts-node say there is a flag --no-cache.  However that is not recognized by the version I am using.  Attempts to find the cache did not succeed.  If @wclr could inform a workaround method for deleting the cache that would be helpful.

I'm having the same same problem with ts-node, version v9.1.1.  The file under test was renamed from 'test.ts' to 'testset1.ts'.  Compiling with tsc and executing the js file runs correctly.  But ts-node seems to be using a cached old version -- perhaps the new name has messed up the method by which it detects a changed source file?
The npm page for ts-node say there is a flag --no-cache.  However that is not recognized by the version I am using.  Attempts to find the cache did not succeed.  If @wclr could inform a workaround method for deleting the cache that would be helpful.

any update on this issue?

I'm having a different but similar issue. I have a .ts file used as a mock DB where I added more info. I have no compilation errors after modifying it and updating the types of the request response, but still, I'm being served the old file info when making the GET request. I console.logged the request response, and you can see that it's different if I run ts-node-dev vs running the build. Specifically, the entries array is not being displayed.

1


DeviceType import handle unknown component enums

Update the import logic to default any device component template CharField with defined choices to an other choice if we encounter a choice we don't recognize.
Add a debug log when we encounter such cases.

implemented for 2.2 by #5427


input by file drag and drop

What's the Problem?
No response
Solution/Idea
The following locations would benefit from the ability to enter content by dragging and dropping files in addition to direct input and pasting.
e.g.

Converters

JSON <> YAML Converter (Input)

Encoders / Decoders

HTML (Input)

Formatters

JSON (Input)
SQL (Input)
XML (Input)

Text

Text Case Converter and Inspector (String)
Regex Tester (Text)
Text Diff (Old text, New text)
Markdown Preview (Markdown)

() is an area that accepts drops

Alternatives

Priorities
No response
DevToys Version
Version <IP_ADDRESS> | X64 | RELEASE | 7c7c02a | 7c7c02a
Comments
No response

Drag and Drop would be excellent!

Duplicate with #605


Don't set properties on sphericart_torch target before defining the target

Follow up to #95, the sphericart_torch needs to be defined before we can set its properties.

Fixes build problems for me...


Support Puppeteer-Sharp in a Windows Docker

Description
I am not able to run Puppeteer Sharp in a Windows docker container on my machine. Though I have tried it on some other machines on which it is working.
Complete minimal example reproducing the issue
            var options = new LaunchOptions
            {
                Headless = true
            };

            Console.WriteLine("Downloading chromium");
            await Downloader.CreateDefault().DownloadRevisionAsync(Downloader.DefaultRevision);

            Console.WriteLine("Navigating google");
            using (var browser = await Puppeteer.LaunchAsync(options, Downloader.DefaultRevision))
            using (var page = await browser.NewPageAsync())
            {
                await page.GoToAsync("http://www.google.com");

                Console.WriteLine("Generating PDF");
                await page.PdfAsync(Path.Combine(Directory.GetCurrentDirectory(), "google.pdf"));

                Console.WriteLine("Export completed");
                Console.ReadLine();
            }

Expected behavior:
No errors .
Actual behavior:
Downloading chromium
Navigating google

Unhandled Exception: System.InvalidOperationException: An attempt was made to transition a task to a final state when it had already completed.
   at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
   at PuppeteerSharp.CDPSession.OnClosed()
   at PuppeteerSharp.Connection.OnClose()
   at PuppeteerSharp.Connection.Dispose()
   at PuppeteerSharp.Browser.<CloseAsync>d__48.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at PuppeteerSharp.Browser.Dispose()
   at PuppeteerSharpTest.Program.<MainAsync>d__1.MoveNext() in C:\buildir\Program.cs:line 42
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at PuppeteerSharpTest.Program.Main(String[] args) in C:\buildir\Program.cs:line 14

Versions

PuppeteerSharp - v1.0.1

Docker
Client:
 Version:      18.03.1-ce
 API version:  1.37
 Go version:   go1.9.5
 Git commit:   9ee9f40
 Built:        Thu Apr 26 07:12:48 2018
 OS/Arch:      windows/amd64
 Experimental: false
 Orchestrator: swarm

Server:
 Engine:
  Version:      18.03.1-ce
  API version:  1.37 (minimum version 1.24)
  Go version:   go1.9.5
  Git commit:   9ee9f40
  Built:        Thu Apr 26 07:21:42 2018
  OS/Arch:      windows/amd64
  Experimental: false

Dotnet
.NET Command Line Tools (2.1.200)

Product Information:
 Version:            2.1.200
 Commit SHA-1 hash:  2edba8d7f1

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.15063
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\2.1.200\

Microsoft .NET Core Shared Framework Host

  Version  : 2.0.7
  Build    : 2d61d0b043915bc948ebf98836fefe9ba942be11

Additional Information
Dockerfile
FROM microsoft/dotnet:sdk as build
WORKDIR /buildir
COPY . /buildir
RUN dotnet build
RUN dotnet publish -o app

FROM microsoft/windowsservercore
RUN @powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
RUN choco install dotnetcore -y
WORKDIR /app
COPY --from=build /buildir/app /app
ENTRYPOINT ["dotnet", "PuppeteerSharpTest.dll"]

Running in Docker is not fully supported yet, not because of Puppeteer Sharp, but because some missing dependencies Chromium needs to be able to run on a docker container.
I trying to get a Linux image as part of a side-research.
But your info shows me something we can improve.

@kblok I was able to make it work on a different machine.

@respel using docker?
If so, Could you tell me what OS you have on each machine? and also if it's 32 or 64bits.

I updated my Windows OS and now it's working on the old machine too.

Awesome!

@respel  Any guidance on how you managed to get it to work in a windows docker container? I'm getting "Failed to launch chrome" when running in docker.

@Abrissirba we are also trying to run puppeteer sharp in a windows docker container. Just started the process now. Please let us know if you find the correct configuration. We will do the same if we make it work.
We are learning how to use docker containers because we can not run chromedriver nor puppeteer sharp in Azure Web App Services. Our last bullet is browserless.io but it doesn't meet our desired performance requirements.

I'm still having issues on windows containers. I switched from using nanoserver to servercore and got passed the "Puppeteer fail to launch" but I'm now stuck on another problem. I can launch a browser and add new pages but I am stuck at goToAsync. If I for exaple go to google.com I get "Navigation failed because browser has disconnected!". I have tried about 5 urls and all but a very simple one, http://vecka.nu, throws the exception. It feels like it is a problem with the server build or that some dependencies are missing but I have no idea how to go forward.
I tried running the same program in a linux container and it worked perfectly. However, I'm not sure if we can use linux containers so my preferred choice would be to have a working windows container with puppeteer sharp

@Abrissirba I am also having this issue whereby GoToAsync fails with "Navigation failed because browser has disconnected!" inside a windows container. Did you manage to solve the problem?


BUGs in v0.1

Footprints of resistors appear to be 0201 instead of 0603
Voltage divider potentials are switched: we used to measured the voltage drop over the NTC, now we measure over the fixed resistor (easily fixed in firmware)
Maybe I2C issue (not working so far)

We received 4 PCBs, the NTC readout is wroking fine, the I2C to the R/O board is not yet working, the frequency counting needs some testing ;)

Also: when ordering the PCB, the company said that the drill information was missing in the Gerber files (which were then added by our electronicslab)

Alright, I'll work on it. Are there any other enhancements I should add? See issue #15.

Also: when ordering the PCB, the company said that the drill information was missing in the Gerber files (which were then added by our electronicslab)

Oh, sorry for that. There is indeed an option for that in the export menu. So that should be a none issue next time

Should I swap NTC and 10k so that it'll be as intended before?

Yes please

On 21 Sept 2022 at 08:54, Béla Knopp  @.***>  wrote:
Should I swap NTC and 10k so that it'll be as intended before?
—
Reply to this email directly,   view it on GitHub, or   unsubscribe.
You are receiving this because you authored the thread.Message ID:  @.***>

Hopefully I fixed those issues. For now, I did not change the connection to the I2C RJ45, as I don't know how the correct pinout is. But changing this is no biggy as just the lanes would need to be changed.

I have the feeling that the I2C bus on the PCB is not working properly. We have a BA student who exactly uses NTC readout and I2C at the same time, using a breadboard. There it works whereas it does not with the PCB. So maybe the pinout for the RJ45 is correct but I2C is generally not working. Would be good if you meet with the BA student to check the breadboard schematic

@bedakno can you comment on the status of the PCB? Maybe a summary of what bugs have been identified and fixed and what has been tested?

It is good practice to commit early & commit often, would also be nice if you could push the fixes ;)


Solution for Broken Bridges

Before jumping into Pr first comment for assign.
Problem statement : Create a function which validates whether a bridge is safe to walk on (i.e. has no gaps in it to fall through).
Probelm Link : https://edabit.com/challenge/udrQ2ckXP9cXNXiSk
Choose one Cateorgy - Easy
question category : Strings,Validation

Before submitting a PR please Check some details.

[x] fileName formet should be in camelcase
example- returnTheNextNumber.py
[x]  Choose label for Problem , example- "good first issue", "easy"
[x]  In file there should be problem statement and link to problem

/* Problem-Task : This program will add two numbers
 * Problem Link : https://edabit.com/challenge/SFzHtm63XT6EYNHWY
*/
int main() {
    int bla;
    return 0;
}

This repository is vaild for HacktoberFest2020
Read before making PR - How to contribute on Github
Good Luck,

i would like contribute

I would like to contribute

Solution provided, please review and merge: #149


Android Basics: SQL Basics

Downloading and attempting to build the project runs into an error message:
Execution failed for task ':app:kaptDebugKotlin'.

A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution
java.lang.reflect.InvocationTargetException (no error message)

I don't have the experience to troubleshoot it seems. I've tried googling and haven't been able to find the cause of the error unfortunately

Ah - just saw the previous issue and downgraded the room version with success.

@matttzzz
Thank you for reaching out to us and informing that the issue is fixed.
Happy coding!


Update Workflows: Remove BT, Make Conditional

Changes our workflows to only run when affected code has changed.
Always Run (very fast):

Validate
i18n

Run on JS changes:

test-js

Run on ios changes:

test-ios

Run on Push to develop:

build
e2e test (takes a long time)

Would appreciate feedback on this! these are up in the air, I think we're spending a lot of timing waiting on tests that don't need to run, so this should be more efficient

This looks great.
It is worth noting that it is possible to break the ios build by only changing js code via react native things. For example if you add or remove a library that has a native dependency that doesnt work for whatever reason. Personally, I think its a risk worth taking in making ci more useful as it would be pretty obviously broken during deploy builds and running locally.

Good point -- didn't mean to imply this would give us equal confidence. All the checks on Push are kept here, so I think we'll still be able to catch those regressions fairly quickly