Record function does not record

I observed that the example taken from your docs only repeats the first frame. However, I expected to see an animation.
The call produced a gif in which the first frame was repeated 255 times. I noticed the same behaviour, while I was recording changes in a heatmap.
fig, ax, p = lines(rand(10))
record(fig, "test.gif") do io
    for i in 1:255
        p[:color] = RGBf(i/255, (255 - i)/255, 0) # animate figure
        recordframe!(io)
    end
end

If this is due to Tier 3 support of the M1 platform, please feel free to ignore this issue.
Thank you!
GLMakie v0.4.7
julia version 1.7.1
Big Sur 12.1 (M1)

Where in the docs did you find this? If you add an extra bracket as described here, i.e. you write
        p[:color][] = RGBf(i/255, (255 - i)/255, 0) # animate figure

the example works fine.

If you add an extra bracket as described

You don't need the brackets (setindex! and setproperty! are overloaded to update the observable), and I'd recommend using p.color = ....
This example works like expected on my pc...I find it hard to believe that this is an M1 issue, but I guess it's the only thing that is different here...Pretty sure its also not a wrong version, since this syntax hasn't been changed in forever.


Derive option_has_no_value_exception from OptionParseException

Implements #327.

This change is

This isn't a parse error, it is a usage error. So there is a reason that the two are separated.

Seems like I had a misunderstanding about what that exception exactly means.
Just to clarify that I understand your reasoning correctly:
I came across this exception when trying to read the value of an optional positional argument, which wasn't supplied by the user. Am I right that I'm supposed to use ParseResult::count() to check whether a value is present before trying to read it with OptionValue::as()? So there are actually three categories of exceptions:

Exceptions from invalid option specifications (OptionSpecException)
Exceptions from invalid arguments supplied by the user (OptionParseException)
Exceptions from trying to access the results of a parse in an invalid manner (which option_has_no_value_exception falls into)

Yes that's correct. I think all of those should derive from OptionException, so if you want to catch everything in one go you can just catch that instead.

Adding an extra catch is fine now I understand the difference. I probably was just a bit confused because the README only mentions two categories of exceptions.
Maybe it would also make sense to add a third base class to reflect the conceptual difference in code, even though option_has_no_value_exception would be the only one that derives from it at the moment.
If you are okay with that, I will update my pull request accordingly.


Q: How to display float value?

Hi all,
from the question, I can only display the int value,
in my case I need float, so, Is there a way to solve my problem?
thx!

you can make float value * 1000,then chang it to Int,then set max value.finish is ok.🙂

^ I didn't understand what the previous person said. How do I display float value into MBCirculatProgressBar?


action is nil when a handler for action is invoked on iOS 8

id handler = ^(MISAlertAction *action) {
};
[alertController addAction:[MISAlertAction actionWithTitle:@"title" style:UIAlertActionStyleDefault handler:handler]];

when a button is clicked and handler() is invoked, the action parameter is nil for whatever reason, I need it to control the behavior of the handler. This only happens on iOS 8. My project uses ARC.

Should be fixed within version 1.0.1


Getting error : SocketException: OS Error: Connection refused

Hi, I am new to Flutter and tried the example from URL https://flutter.io/cookbook/networking/fetch-data/ to get understanding on how to consume Rest API.
But I am getting error

SocketException: OS Error: Connection refused, errno = 111"

Any Idea what could be the issue.
Steps to Reproduce
Example from https://flutter.io/cookbook/networking/fetch-data/.
Future<Post> fetchPost() async {
  final response =
      await http.get('https://jsonplaceholder.typicode.com/posts/1');

  if (response.statusCode == 200) {
    // If the call to the server was successful, parse the JSON
    return Post.fromJson(json.decode(response.body));
  } else {
    // If that call was not successful, throw an error.
    throw Exception('Failed to load post');
  }
}

Logs

Please add the output of flutter doctor -v.

C:\WINDOWS\system32>flutter doctor -v
[ΓêÜ] Flutter (Channel beta, v0.9.4, on Microsoft Windows [Version 6.1.7601], lo
cale en-US)
ΓÇó Flutter version 0.9.4 at C:\work\SelfBuild\Flutter\flutter
ΓÇó Framework revision f37c235c32 (3 weeks ago), 2018-09-25 17:45:40 -0400
ΓÇó Engine revision 74625aed32
ΓÇó Dart version 2.1.0-dev.5.0.flutter-a2eb050044
[!] Android toolchain - develop for Android devices (Android SDK 27.0.3)
ΓÇó Android SDK at C:\Users\ah0179816.HEWITT-NA\AppData\Local\Android\sdk
ΓÇó Android NDK location not configured (optional; useful for native profili
ng support)
ΓÇó Platform android-27, build-tools 27.0.3
ΓÇó Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
ΓÇó Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b
02)
X Android license status unknown.
[ΓêÜ] Android Studio (version 3.1)
ΓÇó Android Studio at C:\Program Files\Android\Android Studio
ΓÇó Flutter plugin version 28.0.1
ΓÇó Dart plugin version 173.4700
ΓÇó Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b
02)
[ΓêÜ] VS Code, 64-bit edition (version 1.28.1)
ΓÇó VS Code at C:\Program Files\Microsoft VS Code
ΓÇó Flutter extension version 2.19.0
[ΓêÜ] Connected devices (1 available)
ΓÇó Android SDK built for x86 ΓÇó emulator-5554 ΓÇó android-x86 ΓÇó Android
P (API 27) (emulator)
! Doctor found issues in 1 category.
C:\Windows\System32>

My guess would be that this is a network issue, not a Flutter issue.
If you open the browser in the emulator and open the URL https://jsonplaceholder.typicode.com/posts/1, does it show the JSON content?

Yes, I can  access this through browser. Moreover, I also tried this through calling this rest api through c# and didn't get any issue on that.

I meant

the browser in the emulator

not the desktop browser.

https://developer.android.com/studio/run/emulator-networking should help.
I'm closing this issue because this is unrelated to Flutter.

This still happens to me on a real device

@AppleEducate please create a new issue with full information.

Will do.

@AppleEducate could you link your new issue? I'm having the same problem but on my localhost

Haven’t created an issue yet, this is similar though: https://github.com/flutter/flutter/issues/27883

Just noticed that my phone is not on my local network, my bad :D

That would do it!
On Wed, Mar 13, 2019 at 1:45 PM Karl<EMAIL_ADDRESS>wrote:

Just noticed that my phone is not on my local network, my bad :D
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/flutter/flutter/issues/23147#issuecomment-472531716,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Adzi377z9sWzdLugxe78ae4ju8-55YH4ks5vWTkggaJpZM4XeFtQ
.

Consider, closing the httpClient object by calling http.close(); after the use.

i have same problem can somene help me?
  Future<CountryMapper> _sendCountryBorder(CountryBorder border) async {
    var data = {
      "CountryFrom": border.countryFrom,
      "CountryTo": border.countryTo,
      "IDDriver": border.iDDriver,
      "EnteryTime": "\/Date(${border.dateTime.millisecondsSinceEpoch})\/"
    };
    var body = json.encode(data);
    print(body);
    final response = await http.post('$endpoint',
        headers: {HttpHeaders.contentTypeHeader: 'application/json'},
        body: body);
    return borderFromJson(response.body);
  }

  CountryMapper borderFromJson(String str) {
    final jsonData = json.decode(str);
    return CountryMapper.fromJson(jsonData);
  }

FlatButton(
                    child: Text('TAK'),
                    onPressed: () => this.borderList.forEach((countryBorder) {
                          _sendCountryBorder(countryBorder);
                        })),

any idea someone?
{"CountryFrom":"ARM","CountryTo":"AUT","IDDriver":"246","EnteryTime":"/Date(1565690400000)/"}
E/flutter (23258): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: SocketException: OS Error: Connection refused, errno = 111, address = tsonlinenew.tachoapi.com, port = 41542
E/flutter (23258): #0      IOClient.send (package:http/src/io_client.dart:33:23)
E/flutter (23258):
E/flutter (23258): #1      BaseClient._sendUnstreamed (package:http/src/base_client.dart:169:38)
E/flutter (23258):
E/flutter (23258): #2      BaseClient.post (package:http/src/base_client.dart:54:7)
E/flutter (23258): #3      post. (package:http/http.dart:70:16)
E/flutter (23258): #4      _withClient (package:http/http.dart:166:20)
E/flutter (23258):
E/flutter (23258): #5      post (package:http/http.dart:69:5)
E/flutter (23258): #6      _BordersListPageState._sendCountryBorder (package:techo_speed/src/ui/borders.dart:87:28)
E/flutter (23258):
E/flutter (23258): #7      _BordersListPageState._sendToServer... (package:techo_speed/src/ui/borders.dart:154:27)
E/flutter (23258): #8      List.forEach (dart:core-patch/growable_array.dart:278:8)
E/flutter (23258): #9      _BordersListPageState._sendToServer.. (package:techo_speed/src/ui/borders.dart:153:54)
E/flutter (23258): #10     _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:635:14)
E/flutter (23258): #11     _InkResponseState.build. (package:flutter/src/material/ink_well.dart:711:32)
E/flutter (23258): #12     GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:182:24)
E/flutter (23258): #13     TapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:365:11)
E/flutter (23258): #14     TapGestureRecognizer.handlePrimaryPointer (package:flutter/src/gestures/tap.dart:275:7)
E/flutter (23258): #15     PrimaryPointerGestureRecognizer.handleEvent (package:flutter/src/gestures/recognizer.dart:455:9)
E/flutter (23258): #16     PointerRouter._dispatch (package:flutter/src/gestures/pointer_router.dart:75:13)
E/flutter (23258): #17     PointerRouter.route (package:flutter/src/gestures/pointer_router.dart:102:11)
E/flutter (23258): #18     _WidgetsFlutterBinding&BindingBase&GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:218:19)
E/flutter (23258): #19     _WidgetsFlutterBinding&BindingBase&GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:198:22)
E/flutter (23258): #20     _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:156:7)
E/flutter (23258): #21     _WidgetsFlutterBinding&BindingBase&GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:102:7)
E/flutter (23258): #22     _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:86:7)
E/flutter (23258): #23     _rootRunUnary (dart:async/zone.dart:1136:13)
E/flutter (23258): #24     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
E/flutter (23258): #25     _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
E/flutter (23258): #26     _invoke1 (dart:ui/hooks.dart:250:10)
E/flutter (23258): #27     _dispatchPointerDataPacket (dart:ui/hooks.dart:159:5)
E/flutter (23258):

sorry did not mentioned that issue is closed.

Getting the same issue for iOS

Exception has occurred.
SocketException (SocketException: OS Error: Connection refused, errno = 111, address = <IP_ADDRESS>, port = 53424)
the same error


EKS support with IAM roles

In AWS EKS pods and nodes can have an AWS IAM role attached that already contains the S3 permissions necessary. Is there a way to avoid having to pass S3 secret/key id or those are required right now?

