text:
ViewModel POC

Description
This PR demonstrates how VM can be used and scoped to a Node using reflection API.
By design VM is stored in a ViewModelStore class and lives as long as activity lives.
The desired behaviour is the following:

VM is created when Node is created
VM is persistent when Node is moved in DESTROY state and Activity is changing configuration
VM is destroyed when Node is moved in DESTROY state and Activity IS NOT changing configuration

This behaviour can not be achieved using public API as it's not possible to clear only one VM from ViewModelStore. It has only one public method – ViewModelStore.clear()which clears allVMs.
I the meantime I'm exploring alternative solutions.
https://user-images.githubusercontent.com/5773436/207447633-65f79414-2313-4d7b-b453-464c4e51de30.mp4
Check list

[ ] I have updated CHANGELOG.md if required.
[ ] I have updated documentation if required.

IMHO it should be implemented in the same way as in Fragment – each Node should be ViewModelStoreOwner with own ViewModelStore. Then throw everything into single FragmentManagerViewModel-like ViewModel that we will register once in activity integration point.
Anyway in both variants we have another problem – we change DI flow. We usually pass all dependencies into Node ready to use, but here we have to instantiate ViewModel inside Node, comparing to everything else that is done outside. Not like a bad thing, something that I want to come to later.

IMHO it should be implemented in the same way as in Fragment – each Node should be ViewModelStoreOwner with own ViewModelStore. Then throw everything into single FragmentManagerViewModel-like ViewModel that we will register once in activity integration point.
Anyway in both variants we have another problem – we change DI flow. We usually pass all dependencies into Node ready to use, but here we have to instantiate ViewModel inside Node, comparing to everything else that is done outside. Not like a bad thing, something that I want to come to later.

This is what we're doing internally right now. I've published a sample demonstrating this

IMHO it should be implemented in the same way as in Fragment – each Node should be ViewModelStoreOwner with own ViewModelStore. Then throw everything into single FragmentManagerViewModel-like ViewModel that we will register once in activity integration point.
Anyway in both variants we have another problem – we change DI flow. We usually pass all dependencies into Node ready to use, but here we have to instantiate ViewModel inside Node, comparing to everything else that is done outside. Not like a bad thing, something that I want to come to later.

yes, that's what I was gonna do as a second option.

Not like a bad thing, something that I want to come to later.

typical issue is that we'll end having x2 instances of dependencies used in VM if they passed to the constructor.

The standard lifecycle viewModel functions for compose delegate to the composition local LocalViewModelStoreOwner.   Wouldn't it just be a matter of coming up with a proper implementation of this which was aware of the navigation graph, and setting up the composition local for each node?  (Yes, i know i'm making the implementation seem simpler than it probably would be)

The standard lifecycle viewModel functions for compose delegate to the composition local LocalViewModelStoreOwner. Wouldn't it just be a matter of coming up with a proper implementation of this which was aware of the navigation graph, and setting up the composition local for each node? (Yes, i know i'm making the implementation seem simpler than it probably would be)
I honestly wonder how compose navigation achieves this.
Update: I took a look and it seems like NavBackStackEntry itself implements several interfaces including the LifecycleOwner and ViewModelStoreOwner. So what i assume happens is that as each backstack entry is created, a completely new store is instantiated and registered as the local store owner. And when it's popped off, it is completely cleared. This makes a ton of sense to me obviously, and I think it could honestly be done in this library as well.

Hi @mattinger we're considering the same approach in this draft pr but the final decision whether to make it as a part of framework hasn't been made yet.
We recently introduced [RetainedInstanceStore](https://github.com/bumble-tech/appyx/pull/361) which allow you to implement ViewModel support the way you described right now

authors: CherryPerry KovalevAndrey RationalRank mattinger

repo: bumble-tech/appyx


text:
fixed __extract_history()

fixed __extract_history() method in deutschland/handelsregister/registrations.py  #37

The newest version of handelsregister is currenlty in this repo and will eventually be merged back at some point. For not I close this MR.

source: gharchive/pull-request

authors: kiranmusze wirthual

repo: bundesAPI/deutschland

license_type: permissive

license_source: github-api


text:
`require': cannot load such file -- ffi (LoadError) when trying to start rails console

Full stack trace:
/Users/galharth/.rvm/gems/ruby-2.3.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `require': cannot load such file -- ffi (LoadError)
	from /Users/galharth/.rvm/gems/ruby-2.3.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `block in require'
	from /Users/galharth/.rvm/gems/ruby-2.3.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:240:in `load_dependency'
	from /Users/galharth/.rvm/gems/ruby-2.3.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `require'
	from /Users/galharth/.rvm/gems/ruby-2.3.0/gems/sys-proctable-1.1.1-universal-darwin/lib/darwin/sys/proctable.rb:2:in `<top (required)>'
	from /Users/galharth/.rvm/gems/ruby-2.3.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `require'
	from /Users/galharth/.rvm/gems/ruby-2.3.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `block in require'
	from /Users/galharth/.rvm/gems/ruby-2.3.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:240:in `load_dependency'
	from /Users/galharth/.rvm/gems/ruby-2.3.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `require'
	from /Users/galharth/.rvm/gems/ruby-2.3.0/gems/sys-proctable-1.1.1-universal-darwin/lib/sys-proctable.rb:1:in `<top (required)>'
	from /Users/galharth/.rvm/gems/ruby-2.3.0/gems/bundler-1.10.6/lib/bundler/runtime.rb:76:in `require'
	from /Users/galharth/.rvm/gems/ruby-2.3.0/gems/bundler-1.10.6/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
	from /Users/galharth/.rvm/gems/ruby-2.3.0/gems/bundler-1.10.6/lib/bundler/runtime.rb:72:in `each'
	from /Users/galharth/.rvm/gems/ruby-2.3.0/gems/bundler-1.10.6/lib/bundler/runtime.rb:72:in `block in require'
	from /Users/galharth/.rvm/gems/ruby-2.3.0/gems/bundler-1.10.6/lib/bundler/runtime.rb:61:in `each'
	from /Users/galharth/.rvm/gems/ruby-2.3.0/gems/bundler-1.10.6/lib/bundler/runtime.rb:61:in `require'
	from /Users/galharth/.rvm/gems/ruby-2.3.0/gems/bundler-1.10.6/lib/bundler.rb:134:in `require'
	from /Users/galharth/Documents/productbattle/config/application.rb:7:in `<top (required)>'
	from /Users/galharth/.rvm/gems/ruby-2.3.0/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:141:in `require'
	from /Users/galharth/.rvm/gems/ruby-2.3.0/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:141:in `require_application_and_environment!'
	from /Users/galharth/.rvm/gems/ruby-2.3.0/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:67:in `console'
	from /Users/galharth/.rvm/gems/ruby-2.3.0/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
	from /Users/galharth/.rvm/gems/ruby-2.3.0/gems/railties-4.2.5/lib/rails/commands.rb:17:in `<top (required)>'
	from bin/rails:4:in `require'
	from bin/rails:4:in `<main>'

Rails version: 4.2.5
Ruby version: 2.3.0
Bundler version: 1.10.6
OSX: El Capitan (Co-worker using windows)

Can you verify that your Ruby install includes ffi? Ruby -rffi-e 'puts FFI'

Solved it by adding by running gem install ffi --platform=ruby and adding gem 'ffi' to my gemfile

source: gharchive/issue

authors: galharth segiddins

repo: bundler/bundler

license: MIT


text:
Switch autoload to require source in plugin/api

Should not use autoload :Source, "bundler/plugin/api/source" in plugin/api as this breaks sdoc, fastlane with this error:
# gems/bundler-1.14.3/lib/bundler/rubygems_ext.rb:45:in `full_gem_path': uninitialized constant Bundler::Plugin::API::Source (NameError)

Thank you for merging in and putting out new gem!

This is a performance regression. Please add a test for the issue this is fixing and we'll try and come up with another fix.

Hi Sam,
This is happening at the basic gem loading, and as in spite of how long I've been doing RoR, I have never had to write a test at that low level, particularly when this appears to be a very interdependent case with fastlane or sdoc (I'm doing the latter).
It appears that upon loading the bundler gem, specifically when running from sdoc, we're hitting the line in
bundler-1.14.3/lib/bundler/rubygems_ext.rb:45
if source.respond_to?(:path) || source.is_a?(Bundler::Plugin::API::Source)

I did a stack trace to see who/how it was being called, and found that interestingly, that line is being called twice, and the first time it is being called, the Source class is defined, but not in the second one.
I hope this helps in identifying the source of the problem:
#***************************************************
# immediately after calling autoload inside api.rb when api.rb is loaded, Source is defined.
#***************************************************
lib/bundler/plugin/api.rb:27 defined?(Bundler::Plugin::API::Source): constant

#***************************************************
# the first time around in rubygems_ext.rb#full_require_paths, loading api.rb, Source is defined
#***************************************************
lib/bundler/rubygems_ext.rb:45 defined?(Bundler::Plugin::API::Source): constant
.rvm/rubies/ruby-2.0.0-p648/lib/ruby/site_ruby/2.0.0/rubygems/basic_specification.rb:144:in `block in full_require_paths'
.rvm/rubies/ruby-2.0.0-p648/lib/ruby/site_ruby/2.0.0/rubygems/basic_specification.rb:143:in `map'
.rvm/rubies/ruby-2.0.0-p648/lib/ruby/site_ruby/2.0.0/rubygems/basic_specification.rb:143:in `full_require_paths'
.rvm/rubies/ruby-2.0.0-p648/lib/ruby/site_ruby/2.0.0/rubygems/specification.rb:1370:in `add_self_to_load_path'
.rvm/rubies/ruby-2.0.0-p648/lib/ruby/site_ruby/2.0.0/rubygems/specification.rb:1283:in `activate'
.rvm/rubies/ruby-2.0.0-p648/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_gem.rb:67:in `block in gem'
.rvm/rubies/ruby-2.0.0-p648/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_gem.rb:66:in `synchronize'
.rvm/rubies/ruby-2.0.0-p648/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_gem.rb:66:in `gem'
.rvm/gems/ruby-2.0.0-p648/bin/sdoc:22:in `<main>'
.rvm/gems/ruby-2.0.0-p648/bin/ruby_executable_hooks:15:in `eval'
.rvm/gems/ruby-2.0.0-p648/bin/ruby_executable_hooks:15:in `<main>'

#***************************************************
# second time around in rubygems_ext.rb#full_require_paths when next loading the api/source.rb file, Source is not defined, which is puzzling because i've confirmed Source is in the Api namespace, above.
#***************************************************
lib/bundler/rubygems_ext.rb:45 defined?(Bundler::Plugin::API::Source): nil
.rvm/rubies/ruby-2.0.0-p648/lib/ruby/site_ruby/2.0.0/rubygems/basic_specification.rb:144:in `block in full_require_paths'
.rvm/rubies/ruby-2.0.0-p648/lib/ruby/site_ruby/2.0.0/rubygems/basic_specification.rb:143:in `map'
.rvm/rubies/ruby-2.0.0-p648/lib/ruby/site_ruby/2.0.0/rubygems/basic_specification.rb:143:in `full_require_paths'
.rvm/rubies/ruby-2.0.0-p648/lib/ruby/site_ruby/2.0.0/rubygems/basic_specification.rb:76:in `contains_requirable_file?'
.rvm/rubies/ruby-2.0.0-p648/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:64:in `block in require'
.rvm/rubies/ruby-2.0.0-p648/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:63:in `each'
.rvm/rubies/ruby-2.0.0-p648/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:63:in `find'
.rvm/rubies/ruby-2.0.0-p648/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:63:in `require'
.rvm/gems/ruby-2.0.0-p648/gems/bundler-1.14.3/lib/bundler/plugin/api/source.rb:2:in `<top (required)>'
.rvm/gems/ruby-2.0.0-p648/gems/bundler-1.14.3/lib/bundler/rubygems_ext.rb:47:in `full_gem_path'
.rvm/rubies/ruby-2.0.0-p648/lib/ruby/site_ruby/2.0.0/rubygems/basic_specification.rb:144:in `block in full_require_paths'
.rvm/rubies/ruby-2.0.0-p648/lib/ruby/site_ruby/2.0.0/rubygems/basic_specification.rb:143:in `map'
.rvm/rubies/ruby-2.0.0-p648/lib/ruby/site_ruby/2.0.0/rubygems/basic_specification.rb:143:in `full_require_paths'
.rvm/rubies/ruby-2.0.0-p648/lib/ruby/site_ruby/2.0.0/rubygems/specification.rb:1370:in `add_self_to_load_path'
.rvm/rubies/ruby-2.0.0-p648/lib/ruby/site_ruby/2.0.0/rubygems/specification.rb:1283:in `activate'
.rvm/rubies/ruby-2.0.0-p648/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_gem.rb:67:in `block in gem'
.rvm/rubies/ruby-2.0.0-p648/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_gem.rb:66:in `synchronize'
.rvm/rubies/ruby-2.0.0-p648/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_gem.rb:66:in `gem'
.rvm/gems/ruby-2.0.0-p648/bin/sdoc:22:in `<main>'

