Fails to install ruby 2.4.8

Clean installation of rbenv & ruby build from the github on ubuntu 16.04
generating x86_64-linux-fake.rb
x86_64-linux-fake.rb updated
./miniruby -I./lib -I. -I.ext/common  ./tool/runruby.rb --extout=.ext  -- --disable-gems -r./x86_64-linux-fake ./tool/rbinstall.rb --make="make" --dest-dir="" --extout=".ext" --mflags="" --make-flags="" --data-mode=0644 --prog-mode=0755 --installed-list .installed.list --mantype="man" --install=all --rdoc-output=".ext/rdoc"
installing binary commands:   /home/user/.rbenv/versions/2.4.8/bin
installing base libraries:    /home/user/.rbenv/versions/2.4.8/lib
installing arch files:        /home/user/.rbenv/versions/2.4.8/lib/ruby/2.4.0/x86_64-linux
installing pkgconfig data:    /home/user/.rbenv/versions/2.4.8/lib/pkgconfig
installing command scripts:   /home/user/.rbenv/versions/2.4.8/bin
installing library scripts:   /home/user/.rbenv/versions/2.4.8/lib/ruby/2.4.0
installing common headers:    /home/user/.rbenv/versions/2.4.8/include/ruby-2.4.0
installing manpages:          /home/user/.rbenv/versions/2.4.8/share/man/man1
installing extension objects: /home/user/.rbenv/versions/2.4.8/lib/ruby/2.4.0/x86_64-linux
installing extension objects: /home/user/.rbenv/versions/2.4.8/lib/ruby/site_ruby/2.4.0/x86_64-linux
installing extension objects: /home/user/.rbenv/versions/2.4.8/lib/ruby/vendor_ruby/2.4.0/x86_64-linux
installing extension headers: /home/user/.rbenv/versions/2.4.8/include/ruby-2.4.0/x86_64-linux
installing extension scripts: /home/user/.rbenv/versions/2.4.8/lib/ruby/2.4.0
installing extension scripts: /home/user/.rbenv/versions/2.4.8/lib/ruby/site_ruby/2.4.0
installing extension scripts: /home/user/.rbenv/versions/2.4.8/lib/ruby/vendor_ruby/2.4.0
installing extension headers: /home/user/.rbenv/versions/2.4.8/include/ruby-2.4.0/ruby
installing default gems:      /home/user/.rbenv/versions/2.4.8/lib/ruby/gems/2.4.0 (build_info, cache, doc, extensions, gems, specifications)
                              bigdecimal 1.3.2
                              io-console 0.4.6
                              json 2.0.4
                              openssl 2.0.9
                              psych 2.2.2
                              rdoc 5.0.1