It looks like there may be hope via goofys https://github.com/kahing/goofys/issues/556

@elgalu @joebowbeer thanks, will look into how we can surface this at the dataset level (happy to take suggestions on-board)


Now user can send contract for client review and Client can revert back with updates

Targets #3157

Description

Created new receiver table migration and model.
Applied signed URL feature to send client with signed URL.
Added mail functionality to send, record update notification and finalize notification.
Added functionality for client to finalize and update contract fields from signed link.

Checklist:

[x] I have performed a self-review of my own code.

I think this PR needs the PR https://github.com/ColoredCow/portal/pull/3154 to be merged. If yes, then can you change the head branch of this PR to feature/contract/add-contract branch

I think this PR needs the PR #3154 to be merged. If yes, then can you change the head branch of this PR to feature/contract/add-contract branch

I was thinking to merge this PR #3154 after it got approve, then I'll update the head branch to this PR.

Expected Behavior:

After saving contract user can click on view button and details of that contract will shown up and from that screen user would be able to send it for review to client and a mail will be triggered to client email with signed URL.

The client should be able to edit fields through the signed link. If the client makes changes to the form fields, an email should be triggered to the user notifying them of the changes. If the client finalise the contract, a mail should be triggered to the finance team to review the contract.

All changes are merged in this PR #3176.
So closing this PR.


Get reactive value of a specific field in the form

Hi, is there a way to get the reactive value of a specific field in the form?
I need this as I have a select field which has different options based on the value selected in the field before it and I can't seem to access the form values in a reactive manner.
I think this issue is similar to https://github.com/meteortemplates/forms/issues/67, but I can't use the solution provided by @jonjamz since only one HTML input element can be used within a form element template.
Possibly related to https://github.com/meteortemplates/forms/issues/76 also.
Any ideas if I'm missing something?
Thanks in advance!

This should be fixed in the latest release. Please see the History.md file for details.


TVL for Taiko, add SolvBTC

We noticed that the TVL for Taiko is off by a factor of approximately 2x because the token SolvBTC is not being tracked.
I’ve added it as natively minted on Taiko. However, there also appears to be a bridged version with around $9M in TVL, which I’m unsure how to add. (Source: Avalon Finance)
I hope we can get this in, so the TVL is more accurate. Thanks!

We looked through and found some more tokens that are missing and would add significantly to the TVL
https://docs.google.com/spreadsheets/d/1xNykt2DyFfcN2KrmKz8O7BouVIjGcjMnVG2X1jo6Itg/edit?usp=sharing

heyoo, tokens can be added as described here or via our token request form :)
for now i am adding solv  tokens to taiko at #5933


Fix minor visual bug in FF caused by moz-focusring (v4)

Found a very minor visual issue in Firefox where the text inside of form fields appears to "ring" or have noise after using the tab key to re-focus the text field. Appears to be related to having this -moz-focusring rule with text-shadow applying to all form-control elements. In v5, it appears this has been properly moved into form-select only. Backporting this change to v4.

To give some background here:

Preview: https://deploy-preview-32821--twbs-bootstrap.netlify.app/docs/4.5/components/forms/#form-controls
Current v4: https://getbootstrap.com/docs/4.5/components/forms/#form-controls — where I confirm the glitch
v5: https://getbootstrap.com/docs/5.0/forms/form-control/ — without bug
Unable to find when it happened in v5: https://github.com/twbs/bootstrap/commits/main/scss/_forms.scss

However seems to work fine.

To give some background here:

Preview: https://deploy-preview-32821--twbs-bootstrap.netlify.app/docs/4.5/components/forms/#form-controls
Current v4: https://getbootstrap.com/docs/4.5/components/forms/#form-controls — where I confirm the glitch
v5: https://getbootstrap.com/docs/5.0/forms/form-control/ — without bug
Unable to find when it happened in v5: https://github.com/twbs/bootstrap/commits/main/scss/_forms.scss

However seems to work fine.

I fail to see any difference on my machine (FF 85 on Windows 10) between https://getbootstrap.com/docs/4.6/components/forms/#form-controls and https://deploy-preview-32821--twbs-bootstrap.netlify.app/docs/4.6/components/forms/#form-controls

I fail to see any difference on my machine (FF 85 on Windows 10) between https://getbootstrap.com/docs/4.6/components/forms/#form-controls and https://deploy-preview-32821--twbs-bootstrap.netlify.app/docs/4.6/components/forms/#form-controls

@XhmikosR I do on Ubuntu: when focusing in & out the email input (using keyboard), it gets bolder on focus because of text-shadow in our current v4—not in this PR.

@XhmikosR I do on Ubuntu: when focusing in & out the email input (using keyboard), it gets bolder on focus because of text-shadow in our current v4—not in this PR.

Can you please share a screenshot with the diff? I really can't reproduce the issue even on my Linux mint VM. Or the difference is so subtle I'm missing it.

Can you please share a screenshot with the diff? I really can't reproduce the issue even on my Linux mint VM. Or the difference is so subtle I'm missing it.

Here it is:

Default
Focused

Here it is:

Default
Focused

Maybe I need glasses, but I can't tell the difference myself :/
I'd like @mdo's review just so that we are safe :)

Should try to record change when I uncheck text-shadow in devtools, maybe.

@twbs/css-review someone able to confirm this bug, and maybe provide better screenshots than mine?

Realized I forgot to update here with a screenshot and some comments...
Shown below is the default, Inspector-applied :focus, and the real :focus in Firefox. Note the ever so subtle text weight difference on the far right version—that's what is happening on focus for each input it seems.


Remote-SSH Python intellisense stuck at loading...

Environment data

VS Code version: 1.40.2
Extension version (available under the Extensions sidebar): 2019.11.50794
OS and version: Ubuntu 19.10
Python version (& distribution if applicable, e.g. Anaconda): 3.6.9
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda
Relevant/affected Python packages and their versions:
Jedi or Language Server? (i.e. what is "python.jediEnabled" set to; more info #3977): false remote and local

Using Remote-SSH, tried setting pythonpath to no avail.
Expected behaviour
Writing some code and pressing ctrl-space should give intellisense autocompletion.
Actual behaviour
Writing some code and pressing ctrl-space reults in a popup with Loading... with no related error output in the developer tools window
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]

Logs
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging)
[Extension Host] Info Python Extension: 2019-12-12 11:26:58: Get latest language server nuget package version, Class name = y, completed in 1335ms, Arg 1: <Uri:XXXX>, Return Value: {"package":"Python-Language-Server-linux-x<IP_ADDRESS>.nupkg","uri":"https://pvsc.azureedge.net/python-language-server-stable/Python-Language-Server-linux-x<IP_ADDRESS>.nupkg","version":{"options":{"loose":true,"includePrerelease":false},"loose":true,"raw":"0.4.127","major":0,"minor":4,"patch":127,"prerelease":[],"build":[],"version":"0.4.127"}}
/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:250 [Extension Host] Info Python Extension: 2019-12-12 11:26:58: Get latest version of Language Server, Class name = f, completed in 1335ms, Arg 1: <Uri:XXXX>, Return Value: {"package":"Python-Language-Server-linux-x<IP_ADDRESS>.nupkg","uri":"https://pvsc.azureedge.net/python-language-server-stable/Python-Language-Server-linux-x<IP_ADDRESS>.nupkg","version":{"options":{"loose":true,"includePrerelease":false},"loose":true,"raw":"0.4.127","major":0,"minor":4,"patch":127,"prerelease":[],"build":[],"version":"0.4.127"}}
/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:250 [Extension Host] Info Python Extension: 2019-12-12 11:26:58: Get language server folder name, Class name = f, completed in 1738ms, Arg 1: <Uri:XXXX>, Return Value: "languageServer.0.4.127"
/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:250 [Extension Host] Info Python Extension: 2019-12-12 11:27:01: Get language server folder name, Class name = f, completed in 474ms, Arg 1: <Uri:XXXXX>, Return Value: "languageServer.0.4.127"
/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:250 [Extension Host] Info Python Extension: 2019-12-12 11:27:03: Get language server folder name, Class name = f, completed in 1520ms, Arg 1: <Uri:XXXX>, Return Value: "languageServer.0.4.127"
/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:250 [Extension Host] Info Python Extension: 2019-12-12 11:27:03: Starting Language Server, Class name = d, completed in 2424ms, , Return Value: undefined
/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:250 [Extension Host] Info Python Extension: 2019-12-12 11:27:22: Request for tmlanguage file.

I looked at 8567 and tried setting "Proxy Support" to "on" but that made no difference. I also manually added "python.pythonPath": "conda python path", but that made no difference either.

Complete reinstall both locally and remote fixed this issue


project name shows link, but often isn't linked

Lorraine, I know we've fixed this elsewhere, or at least have the code. Would be good to fix asap.

I'll look into this now! I emailed about it for the speakers database, but never got a chance to implement. will look in my email inbox

OK should be an easy fix, I think! Doing it now!

Hmm - it's not working. I think we can figure out before OpenCon 2017 but for now, I'm going to suggest taking out project links entirely but templating it into the github issue metadata.

Took out the project links entirely - they're linked into the github issue, closing this for now.


Add TraceIdLoggingFilter

@schlosna : thoughts on closing the MDC put? (you had made the corresponding change earlier, if I remember right)

As far as I know, this is the last thing that needs to go in before we can make another RC.


Fix WritableBufferWriter.Write bounds check

Resolves https://github.com/dotnet/corefxlab/issues/1366
/cc @pakrym @davidfowl

Testing wrong length; needs changes

@pakrym added tests 😉

CI failures

Was a d'oh issue

@pakrym fixed the 0 length things...


tutorial in documentation does not work any more

The changes that came with the complex schema break the tutorial.
Problems are:

programmatic schema creation
validation (the enforced csv header against identifier names of the schema validation does not play well with the csv's created by pandas).
scope of imports changed. import clkhash is not enough any more.

fixed with release 0.11.0


refactor: move manager to a different file

First step of refactoring, still more to come...
cc @mg979 would love to hear your feedback:)

I'd rather do one thing at a time and just do the manager stuff without touching the confirmCompletion stuff.
If things break for a big 'refactor' it's bad... Anyway I hope you tested it.

Yeah I do the confirm part just because it only separate the original confirmCompletion into different function, which made it more readable and shouldn't break stuff. Also I'll start doing some unit testing(if I have time for it...) so we can do the refactoring without breaking current stuff.

How would you write unit testing? I can write some if I know what to do.

Unit testing can be written in busted(a lua unit test framework). Here is a good reference: https://github.com/KillTheMule/KillTheMule.github.io/blob/master/test_plugins_from_neovim.md
I'm thinking of mocking the lsp behavior by creating a request manually( something like return {insertTextFormat = 2, kind = 1, label = blablah ......} so we can do some testing without setting up a true lsp. Neovim's repository have some reference in test/functional/plugin/lsp_spec.lua that we can steal from😛


