Initialize Channel without ID

As stated in the documentation, the id of the channel is optional (https://getstream.io/chat/docs/php/creating_channels_backend/?language=php). But I got an error when trying to initialize channel without an id.
Channel does not (yet) have an id
$channel = $client->Channel("messaging");
$channel->addMembers([$sender, $to]);
$channel->sendMessage(["text" => "Test chat from API"], $sender);
gz#13067

Hi,
Thanks for reaching out.
The channel ID is optional if creating a channel for a list of members : https://getstream.io/chat/docs/php/creating_channels_backend/?language=php#2.-creating-a-channel-for-a-list-of-members. You need to pass those members when instantiating the channel.
Otherwise, the channel ID is required.
Hopefully this should solve your issue here. Let us know if you have more questions.
Best,

$conversation = $client->Channel('messaging', 'thierry-jenny', ['members'=>['thierry', 'jenny']]);
isn't the 'thierry-jenny' is the id?

Hi,
Indeed, you're right 'thierry_jenny' is actually the channel ID in the example. You can find an example of channel creation without referencing the ID in the following integration tests file : https://github.com/GetStream/stream-chat-php/blob/28d5deab77ac254c9bd66b1a02673efb6424a08a/tests/integration/IntegrationTest.php#L445
Please, let me know if you are able to make it work.
Best,

Woah, it works! Basically I've tried fill the id with null but I missed the $channel->create($sender) line.
I really appreciate your response and help. Thank you so much.


fix: Add csv as a dependency for Ruby 3.4

csv has been a default gem for a long while. In Ruby 3.4, it will stop being a default gem and will need to be explicitly required as a dependency.

warning: /opt/rubies/3.3.1/lib/ruby/3.3.0/csv.rb was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.4.0. Add csv to your Gemfile or gemspec. Also contact author of opentelemetry-exporter-otlp-0.26.1 to add csv into its gemspec.

This change adds it as a dependency for the OTLP exporter since it makes use of the library. It uses the same version constraint as the Zipkin exporter for consistency.
See eb89cd62f5df71886651f87f38824cbcb6e47251 for a similar change.

Thanks for submitting this PR, @michaelherold! CSV is no longer a dependency of opentelemetry-exporter-otlp. If you update the gem to version 0.26.2 or above, the warning should go away.

Hi @kaylareopelle! I double checked when I submitted and this is where the require happens. I haven't vetted when or where it is used, though; perhaps it's not used anywhere but the require was left behind?

Ah, thank you! That link was very helpful. That file is for the opentelemetry-exporter-otlp-metrics gem, not the opentelemetry-exporter-otlp gem.
It looks like we're not using the CSV library in gem anymore, so I think the require was left behind.
Could you update this PR to remove the require 'csv' line from exporter/otlp-metrics/lib/opentelemetry/exporter/otlp/metrics_exporter.rb?

Hi, @michaelherold  - The require 'csv' line will be removed by https://github.com/open-telemetry/opentelemetry-ruby/pull/1670
The warning will still appear on opentelemetry-exporter-otlp-0.26.1. The warning should no longer be reported on  versions 0.26.2+ versions of that gem, as well as opentelemetry-exporter-otlp-metrics (when it is released).

Closing, as #1670 has been merged.


AWS::Serverless::Api DefinitionBody not linted

CloudFormation Lint Version
1.10.3
What operating system are you using?
Mac OS
Describe the bug
When I run cfn-lint, it does not check the validity of the paths in DefinitionBody under the AWS::Serverless::Api resource.
Cloudformation errors when there are issues, but running cfn-lint, these issues are not caught.
EG
1 validation error detected: Value 'Errors found during import: Unable to create resource at path '/clients/membership/{$clientId}': Resource's path part only allow a-zA-Z0-9._-: or a valid greedy path variable and curly braces at the beginning and the end.

This was caused by having a $ symbol in the path parameter, {$clientId} but cfn-lint did not pick this up.
Expected behavior
cfn-lint should check the DefinitionBody in AWS::Serverless::Api resources.
Reproduction template
  MiddlewareRestAPI:
    Type: 'AWS::Serverless::Api'
    Properties:
      Auth:
        ApiKeyRequired: true
      StageName: api-middleware
      DefinitionBody:
        openapi: 3.0.1
        info:
          title: 'API Middleware'
          version: 1.0.0
        paths:
          /clients/membership/{$clientId}:
            get:
              parameters:
                - name: clientId
                  in: path
                  required: true
                  description: CRM Client ID
                  schema:
                    type: string
                - name: membershipDefinitionId
                  in: query
                  required: true
                  description: Membership Definition ID
                  schema:
                    type: string
                - name: contextId
                  in: query
                  required: true
                  description: SRO Context ID
                  schema:
                    type: string
              responses:
                "200":
                  description: "200 response"
                  headers:
                    Access-Control-Allow-Origin:
                      schema:
                        type: "string"
                  content:
                    application/json:
                      schema:
                        $ref: "#/components/schemas/Client"
              security:
              - api_key: []
              x-amazon-apigateway-integration:
                credentials:
                  'Fn::GetAtt':
                    - MiddlewareAPIRole
                    - Arn
                httpMethod: POST
                uri:
                  'Fn::Sub': 'arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${ClientsGetMembership.Arn}/invocations'
                responses:
                  default:
                    statusCode: '200'
                    responseParameters:
                      method.response.header.Access-Control-Allow-Origin: '''*'''
                passthroughBehavior: when_no_templates
                contentHandling: CONVERT_TO_TEXT
                type: aws_proxy
            options:
              parameters:
                - name: clientId
                  in: path
                  required: true
                  description: CRM Client ID
                  schema:
                    type: string
                - name: membershipDefinitionId
                  in: query
                  required: true
                  description: Membership Definition ID
                  schema:
                    type: string
                - name: contextId
                  in: query
                  required: true
                  description: SRO Context ID
                  schema:
                    type: string
              responses:
                "200":
                  description: "200 response"
                  headers:
                    Access-Control-Allow-Origin:
                      schema:
                        type: string
                    Access-Control-Allow-Methods:
                      schema:
                        type: string
                    Access-Control-Allow-Headers:
                      schema:
                        type: string
                  content:
                    application/json:
                      schema:
                        $ref: "#/components/schemas/Empty"
              x-amazon-apigateway-integration:
                responses:
                  default:
                    statusCode: '200'
                    responseParameters:
                      method.response.header.Access-Control-Allow-Methods: '''GET,OPTIONS'''
                      method.response.header.Access-Control-Allow-Headers: '''Content-Type,Authorization,X-Amz-Date,X-Api-Key,X-Amz-Security-Token'''
                      method.response.header.Access-Control-Allow-Origin: '''*'''
                requestTemplates:
                  application/json: '{"statusCode": 200}'
                passthroughBehavior: when_no_match
                type: mock

Since this dumps into a generic json object we will need to figure out how to define a JSON schema for this.  We do this for IAM policies, step functions, etc.

So in this case, I'm using OpenAPI for my path definitions. Hopefully that is of some help to you.


Intermittent gRPC error while streaming audio to Google Cloud Speech

OS type and version
Code run in NAO Robot with Gentoo OS but I can see the issue in my Ubuntu VM as well

Python version and virtual environment information python --version
2.7.3

google-cloud-python version pip show google-cloud, pip show google-<service> or pip freeze
google-cloud : 0.26.1
google-cloud-speech : 0.27.0

Stacktrace if available

File "/home/nao/.local/lib/python2.7/site-packages/grpc/_channel.py", line 351, in next
    return self._next()
  File "/home/nao/.local/lib/python2.7/site-packages/grpc/_channel.py", line 342, in _next
    raise self
grpc._channel._Rendezvous: <_Rendezvous of RPC that terminated with (StatusCode.INVALID_ARGUMENT, Invalid audio content: too long.)>

Steps to reproduce
Unable to reproduce this since it happened randomly

Code example
I based my code using this example: https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/speech/cloud-client/transcribe_streaming_mic.py

I added few things and change the recording input to arecord (as I didn't manage get pyaudio to work in the robot). I also added a timeout for if user didn't speak for 10 seconds, it will end the recording (it will also end the recording when user finish talking).
def stream_audio(self):
        global LISTENING
        reccmd = ["arecord", "-f", "S16_LE", "-r", "16000", "-t", "raw"]
        p = subprocess.Popen(reccmd, stdout=subprocess.PIPE)
        timeStart = datetime.datetime.now()
        try:
            while LISTENING:
                if((datetime.datetime.now()-timeStart).total_seconds()<=10):
                    data = p.stdout.read(1024)
                    self._buff.put(data)
                else:
                   log.debug("User did not speak anything...")
                    LISTENING = False
                    self.closed = True
                    self._buff.put(None)
        except Exception, e:
            print "Error in streaming audio: "+str(e)
        p.kill()`

Full code is in attachment
sample code.txt

Your problem is almost certainly exactly what the error message says it is: audio too long. The limit is one minute.

Yea but my audio is 10 second at most. If it exceed 10 seconds, the audio stream thread will be stopped instantly (or probably I didn't stop it properly?). BTW I'm very new to Python and I didn't fully understand how generator works

I have the same problem. It seems that dispite the streaming_recognize session is stopped after a few seconds, any subsequent call adds to the total elapsed time, ultil it encounters the limit.
I was not able to reset the elapsed time or the streaming session, except by restarting the whole process (very inconvenient).
Any hints?

I have this same problem, and it's really frustrating. Also, @lukesneeringer  - seriously? Do you think everyone who posts here is an idiot? OBVIOUSLY anyone who had this issue would start by checking that it wasn't too long. Mine are limited at 35 seconds and it fails... maybe 45% of the time. Please stop closing stuff because you lack human logic.

I'm getting this exact same error, any updates?

I'm have the same problem in my code. Anyone solved this?
Return this for me:
google.api_core.exceptions.OutOfRange: 400 While calling Cloud Speech API: Audio Timeout Error: Long duration elapsed without audio. Audio should be sent  close to real time.

@keikomori Sorry you are having that bug.  A couple of things:

This issue is ancient (closed almost three years ago), and was reported against a much older version of the google-cloud-speech library than you are likely using today (the current version is 1.3.2).
Your error message is actually different than the original one for this issue, so it is actually a new issue altogether.
The google-cloud-speech Python library is now maintained in its own repository.  Please report your problem there.


fix(compiler): disable automatic uncurrying

Closes #44
I am not sure exactly what is expected. This is what I am working on at the moment.

I think (I may be wrong) because function body code generation and typespec generation are currently separate, the next thing that will be needed here, is returning an anonymous function from function application in function application translation when there are less arguments provided than the function expects. To see how many arguments a function expects we can use Uncurry.uncurry_tarrow, like here. I hope this makes sense?

Hi,
I look at it this evening or tomorrow evening and let you know. I have a
problem with my computer I need to reinstall it...
I read your previous message and I think it makes sense, however I'd need
to continue diving into the source code to really understand it.
I was starting adding print here and there to understand what's going on,
because atm I'm a little lost, and I haven't put enough time and energy to
get it through as of now.
That being said - if you feel like doing it yourself right now, feel free
to edit that branch directly (if you can) or send another PR. I have no
problem with it!
To be clear, as of now my patch doesn't solve anything... :/ Could you
provide examples as to what you expect the Erlang compilation to look like?
Le mar. 30 mars 2021 à 18:55, Michał Łępicki @.***> a
écrit :

So I think what I'm proposing is to keep the uncurrying, but do a little
bit of work detecting when a single anonymous function wrapper is needed
instead. What do you think about it @nicobao https://github.com/nicobao
@ostera https://github.com/ostera ? Do you think it could work?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/AbstractMachinesLab/caramel/pull/90#issuecomment-810421098,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALBYMIYLYBFIWWVL36MM3RTTGH7AJANCNFSM4Z6CUGVQ
.

I looked into this angle, it might work because the information we would need is in the typedtree, but with the current data structures we lose the arity information for function references that are just local identifiers here. It would be nice to carry over additional type information (in this situation, the arity) for those identifiers. I am not sure if this is something that would live in the Erlang AST or it would be an additional accumulator in mk_expression

And in addition to that we would need to know when other expressions are actually functions as well, and know their arity, e.g. we would know how many arguments a partially applied Expr_apply needs as well when resolving the next application... It would be messy and almost begs for an intermediate format between the typedtree and the erlang AST but I think it's possible

Hi! 👋🏽  since I'm currently not working on and have no plans to continue working on this version of the compiler, I'll close this PR. Thanks a lot for your contribution 🙏🏽


What is the DriveX dataset?

Is the DriveX dataset a private dataset? I don’t see a reference in the paper and I don’t find anything online either.

our private dataset

Can we get a sample data of ur private dataset


message edit: Remove Topic and Content labels

Removed the components from the template and cleaned up the relevant css.
New look:

Fixes #4562

@cory2067 this looks pretty reasonable, but I noticed one major issue.  The .message_top_line section overlaps the top half of the, and seems to be getting precedence for what cursor is displayed and what you click on in the top half of the topic text box (or the top bit of it for a PM, where there is no topic text box).
Also, looks like you have some merge conflicts and will need to rebase.
While you're working on this, want to make the buttons match the style of the compose send and bottom area buttons?  That can be its own commit on this branch.

Hm, interesting. I added the pointer-events: none attribute to .message_top_line which seems to let the cursor fall through to the text box.

Ok, fixed. Pointer events is disabled for the wrapper div .message_top_line, but still enabled for all its descendants.

Merged, thanks @cory2067!  @rishig FYI :)


My tests require photos in the Camera Roll but this is empty

Some of my tests have a requirement to attach photos.  For this we have a number of photos stored in the Camera Roll.  We then can attach a photo in our app.  However, we delete the simulator each time (starting fresh each time we found to be more reliable) and there are no photos in the Media folder of the device type so when we go to add a photo as an attachment in our app the tests fail.  Would it be possible for the media folder to be pre-populated with a sample photo?  I have looked at adding something like:
xcrun simctl addmedia {UUID} .~/Automation/Media/.jpg or
xcrun simctl addmedia booted .~/Automation/Media/.jpg
Any suggestions on the best approach ? Thank you for any help.

I think xcrun simctl is the easiest way to approach this.
There's also support for that in FBSimulatorControl - so you could fork pxctest and add the functionality directly there. Maybe you can figure out a generic way of implementing this, so we can merge it back upstream here?

Thanks - yes I will look at making any solution generic so we can merge it back upstream.

@plu @pellyco I've noticed that when the devices are booted headlessly they include the default photos so maybe the same setup can be added to the standard boot?


Proposal to modernize and simplify babylon distribution and development

@deltakosh, @sebavan, @RaananW, and many others,
👋 hello friends!
babylon is an immense, powerful, and irreplaceable framework for the web. the sheer magnitude of the amazing work you all do here is awe-inspiring! thank you for your dedication and contributions!
i have some small ideas, and some big ideas. most importantly for my project, i want babylon to be browser-standards-compliant, which is super easy, all we need to do is add .js extensions to all the imports. but i have more radical ideas i'd be willing to work on, and i've been experimenting, so i want to know how far you're willing to go in an effort to modernize and reduce complexity
here is my proposal, perhaps for babylon@6, as prototyped in my branch:
    https://github.com/chase-moskal/Babylon.js/tree/modern
    (note, this branch is not for merging, just demonstrating the ideas)
🏎 super-fast minimalistic typescript build

in my branch, you will see i've converted all of babylon's core and also gui into a single build, that only takes seconds to run

it's all built with one simple standard run of tsc
run an efficient watch routine over all of babylon with tsc -w
npm scripts build and watch to do the above
with your approval and support, i'd like to continue an effort like this with all of babylon's typescript code, so that all of babylon's source is unified under one tree, with one simple build, emitting a single tree of clean es modules, ripe for the taking

🔌 standard browser compatibility for es module imports

simply by adding .js extensions to every import, i've made babylon in my branch browser-standards-compliant. and it's backwards-compatible with bundlers

even if you disagree with everything else in my proposal, i'm certain we'll all agree on this one point: that we should add .js extensions to support native browser standards today (which strictly require the extensions)
this part of the proposal could be done in a minor semver bump, as it is backwards compatible
it's the minimum i need for babylon to work in my project. but if you like, we can go further!

this way, people can load babylon natively in the browser, without requiring any build step or bundlers!<script type="module">
  import {Scene} from "https://unpkg.com/babylonjs/x/core/Scene.js"
    // babylon doesn't currently support this,
    // but this proposal fixes that :)
</script>

browser import maps (available today via polyfill es-module-shims) will make dependency management easy for users, natively in the browser, even without any special tooling like npm or package.json, allowing direct use of bare-specifiers in plain modules

so, it's already common to use bare-specifiers instead of full url's:import {Scene} from "babylonjs/x/core/Scene.js"

my branch already supports all of this, and is fully backwards compatible with familiar npm workflows involving bundlers
this was actually the main motivation for this whole proposal: i was unable currently to load babylon in my modern project, and i don't want to downgrade my project (instead, i want to get involved and contribute!)

📦 simplify how babylon is shipped on npm

consolidate all of babylon source code into one npm package

nowadays, this is actually efficient,

because modern bundlers all support treeshaking,
and even native browser esm loads each module selectively

so the total size of the npm package no longer matters :)

we can reduce all the complexity involved with managing multiple packages and their relationships

there are some improvements we can consider for how babylon is shipped in the npm package:

we should ship both the typescript source code with source maps, in addition to the emitted javascript modules

this way with source maps, end-users will have a better debugging experience in general

we should stop shipping any index files

because index files destroy tree-shaking and selective loading, people will accidentally load much more than they really need. index files seem handy and convenient, but because they are so easily misused, they can be toxic
vscode's autocomplete is really great at finding the right modules to directly import from

we should stop shipping any bundles

bundles are great, but only for applications, not for libraries!
the problem with shipping bundles in libraries, is basically that when another library depends on those bundles, it causes end-users to load multiple redundant copies of entire bundles!

if person A releases a cool game entity as an npm package, and they depend on a bundle of<EMAIL_ADDRESS>then person B who is using<EMAIL_ADDRESS>who imports the cool game entity, will end up loading TWO whole babylon bundles!

the modern approach is that all bundling and optimizations like minifications are the responsibility of each application -- otherwise people end up bundling multiple bundles and similar problems

the original use-case for shipping bundles, used to be for convenient developer experimentation in-browser,
however, now with modern native esm support, browsers can now properly import individual modules, which is the new best-practice for easy developer experimentation :)

the ideal goal, is that babylon becomes a pure, lean, and simple collection of fantastic es modules

browser-ready
bundler-ready (rollup-ready, webpack-ready)
optimization-ready
happy developers 🌈

🛠 simplify babylon's build in general

we should be able to reduce the complexity of the build quite a lot, down to a small collection of standard one-liner npm scripts

like my branch's package.json scripts

devs will already be familiar with such a simple setup
of course, we can't just replace the whole gulp-based build at once -- surely we want to keep large parts of it doing important custom work -- but i'm thinking there are surely significant parts we could simplify and optimize down to these standard familiar one-liner npm scripts that everyone can understand, particularly the typescript build and watch routines

🎷 some opinionated quirks in my branch

instead of a /dist/ directory, i use the shorter name /x/, because it looks better in imports
egimport {Scene} from "babylonjs/x/Scene.js"

instead ofimport {Scene} from "babylonjs/dist/Scene.js"

similarly i use the shorter /s/ instead of /src/
we need the distinction between s and x so end-users have access to both, and they get a great debugging experience via source maps (unless you want js emitted side-by-side with the ts, which is doable)
it's just a fun idea -- totally understandable if you folks still prefer src and dist -- i just find that when you're directly importing things, the shorter file path is slightly nicer :)

temporarily, i threw everything into /_archive/, from which i had extracted and converted the code from core and gui thusfar
if this proposal was approved, i think my actual approach would be to create a script that can automatically recreate the migration over the whole codebase, so that way, we can seamlessly integrate any work from ongoing divergent branches based from the existing babylon master branch (so we don't have to freeze any development)

implemenation of this proposal and backwards compatibility

i understand babylon may not want to make any breaking changes under any circumstances, even with a major semver bump
i think it should be possible to incorporate all or most of this proposal in a net-additive way: perhaps separating a "modern" build routine, from a "legacy" one that CI/CD can worry about :)

thank you for reading my proposal!
please tell me what aspects you like, and also what you might find worrisome or challenging. i'm eager to answer any questions, and have a discussion. if you like this proposal and approve of it, i'd love to continue this work, and coordinate on how we can seamlessly make it a reality for a future version of babylon
please comment with your thoughts, and feel free to add me on discord at Chase Moskal#7898 if you'd like to chat in realtime
    🍻 chase

I love the detailed proposal, so let us have a quick chat before we provide a longer answer in the thread :-)


Frontend: bump rustc version

ping @sonmarcho

https://github.com/hacspec/hax/pull/650
https://github.com/hacspec/hax/pull/655

This was closed by https://github.com/hacspec/hax/pull/735


Implement Clone for Tensor?

I am interested in the reasons for / against implementing Clone for tensor. The only existing discussion I'm aware of is part of #281.
To start, it would be nice to have Clone implemented for Tensor. I'd like to be able to easily clone structures that store tensors.
There is a C++ clone function that could be used. I see that this function is in Declarations-*.yaml but it does not appear in the generated api (at least for tch-rs, it's in the api for ocaml-torch). Even if the decision is not to implement Clone for Tensor it would be nice to expose this function as g_clone or something. [Edit: Oops I forgot about Tensor::copy. Why is that done in rust with copy_ instead of with the C++ clone()?]
There is possibly an issue with whether Tensor::clone should have a gradient back to the source.
From the torch perspective you would expect a clone() method to behave the same as it does in C++ and Python, which is to be differentiable with respect to the source.
From the rust side that might be unexpected: if I clone a parameter tensor then I don't want the new parameter tensor to have gradients back to the original. I'm not sure that detaching is the solution either. If you have
let x = Tensor::ones(&[0], ...).requires_grad_(true);
let y = 2 * x;
let z = y.clone();

then should z be differentiable with respect to x as though it were y or simply be detached? From a rust perspective I'd kind of expect z to be exactly like y which means being differentiable with respect to x.
But the more I think about it though the more I think it's fine for clone() to be differentiable. In the above example, dy/dx = 2 and dy/dy = 1 and z would behave the same when substituting it for y: dz/dx = 2, dz/dy = 1, dz/dz = 1. As for differentiably cloning parameter tensors I think it's unlikely that you would differentiate a function of the clone with respect to the original and if you do, the fact that C++/Pytorch clone is differentiable ought to be enough of a warning to consider that the tch version might be too.
Another risk with implementing Clone is that the new variable isn't tracked by a VarStore but I don't think that should be problem either. If you are calling clone() manually then it should be expected that the clone won't be in a VarStore. The risk would be deriving Clone for a struct that stores Tensors and has those Tensors in a VarStore except you can't do that because VarStore doesn't implement Clone.
Any other reasons for / against? At this point I am in favour of implementing Clone for Tensor using the differentiable C++ clone() function.

Replying to https://github.com/LaurentMazare/tch-rs/issues/281#issuecomment-855287935 from @jerry73204

Another concern is that whether .clone() is shallow or deep affects the semantics of ownership. Currently, the self-modifying methods like .absolute_(&mut self) expects unique ownership. The shallow copy shares the underling data, making the ownership unsound. If libtorch knows concurrent self-modifying operations, just like many other concurrent data structures like dashmap, it should expect shared ownership.

I agree that clone() should be a deep copy. One reason is that the python and c++ clone() methods perform a deep copy so any tch-rs clone() should do the same. Another reason is that, as a user, I think of tch::Tensor as owning the data (even though that's not quite true) so I expect clone() to copy the data. The tch-rs API doesn't really advertise the fact that tch::Tensor is essentially Rc<RefCell<Data>> (on the C++ side) so I think it would be surprising to experience a shallow copy on clone().
As for shallow_clone(), are you sure it's unsound? I'm not an expert on rust's soundness rules or anything but in sound rust code you can have two non-mut Rc<RefCell<Data>> pointing to the same data, modify the data with one, and then it will be modified when the other reads it. I assume that on the C++ side there is some sort of lock to prevent multiple concurrent modifications. If the C++ side is something like Arc<RefCell<Mutex<Data>>> then as far as I know it ought to be fine. The RefCell checks of only-one-&mut wouldn't be there in C++ (just the inner mutability) but since the tch-rs API doesn't let you safely get a pointer to the underlying data, I don't think you can end up with multiple mut references.

The saying of soundness is that unique ownership &mut self does not respect the fact that data is shared in shallow copy. It should be &self instead even for self-modifying methods. It's not wrong about implementation, it's the API that does not respect the rule.
Data sharing is common libtorch in various ways, such as Tensor::view() leads to two owned instances with shared data. It could be explicit like Arc<RefCell<_>>, or be transparent and documented in terms of ownership. The thing is the ownership model of Tensor must be clearly defined. Consider the cases:

Tensor has unique ownership to data: .absolute_(&mut self) has mut, .view(self, ...) takes the ownership of type. .shallow_clone() becomes unsound and should be removed.
Tensor points to shared data: .absolute_(&self) takes shared ownership. .view(&self, ...) takes reference and produce owned type. Deep .clone() and .shallow_clone() can be both defined.

Taking mutable pointer to data can be marked unsafe. The practical use is to implement low level operations with CUDA. An example can be found in my tch-nms (link).


delete-deployment should fail if deployment does not exist

This seems like unexpected behavior:
bosh delete-deployment -n -d this-deployment-doesnt-exist
Using environment 'https://<IP_ADDRESS>:25555' as client 'admin'

Using deployment 'this-deployment-doesnt-exist'

Succeeded

bosh -v
version 2.0.5-ec671ee-2017-02-18T01:11:19Z

I've had this discussion w @cppforlife in the past. The justification is that a step in a CI should not fail because there is nothing to delete. He'd like it idempotent. I see that point, but I've also seen a lot of complaints going the other way, which I can sympathize with too. DK, what if this command were only succeed when the deployment is missing if a flag was specified. Like rm -f no-such-file?

I'd like a -f flag or at least some output that indicates that nothing was actually deleted so that users don't have to run bosh deployments to confirm that the operation did something

Yeah, every other command in the world has a -f flag for this kind of use-case, I don't see why this should be any different

Closing in favor of https://github.com/cloudfoundry/bosh/issues/2053 - lets consolidate future discussion there.


Adding expo-cli breaks appr

I replaced exp with recently released expo-cli and it borke appr. Even re-adding exp did not help. This is the part of travis log that shows the error:
$ appr
[appr] Logging into Expo...
{ Error: spawn ./node_modules/exp/bin/exp.js ENOENT
    at _errnoException (util.js:1024:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
    at onErrorNT (internal/child_process.js:372:16)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)
    at Function.Module.runMain (module.js:678:11)
    at startup (bootstrap_node.js:187:16)
    at bootstrap_node.js:608:3
  code: 'ENOENT',
  errno: 'ENOENT',
  syscall: 'spawn ./node_modules/exp/bin/exp.js',
  path: './node_modules/exp/bin/exp.js',
  spawnargs:
   [ 'login',
     '-u',
     '[secure]',
     '-p',
     '[secure]',
     '--non-interactive' ] }
/home/travis/build/hiposfer/hive/node_modules/appr/index.js:13
    throw new Error('Failed to log into Expo');
    ^
Error: Failed to log into Expo
    at loginError (/home/travis/build/hiposfer/hive/node_modules/appr/index.js:13:11)
    at ChildProcess.child.on.code (/home/travis/build/hiposfer/hive/node_modules/appr/scripts/spawn.js:16:5)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:925:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
    at onErrorNT (internal/child_process.js:372:16)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)
    at Function.Module.runMain (module.js:678:11)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

I changed
const localExp = './node_modules/exp/bin/exp.js';

to
const localExp = './node_modules/expo/bin/cli.js';

and add  expo and expo-cli as dependency.
it's working. But I don't know it's ideal.
https://github.com/ykosaka-welyco/appr/pull/1/files


Image flags as a fallback if Emojis are not available

On Android 4.2 (API 17), there are no flags emojis. Would be nice if you could use images as a fallback  only if emojis are not there.

Hi @vanyasem, thanks for providing picture. I have 2 things to ask before we address the emoji not being available in 4.2.
First, the search bar's height isn't supposed to be that tiny. Do you think it is also related to 4.2?
Second, is that light green color a default color of your phone/emulator? I suppose I it should be configurable in the future.
Finally about the emoji, I'm afraid I can't provide those fallback option. The only point of using emoji is to suppress those expensive image files. I'm thinking of hiding them altogether in API level that doesn't support emojis.

@hendraanggrian a lot of new material things are broken on pre-lollipop devices, so this is related to 4.2 for sure. because running the same build on the same phone but with 5.0 doesn't have that issue. It's a Nexus 4 btw, it's reproducible in an emulator (though i have a physical phone)
The light green color is an accent color of my application, so this works just as it should
And for Emojis - it's possible to only bundle the flag images for older devices in the build script, which is why I opened this issue in the first place

Thanks for pointing out the issue about 4.2, I will address it in next build.

And for Emojis - it's possible to only bundle the flag images for older devices in the build script, which is why I opened this issue in the first place

I have no idea you could do this. Could you give me some pointers so I can study it?


Make initial flux update directly when turning on

Description: Do a direct update instead of requiring user to wait for sun's movements for applying flux.

@Danielhiversen, one could say that checking for the state before calling
update is superflous, but the reason it's added into turn_on() is that at
least in my install the component is OFF per default. When I flip the
switch, it'll get turned on, but the color will be updated first after the
timer/sun moves.
2017-01-11 16:52 GMT+01:00 Daniel Høyer Iversen<EMAIL_ADDRESS>
@Danielhiversen commented on this pull request.
In homeassistant/components/switch/flux.py
https://github.com/home-assistant/home-assistant/pull/5266#pullrequestreview-16167312
:

@@ -134,6 +134,8 @@ def is_on(self):

 def turn_on(self, **kwargs):
     """Turn on flux."""

   if not self._state:  # make initial update

       self.flux_update()

Why not add it to the init function?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/home-assistant/home-assistant/pull/5266#pullrequestreview-16167312,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADiL_RCtOTJ39iwEWivW6wKFmGnZtGMYks5rRPrAgaJpZM4LgDr-
.

--
Terveisin,
Teemu Rytilahti

I agree.  Thats why I deleted my comment. (but not fast enough)
The change looks good to me


Add Markdown formatting hotkeys: CTRL+K, CTRL+I, CTRL+B

As mentioned in our call, I would love to use CTRL+K to insert Markdown link formatting like in GH.
In my opinion, this is ready to ship but something to notice is that document.execCommand() is deprecated but still works as mentioned in this SO answer and is still supported by every browser according to the section about browser compatibility.
Also, it is mentioned that when it is unsupported, it will just return false:

Return value
A boolean value that is false if the command is unsupported or disabled.

-- https://developer.mozilla.org/en-US/docs/Web/API/Document/execCommand#return_value
When it's not supported, only undo for this action will not be usable. It will continue to work afterwards.
I had to use it to fix CTRL+Z since the undo stack is broken after using helpers.setValue().
I found using document.execCommand() as the solution here.
I also added hotkeys for bold and italic formatting since it was easy to include in this change.
Showcase:
https://github.com/stackernews/stacker.news/assets/27162016/093c13c9-ff9f-41b4-924c-12663e0abf6d

I had to use it to fix CTRL+Z since the undo stack is broken after using helpers.setValue().

Btw, this may also be relevant in other parts of the code base.


refactor: use npm module

removes unused code and moves code to https://www.npmjs.com/package/near-fastauth-wallet npm module

After my fix PR, I was able to create an account on this branch


Fixes issue for ordering by a relationship.

This fixes an issue when ordering by a HasMany relationship due to no selects being on the query and overriding the original models id with the id from the relationship.

The PR looks good and tests are passing. Will check this asap.
BTW, if possible, can you add a test for this scenario? Thanks! 🍻

@Nathanw I just realized after testing this that allowing sort on HasMany relationship would yield to multiple duplicate records since we are not grouping on sql level.
Duplicate records when sorted via User -> HasMany-> Post

On the other hand, I think it does fix sorting on HasMany relationship.
Do you think we should merge this and allow the unnecessary duplicate results?
Any feedbacks from other users?

@yajra Almost every relation cause duplicate results. It's always correct to groupBy the query inside your DataTable class manually. I encountered this problem over 100 times.
Nowadays I always include $query->groupBy('my_table'); just before I return the results.


[Help]How to improve search result ?

Firstly, Thanks for your great share for this theme. I have built my own gh page based on it. ( matrixzj.github.io)
I want to improve search result based on page contents. I have tried keywords 'BBQ', nothing was shown in result. I have checked searched result json (https://matrixzj.github.io/assets/js/search-data.json) 'BBQ' should be included in https://matrixzj.github.io/docs/sa-keycaps/PhotoStudio/
How can I improve search result ?

Thanks for filing this, I am working on some improvements here... Ideally someone with more JS / lunr.js experience can help. But I am trying.

Duplicate of #46


vSphere IPI: Bootstrap fails to complete

Describe the bug
Tried deploying an IPI install of OKD 4.5 (latest/GA) to VMware vSphere 6.7, but bootstrapping fails to complete.
Version
vCenter Server Version: <IP_ADDRESS>000 build: 15976714
openshift-install Version: 4.5.0-0.okd-2020-07-29-070316
oc Client Version: 4.5.0-0.okd-2020-07-29-070316
This is a vSphere IPI install. I haven't provisioned any other VMs other than the DNS node running BIND.
How reproducible

Create DNS entries for API and Ingress:

api.okd4.idtus.com.             IN  A   <IP_ADDRESS>
*.apps.okd4.idtus.com.  300     IN  A   <IP_ADDRESS>

Verify DNS with nslookup:

[admin@helper ~]$ nslookup api.okd4.idtus.com
Server:         <IP_ADDRESS>
Address:        <IP_ADDRESS>#53

Name:   api.okd4.idtus.com
Address: <IP_ADDRESS>

[admin@helper ~]$ nslookup blah.apps.okd4.idtus.com
Server:         <IP_ADDRESS>
Address:        <IP_ADDRESS>#53

Name:   blah.apps.okd4.idtus.com
Address: <IP_ADDRESS>

Create Install Config:

[admin@helper ~]$ openshift-install create install-config
? SSH Public Key /home/admin/.ssh/id_rsa.pub
? Platform vsphere
? vCenter vtbvsphere01.corp.idtus.com
? Username<EMAIL_ADDRESS>? Password [? for help] **********
INFO Connecting to vCenter vtbvsphere01.corp.idtus.com
INFO Defaulting to only available datacenter: FRLAB
INFO Defaulting to only available cluster: P2C
? Default Datastore P2C-INFRAS
? Network VM Network
? Virtual IP Address for API <IP_ADDRESS>
? Virtual IP Address for Ingress <IP_ADDRESS>
? Base Domain idtus.com
? Cluster Name okd4
? Pull Secret [? for help] **********************************
INFO Obtaining RHCOS image file from 'https://builds.coreos.fedoraproject.org/prod/streams/stable/builds/32.20200629.3.0/x86_64/fedora-coreos-32.20200629.3.0-vmware.x86_64.ova?sha256=172f299a3e28be360740ff437a5ea9bfc246f52ea8f313d4138c5d16fd4b11e1'
INFO The file was found in cache: /home/admin/.cache/openshift-installer/image_cache/062bfe3785d26fa220e2e6e72d1b3562. Reusing...
INFO Creating infrastructure resources...
INFO Waiting up to 20m0s for the Kubernetes API at https://api.okd4.idtus.com:6443...
INFO API v1.18.3 up
INFO Waiting up to 40m0s for bootstrapping to complete...
0805 14:54:06.267708    2194 reflector.go:307] k8s.io/client-go/tools/watch/informerwatcher.go:146: Failed to watch *v1.ConfigMap: Get https://api.okd4.idtus.com:6443/api/v1/namespaces/kube-system/configmaps?allowWatchBookmarks=true&fieldSelector=metadata.name%3Dbootstrap&resourceVersion=3709&timeoutSeconds=475&watch=true: dial tcp <IP_ADDRESS>:6443: connect: connection refused
E0805 14:54:07.270835    2194 reflector.go:307] k8s.io/client-go/tools/watch/informerwatcher.go:146: Failed to watch *v1.ConfigMap: Get https://api.okd4.idtus.com:6443/api/v1/namespaces/kube-system/configmaps?allowWatchBookmarks=true&fieldSelector=metadata.name%3Dbootstrap&resourceVersion=3709&timeoutSeconds=586&watch=true: dial tcp <IP_ADDRESS>:6443: connect: connection refused
ERROR [failed to lookup master.0 ipv4 address: Post https://vtbvsphere01.corp.idtus.com/sdk: context deadline exceeded, failed to lookup master.1 ipv4 address: Post https://vtbvsphere01.corp.idtus.com/sdk: context deadline exceeded, failed to lookup master.2 ipv4 address: Post https://vtbvsphere01.corp.idtus.com/sdk: context deadline exceeded]
INFO Pulling debug logs from the bootstrap machine
INFO Bootstrap gather logs captured here "/home/admin/log-bundle-20200805151617.tar.gz"
FATAL Bootstrap failed to complete: failed to wait for bootstrapping to complete: timed out waiting for the condition

I've tried this process more than once with the GA and latest (4.5.0-0.okd-2020-07-29-070316) build - the result was the same.
Are load balancers expected to be deployed to the provided API and Ingress VIPs during the installation, or does the IPI install do that as well?
I've tried configuring two HAProxy loadbalancers on two separate RHEL 7 VMs:

<IP_ADDRESS> (API)
<IP_ADDRESS> (Ingress)

Each VM's haproxy.cfg pointed to 3 non-existent VMs:

<IP_ADDRESS> - API to: <IP_ADDRESS>-75
<IP_ADDRESS> - Ingress to: <IP_ADDRESS>-78

Bootstrapping still failed in this test as well. I'm not quiet sure if that configuration is right - is there documentation on how the load balancers are expected to be configured for OKD4?
I wasn't sure how similar this was to issues/276, so I wanted to provide my steps to reproduce and log bundle.
Log bundle
log-bundle-20200805151617.tar.gz
Thanks in advance!

Looks very similar to #276 - bootstrap didn't get proper hostname assigned. Would you mind giving one of the latest nightlies a try?

Okay, trying with nightly: release:4.5.0-0.okd-2020-08-06-102301
Running:
oc adm release extract --tools registry.svc.ci.openshift.org/origin/release:4.5.0-0.okd-2020-08-06-102301

Then repeating the steps in my original post to perform the vSphere IPI install
Will post results shortly. Thanks @vrutkovs !

release:4.5.0-0.okd-2020-08-06-102301 also failed - here is what I did:
[admin@helper ~]$ oc adm release extract --tools registry.svc.ci.openshift.org/origin/release:4.5.0-0.okd-2020-08-06-102301
[admin@helper ~]$ openshift-install create cluster
? SSH Public Key /home/admin/.ssh/id_rsa.pub
? Platform vsphere
? vCenter vtbvsphere01.corp.idtus.com
? Username<EMAIL_ADDRESS>? Password [? for help] **********
INFO Connecting to vCenter vtbvsphere01.corp.idtus.com
INFO Defaulting to only available datacenter: FRLAB
INFO Defaulting to only available cluster: P2C
? Default Datastore P2C-INFRAS
? Network VM Network
? Virtual IP Address for API <IP_ADDRESS>
? Virtual IP Address for Ingress <IP_ADDRESS>
? Base Domain idtus.com
? Cluster Name okd4
? Pull Secret [? for help] **********************************
INFO Obtaining RHCOS image file from 'https://builds.coreos.fedoraproject.org/prod/streams/stable/builds/32.20200629.3.0/x86_64/fedora-coreos-32.20200629.3.0-vmware.x86_64.ova?sha256=172f299a3e28be360740ff437a5ea9bfc246f52ea8f313d4138c5d16fd4b11e1'
INFO The file was found in cache: /home/admin/.cache/openshift-installer/image_cache/062bfe3785d26fa220e2e6e72d1b3562. Reusing...
INFO Creating infrastructure resources...
INFO Waiting up to 20m0s for the Kubernetes API at https://api.okd4.idtus.com:6443...
ERROR Attempted to gather ClusterOperator status after installation failure: listing ClusterOperator objects: Get https://api.okd4.idtus.com:6443/apis/config.openshift.io/v1/clusteroperators: dial tcp <IP_ADDRESS>:6443: connect: no route to host
ERROR Attempted to gather debug logs after installation failure: failed to get bootstrap and control plane host addresses from "terraform.tfstate": failed to lookup bootstrap ipv4 address: Post https://vtbvsphere01.corp.idtus.com/sdk: context deadline exceeded
FATAL Bootstrap failed to complete: failed waiting for Kubernetes API: Get https://api.okd4.idtus.com:6443/version?timeout=32s: dial tcp <IP_ADDRESS>:6443: connect: no route to host

Grabbed the log-bundle using: [admin@helper ~]$ openshift-install gather bootstrap
Log Bundle:
log-bundle-20200805151617.tar.gz

Trying [4.5.0-0.okd-2020-08-07-103751](oc adm release extract --tools registry.svc.ci.openshift.org/origin/release:4.5.0-0.okd-2020-08-07-103751) - will post results shortly.

The 4.5.0-0.okd-2020-08-07-103751 release page says at the top that this command:
oc adm release extract --tools registry.svc.ci.openshift.org/origin/release:4.5.0-0.okd-2020-08-07-103751
downloads the client and installer.
The oc and openshift-install binaries under /usr/local/bin are still the ones I manually downloaded from: https://github.com/openshift/okd/releases/tag/4.5.0-0.okd-2020-07-29-070316
Where is the oc adm release extract --tools command downloading the installer and client to, I'd like to move it over the 2020-07-29 release binaries.
Thanks!

Gotcha, extracts to cwd. Actually testing 4.5.0-0.okd-2020-08-07-103751
Will post results shortly

Okay, so I ran with the above version's client/installer binaries updated:
[admin@helper ~]$ oc version
Client Version: 4.5.0-0.okd-2020-08-07-103751
[admin@helper ~]$ openshift-install version
openshift-install 4.5.0-0.okd-2020-08-07-103751
built from commit 699277bb61706731d687b9e40700ebf4630b0851
release image registry.svc.ci.openshift.org/origin/release@sha256:4d72ca8ae73bb4b6596464485bce191d8dbef5f5d71f5c91d49dd89fc1dc7786

Running with log-level=debug once it got to waiting for the Kubernetes API:
INFO Waiting up to 20m0s for the Kubernetes API at https://api.okd4.idtus.com:6443...
DEBUG Still waiting for the Kubernetes API: Get https://api.okd4.idtus.com:6443/version?timeout=32s: dial tcp <IP_ADDRESS>:6443: connect: no route to host
DEBUG Still waiting for the Kubernetes API: Get https://api.okd4.idtus.com:6443/version?timeout=32s: dial tcp <IP_ADDRESS>:6443: connect: no route to host
DEBUG Still waiting for the Kubernetes API: Get https://api.okd4.idtus.com:6443/version?timeout=32s: dial tcp <IP_ADDRESS>:6443: connect: no route to host
DEBUG Still waiting for the Kubernetes API: Get https://api.okd4.idtus.com:6443/version?timeout=32s: dial tcp <IP_ADDRESS>:6443: connect: no route to host
DEBUG Still waiting for the Kubernetes API: Get https://api.okd4.idtus.com:6443/version?timeout=32s: dial tcp <IP_ADDRESS>:6443: connect: no route to host
DEBUG Still waiting for the Kubernetes API: Get https://api.okd4.idtus.com:6443/version?timeout=32s: dial tcp <IP_ADDRESS>:6443: connect: no route to host
DEBUG Still waiting for the Kubernetes API: Get https://api.okd4.idtus.com:6443/version?timeout=32s: dial tcp <IP_ADDRESS>:6443: connect: no route to host
DEBUG Still waiting for the Kubernetes API: Get https://api.okd4.idtus.com:6443/version?timeout=32s: dial tcp <IP_ADDRESS>:6443: connect: no route to host
DEBUG Still waiting for the Kubernetes API: Get https://api.okd4.idtus.com:6443/version?timeout=32s: dial tcp <IP_ADDRESS>:6443: connect: no route to host
DEBUG Still waiting for the Kubernetes API: Get https://api.okd4.idtus.com:6443/version?timeout=32s: dial tcp <IP_ADDRESS>:6443: connect: no route to host
DEBUG Still waiting for the Kubernetes API: Get https://api.okd4.idtus.com:6443/version?timeout=32s: dial tcp <IP_ADDRESS>:6443: connect: no route to host
DEBUG Still waiting for the Kubernetes API: Get https://api.okd4.idtus.com:6443/version?timeout=32s: dial tcp <IP_ADDRESS>:6443: connect: no route to host
DEBUG Still waiting for the Kubernetes API: Get https://api.okd4.idtus.com:6443/version?timeout=32s: dial tcp <IP_ADDRESS>:6443: connect: no route to host
DEBUG Still waiting for the Kubernetes API: Get https://api.okd4.idtus.com:6443/version?timeout=32s: dial tcp <IP_ADDRESS>:6443: connect: no route to host
DEBUG Still waiting for the Kubernetes API: Get https://api.okd4.idtus.com:6443/version?timeout=32s: dial tcp <IP_ADDRESS>:6443: connect: no route to host
DEBUG Still waiting for the Kubernetes API: Get https://api.okd4.idtus.com:6443/version?timeout=32s: dial tcp <IP_ADDRESS>:6443: connect: no route to host
DEBUG Still waiting for the Kubernetes API: Get https://api.okd4.idtus.com:6443/version?timeout=32s: dial tcp <IP_ADDRESS>:6443: connect: no route to host
DEBUG Still waiting for the Kubernetes API: Get https://api.okd4.idtus.com:6443/version?timeout=32s: dial tcp <IP_ADDRESS>:6443: connect: no route to host
DEBUG Still waiting for the Kubernetes API: Get https://api.okd4.idtus.com:6443/version?timeout=32s: dial tcp <IP_ADDRESS>:6443: connect: no route to host
DEBUG Still waiting for the Kubernetes API: Get https://api.okd4.idtus.com:6443/version?timeout=32s: dial tcp <IP_ADDRESS>:6443: connect: no route to host
DEBUG Still waiting for the Kubernetes API: Get https://api.okd4.idtus.com:6443/version?timeout=32s: dial tcp <IP_ADDRESS>:6443: connect: no route to host
DEBUG Still waiting for the Kubernetes API: Get https://api.okd4.idtus.com:6443/version?timeout=32s: dial tcp <IP_ADDRESS>:6443: connect: no route to host
DEBUG Still waiting for the Kubernetes API: Get https://api.okd4.idtus.com:6443/version?timeout=32s: dial tcp <IP_ADDRESS>:6443: connect: no route to host
DEBUG Still waiting for the Kubernetes API: Get https://api.okd4.idtus.com:6443/version?timeout=32s: dial tcp <IP_ADDRESS>:6443: connect: no route to host
DEBUG Still waiting for the Kubernetes API: Get https://api.okd4.idtus.com:6443/version?timeout=32s: dial tcp <IP_ADDRESS>:6443: connect: no route to host
DEBUG Still waiting for the Kubernetes API: Get https://api.okd4.idtus.com:6443/version?timeout=32s: dial tcp <IP_ADDRESS>:6443: connect: no route to host
ERROR Attempted to gather ClusterOperator status after installation failure: listing ClusterOperator objects: Get https://api.okd4.idtus.com:6443/apis/config.openshift.io/v1/clusteroperators: dial tcp <IP_ADDRESS>:6443: connect: no route to host
DEBUG Fetching Bootstrap SSH Key Pair...
DEBUG Loading Bootstrap SSH Key Pair...
DEBUG Using Bootstrap SSH Key Pair loaded from state file
DEBUG Reusing previously-fetched Bootstrap SSH Key Pair
DEBUG Fetching Install Config...
DEBUG Loading Install Config...
DEBUG   Loading SSH Key...
DEBUG   Loading Base Domain...
DEBUG     Loading Platform...
DEBUG   Loading Cluster Name...
DEBUG     Loading Base Domain...
DEBUG     Loading Platform...
DEBUG   Loading Pull Secret...
DEBUG   Loading Platform...
DEBUG Using Install Config loaded from state file
DEBUG Reusing previously-fetched Install Config
ERROR Attempted to gather debug logs after installation failure: failed to get bootstrap and control plane host addresses from "terraform.tfstate": failed to lookup bootstrap ipv4 address: Post https://vtbvsphere01.corp.idtus.com/sdk: context deadline exceeded
FATAL Bootstrap failed to complete: failed waiting for Kubernetes API: Get https://api.okd4.idtus.com:6443/version?timeout=32s: dial tcp <IP_ADDRESS>:6443: connect: no route to host

I tried to use: openshift-install gather bootstrap, to grab the log-bundle, but it failed to access the terraform VMs:
[admin@helper ~]$ openshift-install gather bootstrap
FATAL failed to get bootstrap and control plane host addresses from "terraform.tfstate": failed to lookup bootstrap ipv4 address: Post https://vtbvsphere01.corp.idtus.com/sdk: context deadline exceeded

All 3 master VMs are powered on and looping with the following:
[ 2075.270779] ignition[501]: GET error: Get "https://<IP_ADDRESS>:22623/config/master": dial tcp <IP_ADDRESS>:22626: connect: network is unreachable
It seems to still not be setting the hostname correctly? Is there another nightly I could try to use?
Thanks again!

Does your DNS server resolve a reverse zone for your ip addresses?
I had to create the reverse zone for the installer to finish.

@rarguello
My DNS Server has the following forward zone entries:
api.okd4.idtus.com.             IN  A   <IP_ADDRESS>
*.apps.okd4.idtus.com.  300     IN  A   <IP_ADDRESS>

...and a reverse zone for the API address:
71              IN  PTR         api.okd4.idtus.com.

If I try to add one for Ingress (wildcard), BIND will not start (example below):
72              IN  PTR         *.apps.okd4.idtus.com.

The BIND error is:
bash[20345]: dns_rdata_fromtext: 2.4.10.rev.idtus.com:16: near '*.apps.okd4.idtus.com.': bad name (check-names)
bash[20345]: zone 2.4.10.in-addr.arpa/IN: loading from master file 2.4.10.rev.idtus.com failed: bad name (check-names)

Maybe not having the wildcard reverse zone is what I'm missing?

You need a reverse entry for every master and worker.
I don't think you can have a reverse for a wildcard, you don't really need that.

Is it true that we need a reverse record prior to cluster installation for every master and worker? That's not mentioned in the DNS section of the installation documentation. The docs only mention a forward for the wildcard and the api address.

You don't need it, unless your DHCP is misconfigured and sets unexpected IP to the nodes. Configuring this is not an OKD bug really

@vrutkovs - please clarify. What do "unexpected IP" or "DHCP misconfigured" mean for you?
I am asking because I am facing a similar issue (bootstrap not completing), and this thread actually gives conflicting information. Is a reverse DNS entry required or not? If it is, when exactly is it required? And are there any restrictions for the PTR names (i.e. do they need to match the forward entries)?
Thank you!

Once your masters get an IP its not expected to change (this causes issues with certificates). So your DHCP setup should issue a lease for masters in IPI and have it persisted

@DizzyThermal  have you been able to solve the issue? same problem here

@DizzyThermal At the end I got it working. IPI installation on vsphere can require more time then the one available with 'create cluster' that ends for time out.  I had to ran 'wait-for bootstrap-complete' to complete the bootstrap and then 'wait-for install-complete'. Others hints: make sure to have all available hw requirements and configure dhcp server with correct lease time (increasing it as much as possible).


services.kubo: ipfs CLI only works under root

Describe the bug
When running an ipfs/kubo node using services.kubo.enable = true, the ipfs CLI is not usable unless executed with root privileges. E.g.:
❯ ipfs id
Error: error loading plugins: open /var/lib/ipfs/config: permission denied
❯ sudo -E ipfs id
{
	"ID": ...
}

I don't know if that's a bug or the intended behaviour.
There's a NixOS test for kubo, which tests ipfs ... id, but only runs it with root privileges:
https://github.com/NixOS/nixpkgs/blob/151981821c03435ee8047f6c1b9367c1a26788ed/nixos/tests/kubo.nix#L30
Steps To Reproduce
Steps to reproduce the behavior:

services.kubo.enable = true
ipfs id -> get a "permission denied" error
sudo -E ipfs id

Expected behavior
Both commands print the json with node public info.
If step 2 was supposed to fail after all, I expected to see a different description of the module or a comment in the test.
Notify maintainers

@Luflosi (services.kubo maintainer)
@Ericson2314 (edited the nixos test)

As I said, I don't know if this was the intended behaviour. Just in case, I apologize for the noise 🙃
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.19, NixOS, 23.05 (Stoat), 23.05.20230314.7067edc`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.14.1`
 - nixpkgs: `/etc/nixpkgs/channels/nixpkgs`

This would have been fixed by https://github.com/ipfs/kubo/pull/9366 but the fix seems to have been ignored upstream.
I think I found a way to fix this without patching Kubo. Ping me in one month if I haven't gotten around to trying my idea by then.

This would have been fixed by https://github.com/ipfs/kubo/pull/9366 but the fix seems to have been ignored upstream.
I think I found a way to fix this without patching Kubo. Ping me in one month if I haven't gotten around to trying my idea by then.

See also #82580, which is a very similar issue.

I created #226288 to fix this.


Implement regex-based target exclusion

Hey, first of all, thanks for this plugin.
Sometimes it's not feasible to explicitly list targets one would like to exlude, that's why I implemented this regular expression exclusion support alongside the existing exact match behavior.
Note: I'm getting Package.resolved changes while building, not sure if I should include them in the PR or not 🤔

File
Coverage

Sources/DangerSwiftCoverage/DangerSwiftCoverage.swift
81.13207%
✅

Sources/DangerSwiftCoverage/Models/ExcludedTarget.swift
87.5%
✅

Sources/DangerSwiftCoverage/Models/XcodeBuildCoverage.swift
100.0%
✅

Sources/DangerSwiftCoverage/XcodeBuild/XcodeBuildCoverageParser.swift
83.333336%
✅

Tests/DangerSwiftCoverageTests/CoverageTests.swift
98.52941%
✅

Tests/DangerSwiftCoverageTests/XcodeBuildCoverageParserTests.swift
81.976746%
✅

  Generated by :no_entry_sign: Danger Swift against 2dc288bc9a67da97fb90d46ed383170617d447c3

Messages

:book:
Project coverage: 54.86%

:book:
Executed 17 tests, with 0 failures (0 unexpected) in 0.363 (0.375) seconds

DangerSwiftCoverage.framework: Coverage: 78.26

File
Coverage

DangerSwiftCoverage.swift
81.13%
✅

ExcludedTarget.swift
100.0%
✅

XcodeBuildCoverageParser.swift
83.33%
✅

XcodeBuildCoverage.swift
100.0%
✅

  Generated by :no_entry_sign: Danger Swift against 2dc288bc9a67da97fb90d46ed383170617d447c3

Messages

:book:
Project coverage: 54.86%

DangerSwiftCoverage.framework: Coverage: 78.26

File
Coverage

DangerSwiftCoverage.swift
81.13%
✅

ExcludedTarget.swift
100.0%
✅

XcodeBuildCoverageParser.swift
83.33%
✅

XcodeBuildCoverage.swift
100.0%
✅

  Generated by :no_entry_sign: Danger Swift against 2dc288bc9a67da97fb90d46ed383170617d447c3

Hey, can I do anything to expedite reviewing this? Thanks in advance 🙏

@f-meloni thank you ❤


RELEASE

👍

Coverage increased (+6.2%) to 82.246% when pulling 1a539cd638fe6a8d6e3c32ccba2cf7372c3fd871 on develop into 2e7887db912604bf86447606b510b6000bc9b54b on master.

🍉


cmd/go: bad stack in reported import failure

I'm seeing a lot of reports about the go command reporting a problem, in which the import stack is completely bogus. For example, #11307.
In addition to fixing the reported problems, we should figure out why the import stacks are terrible and fix them.

Relevant comment from #11307:
Regarding the inaccurate import stacks, there is a missing stk.pop() in func download() of src/cmd/go/get.go, between lines 233-234 (go1.5beta1) corresponding to the stk.push() at line 192.  Also, the stk.push/pop pair at lines 225-227 are extraneous.

I fixed the problem with the stack in #11307 as part of the fix for that bug.
In the absence of another example, closing this.


runner: Use multiple browser contexts to speed up testing

This MR brings testing ~5 projects from 21s to 6s

Use one browser instance per project to test simultaneously

Debounce promise until a context is free

Add max-contexts to choose maximum browser instances to CLI
Move width and height argument per-project. Each project can now choose its testing size since we have one viewport per page.

TODO Post-Merge

[ ] Allow to watch a project instead of an event, since events could be missing

All steps are now done for each project, and logs follow the same pattern:

Capture all screenshots
Compare all
Save images

Code is cleaner to read, but also the output is better:


Increased the Varnish test timeout.

Test b00002 completes in 60.4s and is killed right before completion. I increased the varnishtest timeout to 120s (default is 60s)

Hi. I cannot reproduce this. What varnish and maxminddb versions are you using? Can you attach the various logs?

Logs:

b00002_UNPATCHED.log
b00002_PATCHED.log

Packages:

libmaxminddb0 1.6.0-0+maxmind1~bionic
libmaxminddb-dev 1.6.0-0+maxmind1~bionic

OS:

Ubuntu 18.04.6 LTS (bionic)

Varnish:

Version: 6.0.10 revision 9a7da4ff4c0c824af33e230740a11e99fdca23d9
Origin: deb https://packagecloud.io/varnishcache/varnish60lts/ubuntu bionic main

I haven't been able to reproduce this and I don't believe it should be needed under normal circumstances.
I think something else is going on here, and I'd be happy to help you debug it but for now, I'm going to close this PR.


chore: Alpha 2

:tada: This PR is included in version 1.0.0-alpha-4.1 :tada:
The release is available on:

GitHub release
v1.0.0-alpha-4.1

Your semantic-release bot :package::rocket:


az login: Authentication failed

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Related command
az login
az login --use-device-code
Describe the bug
I am getting on the browser:
Authentication failed
access_denied: $error_description. ($error_uri)
You can log an issue at Azure CLI GitHub Repository and we will assist you in resolving it.
az login --use-device-code,
HTTPSConnectionPool(host='login.microsoftonline.com', port=443): Max retries exceeded with url: /organizations/oauth2/v2.0/devicecode (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)')))
I did all procedures for certificates for az Cli.

@jiasli for awareness

Why are the variables not substituted?
https://github.com/Azure/azure-cli/blob/9c648087e5e7bdc20dcefc595085b8180e66582e/src/azure-cli-core/azure/cli/core/auth/landing_pages/error.html#L9

@youngwon417-2, For the az login error access_denied, did you see something like this in your web browser?

After clicking "OK", what is the URL in the address bar? Does it look like http://localhost:4455/?error=access_denied&error_subcode=cancel&state=xxx?
If so, it is very likely your account is blocked by your tenant's Conditional Access policy. You may reach out to your tenant admin for investigation.

For az login --use-device-code error certificate verify failed: self signed certificate in certificate chain, this is because your network has a proxy intercepting HTTPS traffic. Please follow https://learn.microsoft.com/en-us/cli/azure/use-cli-effectively?tabs=bash%2Cbash2#work-behind-a-proxy to configure the certificate in Azure CLI's CA bundle.

@sanmai-NL, I can repro this issue when I log in with an account blocked by an Conditional Access policy that blocks any location:

I guess it is because the URL after redirection looks like http://localhost:4455/?error=access_denied&error_subcode=cancel&state=xxx and doesn't contain error_description or error_uri, so MSAL is not able to populate these placeholders.
I will contact MSAL to investigate this issue.


Code

Hello, author, I couldn't find DN-FPN and Trans R-CNN. Could you please tell me where they are?

For Trans R-CNN, refer to the file located at mmdet-dntr/mmdet/models/roi_heads/cascade_roi_head_cas_t2t_new_jit_mask.py. For DN-FPN, you can find it in mmdet-dntr/mmdet/models/detectors/two_stage.py (issue #3).


add/remove gene profile significant lag on remote server

I have to increase the priority of this, as I found it annoyingly slow. Anytime you open the list, it get stuck for quite a few seconds. Network traffic log indicates that the bottleneck is the front-end processing, instead of network transfer. @Shauro


Added new PreferLocations[WithFallback][RegEx] balancers

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

Pull request type

Please check the type of change your PR introduces:

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] Documentation content changes
[ ] Other (please describe):

What is the current behavior?

Issue Number: N/A
What is the new behavior?

Other information

Codecov Report

Merging #77 (16e2aaf) into master (b644668) will decrease coverage by 9.80%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master      #77      +/-   ##
==========================================
- Coverage   43.28%   33.48%   -9.81%
==========================================
  Files          92       43      -49
  Lines       11582     6574    -5008
==========================================
- Hits         5013     2201    -2812
+ Misses       6279     4239    -2040
+ Partials      290      134     -156

Flag
Coverage Δ

1.16.x
?

1.17.x
33.48% <ø> (-9.77%)
:arrow_down:

integration
?

macOS-latest
?

ubuntu-latest
33.48% <ø> (-19.53%)
:arrow_down:

unit
33.48% <ø> (+7.86%)
:arrow_up:

windows-latest
?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

internal/driver/driver.go
0.00% <0.00%> (-85.72%)
:arrow_down:

scheme.go
0.00% <0.00%> (-80.65%)
:arrow_down:

internal/driver/driver_as_cluster.go
0.00% <0.00%> (-70.00%)
:arrow_down:

table.go
0.00% <0.00%> (-64.62%)
:arrow_down:

options.go
0.00% <0.00%> (-55.85%)
:arrow_down:

internal/scheme/scheme.go
0.00% <0.00%> (-55.72%)
:arrow_down:

internal/table/scanner/result.go
31.86% <0.00%> (-52.75%)
:arrow_down:

connection.go
0.00% <0.00%> (-44.31%)
:arrow_down:

internal/errors/errors.go
0.00% <0.00%> (-36.59%)
:arrow_down:

internal/operation/params.go
0.00% <0.00%> (-36.00%)
:arrow_down:

... and 70 more

Continue to review full report at Codecov.

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


LTI dependency fails to load

Just tried using this via mvn, got this error:
[INFO] ------------------------------------------------------------------------
Downloading: https://repo.maven.apache.org/maven2/org/imsglobal/basiclti-util/1.1.2/basiclti-util-1.1.2.pom
[WARNING] The POM for org.imsglobal:basiclti-util:jar:1.1.2 is missing, no dependency information available
Downloading: https://repo.maven.apache.org/maven2/org/imsglobal/basiclti-util/1.1.2/basiclti-util-1.1.2.jar
[INFO] ------------------------------------------------------------------------

The POM is very vanilla:
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <groupId>com.meetingone.hello</groupId>
  <artifactId>hello</artifactId>
  <version>0.0.1</version>
  <packaging>jar</packaging>

  <name>hello</name>
  <url>http://maven.apache.org</url>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>

  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.imsglobal</groupId>
      <artifactId>basiclti-util</artifactId>
      <version>1.1.2</version>
    </dependency>

  </dependencies>
</project>

I'm not a maven guru, so feel free to tell me if I've got a dumb mistake here.

Hi, there was a gap of time between when it the version was updated in the README & when it showed up in maven central.
It's there now: http://search.maven.org/#artifactdetails|org.imsglobal|basiclti-util|1.1.2|jar
would you mind giving it another try?

Worked like a charm, thanks. I figured it was something like that.
On Thu, Aug 4, 2016 at 2:49 PM, Paul Gray<EMAIL_ADDRESS>wrote:

Hi, there was a gap of time between when it the version was updated in the
README & when it showed up in maven central.
It's there now: http://search.maven.org/#artifactdetails|org.
imsglobal%7Cbasiclti-util%7C1.1.2%7Cjar
would you mind giving it another try?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/IMSGlobal/basiclti-util-java/issues/25#issuecomment-237679279,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAFTDpiJqIsF6V7iwaJ-8MWFha48vyI-ks5qclB1gaJpZM4Ja4wa
.

No problem, sorry about that!
I'll keep a closer watch on the time that future releases make it into maven central.


Could not import time module

I continuously encounter an error: "ImportError: No module named 'time' " .
As time module is depended by several other modules, it becomes impossible to me to continue.
It seems time module is not correctly linked in the building phase as make shows:
Undefined symbols for architecture armv7:
"_PyArg_ParseTuple", referenced from:
_time_sleep in timemodule.o
_time_gmtime in timemodule.o
_time_localtime in timemodule.o
_time_ctime in timemodule.o
_time_strftime in timemodule.o
_time_get_clock_info in timemodule.o
_gettmarg in timemodule.o
...
"_PyArg_UnpackTuple", referenced from:
_time_asctime in timemodule.o
"_PyBool_FromLong", referenced from:
_time_get_clock_info in timemodule.o
"_PyDict_New", referenced from:
_time_get_clock_info in timemodule.o
"_PyDict_SetItemString", referenced from:
_time_get_clock_info in timemodule.o
"_PyErr_CheckSignals", referenced from:
_time_sleep in timemodule.o
"_PyErr_Clear", referenced from:
_time_perf_counter in timemodule.o
_time_get_clock_info in timemodule.o
"_PyErr_NoMemory", referenced from:
_time_strftime in timemodule.o
"_PyErr_Occurred", referenced from:
_tmtotuple in timemodule.o
_gettmarg in timemodule.o
"_PyErr_SetFromErrno", referenced from:
_time_sleep in timemodule.o
_time_gmtime in timemodule.o
_time_localtime in timemodule.o
_time_asctime in timemodule.o
_time_ctime in timemodule.o
_time_strftime in timemodule.o
"_PyErr_SetString", referenced from:
_time_clock in timemodule.o
_time_sleep in timemodule.o
_time_mktime in timemodule.o
_time_get_clock_info in timemodule.o
_gettmarg in timemodule.o
_checktm in timemodule.o
_py_process_time in timemodule.o
...
"_PyEval_RestoreThread", referenced from:
_time_sleep in timemodule.o
"_PyEval_SaveThread", referenced from:
_time_sleep in timemodule.o
"_PyExc_IOError", referenced from:
_time_sleep in timemodule.o
"_PyExc_OSError", referenced from:
_time_gmtime in timemodule.o
_time_localtime in timemodule.o
_time_asctime in timemodule.o
_time_ctime in timemodule.o
_time_strftime in timemodule.o
"_PyExc_OverflowError", referenced from:
_time_mktime in timemodule.o
"_PyExc_RuntimeError", referenced from:
_time_clock in timemodule.o
_time_get_clock_info in timemodule.o
_py_process_time in timemodule.o
"_PyExc_TypeError", referenced from:
_gettmarg in timemodule.o
"_PyExc_ValueError", referenced from:
_time_sleep in timemodule.o
_time_get_clock_info in timemodule.o
_checktm in timemodule.o
"_PyFloat_FromDouble", referenced from:
_time_time in timemodule.o
_time_clock in timemodule.o
_time_mktime in timemodule.o
_time_monotonic in timemodule.o
_time_perf_counter in timemodule.o
_time_get_clock_info in timemodule.o
_py_process_time in timemodule.o
...
"_PyImport_ImportModuleNoBlock", referenced from:
_time_strptime in timemodule.o
"_PyLong_AsLong", referenced from:
_gettmarg in timemodule.o
"_PyLong_FromLong", referenced from:
_tmtotuple in timemodule.o
"_PyMem_Free", referenced from:
_time_strftime in timemodule.o
"_PyMem_Malloc", referenced from:
_time_strftime in timemodule.o
"_PyModule_AddIntConstant", referenced from:
_PyInit_time in timemodule.o
"_PyModule_AddObject", referenced from:
_PyInit_time in timemodule.o
"_PyModule_Create2", referenced from:
_PyInit_time in timemodule.o
"_PyStructSequence_InitType2", referenced from:
_PyInit_time in timemodule.o
"_PyStructSequence_New", referenced from:
_tmtotuple in timemodule.o
"_PyUnicode_AsUTF8", referenced from:
_gettmarg in timemodule.o
"_PyUnicode_AsWideCharString", referenced from:
_time_strftime in timemodule.o
"_PyUnicode_DecodeLocale", referenced from:
_tmtotuple in timemodule.o
"_PyUnicode_FromFormat", referenced from:
_time_asctime in timemodule.o
_time_ctime in timemodule.o
"_PyUnicode_FromString", referenced from:
_time_get_clock_info in timemodule.o
"_PyUnicode_FromWideChar", referenced from:
_time_strftime in timemodule.o
"_Py_BuildValue", referenced from:
_PyInit_time in timemodule.o
"__PyNamespace_New", referenced from:
_time_get_clock_info in timemodule.o
"__PyObject_CallMethodId", referenced from:
_time_strptime in timemodule.o
"__PyTime_ObjectToTime_t", referenced from:
_time_gmtime in timemodule.o
_time_localtime in timemodule.o
_time_ctime in timemodule.o
"__PyTime_gettimeofday_info", referenced from:
_time_time in timemodule.o
_time_perf_counter in timemodule.o
_time_get_clock_info in timemodule.o
"__Py_NoneStruct", referenced from:
_time_sleep in timemodule.o
_time_gmtime in timemodule.o
_time_localtime in timemodule.o
_time_ctime in timemodule.o
_gettmarg in timemodule.o
"___error", referenced from:
_time_sleep in timemodule.o
_time_gmtime in timemodule.o
_time_localtime in timemodule.o
_time_asctime in timemodule.o
_time_ctime in timemodule.o
_time_strftime in timemodule.o
"___floatundidf", referenced from:
_time_monotonic in timemodule.o
_time_perf_counter in timemodule.o
_time_get_clock_info in timemodule.o
"___stack_chk_fail", referenced from:
_PyInit_time in timemodule.o
"___stack_chk_guard", referenced from:
_PyInit_time in timemodule.o
"_clock", referenced from:
_time_clock in timemodule.o
_time_get_clock_info in timemodule.o
_py_process_time in timemodule.o
"_floor", referenced from:
_time_sleep in timemodule.o
"_fmod", referenced from:
_time_sleep in timemodule.o
"_getrusage", referenced from:
_py_process_time in timemodule.o
"_gmtime", referenced from:
_time_gmtime in timemodule.o
"_localtime", referenced from:
_PyInit_time in timemodule.o
_time_localtime in timemodule.o
_time_asctime in timemodule.o
_time_ctime in timemodule.o
_time_strftime in timemodule.o
"_mach_absolute_time", referenced from:
_time_monotonic in timemodule.o
_time_perf_counter in timemodule.o
_time_get_clock_info in timemodule.o
"_mach_timebase_info", referenced from:
_time_monotonic in timemodule.o
_time_perf_counter in timemodule.o
_time_get_clock_info in timemodule.o
"_mktime", referenced from:
_time_mktime in timemodule.o
"_select$DARWIN_EXTSN", referenced from:
_time_sleep in timemodule.o
"_strcmp", referenced from:
_time_get_clock_info in timemodule.o
"_strncpy", referenced from:
_PyInit_time in timemodule.o
"_sysconf", referenced from:
_py_process_time in timemodule.o
"_time", referenced from:
_PyInit_time in timemodule.o
_time_gmtime in timemodule.o
_time_localtime in timemodule.o
_time_asctime in timemodule.o
_time_ctime in timemodule.o
_time_strftime in timemodule.o
(maybe you meant: _PyInit_time)
"_times", referenced from:
_py_process_time in timemodule.o
"_wcsftime", referenced from:
_time_strftime in timemodule.o
"_wcslen", referenced from:
_time_strftime in timemodule.o
"start", referenced from:
implicit entry/start for main executable

I've just tried the following program:
import time

print("START SLEEPING")
time.sleep(10)
print("STOP SLEEPING")

which worked exactly as you'd expect. Based on the stack trace, I'm guessing the framework hasn't been added fully to the project. It isn't as simple as just dropping the framework into your project; there are a few other pieces that need to be set up. That's why there's a Python-iOS-template project, and support for iOS in briefcase.
I'm guessing the actionable item here is to document what else needs to be done in order to add Python-iOS-template to your project. You can check the template project for exact details, it's the following two steps:

Add Python.framework to the "Linked Projects and Frameworks" section under the "General" configuration for the project.
Add a build phase to the project, after "Target dependencies", but before "Compile Sources"; this build phase should be a shell script, with the following content:

mkdir -p "$BUILT_PRODUCTS_DIR/$CONTENTS_FOLDER_PATH/Library/Python.framework/Resources"
mkdir -p "$BUILT_PRODUCTS_DIR/$CONTENTS_FOLDER_PATH/Library/Application Support/org.example.todolist"
rsync -pvtrL --exclude .hg --exclude .svn --exclude .git "$PROJECT_DIR/Python.framework/Resources/lib" "$BUILT_PRODUCTS_DIR/$CONTENTS_FOLDER_PATH/Library/Python.framework/Resources"
rsync -pvtrL --exclude .hg --exclude .svn --exclude .git "$PROJECT_DIR/Python.framework/Resources/include" "$BUILT_PRODUCTS_DIR/$CONTENTS_FOLDER_PATH/Library/Python.framework/Resources"
rsync -pvtrL --exclude .hg --exclude .svn --exclude .git "$PROJECT_DIR/app" "$BUILT_PRODUCTS_DIR/$CONTENTS_FOLDER_PATH/Library/Application Support/org.example.todolist"
mkdir -p "$BUILT_PRODUCTS_DIR/$CONTENTS_FOLDER_PATH/Library/Python.framework/Resources/lib/python`readlink $PROJECT_DIR/Python.framework/Versions/Current`/site-packages/"
rsync -pvtrL --exclude .hg --exclude .svn --exclude .git "$PROJECT_DIR/app_packages/" "$BUILT_PRODUCTS_DIR/$CONTENTS_FOLDER_PATH/Library/Python.framework/Resources/lib/python`readlink $PROJECT_DIR/Python.framework/Versions/Current`/site-packages/"

Oh, it seems I linked to wrong libbz2 and liblzma.
Before this issue I encountered linking error, so I manually add libbz2 and liblzma. To solve the time module issue, I installed xz to the system. And a newly create Xcode project does not see linking error. And, surprisingly, the time module works!!
Thank you so much.


MM-20743  - CI uses npm ci instead of npm install

Summary
Switched to using npm ci on CI instead of npm install
Ticket Link
https://mattermost.atlassian.net/browse/MM-20743

More of an FYI. AFAIK there is an issue with npm ci and prepare scripts last time i checked. So, this will be a problem if we do it on web or mobile repos https://github.com/mattermost/mattermost-server/issues/10334

thanks @sudheerDev , I think that issue you referenced doesn't exist anymore. I think we ironed out that problem when migrating to Typescript.

@reflog Awesome good to know. 👍


New R images

THIS PR
This updates our R images to have a bunch more:
Base Images
saturnbase-r-gpu-11.1 [new] - new base image that is build from a Rocker repo to ensure the CUDA stuff is set up correctly, especially for tensorflow
R + Jupyter Images
saturn-r - just essential R packages [saturnbase -> saturn-r]
saturn-r-torch [new] - adds GPU and torch to R [saturnbase-gpu-11.2 -> saturn-r-torch]
saturn-r-tensorflow [new] - adds GPU and torch to R [saturnbase-r-gpu-11.2 -> saturn-r-tensorflow]
R +RStudio images
saturn-rstudio- adds the RStudio ide [saturnbase -> saturn-r -> saturn-rstudio]
FUTURE WORK
This has three problems:

it's missing saturn-rstudio-torch and saturn-rstudio-tensorflow that have RStudio in them.
The difference between saturn-r-tensorflow and saturn-rstudio-tensorflow feels confusing for users in the UI
This is way complicated to maintain

My proposal is in a future PR (after this one is merged), we update the image set to be:
Base images
saturnbase-r - this doesn't currently exist but it would have R, Python, and RStudio
saturnbase-r-gpu-11.1 - what we have right now except we would add RStudio to it
R + Jupyter images
(none)
R + RStudio images
saturn-rstudio - what we have today but with a new baseimage [saturnbase-r -> saturn-rstudio]
saturn-rstudio-tensorflow - an image with rstudio and tensorflow [saturnbase-r-gpu-11.2 -> saturn-rstudio-tensorflow]
saturn-rstudio-torch - an image with rstudio and torch[saturnbase-r-gpu-11.2 -> saturn-rstudio-torch]

Superceded


Scroll is not working while using Hand Gestures

Describe the bug
Scroll is not working while using Hand Gestures VirtualizedScrollRectList Scene on Dev Template
To reproduce
Steps to reproduce the behavior:

Open VirtualizedScrollRectList Scene from MRTK- Dev template
Stop the scrolling of rect by pressing any one of the button
Use Left shift key to enable left hand and try to scroll the scrollable UI by clicking the left mouse button
The scrolling won't work and work while scrolling using mouse

Expected behavior
The Scroll used work on hand gestures as similar to mouse gestures
Your setup (please complete the following information)

Unity Version [e.g. 2020.3.33f1]
MRTK Version [e.g. v3.0]

Target platform (please complete the following information)

HoloLens 2

Additional context
Tried adding uGUI draggable script on viewport gameobject, same result.

Closing as duplicate of #10736


[BUG] generated manifest.json includes unnecessary permissions for web_accessible_resources.

What happened?
Thank you for developing a fantastic product.
I'm experiencing a bug while building CSUI using TailwindCSS. Unnecessary permissions for web_accessible_resources are being listed in the manifest.json.
For instance, content.xxxx.css is listed as a web_accessible_resource in the manifest.json, but this file is not present in the build results.
manifest.json:

All built files:

reproduction

https://github.com/kawamataryo/plasmo-tailwind-sample

Version
Latest
What OS are you seeing the problem on?
MacOSX
What browsers are you seeing the problem on?
Microsoft Edge
Relevant log output
No response
(OPTIONAL) Contribution

[ ] I would like to fix this BUG via a PR

Code of Conduct

[X] I agree to follow this project's Code of Conduct
[X] I checked the current issues for duplicate problems.

I see your project has /context.tsx and /src/context.tsx. Pick either src approach or one without and see if that helps.

@flexchar
Thank you for your comment.
I had created two content.tsx by mistake😅
However, the result was the same for either one...

 But at least it really doesn't harm anything having that entry in the manifest :)


Result from OnDiscoverListener appear twice

It always happen when discover device normally. I use this method on fragments at onViewCreated instance. The result always received at least twice, gradually (i check on Log app in onFinish methods, they usually give feedback result twice with the same result) also, the result usually print unfinished data log.
Develop in android SDK 29 with AndroidX

same issue


Error name with UWP Modern .NET templates

Describe the bug

Error name with UWP Modern .NET templates
To Reproduce

Expected behavior

Simple name
Version Info

.NET 9
Additional context

None

Closing this as it's a duplicate of https://github.com/microsoft/microsoft-ui-xaml/issues/9977. I'll fix it in a future update 🙂


Exact Dependency on Old GooglePlayServices Version (=60.1142.1) Breaks New Plugins

Most plugins now have higher GooglePlayServices version dependencies than the one currently in Xamarin.Android.Crashlytics:
Resolving conflicts for MonoAndroid,Version=v9.0...
Version conflict detected for Xamarin.GooglePlayServices.Basement. Install/reference Xamarin.GooglePlayServices.Basement 71.1620.0 directly to project PROJECT_NAME.Android to resolve this issue.
 PROJECT_NAME.Android -> PROJECT_NAME -> Xamarin.Forms.Maps <IP_ADDRESS>6 -> Xamarin.GooglePlayServices.Maps 71.1610.0 -> Xamarin.GooglePlayServices.Basement (>= 71.1620.0)
 PROJECT_NAME.Android -> Xamarin.Android.Crashlytics <IP_ADDRESS> -> Xamarin.Firebase.Core 60.1142.1 -> Xamarin.Firebase.Analytics 60.1142.1 -> Xamarin.GooglePlayServices.Basement (= 60.1142.1).

Installing a second GooglePlayServices version just causes more dependency issues.
Please advise ASAP.

Fixed in
https://github.com/xamarin/XamarinComponents/pull/942


Items not used in crafting pad are deleted

Describe the bug (Required)
Any item not used up in recipe is lost when exiting crafting pad without removing items first.  They are not thrown down, or returned to inventory.
To Reproduce (Required unless not known)
Steps to reproduce the behavior:

add items to crafting pad, exit crafting, re-enter inventory to note items are gone.

Log output/error (via. Hastebin)
not relavant...
Expected behavior (Required)
items should return to inventory
Screenshots
skipped
Versions:(check log if you don't know)

Forge Version:  <IP_ADDRESS>47
MC Version: 1.12.2
Mod Version: 1.12.2-1.5.6
JEI Version (if present) : <IP_ADDRESS>1
Baubles Version (if present) : 1.5.2
Curios Version (if present) :

Additional context
I am using modpack "life in the village" v 1.19 via twitch.

1.12 version of the mod isn't supported anymore.


how to compile a static link file when I use go 1.5?

I use the 1.4 version cmd:
CGO_ENABLE=0 go build -a -installsuffix cgo -ldflags '-s'
but it's not worked ？

Please send questions to the golang-nuts mailing list. We only use our bug tracker for tracking bugs. Thanks!


metric request error

when i create a new panel,option the zabbix datasource and metric,brower query request has not response ,but sometime has response.grafana log show "msg=metric request error"

Grafana
Zabbix
Grafana-Zabbix Plugin

8.3.x
5.x.x
4.2.x

Looks like the same issue #1411


fix host member undefined on start new giveaway

change method to get host member of the giveaway from cache to fetch, in my case the owner of giveaway is not included in cache of discord client users resulting in undefined on defineEmbedStrings

are the changes tested and working?

are the changes tested and are fixing the problem?

Work for me, but i don't make several tests. The cache system is limited

Test it a bit more, make changes if needed and I will merge, thanks for taking time and fixing the bug :)

Test it a bit more, make changes if needed and I will merge, thanks for taking time and fixing the bug :)

I'm tested and works fine! I'm glad I could help 😃

merged 👍


CSUB-167: RuntimeVersion check for PRs to testnet

Only the last 2 commits are relevant here. I will update this PR towards dev once I'm done with it.

https://github.com/gluwa/creditcoin/runs/6578833386 - FAILED - as expected, version.rs isn't updated.

https://github.com/gluwa/creditcoin/runs/6579062732 - PASS when version.rs is updated,
https://github.com/gluwa/creditcoin/runs/6579126199 - FAIL when version.rs is not modified, from
https://github.com/gluwa/creditcoin/pull/246

Codecov Report

Merging #245 (0c085bc) into dev (c6cdd56) will increase coverage by 0.08%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##              dev     #245      +/-   ##
==========================================
+ Coverage   67.64%   67.73%   +0.08%
==========================================
  Files          35       36       +1
  Lines        6858     6880      +22
==========================================
+ Hits         4639     4660      +21
- Misses       2219     2220       +1

Impacted Files
Coverage Δ

runtime/src/lib.rs
14.05% <ø> (+0.22%)
:arrow_up:

pallets/creditcoin/src/migrations/mod.rs
0.00% <0.00%> (ø)

pallets/creditcoin/src/migrations/v4.rs
95.45% <0.00%> (ø)

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


Will not release full screen mode - F11 can lockup game

When the game starts I press F11 to switch to full-screen mode, but if I press F11 again nothing happens. It would be nice for the game to switch to a bordered window.
Versions:

Minecraft Version: 1.15.2
Forge Version: 31.1.63
Mod Version: 1.15.2-1.0.1

I just reloaded my client and it was in full-screen mode. I pressed F11 and the game froze. I knew it froze because the roll-over icons did not work. I pressed F11 again and the game was un-froze.
https://paste.ee/p/JjM44

Does this only happen once Forge says "Freezing data" during the startup? This might be something related to Forge or Minecraft, even the default behavior does freeze the window for some time in the final initialization phase.
I am also considering a workaround for this problem, I just leave the window in a normal bordered window mode until the initialization is finished and the main menu is opened. With this method, the game freeze might not be that obvious.

Thank you for your reply. I'm sorry to not have gotten back to you sooner.
The issue is also that once made borderless, I cannot get the borders back unless I disable the mod. F11 does nothing except freeze/un-freeze the buttons.

Yeah, I just tried it on Ubuntu and some weird behavior is going on. I was only testing this mod on Windows, so I will have a look and try other desktop environments such as KDE Plasma as well. Thanks for reporting.

I have just published a fix for this issue:
https://github.com/Nekeras/borderless/releases/tag/1.15.2-1.0.2
The problem should now be fixed with that release. Feel free to reopen this issue in case some further problems arise.

Seems to be fixed. Thanks!


Add SliverAnimatedGrid and AnimatedGrid

Description
This adds two widgets, analogous to SliverAnimatedList and AnimatedList which allow items that are added or removed from a SliverGrid to be animated on add and remove.
Added samples for each too.
https://user-images.githubusercontent.com/8867023/194175700-b5289512-64f2-47cf-a50e-ca668d205156.mp4
Related Issues

Fixes https://github.com/flutter/flutter/issues/45770

Tests

Added tests for the new widgets.

Where can we find the preview release and date for AnimatedGrid?


What is the format of SECRET environment variable?

What characters may be included?
What is the min/max length?
Thank you.

https://github.com/auth0/node-jsonwebtoken#jwtsignpayload-secretorprivatekey-options-callback

secretOrPrivateKey is a string (utf-8 encoded)

Please consider including the above link in the documentation.


Is this poject dead?

Hi,
there were no commits for month, and I run into mayor issues with any of the install methods, hence the question:
Is WhereHows under active development?

We're currently developing the next generation of production which is significantly better. Please keep any eye out on future announcements.

We'll make announcement both on this repo and LinkedIn's engineering blog: https://engineering.linkedin.com/blog


No GUI

I have checked out the head of master (see #1) to my plugins folder, and assigned the plugin to the current site via the plugin menu.
But still there is no option on group edit page e.g. https://www.mysitename.org/admin/index.cfm?muraAction=cusers.editgroup&userid=6C7BBD71-7F5F-4C54-8091BA534BE295EF&siteid=mysitename
This is Mura 7 so it should be compatible ?

This patch allows the options to appear :
mura-7.diff.txt

Hi Tom, Thanks for your interest in this repo. The goal is to be Mura 7 compatible but so far it's only been tested on Mura 6.

Well, I've got the tabs in the group editor working. The only thing I can't see is where it loads anything (even in Mura 6) to show/hide side bar items ?


input query is not displayed correctly

Text inputs are not following the correct styling and thus not able to display the correct information

The problem was codemirror.css file was not found. Made pull request with the new directory.

fixed with #33 thank you


Makefile seems to have deprecated k3d commands

Summary
What happened/what you expected to happen?
After starting k3d cluster locally, if I run make start I get an error
➜  argo git:(learning) ✗ make start
# GIT_TAG=v2.10.0-rc1, GIT_BRANCH=learning, GIT_TREE_STATE=dirty, VERSION=latest, DEV_IMAGE=true, K3D=true
killall argo workflow-controller kubectl || true
No matching processes belonging to you were found
k3d start
Error: unknown command "start" for "k3d"
Run 'k3d --help' for usage.
FATA[0000] unknown command "start" for "k3d"
make: *** [install] Error 1
➜  argo git:(learning) ✗ kubectl cluster-info
Kubernetes master is running at https://<IP_ADDRESS>:61662
CoreDNS is running at https://<IP_ADDRESS>:61662/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy
Metrics-server is running at https://<IP_ADDRESS>:61662/api/v1/namespaces/kube-system/services/https:metrics-server:/proxy

To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.

Diagnostics
What Kubernetes provider are you using?
K3d
What version of Argo Workflows are you running?
argo: latest+9319c07.dirty
  BuildDate: 2020-10-03T06:45:57Z
  GitCommit: 9319c074e742c5d9cb97d6c5bbbf076afe886f76
  GitTreeState: dirty
  GitTag: v2.10.0-rc1
  GoVersion: go1.14.3
  Compiler: gc
  Platform: darwin/amd64

This line here for ref: https://github.com/argoproj/argo/blob/300634af42a3017a5354468a2779ef1fa5e37931/Makefile#L326
Paste a workflow that reproduces the bug, including status:
kubectl get wf -o yaml ${workflow}

Paste the logs from the workflow controller:
kubectl logs -n argo $(kubectl get pods -l app=workflow-controller -n argo -o name) | grep ${workflow}

Message from the maintainers:
Impacted by this bug? Give it a 👍. We prioritise the issues with the most 👍.

I'm experiencing an issue that i think might be related. Specifically, using the Makefile for local development doesn't seem to pick up the locally built executor image. The image gets built fine, but k3d isn't able to access the local image registry, so it always ends up pulling it from docker hub.
(As a workaround for local dev on the executor image, I am just building the image and using it in a regular deployment, following the quickstart guide)

@kpr6 would you like to submit a PR to fix? You'll need to change github/workflow/ci-build.yaml too.


Proposal: Introduce ErrorBoundary as must-have

I would like to add ErrorBoundary introduction into RN documentation.
And highlight how crucial this is to be implemented.
It makes the app much less prone to fatal crashes, just because of some name of undefined errors.
I know it is well described in React documentation, but for RN purpose I would focus on explaining how easily app can crash and add ErrorBoundary as one of the ways, to prevent fatal crash of app.
Ideally with simple example, showing nested ErrorBoundary, from which user can recover (ie. going back to prev screen).

Hey @usrbowe, this is a great idea! Where do you think it would go? We should be sure that this is RN specific and not just re-stating what's in the React docs. It would also be great to explain how error boundaries interact with reboxes

Hi @rickhanlonii,
I think it can be either under Improve UX or create a new section under Guides.
I also thought about the fact, that the documentation already exist in React docs, but I would like to highlight importance of having this component at least in root of app, to prevent app crashes, which can be prevent, when using this component.
Another point for putting this directly in RN, I can't seem to find many open sourced popular RN apps, which would have this. So it indicates, there might be awareness problem. Same goes with articles on this topic, which I can't seem many specific for RN.
I believe this can improve UX a lot, if we can catch the error and provide nice fallback component.
I didn't get:

reboxes
Do you mean red boxes in dev environment? If so, yeah, I saw one issue, which confused devs a lot, when they implemented boundary, but still saw red boxes, so they taught it's not working.

I just believe this small change, adding one component, should be almost mandator to all apps, since it such a game changer. Instead of having app completely crashed, it can be catched and app can even sometimes recover (even with JS reload feature)

I think under Improve UX makes sense! I would push back on creating a new guide since we're in the process of reviewing the guides and docs we have now to clean them up
I agree this would improve UX, there should be at least a root error boundary. One thing that may help is if the starter template included an error boundary so it exists out of the box

when they implemented boundary, but still saw red boxes, so they taught it's not working

Yeah this is what I mean!

Yep, it can be just a mention with a link to React docs for more details.
And if it can be included in default template and one paragraph explaining its purpose, with highlighted issue when running on DEV.
I think this would be sufficient 👍