How do I reproduce this issue?

install the sdoc gem, and point it at a folder with ruby files in it:
sdoc PATH_TO_SOURCE_FOLDER -op PATH_TO_OUTPUT_FOLDER.

I'm unable to replicate this error. Can you provide more details of your environment with bundle env
› ruby -v
ruby 2.0.0p648 (2015-12-16 revision 53162) [x86_64-darwin16.5.0]
› bundler -v
Bundler version 1.14.3
› sdoc bundler -po example
invalid options: -p (with files)
(invalid options are ignored)
Parsing sources...
100% [61/61]  bundler/lib/bundler

Generating SDoc format into /Users/colby/Desktop/Projects/example...

Files:       61

Classes:     42 ( 1 undocumented)
Modules:     24 ( 7 undocumented)
Constants:   53 (11 undocumented)
Attributes:  63 (10 undocumented)
Methods:    342 (61 undocumented)

Total:      524 (90 undocumented)
 82.82% documented

Elapsed: 3.4s

Hi,
Does this help? Looks like we're on the same env, roughly...
Bundler   1.14.3
Rubygems  2.4.8
Ruby      2.0.0p648 (2015-12-16 revision 53162) [x86_64-darwin14.3.0]
GEM_HOME  /Users/btsai/.rvm/gems/ruby-2.0.0-p648
GEM_PATH  /Users/btsai/.rvm/gems/ruby-2.0.0-p648:/Users/btsai/.rvm/gems/ruby-2.0.0-p648@global
RVM       1.27.0 (latest)
Git       2.6.4
Platform  x86_64-darwin-14
rubygems-bundler (1.4.4)

Can you update your version of rubygems gem update --system and try again.

thank you for the suggestion - i'll have to find a machine that i can reset with a fresh install - i've found that updating rubygems often has a large trickle-on effect.
cheers

I can't reproduce this on either RubyGems 2.6.10 or 2.4.8

ping @btsai

This should no longer be required as of 1.14.6

authors: btsai colby-swandale segiddins


text:
Cannot read property 'cron' of undefined

in react native app,this error happened ,is there some one help solve this error

are you solved it?

repo: bunkat/later

license: mit

license_source: bigquery


text:
🛑 doubledouble is down

In 15063b8, doubledouble (https://doubledouble.top/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: doubledouble is back up in 7efe7f7 after 16 minutes.


text:
Integration tests of olric-cli package fails due to wrong configuration

As the title explains, the tests are constantly failing. The solution is the following:
mc := memberlist.DefaultLocalConfig()
mc.BindPort = 0
...
cfg.MemberlistConfig =  mc

Done d1b48234ed1881bca39664bd4cf0390bc9e72020

repo: buraksezer/olric


text:
Not work for hex string @"#RRGGBB"

The result is black color

can you post the string here.

Sorry, I forgot the string


text:
Fixed Adam initialisation

Fixed Adam initialisation
Checklist

[X] Confirm that run-checks.sh has been executed.

Related Issues/PRs
https://github.com/burn-rs/burn/issues/614
https://github.com/burn-rs/burn/pull/566 <-- would suggest to merge this first
Changes
Changed the Adam test to have higher precision. See the related issue for more details. Updated AdaptiveMomentumState initialisation  (inside transform) to have $t_0 = 0$.
Testing
See related issue

@wdoppenberg Could you merge main, the github diff is quite hard to follow 😅.

Apologies, will do so now

repo: burn-rs/burn


text:
Compliance fixes

#10 fixed a lot of the remaning compliance tests, but there are still 30 left that need to be fixed. This PR aims to fix them all.

Now there are only 5 tests left, and they all have to do with how wildcards are handled.
I'm not too happy about the implementation of the slice operator, it looks really messy, so if someone wants to take a look I'd be grateful.

Now there's only two cases left, but I'm struggling with wether or not projection is properly implemented. The spec is not very clear on how projections work, and I can't really wrap my head around the remaning cases.

I'm not too happy about the implementation of the slice operator, it looks really messy, so if someone wants to take a look I'd be grateful.

I took a stab at it and pushed to the branch. Feel free to discard/improve in any way you like. :)

Now there's only two cases left, but I'm struggling with wether or not projection is properly implemented.

I believe that I understand how the JMESPath specification says it should work, but I don't really understand how the fork/join start-/stop-projection nodes are supposed to work, so I'm not sure I can help with the implementation aspect of things.
The specification says the following for list wildcards (and similarly for hash wildcards) (emphasis mine):

The [*] syntax (referred to as a list wildcard expression) will return all the elements in a list. Any subsequent expressions will be evaluated against each individual element.

I'm not sure that quotation helps you, but it helped me. An alternative way to explain this, would be to rewrite the expression using map and |. If I'm not mistaken, I think it could be written like this:
*.<expression>  becomes  * | map(&<expression>, @)
*.*.foo  becomes  * | map(&* | map (&foo, @), @)

Does that help, or just further confuse things?

It's not just [*] and * that start a projection, the flatten operator and slicing does too (which is not mentioned in the spec). Projections also have to deal with null differently from map.
The idea of the StartProjectionNode thing is to act as more or less a map call without the argument type checking and with special null handling. I just don't think I've gotten it right, and I've spread the logic around. For some reason I've put the projection handling code in Node and not in StartProjectionNode. Maybe what I should start with is moving the logic to where it really belongs.

The way I've built up the AST is so that the last-most operation is the root of the tree (if you can call it a tree, it doesn't really branch), e.g. foo.bar | baz is Property("baz", Pipe(Property("bar", Property("foo", INPUT)))). Each operation has a reference to the operation that comes before it in the expression, this is called the "source" operation in the code. This structure is easy to build during parsing.
When the expression is evaluated the last operation is given the input, and it passes that input its source, getting the result back, and then performs its own operation. In other words, each operation only sees the result of all previous operations. Had it not been for projections this would have worked well. Pipe, index, property access, etc. become very natural.
Projections probably work best the other way around, like how the map function works, by looping over the elements and passing them one by one to the rest of the expression. At least until you have to deal with a pipe. It's easy to see how *.foo can be transformed to * | map(&:foo, @), but *.foo | bar should not become * | map(&(foo | bar), @), but * | map(&foo, @) | bar – so the AST you build isn't the opposite of what we have now, it's somewhere in between.
Does this make sense?