Batch  > 2

Hi, Caffe_CycleGAN.exe seems to crash (windows) on batch_size > 2.
Is there anything in the code that needs changing to increase batchsize?
Thanks

Hi,
It's quite an old code and I don't remember exactly but indeed I think I've always used it with batch = 1. I don't have time to look into this right now. I'll try to check this by this week-end.


Does tf.contrib.signal.stft  do the right audio framing？

Hello
When using  TensorFlow for audio analysis, I found an unreasonable results in tf.contrib.signal.stft.
My code is as follows:
sample_rate = 16000 #16kHz
segment_size = 2000 #ms
window_size_ms = 40
window_stride_ms = 20
segment_size_samples = int(sample_rate * segment_size / 1000)
window_size_samples = int(sample_rate * window_size_ms / 1000)
window_stride_samples = int(sample_rate * window_stride_ms / 1000)
audio_sequence = tf.placeholder(tf.float32,
                                [1,segment_size_samples],
                                name = 'audio_sequence')
stfts = tf.contrib.signal.stft(audio_sequence,
                               frame_length=window_size_samples,
                               frame_step=window_stride_samples,
                               fft_length=window_size_samples,
                               name = 'stfts')
stfts.get_shape()

The result is TensorShape([Dimension(1), Dimension(99), Dimension(321)])
As far as I know, the right should be (1,100,321).
So, what is the underlying reason behind this incident?
Thx~

No, this is probably a bug


Fix inconsistent behavior in save() method when using vs not using a disk

Currently, the save() function behaves slightly differently when using a disk versus not using one. This PR resolves the inconsistency by creating a temporary file during saving.
Example of the issue:
Pdf::view('invoice')->save('invoice.png'); // Saves a PNG file

Pdf::view('invoice')->disk('s3')->save('invoice.png'); // Saves a PDF file

Using $fileName instead of $path directly to avoid any errors when saving to a full path.

Could you add a test to prove that the changes work?

@freekmurze Added :thumbsup:


Add option to skip session by default

How would this feature be useful?
Currently nox supports the possibility to exclude some sessions from running by default using positive list nox.options.sessions = [session1, session3]. In this case session2 would not be executed by running nox and would need to be specified explicitly, e.g. nox -s session2
Describe the solution you'd like
Usually, this kind of tagging is expected to be found in negative lists. If someone forgets to add the session4 to the nox.options.sessions list, then it would run by default.
My proposal is to add an option to nox.sessions to skip the session by default
@nox.session(skip=True)
def session2(session):
   pass

Describe alternatives you've considered
Writing my own decorator would be an option, but a built-in solution would be preferrable.
Anything else?
No response

@slavong, perhaps this issue could be merged with a similar suggestion in #654?

as using nox.options.sessions is quite cumbersome.
I completely agree with this. I think excluding a single (or few) sessions from the default is far more useful, and less error prone (the serious error being test not run by mistake) than maintaining a positive list of sessions.


[bug]: sidebar.openMobile doesn't get reset on browser width resize > mobile layout

Describe the bug
If the sidebar is opened with mobile layout. openMobile is true. When the browser is resized above the mobile width, the sidebar closes but the openMobile is still set to true.
Affected component/components
Sidebar
How to reproduce

Open sidebar on mobile screen size
Resize window to greater than mobile screen size breakpoint
Observe the sidebar closes and openMobile is true.

Codesandbox/StackBlitz link
No response
Logs
No response
System Info
Edge Latest

Before submitting

[X] I've made research efforts and searched the documentation
[X] I've searched for existing issues

Seems like it would be nice if the toggle state controlled both open and openMobile (not really sure why there was two flags for this).


mat-select, mat-autocomplete with virtual scroll

1 -- mat-autocomplete with virtual scroll
https://stackblitz.com/edit/angular-htsgbw?file=src%2Fapp%2Fapp.component.html --- here sometimes scrolling area showing blank space
2 --mat-autocomplete with mat-select
https://stackblitz.com/edit/angular-gs4scp?file=src%2Fapp%2Fcdk-virtual-scroll-fixed-buffer-example.html
here select one item from dropdown then again click and scroll dont select any item click outside the box, the existing selected item is not visible/not bound to select box
it would be great if you provide a working example.
Thanks

Duplicate of #10122


Chess: Move D2 to B3

Please do not change the title. Just click "Submit new issue".

@tmchuynh done! Successfully played move d2b3 for current game.
Thanks for playing!


gitbook editor is still run loading.Does not display the work area.

Category
the Editor is still run loading
What is the current behavior?
I  download the last version editor,login my account,then add new book.
When I want to edit book ,the editor is still run loading, it does not display the work area.

What is the desired behavior?
the editor run loading a while, then display the work area.
Additional information

Operating System : Windows 7 x64
Browser version : Chrome 61.0.3163.100 (64 bit)
Version of the Editor : <IP_ADDRESS>

Probably related
https://github.com/GitbookIO/gitbook/issues/1873

I found a workaround to avoid the "loading error" issue, the JSON error appeared to be a Unicode issue in the GitBook website's book info, if you change the "Title" field in the book's setting page to something without non-ASCII and press "Save" botton at the left panel the book will be loadable in local GitBook editor.

Yes, verified. If Title contains Chinese character, it won't open.

Almost same, but mine doesn't even load any screen.


Add support to read docx files

Changes:
- Implement parse_docx_to_text function to handle .doc and .docx files.
- Use text chunking logic for splitting up docx text after parsing
Bug-fixes:
- Convert file names in `paperqa/readers.py` to lowercase before checking extensions to ensure case-insensitive matching.

Looking good. Added some comments, and can you make a unit test?

@jamesbraza Good points. Pushed some changes, please take a look

Thanks for your contribution! This is now stale - please open a new PR if you're still interested.


Make keras model load compatible with old version of models

This PR makes tf.keras.models.load_model(...) compatible with the old versions of keras models (e.g. tf-1.2.1). More details about this issue can be found here. Note that tf-2.0 supports the models generated by tf-1.2.1 but recent changes in tf-2.1 break it.
Fix #38135

Not sure if this is desired. Can't you just update your config?

Not sure if this is desired. Can't you just update your config?

Thanks for review, @tanzhenyu!
We can update our model to work with tf-2.1. However, I think it will save time for users if Keras API in tf-2.x can keep compatible with the old models generated by tf-1.x. Otherwise, there may be some other users who met similar issues with ours.
Note that tf-2.0 can load the above model file but some recent changes in tf-2.1 break it. I'm not sure if it is on purpose, or maybe forgot some edge cases.

Not sure if this is desired. Can't you just update your config?

Thanks for review, @tanzhenyu!
We can update our model to work with tf-2.1. However, I think it will save time for users if Keras API in tf-2.x can keep compatible with the old models generated by tf-1.x. Otherwise, there may be some other users who met similar issues with ours.
Note that tf-2.0 can load the above model file but some recent changes in tf-2.1 break it. I'm not sure if it is on purpose, or maybe forgot some edge cases.

Can you be more specific on 1) what was the original config, 2) what error message does it provide, 3) what are alternative solutions towards this? And also a unit test would be desired as well.

@tanzhenyu  The following code can be used to reproduce the issue:

Step 1: use tf-1.2.1 to create an old model:

def create_model_tf12(model_file):
  from tensorflow.contrib.keras.python.keras.models import Sequential
  from tensorflow.contrib.keras.python.keras.layers import Dense, Embedding
  model = Sequential()
  model.add(Embedding(1000, 64, input_length=10))
  model.save(model_file)

Step 2: use tf-nightly to load the model:

def load_mode_tf_nightly(model_file):
  model = tf.keras.models.load_model(model_file)

Can you be more specific on 1) what was the original config,

The original config from tf-1.2.1 is below:
{
  'class_name': 'Sequential',
  'config': [
    {
      'class_name': 'Embedding',
      'config': {
        'name': 'embedding_1',
        'trainable': True,
        'batch_input_shape': [None, 10],
        'dtype': 'int32',
        'input_dim': 1000,
        'output_dim': 64,
        'embeddings_initializer': {'class_name': 'RandomUniform', 'config': {'minval': 0, 'maxval': None, 'seed': None, 'dtype': 'float32'}},
        'embeddings_regularizer': None,
        'activity_regularizer': None,
        'embeddings_constraint': None,
        'mask_zero': False,
        'input_length': 10
      }
    }
  ]
}

The original config from tf-nightly using the python code is below:
{
  'class_name': 'Sequential',
  'config': {
    'name': 'sequential',
    'layers': [
       {
         'class_name': 'InputLayer',
         'config': {
           'batch_input_shape': [None, 10],
           'dtype': 'float32',
           'sparse': False,
           'ragged': False,
           'name': 'embedding_input'}
       },
       {
         'class_name': 'Embedding',
         'config': {
           'name': 'embedding',
           'trainable': True,
           'batch_input_shape': [None, 10],
           'dtype': 'float32',
           'input_dim': 1000,
           'output_dim': 64,
           'embeddings_initializer': {'class_name': 'RandomUniform', 'config': {'minval': -0.05, 'maxval': 0.05, 'seed': None}},
           'embeddings_regularizer': None,
           'activity_regularizer': None,
           'embeddings_constraint': None,
           'mask_zero': False,
           'input_length': 10}
       }
    ]
  }
}

what error message does it provide,

The error message is
Traceback (most recent call last):
  File "/home/feihu/miniconda3/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/feihu/miniconda3/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/feihu/.vscode-server/extensions/ms-python.python-2020.3.71659/pythonFiles/lib/python/debugpy/no_wheels/debugpy/__main__.py", line 45, in <module>
    cli.main()
  File "/home/feihu/.vscode-server/extensions/ms-python.python-2020.3.71659/pythonFiles/lib/python/debugpy/no_wheels/debugpy/../debugpy/server/cli.py", line 429, in main
    run()
  File "/home/feihu/.vscode-server/extensions/ms-python.python-2020.3.71659/pythonFiles/lib/python/debugpy/no_wheels/debugpy/../debugpy/server/cli.py", line 266, in run_file
    runpy.run_path(options.target, run_name=compat.force_str("__main__"))
  File "/home/feihu/miniconda3/lib/python3.6/runpy.py", line 263, in run_path
    pkg_name=pkg_name, script_name=fname)
  File "/home/feihu/miniconda3/lib/python3.6/runpy.py", line 96, in _run_module_code
    mod_name, mod_spec, pkg_name, script_name)
  File "/home/feihu/miniconda3/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "tf_explore/keras_load_model.py", line 46, in <module>
    load_mode_tf21(SEQ_MODEL_TF12_FILE)
  File "tf_explore/keras_load_model.py", line 30, in load_mode_tf21
    model = tf.keras.models.load_model(model_file)
  File "/home/feihu/py-virtualenv/tf-nightly/lib/python3.6/site-packages/tensorflow/python/keras/saving/save.py", line 184, in load_model
    return hdf5_format.load_model_from_hdf5(filepath, custom_objects, compile)
  File "/home/feihu/py-virtualenv/tf-nightly/lib/python3.6/site-packages/tensorflow/python/keras/saving/hdf5_format.py", line 170, in load_model_from_hdf5
    custom_objects=custom_objects)
  File "/home/feihu/py-virtualenv/tf-nightly/lib/python3.6/site-packages/tensorflow/python/keras/saving/model_config.py", line 55, in model_from_config
    return deserialize(config, custom_objects=custom_objects)
  File "/home/feihu/py-virtualenv/tf-nightly/lib/python3.6/site-packages/tensorflow/python/keras/layers/serialization.py", line 173, in deserialize
    printable_module_name='layer')
  File "/home/feihu/py-virtualenv/tf-nightly/lib/python3.6/site-packages/tensorflow/python/keras/utils/generic_utils.py", line 340, in deserialize_keras_object
    config, module_objects, custom_objects, printable_module_name)
  File "/home/feihu/py-virtualenv/tf-nightly/lib/python3.6/site-packages/tensorflow/python/keras/utils/generic_utils.py", line 302, in class_and_config_for_serialized_keras_object
    for key, item in cls_config.items():