installing bundle gems:       /home/user/.rbenv/versions/2.4.8/lib/ruby/gems/2.4.0 (build_info, cache, doc, extensions, gems, specifications)
/tmp/ruby-build.20191003145843.264/ruby-2.4.8/lib/rubygems/package.rb:383:in `initialize': Permission denied @ rb_sysopen - /home/user/.rbenv/versions/2.4.8/lib/ruby/gems/2.4.0/gems/did_you_mean-1.1.0/.gitignore (Errno::EACCES)
	from /tmp/ruby-build.20191003145843.264/ruby-2.4.8/lib/rubygems/package.rb:383:in `open'
	from /tmp/ruby-build.20191003145843.264/ruby-2.4.8/lib/rubygems/package.rb:383:in `block (2 levels) in extract_tar_gz'
	from /tmp/ruby-build.20191003145843.264/ruby-2.4.8/lib/rubygems/package/tar_reader.rb:65:in `each'
	from /tmp/ruby-build.20191003145843.264/ruby-2.4.8/lib/rubygems/package.rb:365:in `block in extract_tar_gz'
	from /tmp/ruby-build.20191003145843.264/ruby-2.4.8/lib/rubygems/package.rb:492:in `block in open_tar_gz'
	from /tmp/ruby-build.20191003145843.264/ruby-2.4.8/lib/rubygems/package.rb:489:in `wrap'
	from /tmp/ruby-build.20191003145843.264/ruby-2.4.8/lib/rubygems/package.rb:489:in `open_tar_gz'
	from /tmp/ruby-build.20191003145843.264/ruby-2.4.8/lib/rubygems/package.rb:364:in `extract_tar_gz'
	from /tmp/ruby-build.20191003145843.264/ruby-2.4.8/lib/rubygems/package.rb:345:in `block (2 levels) in extract_files'
	from /tmp/ruby-build.20191003145843.264/ruby-2.4.8/lib/rubygems/package/tar_reader.rb:65:in `each'
	from /tmp/ruby-build.20191003145843.264/ruby-2.4.8/lib/rubygems/package.rb:342:in `block in extract_files'
	from /tmp/ruby-build.20191003145843.264/ruby-2.4.8/lib/rubygems/package/file_source.rb:30:in `open'
	from /tmp/ruby-build.20191003145843.264/ruby-2.4.8/lib/rubygems/package/file_source.rb:30:in `with_read_io'
	from /tmp/ruby-build.20191003145843.264/ruby-2.4.8/lib/rubygems/package.rb:339:in `extract_files'
	from /tmp/ruby-build.20191003145843.264/ruby-2.4.8/lib/rubygems/installer.rb:801:in `extract_files'
	from /tmp/ruby-build.20191003145843.264/ruby-2.4.8/lib/rubygems/installer.rb:302:in `install'
	from ./tool/rbinstall.rb:685:in `call'
	from ./tool/rbinstall.rb:685:in `block in <class:Installer>'
	from ./tool/rbinstall.rb:784:in `block (3 levels) in <main>'
	from /tmp/ruby-build.20191003145843.264/ruby-2.4.8/lib/rubygems/user_interaction.rb:51:in `use_ui'
	from ./tool/rbinstall.rb:784:in `block (2 levels) in <main>'
	from ./tool/rbinstall.rb:780:in `each'
	from ./tool/rbinstall.rb:780:in `block in <main>'
	from ./tool/rbinstall.rb:822:in `block in <main>'
	from ./tool/rbinstall.rb:819:in `each'
	from ./tool/rbinstall.rb:819:in `<main>'
uncommon.mk:277: recipe for target 'do-install-all' failed
make: *** [do-install-all] Error 1

versions directory is empty

Exact same problem here. Experienced on both macOS 10.14.8 and macOS 10.13.6

Ruby 2.4.8 is broken. see https://www.ruby-lang.org/en/news/2019/10/02/ruby-2-4-9-released/
Try to use 2.4.9 with https://github.com/rbenv/ruby-build/releases/tag/v20191004


Allow constomizing the log format produced by Logging{Service,Client}

The logs produced by LoggingService and LoggingClient are human-readable.
However, this non-structured text is not good when users want to store the log file to Elastic Search or other key-value storage.
We can give an extension API to users to customize the output format. For example:
interface LogFormat {
    static LogFormat ofText() {
        // return a log message formatted by the default formatter.
    }

    static LogFormat ofJson() {
        // return a log message serialized to JSON format
    }

    String format(RequestLog log, LogSanitizers sanitizers);
}

class LogSanitizers {
    BiFunction<? super RequestContext, ? super RequestHeaders, ? extends @Nullable Object> requestHeadersSanitizer;
    BiFunction<? super RequestContext, Object, ? extends @Nullable Object> requestContentSanitizer;
    ...
}

LoggingService.builder()
              // Customize the log message format using LogFormat
              .format(LogFormat.ofJson())

Hey, @ikhoon , I would like to work on this issue. Could you please assign me?

Sure! Thanks in advance. 😀

Hey, @ikhoon. I started working on this issue, and I am not sure if I understood it correctly. Could you please provide an example or give a little more information, Thank you very much in advance.

If you add LoggingService to a server or LoggingClient to a client, we can see human-readable logs produced by slf4j.
Let's you've configured server and client like the follow.
class LoggingTest {
    @RegisterExtension
    static ServerExtension server = new ServerExtension() {
        @Override
        protected void configure(ServerBuilder sb) {
            sb.decorator(LoggingService.newDecorator());
            sb.service("/", (ctx, req) -> HttpResponse.of("OK"));
        }
    };

    @Test
    void testLog() {
        final WebClient client = WebClient.builder(server.httpUri())
                                          .decorator(LoggingClient.newDecorator())
                                          .build();
        final AggregatedHttpResponse response = client.get("/").aggregate().join();
    }
}

If execute the test, you can see request and response logs.
DEBUG c.l.a.client.logging.LoggingClient - [creqId=fd9b44b1, chanId=16139b85, laddr=<IP_ADDRESS>:64606, raddr=<IP_ADDRESS>:64604][http://<IP_ADDRESS>:64604/#GET] Request: {startTime=2021-11-12T08:30:47.625Z(1636705847625000), length=0B, duration=201ms(201985644ns), scheme=none+h2c, name=GET, headers=[:method=GET, :path=/, :scheme=http, :authority=<IP_ADDRESS>:64604]}
DEBUG c.l.a.server.logging.LoggingService - [sreqId=1f4fecab, chanId=17eb907f, raddr=<IP_ADDRESS>:64606, laddr=<IP_ADDRESS>:64604][h2c://ihi.local/#GET] Request: {startTime=2021-11-12T08:30:47.836Z(1636705847836000), length=0B, duration=31272µs(31272404ns), scheme=none+h2c, name=GET, headers=[EOS, :method=GET, :path=/, :scheme=http, :authority=<IP_ADDRESS>:64604, user-agent=armeria/1.14.0-SNAPSHOT]}
DEBUG c.l.a.server.logging.LoggingService - [sreqId=1f4fecab, chanId=17eb907f, raddr=<IP_ADDRESS>:64606, laddr=<IP_ADDRESS>:64604][h2c://ihi.local/#GET] Response: {startTime=2021-11-12T08:30:47.857Z(1636705847857000), length=2B, duration=11254µs(11254624ns), totalDuration=32223µs(32223728ns), headers=[:status=200, content-type=text/plain; charset=utf-8, content-length=2]}
DEBUG c.l.a.client.logging.LoggingClient - [creqId=fd9b44b1, chanId=16139b85, laddr=<IP_ADDRESS>:64606, raddr=<IP_ADDRESS>:64604][http://<IP_ADDRESS>:64604/#GET] Response: {startTime=2021-11-12T08:30:47.863Z(1636705847863000), length=2B, duration=5586µs(5586456ns), totalDuration=246ms(246110184ns), headers=[:status=200, content-type=text/plain; charset=utf-8, server=Armeria/1.14.0-SNAPSHOT, date=Fri, 12 Nov 2021 08:30:47 GMT, content-length=2]}

The logs are easy to read but the format of logs is hard-coded and has no extension points.
The aim of this issue is to provide an extension point to customize log formats for both LoggingClient and LoggingService.

@ikhoon Thanks.

Duplicate of #3040

I realized that we need two kinds of API for LogFormat.
interface LogFormat {
    String formatRequest(RequestLog log, LogSanitizers sanitizers);

    String formatResponse(RequestLog log, LogSanitizers sanitizers);
}

@ikhoon, I started working on this issue and read through all of the comments. What exactly are your ideas to do that? Something like that https://github.com/line/armeria/issues/3040#issuecomment-685042991? Also, I feel like we need to add an "Enhancement" label 🙂

What exactly are your ideas to do that?

Requests and responses are formatted with the following methods.
https://github.com/line/armeria/blob/e08b6eabcf9f8ddf231b8744026dd5dbd6342271/core/src/main/java/com/linecorp/armeria/common/logging/DefaultRequestLog.java#L1414
https://github.com/line/armeria/blob/e08b6eabcf9f8ddf231b8744026dd5dbd6342271/core/src/main/java/com/linecorp/armeria/common/logging/DefaultRequestLog.java#L1530
Armeria provides the default format and users cannot customize the output format. If users want to log output with JSON, we can provide LogForamt.json().
// Defalut version.
Request: {startTime=2021-11-12T08:30:47.625Z(1636705847625000), length=0B, duration=201ms(201985644ns), scheme=none+h2c, name=GET, headers=[:method=GET, :path=/, :scheme=http, :authority=<IP_ADDRESS>:64604]}
// JSON version
{"startTime":"2021-11-12T08:30:47.625Z", "length":0, "duration":"201ms", "scheme":"none+h2c", "name"="GET", "headers": { ":method": "GET", ":path":"/", ":scheme": "http", ":authority":"<IP_ADDRESS>:64604"}}

May I work on this issue?

Sure ❤

@ikhoon
How about setting DefaultRequestLog as the argument of LogFormat#format to handle flags, etc.?
interface LogFormat {
    String format(DefaultRequestLog log, LogSanitizers sanitizers);
}

In the current implementation, the log generation mechanism uses the flags as follows.
https://github.com/line/armeria/blob/e08b6eabcf9f8ddf231b8744026dd5dbd6342271/core/src/main/java/com/linecorp/armeria/common/logging/DefaultRequestLog.java#L1475-L1478
I think it would be difficult to make changes while maintaining compatibility with the current log format as it is when using RequestLog  as the argument of LogFormat#format.

We can use RequestLog.isAvailable(RequestLogProperty.REQUEST_LENGTH) for this purpose.

Should we need to check the value of flags in DefaultRequestLog?
https://github.com/line/armeria/blob/e08b6eabcf9f8ddf231b8744026dd5dbd6342271/core/src/main/java/com/linecorp/armeria/common/logging/DefaultRequestLog.java#L230-L232

hasInterestedFlags(flags, RequestLogProperty.REQUEST_LENGTH) must be the same with RequestLog.isAvailable(RequestLogProperty.REQUEST_LENGTH).
By the way, flags is a volatile value. So it is bad to access it repeatedly.
How about adding an API that returns all available RequestLogPropertys?
interface RequestLogAccess {
    List<RequestLogProperty> availableProperties();
}

Hello everybody. I need to sanitize request path (it contains secret token), but currently I can't do it, because logs have format {context} Request: {log} and all the sanitizers are applied to the {log}, while  {context} contains raddr with request path.
Will this feature allow me remove the secret token in request paths from logs?


python3Packages.pytradfri: 8.0.1 -> 9.0.0

Motivation for this change
https://github.com/home-assistant-libs/pytradfri/releases/tag/9.0.0
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 158303 run on x86_64-linux 1

3 packages built:

home-assistant-component-tests.tradfri
python310Packages.pytradfri
python39Packages.pytradfri

Result of nixpkgs-review pr 158303 run on x86_64-linux 1

3 packages built:

home-assistant-component-tests.tradfri
python310Packages.pytradfri
python39Packages.pytradfri


How to zoom in or out candlestick chart

I'm trying to code the zoom-in/out function for CandleStickChart but don't know how to approach it. Can anyone who has done this function help me with this?

Hi @tomheo11233aA,
One way to achieve this is to change the data that is sent the provider. In this example my original data array has 20 elements and when the button is pressed it is reduced to the first 10 elements and gives the effect of zooming in to that part of the graph:
const data = [ ... ]; // List of 20 elements

function Example() {
  return (
    <>
      <LineChart.Provider data={data}>
        <LineChart>
          <LineChart.Path />
        </LineChart>
      </LineChart.Provider>

      {/* 'Zoom' in to the first half of the chart */}
      <Button onPress={() => setData(data.slice(0, 10))}>Zoom In</Button>

      <Button onPress={() => setData(data)}>Reset</Button>
    </>
  );
}


problem

Hi I've problem with start this ripo

can you help?

did you make the installation? I mean ./install.sh and pip3 install -r requirements.txt?

yesTemat: Re: [AzizKpln/Moriarty-Project] problem (#4)Data: 2020-05-10 0:27Nadawca: "Aziz Kaplan" Adresat: "AzizKpln/Moriarty-Project" ; DW: "shanow7" ; "Author" ;
did you make the installation? I mean ./install.sh and pip3 install -r requirements.txt?
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.

Try to install the tool again I made some changes.
I installed and I ran the tool successfully in kali2020.1 it shouldnt give an error.

I try to use install to:python  3.7.7 and 3.8.2pip 20.1Kali Linux 2020.1git clone https://github.com/AzizKpln/Moriarty-Projectchmod 755 install.sh ./install.shpip3 install -r requiremenets.txtand I've thisTemat: Re: [AzizKpln/Moriarty-Project] problem (#4)Data: 2020-05-10 12:40Nadawca: "Aziz Kaplan" Adresat: "AzizKpln/Moriarty-Project" ; DW: "shanow7" ; "Author" ;
Try to install the tool again I made some changes.
I installed and I ran the tool successfully in kali2020.1 it shouldnt give an error.
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.

Just like I said please try to install the tool again I made some changes in installation file.It seems like certifi module is not installed in your system

pip3 install certifi

should fix your issue

I installed the tool again and certifi  Temat: Re: [AzizKpln/Moriarty-Project] problem (#4)Data: 2020-05-10 18:25Nadawca: "Aziz Kaplan" Adresat: "AzizKpln/Moriarty-Project" ; DW: "shanow7" ; "Author" ;
Just like I said please try to install the tool again I made some changes in installation file.It seems like certifi module is not installed in your system
pip3 install certifi
should fix your issue
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.

I don't understand you can you write more clearly?

I installed the tool again, I also installed pip3 install certifi and nothing changed, in the attachment I sent a screenshot of the problem with running Temat: Re: [AzizKpln/Moriarty-Project] problem (#4)Data: 2020-05-10 19:07Nadawca: "Aziz Kaplan" Adresat: "AzizKpln/Moriarty-Project" ; DW: "shanow7" ; "Author" ;
I don't understand you can you write more clearly?
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.

I removed the requests module from the tool you can try to install it again it looks like error is because of requests module

thx is ok :) Temat: Re: [AzizKpln/Moriarty-Project] problem (#4)Data: 2020-05-10 19:30Nadawca: "Aziz Kaplan" Adresat: "AzizKpln/Moriarty-Project" ; DW: "shanow7" ; "Author" ;
I removed the requests module from the tool you can try to install it again it looks like error is because of requests module
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.

it is solved

hi,the program has been successfully installed but does not return results, screenshot is attached Temat: Re: [AzizKpln/Moriarty-Project] problem (#4)Data: 2020-05-10 12:40Nadawca: "Aziz Kaplan" Adresat: "AzizKpln/Moriarty-Project" ; DW: "shanow7" ; "Author" ;
Try to install the tool again I made some changes.
I installed and I ran the tool successfully in kali2020.1 it shouldnt give an error.
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.


A simple example of communicating between worker?

Let's say I want to send a message from a worker to another one, how do I do so?
Of course, I can make them all TCP worker and POST around, but's that really overkill, and don't give me anyway to queue anything.
I suppose that sharing data between worker is not the primary goal of pistil, and that I could use a message lib such as kombu to do so, but it can be overkill: either you use Sqlite and forget concurrent writting, or use use something more multiprocess friendly and you have to install Redis/RabitMQ, whatever.
The Python multiprocess module got queues for that: http://docs.python.org/library/multiprocessing.html?highlight=multiprocessing#exchanging-objects-between-processes
What would be the pistil equivalent?
Anyway, great software, making worker that simpler in Python is just huge.

I was thinking to use zeromq to handle that and more, this is the full point of the flower project that I expect to release in january.
Other way would be to use a named pipe shared between process. The second one would be written entirely in python, but using zeromq or equivalent may be easier. I'm not sure what's the best to use actually.

I have nothing against zeroMQ, pure Python is rarerly a hard requirement and pyzmq is not the hardest dependancy to install.
Just an example on how to make zeroMQ mainloop and the worker main loop play nice together could be great.
If you are looking for pure Python queue, maybe SnakeMQ is worth to loot at (http://www.snakemq.net/). Seems young though.


Switch to reference delegates for garbage collection

This PR switches away from FSTGarbageCollector and instead uses reference delegates at the persistence level. Eager garbage collection remains implemented for the memory persistence via FSTEagerReferenceDelegate.  However, the bookkeeping is being done for it so that it can be triggered later.
Some tests, particularly spec tests and local store tests, required tweaking or skipping under certain GC schemes, as the tests highlighted different behavior in different circumstances.
Apologies for the giant review.

Verified integration tests pass.

I did a refactor of the LRU tests here: #1433. Everything else was addressed in this branch.

Merge target updated to lru branch, branched off of current master.


Order of autogenerated references

Currently, auto-generated references (those derived from inline data in the text, like RFCs or DOI identifiers) appear in the References section in the order in which they first appear in the document.
I've received requests to order references alphabetically for multiple documents lately (also for draft-ietf-dprive-unilateral-probing).  Is there a way to ask kramdown-rfc to order the references in numerical order rather than document order, or do i need to make a manual listing in the references section?

xml2rfc does that for you, as per "sortrefs".
RFCXML has an indefensible default for this: no.
Set it to yes in pi:, or let
v: 3
do this and a few other useful things for you.

huh, interesting.  i was passing --v3  to kramdown-rfc on the command line, and i didn't know that v: 3 in the metadata block would do this additional behavior.  Should kramdown-rfc --v3 also explicitly set this to "yes"?

Maybe calling it "v: 3" was confusing, as this ist mostly a package of settings that you want to do for v3 but that cannot be default for backwards compatibility reasons.  (--v3 has been default since 2022-02-22T22:02:22.)

Well, DRY is fine, but supporting dusty decks is fine, too (and v: 3 is a declaration that you aren't a dusty deck).
v: 3 mostly does three things right now:
  ps.default!(:stand_alone, true)
  ps.default!(:ipr, "trust200902")
  ps.default!(:pi,  {"toc" => true, "sortrefs" => true, "symrefs" => true})

So you can get rid of all three poeces of boilerplte in exchange for putting in one, easy to remember on.

good call.  I've done that now, which reduced my boilerplate.  thanks :)


Checkpoints vid add

Adding Milecia's Checkpoints video to the doc.

@jorgeorpinel Can we merge this now?


Custom Attention Layer using in Keras

I want to create a custom attention layer that for input at any time this layer returns the weighted sum of inputs at all times.
For Example, I want that input tensor with shape [32,100,2048] goes to layer and I get the tensor with the shape [32,100,2048]. I wrote the Layer as follow:
import tensorflow as tf
from keras.layers import Layer, Dense, Lambda
#or
from tensorflow.keras.layers import Layer, Dense, Lambda
class Attention(Layer):
def init(self, units_att):
 self.units_att = units_att
 self.W = Dense(units_att)
 self.V = Dense(1)
 super().__init__()

def call(self, values):
  t = tf.constant(0, dtype= tf.int32)
  time_steps = tf.shape(values)[1]
  initial_outputs = tf.TensorArray(dtype=tf.float32, size=time_steps, element_shape= (None, 2048))
  initial_att =  tf.TensorArray(dtype=tf.float32, size=time_steps)

  def should_continue(t, *args):
      return t < time_steps

  def iteration(t, x, outputs, atts):

    score = self.V(tf.nn.tanh(self.W(x)))

    # attention_weights shape == (batch_size, time_step, 1)
    attention_weights = tf.nn.softmax(score, axis=1)

    # context_vector shape after sum == (batch_size, hidden_size)
    context_vector = attention_weights * x
    context_vector = tf.reduce_sum(context_vector, axis=1)

    outputs = outputs.write(t, context_vector)
    atts = atts.write(t, attention_weights)

    return t + 1, x, outputs, atts

  t, values, outputs, atts = Lambda( lambda x: tf.while_loop(should_continue, iteration,
                              [t, x, initial_outputs, initial_att]))(values)

  outputs = outputs.stack()
  outputs = tf.transpose(outputs, [1,0,2])
  outputs.set_shape(values.shape)

  atts = atts.stack()
  atts = tf.squeeze(atts, -1)
  atts = tf.transpose(atts, [1,0,2])
  atts.set_shape([values.shape[0], values.shape[1],
                  values.shape[1]])
  return t, values, outputs, atts

values = tf.constant(2, shape= [32, 100, 2048], dtype= tf.float32)
attention_layer = Attention(50)
t, values, outputs, atts = attention_layer(values) #AttributeError: 'tuple' object has no attribute 'shape'.
I use tf 1.14 and keras 2.3.1
Thanks for any help...

@hassancpu ,
Can you please try the latest versions of tf and keras and let us know if the issue still persists.Thanks!


HDDS-3316. Checkstyle check fails silently in case of mvn related errors

What changes were proposed in this pull request?
rom the last master build:
https://github.com/apache/hadoop-ozone/runs/550746880?check_suite_focus=true
Checkstyle is failed due to a maven error:
[ERROR] Failed to execute goal on project hadoop-hdds-common: Could not resolve dependencies for project org.apache.hadoop:hadoop-hdds-common:jar:0.6.0-SNAPSHOT: Could not find artifact org.apache.hadoop:hadoop-hdds-config:jar:0.6.0-SNAPSHOT in apache.snapshots.https (https://repository.apache.org/content/repositories/snapshots) -> [Help 1]
[ERROR] Failed to execute goal on project hadoop-hdds-client: Could not resolve dependencies for project org.apache.hadoop:hadoop-hdds-client:jar:0.6.0-SNAPSHOT: The following artifacts could not be resolved: org.apache.hadoop:hadoop-hdds-common:jar:0.6.0-SNAPSHOT, org.apache.hadoop:hadoop-hdds-config:jar:0.6.0-SNAPSHOT: Could not find artifact org.apache.hadoop:hadoop-hdds-common:jar:0.6.0-SNAPSHOT in apache.snapshots.https (https://repository.apache.org/content/repositories/snapshots) -> [Help 1]

But it remained green.
We should fail the check if the maven run couldn't succeed.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-3316
Please replace this section with the link to the Apache JIRA)
How was this patch tested?
hadoop-ozone/dev-support/checks/checkstyle.sh
echo $?

Create a syntax error in your pom.xml (expected: exit code 1, without the patch: 0)
Create a checkstyle error (expected: exit code 1)
Fix the checkstyle error (expected: exit code 0)

Thanks the review @adoroszlai. Merged it to master.


try to finalize vote before withdrawing tokens

Yeah we should use the multi-tx helper here :)
On Tue, Dec 7, 2021 at 9:25 PM Sebastian Bor @.***>
wrote:

@.**** commented on this pull request.
The Finalise instruction should also be called when user calls Release
Tokens directly from the proposal
In components/TokenBalanceCard.tsx
https://github.com/blockworks-foundation/governance-ui/pull/116#discussion_r764329594
:

@@ -194,10 +199,27 @@ const TokenDeposit = ({
// If the Proposal is in Voting state refetch it to make sure we have the latest state to avoid false positives
proposal = await getProposal(connection, proposal.pubkey)
if (proposal.info.state === ProposalState.Voting) {

       // Note: It's technically possible to withdraw the vote here but I think it would be confusing and people would end up unconsciously withdrawing their votes

       throw new Error(

         `Can't withdraw tokens while Proposal ${proposal.info.name} is being voted on. Please withdraw your vote first`

       const governance = await getGovernance(

nit: There is no need to fetch governance from the chain here, you can use {governances}
= useRealm() to get all the governances for the given realm
In components/TokenBalanceCard.tsx
https://github.com/blockworks-foundation/governance-ui/pull/116#discussion_r764335590
:

         )

       if (proposal.info.getTimeToVoteEnd(governance.info) > 0) {

         // Note: It's technically possible to withdraw the vote here but I think it would be confusing and people would end up unconsciously withdrawing their votes

         throw new Error(

           `Can't withdraw tokens while Proposal ${proposal.info.name} is being voted on. Please withdraw your vote first`

         )

       } else {

         // finalize proposal before withdrawing tokens so we don't stop the vote from succeeding

         await withFinalizeVote(

We are increasing the chance of going over the transaction size limit and
the withdraw operation failing.
I've tested that we can have up to 9 RelinquishVote + Withdrawinsructions
in one transaction, so maybe we could partition it?
Could we use the multi transaction logic here? Or even if we ask the user
to sign multiple times then it would be still better than silently failing
on Withdraw
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/blockworks-foundation/governance-ui/pull/116#pullrequestreview-825733007,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AABDF7E7D2GOAPRXYPNMTV3UPZUT5ANCNFSM5JR3PXSQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.


Unable to load whisper on venv

Way to reproduce:
cd /tmp
python3.9 -m venv ./venv3.9
source venv3.9/bin/activate
pip install buzz-captions

Stacktrace:
[2023-12-23 18:44:25,330] transcriber.<module>:41 ERROR ->
Traceback (most recent call last):
  File "/tmp/venv3.9/lib/python3.9/site-packages/buzz/transcriber.py", line 37, in <module>
    import buzz.whisper_cpp as whisper_cpp
  File "/tmp/venv3.9/lib/python3.9/site-packages/buzz/whisper_cpp.py", line 863, in <module>
    _libs["whisper"] = load_library("whisper")
  File "/tmp/venv3.9/lib/python3.9/site-packages/buzz/whisper_cpp.py", line 551, in __call__
    raise ImportError("Could not load %s." % libname)
ImportError: Could not load whisper.
Traceback (most recent call last):
  File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/tmp/venv3.9/lib/python3.9/site-packages/buzz/__main__.py", line 4, in <module>
    buzz.buzz.main()
  File "/tmp/venv3.9/lib/python3.9/site-packages/buzz/buzz.py", line 56, in main
    from buzz.cli import parse_command_line
  File "/tmp/venv3.9/lib/python3.9/site-packages/buzz/cli.py", line 7, in <module>
    from buzz.widgets.application import Application
  File "/tmp/venv3.9/lib/python3.9/site-packages/buzz/widgets/application.py", line 8, in <module>
    from buzz.widgets.main_window import MainWindow
  File "/tmp/venv3.9/lib/python3.9/site-packages/buzz/widgets/main_window.py", line 21, in <module>
    from buzz.widgets.main_window_toolbar import MainWindowToolbar
  File "/tmp/venv3.9/lib/python3.9/site-packages/buzz/widgets/main_window_toolbar.py", line 18, in <module>
    from buzz.widgets.recording_transcriber_widget import RecordingTranscriberWidget
  File "/tmp/venv3.9/lib/python3.9/site-packages/buzz/widgets/recording_transcriber_widget.py", line 31, in <module>
    from buzz.widgets.transcriber.transcription_options_group_box import (
  File "/tmp/venv3.9/lib/python3.9/site-packages/buzz/widgets/transcriber/transcription_options_group_box.py", line 12, in <module>
    from buzz.widgets.transcriber.advanced_settings_dialog import AdvancedSettingsDialog
  File "/tmp/venv3.9/lib/python3.9/site-packages/buzz/widgets/transcriber/advanced_settings_dialog.py", line 17, in <module>
    class AdvancedSettingsDialog(QDialog):
  File "/tmp/venv3.9/lib/python3.9/site-packages/buzz/widgets/transcriber/advanced_settings_dialog.py", line 22, in AdvancedSettingsDialog
    self, transcription_options: TranscriptionOptions, parent: QWidget | None = None
TypeError: unsupported operand type(s) for |: 'PyQt6.sip.wrappertype' and 'NoneType'

Looks like switching to python3.10 fixes problem with whisper import, but still crashing while using live recording with "medium"-sized model with such error:
RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory
Fatal Python error: Aborted

Current thread 0x00007ff6a27fc6c0 (most recent call first):
  <no Python frame>

Thread 0x00007ff6a2ffd6c0 (most recent call first):
  <no Python frame>

Thread 0x00007ff6b3fff6c0 (most recent call first):
  File "/usr/lib/python3.10/threading.py", line 320 in wait
  File "/usr/lib/python3.10/queue.py", line 171 in get
  File "/tmp/venv/lib/python3.10/site-packages/buzz/file_transcriber_queue_worker.py", line 39 in run

Thread 0x00007ff78d010740 (most recent call first):
  File "/tmp/venv/lib/python3.10/site-packages/buzz/buzz.py", line 61 in main
  File "/tmp/venv/lib/python3.10/site-packages/buzz/__main__.py", line 4 in <module>
  File "/usr/lib/python3.10/runpy.py", line 86 in _run_code
  File "/usr/lib/python3.10/runpy.py", line 196 in _run_module_as_main

Please see local setup instructions here https://github.com/chidiwilliams/buzz/blob/main/CONTRIBUTING.md and try with poetry
For GitHub action builds we use python 3.10.11, that works. On my local I have 3.10.12, it also works.
Reopen if still an issue


Feature request: open Notebook without making a copy

I managed to use the open existing notebook using type : notebook it creates a new notebook for me and I can run it.
However, since it creates a copy of the notebook all the links and images are broken as my notebook is in another sub folder. I could have fixed with the cmd option to launch from a certain subfolder. unfortunately it is disabled
I guess the ask can be simpler if we can just add links/shortcuts to open existing notebooks from subfolders instead of copying then launching.

Thanks for your feedback, can you close the issues which are resolved?

Due to the limit of the Jupyter server, opening a notebook located outside of the root path of the server is not allowed.


Accessing the request sent to Alexa

Hello,
I'm using Jovo to build a skill for Alexa that tells you what streaming services (e.g Netflix, Hulu) a certain show is on.
I would like to be able to log the request sent to the Alexa API for my logging/debugging purposes.
How can I do this?
This is the request that the Alexa API says was sent one of my queries
{
	"body": {
		"version": "1.0",
		"response": {
			"outputSpeech": {
				"type": "SSML",
				"ssml": "<speak>I'm now going to look up the flash</speak>"
			},
			"shouldEndSession": true
		},
		"sessionAttributes": {}
	}
}

Logging of both the incoming request from Alexa (requestLogging) and the response (the request sent back to Alexa, responseLogging) should be enabled by default in the sample voice app, see here: https://github.com/jovotech/jovo-sample-voice-app-nodejs/blob/master/app/app.js#L9
const config = {
    logging: true,
};

Was it this you're looking for or are you looking for a little more flexibility?

Just added an onRequest and onResponse listener.
app.onRequest((jovo) => {
    console.log(jovo.getRequestObject());
});

app.onResponse((jovo) => {
    console.log(jovo.getResponseObject());
});


New option for virtualbox driver to set custom shared folder

I'm an OSX user, who has his $HOME outside /Users. It was moved to a secondary hard drive.
With this setup, I had difficulties using docker volumes, so I've added a new parameter to docker-machine's virtualbox driver that I can use to specify the location of my alternative /Users directory.
The format is --virtualbox-share-folder /path/to/folder:sharename. Automatic mounting currently only works with sharename == Users, for custom sharenames some work is needed on the boot2docker side1.
(My previous pull request #2100 was successfully ruined by sourcetree and me together...)

Please sign your commits following these rules:
https://github.com/docker/docker/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:
$ git clone -b "feature/custom-share-virtualbox" git@github.com:u-foka/machine.git somewhere
$ cd somewhere
$ git commit --amend -s --no-edit
$ git push -f

Amending updates the existing PR. You DO NOT need to open a new one.

Please sign your commits following these rules:
https://github.com/docker/docker/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:
$ git clone -b "feature/custom-share-virtualbox" git@github.com:u-foka/machine.git somewhere
$ cd somewhere
$ git commit --amend -s --no-edit
$ git push -f

Amending updates the existing PR. You DO NOT need to open a new one.

Are you going to also put in a PR to boot2docker/boot2docker?

I already have a PR for boot2docker: https://github.com/boot2docker/boot2docker/pull/1088

Hey, any idea what it would take to get this merged?

We'd like to include it with 0.9.0 -- @u-foka could you please rebase?

a PR will also need to be turned in for documentation vnext-machine branch to https://github.com/docker/docker.github.io

Thanks for the update @nathanleclaire.
@u-foka let me know if you don't have time to finish this up, I can help out if you'd like.

Hy, I can rebase it and look into the trevis error today, but give me some time, I've just woken up :)

Please sign your commits following these rules:
https://github.com/docker/docker/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:
$ git clone -b "feature/custom-share-virtualbox" git@github.com:u-foka/machine.git somewhere
$ cd somewhere
$ git rebase -i HEAD~842354368136
editor opens
change each 'pick' to 'edit'
save the file and quit
$ git commit --amend -s --no-edit
$ git rebase --continue # and repeat the amend for each commit
$ git push -f

Amending updates the existing PR. You DO NOT need to open a new one.

Ok, I've fixed what I've broke, but what to do with all those "error strings should not be capitalized or end with punctuation or a newline" errors?

Looks like unrelated go-lint issues (they might have changed it upstream).  I'll take a look at fixing them independently since I think they're unrelated.

LGTM
@u-foka please remember to do this:

a PR will also need to be turned in for documentation vnext-machine branch to https://github.com/docker/docker.github.io

Thanks for your contribution!


not working properly inside accordion

When the codemirror is inside the accordion and if lineNumbers is set to true then the data entered overlaps with the line numbers. Also if theres any data that is already available then it doesn't appear at first, it only appears when I click inside the codemirror and again, it overlaps with the line numbers.

not an issue with this component, that's just codemirror


Fixed the cicd workflow: removed the code scanning issue: Expression injection in Actions

Fixed the cicd workflow: removed the code scanning issue: Expression injection in Actions

Closes #71


VScode is slow to startup on ubuntu 20.04 with NVIDIA 4050 graphics card

:warning: We have copied additional data to your clipboard. Make sure to paste here. :warning:
:warning: Make sure to attach these files from your home-directory: :warning:
-prof-CNjrK1Oq.main.cpuprofile.txt

-prof-CNjrK1Oq.renderer.cpuprofile.txt
prof-CNjrK1Oq.main.cpuprofile.txt
prof-CNjrK1Oq.renderer.cpuprofile.txt

The profiles don't point out anything specific. Can you share the contents of "F1 > Startup Performance"

Thanks. It seems that creating the renderer is v e r y slow for you. This is something that happens inside Electron, sometimes caused by AV software. Forwarding to @deepak1556 for comment

| What                                                            | Duration | Process                   | Info                                                       |
| --------------------------------------------------------------- | -------- | ------------------------- | ---------------------------------------------------------- |
| start => app.isReady                                            | 95       | [main]                    | initial startup: true                                      |
| nls:start => nls:end                                            | 3        | [main]                    | initial startup: true                                      |
| require(main.bundle.js)                                         | 39       | [main]                    | initial startup: true                                      |
| start crash reporter                                            | 2        | [main]                    | initial startup: true                                      |
| serve main IPC handle                                           | 1        | [main]                    | initial startup: true                                      |
| create window                                                   | 23       | [main]                    | initial startup: true, state: 0ms, widget: 22ms, show: 0ms |
| app.isReady => window.loadUrl()                                 | 84       | [main]                    | initial startup: true                                      |
| window.loadUrl() => begin to require(workbench.desktop.main.js) | 89619    | [main->renderer]          | NewWindow                                                  |
| require(workbench.desktop.main.js)                              | 178      | [renderer]                | cached data: YES, node_modules took 0ms                    |
| wait for window config                                          | 1        | [renderer]                | -                                                          |
| init storage (global & workspace)                               | 11       | [renderer]                | -                                                          |

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!

Sorry missed this, can you perform the following steps to help us get a runtime trace,

Closing all running instances of VSCode
Start a new instance with the following arguments code --trace --trace-category-filter="base,benchmark,browser,blink,blink.net,blink.resource,evdev,gpu,ipc,latency,mojom,navigation,navigation.debug,renderer,renderer_host,shell,startup,toplevel,v8,disabled-by-default-base,disabled-by-default-blink.debug,disabled-by-default-mojom"
Once the editor is fully loaded, open command palette  and run Developer: Stop Tracing, this will generate a trace and provide you the path at which the trace was saved. Attach it to this issue thread.

Hello, the trace file was 116 MB which is too large to attach to the thread. I have put it on google drive and shared it with this link: https://drive.google.com/file/d/1ebY7JGKkhW4NrFwmLfng8JEotS7UZCUA/view?usp=sharing

I also experience super slow (if at all) startup and just a blank screen. I've tried with both snap packages and .deb on Ubuntu 23.04.
I also have an nvidia gpu
02:00.0 3D controller: NVIDIA Corporation TU117M [GeForce MX550] (rev a1)

@deepak1556 Any updates on this?

Still slow
Den tors 29 feb. 2024 20:07Andrew Zhang @.***> skrev:

@deepak1556 https://github.com/deepak1556 Any updates on this?
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/vscode/issues/203643#issuecomment-1971787691,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAGPVKYRYCWZQK3QOULEA3LYV557DAVCNFSM6AAAAABCORVWQ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZRG44DONRZGE
.
You are receiving this because you commented.Message ID:
@.***>

Hey @deepak1556, this issue might need further attention.
@andy-zhang201, you can help us out by closing this issue if the problem no longer exists, or adding more information.

I removed the Nvidia drivers for the graphics card and installed Nouveau drivers and it fixed the issue. Still think there might be a problem with Nvidia drivers but I will close the issue for now.


Adds the Admin Metrics REST endpoint

This also bumps the version.

Pull Request Test Coverage Report for Build 395

18 of 18 (100.0%)  changed or added relevant lines in 3 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.4%) to 73.534%

Totals

Change from base Build 391:
0.4%

Covered Lines:
853

Relevant Lines:
1160

💛  - Coveralls


Mockup needed for status dropdown needs feedback on failure

Mockup needed for #1775

Here are a few options. I don't really feel strongly about any of them in particular.

I like these two

Ditto to abe's likes.
A couple questions:

do we know in the message associated with the error state why exactly it failed? and can we show if that's the case
if we don't/won't know, and failure state is unrecoverable, should we link to open a support ticket? should also open with linode id selected
how does the failure state resolve once fixed?

@mparke I don't think we have any more errors to report right now. But if we did I think we could just show it in the text bubble.

Closing for now.

After thinking on it a bit more, some pros / cons:
Pros for positioning alert by the notification icon:

Doesn't duplicate information in multiple places
If the user navigates away from the Linodes section, they still get a bigger notification that the job failed
A little more flexible across other parts of the site that may have jobs triggered in places other than their equivalent StatusDropdown

Pros for positioning alert by the StatusDropdown:

It's nearer the event that triggered the failure (only if they don't use the mass dropdown, but even then it's still associated near the row and where power status is displayed)


Timestamps Type and Global Inclusion

This PR does a few things with Neo4j::Config and timestamps.
First, I added a method timestamp_type to allow users to configure their default timestamps globally. Currently, it defaults to DateTime, but users can easily specify Integer or Date as they please. This involved a small refactor in DeclaredProperty#register_magic_property, but all the logic is pretty straightforward.
Second, I added Neo4j::Config.record_timestamps for Rails-inspired ease. It defaults to false, but if set to true, all ActiveNode and ActiveRel models will include the timestamps module.
Thanks for all the help! Please let me know if you have any questions/thoughts.

@subvertallchris suggested I include documentation for this PR. To resolve merge conflicts, I added docs/_exts/hidden_code_block.pyc to the gitignore file.

I made a couple of comments, but this all seems straightforward!  Thanks for the docs!  I won't be around tonight but I'd be happy to merge this tomorrow.
The only other thing that I can think of is to have a CHANGELOG.md entry (according to the http://keepachangelog.com/ standard).  If you don't have time I'll throw it in after merging.
Thanks!

Actually, since I already looked it over I'm not sure why I didn't just merge this... ;)  It's in master and should come out in 5.2.0 on Friday.  Thanks again!


GCE plugin fails when creating windows hosts if using application default auth

The 'Prepare Windows User' will set the env variable GOOGLE_APPLICATION_CREDENTIALS to an empty string when the molecule_yml.driver.service_account_file/GCP_SERVICE_ACCOUNT_FILE is undefined (which it commonly is when using auth_kind: application). windows_auth.py then fails to find the application credentials json file since GOOGLE_APPLICATION_CREDENTIALS is ""
https://github.com/ansible-community/molecule-plugins/blob/196ed1eb034ebf343a270102179c98e84f49eb71/src/molecule_plugins/gce/playbooks/tasks/create_windows_instance.yml#L64C44-L64C44

I think this could be resolved by either not setting GOOGLE_APPLICATION_CREDENTIALS

if molecule_yml.driver.auth_kind == 'application'
or
both molecule_yml.driver.service_account_file/GCP_SERVICE_ACCOUNT_FILE is empty, since they shouldn't be allowed to be set when using auth_kind: application.

@donovan-prehn
Would you mind submitting a PR to fix this issue?


Redirect pendmoves and regjump dl links

Docs Build status updates of commit 00b79f7:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

sysinternals/downloads/index.md
:white_check_mark:Succeeded
View

sysinternals/downloads/pendmoves.md
:white_check_mark:Succeeded
View

sysinternals/downloads/regjump.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Autocomplete from dot

Is it possible to autocomplete from the . (dot) of the property accessor?
In short, I'd like to write something equivalent to this simplified example
// @noErrors
const obj = {
    alpha() { }
    beta() { }
    gamma() { }
};

obj.
//  ^|

and have alpha, beta, and gamma populated in the list.
I'm trying to demonstrate in my tutorial that an object I generate is limited to certain properties and if this were working it would be an excellent way to do that. As things are, this is what I see:

Thanks for taking a look.

Agree, this is a bug all the way at ts-twoslash level - I think this is just a case I didn't account for (as I did want the prefix in all my usecases)


container: Rework API and model around "base commit" and "merge commit"

containers: Expose a state struct with base commit and layering state
This is actually quite analogous to what rpm-ostree does internally;
a lot of the internals there distinguish "base" versus "layered"
commits, and this is very similar.
Here, when we import a non-layered image, we can mostly
ignore the merge commit since all it has is the image manifest.
The base image layer ref is the encapsulated ostree commit with
all the metadata injected by (rpm-)ostree in the non-layered case.
Add an API which exposes this as a struct, and also return it
from the importer's AlreadyPresent case.

container: Change import result case to contain state struct
Notably, this also stops exposing the ostree ref for the merge commit,
which I think is a good idea in general since it should be thought
of more as an implementation detail.
In other words, this module speaks container image references
and ostree commits.

container/deploy: Use base commit if we're not layered
If we're not doing a layered image, then use the base commit
for the deployment.
Closes: https://github.com/ostreedev/ostree-rs-ext/issues/143

container/deploy: Also write ref with target if provided
With this new emphasis on "dual commit objects" for the container
deployment, the higher level code queries via container image references
and we don't expose the ostree ref (since there is no longer a single
one).
This makes it critical to write the internal ref matching the
target container image, because it now needs to match the origin.

I've updated https://github.com/coreos/rpm-ostree/pull/3139 to use this, and https://github.com/coreos/coreos-assembler/pull/2523 is also updated and I've tested them all together.


HADOOP-18060.RPCMetrics increases the number of handlers in processing.

Description of PR
Now we can't see how many Handlers in RPC are actually being used. It would be very helpful to see this information directly through RPCMetrics.
The purpose of this pr is to solve this problem.
Details: HDFS-16394
How was this patch tested?
This needs to be tested.
When accessing RPC, you need to know how many handlers are being used based on RPCMetrics.

Here are some data that has been verified.

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
0m 37s

Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s

No case conflicting files found.

+0 :ok:
codespell
0m  0s

codespell was not available.

+1 :green_heart:
@author
0m  0s

The patch does not contain any @author tags.

+1 :green_heart:
test4tests
0m  0s

The patch appears to include 1 new or modified test files.

_ trunk Compile Tests _

+1 :green_heart:
mvninstall
32m 23s

trunk passed

+1 :green_heart:
compile
22m 11s

trunk passed with JDK Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04

+1 :green_heart:
compile
19m 23s

trunk passed with JDK Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10

+1 :green_heart:
checkstyle
1m 10s

trunk passed

+1 :green_heart:
mvnsite
1m 44s

trunk passed

+1 :green_heart:
javadoc
1m 13s

trunk passed with JDK Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04

+1 :green_heart:
javadoc
1m 43s

trunk passed with JDK Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10

+1 :green_heart:
spotbugs
2m 31s

trunk passed

+1 :green_heart:
shadedclient
22m  6s

branch has no errors when building and testing our client artifacts.

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
0m 59s

the patch passed

+1 :green_heart:
compile
21m 49s

the patch passed with JDK Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04

+1 :green_heart:
javac
21m 49s

the patch passed

+1 :green_heart:
compile
19m 57s

the patch passed with JDK Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10

+1 :green_heart:
javac
19m 57s

the patch passed

+1 :green_heart:
blanks
0m  0s

The patch has no blanks issues.

-0 :warning:
checkstyle
1m  7s
/results-checkstyle-hadoop-common-project_hadoop-common.txt
hadoop-common-project/hadoop-common: The patch generated 11 new + 215 unchanged - 0 fixed = 226 total (was 215)

+1 :green_heart:
mvnsite
1m 38s

the patch passed

+1 :green_heart:
javadoc
1m 10s

the patch passed with JDK Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04

+1 :green_heart:
javadoc
1m 45s

the patch passed with JDK Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10

-1 :x:
spotbugs
2m 42s
/new-spotbugs-hadoop-common-project_hadoop-common.html
hadoop-common-project/hadoop-common generated 1 new + 0 unchanged - 0 fixed = 1 total (was 0)

+1 :green_heart:
shadedclient
22m 17s

patch has no errors when building and testing our client artifacts.

_ Other Tests _

+1 :green_heart:
unit
17m 26s

hadoop-common in the patch passed.

+1 :green_heart:
asflicense
0m 59s

The patch does not generate ASF License warnings.

197m  0s

Reason
Tests

SpotBugs
module:hadoop-common-project/hadoop-common

Unread field:Server.java:[line 3081]

Subsystem
Report/Notes

Docker
ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3822/1/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/3822

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell

uname
Linux b984d8b94610 4.15.0-156-generic #163-Ubuntu SMP Thu Aug 19 23:31:58 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/bin/hadoop.sh

git revision
trunk / 93c168d209b11a91e6871c204b50b7e380b20442

Default Java
Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10

Multi-JDK versions
/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10

Test Results
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3822/1/testReport/

Max. process+thread count
2131 (vs. ulimit of 5500)

modules
C: hadoop-common-project/hadoop-common U: hadoop-common-project/hadoop-common

Console output
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3822/1/console

versions
git=2.25.1 maven=3.6.3 spotbugs=4.2.2

Powered by
Apache Yetus 0.14.0-SNAPSHOT https://yetus.apache.org

This message was automatically generated.

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
0m 38s

Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s

No case conflicting files found.

+0 :ok:
codespell
0m  1s

codespell was not available.

+1 :green_heart:
@author
0m  0s

The patch does not contain any @author tags.

+1 :green_heart:
test4tests
0m  1s

The patch appears to include 1 new or modified test files.

_ trunk Compile Tests _

+1 :green_heart:
mvninstall
32m 14s

trunk passed

+1 :green_heart:
compile
21m 58s

trunk passed with JDK Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04

+1 :green_heart:
compile
19m 18s

trunk passed with JDK Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10

+1 :green_heart:
checkstyle
1m  8s

trunk passed

+1 :green_heart:
mvnsite
1m 40s

trunk passed

+1 :green_heart:
javadoc
1m 14s

trunk passed with JDK Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04

+1 :green_heart:
javadoc
1m 42s

trunk passed with JDK Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10

+1 :green_heart:
spotbugs
2m 28s

trunk passed

+1 :green_heart:
shadedclient
22m  4s

branch has no errors when building and testing our client artifacts.

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
0m 59s

the patch passed

+1 :green_heart:
compile
21m 20s

the patch passed with JDK Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04

+1 :green_heart:
javac
21m 20s

the patch passed

+1 :green_heart:
compile
19m 22s

the patch passed with JDK Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10

+1 :green_heart:
javac
19m 22s

the patch passed

+1 :green_heart:
blanks
0m  1s

The patch has no blanks issues.

+1 :green_heart:
checkstyle
1m  9s

the patch passed

+1 :green_heart:
mvnsite
1m 38s

the patch passed

+1 :green_heart:
javadoc
1m 11s

the patch passed with JDK Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04

+1 :green_heart:
javadoc
1m 44s

the patch passed with JDK Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10

+1 :green_heart:
spotbugs
2m 37s

the patch passed

+1 :green_heart:
shadedclient
22m 23s

patch has no errors when building and testing our client artifacts.

_ Other Tests _

-1 :x:
unit
17m 23s
/patch-unit-hadoop-common-project_hadoop-common.txt
hadoop-common in the patch passed.

+1 :green_heart:
asflicense
0m 57s

The patch does not generate ASF License warnings.

195m 26s

Reason
Tests

Failed junit tests
hadoop.ipc.TestIPC

Subsystem
Report/Notes

Docker
ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3822/2/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/3822

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell

uname
Linux 9f4a1d39394a 4.15.0-156-generic #163-Ubuntu SMP Thu Aug 19 23:31:58 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/bin/hadoop.sh

git revision
trunk / 9f4fb7288489d82a9146c97a19741089fc75ec23

Default Java
Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10

Multi-JDK versions
/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10

Test Results
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3822/2/testReport/

Max. process+thread count
2152 (vs. ulimit of 5500)

modules
C: hadoop-common-project/hadoop-common U: hadoop-common-project/hadoop-common

Console output
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3822/2/console

versions
git=2.25.1 maven=3.6.3 spotbugs=4.2.2

Powered by
Apache Yetus 0.14.0-SNAPSHOT https://yetus.apache.org

This message was automatically generated.

Thank you very much @virajjasani .
Could you help review this pr, @ayushtkn @ferhui  .

Thanks @ayushtkn  for the comment and review.
When the call needs to be called again into the queue, this means that the Handler will give up the call, and numInProcessHandler will first decrease by 1. For example:
finally {           CurCall.set(null);           numInProcessHandler.decrementAndGet();           IOUtils.cleanupWithLogger(LOG, traceScope);
When the Handler gets a new call, numInProcessHandler will execute the new process again.
In general, numInProcessHandler will tend to a stable state.

Thank you @jianghuazhu for your patch. Would you update Metrics.md as well to reflect the new metric to the document?

Thank you @aajisaka  for your comments and reviews.
I will update it later.

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
0m 38s

Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s

No case conflicting files found.

+0 :ok:
codespell
0m  0s

codespell was not available.

+0 :ok:
markdownlint
0m  0s

markdownlint was not available.

+1 :green_heart:
@author
0m  0s

The patch does not contain any @author tags.

+1 :green_heart:
test4tests
0m  0s

The patch appears to include 1 new or modified test files.

_ trunk Compile Tests _

+1 :green_heart:
mvninstall
32m  3s

trunk passed

+1 :green_heart:
compile
22m 15s

trunk passed with JDK Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04

+1 :green_heart:
compile
19m 19s

trunk passed with JDK Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10

+1 :green_heart:
checkstyle
1m  7s

trunk passed

+1 :green_heart:
mvnsite
1m 42s

trunk passed

+1 :green_heart:
javadoc
1m 14s

trunk passed with JDK Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04

+1 :green_heart:
javadoc
1m 47s

trunk passed with JDK Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10

+1 :green_heart:
spotbugs
2m 28s

trunk passed

+1 :green_heart:
shadedclient
22m  5s

branch has no errors when building and testing our client artifacts.

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
0m 58s

the patch passed

+1 :green_heart:
compile
21m 21s

the patch passed with JDK Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04

+1 :green_heart:
javac
21m 21s

the patch passed

+1 :green_heart:
compile
19m 28s

the patch passed with JDK Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10

+1 :green_heart:
javac
19m 28s

the patch passed

+1 :green_heart:
blanks
0m  0s

The patch has no blanks issues.

+1 :green_heart:
checkstyle
1m  9s

the patch passed

+1 :green_heart:
mvnsite
1m 36s

the patch passed

+1 :green_heart:
javadoc
1m  9s

the patch passed with JDK Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04

+1 :green_heart:
javadoc
1m 46s

the patch passed with JDK Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10

+1 :green_heart:
spotbugs
2m 39s

the patch passed

+1 :green_heart:
shadedclient
22m 15s

patch has no errors when building and testing our client artifacts.

_ Other Tests _

+1 :green_heart:
unit
17m 28s

hadoop-common in the patch passed.

+1 :green_heart:
asflicense
0m 59s

The patch does not generate ASF License warnings.

195m 43s

Subsystem
Report/Notes

Docker
ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3822/3/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/3822

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell markdownlint

uname
Linux 05a93a50e2c2 4.15.0-156-generic #163-Ubuntu SMP Thu Aug 19 23:31:58 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/bin/hadoop.sh

git revision
trunk / 703e6f3e272324ca59214654b4a752a4329923fe

Default Java
Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10

Multi-JDK versions
/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10

Test Results
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3822/3/testReport/

Max. process+thread count
1258 (vs. ulimit of 5500)

modules
C: hadoop-common-project/hadoop-common U: hadoop-common-project/hadoop-common

Console output
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3822/3/console

versions
git=2.25.1 maven=3.6.3 spotbugs=4.2.2

Powered by
Apache Yetus 0.14.0-SNAPSHOT https://yetus.apache.org

This message was automatically generated.

I have updated some, can you please review this pr again, @aajisaka .

I updated it again.

Thanks @jianghuazhu for your update. LGTM.

@jianghuazhu Thanks for your contribution. @aajisaka @ayushtkn  @tomscut  Thanks for your reviews! Merged


Metronome

It would be very useful to have a simple metronome in the Trail Sense toolbox, with the basic functions of selecting BPM, modifying the tempo, sound and vibration, among other functions.
Although it seems outside the project's initial proposal, I believe it would be very welcome to the app, as well as QR Code Scanner, Mirror Camera, Ruler, etc.
A metronome is an easy-to-implement function and can be used in a variety of situations, mainly for playing instruments on trails and camping trips.
Example of an excellent open source metronome project with Material Design: https://github.com/patzly/tack-android

Hi, I'm curious if there are any use cases for this outside of music related to hiking/camping?
Unfortunately, if this is just for music, then I will likely not implement this since I believe it is out of scope of Trail Sense's use cases (I see music + camping as two different activities that can occur at the same time). But I will potentially consider linking that in the recommended apps guide if there are other use cases.

Thank you, I will take a look at those other use cases later and see if they fit into Trail Sense. If not, then I would suggest using the open source app you mentioned.
While simple to implement, I don't want to increase the scope of Trail Sense to be a generic tool app, so am a bit picky on what tools get added.

After further research, I've decided not to implement this in Trail Sense. But I can link to that metronome app as a recommended tool for camp music.


.groupBy mishandles upstream error?

RxJS version: 5.0.0beta.11
Code to reproduce:
import {Observable} from 'rxjs';
Observable.range(0, 10)
  .flatMap(item => item == 7 ? Observable.throw('seven reached') : Observable.of(item))
  .groupBy((item: number) => {
    console.log(typeof(item), `Item: ${item}`);
    return item % 2 == 0 ? 'even' : 'odd'
  })
  .flatMap(groupedObs => {
    return groupedObs
      .catch(e => {
        console.log(`Error in here type: '${groupedObs.key}'`, e);
        return Observable.throw(e);
      });
  })
  .subscribe(
    n => console.log(n),
    e => console.log(e),
    () => console.log('completed')
  )

Expected behavior: Should not group the error. (Also why does the error get grouped to 'even'?)
Actual behavior: error is grouped
Additional information: log output:
number Item: 0
0
number Item: 1
1
number Item: 2
2
number Item: 3
3
number Item: 4
4
number Item: 5
5
number Item: 6
6
Error in here type: 'even' seven reached
seven reached

GroupBy emits upstream errors to the inner groups, then also emits the error to the groupBy Subscriber. GroupBy must emit upstream errors to the inner groups, because otherwise their subscriptions would never terminate.
In your example, flatMapping the grouped Observables makes it appear as if the error is being emitted to only one of the inner groups, but that's because flatMap terminates all inner subscriptions if any inner subscription emits an error. It seems like the order in which each inner group is notified of the error is determined by the Map implementation.

Hello @trxcllnt, thanks for your reply.
While i didn't quite get the reason why error must be passed within the grouped observable, i don't get why the error is grouped using the 'even' key.
Also is there a way i can bypass groupBy? so that if an error is triggered on the chain the groupby does not get the "error" and that gets forwarded directly to the end of the chain?

@vekexasia if groupBy didn't emit errors to the inner the GroupedObservables, you'd end up with memory leaks from subscriptions that never get disposed:
Observable
  .range(0, 10)
  .do((i) => if (i === 7) { throw i; })
  .groupBy((i) => i % 2)
  .subscribe((group) => {
    group.subscribe(
      ::console.log,
      (err) => console.error(`inner error ${err}`)); // <-- `groupBy` must notify each group of outer error, otherwise this subscription won't get GC'd
  },
  (err) => console.error(`outer error: ${err}`));

Since the groups are notified of the errors before the outer subscriber, and flatMap is flattening all the groups (and their errors) into a single Observable, flatMap is being notified of the error from the inner groups before groupBy has a chance to notify flatMap of the outer error.
You can make flatMap ignore errors from the inner groups by returning Observable.empty() to catch on each Observable returned from the flatMap selector:
Observable
  .range(0, 10)
  .do((i) => if (i === 7) { throw i; })
  .groupBy((i) => i % 2)
  .flatMap((groupedObs) => groupedObs.catch(() => Observable.empty()))
  .subscribe(
    n => console.log(n),
    e => console.log(e),
    () => console.log('completed')
  );

Hope this helps.

I think @trxcllnt answered this adequately.


"'utf-8' codec can't decode byte" error when filename is not valid UTF-8

https://github.com/WGH-/git-archive-all-bug1
$ git init
$ touch $'test.\xC2'
$ git add -A
$ git commit -m "initial commit"
$ ~/.local/bin/git-archive-all test.zip
'utf-8' codec can't decode byte 0xc2 in position 5: invalid continuation byte

This is where it happens:
https://github.com/Kentzo/git-archive-all/blob/fed1f48f1287c84220be08d63181a2816bde7a64/git_archive_all.py#L416-L425

Could you run git ls-files -z > /tmp/git.output and attach the /tmp/git.output file?

b'test.\xc2\x00'

Interesting. Could also try to archive it with plain git archive into tar, gz, zip and bz2 formats and attach these files?

git-archive --format accepts only zip and tar. Since bz2 and gz are simply compressed tar, I guess there's little point attaching all the combinations.
Intestingly, zip prints a warning:
$ git archive --format zip HEAD > issue71.zip
warning: path is not valid UTF-8: test.�

issue71.zip
issue71.tar.gz

https://docs.python.org/3/library/os.path.html

Unfortunately, some file names may not be representable as strings on Unix, so applications that need to support arbitrary file names on Unix should use bytes objects to represent path names. Vice versa, using bytes objects cannot represent all file names on Windows (in the standard mbcs encoding), hence Windows applications should use string objects to access all files.

This sounds like some major pain, lol.

Just for information, what's your OS and filesystem that can represent such paths?

By the way, if you unarchive those archives, will the output result in the identical filename?

Just for information, what's your OS and filesystem that can represent such paths?

Linux.
On Unix, filenames are byte strings ending with null byte with components separated by forward slashes, and no encoding is enforced at all. Usually UTF-8 is used, though.

By the way, if you unarchive those archives, will the output result in the identical filename?

In case of tar, yes.
In zip, though, Info-ZIP replaces the weird byte with -, and 7-zip replaces it with Â (b'\xc3\x82').

I see the following solutions at the moment

Maintain the original name, but make an archive that is incompatible with certain formats (zip) and (file)systems
Fix the name by escaping invalid UTF-8 sequences
A mix of [1] and [2] at the cost of inconsistency

Could you elaborate on your use case?

My use case is a web server serving files with weird non-UTF-8 filenames to expose bugs in HTTP client code.
Git is already incompatible with certain filesystem and OSes by design: for example, Windows doesn't have Unix file permissions, but these permissions are always saved in Git repositories.

Do you use tar as your target format?

Yes.

What Python version do you use?

I tested on Python 3.6 and Python 2.7.

For Python 3.2+ there is a simpler solution thanks to fsencode / fsdecode. For 2 a dependency  like chardet might be needed.

Should be fixed in 1.20.0


New screen options: enable & disable ShowTitleBar & ShowStatusBar

I added new options in the screen, which allow App Inventor users to enable/disable ShowTitleBar & ShowStatusBar. These methods are in the form of the getter and setter methods in the block editor and also in the designer property list. But there won't be any change in the designer viewer if you decide to change them. Future work, make the changes reflected on the designer viewer.

@weihuali0509
You might want to check with Dan Sandler at Google about
(a) What are considered "best design pracrtices" in Enabling and Disabling the status bar and activity bar.  Is it consdered OK for apps change the visibility ar runtime.
(b) Is it worth it or even possible to make this work on pre-Gingerbread versions?

@weihuali0509
You might want to check with Dan Sandler at Google about
(a) What are considered "best design pracrtices" in Enabling and Disabling the status bar and activity bar.  Is it consdered OK for apps change the visibility ar runtime.
(b) Is it worth it or even possible to make this work on pre-Gingerbread versions?

@halatmit  I am reading the doc about it, will resume working on this issue tomorrow. Thanks for your note.
Wei

@halatmit  I am reading the doc about it, will resume working on this issue tomorrow. Thanks for your note.
Wei

I will retire this. I will separate the ShowTitleBar & ShowStatus features into two pull requests. - Wei


Socket.error: [Errno 98] Address already in use: ('<IP_ADDRESS>', 5000)

Hi, everyone!
My installation method is via deb package. And I follow this link to install.
https://github.com/NVIDIA/DIGITS/blob/master/docs/UbuntuInstall.md
But when type  'sudo ./digits-devserver -c'  after installed , I get some errors:

modprobe: FATAL: Module nvidia not found.
cudaRuntimeGetVersion() failed with error #38
(I use the CPU-ONLY model, because the graphic card can't support CUDA in my computer )

2.socket.error: [Errno 98] Address already in use: ('<IP_ADDRESS>', 5000)
My digit vision is 3.0.3.
The next section  is  return.
Thanks .
fzy@fzy-OptiPlex-3020:/usr/share/digits$ sudo ./digits-devserver -c
================================ Jobs Directory ================================
Where would you like to store job data?

	Suggested values:
	(*)  [Previous] /usr/share/digits/digits/jobs
	(D)  [default]  /usr/share/digits/digits/jobs
>>
Using "/usr/share/digits/digits/jobs"

modprobe: FATAL: Module nvidia not found.
cudaRuntimeGetVersion() failed with error #38
=================================== Log File ===================================
Where do you want the log files to be stored?

	Suggested values:
	(*)  [Previous] /var/log/digits/digits.log
	(S)  [System]   /var/log/digits/digits.log
	(D)  [default]  /usr/share/digits/digits/digits.log
	(N)  [none]     <NONE>
>>
Using "/var/log/digits/digits.log"

==================================== Caffe =====================================
Where is caffe installed?

	Suggested values:
	(*)  [Previous]        <PATHS>
	(P)  [PATH/PYTHONPATH] <PATHS>
>>
Using "<PATHS>"

==================================== Torch =====================================
Where is torch installed?

	Suggested values:
	(*)  [Previous]       <PATHS>
	(P)  [PATH/TORCHPATH] <PATHS>
	(N)  [none]           <NONE>
>>
Using "<PATHS>"

  ___ ___ ___ ___ _____ ___
 |   \_ _/ __|_ _|_   _/ __|
 | |) | | (_ || |  | | \__ \
 |___/___\___|___| |_| |___/ 3.0.0-rc.3

 * Running on http://<IP_ADDRESS>:5000/
Traceback (most recent call last):
  File "./digits-devserver", line 58, in <module>
    policy_server=False
  File "/usr/lib/python2.7/dist-packages/flask_socketio/__init__.py", line 414, in run
    self.server.serve_forever()
  File "/usr/lib/python2.7/dist-packages/gevent/baseserver.py", line 282, in serve_forever
    self.start()
  File "/usr/lib/python2.7/dist-packages/gevent/baseserver.py", line 234, in start
    self.init_socket()
  File "/usr/lib/python2.7/dist-packages/gevent/pywsgi.py", line 639, in init_socket
    StreamServer.init_socket(self)
  File "/usr/lib/python2.7/dist-packages/gevent/server.py", line 78, in init_socket
    self.socket = self.get_listener(self.address, self.backlog, self.family)
  File "/usr/lib/python2.7/dist-packages/gevent/server.py", line 89, in get_listener
    return _tcp_listener(address, backlog=backlog, reuse_addr=self.reuse_addr, family=family)
  File "/usr/lib/python2.7/dist-packages/gevent/server.py", line 153, in _tcp_listener
    sock.bind(address)
  File "<string>", line 1, in bind
socket.error: [Errno 98] Address already in use: ('<IP_ADDRESS>', 5000)

@lukeyeager thanks!

Well, I have solved second question. The first is waiting...

That error means you already have another instance of the DIGITS devserver running. You can try using ps ax | grep digits to find the other process and kill it with kill -INT, or just reboot your machine if that's easier.


fix: don't split e-cash on refund

One possible solution for #5069.
Problem
The main problem is that if I have e-cash in an OOB spend or funding any other transaction and need to re-claim it because the user cancelled or the transaction failed then a bunch of e-cash notes will be re-issued in parallel.
Let's assume 10 notes are being re-issued into an empty wallet. The reissuance state machine of each note will notice the empty wallet and generate at least two e-cash notes per denomination, starting from 1msat (to make sure the wallet has e-cash of every denomination for OOB spends). Unfortunately, all 10 do the same and we end up with at least 20 notes per denomination.
Solution Approach
This PR introduces a strategy enum for change generation that is used to control change generation in this scenario.
Benefits:

No state machine migrations necessary
Conceptually simple/small change

Drawbacks:

API  changes to a bunch of interfaces
The change strategy is only really relevant for e-cash primary modules, so it breaks modularization a bit

Alternative
We want to eventually use one SM for multiple e-cash notes in cases where they all result from the same operation. This will allow to reissue multiple notes in a single transaction except in the case that there was an invalid note among them (then each still needs to go into a separate transaction). When reissued in a single transaction the parallelism problem doesn't occur anymore.
Thoughts @dpc @joschisan?

#6176 alternative?

#6176 is better, I just didn't want to change APIs back then. But doesn't look all that bad.


Compiling issue for me.

Hello all, i was wondering if someone can help me resolve my issue. During make i get this error. How can i fix it? I don't know cpp well.  Thanks in advance!.
rmak@V400:~/bb/blackbird-master$ make
g++ -c -g -Wall -O2  src/bitfinex.cpp -o src/bitfinex.o
src/bitfinex.cpp: In function ‘bool Bitfinex::isOrderComplete(CURL*, Parameters, int)’:
src/bitfinex.cpp:92:73: error: ‘json_boolean_value’ was not declared in this scope
bool isComplete = !json_boolean_value(json_object_get(root, "is_live"));
^
make: *** [src/bitfinex.o] Error 1

Hi @rmak168,
Your Jansson version is probably too old. Please install Jansson 2.7 minimum and try again.

Thank you! that fixed my problem.

Great! I close the issue.


Error to run yarn run start

🐛 Bug Report
Using one click Open in Gitpod, get error when running yarn run start:
Link to repro
https://github.com/immerjs/immer
To Reproduce
click Open in Gitpod, run yarn run start
Observed behavior

/bin/sh: docusaurus: command not found
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Expected behavior
run without error
Environment
latest

Immer version:
[x] I filed this report against the latest version of Immer
[ ] Occurs with setUseProxies(true)
[ ] Occurs with setUseProxies(false) (ES5 only)

just install the dependency


Timesheet - 01/05/2021- Manish Ram

Task 1: Timesheets

Reviewed timesheets
Verified and closed paid timesheets

Proof of Work

Commented "Approved" for approved timesheets or left other comments to ask for additional Infos to timesheet issues dated 30/04/2021
https://github.com/thenewboston-developers/Contributor-Payments/issues

Paid Timesheets

Time Spent
0.75 hour

Task 2: Audit Meeting - 3

Meeting with Chuy, Muhammad, and Tristan
Created google doc to save conclusions of the meeting

Proof of Work

Shared Meeting doc to Audit channel.

Time Spent
1.25 hours

Task 3: Audit Discuss

Minor Discussion with Chuy related to Audit tasks
Timesheet Automation with Bucky

Time Spent
0.5 hous

Total Time Spent
2.5 hours
Account Number
0f92e975101eb96cea80dce430d74efd3172fa229377818d467ded85dcf2ab6c

Approved


django.test.client: add AsyncClient and dependencies

This seems to work for me but I'm not sure how one generally goes about generating these signatures nor how to validate them.

Looks good!
In terms of generating signatures you can use stubgen or manually write them
for validation you can try the version of Django-types with your type checker and go from there or write some statements in one of the test .py files in the project to exercise the types


onFetchData keeps triggering on short lists

If a list takes less than a screen, onFetchData gets triggered again and again, despite I didn't scroll it down!
code:

bug demo:
https://github.com/VeryGoodOpenSource/very_good_infinite_list/assets/12999702/9e3cde1a-f1e4-4345-a78c-4d73019af0cf

https://github.com/VeryGoodOpenSource/very_good_infinite_list/assets/12999702/2ab34513-c16d-40ef-93fc-98c579e266b7
It looks like it claims to prefill list with some data, so it will take the whole screen space. Not applicable for short lists which don't take the whole screen.
Maybe you should add a shrinkWrap parameter, so it will have an actual vertical size by its children, and not a screen height? In this case it wouldn't trigger a re-fetch until I scroll it, then it will self-update its height.


pubsub has very high latency

I was testing the simplest form of pub/sub with the java api.
on localhost I experience 250-300 milliseconds latency on message, while when I use the go tools, its down to just a few milliseconds. Is there a way to get low latency for the java implementation as well?

oooo, sounds like I need to go through the new updates... I have an older version built into the nanocheeze app and I bypassed some of it's functionality and just use the http proxy as a workaround for some things....


Finding Nakshatra birthday in current year

I am able find the Nakshatra for given date of birth using the following snippet
nakshatra = NakshatraDivision(jd, ayanaamsha_id=Ayanamsha.CHITRA_AT_180).get_anga(zodiac.AngaType.NAKSHATRA).index

But I'm not sure how to find Nakshatra/star birthday in the current year. I'm thinking of finding Nakshatra current date/time then increment the hours/days until birth Nakshatra occurs.
Is this the right way to find Nakshatra/star birthday in the current year or is there a better way to do this?

Try
  anga_span_finder = AngaSpanFinder.get_cached(ayanaamsha_id=Ayanamsha.CHITRA_AT_180, anga_type=AngaType.NAKSHATRA)
  anga_span = anga_span_finder.get_spans_in_period(jd_start=jd1, jd_end=jd2, target_anga_id=target_month_id)


Repository name needs to be changed

@FalseHonesty Told me' that it's now ct.js. Needs to be reflected here.
https://github.com/ChatTriggers/ct.ts

repo name changed

Thanks Kerby :)


More control over animations

Describe what feature you'd like. Pseudo-code, mockups, or screenshots of similar solutions are encouraged!
Something I'd really like to see and is more control over the animations of components. I know some components have access to animation speed or direction, but actually changing the animation type would be great as well. I wonder if it's better to switch to some sort of CSS animation, as opposed to using Svelte transitions. This would make it easier to edit.
What type of pull request would this be?
Enhancement
Any links to similar examples or other references we should review?
No response

This something I'd love to see as well, but unfortunately there's trade offs between Svelte Transitions and pure CSS animations.
Svelte Transitions
These are fairly rigid. Each one has to be imported and scaffolded into the component. There's not really a great mechanism in place to just "swap them out". And the number of settings are fairly minimal between each - typically just direction and duration in most cases. However, they are the most dynamic, fully reacting to interruption in the state part way through the animation. This is great for animations that toggle, where you may not need the animation to complete in full before the next is applied.
CSS Animations
Fairly open ended with lots of options. Can be passed straight in like any other utility class, fitting our prop paradigm. Unfortunately they can be a lot more difficult for your average user to setup. Plus their not "smart" like Svelte Transitions, meaning interruptions mid-animation are not always handled in a clean fashion.
That said, this is definitely something that's been on my mind for a while. If we can find a good way to handle it we will. But with Svelte 4 around the corner, it might be worth seeing what updates come in from upstream before we devote too much effort here.

Even though this issue came first, I'm going to mark this as a duplicate so we can funnel all discussion on this topic here:

https://github.com/skeletonlabs/skeleton/issues/1322

We've established a more flushed out plan for how we want to approach this globally for all components. @JustBarnt will be assisting in implementing this.


Non-default feature turned on in druid

Even with "rust-analyzer.cargo.allFeatures": false, in https://github.com/linebender/druid/blob/4d29ce81f4d28018042cb33793984c90d142bdf6/druid-shell/src/backend/mod.rs we turn on the x11 backend and thus disable gtk. This happens even though x11 isn't enabled by default, while gtk is.

Oops, yeah, there's a dev-dependency on it. I tried to remove it, but we might still need to restart the server.


[master] Exclude R2RDump from source-build

This should remove the Microsoft.NETCore.CoreDisTools/1.0.1-prerelease-00005 prebuilt dependency.
Context at https://github.com/dotnet/source-build/issues/1816 for why we can exclude R2RDump.

Confirmed in local build that it's removed from production + tarball build.
<BaselineComparison>
  <Removed>
...
    <PackageIdentity Id="Microsoft.NETCore.CoreDisTools" Version="1.0.1-prerelease-00005" />
...
    <PackageIdentity Id="runtime.placeholder-rid.Microsoft.NETCore.CoreDisTools" Version="1.0.1-prerelease-00005" />
...
  </Removed>
</BaselineComparison>

Forgot to make the change to the baselines to verify this in PR validation, but I'm going to avoid making that change here so I don't reset CI. (Unless I also need to make some other change.)

@dagood Can this be closed in favor of #1822?

Yep, this package shows up as removed in the prebuilt data for https://github.com/dotnet/source-build/pull/1822.


Non-baseline AVC video profile is not supported by Android OS (Android 9.0)

Hi,
I am getting this error when trying to compress a video file with Android 9.0.
Fatal error while transcoding, this might be invalid format or bug in engine or Android.
net.ypresto.androidtranscoder.engine.InvalidOutputFormatException: Non-baseline AVC video profile is not supported by Android OS, actual profile_idc: 100

With other versions it works as expected. Any idea why is this happening?
Thanks

Same issue here :(

@tipa can you share the .jar file or show me how to do that by myself? I'm not native to Java environments.

Sure, you simply need to change this line: https://github.com/ypresto/android-transcoder/blob/e9c411c22897fad41a21c3f05f65b0dfe2fc327e/lib/src/main/java/net/ypresto/androidtranscoder/engine/MediaFormatValidator.java#L39
to
 if (profileIdc != PROFILE_IDC_BASELINE && profileIdc != 100) {
This is the resulting .jar
lib-release.zip

https://github.com/ypresto/android-transcoder/pull/73#issuecomment-475871771
(Main profile looks supported for now.)

Thank you so much @ypresto for your time - sounds like you are quite busy.
Does that mean we can remove the if statement entirely?

Hi there, any updates on this?
Thanks

any update on this?

any update?

The issue seems to be fixed in the latest version of the master.
While it's not perfect, you can get the latest build via JitPack as mentioned in #86.


update the externalname configuration for aws_lambda_alias to reflect…

… the true ID format
Description of your changes
This PR changes the ExternalName configuration for aws_lambda_alias to match the id format expected by terraform. Specifically, the config was previously based on the import syntax for the resource, but TF uses the full ARN as the Id.
Fixes #653
I have:

[x] Run make reviewable test to ensure this PR is ready for review.

How has this code been tested
Local testing - provisioned a lambda function via S3 bucket and a function alias for a published version.

/test-examples="examples/lambda/alias.yaml"

@djeremiah We have uptest failing on the current example in examples/lambda/alias.yaml – could you have a look to see if the example needs updating so we can ensure we keep e2e coverage for this resource.

Do we generally want a single file to provide the e2e test? Or can we include other examples as dependencies? Testing the Alias will require publishing a lambda function. The plumbing for all of that appears to be fully included in examples/function.yaml, so we can either re-run the test including that example, or we can copy the needed items into alias.yaml.

We tend to want to include all the necessary elements in the example file so that they can be run independently.

/test-examples="examples/lambda/alias.yaml"

/test-examples="examples/lambda/alias.yaml"


array comprehension expects iterator to be range like

Reporting a bug

[x] I am using the latest released version of Numba (most recent is visible in
the change log (https://github.com/numba/numba/blob/master/CHANGE_LOG).
[x] I have included below a minimal working reproducer (if you are unsure how
to write one see http://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports).

This fails typing
from numba import njit
import numpy as np
@njit
def foo(a):
    return np.array([1 for i in np.nditer(a)])
foo(np.zeros((10,)))

with
Invalid use of Function(<intrinsic range_iter_len>) with argument(s) of type(s): (nditer(ndim=1, layout=C, inputs=(array(float64, 1d, C),)))

seems like the array comprehension code expects the iterator to be range like, if this transform is switched off the code runs fine. Another example is here: https://gitter.im/numba/numba?at=5bf1abf61ad4155d3ae50543

As of 0.55 the error will now read:
TypingError: Unsupported iterator found in array comprehension, try preallocating the array and filling manually.

which should help users restructure their code.


Broken link

[Enter feedback here]
Link is broken ImageAnalysis -> Reference -> Python
https://docs.microsoft.com/en-us/python/api/overview/azure/cognitiveservices/computervision

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

ID: 46e0ccf9-a032-6201-f0c3-e2424404aa35
Version Independent ID: 42ca4fb4-273d-1fb9-9e4f-9d59e910d162
Content: Call the Image Analysis API - Azure Cognitive Services
Content Source: articles/cognitive-services/Computer-vision/Vision-API-How-to-Topics/HowToCallVisionAPI.md
Service: cognitive-services
Sub-service: computer-vision
GitHub Login: @PatrickFarley
Microsoft Alias: pafarley

Thanks for the feedback and bringing this to our notice. At this time we are reviewing the feedback and will update the document as appropriate.

@HailHorrorHail The reference for python SDK is available here. @PatrickFarley Could you please update the TOC for python SDK reference to the correct link?

link is no longer broken
#please-close


fix: Remove phone number verification from merchant payment demo

Description
Removes phone number verification requirement for demo purposes
Tested
Was able to get to Merchant Payments screen without verified phone number
How others should test
Scan a merchant payment QR code without verifying your account number and see that you still get to the right screen.

Hey @MuckT, We have verified above task on Latest Test Flight Release build V1.29.2 & Android Internal Release Build V1.29.2 & updated status in test rails.
Observation:

“There was an error loading..” error is displayed when the user tries to scan the QR code from Merchant Payment url while creating the account while skipping the phone number, hence we have raised a bug for that.

New Bug: link
Test rail links:
Android 11: https://valoraapp.testrail.io/index.php?/tests/view/22228
Android 12: https://valoraapp.testrail.io/index.php?/tests/view/22213
iOS13: https://valoraapp.testrail.io/index.php?/tests/view/22258
iOS14: https://valoraapp.testrail.io/index.php?/tests/view/22243
Devices: Google Pixel 2XL (11.0), iPhone SE 2020 (14.8.1), iPhone 7 (13.3), Google Pixel 4a (12.0)
CC: @dckesler
Thanks..!!

Hey @MuckT, We have verified above task on Latest Test Flight Release build V1.30.1 & Android Internal Release Build V1.30.1 & updated status in test rails.
Observation:

User is able to complete merchant payment flow by given url by scanning QR code & order get placed by skipping phone number.

Test rail links:
Android 11: https://valoraapp.testrail.io/index.php?/tests/view/27299
iOS15: https://valoraapp.testrail.io/index.php?/tests/view/27237
Devices: Google Pixel 2XL (11.0), iPhone 13 mini(15.1.1)
CC: @dckesler
Thanks..!!

Hey @MuckT, We have verified above task on Latest Test Flight Release build V1.30.1 & Android Internal Release Build V1.30.1 & updated status in test rails.
Observation:
User is able to complete merchant payment flow by given url by scanning QR code & order get placed by skipping phone number.
Test rail links:
iOS14: https://valoraapp.testrail.io/index.php?/tests/view/27330
Devices: iPhone 12(14.7.1)
CC: @dckesler
Thanks..!!


chore(deps): update terraform github.com/terraform-ibm-modules/terraform-ibm-devsecops-alm to v1.4.0

This PR contains the following updates:

Package
Type
Update
Change

github.com/terraform-ibm-modules/terraform-ibm-devsecops-alm
module
minor
v1.3.1 -> v1.4.0

Release Notes

terraform-ibm-modules/terraform-ibm-devsecops-alm (github.com/terraform-ibm-modules/terraform-ibm-devsecops-alm)
v1.4.0
Compare Source
Features

add signing validation support (#368) (c60df28)

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

/run pipeline

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


Offer to move VS Code to the Applications folder

macOS

Download VS Code
It is in the Downloads folder
Run it -> all good. No dialog
The issue is that users leave VS Code in the Downloads folder, and then they can not auto-update 🐛 (me and @digitarald saw this happen with GH folk new to VS Code)

I just downloaded ollama, and on first run there was a dialog to offer to move to Applications.
Can we do the same?

@deepak1556 isn't there support from Electron to do this? Anything that would speak against using it?
From https://github.com/electron/electron/blob/main/docs/api/app.md

@bpasero thanks for smart comments.
Yeah, we would need flag to disable, so that CI and bisect runs can circumvent this.

isn't there support from Electron to do this? Anything that would speak against using it?

Yup, api was made specifically for this use case https://github.com/electron/electron/issues/1692. I can't think of a reason to not use it.

Assigning to myself and August just to not loose track of this.

The issue is that users leave VS Code in the Downloads folder, and then they can not auto-update

Note that this feature would likely not solve the problem above. Not being able to auto-update is a symptom of having the app in quarantine, which macOS does by default to an app that just got downloaded. We have code to detect this: https://github.com/microsoft/vscode/blob/7cbcafcbcc88298cfdcd0238018fbbba8eb6853e/src/vs/workbench/contrib/update/browser/update.ts#L286
Before we commit to doing this, let's verify whether it helps at all with the initial problem of users being unable to update.


Polyline not created

Hi was trying out your plugin and noted that the polyline could not be created.
This is the code i used, and attached is the outcome.
var standingIcon = L.icon({
    iconUrl: 'man-standing.png',
    iconSize:     [30, 30],
    iconAnchor:   [15, 29],
    popupAnchor:  [-10, -76],
    tooltipAnchor:[15, -15]
});
solMarker= L.marker(sol,{icon: icon});
solMarker.addTo(map0);
marker.bindTooltip("test");
L.tooltipLayout.resetMarker(marker);
L.tooltipLayout.initialize(map0);

Please advise.
Thank you.

Hi, it looks like you use "solMarker" as marker var and then you deal with the "marker" variable... Replace it by solMarker too


guided local search is not run

guided local search is not run...

Hey, thanks for asking! Unfortunately, GLS implementation is not working so i'm commented line in main.py. If you want to test GLS implementation, just uncomment last line in main.py


Multiple configs for syslog-ng

Not covered in the man page but seems to be utilised on at least Debian/Ubuntu by using a @include "/etc/syslog-ng/conf.d/*.conf" at the end of the primary syslog-ng.conf file.
Sorry for the unnecessary overhead :(

LGTM


Improve lifecycle methods

Deserialize can operate on strings
Reset action rejects if deserialization fails
Patch action rejects if deserialization fails
Upgrade dependencies

Example:
import Microcosm from 'microcosm'

let repo = new Microcosm()

repo.addDomain('planets', {
  getInitialState () {
    return []
  }
})

let action = repo.replace("{ invalid json string}")

action.onError(function (error) {
  console.log(error) // JSON Parse error
})

Coverage remained the same at 100.0% when pulling 3ebbd22a9f01f773209b6cad6f9c9267e16b5bfb on lifecycle-improvements into f21817924b0d61975a0dd65cb447566a4ecdcdfe on master.

Coverage remained the same at 100.0% when pulling d456c4ddcf3d4797c76df926646a570b96ddba48 on lifecycle-improvements into f21817924b0d61975a0dd65cb447566a4ecdcdfe on master.

Coverage remained the same at 100.0% when pulling d3155509adc745772ec3099acfd1596a0ccdf541 on lifecycle-improvements into f21817924b0d61975a0dd65cb447566a4ecdcdfe on master.

Coverage remained the same at 100.0% when pulling d3155509adc745772ec3099acfd1596a0ccdf541 on lifecycle-improvements into f21817924b0d61975a0dd65cb447566a4ecdcdfe on master.

Coverage remained the same at 100.0% when pulling d3155509adc745772ec3099acfd1596a0ccdf541 on lifecycle-improvements into f21817924b0d61975a0dd65cb447566a4ecdcdfe on master.

Coverage remained the same at 100.0% when pulling f15bc11efb5ed322a5e404d81cc9f1771bddc35d on lifecycle-improvements into f21817924b0d61975a0dd65cb447566a4ecdcdfe on master.

👍

Coverage remained the same at 100.0% when pulling dd1665486ed99f8ed7b002d93728fa096271291e on lifecycle-improvements into f21817924b0d61975a0dd65cb447566a4ecdcdfe on master.