(if you can call it a tree, it doesn't really branch)

With a stack (or some registers) it seems obvious that you can linearize the AST for evaluation, but that seems like cumbersome format to work with, as pattern matching for optimizations seems like it would be more difficult.
For example, how do you deal with something like merge(foo.bar, max_by(&boo, baz), qux[1:10]). At the very least, a linearization would have to decide up front what order to evaluate the arguments, which at the very least makes the original form of the query somewhat difficult to trace.

foo.bar | baz is Property("baz", Pipe(Property("bar", Property("foo", INPUT))))

It seems Pipe would be more relevant in a ParseTree, and not in an AST? I see that it carries information for the outer baz property node to act no the outer node, rather than an internal node (if there had been a projection), but the pipe itself doesn't really do anything, or?

At least until you have to deal with a pipe. It's easy to see how *.foo can be transformed to * | map(&:foo, @), but *.foo | bar should not become * | map(&(foo | bar), @), but * | map(&foo, @) | bar

I don't see why that example complicates things. As far as I understand, *.foo | bar is equivalent to (*.foo) | bar (since . hash higher precedence). Technically, the grammar is written in such a way that *.(foo | bar) is not a legal way to parse the expression, rather than specifying the precedence for ..
While you could definitely evaluate the expression from the inside out, but that basically requires a Property node for foo in *.*.foo to know that it is two levels deep, so that it knows to modify the values two levels down in the result returned from *.*. Building the tree from left-to-right, seems like it should make evaluation of all 'projections' simpler, while making the other operations about as simple as before, but I might be missing something.

There is no Pipe, I should have written StopProjection, which is the operation that is inserted when a pipe is encountered.

Function calls is the only place now, I think, where the AST branches, but I think what I'm taking home from this discussion is that I need to handle projections in the parser/compiler and think of them more like how I handle functions with expression arguments.
In the current implementation the expression foo.*.*.bar | baz becomes:
Property("baz",
  StopProjection(
    Property("bar",
      StartProjection(
        FlattenObject(
          StartProjection(
            FlattenObject(
              Property("foo"))))))))

But this would probably work better:
Property("baz",
  Projection(
    Projection(
      Property("bar"),
      FlattenObject()),
    FlattenObject(
      Property("foo"))))

Perhaps this doesn't make any sense outside my head, but in essence it means that projections are rewritten so that they take the operations up until the next pipe as an argument, more or less like how a function call with & before one of the arguments will take that expression as argument.
It will take some tweaking of the parser/compiler, but it should work.

I will finalize this branch and start on a new PR for the projection fixes.

I guess I still don't understand what a projection is, even with the tree view. I guess my fundamental problem is that I think it is easier to think of the expression as pushing from left to right, rather than pulling from right to left. Thus, I would have expected the tree from foo.*.*.bar | baz to becomes something along the lines of:
Sequence(
  Property("foo"),
  ObjectWildcard(ObjectWildcard(Property("bar"))),
  Property("baz"))

Technically, I guess it could be two sequencing operations, (one for the the first . and one for the |), but main point here is that the evaluation structure is made clear. Specifically, the object structure reflects that the second ObjectWildcard is evaluated in the context of the first ObjectWildcard.

The reason for the projection node/operation in my examples is to separate the projection operation from the operation that starts a projection. There are multiple operations that start projections, array wildcard, object wildcard, flatten array, slice, and filter (I think those are all), and besides array wildcard they do something that doesn't have anything to do with projection. Slice extracts a portion of an array and then the expression up until the next pipe is executed on each element in the slice (i.e. is projected on the slice); flatten flattens an array and then the rest of the expression up until the next pipe is executed on each element in the flattened array; etc. There are two operations and therefore I think having two operations in the AST makes it easier to reason about it.
In contrast ObjectWildcard(ObjectWildcard(Property("bar"))) hides the projection. Implementation-wise you could of course make ObjectWildcard subclass a Projection base class to handle it, but at least when talking about it I think it helps to separate the two operations.

You said it before, but it didn't really sink in before. I just didn't think of Projection as such an important abstraction, as it is essentially just a map followed by a null-filter. But sure, ObjectWildcard(x) could be replaced by Projection(ObjectWildcard(),x) in my example to separate the generator from the map-filter.
With that in mind, I think I understand at least the tree view, the expression Projection(x, y) means pull values from y and feed them into x, building up the projected result while we go. I still struggle a bit to understand how the "input" is fed into the tree, but I guess all the leaves of the tree pull from the input, but while running in a projection, the "current input" would have to be replaced by the somehow, so that the FlattenObject() pulls values generated by the outer Projection, rather than from the user input.
In my mind it seems more straightforward to push the input into the root, and let each node decide what values the nodes below it would operate on, but I guess that would be a nontrivial change (and there might be other downsides to doing it like that).

It would be nontrivial to change the direction of the tree, and I also think it's easier to build the expression tree in the parser this way, but I might be wrong.
I think it wouldn't be a problem to get projections working properly if I just manage to build the tree structure I have in my head. What I'm struggling with now is trying to build that tree.

authors: grddev iconara

repo: burtcorp/jmespath-java


text:
見出しレベル1での章立て

以下に変更を提案：

第一章 宇宙農業を考える
第二章 初期構想と問題点
第3章 宇宙で何を栽培するか
第4章 栽培モジュールの改良
第5章 プラント設計と収支
第6章 宇宙レシピ

実際に地上試験した内容は別の本に収録でどうでしょうか。

https://github.com/busyoucow/spacefarm/commit/a538c822e1ae5fec6a2d3ddb7764d30148561633
で修正しました

repo: busyoucow/spacefarm


text:
[bug] fixed valid-jsdoc rule (closes #220)

The start index of the comment was not taking into account
whitespace before the start of the comment.

Looks good 👍 . Thanks for the fix.

authors: jmlopez-rod reduckted

repo: buzinas/tslint-eslint-rules


text:
MultiGrid doesn't re-render when data changed

When using MultiGrid with non-zero fixedColumnCount, the content of the fixed column doesn't get updated when needed. For example, when using with ArrowKeyStepper it doesn't display focused cell. At the same time, the cell gets focused in the "main" grid.
Reproducible case
https://codesandbox.io/s/jp1rlqop9y

see this issue https://github.com/bvaughn/react-virtualized/issues/1044

@okonet do you mind clarifying how you are navigating the multigrid?
It seemed to work for me when using arrow keys in the main grid

Navigation works but the state isn’t displayed on any grid besides the main one.

Focus is just one corner case here. The grid won’t be updated (besides the main area) if data has changed as well. My example is just an illustration of the issue not a concrete issue with keyboard or focus.

I'm not sure why you decided to add enhancement and question labels where it seems to be a bug. There are attempts to fix it like @MarkBarbieri mentioned. It seems to me that the rendering is over-optimized to only re-render when scroll position / positioning has changed and doesn't take data changes into account (it seems): https://github.com/bvaughn/react-virtualized/blob/master/source/MultiGrid/MultiGrid.js#L419 (I might be wrong about this)

oh my bad. I didn't read the title of the issue and misunderstood the question.
We don't rerender on content change because in order to check if the content changed, we would have to call every rowRenderer etc. That is why we expose the forceUpdateGrids methods. In order for your grid to have to updated data, you'd have to call the instance forceUpdateGrids function

That's how I work around it now, but it feel like it belongs to the MultiGrid implementation since there is an assumption it should work the same as a single grid. No?

We also don't do content checks for Grid. If it is rerendering then its probably due to the parent component rerendering and also rerendering the Grid by chance since by default react will rerender on state or prop change.
Hope that helps!

I think there is a better way than manually using forceUpdateGrids.
What is happening here is cell rendering control is being deferred to MultiGrid. MultiGrid and Grid are both PureComponents, so they will only update when the props actually change value/reference.
The component consuming MultiGrid probably has other props that its cells should update for, but MultiGrid doesn't necessarily know that, it only updates when the props it has change.
One easy fix is to just spread the props from the component consuming MultiGrid. It's definitely confusing, because in order to do this, MultiGrid will be passed props that it doesn't need. But since the cell rendering control is being deferred, we have to actually ensure that MultiGrid will actually update when we want it to.
For example:
class MyGridComponent extends PureComponent {
  cellRenderer = ({ key, rowIndex, columnIndex }) => (
    <div key={key} className={this.props.className}>
      {`${rowIndex}, ${columnIndex}`}
    </div>
  )

  render = () => (
    <MultiGrid
      cellRenderer={this.cellRenderer}
      {/** ...other MultiGrid props... */}
  )
}

In this example, let's say the props.className changed for MyGridComponent. The expected behavior is that each cell will get a new className. But className is not passed to MultiGrid, so it will not update (because it's a PureComponent) and it won't re-render the cells.
If we change render to pass the props, then the cells will be updated as expected:
  render = () => (
    <MultiGrid
      {...this.props}{/** Force MultiGrid to update when MyGridComponent updates */
      cellRenderer={this.cellRenderer}
      {/** ...other MultiGrid props... */}
  )

how would you do this for a functional component using hooks, or is this not possible with react pure components?
i've made a virtualized Grid with hooks and functional components but it won't re-render with state change.

authors: MarkBarbieri groganmatt12 okonet rhinoceraptor wuweiweiwu

repo: bvaughn/react-virtualized


text:
🛑 DSR Sunrise Towers 2 is down

In eaa5b6b, DSR Sunrise Towers 2 (https://cloud.tymly.in/status/1027) was down:

HTTP code: 521
Response time: 220 ms

Resolved: DSR Sunrise Towers 2 is back up in c2834c5.

repo: bvenkysubbu/tymlymonitor


text:
🛑 Whitestone Landmark is down

In a7e1308, Whitestone Landmark (https://cloud.tymly.in/status/1095) was down:

HTTP code: 521
Response time: 20233 ms

Resolved: Whitestone Landmark is back up in b3ccab8.


text:
🛑 Sraddha Whitecliff 2 is down

In 9fefda7, Sraddha Whitecliff 2 (https://cloud.tymly.in/status/1034) was down:

HTTP code: 521
Response time: 20566 ms

Resolved: Sraddha Whitecliff 2 is back up in b9cf281.


text:
🛑 PSR Aster 1 is down

In 68ac80c, PSR Aster 1 (https://cloud.tymly.in/status/1059) was down:

HTTP code: 521
Response time: 236 ms

Resolved: PSR Aster 1 is back up in bae1282.


text:
🛑 Sai Gardens Community Hall is down

In a22bf3a, Sai Gardens Community Hall (https://cloud.tymly.in/status/1073) was down:

HTTP code: 521
Response time: 227 ms

Resolved: Sai Gardens Community Hall is back up in 99ffc11.


text:
🛑 PSR Aster 1 is down

In e3df234, PSR Aster 1 (https://cloud.tymly.in/status/1059) was down:

HTTP code: 521
Response time: 20237 ms

Resolved: PSR Aster 1 is back up in 65f467d.


text:
🛑 Sunshine Silicon Citi 2 is down

In 3bf018a, Sunshine Silicon Citi 2 (https://cloud.tymly.in/status/1139) was down:

HTTP code: 521
Response time: 232 ms

Resolved: Sunshine Silicon Citi 2 is back up in 81b1aa5.


text:
🛑 SMD Altezz Clubhouse is down

In 4c27eba, SMD Altezz Clubhouse (https://cloud.tymly.in/status/1178) was down:

HTTP code: 521
Response time: 233 ms

Resolved: SMD Altezz Clubhouse is back up in 29f0531.


text:
🛑 Brigade Cosmopolis Clubhouse Entrance is down

In da6315c, Brigade Cosmopolis Clubhouse Entrance (https://cloud.tymly.in/status/1141) was down:

HTTP code: 521
Response time: 224 ms

Resolved: Brigade Cosmopolis Clubhouse Entrance is back up in 27f8f29.


text:
🛑 White Breeze 1 is down

In 5fd3f97, White Breeze 1 (https://cloud.tymly.in/status/1096) was down:

HTTP code: 521
Response time: 20230 ms

Resolved: White Breeze 1 is back up in eedea87.


text:
🛑 Mahaveer Varna B3 is down

In 8630188, Mahaveer Varna B3 (https://cloud.tymly.in/status/1086) was down:

HTTP code: 521
Response time: 229 ms

Resolved: Mahaveer Varna B3 is back up in e31c488.


text:
🛑 VBHC Serene Town D Block is down

In 863a88e, VBHC Serene Town D Block (https://cloud.tymly.in/status/1131) was down:

HTTP code: 521
Response time: 20250 ms

Resolved: VBHC Serene Town D Block is back up in cb5d27a.


text:
🛑 Trifecta Esplanade C Block is down

In 70401c4, Trifecta Esplanade C Block (https://cloud.tymly.in/status/1155) was down:

HTTP code: 521
Response time: 231 ms

Resolved: Trifecta Esplanade C Block is back up in bcdf50c.


text:
🛑 Trifecta Esplanade C Block is down

In d41ccce, Trifecta Esplanade C Block (https://cloud.tymly.in/status/1155) was down:

HTTP code: 521
Response time: 255 ms

Resolved: Trifecta Esplanade C Block is back up in 2683d56.


text:
🛑 Prakruthi Villas Sarjapura is down

In 1aba113, Prakruthi Villas Sarjapura (https://cloud.tymly.in/status/1058) was down:

HTTP code: 521
Response time: 227 ms

Resolved: Prakruthi Villas Sarjapura is back up in d4f6509.


text:
🛑 Brigade Cosmopolis Clubhouse End is down

In dfec4fe, Brigade Cosmopolis Clubhouse End (https://cloud.tymly.in/status/1145) was down:

HTTP code: 521
Response time: 238 ms

Resolved: Brigade Cosmopolis Clubhouse End is back up in a606a45.


text:
🛑 Trifecta Esplanade P Block is down

In 2023559, Trifecta Esplanade P Block (https://cloud.tymly.in/status/1017) was down:

HTTP code: 521
Response time: 214 ms

Resolved: Trifecta Esplanade P Block is back up in c7a2419.


text:
🛑 SNR Silver Ripples is down

In 445f394, SNR Silver Ripples (https://cloud.tymly.in/status/1039) was down:

HTTP code: 521
Response time: 223 ms

Resolved: SNR Silver Ripples is back up in 13383cb.


text:
🛑 Nitesh Forest Hills Block B is down

In d456b18, Nitesh Forest Hills Block B (https://cloud.tymly.in/status/1051) was down:

HTTP code: 521
Response time: 239 ms

Resolved: Nitesh Forest Hills Block B is back up in a9d6eda.


text:
🛑 Nitesh Forest Hills Block A is down

In 2a49ac5, Nitesh Forest Hills Block A (https://cloud.tymly.in/status/1052) was down:

HTTP code: 521
Response time: 20239 ms

Resolved: Nitesh Forest Hills Block A is back up in fbd376b.


text:
🛑 SBB Touchstone A1 Block is down

In a12d883, SBB Touchstone A1 Block (https://cloud.tymly.in/status/1186) was down:

HTTP code: 521
Response time: 20229 ms

Resolved: SBB Touchstone A1 Block is back up in eb21061.


text:
🛑 Trifecta Esplanade P Block is down

In 3c19f69, Trifecta Esplanade P Block (https://cloud.tymly.in/status/1017) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Trifecta Esplanade P Block is back up in 3e86687.


text:
🛑 VBHC Serene Town D Block is down

In b58602a, VBHC Serene Town D Block (https://cloud.tymly.in/status/1131) was down:

HTTP code: 521
Response time: 234 ms

Resolved: VBHC Serene Town D Block is back up in 6732b12.


text:
🛑 Trifecta Esplanade Clubhouse is down

In a393440, Trifecta Esplanade Clubhouse (https://cloud.tymly.in/status/1167) was down:

HTTP code: 521
Response time: 20247 ms

Resolved: Trifecta Esplanade Clubhouse is back up in 8d9eb01.


text:
🛑 Ruchira Lilium v2 is down

In 0063809, Ruchira Lilium v2 (https://cloud.tymly.in/status/1048) was down:

HTTP code: 521
Response time: 229 ms

Resolved: Ruchira Lilium v2 is back up in 7cf9f86.


text:
🛑 DSR Sunrise Towers 2 is down

In b7b2d5c, DSR Sunrise Towers 2 (https://cloud.tymly.in/status/1027) was down:

HTTP code: 521
Response time: 20263 ms

Resolved: DSR Sunrise Towers 2 is back up in 7a8c9ff after 22 minutes.


text:
🛑 SMD Altezz Clubhouse is down

In a281da1, SMD Altezz Clubhouse (https://cloud.tymly.in/status/1178) was down:

HTTP code: 521
Response time: 20260 ms

Resolved: SMD Altezz Clubhouse is back up in 164d046 after 7 days, 6 hours, 9 minutes.


text:
🛑 VBHC Serene Town C Block is down

In 9bb0a51, VBHC Serene Town C Block (https://cloud.tymly.in/status/1132) was down:

HTTP code: 521
Response time: 21167 ms

Resolved: VBHC Serene Town C Block is back up in d3c023a.


text:
🛑 PSR Aster 1 is down

In 8999151, PSR Aster 1 (https://cloud.tymly.in/status/1059) was down:

HTTP code: 521
Response time: 20225 ms

Resolved: PSR Aster 1 is back up in b205518.


text:
H61A0 / Lan not supported (?)

Just upgraded to 6.0, and enabled LAN Control inside my Govee APP, but it seems i can't control it locally.
Console says
[Govee] [B6:BE:D4:AD:FC:1B:F6:90] is not currently supported, do create a Github issue with the following info:
{"device":"B6:BE:D4:AD:FC:1B:F6:90","deviceName":"B6:BE:D4:AD:FC:1B:F6:90","isLANDevice":true}

remove the ip address in your config and it works. I think there is a bug in version 6 that occurs if you add an IP address

@JanLp do you get the same issue if you manually add an IP?
I assume neither of you are removing govee credentials from the config?

Yes I have ;) I am not aware in which beta the bug occurred. But it has worked as it should, without errors.

I assume neither of you are removing govee credentials from the config?

Nope :)

@JanLp can we message on discord?
https://discord.gg/cMGhNtZ3tW

Did upgraded to beta and local control works !
I removed cloud control credentials from config (just to be sure).
It's way faster and way better like that.
I just have a weird issue where light instantly goes to 0% in the Home app after setting any %, in real life it stays at the defined percentage though. Couldn't debug why.

Hmm i'll have to re-add my credentials (anyway I don't think it'll be able to control it since my firewall block access to internet for my IoT devices)

Adding credentials doesn't change a thing, it turn it off instantly. [[ but the light does stay on ! ]]

I assume neither of you are removing govee credentials from the config?

Nope :)

Sorry ... I misunderstood the question.
I have also removed the cloud control credentials from config

This 'offline as off' option crossed my mind. I may need to change this logic for lan-only devices.

This 'offline as off' option crossed my mind. I may need to change this logic for lan-only devices.

🙂👍🏻

Did upgraded to beta and local control works ! I removed cloud control credentials from config (just to be sure).
It's way faster and way better like that.
I just have a weird issue where light instantly goes to 0%/off in the Home app after setting any %, in real life it stays at the defined percentage though. Couldn't debug why. So for now I have to use Govee App to turn off the light.

Untick here and your problem will go away

Ooooh thanks it fixed my issue !

Adding credentials doesn't change a thing, it turn it off instantly. [[ but the light does stay on ! ]]

ooh I need to change this rating in the logs to 4.5 🙊
Can you use the plugin settings to turn on debug logging? restart, and try to control again? and show the logs here?

Well do I still need to do it ? It seems effectively affected by the offline as off option :) !

Well do I still need to do it ? It seems effectively affected by the offline as off option :) !

No don't worry. It's kinda certain it's this!

v6.0.2 should now fix this issue even when this offlineAsOff is selected.
This option will have no effect for LAN-only devices (ie credentials removed)

It’s almost perfect, there’s only a small delay where the light will put itself as « On » on the interface, right when turned off, but it update quickly, and shows up as turned off in a few seconds.

It’s almost perfect, there’s only a small delay where the light will put itself as « On » on the interface, right when turned off, but it update quickly, and shows up as turned off in a few seconds.

I only experience that behavior once, and that's after restarting Homebridge/Homebridge Govee

Ah ... I understood that it was in the Home app that you had that experience.
From off to on to off:
[07/10/2022, 15:01:27] [Govee] [XX:XX...] current state [on].
[07/10/2022, 15:01:27] [Govee] [XX:XX...] current state [off].

Well it reflect in the Home app too that's why I said that

It is strange. I do not experience this.
https://user-images.githubusercontent.com/55313117/194589735-0d5ad140-ada2-4f2f-932a-afc36b0e9277.mp4

Well I just removed the plugin & the config, just to be sure and it still does the exact same thing.
In "MY DEVICES" it appears in double though, that may be the issue (?). It seems to be the autodetected one + when I add the unique adress, but i'm forced to add the unique adress otherwise the light wont show in homekit.

I just tried to remove UUID from cache, then fully removing plugin & config, + reinstalling without touching anything, letting the autodiscovery do it's thing.
It does indeed at it automatically to homekit (With it's Unique ID as Name), and now I correctly have only one device in "My devices", but still the exact same issue unfortunately

Hm ... I see you're on HOOBS, maybe that's the difference. I have several devices from Govee that support LAN and there are none that behave like this.

I’m not on HOOBS ?

It looked like this on your screenshot. So I don't know why you are experiencing that delay :)

I don't know ... but maybe my setup is a little atypical. All my devices except my robot vacuum cleaner are LAN only. So I am not "online" with my Govee devices. Could it be a "conflict" between cloud api and lan api?

Please resend a new screenshot of your device

Which HUBS do you have in your home? HomePod(mini), Apple TV?

I dont think it matter honestly it’s clearly a bug with the plug-in. I have 6 HomePods mini and 1 ATV 4K

Can you use the plugin settings to enable Debug Logging, and then perform the same actions to get the logs like above
Example when I turn it off :
[10/7/2022, 11:50:49 AM] [Govee] [Glide] current state [off].
[10/7/2022, 11:50:49 AM] [Govee] [Glide] current state [on].
[10/7/2022, 11:50:55 AM] [Govee] [Glide] current state [off].

But there will be more logging due to the debug settings.
Can you do this and post the logs here?

Maybe, maybe not... I don't have that device like you, so it's hard. But I find it hard to believe it is reserved for a single unit. As written, I have several units, +8 without problems like yours.
But if the developer wants a log, I'm happy to contribute :)

When turning it off :
(it does the same weird thing when turning it on btw)
10/7/2022, 6:42:50 PM] [Govee] [B6:BE:D4:AD:FC:1B:F6:90] current state [on].
[10/7/2022, 6:42:54 PM] [Govee] [B6:BE:D4:AD:FC:1B:F6:90] has been reported [offline] via API, so update may or may not be successful.
[10/7/2022, 6:42:54 PM] [Govee] [B6:BE:D4:AD:FC:1B:F6:90] [LAN] starting update with params [{"msg":{"cmd":"turn","data":{"value":0}}}].
[10/7/2022, 6:42:54 PM] [Govee] [B6:BE:D4:AD:FC:1B:F6:90] [LAN] command sent to [B6:BE:D4:AD:FC:1B:F6:90] at [10.0.0.185].
[10/7/2022, 6:42:54 PM] [Govee] [B6:BE:D4:AD:FC:1B:F6:90] current state [off].
[10/7/2022, 6:42:54 PM] [Govee] [B6:BE:D4:AD:FC:1B:F6:90] [LAN] receiving update [{"onOff":1,"brightness":21,"color":{"r":66,"g":56,"b":255},"colorTemInKelvin":0,"source":"LAN"}].
[10/7/2022, 6:42:54 PM] [Govee] [B6:BE:D4:AD:FC:1B:F6:90] current state [on].
[10/7/2022, 6:42:55 PM] [Govee] [B6:BE:D4:AD:FC:1B:F6:90] [LAN] receiving update [{"onOff":0,"brightness":21,"color":{"r":66,"g":56,"b":255},"colorTemInKelvin":0,"source":"LAN"}].
[10/7/2022, 6:42:55 PM] [Govee] [B6:BE:D4:AD:FC:1B:F6:90] current state [off].
[10/7/2022, 6:43:00 PM] [Govee] [B6:BE:D4:AD:FC:1B:F6:90] [LAN] receiving update [{"onOff":0,"brightness":21,"color":{"r":66,"g":56,"b":255},"colorTemInKelvin":0,"source":"LAN"}].

wtf :) This version makes my devices turn on instantly...so no lag AT ALL 🙈

Ben > If you didn't live in a non-EU country, I would have sent you a lamp that supports LAN 🫣👍🏻

You have received a modest $5 as a thank you ☺

I can state that my H6072 reacts faster than a HUE unit over deconz 👍🏻

Awesome, glad is working well now!
@JanLp thank you for the support :)

Ben > I'm a bit curious about the issue...? I didn't experience any noticeable lag, but still it got a lot better.

Ben > I'm a bit curious about the issue...? I didn't experience any noticeable lag, but still it got a lot better.

Certainly a delay that was added but not correctly set to be ignored when using LAN control.

Certainly a delay that was added but not correctly set to be ignored when using LAN control instead of AWS/API

It makes sense. I don't need to understand it, nor do I have the skills to understand it. It just surprises me now that we have the same settings.
It's kind of irrelevant, but it really annoys me that my devices are making close to 50,000 requests when they don't have internet access. I'm getting a little tired of them reconnecting every two minutes ... but that's probably just me :(

The issue in this case was that when sending the on/off command, the device responded with the old info still.
So actually the plugin was correctly working with the data it received, even though it was incorrect in reality.
I added a small interval of 5 seconds in which the plugin will ignore incoming data after sending a lan command.
So it’s not really a fix, it’s (yet another) workaround.
I didn’t do anything which would speed up commands, but bonus if it’s reacting faster. the reasoning - 🤷🏼♂

authors: JanLp Write bwp91


text:
Can't add devices to the bridge using Post

With version 5 I can no longer Post a new device to the Bridge
I think the expected string has changed.
I was using {"name":"(DeviceName)","deviceType":"exec","offUrl":"[{"item":" (exe Off command"}]","onUrl":"[{"item":"(exe On command)"}]","inactive":false,"noState":false,"offState":" true "}
I'll admit it has been a few versions since adding devices so I expect maybe something else is required now.

Please post your log file with errors please.

OK, looks like the issue is in my code.
Using postman and original Post everything works.

authors: bwssytems tuicemen

repo: bwssytems/ha-bridge


text:
refactor: use tabs for indentation and spaces for alignment

Linked issue
This aligns better with my personal preferences.

:tada: This PR is included in version 0.1.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

repo: byCedric/GitHub-Website


text:
deps: update spidermonkey runtime

Updates to Spidermonkey 112 and the latest builtin implementations.

Superseded by https://github.com/bytecodealliance/componentize-js/pull/27.

repo: bytecodealliance/componentize-js


text:
Update the preview1 adapter

Change the shell script to remove the right files in lib, and run it to update the preview1 adapters.

Thanks for the PR! This should be superseded by https://github.com/bytecodealliance/jco/pull/120 now.

authors: elliottt guybedford

repo: bytecodealliance/jco


text:
Nginx demo

Is there a plan to have a nginx demo with libtpa?

有没有nginx demo代码呢

authors: chenjhEnjoy davidzengxhsh

repo: bytedance/libtpa


text:
🛑 Vercel的二楼 is down

In 003b239, Vercel的二楼 (https://bywhite.vercel.app) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Vercel的二楼 is back up in 6d3d0f8.


text:
String manipulation

Some string manipulation macros can be added:

[ ] strlen
[ ] strcpy
[ ] strncpy (like previous but len is specified)
[ ] strcat
Better talking names should be used.

https://codebase64.org/doku.php?id=base:string_manipulation_routines&s[]=string&s[]=manipulation

Should we have also:

string delete - delete a substring from a string
string insert - insert a substring into a string
string compare - compare 2 strings
get substring - get substring from a string
find substring - find the position of a substring

I could work on some of these if needed.  That would be a fun thing to work on.

Yes of course, i'll work on quicksort
Il mar 7 feb 2023, 15:53 John Palermo @.***> ha scritto:

I could work on some of these if needed. That would be a fun thing to work
on.
—
Reply to this email directly, view it on GitHub
https://github.com/c128lib/framework/issues/6#issuecomment-1420906337,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AB6EJ7GBGOVY7VN4O4ZQDE3WWJOXZANCNFSM6AAAAAAUTGNWBQ
.
You are receiving this because you authored the thread.Message ID:
@.***>

Some string manipulation macros can be added:

[ ]  strlen
[ ]  strcpy
[ ]  strncpy (like previous but len is specified)
[ ]  strcat
Better talking names should be used.

https://codebase64.org/doku.php?id=base:string_manipulation_routines&s[]=string&s[]=manipulation

Macro names for consideration:

[ ] StringLength()
[ ] StringCopy()
[ ] StringCopyLeft() - This is string copy but length specified
[ ] StringCopyRight() - This is string copy buy length specified from end
[ ] StringCopyMid() - This is like get substring
[ ] StringConcatenate()
[ ] StringCompare()
[ ] StringFind()

Edited main comment to use better English names and include some new macros also. Some tasks completed as well, but not tested yet.  Testing is next.

Removing StringFind() from this issue.  Will create a new issue for StringFind(), to be worked on with more time.  I think this is a good first version of the string library.  More can be added later, with more time.

Good work!

Thank you.

authors: intoinside johnpalermo


text:
🛑 www.soi.sk is down

In 37122fc, www.soi.sk (https://www.soi.sk/sk/Novinky-SOI.soi) was down:

HTTP code: 403
Response time: 848 ms

Resolved: www.soi.sk is back up in 04aa716.


text:
🛑 www.ozpsav.sk is down

In 2797fcc, www.ozpsav.sk (https://www.ozpsav.sk/sk/Odborovy-zvaz.alej) was down:

HTTP code: 403
Response time: 2084 ms

Resolved: www.ozpsav.sk is back up in e025a75.


text:
When the column name includes sign, C3 cannot tell the difference between signs

C3 Version: v0.4.11
Browsers: Chrome(Version 50.0.2661.94 (64-bit))   Safari(Version 9.1)
*Bug: * One column name is with '+' and the other is '-', when I only select 'data+' from legend, it will highlight both.

Please, try to work around this behavior by adding other strings to the column names. For example, adding an empty string may force C3 to cast the label as such, whereas in your case it might be evaluating it.

The fix is released in v0.5.2.

authors: LuqiYan amenadiel kt3k


text:
Compatibility with node v0.5.2+

Hi !
I've fixed the module compatibility with node v0.5.x because EventEmitter was moved from something accessible in C++ to pure JavaScript.

hey thank you!. I'll merge and test it as soon as I have some spare time.


text:
Non zero exit code on SIGINT

Hey!
When I want to schedule some command to execute later I can do timer 10s && ./some_command.sh.
I think it would be nice to have the ability to cancel the execution. I would expect sending SIGINT would do it, but timer exits with zero code and some_command.sh then executes immediately.
What do you think? Does it make sense?

it does make sense yes, wanna PR it?

I would love to help I am on it. I am a nooby but I'll try my best :)


text:
Dependency on strscan

#9 18.89 Installing unicode-name 1.12.0
#9 19.08 Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
#9 19.08
#9 19.08     current directory: /usr/lib/ruby/gems/3.3.0/gems/strscan-3.1.0/ext/strscan
#9 19.08 /usr/bin/ruby extconf.rb
#9 19.08 mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h

-- https://github.com/martinthomson/i-d-template/actions/runs/9547354420/job/26312195940#step:7:437
This seems to be a common pattern.  A consequence of the "batteries included" design philosophy.
(I'm tempted to ask: Is there any way to just get kramdown-rfc without the full suite of secondary tools?  That's not necessarily a good question, but it might help here.)

This problem was recently fixed.
Can you do this with a recent version of kramdown-rfc?

(kramdown-rfc uses REXML in a number of places, which is the pure-ruby XML library.
REXML uses strscan, which is a default gem, but was misconfigured to require a build anyway.)  This was worked around by the emergency fix in 1.7.15.  I can't see which version of kramdown-rfc you are trying to install.  Please install 1.7.17.

The sheer fact that REXML now declares its dependency on strscan seems to be the problem.  This Gemfile works for me:
source 'https://rubygems.org'

gem 'kramdown-rfc'
gem 'net-http-persistent'
gem 'rexml', '<= 3.2.6'

With author tools (using bundle), it seems to install strscan as dependency for kramdown.
2.621 In Gemfile:
2.621   kramdown-rfc was resolved to 1.7.17, which depends on
2.621     kramdown-rfc2629 was resolved to 1.7.17, which depends on
2.621       kramdown-parser-gfm was resolved to 1.1.0, which depends on
2.621         kramdown was resolved to 2.4.0, which depends on
2.621           rexml was resolved to 3.3.0, which depends on
2.621             strscan

I'm trying to avoid pinning rexml in the gem, as that makes it hard to install in some other environments.  So until the rexml people can get their act together, can you do the above addition to the Gemfile instead?

(In authortools, you could also simply add build-essentials.)

I had to install ruby-dev in addition to build-essential on ubuntu:jammy.

authors: cabo kesara martinthomson

repo: cabo/kramdown-rfc


text:
🛑 CBTB Coffee House Shop is down

In 5d56ab8, CBTB Coffee House Shop (https://shop.cbtb.coffee/) was down:

HTTP code: 403
Response time: 1520 ms

Resolved: CBTB Coffee House Shop is back up in 5e8069f.

repo: cachetech/service-status


text:
🛑 CBTB Coffee House Shop is down

In 8ec84a0, CBTB Coffee House Shop (https://shop.cbtb.coffee/) was down:

HTTP code: 403
Response time: 1417 ms

Resolved: CBTB Coffee House Shop is back up in 3adc1c0 after 12 minutes.


text:
🛑 CBTB Coffee House Shop is down

In c8d4d73, CBTB Coffee House Shop (https://shop.cbtb.coffee/) was down:

HTTP code: 403
Response time: 958 ms

Resolved: CBTB Coffee House Shop is back up in 3f44bee after 31 minutes.


text:
🛑 CBTB Coffee House Shop is down

In d1df7c0, CBTB Coffee House Shop (https://shop.cbtb.coffee/) was down:

HTTP code: 403
Response time: 1233 ms

Resolved: CBTB Coffee House Shop is back up in 5902724 after 12 minutes.


text:
🛑 CBTB Coffee House Shop is down

In 77c4094, CBTB Coffee House Shop (https://shop.cbtb.coffee/) was down:

HTTP code: 403
Response time: 1212 ms

Resolved: CBTB Coffee House Shop is back up in c8531e4 after 12 minutes.


text:
rss feed uses non-standard tags

Our RSS feeds looks something like this:
<item><title>Previous incidents / incidents précédents</title><message>Previous incidents were only reported on Twitter, see https://twitter.com/hashtag/koumbitstatus?f=realtime&src=hash

----

Les incidents précédents sont seulement signalés sur Twitter, voir https://twitter.com/hashtag/koumbitstatus?f=realtime&src=hash</message><component/><status>Corrigé</status><created_at>2015-03-18 23:13:41</created_at><updated_at>2015-03-18 23:42:39</updated_at></item><item><title>Network reconfiguration / reconfiguration réseau</title><message>Une reconfiguration des routes BGP pour annoncer nos routes directement a été effectuée. Aucune coupure ne s'est produite. Nous avons maintenant une meilleure capacité à annoncer nos propres IPs de différents endroits dans le monde.

----

A network reconfiguration is in process to announce our BGP routes directly. No outage occured. We now have better capabilities at announcing our IPs in different places in the world.</message><component>Réseau</component><status>Corrigé</status><created_at>2015-03-18 23:41:03</created_at><updated_at>2015-03-18 23:42:23</updated_at></item

This renders, in Chromium, as this:
Previous incidents / incidents précédents

Network reconfiguration / reconfiguration réseau

ie. the announcement text body is not included in the feed. I don't believe the <message> tag is part of the RSS standard. I would recommend using the <description> tag instead.
The tags <component> or <status> are not standard either for that matter. I would suggest using <category> tags instead, for example:
<category domain="http://doc.cachethq.io/api/rss/status">Corrigé</category>
<category domain="http://doc.cachethq.io/api/rss/component">Réseau</category>

Some review the output of the RSS validator seems to be in order here. :)
Good news however, the atom feed seems to be valid. The bad news is that it doesn't have a description either. :)

I've made the RSS feed more compliant.

the feed still doesn't pass the validators, but it looks much better, thanks.

Still a work in progress.

@anarcat in terms of the Feed Validator, do you know why an RSS feed needs to contain information for "Missing atom:link with rel="self""? What's the atom:link bit about?

Also this:

In addition, interoperability with the widest range of feed readers could be improved by implementing the following recommendations.
line 2, column 582: item should contain a guid element (3 occurrences) [help]

Might not be able to be done yet, because it prefers a permalink to something. We can't link directly to incidents in V1.

i am not sure about atom, but it's a common problem with generated RSS feeds that they need to have an absolute link to the site somehow.

I'm not sure what we'll do here then.

@jbrooksuk

Might not be able to be done yet, because it prefers a permalink to something. We can't link directly to incidents in V1.
Perhaps just point to the main public page? It's not a permalink to the specific incident, obviously, but it's perhaps more graceful than not having a url for RSS items at all.

@slobatch that's a good idea.

Moved to second release as we'll need to sort this.

Closed by 9a0d823c9a79a5836c1e8188439484f7902fbb6b

authors: anarcat jbrooksuk slobatch

repo: cachethq/Cachet


text:
Use phpunit.xml.dist instead of phpunit.xml

The project must distribute a phpunit.xml.dist instead of a phpunit.xml, the reason is that phpunit use a phpunit.xml file and if not exists use a phpunit.xml.dist. this is useful if someone tries a new phpunit configuration, only has the need to create a phpunit.xml.

Thanks.

authors: GrahamCampbell dosten


text:
Add description to script

Just some metadata that can be useful in various contexts like enterShell for example.
Closes: #887

:wave: @domenkozar, just wanted to bring this to your attention.

awesome thanks!

repo: cachix/devenv


text:
Move style above scripts in semantic_video demo

I think this closes bug #275 in Lighthouse.

This should be filed in lighthouse under the appropriate project

authors: cadecairos gordonbrander

repo: cadecairos/popcorn-js


text:
Sides/Points input field is hidden until Shape is changed

Fixed in v 0.2.4. Thanks!

repo: caewok/fvtt-light-mask


text:
How to obtain log-fold change values?

Hi,
Thanks for the great package. I have followed the example code to calculate metacyc pathway differences on the example data as below:
library(ggpicrust2)
data(metacyc_abundance)
data(metadata)
metacyc_daa <- pathway_daa(abundance = metacyc_abundance %>% tibble::column_to_rownames("pathway"),
                                      metadata = metadata, group = "Environment", daa_method = "ALDEx2")

This works nicely. However, metacyc_daa contains p-values for all the features, but does not seem to contain any indication of the magnitude or direction of differences, such as log-fold-change values:
> head(metacyc_daa)
                                 feature                method           group1       group2    p_values
1                             1CMET2-PWY ALDEx2_Welch's t test Pro-inflammatory Pro-survival 0.008567460
2 3-HYDROXYPHENYLACETATE-DEGRADATION-PWY ALDEx2_Welch's t test Pro-inflammatory Pro-survival 0.532921140
3                     ALL-CHORISMATE-PWY ALDEx2_Welch's t test Pro-inflammatory Pro-survival 0.581636271
4                       ANAEROFRUCAT-PWY ALDEx2_Welch's t test Pro-inflammatory Pro-survival 0.002408597
5                      ANAGLYCOLYSIS-PWY ALDEx2_Welch's t test Pro-inflammatory Pro-survival 0.004616657
6                      ARG+POLYAMINE-SYN ALDEx2_Welch's t test Pro-inflammatory Pro-survival 0.038340166
  adj_method   p_adjust
1         BH 0.04955104
2         BH 0.63349639
3         BH 0.65524799

This seems to be the case for all daa_method options. So, if I wanted to obtain the magnitude of all the pathway differences and add that to the results table, how can I do that? Do I have to calculate it myself, e.g. using dplyr, or is it hidden somewhere in ggpicrust2?
Thanks.

Hi Andrew,
Thank you for using ggpicrust2 and for your question.
You're correct that the metacyc_daa results do not directly provide the log-fold change values. However, you can indeed obtain these values from the data used to generate the error bars in the pathway_errorbar() function.
After you run the pathway_errorbar() function, you can access the underlying data used for plotting, which includes the log-fold change values, as follows:
p <- pathway_errorbar(metacyc_daa, ...)
log_fold_change_data <- p$data

In the log_fold_change_data dataframe, you should find columns representing the log-fold changes between the groups you're comparing. You can then merge or join this data with your metacyc_daa_results_df to have a complete table with p-values and log-fold changes.
I hope this helps. Please let me know if you have any further questions.
Best regards,
Chen YANG

Aha, that works. Thanks for the quick reply!
However, if I try this with > 30 features, it fails with a message about having too many features and suboptimal visualization. I understand the point of that. But I am not trying to generate a visualization, I just want the data. Is there any way to extract all the data without having to limit features to 30?

Well, I resolved this by filtering metacyc_daa to features with p_adjust < 0.05, then adding a column containing 30 instances of each number, then used a loop to generate pathway_errorbar data for each set of 30 features:
metacyc_daa_05$cut = 5 # placeholder
metacyc_daa_05$cut[1:120] = rep(1:4, each = 30)
for(i in 1:5){
  m = metacyc_daa_05 %>% filter(cut == i)
  p = pathway_errorbar(... daa_results_df = m ...)
  d = p$data
  ...
}

As an aside, I noticed that the p_adjust values in p$data were truncated. Why is that? I recovered the correct values from metacyc_daa_05.


text:
Reorganized startup procedure as specified in #2.

Moved _start to startup.s. The start procedure now copies .data to RAM, and clears .bss. Renamed main() to kernel_main().
Fixes #2.

Have a look at sources downloadable from http://training.mips.com/cps_mips/Examples/Boot_MIPS_1.03.zip
Startup routine for interAptiv family of processors is in interAptiv/start.S file. Note that reset vector is setup at EBASE + 0x180. After that every 0x80 bytes is an entry point for another exception handling routine, up to EBASE + 0x500.
You can find more about exception processing in chapter 5 of MIPS32® microAptiv™ UP Processor Core Family Software User’s Manual

authors: cahirwpz rafalcieslak

repo: cahirwpz/wifire-os


text:
feat: add Cairo VM builtins documentation

Closes #910
Proposal to Cairo VM Builtins global parts

Renamed "Memory Communication" to "How builtins work" as the former title (coined from the Cairo whitepaper) was a bit restrictive.
Renamed "List of Builtins" to "Builtins List"

The section "Builtins List" contains a sub-section for each of the builtin. The goal is to provide details on how each builtin works.
This "builtin details"-section structure must be validated
The first structure proposal is showcased by the ch204-02-01-pedersen.md file:

Describe the purpose of the builtin and its use. If already explained in the book, make a redirection. For example, the Pedersen builtin computes the Pedersen hash of two given values. A broad explanation of what the Pedersen hash is and when it is used in Cairo is explained by the section 11.4 'Working with Hashes', no need to re-explain it, simply redirects to it.
Cells organization - Explain how the cells are organized, e.g. by triplets, by block of 16 cells (keccak), what are the properties that each cells must hold etc. Provide examples with diagrams.
Implementation references - Provide links to the implementation of the builtin from the different Cairo VM projects, having a look at the code will eventually help in understanding how the builtin works.
Resources on X - Provide a few links for people to read more about a topic related to the builtin, if any. For example, links to articles explaining how exactly the Pedersen Hash function works, potentially used in other context (ZCash) etc...

This change is

oops one last thing: can you make the unfinished pages non-accessible (like other chapters unimplemented)?

authors: enitrat zmalatrax

repo: cairo-book/cairo-book


text:
有没有海外版

在台湾用不了网易和qq的

因为音乐源是网易和qq的，海外版暂未考虑，

authors: caiyonglong link-king

repo: caiyonglong/MusicLake


text:
Provide attributes for supported runners, operating systems and runners in extensions

There's currently no structured way for an extension to express on which Cake runner, operating system or platform it runs. There might be issues with dependencies on different runners, issues with paths on different operating systems or an addin can target a more restrictive set of TFM than what Cake is available on.
Current guidelines suggests to mention this in XML comment. It would be helpful to have attributes available:

SupportedRunnersAttribute
SupportedOperatingSystemsAttribute
SupportedPlatformsAttribute

These addins can be used for two cases:

On the website it allows to show this information as metadata for each addin. It also allows to filter to extensions which support a specific runner, operating system or platform.
In Cake we can throw an error if user tries to run with an extension not supported in the current environment.

Existing addins which don't provide attributes should be treated as compatible, with a warning.

A couple of thoughts to consider:

Should some of these attributes specify "minimum version"?
Should Operating System define bitness (x86/x64)?

authors: augustoproiete pascalberger

repo: cake-build/cake


text:
🛑 node.c3pool.com:18081 is down

In c253b0d, node.c3pool.com:18081 (node.c3pool.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: node.c3pool.com:18081 is back up in ed9b588.

repo: cake-tech/upptime-monerocom


text:
Error: Name "id" must not begin with "", which is reserved by GraphQL introspection.

I have tried a lot of things but always get this error message when trying to connect with postgraphql to a postgres instance.
$postgraphql -c postgres://postgres:postgres@localhost:5432/postgres -s kitchen_sink
PostGraphQL server listening on port 5000 🚀
‣ Connected to Postgres instance postgres://localhost:5432/postgres
‣ Introspected Postgres schema(s) kitchen_sink
‣ GraphQL endpoint served at http://localhost:5000/graphql
‣ GraphiQL endpoint served at http://localhost:5000/graphiql

Error: Name __id must not begin with __, which is reserved by GraphQL introspection.
at assertValidName (/usr/lib/node_modules/postgraphql/node_modules/graphql/utilities/assertValidName.js:27:11)
at /usr/lib/node_modules/postgraphql/node_modules/graphql/type/definition.js:328:42
at Array.forEach (native)
at defineFieldMap (/usr/lib/node_modules/postgraphql/node_modules/graphql/type/definition.js:327:14)
at GraphQLInterfaceType.getFields (/usr/lib/node_modules/postgraphql/node_modules/graphql/type/definition.js:401:44)
at /usr/lib/node_modules/postgraphql/node_modules/graphql/type/schema.js:207:27
at typeMapReducer (/usr/lib/node_modules/postgraphql/node_modules/graphql/type/schema.js:219:7)
at Array.reduce (native)
at typeMapReducer (/usr/lib/node_modules/postgraphql/node_modules/graphql/type/schema.js:202:39)
at Array.reduce (native)
The installation of postgres is fresh.
I can connect using the same connection string via psql and also via other tools.
I tried with and without specifying the schema. I run the kitchen sink sql from here http://calebmer.com/postgraphql-docs/examples/kitchen-sink/
$uname -r
4.8.13-1-ARCH
$psql --version
psql (PostgreSQL) 9.6.1
$postgraphql --version
2.5.0

This relates to the newly released graphql 0.9.0 which broke our dependencies - see https://github.com/calebmer/postgraphql/pull/319
Potential solutions: downgrade to graphql < 0.9 or try running postgraphql with --classic-ids

ahhh! thanks a lot, it works with --classic-ids !

I'm leaving this open for others who find the same issue in the coming days until we get a fix out.

Fixed in 3.0.0.

authors: benjie calebmer skhro87

repo: calebmer/postgraphql


text:
Add live reloading to GraphiQL

This PR adds live-reloading to GraphiQL and turns GraphiQL into a create-react-app. Lots of the live reload stuff was inspired by the work of @ferdinandsalis.
I implemented this in a plane/AirBnB room while falling asleep before GraphQL summit. That’s to say it needs significant review and testing.
I’m opening this now because it would have the side effect of fixing https://github.com/calebmer/postgraphql/issues/249

I’ll take a look. I am happy so see some of my work was ok ☺

@ferdinandsalis, @benjie: Alright, made the suggested changes and I also rebased against master if you want to take another look. I also made some changes to the CONTRIBUTING.md document, because the workflow with the create-react-app may be non-intuitive.
Thanks again @ferdinandsalis for the event sourcing stuff and @benjie for the review :+1:

Also, does postinstall run only when installing for development? Asking because if we could automate the installation of the create-react-app dependencies, that would be great (currently we need to run npm --prefix src/postgraphql/graphiql install to get them).

Alternatively, would it make sense to have the GraphiQL create-react-app dependencies just be devDependencies of PostGraphQL?

Have raised a few tweaks to this in https://github.com/calebmer/postgraphql/pull/270; feel free to cherry-pick any of them that you want on a commit-by-commit basis @calebmer

@calebmer Now this runs on a completely different port, it separates us further from the JWT issues. Could we instead mount it as an express endpoint thus the headers would be passed through, so if there's already an Authorization header that will be passed through too (e.g. once you've logged in).

@calebmer Now this runs on a completely different port, it separates us further from the JWT issues. Could we instead mount it as an express endpoint thus the headers would be passed through, so if there's already an Authorization header that will be passed through too (e.g. once you've logged in).

I’m not sure I entirely understand what you mean by this? As in create a new package postgraphql-graphiql that can be added as a middleware?

Ok, just added some commits which move GraphiQL dependencies to become devDependencies of the PostGraphQL package. Now they get installed with everything when running npm install. Also fixed the failing tests and added some new ones.

I also just rebased against master and force-pushed. So be careful pulling.

I mean in my app I mount PostGraphQL as a middleware, so I can generate the required JWT token and pass it through to the postgraphql middleware as if the client had done so itself. This JWT token should flow down to graphiql but it can't if graphiql runs on a different port. By making it a middleware instead it can be mounted in a similar way (either under postgraphql or directly under my application) with any tokens passed through and without the need for another port being opened.

GraphiQL only runs on a different port in internal PostGraphQL development 😊 (I see how that can be confusing).
When built and used as a package it's served from /_postgraphql/graphiql. Perhaps we should clean this up so that it is always served from here? Running on a port in PostGraphQL development is nice for create-react-app live reload features.

Oh I seeee; I'd not actually mounted it in my app so wasn't aware of that subtlety.

Does everyone feel comfortable with this, or do you think we need more changes? I added a note to CONTRIBUTING.md about GraphiQL.

Ok, going to wait until both @ferdinandsalis and @benjie give the ok. Then I’ll be comfortable merging 😊

Good with me! 👍

I just noted that both gave their OK, maybe this pr is overlooked?

Conflicts resolved; I think it's good to merge 👍

Yeah. I’ve been dragging my feet on this one because it’s a big change 😖
I’ll get this merged and released over the weekend 👍

authors: benjie calebmer ferdinandsalis martinheidegger


text:
Uncaught TypeError: Cannot read property 'uploadSelection' of undefined

With a chat channel open, but no active text window and/or selected text.
Atom Version: 1.0.0
System: Mac OS X 10.10.3
Thrown From: slack-chat package, v3.2.2
Stack Trace
Uncaught TypeError: Cannot read property 'uploadSelection' of undefined
At /Users/Jean/.atom/packages/slack-chat/lib/commands.coffee:11

TypeError: Cannot read property 'uploadSelection' of undefined
  at atom-workspace.<anonymous> (/Users/Jean/.atom/packages/slack-chat/lib/commands.coffee:11:103)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/src/command-registry.js:241:29)
  at /opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
  at CommandPaletteView.module.exports.CommandPaletteView.confirmed (/opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/node_modules/command-palette/lib/command-palette-view.js:159:32)
  at CommandPaletteView.module.exports.SelectListView.confirmSelection (/opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:338:21)
  at space-pen-div.atom.commands.add.core:confirm (/opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:109:19)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/src/command-registry.js:241:29)
  at /opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
  at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:520:16)
  at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:355:22)
  at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:180:20)

Commands
     -1:22.3.0 core:move-down (atom-text-editor.editor.mini.is-focused)
     -1:22 core:confirm (atom-text-editor.editor.mini.is-focused)
     -1:22 slack-chat:move-up (atom-pane.pane.active)
     -0:46.6.0 command-palette:toggle (atom-pane.pane.active)
  2x -0:44.6.0 core:move-down (atom-text-editor.editor.mini.is-focused)
     -0:44.1.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:44.1.0 slack-chat:move-down (atom-pane.pane.active)
     -0:19.6.0 command-palette:toggle (atom-pane.pane.active)
  3x -0:17.5.0 core:move-down (atom-text-editor.editor.mini.is-focused)
     -0:16.5.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:16.5.0 slack-chat:upload-selection (atom-pane.pane.active)
     -0:04.4.0 command-palette:toggle (atom-pane.pane.active)
     -0:02.3.0 core:select-all (atom-text-editor.editor.mini.is-focused)
  3x -0:01.3.0 core:move-down (atom-text-editor.editor.mini.is-focused)
     -0:00.7.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:00.7.0 slack-chat:upload-selection (atom-pane.pane.active)

Config
{
  "core": {
    "disabledPackages": [
      "atom-ctags",
      "goto"
    ]
  },
  "slack-chat": {
    "api_key": "xxx",
    "api_secret": "yyy",
    "notifications": false,
    "api_token": "zzz"
  }
}

Installed Packages
# User
autocomplete-ctags, v0.2.0
autocomplete-paths, v1.0.2
docblockr, v0.7.2
highlight-selected, v0.10.1
language-docker, v1.1.3
language-gherkin, v1.0.2
linter, v1.1.0
linter-rubocop, v0.2.7
minimap, v4.10.0
slack-chat, v3.2.2

# Dev
No dev packages

seems to have been fixed along with the other errors.

authors: JeanMertz callahanrts

repo: callahanrts/slack-chat


text:
[LeftNav] Dock LeftNav when screen is big enough

Hi!
It would be awesome to add a behaviour to the Leftnav, so when the screen is big enough, it shows docked, and when it shrinks it get undocked.
The idea is to hide the AppBar menu icon button when its docked as well.
The left-margin of the app content, could be set by plain media query.
Just like i.e. material.angularjs.org
Thanks!!

+1
I need this functionality for my application. Is it something that's going to be implemented?

What I'm looking for is the option for a "Persistent" AppBar, from Material's style-guide (scroll down).
https://www.google.com/design/spec/patterns/navigation-drawer.html#navigation-drawer-behavior

+1. I tried updating the docked prop on resize, but the component doesn't re-render.

@travischoma did you try setState({open: true}) ?

+1
It is possible to build this behaviour on top of LeftNav. Check out my gist.

I was able to create this behavior using this decorator & flux:
https://github.com/kriasoft/react-starter-kit/blob/86f23ebdad2a0e718f6f4200f8dc72dbd5c9920d/src/decorators/withViewport.js
instructions here:
https://github.com/kriasoft/react-decorators
showNav(){
var toggle = this.state.leftNavToggle;
        if (this.props.viewport.width < ViewConstants.SM){ //this is a breakpoint
          return !toggle;
        }
        return toggle;
      }

    <ToggleDisplay className="nav" show={this.showNav()}>
                <List style={{'fontWeight': '400'}} >
                 ....

I am using a List instead of a LeftNav because LeftNav as of today does not support NestedItems..

was this added? material-ui.com has this, how does it do it?

@hiei189 The docs site handles it's own logic.
@callemall/material-ui Guys do you think we should add an example for this or just leave it to the user to handle?

@alitaheri Until we have a lib-wide way of handling this sort of thing, I think we should leave it to the user rather than promote a suggested way that won't be compatible with any built-in responsive enhancements later on.

You have a good point :+1:

Refer to #3614 for a discussion on adding responsive component + layout support to the lib

here is an example showing how to allow a react component to listen to the media query event provided by javascript by rooting the function in the lifecycle function "ComponentWillMount", would be a nice reference for you guys
https://github.com/balloob/react-sidebar/blob/master/example/src/responsive_example.js#L32-L44

authors: alitaheri antilect cgestes hiei189 joebandenburg killfill nathanmarks petergzc raptoria travischoma

repo: callemall/material-ui


text:
[TextField]Can not paste text when using FireFox

Problem description
http://www.material-ui.com/#/components/text-field
Can not paste text to TextField when using FireFox
Steps to reproduce
Versions

Material-UI: 15.0.0
React:
Browser: Mac FireFox 46.0.1

@xubuild I tried reproducing the mentioned error. It worked perfectly fine in Firefox. Can you send a video of the problem?

@xubuild Closing the issue due to inactivity


text:
ThumbImage work in Android but not in iOS

Environment

Binaries:
Node: 14.17.6 - C:\Program Files\nodejs\node.EXE
Yarn: Not Found
npm: 8.3.0 - ~\AppData\Roaming\npm\npm.CMD
Watchman: Not Found
Description

The slider's ThumbImage works fine in Android, but no show in iOS.
BTW, thumbTouchSize does not work both in Android and iOS.
Reproducible Demo

<Slider
style={{
width:'100%',
height:150,
backgroundColor:"transparent",
justifyContent: "flex-start",
}}
thumbImage={require('../icon/bright1.png')}
thumbTintColor={'black'}
minimumValue={0}
maximumValue={1}
thumbTouchSize={{width: 200, height: 200}}
value={0.65}
onValueChange={(value) => setLight(value)}
minimumTrackTintColor={'white'}
maximumTrackTintColor={'white'}
/>

Thumb partially works on iOS it seems. It gets set, but as soon as you start moving it, it disappears and appears once you stop.
Any ideas?

Any update on this issue?

I ended up using this https://github.com/Sharcoux/slider. Thumbnail works both in iOS and Android, can transform 90 degree into vertical. Hope it helps!

@rachellauyui From what I see on your example you are using an image for a thumb, but at the same time you set the thumbTintColor which overrides the image of your thumb.
Please keep in mind that setting both these props will not only conflict with each other, but at the same time is in fact pointless - If you have the image as a thumb you don't need to override it with the color of the default thumb.
I tested it using the thumbImage prop set as the only one and it works totally fine on all platforms - can you please try removing the thumbTintColor from your Slider usage and keep the thumbImage?
As an additional note: I'm sure it should be better documented, so I'll make an update to the docs about this for the next release.

authors: BartoszKlonowski Samipya cristianoccazinsp rachellauyui

repo: callstack/react-native-slider


text:
HTML

HTML
User Story
As a bootcamp student
I want the prework notes to be structured on the webpage
so that I can easily find and read information
Acceptance criteria
GIVEN a Prework Study Guide website
WHEN I visit the website in a browser
THEN I see four boxes titled HTML, CSS Git, and JavaScript with associated notes listed

finished HTML part of prework!

repo: callumquirky/prework-study-guide


text:
Overlap

Hello,
First I want to thank you for good project! I am a fairly beginner, and my question is, do you have any good guidance/solution for overlapping objects behind eachother? For example, maybe put then above or generate a list or something?
Thank you for any advice and support!

Hi there... IIRC they're overlapped based on proximity, so the closest is first in the line. On the other hand I see your point but I have nothing in mind, maybe you feel like adding something to the engine? That would be great!!
On the other hand, glad you find the project useful!

Hi, thanks for response! I am trying to figure out something checking around the forums, I have just started coding in iOS , If I find anything useful or solution ill add it! cheers

Actually I managed to make a small fix to the radar view:
if (_points.count != _dotsView.subviews.count) {
point = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"smAugmentedRealityDot"]];
[_dotsView addSubview:point];
}
else {
point = [_dotsView.subviews objectAtIndex:count];
}
Instead of recreating and allocating new uiimageviews you just move position of existing one.

Can you open a pull request with your proposal along with some images on the final result?
Thanks!

I am a newbie at github and this was my first pull request. I hope I have done everything correctly ! It seems good tho I think :)

Great work @Sneakr. I've reviewed it and left a couple of minor comments.
Thank you very much!

Cool, Im glad I was of use, I commented on your changes how I was thinking when I set it up that way.
Cheers

authors: Sneakr calonso

repo: calonso/ios-arkit


text:
Add github actions

Closes #27

We might need to adjust the ssh command later depending on whose machine we use to deploy and the name of the ssh key

repo: calvh/mlh-final-project


text:
Broke out encoding/decoding mechanisms

Broke out the encoding/decoding mechanism so if you want to make any further changes, it should only be in one place. Ended up going with the pseudo-json format because it gave non-buffer values priority in terms of encoding performance.

some questions/nits but overall looks good

You'll notice that I'm encoding keys as base64. This is b/c we were getting keys that don't work with sql when using utf8 or binary encoding.

we my need to just look at what leveldown does which i believe is to turn everything into a buffer before storing it, e.g. for a value
if (typeof value === 'string')
    value = new Buffer(value)

value = value.toString('base64');

keys could be similar but in hex so they could sort right

Couldn't find it in leveldown, but didnt look through the c++ code.

Superseded by #22

authors: calvinmetcalf kumavis

repo: calvinmetcalf/SQLdown


text:
Unable to use with Webpack 5

Webpack 5 doesn't include node polyfills anymore so I'm having issues using the library.
Error: nodebuffer is not supported by this browser

I already tried this in my Webpack config:
resolve: {
    fallback: {
        fs: false,
        path: require.resolve("path-browserify"),
        buffer: require.resolve("buffer")
    }
}

and even setting these to false but no luck.

So I installed the node-polyfill-webpack-plugin and now there's a different error:
TypeError: r.isBuffer is not a function

any chance you can show non minified stack trace ?

@calvinmetcalf Sure

this comment suggests you may have to do
new webpack.ProvidePlugin({
  Buffer: ['buffer', 'Buffer'],
})

repo: calvinmetcalf/shapefile-js


text:
KYC Fill-in Specifications

Problem description
There is only one proposal from KDDI for KYC Fill-in, so the initial version of KYC Fill-in will be KDDI's YAML base.  However, some alignment to KYC Match API is needed, which can be discussed in this issue.
First of all, parameters/attributes for KYC Fill-in API should be agreed.  It is believed that the general rule would be that parameters/attributes for KYC Fill-in API should be aligned with those of KYC Match API where applicable.
If you think this general rule is not appropriate, please give your view and alternative ideas.
Many thanks,
Toshi

Hi @GillesInnov35 ,
Thank you for your commment.  Could you explain a bit more about 'except what the phone number'?  Do you use a different attribute name?
Thanks,
Toshi

Hi all,
I would like to propose Fill-in API flows for our first version API documentation, as attached.  It is very straightforward, highlevel and generic flow, which could apply to any use cases for Fill-in.
Any comments are welcome.
Note: It was created by PowerPoint and captured as a picture, because I am not familiar with tools for drawing flows.  Please let us know if you are familiar with tools.

Many thanks,
Toshi

Hi all,
Regarding the parameters/attributes for KYC Fill-in API, as we are finalising those for KYC Match API, we can adopt the same ones for KYC Fill-in API as below:

phoneNumber
mainPhoneNumber
idDocument
name
nameKanaHankaku
nameKanaZenkaku
givenName
middleNames
familyName
postalCode
address
streetName
streetNumber
region
locality
country
birthdate
email
givenNameInitial
middleNamesInitials
familyNameAtBirth
houseNumberExtension
gender
cp_id

Please let us know if you have any other ideas.
Many thanks,
Toshi

@ToshiWakayama-KDDI , as the API return the same type of value as the Match request, why shoudn't we return the same attribute ?

attribute
Fill-in Response

attribute
attribute in response

e.g. given name
givenName

Closed as agreed.

repo: camaraproject/KnowYourCustomer


text:
Support redlock

Given That I am a celery-once consumer, I Should Be Able To Configure the use of redlock as provider So That I Can take advantage of the distlock algorithm to solve redis replication race conditions.

We can probably add a new provider once https://github.com/TrackMaven/celery-once/pull/16 is merged in for a RedLock class or something?

Multiple backend support is merged in for 1.0.0. If this is still desired to feel free to re-open the issue (or a PR is welcome). A guide to writing locking backends is here https://github.com/cameronmaske/celery-once/blob/master/BACKEND_GUIDE.rst

authors: cameronmaske dkiser

repo: cameronmaske/celery-once


text:
Error in fitTrendVar(fm, fv, ...)

I get the following error when I try to run the decontX function: Error in fitTrendVar(fm, fv, ...) : need at least 4 points for non-linear curve fitting. I have a SingleCellExperiment object with 32285 genes and 13317834 cells. So a lot of cells. The only filters I applied were to exclude cells total UMI count less than 10 and exclude genes which are not expressed at all. Should I increase the total UMI count filter for excluding cells? I don't want to decrease the number of cells drastically before running this function. What is the recommended number of cells?

I was able to fix this by loading the Matrix library.

I believe this error can be prevented by us importing the Matrix package as a dependency in the decontX functions. But we will test it.

This was fixed in version 1.11.1.

authors: ayeTown joshua-d-campbell

repo: campbio/celda


text:
replace fluentAnswer with BuilderAnswer

there is something in mockito now

no there is not ... was local in project

repo: camunda/camunda-bpm-mockito


text:
Provide constants for activity types

while the event types can be accessed as String constants (TaskListener.CREATE), the activities (userTask, startEvent, ...) can't. It would make implementing selectors much easier if we had a constant class.
I would suggest that we start with those constants within this extension but aim to have those in camunda core soon.

I would prefer enums for all possible elements to have typesafe control. We could also define scopes on those enums to ensure that no unsupported eventlisteners get registered for a type.
I would need a complete list of all bpmn and cmmn elements (userTask, serviceTask, humanTask, ...). Any idea where I could get such a list (hopefully automated)?

I think automation is not required here, you can look at the class BpmnParse and list all elements when the listener is called.

You may be aware of this, but I was stumbling over similar (unresolved) efforts in core looking for an enum helper:

ActivityTypes.java
Open issue

authors: bentrm jangalinski saig0

repo: camunda/camunda-bpm-reactor


text:
fix(cloud): allow expanding subprocesses

related to https://github.com/bpmn-io/bpmn-js/issues/1688

What changed:

update bpmn-js-disable-collapsed-subprocess so tasks can be morphed
change init order of popupMenuModule and disableCollapsedSubprocessModule, so popupMenuModule does not override the entry created by disableCollapsedSubprocessModule
add integration tests for replace menu entries

@philippfromme do you have time to review this week? Would be cool to have the fix it in the next release

repo: camunda/camunda-bpmn-js


text:
BPMN - Change from interrupting escalation boundary event to non-interrupting escalation boundary event properties lost

Reproduce:

Model Task
Place Interrupting Escalation Boundary Event on Task
Add Escalation Name & Code
Change to Non-Interrupting Escalation Boundary Event
Notice that all properties are gone

Expected:

Model Task
Place Interrupting Escalation Boundary Event on Task
Add Escalation Name & Code
Change to Non-Interrupting Escalation Boundary Event
Notice that all properties are still there

This has been substantially improved via https://github.com/camunda/camunda-modeler/commit/2415cf9ba925b1b303923187c3556db468a0db0f / bpmn-js@5.0.0-beta.
Two related problems remain, I've created separate issues for them: https://github.com/camunda/camunda-modeler/issues/1463, https://github.com/camunda/camunda-modeler/issues/1464.

authors: felix-mueller nikku

repo: camunda/camunda-modeler


text:
Missing plugins when opening modeler trough double click on file

Reproduce:

Open a .bpmn/.dmn/.cmmn file through double click

Expected Beavior:

plugins available

Actual behavior:

plugins missing

Support ticket: https://app.camunda.com/jira/browse/SUPPORT-4109

Please fix the plug-in resolution according to my comment.
Is it possible for us to write a test-case for one or more scenarios here?

authors: nikku philippfromme


text:
Common error handlings

Hey there!
First of all - great tool! Very useful.
While playing with it, I've noticed that there is no common error handling. For example, I tried to register an event that do not exist (tried leave instead of exit).
Instead of a nice feedback about my error, I saw

Cannot read property 'push' of undefined

Which is not very helpful.
I suggest of adding few lines of checking if passed events/elements etc. are valid, and if not, instead of giving back an error, let's return some proper hint (for example: Unrecognized event name.).

@Krizzu Thanks for bringing this up! That's something that definitely should've been implemented by now. I'll plan to implement this ASAP.

Hey! I think I could take care of that, if it's possible :)

authors: Krizzu camwiegert

repo: camwiegert/in-view


text:
new version ProfitTrailer

Would you be so kind to make a fresh installation for version 2.5.14?

Done

authors: canecasama ofheroes


text:
🛑 microstack.run is down

In a5afa10, microstack.run (https://microstack.run) was down:

HTTP code: 503
Response time: 528 ms

Resolved: microstack.run is back up in 6ea66de.

repo: canonical-web-and-design/upptime


text:
Check for admin login via keystone failing

Hi,
During an outage where the login via keystone for the admin user were failing, there were no alerts from the sanity checks. This check would be useful to have as a way to avoid future issues of the type. And remedy them before impacting the user.
Kind Regards

Imported from Launchpad using lp2gh.

date created: 2019-02-23T01:07:13Z

owner: mihaela

assignee: None

duplicate of: #7

the launchpad url

(by aieri)
Tentatively setting this as duplicate for LP#1772944.
Mihaela: by "login" did you mean login to Horizon?

(by mihaela)
Andrea: does look like LP#1772944 indeed. Please feel free to close. ta


text:
[DPE-3874] dict representation for Data (i.e. "back to databag" :-) )

This PR is the "continuation" of earlier POC.
See how it works on ZooKeeper: https://github.com/canonical/zookeeper-operator/pull/122

@welpaolo your question/request about integration tests is indeed something worth discussing.
I apologize, my response is long, as to me it's a conceptual matter (not in terms of code but in terms of tests).
I'm glad to sync on this after your holidays if preferred -- as we usually do :-)
In fact, I was thinking to add a comment on this topic to the Description, when I created the PR, but I didn't do it at the end.
There are  purposefully no integration tests here. I don't think we should have them this time.
However, there may be something else to be tested instead -- that is missing currently. I rather propose that extension (see later).
The dict interface should be VERY strictly no more than a "syntactic sugar", a lightweight wrapper around the 3(+1) interface functions we are providing:

fetch_relation_data() (and fetch_relation_field()
update_relation_data()
delete_relation_data()

These 3 are implementing the real functionality and must be particularly carefully tested with integration tests. (I think we're pretty good on that right now.)
The dict wrapper MUSTN'T invent anything. It should add NO new functionality. It must strictly do no more than apply the underlying interface function that corresponds to the dict call, with the parameters that were shipped.
To test this lightweight wrapper layer (new interface), I see no value in integration tests. ALL that the wrapper has to provide is rather a unit test material.
However I do see a missing element in the current unit tests indeed. They do verify every aspect of the dict behavior, however they don't ensure that it is no more than a thin wrapper around the interface functions.
(While it is VERY important to ensure that further additions to the code would preserver the wrapper nature, i.e. "no functionality would be invented" within a DataDict object.)
Thus, what I rather propose is that I would extend the current unittests with one more, that is verifying that the dict wrapper is calling the underlying interface functions. (IT is one of the few cases where I find mocks being the right thing to use.)
Also I would add an explanation (both on the code (class) an in the tests) how this concept MUST be preserved.
[NOTE: While I'm VERY keen on through testing, I also think it's important to write tests thoughtfully, in a sense to make sure that we are testing the right thing in the right place, at the right time. Especially when dealing with complex code, tests can get confusing, difficult to extend, difficult to "debug", loose descriptive nature if not developed carefully.]
One more reason why I find it more beneficial not to add another test charm, is because we will have a new test charm in my upcoming, heavyweight change -- which will require a new test charm :-)
(Sadly it won't be convenient to provide a full test coverage for the dict usage there, but if preferred I can use the dict syntax in that one :-) So that data-platform-libs provide  a charm using the syntax.).
But I think it may keep the testsuite more clean if we don't add too many test charms... as it may get confusing, difficult to follow...
(BTW regarding "real-life" functionality: of course this code is being used in the PR mentioned in the Description, functioning real well :-) Just to reassure that the proposal has been executed by actual charms, showing good results :-) )
Huh, I apologize for writing a novel here... Testing is a very important topic for me :sweat_smile:

Hmmmmm.... And another missing thing here :sweat_smile:
Those unittests we should have on the Cross-charm relation interfaces as well :facepalm:
I'm adding this missing bit as well!!!!!

repo: canonical/data-platform-libs


text:
build: install setuptools and pip in charms that are missing it

Installing these missing python packages so the charm gets the latest version of pip and setuptools.

I merge this PR as is, the kfp-api individual integration test is failing because of #243 and should be fixed soon. Merging this PR will unblock other contributions.

repo: canonical/kfp-operators