AttributeError: 'list' object has no attribute 'items'

what are alternative solutions towards this?

Do you mean if there are any other solution to fix this issue?

And also a unit test would be desired as well.
Will add a unit test soon.

@tanzhenyu The unit test is added here(https://github.com/tensorflow/tensorflow/pull/38339/commits/49b07e664590f73942bcbaf1c378e59ccab9f04b). Could you please take a look when you have time?

@tanzhenyu kindly remind that the comments have been addressed here (https://github.com/tensorflow/tensorflow/commit/49b07e664590f73942bcbaf1c378e59ccab9f04b). Could you take a look when you get a chance? Hope this PR can be merged before the official release of TF-2.2.

@k-w-w Could you please take a look at this PR when you get a chance?


Checking falsiness of optionally chained property incorrectly infers definedness of parent

Bug Report

🔎 Search Terms

optional chaining, type inference, optional boolean, incorrect type inference, incorrect type narrowing
🕗 Version & Regression Information

This is the behavior in every version I tried, and I reviewed the FAQ for entries about optional chaining, inference, types, etc.

⏯ Playground Link
Playground link with relevant code
💻 Code

declare const obj: {
    a: boolean
    b: boolean
} | undefined

// obj.b should say `'obj' is possibly 'undefined'`.
if (!obj?.a || !obj.b) {
    // do something
}

🙁 Actual behavior
No error
🙂 Expected behavior
Transpiler error on the obj.b access.

If !obj?.a is true, then || !obj.b is unreachable due to short circuiting.  This implies obj?.a is truthy at that point (because its negation is false), and that therefore obj can’t be undefined.  This all looks correct to me.

Lol my b. Don’t know what I was thinking haha.


Irregular runtime error occurred when calling speak_ssml_async in python

Describe the bug
An RuntimeError occurred while calling speak_ssml_async
This error seemed to occurred randomly. Even if args and environment is absolutely same, it doesn't occur every time. Sometimes when I reboot the computer or test next day, the error doesn't occurred for hours.
This error seems can't be catch through try.
To Reproduce
Executing function tts with correct ssml and output file path for many times at the same time in windows may result in raising this error.
File tts.py
from aspeak import SpeechToFileService,AudioFormat,FileFormat

provider=None
fmt=AudioFormat(FileFormat.MP3,-1)

def init():
    global provider
    provider=SpeechToFileService(locale="zh-CN",audio_format=fmt)

def tts(ssml:str,path:str):
    if provider is None:
        init()
    return provider.ssml_to_speech_async(ssml,path=path)  # type: ignore

Execute example (only for test):
from tts import tts
SSML_MODEL = '''<speak xmlns="http://www.w3.org/2001/10/synthesis" xmlns:mstts="http://www.w3.org/2001/mstts" xmlns:emo="http://www.w3.org/2009/10/emotionml" version="1.0" xml:lang="en-US">
    <voice name="zh-CN-YunyeNeural">
        <prosody rate="43%" pitch="0%">
            {}
        </prosody>
    </voice>
</speak>'''
for i in range(30):
    tts(SSML_MODEL.format(str(i)*500),str(i)+".mp3")
# And then use `get` for each instance of `tts`

Expected behavior
This is Traceback text (memory address 00007FFE37F772C4, 00007FFE37FC76A8, 00007FFE37FC87A8 is fixed for every time.)
CRITICAL: Traceback (most recent call last):
  ......
  File "E:\***\tts.py", line 17, in tts
    return provider.ssml_to_speech_async(ssml,path=path)  # type: ignore
  File "F:\ProgramData\Miniconda3\lib\site-packages\aspeak\api\api.py", line 110, in wrapper
    self._setup_synthesizer(kwargs['path'])
  File "F:\ProgramData\Miniconda3\lib\site-packages\aspeak\api\api.py", line 139, in _setup_synthesizer
    self._synthesizer = speechsdk.SpeechSynthesizer(self._config, self._output)
  File "F:\ProgramData\Miniconda3\lib\site-packages\azure\cognitiveservices\speech\speech.py", line 1598, in __init__
    self._impl = self._get_impl(impl.SpeechSynthesizer, speech_config, audio_config,
  File "F:\ProgramData\Miniconda3\lib\site-packages\azure\cognitiveservices\speech\speech.py", line 1703, in _get_impl
    _impl = synth_type._from_config(speech_config._impl, None if audio_config is None else audio_config._impl)
RuntimeError: Exception with an error code: 0x8 (SPXERR_FILE_OPEN_FAILED)
[CALL STACK BEGIN]

    > pal_string_to_wstring

    - pal_string_to_wstring

    - synthesizer_create_speech_synthesizer_from_config

    - synthesizer_create_speech_synthesizer_from_config

    - 00007FFE37F772C4 (SymFromAddr() error: 试图访问无效的地址。)

    - 00007FFE37FC76A8 (SymFromAddr() error: 试图访问无效的地址。)

    - 00007FFE37FC87A8 (SymFromAddr() error: 试图访问无效的地址。)

    - PyArg_CheckPositional

    - Py_NewReference

    - PyEval_EvalFrameDefault

    - Py_NewReference

    - PyEval_EvalFrameDefault

    - PyFunction_Vectorcall

    - PyFunction_Vectorcall

    - PyMem_RawStrdup

    - Py_NewReference

[CALL STACK END]

Version of the Cognitive Services Speech SDK
1.23.0
Platform, Operating System, and Programming Language

OS: Windows 10
Hardware - x64
Programming language: Python

@yulin-li Could you please comment on this issue?

0x8 (SPXERR_FILE_OPEN_FAILED) means the audio file you are trying to write to is not available, the possible reasons are folder not existing, wrong permission, or this file is opened by another program.
Please note aspeak is a project that abuses azure TTS service by hacking the endpoint only for demo.  Speech SDK is not designed to work with this demo endpoint. You need to get your own subscription and stop abusing.


User mapping file issue

[Unable to map users using the instructions in this article. the user's are not added to the SharePoint site.
I tried both combinations using SID and username.

https://docs.microsoft.com/en-us/sharepointmigration/create-a-user-mapping-file-for-data-content-migration
The log files don't show any errors using Migration Mgr or SPMT
File share to SharePoint Online
]

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

ID: d8379014-03ff-3ab5-aa1f-5d9c3a02be68
Version Independent ID: cfabc646-70ea-6b24-7d16-ea0955479aa5
Content: Create a user-mapping file for data content migration - Migrate to Microsoft 365
Content Source: migration/create-a-user-mapping-file-for-data-content-migration.md
Service: sharepoint-online
Sub-service: sharepoint-migration
GitHub Login: @JoanneHendrickson
Microsoft Alias: jhendr

Hello @PikeSal
I tested this on my lab tenant from my lab SP Server and I could successfully migrate and map users using the csv file, sharing an example with you

Also, if you look at the migration report, you should see in the file UserMapped_R1.csv if the mapping was successful.
Hope this information helps you,

Hello @PikeSal could you see my last comment? Thank you

@pikesal -- is this a File share to SharePoint migration? or SharePoint Server to SharePoint online?

Fileshare to SharePoint online.
On Mon., Mar. 28, 2022, 2:25 p.m. JoanneHendrickson, <
@.***> wrote:

@PikeSal https://github.com/PikeSal -- is this a File share to
SharePoint migration? or SharePoint Server to SharePoint online?
—
Reply to this email directly, view it on GitHub
https://github.com/MicrosoftDocs/OfficeDocs-SharePoint/issues/3224#issuecomment-1080994333,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ARRJTXPABLUYBQY52SYDOXLVCH2RDANCNFSM5RMLYQJQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

Fileshare to SharePoint online.

Hello @PikeSal
I've just tested File Share to SPO and the mapping file was used and applied.
For your information I used the same format I showed you in my first reply.
Hope this information helps you,

@scanum


ESP32-S3 Wifi SSID Not Visible After Firmware Upload

Is your feature request related to a problem? Please describe.
I've tried to use my ESP32-S3 WROOM-1 (N16R8) as an extender, every time I upload the firmware it seems perfectly uploaded.But when I search for the SSID from any device, it didn't shows up!
After some searching, I realized that, while uploading the firmware, the bluetooth address were added like BLUETOOTH: BHFAAFGH.....,  but the
WIFI :            address stays empty, I think it is the problem here!
Describe the solution you'd like
I would like to use my ESP32 S3 as a Wifi extender (repeater), Deauthar, etc. Please help.
Additional context

Hi @Ahsan-Himu
Please share screen shot of platform.ini file and any other files you modified.

; PlatformIO Project Configuration File
;
;   Build options: build flags, source filter
;   Upload options: custom upload port, speed and extra flags
;   Library options: dependencies, extra library storages
;   Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[platformio]
src_dir = main
[env]
platform =<EMAIL_ADDRESS>framework = espidf
platform_packages =
framework-espidf @ https://github.com/tasmota/esp-idf/releases/download/v5.1.2-org/esp-idf-v5.1.2-org.zip
board_build.partitions = partitions_example.csv
monitor_filters = direct
monitor_speed = 115200
[env:esp32dev]
board = esp32dev
[env:esp32-c3-devkitm-1]
board = esp32-c3-devkitm-1
[env:esp32-s3]
board = esp32s3box
; [env:esp32-s3-debug]
; extends = env:esp32-s3
; upload_protocol = esp-builtin
; debug_tool = esp-builtin
; build_type = debug

Hi @Ahsan-Himu
Please share screen shot of platform.ini file and any other files you modified.

I have provided full code of the platform.ini

Hi @Ahsan-Himu
Please share screen shot of platform.ini file and any other files you modified.

I have used Espressif's Flash Download Tool , used  esp32_nat_router file by martin ger also.

Please give me some time i will look into this issue

Sorry for that you provided platform.ini not works for this project, because this project is different from any other, so add this line to file and try again.
[env:esp32-s3]
board = esp32s3box ; or any other you know
platform =<EMAIL_ADDRESS>framework = espidf

Sorry for that you provided platform.ini not works for this project, because this project is different from any other, so add this line to original file and try again.
[env:esp32-s3] board = esp32s3box ; or any other you know platform =<EMAIL_ADDRESS>framework = espidf

I've tried this but not working, bluetooth and other settings configured but Ethernet address not generated "marked on the SS"

You mentioned "Ethernet address" But i don't think this project will work for your board, may be menu config additional setting required, even though I don't have test setup for regenerate same issue. So i try to build and share you

Hi @Ahsan-Himu , can you please test the firmware and provide me with an update? Thanks!
esp32S3.zip


feat: Auto-select search

Closes #1619, addresses a related Vue.js warning and fixes some (I assume) intended but non-functional behaviour around search blur.

I don't if it's just my browser but I'm seeing a weird behavior where typing into the auto-focused search box doesn't display matches, but clicking outside and then again inside the search box fixes it.

@edgarrmondragon I don't see that on my end, but I definitely have ran into an issue like that before where I've managed to start typing in the search bar before the page has completely loaded (slow connection or something).
Screencast from 20-03-24 20:26:51.webm

@edgarrmondragon This is what I'm talking about. Is this what you're seeing?
Screencast from 20-03-24 21:04:32.webm

@edgarrmondragon I don't see that on my end, but I definitely have ran into an issue like that before where I've managed to start typing in the search bar before the page has completely loaded (slow connection or something).

That's a separate issue which I've also experienced, but this is different:

load the page
focus is on Search
start typing
matches list does not come up
change focus to another element (e.g. by clicking anywhere outside Search but Tab has the same effect)
focus on Search again (click or Shift+Tab)
matches list is now displayed

Kapture 2024-03-20 at 16.20.38.webm

@edgarrmondragon Can you try again now?

@edgarrmondragon Can you try again now?

Yup, that did it!


Allow service document uploads to be private

The supplier frontend needs draft document uploads to be private until the framework goes live. This just passes the public down from upload_service_documents to the upload_document call.

:+1:


Updated README.md regarding installation of clang toolchain

Clang toolchain must be installed, so I've added an entry onto the "Getting started" section.

"because of rocksdb" could be good

"because of rocksdb" could be good

Thx for the suggestion, done.

I think this is only true for linux?

I think this is only true for linux?

Updated regarding required installation steps, separated by Linux and Windows.

Looks good. Thank you. I suggest to replace Linux i. e. with Linux: (x4)

Done.


Add Host With letsencrypt SSL Fail!

Describe your issue here
My Rancher Server running at port 51263, then use nginx agent to port 443 (proxy_pass), http2 enabled, chrome can browse it, no problem .
Then I copy letsencrypt cert1.pem to /var/lib/rancher/etc/ssl/ca.crt, and run rancher/agent, it showed:
INFO: Running Agent Registration Process, CATTLE_URL=https://xxx.com/v1
INFO: Attempting to connect to: https://xxx.com/v1
INFO: https://xxx.com/v1 is accessible
Traceback (most recent call last):
File "./resolve_url.py", line 9, in
r = requests.get(url)
File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 70, in get
return request('get', url, params=params, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 56, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 488, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 609, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line 497, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)
curl: no URL specified!
curl: try 'curl --help' or 'curl --manual' for more information
ERROR: returned
ERROR: --- START ---
ERROR: --- END ---
ERROR: Failed to load registration env from CATTLE_URL=https://xxx.com/v1 ENV_URL=
ERROR: Please ensure the proper value for the Host Registration URL is set
I don't konw what's wrong?

Useful
Info

Versions
Rancher v1.2.2 Cattle: v0.174.13 UI: v1.2.40

Access
localauth admin

Orchestration
Cattle

Route
hosts.index

Rancher v1.3.0 Cattle: v0.175.2 UI: v1.3.5
is the same

Host Registration URL is set to https://xxx.com

I ran into the exact same issue on the exact same setup.
The agent was first provision using Azure driver and registered when the rancher server was using a self signed certificated which was put in /var/lib/rancher/etc/ssl/ca.crt as and it was reachable no problem.
I migrated the rancher server to use letsencrypt cert, which works fine when I provision another Azure VM, but I can't rerun the registration URL from this agent agent. Exact same log @ghost mentioned

I'm getting the exact same Python SSL errors.
Environment I am running Rancher Server behind Nginx Reverse Proxy which provides SSL via LetsEncrypt. When I try to install a Rancher Agent on the same Rancher Server, I get that Python SSL error. If I install a Rancher Agent on a remote host, it runs fine.
If I run the Rancher Agent interactively with -it and -- bash, SSL works via curl and openssl, but not via Python. This includes known sites like requests.get(https://www.google.com). They all throw the same SSL CERTIFICATE error:
>>> import requests
>>> import ssl
>>> requests.get('https://google.com')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 70, in get
    return request('get', url, params=params, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 56, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 488, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 609, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line 497, in send
    raise SSLError(e, request=request)
requests.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)

Appears to be a Python-only problem with SSL libraries?

I was finally able to get LetsEncrypt working by running the Rancher Agent Host WITHOUT adding my LetsEncrypt certificate file to /var/lib/rancher/etc/ssl/ca.crt on the agent host as the Rancher docs suggest. Instead I just ran the agent as I normally would with no setup on the Host, and it worked. This was only after I deleted all files and directories in /var/lib/rancher/* in order to start fresh (though I wasn't able to remove volumes dir, getting a cannot remove 'volumes/': Device or resource busy even after removing all rancher containers and troubleshooting with lsof and fuser with no luck). I thought the entire rancher agent system was self contained, but the files in /var/lib/rancher/persist after container removal and will mess things up if you try to start over your rancher environment from scratch. I believe this is because the/var/lib/rancher/etc/ssl/host.key` is unique to each rancher master node.
If you've already run a failed rancher agent and are stuck with this error, remove all rancher agent containers and run sudo rm /var/lib/rancher/* on the agent Host (you can ignore the "cannot remove volumes" error), then run the agent as you normally would without any custom ca.crt and it should work for LetsEncrypt. The custom ca.crt was breaking Python SSL for some reason, maybe I was using the wrong cert file, the rancher docs are a bit vague simply saying "place the cert file in /var/lib/rancher/etc/ssl/ca.crt". My previous attempts of using fullchain.pem or cert.pem in /var/lib/rancher/etc/ssl/ca.crt all failed despite following rancher's docs as closely as possible (my environment is slightly different so I couldn't follow to a T). So far the only thing that works for me is to run the rancher agent without the ca.crt file. I am also running the Rancher Server without a ca.crt file mounted into the master /var/lib/rancher/etc/ssl/ca.crt`, this works because I am handling SSL in my reverse proxy.

I had the same issue due to an internal PKI. The /var/lib/rancher/etc/ssl/ca.crt file must contain the certificate chain as per documented here: https://curl.haxx.se/docs/sslcerts.html.
I my case I had to generate it: cat [root CA crt] [intermediate CA crt] [server crt] > ca.crt


Feature/32 contract permissioning

Ensure delegated calls are verified by the doughnut.
Also:

Make it explicit that DelegatedDispatchVerifier of any 'Trait' would be made out of the same doughnut and account id types used in that 'Trait'.
Replace "()" as the dummy DelegatedDispatchVerifier by a clear generic type DummyDispatchVerifier which is consistent with the non-dummy case.
Moreover make doughnut an associated type rather than a generic parameter for DelegatedDispatchVerifier the same as it is for AccountId.

@Reviewers: The process of building and testing the change locally on my computer took so long that I decided to create PR before finishing the process. So the task is not yet done according to the definition of done and there may be build or test issues that I will fix as it goes. However, I reckon it's worth to have the PR at this stage so we can do the review in parallel.

The associated type clean ups and dummy dispatch are really nice 👍
An alternative to ensure_verified would be to implement something like the following for the AccountId so you can get the who from the origin without move-ing it
https://github.com/plugblockchain/plug-blockchain/blob/c3fbfd4bba1420f2a54db8bbe276c8b5c97d0d1f/frame/support/src/origin.rs#L195-L206

@holygits Nice alternative. I could even change the doughnut function itself. Thank you for sharing this solution. Anyway, if the current solution is acceptable, I would prefer not changing it.


Arduino nano esp32, functionality with GPIO pins?

Hey, thanks for the useful project.
I am using an Arduino ESP32 Nano, platformio
I want to use GPIO pins for this, not the standard pins.
I am definitely seeing signals on the scope from my 3.3V SPI Master. However, I see no data from MISO.
I am not totally what BUFFER_SIZE represents here:
const size_t received_bytes = slave.transfer(tx_buf, rx_buf, BUFFER_SIZE);
Does this mean to expect CS low during this entire 64 bit transaction?
Regardless, I tried setting it to 1.  I still see MISO stuck at 1.
Any tips? Thanks!
#include <Arduino.h>
#include <ESP32SPISlave.h>

/* SPI Slave */
ESP32SPISlave slave;
static constexpr size_t BUFFER_SIZE = 8;
static constexpr size_t QUEUE_SIZE = 1;
uint8_t tx_buf[BUFFER_SIZE]{0xFE, 0xFD, 0xFC, 0xFB, 0xFA, 0xF9, 0xF8, 0xF7};
uint8_t rx_buf[BUFFER_SIZE]{0, 0, 0, 0, 0, 0, 0, 0};

// put function declarations here:
int myFunction(int, int);

void setup()
{
    /* SPI Slave */
    #define SLAVE_SCK D4
    #define SLAVE_MISO D5
    #define SLAVE_MOSI D7
    #define SLAVE_CS D8

    pinMode(SLAVE_SCK, INPUT);
    pinMode(SLAVE_MISO, OUTPUT);
    pinMode(SLAVE_MOSI, INPUT);
    pinMode(SLAVE_CS, INPUT);
    slave.setDataMode(SPI_MODE0);      // default: SPI_MODE0
    slave.setQueueSize(QUEUE_SIZE);    // default: 1
    slave.begin(SPI3_HOST, SLAVE_SCK, SLAVE_MISO, SLAVE_MOSI, SLAVE_CS);
}

void loop()
{
    const size_t received_bytes = slave.transfer(tx_buf, rx_buf, BUFFER_SIZE);
}

The buffer size is the size of the data transferred from the master in one transaction. It looks like there is no problem with BUFFER_SIZE.
You don't need to call pinMode() for four pins.
Please refer to this document for IO_MUX.
https://docs.espressif.com/projects/esp-idf/en/v4.4.7/esp32/api-reference/peripherals/spi_slave.html#gpio-matrix-and-io-mux


Add support for RF 6.1

Add support for RF 6.1, this at least causes issue https://github.com/robotframework/robotframework/issues/4538

The underlying issue has been there since RF 6.0 when we started to convert itens inside generics like list[Permission]. That affected usages like permission=['xxx'] where the container is specified as a literal. The fix in RF 6.1 changes the behavior so that conversion is done also if the container is an actual list, dict, etc. In other words, this fix actually makes Browser RF 6.0 compatible.


Add callbacks

I'm re-opening https://github.com/libprima/prima/pull/69, but since the original branch was closed I made a new branch on my own repo and copied the changes there. All credit of course goes to @jschueller as this is his work and not mine, I am merely shepherding it!
This is necessary for the upcoming work to integrate with SciPy, since the implementation of COBYLA that they have does provide a callback so obviously we don't want any regression in functionality upon switching to the PRIMA implementation of COBYLA.

Also, @jschueller you're more than welcome to either make suggestions here or if you prefer to take over the work and make your own PR in favor of this one, that's fine too.

It sounds like you're thinking of the following scenario (using Python as an example but it could apply to other languages as well):
def my_cost_function(x):
  try:
    ...some computation...
  catch err:
     ... what do we do here?...

And further it sounds like you're saying that if we add a terminate output to the objective/cost function, then in the catch block we could set it, and then once we're back in the Fortran code we can gracefully terminate the routine instead of crashing.
Seems like a reasonable addition, I wonder what @zaikunzhang thinks?

-"Fixed" the spelling issues
-Addressed @zaikunzhang 's comments from the previous PR that the callback should report the "current best" values as opposed to simply the values at the current iteration (if the user is very interested in those they can access them via the objective function)
-Added the callback at the end of the initialization
-Added a no-op callback so that we could properly pass the callback to the initialization. This flows better with the result of the optional arguments in the [algorith]a.f90 files

I spent most of today investing some of the build failures from CI. It's a long story, but the short version is that in my experiments with flang (the AMD optimizing C/C++ compiler, AOCC) I discovered that the only way to support this compiler is to make some rather ugly code changes. First of all, bobyqa.f90 and others cannot have the following code:
if (present(callback_fcn)) then
    callback_fcn_loc => callback_fcn
else
    callback_fcn_loc= => NO_OP_CALLBACK
end if

The problem is that while we can write call callback_fcn(...), we cannot copy the procedure pointer to another procedure pointer. Something gets lost in the copy and so call callback_fcn_loc(...) results in a segfault.
There is a workaround for this but it's not very pretty:
if (present(callback_fcn)) then
    call bobyqb(...., callback_fcn, ...)
else
    call bobyqb(..., NO_OP_CALLBACK, ....)
end if

The other problem is that we cannot call it from both bobyqa/initialize.f90 and then also from bobyqa/bobyqb.f90. I'm not sure why, something about too many levels. That one is solvable by simply not passing it to bobyqa/initialize.f90.
I don't know yet if these things will solve the issues with the other compilers as well (nvfortran and aflang are also having issues).
@zaikunzhang how would you feel about deciding that only gfortran and ifort will support interop with C? We can modify the CMake files so that they do not try to compile and run the C examples with flang/nvfortran/aflang, only with gfortran and ifort, and then we can keep the code a little bit cleaner. Does this make sense to you and does it sound sensible, or do you have thoughts on the topic you'd like to share?

so how would you handle a function that cannot be evaluated (an exception for example) on a new point proposed by the algorithm ?

so how would you handle a function that cannot be evaluated (an exception for example) on a new point proposed by the algorithm ?

@zaikunzhang can speak in more detail on this, but from our conversations I understand that a common tactic in these situations is to return NaN. COBYLA and other algorithms are set up in such a way as to be able to recover from NaN by essentially going back and trying different points.

This is a milestone! Thank everyone!

Woo hoo!


[amazon-cognito-identity-js] Update Webpack instructions

This updates the README.md to more up-to-date configurations to allow new people to immediately be able to use this package.
If not updated the error you get is:
Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
 - configuration.module has an unknown property 'loaders'. These properties are valid:
   object { exprContextCritical?, exprContextRecursive?, exprContextRegExp?, exprContextRequest?, noParse?, rules?, defaultRules?, unknownContextCritical?, unknownContextRecursive?, unknownContextRegExp?, unknownContextRequest?, unsafeCache?, wrappedContextCritical?, wrappedContextRecursive?, wrappedContextRegExp?, strictExportPresence?, strictThisContextOnImports? }
   -> Options affecting the normal modules (`NormalModuleFactory`).
 - configuration.output.path: The provided value "./dist" is not an absolute path!
   -> The output directory as **absolute path** (required).

Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Codecov Report

Merging #765 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #765   +/-   ##
=======================================
  Coverage   86.65%   86.65%
=======================================
  Files          74       74
  Lines        3530     3530
  Branches      671      671
=======================================
  Hits         3059     3059
  Misses        454      454
  Partials       17       17

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 799b40c...2947b34. Read the comment docs.


Error react-native-webview

Hello, could anyone help me with this error?
React Native
"react-native-webview": "^11.18.2"
FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':react-native-webview:bundleLibResDebug'.

Unable to delete file 'C:\Users\lucas.oliveira\Desktop\app\aptalk-mobile\node_modules\react-native-webview\android\build\intermediates\library_java_res\debug\res.jar'

Hi everyone ! Can someone help me ? I don't have error with WebView but it just doesnt work. I don't know why it displays a blank page in place of showing me slack.com. Here is my code :
App.js :
import { StyleSheet, Text, View } from 'react-native';
import ContentView from './ContentView';
export default function App() {
return (

);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
justifyContent: 'center',
},
});
ContentView.js :
import React from 'react';
import { View } from 'react-native';
import { WebView } from 'react-native-webview';
const styles = {
container: {
flex: 1,
}
};
const ContentView = () => {

<WebView source={{ uri: 'https://slack.com' }}
javaScriptEnabled={true}
domStorageEnabled={true}
startInLoadingState={true}
/>

};
export default ContentView;
Please help me :)


Use Access Tags, in particular destination

I added parsing of the access=destination tag to the CarFlagEncoder, which intents to fix #733.
I also added parsing of access values to the DataFlagEncoder. Right now this happens only for a car like vehicle. I created sort of 3 categories: ACCESSIBLE, EVENTUALLY_ACCESSIBLE, NOT_ACCESSIBLE. Whereas access values like customers, destination, and so on are EVENTUALLY_ACCESSIBLE.
Right now I add a penalty of factor 10 to edges that are EVENTUALLY_ACCESSIBLE. This could be improved if we would add "geospatial knowledge" to the GenericWeighting. For example if an edge is close to a waypoint, the EVENTUALLY_ACCESSIBLE penalty could be very low, whereas if the edge is far from a waypoint the penalty would be comparably high.

Thanks!


trivial-builders: add writeMultipleReferencesToFile

Description of changes
This builder takes a list path and reduces the
writeMultipleReferencesToFile result of each element to a file.
It would be helpful when building a container image from a list of
packages. See https://github.com/NixOS/nixpkgs/issues/177908#issuecomment-1160624616 .
I have prepared two versions of implementation, both of which tries to merge the result of writeReferencesToFile on each derivation:
1.  Merge into a Bash associative array with the out-path hashes as the keys, and sort the keys lexicographically with the sort command. Time complexity: $O(N \log N)$, I/O time complexity $O(N)$, where $N$ is the total number of references. (https://github.com/ShamrockLee/nixpkgs/blob/write-multiple-references-dict/pkgs/build-support/trivial-builders.nix#L671=)
2.  Merge using the merge-sorted-arrays algorithm given that the results of writeReferencesToFile are sorted. Time complexity: $O(mN)$, I/O time complexity: $O(N)$, where $m$ is the length of paths and $N$ is the total number of references. (https://github.com/ShamrockLee/nixpkgs/blob/write-multiple-references-merge/pkgs/build-support/trivial-builders.nix#L671=)
This PR adopts the first implementation, since the code is shorter and more understandable.
Update:
@SomeoneSerge proposed the third approach: Write the path list with writeText, get its list of dependencies with writeReferencesToFile and then remove the line containing the store path of the path list derivation. Just re-implement this PR following this approach.
The test cases of writeReference* builders doesn't run (#204456), blocking the test case adding for this new builder.
Update:
The test case that makes sure the equivalence between the writeMultipleReferencesToFile [ path1 path2 ... ] and nix-store --query --references outPath1 outPath2 ... is added to the NixOS test tests.trivial-builders.references.
Add two package tests:

tests.trivial-builders.writeMultipleReferencesToFile-single ensure the equivalence between writeMultipleReferencesToFile [ path ] and writeReferencesToFile path.
tests.trivial-builders.writeMultipleReferencesToFile-mixed ensures that the content of the result derivation of writeMultipleReferencesToFile [ path1 path2 ... ] is the unique collection of that of (writeReferencesToFile path1, writeReferencesToFile path2, ...).

Things done

Built on platform(s)

[X] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

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

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

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

Content of files produced by by pkgs.writeMultipleReferencesToFile [ pkgs.jupyter ] and pkgs.writeReferencesToFile pkgs.jupyter is the same.
Content of files produced by by pkgs.writeMultipleReferencesToFile [ pkgs.gcc pkgs.jupyter ] and pkgs.writeReferencesToFile [ pkgs.jupyter pkgs.gcc ] is the same.

22.11 Release Notes (or backporting 22.05 Release notes)

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

[X] Fits CONTRIBUTING.md.

@jbedo @SomeoneSerge @GaetanLepage
This could replace singularity-tools.mkLayer and prevent unnecessary waste of space. Could you guys help take a look?

Just add the test cases anyway. See how OfBorg would run them.

@ofborg test references

Awesome. I'll just note that I think bash is on its way of becoming a burden here. I would really like to run some simple benchmarks because I don't have a very concrete understanding of how much of an issue this mkLayer is right now, and how much this change improves it, but slow as I am I wouldn't insist that you wait for my approval on merging

It's still short and understandable, so I think a shift away from bash would have more downsides than advantages.

I would also really like to run some simple benchmarks because I don't have a very concrete understanding of how much of an issue this mkLayer is right now, and how much this change improves it

I haven't done a serious benchmark yet. The reason why it helps is:

mkLayer produces a package by copying all the files in the output path of packages in contents into its own output path.
What buildImage needs is only a list of store paths of contents and their run-time dependencies (made with writeReferencesToFile), making the files mkLayer copies useless.
writeMultipleReferencesToFile simply dump the list of store paths to its output file, preventing the redundant copying.

When dealing with large packages like root (CERN ROOT, a C++ analysis framework), the use of mkLayer doubles the image build time and the disk space usage.

You can use a temporary store instead of GC, and rather than a
shell to prime you can just set jobs to 0:
TMPSTORE=$(mktemp -d)
nix-build -A hello --store $TMPSTORE -j 0
time nix-build -A hello --store $TMPSTORE --offline --no-out-link

A temporary store would be neat!

rather than a shell to prime you can just set jobs to 0

I don't understand this part.
The purpose of nix-shell -A hello --run exit is to build all the dependencies before the benchmark.

Yeah never mind, -j0 will fetch from cache but not build anything, but
the shell might actually be better if there are some dependencies that
are uncached that you don't want to include in the benchmark.

Thank you for explaining. I had thought that -j0 indicates the number of available cores just like make.

The equivalent of that is --cores.
I just remembered that nix-build has --check, which is perhaps the
easiest:
❯ hyperfine --warmup 1 "nix-build --check -A hello '<nixpkgs>'"
Benchmark 1: nix-build --check -A hello '<nixpkgs>'
Time (mean ± σ):      9.452 s ±  0.094 s    [User: 0.117 s, System: 0.040 s]
Range (min … max):    9.324 s …  9.605 s    10 runs

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review/3032/2978

LGTM but I think that at this point we'd benefit from introducing some tests. We could expose some in singularity's passthru so that ofborg knows to rerun them as things change.

I added the test case to tests.trivial-builders.references long ago, but didn't push until now because tests.trivial-builders.references had failed to build before I added the test case.
The commit containing the test case is now pushed.

And maybe a matter for a separate PR, but a NixOS integration test executing singularity run with an image assembled using singularity-tools would be nice.

Please take a look at #268199. Currently, I could only add image-running test for Apptainer because Sylabs SingularityCE (still) requires loop devices to mount the image to SESSIONDIR, which is not available in the Nix sandbox, no is it in runInLinuxVM build environment.

I removed all the unnecessarp ? import ../../../.. { ... } from all the files changed by this PR.

Now that #204462 is merged, I refined the all-references part of tests.trivial-builders.references.
I also added two package tests tests.trivial-builders.writeMultipleReferencesToFile-single and tests.trivial-builders.writeMultipleReferencesToFile-mixed that doesn't require Linux VM instances to run. They compare the result of writeMultipleReferencesToFile with that of writeReferencesToFile. They are inspired by tests.trivial-builders-writeStringReferencesToFile.

@ofborg build tests.trivial-builders.references tests.trivial-builders.writeMultipleReferencesToFile-single tests.trivial-builders.writeMultipleReferencesToFile-mixed

Found two spaces in the comment. Remove one.

@ofborg build tests.trivial-builders.references tests.trivial-builders.writeMultipleReferencesToFile-single tests.trivial-builders.writeMultipleReferencesToFile-mixed

Now that #204462 is merged, I refined the all-references part of tests.trivial-builders.references.\n\nI also added two package tests tests.trivial-builders.writeMultipleReferencesToFile-single and tests.trivial-builders.writeMultipleReferencesToFile-mixed that doesn't require Linux VM instances to run. They compare the result of writeMultipleReferencesToFile with that of writeReferencesToFile. They are inspired by tests.trivial-builders-writeStringReferencesToFile.

@roberth @SomeoneSerge could you help take a look at the tests?

Suggestion: writeReferenceClosureToFile

How could we distinguish between this function and the current writeReferencesToFile?

The name suggests that it only writes the references, but it writes the whole closure. While this is a pre-existing problem with writeReferencesToFile, we should really use a better name. (It surely caught me off guard: https://github.com/NixOS/nixpkgs/pull/178717/files#r1519520762)
Suggestion: writeReferenceClosureToFile

As there are also writeDirectReferencesToFile, should we call it writeReferenceClosureToFile or writeClosureReferencesToFile?

We could then also start deprecating writeReferences, which caused all this, but that doesn't have to be done in this PR.

How about deprecating writeReferencesToFile in favor of writeReferenceClosureToFile, and re-implement writeDirectReferencesToFile to accept a list of paths?

BTW, should we also make writeDirectReferencesToFile accept a list of paths?
Implementation-wise, it's natural for writeReferenceClosureToFile to support a list of paths, as the structural exportReferencesGraph itself already accepts path list, and the result don't have to be de-duplicated. However, the direct references are provided for each closure paths specifically, which means that we'll have to mix and de-duplicate manually if we would like writeDirectReferencesToFile to support a list of paths.

Add a release note, and a warning/throwing message for writeReferencesToFile.

writeReferenceClosureToFile sorts by hashes and guarantees deterministic outputs but is very sensitive to perturbations.

This reminds me that we could sort the paths before passing to exportReferencesGraph to avoid unnecessary rebuilds caused by perturbation changes.
Aside from that, I also filter out null and empty string before passing to exportReferencesGraph to make writeReferenceClosureToFile more resilient. null is often passed into the override interface (callPackage or <pkg>.override) to "cancel out" package injection, which would cause current (on-master) implementation of writeReferencesToFile and writeDirectReferencesToFile to fail. This use case is properly handled in the proposed writeReferenceClosureToFile implementation.

Caught a dangling writeReferencesToFile. Fixed.

Here are some candidates to name the new build helper.
"Closure" is defined in Nix Manual.

The closure of a store path is the set of store paths that are directly or indirectly “reachable” from that store path; that is, it’s the closure of the path under the references relation. For a package, the closure of its derivation is equivalent to the build-time dependencies, while the closure of its output path is equivalent to its runtime dependencies. For correct deployment it is necessary to deploy whole closures, since otherwise at runtime files could be missing. The command nix-store --query --requisites prints out closures of store paths.
As an example, if the store object at path P contains a reference to a store object at path Q, then Q is in the closure of P. Further, if Q references R then R is also in the closure of P.

"Requisties" from nix-store --query --requisties could be a similar choice, but "indirect references" should be ruled out due to ambiguity.
As for the suffix, do we really need to emphasize ToFile?
Candidate list:

writeReferenceClosure

Inconsistent with writeDirectReferencesToFile, and users have to memorize when to use the singular / plural form of the word "reference".

writeClosureReferences

Consistent with writeDirectReferencesToFile.
Is it dealing with closure or references?

writeClosure

The shortest among all.
I'm not sure if there would be confusion with the NAR dump.

writeRequisties

An alternative to writeClosure, indicating the similarity in behavior with nix-store --query --requisties.
Do we want the term "closure" and "requisties" to coexist?

writeClosureReferences

Well at least with this one I'm confident I can remember all the letters

In Nix, we have a default relation we refer to when talking about "the" closure, which is the relation of references, so I think the name writeClosure is fine.

I suppose "References" is a more explicit reference (jaja) to the the GC and dependency detection: you "writeReferencesToFile" to retain a runtime dependency on something you've seen at build time

For this use case, taking the direct references is sufficient. The GC knows that the whole closure is reachable from that starting set.
"Direct" is implied when talking about references, but I've had to use that term when I added writeDirectReferencesToFile, to make it distinct from the somewhat badly named writeReferencesToFile.

Just fixed a commit message. Sorry for another force push.

Does writeMultupleReferencesToFile not duplicate e.g. closureInfo?

@SomeoneSerge, sorry that I made it wrong. "${pkgs.writeClosure paths}" is a duplication of "${pkgs.closureInfo paths}".
I didn't realize that the whole closure of pkgs.linux is only itself.

"${pkgs.writeClosure paths}" is a duplication of "${pkgs.closureInfo paths}".

I thought we concluded someplace else that writeClosure had a different signature?

I thought we concluded somewhere else that writeClosure had a different signature

They have different signatures. pkgs.closureInfo is not a drop-in replacement of pkgs.writeClosure. As for their functions, one can use pkgs.closureInfo to achieve a functionality similar to that of pkgs.writeClosure.
I said they are "not even close" (https://github.com/NixOS/nixpkgs/pull/178717#discussion_r1525164592) based on the content of the file "${pkgs.closureInfo { storePaths = [ pkgs.linux ]; }/store-paths". It contains only one line
nixpkgs_timeshift (9b54fb4) [$]
❯ cat /nix/store/sd8vsqzxhq9x4hyz3fvvggss0i4wkqvi-closure-info/store-paths
/nix/store/lgkpyy1b1zzh04n8b6andg8iw8vnr07m-linux-6.6.21

I also thought the closure of pkgs.linux would be much bigger than that, but now I know I was wrong.


Deadlock -- Caused By Locking Resource During Process Flow

When a resource is applied by next activity, that resource should be preserved by next activity rather than locked. If the resource is locked in between the process flow, the process is delayed and the simulation result may be distorted. The next activity should be considered for resource locking.

That issue is similar to issue 10. The control should be done outside RCQ. That issue was closed


minor ui fixes: footer button color, project name spacing

fixed youtube footer icon to match fill color with discord icon and github icon by changing the value for fill in the  tag within the  tag for youtube in src/components/Footer.js.
Before:

After:

second commit: added spacing so spacing above and below project names is equivalent
Before:

After:

still lgtm for me

cool

i think one of yall may have to merge this for me, the pr is approved but seems like i am unable to merge it


[improvement] Connector overview - titles and page header

Description

add a better title to the "overview" view (e.g. "Connnector config" as PageHeader instead of "Connector"
link in top page header "Request new Connector" -> should this be "Request new connector" (matching the "Request new topic"?

Note

I'm adding this to the 2.5 release, but we should prioritise Topic Overview for this release, Connector overview can also be in the next release

Page header is changed
"Request new Connector" with capital C will stay (for now) as we're using "Connector" with capital C in other places, too


Slide when number of slide is less than or equal to slides-to-show

Hello guys,
I am having 3 slides in my slider and I am using 'slides-to-show=3' to slide at a time. But when my number of slides are equal to 'slides-to-show' then arrows are not coming.
I want to slide images repeatedly no matter how many slides I have

Did you set infinite to true? This allows the slides to cycle through when it reaches the end, regardless of the number of slides.

+1


work to improve completion

more work towards reducing code completion twitchiness
disable completion after ;{},
disable completion as-you-type; the user can override this in the settings for autocomplete-plus
improve the default scoring from analysis server for completion
don't show the release notes at startup; they are now available from the Packages > Dart > Release Notes menu item

fix https://github.com/dart-atom/dartlang/issues/246
fix https://github.com/dart-atom/dartlang/issues/239
fix #6


About training under different version of pytorch and cuda

Thanks for your great work!
I am now training the code under pytorch 1.10 and cuda 11.0, because I don't have a proper GPU that satisfies the environment in README. However, I got a much lower result in AP40 moderate: 13.69, compared to the given ckpt 16.23.
Do you have some ideas about why the performance deteriorate sharply under different environments?
Thanks very much

I do not know. Please mention that the model has a certain range of jitter. But 13.69 is very low. Most times will not happen. We also are developing the model in the higher torch.

Thanks for the reply.
We now can reproduce the results.
But a weird thing is that training under 3 GPUs outperforms training under a single GPU.
We first trained the network with 1 A100, and got 13.69.
Then we trained it with 3 A100s, and got 15.70.
Other conditions were kept the same.
All in all, we get the right results.
Thanks for your work again.

@SuperMHP
I used 3 * V100 to train GUPNet, But get 15mAP.
I use pt1.7 and cuda11 to train model, I think 15mAP is a little abnormal.


Docs: Reformatting the Readme.md

I was thinking of Re-formatting the Readme.md file to make it more descriptive and properly aligned.
@kannon92 I want to work on this.

Can you please explain more what you are planning to do?

Like Adding a contributors section that will show kinda like a list of people with their pics who contributed to the Armada repo, Also
we can add some emoji's if you think its okay not much but wherever necessary and linking to some documentations, contributing guidelines and things like that. Lemme raise a draft PR to show what I mean.

GitHub already provides this feature I think. I don't see any value here.

Closing: I think our docs are in a better place since this ticket was created.


MINOR: Fix remaining core, connect and clients tests to pass with Java 11

SslFactoryTest should use SslFactory to create SSLEngine
Use Mockito instead of EasyMock in ConsoleConsumerTest as one of
the tests mocks a standard library class and the latest released EasyMock
version can't do that when Java 11 is used.
Avoid mocking ConcurrentMap in SourceTaskOffsetCommitterTest
for similar reasons. As it happens, mocking is not actually needed here.

Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

One job passed and the other had an unrelated test failure: testTrustStoreAlter.


Directly navigate to a symbol within a file

Issue type: Feature Request

Currently, to navigate to a symbol inside a source file, the user must first navigate to the file and use the quickpick with the symbol prefixed with a #. i.e. to get to the function hello inside lib.js, the user must open lib.js and then they can type #hello in the quickpick.
My suggestion: add the ability to navigate directly to the symbol by typing lib#hello in the quickpick. Possibly by adding #<symbol> to a search query, the symbol should be searched within the top match. Filenames can have hashes so any matching files should ideally have precedence in the options.
WDYT?

Does workspace symbol search do what you want?

Yes, but what I'm suggesting is a file-specific symbol search

We call that quick outline, the prefix is @ and we have that already built into the tools.


Text and Image added to "files" in multipart form data

Using Charles, I noticed anything in the MultipartFormData array is added to the files section of the request. When testing the same request Postman, text is added to "fields" and the image is added to "files".
Is this Moya's intended behavior? It seems like only files should go to files

I did some digging, it looks like by setting the mimeType to "", Moya tells Alamofire that it's a file type, adding it to the files section of the multipart/form-data request.
I'm happy to provide a fix.

a PR would be awesome @mattfxyz :)

@mattfxyz Is it fixed?

This change never made it into Swift 2.3 or 2.2. Are there plans to release an update or can I merge into the release branch?

I have a fix in my fork. Can we create a new release branch?

Should be possible, can you create a PR?

What branch? Should I just make a new 2.3 one?

I suppose so, and then release a 7.something release for CP / Carthage. @ashfurrow, is this possible?

Makes sense to me. You should be able to branch off from the tags of our releases.

I created a release-7.0.4 branch and opened a PR to migrate the changes into it.


Add configurable memcached operation timeout

From martin.grotzke on December 27, 2011 01:06:16
Part of the contribution by Erik Swenson, https://github.com/magro/memcached-session-manager/pull/13: Replace hard coded timeout values with a configurable operation timeout for memcached.
Original issue: http://code.google.com/p/memcached-session-manager/issues/detail?id=118

From martin.grotzke on December 26, 2011 16:06:53
Merged in master as commit 0034cc04.
Status: Fixed
Labels: Milestone-1.6.0

From martin.grotzke on December 26, 2011 16:07:13
(No comment was entered for this change.)
Labels: -Type-Defect Type-Enhancement


env setup

Question
A clear and concise description of your question.
I have powershell 7 installed, and the windows has two powershell versions, normally how I should start?
I install-module through powershell 7 or 5, or I download the zip package and decompress and get into that folder to run code?
I am a bit confused, and there is no answer from doc, sorry to bother.
Thanks
Eric Xin

Hi @ericxin1982,
It depends really on which version of PowerShell you'd like to run Pode from. If from PowerShell 7, then Install-Module Pode in pwsh, or if PowerShell 5, then Install-Module Pode under Windows PowerShell. Pode does support 5 and 7, so you could install it under both versions to make it easier :)
Once installed, you can start to write your script, and then run it under which ever version of PowerShell you installed Pode on.
Hope that helps 😃

ok, thanks.


Unhandled exception leads to app crash.

When I create a transaction with the wrong utxo's - app crashes on the line
 final TxBuilderResult txBuilderResultPreRes = await txBuilderPre.finish(wallet);
      final txBuilderPre = TxBuilder();

      List<(dynamic, int)> outputs = [];
      for (final fundOutput in fundOutputs) {
        final Address addressModel = await Address.create(address: fundOutput.address);
        final script = await addressModel.scriptPubKey();
        outputs.add((script, fundOutput.amount));
      }

      /// Pre-calculate fees amount
      TxBuilder txBuilderResultPre = txBuilderPre.feeRate(feeRate).manuallySelectedOnly().addUtxos(utxos);
      for (final output in outputs) {
        txBuilderResultPre = txBuilderResultPre.addRecipient(output.$1, output.$2);
      }

      final TxBuilderResult txBuilderResultPreRes = await txBuilderPre.finish(wallet);

with the message
thread 'frb_workerpool' panicked at src/r_api.rs:196:41:
called `Result::unwrap()` on an `Err` value: UnknownUtxo
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
* thread #42, name = 'frb_workerpool', stop reason = signal SIGABRT
    frame #0: 0x00000001eabdc200 libsystem_kernel.dylib`__pthread_kill + 8
libsystem_kernel.dylib`:
->  0x1eabdc200 <+8>:  b.lo   0x1eabdc220               ; <+40>
    0x1eabdc204 <+12>: pacibsp
    0x1eabdc208 <+16>: stp    x29, x30, [sp, #-0x10]!
    0x1eabdc20c <+20>: mov    x29, sp
Target 0: (Runner) stopped.
Lost connection to device.

With correct utxo's this code works well.

iOS 16.1.2
bdk_flutter: ^0.30.0

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.19.2, on macOS 14.4 23E214 darwin-arm64, locale
en-DE)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.3)
[✓] IntelliJ IDEA Community Edition (version 2022.2.2)
[✓] VS Code (version 1.87.2)
[✓] Connected device (4 available)
[✓] Network resources
• No issues found!

And one more
thread 'frb_workerpool' panicked at src/types.rs:56:53:
Invalid Psbt Input: Error("key must be a string", line: 1, column: 2)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
* thread #42, name = 'frb_workerpool', stop reason = signal SIGABRT
    frame #0: 0x00000001c534c200 libsystem_kernel.dylib`__pthread_kill + 8
libsystem_kernel.dylib`:
->  0x1c534c200 <+8>:  b.lo   0x1c534c220               ; <+40>
    0x1c534c204 <+12>: pacibsp
    0x1c534c208 <+16>: stp    x29, x30, [sp, #-0x10]!
    0x1c534c20c <+20>: mov    x29, sp
Target 0: (Runner) stopped.
Lost connection to device.


Add support for new logitech m650

The new logitech m650 has been released and I would appreciate the support for that mouse.
Thanks!!

Also, waiting for this, would be awesome.

As per comment from linked issue:

could you post the output of lsusb -d 046d: when connected by wire? This command lists USB devices on the system.

The m650's USB connection is over a wireless receiver only, if that affects anything. The output from lsusb is:
Bus 003 Device 020: ID 046d:c548 Logitech, Inc. USB Receiver

So, only the receiver is shown. Sadly, it won't be possible to use libratbag with the mouse in wired mode then. The reason is that we don't support using receivers directly, we expect the kernel to re-export devices connected to it as separate USB devices. In other words, this depends on the Linux kernel.

Ah, that's a shame. Well, thanks for the explanation!

You can use Solaar in the meantime.

For the Bluetooth mode it seems like libratbag still doesn't have a device file, do I understand correctly, that the mouse is recognized with the device file mentioned here? Would anyone like to open a PR? You can just put the contents from there to data/devices/logitech-M650.device in the repo.

The reason is that we don't support using receivers directly, we expect the kernel to re-export devices connected to it as separate USB devices. In other words, this depends on the Linux kernel.

Does that mean Libratbag currently only works with mouse that support wired connection?

@staticssleever668 so how is the libratbag able to write to its onboard memory if it is done wirelessly?
I know it is not a suitable thread to ask this, but I don't know where to ask.


Possible fix: RAG installation

Description
Possible fix: RAG installation
Type of change

[ ] Refactor
[ ] New feature
[x] Bug fix
[ ] CVE fix
[ ] Optimization
[ ] Documentation Update
[ ] Configuration Update
[ ] Bump-up dependent library

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 95.86%. Comparing base (5e2503e) to head (0172dbd).
Report is 18 commits behind head on main.

Additional details and impacted files

@@            Coverage Diff             @@
##             main     #508      +/-   ##
==========================================
+ Coverage   95.45%   95.86%   +0.41%
==========================================
  Files          47       47
  Lines        1473     1474       +1
==========================================
+ Hits         1406     1413       +7
+ Misses         67       61       -6

see 5 files with indirect coverage changes

https://github.com/openshift/lightspeed-service/pull/506 fixes this.  Also we shouldn't need to install python again because it's extending the base ols image which already installs it: https://github.com/openshift/lightspeed-service/blob/e096673a2f18b56f9edbfd117ce1490f699629ea/Containerfile#L6


WIP: Pipe console errors to screen

Update: index.html is created, but not auto-reloaded

index.html is now reloading properly, and error messages are well formatted.


Why does enforceRootElement return a ?

As the title says - why does enforceRootElement in src/utils.js return a ? Here is the code in question:
enforceRootElement(object) {
    if (typeof object === 'string' || this.isArray(object)) {
      object = { object };
    }
    return object;
}

 elements are for inline stuff like text, they aren't supposed to hold block-level elements (such as
s). It means that things like <Authenticated> and <NotAuthenticated> produce s holding whole modules of content. A far better element for enforceRootElement would simply be a
.

The reason for this was just that  was less invasive to wrap with than
. But I agree with your reasoning about inline vs block-level.

Cool thanks @typerandom :) Any plans to change it to a
? Happy to make a pull request if you want.

Definitely! But will probably change it to a
. Just to make it less invasive. How would you feel about that? :)


Adds separate option for reviewers and submitted reviewers in comment stage

Combined together with #1331. Closed.


[pymclevel] Import Error: no module named mclangres

When writing a script based on mclevel.py mclangres.py won't get found because it's in the directory above. Copying it won't help because then other modules won't get found etc.
I'm not sure if this belongs here, but in the pymclevel repo was no issues section.
I would appreciate all of your help.

Unfortunately that file isn't part of the pymclevel subproject, you would need to copy it and it's dependencies over to pymclevel and rewrite their imports to function if you want to use it.

Speaking of I'll update the pymclevel repo, I didn't think anyone was still using it.

Closing since we don't really officially support pymclevel outside of it's use here, sorry :/